Class ChainedVelocityContext
java.lang.Object
org.apache.velocity.context.AbstractContext
org.apache.velocity.VelocityContext
com.atlassian.confluence.velocity.context.ChainedVelocityContext
- All Implemented Interfaces:
Cloneable,org.apache.velocity.context.Context,org.apache.velocity.context.InternalEventContext
public final class ChainedVelocityContext
extends org.apache.velocity.VelocityContext
Extends the default
VelocityContext to ensure that the getKeys() method returns all keys from the
current context and the chained context.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.velocity.app.event.EventCartridgeattachEventCartridge(org.apache.velocity.app.event.EventCartridge arg0) booleanintorg.apache.velocity.runtime.resource.Resourceorg.apache.velocity.app.event.EventCartridgeObject[]getKeys()This method is inherently unreliable because if the chained context has another chained context, it may not delegate correctly if it is using the default implementation inAbstractContext.Object[]Object[]org.apache.velocity.util.introspection.IntrospectionCacheDatavoidvoidvoidvoidpushCurrentMacroName(String arg0) voidvoidsetAllowRendering(boolean arg0) voidsetCurrentResource(org.apache.velocity.runtime.resource.Resource arg0) voidsetMacroLibraries(List arg0) Methods inherited from class org.apache.velocity.VelocityContext
clone, internalContainsKey, internalGet, internalGetKeys, internalPut, internalRemoveMethods inherited from class org.apache.velocity.context.AbstractContext
containsKey, get, getChainedContext, put, remove
-
Constructor Details
-
ChainedVelocityContext
public ChainedVelocityContext(org.apache.velocity.context.Context delegate)
-
-
Method Details
-
getKeys
This method is inherently unreliable because if the chained context has another chained context, it may not delegate correctly if it is using the default implementation inAbstractContext.- Specified by:
getKeysin interfaceorg.apache.velocity.context.Context- Overrides:
getKeysin classorg.apache.velocity.context.AbstractContext
-
pushCurrentTemplateName
-
popCurrentTemplateName
public void popCurrentTemplateName() -
getCurrentTemplateName
-
getTemplateNameStack
-
pushCurrentMacroName
-
popCurrentMacroName
public void popCurrentMacroName() -
getCurrentMacroName
-
getCurrentMacroCallDepth
public int getCurrentMacroCallDepth() -
getMacroNameStack
-
icacheGet
-
icachePut
public void icachePut(Object arg0, org.apache.velocity.util.introspection.IntrospectionCacheData arg1) -
setCurrentResource
public void setCurrentResource(org.apache.velocity.runtime.resource.Resource arg0) -
getCurrentResource
public org.apache.velocity.runtime.resource.Resource getCurrentResource() -
getAllowRendering
public boolean getAllowRendering() -
setAllowRendering
public void setAllowRendering(boolean arg0) -
setMacroLibraries
-
getMacroLibraries
-
attachEventCartridge
public org.apache.velocity.app.event.EventCartridge attachEventCartridge(org.apache.velocity.app.event.EventCartridge arg0) - Specified by:
attachEventCartridgein interfaceorg.apache.velocity.context.InternalEventContext
-
getEventCartridge
public org.apache.velocity.app.event.EventCartridge getEventCartridge()- Specified by:
getEventCartridgein interfaceorg.apache.velocity.context.InternalEventContext
-