Class 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 Detail

      • SecurityConfiguration

        public SecurityConfiguration​(org.springframework.context.ApplicationContext applicationContext)
        Constructs a new SecurityConfiguration.
        Parameters:
        applicationContext - the Spring application context
    • 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 source
        platformTransactionManager - the platform transaction manager
        Returns:
        the security entity manager factory bean associated with the application data source