final class H2EmbeddedDatabaseConfigurer extends AbstractEmbeddedDatabaseConfigurer
getInstance()
to get the singleton instance of this class.Modifier and Type | Field and Description |
---|---|
private java.lang.Class<? extends java.sql.Driver> |
driverClass |
private static H2EmbeddedDatabaseConfigurer |
INSTANCE |
logger
Modifier | Constructor and Description |
---|---|
private |
H2EmbeddedDatabaseConfigurer(java.lang.Class<? extends java.sql.Driver> driverClass) |
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.
|
static H2EmbeddedDatabaseConfigurer |
getInstance()
Get the singleton
H2EmbeddedDatabaseConfigurer instance. |
shutdown
private static H2EmbeddedDatabaseConfigurer INSTANCE
private final java.lang.Class<? extends java.sql.Driver> driverClass
private H2EmbeddedDatabaseConfigurer(java.lang.Class<? extends java.sql.Driver> driverClass)
public static H2EmbeddedDatabaseConfigurer getInstance() throws java.lang.ClassNotFoundException
H2EmbeddedDatabaseConfigurer
instance.java.lang.ClassNotFoundException
- if H2 is not on the classpathpublic void configureConnectionProperties(ConnectionProperties properties, java.lang.String databaseName)
EmbeddedDatabaseConfigurer
databaseName
- the name of the test database