org.codehaus.plexus.summit.renderer
Class VelocityContextAdapter
java.lang.Object
org.apache.velocity.context.InternalContextBase
org.apache.velocity.context.AbstractContext
org.codehaus.plexus.summit.renderer.VelocityContextAdapter
- All Implemented Interfaces:
- org.apache.velocity.context.Context, org.apache.velocity.context.InternalEventContext, org.apache.velocity.context.InternalHousekeepingContext, java.io.Serializable
- public class VelocityContextAdapter
- extends org.apache.velocity.context.AbstractContext
We use the Adapter pattern to create a wrapper around a
ViewContext
so that Velocity can use it as a
Velocity Context
to render the view.
- Version:
- $Id: VelocityContextAdapter.java 2092 2005-06-06 16:31:27Z jvanzyl $
- Author:
- Jason van Zyl
- See Also:
- Serialized Form
Fields inherited from class org.apache.velocity.context.AbstractContext |
|
Methods inherited from class org.apache.velocity.context.AbstractContext |
attachEventCartridge, containsKey, get, getChainedContext, getCurrentResource, getCurrentTemplateName, getEventCartridge, getKeys, getTemplateNameStack, icacheGet, icachePut, popCurrentTemplateName, pushCurrentTemplateName, put, remove, setCurrentResource |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
context
private ViewContext context
View Context instance that we are wrapping.
VelocityContextAdapter
public VelocityContextAdapter(ViewContext context)
- Constructor
internalGet
public java.lang.Object internalGet(java.lang.String key)
- See Also:
AbstractContext.internalGet(java.lang.String)
internalPut
public java.lang.Object internalPut(java.lang.String key,
java.lang.Object value)
- See Also:
AbstractContext.internalPut(java.lang.String, java.lang.Object)
internalContainsKey
public boolean internalContainsKey(java.lang.Object key)
- See Also:
AbstractContext.internalContainsKey(java.lang.Object)
internalGetKeys
public java.lang.Object[] internalGetKeys()
- See Also:
AbstractContext.internalGetKeys()
internalRemove
public java.lang.Object internalRemove(java.lang.Object key)
- See Also:
AbstractContext.internalRemove(java.lang.Object)