org.springframework.integration.router
Class AbstractSingleChannelNameRouter

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.AbstractSingleChannelNameRouter
All Implemented Interfaces:
org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.InitializingBean, MessageHandler

public abstract class AbstractSingleChannelNameRouter
extends AbstractChannelNameResolvingMessageRouter

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

Author:
Mark Fisher

Field Summary
 
Fields inherited from class org.springframework.integration.handler.AbstractMessageHandler
logger
 
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.lang.String[] determineTargetChannelNames(Message<?> message)
          Subclasses must implement this method to return the channel name(s).
 
Methods inherited from class org.springframework.integration.router.AbstractChannelNameResolvingMessageRouter
afterPropertiesSet, determineTargetChannels, setBeanFactory, setChannelResolver, setPrefix, setSuffix
 
Methods inherited from class org.springframework.integration.router.AbstractMessageRouter
handleMessageInternal, setDefaultOutputChannel, setResolutionRequired, setTimeout
 
Methods inherited from class org.springframework.integration.handler.AbstractMessageHandler
handleMessage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractSingleChannelNameRouter

public AbstractSingleChannelNameRouter()
Method Detail

determineTargetChannelNames

protected final java.lang.String[] determineTargetChannelNames(Message<?> message)
Description copied from class: AbstractChannelNameResolvingMessageRouter
Subclasses must implement this method to return the channel name(s).

Specified by:
determineTargetChannelNames in class AbstractChannelNameResolvingMessageRouter

determineTargetChannelName

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