example
Class ExampleItemWriter
java.lang.Object
example.ExampleItemWriter
- All Implemented Interfaces:
- ItemWriter<Object>
public class ExampleItemWriter
- extends Object
- implements ItemWriter<Object>
Dummy ItemWriter
which only logs data it receives.
Method Summary |
void |
write(List<? extends Object> data)
Process the supplied data element. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ExampleItemWriter
public ExampleItemWriter()
write
public void write(List<? extends Object> data)
throws 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 interface ItemWriter<Object>
- Throws:
Exception
- if there are errors. The framework will catch the
exception and convert or rethrow it as appropriate.- See Also:
ItemWriter#write(Object)
Copyright © 2009 SpringSource. All Rights Reserved.