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