类 JobBuilderFactory
- java.lang.Object
- org.springframework.batch.core.configuration.annotation.JobBuilderFactory
public class JobBuilderFactory extends java.lang.Object
Convenient factory for aJobBuilder
which sets theJobRepository
automatically.- 作者:
- Dave Syer
构造器概要
构造器 构造器 说明 JobBuilderFactory(JobRepository jobRepository)
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 JobBuilder
get(java.lang.String name)
Creates a job builder and initializes its job repository.
构造器详细资料
JobBuilderFactory
public JobBuilderFactory(JobRepository jobRepository)
方法详细资料
get
public JobBuilder get(java.lang.String name)
Creates a job builder and initializes its job repository. Note that if the builder is used to create a @Bean definition then the name of the job and the bean name might be different.- 参数:
name
- the name of the job- 返回:
- a job builder