|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.avalon.framework.logger.AbstractLoggable | +--org.apache.avalon.excalibur.component.ExcaliburComponentSelector
Default component selector for Avalon's components.
Field Summary | |
protected Context |
m_context
The application context for components |
Constructor Summary | |
ExcaliburComponentSelector()
Create the ComponentSelector |
|
ExcaliburComponentSelector(java.lang.ClassLoader loader)
Create the ComponentSelector with a Classloader |
Method Summary | |
void |
addComponent(java.lang.Object hint,
java.lang.Class component,
Configuration configuration)
Add a new component to the manager. |
void |
addComponentInstance(java.lang.String hint,
java.lang.Object instance)
Add a static instance of a component to the manager. |
void |
compose(ComponentManager componentManager)
Compose the ComponentSelector so that we know what the parent ComponentManager is. |
void |
configure(Configuration configuration)
Default Configuration handler for ComponentSelector. |
void |
contextualize(Context context)
Provide the application Context. |
void |
dispose()
Properly dispose of all the ComponentHandlers. |
void |
initialize()
Properly initialize of the Child handlers. |
void |
release(Component component)
Release the Component to the propper ComponentHandler. |
Component |
select(java.lang.Object hint)
Return an instance of a component based on a hint. |
void |
setRoleManager(RoleManager roles)
Configure the RoleManager |
Methods inherited from class org.apache.avalon.framework.logger.AbstractLoggable |
getLogger, setLogger, setupLogger, setupLogger, setupLogger |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected Context m_context
Constructor Detail |
public ExcaliburComponentSelector()
public ExcaliburComponentSelector(java.lang.ClassLoader loader)
Method Detail |
public void contextualize(Context context)
contextualize
in interface Contextualizable
org.apache.avalon.framework.context.Contextualizable
context
- the contextContextException
- if context is invalidpublic void compose(ComponentManager componentManager) throws ComponentException
compose
in interface Composable
org.apache.avalon.framework.component.Composable
manager
- The ComponentManager
which this
Composable
uses.public void initialize()
initialize
in interface Initializable
org.apache.avalon.framework.activity.Initializable
java.lang.Exception
- if an error occurspublic void dispose()
dispose
in interface Disposable
public Component select(java.lang.Object hint) throws ComponentException
select
in interface ComponentSelector
org.apache.avalon.framework.component.ComponentSelector
name
- A hint to retrieve the correct Component
.ComponentNotFoundException
- If the given role is not associated
with a Component
.ComponentNotAccessibleException
- If a Component
instance cannot be created.public void configure(Configuration configuration) throws ConfigurationException
configure
in interface Configurable
org.apache.avalon.framework.configuration.Configurable
configuration
- the class configurations.public void setRoleManager(RoleManager roles)
setRoleManager
in interface RoleManageable
public void release(Component component)
release
in interface ComponentSelector
org.apache.avalon.framework.component.ComponentSelector
component
- The Component we are releasing.public void addComponent(java.lang.Object hint, java.lang.Class component, Configuration configuration) throws ComponentException
hint
- the hint name for the new component.component
- the class of this component.Configuration
- the configuration for this component.public void addComponentInstance(java.lang.String hint, java.lang.Object instance)
hint
- the hint name for the component.instance
- the instance of the component.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |