public class ThreadSafeComponentHandler extends ComponentHandler
| Modifier and Type | Field and Description |
|---|---|
private boolean |
m_disposed
Deprecated.
|
private DefaultComponentFactory |
m_factory
Deprecated.
|
private boolean |
m_initialized
Deprecated.
|
private org.apache.avalon.framework.component.Component |
m_instance
Deprecated.
|
| Modifier | Constructor and Description |
|---|---|
protected |
ThreadSafeComponentHandler(org.apache.avalon.framework.component.Component component)
Deprecated.
Create a ComponentHandler that takes care of hiding the details of
whether a Component is ThreadSafe, Poolable, or SingleThreaded.
|
|
ThreadSafeComponentHandler(DefaultComponentFactory factory,
org.apache.avalon.framework.configuration.Configuration config)
Deprecated.
Create a ThreadSafeComponentHandler which manages a pool of Components
created by the specified factory object.
|
protected |
ThreadSafeComponentHandler(java.lang.String role,
java.lang.Class componentClass,
org.apache.avalon.framework.configuration.Configuration config,
org.apache.avalon.framework.component.ComponentManager manager,
org.apache.avalon.framework.context.Context context,
RoleManager roles,
LogkitLoggerManager logkit)
Deprecated.
Create a ComponentHandler that takes care of hiding the details of
whether a Component is ThreadSafe, Poolable, or SingleThreaded.
|
| Modifier and Type | Method and Description |
|---|---|
void |
dispose()
Deprecated.
Dispose of the ComponentHandler and any associated Pools and Factories.
|
protected org.apache.avalon.framework.component.Component |
doGet()
Deprecated.
Get a reference of the desired Component
|
protected void |
doPut(org.apache.avalon.framework.component.Component component)
Deprecated.
Return a reference of the desired Component
|
void |
initialize()
Deprecated.
Initialize the ComponentHandler.
|
canBeDisposed, get, getComponentHandler, getComponentHandler, getComponentHandler, getComponentHandler, getComponentHandler, putaddChildInstrumentable, addInstrument, getChildInstrumentables, getInstrumentableName, getInstruments, setInstrumentableNamegetLogkitLogger, setLoggerprivate org.apache.avalon.framework.component.Component m_instance
private final DefaultComponentFactory m_factory
private boolean m_initialized
private boolean m_disposed
protected ThreadSafeComponentHandler(java.lang.String role,
java.lang.Class componentClass,
org.apache.avalon.framework.configuration.Configuration config,
org.apache.avalon.framework.component.ComponentManager manager,
org.apache.avalon.framework.context.Context context,
RoleManager roles,
LogkitLoggerManager logkit)
throws java.lang.Exception
java.lang.Exceptionpublic ThreadSafeComponentHandler(DefaultComponentFactory factory, org.apache.avalon.framework.configuration.Configuration config) throws java.lang.Exception
factory - The factory object which is responsible for creating the components
managed by the ComponentHandler.config - The configuration to use to configure the pool.java.lang.Exceptionprotected ThreadSafeComponentHandler(org.apache.avalon.framework.component.Component component)
throws java.lang.Exception
java.lang.Exceptionpublic void initialize()
throws java.lang.Exception
java.lang.Exceptionprotected org.apache.avalon.framework.component.Component doGet()
throws java.lang.Exception
doGet in class ComponentHandlerComponent valuejava.lang.Exception - if an error occursprotected void doPut(org.apache.avalon.framework.component.Component component)
doPut in class ComponentHandlercomponent - a Component valuepublic void dispose()