Class MethodInvokingMessageListProcessor<T>
java.lang.Object
org.springframework.integration.util.AbstractExpressionEvaluator
org.springframework.integration.aggregator.MethodInvokingMessageListProcessor<T>
- Type Parameters:
T- the method evaluation expecetd result type.
- All Implemented Interfaces:
Aware,BeanFactoryAware,InitializingBean,Lifecycle,ManageableLifecycle
public class MethodInvokingMessageListProcessor<T>
extends AbstractExpressionEvaluator
implements ManageableLifecycle
A MessageListProcessor implementation that invokes a method on a target POJO.
- Since:
- 2.0
- Author:
- Dave Syer, Artem Bilan, Gary Russell
-
Field Summary
Fields inherited from class org.springframework.integration.util.AbstractExpressionEvaluator
EXPRESSION_PARSER, logger -
Constructor Summary
ConstructorsConstructorDescriptionMethodInvokingMessageListProcessor(Object targetObject, Class<? extends Annotation> annotationType) MethodInvokingMessageListProcessor(Object targetObject, Method method) MethodInvokingMessageListProcessor(Object targetObject, Method method, Class<T> expectedType) MethodInvokingMessageListProcessor(Object targetObject, String methodName) MethodInvokingMessageListProcessor(Object targetObject, String methodName, Class<T> expectedType) -
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidsetBeanFactory(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.AbstractExpressionEvaluator
afterPropertiesSet, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, getBeanFactory, getEvaluationContext, getEvaluationContext, getMessageBuilderFactory, onInit, setConversionService
-
Constructor Details
-
MethodInvokingMessageListProcessor
-
MethodInvokingMessageListProcessor
-
MethodInvokingMessageListProcessor
-
MethodInvokingMessageListProcessor
-
MethodInvokingMessageListProcessor
public MethodInvokingMessageListProcessor(Object targetObject, Class<? extends Annotation> annotationType)
-
-
Method Details
-
setBeanFactory
Description copied from class:AbstractExpressionEvaluatorSpecify a BeanFactory in order to enable resolution via@beanNamein the expression.- Specified by:
setBeanFactoryin interfaceBeanFactoryAware- Overrides:
setBeanFactoryin classAbstractExpressionEvaluator
-
setUseSpelInvoker
public 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
-
toString
-
process
-
start
public void start()- Specified by:
startin interfaceLifecycle- Specified by:
startin interfaceManageableLifecycle
-
stop
public void stop()- Specified by:
stopin interfaceLifecycle- Specified by:
stopin interfaceManageableLifecycle
-
isRunning
public boolean isRunning()- Specified by:
isRunningin interfaceLifecycle- Specified by:
isRunningin interfaceManageableLifecycle
-