|
||||||||||
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.ExcaliburComponentSelector
public class ExcaliburComponentSelector
Default component selector for Avalon's components.
Field Summary | |
---|---|
protected org.apache.avalon.framework.context.Context |
m_context
Deprecated. The application context for components |
Fields inherited from interface org.apache.excalibur.instrument.Instrumentable |
---|
EMPTY_INSTRUMENT_ARRAY, EMPTY_INSTRUMENTABLE_ARRAY |
Constructor Summary | |
---|---|
ExcaliburComponentSelector()
Deprecated. Create the ComponentSelector |
|
ExcaliburComponentSelector(java.lang.ClassLoader loader)
Deprecated. Create the ComponentSelector with a Classloader |
Method Summary | |
---|---|
void |
addComponent(java.lang.Object hint,
java.lang.Class component,
org.apache.avalon.framework.configuration.Configuration configuration)
Deprecated. Add a new component to the manager. |
void |
addComponentInstance(java.lang.Object hint,
org.apache.avalon.framework.component.Component instance)
Deprecated. Add a static instance of a component to the manager. |
protected boolean |
canRelease(org.apache.avalon.framework.component.Component component)
Deprecated. Is this component looked up using this selector? |
void |
compose(org.apache.avalon.framework.component.ComponentManager componentManager)
Deprecated. Compose the ComponentSelector so that we know what the parent ComponentLocator is. |
void |
configure(org.apache.avalon.framework.configuration.Configuration configuration)
Deprecated. Default Configuration handler for ComponentSelector. |
void |
contextualize(org.apache.avalon.framework.context.Context context)
Deprecated. Provide the application Context. |
void |
dispose()
Deprecated. Properly dispose of all the ComponentHandlers. |
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.component.ComponentManager componentManager,
org.apache.avalon.framework.context.Context context,
RoleManager roleManager,
LogkitLoggerManager logkitManager)
Deprecated. Obtain a new ComponentHandler for the specified component. |
protected java.util.Map |
getComponentHandlers()
Deprecated. Makes the ComponentHandlers available to subclasses. |
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.Object hint)
Deprecated. Tests for existence of a component. |
void |
initialize()
Deprecated. Properly initialize of the Child handlers. |
void |
release(org.apache.avalon.framework.component.Component component)
Deprecated. Release the Component to the propper ComponentHandler. |
org.apache.avalon.framework.component.Component |
select(java.lang.Object hint)
Deprecated. Return an instance of a component based on a hint. |
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 |
---|
protected org.apache.avalon.framework.context.Context m_context
Constructor Detail |
---|
public ExcaliburComponentSelector()
public ExcaliburComponentSelector(java.lang.ClassLoader loader)
Method Detail |
---|
public void contextualize(org.apache.avalon.framework.context.Context context)
contextualize
in interface org.apache.avalon.framework.context.Contextualizable
public org.apache.avalon.framework.component.Component select(java.lang.Object hint) throws org.apache.avalon.framework.component.ComponentException
select
in interface org.apache.avalon.framework.component.ComponentSelector
org.apache.avalon.framework.component.ComponentException
public boolean hasComponent(java.lang.Object hint)
hasComponent
in interface org.apache.avalon.framework.component.ComponentSelector
public void release(org.apache.avalon.framework.component.Component component)
release
in interface org.apache.avalon.framework.component.ComponentSelector
protected boolean canRelease(org.apache.avalon.framework.component.Component component)
public void compose(org.apache.avalon.framework.component.ComponentManager componentManager) throws org.apache.avalon.framework.component.ComponentException
compose
in interface org.apache.avalon.framework.component.Composable
org.apache.avalon.framework.component.ComponentException
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.Configurable
org.apache.avalon.framework.configuration.ConfigurationException
public void initialize()
initialize
in interface org.apache.avalon.framework.activity.Initializable
public void dispose()
dispose
in interface org.apache.avalon.framework.activity.Disposable
public void setRoleManager(RoleManager roles)
setRoleManager
in interface RoleManageable
public void setLogKitManager(org.apache.avalon.excalibur.logger.LogKitManager logkit)
setLogKitManager
in interface org.apache.avalon.excalibur.logger.LogKitManageable
public void setInstrumentManager(org.apache.excalibur.instrument.InstrumentManager instrumentManager)
setInstrumentManager
in interface org.apache.excalibur.instrument.InstrumentManageable
instrumentManager
- 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.Instrumentable
name
- The name used to identify a Instrumentable.public java.lang.String getInstrumentableName()
getInstrumentableName
in interface org.apache.excalibur.instrument.Instrumentable
public org.apache.excalibur.instrument.Instrument[] getInstruments()
getInstruments
in interface org.apache.excalibur.instrument.Instrumentable
public org.apache.excalibur.instrument.Instrumentable[] getChildInstrumentables()
getChildInstrumentables
in interface org.apache.excalibur.instrument.Instrumentable
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.component.ComponentManager componentManager, 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.componentManager
- The ComponentLocator which will be managing
the Component.context
- The current context object.roleManager
- The current RoleManager.logkitManager
- The current LogKitManager.
java.lang.Exception
- If there were any problems obtaining a ComponentHandlerprotected java.util.Map getComponentHandlers()
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
hint
- the hint 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.Object hint, org.apache.avalon.framework.component.Component instance)
hint
- the hint 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 |