Interface EmbeddedDatabaseConfigurer
public interface EmbeddedDatabaseConfigurer
EmbeddedDatabaseConfigurerencapsulates the configuration required to create, connect to, and shut down a specific type of embedded database such as HSQL, H2, or Derby.- Since:
- 3.0
- Author:
- Keith Donald, Sam Brannen
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidconfigureConnectionProperties(ConnectionProperties properties, String databaseName)Configure the properties required to create and connect to the embedded database.voidshutdown(DataSource dataSource, String databaseName)Shut down the embedded database instance that backs the suppliedDataSource.
Method Detail
configureConnectionProperties
void configureConnectionProperties(ConnectionProperties properties, String databaseName)
Configure the properties required to create and connect to the embedded database.- Parameters:
properties- connection properties to configuredatabaseName- the name of the embedded database
shutdown
void shutdown(DataSource dataSource, String databaseName)
Shut down the embedded database instance that backs the suppliedDataSource.- Parameters:
dataSource- the correspondingDataSourcedatabaseName- the name of the database being shut down