com.atlassian.confluence.velocity.htmlsafe
Class HtmlSafeMethodNameAnnotator

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

public class HtmlSafeMethodNameAnnotator
extends java.lang.Object
implements MethodAnnotator

Method annotator that marks certain methods as being HtmlSafe based on the method name.

This policy will annotate any method whose name ends with "Html" or starts with "render" as having a HTML safe return value.


Constructor Summary
HtmlSafeMethodNameAnnotator()
           
 
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

HtmlSafeMethodNameAnnotator

public HtmlSafeMethodNameAnnotator()
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-2013 Atlassian. All Rights Reserved.