public class ConfluenceAnnotationBoxingUberspect extends AnnotationBoxingUberspect
Specialisation of the AnnotatioBoxingUberspect to be used in a Confluence velocity environment.
It makes sure the real object class is returned when the context may contain Spring AOP proxies and also adds a custom method annotation policy when make a determination on whether a method is HTML safe or not.
org.apache.velocity.util.introspection.UberspectImpl.VelGetterImpl, org.apache.velocity.util.introspection.UberspectImpl.VelMethodImpl, org.apache.velocity.util.introspection.UberspectImpl.VelSetterImpl
Constructor and Description |
---|
ConfluenceAnnotationBoxingUberspect() |
Modifier and Type | Method and Description |
---|---|
protected Class |
getClassForTargetObject(Object targetObject)
Return the underlying class of an object even if obscured by a Spring AOP proxy
|
protected Collection<Annotation> |
getMethodAnnotations(Method method)
Retrieve any annotations on the supplied method that are meta-annotated as a
ReturnValueAnnotation |
getIterator, getMethod, getPropertyGet, init
protected Collection<Annotation> getMethodAnnotations(Method method)
AnnotationBoxingUberspect
ReturnValueAnnotation
getMethodAnnotations
in class AnnotationBoxingUberspect
method
- Method to searchReturnValueAnnotation
on the provided method.protected Class getClassForTargetObject(Object targetObject)
getClassForTargetObject
in class AnnotationBoxingUberspect
targetObject
- Object for class resolvingCopyright © 2003–2017 Atlassian. All rights reserved.