@EnableConfigurationProperties(value=BatchProperties.class) @ConditionalOnClass(value=org.springframework.transaction.PlatformTransactionManager.class, name="javax.persistence.EntityManagerFactory") @ConditionalOnMissingBean(value=org.springframework.batch.core.configuration.annotation.BatchConfigurer.class) @Configuration protected static class BatchAutoConfiguration.JpaBatchConfiguration extends Object
Modifier | Constructor and Description |
---|---|
protected |
JpaBatchConfiguration(BatchProperties properties) |
Modifier and Type | Method and Description |
---|---|
BasicBatchConfigurer |
basicBatchConfigurer(DataSource dataSource,
org.springframework.beans.factory.ObjectProvider<TransactionManagerCustomizers> transactionManagerCustomizers) |
BasicBatchConfigurer |
jpaBatchConfigurer(DataSource dataSource,
EntityManagerFactory entityManagerFactory,
org.springframework.beans.factory.ObjectProvider<TransactionManagerCustomizers> transactionManagerCustomizers) |
protected JpaBatchConfiguration(BatchProperties properties)
@Bean @ConditionalOnBean(name="entityManagerFactory") public BasicBatchConfigurer jpaBatchConfigurer(DataSource dataSource, EntityManagerFactory entityManagerFactory, org.springframework.beans.factory.ObjectProvider<TransactionManagerCustomizers> transactionManagerCustomizers)
@Bean @ConditionalOnMissingBean(name="entityManagerFactory") public BasicBatchConfigurer basicBatchConfigurer(DataSource dataSource, org.springframework.beans.factory.ObjectProvider<TransactionManagerCustomizers> transactionManagerCustomizers)
Copyright © 2017 Pivotal Software, Inc.. All rights reserved.