org.apache.james.core
Class AvalonUsersStore

java.lang.Object
  |
  +--org.apache.avalon.framework.logger.AbstractLogEnabled
        |
        +--org.apache.james.core.AvalonUsersStore
All Implemented Interfaces:
Component, Composable, Configurable, Contextualizable, Initializable, LogEnabled, UsersStore

public class AvalonUsersStore
extends AbstractLogEnabled
implements Component, Contextualizable, Composable, Configurable, Initializable, UsersStore

Provides a registry of user repositories.

Author:
Federico Barbieri

Field Summary
protected  ComponentManager componentManager
          The Avalon component manager used by the instance
protected  Configuration configuration
          The Avalon configuration used by the instance
protected  Context context
          The Avalon context used by the instance
 
Fields inherited from interface org.apache.james.services.UsersStore
ROLE
 
Constructor Summary
AvalonUsersStore()
           
 
Method Summary
 void compose(ComponentManager componentManager)
           
 void configure(Configuration configuration)
           
 void contextualize(Context context)
           
 UsersRepository getRepository(String name)
          Get the repository, if any, whose name corresponds to the argument parameter
 Iterator getRepositoryNames()
          Yield an Iterator over the set of repository names managed internally by this store.
 void initialize()
           
 
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
 

Field Detail

context

protected Context context
The Avalon context used by the instance


configuration

protected Configuration configuration
The Avalon configuration used by the instance


componentManager

protected ComponentManager componentManager
The Avalon component manager used by the instance

Constructor Detail

AvalonUsersStore

public AvalonUsersStore()
Method Detail

contextualize

public void contextualize(Context context)
                   throws ContextException
Specified by:
contextualize in interface Contextualizable
ContextException
See Also:
Contextualizable.contextualize(Context)

compose

public void compose(ComponentManager componentManager)
             throws ComponentException
Specified by:
compose in interface Composable
ComponentException
See Also:
Composable.compose(ComponentManager)

configure

public void configure(Configuration configuration)
               throws ConfigurationException
Specified by:
configure in interface Configurable
ConfigurationException
See Also:
Configurable.configure(Configuration)

initialize

public void initialize()
                throws Exception
Specified by:
initialize in interface Initializable
Exception
See Also:
Initializable.initialize()

getRepository

public UsersRepository getRepository(String name)
Get the repository, if any, whose name corresponds to the argument parameter

Specified by:
getRepository in interface UsersStore
Parameters:
name - the name of the desired repository
Returns:
the UsersRepository corresponding to the name parameter

getRepositoryNames

public Iterator getRepositoryNames()
Yield an Iterator over the set of repository names managed internally by this store.

Specified by:
getRepositoryNames in interface UsersStore
Returns:
an Iterator over the set of repository names for this store


"Copyright © 1999-2002 Apache Jakarta Project. All Rights Reserved."