@CompileStatic class EmbeddedDatabaseShutdownHook extends Object implements SmartLifecycle, ApplicationContextAware
Constructor and description |
---|
EmbeddedDatabaseShutdownHook() |
Type Params | Return Type | Name and description |
---|---|---|
|
protected Object |
addShutdownOperation(Connection connection) |
|
int |
getPhase() |
|
boolean |
isAutoStartup() |
|
protected boolean |
isEmbeddedH2orHsqldb(javax.sql.DataSource dataSource) |
|
boolean |
isRunning() |
|
void |
setApplicationContext(ApplicationContext applicationContext) |
|
protected Object |
shutdownEmbeddedDatabase(javax.sql.DataSource dataSource) |
|
void |
start() |
|
void |
stop() |
|
void |
stop(Runnable callback) |