Package org.apache.camel.model

Examples of org.apache.camel.model.ProcessorDefinition.addInterceptStrategy()


        // only needed to register on the first output as all rotues will pass through this one
        ProcessorDefinition out = routeContext.getRoute().getOutputs().get(0);

        // add an intercept strategy that counts when the route sends to any of its outputs
        out.addInterceptStrategy(new InterceptStrategy() {
            public Processor wrapProcessorInInterceptors(ProcessorDefinition processorDefinition, Processor target, Processor nextTarget) throws Exception {
                if (registeredRoutes.containsKey(endpoint)) {
                    // do not double wrap
                    return target;
                }
View Full Code Here


            break;
        }

        // add an intercept strategy that counts when the route sends to any of its outputs
        if (out != null) {
            out.addInterceptStrategy(new InterceptStrategy() {
                public Processor wrapProcessorInInterceptors(CamelContext context, ProcessorDefinition definition,
                                                             Processor target, Processor nextTarget) throws Exception {
                    if (registeredRoutes.containsKey(endpoint)) {
                        // do not double wrap
                        return target;
View Full Code Here

        // only needed to register on the first output as all rotues will pass through this one
        ProcessorDefinition out = routeContext.getRoute().getOutputs().get(0);

        // add an intercept strategy that counts when the route sends to any of its outputs
        out.addInterceptStrategy(new InterceptStrategy() {
            public Processor wrapProcessorInInterceptors(ProcessorDefinition processorDefinition, Processor target, Processor nextTarget) throws Exception {
                if (registeredRoutes.containsKey(endpoint)) {
                    // do not double wrap
                    return target;
                }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.