|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.avalon.fortress.impl.handler.LEAwareComponentHandler
A ComponentHandler that delegates to underlying handler but also calls relevent Lifecycle Extension handlers at the right time.
Constructor Summary | |
LEAwareComponentHandler(ComponentHandler componentHandler,
LifecycleExtensionManager extManager,
Context context)
Creation of a new handler. |
Method Summary | |
void |
dispose()
Disposal of the handler. |
java.lang.Object |
get()
Retrieve the object and execute access extensions. |
java.lang.Class |
getComponentClass()
Return the component's class that this handler is trying to create. |
void |
prepareHandler()
Prepare the handler. |
void |
put(java.lang.Object component)
Return component and execute Release extensions. |
java.lang.String |
toString()
Human readable string message |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public LEAwareComponentHandler(ComponentHandler componentHandler, LifecycleExtensionManager extManager, Context context)
componentHandler
- the handlerextManager
- the extension managercontext
- the contextMethod Detail |
public java.lang.Class getComponentClass()
getComponentClass
in interface ComponentHandler
Class
object for the componentpublic void prepareHandler() throws java.lang.Exception
prepareHandler
in interface ComponentHandler
java.lang.Exception
- if a handler preparation error occurspublic java.lang.Object get() throws java.lang.Exception
get
in interface ComponentHandler
java.lang.Exception
- if unable to aquire objectpublic void put(java.lang.Object component)
put
in interface ComponentHandler
component
- the componentpublic void dispose()
dispose
in interface Disposable
public java.lang.String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |