Class BatchAutoConfiguration.JpaBatchConfiguration
- java.lang.Object
- org.springframework.boot.autoconfigure.batch.BatchAutoConfiguration.JpaBatchConfiguration
- Enclosing class:
- BatchAutoConfiguration
@EnableConfigurationProperties(BatchProperties.class) @ConditionalOnClass(value=org.springframework.transaction.PlatformTransactionManager.class, name="javax.persistence.EntityManagerFactory") @ConditionalOnMissingBean(org.springframework.batch.core.configuration.annotation.BatchConfigurer.class) @Configuration protected static class BatchAutoConfiguration.JpaBatchConfiguration extends Object
Constructor Summary
Constructors Modifier Constructor Description protected
JpaBatchConfiguration(BatchProperties properties)
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BasicBatchConfigurer
basicBatchConfigurer(DataSource dataSource, org.springframework.beans.factory.ObjectProvider<TransactionManagerCustomizers> transactionManagerCustomizers)
BasicBatchConfigurer
jpaBatchConfigurer(DataSource dataSource, javax.persistence.EntityManagerFactory entityManagerFactory, org.springframework.beans.factory.ObjectProvider<TransactionManagerCustomizers> transactionManagerCustomizers)
Constructor Detail
JpaBatchConfiguration
protected JpaBatchConfiguration(BatchProperties properties)
Method Detail
jpaBatchConfigurer
@Bean @ConditionalOnBean(name="entityManagerFactory") public BasicBatchConfigurer jpaBatchConfigurer(DataSource dataSource, javax.persistence.EntityManagerFactory entityManagerFactory, org.springframework.beans.factory.ObjectProvider<TransactionManagerCustomizers> transactionManagerCustomizers)
basicBatchConfigurer
@Bean @ConditionalOnMissingBean(name="entityManagerFactory") public BasicBatchConfigurer basicBatchConfigurer(DataSource dataSource, org.springframework.beans.factory.ObjectProvider<TransactionManagerCustomizers> transactionManagerCustomizers)