|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ItemHandler
Strategy for processing a single item in an item-oriented step. Extends
ItemReader and ItemWriter because part of the contract of the
processor is that it should delegate calls to those interfaces.
| Method Summary | |
|---|---|
void |
clear()
Implementations should delegate to an ItemWriter. |
void |
flush()
Implementations should delegate to an ItemWriter. |
ExitStatus |
handle(StepContribution contribution)
Given the current context in the form of a step contribution, do whatever is necessary to process this unit inside a chunk. |
void |
mark()
Implementations should delegate to an ItemReader. |
void |
reset()
Implementations should delegate to an ItemReader. |
| Method Detail |
|---|
ExitStatus handle(StepContribution contribution)
throws Exception
ExitStatus.FINISHED if it is null. If it is
not null process the item and return ExitStatus.CONTINUABLE. On
failure throws an exception.
contribution - the current step context
ExitStatus indicating whether processing is
continuable.
Exception
void mark()
throws MarkFailedException
ItemReader.
MarkFailedExceptionItemReader.mark()
void reset()
throws ResetFailedException
ItemReader.
ResetFailedExceptionItemReader.reset()
void flush()
throws FlushFailedException
ItemWriter.
FlushFailedExceptionItemWriter.flush()
void clear()
throws ClearFailedException
ItemWriter.
ClearFailedExceptionItemWriter.clear()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||