|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This class acts like a Factory to instantiate the correct version of the component handler that you need.
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. |
Method Detail |
public Object get() throws Exception
Exception
- if an error occurspublic void put(Object component) throws Exception
component
- a service
Exception
- if an error occurspublic boolean isSingleton()
get()
will return the same object.
true
if managed object is a singletonpublic boolean canBeDisposed()
true
if this component handler can safely be
disposed (i.e. none of the components it is handling are still
being used).
true
if this component handler can safely be
disposed; false
otherwisepublic void dispose()
public void initialize() throws Exception
Exception
public ComponentInfo getInfo()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |