Class 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 Detail

      • BootstrappedDataSourceFactory

        public BootstrappedDataSourceFactory​(DataSource dataSource)
    • Method Detail

      • 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)