NVelocity.Context
Interface InternalHousekeepingContext

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.

Property Summary
NVelocity.Runtime.Resource.Resource CurrentResource
string CurrentTemplateName
object[] TemplateNameStack

Method Summary
NVelocity.Util.Introspection.IntrospectionCacheData ICacheGet(object key)
         get the current template name * Returns the template name stack in form of an array. *
void ICachePut(object key, NVelocity.Util.Introspection.IntrospectionCacheData o)
void PopCurrentTemplateName()
         remove the current template name from stack
void PushCurrentTemplateName(string s)
         set the current template name on top of stack


Property Detail

CurrentResource

public NVelocity.Runtime.Resource.Resource CurrentResource


CurrentTemplateName

public string CurrentTemplateName


TemplateNameStack

public object[] TemplateNameStack

Method Detail

ICacheGet

public NVelocity.Util.Introspection.IntrospectionCacheData ICacheGet(object key)

get the current template name * Returns the template name stack in form of an array. *

Parameters:
key - key to find in cache
Returns:
String current template name Object[] with the template name stack contents. cache object

ICachePut

public void ICachePut(object key,
                      NVelocity.Util.Introspection.IntrospectionCacheData o)

Parameters:
key - key
o - IntrospectionCacheData object to place in cache

PopCurrentTemplateName

public void PopCurrentTemplateName()

remove the current template name from stack


PushCurrentTemplateName

public void PushCurrentTemplateName(string s)

set the current template name on top of stack

Parameters:
s - current template name