类 SimpleBatchConfiguration
- java.lang.Object
- org.springframework.batch.core.configuration.annotation.AbstractBatchConfiguration
- org.springframework.batch.core.configuration.annotation.SimpleBatchConfiguration
- 所有已实现的接口:
org.springframework.beans.factory.Aware
,org.springframework.context.annotation.ImportAware
@Configuration public class SimpleBatchConfiguration extends AbstractBatchConfiguration
BaseConfiguration
class providing common structure for enabling and using Spring Batch. Customization is available by implementing theBatchConfigurer
interface. The main components are created as lazy proxies that only initialize when a method is called. This is to prevent (as much as possible) configuration cycles from developing when these components are needed in a configuration resource that itself provides aBatchConfigurer
.- 从以下版本开始:
- 2.2
- 作者:
- Dave Syer
- 另请参阅:
EnableBatchProcessing
构造器概要
构造器 构造器 说明 SimpleBatchConfiguration()
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 protected void
initialize()
Sets up the basic components by extracting them from theconfigurer
, defaulting to some sensible values as long as a unique DataSource is available.JobExplorer
jobExplorer()
JobLauncher
jobLauncher()
JobRegistry
jobRegistry()
JobRepository
jobRepository()
org.springframework.transaction.PlatformTransactionManager
transactionManager()
从类继承的方法 org.springframework.batch.core.configuration.annotation.AbstractBatchConfiguration
getConfigurer, jobBuilders, setImportMetadata, stepBuilders
构造器详细资料
SimpleBatchConfiguration
public SimpleBatchConfiguration()
方法详细资料
jobRepository
@Bean public JobRepository jobRepository() throws java.lang.Exception
- 指定者:
jobRepository
在类中AbstractBatchConfiguration
- 抛出:
java.lang.Exception
jobLauncher
@Bean public JobLauncher jobLauncher() throws java.lang.Exception
- 指定者:
jobLauncher
在类中AbstractBatchConfiguration
- 抛出:
java.lang.Exception
jobRegistry
@Bean public JobRegistry jobRegistry() throws java.lang.Exception
- 覆盖:
jobRegistry
在类中AbstractBatchConfiguration
- 抛出:
java.lang.Exception
jobExplorer
@Bean public JobExplorer jobExplorer()
transactionManager
@Bean public org.springframework.transaction.PlatformTransactionManager transactionManager() throws java.lang.Exception
- 指定者:
transactionManager
在类中AbstractBatchConfiguration
- 抛出:
java.lang.Exception
initialize
protected void initialize() throws java.lang.Exception
Sets up the basic components by extracting them from theconfigurer
, defaulting to some sensible values as long as a unique DataSource is available.- 抛出:
java.lang.Exception
- if there is a problem in the configurer