Interface DataSourceFactory
public interface DataSourceFactory
DataSourceFactory
encapsulates the creation of a particularDataSource
implementation such as a non-poolingSimpleDriverDataSource
or a HikariCP pool setup in the shape of aHikariDataSource
.Call
getConnectionProperties()
to configure normalizedDataSource
properties before callinggetDataSource()
to actually get the configuredDataSource
instance.- Since:
- 3.0
- Author:
- Keith Donald, Sam Brannen
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ConnectionProperties
getConnectionProperties()
Get the connection properties of theDataSource
to be configured.DataSource
getDataSource()
Get theDataSource
with the connection properties applied.
Method Detail
getConnectionProperties
ConnectionProperties getConnectionProperties()
Get the connection properties of theDataSource
to be configured.
getDataSource
DataSource getDataSource()
Get theDataSource
with the connection properties applied.