|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.excalibur.instrument.AbstractLogEnabledInstrumentable
org.apache.avalon.fortress.impl.handler.AbstractComponentHandler
org.apache.avalon.fortress.impl.handler.PerThreadComponentHandler
The PerThreadComponentHandler implements a singleton with a slight difference: one single instance per thread.
| 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 | |
PerThreadComponentHandler()
|
|
| Method Summary | |
protected void |
doDispose()
Dispose handler specific resources. |
protected java.lang.Object |
doGet()
Get a reference of the desired Component |
void |
initialize()
Initialize the component. |
| Methods inherited from class org.apache.avalon.fortress.impl.handler.AbstractComponentHandler |
dispose, disposeComponent, doPrepare, doPut, get, getComponentClass, 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 PerThreadComponentHandler()
| Method Detail |
public void initialize()
throws java.lang.Exception
Initializable
initialize in interface Initializableinitialize in class AbstractComponentHandlerjava.lang.Exception
protected java.lang.Object doGet()
throws java.lang.Exception
doGet in class AbstractComponentHandlerjava.lang.Exception - if unable to aquire serviceprotected void doDispose()
AbstractComponentHandler
doDispose in class AbstractComponentHandler
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||