|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfr.cnes.sitools.datasource.mongodb.business.SitoolsMongoDBDataSourceFactory
public final class SitoolsMongoDBDataSourceFactory
DataSources configuration / lookup via JNDI Use of connection pools ApacheDbcp
TODO rendre plus parametrable pour que les DataSources puissent être précisément créés au demarrage du serveur
Restlet à partir de la lecture du fichier de configuration
Method Summary | |
---|---|
static java.util.ArrayList<SitoolsMongoDBDataSource> |
getAll()
Get an array of all DataSources |
static SitoolsMongoDBDataSource |
getDataSource(java.lang.String dsName)
Get the DataSource by name |
static SitoolsMongoDBDataSourceFactory |
getInstance()
Get an instance of SitoolsDatasource |
static void |
removeDataSource(java.lang.String dsName)
removeDataSource |
SitoolsMongoDBDataSource |
setupDataSourceForUsers(MongoDBDataSource dataSource)
Setup a dataSource for "users". |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static SitoolsMongoDBDataSourceFactory getInstance()
public SitoolsMongoDBDataSource setupDataSourceForUsers(MongoDBDataSource dataSource)
dataSource
- the DataSource to update
public static void removeDataSource(java.lang.String dsName)
dsName
- the name of the DataSource to removepublic static SitoolsMongoDBDataSource getDataSource(java.lang.String dsName)
dsName
- the identifier of the DataSource
public static java.util.ArrayList<SitoolsMongoDBDataSource> getAll()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |