org.apache.camel.spi
Interface InterceptStrategy
- All Known Implementing Classes:
- Debugger, Delayer, InstrumentationInterceptStrategy, StreamCaching, Tracer
public interface InterceptStrategy
The purpose of this interface is to allow an implementation to wrap
processors in a route with interceptors. For example, a possible
usecase is to gather performance statistics at the processor's level.
- Version:
- $Revision: 679971 $
wrapProcessorInInterceptors
Processor wrapProcessorInInterceptors(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:
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
Apache CAMEL