org.apache.velocity.context
public class VMContext extends Object implements InternalContextAdapter
Version: $Id: VMContext.java,v 1.9.10.1 2004/03/03 23:22:54 geirm Exp $
| Field Summary | |
|---|---|
| InternalContextAdapter | innerContext the base context store. |
| HashMap | localcontext container for any local or constant VMProxy items |
| boolean | localcontextscope support for local context scope feature, where all references are local |
| HashMap | vmproxyhash container for our VMProxy Objects |
| InternalContextAdapter | wrappedContext context that we are wrapping |
| Constructor Summary | |
|---|---|
| VMContext(InternalContextAdapter inner, RuntimeServices rsvc)
CTOR, wraps an ICA | |
| Method Summary | |
|---|---|
| void | addVMProxyArg(VMProxyArg vmpa)
Used to put VMProxyArgs into this context. |
| EventCartridge | attachEventCartridge(EventCartridge ec) |
| boolean | containsKey(Object key)
not yet impl |
| Object | get(String key)
Impl of the Context.gut() method.
|
| InternalContextAdapter | getBaseContext() |
| Resource | getCurrentResource() |
| String | getCurrentTemplateName() |
| EventCartridge | getEventCartridge() |
| Context | getInternalUserContext()
return the inner / user context |
| Object[] | getKeys()
impl badly |
| Object[] | getTemplateNameStack() |
| IntrospectionCacheData | icacheGet(Object key) |
| void | icachePut(Object key, IntrospectionCacheData o) |
| void | popCurrentTemplateName() |
| void | pushCurrentTemplateName(String s) |
| Object | put(String key, Object value)
Impl of the Context.put() method.
|
| Object | remove(Object key)
impl badly |
| void | setCurrentResource(Resource r) |
Parameters: vmpa VMProxyArg to add
Parameters: key name of item to get
Returns: stored object or null
Parameters: key name of item to set value object to set to key
Returns: old stored object