public class DataSourceMgr extends Object
DataSource
for each
connection.properties file that it finds.Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_DATASOURCES_LOC
Defines the default location where the datasource files will be found.
|
Modifier and Type | Method and Description |
---|---|
DataSource |
getDataSource(String modelname) |
Map<String,DataSource> |
getDataSources() |
static DataSourceMgr |
getInstance() |
int |
numberOfAvailDataSources() |
void |
setDataSource(String modelName,
DataSource ds) |
void |
shutdown() |
public static final String DEFAULT_DATASOURCES_LOC
ConfigPropertyNames.OVERRIDE_DATASOURCES_LOC
.public static DataSourceMgr getInstance()
public Map<String,DataSource> getDataSources()
public int numberOfAvailDataSources()
public DataSource getDataSource(String modelname)
public void shutdown()
public void setDataSource(String modelName, DataSource ds)
Copyright © 2018 JBoss by Red Hat. All rights reserved.