|
.NET Framework | |||||||||
| PREV TYPE NEXT TYPE | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONST | PROP | METHOD | OP | EVENT | DETAIL: FIELD | CONST | PROP | METHOD | OP | EVENT | |||||||||
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 |
|---|
public InternalContextBase()
Initializes a new instance of the InternalContextBase class.
| Property Detail |
|---|
public NVelocity.Runtime.Resource.Resource CurrentResource
public string CurrentTemplateName
public NVelocity.App.Events.EventCartridge EventCartridge
public object[] TemplateNameStack
| Method Detail |
|---|
public NVelocity.App.Events.EventCartridge AttachEventCartridge(NVelocity.App.Events.EventCartridge ec)
public NVelocity.Util.Introspection.IntrospectionCacheData ICacheGet(object key)
Parameters:
key - key to find in cache
public void ICachePut(object key,
NVelocity.Util.Introspection.IntrospectionCacheData o)
Parameters:
key - key
o - IntrospectionCacheData object to place in cache
public void PopCurrentTemplateName()
remove the current template name from stack
public void PushCurrentTemplateName(string s)
set the current template name on top of stack *
Parameters:
s - current template name
|
.NET Framework | |||||||||
| PREV TYPE NEXT TYPE | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONST | PROP | METHOD | OP | EVENT | DETAIL: FIELD | CONST | PROP | METHOD | OP | EVENT | |||||||||