Package org.apache.tuscany.sca.contribution.service

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


                }
            }
           
            // Load the contribution
            logger.log(Level.INFO, "Loading contribution: " + contributionURL);
            contributions.add(contributionService.contribute(contribution.getURI(), contributionURL, false));
        }
       
        // Load the specified composite
        StAXArtifactProcessor<Composite> compositeProcessor = artifactProcessors.getProcessor(Composite.class);
        URL compositeURL = new URL(configuration.getComposite().getURI());
View Full Code Here


                }
            }

            // Load the contribution
            logger.log(Level.INFO, "Loading contribution: " + contributionURL);
            contributions.add(contributionService.contribute(contribution.getURI(), contributionURL, false));
            analyzeProblems();
        }

        composite = configuration.getComposite();
       
View Full Code Here

        }

        try {
            ModelResolverImpl modelResolver = new ModelResolverImpl(applicationClassLoader);
            String contributionURI = FileHelper.getName(contributionURL.getPath());
            contribution = contributionService.contribute(contributionURI, contributionURL, modelResolver, false);
        } catch (ContributionException e) {
            throw new ServiceRuntimeException(e);
        } catch (IOException e) {
            throw new ServiceRuntimeException(e);
        }
View Full Code Here

        ContributionService contributionService = scaDomain.getContributionService();
        for (URL jar : contributionJars) {
            InputStream is = null;
            try {
                is = jar.openStream();
                contribution = contributionService.contribute(jar.toString(), jar, is);
            } catch (Exception e) {
                System.err.println("exception adding contribution: " + jar);
                e.printStackTrace();
            }
            if (is != null) {
View Full Code Here

        ContributionService contributionService = scaDomain.getContributionService();
       
        URL serviceURL = new File("./target/classes/sdo/ds/HelloWorldService.jar").toURI().toURL();
        URL clientURL = new File("./target/classes/sdo/ds/HelloWorldClient.jar").toURI().toURL();
       
        Contribution serviceContribution = contributionService.contribute("HelloWorldService", serviceURL, true);
        Contribution clientContribution = contributionService.contribute("HelloWorldClient", clientURL, true);
       
        for (Composite deployable : serviceContribution.getDeployables()) {
            scaDomain.getDomainComposite().getIncludes().add(deployable);
            scaDomain.buildComposite(deployable);
View Full Code Here

       
        URL serviceURL = new File("./target/classes/sdo/ds/HelloWorldService.jar").toURI().toURL();
        URL clientURL = new File("./target/classes/sdo/ds/HelloWorldClient.jar").toURI().toURL();
       
        Contribution serviceContribution = contributionService.contribute("HelloWorldService", serviceURL, true);
        Contribution clientContribution = contributionService.contribute("HelloWorldClient", clientURL, true);
       
        for (Composite deployable : serviceContribution.getDeployables()) {
            scaDomain.getDomainComposite().getIncludes().add(deployable);
            scaDomain.buildComposite(deployable);
        }
View Full Code Here

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

        helloContribution =
            contributionService.contribute("http://contribution-multiple/helloworld", helloContribution_URL, false);

        //helloWorldContribution_one =
         //   contributionService.contribute("http://contribution-multiple/helloworld_one", helloWorldContribution_one_URL, false);

        helloWorldContribution_two =
View Full Code Here

        //helloWorldContribution_one =
         //   contributionService.contribute("http://contribution-multiple/helloworld_one", helloWorldContribution_one_URL, false);

        helloWorldContribution_two =
            contributionService.contribute("http://contribution-multiple/helloworld_two", helloWorldContribution_two_URL, false);

        for (Composite deployable : helloContribution.getDeployables()) {
            domain.getDomainComposite().getIncludes().add(deployable);
            domain.buildComposite(deployable);
        }
View Full Code Here

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

        helloContribution =
            contributionService.contribute("http://contribution-multiple/helloworld", helloContribution_URL, false);

        helloWorldContribution_one =
            contributionService.contribute("http://contribution-multiple/helloworld_one", helloWorldContribution_one_URL, false);

        helloWorldContribution_two =
View Full Code Here

        helloContribution =
            contributionService.contribute("http://contribution-multiple/helloworld", helloContribution_URL, false);

        helloWorldContribution_one =
            contributionService.contribute("http://contribution-multiple/helloworld_one", helloWorldContribution_one_URL, false);

        helloWorldContribution_two =
            contributionService.contribute("http://contribution-multiple/helloworld_two", helloWorldContribution_two_URL, false);

        for (Composite deployable : helloContribution.getDeployables()) {
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.