org.apache.avalon.fortress.impl.handler
Class ThreadSafeComponentHandler
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
- All Implemented Interfaces:
- ComponentHandler, Disposable, Initializable, Instrumentable, LogEnabled, Serviceable
- public final class ThreadSafeComponentHandler
- extends AbstractComponentHandler
The ThreadSafeComponentHandler to make sure components are initialized
and destroyed correctly.
- Since:
- 4.0
- Version:
- CVS $Revision: 1.5 $ $Date: 2003/03/22 12:46:33 $
- Author:
- Avalon Development Team
Method Summary |
protected void |
doDispose()
Dispose of the ComponentHandler and any associated Pools and Factories. |
protected 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 |
ThreadSafeComponentHandler
public ThreadSafeComponentHandler()
doPrepare
protected void doPrepare()
throws Exception
- Initialize the ComponentHandler.
- Overrides:
doPrepare
in class AbstractComponentHandler
- Throws:
Exception
- if a handler preparation error occurs
doGet
protected Object doGet()
throws Exception
- Return instance for a get.
- Specified by:
doGet
in class AbstractComponentHandler
- Returns:
- the instance
- Throws:
Exception
- if a handler access error occurs
doDispose
protected void doDispose()
- Dispose of the ComponentHandler and any associated Pools and Factories.
- Overrides:
doDispose
in class AbstractComponentHandler
Copyright © 2000-2002 Apache Avalon Project. All Rights Reserved.