From 7969f56fd9ee7f2e7baf0f671d9860d4e0c8cb5b Mon Sep 17 00:00:00 2001 From: dsyer Date: Fri, 18 Sep 2009 14:08:36 +0000 Subject: [PATCH] RESOLVED - issue BATCH-1369: Change semantics of @AfterChunk to execute outside transaction http://jira.springframework.org/browse/BATCH-1369 --- .../java/org/springframework/batch/core/ChunkListener.java | 2 +- .../springframework/batch/core/annotation/AfterChunk.java | 6 +++--- .../springframework/batch/core/annotation/BeforeChunk.java | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/spring-batch-core/src/main/java/org/springframework/batch/core/ChunkListener.java b/spring-batch-core/src/main/java/org/springframework/batch/core/ChunkListener.java index c4cdbff4e..0aa5c74c5 100644 --- a/spring-batch-core/src/main/java/org/springframework/batch/core/ChunkListener.java +++ b/spring-batch-core/src/main/java/org/springframework/batch/core/ChunkListener.java @@ -31,7 +31,7 @@ public interface ChunkListener extends StepListener { void beforeChunk(); /** - * Callback after the chunk is executed, but inside the transaction. + * Callback after the chunk is executed, outside the transaction. */ void afterChunk(); } diff --git a/spring-batch-core/src/main/java/org/springframework/batch/core/annotation/AfterChunk.java b/spring-batch-core/src/main/java/org/springframework/batch/core/annotation/AfterChunk.java index 63ef84f94..3d5ab26cd 100644 --- a/spring-batch-core/src/main/java/org/springframework/batch/core/annotation/AfterChunk.java +++ b/spring-batch-core/src/main/java/org/springframework/batch/core/annotation/AfterChunk.java @@ -23,13 +23,13 @@ import java.lang.annotation.Target; import org.springframework.batch.core.ChunkListener; /** - * Marks a method to be called after a chunk is executed.
- *
+ * Marks a method to be called after a chunk is executed.
+ *
* Expected signature: void afterChunk() * * @author Lucas Ward * @since 2.0 - * @see ChunkListener + * @see ChunkListener#afterChunk() */ @Retention(RetentionPolicy.RUNTIME) @Target({ElementType.METHOD}) diff --git a/spring-batch-core/src/main/java/org/springframework/batch/core/annotation/BeforeChunk.java b/spring-batch-core/src/main/java/org/springframework/batch/core/annotation/BeforeChunk.java index 5c2930795..00beb461b 100644 --- a/spring-batch-core/src/main/java/org/springframework/batch/core/annotation/BeforeChunk.java +++ b/spring-batch-core/src/main/java/org/springframework/batch/core/annotation/BeforeChunk.java @@ -29,7 +29,7 @@ import org.springframework.batch.core.ChunkListener; * * @author Lucas Ward * @since 2.0 - * @see ChunkListener + * @see ChunkListener#beforeChunk() */ @Retention(RetentionPolicy.RUNTIME) @Target({ElementType.METHOD})