|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--org.apache.avalon.framework.logger.AbstractLogEnabled
|
+--org.apache.avalon.excalibur.system.AbstractContainer
The Container is an interface used to mark the Containers in your system. It exposes a protected getComponentManager() method so that the Container's Manager can expose that to the instantiating class.
| Inner Class Summary | |
protected static class |
AbstractContainer.ContainerComponentManager
This is the Default ComponentManager for the Container. |
protected static class |
AbstractContainer.ContainerComponentSelector
This is the Default ComponentSelector for the Container. |
| Constructor Summary | |
AbstractContainer()
|
|
| Method Summary | |
protected void |
assignHandler(ComponentHandler handler,
org.apache.avalon.framework.configuration.Configuration config,
java.util.Map managerMap)
Adds the ComponentHandler and Configuration to the system. |
protected void |
assignSelector(java.lang.String role,
org.apache.avalon.framework.component.ComponentSelector selector,
java.util.Map managerMap)
Adds the ComponentHandler and Configuration to the system. |
void |
compose(org.apache.avalon.framework.component.ComponentManager manager)
Root ComponentManager. |
void |
configure(org.apache.avalon.framework.configuration.Configuration configElement)
Process the configuration and set up the components and their mappings. |
void |
contextualize(org.apache.avalon.framework.context.Context containerContext)
Pull the manager items from the context so we can use them to set up the system. |
void |
dispose()
Disposes of all components and frees resources that they consume. |
void |
enableLogging(org.apache.avalon.framework.logger.Logger logger)
Wrap this so that ComponentStateValidator functions properly. |
protected ComponentHandler |
getHandler(java.lang.Class handlerKlass,
java.lang.Class klass,
org.apache.avalon.framework.configuration.Configuration configuration)
Get a ComponentHandler with the standard HANDLER_CONSTRUCTOR
for the component class passed in. |
protected void |
handleConfiguration(org.apache.avalon.framework.configuration.Configuration configItem,
java.util.Map managerMap)
Handles when a configuration name is used that is not "component", so it makes it easier to handle ComponentSelector hierarchies. |
void |
initialize()
Initializes all components so that the system is ready to be used. |
| Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled |
getLogger, setupLogger, setupLogger, setupLogger |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public AbstractContainer()
| Method Detail |
public void enableLogging(org.apache.avalon.framework.logger.Logger logger)
enableLogging in class org.apache.avalon.framework.logger.AbstractLogEnabled
public void contextualize(org.apache.avalon.framework.context.Context containerContext)
throws org.apache.avalon.framework.context.ContextException
contextualize in interface org.apache.avalon.framework.context.Contextualizable
public void configure(org.apache.avalon.framework.configuration.Configuration configElement)
throws org.apache.avalon.framework.configuration.ConfigurationException
configure in interface org.apache.avalon.framework.configuration.Configurable
protected void handleConfiguration(org.apache.avalon.framework.configuration.Configuration configItem,
java.util.Map managerMap)
throws org.apache.avalon.framework.configuration.ConfigurationException
protected void assignHandler(ComponentHandler handler,
org.apache.avalon.framework.configuration.Configuration config,
java.util.Map managerMap)
throws org.apache.avalon.framework.configuration.ConfigurationException
protected void assignSelector(java.lang.String role,
org.apache.avalon.framework.component.ComponentSelector selector,
java.util.Map managerMap)
throws org.apache.avalon.framework.configuration.ConfigurationException
protected ComponentHandler getHandler(java.lang.Class handlerKlass,
java.lang.Class klass,
org.apache.avalon.framework.configuration.Configuration configuration)
HANDLER_CONSTRUCTOR
for the component class passed in.
public void compose(org.apache.avalon.framework.component.ComponentManager manager)
throws org.apache.avalon.framework.component.ComponentException
compose in interface org.apache.avalon.framework.component.Composable
public void initialize()
throws java.lang.Exception
initialize in interface org.apache.avalon.framework.activity.Initializablepublic void dispose()
dispose in interface org.apache.avalon.framework.activity.Disposable
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||