org.springframework.batch.core.launch
Class EmptyItemWriter

java.lang.Object
  extended by org.springframework.batch.core.launch.EmptyItemWriter
All Implemented Interfaces:
ItemWriter, InitializingBean

public class EmptyItemWriter
extends Object
implements ItemWriter, InitializingBean

Mock ItemWriter that will throw an exception when a certain number of items have been written.


Field Summary
protected  org.apache.commons.logging.Log logger
           
 
Constructor Summary
EmptyItemWriter()
           
 
Method Summary
 void afterPropertiesSet()
           
 void clear()
           
 void flush()
           
 List getList()
           
 void setFailurePoint(int failurePoint)
           
 void write(Object data)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected org.apache.commons.logging.Log logger
Constructor Detail

EmptyItemWriter

public EmptyItemWriter()
Method Detail

afterPropertiesSet

public void afterPropertiesSet()
                        throws Exception
Specified by:
afterPropertiesSet in interface InitializingBean
Throws:
Exception

setFailurePoint

public void setFailurePoint(int failurePoint)

write

public void write(Object data)
Specified by:
write in interface ItemWriter

getList

public List getList()

clear

public void clear()
           throws ClearFailedException
Specified by:
clear in interface ItemWriter
Throws:
ClearFailedException

flush

public void flush()
           throws FlushFailedException
Specified by:
flush in interface ItemWriter
Throws:
FlushFailedException


Copyright © 2008 SpringSource. All Rights Reserved.