Skip to content

Commit cd43f3b

Browse files
Jay Bryantfmbenhassine
Jay Bryant
authored andcommitted
Editing pass for Javadocs
Mostly proofreading but a bit more detail in a couple places. Issue #4096
1 parent 30ad62f commit cd43f3b

File tree

13 files changed

+45
-39
lines changed

13 files changed

+45
-39
lines changed

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-2013 the original author or authors.
2+
* Copyright 2012-2022 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 java.lang.annotation.Target;
2525

2626
/**
27-
* Marks a method to be called after a has failed and been
27+
* Marks a method to be called after a chunk has failed and been
2828
* marked for rollback.<br>
2929
* <br>
3030
* Expected signature: void afterFailedChunk(ChunkContext context)

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

Lines changed: 3 additions & 3 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-2022 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.
@@ -27,10 +27,10 @@
2727

2828
/**
2929
* Marks a method to be called after a {@link Job} has completed. Annotated
30-
* methods will be called regardless of the status of the {@link JobExecution}. <br>
30+
* methods are called regardless of the status of the {@link JobExecution}. <br>
3131
* <br>
3232
* Expected signature: void afterJob({@link JobExecution} jobExecution)
33-
*
33+
*
3434
* @author Lucas Ward
3535
* @since 2.0
3636
* @see JobExecutionListener

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

Lines changed: 6 additions & 4 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-2022 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.
@@ -26,11 +26,13 @@
2626

2727
/**
2828
* Marks a method to be called after an item is passed to an
29-
* {@link ItemProcessor} <br>
29+
* {@link ItemProcessor}. {@code item} is the input item.
30+
* {@code result} is the processed item. {@code result} can be null
31+
* if the {@code item} is filtered.<br>
3032
* <br>
3133
* Expected signature: void afterProcess(T item, S result)
32-
*
33-
* @author Lucas Ward
34+
*
35+
* @author Lucas Ward, Jay Bryant
3436
* @since 2.0
3537
* @see ItemProcessListener
3638
*/

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

Lines changed: 3 additions & 3 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-2022 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.
@@ -28,11 +28,11 @@
2828

