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

    Constructors
    Constructor
    Description
    SecurityConfiguration(org.springframework.context.ApplicationContext applicationContext)
    Constructs a new SecurityConfiguration.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean
    securityEntityManagerFactory(DataSource dataSource, org.springframework.transaction.PlatformTransactionManager platformTransactionManager)
    Returns the security entity manager factory bean associated with the application data source.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 source
      platformTransactionManager - the platform transaction manager
      Returns:
      the security entity manager factory bean associated with the application data source