SI
- the RelationalServiceInfo
for the backing database servicepublic abstract class DataSourceCreator<SI extends RelationalServiceInfo> extends AbstractServiceConnectorCreator<javax.sql.DataSource,SI>
Modifier and Type | Field and Description |
---|---|
protected static java.util.logging.Logger |
logger |
Constructor and Description |
---|
DataSourceCreator(java.lang.String driverSystemPropKey,
java.lang.String[] driverClasses,
java.lang.String validationQuery) |
Modifier and Type | Method and Description |
---|---|
javax.sql.DataSource |
create(SI serviceInfo,
ServiceConnectorConfig serviceConnectorConfig)
Create service for the given service info and configured with the given
configuration
|
java.lang.String |
getDriverClassName(SI serviceInfo) |
getServiceConnectorType, getServiceInfoType
public DataSourceCreator(java.lang.String driverSystemPropKey, java.lang.String[] driverClasses, java.lang.String validationQuery)
public javax.sql.DataSource create(SI serviceInfo, ServiceConnectorConfig serviceConnectorConfig)
ServiceConnectorCreator
serviceInfo
- the ServiceInfo
object containing the information necessary to connect to the serviceserviceConnectorConfig
- configuration information to be applied to the connectionpublic java.lang.String getDriverClassName(SI serviceInfo)