org.springframework.integration.router
Class ErrorMessageExceptionTypeRouter
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.ErrorMessageExceptionTypeRouter
- All Implemented Interfaces:
- BeanFactoryAware, BeanNameAware, InitializingBean, Ordered, MessageHandler, NamedComponent
public class ErrorMessageExceptionTypeRouter
- extends AbstractSingleChannelRouter
A Message Router that resolves the target MessageChannel
for
messages whose payload is an Exception. The channel resolution is based upon
the most specific cause of the error for which a channel-mapping exists.
- 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 |
ErrorMessageExceptionTypeRouter
public ErrorMessageExceptionTypeRouter()
setExceptionTypeChannelMap
public void setExceptionTypeChannelMap(Map<Class<? extends Throwable>,MessageChannel> exceptionTypeChannelMap)
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.