org.apache.camel.management
Class InstrumentationErrorHandlerWrappingStrategy

java.lang.Object
  extended by org.apache.camel.management.InstrumentationErrorHandlerWrappingStrategy
All Implemented Interfaces:
ErrorHandlerWrappingStrategy

public class InstrumentationErrorHandlerWrappingStrategy
extends Object
implements ErrorHandlerWrappingStrategy

Version:
$Revision: 43862 $

Constructor Summary
InstrumentationErrorHandlerWrappingStrategy(Map<ProcessorType,PerformanceCounter> counterMap)
           
 
Method Summary
 Processor wrapProcessorInErrorHandler(RouteContext routeContext, ProcessorType processorType, Processor target)
          This method is invoked by 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

InstrumentationErrorHandlerWrappingStrategy

public InstrumentationErrorHandlerWrappingStrategy(Map<ProcessorType,PerformanceCounter> counterMap)
Method Detail

wrapProcessorInErrorHandler

public Processor wrapProcessorInErrorHandler(RouteContext routeContext,
                                             ProcessorType processorType,
                                             Processor target)
                                      throws Exception
Description copied from interface: ErrorHandlerWrappingStrategy
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:
wrapProcessorInErrorHandler in interface ErrorHandlerWrappingStrategy
Parameters:
routeContext - the route context
processorType - the object that invokes this method
target - the processor to be wrapped
Returns:
processor wrapped with an interceptor or not wrapped
Throws:
Exception - can be thrown


Copyright © 2008 IONA Open Source Community. All Rights Reserved.