Class ExpressionEvaluatingRouter

All Implemented Interfaces:
org.reactivestreams.Subscriber<Message<?>>, Aware, BeanFactoryAware, BeanNameAware, DisposableBean, InitializingBean, ApplicationContextAware, Lifecycle, Ordered, ExpressionCapable, Orderable, IntegrationPattern, MessageRouter, NamedComponent, IntegrationManagement, ManageableLifecycle, MappingMessageRouterManagement, TrackableComponent, MessageHandler, reactor.core.CoreSubscriber<Message<?>>

public class ExpressionEvaluatingRouter extends AbstractMappingMessageRouter
A Message Router implementation that evaluates the specified SpEL expression. The result of evaluation will typically be a String to be resolved to a channel name or a Collection (or Array) of strings.
Since:
2.0
Author:
Mark Fisher, Gary Russell
  • Constructor Details

    • ExpressionEvaluatingRouter

      public ExpressionEvaluatingRouter(String expressionString)
      Construct an instance by parsing the supplied expression string.
      Parameters:
      expressionString - the expression string.
    • ExpressionEvaluatingRouter

      public ExpressionEvaluatingRouter(Expression expression)
      Construct an instance with the supplied Expression.
      Parameters:
      expression - the expression.
  • Method Details