Incomplete - task 84: Fix samples

ItemSkipPolicy doesn't need to know about StepContribution
This commit is contained in:
dsyer
2008-02-26 14:44:07 +00:00
parent a1c6bd488e
commit ee2c20f568
7 changed files with 17 additions and 57 deletions

View File

@@ -27,10 +27,10 @@ public interface ItemSkipPolicy {
* Returns true or false, indicating whether or not reading should
* continue for the current step execution with the given throwable.
*
* @param ex throwable encountered while reading
* @param stepContribution currently running execution
* @param exception throwable encountered while reading
* @param skipCount currently running count of skips
* @return true if reading should continue, false otherwise.
* @throws IllegalArgumentException if t or stepExecution is null
* @throws IllegalArgumentException if the exception is null
*/
boolean shouldSkip(Exception ex, StepContribution stepContribution);
boolean shouldSkip(Exception exception, int skipCount);
}