|
||||||||||
| 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
public final class 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,
org.apache.avalon.framework.context.Context context)
Creation of a new handler. |
|
| Method Summary | |
|---|---|
void |
dispose()
Disposal of the handler. |
Object |
get()
Retrieve the object and execute access extensions. |
Class |
getComponentClass()
Return the component's class that this handler is trying to create. |
void |
prepareHandler()
Prepare the handler. |
void |
put(Object component)
Return component and execute Release extensions. |
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,
org.apache.avalon.framework.context.Context context)
componentHandler - the handlerextManager - the extension managercontext - the context| Method Detail |
|---|
public Class getComponentClass()
getComponentClass in interface ComponentHandlerClass object for the component
public void prepareHandler()
throws Exception
prepareHandler in interface ComponentHandlerException - if a handler preparation error occurs
public Object get()
throws Exception
get in interface ComponentHandlerException - if unable to aquire objectpublic void put(Object component)
put in interface ComponentHandlercomponent - the componentpublic void dispose()
dispose in interface org.apache.avalon.framework.activity.Disposablepublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||