From c6b804bfe3ad8fc30e935485a976bd1f58c89ab2 Mon Sep 17 00:00:00 2001 From: Andrew Eisenberg Date: Thu, 12 Sep 2013 09:23:08 -0700 Subject: [PATCH] Expose Job parameters in JdbcSearchableJobExecutionDao See https://jira.springsource.org/browse/BATCHADM-176 Must be applied after https://github.com/spring-projects/spring-batch/pull/231 As part of this, I had to update the dependency on spring-batch to 3.0.0-BUILD_SNAPSHOT. Because of this dependency change, I had to add two methods to JobRepositorySupport. It looks like a stub class, so I left the two methods implemented as stubs. --- spring-batch-admin-parent/pom.xml | 2 +- .../batch/integration/JobRepositorySupport.java | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/spring-batch-admin-parent/pom.xml b/spring-batch-admin-parent/pom.xml index 4bc71fe31..848695ca8 100755 --- a/spring-batch-admin-parent/pom.xml +++ b/spring-batch-admin-parent/pom.xml @@ -34,7 +34,7 @@ false - 2.2.2.RELEASE + 3.0.0.BUILD-SNAPSHOT 3.2.1.RELEASE 2.2.5.RELEASE 1.0.2.RELEASE diff --git a/spring-batch-integration/src/test/java/org/springframework/batch/integration/JobRepositorySupport.java b/spring-batch-integration/src/test/java/org/springframework/batch/integration/JobRepositorySupport.java index a6f94ad56..46741dbcc 100644 --- a/spring-batch-integration/src/test/java/org/springframework/batch/integration/JobRepositorySupport.java +++ b/spring-batch-integration/src/test/java/org/springframework/batch/integration/JobRepositorySupport.java @@ -99,4 +99,14 @@ public class JobRepositorySupport implements JobRepository { } } } + + public JobInstance createJobInstance(String jobName, + JobParameters jobParameters) { + return null; + } + + public JobExecution createJobExecution(JobInstance jobInstance, + JobParameters jobParameters, String jobConfigurationLocation) { + return null; + } }