|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.avalon.framework.logger.AbstractLogEnabled org.apache.avalon.fortress.impl.role.AbstractRoleManager org.apache.avalon.fortress.impl.role.ConfigurableRoleManager
Configurable RoleManager implementation. It populates the RoleManager from a configuration hierarchy. This is based on the DefaultRoleManager in the org.apache.avalon.component package.
Field Summary |
Fields inherited from interface org.apache.avalon.fortress.RoleManager |
ROLE |
Constructor Summary | |
ConfigurableRoleManager()
Default constructor--this RoleManager has no parent. |
|
ConfigurableRoleManager(java.lang.ClassLoader loader)
Alternate constructor--this RoleManager has the specified classloader. |
|
ConfigurableRoleManager(RoleManager parent)
Alternate constructor--this RoleManager has the specified parent. |
|
ConfigurableRoleManager(RoleManager parent,
java.lang.ClassLoader loader)
Alternate constructor--this RoleManager has the specified parent and a classloader. |
Method Summary | |
void |
configure(Configuration configuration)
Reads a configuration object and creates the role, shorthand, and class name mapping. |
Methods inherited from class org.apache.avalon.fortress.impl.role.AbstractRoleManager |
addRole, getDefaultHandler, getLoader, getRoleForClassname, getRoleForShortName |
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 ConfigurableRoleManager()
public ConfigurableRoleManager(java.lang.ClassLoader loader)
loader
- The ClassLoader
used to resolve class names.public ConfigurableRoleManager(RoleManager parent)
parent
- The parent RoleManager
.public ConfigurableRoleManager(RoleManager parent, java.lang.ClassLoader loader)
parent
- The parent RoleManager
.loader
- the classloaderMethod Detail |
public final void configure(Configuration configuration) throws ConfigurationException
configure
in interface Configurable
configuration
- The configuration object.
ConfigurationException
- if the configuration is malformed
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |