|
||||||||||
| 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.avalon.excalibur.component.AbstractDualLogEnabled
org.apache.avalon.excalibur.component.DefaultRoleManager
public class DefaultRoleManager
Default RoleManager implementation. It populates the RoleManager from a configuration file.
| Field Summary | |
|---|---|
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 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(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. |
| 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 |
| Field Detail |
|---|
private 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 resolution
| 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 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 Component
public 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
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||