|
|||||||||||
| 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 ComponentHandlerException - if an error occurs
public void put(Object component)
throws Exception
ComponentHandler
put in interface ComponentHandlercomponent - a service
Exception - if an error occurspublic boolean isSingleton()
ComponentHandlerComponentHandler.get()
will return the same object.
isSingleton in interface ComponentHandlertrue if managed object is a singletonpublic boolean canBeDisposed()
ComponentHandlertrue if this component handler can safely be
disposed (i.e. none of the components it is handling are still
being used).
canBeDisposed in interface ComponentHandlertrue 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 ComponentHandlerExceptionpublic ComponentInfo getInfo()
ComponentHandler
getInfo in interface ComponentHandler
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||