Package org.switchyard.config

Examples of org.switchyard.config.Configuration


    }

    @Override
    public GenericFileProducerBindingModel getProducer() {
        if (_produce == null) {
            Configuration config = getModelConfiguration().getFirstChild(PRODUCE);
            _produce = new V1CamelFileProducerBindingModel(config, getModelDescriptor());
        }
        return _produce;
    }
View Full Code Here


        return _produce;
    }

    @Override
    public V1CamelFileBindingModel setProducer(GenericFileProducerBindingModel producer) {
        Configuration config = getModelConfiguration().getFirstChild(PRODUCE);
        if (config != null) {
            // set an existing config value
            getModelConfiguration().removeChildren(PRODUCE);
            getModelConfiguration().addChild(
                    ((V1GenericFileProducerBindingModel) producer)
View Full Code Here

        return this;
    }

    @Override
    public URI getComponentURI() {
        Configuration modelConfiguration = getModelConfiguration();
        List<Configuration> children = modelConfiguration.getChildren();

        QueryString queryString = new QueryString();
        traverseConfiguration(children, queryString, DIRECTORY);

        URI newURI = URI.create(FILE + "://" + getDirectory() + queryString);
View Full Code Here


    @Override
    public CamelScheduledPollConsumer getConsumer() {
        if (_consume == null) {
            Configuration config = getModelConfiguration().getFirstChild(CONSUME);
            _consume = new V1CamelScheduledPollConsumer(config,
                getModelDescriptor());
        }
        return _consume;
    }
View Full Code Here

        return _consume;
    }

    @Override
    public V2CamelRSSBindingModel setConsumer(CamelScheduledPollConsumer consumer) {
        Configuration config = getModelConfiguration().getFirstChild(CONSUME);
        if (config != null) {
            // set an existing config value
            getModelConfiguration().removeChildren(CONSUME);
            getModelConfiguration().addChild(((V1CamelScheduledPollConsumer) consumer)
                .getModelConfiguration());
View Full Code Here

        return this;
    }

    @Override
    public URI getComponentURI() {
        Configuration modelConfiguration = getModelConfiguration();
        List<Configuration> children = modelConfiguration.getChildren();

        String baseUri = RSS + "://" + getFeedURI();

        QueryString queryStr = new QueryString();
        traverseConfiguration(children, queryStr, FEED_URI);
View Full Code Here

        ComponentImplementationModel implementation = component.getImplementation();
        Assert.assertTrue(implementation instanceof BeanComponentImplementationModel);
        BeanComponentImplementationModel bci = (BeanComponentImplementationModel)implementation;
        Assert.assertEquals("bean", bci.getType());
        Assert.assertEquals("org.switchyard.example.m1app.SimpleBean", bci.getClazz());
        Configuration config = bci.getModelConfiguration();
        Assert.assertEquals("implementation.bean", config.getName());
        QName qname = config.getQName();
        Assert.assertEquals("urn:switchyard-component-bean:config:1.0", qname.getNamespaceURI());
        Assert.assertEquals("implementation.bean", qname.getLocalPart());
    }
View Full Code Here

    public URI getComponentURI() {
        return getComponentURI(JMS);
    }

    protected URI getComponentURI(String prefix) {
        Configuration modelConfiguration = getModelConfiguration();
        List<Configuration> children = modelConfiguration.getChildren();

        String baseUri = prefix + ":";
        if (getQueue() != null) {
            baseUri += "queue:" + getQueue();
        } else if (getTopic() != null) {
View Full Code Here

        return setConfig(SEND_WAIT_IN_SECONDS, sendWaitInSeconds);
    }

    @Override
    public URI getComponentURI() {
        Configuration modelConfiguration = getModelConfiguration();
        List<Configuration> children = modelConfiguration.getChildren();

        String baseUri = MQTT + "://" + getName();

        QueryString queryStr = new QueryString();
        traverseConfiguration(children, queryStr, NAME);
View Full Code Here

    }


    @Override
    public URI getComponentURI() {
        Configuration modelConfiguration = getModelConfiguration();
        List<Configuration> children = modelConfiguration.getChildren();

        String baseUri = CXF + "://" + getCxfURI();

        QueryString queryStr = new QueryString();
        traverseConfiguration(children, queryStr, CXFURI);
View Full Code Here

TOP

Related Classes of org.switchyard.config.Configuration

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.