org.springframework.integration.util
Class MessagingMethodInvokerHelper<T>
java.lang.Object
org.springframework.integration.util.AbstractExpressionEvaluator
org.springframework.integration.util.MessagingMethodInvokerHelper<T>
- All Implemented Interfaces:
- BeanFactoryAware
public class MessagingMethodInvokerHelper<T>
- extends AbstractExpressionEvaluator
A helper class for processors that invoke a method on a target Object using a combination of message payload(s) and
headers as arguments. The Method instance or method name may be provided as a constructor argument. If a method name
is provided, and more than one declared method has that name, the method-selection will be dynamic, based on the
underlying SpEL method resolution. Alternatively, an annotation type may be provided so that the candidates for
SpEL's method resolution are determined by the presence of that annotation rather than the method name.
- Since:
- 2.0
- Author:
- Mark Fisher, Oleg Zhurakousky, Dave Syer
Constructor Summary |
MessagingMethodInvokerHelper(Object targetObject,
Class<? extends Annotation> annotationType,
boolean canProcessMessageList)
|
MessagingMethodInvokerHelper(Object targetObject,
Class<? extends Annotation> annotationType,
Class<?> expectedType,
boolean canProcessMessageList)
|
MessagingMethodInvokerHelper(Object targetObject,
Method method,
boolean canProcessMessageList)
|
MessagingMethodInvokerHelper(Object targetObject,
Method method,
Class<?> expectedType,
boolean canProcessMessageList)
|
MessagingMethodInvokerHelper(Object targetObject,
String methodName,
boolean canProcessMessageList)
|
MessagingMethodInvokerHelper(Object targetObject,
String methodName,
Class<?> expectedType,
boolean canProcessMessageList)
|
MessagingMethodInvokerHelper
public MessagingMethodInvokerHelper(Object targetObject,
Method method,
Class<?> expectedType,
boolean canProcessMessageList)
MessagingMethodInvokerHelper
public MessagingMethodInvokerHelper(Object targetObject,
Method method,
boolean canProcessMessageList)
MessagingMethodInvokerHelper
public MessagingMethodInvokerHelper(Object targetObject,
String methodName,
Class<?> expectedType,
boolean canProcessMessageList)
MessagingMethodInvokerHelper
public MessagingMethodInvokerHelper(Object targetObject,
String methodName,
boolean canProcessMessageList)
MessagingMethodInvokerHelper
public MessagingMethodInvokerHelper(Object targetObject,
Class<? extends Annotation> annotationType,
boolean canProcessMessageList)
MessagingMethodInvokerHelper
public MessagingMethodInvokerHelper(Object targetObject,
Class<? extends Annotation> annotationType,
Class<?> expectedType,
boolean canProcessMessageList)
process
public T process(Message<?> message)
throws Exception
- Throws:
Exception
process
public T process(Collection<Message<?>> messages,
Map<String,?> headers)
throws Exception
- Throws:
Exception
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2010. All Rights Reserved.