org.apache.camel.processor.interceptor
Class Tracer

java.lang.Object
  extended by org.apache.camel.processor.interceptor.Tracer
All Implemented Interfaces:
InterceptStrategy

public class Tracer
extends Object
implements InterceptStrategy

An interceptor strategy for tracing routes

Version:
$Revision: 675876 $

Constructor Summary
Tracer()
           
 
Method Summary
 TraceFormatter getFormatter()
           
 void setFormatter(TraceFormatter formatter)
           
 Processor wrapProcessorInInterceptors(ProcessorType processorType, Processor target)
          This method is invoked by {@link ProcessorType#wrapProcessor(RouteContext, Processor) to give the implementor an opportunity to wrap the target processor in a route.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Tracer

public Tracer()
Method Detail

wrapProcessorInInterceptors

public Processor wrapProcessorInInterceptors(ProcessorType processorType,
                                             Processor target)
                                      throws Exception
Description copied from interface: InterceptStrategy
This method is invoked by {@link ProcessorType#wrapProcessor(RouteContext, Processor) to give the implementor an opportunity to wrap the target processor in a route.

Specified by:
wrapProcessorInInterceptors in interface InterceptStrategy
Parameters:
processorType - the object that invokes this method
target - the processor to be wrapped
Returns:
processor wrapped with an interceptor or not wrapped
Throws:
Exception

getFormatter

public TraceFormatter getFormatter()

setFormatter

public void setFormatter(TraceFormatter formatter)


Copyright © 2008 Apache Software Foundation. All Rights Reserved.