Deprecate overrides of StepBuilderHelper#repository for removal

This commit is contained in:
Henning Poettker
2023-11-21 20:53:08 +01:00
committed by Mahmoud Ben Hassine
parent dde5455e40
commit 89e0a0cd86
4 changed files with 27 additions and 1 deletions

View File

@@ -227,7 +227,16 @@ public class RemoteChunkingManagerStepBuilder<I, O> extends FaultTolerantStepBui
return this;
}
/**
* Set the job repository
* @param jobRepository the repository to set
* @return this to enable fluent chaining
* @deprecated use
* {@link RemoteChunkingManagerStepBuilder#RemoteChunkingManagerStepBuilder(String, JobRepository)}
*/
@Override
@SuppressWarnings("removal")
@Deprecated(since = "5.1", forRemoval = true)
public RemoteChunkingManagerStepBuilder<I, O> repository(JobRepository jobRepository) {
super.repository(jobRepository);
return this;

View File

@@ -242,7 +242,16 @@ public class RemotePartitioningManagerStepBuilder extends PartitionStepBuilder {
return this.inputChannel == null;
}
/**
* Set the job repository
* @param jobRepository the repository to set
* @return this to enable fluent chaining
* @deprecated use
* {@link RemotePartitioningManagerStepBuilder#RemotePartitioningManagerStepBuilder(String, JobRepository)}
*/
@Override
@SuppressWarnings("removal")
@Deprecated(since = "5.1", forRemoval = true)
public RemotePartitioningManagerStepBuilder repository(JobRepository jobRepository) {
super.repository(jobRepository);
return this;

View File

@@ -157,7 +157,16 @@ public class RemotePartitioningWorkerStepBuilder extends StepBuilder {
return this;
}
/**
* Set the job repository
* @param jobRepository the repository to set
* @return this to enable fluent chaining
* @deprecated use
* {@link RemotePartitioningWorkerStepBuilder#RemotePartitioningWorkerStepBuilder(String, JobRepository)}
*/
@Override
@SuppressWarnings("removal")
@Deprecated(since = "5.1", forRemoval = true)
public RemotePartitioningWorkerStepBuilder repository(JobRepository jobRepository) {
super.repository(jobRepository);
return this;

View File

@@ -190,7 +190,6 @@ class RemoteChunkingManagerStepBuilderTests {
.reader(this.itemReader)
.writer(items -> {
})
.repository(this.jobRepository)
.transactionManager(this.transactionManager)
.inputChannel(this.inputChannel)
.outputChannel(this.outputChannel)