org.mule.tck.testmodels.mule
Class TestExceptionStrategy

java.lang.Object
  extended by org.mule.exception.AbstractExceptionListener
      extended by org.mule.exception.AbstractMessagingExceptionStrategy
          extended by org.mule.tck.testmodels.mule.TestExceptionStrategy
All Implemented Interfaces:
MuleContextAware, MessagingExceptionHandler, SystemExceptionHandler, Disposable, Initialisable

public class TestExceptionStrategy
extends AbstractMessagingExceptionStrategy
implements SystemExceptionHandler

TestExceptionStrategy is used by the Mule test cases as a direct replacement of the AbstractMessagingExceptionStrategy. This is used to test that overriding the default Exception strategy works.


Nested Class Summary
static interface TestExceptionStrategy.ExceptionCallback
           
 
Field Summary
protected  Log logger
          logger used by this class
 
Fields inherited from class org.mule.exception.AbstractExceptionListener
commitTxFilter, enableNotifications, initialised, messageProcessors, muleContext, rollbackTxFilter
 
Fields inherited from interface org.mule.api.lifecycle.Initialisable
PHASE_NAME
 
Fields inherited from interface org.mule.api.lifecycle.Disposable
PHASE_NAME
 
Constructor Summary
TestExceptionStrategy()
           
 
Method Summary
 java.lang.String getTestProperty()
           
 void handleException(java.lang.Exception exception)
           
 MuleEvent handleException(java.lang.Exception exception, MuleEvent event)
           
protected  void processUnhandled()
           
 void setExceptionCallback(TestExceptionStrategy.ExceptionCallback exceptionCallback)
           
 void setTestProperty(java.lang.String testProperty)
           
 
Methods inherited from class org.mule.exception.AbstractMessagingExceptionStrategy
defaultHandler, handleLifecycleException, handleMessagingException, handleRoutingException, handleStandardException, messageFromContextIfAvailable
 
Methods inherited from class org.mule.exception.AbstractExceptionListener
addEndpoint, closeStream, createOutboundRouter, dispose, doInitialise, fireNotification, getCommitTxFilter, getExceptionType, getMessageProcessors, getMessageProcessors, getRollbackTxFilter, handleTransaction, initialise, isEnableNotifications, isInitialised, logException, logFatal, removeMessageProcessor, rollbackTransaction, routeException, setCommitTxFilter, setEnableNotifications, setMessageProcessors, setMuleContext, setRollbackTxFilter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected final Log logger
logger used by this class

Constructor Detail

TestExceptionStrategy

public TestExceptionStrategy()
Method Detail

getTestProperty

public java.lang.String getTestProperty()

setTestProperty

public void setTestProperty(java.lang.String testProperty)

handleException

public MuleEvent handleException(java.lang.Exception exception,
                                 MuleEvent event)
Specified by:
handleException in interface MessagingExceptionHandler
Overrides:
handleException in class AbstractMessagingExceptionStrategy

handleException

public void handleException(java.lang.Exception exception)
Specified by:
handleException in interface SystemExceptionHandler

setExceptionCallback

public void setExceptionCallback(TestExceptionStrategy.ExceptionCallback exceptionCallback)

processUnhandled

protected void processUnhandled()


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