org.springframework.integration.router
Class AbstractSingleChannelNameRouter

java.lang.Object
  extended by org.springframework.integration.context.IntegrationObjectSupport
      extended by org.springframework.integration.handler.AbstractMessageHandler
          extended by org.springframework.integration.router.AbstractMessageRouter
              extended by org.springframework.integration.router.AbstractSingleChannelNameRouter
All Implemented Interfaces:
BeanFactoryAware, BeanNameAware, InitializingBean, Ordered, NamedComponent, Orderable, MessageHandler, TrackableComponent

public abstract class AbstractSingleChannelNameRouter
extends AbstractMessageRouter

Extends AbstractChannelNameResolvingMessageRouter to support router implementations that always return a single channel name (or null).


Field Summary
 
Fields inherited from class org.springframework.integration.router.AbstractMessageRouter
channelIdentifierMap
 
Fields inherited from class org.springframework.integration.handler.AbstractMessageHandler
logger
 
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
 
Constructor Summary
AbstractSingleChannelNameRouter()
           
 
Method Summary
protected abstract  java.lang.String determineTargetChannelName(Message<?> message)
          Subclasses must implement this method to return the channel name.
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.AbstractMessageRouter
determineTargetChannels, getComponentType, getMessagingTemplate, getRequiredConversionService, handleMessageInternal, onInit, removeChannelMapping, setApplySequence, setChannelIdentifierMap, setChannelMapping, setChannelResolver, setDefaultOutputChannel, setIgnoreChannelNameResolutionFailures, setIgnoreSendFailures, setPrefix, setResolutionRequired, setSuffix, setTimeout
 
Methods inherited from class org.springframework.integration.handler.AbstractMessageHandler
getOrder, handleMessage, setOrder, setShouldTrack
 
Methods inherited from class org.springframework.integration.context.IntegrationObjectSupport
afterPropertiesSet, getBeanFactory, getComponentName, getConversionService, getTaskScheduler, setBeanFactory, setBeanName, setComponentName, setConversionService, setTaskScheduler, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.springframework.integration.context.NamedComponent
getComponentName
 

Constructor Detail

AbstractSingleChannelNameRouter

public AbstractSingleChannelNameRouter()
Method Detail

getChannelIndicatorList

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

Specified by:
getChannelIndicatorList in class AbstractMessageRouter

determineTargetChannelName

protected abstract java.lang.String determineTargetChannelName(Message<?> message)
Subclasses must implement this method to return the channel name.