Class JobBuilderFactory
java.lang.Object
org.springframework.batch.core.configuration.annotation.JobBuilderFactory
Convenient factory for a
JobBuilder
which sets the JobRepository
automatically.- Author:
- Dave Syer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreates a job builder and initializes its job repository.
-
Constructor Details
-
JobBuilderFactory
- Parameters:
jobRepository
- TheJobRepository
to be used by the builder factory.
-
-
Method Details
-
get
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
-