From 166686bd9a2a28a2c57869e1c2c4d8a103da1bc1 Mon Sep 17 00:00:00 2001 From: willschipp Date: Mon, 6 May 2013 15:32:44 -0400 Subject: [PATCH] BATCH-2025 added setter for useAllParentParameters --- .../core/step/job/DefaultJobParametersExtractor.java | 10 ++++++++++ 1 file changed, 10 insertions(+) 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; + } + + }