org.springframework.batch.core.step.item
Class MockItemReader
java.lang.Object
org.springframework.batch.core.step.item.MockItemReader
- All Implemented Interfaces:
- ItemReader
public class MockItemReader
- extends Object
- implements ItemReader
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MockItemReader
public MockItemReader()
MockItemReader
public MockItemReader(int returnItemCount)
setFail
public void setFail(boolean fail)
close
public void close()
read
public Object read()
- Specified by:
read
in interface ItemReader
getKey
public Object getKey(Object item)
mark
public void mark()
throws MarkFailedException
- Specified by:
mark
in interface ItemReader
- Throws:
MarkFailedException
reset
public void reset()
throws ResetFailedException
- Specified by:
reset
in interface ItemReader
- Throws:
ResetFailedException
Copyright © 2008 SpringSource. All Rights Reserved.