|
|||||||||||
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.AbstractServiceManager
Base class for all service managers: ServiceManager and ServiceSelector
Field Summary | |
protected ComponentEnvironment |
componentEnv
|
protected Map |
componentHandlers
Used to map roles to ComponentHandlers. |
protected Map |
componentMapping
Static component mapping handlers. |
protected Context |
context
The application context for components |
protected boolean |
disposed
Is the Manager disposed or not? |
protected boolean |
initialized
Is the Manager initialized? |
protected LoggerManager |
loggerManager
LoggerManager. |
protected RoleManager |
roleManager
RoleInfos. |
Constructor Summary | |
AbstractServiceManager()
|
Method Summary | |
protected abstract void |
addComponent(String role,
Class clazz,
Configuration config,
ComponentInfo info)
|
protected void |
addComponent(String className,
String role,
Configuration configuration,
ComponentInfo info)
|
void |
contextualize(Context context)
|
void |
dispose()
|
protected ComponentHandler |
getComponentHandler(String role,
Class componentClass,
Configuration configuration,
ServiceManager serviceManager,
ComponentInfo baseInfo)
Obtain a new ComponentHandler for the specified component. |
void |
initialize()
|
void |
setLoggerManager(LoggerManager manager)
Configure the LoggerManager. |
void |
setRoleManager(RoleManager roles)
|
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 |
Field Detail |
protected Context context
protected final Map componentMapping
protected final Map componentHandlers
protected boolean disposed
protected boolean initialized
protected RoleManager roleManager
protected LoggerManager loggerManager
protected ComponentEnvironment componentEnv
Constructor Detail |
public AbstractServiceManager()
Method Detail |
public void contextualize(Context context)
contextualize
in interface Contextualizable
public void setRoleManager(RoleManager roles)
public void setLoggerManager(LoggerManager manager)
protected ComponentHandler getComponentHandler(String role, Class componentClass, Configuration configuration, ServiceManager serviceManager, ComponentInfo baseInfo) throws Exception
role
- the component's role.componentClass
- Class of the component for which the handle is
being requested.configuration
- The configuration for this component.serviceManager
- The service manager which will be managing the Component.
Exception
- If there were any problems obtaining a ComponentHandlerprotected void addComponent(String className, String role, Configuration configuration, ComponentInfo info) throws ConfigurationException
ConfigurationException
protected abstract void addComponent(String role, Class clazz, Configuration config, ComponentInfo info) throws ServiceException
ServiceException
public void dispose()
dispose
in interface Disposable
public void initialize() throws Exception
initialize
in interface Initializable
Exception
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |