public class InfiniteLoopWriter extends StepExecutionListenerSupport implements ItemWriter<java.lang.Object>
Constructor and Description |
---|
InfiniteLoopWriter() |
Modifier and Type | Method and Description |
---|---|
void |
beforeStep(StepExecution stepExecution)
Initialize the state of the listener with the
StepExecution from
the current scope. |
void |
write(java.util.List<? extends java.lang.Object> items)
Process the supplied data element.
|
afterStep
public void beforeStep(StepExecution stepExecution)
StepExecutionListener
StepExecution
from
the current scope.beforeStep
in interface StepExecutionListener
beforeStep
in class StepExecutionListenerSupport
StepExecutionListener.beforeStep(StepExecution)
public void write(java.util.List<? extends java.lang.Object> items) throws java.lang.Exception
ItemWriter
write
in interface ItemWriter<java.lang.Object>
items
- items to be writtenjava.lang.Exception
- if there are errors. The framework will catch the
exception and convert or rethrow it as appropriate.