Examples of contribute()


Examples of org.apache.tuscany.sca.contribution.service.ContributionService.contribute()

        // Contribute the SCA contribution
        ContributionService contributionService = domain.getContributionService();

        File javaContribLocation = new File("../export-java/target/classes");
        URL javaContribURL = javaContribLocation.toURL();
        javaContribution = contributionService.contribute("http://import-export/export-java", javaContribURL, false);
        for (Composite deployable : javaContribution.getDeployables() ) {
            domain.getDomainComposite().getIncludes().add(deployable);
            domain.buildComposite(deployable);
        }
View Full Code Here

Examples of org.apache.tuscany.sca.contribution.service.ContributionService.contribute()

            domain.buildComposite(deployable);
        }

        File helloWorldContribLocation = new File("./target/classes/");
        URL helloWorldContribURL = helloWorldContribLocation.toURL();
        helloWorldContribution = contributionService.contribute("http://import-export/helloworld", helloWorldContribURL, false);
        for (Composite deployable : helloWorldContribution.getDeployables() ) {
            domain.getDomainComposite().getIncludes().add(deployable);
            domain.buildComposite(deployable);
        }
View Full Code Here

Examples of org.apache.tuscany.sca.contribution.service.ContributionService.contribute()

        ModelResolver helloResolver = new ModelResolverImpl(cl);
        File helloContrib = new File("./target/classes/");
        URL helloURL = helloContrib.toURL();
        Contribution consumerContribution =
            contributionService.contribute("http://import-export/hello", helloURL, helloResolver, false);
        Composite consumerComposite = consumerContribution.getDeployables().get(0);
        domain.getDomainComposite().getIncludes().add(consumerComposite);
        domain.buildComposite(consumerComposite);

        // Start Components from my composite
View Full Code Here

Examples of org.apache.tuscany.sca.contribution.service.ContributionService.contribute()

        try {
            String contributionURI = FileHelper.getName(contributionURL.getPath());
            if (contributionURI == null || contributionURI.length() == 0) {
                contributionURI = contributionURL.toString();
            }
            contribution = contributionService.contribute(contributionURI, contributionURL, false);
        } catch (ContributionException e) {
            throw new ServiceRuntimeException(e);
        } catch (IOException e) {
            throw new ServiceRuntimeException(e);
        }
View Full Code Here

Examples of org.apache.tuscany.sca.contribution.service.ContributionService.contribute()

        // Contribute the SCA contribution
        ContributionService contributionService = domain.getContributionService();

        helloContribution =
            contributionService.contribute("http://import-export/export-composite", helloContribution_URL, false);
       
        for (Composite deployable : helloContribution.getDeployables()) {
            domain.getDomainComposite().getIncludes().add(deployable);
            domain.buildComposite(deployable);
        }
View Full Code Here

Examples of org.apache.tuscany.sca.contribution.service.ContributionService.contribute()

            domain.getCompositeActivator().activate(deployable);
            domain.getCompositeActivator().start(deployable);
        }

        helloWorldContribution_one =
            contributionService.contribute("http://import-export/helloworld_one", helloWorldContribution_one_URL, false);
        for (Composite deployable : helloWorldContribution_one.getDeployables()) {
            domain.getDomainComposite().getIncludes().add(deployable);
            domain.buildComposite(deployable);
        }
View Full Code Here

Examples of org.apache.tuscany.sca.contribution.service.ContributionService.contribute()

        // Contribute the SCA contribution
        ContributionService contributionService = domain.getContributionService();

        File wsdlContribLocation = new File("../export-wsdl/target/classes");
        URL wsdlContribURL = wsdlContribLocation.toURL();
        wsdlContribution = contributionService.contribute("http://import-export/export-wsdl", wsdlContribURL, false);
        for (Composite deployable : wsdlContribution.getDeployables() ) {
            domain.getDomainComposite().getIncludes().add(deployable);
            domain.buildComposite(deployable);
        }
View Full Code Here

Examples of org.apache.tuscany.sca.contribution.service.ContributionService.contribute()

            domain.buildComposite(deployable);
        }

        File helloWorldContribLocation = new File("./target/classes/");
        URL helloWorldContribURL = helloWorldContribLocation.toURL();
        consumerContribution = contributionService.contribute("http://import-export/helloworld", helloWorldContribURL, false);
        for (Composite deployable : consumerContribution.getDeployables() ) {
            domain.getDomainComposite().getIncludes().add(deployable);
            domain.buildComposite(deployable);
        }
View Full Code Here

Examples of org.apache.tuscany.sca.contribution.service.ContributionService.contribute()

        ContributionService contributionService = domain.getContributionService();

        File compositeContribLocation = new File("../export-composite/target/classes");
        URL compositeContribURL = compositeContribLocation.toURL();
        compositeContribution =
            contributionService.contribute("http://import-export/export-composite", compositeContribURL, false);
        for (Composite deployable : compositeContribution.getDeployables()) {
            domain.getDomainComposite().getIncludes().add(deployable);
            domain.buildComposite(deployable);
        }
View Full Code Here

Examples of org.apache.tuscany.sca.contribution.service.ContributionService.contribute()

        }

        File helloWorldContribLocation = new File("./target/classes/");
        URL helloWorldContribURL = helloWorldContribLocation.toURL();
        helloWorldContribution =
            contributionService.contribute("http://import-export/helloworld", helloWorldContribURL, false);
        for (Composite deployable : helloWorldContribution.getDeployables()) {
            domain.getDomainComposite().getIncludes().add(deployable);
            domain.buildComposite(deployable);
        }
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.