diff --git a/spring-batch-core/src/main/java/org/springframework/batch/core/step/job/DefaultJobParametersExtractor.java b/spring-batch-core/src/main/java/org/springframework/batch/core/step/job/DefaultJobParametersExtractor.java index 8b778803a..600d02cd8 100644 --- a/spring-batch-core/src/main/java/org/springframework/batch/core/step/job/DefaultJobParametersExtractor.java +++ b/spring-batch-core/src/main/java/org/springframework/batch/core/step/job/DefaultJobParametersExtractor.java @@ -34,6 +34,7 @@ import org.springframework.batch.item.ExecutionContext; * parameters of the surrounding job. * * @author Dave Syer + * @author Will Schipp * */ public class DefaultJobParametersExtractor implements JobParametersExtractor { @@ -130,4 +131,13 @@ public class DefaultJobParametersExtractor implements JobParametersExtractor { return builder.toJobParameters(); } + /** + * setter to support switching off all parent parameters + * @param useAllParentParameters + */ + public void setUseAllParentParameters(boolean useAllParentParameters) { + this.useAllParentParameters = useAllParentParameters; + } + + }