org.apache.james.core
Class AvalonUsersStore
java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.james.core.AbstractAvalonStore
org.apache.james.core.AvalonUsersStore
- All Implemented Interfaces:
- org.apache.avalon.framework.activity.Initializable, org.apache.avalon.framework.configuration.Configurable, org.apache.avalon.framework.logger.LogEnabled, org.apache.avalon.framework.service.Serviceable, UsersStore
public class AvalonUsersStore
- extends AbstractAvalonStore
- implements UsersStore
Provides a registry of user repositories.
Fields inherited from interface org.apache.james.api.user.UsersStore |
ROLE |
Method Summary |
java.lang.Object |
getClassInstance(java.lang.ClassLoader loader,
java.lang.String repClass)
Return new Object of the loader classname |
org.apache.avalon.framework.configuration.Configuration[] |
getConfigurations(org.apache.avalon.framework.configuration.Configuration config)
Return the Store configurations |
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. |
java.lang.String |
getStoreName()
Return the Store name which should be used for logging |
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 |
AvalonUsersStore
public AvalonUsersStore()
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
getClassInstance
public java.lang.Object getClassInstance(java.lang.ClassLoader loader,
java.lang.String repClass)
throws java.lang.Exception
- Description copied from class:
AbstractAvalonStore
- Return new Object of the loader classname
- Specified by:
getClassInstance
in class AbstractAvalonStore
- Parameters:
loader
- the ClassLoaderrepClass
- the classname
- Returns:
- the loaded Objected
- Throws:
java.lang.Exception
- See Also:
AbstractAvalonStore.getClassInstance(java.lang.ClassLoader, java.lang.String)
getConfigurations
public org.apache.avalon.framework.configuration.Configuration[] getConfigurations(org.apache.avalon.framework.configuration.Configuration config)
- Description copied from class:
AbstractAvalonStore
- Return the Store configurations
- Specified by:
getConfigurations
in class AbstractAvalonStore
- Parameters:
config
- the main config
- Returns:
- configurations
- See Also:
AbstractAvalonStore.getConfigurations(org.apache.avalon.framework.configuration.Configuration)
getStoreName
public java.lang.String getStoreName()
- Description copied from class:
AbstractAvalonStore
- Return the Store name which should be used for logging
- Specified by:
getStoreName
in class AbstractAvalonStore
- Returns:
- the name
- See Also:
AbstractAvalonStore.getStoreName()
Copyright ? 2002-2009 The Apache Software Foundation. All Rights Reserved.