Package org.apache.tuscany.sca.topology

Examples of org.apache.tuscany.sca.topology.Scheme


        URL url = getClass().getResource("runtime.topology");
        Runtime runtime = (Runtime)documentProcessor.read(null, null, url);
        assertNotNull(runtime);
       
        Node node0 = runtime.getNodes().get(0);
        Scheme scheme0 = node0.getSchemes("nodomain").get(0);
        assertEquals(scheme0.getName(), "http");
       
        Node node1 = runtime.getNodes().get(1);
        Component component0 = node1.getComponents("domainA").get(0);
        assertEquals(component0.getName(), "AddServiceComponent");
    }
View Full Code Here


                        } else if (DOMAIN_QNAME.equals(name)) {
                            // Read a <domain>
                            domainName = getString(reader, NAME);                           
                        } else if (SCHEME_QNAME.equals(name)) {
                            // Read a <scheme>
                            Scheme scheme = topologyFactory.createScheme();
                            scheme.setName(getString(reader, NAME));
                            scheme.setBaseURL(getString(reader, BASE_URL));
                           
                            scheme.setDomainName(domainName);
                           
                            // Add scheme to the node
                            node.getSchemes(domainName).add(scheme);
                        } else if (COMPONENT_QNAME.equals(name)) {
                            // Read a <component>
View Full Code Here

                    } else if (DOMAIN_QNAME.equals(name)) {
                        // Read a <domain>
                        domainName = getString(reader, NAME);                           
                    } else if (SCHEME_QNAME.equals(name)) {
                        // Read a <scheme>
                        Scheme scheme = topologyFactory.createScheme();
                        scheme.setName(getString(reader, NAME));
                        scheme.setBaseURL(getString(reader, BASE_URL));
                       
                        scheme.setDomainName(domainName);
                       
                        // Add scheme to the node
                        node.getSchemes(domainName).add(scheme);
                    } else if (COMPONENT_QNAME.equals(name)) {
                        // Read a <component>
View Full Code Here

TOP

Related Classes of org.apache.tuscany.sca.topology.Scheme

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.