private static final class MyIntercepStrategy implements InterceptStrategy {
private volatile boolean invoked;
public Processor wrapProcessorInInterceptors(CamelContext context, ProcessorDefinition<?> definition, Processor target, Processor nextTarget) throws Exception {
return new DelegateProcessor(target) {
protected void processNext(Exchange exchange) throws Exception {
invoked = true;
super.processNext(exchange);
}
};