com.atlassian.confluence.velocity.htmlsafe
Class HtmlSafeClassAnnotator

java.lang.Object
  extended by com.atlassian.confluence.velocity.htmlsafe.HtmlSafeClassAnnotator
All Implemented Interfaces:
MethodAnnotator

public final class HtmlSafeClassAnnotator
extends java.lang.Object
implements MethodAnnotator

This method annotator will annotate various methods that are known to be HTML safe from library classes. At present this annotator will annotate the htmlEncode method from TextUtils and VelocityWebWorkUtil as being HTML safe.


Constructor Summary
HtmlSafeClassAnnotator()
           
 
Method Summary
 java.util.Collection<java.lang.annotation.Annotation> getAnnotationsForMethod(java.lang.reflect.Method method)
          Return a collection of annotations for a method
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HtmlSafeClassAnnotator

public HtmlSafeClassAnnotator()
Method Detail

getAnnotationsForMethod

public java.util.Collection<java.lang.annotation.Annotation> getAnnotationsForMethod(java.lang.reflect.Method method)
Description copied from interface: MethodAnnotator
Return a collection of annotations for a method

Specified by:
getAnnotationsForMethod in interface MethodAnnotator
Parameters:
method - Method to annotate
Returns:
A collection of annotations applicable for the method


Copyright © 2003-2014 Atlassian. All Rights Reserved.