org.apache.camel.processor.interceptor
Class DefaultTraceInterceptorFactory

java.lang.Object
  extended by org.apache.camel.processor.interceptor.DefaultTraceInterceptorFactory
All Implemented Interfaces:
TraceInterceptorFactory

public class DefaultTraceInterceptorFactory
extends Object
implements TraceInterceptorFactory


Constructor Summary
DefaultTraceInterceptorFactory()
           
 
Method Summary
 Processor createTraceInterceptor(ProcessorDefinition node, Processor target, TraceFormatter formatter, Tracer tracer)
          Create a trace interceptor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultTraceInterceptorFactory

public DefaultTraceInterceptorFactory()
Method Detail

createTraceInterceptor

public Processor createTraceInterceptor(ProcessorDefinition node,
                                        Processor target,
                                        TraceFormatter formatter,
                                        Tracer tracer)
Description copied from interface: TraceInterceptorFactory
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.

Specified by:
createTraceInterceptor in interface TraceInterceptorFactory
Parameters:
node - the current node
target - the current target
formatter - the trace formatter
tracer - the tracer
Returns:
the created trace interceptor


Apache CAMEL