org.apache.camel.impl
Class DefaultErrorHandlerWrappingStrategy

java.lang.Object
  extended by org.apache.camel.impl.DefaultErrorHandlerWrappingStrategy
All Implemented Interfaces:
ErrorHandlerWrappingStrategy

public class DefaultErrorHandlerWrappingStrategy
extends Object
implements ErrorHandlerWrappingStrategy

The default error handler wrapping strategy used when JMX is disabled.

Version:
$Revision: 755493 $

Constructor Summary
DefaultErrorHandlerWrappingStrategy(List<ProcessorType> counterList)
           
 
Method Summary
 Processor wrapProcessorInErrorHandler(RouteContext routeContext, ProcessorType processorType, Processor target)
          This method is invoked by ProcessorType.wrapProcessor(RouteContext, Processor) to give the implementor an opportunity to wrap the target processor in a route.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultErrorHandlerWrappingStrategy

public DefaultErrorHandlerWrappingStrategy(List<ProcessorType> counterList)
Method Detail

wrapProcessorInErrorHandler

public Processor wrapProcessorInErrorHandler(RouteContext routeContext,
                                             ProcessorType processorType,
                                             Processor target)
                                      throws Exception
Description copied from interface: ErrorHandlerWrappingStrategy
This method is invoked by ProcessorType.wrapProcessor(RouteContext, Processor) to give the implementor an opportunity to wrap the target processor in a route.

Specified by:
wrapProcessorInErrorHandler in interface ErrorHandlerWrappingStrategy
Parameters:
routeContext - the route context
processorType - the object that invokes this method
target - the processor to be wrapped
Returns:
processor wrapped with an interceptor or not wrapped
Throws:
Exception - can be thrown


Copyright © 2009 Apache Software Foundation. All Rights Reserved.