|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
RoleManager Interface, use this to specify the Components and how they correspond to easy shorthand names. The RoleManager assumes a one to one relationship of shorthand names to classes, and a flat relationship of classes to roles. Any one role can have multiple classes associated with it.
Field Summary | |
static java.lang.String |
ROLE
Convenience constant to make lookup of the RoleManager easer. |
Method Summary | |
RoleEntry |
getRoleForClassname(java.lang.String classname)
Get a RoleEntry for a component type. |
RoleEntry |
getRoleForShortName(java.lang.String shortname)
Get a RoleEntry for a short name. |
Field Detail |
public static final java.lang.String ROLE
Method Detail |
public RoleEntry getRoleForShortName(java.lang.String shortname)
RoleEntry
for a short name. The short name is an
alias for a component type.
shortname
- The shorthand name for the component type.
RoleEntry
public RoleEntry getRoleForClassname(java.lang.String classname)
RoleEntry
for a component type. This facilitates
self-healing configuration files where the impl reads the
configuration and translates all <component/>
entries to use the short hand name for readability.
classname
- The component type name
RoleEntry
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |