|
|||||||||||
| 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.fortress.impl.role.AbstractRoleManager
The Excalibur Role Manager is used for Excalibur Role Mappings. All of the information is hard-coded.
| Field Summary |
| Fields inherited from interface org.apache.avalon.fortress.RoleManager |
ROLE |
| Constructor Summary | |
AbstractRoleManager()
Default constructor--this RoleManager has no parent. |
|
AbstractRoleManager(RoleManager parent)
Alternate constructor--this RoleManager has the specified parent. |
|
AbstractRoleManager(RoleManager parent,
java.lang.ClassLoader loader)
Create an AbstractRoleManager with the specified parent manager and the supplied classloader. |
|
| Method Summary | |
protected boolean |
addRole(java.lang.String shortName,
java.lang.String role,
java.lang.String className,
java.lang.String handlerClassName)
Addition of a role to the role manager. |
protected java.lang.Class |
getDefaultHandler()
Get the default component handler. |
protected java.lang.ClassLoader |
getLoader()
Get the classloader used for the RoleManager for any class that extends this one. |
RoleEntry |
getRoleForClassname(java.lang.String classname)
Get a RoleEntry for a component type. |
RoleEntry |
getRoleForShortName(java.lang.String shortname)
Return a role name relative to a supplied short name. |
| 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 |
| Constructor Detail |
public AbstractRoleManager()
public AbstractRoleManager(RoleManager parent)
parent - The parent RoleManager.
public AbstractRoleManager(RoleManager parent,
java.lang.ClassLoader loader)
parent - The parent RoleManagerloader - The class loader| Method Detail |
protected final boolean addRole(java.lang.String shortName,
java.lang.String role,
java.lang.String className,
java.lang.String handlerClassName)
shortName - the short name for the rolerole - the roleclassName - the class namehandlerClassName - the handler classnameprotected final java.lang.Class getDefaultHandler()
PerThreadComponentHandlerpublic final RoleEntry getRoleForClassname(java.lang.String classname)
RoleManagerRoleEntry 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.
getRoleForClassname in interface RoleManagerclassname - The component type name
RoleEntrypublic final RoleEntry getRoleForShortName(java.lang.String shortname)
getRoleForShortName in interface RoleManagershortname - the short name
protected final java.lang.ClassLoader getLoader()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||