com.atlassian.confluence.velocity.introspection
Class AnnotatedReferenceHandler
java.lang.Object
com.atlassian.confluence.velocity.introspection.AnnotatedReferenceHandler
- All Implemented Interfaces:
- org.apache.velocity.app.event.EventHandler, org.apache.velocity.app.event.ReferenceInsertionEventHandler
- Direct Known Subclasses:
- HtmlAnnotationEscaper, PossibleIncorrectHtmlEncodingEventHandler
public abstract class AnnotatedReferenceHandler
- extends java.lang.Object
- implements org.apache.velocity.app.event.ReferenceInsertionEventHandler
Support class for ReferenceInsertionEventHandler
s that need to deal with
any AnnotationBoxedElement
s context values.
Nested classes/interfaces inherited from interface org.apache.velocity.app.event.ReferenceInsertionEventHandler |
org.apache.velocity.app.event.ReferenceInsertionEventHandler.referenceInsertExecutor |
Method Summary |
protected abstract java.lang.Object |
annotatedValueInsert(java.lang.String referenceName,
java.lang.Object value,
java.util.Collection<java.lang.annotation.Annotation> annotations)
Process a reference with a collection of annotations |
java.lang.Object |
referenceInsert(java.lang.String referenceName,
java.lang.Object referenceValue)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AnnotatedReferenceHandler
public AnnotatedReferenceHandler()
referenceInsert
public java.lang.Object referenceInsert(java.lang.String referenceName,
java.lang.Object referenceValue)
- Specified by:
referenceInsert
in interface org.apache.velocity.app.event.ReferenceInsertionEventHandler
annotatedValueInsert
protected abstract java.lang.Object annotatedValueInsert(java.lang.String referenceName,
java.lang.Object value,
java.util.Collection<java.lang.annotation.Annotation> annotations)
- Process a reference with a collection of annotations
- Parameters:
referenceName
- name of the reference being insertedvalue
- unboxed reference valueannotations
- any annotations associated with the reference
- Returns:
- Final value to insert
Copyright © 2003-2014 Atlassian. All Rights Reserved.