polished MethodInvokingMessageProcessor constructor that takes boolean argument by renaming the argument from 'requiresReply' to 'canProcessMessageList' which is what it really maps to in MessagingMethodInvokerHelper.HandlerMethod

  fixed 'filterSelectsNonVoidReturningMethodsOnly' and 'testOverloadedNonVoidReturningMethodsWithExactMatchForType' tests of MethodInvokingMessageProcessorTests to invoke the right constructor and commented out 'testVoidMethodsExcludedByFlag' test as its no longer valid
This commit is contained in:
Oleg Zhurakousky
2011-11-18 11:51:10 -05:00
committed by Mark Fisher
parent f2990f5f59
commit 0ce12cbcf8
2 changed files with 17 additions and 55 deletions

View File

@@ -48,8 +48,8 @@ public class MethodInvokingMessageProcessor<T> extends AbstractMessageProcessor<
delegate = new MessagingMethodInvokerHelper<T>(targetObject, methodName, false);
}
public MethodInvokingMessageProcessor(Object targetObject, String methodName, boolean requiresReply) {
delegate = new MessagingMethodInvokerHelper<T>(targetObject, methodName, Object.class, false);
public MethodInvokingMessageProcessor(Object targetObject, String methodName, boolean canProcessMessageList) {
delegate = new MessagingMethodInvokerHelper<T>(targetObject, methodName, canProcessMessageList);
}
public MethodInvokingMessageProcessor(Object targetObject, Class<? extends Annotation> annotationType) {