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 Constructor Description BootstrappedDataSourceFactory(DataSource dataSource)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static com.zaxxer.hikari.HikariDataSourcecreateBootstrappedDataSource(DataSource dataSource)voiddestroy()DataSourcegetObject()Class<?>getObjectType()booleanisSingleton()
-
-
-
Constructor Detail
-
BootstrappedDataSourceFactory
public BootstrappedDataSourceFactory(DataSource dataSource)
-
-
Method Detail
-
getObject
public DataSource getObject() throws Exception
- Specified by:
getObjectin interfaceorg.springframework.beans.factory.FactoryBean<DataSource>- Throws:
Exception
-
getObjectType
public Class<?> getObjectType()
- Specified by:
getObjectTypein interfaceorg.springframework.beans.factory.FactoryBean<DataSource>
-
isSingleton
public boolean isSingleton()
- Specified by:
isSingletonin interfaceorg.springframework.beans.factory.FactoryBean<DataSource>
-
destroy
public void destroy() throws Exception- Specified by:
destroyin interfaceorg.springframework.beans.factory.DisposableBean- Throws:
Exception
-
createBootstrappedDataSource
public static com.zaxxer.hikari.HikariDataSource createBootstrappedDataSource(DataSource dataSource)
-
-