Class JobBuilderFactory
java.lang.Object
org.springframework.batch.core.configuration.annotation.JobBuilderFactory
Deprecated, for removal: This API element is subject to removal in a future version.
Convenient factory for a
JobBuilder
that sets the JobRepository
automatically.- Author:
- Dave Syer, Mahmoud Ben Hassine, Jinho Han
-
Constructor Summary
ConstructorDescriptionJobBuilderFactory
(JobRepository jobRepository) Deprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated, for removal: This API element is subject to removal in a future version.Creates a job builder and initializes its job repository.
-
Constructor Details
-
JobBuilderFactory
Deprecated, for removal: This API element is subject to removal in a future version.- Parameters:
jobRepository
- TheJobRepository
to be used by the builder factory. Must not benull
.
-
-
Method Details
-
get
Deprecated, for removal: This API element is subject to removal in a future version.Creates a job builder and initializes its job repository. Note that, if the builder is used to create a @Bean definition, the name of the job and the bean name might be different.- Parameters:
name
- the name of the job- Returns:
- a job builder
-
JobBuilder
.