org.springframework.jdbc.datasource.embedded
Class AbstractEmbeddedDatabaseConfigurer

java.lang.Object
  extended by org.springframework.jdbc.datasource.embedded.AbstractEmbeddedDatabaseConfigurer
All Implemented Interfaces:
EmbeddedDatabaseConfigurer
Direct Known Subclasses:
H2EmbeddedDatabaseConfigurer, HsqlEmbeddedDatabaseConfigurer

abstract class AbstractEmbeddedDatabaseConfigurer
extends java.lang.Object
implements EmbeddedDatabaseConfigurer

Base class for EmbeddedDatabaseConfigurer implementations providing common shutdown behavior.

Since:
3.0
Author:
Oliver Gierke, Juergen Hoeller

Field Summary
protected  Log logger
           
 
Constructor Summary
AbstractEmbeddedDatabaseConfigurer()
           
 
Method Summary
 void shutdown(javax.sql.DataSource dataSource, java.lang.String databaseName)
          Shutdown the embedded database instance that backs dataSource.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.springframework.jdbc.datasource.embedded.EmbeddedDatabaseConfigurer
configureConnectionProperties
 

Field Detail

logger

protected final Log logger
Constructor Detail

AbstractEmbeddedDatabaseConfigurer

AbstractEmbeddedDatabaseConfigurer()
Method Detail

shutdown

public void shutdown(javax.sql.DataSource dataSource,
                     java.lang.String databaseName)
Description copied from interface: EmbeddedDatabaseConfigurer
Shutdown the embedded database instance that backs dataSource.

Specified by:
shutdown in interface EmbeddedDatabaseConfigurer
Parameters:
dataSource - the data source
databaseName - the name of the database being shutdown