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 $
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 methodtarget
- 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.