org.springframework.batch.admin.sample
Class ExampleItemWriter
java.lang.Object
org.springframework.batch.admin.sample.ExampleItemWriter
- All Implemented Interfaces:
- ItemWriter<Object>
public class ExampleItemWriter
- extends Object
- implements ItemWriter<Object>
Dummy ItemWriter which only logs data it receives.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ExampleItemWriter
public ExampleItemWriter()
setFail
public void setFail(boolean fail)
write
public void write(List<? extends Object> data)
throws Exception
- Specified by:
write in interface ItemWriter<Object>
- Throws:
Exception- See Also:
ItemWriter.write(List)
Copyright © 2011. All Rights Reserved.