Package org.apache.camel.model

Examples of org.apache.camel.model.RollbackDefinition


            OnExceptionDefinitionRenderer.render(buffer, processor);
            return;
        } else if (processor instanceof ResequenceDefinition) {
            ResequenceDefinitionRenderer.render(buffer, processor);
        } else if (processor instanceof RollbackDefinition) {
            RollbackDefinition rollback = (RollbackDefinition)processor;
            buffer.append(".").append(processor.getShortName()).append("(\"");
            buffer.append(rollback.getMessage()).append("\")");
        } else if (processor instanceof RoutingSlipDefinition) {
            RoutingSlipDefinitionRenderer.render(buffer, processor);
        } else if (processor instanceof SendDefinition) {
            SendDefinitionRenderer.render(buffer, processor);
        } else if (processor instanceof ThrottleDefinition) {
View Full Code Here


        } else if (processor instanceof OutputDefinition) {
            OutputDefinitionRenderer.render(buffer, processor);
        } else if (processor instanceof ResequenceDefinition) {
            ResequenceDefinitionRenderer.render(buffer, processor);
        } else if (processor instanceof RollbackDefinition) {
            RollbackDefinition rollback = (RollbackDefinition)processor;
            buffer.append(".").append(processor.getShortName()).append("(\"");
            buffer.append(rollback.getMessage()).append("\")");
        } else if (processor instanceof RoutingSlipDefinition) {
            RoutingSlipDefinitionRenderer.render(buffer, processor);
        } else if (processor instanceof SendDefinition) {
            SendDefinitionRenderer.render(buffer, processor);
        } else if (processor instanceof ThrottleDefinition) {
View Full Code Here

        } else if (processor instanceof OutputDefinition) {
            OutputDefinitionRenderer.render(buffer, processor);
        } else if (processor instanceof ResequenceDefinition) {
            ResequenceDefinitionRenderer.render(buffer, processor);
        } else if (processor instanceof RollbackDefinition) {
            RollbackDefinition rollback = (RollbackDefinition)processor;
            buffer.append(".").append(processor.getShortName()).append("(\"");
            buffer.append(rollback.getMessage()).append("\")");
        } else if (processor instanceof RoutingSlipDefinition) {
            RoutingSlipDefinitionRenderer.render(buffer, processor);
        } else if (processor instanceof SendDefinition) {
            SendDefinitionRenderer.render(buffer, processor);
        } else if (processor instanceof ThrottleDefinition) {
View Full Code Here

    }

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

        answer.setMarkRollbackOnly(toXmlPropertyValue(PROPERTY_MARKROLLBACKONLY, this.getMarkRollbackOnly()));
        answer.setMarkRollbackOnlyLast(toXmlPropertyValue(PROPERTY_MARKROLLBACKONLYLAST, this.getMarkRollbackOnlyLast()));
        answer.setMessage(toXmlPropertyValue(PROPERTY_MESSAGE, this.getMessage()));

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

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

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

            this.setMarkRollbackOnly(node.getMarkRollbackOnly());
            this.setMarkRollbackOnlyLast(node.getMarkRollbackOnlyLast());
            this.setMessage(node.getMessage());
        } else {
            throw new IllegalArgumentException("ProcessorDefinition not an instanceof RollbackDefinition. Was " + processor.getClass().getName());
        }
    }
View Full Code Here

TOP

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

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.