Class DataSourceConfig
- java.lang.Object
-
- org.apache.jackrabbit.core.config.DataSourceConfig
-
public class DataSourceConfig extends java.lang.Object
This class contains list of definitions forDataSource
instances.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DataSourceConfig.DataSourceDefinition
The definition of a DataSource.
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
DB_TYPE
static java.lang.String
DRIVER
static java.lang.String
MAX_POOL_SIZE
static java.lang.String
PASSWORD
static java.lang.String
URL
static java.lang.String
USER
static java.lang.String
VALIDATION_QUERY
-
Constructor Summary
Constructors Constructor Description DataSourceConfig()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addDataSourceDefinition(java.lang.String name, java.util.Properties props)
Adds a DataSourceDefinition from the given properties.java.util.List<DataSourceConfig.DataSourceDefinition>
getDefinitions()
-
-
-
Field Detail
-
DRIVER
public static final java.lang.String DRIVER
- See Also:
- Constant Field Values
-
URL
public static final java.lang.String URL
- See Also:
- Constant Field Values
-
USER
public static final java.lang.String USER
- See Also:
- Constant Field Values
-
PASSWORD
public static final java.lang.String PASSWORD
- See Also:
- Constant Field Values
-
DB_TYPE
public static final java.lang.String DB_TYPE
- See Also:
- Constant Field Values
-
VALIDATION_QUERY
public static final java.lang.String VALIDATION_QUERY
- See Also:
- Constant Field Values
-
MAX_POOL_SIZE
public static final java.lang.String MAX_POOL_SIZE
- See Also:
- Constant Field Values
-
-
Method Detail
-
addDataSourceDefinition
public void addDataSourceDefinition(java.lang.String name, java.util.Properties props) throws ConfigurationException
Adds a DataSourceDefinition from the given properties.- Parameters:
props
- the properties (key and values must be strings)- Throws:
ConfigurationException
- on error
-
getDefinitions
public java.util.List<DataSourceConfig.DataSourceDefinition> getDefinitions()
- Returns:
- the unmodifiable list of the current
DataSourceConfig.DataSourceDefinition
s
-
-