Skip to content

Commit 4094aec

Browse files
authored
Replace StepExecutionListenerSupport with plain StepExecutionListener
Signed-off-by: Taeik Lim <[email protected]>
1 parent b7f5b33 commit 4094aec

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

spring-batch-plus/src/main/java/com/navercorp/spring/batch/plus/job/metadata/CheckMaxJobInstanceIdToDeleteTasklet.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
import org.springframework.batch.core.JobExecution;
3131
import org.springframework.batch.core.StepContribution;
3232
import org.springframework.batch.core.StepExecution;
33-
import org.springframework.batch.core.listener.StepExecutionListenerSupport;
33+
import org.springframework.batch.core.StepExecutionListener;
3434
import org.springframework.batch.core.scope.context.ChunkContext;
3535
import org.springframework.batch.core.scope.context.StepContext;
3636
import org.springframework.batch.core.step.tasklet.Tasklet;
@@ -40,7 +40,7 @@
4040
/**
4141
* A tasklet to check metadata of job instances to delete.
4242
*/
43-
class CheckMaxJobInstanceIdToDeleteTasklet extends StepExecutionListenerSupport implements Tasklet {
43+
class CheckMaxJobInstanceIdToDeleteTasklet implements Tasklet, StepExecutionListener {
4444

4545
static final String MAX_ID_KEY = "maxJobInstanceId";
4646

spring-batch-plus/src/main/java/com/navercorp/spring/batch/plus/job/metadata/DeleteMetadataTasklet.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
import org.springframework.batch.core.JobParameters;
2626
import org.springframework.batch.core.StepContribution;
2727
import org.springframework.batch.core.StepExecution;
28-
import org.springframework.batch.core.listener.StepExecutionListenerSupport;
28+
import org.springframework.batch.core.StepExecutionListener;
2929
import org.springframework.batch.core.scope.context.ChunkContext;
3030
import org.springframework.batch.core.step.tasklet.Tasklet;
3131
import org.springframework.batch.item.ExecutionContext;
@@ -35,7 +35,7 @@
3535
* A tasklet to delete metadata of Spring Batch.
3636
* This tasklet must be executed after execution of {@link CheckMaxJobInstanceIdToDeleteTasklet}
3737
*/
38-
class DeleteMetadataTasklet extends StepExecutionListenerSupport implements Tasklet {
38+
class DeleteMetadataTasklet implements Tasklet, StepExecutionListener {
3939

4040
static final String LOW_ID_KEY = "lowJobInstanceId";
4141

0 commit comments

Comments
 (0)