Class ErrorConfiguration

java.lang.Object
africa.absa.inception.error.ErrorConfiguration

@Configuration @EnableJpaRepositories(entityManagerFactoryRef="errorEntityManagerFactory", basePackages="africa.absa.inception.error") public class ErrorConfiguration extends Object
The ErrorConfiguration class provides the Spring configuration for the Error module.
Author:
Marcus Portmann
  • Constructor Summary

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

    Modifier and Type
    Method
    Description
    org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean
    errorEntityManagerFactory(DataSource dataSource, org.springframework.transaction.PlatformTransactionManager platformTransactionManager)
    Returns the error 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

    • ErrorConfiguration

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

    • errorEntityManagerFactory

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