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 Object
The SecurityConfiguration class provides the Spring configuration for the Security module.
- Author:
- Marcus Portmann
-
Constructor Summary
ConstructorsConstructorDescriptionSecurityConfiguration(org.springframework.context.ApplicationContext applicationContext) Constructs a new SecurityConfiguration. -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.orm.jpa.LocalContainerEntityManagerFactoryBeansecurityEntityManagerFactory(DataSource dataSource, org.springframework.transaction.PlatformTransactionManager platformTransactionManager) Returns the security entity manager factory bean associated with the application data source.
-
Constructor Details
-
SecurityConfiguration
public SecurityConfiguration(org.springframework.context.ApplicationContext applicationContext) Constructs a new SecurityConfiguration.- Parameters:
applicationContext- the Spring application context
-
-
Method Details
-
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
-