NVelocity.Context
Class InternalContextBase

class 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. * Note that this is not a public class. It is for package access only to keep application code from accessing the internals, as AbstractContext is derived from this. *

Constructor Summary
InternalContextBase()
        Initializes a new instance of the InternalContextBase class.

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

Method Summary
NVelocity.App.Events.EventCartridge AttachEventCartridge(NVelocity.App.Events.EventCartridge ec)
NVelocity.Util.Introspection.IntrospectionCacheData ICacheGet(object key)
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 *

Methods inherited from class System.Object
Equals, Finalize, GetHashCode, GetType, MemberwiseClone, ToString


Constructor Detail

InternalContextBase

public InternalContextBase()

Initializes a new instance of the InternalContextBase class.

Property Detail

CurrentResource

public NVelocity.Runtime.Resource.Resource CurrentResource


CurrentTemplateName

public string CurrentTemplateName


EventCartridge

public NVelocity.App.Events.EventCartridge EventCartridge


TemplateNameStack

public object[] TemplateNameStack

Method Detail

AttachEventCartridge

public NVelocity.App.Events.EventCartridge AttachEventCartridge(NVelocity.App.Events.EventCartridge ec)


ICacheGet

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

Parameters:
key - key to find in cache
Returns:
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