Package org.apache.camel.model

Examples of org.apache.camel.model.FinallyDefinition


        }
    }

    private static void renderFinally(StringBuilder buffer, OutputDefinition out) {
        buffer.append("()");
        FinallyDefinition finallyDef = (FinallyDefinition)out;
        List<ProcessorDefinition> branches = finallyDef.getOutputs();
        for (ProcessorDefinition branch : branches) {
            SendDefinitionRenderer.render(buffer, branch);
        }
        buffer.append(".end()");
    }
View Full Code Here


        }
    }

    private static void renderFinally(StringBuilder buffer, OutputDefinition out) {
        buffer.append("()");
        FinallyDefinition finallyDef = (FinallyDefinition)out;
        List<ProcessorDefinition> branches = finallyDef.getOutputs();
        for (ProcessorDefinition branch : branches) {
            SendDefinitionRenderer.render(buffer, branch);
        }
        buffer.append(".end()");
    }
View Full Code Here

        }
    }

    private static void renderFinally(StringBuilder buffer, OutputDefinition<?> out) {
        buffer.append("()");
        FinallyDefinition finallyDef = (FinallyDefinition)out;
        List<ProcessorDefinition> branches = finallyDef.getOutputs();
        for (ProcessorDefinition branch : branches) {
            SendDefinitionRenderer.render(buffer, branch);
        }
        buffer.append(".end()");
    }
View Full Code Here

        }
    }

    private static void renderFinally(StringBuilder buffer, OutputDefinition out) {
        buffer.append("()");
        FinallyDefinition finallyDef = (FinallyDefinition)out;
        List<ProcessorDefinition> branches = finallyDef.getOutputs();
        for (ProcessorDefinition branch : branches) {
            SendDefinitionRenderer.render(buffer, branch);
        }
        buffer.append(".end()");
    }
View Full Code Here

    }

    @SuppressWarnings("rawtypes")
    @Override
    public ProcessorDefinition createCamelDefinition() {
        FinallyDefinition answer = new FinallyDefinition();

        answer.setInheritErrorHandler(toXmlPropertyValue(PROPERTY_INHERITERRORHANDLER, Objects.<Boolean>getField(this, "inheritErrorHandler")));

        super.savePropertiesToCamelDefinition(answer);
        return answer;
    }
View Full Code Here

    @Override
    protected void loadPropertiesFromCamelDefinition(ProcessorDefinition processor) {
        super.loadPropertiesFromCamelDefinition(processor);

        if (processor instanceof FinallyDefinition) {
            FinallyDefinition node = (FinallyDefinition) processor;

            this.setInheritErrorHandler(Objects.<Boolean>getField(node, "inheritErrorHandler"));
        } else {
            throw new IllegalArgumentException("ProcessorDefinition not an instanceof FinallyDefinition. Was " + processor.getClass().getName());
        }
View Full Code Here

TOP

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

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.