org.apache.james.core
Class AvalonVirtualUserTableStore

java.lang.Object
  extended by org.apache.avalon.framework.logger.AbstractLogEnabled
      extended by org.apache.james.core.AbstractAvalonStore
          extended by org.apache.james.core.AvalonVirtualUserTableStore
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, VirtualUserTableStore

public class AvalonVirtualUserTableStore
extends AbstractAvalonStore
implements VirtualUserTableStore

Provides a registry of VirtualUserTables


Field Summary
 
Fields inherited from class org.apache.james.core.AbstractAvalonStore
configuration, manager
 
Fields inherited from interface org.apache.james.api.vut.VirtualUserTableStore
ROLE
 
Constructor Summary
AvalonVirtualUserTableStore()
           
 
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
 java.lang.String getStoreName()
          Return the Store name which should be used for logging
 VirtualUserTable getTable(java.lang.String name)
          Get the repository, if any, whose name corresponds to the argument parameter
 java.util.Iterator getTableNames()
          Yield an Iterator over the set of repository names managed internally by this store.
 
Methods inherited from class org.apache.james.core.AbstractAvalonStore
configure, getObject, getObjectNames, initialize, service
 
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

AvalonVirtualUserTableStore

public AvalonVirtualUserTableStore()
Method Detail

getTable

public VirtualUserTable getTable(java.lang.String name)
Get the repository, if any, whose name corresponds to the argument parameter

Specified by:
getTable in interface VirtualUserTableStore
Parameters:
name - the name of the desired repository
Returns:
the VirtualUserTable corresponding to the name parameter

getTableNames

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

Specified by:
getTableNames in interface VirtualUserTableStore
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 ClassLoader
repClass - the classname
Returns:
the loaded Objected
Throws:
java.lang.Exception
See Also:
AbstractAvalonStore.getClassInstance(ClassLoader, 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.