|
|||||||||||
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()
AbstractComponentHandler
false
isSingleton
in interface ComponentHandler
isSingleton
in class AbstractComponentHandler
protected Object doGet() throws Exception
AbstractComponentHandler
doGet
in class AbstractComponentHandler
Exception
- if an error occursprotected void doPut(Object component) throws Exception
AbstractComponentHandler
doPut
in class AbstractComponentHandler
component
- a Component
value
Exception
- if an error occursprotected void doInitialize()
doInitialize
in class AbstractComponentHandler
public void dispose()
ComponentHandler
dispose
in interface ComponentHandler
dispose
in class AbstractComponentHandler
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |