Resolved some TODOs.

This commit is contained in:
dsyer
2008-01-28 13:56:48 +00:00
parent 39ea7775bd
commit fd012bd49c
21 changed files with 36 additions and 869 deletions

View File

@@ -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;
}
/*

View File

@@ -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);

View File

@@ -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 {