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.
Mark Fisher, Gary Russell
  • Constructor Details

    • ExpressionEvaluatingRouter

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

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