|
|||||||||||
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.excalibur.instrument.AbstractLogEnabledInstrumentable org.apache.avalon.fortress.impl.handler.AbstractComponentHandler org.apache.avalon.fortress.impl.handler.ThreadSafeComponentHandler
The ThreadSafeComponentHandler to make sure components are initialized and destroyed correctly.
Field Summary |
Fields inherited from class org.apache.avalon.fortress.impl.handler.AbstractComponentHandler |
m_disposed, m_factory, m_logger, m_loggerManager, m_prepared |
Fields inherited from interface org.apache.excalibur.instrument.Instrumentable |
EMPTY_INSTRUMENT_ARRAY, EMPTY_INSTRUMENTABLE_ARRAY |
Constructor Summary | |
ThreadSafeComponentHandler()
|
Method Summary | |
protected void |
doDispose()
Dispose of the ComponentHandler and any associated Pools and Factories. |
protected java.lang.Object |
doGet()
Return instance for a get. |
protected void |
doPrepare()
Initialize the ComponentHandler. |
Methods inherited from class org.apache.avalon.fortress.impl.handler.AbstractComponentHandler |
dispose, disposeComponent, doPut, get, getComponentClass, initialize, newComponent, prepareHandler, put, service, toString |
Methods inherited from class org.apache.excalibur.instrument.AbstractLogEnabledInstrumentable |
addChildInstrumentable, addInstrument, getChildInstrumentables, getInstrumentableName, getInstruments, setInstrumentableName |
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, wait, wait, wait |
Constructor Detail |
public ThreadSafeComponentHandler()
Method Detail |
protected void doPrepare() throws java.lang.Exception
doPrepare
in class AbstractComponentHandler
java.lang.Exception
- if a handler preparation error occursprotected java.lang.Object doGet() throws java.lang.Exception
doGet
in class AbstractComponentHandler
java.lang.Exception
- if a handler access error occursprotected void doDispose()
doDispose
in class AbstractComponentHandler
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |