org.springframework.integration.router
Class PayloadTypeRouter
java.lang.Object
org.springframework.integration.router.AbstractRoutingMessageHandler
org.springframework.integration.router.SingleChannelRouter
org.springframework.integration.router.PayloadTypeRouter
- All Implemented Interfaces:
- org.springframework.beans.factory.InitializingBean, ChannelRegistryAware, MessageHandler
public class PayloadTypeRouter
- extends SingleChannelRouter
A router implementation that resolves the MessageChannel
based on the
Message's
payload type.
- Author:
- Mark Fisher
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
channelMappings
private java.util.Map<java.lang.Class<?>,MessageChannel> channelMappings
defaultChannel
private MessageChannel defaultChannel
PayloadTypeRouter
public PayloadTypeRouter()
setChannelMappings
public void setChannelMappings(java.util.Map<java.lang.Class<?>,MessageChannel> channelMappings)
setDefaultChannel
public void setDefaultChannel(MessageChannel defaultChannel)