|
||||||||||
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.tool.GlobalTool
public abstract class GlobalTool
An abstract global context tool implementing the ContextBindingListener interface and pooling itself when it is unbound from the context.
Constructor Summary | |
---|---|
GlobalTool()
Constructs a new tool. |
Method Summary | |
---|---|
Object |
clone()
|
void |
dispose()
Disposes the object by setting its disposed flag. |
protected TemplateContext |
getContext()
Gets the target context. |
protected ContextToolFilter |
getContextToolFilter()
Gets the context tool filter if available. |
protected MBeanServer |
getMBeanServer()
Gets the current MBean server if available. |
protected boolean |
isBound()
Gets the bound state. |
void |
nop()
A no-operation method to discard return values from any tool extension. |
String |
toString()
Converts the tool into a string. |
void |
valueBound(ContextBindingEvent event)
Notifies the object that it is being bound to a context. |
void |
valueUnbound(ContextBindingEvent event)
Notifies the object that it is being unbound from a context. |
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 |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.norther.tammi.core.pool.Recyclable |
---|
isDisposed, recycle |
Constructor Detail |
---|
public GlobalTool()
Method Detail |
---|
public Object clone()
clone
in class Object
public void dispose()
RecyclableSupport
dispose
in interface Recyclable
dispose
in class RecyclableSupport
public void nop()
public String toString()
toString
in class Object
public void valueBound(ContextBindingEvent event)
ContextBindingListener
valueBound
in interface ContextBindingListener
event
- the binding event.public void valueUnbound(ContextBindingEvent event)
ContextBindingListener
valueUnbound
in interface ContextBindingListener
event
- the binding event.protected TemplateContext getContext()
protected boolean isBound()
protected MBeanServer getMBeanServer()
protected ContextToolFilter getContextToolFilter()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |