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 Details

    • RoutingSlipHeaderValueMessageProcessor

      public RoutingSlipHeaderValueMessageProcessor(Object... routingSlipPath)
  • Method Details

    • setBeanFactory

      public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) throws org.springframework.beans.BeansException
      Specified by:
      setBeanFactory in interface org.springframework.beans.factory.BeanFactoryAware
      Throws:
      org.springframework.beans.BeansException
    • processMessage

      public Map<List<Object>,Integer> processMessage(org.springframework.messaging.Message<?> message)
      Description copied from interface: MessageProcessor
      Process the Message and return a value (or null).
      Specified by:
      processMessage in interface MessageProcessor<Map<List<Object>,Integer>>
      Parameters:
      message - The message to process.
      Returns:
      The result.