Package org.apache.tuscany.sca.node

Examples of org.apache.tuscany.sca.node.Contribution


    }

    @Override
    protected void setUp() throws Exception {
        String contribution = ContributionLocationHelper.getContributionLocation(getClass());
        node = NodeFactory.newInstance().createNode("org/apache/tuscany/sca/binding/ws/axis2/itests/questionmark-wsdl.composite", new Contribution("test", contribution));
        node.start();
    }
View Full Code Here


    }

    @Override
    protected void setUp() throws Exception {
        String contribution = ContributionLocationHelper.getContributionLocation(getClass());
        node = NodeFactory.newInstance().createNode("org/apache/tuscany/sca/binding/ws/axis2/itests/helloworld-prec.composite", new Contribution("test", contribution));
        node.start();
        helloWorld = node.getService(HelloWorldOM.class, "HelloWorldComponent");
    }
View Full Code Here

     */
    public NodeImplementationLauncherBootstrap(String compositeURI, String[] uris, String[] locations) throws Exception {
        NodeFactory nodeFactory = NodeFactory.newInstance();
        Contribution[] contributions = new Contribution[uris.length];
        for (int i = 0; i < uris.length; i++) {
            contributions[i] = new Contribution(uris[i], locations[i]);
        }
        node = new NodeFacade(nodeFactory.createNode(compositeURI, contributions));
    }
View Full Code Here

     */
    public NodeImplementationLauncherBootstrap(String compositeURI, String compositeContent, String[] uris, String[] locations) throws Exception {
        NodeFactory nodeFactory = NodeFactory.newInstance();
        Contribution[] contributions = new Contribution[uris.length];
        for (int i = 0; i < uris.length; i++) {
            contributions[i] = new Contribution(uris[i], locations[i]);
        }
        node = new NodeFacade(nodeFactory.createNode(compositeURI, compositeContent, contributions));
    }
View Full Code Here

            + " </composite>";

    @Test
    public void testNodeWithCompositeContent() {
        NodeFactory factory = new NodeFactoryImpl();
        Contribution contribution = new Contribution("c1", new File("target/test-classes").toURI().toString());
        String compositeURI = "HelloWorld.composite";
        Node node = factory.createNode(compositeURI, composite, contribution);
        testNode2(node);
    }
View Full Code Here

    private static Node createNode(final ServletContext servletContext) throws ServletException {
        String contextPath = initContextPath(servletContext);
        String contributionRoot = getContributionRoot(servletContext);
        NodeFactory factory = NodeFactory.newInstance();
        String webComposite = getWebComposite(servletContext);
        Node node = factory.createNode(contextPath, webComposite, new Contribution(contributionRoot, contributionRoot));
        node.start();
        return node;
    }
View Full Code Here

        System.setProperty("java.naming.factory.initial", "org.apache.openejb.client.RemoteInitialContextFactory");
        System.setProperty("java.naming.provider.url", "ejbd://localhost:" + MOCK_PORT);
        System.setProperty("managed", "false");

        String contribution = ContributionLocationHelper.getContributionLocation(EJBReferenceTestCase.class);
        node = NodeFactory.newInstance().createNode("account/account.composite", new Contribution("account", contribution));
        node.start();

        // To capture the network traffic for the MockServer, uncomment the next line
        // new Thread(new SocketTracer(MOCK_PORT, OPENEJB_PORT)).start();
View Full Code Here

    @BeforeClass
    public static void init() throws Exception {
        try {
            String contribution = ContributionLocationHelper.getContributionLocation(CatalogServiceTestCase.class);
            node = NodeFactory.newInstance().createNode("store.composite", new Contribution("catalog", contribution));
            node.start();
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
View Full Code Here

    private static Node node;

    @BeforeClass
    public static void setUpBeforeClass() throws Exception {
        String location = ContributionLocationHelper.getContributionLocation("Calculator.composite");
        node = NodeFactory.newInstance().createNode("Calculator.composite", new Contribution("calculator", location));
        System.out.println("SCA Node API ClassLoader: " + node.getClass().getClassLoader());
        node.start();
    }
View Full Code Here

    private static Node node;

    @BeforeClass
    public static void init() throws Exception {
        String location = ROOT;
        node = NodeFactory.newInstance().createNode("InterfacesTest.composite", new Contribution("c1", location));
        node.start();
    }
View Full Code Here

TOP

Related Classes of org.apache.tuscany.sca.node.Contribution

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.