org.apache.camel.spring.spi
Class TransactionErrorHandlerBuilder

java.lang.Object
  extended by org.apache.camel.builder.ErrorHandlerBuilderSupport
      extended by org.apache.camel.builder.DefaultErrorHandlerBuilder
          extended by org.apache.camel.spring.spi.TransactionErrorHandlerBuilder
All Implemented Interfaces:
ErrorHandlerBuilder

public class TransactionErrorHandlerBuilder
extends DefaultErrorHandlerBuilder

A transactional error handler that supports leveraging Spring TransactionManager.

Version:
$Revision: 19872 $

Field Summary
 
Fields inherited from class org.apache.camel.builder.DefaultErrorHandlerBuilder
asyncDelayedRedelivery, deadLetter, deadLetterUri, exceptionPolicyStrategy, failureProcessor, handledPolicy, logger, onRedelivery, redeliveryPolicy, useOriginalMessage
 
Constructor Summary
TransactionErrorHandlerBuilder()
           
 
Method Summary
 Processor createErrorHandler(RouteContext routeContext, Processor processor)
          Creates the error handler interceptor
protected  Logger createLogger()
           
 TransactionTemplate getTransactionTemplate()
           
 void setSpringTransactionPolicy(SpringTransactionPolicy policy)
           
 void setTransactionManager(PlatformTransactionManager transactionManager)
           
 void setTransactionTemplate(TransactionTemplate transactionTemplate)
           
 boolean supportTransacted()
          Whether this error handler supports transacted exchanges.
 String toString()
           
 
Methods inherited from class org.apache.camel.builder.DefaultErrorHandlerBuilder
asyncDelayedRedelivery, backOffMultiplier, collisionAvoidancePercent, createHandledPolicy, createRedeliveryPolicy, delayPattern, disableRedelivery, exceptionPolicyStrategy, getDeadLetter, getDeadLetterUri, getExceptionPolicyStrategy, getFailureProcessor, getHandledPolicy, getLogger, getOnRedelivery, getRedeliveryPolicy, handled, handled, handled, isAsyncDelayedRedelivery, isUseOriginalMessage, log, log, log, logExhausted, logger, loggingLevel, logHandled, logRetryStackTrace, logStackTrace, maximumRedeliveries, maximumRedeliveryDelay, onRedelivery, redeliverDelay, redeliveryDelay, retriesExhaustedLogLevel, retryAttemptedLogLevel, setAsyncDelayedRedelivery, setDeadLetter, setDeadLetterUri, setExceptionPolicyStrategy, setFailureProcessor, setHandled, setHandledPolicy, setLogger, setOnRedelivery, setRedeliveryPolicy, setUseOriginalMessage, useCollisionAvoidance, useExponentialBackOff, useOriginalMessage
 
Methods inherited from class org.apache.camel.builder.ErrorHandlerBuilderSupport
addErrorHandlers, configure, getErrorHandlers, setErrorHandlers
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TransactionErrorHandlerBuilder

public TransactionErrorHandlerBuilder()
Method Detail

getTransactionTemplate

public TransactionTemplate getTransactionTemplate()

supportTransacted

public boolean supportTransacted()
Description copied from interface: ErrorHandlerBuilder
Whether this error handler supports transacted exchanges.

Specified by:
supportTransacted in interface ErrorHandlerBuilder
Overrides:
supportTransacted in class DefaultErrorHandlerBuilder

createErrorHandler

public Processor createErrorHandler(RouteContext routeContext,
                                    Processor processor)
                             throws Exception
Description copied from interface: ErrorHandlerBuilder
Creates the error handler interceptor

Specified by:
createErrorHandler in interface ErrorHandlerBuilder
Overrides:
createErrorHandler in class DefaultErrorHandlerBuilder
Parameters:
routeContext - the route context
processor - the outer processor
Returns:
the error handler
Throws:
Exception - is thrown if the error handler could not be created

setTransactionTemplate

public void setTransactionTemplate(TransactionTemplate transactionTemplate)

setSpringTransactionPolicy

public void setSpringTransactionPolicy(SpringTransactionPolicy policy)

setTransactionManager

public void setTransactionManager(PlatformTransactionManager transactionManager)

createLogger

protected Logger createLogger()
Overrides:
createLogger in class DefaultErrorHandlerBuilder

toString

public String toString()
Overrides:
toString in class DefaultErrorHandlerBuilder


Copyright © 2007-2010 IONA Open Source Community. All Rights Reserved.