Interface DataSourceFactory
public interface DataSourceFactory
DataSourceFactoryencapsulates the creation of a particularDataSourceimplementation such as aSimpleDriverDataSourceor a connection pool such as Apache DBCP or C3P0.Call
getConnectionProperties()to configure normalizedDataSourceproperties before callinggetDataSource()to actually get the configuredDataSourceinstance.- Since:
- 3.0
- Author:
- Keith Donald, Sam Brannen
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ConnectionPropertiesgetConnectionProperties()Get the connection properties of theDataSourceto be configured.DataSourcegetDataSource()Get theDataSourcewith the connection properties applied.
Method Detail
getConnectionProperties
ConnectionProperties getConnectionProperties()
Get the connection properties of theDataSourceto be configured.
getDataSource
DataSource getDataSource()
Get theDataSourcewith the connection properties applied.