| org.apache.velocity.context.InternalHousekeepingContext
All known Subclasses: org.apache.velocity.context.InternalContextBase,
InternalHousekeepingContext | interface InternalHousekeepingContext (Code) | | interface to encapsulate the 'stuff' for internal operation of velocity.
We use the context as a thread-safe storage : we take advantage of the
fact that it's a visitor of sorts to all nodes (that matter) of the
AST during init() and render().
Currently, it carries the template name for namespace
support, as well as node-local context data introspection caching.
author: Geir Magnusson Jr. author: Christoph Reck version: $Id: InternalHousekeepingContext.java 463298 2006-10-12 16:10:32Z henning $ |
getAllowRendering | boolean getAllowRendering()(Code) | | Checks to see if rendering should be allowed. Defaults to true but will
return false after a #stop directive.
true if rendering is allowed, false if no rendering should occur |
getCurrentResource | Resource getCurrentResource()(Code) | | temporary fix to enable #include() to figure out
current encoding.
The current resource. |
getCurrentTemplateName | String getCurrentTemplateName()(Code) | | get the current template name
String current template name |
getTemplateNameStack | Object[] getTemplateNameStack()(Code) | | Returns the template name stack in form of an array.
Object[] with the template name stack contents. |
icacheGet | IntrospectionCacheData icacheGet(Object key)(Code) | | returns an IntrospectionCache Data (@see IntrospectionCacheData)
object if exists for the key
Parameters: key - key to find in cache cache object |
icachePut | void icachePut(Object key, IntrospectionCacheData o)(Code) | | places an IntrospectionCache Data (@see IntrospectionCacheData)
element in the cache for specified key
Parameters: key - key Parameters: o - IntrospectionCacheData object to place in cache |
popCurrentTemplateName | void popCurrentTemplateName()(Code) | | remove the current template name from stack
|
pushCurrentTemplateName | void pushCurrentTemplateName(String s)(Code) | | set the current template name on top of stack
Parameters: s - current template name |
setAllowRendering | void setAllowRendering(boolean v)(Code) | | Set whether rendering is allowed. Defaults to true but is set to
false after a #stop directive.
Parameters: v - |
setCurrentResource | void setCurrentResource(Resource r)(Code) | | Parameters: r - |
|
|