Package org.apache.tuscany.sca.node

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


    private static SCANode node;

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

        node.start();
    }
View Full Code Here


    private static SCANode node;

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

        node.start();
    }
View Full Code Here

    private static SCANode node;

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

        node.start();
    }
View Full Code Here

    private static SCANode node;

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

        node.start();
    }
View Full Code Here

            // 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

                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

        try {
            System.out.println("Setting up domain");

           
            SCANodeFactory nodeFactory = SCANodeFactory.newInstance();
            nodeC = nodeFactory.createSCANode(new File("src/main/resources/nodeC/Calculator.composite").toURL().toString(),
                new SCAContribution("NodeC",
                                    new File("src/main/resources/nodeC").toURL().toString()));
            nodeB = nodeFactory.createSCANode(new File("src/main/resources/nodeB/Calculator.composite").toURL().toString(),
                new SCAContribution("NodeB",
                                    new File("src/main/resources/nodeB").toURL().toString()));
View Full Code Here

           
            SCANodeFactory nodeFactory = SCANodeFactory.newInstance();
            nodeC = nodeFactory.createSCANode(new File("src/main/resources/nodeC/Calculator.composite").toURL().toString(),
                new SCAContribution("NodeC",
                                    new File("src/main/resources/nodeC").toURL().toString()));
            nodeB = nodeFactory.createSCANode(new File("src/main/resources/nodeB/Calculator.composite").toURL().toString(),
                new SCAContribution("NodeB",
                                    new File("src/main/resources/nodeB").toURL().toString()));
            nodeA = nodeFactory.createSCANode(new File("src/main/resources/nodeA/Calculator.composite").toURL().toString(),
                new SCAContribution("NodeA",
                                    new File("src/main/resources/nodeA").toURL().toString()));
View Full Code Here

                new SCAContribution("NodeC",
                                    new File("src/main/resources/nodeC").toURL().toString()));
            nodeB = nodeFactory.createSCANode(new File("src/main/resources/nodeB/Calculator.composite").toURL().toString(),
                new SCAContribution("NodeB",
                                    new File("src/main/resources/nodeB").toURL().toString()));
            nodeA = nodeFactory.createSCANode(new File("src/main/resources/nodeA/Calculator.composite").toURL().toString(),
                new SCAContribution("NodeA",
                                    new File("src/main/resources/nodeA").toURL().toString()));

            nodeC.start();
            nodeB.start();
View Full Code Here

     * @see junit.framework.TestCase#setUp()
     */
    protected void setUp() throws Exception
    {
        SCANodeFactory nodeFactory = SCANodeFactory.newInstance();
        _scaDomain = nodeFactory.createSCANode("test.composite",
                                               new SCAContribution("crawler", "./target/classes"));
        assertNotNull(_scaDomain);
        _scaDomain.start();
        _controller = ((SCAClient)_scaDomain).getService(CrawlerController.class, "CrawlerControllerComponent");
        assertNotNull(_controller);
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.