Class CronappConfiguration

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

    @Configuration
    @ComponentScan
    @EnableCaching
    @EnableJpaRepositories(basePackageClasses=CronappConfiguration.class,
                           entityManagerFactoryRef="cronappEntityManagerFactoryBean",
                           transactionManagerRef="cronappTransactionManager")
    public class CronappConfiguration
    extends Object
    implements org.springframework.context.ApplicationContextAware
    • Constructor Detail

      • CronappConfiguration

        public CronappConfiguration()
    • Method Detail

      • getProperty

        public static String getProperty​(String key)
      • getBean

        public static <T> T getBean​(String name,
                                    @Nullable
                                    Class<T> requiredType)
      • getBean

        public static <T> T getBean​(Class<T> requiredType)
      • autowire

        public static <T> T autowire​(Class<T> requiredType)
      • cronappEntityManagerFactoryBean

        @Bean
        public org.springframework.orm.jpa.AbstractEntityManagerFactoryBean cronappEntityManagerFactoryBean​(@Qualifier("cronappDataSource")
                                                                                                            DataSource dataSource,
                                                                                                            List<EntityManagerConfiguration> configurations,
                                                                                                            org.springframework.orm.jpa.JpaVendorAdapter jpaVendorAdapter)
      • jpaVendorAdapter

        @Bean
        public org.springframework.orm.jpa.JpaVendorAdapter jpaVendorAdapter()
      • cronappEntityManagerFactory

        @Bean
        public javax.persistence.EntityManagerFactory cronappEntityManagerFactory​(@Qualifier("cronappEntityManagerFactoryBean")
                                                                                  org.springframework.orm.jpa.AbstractEntityManagerFactoryBean factoryBean)
      • cronappTransactionManager

        @Bean
        public org.springframework.transaction.PlatformTransactionManager cronappTransactionManager​(@Qualifier("cronappEntityManagerFactory")
                                                                                                    javax.persistence.EntityManagerFactory entityManagerFactory)
      • liquibase

        @Bean
        public liquibase.integration.spring.SpringLiquibase liquibase​(List<CronappChangeLog> changeLogs,
                                                                      org.springframework.core.io.ResourceLoader resourceLoader,
                                                                      @Qualifier("cronappDataSource")
                                                                      DataSource dataSource)
                                                               throws Exception
        Throws:
        Exception
      • coreLiquibaseChangelog

        @Bean
        public CronappChangeLog coreLiquibaseChangelog​(org.springframework.core.env.Environment environment)
      • setApplicationContext

        public void setApplicationContext​(org.springframework.context.ApplicationContext applicationContext)
        Specified by:
        setApplicationContext in interface org.springframework.context.ApplicationContextAware
      • cacheManager

        @Bean
        public org.springframework.cache.CacheManager cacheManager()