Class LambdaMessageProcessor
java.lang.Object
org.springframework.integration.handler.LambdaMessageProcessor
- All Implemented Interfaces:
- Aware,- BeanFactoryAware,- MessageProcessor<Object>
public class LambdaMessageProcessor extends Object implements MessageProcessor<Object>, BeanFactoryAware
The 
MessageProcessor implementation for method invocation on the single method classes
 - functional interface implementations.- Since:
- 5.0
- Author:
- Artem Bilan, Gary Russell
- 
Constructor SummaryConstructors Constructor Description LambdaMessageProcessor(Object target, Class<?> expectedType)Create a processor to evaluate a provided lambda at runtime against a request message.
- 
Method SummaryModifier and Type Method Description ObjectprocessMessage(Message<?> message)Process the Message and return a value (or null).voidsetBeanFactory(BeanFactory beanFactory)
- 
Constructor Details- 
LambdaMessageProcessorCreate a processor to evaluate a provided lambda at runtime against a request message.- Parameters:
- target- the lambda object.
- expectedType- an optional expected type for method argument conversion.
 
 
- 
- 
Method Details- 
setBeanFactory- Specified by:
- setBeanFactoryin interface- BeanFactoryAware
- Throws:
- BeansException
 
- 
processMessageDescription copied from interface:MessageProcessorProcess the Message and return a value (or null).- Specified by:
- processMessagein interface- MessageProcessor<Object>
- Parameters:
- message- The message to process.
- Returns:
- The result.
 
 
-