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

Method Summary
 Processor wrapProcessorInErrorHandler(ProcessorDefinition processorType, Processor target)
          This method is invoked by ProcessorDefinition.wrapProcessor(RouteContext, Processor) to give the implementor an opportunity to wrap the target processor in a route.
 

Method Detail

wrapProcessorInErrorHandler

Processor wrapProcessorInErrorHandler(ProcessorDefinition processorType,
                                      Processor target)
                                      throws Exception
This method is invoked by ProcessorDefinition.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 - can be thrown


Copyright © 2009 Apache Software Foundation. All Rights Reserved.