Package org.apache.tuscany.sca.node.impl

Examples of org.apache.tuscany.sca.node.impl.NodeImpl.start()


    public void testInterfaceWriteRead() throws Exception {
        String [] contributions = {"./target/classes"};
        NodeImpl node1 = (NodeImpl)NodeFactory.newInstance().createNode(URI.create("uri:default"),
                                                                        "org/apache/tuscany/sca/itest/interfaces/missmatch/distributed/MissmatchDistributedService.composite",
                                                                        contributions);
        node1.start();
       
        Component serviceComponent = node1.getDomainComposite().getComponents().get(0);
        Service service = serviceComponent.getServices().get(0);
       
        InterfaceContractProcessor processor = new InterfaceContractProcessor(node1.getExtensionPointRegistry());
View Full Code Here


       
        // read in WSDL
        String contributionLocation = "target/classes";
        NodeImpl node = (NodeImpl)NodeFactory.newInstance().createNode("org/apache/tuscany/sca/binding/ws/axis2/wsdl-serialize.composite",
                                                                       new Contribution("test", contributionLocation));
        node.start();
       
        try {           
           
            RuntimeEndpointImpl endpoint = (RuntimeEndpointImpl)node.getDomainComposite().getComponents().get(0).getServices().get(0).getEndpoints().get(0);
            WSDLInterface wsdlInterface = (WSDLInterface)endpoint.getBindingInterfaceContract().getInterface();
View Full Code Here

                }
                configuration.setURI(contribution.getURI());
                // configuration.getExtensions().add(bundle);
                // FIXME: Configure the domain and node URI
                NodeImpl node = new NodeImpl(nodeFactory, configuration, Collections.singletonList(contribution));
                node.start();

                Component component = contribution.getDeployables().get(0).getComponents().get(0);
                ComponentReference componentReference = component.getReferences().get(0);
                ServiceReference serviceReference =
                    context.getServiceReference("(sca.reference=" + component.getURI()
View Full Code Here

                // create the org.osgi.sca.config.xml property 
                service.getExtensions().add(createSCAConfigXMLProperty(reference, properties, service));

                // FIXME: Configure the domain and node URI
                NodeImpl node = new NodeImpl(nodeFactory, configuration, Collections.singletonList(contribution));
                node.start();
                List<ExportRegistration> exportedServices = new ArrayList<ExportRegistration>();
                for (Endpoint endpoint : service.getEndpoints()) {
                    EndpointDescription endpointDescription = createEndpointDescription(context, endpoint);
                    synchronized (this) {
                        ExportReferenceImpl exportReference = exportReferences.get(endpointDescription);
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.