Class ConfigConfiguration

java.lang.Object
africa.absa.inception.config.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 Summary

    Constructors
    Constructor
    Description
    ConfigConfiguration(org.springframework.context.ApplicationContext applicationContext)
    Constructs a new ConfigConfiguration.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean
    configEntityManagerFactory(DataSource dataSource, org.springframework.transaction.PlatformTransactionManager platformTransactionManager)
    Returns the config entity manager factory bean associated with the application data source.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ConfigConfiguration

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

    • 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