org.apache.camel.spring.spi
Class TransactionErrorHandler
java.lang.Object
org.apache.camel.impl.ServiceSupport
org.apache.camel.processor.ErrorHandlerSupport
org.apache.camel.spring.spi.TransactionErrorHandler
- All Implemented Interfaces:
- Processor, ErrorHandler, Service
public class TransactionErrorHandler
- extends ErrorHandlerSupport
The Transactional Client
EIP pattern.
- Version:
- $Revision: 765920 $
Methods inherited from class org.apache.camel.impl.ServiceSupport |
addChildService, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, removeChildService, start, stop |
TransactionErrorHandler
public TransactionErrorHandler(org.springframework.transaction.support.TransactionTemplate transactionTemplate)
TransactionErrorHandler
public TransactionErrorHandler(org.springframework.transaction.support.TransactionTemplate transactionTemplate,
Processor output,
ExceptionPolicyStrategy exceptionPolicy)
supportTransacted
public boolean supportTransacted()
- Specified by:
supportTransacted
in class ErrorHandlerSupport
toString
public String toString()
- Overrides:
toString
in class Object
process
public void process(Exchange exchange)
wrapTransactedRuntimeException
protected TransactedRuntimeCamelException wrapTransactedRuntimeException(Exception exception)
handleException
protected void handleException(Exchange exchange)
- Handles when an exception occured during processing. Is used to let the exception policy
deal with it, eg letting an onException handle it.
- Parameters:
exchange
- the current exchange
propagationBehaviorToString
protected String propagationBehaviorToString(int propagationBehavior)
doStart
protected void doStart()
throws Exception
- Specified by:
doStart
in class ServiceSupport
- Throws:
Exception
doStop
protected void doStop()
throws Exception
- Specified by:
doStop
in class ServiceSupport
- Throws:
Exception
getOutput
public Processor getOutput()
- Returns the output processor
setOutput
public void setOutput(Processor output)
Copyright © 2009 Apache Software Foundation. All Rights Reserved.