Class ListItemWriter<T>
- java.lang.Object
- org.springframework.batch.item.support.ListItemWriter<T>
- All Implemented Interfaces:
ItemWriter<T>
public class ListItemWriter<T> extends java.lang.Object implements ItemWriter<T>
- Author:
- mminella
Constructor Summary
Constructors Constructor Description ListItemWriter()
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<? extends T>
getWrittenItems()
void
write(java.util.List<? extends T> items)
Process the supplied data element.
Method Detail
write
public void write(java.util.List<? extends T> items) throws java.lang.Exception
Description copied from interface:ItemWriter
Process the supplied data element. Will not be called with any null items in normal operation.- Specified by:
write
in interfaceItemWriter<T>
- Parameters:
items
- items to be written- Throws:
java.lang.Exception
- if there are errors. The framework will catch the exception and convert or rethrow it as appropriate.
getWrittenItems
public java.util.List<? extends T> getWrittenItems()