org.mule.exception
Class MessagingExceptionStrategyAcceptorDelegate
java.lang.Object
org.mule.processor.AbstractMuleObjectOwner<MessagingExceptionHandler>
org.mule.exception.MessagingExceptionStrategyAcceptorDelegate
- All Implemented Interfaces:
- Acceptor, FlowConstructAware, MuleContextAware, ExceptionHandler, MessagingExceptionHandler, MessagingExceptionHandlerAcceptor, Disposable, Initialisable, Lifecycle, Startable, Stoppable
public class MessagingExceptionStrategyAcceptorDelegate
- extends AbstractMuleObjectOwner<MessagingExceptionHandler>
- implements MessagingExceptionHandlerAcceptor
Allows to use MessagingExceptionHandler as MessagingExceptionHandlerAcceptor.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MessagingExceptionStrategyAcceptorDelegate
public MessagingExceptionStrategyAcceptorDelegate(MessagingExceptionHandler messagingExceptionHandler)
accept
public boolean accept(MuleEvent event)
- Specified by:
accept in interface Acceptor
- Parameters:
event - MuleEvent to route through exception handler
- Returns:
- true if this
MessagingExceptionHandler should handler exception
false otherwise
acceptsAll
public boolean acceptsAll()
- Specified by:
acceptsAll in interface Acceptor
- Returns:
- true if accepts any message, false otherwise.
handleException
public MuleEvent handleException(Exception exception,
MuleEvent event)
- Description copied from interface:
MessagingExceptionHandler
- Take some action when a messaging exception has occurred (i.e., there was a message in play when the exception occurred).
- Specified by:
handleException in interface MessagingExceptionHandler
- Parameters:
exception - which occurredevent - which was being processed when the exception occurred
- Returns:
- new event to route on to the rest of the flow, generally with ExceptionPayload set on the message
getOwnedObjects
protected List<MessagingExceptionHandler> getOwnedObjects()
- Specified by:
getOwnedObjects in class AbstractMuleObjectOwner<MessagingExceptionHandler>
getExceptionListener
public MessagingExceptionHandler getExceptionListener()
Copyright © 2003-2013 MuleSoft, Inc.. All Rights Reserved.