public class DataSourceConfig extends Object
DataSource
instances.Modifier and Type | Class and Description |
---|---|
static class |
DataSourceConfig.DataSourceDefinition
The definition of a DataSource.
|
Modifier and Type | Field and Description |
---|---|
static String |
DB_TYPE |
static String |
DRIVER |
static String |
MAX_POOL_SIZE |
static String |
PASSWORD |
static String |
URL |
static String |
USER |
static String |
VALIDATION_QUERY |
Constructor and Description |
---|
DataSourceConfig() |
Modifier and Type | Method and Description |
---|---|
void |
addDataSourceDefinition(String name,
Properties props)
Adds a DataSourceDefinition from the given properties.
|
List<DataSourceConfig.DataSourceDefinition> |
getDefinitions() |
public static final String DRIVER
public static final String URL
public static final String USER
public static final String PASSWORD
public static final String DB_TYPE
public static final String VALIDATION_QUERY
public static final String MAX_POOL_SIZE
public void addDataSourceDefinition(String name, Properties props) throws ConfigurationException
props
- the properties (key and values must be strings)ConfigurationException
- on errorpublic List<DataSourceConfig.DataSourceDefinition> getDefinitions()
DataSourceConfig.DataSourceDefinition
sCopyright © 2004-2020 The Apache Software Foundation. All Rights Reserved.