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 SummaryConstructors
- 
Method SummaryModifier 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.VelocityContextclone, internalContainsKey, internalGet, internalGetKeys, internalPut, internalRemoveMethods inherited from class org.apache.velocity.context.AbstractContextcontainsKey, get, getChainedContext, put, remove
- 
Constructor Details- 
ChainedVelocityContextpublic ChainedVelocityContext(org.apache.velocity.context.Context delegate) 
 
- 
- 
Method Details- 
getKeysThis 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 interface- org.apache.velocity.context.Context
- Overrides:
- getKeysin class- org.apache.velocity.context.AbstractContext
 
- 
pushCurrentTemplateName
- 
popCurrentTemplateNamepublic void popCurrentTemplateName()
- 
getCurrentTemplateName
- 
getTemplateNameStack
- 
pushCurrentMacroName
- 
popCurrentMacroNamepublic void popCurrentMacroName()
- 
getCurrentMacroName
- 
getCurrentMacroCallDepthpublic int getCurrentMacroCallDepth()
- 
getMacroNameStack
- 
icacheGet
- 
icachePutpublic void icachePut(Object arg0, org.apache.velocity.util.introspection.IntrospectionCacheData arg1) 
- 
setCurrentResourcepublic void setCurrentResource(org.apache.velocity.runtime.resource.Resource arg0) 
- 
getCurrentResourcepublic org.apache.velocity.runtime.resource.Resource getCurrentResource()
- 
getAllowRenderingpublic boolean getAllowRendering()
- 
setAllowRenderingpublic void setAllowRendering(boolean arg0) 
- 
setMacroLibraries
- 
getMacroLibraries
- 
attachEventCartridgepublic org.apache.velocity.app.event.EventCartridge attachEventCartridge(org.apache.velocity.app.event.EventCartridge arg0) - Specified by:
- attachEventCartridgein interface- org.apache.velocity.context.InternalEventContext
 
- 
getEventCartridgepublic org.apache.velocity.app.event.EventCartridge getEventCartridge()- Specified by:
- getEventCartridgein interface- org.apache.velocity.context.InternalEventContext
 
 
-