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 $
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 contextprocessorType
- the object that invokes this methodtarget
- the processor to be wrapped
- Returns:
- processor wrapped with an interceptor or not wrapped
- Throws:
Exception
- can be thrown
Copyright © 2009 IONA Open Source Community. All Rights Reserved.