2929
/**
3030
* Marks a method to be called after a {@link Step} has completed. Annotated
31-
* methods will be called regardless of the status of the {@link StepExecution}. <br>
31+
* methods are called regardless of the status of the {@link StepExecution}. <br>
3232
* <br>
3333
* Expected signature: {@link ExitStatus} afterStep({@link StepExecution}
3434
* stepExecution);
35-
*
35+
*
3636
* @author Lucas Ward
3737
* @since 2.0
3838
* @see StepExecutionListener

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

Lines changed: 5 additions & 3 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-2022 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.
@@ -26,10 +26,12 @@
2626
import org.springframework.batch.item.ItemWriter;
2727

2828
/**
29-
* Marks a method to be called after an item is passed to an {@link ItemWriter} <br>
29+
* Marks a method to be called after an item is passed to an {@link ItemWriter}.
30+
* Note that this annotation takes a {@link List} because Spring Batch
31+
* generally processes a group of items (for the sake of efficiency).<br>
3032
* <br>
3133
* Expected signature: void afterWrite({@link List}&lt;? extends S&gt; items)
32-
*
34+
*
3335
* @author Lucas Ward
3436
* @since 2.0
3537
* @see ItemWriteListener

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

Lines changed: 3 additions & 3 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-2022 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.
@@ -29,11 +29,11 @@
2929

3030
/**
3131
* Marks a method to be called before a {@link Job} is executed, which comes
32-
* after a {@link JobExecution} is created and persisted, but before the first
32+
* after a {@link JobExecution} is created and persisted but before the first
3333
* {@link Step} is executed. <br>
3434
* <br>
3535
* Expected signature: void beforeJob({@link JobExecution} jobExecution)
36-
*
36+
*
3737
* @author Lucas Ward
3838
* @since 2.0
3939
* @see JobExecutionListener

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

Lines changed: 3 additions & 3 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-2022 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.
@@ -27,11 +27,11 @@
2727

2828
/**
2929
* Marks a method to be called before a {@link Step} is executed, which comes
30-
* after a {@link StepExecution} is created and persisted, but before the first
30+
* after a {@link StepExecution} is created and persisted but before the first
3131
* item is read. <br>
3232
* <br>
3333
* Expected signature: void beforeStep({@link StepExecution} stepExecution)
34-
*
34+
*
3535
* @author Lucas Ward
3636
* @since 2.0
3737
* @see StepExecutionListener

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

Lines changed: 3 additions & 3 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-2022 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.
@@ -26,10 +26,10 @@
2626
import org.springframework.batch.item.ItemWriter;
2727

2828
/**
29-
* Marks a method to be called before an item is passed to an {@link ItemWriter} <br>
29+
* Marks a method to be called before an item is passed to an {@link ItemWriter}. <br>
3030
* <br>
3131
* Expected signature: void beforeWrite({@link List}&lt;? extends S&gt; items)
32-
*
32+
*
3333
* @author Lucas Ward
3434
* @since 2.0
3535
* @see ItemWriteListener

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

Lines changed: 3 additions & 3 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-2022 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.
@@ -26,10 +26,10 @@
2626

2727
/**
2828
* Marks a method to be called if an exception is thrown by an
29-
* {@link ItemProcessor} <br>
29+
* {@link ItemProcessor}. <br>
3030
* <br>
3131
* Expected signature: void onProcessError(T item, {@link Exception} e)
32-
*
32+
*
3333
* @author Lucas Ward
3434
* @since 2.0
3535
* @see ItemProcessListener

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

Lines changed: 3 additions & 3 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-2022 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.
@@ -25,10 +25,10 @@
2525

2626
/**
2727
* Marks a method to be called if an exception is thrown by an
28-
* {@link ItemReader} <br>
28+
* {@link ItemReader}. <br>
2929
* <br>
3030
* Expected signature: void onReadError({@link Exception} ex)
31-
*
31+
*
3232
* @author Lucas Ward
3333
* @since 2.0
3434
* @see ItemReadListener

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-2007 the original author or authors.
2+
* Copyright 2006-2022 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.
@@ -29,7 +29,7 @@
2929
* thrown in the {@link ItemProcessor}.<br>
3030
* <br>
3131
* Expected signature: void onSkipInProcess(T item, {@link Throwable} t)
32-
*
32+
*
3333
* @author Lucas Ward
3434
* @since 2.0
3535
* @see SkipListener

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

Lines changed: 3 additions & 3 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-2022 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.
@@ -26,10 +26,10 @@
2626

2727
/**
2828
* Marks a method to be called when an item is skipped due to an exception
29-
* thrown in the {@link ItemReader} <br>
29+
* thrown in the {@link ItemReader}. <br>
3030
* <br>
3131
* Expected signature: void onSkipInRead({@link Throwable} t)
32-
*
32+
*
3333
* @author Lucas Ward
3434
* @since 2.0
3535
* @see SkipListener

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

Lines changed: 6 additions & 4 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-2022 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.
@@ -27,11 +27,13 @@
2727

2828
/**
2929
* Marks a method to be called if an exception is thrown by an
30-
* {@link ItemWriter} <br>
30+
* {@link ItemWriter}. Note that this annotation takes a {@link List}
31+
* because Spring Batch generally processes a group of items
32+
* (for the sake of efficiency).<br>
3133
* <br>
3234
* Expected signature: void onWriteError({@link Exception} exception,
3335
* {@link List}&lt;? extends S&gt; items)
34-
*
36+
*
3537
* @author Lucas Ward
3638
* @since 2.0
3739
* @see ItemWriteListener
@@ -40,4 +42,4 @@
4042
@Target({ElementType.METHOD})
4143
public @interface OnWriteError {
4244

43-
}
45+
}

0 commit comments

Comments
 (0)