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.EventCartridge
attachEventCartridge
(org.apache.velocity.app.event.EventCartridge arg0) boolean
int
org.apache.velocity.runtime.resource.Resource
org.apache.velocity.app.event.EventCartridge
Object[]
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.IntrospectionCacheData
void
void
void
void
pushCurrentMacroName
(String arg0) void
void
setAllowRendering
(boolean arg0) void
setCurrentResource
(org.apache.velocity.runtime.resource.Resource arg0) void
setMacroLibraries
(List arg0) Methods inherited from class org.apache.velocity.VelocityContext
clone, internalContainsKey, internalGet, internalGetKeys, internalPut, internalRemove
Methods 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:
getKeys
in interfaceorg.apache.velocity.context.Context
- Overrides:
getKeys
in 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:
attachEventCartridge
in interfaceorg.apache.velocity.context.InternalEventContext
-
getEventCartridge
public org.apache.velocity.app.event.EventCartridge getEventCartridge()- Specified by:
getEventCartridge
in interfaceorg.apache.velocity.context.InternalEventContext
-