Package com.xpn.xwiki.render
Class ScriptVelocityContext
- java.lang.Object
-
- org.apache.velocity.context.AbstractContext
-
- org.apache.velocity.VelocityContext
-
- org.xwiki.velocity.XWikiVelocityContext
-
- org.xwiki.velocity.ScriptVelocityContext
-
- com.xpn.xwiki.render.ScriptVelocityContext
-
- All Implemented Interfaces:
Serializable
,Cloneable
,org.apache.velocity.context.Context
,org.apache.velocity.context.InternalEventContext
@Deprecated(since="15.9RC1") public class ScriptVelocityContext extends org.xwiki.velocity.ScriptVelocityContext
Deprecated.useScriptVelocityContext
insteadMaintains the current ScriptContext in sync with any modification of the VelocityContext.- Since:
- 8.3M1
- Version:
- $Id: 3e91518c4c6b07209ed96270e3a3bd420a1041e7 $
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ScriptVelocityContext(org.apache.velocity.VelocityContext parent, boolean logDeprecated, Set<String> reservedBindings)
Deprecated.ScriptVelocityContext(org.apache.velocity.VelocityContext parent, Set<String> reservedBindings)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description org.apache.velocity.app.event.EventCartridge
attachEventCartridge(org.apache.velocity.app.event.EventCartridge arg0)
int
getCurrentMacroCallDepth()
String
getCurrentMacroName()
org.apache.velocity.runtime.resource.Resource
getCurrentResource()
String
getCurrentTemplateName()
org.apache.velocity.app.event.EventCartridge
getEventCartridge()
List<org.apache.velocity.Template>
getMacroLibraries()
String[]
getMacroNameStack()
String[]
getTemplateNameStack()
org.apache.velocity.util.introspection.IntrospectionCacheData
icacheGet(Object arg0)
void
icachePut(Object arg0, org.apache.velocity.util.introspection.IntrospectionCacheData arg1)
void
popCurrentMacroName()
void
popCurrentTemplateName()
void
pushCurrentMacroName(String arg0)
void
pushCurrentTemplateName(String arg0)
void
setCurrentResource(org.apache.velocity.runtime.resource.Resource arg0)
-
Methods inherited from class org.xwiki.velocity.ScriptVelocityContext
getScriptContext, internalPut, internalRemove, setScriptContext
-
Methods inherited from class org.apache.velocity.VelocityContext
clone, internalContainsKey, internalGet, internalGetKeys
-
-
-
-
Constructor Detail
-
ScriptVelocityContext
public ScriptVelocityContext(org.apache.velocity.VelocityContext parent, Set<String> reservedBindings)
Deprecated.- Parameters:
parent
- the initial Velocity contextreservedBindings
- the binding that should not be synchronized
-
ScriptVelocityContext
public ScriptVelocityContext(org.apache.velocity.VelocityContext parent, boolean logDeprecated, Set<String> reservedBindings)
Deprecated.- Parameters:
parent
- the initial Velocity contextlogDeprecated
- true if use of deprecated binding should be loggedreservedBindings
- the binding that should not be synchronized- Since:
- 12.10, 12.6.5
-
-
Method Detail
-
pushCurrentTemplateName
public void pushCurrentTemplateName(String arg0)
-
popCurrentTemplateName
public void popCurrentTemplateName()
-
getCurrentTemplateName
public String getCurrentTemplateName()
-
getTemplateNameStack
public String[] getTemplateNameStack()
-
pushCurrentMacroName
public void pushCurrentMacroName(String arg0)
-
popCurrentMacroName
public void popCurrentMacroName()
-
getCurrentMacroName
public String getCurrentMacroName()
-
getCurrentMacroCallDepth
public int getCurrentMacroCallDepth()
-
getMacroNameStack
public String[] getMacroNameStack()
-
icacheGet
public org.apache.velocity.util.introspection.IntrospectionCacheData icacheGet(Object arg0)
-
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()
-
getMacroLibraries
public List<org.apache.velocity.Template> 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
-
-