Interface EmbeddedDatabaseConfigurer
- All Known Implementing Classes:
EmbeddedDatabaseConfigurerDelegate
public interface EmbeddedDatabaseConfigurer
EmbeddedDatabaseConfigurer
encapsulates 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
Modifier and TypeMethodDescriptionvoid
configureConnectionProperties
(ConnectionProperties properties, String databaseName) Configure the properties required to create and connect to the embedded database.void
shutdown
(DataSource dataSource, String databaseName) Shut down the embedded database instance that backs the suppliedDataSource
.
-
Method Details
-
configureConnectionProperties
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
Shut down the embedded database instance that backs the suppliedDataSource
.- Parameters:
dataSource
- the correspondingDataSource
databaseName
- the name of the database being shut down
-