org.springframework.batch.admin.sample
Class ExampleItemWriter

java.lang.Object
  extended by 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.


Constructor Summary
ExampleItemWriter()
           
 
Method Summary
 void setFail(boolean fail)
           
 void write(List<? extends Object> data)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExampleItemWriter

public ExampleItemWriter()
Method Detail

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.