org.apache.avalon.fortress.impl
Class DefaultECMContainer
java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.avalon.fortress.impl.AbstractContainer
org.apache.avalon.fortress.impl.DefaultContainer
org.apache.avalon.fortress.impl.DefaultECMContainer
- All Implemented Interfaces:
- org.apache.avalon.fortress.Container, org.apache.avalon.framework.activity.Disposable, org.apache.avalon.framework.activity.Initializable, org.apache.avalon.framework.configuration.Configurable, org.apache.avalon.framework.context.Contextualizable, org.apache.avalon.framework.logger.LogEnabled, org.apache.avalon.framework.service.Serviceable
public class DefaultECMContainer
- extends DefaultContainer
Customize the Fortress container to handle ECM compatibility
- Version:
- CVS $ Revision: 1.1 $
- Author:
- The Avalon Team
Fields inherited from class org.apache.avalon.fortress.impl.AbstractContainer |
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 |
Fields inherited from interface org.apache.avalon.fortress.Container |
ROLE |
Method Summary |
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)
|
Methods inherited from class org.apache.avalon.fortress.impl.AbstractContainer |
addComponent, contextualize, createHintMap, createObjectFactory, dispose, get, getProxyManager, getRoleKey, has, initialize, provideComponentContext, provideServiceManager, service, setProxyManager |
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled |
enableLogging, getLogger, setupLogger, setupLogger, setupLogger |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultECMContainer
public DefaultECMContainer()
getRole
private java.lang.String getRole(org.apache.avalon.framework.configuration.Configuration config)
throws org.apache.avalon.framework.configuration.ConfigurationException
- Retrieve the role for the component.
- Parameters:
config
- the component configuration
- Returns:
- the class name
- Throws:
org.apache.avalon.framework.configuration.ConfigurationException
getClassname
private java.lang.String getClassname(org.apache.avalon.framework.configuration.Configuration config)
throws org.apache.avalon.framework.configuration.ConfigurationException
- Retrieve the classname (impl) for the component.
- Parameters:
config
- the component configuration
- Returns:
- the class name
- Throws:
org.apache.avalon.framework.configuration.ConfigurationException
configure
public void configure(org.apache.avalon.framework.configuration.Configuration conf)
throws org.apache.avalon.framework.configuration.ConfigurationException
- Provide some validation for the core Cocoon components
- Specified by:
configure
in interface org.apache.avalon.framework.configuration.Configurable
- Overrides:
configure
in class DefaultContainer
- Parameters:
conf
- The configuration
- Throws:
org.apache.avalon.framework.configuration.ConfigurationException
- if the coniguration is invalid
getComponentHandler
private ComponentHandler getComponentHandler(java.lang.String classname,
java.lang.Class handlerClass,
ComponentHandlerMetaData metaData)
throws java.lang.Exception
- Get a ComponentHandler with the default constructor for the component class passed in.
- Parameters:
classname
- the name of the component's classhandlerClass
- the class used to handle the componentmetaData
- the information needed to construct a ComponentHandler for the component
- Returns:
- the component handler
- Throws:
java.lang.Exception
- if unable to provide a componenthandler
getComponentHandlerClass
protected java.lang.Class getComponentHandlerClass(java.lang.String defaultClassName,
java.lang.String shortName)
throws java.lang.Exception
- Throws:
java.lang.Exception
processSelector
protected void processSelector(java.lang.String role,
org.apache.avalon.framework.configuration.Configuration config)
throws org.apache.avalon.framework.configuration.ConfigurationException
- Throws:
org.apache.avalon.framework.configuration.ConfigurationException
addComponent
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)
throws org.apache.avalon.framework.configuration.ConfigurationException
- Throws:
org.apache.avalon.framework.configuration.ConfigurationException
getDefaultProxyType
protected java.lang.String getDefaultProxyType()
- Return the default proxy type.
This method can be overwritten in subclasses to provide a different
default proxy type.