|
||||||||||
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 contextMethod Detail |
---|
public Class getComponentClass()
getComponentClass
in interface ComponentHandler
Class
object for the componentpublic void prepareHandler() throws Exception
prepareHandler
in interface ComponentHandler
Exception
- if a handler preparation error occurspublic Object get() throws Exception
get
in interface ComponentHandler
Exception
- if unable to aquire objectpublic void put(Object component)
put
in interface ComponentHandler
component
- the componentpublic void dispose()
dispose
in interface org.apache.avalon.framework.activity.Disposable
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |