org.apache.avalon.excalibur.component
クラス ExcaliburComponentManager

java.lang.Object
  |
  +--org.apache.avalon.framework.logger.AbstractLoggable
        |
        +--org.apache.avalon.excalibur.component.ExcaliburComponentManager
すべての実装インタフェース:
org.apache.avalon.framework.component.ComponentManager, org.apache.avalon.framework.configuration.Configurable, org.apache.avalon.framework.context.Contextualizable, org.apache.avalon.framework.activity.Disposable, org.apache.avalon.framework.activity.Initializable, org.apache.avalon.framework.logger.Loggable, LogKitManageable, RoleManageable
直系の既知のサブクラス:
DefaultComponentManager

public class ExcaliburComponentManager
extends org.apache.avalon.framework.logger.AbstractLoggable
implements org.apache.avalon.framework.component.ComponentManager, org.apache.avalon.framework.configuration.Configurable, org.apache.avalon.framework.context.Contextualizable, org.apache.avalon.framework.activity.Initializable, org.apache.avalon.framework.activity.Disposable, RoleManageable, LogKitManageable

Default component manager for Avalon's components.

導入されたバージョン:
4.0
バージョン:
CVS $Revision: 1.16 $ $Date: 2002/01/30 16:49:04 $
作成者:
Berin Loritsch, Paul Russell

コンストラクタの概要
ExcaliburComponentManager()
          Create the ComponentManager
ExcaliburComponentManager(java.lang.ClassLoader loader)
          Create the ComponentManager with a Classloader
ExcaliburComponentManager(org.apache.avalon.framework.component.ComponentManager manager)
          Create the ComponentManager with a parent ComponentManager
ExcaliburComponentManager(org.apache.avalon.framework.component.ComponentManager manager, java.lang.ClassLoader loader)
          Create the ComponentManager with a Classloader and parent ComponentManager
 
メソッドの概要
 void addComponent(java.lang.String role, java.lang.Class component, org.apache.avalon.framework.configuration.Configuration configuration)
          Add a new component to the manager.
 void addComponentInstance(java.lang.String role, org.apache.avalon.framework.component.Component instance)
          Add a static instance of a component to the manager.
 void configure(org.apache.avalon.framework.configuration.Configuration configuration)
          Configure the ComponentManager.
 void contextualize(org.apache.avalon.framework.context.Context context)
          Set up the Component's Context.
 void dispose()
          Properly dispose of the Child handlers.
 boolean hasComponent(java.lang.String role)
          Tests for existence of a component.
 void initialize()
          Properly initialize of the Child handlers.
 org.apache.avalon.framework.component.Component lookup(java.lang.String role)
          Return an instance of a component based on a Role.
 void release(org.apache.avalon.framework.component.Component component)
          Release a Component.
 void setLogKitManager(LogKitManager logkit)
          Configure the LogKitManager
 void setRoleManager(RoleManager roles)
          Configure the RoleManager
 
クラス org.apache.avalon.framework.logger.AbstractLoggable から継承したメソッド
getLogger, setLogger, setupLogger, setupLogger, setupLogger
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

ExcaliburComponentManager

public ExcaliburComponentManager()
Create the ComponentManager

ExcaliburComponentManager

public ExcaliburComponentManager(java.lang.ClassLoader loader)
Create the ComponentManager with a Classloader

ExcaliburComponentManager

public ExcaliburComponentManager(org.apache.avalon.framework.component.ComponentManager manager,
                                 java.lang.ClassLoader loader)
Create the ComponentManager with a Classloader and parent ComponentManager

ExcaliburComponentManager

public ExcaliburComponentManager(org.apache.avalon.framework.component.ComponentManager manager)
Create the ComponentManager with a parent ComponentManager
メソッドの詳細

contextualize

public void contextualize(org.apache.avalon.framework.context.Context context)
Set up the Component's Context.
定義:
インタフェース org.apache.avalon.framework.context.Contextualizable 内の contextualize

hasComponent

public boolean hasComponent(java.lang.String role)
Tests for existence of a component. Please note that this test is for existing components, and a component will not be created to satisfy the request.
定義:
インタフェース org.apache.avalon.framework.component.ComponentManager 内の hasComponent

initialize

public void initialize()
                throws java.lang.Exception
Properly initialize of the Child handlers.
定義:
インタフェース org.apache.avalon.framework.activity.Initializable 内の initialize

dispose

public void dispose()
Properly dispose of the Child handlers.
定義:
インタフェース org.apache.avalon.framework.activity.Disposable 内の dispose

lookup

public org.apache.avalon.framework.component.Component lookup(java.lang.String role)
                                                       throws org.apache.avalon.framework.component.ComponentException
Return an instance of a component based on a Role. The Role is usually the Interface's Fully Qualified Name(FQN)--unless there are multiple Components for the same Role. In that case, the Role's FQN is appended with "Selector", and we return a ComponentSelector.
定義:
インタフェース org.apache.avalon.framework.component.ComponentManager 内の lookup

configure

public void configure(org.apache.avalon.framework.configuration.Configuration configuration)
               throws org.apache.avalon.framework.configuration.ConfigurationException
Configure the ComponentManager.
定義:
インタフェース org.apache.avalon.framework.configuration.Configurable 内の configure

setRoleManager

public void setRoleManager(RoleManager roles)
Configure the RoleManager
定義:
インタフェース RoleManageable 内の setRoleManager

setLogKitManager

public void setLogKitManager(LogKitManager logkit)
Configure the LogKitManager
定義:
インタフェース LogKitManageable 内の setLogKitManager

release

public void release(org.apache.avalon.framework.component.Component component)
Release a Component. This implementation makes sure it has a handle on the propper ComponentHandler, and let's the ComponentHandler take care of the actual work.
定義:
インタフェース org.apache.avalon.framework.component.ComponentManager 内の release

addComponent

public void addComponent(java.lang.String role,
                         java.lang.Class component,
                         org.apache.avalon.framework.configuration.Configuration configuration)
                  throws org.apache.avalon.framework.component.ComponentException
Add a new component to the manager.
パラメータ:
role - the role name for the new component.
component - the class of this component.
Configuration - the configuration for this component.

addComponentInstance

public void addComponentInstance(java.lang.String role,
                                 org.apache.avalon.framework.component.Component instance)
Add a static instance of a component to the manager.
パラメータ:
role - the role name for the component.
instance - the instance of the component.


"Copyright ? 2001 Apache Jakarta Project. All Rights Reserved."