org.springframework.batch.core.launch
Class EmptyItemWriter
java.lang.Object
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
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
protected org.apache.commons.logging.Log logger
EmptyItemWriter
public EmptyItemWriter()
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.