com.atlassian.confluence.velocity.htmlsafe
Class HtmlSafeMethodNameAnnotator
java.lang.Object
com.atlassian.confluence.velocity.htmlsafe.HtmlSafeMethodNameAnnotator
- All Implemented Interfaces:
- MethodAnnotator
public class HtmlSafeMethodNameAnnotator
- extends 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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HtmlSafeMethodNameAnnotator
public HtmlSafeMethodNameAnnotator()
getAnnotationsForMethod
public Collection<Annotation> getAnnotationsForMethod(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-2011 Atlassian. All Rights Reserved.