org.apache.camel.spi
Interface Policy

All Known Subinterfaces:
TransactedPolicy

public interface Policy

A strategy capable of applying interceptors to a processor

Version:
$Revision: 761894 $

Method Summary
 Processor wrap(RouteContext routeContext, Processor processor)
          Wraps any applicable interceptors around the given processor
 

Method Detail

wrap

Processor wrap(RouteContext routeContext,
               Processor processor)
Wraps any applicable interceptors around the given processor

Parameters:
routeContext - the route context
processor - the processor to be intercepted
Returns:
either the original processor or a processor wrapped in one or more interceptors


Copyright © 2007-2010 The Apache Software Foundation. All Rights Reserved.