org.springframework.integration.router
Class PayloadTypeRouter
java.lang.Object
org.springframework.integration.context.IntegrationObjectSupport
org.springframework.integration.handler.AbstractMessageHandler
org.springframework.integration.router.AbstractMessageRouter
org.springframework.integration.router.AbstractSingleChannelRouter
org.springframework.integration.router.PayloadTypeRouter
- All Implemented Interfaces:
- BeanFactoryAware, BeanNameAware, InitializingBean, Ordered, MessageHandler, NamedComponent
public class PayloadTypeRouter
- extends AbstractSingleChannelRouter
A Message Router that resolves the MessageChannel
based on the
Message's
payload type.
- Author:
- Mark Fisher
Methods inherited from class org.springframework.integration.context.IntegrationObjectSupport |
afterPropertiesSet, getBeanFactory, getChannelResolver, getComponentName, getConversionService, getTaskScheduler, onInit, setBeanFactory, setBeanName, setChannelResolver, setComponentName, setConversionService, setTaskScheduler, toString, writeMessageHistory |
PayloadTypeRouter
public PayloadTypeRouter()
setPayloadTypeChannelMap
public void setPayloadTypeChannelMap(Map<Class<?>,MessageChannel> payloadTypeChannelMap)
determineTargetChannel
protected MessageChannel determineTargetChannel(Message<?> message)
- Description copied from class:
AbstractSingleChannelRouter
- Subclasses must implement this method to return the target channel.
- Specified by:
determineTargetChannel
in class AbstractSingleChannelRouter
Copyright © 2010. All Rights Reserved.