D
- the data source created by the providerC
- the configuration loaded by the providerpublic abstract class ConfigurableDataSourceProvider<D extends DataSource,C extends DataSourceConfiguration<D>> extends DataSourceProvider
Modifier | Constructor and Description |
---|---|
protected |
ConfigurableDataSourceProvider(Class<C> clazz)
Create a new configurable data source provider.
|
Modifier and Type | Method and Description |
---|---|
D |
createInstance()
Creates the instance by reading the configuration file and creating
the data source from the configuration.
|
String |
getBundledDefaultConfiguration()
The name of the bundled resource with the default configuration
file.
|
String |
getConfigurationFilename()
The name of the configuration file.
|
String |
getConfigurationPath()
The path from DIIRT_HOME where to find the configuration file.
|
createDataSource, getName
protected Class<C extends DataSourceConfiguration<D>> clazz
public String getConfigurationPath()
Default is "datasource/[providerName]".
public String getConfigurationFilename()
Default is "[providerName].xml"
public String getBundledDefaultConfiguration()
public D createInstance()
createInstance
in class DataSourceProvider
Copyright © 2015. All rights reserved.