|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.avalon.framework.logger.AbstractLogEnabled org.apache.avalon.excalibur.component.AbstractDualLogEnabled org.apache.avalon.excalibur.component.DefaultRoleManager
Default RoleManager implementation. It populates the RoleManager from a configuration file.
Constructor Summary | |
DefaultRoleManager()
Deprecated. Default constructor--this RoleManager has no parent. |
|
DefaultRoleManager(RoleManager parent)
Deprecated. Alternate constructor--this RoleManager has the specified parent. |
Method Summary | |
void |
configure(Configuration configuration)
Deprecated. Reads a configuration object and creates the role, shorthand, and class name mapping. |
java.lang.String |
getDefaultClassNameForHint(java.lang.String role,
java.lang.String shorthand)
Deprecated. Retrieves a default class name for a role/hint combination. |
java.lang.String |
getDefaultClassNameForRole(java.lang.String role)
Deprecated. Retrieves the default class name for the specified role. |
java.lang.String |
getRoleForName(java.lang.String shorthandName)
Deprecated. Retrieves the real role name from a shorthand name. |
Methods inherited from class org.apache.avalon.excalibur.component.AbstractDualLogEnabled |
getLogkitLogger, setLogger |
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 DefaultRoleManager()
public DefaultRoleManager(RoleManager parent)
parent
- The parent RoleManager
.Method Detail |
public final java.lang.String getRoleForName(java.lang.String shorthandName)
getRoleForName
in interface RoleManager
shorthandName
- The shortname that is an alias for the role.
public final java.lang.String getDefaultClassNameForRole(java.lang.String role)
getDefaultClassNameForRole
in interface RoleManager
role
- The role that has a default implementation.
public final java.lang.String getDefaultClassNameForHint(java.lang.String role, java.lang.String shorthand)
getDefaultClassNameForHint
in interface RoleManager
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 |