org.norther.tammi.spray.engine
Class DefaultContextToolFilter.InternalTemplateContext

java.lang.Object
  extended by org.norther.tammi.core.pool.RecyclableSupport
      extended by org.norther.tammi.core.pool.PoolableSupport
          extended by org.norther.tammi.spray.engine.context.DefaultTemplateContext
              extended by org.norther.tammi.spray.engine.DefaultContextToolFilter.InternalTemplateContext
All Implemented Interfaces:
Serializable, EventListener, HttpSessionBindingListener, Poolable, Recyclable, TemplateContext, ServletRequestBindingListener
Enclosing class:
DefaultContextToolFilter

public static class DefaultContextToolFilter.InternalTemplateContext
extends DefaultTemplateContext

An internal implementation of TemplateContext.

The class is public to enable pooling.

See Also:
Serialized Form

Constructor Summary
DefaultContextToolFilter.InternalTemplateContext()
          Constructs a new context.
DefaultContextToolFilter.InternalTemplateContext(TemplateContext ctx)
          Constructs a new context with a parent.
 
Method Summary
 void clear()
          Clears the context but not its parents.
 void dispose()
          Disposes the object by setting its disposed flag.
 Content getContent()
          Gets the content of this context.
 Object remove(String key)
          Removes an object from the context.
protected  void setContextToolFilterMBean(MBeanReference<? extends ContextToolFilter> filter)
          Sets the context tool filter of this context.
 
Methods inherited from class org.norther.tammi.spray.engine.context.DefaultTemplateContext
addParent, addParent, clearParents, containsKey, get, getContextToolFilter, getFilterChain, getMBeanServer, getParent, getParents, keySet, numberOfParents, put, recycle, removeParent, removeParent, set, setParent, size, valueBound, valueBound, values, valueUnbound, valueUnbound
 
Methods inherited from class org.norther.tammi.core.pool.PoolableSupport
disposed, recycled
 
Methods inherited from class org.norther.tammi.core.pool.RecyclableSupport
isDisposed, recycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.norther.tammi.core.pool.Recyclable
isDisposed, recycle
 

Constructor Detail

DefaultContextToolFilter.InternalTemplateContext

public DefaultContextToolFilter.InternalTemplateContext()
Constructs a new context.


DefaultContextToolFilter.InternalTemplateContext

public DefaultContextToolFilter.InternalTemplateContext(TemplateContext ctx)
Constructs a new context with a parent.

Parameters:
ctx - a parent context.
Method Detail

dispose

public void dispose()
Description copied from class: RecyclableSupport
Disposes the object by setting its disposed flag.

Specified by:
dispose in interface Recyclable
Overrides:
dispose in class DefaultTemplateContext

getContent

public Content getContent()
Description copied from interface: TemplateContext
Gets the content of this context.

Specified by:
getContent in interface TemplateContext
Overrides:
getContent in class DefaultTemplateContext
Returns:
the content.

remove

public Object remove(String key)
Description copied from interface: TemplateContext
Removes an object from the context.

Specified by:
remove in interface TemplateContext
Overrides:
remove in class DefaultTemplateContext
Parameters:
key - the key.
Returns:
the removed value.

clear

public void clear()
Description copied from interface: TemplateContext
Clears the context but not its parents.

Specified by:
clear in interface TemplateContext
Overrides:
clear in class DefaultTemplateContext

setContextToolFilterMBean

protected void setContextToolFilterMBean(MBeanReference<? extends ContextToolFilter> filter)
Description copied from class: DefaultTemplateContext
Sets the context tool filter of this context.

Overrides:
setContextToolFilterMBean in class DefaultTemplateContext
Parameters:
filter - the context tool filter reference.


Copyright © 2004 The Norther Organization. All rights reserved.