|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.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 context| Method Detail |
public java.lang.Class getComponentClass()
getComponentClass in interface ComponentHandlerClass object for the component
public void prepareHandler()
throws java.lang.Exception
prepareHandler in interface ComponentHandlerjava.lang.Exception - if a handler preparation error occurs
public java.lang.Object get()
throws java.lang.Exception
get in interface ComponentHandlerjava.lang.Exception - if unable to aquire objectpublic void put(java.lang.Object component)
put in interface ComponentHandlercomponent - the componentpublic void dispose()
dispose in interface Disposablepublic java.lang.String toString()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||