org.springframework.integration.router
Class RecipientListRouter

java.lang.Object
  extended by org.springframework.integration.router.AbstractRoutingMessageHandler
      extended by org.springframework.integration.router.MultiChannelRouter
          extended by org.springframework.integration.router.RecipientListRouter
All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean, ChannelRegistryAware, MessageHandler

public class RecipientListRouter
extends MultiChannelRouter

A simple extension of MultiChannelRouter that routes to a statically configured list of recipients. The recipients are provided either as a list of MessageChannel instances or as a String array of channel names. For dynamic recipient lists, implement either MultiChannelResolver or MultiChannelNameResolver and then explicitly configure an instance of MultiChannelRouter.

Author:
Mark Fisher

Nested Class Summary
private static class RecipientListRouter.RecipientListChannelNameResolver
           
private static class RecipientListRouter.RecipientListChannelResolver
           
 
Field Summary
 
Fields inherited from class org.springframework.integration.router.AbstractRoutingMessageHandler
logger
 
Constructor Summary
RecipientListRouter()
           
 
Method Summary
 void setChannelNames(java.lang.String[] channelNames)
           
 void setChannels(java.util.List<MessageChannel> channels)
           
 
Methods inherited from class org.springframework.integration.router.MultiChannelRouter
resolveChannels, setChannelNameResolver, setChannelResolver, validate
 
Methods inherited from class org.springframework.integration.router.AbstractRoutingMessageHandler
afterPropertiesSet, getChannelRegistry, handle, setChannelRegistry, setResolutionRequired, setTimeout
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RecipientListRouter

public RecipientListRouter()
Method Detail

setChannelNames

public void setChannelNames(java.lang.String[] channelNames)

setChannels

public void setChannels(java.util.List<MessageChannel> channels)