Examples of createSCANode()


Examples of org.apache.tuscany.sca.node.SCANodeFactory.createSCANode()

            // Create SCA contributions
            for (String location : contributionURLs) {
                contributions.add(new SCAContribution(location, location));
            }
            node =
                factory.createSCANode("http://tuscany.apache.org/xmlns/sca/1.0/aggregated", content, contributions
                    .toArray(new SCAContribution[contributions.size()]));
        } else {
            for (String location : contributionURLs) {
                contributions.add(new SCAContribution(location, location));
            }
View Full Code Here

Examples of org.apache.tuscany.sca.node.SCANodeFactory.createSCANode()

                contributions.add(new SCAContribution(location, location));
            }
            String composite = (composites != null && composites.length >= 1) ? composites[0] : null;
            if (!contributions.isEmpty()) {
                node =
                    factory.createSCANode(composite, contributions.toArray(new SCAContribution[contributions.size()]));
            } else {
                node = factory.createSCANodeFromClassLoader(composite, applicationClassLoader);
            }
        }
        client = (SCAClient)node;
View Full Code Here

Examples of org.apache.tuscany.sca.node.SCANodeFactory.createSCANode()

    private static SCANode node;

    @Before
    public void init() {
        SCANodeFactory factory = SCANodeFactory.newInstance();
        node = factory.createSCANode("jmsuserprop/helloworld.composite",
                                     new SCAContribution("test", "./target/classes"));

        node.start();
    }
View Full Code Here

Examples of org.apache.tuscany.sca.node.SCANodeFactory.createSCANode()

    private static SCANode node;

    @Before
    public void init() {
        SCANodeFactory factory = SCANodeFactory.newInstance();
        node = factory.createSCANode("jmsdefault/helloworld.composite",
                                     new SCAContribution("test", "./target/classes"));

        node.start();
    }
View Full Code Here

Examples of org.apache.tuscany.sca.node.SCANodeFactory.createSCANode()

                contributions[i] = new SCAContribution(contributionsToDeploy.get(i).getURI(), contributionsToDeploy.get(i).getLocation());
            }
                  
            SCANodeFactory nodeFactory = SCANodeFactory.newInstance();
           
            SCANode node = nodeFactory.createSCANode(chosenDeployableLocation, contributions);
           
            node.start();
            SCAClient client = (SCAClient)node;
            CalculatorService calculatorService =
                client.getService(CalculatorService.class, "CalculatorServiceComponentA");
View Full Code Here

Examples of org.apache.tuscany.sca.node.SCANodeFactory.createSCANode()

            // Create SCA contributions
            for (String location : contributionURLs) {
                contributions.add(new SCAContribution(location, location));
            }
            node =
                factory.createSCANode("http://tuscany.apache.org/xmlns/sca/1.0/aggregated", content, contributions
                    .toArray(new SCAContribution[contributions.size()]));
        } else {
            for (String location : contributionURLs) {
                contributions.add(new SCAContribution(location, location));
            }
View Full Code Here

Examples of org.apache.tuscany.sca.node.SCANodeFactory.createSCANode()

                contributions.add(new SCAContribution(location, location));
            }
            String composite = (composites != null && composites.length >= 1) ? composites[0] : null;
            if (!contributions.isEmpty()) {
                node =
                    factory.createSCANode(composite, contributions.toArray(new SCAContribution[contributions.size()]));
            } else {
                node = factory.createSCANodeFromClassLoader(composite, applicationClassLoader);
            }
        }
        client = (SCAClient)node;
View Full Code Here

Examples of org.apache.tuscany.sca.node.SCANodeFactory.createSCANode()

                   
                }
            }
           
            SCANodeFactory factory = SCANodeFactory.newInstance();
            SCANode node = factory.createSCANode(null,
                                                 new SCAContribution("contrib2wsdl", contributionPath));
           
            // Print out all generated WSDL
            // today this means finding all services in the deployment composites
            // that have a binding.ws configured
View Full Code Here

Examples of org.apache.tuscany.sca.node.SCANodeFactory.createSCANode()

    @Override
    protected void setUp() throws Exception {
        try {
            SCANodeFactory nodeFactory = SCANodeFactory.newInstance();
            node = nodeFactory.createSCANode(new File("src/main/resources/DuplicateReferenceName/Calculator.composite").toURL().toString(),
                                 new SCAContribution("TestContribution",
                                                     new File("src/main/resources/DuplicateReferenceName").toURL().toString()));
            node.start();
            calculatorService = ((SCAClient)node).getService(CalculatorService.class, "CalculatorServiceComponent");
        } catch (ServiceRuntimeException ex) {
View Full Code Here

Examples of org.apache.tuscany.sca.node.SCANodeFactory.createSCANode()

    private static SCANode node;

    @Before
    public void init() {
        SCANodeFactory factory = SCANodeFactory.newInstance();
        node = factory.createSCANode("jmsdefault/helloworld.composite",
                                     new SCAContribution("test", "./target/classes"));

        node.start();
    }
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.