spring-framework / org.springframework.jdbc.datasource.embedded / EmbeddedDatabaseBuilder / setDataSourceFactory

setDataSourceFactory

open fun setDataSourceFactory(dataSourceFactory: DataSourceFactory): EmbeddedDatabaseBuilder

Set the factory to use to create the DataSource instance that connects to the embedded database.

Defaults to SimpleDriverDataSourceFactory but can be overridden, for example to introduce connection pooling.

Return
this, to facilitate method chaining

Since
4.0.3