|
||||||||||
| 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
public abstract class 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,
ClassLoader loader)
Create an AbstractRoleManager with the specified parent manager and the supplied classloader. |
|
| Method Summary | |
|---|---|
protected boolean |
addRole(String shortName,
String role,
String className,
String handlerClassName)
Addition of a role to the role manager. |
protected Class |
getDefaultHandler()
Get the default component handler. |
protected ClassLoader |
getLoader()
Get the classloader used for the RoleManager for any class that extends this one. |
RoleEntry |
getRoleForClassname(String classname)
|
RoleEntry |
getRoleForShortName(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,
ClassLoader loader)
parent - The parent RoleManagerloader - The class loader| Method Detail |
|---|
protected final boolean addRole(String shortName,
String role,
String className,
String handlerClassName)
shortName - the short name for the rolerole - the roleclassName - the class namehandlerClassName - the handler classnameprotected final Class getDefaultHandler()
PerThreadComponentHandlerpublic final RoleEntry getRoleForClassname(String classname)
getRoleForClassname in interface RoleManagerpublic final RoleEntry getRoleForShortName(String shortname)
getRoleForShortName in interface RoleManagershortname - the short name
protected final ClassLoader getLoader()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||