Class BootstrappedDataSourceFactory
- java.lang.Object
-
- ubic.gemma.persistence.initialization.BootstrappedDataSourceFactory
-
- All Implemented Interfaces:
DisposableBean
,FactoryBean<DataSource>
public class BootstrappedDataSourceFactory extends Object implements FactoryBean<DataSource>, 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.HikariDataSource
createBootstrappedDataSource(DataSource dataSource)
void
destroy()
DataSource
getObject()
Class<?>
getObjectType()
boolean
isSingleton()
-
-
-
Constructor Detail
-
BootstrappedDataSourceFactory
public BootstrappedDataSourceFactory(DataSource dataSource)
-
-
Method Detail
-
getObject
public DataSource getObject() throws Exception
- Specified by:
getObject
in interfaceFactoryBean<DataSource>
- Throws:
Exception
-
getObjectType
public Class<?> getObjectType()
- Specified by:
getObjectType
in interfaceFactoryBean<DataSource>
-
isSingleton
public boolean isSingleton()
- Specified by:
isSingleton
in interfaceFactoryBean<DataSource>
-
destroy
public void destroy() throws Exception
- Specified by:
destroy
in interfaceDisposableBean
- Throws:
Exception
-
createBootstrappedDataSource
public static com.zaxxer.hikari.HikariDataSource createBootstrappedDataSource(DataSource dataSource)
-
-