com.atlassian.confluence.velocity.introspection
Class ConfluenceAnnotationBoxingUberspect
java.lang.Object
org.apache.velocity.util.introspection.UberspectImpl
com.atlassian.confluence.velocity.introspection.AnnotationBoxingUberspect
com.atlassian.confluence.velocity.introspection.ConfluenceAnnotationBoxingUberspect
- All Implemented Interfaces:
- org.apache.velocity.util.introspection.Uberspect, org.apache.velocity.util.introspection.UberspectLoggable, org.apache.velocity.util.RuntimeServicesAware
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.
Nested classes/interfaces inherited from class org.apache.velocity.util.introspection.UberspectImpl |
org.apache.velocity.util.introspection.UberspectImpl.VelGetterImpl, org.apache.velocity.util.introspection.UberspectImpl.VelMethodImpl, org.apache.velocity.util.introspection.UberspectImpl.VelSetterImpl |
Fields inherited from class org.apache.velocity.util.introspection.UberspectImpl |
introspector |
Method Summary |
protected java.lang.Class |
getClassForTargetObject(java.lang.Object targetObject)
Return the underlying class of an object even if obscured by a Spring AOP proxy |
protected java.util.Collection<java.lang.annotation.Annotation> |
getMethodAnnotations(java.lang.reflect.Method method)
Retrieve any annotations on the supplied method that are meta-annotated as a ReturnValueAnnotation |
Methods inherited from class org.apache.velocity.util.introspection.UberspectImpl |
getPropertySet, setLog, setRuntimeLogger |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConfluenceAnnotationBoxingUberspect
public ConfluenceAnnotationBoxingUberspect()
getMethodAnnotations
protected java.util.Collection<java.lang.annotation.Annotation> getMethodAnnotations(java.lang.reflect.Method method)
- Description copied from class:
AnnotationBoxingUberspect
- Retrieve any annotations on the supplied method that are meta-annotated as a
ReturnValueAnnotation
- Overrides:
getMethodAnnotations
in class AnnotationBoxingUberspect
- Parameters:
method
- Method to search
- Returns:
- Collection of annotations that have been marked as a
ReturnValueAnnotation
on the provided method.
getClassForTargetObject
protected java.lang.Class getClassForTargetObject(java.lang.Object targetObject)
- Return the underlying class of an object even if obscured by a Spring AOP proxy
- Overrides:
getClassForTargetObject
in class AnnotationBoxingUberspect
- Parameters:
targetObject
- Object for class resolving
- Returns:
- Underlying class of the object
Copyright © 2003-2013 Atlassian. All Rights Reserved.