Package org.apache.camel.model

Examples of org.apache.camel.model.PolicyRef


    }

    private void initPolicies(RouteType route) {
        // setup the policies as JAXB yet again have not created a correct model for us
        List<ProcessorType<?>> types = route.getOutputs();
        PolicyRef policy = null;
        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


    }

    private void initPolicies(RouteType route) {
        // setup the policies as JAXB yet again have not created a correct model for us
        List<ProcessorType<?>> types = route.getOutputs();
        PolicyRef policy = null;
        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

    }

    private void initPolicies(RouteType route) {
        // setup the policies as JAXB yet again have not created a correct model for us
        List<ProcessorType<?>> types = route.getOutputs();
        PolicyRef policy = null;
        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

TOP

Related Classes of org.apache.camel.model.PolicyRef

Copyright © 2018 www.massapicom. 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.