|
||||||||||
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.DefaultComponentManager
Default component manager for Avalon's components.
Constructor Summary | |
DefaultComponentManager()
Create the ComponentManager |
Method Summary | |
void |
addComponent(java.lang.String role,
java.lang.Class component,
Configuration configuration)
Add a new component to the manager. |
void |
addComponentInstance(java.lang.String role,
java.lang.Object instance)
Add a static instance of a component to the manager. |
void |
configure(Configuration configuration)
Configure the ComponentManager. |
void |
contextualize(Context context)
Set up the Component's Context. |
void |
dispose()
Properly dispose of the Child handlers. |
Component |
lookup(java.lang.String role)
Return an instance of a component based on a Role. |
void |
release(Component component)
Release a Component. |
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 |
Constructor Detail |
public DefaultComponentManager()
Method Detail |
public void contextualize(Context context)
contextualize
in interface Contextualizable
public void dispose()
dispose
in interface Disposable
public Component lookup(java.lang.String role) throws ComponentException
lookup
in interface ComponentManager
org.apache.avalon.framework.component.ComponentManager
name
- The role name of the Component
to retrieve.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)
public void release(Component component)
release
in interface ComponentManager
org.apache.avalon.framework.component.ComponentManager
component
- The Component we are releasing.public void addComponent(java.lang.String role, java.lang.Class component, Configuration configuration) throws ComponentException
role
- the role name for the new component.component
- the class of this component.Configuration
- the configuration for this component.public void addComponentInstance(java.lang.String role, java.lang.Object instance)
role
- the role 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 |