public class

ConfluenceAnnotationBoxingUberspect

extends AnnotationBoxingUberspect
java.lang.Object
   ↳ org.apache.velocity.util.introspection.UberspectImpl
     ↳ com.atlassian.confluence.velocity.introspection.AnnotationBoxingUberspect
       ↳ com.atlassian.confluence.velocity.introspection.ConfluenceAnnotationBoxingUberspect

Class Overview

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.

Summary

[Expand]
Inherited Fields
From class org.apache.velocity.util.introspection.UberspectImpl
Public Constructors
ConfluenceAnnotationBoxingUberspect()
Protected Methods
Class getClassForTargetObject(Object targetObject)
Return the underlying class of an object even if obscured by a Spring AOP proxy
Collection<Annotation> getMethodAnnotations(Method method)
Retrieve any annotations on the supplied method that are meta-annotated as a ReturnValueAnnotation
[Expand]
Inherited Methods
From class com.atlassian.confluence.velocity.introspection.AnnotationBoxingUberspect
From class org.apache.velocity.util.introspection.UberspectImpl
From class java.lang.Object
From interface org.apache.velocity.util.RuntimeServicesAware
From interface org.apache.velocity.util.introspection.Uberspect
From interface org.apache.velocity.util.introspection.UberspectLoggable

Public Constructors

public ConfluenceAnnotationBoxingUberspect ()

Protected Methods

protected Class getClassForTargetObject (Object targetObject)

Return the underlying class of an object even if obscured by a Spring AOP proxy

Parameters
targetObject Object for class resolving
Returns
  • Underlying class of the object

protected Collection<Annotation> getMethodAnnotations (Method method)

Retrieve any annotations on the supplied method that are meta-annotated as a ReturnValueAnnotation

Parameters
method Method to search
Returns