Class DataSourceConfig
- java.lang.Object
-
- org.apache.jackrabbit.core.config.DataSourceConfig
-
public class DataSourceConfig extends 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.
-
Constructor Summary
Constructors Constructor Description DataSourceConfig()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addDataSourceDefinition(String name, Properties props)
Adds a DataSourceDefinition from the given properties.List<DataSourceConfig.DataSourceDefinition>
getDefinitions()
-
-
-
Field Detail
-
DRIVER
public static final String DRIVER
- See Also:
- Constant Field Values
-
URL
public static final String URL
- See Also:
- Constant Field Values
-
USER
public static final String USER
- See Also:
- Constant Field Values
-
PASSWORD
public static final String PASSWORD
- See Also:
- Constant Field Values
-
DB_TYPE
public static final String DB_TYPE
- See Also:
- Constant Field Values
-
VALIDATION_QUERY
public static final String VALIDATION_QUERY
- See Also:
- Constant Field Values
-
MAX_POOL_SIZE
public static final String MAX_POOL_SIZE
- See Also:
- Constant Field Values
-
-
Method Detail
-
addDataSourceDefinition
public void addDataSourceDefinition(String name, 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 List<DataSourceConfig.DataSourceDefinition> getDefinitions()
- Returns:
- the unmodifiable list of the current
DataSourceConfig.DataSourceDefinition
s
-
-