org.springframework.batch.retry
Class StubItemKeyGeneratorRecoverer

java.lang.Object
  extended by org.springframework.batch.retry.StubItemKeyGeneratorRecoverer
All Implemented Interfaces:
ItemKeyGenerator, ItemRecoverer

public class StubItemKeyGeneratorRecoverer
extends Object
implements ItemRecoverer, ItemKeyGenerator


Constructor Summary
StubItemKeyGeneratorRecoverer()
           
 
Method Summary
 Object getKey(Object item)
          Return the item (assume it is its own key).
 Object recover(Object item, Throwable cause)
          Do nothing and return null.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StubItemKeyGeneratorRecoverer

public StubItemKeyGeneratorRecoverer()
Method Detail

recover

public Object recover(Object item,
                      Throwable cause)
Do nothing and return null. Subclassses should override to implement recovery behaviour.

Specified by:
recover in interface ItemRecoverer
Returns:
null.
See Also:
ItemRecoverer.recover(java.lang.Object, Throwable)

getKey

public Object getKey(Object item)
Return the item (assume it is its own key).

Specified by:
getKey in interface ItemKeyGenerator
See Also:
ItemKeyGenerator.getKey(java.lang.Object)


Copyright © 2008 SpringSource. All Rights Reserved.