org.apache.avalon.excalibur.component
クラス DefaultRoleManager
java.lang.Object
|
+--org.apache.avalon.framework.logger.AbstractLoggable
|
+--org.apache.avalon.excalibur.component.DefaultRoleManager
- すべての実装インタフェース:
- org.apache.avalon.framework.configuration.Configurable, org.apache.avalon.framework.logger.Loggable, RoleManager
- public class DefaultRoleManager
- extends org.apache.avalon.framework.logger.AbstractLoggable
- implements RoleManager, org.apache.avalon.framework.configuration.Configurable
Default RoleManager implementation. It populates the RoleManager
from a configuration file.
- 導入されたバージョン:
- 4.0
- バージョン:
- CVS $Revision: 1.6 $ $Date: 2001/12/11 09:53:27 $
- 作成者:
- Berin Loritsch, Ricardo Rocha, Giacomo Pati
メソッドの概要 |
void |
configure(org.apache.avalon.framework.configuration.Configuration configuration)
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)
Retrieves a default class name for a role/hint combination.
|
java.lang.String |
getDefaultClassNameForRole(java.lang.String role)
Retrieves the default class name for the specified role. |
java.lang.String |
getRoleForName(java.lang.String shorthandName)
Retrieves the real role name from a shorthand name. |
クラス org.apache.avalon.framework.logger.AbstractLoggable から継承したメソッド |
getLogger, setLogger, setupLogger, setupLogger, setupLogger |
クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultRoleManager
public DefaultRoleManager()
- Default constructor--this RoleManager has no parent.
DefaultRoleManager
public DefaultRoleManager(RoleManager parent)
- Alternate constructor--this RoleManager has the specified
parent.
- パラメータ:
parent
- The parent RoleManager
.
getRoleForName
public final java.lang.String getRoleForName(java.lang.String shorthandName)
- Retrieves the real role name from a shorthand name. Usually
the shorthand name refers to a configuration element name. If
this RoleManager does not have the match, and there is a parent
RoleManager, the parent will be asked to resolve the role.
- 定義:
- インタフェース
RoleManager
内の getRoleForName
- パラメータ:
shorthandName
- The shortname that is an alias for the role.- 戻り値:
- the official role name.
getDefaultClassNameForRole
public final java.lang.String getDefaultClassNameForRole(java.lang.String role)
- Retrieves the default class name for the specified role. This
is only called when the configuration does not specify the
class explicitly. If this RoleManager does not have the match,
and there is a parent RoleManager, the parent will be asked
to resolve the class name.
- 定義:
- インタフェース
RoleManager
内の getDefaultClassNameForRole
- パラメータ:
role
- The role that has a default implementation.- 戻り値:
- the Fully Qualified Class Name (FQCN) for the role.
getDefaultClassNameForHint
public final java.lang.String getDefaultClassNameForHint(java.lang.String role,
java.lang.String shorthand)
- Retrieves a default class name for a role/hint combination.
This is only called when a role is mapped to a
DefaultComponentSelector, and the configuration elements use
shorthand names for the type of component. If this RoleManager
does not have the match, and there is a parent RoleManager, the
parent will be asked to resolve the class name.
- 定義:
- インタフェース
RoleManager
内の getDefaultClassNameForHint
- パラメータ:
role
- The role that this shorthand refers to.shorthand
- The shorthand name for the type of Component- 戻り値:
- the FQCN for the role/hint combination.
configure
public final void configure(org.apache.avalon.framework.configuration.Configuration configuration)
throws org.apache.avalon.framework.configuration.ConfigurationException
- Reads a configuration object and creates the role, shorthand,
and class name mapping.
- 定義:
- インタフェース
org.apache.avalon.framework.configuration.Configurable
内の configure
- パラメータ:
configuration
- The configuration object.- 例外:
org.apache.avalon.framework.configuration.ConfigurationException
- if the configuration is malformed
"Copyright ? 2001 Apache Jakarta Project. All Rights Reserved."