org.apache.avalon.fortress.impl.handler
Class FactoryComponentHandler
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.FactoryComponentHandler
- All Implemented Interfaces:
- ComponentHandler, Disposable, Initializable, Instrumentable, LogEnabled, Serviceable
- public final class FactoryComponentHandler
- extends AbstractComponentHandler
The FactoryComponentHandler to make sure components are initialized
and destroyed correctly.
- Since:
- 4.0
- Version:
- CVS $Revision: 1.6 $ $Date: 2003/03/22 12:46:33 $
- Author:
- Avalon Development Team
Method Summary |
protected Object |
doGet()
Get a reference of the desired Component |
protected void |
doPut(Object component)
Return a reference of the desired Component |
Methods inherited from class org.apache.avalon.fortress.impl.handler.AbstractComponentHandler |
dispose, disposeComponent, doDispose, doPrepare, get, getComponentClass, initialize, newComponent, prepareHandler, put, service, toString |
FactoryComponentHandler
public FactoryComponentHandler()
doGet
protected Object doGet()
throws Exception
- Get a reference of the desired Component
- Specified by:
doGet
in class AbstractComponentHandler
- Returns:
- the service
- Throws:
Exception
- if arros occurs
doPut
protected void doPut(Object component)
- Return a reference of the desired Component
- Overrides:
doPut
in class AbstractComponentHandler
- Parameters:
component
- the compoent to return to the handler
Copyright © 2000-2002 Apache Avalon Project. All Rights Reserved.