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.Modifier and Type | Method and Description |
---|---|
void |
configureConnectionProperties(ConnectionProperties properties,
java.lang.String databaseName)
Configure the properties required to create and connect to the embedded
database instance.
|
void |
shutdown(javax.sql.DataSource dataSource,
java.lang.String databaseName)
Shut down the embedded database instance that backs the supplied
DataSource . |
void configureConnectionProperties(ConnectionProperties properties, java.lang.String databaseName)
properties
- connection properties to configuredatabaseName
- the name of the embedded databasevoid shutdown(javax.sql.DataSource dataSource, java.lang.String databaseName)
DataSource
.dataSource
- the data sourcedatabaseName
- the name of the database being shut down