org.apache.camel.processor.interceptor
Interface TraceInterceptorFactory

All Known Implementing Classes:
DefaultTraceInterceptorFactory

public interface TraceInterceptorFactory

Factory to create the trace interceptor.


Method Summary
 Processor createTraceInterceptor(ProcessorDefinition<?> node, Processor target, TraceFormatter formatter, Tracer tracer)
          Create a trace interceptor.
 

Method Detail

createTraceInterceptor

Processor createTraceInterceptor(ProcessorDefinition<?> node,
                                 Processor target,
                                 TraceFormatter formatter,
                                 Tracer tracer)
Create a trace interceptor.

It is expected that the factory will create a subclass of TraceInterceptor, however any Processor will suffice.

Use this factory to take more control of how trace events are persisted.

Parameters:
node - the current node
target - the current target
formatter - the trace formatter
tracer - the tracer
Returns:
the created trace interceptor


Apache CAMEL