spring-framework / org.springframework.jdbc.datasource.embedded / EmbeddedDatabaseFactoryBean / <init>

<init>

EmbeddedDatabaseFactoryBean()

A subclass of EmbeddedDatabaseFactory that implements FactoryBean for registration as a Spring bean. Returns the actual DataSource that provides connectivity to the embedded database to Spring.

The target DataSource is returned instead of an EmbeddedDatabase proxy since the FactoryBean will manage the initialization and destruction lifecycle of the embedded database instance.

Implements DisposableBean to shutdown the embedded database when the managing Spring container is being closed.

Author
Keith Donald

Author
Juergen Hoeller

Since
3.0