com.atlassian.velocity.htmlsafe.introspection
Class HtmlSafeAnnotationBoxingUberspect

java.lang.Object
  extended by org.apache.velocity.util.introspection.UberspectImpl
      extended by com.atlassian.velocity.htmlsafe.introspection.AnnotationBoxingUberspect
          extended by com.atlassian.velocity.htmlsafe.introspection.HtmlSafeAnnotationBoxingUberspect
All Implemented Interfaces:
org.apache.velocity.util.introspection.Uberspect, org.apache.velocity.util.introspection.UberspectLoggable, org.apache.velocity.util.RuntimeServicesAware

public class HtmlSafeAnnotationBoxingUberspect
extends AnnotationBoxingUberspect

Specialisation of the AnnotationBoxingUberspect to be used in a velocity environment.

It adds a custom method annotation policy when making 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
 
Constructor Summary
HtmlSafeAnnotationBoxingUberspect()
           
 
Method Summary
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 com.atlassian.velocity.htmlsafe.introspection.AnnotationBoxingUberspect
getClassForTargetObject, getIterator, getMethod, getPropertyGet, init, setRuntimeServices
 
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
 

Constructor Detail

HtmlSafeAnnotationBoxingUberspect

public HtmlSafeAnnotationBoxingUberspect()
Method Detail

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:
A collection of annotations that are themselves marked as ReturnValueAnnotations.


Copyright © 2013 Atlassian. All Rights Reserved.