Package africa.absa.inception.error
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
ConstructorsConstructorDescriptionErrorConfiguration(org.springframework.context.ApplicationContext applicationContext) Constructs a new ErrorConfiguration. -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.orm.jpa.LocalContainerEntityManagerFactoryBeanerrorEntityManagerFactory(DataSource dataSource, org.springframework.transaction.PlatformTransactionManager platformTransactionManager) Returns the error entity manager factory bean associated with the application data source.
-
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 sourceplatformTransactionManager- the platform transaction manager- Returns:
- the error entity manager factory bean associated with the application data source
-