Package org.apache.tuscany.sca.node

Examples of org.apache.tuscany.sca.node.NodeFactory.createNode()


            configuration.setURI("node2");
            configuration.addContribution("c1", "./target/classes");
            configuration.addDeploymentComposite("c1","CallBackReference.composite");
           
            //node2 = factory.newInstance().createNode("CallBackReference.composite", new Contribution("c1", "./target/classes"));
            node2 = factory.createNode(configuration);
            node2.start();
   
            aCallBackClient = node2.getService(CallBackBasicClient.class, "CallBackBasicClient");
        } catch (Exception ex){
            ex.printStackTrace();
View Full Code Here


*/
public class ComposerClient {

    public final static void main(String[] args) throws Exception {
      NodeFactory factory = NodeFactory.newInstance();
        Node node = factory.createNode(new File("src/main/resources/Client.composite").toURI().toURL().toString(),
                new Contribution("TestContribution", new File("src/main/resources/").toURI().toURL().toString()));
        node.start();
        Composer composer = node.getService(Composer.class, "ClientComponent/Composer");
        System.out.println(composer.Compose("ABC"));
        node.stop();
View Full Code Here

    public void setUp() throws Exception {
     
      final NodeFactory nf = NodeFactory.newInstance();
        String here = ASM_0002_Client.class.getProtectionDomain().getCodeSource().getLocation().toString();
        // Create the node using the pattern "name of composite file to start" / Contribution to use
        node = nf.createNode(this.composite, new Contribution("test", here));
       
        node.start();
    }

    @After
View Full Code Here

     */
    @BeforeClass
    public static void setUp() throws Exception {
        try {
      NodeFactory factory = NodeFactory.newInstance();
            node = factory.createNode(new File("src/main/resources/generics-service.composite").toURI().toURL().toString(),
                new Contribution("TestContribution", new File("src/main/resources/").toURI().toURL().toString()));
            node.start();
        } catch(Throwable e) {
            e.printStackTrace();
        }
View Full Code Here

     */
    @BeforeClass
    public static void setUp() throws Exception {
        try {
            NodeFactory factory = NodeFactory.newInstance();
            node = factory.createNode(new File("src/main/resources/doclitbarewsdl.composite").toURI().toURL().toString(),
                new Contribution("TestContribution", new File("src/main/resources/").toURI().toURL().toString()));
            node.start();
        } catch (Throwable e) {
            // @Ignore("TUSCANY-2398")
            e.printStackTrace();
View Full Code Here

    public void setUp() throws Exception {
     
      final NodeFactory nf = NodeFactory.newInstance();
        String here = ASM_0002_Client.class.getProtectionDomain().getCodeSource().getLocation().toString();
        // Create the node using the pattern "name of composite file to start" / Contribution to use
        node = nf.createNode(this.composite, new Contribution("test", here));
       
        node.start();
    }

    @After
View Full Code Here

    public void setUp() throws Exception {
     
      final NodeFactory nf = NodeFactory.newInstance();
        String here = ASM_0002_Client.class.getProtectionDomain().getCodeSource().getLocation().toString();
        // Create the node using the pattern "name of composite file to start" / Contribution to use
        node = nf.createNode(this.composite, new Contribution("test", here));
       
        node.start();
    }

    @After
View Full Code Here

     */
    @BeforeClass
    public static void setUp() throws Exception {
        try {
            NodeFactory factory = NodeFactory.newInstance();
            node = factory.createNode(new File("src/main/resources/helloservice.composite").toURI().toURL().toString(),
                new Contribution("TestContribution", new File("src/main/resources/").toURI().toURL().toString()));
            node.start();
        } catch(Throwable e) {
            e.printStackTrace();
        }
View Full Code Here

    @Before
    public void setUp() throws Exception {
        try {
          NodeFactory factory = NodeFactory.newInstance();
            node = factory.createNode(new File("src/main/resources/policy/PolicyOuterComposite.composite").toURI().toURL().toString(),
                    new Contribution("TestContribution", new File("src/main/resources/policy/").toURI().toURL().toString()));
            node.start();
            targetClient = node.getService(Target.class, "TargetClientComponent");
        } catch(Exception ex) {
            System.out.println(ex.toString());
View Full Code Here

    @Before
    public void setUp() throws Exception {
        try {
            NodeFactory factory = NodeFactory.newInstance();
            node = factory.createNode(new File("src/main/resources/bindingoverride/OuterComposite.composite").toURI().toURL().toString(),
                    new Contribution("TestContribution", new File("src/main/resources/bindingoverride/").toURI().toURL().toString()));
            node.start();
            targetClient = node.getService(Target.class, "OuterClientComponent");
        } catch(Exception ex) {
            System.out.println(ex.toString());
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.