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 Details

    • BootstrappedDataSourceFactory

      public BootstrappedDataSourceFactory(DataSource dataSource)
  • Method Details

    • getObject

      public DataSource getObject() throws Exception
      Specified by:
      getObject in interface org.springframework.beans.factory.FactoryBean<DataSource>
      Throws:
      Exception
    • getObjectType

      public Class<?> getObjectType()
      Specified by:
      getObjectType in interface org.springframework.beans.factory.FactoryBean<DataSource>
    • isSingleton

      public boolean isSingleton()
      Specified by:
      isSingleton in interface org.springframework.beans.factory.FactoryBean<DataSource>
    • destroy

      public void destroy() throws Exception
      Specified by:
      destroy in interface org.springframework.beans.factory.DisposableBean
      Throws:
      Exception
    • createBootstrappedDataSource

      public static com.zaxxer.hikari.HikariDataSource createBootstrappedDataSource(DataSource dataSource)