Spring Integration

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.AbstractChannelNameResolvingMessageRouter
                  extended by org.springframework.integration.router.AbstractSingleChannelNameRouter
All Implemented Interfaces:
BeanFactoryAware, BeanNameAware, InitializingBean, Ordered, MessageHandler, NamedComponent
Direct Known Subclasses:
XmlPayloadValidatingRouter

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

Constructor Detail

AbstractSingleChannelNameRouter

public AbstractSingleChannelNameRouter()
Method Detail

getChannelIndicatorList

protected final List<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

determineTargetChannelName

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


Spring Integration

Copyright © 2010. All Rights Reserved.