|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.uwyn.rife.database.DbQueryManagerFactory
com.uwyn.rife.authentication.credentialsmanagers.DatabaseUsersFactory
public class DatabaseUsersFactory
Factory for DatabaseUsers manager instances that creates singletons
based on the Datasource and an optional differentiating
identifier.
| 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 |
|---|
public static final String MANAGER_PACKAGE_NAME
| Constructor Detail |
|---|
public DatabaseUsersFactory()
| Method Detail |
|---|
public static DatabaseUsers getInstance(Datasource datasource)
DatabaseUsers for the provided
Datasource.
datasource - the datasource that will be used to create the manager
DatabaseUsers instance
public static DatabaseUsers getInstance(Datasource datasource,
String identifier)
DatabaseUsers for the provided
Datasource and identifier.
datasource - the datasource that will be used to create the manageridentifier - the identifier that will be used to differentiate the
manager when different ones are needed for the same datasource
DatabaseUsers instance
public CredentialsManager getCredentialsManager(HierarchicalProperties properties)
throws PropertyValueException
CredentialsManagerFactoryThe specific properties that are used are determined by the implementation class.
getCredentialsManager in interface CredentialsManagerFactoryproperties - the properties that will setup the manager
PropertyValueException - when an error occurred during the retrieval
of the property values
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||