|
|||||||||||
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.RoleManager
Default RoleManager implementation. It populates the RoleManager from a configuration file.
Constructor Summary | |
RoleManager()
Default constructor--this RoleManager has no parent. |
|
RoleManager(RoleManager parent)
Alternate constructor--this RoleManager has the specified parent. |
Method Summary | |
void |
configure(Configuration configuration)
Reads a configuration object and creates the role, shorthand, and class name mapping. |
ComponentInfo |
getDefaultServiceInfoForKey(String role,
String shorthand)
Retrieves a default class name for a role/key combination. |
ComponentInfo |
getDefaultServiceInfoForRole(String role)
Retrieves the default class name for the specified role. |
String |
getRoleForName(String shorthandName)
Retrieves the real role name from a shorthand name. |
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 |
Constructor Detail |
public RoleManager()
public RoleManager(RoleManager parent)
parent
- The parent RoleManager
.Method Detail |
public final String getRoleForName(String shorthandName)
shorthandName
- The shortname that is an alias for the role.
public final ComponentInfo getDefaultServiceInfoForRole(String role)
role
- The role that has a default implementation.
public final ComponentInfo getDefaultServiceInfoForKey(String role, String shorthand)
role
- The role that this shorthand refers to.shorthand
- The shorthand name for the type of component
public final void configure(Configuration configuration) throws ConfigurationException
configure
in interface Configurable
configuration
- The configuration object.
ConfigurationException
- if the configuration is malformed
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |