org.springframework.integration.channel
Class MessagePublishingErrorHandler

java.lang.Object
  extended by org.springframework.integration.channel.MessagePublishingErrorHandler
All Implemented Interfaces:
org.springframework.beans.factory.BeanFactoryAware, ErrorHandler

public class MessagePublishingErrorHandler
extends java.lang.Object
implements ErrorHandler, org.springframework.beans.factory.BeanFactoryAware

ErrorHandler implementation that sends an ErrorMessage to a MessageChannel.

Author:
Mark Fisher, Iwein Fuld

Constructor Summary
MessagePublishingErrorHandler()
           
MessagePublishingErrorHandler(ChannelResolver channelResolver)
           
 
Method Summary
 void handle(java.lang.Throwable t)
           
 void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)
           
 void setDefaultErrorChannel(MessageChannel defaultErrorChannel)
           
 void setSendTimeout(long sendTimeout)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MessagePublishingErrorHandler

public MessagePublishingErrorHandler()

MessagePublishingErrorHandler

public MessagePublishingErrorHandler(ChannelResolver channelResolver)
Method Detail

setDefaultErrorChannel

public void setDefaultErrorChannel(MessageChannel defaultErrorChannel)

setSendTimeout

public void setSendTimeout(long sendTimeout)

setBeanFactory

public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)
Specified by:
setBeanFactory in interface org.springframework.beans.factory.BeanFactoryAware

handle

public final void handle(java.lang.Throwable t)
Specified by:
handle in interface ErrorHandler