|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.cocoon.core.container.handler.AbstractComponentHandler
org.apache.cocoon.core.container.handler.InstanceComponentHandler
A component handler for instances created outside the container.
| Field Summary |
| Fields inherited from class org.apache.cocoon.core.container.handler.AbstractComponentHandler |
disposed, logger |
| Constructor Summary | |
InstanceComponentHandler(Logger logger,
Object obj)
Creates a new ComponentHandler. |
|
| Method Summary | |
void |
dispose()
Dispose of the component handler and any associated Pools and Factories. |
protected Object |
doGet()
Concrete implementation of getting a component. |
protected void |
doInitialize()
|
protected void |
doPut(Object component)
Concrete implementation of putting back a component. |
boolean |
isSingleton()
Default here is to return false |
| Methods inherited from class org.apache.cocoon.core.container.handler.AbstractComponentHandler |
canBeDisposed, get, getComponentHandler, getComponentHandler, getInfo, initialize, put |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public InstanceComponentHandler(Logger logger,
Object obj)
| Method Detail |
public boolean isSingleton()
AbstractComponentHandlerfalse
isSingleton in interface ComponentHandlerisSingleton in class AbstractComponentHandler
protected Object doGet()
throws Exception
AbstractComponentHandler
doGet in class AbstractComponentHandlerException - if an error occurs
protected void doPut(Object component)
throws Exception
AbstractComponentHandler
doPut in class AbstractComponentHandlercomponent - a Component value
Exception - if an error occursprotected void doInitialize()
doInitialize in class AbstractComponentHandlerpublic void dispose()
ComponentHandler
dispose in interface ComponentHandlerdispose in class AbstractComponentHandler
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||