org.apache.camel.processor.interceptor
Class Tracer
java.lang.Object
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: 45363 $
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Tracer
public Tracer()
getTracer
public static Tracer getTracer(CamelContext context)
- A helper method to return the Tracer instance for a given
CamelContext if one is enabled
- Parameters:
context - the camel context the debugger is connected to
- Returns:
- the debugger or null if none can be found
wrapProcessorInInterceptors
public Processor wrapProcessorInInterceptors(ProcessorType processorType,
Processor target)
throws Exception
- Description copied from interface:
InterceptStrategy
- This method is invoked by
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 methodtarget - the processor to be wrapped
- Returns:
- processor wrapped with an interceptor or not wrapped
- Throws:
Exception - can be thrown
getFormatter
public TraceFormatter getFormatter()
setFormatter
public void setFormatter(TraceFormatter formatter)
setEnabled
public void setEnabled(boolean flag)
isEnabled
public boolean isEnabled()
Copyright © 2008 IONA Open Source Community. All Rights Reserved.