com.atlassian.confluence.velocity
Class PolicyBasedReferenceInsertionHandler
java.lang.Object
com.atlassian.confluence.velocity.PolicyBasedReferenceInsertionHandler
- All Implemented Interfaces:
- org.apache.velocity.app.event.EventHandler, org.apache.velocity.app.event.ReferenceInsertionEventHandler, org.apache.velocity.util.ContextAware
public final class PolicyBasedReferenceInsertionHandler
- extends java.lang.Object
- implements org.apache.velocity.app.event.ReferenceInsertionEventHandler, org.apache.velocity.util.ContextAware
A ReferenceInsertionEventHandler
that delegates reference insertion processing to the provided
ReferenceInsertionPolicy
.
Nested classes/interfaces inherited from interface org.apache.velocity.app.event.ReferenceInsertionEventHandler |
org.apache.velocity.app.event.ReferenceInsertionEventHandler.referenceInsertExecutor |
Method Summary |
java.lang.Object |
referenceInsert(java.lang.String reference,
java.lang.Object value)
|
void |
setContext(org.apache.velocity.context.Context context)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PolicyBasedReferenceInsertionHandler
public PolicyBasedReferenceInsertionHandler(ReferenceInsertionPolicy insertionPolicy)
referenceInsert
public java.lang.Object referenceInsert(java.lang.String reference,
java.lang.Object value)
- Specified by:
referenceInsert
in interface org.apache.velocity.app.event.ReferenceInsertionEventHandler
setContext
public void setContext(org.apache.velocity.context.Context context)
- Specified by:
setContext
in interface org.apache.velocity.util.ContextAware
Copyright © 2003-2011 Atlassian. All Rights Reserved.