BATCH-1982 Extending copy constructor of CommonStepProperties
This commit is contained in:
committed by
Michael Minella
parent
7bff8b2e3d
commit
e15b70a865
@@ -181,6 +181,9 @@ public abstract class JobBuilderHelper<B extends JobBuilderHelper<B>> {
|
||||
this.name = properties.name;
|
||||
this.restartable = properties.restartable;
|
||||
this.jobRepository = properties.jobRepository;
|
||||
this.jobExecutionListeners = new LinkedHashSet<JobExecutionListener>(properties.jobExecutionListeners);
|
||||
this.jobParametersIncrementer = properties.jobParametersIncrementer;
|
||||
this.jobParametersValidator = properties.jobParametersValidator;
|
||||
}
|
||||
|
||||
public JobParametersIncrementer getJobParametersIncrementer() {
|
||||
|
||||
@@ -155,6 +155,7 @@ public abstract class StepBuilderHelper<B extends StepBuilderHelper<B>> {
|
||||
this.allowStartIfComplete = properties.allowStartIfComplete;
|
||||
this.jobRepository = properties.jobRepository;
|
||||
this.transactionManager = properties.transactionManager;
|
||||
this.stepExecutionListeners = new ArrayList<StepExecutionListener>(properties.stepExecutionListeners);
|
||||
}
|
||||
|
||||
public JobRepository getJobRepository() {
|
||||
|
||||
Reference in New Issue
Block a user