Top Description Methods
org.springframework.jdbc.datasource.embedded

public Interface DataSourceFactory

Known Direct Implementers
org.springframework.jdbc.datasource.embedded.SimpleDriverDataSourceFactory
Imports
javax.sql.DataSource

DataSourceFactory encapsulates the creation of a particular DataSource implementation such as a non-pooling org.springframework.jdbc.datasource.SimpleDriverDataSource or a HikariCP pool setup in the shape of a HikariDataSource.

Call getConnectionProperties() to configure normalized DataSource properties before calling getDataSource() to actually get the configured DataSource instance.

Authors
Keith Donald, Sam Brannen
Since
3.0

Method Summary

Modifier and TypeMethod and Description
public ConnectionProperties
getConnectionProperties()

Get the connection properties of the DataSource to be configured.

public DataSource
getDataSource()

Get the DataSource with the connection properties applied.

Method Detail

getConnectionPropertiesback to summary
public ConnectionProperties getConnectionProperties()

Get the connection properties of the DataSource to be configured.

getDataSourceback to summary
public DataSource getDataSource()

Get the DataSource with the connection properties applied.