|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.avalon.framework.logger.AbstractLogEnabled org.apache.avalon.excalibur.component.AbstractDualLogEnabled org.apache.avalon.excalibur.component.AbstractDualLogEnabledInstrumentable org.apache.avalon.excalibur.component.ComponentHandler org.apache.avalon.excalibur.component.ThreadSafeComponentHandler
The ThreadSafeComponentHandler to make sure components are initialized and destroyed correctly.
Field Summary |
Fields inherited from interface org.apache.excalibur.instrument.Instrumentable |
EMPTY_INSTRUMENT_ARRAY, EMPTY_INSTRUMENTABLE_ARRAY |
Constructor Summary | |
protected |
ThreadSafeComponentHandler(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,
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,
Configuration config,
ComponentManager manager,
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. |
Method Summary | |
void |
dispose()
Deprecated. Dispose of the ComponentHandler and any associated Pools and Factories. |
protected Component |
doGet()
Deprecated. Get a reference of the desired Component |
protected void |
doPut(Component component)
Deprecated. Return a reference of the desired Component |
void |
initialize()
Deprecated. Initialize the ComponentHandler. |
Methods inherited from class org.apache.avalon.excalibur.component.ComponentHandler |
canBeDisposed, get, getComponentHandler, getComponentHandler, getComponentHandler, getComponentHandler, getComponentHandler, put |
Methods inherited from class org.apache.avalon.excalibur.component.AbstractDualLogEnabledInstrumentable |
addChildInstrumentable, addInstrument, getChildInstrumentables, getInstrumentableName, getInstruments, setInstrumentableName |
Methods inherited from class org.apache.avalon.excalibur.component.AbstractDualLogEnabled |
getLogkitLogger, setLogger |
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled |
enableLogging, getLogger, setupLogger, setupLogger, setupLogger |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
protected ThreadSafeComponentHandler(java.lang.String role, java.lang.Class componentClass, Configuration config, ComponentManager manager, Context context, RoleManager roles, LogkitLoggerManager logkit) throws java.lang.Exception
public ThreadSafeComponentHandler(DefaultComponentFactory factory, 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.protected ThreadSafeComponentHandler(Component component) throws java.lang.Exception
Method Detail |
public void initialize() throws java.lang.Exception
java.lang.Exception
- if an error occursprotected Component doGet() throws java.lang.Exception
doGet
in class ComponentHandler
Component
value
java.lang.Exception
- if an error occursprotected void doPut(Component component)
doPut
in class ComponentHandler
component
- a Component
valuepublic void dispose()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |