org.springframework.integration.router
Class ExpressionEvaluatingRouter

java.lang.Object
  extended by org.springframework.integration.handler.AbstractMessageHandler
      extended by org.springframework.integration.router.AbstractMessageRouter
          extended by org.springframework.integration.router.AbstractChannelNameResolvingMessageRouter
              extended by org.springframework.integration.router.ExpressionEvaluatingRouter
All Implemented Interfaces:
org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.InitializingBean, org.springframework.core.Ordered, MessageHandler

public class ExpressionEvaluatingRouter
extends AbstractChannelNameResolvingMessageRouter

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

Field Summary
 
Fields inherited from class org.springframework.integration.handler.AbstractMessageHandler
logger
 
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
 
Constructor Summary
ExpressionEvaluatingRouter(java.lang.String expression)
           
 
Method Summary
protected  java.util.List<java.lang.Object> getChannelIndicatorList(Message<?> message)
          Subclasses must implement this method to return the channel indicators.
 
Methods inherited from class org.springframework.integration.router.AbstractChannelNameResolvingMessageRouter
addChannelFromString, addToCollection, afterPropertiesSet, determineTargetChannels, resolveChannelForName, setBeanFactory, setChannelResolver, setIgnoreChannelNameResolutionFailures, setPrefix, setSuffix
 
Methods inherited from class org.springframework.integration.router.AbstractMessageRouter
handleMessageInternal, setDefaultOutputChannel, setResolutionRequired, setTimeout
 
Methods inherited from class org.springframework.integration.handler.AbstractMessageHandler
getOrder, handleMessage, resolveReplyChannel, setOrder
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExpressionEvaluatingRouter

public ExpressionEvaluatingRouter(java.lang.String expression)
Method Detail

getChannelIndicatorList

protected java.util.List<java.lang.Object> getChannelIndicatorList(Message<?> message)
Description copied from class: AbstractChannelNameResolvingMessageRouter
Subclasses must implement this method to return the channel indicators.

Specified by:
getChannelIndicatorList in class AbstractChannelNameResolvingMessageRouter