public class ChoiceMessagingExceptionStrategy extends AbstractMuleObjectOwner<MessagingExceptionHandlerAcceptor> implements MessagingExceptionHandlerAcceptor, MuleContextAware, Lifecycle, MessageProcessorContainer, GlobalNameableObject
MessagingExceptionHandlerAcceptor
to be part of ChoiceMessagingExceptionStrategyModifier and Type | Field and Description |
---|---|
protected String |
globalName |
flowConstruct, messagingExceptionHandler, muleContext
PHASE_NAME
PHASE_NAME
PHASE_NAME
PHASE_NAME
Constructor and Description |
---|
ChoiceMessagingExceptionStrategy() |
Modifier and Type | Method and Description |
---|---|
boolean |
accept(MuleEvent event) |
boolean |
acceptsAll() |
void |
addMessageProcessorPathElements(MessageProcessorPathElement pathElement)
Add the child nodes to the path element tree.
|
List<MessagingExceptionHandlerAcceptor> |
getExceptionListeners() |
String |
getGlobalName() |
protected List<MessagingExceptionHandlerAcceptor> |
getOwnedObjects() |
MuleEvent |
handleException(Exception exception,
MuleEvent event)
Take some action when a messaging exception has occurred (i.e., there was a message in play when the exception occurred).
|
void |
initialise()
Method used to perform any initialisation work.
|
void |
setExceptionListeners(List<MessagingExceptionHandlerAcceptor> exceptionListeners) |
void |
setGlobalName(String globalName) |
dispose, getFlowConstruct, getMessagingExceptionHandler, getMuleContext, setFlowConstruct, setMessagingExceptionHandler, setMuleContext, start, stop
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setMuleContext
dispose
protected String globalName
public String getGlobalName()
getGlobalName
in interface GlobalNameableObject
public void setGlobalName(String globalName)
setGlobalName
in interface GlobalNameableObject
public MuleEvent handleException(Exception exception, MuleEvent event)
MessagingExceptionHandler
handleException
in interface MessagingExceptionHandler
exception
- which occurredevent
- which was being processed when the exception occurredpublic void setExceptionListeners(List<MessagingExceptionHandlerAcceptor> exceptionListeners)
public List<MessagingExceptionHandlerAcceptor> getExceptionListeners()
public void initialise() throws InitialisationException
Initialisable
InitialisationException
should be thrown,
causing the Mule instance to shutdown. If the error is recoverable, say by
retrying to connect, a RecoverableException
should be thrown.
There is no guarantee that by throwing a Recoverable exception that the Mule
instance will not shut down.initialise
in interface Initialisable
initialise
in class AbstractMuleObjectOwner<MessagingExceptionHandlerAcceptor>
InitialisationException
- if a fatal error occurs causing the Mule instance to shutdownRecoverableException
- if an error occurs that can be recovered fromprotected List<MessagingExceptionHandlerAcceptor> getOwnedObjects()
getOwnedObjects
in class AbstractMuleObjectOwner<MessagingExceptionHandlerAcceptor>
public void addMessageProcessorPathElements(MessageProcessorPathElement pathElement)
MessageProcessorContainer
addMessageProcessorPathElements
in interface MessageProcessorContainer
public boolean accept(MuleEvent event)
accept
in interface Acceptor
event
- MuleEvent
to route through exception handlerMessagingExceptionHandler
should handler exception
false otherwisepublic boolean acceptsAll()
acceptsAll
in interface Acceptor
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.