Examples of addOutput()


Examples of org.apache.camel.model.PolicyDefinition.addOutput()

                policy = (PolicyDefinition) type;
            } else if (type instanceof TransactedDefinition) {
                transacted = (TransactedDefinition) type;
            } else if (policy != null) {
                // the outputs should be moved to the policy
                policy.addOutput(type);
            } else if (transacted != null) {
                // the outputs should be moved to the transacted policy
                transacted.addOutput(type);
            }
        }
View Full Code Here

Examples of org.apache.camel.model.PolicyDefinition.addOutput()

                policy = (PolicyDefinition) type;
            } else if (type instanceof TransactedDefinition) {
                transacted = (TransactedDefinition) type;
            } else if (policy != null) {
                // the outputs should be moved to the policy
                policy.addOutput(type);
            } else if (transacted != null) {
                // the outputs should be moved to the transacted policy
                transacted.addOutput(type);
            }
        }
View Full Code Here

Examples of org.apache.camel.model.PolicyRef.addOutput()

        for (ProcessorType<?> type : types) {
            if (type instanceof PolicyRef) {
                policy = (PolicyRef) type;
            } else if (policy != null) {
                // the outputs should be moved to the policy
                policy.addOutput(type);
            }
        }
        // did we find a policy if so add replace it as the only output on the route
        if (policy != null) {
            route.clearOutput();
View Full Code Here

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

        choice.setOtherwise((OtherwiseDefinition) toNode);
      } else {
        // there may be a nested choice so we need to add it on its parent
        ProcessorDefinition grandParent = choice.getParent();
        if (grandParent != null) {
          grandParent.addOutput(toNode);
        } else {
          Activator.getLogger().warning("No parent of " + choice + " so cannot add output " + toNode);
        }
      }
    } else {
View Full Code Here

Examples of org.apache.camel.model.RouteDefinition.addOutput()

            // clearing the outputs
            routeType.clearOutput();

            // add the output configure the outputs with the routeType
            for (ProcessorDefinition processorType : outputs) {
                routeType.addOutput(processorType);
            }
        }
    }

}
View Full Code Here

Examples of org.apache.camel.model.RouteType.addOutput()

            // clearing the outputs
            routeType.clearOutput();

            // add the output configure the outputs with the routeType
            for (ProcessorType<?> processorType : outputs) {
                routeType.addOutput(processorType);
            }
        }
    }

}
View Full Code Here

Examples of org.apache.camel.model.RouteType.addOutput()

            InstrumentationProcessor processor = new InstrumentationProcessor();
            routeType.intercept(processor);

            // add the output
            for (ProcessorType<?> processorType : outputs) {
                routeType.addOutput(processorType);
            }

            interceptorMap.put(endpoint, processor);
        }
View Full Code Here

Examples of org.apache.camel.model.SplitDefinition.addOutput()

        public Processor createProcessor(RouteContext routeContext, ProcessorDefinition definition) throws Exception {
            if (definition instanceof SplitDefinition) {
                // add additional output to the splitter
                SplitDefinition split = (SplitDefinition) definition;
                split.addOutput(new ToDefinition("mock:extra"));
            }

            if (definition instanceof SetBodyDefinition) {
                SetBodyDefinition set = (SetBodyDefinition) definition;
                set.setExpression(new ConstantExpression("body was altered"));
View Full Code Here

Examples of org.apache.camel.model.TransactedDefinition.addOutput()

            } else if (policy != null) {
                // the outputs should be moved to the policy
                policy.addOutput(type);
            } else if (transacted != null) {
                // the outputs should be moved to the transacted policy
                transacted.addOutput(type);
            }
        }

        // did we find a policy if so replace it as the only output on the route
        if (policy != null) {
View Full Code Here

Examples of org.apache.camel.model.TransactedDefinition.addOutput()

            } else if (policy != null) {
                // the outputs should be moved to the policy
                policy.addOutput(type);
            } else if (transacted != null) {
                // the outputs should be moved to the transacted policy
                transacted.addOutput(type);
            }
        }
        // did we find a policy if so replace it as the only output on the route
        if (policy != null) {
            route.clearOutput();
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.