Class DeprecatedCheckUberspector
java.lang.Object
org.apache.velocity.util.introspection.UberspectImpl
org.apache.velocity.util.introspection.AbstractChainableUberspector
org.apache.velocity.util.introspection.DeprecatedCheckUberspector
- All Implemented Interfaces:
ChainableUberspector, Uberspect, RuntimeServicesAware
Chainable Uberspector that checks for deprecated method calls. It does that by checking if the returned
method has a Deprecated annotation. Because this is a chainable uberspector, it has to re-get the method using a
default introspector, which is not safe; future uberspectors might not be able to return a precise method name, or a
method of the original target object.
Borrowed from the XWiki project.
- Since:
- 2.0
- Version:
- $Id:$
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class UberspectImpl
UberspectImpl.VelGetterImpl, UberspectImpl.VelMethodImpl, UberspectImpl.VelSetterImpl -
Field Summary
Fields inherited from class AbstractChainableUberspector
innerFields inherited from class UberspectImpl
conversionHandler, introspector, log, rsvc -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionMethodgetPropertyGet(Object obj, String identifier, Info i) Property gettergetPropertySet(Object obj, String identifier, Object arg, Info i) Property settervoidinit()init - the chainable uberspector is responsible for the initialization of the wrapped uberspectorMethods inherited from class AbstractChainableUberspector
getIterator, wrapMethods inherited from class UberspectImpl
getConversionHandler, setLog, setRuntimeServicesMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Uberspect
getIterator
-
Constructor Details
-
DeprecatedCheckUberspector
public DeprecatedCheckUberspector()
-
-
Method Details
-
init
public void init()Description copied from class:AbstractChainableUberspectorinit - the chainable uberspector is responsible for the initialization of the wrapped uberspector- Specified by:
initin interfaceUberspect- Overrides:
initin classAbstractChainableUberspector- See Also:
-
getMethod
Description copied from class:AbstractChainableUberspectorMethod- Specified by:
getMethodin interfaceUberspect- Overrides:
getMethodin classAbstractChainableUberspector- Parameters:
obj-methodName-args-i-- Returns:
- A Velocity Method.
- See Also:
-
getPropertyGet
Description copied from class:AbstractChainableUberspectorProperty getter- Specified by:
getPropertyGetin interfaceUberspect- Overrides:
getPropertyGetin classAbstractChainableUberspector- Parameters:
obj-identifier-i-- Returns:
- A Velocity Getter Method.
- See Also:
-
getPropertySet
Description copied from class:AbstractChainableUberspectorProperty setter- Specified by:
getPropertySetin interfaceUberspect- Overrides:
getPropertySetin classAbstractChainableUberspector- Parameters:
obj-identifier-arg-i-- Returns:
- A Velocity Setter method.
- See Also:
-