BATCH-1982 Extending copy constructor of CommonStepProperties

This commit is contained in:
Tobias Flohre
2013-04-17 17:28:35 +02:00
committed by Michael Minella
parent 7bff8b2e3d
commit e15b70a865
2 changed files with 4 additions and 0 deletions

View File

@@ -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() {

View File

@@ -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() {