|
||||||||||
| 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.
| Field Summary | |
|---|---|
private ComponentHandler |
m_componentHandler
|
private org.apache.avalon.framework.context.Context |
m_context
|
private LifecycleExtensionManager |
m_extManager
|
| 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. |
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 |
| Field Detail |
|---|
private final ComponentHandler m_componentHandler
private final LifecycleExtensionManager m_extManager
private final org.apache.avalon.framework.context.Context m_context
| 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 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 org.apache.avalon.framework.activity.Disposablepublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||