Skip to content

Commit 8fef41b

Browse files
committed
Rename BatchStepTagsProvider to BatchStepKeyValuesProvider
This rename is for consistency with BatchJobKeyValuesProvider Related to a19eefa
1 parent 9b3b899 commit 8fef41b

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

spring-batch-core/src/main/java/org/springframework/batch/core/observability/BatchStepTagsProvider.java renamed to spring-batch-core/src/main/java/org/springframework/batch/core/observability/BatchStepKeyValuesProvider.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,10 @@
2222
* {@link Observation.KeyValuesProvider} for {@link BatchStepContext}.
2323
*
2424
* @author Marcin Grzejszczak
25+
* @author Mahmoud Ben Hassine
2526
* @since 5.0
2627
*/
27-
public interface BatchStepTagsProvider extends Observation.KeyValuesProvider<BatchStepContext> {
28+
public interface BatchStepKeyValuesProvider extends Observation.KeyValuesProvider<BatchStepContext> {
2829

2930
@Override
3031
default boolean supportsContext(Observation.Context context) {
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@
2020
import org.springframework.batch.core.StepExecution;
2121

2222
/**
23-
* Default {@link BatchStepTagsProvider} implementation.
23+
* Default {@link BatchStepKeyValuesProvider} implementation.
2424
*
2525
* @author Marcin Grzejszczak
2626
* @author Mahmoud Ben Hassine
2727
* @since 5.0
2828
*/
29-
public class DefaultBatchStepTagsProvider implements BatchStepTagsProvider {
29+
public class DefaultBatchStepKeyValuesProvider implements BatchStepKeyValuesProvider {
3030

3131
@Override
3232
public KeyValues getLowCardinalityKeyValues(BatchStepContext context) {

spring-batch-core/src/main/java/org/springframework/batch/core/step/AbstractStep.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@
3838
import org.springframework.batch.core.observability.BatchMetrics;
3939
import org.springframework.batch.core.observability.BatchStepContext;
4040
import org.springframework.batch.core.observability.BatchStepObservation;
41-
import org.springframework.batch.core.observability.BatchStepTagsProvider;
42-
import org.springframework.batch.core.observability.DefaultBatchStepTagsProvider;
41+
import org.springframework.batch.core.observability.BatchStepKeyValuesProvider;
42+
import org.springframework.batch.core.observability.DefaultBatchStepKeyValuesProvider;
4343
import org.springframework.batch.core.repository.JobRepository;
4444
import org.springframework.batch.core.scope.context.StepSynchronizationManager;
4545
import org.springframework.batch.item.ExecutionContext;
@@ -74,7 +74,7 @@ public abstract class AbstractStep implements Step, InitializingBean, BeanNameAw
7474

7575
private JobRepository jobRepository;
7676

77-
private BatchStepTagsProvider keyValuesProvider = new DefaultBatchStepTagsProvider();
77+
private BatchStepKeyValuesProvider keyValuesProvider = new DefaultBatchStepKeyValuesProvider();
7878

7979
/**
8080
* Default constructor.
@@ -418,7 +418,7 @@ else if (ex instanceof NoSuchJobException || ex.getCause() instanceof NoSuchJobE
418418
return exitStatus;
419419
}
420420

421-
public void setKeyValuesProvider(BatchStepTagsProvider keyValuesProvider) {
421+
public void setKeyValuesProvider(BatchStepKeyValuesProvider keyValuesProvider) {
422422
this.keyValuesProvider = keyValuesProvider;
423423
}
424424

0 commit comments

Comments
 (0)