|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.cocoon.core.container.handler.LazyHandler
Constructor Summary | |
LazyHandler(String role,
String className,
Configuration configuration,
ComponentEnvironment environment)
|
Method Summary | |
boolean |
canBeDisposed()
Returns true if this component handler can safely be
disposed (i.e. none of the components it is handling are still
being used). |
void |
dispose()
Dispose of the component handler and any associated Pools and Factories. |
Object |
get()
Get an instance of the type of component handled by this handler. |
ComponentInfo |
getInfo()
Get the service metadata for this handler |
void |
initialize()
Initialize this handler |
boolean |
isSingleton()
Indicates if this handler manages a single object, i.e. all calls to get()
will return the same object. |
void |
put(Object component)
Put back an instance of the type of component handled by this handler. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public LazyHandler(String role, String className, Configuration configuration, ComponentEnvironment environment)
Method Detail |
public Object get() throws Exception
ComponentHandler
get
in interface ComponentHandler
Exception
- if an error occurspublic void put(Object component) throws Exception
ComponentHandler
put
in interface ComponentHandler
component
- a service
Exception
- if an error occurspublic boolean isSingleton()
ComponentHandler
ComponentHandler.get()
will return the same object.
isSingleton
in interface ComponentHandler
true
if managed object is a singletonpublic boolean canBeDisposed()
ComponentHandler
true
if this component handler can safely be
disposed (i.e. none of the components it is handling are still
being used).
canBeDisposed
in interface ComponentHandler
true
if this component handler can safely be
disposed; false
otherwisepublic void dispose()
ComponentHandler
dispose
in interface ComponentHandler
public void initialize() throws Exception
ComponentHandler
initialize
in interface ComponentHandler
Exception
public ComponentInfo getInfo()
ComponentHandler
getInfo
in interface ComponentHandler
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |