Skip to content

Commit 90f7398

Browse files
committed
Move listener APIs under core.listener package
Resolves #4867
1 parent bcf4f72 commit 90f7398

File tree

118 files changed

+268
-320
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

118 files changed

+268
-320
lines changed

spring-batch-core/src/main/java/org/springframework/batch/core/annotation/AfterChunk.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2008 the original author or authors.
2+
* Copyright 2002-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -15,7 +15,7 @@
1515
*/
1616
package org.springframework.batch.core.annotation;
1717

18-
import org.springframework.batch.core.ChunkListener;
18+
import org.springframework.batch.core.listener.ChunkListener;
1919
import org.springframework.batch.core.scope.context.ChunkContext;
2020

2121
import java.lang.annotation.ElementType;

spring-batch-core/src/main/java/org/springframework/batch/core/annotation/AfterChunkError.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2022 the original author or authors.
2+
* Copyright 2012-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -15,7 +15,7 @@
1515
*/
1616
package org.springframework.batch.core.annotation;
1717

18-
import org.springframework.batch.core.ChunkListener;
18+
import org.springframework.batch.core.listener.ChunkListener;
1919
import org.springframework.batch.core.scope.context.ChunkContext;
2020

2121
import java.lang.annotation.ElementType;

spring-batch-core/src/main/java/org/springframework/batch/core/annotation/AfterJob.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2006-2022 the original author or authors.
2+
* Copyright 2006-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -23,7 +23,7 @@
2323

2424
import org.springframework.batch.core.Job;
2525
import org.springframework.batch.core.JobExecution;
26-
import org.springframework.batch.core.JobExecutionListener;
26+
import org.springframework.batch.core.listener.JobExecutionListener;
2727

2828
/**
2929
* Marks a method to be called after a {@link Job} has completed. Annotated methods are

spring-batch-core/src/main/java/org/springframework/batch/core/annotation/AfterProcess.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2006-2022 the original author or authors.
2+
* Copyright 2006-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -21,7 +21,7 @@
2121
import java.lang.annotation.RetentionPolicy;
2222
import java.lang.annotation.Target;
2323

24-
import org.springframework.batch.core.ItemProcessListener;
24+
import org.springframework.batch.core.listener.ItemProcessListener;
2525
import org.springframework.batch.item.ItemProcessor;
2626

2727
/**

spring-batch-core/src/main/java/org/springframework/batch/core/annotation/AfterRead.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2008 the original author or authors.
2+
* Copyright 2002-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -20,7 +20,7 @@
2020
import java.lang.annotation.RetentionPolicy;
2121
import java.lang.annotation.Target;
2222

23-
import org.springframework.batch.core.ItemReadListener;
23+
import org.springframework.batch.core.listener.ItemReadListener;
2424
import org.springframework.batch.item.ItemReader;
2525

2626
/**

spring-batch-core/src/main/java/org/springframework/batch/core/annotation/AfterStep.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2006-2022 the original author or authors.
2+
* Copyright 2006-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -24,7 +24,7 @@
2424
import org.springframework.batch.core.ExitStatus;
2525
import org.springframework.batch.core.Step;
2626
import org.springframework.batch.core.StepExecution;
27-
import org.springframework.batch.core.StepExecutionListener;
27+
import org.springframework.batch.core.listener.StepExecutionListener;
2828

2929
/**
3030
* Marks a method to be called after a {@link Step} has completed. Annotated methods are

spring-batch-core/src/main/java/org/springframework/batch/core/annotation/AfterWrite.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2006-2022 the original author or authors.
2+
* Copyright 2006-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -21,7 +21,7 @@
2121
import java.lang.annotation.RetentionPolicy;
2222
import java.lang.annotation.Target;
2323

24-
import org.springframework.batch.core.ItemWriteListener;
24+
import org.springframework.batch.core.listener.ItemWriteListener;
2525
import org.springframework.batch.item.ItemWriter;
2626

2727
/**

spring-batch-core/src/main/java/org/springframework/batch/core/annotation/BeforeChunk.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2013 the original author or authors.
2+
* Copyright 2002-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -20,7 +20,7 @@
2020
import java.lang.annotation.RetentionPolicy;
2121
import java.lang.annotation.Target;
2222

23-
import org.springframework.batch.core.ChunkListener;
23+
import org.springframework.batch.core.listener.ChunkListener;
2424
import org.springframework.batch.core.scope.context.ChunkContext;
2525

2626
/**

spring-batch-core/src/main/java/org/springframework/batch/core/annotation/BeforeJob.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2006-2022 the original author or authors.
2+
* Copyright 2006-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -23,7 +23,7 @@
2323

2424
import org.springframework.batch.core.Job;
2525
import org.springframework.batch.core.JobExecution;
26-
import org.springframework.batch.core.JobExecutionListener;
26+
import org.springframework.batch.core.listener.JobExecutionListener;
2727
import org.springframework.batch.core.Step;
2828
import org.springframework.beans.factory.annotation.Qualifier;
2929

spring-batch-core/src/main/java/org/springframework/batch/core/annotation/BeforeProcess.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2008 the original author or authors.
2+
* Copyright 2002-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -20,7 +20,7 @@
2020
import java.lang.annotation.RetentionPolicy;
2121
import java.lang.annotation.Target;
2222

23-
import org.springframework.batch.core.ItemProcessListener;
23+
import org.springframework.batch.core.listener.ItemProcessListener;
2424
import org.springframework.batch.item.ItemProcessor;
2525

2626
/**

spring-batch-core/src/main/java/org/springframework/batch/core/annotation/BeforeRead.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2008 the original author or authors.
2+
* Copyright 2002-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -20,7 +20,7 @@
2020
import java.lang.annotation.RetentionPolicy;
2121
import java.lang.annotation.Target;
2222

23-
import org.springframework.batch.core.ItemReadListener;
23+
import org.springframework.batch.core.listener.ItemReadListener;
2424
import org.springframework.batch.item.ItemReader;
2525

2626
/**

spring-batch-core/src/main/java/org/springframework/batch/core/annotation/BeforeStep.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2006-2022 the original author or authors.
2+
* Copyright 2006-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -23,7 +23,7 @@
2323

2424
import org.springframework.batch.core.Step;
2525
import org.springframework.batch.core.StepExecution;
26-
import org.springframework.batch.core.StepExecutionListener;
26+
import org.springframework.batch.core.listener.StepExecutionListener;
2727

2828
/**
2929
* Marks a method to be called before a {@link Step} is executed, which comes after a

spring-batch-core/src/main/java/org/springframework/batch/core/annotation/BeforeWrite.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2006-2022 the original author or authors.
2+
* Copyright 2006-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -21,7 +21,7 @@
2121
import java.lang.annotation.RetentionPolicy;
2222
import java.lang.annotation.Target;
2323

24-
import org.springframework.batch.core.ItemWriteListener;
24+
import org.springframework.batch.core.listener.ItemWriteListener;
2525
import org.springframework.batch.item.ItemWriter;
2626

2727
/**

spring-batch-core/src/main/java/org/springframework/batch/core/annotation/OnProcessError.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2006-2022 the original author or authors.
2+
* Copyright 2006-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -21,7 +21,7 @@
2121
import java.lang.annotation.RetentionPolicy;
2222
import java.lang.annotation.Target;
2323

24-
import org.springframework.batch.core.ItemProcessListener;
24+
import org.springframework.batch.core.listener.ItemProcessListener;
2525
import org.springframework.batch.item.ItemProcessor;
2626

2727
/**

spring-batch-core/src/main/java/org/springframework/batch/core/annotation/OnReadError.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2022 the original author or authors.
2+
* Copyright 2002-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -20,7 +20,7 @@
2020
import java.lang.annotation.RetentionPolicy;
2121
import java.lang.annotation.Target;
2222

23-
import org.springframework.batch.core.ItemReadListener;
23+
import org.springframework.batch.core.listener.ItemReadListener;
2424
import org.springframework.batch.item.ItemReader;
2525

2626
/**

spring-batch-core/src/main/java/org/springframework/batch/core/annotation/OnSkipInProcess.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2006-2022 the original author or authors.
2+
* Copyright 2006-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -21,7 +21,7 @@
2121
import java.lang.annotation.RetentionPolicy;
2222
import java.lang.annotation.Target;
2323

24-
import org.springframework.batch.core.SkipListener;
24+
import org.springframework.batch.core.listener.SkipListener;
2525
import org.springframework.batch.item.ItemProcessor;
2626

2727
/**

spring-batch-core/src/main/java/org/springframework/batch/core/annotation/OnSkipInRead.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2006-2022 the original author or authors.
2+
* Copyright 2006-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -21,7 +21,7 @@
2121
import java.lang.annotation.RetentionPolicy;
2222
import java.lang.annotation.Target;
2323

24-
import org.springframework.batch.core.SkipListener;
24+
import org.springframework.batch.core.listener.SkipListener;
2525
import org.springframework.batch.item.ItemReader;
2626

2727
/**

spring-batch-core/src/main/java/org/springframework/batch/core/annotation/OnSkipInWrite.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2006-2007 the original author or authors.
2+
* Copyright 2006-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -21,7 +21,7 @@
2121
import java.lang.annotation.RetentionPolicy;
2222
import java.lang.annotation.Target;
2323

24-
import org.springframework.batch.core.SkipListener;
24+
import org.springframework.batch.core.listener.SkipListener;
2525
import org.springframework.batch.item.ItemWriter;
2626

2727
/**

spring-batch-core/src/main/java/org/springframework/batch/core/annotation/OnWriteError.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2006-2022 the original author or authors.
2+
* Copyright 2006-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -21,7 +21,7 @@
2121
import java.lang.annotation.RetentionPolicy;
2222
import java.lang.annotation.Target;
2323

24-
import org.springframework.batch.core.ItemWriteListener;
24+
import org.springframework.batch.core.listener.ItemWriteListener;
2525
import org.springframework.batch.item.ItemWriter;
2626

2727
/**

spring-batch-core/src/main/java/org/springframework/batch/core/configuration/xml/JobParserJobFactoryBean.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2006-2023 the original author or authors.
2+
* Copyright 2006-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -15,7 +15,7 @@
1515
*/
1616
package org.springframework.batch.core.configuration.xml;
1717

18-
import org.springframework.batch.core.JobExecutionListener;
18+
import org.springframework.batch.core.listener.JobExecutionListener;
1919
import org.springframework.batch.core.JobParametersIncrementer;
2020
import org.springframework.batch.core.JobParametersValidator;
2121
import org.springframework.batch.core.job.flow.Flow;

spring-batch-core/src/main/java/org/springframework/batch/core/configuration/xml/StepParserStepFactoryBean.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,15 @@
2323
import java.util.Map;
2424
import java.util.Set;
2525

26-
import org.springframework.batch.core.ChunkListener;
27-
import org.springframework.batch.core.ItemProcessListener;
28-
import org.springframework.batch.core.ItemReadListener;
29-
import org.springframework.batch.core.ItemWriteListener;
26+
import org.springframework.batch.core.listener.ChunkListener;
27+
import org.springframework.batch.core.listener.ItemProcessListener;
28+
import org.springframework.batch.core.listener.ItemReadListener;
29+
import org.springframework.batch.core.listener.ItemWriteListener;
3030
import org.springframework.batch.core.Job;
31-
import org.springframework.batch.core.SkipListener;
31+
import org.springframework.batch.core.listener.SkipListener;
3232
import org.springframework.batch.core.Step;
33-
import org.springframework.batch.core.StepExecutionListener;
34-
import org.springframework.batch.core.StepListener;
33+
import org.springframework.batch.core.listener.StepExecutionListener;
34+
import org.springframework.batch.core.listener.StepListener;
3535
import org.springframework.batch.core.job.flow.Flow;
3636
import org.springframework.batch.core.launch.JobLauncher;
3737
import org.springframework.batch.core.partition.PartitionHandler;

spring-batch-core/src/main/java/org/springframework/batch/core/job/AbstractJob.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2006-2023 the original author or authors.
2+
* Copyright 2006-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -35,7 +35,7 @@
3535
import org.springframework.batch.core.Job;
3636
import org.springframework.batch.core.JobExecution;
3737
import org.springframework.batch.core.JobExecutionException;
38-
import org.springframework.batch.core.JobExecutionListener;
38+
import org.springframework.batch.core.listener.JobExecutionListener;
3939
import org.springframework.batch.core.JobInterruptedException;
4040
import org.springframework.batch.core.JobParametersIncrementer;
4141
import org.springframework.batch.core.JobParametersValidator;

spring-batch-core/src/main/java/org/springframework/batch/core/job/builder/JobBuilderHelper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
import org.apache.commons.logging.Log;
2828
import org.apache.commons.logging.LogFactory;
2929

30-
import org.springframework.batch.core.JobExecutionListener;
30+
import org.springframework.batch.core.listener.JobExecutionListener;
3131
import org.springframework.batch.core.JobParametersIncrementer;
3232
import org.springframework.batch.core.JobParametersValidator;
3333
import org.springframework.batch.core.annotation.AfterJob;

spring-batch-core/src/main/java/org/springframework/batch/core/ChunkListener.java renamed to spring-batch-core/src/main/java/org/springframework/batch/core/listener/ChunkListener.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2006-2024 the original author or authors.
2+
* Copyright 2006-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -13,7 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
package org.springframework.batch.core;
16+
package org.springframework.batch.core.listener;
1717

1818
import org.springframework.batch.core.scope.context.ChunkContext;
1919

0 commit comments

Comments
 (0)