public class DefaultRoleManager extends AbstractDualLogEnabled implements RoleManager, org.apache.avalon.framework.configuration.Configurable
| Modifier and Type | Field and Description |
|---|---|
private java.util.Map |
m_classNames
Deprecated.
Map for role to default classname mapping
|
private java.util.Map |
m_hintClassNames
Deprecated.
Map for role->hint to classname mapping
|
private RoleManager |
m_parent
Deprecated.
Parent
RoleManager for nested resolution |
private java.util.Map |
m_shorthands
Deprecated.
Map for shorthand to role mapping
|
| Constructor and Description |
|---|
DefaultRoleManager()
Deprecated.
Default constructor--this RoleManager has no parent.
|
DefaultRoleManager(RoleManager parent)
Deprecated.
Alternate constructor--this RoleManager has the specified
parent.
|
| Modifier and Type | Method and Description |
|---|---|
void |
configure(org.apache.avalon.framework.configuration.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.
|
getLogkitLogger, setLoggerprivate java.util.Map m_shorthands
private java.util.Map m_classNames
private java.util.Map m_hintClassNames
private final RoleManager m_parent
RoleManager for nested resolutionpublic DefaultRoleManager()
public DefaultRoleManager(RoleManager parent)
parent - The parent RoleManager.public final java.lang.String getRoleForName(java.lang.String shorthandName)
getRoleForName in interface RoleManagershorthandName - The shortname that is an alias for the role.public final java.lang.String getDefaultClassNameForRole(java.lang.String role)
getDefaultClassNameForRole in interface RoleManagerrole - The role that has a default implementation.public final java.lang.String getDefaultClassNameForHint(java.lang.String role,
java.lang.String shorthand)
getDefaultClassNameForHint in interface RoleManagerrole - The role that this shorthand refers to.shorthand - The shorthand name for the type of Componentpublic final void configure(org.apache.avalon.framework.configuration.Configuration configuration)
throws org.apache.avalon.framework.configuration.ConfigurationException
configure in interface org.apache.avalon.framework.configuration.Configurableconfiguration - The configuration object.org.apache.avalon.framework.configuration.ConfigurationException - if the configuration is malformed