OPEN - issue BATCH-569: Add RetryOperationsInterceptor with stateful retry

Refactored ItemWriterRetry* to be less dependent on Item* interfaces.  Added StatefulRetryOperationsInterceptor.
This commit is contained in:
dsyer
2008-05-09 20:59:59 +00:00
parent b09b30b158
commit a0b7049867
32 changed files with 1165 additions and 731 deletions

View File

@@ -102,10 +102,10 @@ public class StatefulRetryStepFactoryBeanTests extends TestCase {
public void testRecovery() throws Exception {
factory.setItemRecoverer(new ItemRecoverer() {
public boolean recover(Object item, Throwable cause) {
public Object recover(Object item, Throwable cause) {
recovered.add(item);
assertTrue(TransactionSynchronizationManager.isActualTransactionActive());
return true;
return item;
}
});
List items = TransactionAwareProxyFactory.createTransactionalList();