Package africa.absa.inception.security
Class SecurityConfiguration
- java.lang.Object
-
- africa.absa.inception.security.SecurityConfiguration
-
@Configuration @EnableJpaRepositories(entityManagerFactoryRef="securityEntityManagerFactory", basePackages="africa.absa.inception.security") public class SecurityConfiguration extends ObjectThe SecurityConfiguration class provides the Spring configuration for the Security module.- Author:
- Marcus Portmann
-
-
Constructor Summary
Constructors Constructor Description SecurityConfiguration(org.springframework.context.ApplicationContext applicationContext)Constructs a new SecurityConfiguration.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBeansecurityEntityManagerFactory(DataSource dataSource, org.springframework.transaction.PlatformTransactionManager platformTransactionManager)Returns the security entity manager factory bean associated with the application data source.
-
-
-
Method Detail
-
securityEntityManagerFactory
@Bean public org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean securityEntityManagerFactory(@Qualifier("applicationDataSource") DataSource dataSource, org.springframework.transaction.PlatformTransactionManager platformTransactionManager)Returns the security entity manager factory bean associated with the application data source.- Parameters:
dataSource- the application data sourceplatformTransactionManager- the platform transaction manager- Returns:
- the security entity manager factory bean associated with the application data source
-
-