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: 673837 $

Method Summary
 Processor wrapProcessorInErrorHandler(RouteContext routeContext, ProcessorType processorType, Processor target)
          This method is invoked by {@link 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 {@link ProcessorType#wrapProcessor(RouteContext, Processor) to give the implementor an opportunity to wrap the target processor in a route.

Parameters:
processorType - the object that invokes this method
target - the processor to be wrapped
Returns:
processor wrapped with an interceptor or not wrapped
Throws:
Exception


Copyright © 2008 Apache Software Foundation. All Rights Reserved.