public class MessagingMethodInvokerHelper extends AbstractExpressionEvaluator implements ManageableLifecycle
Modifier and Type | Class and Description |
---|---|
static class |
MessagingMethodInvokerHelper.ParametersWrapper |
EXPRESSION_PARSER, logger
Constructor and Description |
---|
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) |
Modifier and Type | Method and Description |
---|---|
boolean |
isRunning() |
Object |
process(Collection<Message<?>> messages,
Map<String,Object> headers) |
Object |
process(Message<?> message) |
void |
setBeanFactory(BeanFactory beanFactory)
Specify a BeanFactory in order to enable resolution via
@beanName in the expression. |
void |
setUseSpelInvoker(boolean useSpelInvoker)
A
boolean flag to use SpEL Expression evaluation or InvocableHandlerMethod
for target method invocation. |
void |
start() |
void |
stop() |
String |
toString() |
afterPropertiesSet, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, getBeanFactory, getEvaluationContext, getEvaluationContext, getMessageBuilderFactory, onInit, setConversionService
public MessagingMethodInvokerHelper(Object targetObject, Method method, Class<?> expectedType, boolean canProcessMessageList)
public MessagingMethodInvokerHelper(Object targetObject, Method method, boolean canProcessMessageList)
public MessagingMethodInvokerHelper(Object targetObject, String methodName, Class<?> expectedType, boolean canProcessMessageList)
public MessagingMethodInvokerHelper(Object targetObject, String methodName, boolean canProcessMessageList)
public MessagingMethodInvokerHelper(Object targetObject, Class<? extends Annotation> annotationType, boolean canProcessMessageList)
public MessagingMethodInvokerHelper(Object targetObject, Class<? extends Annotation> annotationType, Class<?> expectedType, boolean canProcessMessageList)
public void setUseSpelInvoker(boolean useSpelInvoker)
boolean
flag to use SpEL Expression evaluation or InvocableHandlerMethod
for target method invocation.useSpelInvoker
- to use SpEL Expression evaluation or not.public void setBeanFactory(BeanFactory beanFactory)
AbstractExpressionEvaluator
@beanName
in the expression.setBeanFactory
in interface BeanFactoryAware
setBeanFactory
in class AbstractExpressionEvaluator
@Nullable public Object process(Collection<Message<?>> messages, Map<String,Object> headers)
public void start()
start
in interface Lifecycle
start
in interface ManageableLifecycle
public void stop()
stop
in interface Lifecycle
stop
in interface ManageableLifecycle
public boolean isRunning()
isRunning
in interface Lifecycle
isRunning
in interface ManageableLifecycle