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

java.lang.Object
  |
  +--org.apache.avalon.framework.logger.AbstractLoggable
        |
        +--org.apache.avalon.excalibur.component.ExcaliburComponentSelector
すべての実装インタフェース:
org.apache.avalon.framework.component.Component, org.apache.avalon.framework.component.ComponentSelector, org.apache.avalon.framework.component.Composable, 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, org.apache.avalon.framework.thread.ThreadSafe
直系の既知のサブクラス:
DefaultComponentSelector

public class ExcaliburComponentSelector
extends org.apache.avalon.framework.logger.AbstractLoggable
implements org.apache.avalon.framework.context.Contextualizable, org.apache.avalon.framework.component.ComponentSelector, org.apache.avalon.framework.component.Composable, org.apache.avalon.framework.configuration.Configurable, org.apache.avalon.framework.activity.Initializable, org.apache.avalon.framework.thread.ThreadSafe, org.apache.avalon.framework.activity.Disposable, RoleManageable, LogKitManageable

Default component selector for Avalon's components.

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

フィールドの概要
protected  org.apache.avalon.framework.context.Context m_context
          The application context for components
 
コンストラクタの概要
ExcaliburComponentSelector()
          Create the ComponentSelector
ExcaliburComponentSelector(java.lang.ClassLoader loader)
          Create the ComponentSelector with a Classloader
 
メソッドの概要
 void addComponent(java.lang.Object hint, java.lang.Class component, org.apache.avalon.framework.configuration.Configuration configuration)
          Add a new component to the manager.
 void addComponentInstance(java.lang.Object hint, org.apache.avalon.framework.component.Component instance)
          Add a static instance of a component to the manager.
 void compose(org.apache.avalon.framework.component.ComponentManager componentManager)
          Compose the ComponentSelector so that we know what the parent ComponentManager is.
 void configure(org.apache.avalon.framework.configuration.Configuration configuration)
          Default Configuration handler for ComponentSelector.
 void contextualize(org.apache.avalon.framework.context.Context context)
          Provide the application Context.
 void dispose()
          Properly dispose of all the ComponentHandlers.
 boolean hasComponent(java.lang.Object hint)
          Tests for existence of a component.
 void initialize()
          Properly initialize of the Child handlers.
 void release(org.apache.avalon.framework.component.Component component)
          Release the Component to the propper ComponentHandler.
 org.apache.avalon.framework.component.Component select(java.lang.Object hint)
          Return an instance of a component based on a hint.
 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
 

フィールドの詳細

m_context

protected org.apache.avalon.framework.context.Context m_context
The application context for components
コンストラクタの詳細

ExcaliburComponentSelector

public ExcaliburComponentSelector()
Create the ComponentSelector

ExcaliburComponentSelector

public ExcaliburComponentSelector(java.lang.ClassLoader loader)
Create the ComponentSelector with a Classloader
メソッドの詳細

contextualize

public void contextualize(org.apache.avalon.framework.context.Context context)
Provide the application Context.
定義:
インタフェース org.apache.avalon.framework.context.Contextualizable 内の contextualize

compose

public void compose(org.apache.avalon.framework.component.ComponentManager componentManager)
             throws org.apache.avalon.framework.component.ComponentException
Compose the ComponentSelector so that we know what the parent ComponentManager is.
定義:
インタフェース org.apache.avalon.framework.component.Composable 内の compose

initialize

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

hasComponent

public boolean hasComponent(java.lang.Object hint)
Tests for existence of a component.
定義:
インタフェース org.apache.avalon.framework.component.ComponentSelector 内の hasComponent

dispose

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

select

public org.apache.avalon.framework.component.Component select(java.lang.Object hint)
                                                       throws org.apache.avalon.framework.component.ComponentException
Return an instance of a component based on a hint. The Composable has already selected the role, so the only part left it to make sure the Component is handled.
定義:
インタフェース org.apache.avalon.framework.component.ComponentSelector 内の select

configure

public void configure(org.apache.avalon.framework.configuration.Configuration configuration)
               throws org.apache.avalon.framework.configuration.ConfigurationException
Default Configuration handler for ComponentSelector.
定義:
インタフェース 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 the Component to the propper ComponentHandler.
定義:
インタフェース org.apache.avalon.framework.component.ComponentSelector 内の release

addComponent

public void addComponent(java.lang.Object hint,
                         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.
パラメータ:
hint - the hint name for the new component.
component - the class of this component.
Configuration - the configuration for this component.

addComponentInstance

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


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