org.mule.exception
Class AbstractSystemExceptionStrategy

java.lang.Object
  extended by org.mule.processor.AbstractMuleObjectOwner<MessageProcessor>
      extended by org.mule.processor.AbstractMessageProcessorOwner
          extended by org.mule.exception.AbstractExceptionListener
              extended by org.mule.exception.AbstractSystemExceptionStrategy
All Implemented Interfaces:
AnnotatedObject, FlowConstructAware, MuleContextAware, ExceptionHandler, SystemExceptionHandler, GlobalNameableObject, Disposable, Initialisable, Lifecycle, Startable, Stoppable, MessageProcessorContainer
Direct Known Subclasses:
DefaultSystemExceptionStrategy

public class AbstractSystemExceptionStrategy
extends AbstractExceptionListener
implements SystemExceptionHandler

Fire a notification, log exception, clean up transaction if any, and trigger reconnection strategy if this is a ConnectException.


Field Summary
 
Fields inherited from class org.mule.exception.AbstractExceptionListener
commitTxFilter, enableNotifications, globalName, initialised, logger, messageProcessors, rollbackTxFilter
 
Fields inherited from class org.mule.processor.AbstractMuleObjectOwner
flowConstruct, muleContext
 
Fields inherited from interface org.mule.api.lifecycle.Initialisable
PHASE_NAME
 
Fields inherited from interface org.mule.api.lifecycle.Startable
PHASE_NAME
 
Fields inherited from interface org.mule.api.lifecycle.Stoppable
PHASE_NAME
 
Fields inherited from interface org.mule.api.lifecycle.Disposable
PHASE_NAME
 
Fields inherited from interface org.mule.api.AnnotatedObject
PROPERTY_NAME
 
Constructor Summary
AbstractSystemExceptionStrategy(MuleContext muleContext)
           
 
Method Summary
 void handleException(Exception ex)
          Take some action when a system exception has occurred (i.e., there was no message in play when the exception occurred).
 void handleException(Exception ex, RollbackSourceCallback rollbackMethod)
          Take some action when a system exception has occurred (i.e., there was no message in play when the exception occurred).
protected  void handleReconnection(ConnectException ex)
           
 
Methods inherited from class org.mule.exception.AbstractExceptionListener
addEndpoint, closeStream, commit, doInitialise, fireNotification, fireNotification, getCommitTxFilter, getExceptionType, getGlobalName, getMessageProcessors, getOwnedMessageProcessors, getRollbackTxFilter, handleTransaction, initialise, isEnableNotifications, isInitialised, isRollback, logException, logFatal, removeMessageProcessor, rollback, rollback, rollbackTransaction, routeException, routeException, setCommitTxFilter, setEnableNotifications, setGlobalName, setMessageProcessors, setRollbackTxFilter
 
Methods inherited from class org.mule.processor.AbstractMessageProcessorOwner
addMessageProcessorPathElements, getAnnotation, getAnnotations, getOwnedObjects, setAnnotations
 
Methods inherited from class org.mule.processor.AbstractMuleObjectOwner
dispose, getFlowConstruct, getMuleContext, setFlowConstruct, setMuleContext, start, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.mule.api.lifecycle.Startable
start
 
Methods inherited from interface org.mule.api.lifecycle.Stoppable
stop
 
Methods inherited from interface org.mule.api.lifecycle.Disposable
dispose
 
Methods inherited from interface org.mule.api.context.MuleContextAware
setMuleContext
 
Methods inherited from interface org.mule.api.construct.FlowConstructAware
setFlowConstruct
 

Constructor Detail

AbstractSystemExceptionStrategy

public AbstractSystemExceptionStrategy(MuleContext muleContext)
Method Detail

handleException

public void handleException(Exception ex,
                            RollbackSourceCallback rollbackMethod)
Description copied from interface: SystemExceptionHandler
Take some action when a system exception has occurred (i.e., there was no message in play when the exception occurred).

Specified by:
handleException in interface SystemExceptionHandler
Parameters:
ex - which occurred
rollbackMethod - will be called if transactions are not used in order to achieve atomic message delivery

handleException

public void handleException(Exception ex)
Description copied from interface: SystemExceptionHandler
Take some action when a system exception has occurred (i.e., there was no message in play when the exception occurred).

Specified by:
handleException in interface SystemExceptionHandler
Parameters:
ex - which occurred

handleReconnection

protected void handleReconnection(ConnectException ex)


Copyright © 2003-2014 MuleSoft, Inc.. All Rights Reserved.