Class BootstrappedDataSourceFactory
java.lang.Object
ubic.gemma.persistence.initialization.BootstrappedDataSourceFactory
- All Implemented Interfaces:
org.springframework.beans.factory.DisposableBean,org.springframework.beans.factory.FactoryBean<DataSource>
public class BootstrappedDataSourceFactory
extends Object
implements org.springframework.beans.factory.FactoryBean<DataSource>, org.springframework.beans.factory.DisposableBean
A bootstrapped data source that strips the database from the JDBC URL.
- Author:
- poirigui
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic com.zaxxer.hikari.HikariDataSourcecreateBootstrappedDataSource(DataSource dataSource) voiddestroy()Class<?> boolean
-
Constructor Details
-
BootstrappedDataSourceFactory
-
-
Method Details
-
getObject
- Specified by:
getObjectin interfaceorg.springframework.beans.factory.FactoryBean<DataSource>- Throws:
Exception
-
getObjectType
- Specified by:
getObjectTypein interfaceorg.springframework.beans.factory.FactoryBean<DataSource>
-
isSingleton
public boolean isSingleton()- Specified by:
isSingletonin interfaceorg.springframework.beans.factory.FactoryBean<DataSource>
-
destroy
- Specified by:
destroyin interfaceorg.springframework.beans.factory.DisposableBean- Throws:
Exception
-
createBootstrappedDataSource
public static com.zaxxer.hikari.HikariDataSource createBootstrappedDataSource(DataSource dataSource)
-