public class DeprecatedCheckUberspector extends AbstractChainableUberspector implements Uberspect
ChainableUberspector
UberspectImpl.VelGetterImpl, UberspectImpl.VelMethodImpl, UberspectImpl.VelSetterImpl
inner
conversionHandler, introspector, log, rsvc
Constructor and Description |
---|
DeprecatedCheckUberspector() |
Modifier and Type | Method and Description |
---|---|
VelMethod |
getMethod(java.lang.Object obj,
java.lang.String methodName,
java.lang.Object[] args,
Info i)
Method
|
VelPropertyGet |
getPropertyGet(java.lang.Object obj,
java.lang.String identifier,
Info i)
Property getter
|
VelPropertySet |
getPropertySet(java.lang.Object obj,
java.lang.String identifier,
java.lang.Object arg,
Info i)
Property setter
|
void |
init()
init - the chainable uberspector is responsible for the initialization of the wrapped uberspector
|
private void |
logWarning(java.lang.String deprecationType,
java.lang.Object object,
java.lang.String methodName,
Info info)
Helper method to log a warning when a deprecation has been found.
|
getIterator, wrap
getConversionHandler, setLog, setRuntimeServices
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getIterator
public void init()
AbstractChainableUberspector
init
in interface Uberspect
init
in class AbstractChainableUberspector
Uberspect.init()
public VelMethod getMethod(java.lang.Object obj, java.lang.String methodName, java.lang.Object[] args, Info i)
AbstractChainableUberspector
getMethod
in interface Uberspect
getMethod
in class AbstractChainableUberspector
Uberspect.getMethod(java.lang.Object, java.lang.String,
java.lang.Object[], org.apache.velocity.util.introspection.Info)
public VelPropertyGet getPropertyGet(java.lang.Object obj, java.lang.String identifier, Info i)
AbstractChainableUberspector
getPropertyGet
in interface Uberspect
getPropertyGet
in class AbstractChainableUberspector
Uberspect.getPropertyGet(java.lang.Object, java.lang.String,
org.apache.velocity.util.introspection.Info)
public VelPropertySet getPropertySet(java.lang.Object obj, java.lang.String identifier, java.lang.Object arg, Info i)
AbstractChainableUberspector
getPropertySet
in interface Uberspect
getPropertySet
in class AbstractChainableUberspector
Uberspect.getPropertySet(java.lang.Object, java.lang.String,
java.lang.Object, org.apache.velocity.util.introspection.Info)
private void logWarning(java.lang.String deprecationType, java.lang.Object object, java.lang.String methodName, Info info)
deprecationType
- the type of deprecation (eg "getter", "setter", "method")object
- the object that has a deprecationmethodName
- the deprecated method's nameinfo
- a Velocity Info
object containing information about
where the deprecation was located in the Velocity template file