added pre destroy
This commit is contained in:
parent
e783211f88
commit
adcbe27852
|
|
@ -15,6 +15,7 @@
|
|||
*/
|
||||
package org.springframework.jdbc.datasource.embedded;
|
||||
|
||||
import javax.annotation.PreDestroy;
|
||||
import javax.sql.DataSource;
|
||||
|
||||
/**
|
||||
|
|
@ -27,7 +28,7 @@ public interface EmbeddedDatabase extends DataSource {
|
|||
|
||||
/**
|
||||
* Shutdown this embedded database.
|
||||
* TODO - annotate with @PreDestroy for invocation by Spring container?
|
||||
*/
|
||||
@PreDestroy
|
||||
void shutdown();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -102,7 +102,7 @@ public class EmbeddedDatabaseFactory {
|
|||
* @param populator the database populator
|
||||
*/
|
||||
public void setDatabasePopulator(DatabasePopulator populator) {
|
||||
Assert.notNull(populator, "The TestDatabasePopulator is required");
|
||||
Assert.notNull(populator, "The DatabasePopulator is required");
|
||||
databasePopulator = populator;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue