Class RoutingSlipHeaderValueMessageProcessor
java.lang.Object
org.springframework.integration.transformer.support.AbstractHeaderValueMessageProcessor<Map<List<Object>,Integer>>
org.springframework.integration.transformer.support.RoutingSlipHeaderValueMessageProcessor
- All Implemented Interfaces:
Aware,BeanFactoryAware,MessageProcessor<Map<List<Object>,,Integer>> HeaderValueMessageProcessor<Map<List<Object>,Integer>>
public class RoutingSlipHeaderValueMessageProcessor
extends AbstractHeaderValueMessageProcessor<Map<List<Object>,Integer>>
implements 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
- Author:
- Artem Bilan, Gary Russell
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprocessMessage(Message<?> message) Process the Message and return a value (or null).voidsetBeanFactory(BeanFactory beanFactory) Methods inherited from class org.springframework.integration.transformer.support.AbstractHeaderValueMessageProcessor
isOverwrite, setOverwrite
-
Constructor Details
-
RoutingSlipHeaderValueMessageProcessor
-
-
Method Details
-
setBeanFactory
- Specified by:
setBeanFactoryin interfaceBeanFactoryAware- Throws:
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.
-