|
||||||||||
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.ExcaliburComponentManager
Default component manager for Avalon's components.
Constructor Summary | |
ExcaliburComponentManager()
Create the ComponentManager |
|
ExcaliburComponentManager(java.lang.ClassLoader loader)
Create the ComponentManager with a Classloader |
|
ExcaliburComponentManager(ComponentManager manager)
Create the ComponentManager with a parent ComponentManager |
|
ExcaliburComponentManager(ComponentManager manager,
java.lang.ClassLoader loader)
Create the ComponentManager with a Classloader and parent 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. |
void |
initialize()
Properly initialize 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 ExcaliburComponentManager()
public ExcaliburComponentManager(java.lang.ClassLoader loader)
public ExcaliburComponentManager(ComponentManager manager, java.lang.ClassLoader loader)
public ExcaliburComponentManager(ComponentManager manager)
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 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 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.ComponentException
- if an error occurspublic 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 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 |