Class ConfigConfiguration


  • @Configuration
    @EnableJpaRepositories(entityManagerFactoryRef="configEntityManagerFactory",
                           basePackages="africa.absa.inception.config")
    public class ConfigConfiguration
    extends Object
    The ConfigConfig class provides the Spring configuration for the Config module.
    Author:
    Marcus Portmann
    • Constructor Detail

      • ConfigConfiguration

        public ConfigConfiguration​(org.springframework.context.ApplicationContext applicationContext)
        Constructs a new ConfigConfiguration.
        Parameters:
        applicationContext - the Spring application context
    • Method Detail

      • configEntityManagerFactory

        @Bean
        public org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean configEntityManagerFactory​(@Qualifier("applicationDataSource")
                                                                                                             DataSource dataSource,
                                                                                                             org.springframework.transaction.PlatformTransactionManager platformTransactionManager)
        Returns the config entity manager factory bean associated with the application data source.
        Parameters:
        dataSource - the application data source
        platformTransactionManager - the platform transaction manager
        Returns:
        the config entity manager factory bean associated with the application data source