Class ConfluenceAnnotationBoxingUberspect

java.lang.Object
org.apache.velocity.util.introspection.UberspectImpl
org.apache.velocity.util.introspection.SecureUberspector
com.atlassian.velocity.htmlsafe.introspection.AnnotationBoxingUberspect
com.atlassian.velocity.htmlsafe.introspection.HtmlSafeAnnotationBoxingUberspect
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 com.atlassian.velocity.htmlsafe.introspection.HtmlSafeAnnotationBoxingUberspect

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 Class Summary

    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
  • Field Summary

    Fields inherited from class org.apache.velocity.util.introspection.UberspectImpl

    introspector, log, runtimeServices
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected Class
    Return the underlying class of an object even if obscured by a Spring AOP proxy
    Override for removal in 10.0 alongside HtmlSafe.

    Methods inherited from class com.atlassian.velocity.htmlsafe.introspection.AnnotationBoxingUberspect

    getIterator, getMethod, getPropertyGet, init, lookupMethod

    Methods inherited from class org.apache.velocity.util.introspection.UberspectImpl

    getIteratorHelper, getPropertySet, setLog, setRuntimeLogger, setRuntimeServices

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.apache.velocity.util.RuntimeServicesAware

    setRuntimeServices
  • Constructor Details

    • ConfluenceAnnotationBoxingUberspect

      public ConfluenceAnnotationBoxingUberspect()
  • Method Details

    • getMethodAnnotations

      protected Collection<Annotation> getMethodAnnotations(Method method)
      Override for removal in 10.0 alongside HtmlSafe.
      Overrides:
      getMethodAnnotations in class com.atlassian.velocity.htmlsafe.introspection.HtmlSafeAnnotationBoxingUberspect
    • getClassForTargetObject

      protected Class getClassForTargetObject(Object targetObject)
      Return the underlying class of an object even if obscured by a Spring AOP proxy
      Overrides:
      getClassForTargetObject in class com.atlassian.velocity.htmlsafe.introspection.AnnotationBoxingUberspect
      Parameters:
      targetObject - Object for class resolving
      Returns:
      Underlying class of the object