org.springframework.integration.router
Class RecipientListRouter
java.lang.Object
org.springframework.integration.handler.AbstractMessageHandler
org.springframework.integration.router.AbstractMessageRouter
org.springframework.integration.router.RecipientListRouter
- All Implemented Interfaces:
- org.springframework.beans.factory.InitializingBean, MessageHandler
public class RecipientListRouter
- extends AbstractMessageRouter
- implements org.springframework.beans.factory.InitializingBean
A Message Router that sends Messages to a statically configured list of
recipients. The recipients are provided as a list of MessageChannel
instances. For dynamic recipient lists, consider instead using the @Router
annotation or extending AbstractChannelNameResolvingMessageRouter
.
- Author:
- Mark Fisher
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RecipientListRouter
public RecipientListRouter()
setChannels
public void setChannels(java.util.List<MessageChannel> channels)
afterPropertiesSet
public void afterPropertiesSet()
- Specified by:
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
determineTargetChannels
protected java.util.Collection<MessageChannel> determineTargetChannels(Message<?> message)
- Description copied from class:
AbstractMessageRouter
- Subclasses must implement this method to return the target channels for
a given Message.
- Specified by:
determineTargetChannels
in class AbstractMessageRouter