org.springframework.boot.jdbc

Class AbstractDataSourceInitializer

  • java.lang.Object
    • org.springframework.boot.jdbc.AbstractDataSourceInitializer


  • public abstract class AbstractDataSourceInitializer
    extends java.lang.Object
    Base class used for DataSource initialization.
    Since:
    1.5.0
    • Constructor Detail

      • AbstractDataSourceInitializer

        protected AbstractDataSourceInitializer(javax.sql.DataSource dataSource,
                                                org.springframework.core.io.ResourceLoader resourceLoader)
    • Method Detail

      • initialize

        @PostConstruct
        protected void initialize()
      • customize

        protected void customize(org.springframework.jdbc.datasource.init.ResourceDatabasePopulator populator)
        Customize the ResourceDatabasePopulator.
        Parameters:
        populator - the configured database populator
      • getSchemaLocation

        protected abstract java.lang.String getSchemaLocation()
      • getDatabaseName

        protected java.lang.String getDatabaseName()