Class MailConfiguration


  • @Configuration
    @EnableJpaRepositories(entityManagerFactoryRef="mailEntityManagerFactory",
                           basePackages="africa.absa.inception.mail")
    public class MailConfiguration
    extends Object
    The MailConfiguration class provides the Spring configuration for the Mail module.
    Author:
    Marcus Portmann
    • Constructor Detail

      • MailConfiguration

        public MailConfiguration​(org.springframework.context.ApplicationContext applicationContext)
        Constructs a new MailConfiguration.
        Parameters:
        applicationContext - the Spring application context
    • Method Detail

      • mailEntityManagerFactory

        @Bean
        public org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean mailEntityManagerFactory​(@Qualifier("applicationDataSource")
                                                                                                           DataSource dataSource,
                                                                                                           org.springframework.transaction.PlatformTransactionManager platformTransactionManager)
        Returns the mail entity manager factory bean associated with the application data source.
        Parameters:
        dataSource - the application data source
        platformTransactionManager - the platform transaction manager
        Returns:
        the mail entity manager factory bean associated with the application data source