com.uwyn.rife.authentication.credentialsmanagers
Class DatabaseUsersFactory

java.lang.Object
  extended by com.uwyn.rife.database.DbQueryManagerFactory
      extended by com.uwyn.rife.authentication.credentialsmanagers.DatabaseUsersFactory
All Implemented Interfaces:
CredentialsManagerFactory

public class DatabaseUsersFactory
extends DbQueryManagerFactory
implements CredentialsManagerFactory

Factory for DatabaseUsers manager instances that creates singletons based on the Datasource and an optional differentiating identifier.

Since:
1.0
Version:
$Revision: 3643 $
Author:
Steven Grimm (koreth[remove] at midwinter dot com), Geert Bevin (gbevin[remove] at uwyn dot com)

Field Summary
static String MANAGER_PACKAGE_NAME
          The package name of the datasource-specific implementations
 
Constructor Summary
DatabaseUsersFactory()
           
 
Method Summary
 CredentialsManager getCredentialsManager(HierarchicalProperties properties)
          Returns the manager specified by properties.
static DatabaseUsers getInstance(Datasource datasource)
          Return an instance of DatabaseUsers for the provided Datasource.
static DatabaseUsers getInstance(Datasource datasource, String identifier)
          Return an instance of DatabaseUsers for the provided Datasource and identifier.
 
Methods inherited from class com.uwyn.rife.database.DbQueryManagerFactory
getInstance, getInstance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MANAGER_PACKAGE_NAME

public static final String MANAGER_PACKAGE_NAME
The package name of the datasource-specific implementations

Constructor Detail

DatabaseUsersFactory

public DatabaseUsersFactory()
Method Detail

getInstance

public static DatabaseUsers getInstance(Datasource datasource)
Return an instance of DatabaseUsers for the provided Datasource.

Parameters:
datasource - the datasource that will be used to create the manager
Returns:
the requested DatabaseUsers instance
Since:
1.0

getInstance

public static DatabaseUsers getInstance(Datasource datasource,
                                        String identifier)
Return an instance of DatabaseUsers for the provided Datasource and identifier.

Parameters:
datasource - the datasource that will be used to create the manager
identifier - the identifier that will be used to differentiate the manager when different ones are needed for the same datasource
Returns:
the requested DatabaseUsers instance
Since:
1.0

getCredentialsManager

public CredentialsManager getCredentialsManager(HierarchicalProperties properties)
                                         throws PropertyValueException
Description copied from interface: CredentialsManagerFactory
Returns the manager specified by properties.

The specific properties that are used are determined by the implementation class.

Specified by:
getCredentialsManager in interface CredentialsManagerFactory
Parameters:
properties - the properties that will setup the manager
Throws:
PropertyValueException - when an error occurred during the retrieval of the property values


Copyright © 2001-2007 Uwyn sprl/bvba. All Rights Reserved.