|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.avalon.excalibur.component.AbstractDualLogEnabled
org.apache.avalon.excalibur.component.ExcaliburComponentManager
public class ExcaliburComponentManager
Default component manager for Avalon's components.
| Field Summary | |
|---|---|
static java.lang.String |
INSTRUMENTABLE_NAME
Deprecated. Instrumentable name used to represent the component-manager. |
private java.util.Map |
m_componentHandlers
Deprecated. Used to map roles to ComponentHandlers. |
private java.util.Map |
m_componentMapping
Deprecated. Static component mapping handlers. |
private org.apache.avalon.framework.context.Context |
m_context
Deprecated. The application context for components |
private boolean |
m_disposed
Deprecated. Is the Manager disposed or not? |
private boolean |
m_initialized
Deprecated. Is the Manager initialized? |
private java.lang.String |
m_instrumentableName
Deprecated. Instrumentable Name assigned to this Instrumentable |
private org.apache.excalibur.instrument.InstrumentManager |
m_instrumentManager
Deprecated. Instrument Manager being used by the Component Manager. |
private java.lang.ClassLoader |
m_loader
Deprecated. The classloader used for this system. |
private LogkitLoggerManager |
m_logkit
Deprecated. LogKitManager. |
private java.util.List |
m_newComponentHandlers
Deprecated. added component handlers before initialization to maintain the order of initialization |
private org.apache.avalon.framework.component.ComponentManager |
m_parentManager
Deprecated. The parent ComponentLocator |
private RoleManager |
m_roles
Deprecated. RoleInfos. |
| Fields inherited from interface org.apache.excalibur.instrument.Instrumentable |
|---|
EMPTY_INSTRUMENT_ARRAY, EMPTY_INSTRUMENTABLE_ARRAY |
| Constructor Summary | |
|---|---|
ExcaliburComponentManager()
Deprecated. Create a new ExcaliburComponentManager. |
|
ExcaliburComponentManager(java.lang.ClassLoader loader)
Deprecated. Create a new ExcaliburComponentManager with uses a specific Classloader. |
|
ExcaliburComponentManager(org.apache.avalon.framework.component.ComponentManager manager)
Deprecated. Create the ComponentLocator with a parent ComponentLocator |
|
ExcaliburComponentManager(org.apache.avalon.framework.component.ComponentManager manager,
java.lang.ClassLoader loader)
Deprecated. Create the ComponentLocator with a Classloader and parent ComponentLocator |
|
| Method Summary | |
|---|---|
void |
addComponent(java.lang.String role,
java.lang.Class component,
org.apache.avalon.framework.configuration.Configuration configuration)
Deprecated. Add a new component to the manager. |
void |
addComponentInstance(java.lang.String role,
org.apache.avalon.framework.component.Component instance)
Deprecated. Add a static instance of a component to the manager. |
void |
configure(org.apache.avalon.framework.configuration.Configuration configuration)
Deprecated. Configure the ComponentLocator. |
void |
contextualize(org.apache.avalon.framework.context.Context context)
Deprecated. Set up the Component's Context. |
void |
dispose()
Deprecated. Properly dispose of the Child handlers. |
org.apache.excalibur.instrument.Instrumentable[] |
getChildInstrumentables()
Deprecated. Any Object which implements Instrumentable can also make use of other Instrumentable child objects. |
protected ComponentHandler |
getComponentHandler(java.lang.String role,
java.lang.Class componentClass,
org.apache.avalon.framework.configuration.Configuration configuration,
org.apache.avalon.framework.context.Context context,
RoleManager roleManager,
LogkitLoggerManager logkitManager)
Deprecated. Obtain a new ComponentHandler for the specified component. |
java.lang.String |
getInstrumentableName()
Deprecated. Gets the name of the Instrumentable. |
org.apache.excalibur.instrument.Instrument[] |
getInstruments()
Deprecated. Obtain a reference to all the Instruments that the Instrumentable object wishes to expose. |
boolean |
hasComponent(java.lang.String role)
Deprecated. Tests for existence of a component. |
void |
initialize()
Deprecated. Properly initialize of the Child handlers. |
org.apache.avalon.framework.component.Component |
lookup(java.lang.String role)
Deprecated. Return an instance of a component based on a Role. |
void |
release(org.apache.avalon.framework.component.Component component)
Deprecated. Release a Component. |
private void |
removeDisposedHandlers(java.util.List disposed)
Deprecated. |
void |
setInstrumentableName(java.lang.String name)
Deprecated. Sets the name for the Instrumentable. |
void |
setInstrumentManager(org.apache.excalibur.instrument.InstrumentManager instrumentManager)
Deprecated. Sets the InstrumentManager for child components. |
void |
setLoggerManager(org.apache.avalon.excalibur.logger.LoggerManager logkit)
Deprecated. Configure the LoggerManager. |
void |
setLogKitManager(org.apache.avalon.excalibur.logger.LogKitManager logkit)
Deprecated. Configure the LogKitManager |
void |
setRoleManager(RoleManager roles)
Deprecated. Configure the RoleManager |
| Methods inherited from class org.apache.avalon.excalibur.component.AbstractDualLogEnabled |
|---|
getLogkitLogger, setLogger |
| Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled |
|---|
enableLogging, getLogger, setupLogger, setupLogger, setupLogger |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String INSTRUMENTABLE_NAME
private final org.apache.avalon.framework.component.ComponentManager m_parentManager
private final java.lang.ClassLoader m_loader
private org.apache.avalon.framework.context.Context m_context
private final java.util.Map m_componentMapping
private final java.util.Map m_componentHandlers
private final java.util.List m_newComponentHandlers
private RoleManager m_roles
private LogkitLoggerManager m_logkit
private boolean m_disposed
private boolean m_initialized
private org.apache.excalibur.instrument.InstrumentManager m_instrumentManager
private java.lang.String m_instrumentableName
| Constructor Detail |
|---|
public ExcaliburComponentManager()
public ExcaliburComponentManager(java.lang.ClassLoader loader)
public ExcaliburComponentManager(org.apache.avalon.framework.component.ComponentManager manager,
java.lang.ClassLoader loader)
public ExcaliburComponentManager(org.apache.avalon.framework.component.ComponentManager manager)
| Method Detail |
|---|
public org.apache.avalon.framework.component.Component lookup(java.lang.String role)
throws org.apache.avalon.framework.component.ComponentException
lookup in interface org.apache.avalon.framework.component.ComponentManagerorg.apache.avalon.framework.component.ComponentExceptionpublic boolean hasComponent(java.lang.String role)
hasComponent in interface org.apache.avalon.framework.component.ComponentManagerpublic void release(org.apache.avalon.framework.component.Component component)
release in interface org.apache.avalon.framework.component.ComponentManager
public void configure(org.apache.avalon.framework.configuration.Configuration configuration)
throws org.apache.avalon.framework.configuration.ConfigurationException
configure in interface org.apache.avalon.framework.configuration.Configurableorg.apache.avalon.framework.configuration.ConfigurationExceptionpublic void contextualize(org.apache.avalon.framework.context.Context context)
contextualize in interface org.apache.avalon.framework.context.Contextualizable
public void initialize()
throws java.lang.Exception
initialize in interface org.apache.avalon.framework.activity.Initializablejava.lang.Exceptionpublic void dispose()
dispose in interface org.apache.avalon.framework.activity.Disposablepublic void setRoleManager(RoleManager roles)
setRoleManager in interface RoleManageablepublic void setLogKitManager(org.apache.avalon.excalibur.logger.LogKitManager logkit)
setLogKitManager in interface org.apache.avalon.excalibur.logger.LogKitManageablepublic void setInstrumentManager(org.apache.excalibur.instrument.InstrumentManager instrumentManager)
setInstrumentManager in interface org.apache.excalibur.instrument.InstrumentManageableinstrumentManager - The InstrumentManager for the component to use.public void setInstrumentableName(java.lang.String name)
This value may be set by a parent Instrumentable, or by the InstrumentManager using the value of the 'instrumentable' attribute in the configuration of the component.
setInstrumentableName in interface org.apache.excalibur.instrument.Instrumentablename - The name used to identify a Instrumentable.public java.lang.String getInstrumentableName()
getInstrumentableName in interface org.apache.excalibur.instrument.Instrumentablepublic org.apache.excalibur.instrument.Instrument[] getInstruments()
getInstruments in interface org.apache.excalibur.instrument.Instrumentablepublic org.apache.excalibur.instrument.Instrumentable[] getChildInstrumentables()
getChildInstrumentables in interface org.apache.excalibur.instrument.Instrumentableprivate void removeDisposedHandlers(java.util.List disposed)
public void setLoggerManager(org.apache.avalon.excalibur.logger.LoggerManager logkit)
setLoggerManager in interface org.apache.avalon.excalibur.logger.LoggerManageable
protected ComponentHandler getComponentHandler(java.lang.String role,
java.lang.Class componentClass,
org.apache.avalon.framework.configuration.Configuration configuration,
org.apache.avalon.framework.context.Context context,
RoleManager roleManager,
LogkitLoggerManager logkitManager)
throws java.lang.Exception
componentClass - Class of the component for which the handle is
being requested.configuration - The configuration for this component.context - The current context object.roleManager - The current RoleManager.logkitManager - The current LogKitManager.
java.lang.Exception - If there were any problems obtaining a ComponentHandler
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
role - the role name for the new component.component - the class of this component.configuration - the configuration for this component.
org.apache.avalon.framework.component.ComponentException
public void addComponentInstance(java.lang.String role,
org.apache.avalon.framework.component.Component instance)
role - the role name for the component.instance - the instance of the component.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||