From 36072114b7e9e4fad507ec60443b5fc40d670d39 Mon Sep 17 00:00:00 2001 From: rfeng Date: Tue, 9 Feb 2010 21:46:04 +0000 Subject: Remove org.apache.tuscany.sca.node.Client and merge the methods into org.apache.tuscany.sca.node.Node git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@908245 13f79535-47bb-0310-9956-ffa450edef68 --- .../samples/calculator/src/main/java/calculator/CalculatorClient.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'sca-java-2.x/trunk/samples/calculator/src') diff --git a/sca-java-2.x/trunk/samples/calculator/src/main/java/calculator/CalculatorClient.java b/sca-java-2.x/trunk/samples/calculator/src/main/java/calculator/CalculatorClient.java index 24c279948b..53c793806e 100644 --- a/sca-java-2.x/trunk/samples/calculator/src/main/java/calculator/CalculatorClient.java +++ b/sca-java-2.x/trunk/samples/calculator/src/main/java/calculator/CalculatorClient.java @@ -19,7 +19,6 @@ package calculator; -import org.apache.tuscany.sca.node.Client; import org.apache.tuscany.sca.node.Node; import org.apache.tuscany.sca.node.NodeFactory; @@ -32,7 +31,7 @@ public class CalculatorClient { Node node = NodeFactory.newInstance().createNode((String)null, new String[] {"target/classes"}).start(); - CalculatorService calculatorService = ((Client)node).getService(CalculatorService.class, "CalculatorServiceComponent"); + CalculatorService calculatorService = node.getService(CalculatorService.class, "CalculatorServiceComponent"); // Calculate System.out.println("3 + 2=" + calculatorService.add(3, 2)); -- cgit v1.2.3