Class MessagingMethodInvokerHelper
java.lang.Object
org.springframework.integration.util.AbstractExpressionEvaluator
org.springframework.integration.handler.support.MessagingMethodInvokerHelper
- All Implemented Interfaces:
- Aware,- BeanFactoryAware,- InitializingBean,- Lifecycle,- ManageableLifecycle
public class MessagingMethodInvokerHelper
extends AbstractExpressionEvaluator
implements ManageableLifecycle
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, Gunnar Hillert, Soby Chacko, Gary Russell, Artem Bilan, Trung Pham, Christian Tzolov
- 
Nested Class SummaryNested Classes
- 
Field SummaryFields inherited from class org.springframework.integration.util.AbstractExpressionEvaluatorEXPRESSION_PARSER, logger
- 
Constructor SummaryConstructorsConstructorDescriptionMessagingMethodInvokerHelper(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) 
- 
Method SummaryModifier and TypeMethodDescriptionbooleanisAsync()booleanvoidsetBeanFactory(BeanFactory beanFactory) Specify a BeanFactory in order to enable resolution via@beanNamein the expression.voidsetUseSpelInvoker(boolean useSpelInvoker) Abooleanflag to use SpEL Expression evaluation orInvocableHandlerMethodfor target method invocation.voidstart()voidstop()toString()Methods inherited from class org.springframework.integration.util.AbstractExpressionEvaluatorafterPropertiesSet, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, getBeanFactory, getEvaluationContext, getEvaluationContext, getMessageBuilderFactory, onInit, setConversionService, setSimpleEvaluationContext
- 
Constructor Details- 
MessagingMethodInvokerHelper
- 
MessagingMethodInvokerHelper
- 
MessagingMethodInvokerHelper
- 
MessagingMethodInvokerHelper
- 
MessagingMethodInvokerHelperpublic MessagingMethodInvokerHelper(Object targetObject, Class<? extends Annotation> annotationType, boolean canProcessMessageList) 
- 
MessagingMethodInvokerHelperpublic MessagingMethodInvokerHelper(Object targetObject, Class<? extends Annotation> annotationType, Class<?> expectedType, boolean canProcessMessageList) 
 
- 
- 
Method Details- 
setUseSpelInvokerpublic void setUseSpelInvoker(boolean useSpelInvoker) Abooleanflag to use SpEL Expression evaluation orInvocableHandlerMethodfor target method invocation.- Parameters:
- useSpelInvoker- to use SpEL Expression evaluation or not.
- Since:
- 5.0
 
- 
setBeanFactoryDescription copied from class:AbstractExpressionEvaluatorSpecify a BeanFactory in order to enable resolution via@beanNamein the expression.- Specified by:
- setBeanFactoryin interface- BeanFactoryAware
- Overrides:
- setBeanFactoryin class- AbstractExpressionEvaluator
 
- 
process
- 
process
- 
toString
- 
startpublic void start()- Specified by:
- startin interface- Lifecycle
- Specified by:
- startin interface- ManageableLifecycle
 
- 
stoppublic void stop()- Specified by:
- stopin interface- Lifecycle
- Specified by:
- stopin interface- ManageableLifecycle
 
- 
isRunningpublic boolean isRunning()- Specified by:
- isRunningin interface- Lifecycle
- Specified by:
- isRunningin interface- ManageableLifecycle
 
- 
isAsyncpublic boolean isAsync()
 
-