org.springframework.integration.router
Class RootCauseErrorMessageRouter
java.lang.Object
org.springframework.integration.router.AbstractRoutingMessageHandler
org.springframework.integration.router.SingleChannelRouter
org.springframework.integration.router.RootCauseErrorMessageRouter
- All Implemented Interfaces:
- org.springframework.beans.factory.InitializingBean, ChannelRegistryAware, MessageHandler
public class RootCauseErrorMessageRouter
- extends SingleChannelRouter
A router implementation that resolves the 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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
channelMappings
private java.util.Map<java.lang.Class<? extends java.lang.Throwable>,MessageChannel> channelMappings
defaultChannel
private MessageChannel defaultChannel
RootCauseErrorMessageRouter
public RootCauseErrorMessageRouter()
setChannelMappings
public void setChannelMappings(java.util.Map<java.lang.Class<? extends java.lang.Throwable>,MessageChannel> channelMappings)
setDefaultChannel
public void setDefaultChannel(MessageChannel defaultChannel)