added pre destroy

git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@1055 50f2f4bb-b051-0410-bef5-90022cba6387
This commit is contained in:
Keith Donald
2009-04-22 21:14:06 +00:00
parent cd9c3c880a
commit e6b63d73f6
2 changed files with 3 additions and 2 deletions
@@ -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;
}