org.apache.camel.spi
Interface ErrorHandlerWrappingStrategy

All Known Implementing Classes:
InstrumentationErrorHandlerWrappingStrategy

public interface ErrorHandlerWrappingStrategy

The purpose of this interface is to allow an implementation to provide custom logic to wrap a processor with error handler

Version:
$Revision: 47144 $

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.
 

Method Detail

wrapProcessorInErrorHandler

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

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 © 2008 IONA Open Source Community. All Rights Reserved.