Package africa.absa.inception.mail
Class MailConfiguration
- java.lang.Object
-
- africa.absa.inception.mail.MailConfiguration
-
@Configuration @EnableJpaRepositories(entityManagerFactoryRef="mailEntityManagerFactory", basePackages="africa.absa.inception.mail") public class MailConfiguration extends ObjectThe MailConfiguration class provides the Spring configuration for the Mail module.- Author:
- Marcus Portmann
-
-
Constructor Summary
Constructors Constructor Description MailConfiguration(org.springframework.context.ApplicationContext applicationContext)Constructs a new MailConfiguration.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBeanmailEntityManagerFactory(DataSource dataSource, org.springframework.transaction.PlatformTransactionManager platformTransactionManager)Returns the mail entity manager factory bean associated with the application data source.
-
-
-
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 sourceplatformTransactionManager- the platform transaction manager- Returns:
- the mail entity manager factory bean associated with the application data source
-
-