org.codehaus.plexus.summit.renderer
Class VelocityContextAdapter

java.lang.Object
  extended byorg.apache.velocity.context.InternalContextBase
      extended byorg.apache.velocity.context.AbstractContext
          extended byorg.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

Constructor Summary
VelocityContextAdapter(ViewContext context)
          Constructor
 
Method Summary
 boolean internalContainsKey(java.lang.Object key)
           
 java.lang.Object internalGet(java.lang.String key)
           
 java.lang.Object[] internalGetKeys()
           
 java.lang.Object internalPut(java.lang.String key, java.lang.Object value)
           
 java.lang.Object internalRemove(java.lang.Object key)
           
 
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
 

Constructor Detail

VelocityContextAdapter

public VelocityContextAdapter(ViewContext context)
Constructor

Method Detail

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)


Copyright © 2001-2007 Codehaus. All Rights Reserved.