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
ConstructorDescriptionMethodInvokingMessageListProcessor
(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 TypeMethodDescriptionboolean
void
setBeanFactory
(BeanFactory beanFactory) Specify a BeanFactory in order to enable resolution via@beanName
in the expression.void
setUseSpelInvoker
(boolean useSpelInvoker) Aboolean
flag to use SpEL Expression evaluation orInvocableHandlerMethod
for target method invocation.void
start()
void
stop()
toString()
Methods inherited from class org.springframework.integration.util.AbstractExpressionEvaluator
afterPropertiesSet, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, getBeanFactory, getEvaluationContext, getEvaluationContext, getMessageBuilderFactory, onInit, setConversionService, setSimpleEvaluationContext
-
Constructor Details
-
MethodInvokingMessageListProcessor
-
MethodInvokingMessageListProcessor
-
MethodInvokingMessageListProcessor
-
MethodInvokingMessageListProcessor
-
MethodInvokingMessageListProcessor
public MethodInvokingMessageListProcessor(Object targetObject, Class<? extends Annotation> annotationType)
-
-
Method Details
-
setBeanFactory
Description copied from class:AbstractExpressionEvaluator
Specify a BeanFactory in order to enable resolution via@beanName
in the expression.- Specified by:
setBeanFactory
in interfaceBeanFactoryAware
- Overrides:
setBeanFactory
in classAbstractExpressionEvaluator
-
setUseSpelInvoker
public void setUseSpelInvoker(boolean useSpelInvoker) Aboolean
flag to use SpEL Expression evaluation orInvocableHandlerMethod
for target method invocation.- Parameters:
useSpelInvoker
- to use SpEL Expression evaluation or not.- Since:
- 5.0
-
toString
-
process
-
start
public void start()- Specified by:
start
in interfaceLifecycle
- Specified by:
start
in interfaceManageableLifecycle
-
stop
public void stop()- Specified by:
stop
in interfaceLifecycle
- Specified by:
stop
in interfaceManageableLifecycle
-
isRunning
public boolean isRunning()- Specified by:
isRunning
in interfaceLifecycle
- Specified by:
isRunning
in interfaceManageableLifecycle
-