|
||||||||||
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,
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)
|
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 RoleManager
loader
- The class loaderMethod 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()
PerThreadComponentHandler
public final RoleEntry getRoleForClassname(java.lang.String classname)
getRoleForClassname
in interface RoleManager
public final RoleEntry getRoleForShortName(java.lang.String shortname)
getRoleForShortName
in interface RoleManager
shortname
- 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 |