public final class LEAwareComponentHandler extends java.lang.Object implements ComponentHandler, org.apache.avalon.framework.activity.Disposable
| Modifier and Type | Field and Description |
|---|---|
private ComponentHandler |
m_componentHandler |
private org.apache.avalon.framework.context.Context |
m_context |
private LifecycleExtensionManager |
m_extManager |
| Constructor and Description |
|---|
LEAwareComponentHandler(ComponentHandler componentHandler,
LifecycleExtensionManager extManager,
org.apache.avalon.framework.context.Context context)
Creation of a new handler.
|
| Modifier and Type | Method and Description |
|---|---|
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
|
private final ComponentHandler m_componentHandler
private final LifecycleExtensionManager m_extManager
private final org.apache.avalon.framework.context.Context m_context
public LEAwareComponentHandler(ComponentHandler componentHandler, LifecycleExtensionManager extManager, org.apache.avalon.framework.context.Context context)
componentHandler - the handlerextManager - the extension managercontext - the contextpublic java.lang.Class getComponentClass()
getComponentClass in interface ComponentHandlerClass object for the componentpublic void prepareHandler()
throws java.lang.Exception
prepareHandler in interface ComponentHandlerjava.lang.Exception - if a handler preparation error occurspublic 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