|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.cocoon.core.container.CoreServiceManager
org.apache.cocoon.components.container.CocoonServiceManager
Default service manager for Cocoon's components.
Field Summary |
Fields inherited from class org.apache.cocoon.core.container.CoreServiceManager |
classloader, componentEnv, componentHandlers, componentMapping, context, CONTEXT_PARAMETERS, disposed, EMPTY_CONFIGURATION, initialized, location, loggerManager, parentManager, roleManager |
Constructor Summary | |
CocoonServiceManager(ServiceManager parent)
Create the ServiceManager with a parent ServiceManager |
|
CocoonServiceManager(ServiceManager parent,
ClassLoader classloader)
Create the ServiceManager with a parent ServiceManager and a ClassLoader |
Method Summary | |
void |
addComponent(String role,
String clazz,
Configuration config,
ComponentInfo i)
Add a new component to the manager. |
void |
addRoleAlias(String existingRole,
String newRole)
Add an alias to a role, i.e. define a synonym for the role. |
void |
initialize()
|
protected void |
initialize(String role,
Object component)
Initialize the component |
Methods inherited from class org.apache.cocoon.core.container.CoreServiceManager |
addInstance, configure, contextualize, dispose, enableLogging, hasService, lookup, release, setLoggerManager, setRoleManager |
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 CocoonServiceManager(ServiceManager parent)
public CocoonServiceManager(ServiceManager parent, ClassLoader classloader)
Method Detail |
public void addComponent(String role, String clazz, Configuration config, ComponentInfo i) throws ConfigurationException
CoreServiceManager
addComponent
in class CoreServiceManager
role
- the role name for the new component.clazz
- the class of this component.config
- the configuration for this component.
ConfigurationException
public void addRoleAlias(String existingRole, String newRole) throws ServiceException
CoreServiceManager
addRoleAlias
in class CoreServiceManager
existingRole
- the existing role that will be aliasednewRole
- the new role
ServiceException
- if the existing role could not be found in the current
manager and its ancestorspublic void initialize() throws Exception
initialize
in interface Initializable
initialize
in class CoreServiceManager
Exception
protected void initialize(String role, Object component) throws ServiceException
CoreServiceManager
initialize
in class CoreServiceManager
ServiceException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |