public class JobStepBuilder extends StepBuilderHelper<JobStepBuilder>
JobStep
instances. A job step executes a nested Job
with parameters taken from the
parent job or from the step execution.StepBuilderHelper.CommonStepProperties
logger, properties
Constructor and Description |
---|
JobStepBuilder(StepBuilderHelper<?> parent)
Create a new builder initialized with any properties in the parent.
|
Modifier and Type | Method and Description |
---|---|
Step |
build()
Build a step from the job provided.
|
JobStepBuilder |
job(Job job)
Provide a job to execute during the step.
|
JobStepBuilder |
launcher(JobLauncher jobLauncher)
Add a job launcher.
|
JobStepBuilder |
parametersExtractor(JobParametersExtractor jobParametersExtractor)
Provide a job parameters extractor.
|
allowStartIfComplete, enhance, getJobRepository, getName, getTransactionManager, isAllowStartIfComplete, listener, listener, repository, startLimit, transactionManager
public JobStepBuilder(StepBuilderHelper<?> parent)
parent
- a parent helper containing common step propertiespublic JobStepBuilder job(Job job)
job
- the job to executepublic JobStepBuilder launcher(JobLauncher jobLauncher)
jobLauncher
- the job launcher to usepublic JobStepBuilder parametersExtractor(JobParametersExtractor jobParametersExtractor)
jobParametersExtractor
- the job parameters extractor to usepublic Step build()