Class 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.- Author:
- Dave Syer
Constructor Summary
Constructors Constructor Description JobBuilderFactory(JobRepository jobRepository)
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JobBuilder
get(java.lang.String name)
Creates a job builder and initializes its job repository.
Constructor Detail
JobBuilderFactory
public JobBuilderFactory(JobRepository jobRepository)
Method Detail
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.- Parameters:
name
- the name of the job- Returns:
- a job builder