org.apache.avalon.excalibur.component
Interface RoleManager
- All Known Implementing Classes:
- DefaultRoleManager
- public interface RoleManager
RoleManager Interface, use this to specify the Roles and how they
correspond easy shorthand names.
- Since:
- 4.0
- Version:
- CVS $Revision: 1.4 $ $Date: 2001/12/11 09:53:27 $
- Author:
- Berin Loritsch, Ricardo Rocha, Giacomo Pati
Method Summary |
java.lang.String |
getDefaultClassNameForHint(java.lang.String hint,
java.lang.String shorthand)
Get the default classname for a given hint type. |
java.lang.String |
getDefaultClassNameForRole(java.lang.String role)
Get the default classname for a given role. |
java.lang.String |
getRoleForName(java.lang.String shorthandName)
Find Role name based on shorthand name. |
getRoleForName
public java.lang.String getRoleForName(java.lang.String shorthandName)
- Find Role name based on shorthand name. Please note that if
this returns
null
or an empty string, then the
shorthand name is assumed to be a "reserved word". In other
words, you should not try to instantiate a class from an empty
role.
getDefaultClassNameForRole
public java.lang.String getDefaultClassNameForRole(java.lang.String role)
- Get the default classname for a given role.
getDefaultClassNameForHint
public java.lang.String getDefaultClassNameForHint(java.lang.String hint,
java.lang.String shorthand)
- Get the default classname for a given hint type. This is only
used by ComponentSelectors.
Copyright © 2001 Apache Jakarta Project. All Rights Reserved.