com.atlassian.velocity.htmlsafe.introspection
Class HtmlSafeAnnotationBoxingUberspect
java.lang.Object
org.apache.velocity.util.introspection.UberspectImpl
com.atlassian.velocity.htmlsafe.introspection.AnnotationBoxingUberspect
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 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 |
| 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 |
HtmlSafeAnnotationBoxingUberspect
public HtmlSafeAnnotationBoxingUberspect()
getMethodAnnotations
protected Collection<Annotation> getMethodAnnotations(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 © 2014 Atlassian. All Rights Reserved.