Examples of EnrichDefinition


Examples of org.apache.camel.model.EnrichDefinition

    }

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

        answer.setResourceUri(toXmlPropertyValue(PROPERTY_RESOURCEURI, this.getResourceUri()));
        answer.setAggregationStrategyRef(toXmlPropertyValue(PROPERTY_AGGREGATIONSTRATEGYREF, this.getAggregationStrategyRef()));
        answer.setAggregationStrategyMethodName(toXmlPropertyValue(PROPERTY_AGGREGATIONSTRATEGYMETHODNAME, this.getAggregationStrategyMethodName()));
        answer.setAggregationStrategyMethodAllowNull(toXmlPropertyValue(PROPERTY_AGGREGATIONSTRATEGYMETHODALLOWNULL, this.getAggregationStrategyMethodAllowNull()));

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

Examples of org.apache.camel.model.EnrichDefinition

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

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

            this.setResourceUri(node.getResourceUri());
            this.setAggregationStrategyRef(node.getAggregationStrategyRef());
            this.setAggregationStrategyMethodName(node.getAggregationStrategyMethodName());
            this.setAggregationStrategyMethodAllowNull(node.getAggregationStrategyMethodAllowNull());
        } else {
            throw new IllegalArgumentException("ProcessorDefinition not an instanceof EnrichDefinition. Was " + processor.getClass().getName());
        }
    }
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.