@ApplicationScoped public class DataSourceManager extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_DATASOURCE_NAME |
| Constructor and Description |
|---|
DataSourceManager() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkDriverClassAvailable(String driverClassName) |
DataSource |
getDataSource(String name)
Get a datasource given its name
|
List<DataSourceEntry> |
getDataSourceEntries()
Get all registered datasource entries
|
DataSourceEntry |
getDataSourceEntry(String name) |
List<String> |
getDataSourceNames()
Get all registered datasource names
|
void |
start() |
public static final String DEFAULT_DATASOURCE_NAME
@PostConstruct public void start()
public boolean checkDriverClassAvailable(String driverClassName)
public List<DataSourceEntry> getDataSourceEntries()
public DataSourceEntry getDataSourceEntry(String name) throws Exception
Exceptionpublic DataSource getDataSource(String name) throws Exception
ExceptionCopyright © 2012–2015 JBoss by Red Hat. All rights reserved.