Class DatabaseInitializer

  • All Implemented Interfaces:
    org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware

    public class DatabaseInitializer
    extends Object
    implements org.springframework.context.ApplicationContextAware
    This class is responsible for initializing the database. This class has been added as a replacement for jdbc:initialize tags in the spring config in order to enable us to lazily initialize the database.
    Author:
    Daniel Bernstein Date: Feb 12, 2014
    • Constructor Detail

      • DatabaseInitializer

        public DatabaseInitializer​(org.apache.commons.dbcp2.BasicDataSource dataSource,
                                   List<org.springframework.core.io.Resource> dropSchemas,
                                   List<org.springframework.core.io.Resource> createSchemas,
                                   List<org.springframework.core.io.Resource> storedProcedureDefinitions)
    • Method Detail

      • setApplicationContext

        public void setApplicationContext​(org.springframework.context.ApplicationContext applicationContext)
                                   throws org.springframework.beans.BeansException
        Specified by:
        setApplicationContext in interface org.springframework.context.ApplicationContextAware
        Throws:
        org.springframework.beans.BeansException