public class MessagingMethodInvokerHelper<T> extends AbstractExpressionEvaluator implements org.springframework.context.Lifecycle
Modifier and Type | Class and Description |
---|---|
static class |
MessagingMethodInvokerHelper.ParametersWrapper |
EXPRESSION_PARSER
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() |
T |
process(Collection<org.springframework.messaging.Message<?>> messages,
Map<String,Object> headers) |
T |
process(org.springframework.messaging.Message<?> message) |
void |
setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)
Specify a BeanFactory in order to enable resolution via
@beanName in the expression. |
void |
setConversionService(org.springframework.core.convert.ConversionService conversionService) |
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
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(org.springframework.beans.factory.BeanFactory beanFactory)
AbstractExpressionEvaluator
@beanName
in the expression.setBeanFactory
in interface org.springframework.beans.factory.BeanFactoryAware
setBeanFactory
in class AbstractExpressionEvaluator
public void setConversionService(org.springframework.core.convert.ConversionService conversionService)
setConversionService
in class AbstractExpressionEvaluator
public T process(org.springframework.messaging.Message<?> message) throws Exception
Exception
public T process(Collection<org.springframework.messaging.Message<?>> messages, Map<String,Object> headers) throws Exception
Exception
public void start()
start
in interface org.springframework.context.Lifecycle
public void stop()
stop
in interface org.springframework.context.Lifecycle
public boolean isRunning()
isRunning
in interface org.springframework.context.Lifecycle