Class RoutingSlipHeaderValueMessageProcessor
java.lang.Object
org.springframework.integration.transformer.support.AbstractHeaderValueMessageProcessor<Map<List<Object>,Integer>>
org.springframework.integration.transformer.support.RoutingSlipHeaderValueMessageProcessor
- All Implemented Interfaces:
org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanFactoryAware,MessageProcessor<Map<List<Object>,,Integer>> HeaderValueMessageProcessor<Map<List<Object>,Integer>>
public class RoutingSlipHeaderValueMessageProcessor
extends AbstractHeaderValueMessageProcessor<Map<List<Object>,Integer>>
implements org.springframework.beans.factory.BeanFactoryAware
The
RoutingSlip HeaderValueMessageProcessor specific implementation.
Accepts the routingSlipPath array, checks each of them against
BeanFactory on the first processMessage(org.springframework.messaging.Message<?>) invocation.
Converts those items, which aren't beans in the application context, to the
ExpressionEvaluatingRoutingSlipRouteStrategy and return a singletonMap
with the path as key and 0 as initial routingSlipIndex.- Since:
- 4.1
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprocessMessage(org.springframework.messaging.Message<?> message) Process the Message and return a value (or null).voidsetBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) Methods inherited from class org.springframework.integration.transformer.support.AbstractHeaderValueMessageProcessor
isOverwrite, setOverwrite
-
Constructor Details
-
RoutingSlipHeaderValueMessageProcessor
-
-
Method Details
-
setBeanFactory
public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) throws org.springframework.beans.BeansException - Specified by:
setBeanFactoryin interfaceorg.springframework.beans.factory.BeanFactoryAware- Throws:
org.springframework.beans.BeansException
-
processMessage
Description copied from interface:MessageProcessorProcess the Message and return a value (or null).- Specified by:
processMessagein interfaceMessageProcessor<Map<List<Object>,Integer>> - Parameters:
message- The message to process.- Returns:
- The result.
-