diff options
author | slaws <slaws@13f79535-47bb-0310-9956-ffa450edef68> | 2009-08-07 13:38:53 +0000 |
---|---|---|
committer | slaws <slaws@13f79535-47bb-0310-9956-ffa450edef68> | 2009-08-07 13:38:53 +0000 |
commit | 453d04c71b72f1b4ebb61b11d2badf5557ab5e0a (patch) | |
tree | b55f684094eeda550e6e6d02abb3f7137a6519ae /branches/sca-java-1.5.1/samples/calculator-android/src/calculator/CalculatorClient.java | |
parent | b438d029c8542e15d061c8be90bf46e6edd8b2b6 (diff) |
Not included in release
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@801994 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'branches/sca-java-1.5.1/samples/calculator-android/src/calculator/CalculatorClient.java')
-rw-r--r-- | branches/sca-java-1.5.1/samples/calculator-android/src/calculator/CalculatorClient.java | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/branches/sca-java-1.5.1/samples/calculator-android/src/calculator/CalculatorClient.java b/branches/sca-java-1.5.1/samples/calculator-android/src/calculator/CalculatorClient.java deleted file mode 100644 index 3b977259e8..0000000000 --- a/branches/sca-java-1.5.1/samples/calculator-android/src/calculator/CalculatorClient.java +++ /dev/null @@ -1,30 +0,0 @@ -package calculator;
-
-import org.apache.tuscany.sca.host.embedded.SCADomain;
-
-
-
-/**
- * This client program shows how to create an SCA runtime, start it,
- * and locate and invoke a SCA component
- */
-public class CalculatorClient {
- public static void main(String[] args) throws Exception {
-
-
- SCADomain scaDomain = SCADomain.newInstance("Calculator.composite");
-
- CalculatorService calculatorService =
- scaDomain.getService(CalculatorService.class, "CalculatorServiceComponent");
-
- // Calculate
- System.out.println("3 + 2=" + calculatorService.add(3, 2));
- System.out.println("3 - 2=" + calculatorService.subtract(3, 2));
- System.out.println("3 * 2=" + calculatorService.multiply(3, 2));
- System.out.println("3 / 2=" + calculatorService.divide(3, 2));
-
- scaDomain.close();
-
- }
-
-}
|