org.apache.avalon.fortress.impl.role
Class ConfigurableRoleManager

java.lang.Object
  extended byorg.apache.avalon.framework.logger.AbstractLogEnabled
      extended byorg.apache.avalon.fortress.impl.role.AbstractRoleManager
          extended byorg.apache.avalon.fortress.impl.role.ConfigurableRoleManager
All Implemented Interfaces:
Configurable, LogEnabled, RoleManager

public class ConfigurableRoleManager
extends AbstractRoleManager
implements Configurable

Configurable RoleManager implementation. It populates the RoleManager from a configuration hierarchy. This is based on the DefaultRoleManager in the org.apache.avalon.component package.

Since:
4.1
Version:
CVS $Revision: 1.13 $ $Date: 2004/02/28 15:16:25 $
Author:
Avalon Development Team

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

ConfigurableRoleManager

public ConfigurableRoleManager()
Default constructor--this RoleManager has no parent.


ConfigurableRoleManager

public ConfigurableRoleManager(java.lang.ClassLoader loader)
Alternate constructor--this RoleManager has the specified classloader.

Parameters:
loader - The ClassLoader used to resolve class names.

ConfigurableRoleManager

public ConfigurableRoleManager(RoleManager parent)
Alternate constructor--this RoleManager has the specified parent.

Parameters:
parent - The parent RoleManager.

ConfigurableRoleManager

public ConfigurableRoleManager(RoleManager parent,
                               java.lang.ClassLoader loader)
Alternate constructor--this RoleManager has the specified parent and a classloader.

Parameters:
parent - The parent RoleManager.
loader - the classloader
Method Detail

configure

public final void configure(Configuration configuration)
                     throws ConfigurationException
Reads a configuration object and creates the role, shorthand, and class name mapping.

Specified by:
configure in interface Configurable
Parameters:
configuration - The configuration object.
Throws:
ConfigurationException - if the configuration is malformed


Copyright © 1997-2005 The Apache Software Foundation. All Rights Reserved.