|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.norther.tammi.core.pool.RecyclableSupport org.norther.tammi.core.pool.PoolableSupport org.norther.tammi.spray.engine.context.DefaultTemplateContext org.norther.tammi.spray.engine.DefaultContextToolFilter.InternalTemplateContext
public static class DefaultContextToolFilter.InternalTemplateContext
An internal implementation of TemplateContext.
The class is public to enable pooling.
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 |
---|
public DefaultContextToolFilter.InternalTemplateContext()
public DefaultContextToolFilter.InternalTemplateContext(TemplateContext ctx)
ctx
- a parent context.Method Detail |
---|
public void dispose()
RecyclableSupport
dispose
in interface Recyclable
dispose
in class DefaultTemplateContext
public Content getContent()
TemplateContext
getContent
in interface TemplateContext
getContent
in class DefaultTemplateContext
public Object remove(String key)
TemplateContext
remove
in interface TemplateContext
remove
in class DefaultTemplateContext
key
- the key.
public void clear()
TemplateContext
clear
in interface TemplateContext
clear
in class DefaultTemplateContext
protected void setContextToolFilterMBean(MBeanReference<? extends ContextToolFilter> filter)
DefaultTemplateContext
setContextToolFilterMBean
in class DefaultTemplateContext
filter
- the context tool filter reference.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |