public class ChoiceMessagingExceptionStrategy extends AbstractMuleObjectOwner<MessagingExceptionHandlerAcceptor> implements MessagingExceptionHandlerAcceptor, MuleContextAware, Lifecycle, MessageProcessorContainer, GlobalNameableObject
MessagingExceptionHandlerAcceptor to be part of ChoiceMessagingExceptionStrategy| Modifier and Type | Field and Description |
|---|---|
protected String |
globalName |
flowConstruct, messagingExceptionHandler, muleContextPHASE_NAMEPHASE_NAMEPHASE_NAMEPHASE_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, stopclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsetMuleContextdisposeprotected String globalName
public String getGlobalName()
getGlobalName in interface GlobalNameableObjectpublic void setGlobalName(String globalName)
setGlobalName in interface GlobalNameableObjectpublic MuleEvent handleException(Exception exception, MuleEvent event)
MessagingExceptionHandlerhandleException in interface MessagingExceptionHandlerexception - which occurredevent - which was being processed when the exception occurredpublic void setExceptionListeners(List<MessagingExceptionHandlerAcceptor> exceptionListeners)
public List<MessagingExceptionHandlerAcceptor> getExceptionListeners()
public void initialise()
throws InitialisationException
InitialisableInitialisationException 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 Initialisableinitialise 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)
MessageProcessorContaineraddMessageProcessorPathElements in interface MessageProcessorContainerpublic boolean accept(MuleEvent event)
accept in interface Acceptorevent - MuleEvent to route through exception handlerMessagingExceptionHandler should handler exception
false otherwisepublic boolean acceptsAll()
acceptsAll in interface AcceptorCopyright © 2003–2015 MuleSoft, Inc.. All rights reserved.