org.apache.avalon.excalibur.component
クラス ThreadSafeComponentHandler
java.lang.Object
|
+--org.apache.avalon.framework.logger.AbstractLoggable
|
+--org.apache.avalon.excalibur.component.ComponentHandler
|
+--org.apache.avalon.excalibur.component.ThreadSafeComponentHandler
- すべての実装インタフェース:
- org.apache.avalon.framework.activity.Disposable, org.apache.avalon.framework.activity.Initializable, org.apache.avalon.framework.logger.Loggable
- public class ThreadSafeComponentHandler
- extends ComponentHandler
The ThreadSafeComponentHandler to make sure components are initialized
and destroyed correctly.
- 導入されたバージョン:
- 4.0
- バージョン:
- CVS $Revision: 1.8 $ $Date: 2001/12/11 09:53:27 $
- 作成者:
- Berin Loritsch
コンストラクタの概要 |
protected |
ThreadSafeComponentHandler(java.lang.Class componentClass,
org.apache.avalon.framework.configuration.Configuration config,
org.apache.avalon.framework.component.ComponentManager manager,
org.apache.avalon.framework.context.Context context,
RoleManager roles,
LogKitManager logkit)
Create a ComponentHandler that takes care of hiding the details of
whether a Component is ThreadSafe, Poolable, or SingleThreaded.
|
protected |
ThreadSafeComponentHandler(org.apache.avalon.framework.component.Component component)
Create a ComponentHandler that takes care of hiding the details of
whether a Component is ThreadSafe, Poolable, or SingleThreaded.
|
メソッドの概要 |
void |
dispose()
Dispose of the ComponentHandler and any associated Pools and Factories. |
org.apache.avalon.framework.component.Component |
get()
Get a reference of the desired Component |
void |
initialize()
Initialize the ComponentHandler. |
void |
put(org.apache.avalon.framework.component.Component component)
Return a reference of the desired Component |
void |
setLogger(org.apache.log.Logger log)
|
クラス org.apache.avalon.framework.logger.AbstractLoggable から継承したメソッド |
getLogger, setupLogger, setupLogger, setupLogger |
クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ThreadSafeComponentHandler
protected ThreadSafeComponentHandler(java.lang.Class componentClass,
org.apache.avalon.framework.configuration.Configuration config,
org.apache.avalon.framework.component.ComponentManager manager,
org.apache.avalon.framework.context.Context context,
RoleManager roles,
LogKitManager logkit)
throws java.lang.Exception
- Create a ComponentHandler that takes care of hiding the details of
whether a Component is ThreadSafe, Poolable, or SingleThreaded.
It falls back to SingleThreaded if not specified.
ThreadSafeComponentHandler
protected ThreadSafeComponentHandler(org.apache.avalon.framework.component.Component component)
throws java.lang.Exception
- Create a ComponentHandler that takes care of hiding the details of
whether a Component is ThreadSafe, Poolable, or SingleThreaded.
It falls back to SingleThreaded if not specified.
setLogger
public void setLogger(org.apache.log.Logger log)
- オーバーライド:
- クラス
org.apache.avalon.framework.logger.AbstractLoggable
内の setLogger
initialize
public void initialize()
throws java.lang.Exception
- Initialize the ComponentHandler.
get
public final org.apache.avalon.framework.component.Component get()
throws java.lang.Exception
- Get a reference of the desired Component
- オーバーライド:
- クラス
ComponentHandler
内の get
put
public void put(org.apache.avalon.framework.component.Component component)
- Return a reference of the desired Component
- オーバーライド:
- クラス
ComponentHandler
内の put
dispose
public void dispose()
- Dispose of the ComponentHandler and any associated Pools and Factories.
"Copyright ? 2001 Apache Jakarta Project. All Rights Reserved."