Package org.apache.tuscany.sca.node

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


           
            ClassLoader cl = DomainInMemoryTestCase.class.getClassLoader();
           
            SCANodeFactory nodeFactory = SCANodeFactory.newInstance();
           
            nodeA = nodeFactory.createSCANode("http://localhost:8085/nodeA", "http://localhost:9999");
            nodeA.addContribution("nodeA", cl.getResource("nodeA/"));
            nodeA.addToDomainLevelComposite(new QName("http://sample", "CalculatorA"));

           
            nodeB = nodeFactory.createSCANode("http://localhost:8086/nodeB", "http://localhost:9999");
View Full Code Here


            nodeA = nodeFactory.createSCANode("http://localhost:8085/nodeA", "http://localhost:9999");
            nodeA.addContribution("nodeA", cl.getResource("nodeA/"));
            nodeA.addToDomainLevelComposite(new QName("http://sample", "CalculatorA"));

           
            nodeB = nodeFactory.createSCANode("http://localhost:8086/nodeB", "http://localhost:9999");
            nodeB.addContribution("nodeB", cl.getResource("nodeB/"));
            nodeB.addToDomainLevelComposite(new QName("http://sample", "CalculatorB"));

           
            nodeC = nodeFactory.createSCANode("http://localhost:8087/nodeC", "http://localhost:9999");
View Full Code Here

            nodeB = nodeFactory.createSCANode("http://localhost:8086/nodeB", "http://localhost:9999");
            nodeB.addContribution("nodeB", cl.getResource("nodeB/"));
            nodeB.addToDomainLevelComposite(new QName("http://sample", "CalculatorB"));

           
            nodeC = nodeFactory.createSCANode("http://localhost:8087/nodeC", "http://localhost:9999");
            nodeC.addContribution("nodeC", cl.getResource("nodeC/"));
            nodeC.addToDomainLevelComposite(new QName("http://sample", "CalculatorC"));

           
            SCADomainFinder domainFinder = SCADomainFinder.newInstance();
View Full Code Here

       
        classLoader = new AddableURLClassLoader(new URL[] {}, Thread.currentThread().getContextClassLoader());
        Thread.currentThread().setContextClassLoader(classLoader);
       
        SCANodeFactory nodeFactory = SCANodeFactory.newInstance();
        node = nodeFactory.createSCANode(nodeName, domainName);
        domain = node.getDomain();

        existingContributions = new HashMap<URL, Long>();
        URL[] contributions = getContributionJarURLs(repository);
        for (URL contribution : contributions) {
View Full Code Here

        try {
            String compositeFile = args[0];
            System.out.println("Composite: " + compositeFile);
           
            SCANodeFactory nodeFactory = SCANodeFactory.newInstance();
            node = nodeFactory.createSCANode(null, "http://localhost:9999");

            ClassLoader classLoader = SCANodeLauncher.class.getClassLoader();
            URL contribution = SCAContributionUtil.findContributionFromResource(classLoader, compositeFile);
            node.addContribution(compositeFile, contribution);
           
View Full Code Here

           
            ClassLoader cl = DomainDrivenTestCase.class.getClassLoader();
           
            SCANodeFactory nodeFactory = SCANodeFactory.newInstance();
           
            nodeA = nodeFactory.createSCANode("http://localhost:8100/nodeA", "http://localhost:9999");          
            nodeB = nodeFactory.createSCANode("http://localhost:8200/nodeB", "http://localhost:9999");
            nodeC = nodeFactory.createSCANode("http://localhost:8300/nodeC", "http://localhost:9999");

            domain.addContribution("nodeA", cl.getResource("nodeA/"));
            domain.addContribution("nodeB", cl.getResource("nodeB/"));
View Full Code Here

            ClassLoader cl = DomainDrivenTestCase.class.getClassLoader();
           
            SCANodeFactory nodeFactory = SCANodeFactory.newInstance();
           
            nodeA = nodeFactory.createSCANode("http://localhost:8100/nodeA", "http://localhost:9999");          
            nodeB = nodeFactory.createSCANode("http://localhost:8200/nodeB", "http://localhost:9999");
            nodeC = nodeFactory.createSCANode("http://localhost:8300/nodeC", "http://localhost:9999");

            domain.addContribution("nodeA", cl.getResource("nodeA/"));
            domain.addContribution("nodeB", cl.getResource("nodeB/"));
            domain.addContribution("nodeC", cl.getResource("nodeC/"));
View Full Code Here

           
            SCANodeFactory nodeFactory = SCANodeFactory.newInstance();
           
            nodeA = nodeFactory.createSCANode("http://localhost:8100/nodeA", "http://localhost:9999");          
            nodeB = nodeFactory.createSCANode("http://localhost:8200/nodeB", "http://localhost:9999");
            nodeC = nodeFactory.createSCANode("http://localhost:8300/nodeC", "http://localhost:9999");

            domain.addContribution("nodeA", cl.getResource("nodeA/"));
            domain.addContribution("nodeB", cl.getResource("nodeB/"));
            domain.addContribution("nodeC", cl.getResource("nodeC/"));
           
View Full Code Here

            ClassLoader cl = NodeDrivenTestCase.class.getClassLoader();
           
            SCANodeFactory nodeFactory = SCANodeFactory.newInstance();
           
            // sca-contribution.xml test
            nodeA = nodeFactory.createSCANode("http://localhost:8100/nodeA", "http://localhost:9999");
            nodeA.addContribution("nodeA", cl.getResource("nodeA/"));
            nodeA.addToDomainLevelComposite(new QName("http://sample", "CalculatorA"));

            // sca-deployables test
            nodeB = nodeFactory.createSCANode("http://localhost:8200/nodeB", "http://localhost:9999");
View Full Code Here

            nodeA = nodeFactory.createSCANode("http://localhost:8100/nodeA", "http://localhost:9999");
            nodeA.addContribution("nodeA", cl.getResource("nodeA/"));
            nodeA.addToDomainLevelComposite(new QName("http://sample", "CalculatorA"));

            // sca-deployables test
            nodeB = nodeFactory.createSCANode("http://localhost:8200/nodeB", "http://localhost:9999");
            nodeB.addContribution("nodeB", cl.getResource("nodeB/"));
            nodeB.addToDomainLevelComposite(new QName("http://sample", "CalculatorB"));

            // sca-deployables test
            nodeC = nodeFactory.createSCANode("http://localhost:8300/nodeC", "http://localhost:9999");
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.