org.springframework.boot.jdbc

Class AbstractDataSourceInitializer

  • All Implemented Interfaces:
    org.springframework.beans.factory.InitializingBean


    public abstract class AbstractDataSourceInitializer
    extends Object
    implements org.springframework.beans.factory.InitializingBean
    Base class used for DataSource initialization.
    Since:
    1.5.0
    Author:
    Vedran Pavic, Stephane Nicoll
    • Constructor Detail

      • AbstractDataSourceInitializer

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

      • afterPropertiesSet

        public void afterPropertiesSet()
        Specified by:
        afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
      • initialize

        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 String getSchemaLocation()
      • getDatabaseName

        protected String getDatabaseName()

Copyright © 2020 Pivotal Software, Inc.. All rights reserved.