Resolved some TODOs.
This commit is contained in:
@@ -60,8 +60,6 @@ public class ApplicationEventPublisherRepeatInterceptor implements ApplicationEv
|
||||
*/
|
||||
public void close(RepeatContext context) {
|
||||
publish(context, "Closed repeat context with batch complete", RepeatOperationsApplicationEvent.CLOSE);
|
||||
//TODO: why is this returning continuable?
|
||||
//return ExitStatus.CONTINUABLE;
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
@@ -64,7 +64,8 @@ public class BatchTransactionSynchronizationManager {
|
||||
/**
|
||||
* The key in the context attributes for the list of synchronizations.
|
||||
*/
|
||||
private static final String SYNCHS_ATTR_KEY = BatchTransactionSynchronizationManager.class.getName() + ".SYNCHRONIZATIONS";
|
||||
private static final String SYNCHS_ATTR_KEY = BatchTransactionSynchronizationManager.class.getName()
|
||||
+ ".SYNCHRONIZATIONS";
|
||||
|
||||
/**
|
||||
* Static method to register synchronizations. A TransactionSyncrhonization
|
||||
@@ -144,8 +145,9 @@ public class BatchTransactionSynchronizationManager {
|
||||
|
||||
AttributeAccessor context = getContext();
|
||||
if (context == null) {
|
||||
// TODO: this should return null or unmodifiable - there is no
|
||||
// context for it
|
||||
// N.B. this returns a modifiable list on purpose - it is used
|
||||
// internally to set up the list if there is no context available
|
||||
// (useful in testing).
|
||||
return new ArrayList();
|
||||
}
|
||||
List synchs = (List) context.getAttribute(SYNCHS_ATTR_KEY);
|
||||
|
||||
@@ -52,7 +52,7 @@ public class RetryOperationsInterceptor implements MethodInterceptor {
|
||||
}
|
||||
|
||||
public Object invoke(final MethodInvocation invocation) throws Throwable {
|
||||
// TODO: use the method name to initialise a statistics context
|
||||
|
||||
return this.retryOperations.execute(new RetryCallback() {
|
||||
|
||||
public Object doWithRetry(RetryContext context) throws Throwable {
|
||||
|
||||
Reference in New Issue
Block a user