From b079805353d788a1faeeb39bf108f2f106e5cac9 Mon Sep 17 00:00:00 2001 From: Mahmoud Ben Hassine Date: Wed, 16 Sep 2020 21:00:25 +0200 Subject: [PATCH] Deprecate ScheduledJobParametersFactory This commit deprecates ScheduledJobParametersFactory in favor of DefaultJobParametersConverter. Resolves #3781 --- .../core/launch/support/ScheduledJobParametersFactory.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/spring-batch-core/src/main/java/org/springframework/batch/core/launch/support/ScheduledJobParametersFactory.java b/spring-batch-core/src/main/java/org/springframework/batch/core/launch/support/ScheduledJobParametersFactory.java index cf8d5a272..2e1d2bb93 100644 --- a/spring-batch-core/src/main/java/org/springframework/batch/core/launch/support/ScheduledJobParametersFactory.java +++ b/spring-batch-core/src/main/java/org/springframework/batch/core/launch/support/ScheduledJobParametersFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2006-2018 the original author or authors. + * Copyright 2006-2020 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -33,7 +33,11 @@ import org.springframework.lang.Nullable; * @author Lucas Ward * @author Mahmoud Ben Hassine * + * @deprecated as of v4.3 in favor of + * {@link org.springframework.batch.core.converter.DefaultJobParametersConverter} + * and scheduled for removal in v5.0. */ +@Deprecated public class ScheduledJobParametersFactory implements JobParametersConverter { public static final String SCHEDULE_DATE_KEY = "schedule.date";