public class DefaultECMContainer extends DefaultContainer
DEFAULT_ENTRY, m_classLoader, m_commandSink, m_componentContext, m_components, m_context, m_extManager, m_instrumentManager, m_loggerManager, m_mapper, m_metaManager, m_poolManager, m_serviceManager, m_shutDownOrder, SELECTOR_ENTRY| Constructor and Description |
|---|
DefaultECMContainer() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addComponent(java.lang.String role,
java.lang.String hint,
java.lang.String shortName,
java.lang.String className,
org.apache.avalon.framework.configuration.Configuration element) |
void |
configure(org.apache.avalon.framework.configuration.Configuration conf)
Provide some validation for the core Cocoon components
|
private java.lang.String |
getClassname(org.apache.avalon.framework.configuration.Configuration config)
Retrieve the classname (impl) for the component.
|
private ComponentHandler |
getComponentHandler(java.lang.String classname,
java.lang.Class handlerClass,
ComponentHandlerMetaData metaData)
Get a ComponentHandler with the default constructor for the component class passed in.
|
protected java.lang.Class |
getComponentHandlerClass(java.lang.String defaultClassName,
java.lang.String shortName) |
protected java.lang.String |
getDefaultProxyType()
Return the default proxy type.
|
private java.lang.String |
getRole(org.apache.avalon.framework.configuration.Configuration config)
Retrieve the role for the component.
|
protected void |
processSelector(java.lang.String role,
org.apache.avalon.framework.configuration.Configuration config) |
getServiceManager, interpretProxyaddComponent, contextualize, createHintMap, createObjectFactory, dispose, get, getProxyManager, getRoleKey, has, initialize, provideComponentContext, provideServiceManager, service, setProxyManagerprivate java.lang.String getRole(org.apache.avalon.framework.configuration.Configuration config)
throws org.apache.avalon.framework.configuration.ConfigurationException
config - the component configurationorg.apache.avalon.framework.configuration.ConfigurationExceptionprivate java.lang.String getClassname(org.apache.avalon.framework.configuration.Configuration config)
throws org.apache.avalon.framework.configuration.ConfigurationException
config - the component configurationorg.apache.avalon.framework.configuration.ConfigurationExceptionpublic void configure(org.apache.avalon.framework.configuration.Configuration conf)
throws org.apache.avalon.framework.configuration.ConfigurationException
configure in interface org.apache.avalon.framework.configuration.Configurableconfigure in class DefaultContainerconf - The configurationorg.apache.avalon.framework.configuration.ConfigurationException - if the coniguration is invalidprivate ComponentHandler getComponentHandler(java.lang.String classname, java.lang.Class handlerClass, ComponentHandlerMetaData metaData) throws java.lang.Exception
classname - the name of the component's classhandlerClass - the class used to handle the componentmetaData - the information needed to construct a ComponentHandler for the componentjava.lang.Exception - if unable to provide a componenthandlerprotected java.lang.Class getComponentHandlerClass(java.lang.String defaultClassName,
java.lang.String shortName)
throws java.lang.Exception
java.lang.Exceptionprotected void processSelector(java.lang.String role,
org.apache.avalon.framework.configuration.Configuration config)
throws org.apache.avalon.framework.configuration.ConfigurationException
org.apache.avalon.framework.configuration.ConfigurationExceptionprotected void addComponent(java.lang.String role,
java.lang.String hint,
java.lang.String shortName,
java.lang.String className,
org.apache.avalon.framework.configuration.Configuration element)
throws org.apache.avalon.framework.configuration.ConfigurationException
org.apache.avalon.framework.configuration.ConfigurationExceptionprotected java.lang.String getDefaultProxyType()