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.
|
afterSteppublic void beforeStep(StepExecution stepExecution)
StepExecutionListenerStepExecution from
the current scope.beforeStep in interface StepExecutionListenerbeforeStep in class StepExecutionListenerSupportStepExecutionListener.beforeStep(StepExecution)public void write(java.util.List<? extends java.lang.Object> items)
throws java.lang.Exception
ItemWriterwrite in interface ItemWriter<java.lang.Object>java.lang.Exception - if there are errors. The framework will catch the
exception and convert or rethrow it as appropriate.