org.apache.james.core
Class AvalonUsersStore

java.lang.Object
  extended by org.apache.avalon.framework.logger.AbstractLogEnabled
      extended by org.apache.james.core.AvalonUsersStore
All Implemented Interfaces:
org.apache.avalon.framework.activity.Initializable, org.apache.avalon.framework.configuration.Configurable, org.apache.avalon.framework.context.Contextualizable, org.apache.avalon.framework.logger.LogEnabled, org.apache.avalon.framework.service.Serviceable, UsersStore

public class AvalonUsersStore
extends org.apache.avalon.framework.logger.AbstractLogEnabled
implements org.apache.avalon.framework.context.Contextualizable, org.apache.avalon.framework.service.Serviceable, org.apache.avalon.framework.configuration.Configurable, org.apache.avalon.framework.activity.Initializable, UsersStore

Provides a registry of user repositories.


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


configuration

protected org.apache.avalon.framework.configuration.Configuration configuration
The Avalon configuration used by the instance


manager

protected org.apache.avalon.framework.service.ServiceManager manager
The Avalon component manager used by the instance

Constructor Detail

AvalonUsersStore

public AvalonUsersStore()
Method Detail

contextualize

public void contextualize(org.apache.avalon.framework.context.Context context)
                   throws org.apache.avalon.framework.context.ContextException
Specified by:
contextualize in interface org.apache.avalon.framework.context.Contextualizable
Throws:
org.apache.avalon.framework.context.ContextException
See Also:
Contextualizable.contextualize(Context)

service

public void service(org.apache.avalon.framework.service.ServiceManager manager)
             throws org.apache.avalon.framework.service.ServiceException
Specified by:
service in interface org.apache.avalon.framework.service.Serviceable
Throws:
org.apache.avalon.framework.service.ServiceException
See Also:
org.apache.avalon.framework.service.Serviceable#compose(ServiceManager)

configure

public void configure(org.apache.avalon.framework.configuration.Configuration configuration)
               throws org.apache.avalon.framework.configuration.ConfigurationException
Specified by:
configure in interface org.apache.avalon.framework.configuration.Configurable
Throws:
org.apache.avalon.framework.configuration.ConfigurationException
See Also:
Configurable.configure(Configuration)

initialize

public void initialize()
                throws java.lang.Exception
Specified by:
initialize in interface org.apache.avalon.framework.activity.Initializable
Throws:
java.lang.Exception
See Also:
Initializable.initialize()

getRepository

public UsersRepository getRepository(java.lang.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 java.util.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 ? 2002-2009 The Apache Software Foundation. All Rights Reserved.