From 453d04c71b72f1b4ebb61b11d2badf5557ab5e0a Mon Sep 17 00:00:00 2001 From: slaws Date: Fri, 7 Aug 2009 13:38:53 +0000 Subject: Not included in release git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@801994 13f79535-47bb-0310-9956-ffa450edef68 --- .../samples/calculator-android/.classpath | 26 --- .../samples/calculator-android/.project | 39 ---- .../.settings/org.eclipse.jdt.core.prefs | 5 - .../samples/calculator-android/AndroidManifest.xml | 15 -- .../calculator-android/META-INF/MANIFEST.MF | 2 - .../calculator-android/res/drawable/icon.png | Bin 3180 -> 0 bytes .../samples/calculator-android/res/layout/main.xml | 12 -- .../calculator-android/res/values/strings.xml | 5 - .../src/calculator/AddService.class | Bin 134 -> 0 bytes .../src/calculator/AddService.java | 11 - .../src/calculator/AddServiceImpl.class | Bin 1019 -> 0 bytes .../src/calculator/AddServiceImpl.java | 18 -- .../src/calculator/CalculatorBuilder.class | Bin 2314 -> 0 bytes .../src/calculator/CalculatorClient.class | Bin 461 -> 0 bytes .../src/calculator/CalculatorClient.java | 30 --- .../src/calculator/CalculatorService.class | Bin 203 -> 0 bytes .../src/calculator/CalculatorService.java | 18 -- .../src/calculator/CalculatorServiceImpl.class | Bin 1682 -> 0 bytes .../src/calculator/CalculatorServiceImpl.java | 54 ----- .../src/calculator/DivideService.class | Bin 143 -> 0 bytes .../src/calculator/DivideService.java | 11 - .../src/calculator/DivideServiceImpl.class | Bin 1037 -> 0 bytes .../src/calculator/DivideServiceImpl.java | 18 -- .../src/calculator/MultiplyService.class | Bin 149 -> 0 bytes .../src/calculator/MultiplyService.java | 11 - .../src/calculator/MultiplyServiceImpl.class | Bin 1050 -> 0 bytes .../src/calculator/MultiplyServiceImpl.java | 18 -- .../src/calculator/SubtractService.class | Bin 149 -> 0 bytes .../src/calculator/SubtractService.java | 11 - .../src/calculator/SubtractServiceImpl.class | Bin 1050 -> 0 bytes .../src/calculator/SubtractServiceImpl.java | 18 -- .../src/calculator/android/CalculatorClient.class | Bin 920 -> 0 bytes .../src/calculator/android/CalculatorClient.java | 233 --------------------- .../src/calculator/android/R$attr.class | Bin 340 -> 0 bytes .../src/calculator/android/R$drawable.class | Bin 400 -> 0 bytes .../src/calculator/android/R$layout.class | Bin 394 -> 0 bytes .../src/calculator/android/R$string.class | Bin 427 -> 0 bytes .../src/calculator/android/R.class | Bin 489 -> 0 bytes .../src/calculator/android/R.java | 23 -- 39 files changed, 578 deletions(-) delete mode 100644 branches/sca-java-1.5.1/samples/calculator-android/.classpath delete mode 100644 branches/sca-java-1.5.1/samples/calculator-android/.project delete mode 100644 branches/sca-java-1.5.1/samples/calculator-android/.settings/org.eclipse.jdt.core.prefs delete mode 100644 branches/sca-java-1.5.1/samples/calculator-android/AndroidManifest.xml delete mode 100644 branches/sca-java-1.5.1/samples/calculator-android/META-INF/MANIFEST.MF delete mode 100644 branches/sca-java-1.5.1/samples/calculator-android/res/drawable/icon.png delete mode 100644 branches/sca-java-1.5.1/samples/calculator-android/res/layout/main.xml delete mode 100644 branches/sca-java-1.5.1/samples/calculator-android/res/values/strings.xml delete mode 100644 branches/sca-java-1.5.1/samples/calculator-android/src/calculator/AddService.class delete mode 100644 branches/sca-java-1.5.1/samples/calculator-android/src/calculator/AddService.java delete mode 100644 branches/sca-java-1.5.1/samples/calculator-android/src/calculator/AddServiceImpl.class delete mode 100644 branches/sca-java-1.5.1/samples/calculator-android/src/calculator/AddServiceImpl.java delete mode 100644 branches/sca-java-1.5.1/samples/calculator-android/src/calculator/CalculatorBuilder.class delete mode 100644 branches/sca-java-1.5.1/samples/calculator-android/src/calculator/CalculatorClient.class delete mode 100644 branches/sca-java-1.5.1/samples/calculator-android/src/calculator/CalculatorClient.java delete mode 100644 branches/sca-java-1.5.1/samples/calculator-android/src/calculator/CalculatorService.class delete mode 100644 branches/sca-java-1.5.1/samples/calculator-android/src/calculator/CalculatorService.java delete mode 100644 branches/sca-java-1.5.1/samples/calculator-android/src/calculator/CalculatorServiceImpl.class delete mode 100644 branches/sca-java-1.5.1/samples/calculator-android/src/calculator/CalculatorServiceImpl.java delete mode 100644 branches/sca-java-1.5.1/samples/calculator-android/src/calculator/DivideService.class delete mode 100644 branches/sca-java-1.5.1/samples/calculator-android/src/calculator/DivideService.java delete mode 100644 branches/sca-java-1.5.1/samples/calculator-android/src/calculator/DivideServiceImpl.class delete mode 100644 branches/sca-java-1.5.1/samples/calculator-android/src/calculator/DivideServiceImpl.java delete mode 100644 branches/sca-java-1.5.1/samples/calculator-android/src/calculator/MultiplyService.class delete mode 100644 branches/sca-java-1.5.1/samples/calculator-android/src/calculator/MultiplyService.java delete mode 100644 branches/sca-java-1.5.1/samples/calculator-android/src/calculator/MultiplyServiceImpl.class delete mode 100644 branches/sca-java-1.5.1/samples/calculator-android/src/calculator/MultiplyServiceImpl.java delete mode 100644 branches/sca-java-1.5.1/samples/calculator-android/src/calculator/SubtractService.class delete mode 100644 branches/sca-java-1.5.1/samples/calculator-android/src/calculator/SubtractService.java delete mode 100644 branches/sca-java-1.5.1/samples/calculator-android/src/calculator/SubtractServiceImpl.class delete mode 100644 branches/sca-java-1.5.1/samples/calculator-android/src/calculator/SubtractServiceImpl.java delete mode 100644 branches/sca-java-1.5.1/samples/calculator-android/src/calculator/android/CalculatorClient.class delete mode 100644 branches/sca-java-1.5.1/samples/calculator-android/src/calculator/android/CalculatorClient.java delete mode 100644 branches/sca-java-1.5.1/samples/calculator-android/src/calculator/android/R$attr.class delete mode 100644 branches/sca-java-1.5.1/samples/calculator-android/src/calculator/android/R$drawable.class delete mode 100644 branches/sca-java-1.5.1/samples/calculator-android/src/calculator/android/R$layout.class delete mode 100644 branches/sca-java-1.5.1/samples/calculator-android/src/calculator/android/R$string.class delete mode 100644 branches/sca-java-1.5.1/samples/calculator-android/src/calculator/android/R.class delete mode 100644 branches/sca-java-1.5.1/samples/calculator-android/src/calculator/android/R.java (limited to 'branches/sca-java-1.5.1/samples') diff --git a/branches/sca-java-1.5.1/samples/calculator-android/.classpath b/branches/sca-java-1.5.1/samples/calculator-android/.classpath deleted file mode 100644 index 73c77ee74d..0000000000 --- a/branches/sca-java-1.5.1/samples/calculator-android/.classpath +++ /dev/null @@ -1,26 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/branches/sca-java-1.5.1/samples/calculator-android/.project b/branches/sca-java-1.5.1/samples/calculator-android/.project deleted file mode 100644 index b0a16117c8..0000000000 --- a/branches/sca-java-1.5.1/samples/calculator-android/.project +++ /dev/null @@ -1,39 +0,0 @@ - - - calculator-android - - - tuscany-assembly - tuscany-definitions - tuscany-extensibility - tuscany-interface - tuscany-monitor - tuscany-policy - - - - com.android.ide.eclipse.adt.ResourceManagerBuilder - - - - - com.android.ide.eclipse.adt.PreCompilerBuilder - - - - - org.eclipse.jdt.core.javabuilder - - - - - com.android.ide.eclipse.adt.ApkBuilder - - - - - - com.android.ide.eclipse.adt.AndroidNature - org.eclipse.jdt.core.javanature - - diff --git a/branches/sca-java-1.5.1/samples/calculator-android/.settings/org.eclipse.jdt.core.prefs b/branches/sca-java-1.5.1/samples/calculator-android/.settings/org.eclipse.jdt.core.prefs deleted file mode 100644 index 4077c7b7f0..0000000000 --- a/branches/sca-java-1.5.1/samples/calculator-android/.settings/org.eclipse.jdt.core.prefs +++ /dev/null @@ -1,5 +0,0 @@ -#Mon Nov 24 19:53:10 PST 2008 -eclipse.preferences.version=1 -org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5 -org.eclipse.jdt.core.compiler.compliance=1.5 -org.eclipse.jdt.core.compiler.source=1.5 diff --git a/branches/sca-java-1.5.1/samples/calculator-android/AndroidManifest.xml b/branches/sca-java-1.5.1/samples/calculator-android/AndroidManifest.xml deleted file mode 100644 index ad6daf347e..0000000000 --- a/branches/sca-java-1.5.1/samples/calculator-android/AndroidManifest.xml +++ /dev/null @@ -1,15 +0,0 @@ - - - - - - - - - - - \ No newline at end of file diff --git a/branches/sca-java-1.5.1/samples/calculator-android/META-INF/MANIFEST.MF b/branches/sca-java-1.5.1/samples/calculator-android/META-INF/MANIFEST.MF deleted file mode 100644 index 58630c02ef..0000000000 --- a/branches/sca-java-1.5.1/samples/calculator-android/META-INF/MANIFEST.MF +++ /dev/null @@ -1,2 +0,0 @@ -Manifest-Version: 1.0 - diff --git a/branches/sca-java-1.5.1/samples/calculator-android/res/drawable/icon.png b/branches/sca-java-1.5.1/samples/calculator-android/res/drawable/icon.png deleted file mode 100644 index 75024841d3..0000000000 Binary files a/branches/sca-java-1.5.1/samples/calculator-android/res/drawable/icon.png and /dev/null differ diff --git a/branches/sca-java-1.5.1/samples/calculator-android/res/layout/main.xml b/branches/sca-java-1.5.1/samples/calculator-android/res/layout/main.xml deleted file mode 100644 index 3a5f117d3c..0000000000 --- a/branches/sca-java-1.5.1/samples/calculator-android/res/layout/main.xml +++ /dev/null @@ -1,12 +0,0 @@ - - - - diff --git a/branches/sca-java-1.5.1/samples/calculator-android/res/values/strings.xml b/branches/sca-java-1.5.1/samples/calculator-android/res/values/strings.xml deleted file mode 100644 index 71052e74b8..0000000000 --- a/branches/sca-java-1.5.1/samples/calculator-android/res/values/strings.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - Hello World, CalculatorClient - Calculator - diff --git a/branches/sca-java-1.5.1/samples/calculator-android/src/calculator/AddService.class b/branches/sca-java-1.5.1/samples/calculator-android/src/calculator/AddService.class deleted file mode 100644 index 8a5ed25f9f..0000000000 Binary files a/branches/sca-java-1.5.1/samples/calculator-android/src/calculator/AddService.class and /dev/null differ diff --git a/branches/sca-java-1.5.1/samples/calculator-android/src/calculator/AddService.java b/branches/sca-java-1.5.1/samples/calculator-android/src/calculator/AddService.java deleted file mode 100644 index 21c6789632..0000000000 --- a/branches/sca-java-1.5.1/samples/calculator-android/src/calculator/AddService.java +++ /dev/null @@ -1,11 +0,0 @@ -package calculator; - - -/** - * The Add service interface - */ -public interface AddService { - - double add(double n1, double n2); - -} diff --git a/branches/sca-java-1.5.1/samples/calculator-android/src/calculator/AddServiceImpl.class b/branches/sca-java-1.5.1/samples/calculator-android/src/calculator/AddServiceImpl.class deleted file mode 100644 index c6fd83f6a1..0000000000 Binary files a/branches/sca-java-1.5.1/samples/calculator-android/src/calculator/AddServiceImpl.class and /dev/null differ diff --git a/branches/sca-java-1.5.1/samples/calculator-android/src/calculator/AddServiceImpl.java b/branches/sca-java-1.5.1/samples/calculator-android/src/calculator/AddServiceImpl.java deleted file mode 100644 index 6181a1c651..0000000000 --- a/branches/sca-java-1.5.1/samples/calculator-android/src/calculator/AddServiceImpl.java +++ /dev/null @@ -1,18 +0,0 @@ -package calculator; - - -import java.util.logging.Level; -import java.util.logging.Logger; - -/** - * An implementation of the Add service - */ -public class AddServiceImpl implements AddService { - - public double add(double n1, double n2) { - Logger logger = Logger.getLogger("calculator"); - logger.log(Level.FINEST, "Adding " + n1 + " and " + n2); - return n1 + n2; - } - -} diff --git a/branches/sca-java-1.5.1/samples/calculator-android/src/calculator/CalculatorBuilder.class b/branches/sca-java-1.5.1/samples/calculator-android/src/calculator/CalculatorBuilder.class deleted file mode 100644 index b4466a3017..0000000000 Binary files a/branches/sca-java-1.5.1/samples/calculator-android/src/calculator/CalculatorBuilder.class and /dev/null differ diff --git a/branches/sca-java-1.5.1/samples/calculator-android/src/calculator/CalculatorClient.class b/branches/sca-java-1.5.1/samples/calculator-android/src/calculator/CalculatorClient.class deleted file mode 100644 index aaf9e9710f..0000000000 Binary files a/branches/sca-java-1.5.1/samples/calculator-android/src/calculator/CalculatorClient.class and /dev/null differ 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(); - - } - -} diff --git a/branches/sca-java-1.5.1/samples/calculator-android/src/calculator/CalculatorService.class b/branches/sca-java-1.5.1/samples/calculator-android/src/calculator/CalculatorService.class deleted file mode 100644 index c3cc2911e9..0000000000 Binary files a/branches/sca-java-1.5.1/samples/calculator-android/src/calculator/CalculatorService.class and /dev/null differ diff --git a/branches/sca-java-1.5.1/samples/calculator-android/src/calculator/CalculatorService.java b/branches/sca-java-1.5.1/samples/calculator-android/src/calculator/CalculatorService.java deleted file mode 100644 index 862d7b892d..0000000000 --- a/branches/sca-java-1.5.1/samples/calculator-android/src/calculator/CalculatorService.java +++ /dev/null @@ -1,18 +0,0 @@ -package calculator; - - - -/** - * The Calculator service interface. - */ -public interface CalculatorService { - - double add(double n1, double n2); - - double subtract(double n1, double n2); - - double multiply(double n1, double n2); - - double divide(double n1, double n2); - -} diff --git a/branches/sca-java-1.5.1/samples/calculator-android/src/calculator/CalculatorServiceImpl.class b/branches/sca-java-1.5.1/samples/calculator-android/src/calculator/CalculatorServiceImpl.class deleted file mode 100644 index 8e0f206119..0000000000 Binary files a/branches/sca-java-1.5.1/samples/calculator-android/src/calculator/CalculatorServiceImpl.class and /dev/null differ diff --git a/branches/sca-java-1.5.1/samples/calculator-android/src/calculator/CalculatorServiceImpl.java b/branches/sca-java-1.5.1/samples/calculator-android/src/calculator/CalculatorServiceImpl.java deleted file mode 100644 index 2c88b5319e..0000000000 --- a/branches/sca-java-1.5.1/samples/calculator-android/src/calculator/CalculatorServiceImpl.java +++ /dev/null @@ -1,54 +0,0 @@ -package calculator; - - -//import org.osoa.sca.annotations.Reference; - - -/** - * An implementation of the Calculator service. - */ -public class CalculatorServiceImpl implements CalculatorService { - - private AddService addService; - private SubtractService subtractService; - private MultiplyService multiplyService; - private DivideService divideService; - - - //@Reference - public void setAddService(AddService addService) { - this.addService = addService; - } - - //@Reference - public void setSubtractService(SubtractService subtractService) { - this.subtractService = subtractService; - } - - //@Reference - public void setDivideService(DivideService divideService) { - this.divideService = divideService; - } - - //@Reference - public void setMultiplyService(MultiplyService multiplyService) { - this.multiplyService = multiplyService; - } - - public double add(double n1, double n2) { - return addService.add(n1, n2); - } - - public double subtract(double n1, double n2) { - return subtractService.subtract(n1, n2); - } - - public double multiply(double n1, double n2) { - return multiplyService.multiply(n1, n2); - } - - public double divide(double n1, double n2) { - return divideService.divide(n1, n2); - } - -} diff --git a/branches/sca-java-1.5.1/samples/calculator-android/src/calculator/DivideService.class b/branches/sca-java-1.5.1/samples/calculator-android/src/calculator/DivideService.class deleted file mode 100644 index 8f056b16b6..0000000000 Binary files a/branches/sca-java-1.5.1/samples/calculator-android/src/calculator/DivideService.class and /dev/null differ diff --git a/branches/sca-java-1.5.1/samples/calculator-android/src/calculator/DivideService.java b/branches/sca-java-1.5.1/samples/calculator-android/src/calculator/DivideService.java deleted file mode 100644 index 8f544632dc..0000000000 --- a/branches/sca-java-1.5.1/samples/calculator-android/src/calculator/DivideService.java +++ /dev/null @@ -1,11 +0,0 @@ -package calculator; - - -/** - * The divide service interface - */ -public interface DivideService { - - double divide(double n1, double n2); - -} diff --git a/branches/sca-java-1.5.1/samples/calculator-android/src/calculator/DivideServiceImpl.class b/branches/sca-java-1.5.1/samples/calculator-android/src/calculator/DivideServiceImpl.class deleted file mode 100644 index 09cae06d9c..0000000000 Binary files a/branches/sca-java-1.5.1/samples/calculator-android/src/calculator/DivideServiceImpl.class and /dev/null differ diff --git a/branches/sca-java-1.5.1/samples/calculator-android/src/calculator/DivideServiceImpl.java b/branches/sca-java-1.5.1/samples/calculator-android/src/calculator/DivideServiceImpl.java deleted file mode 100644 index 5dfae77222..0000000000 --- a/branches/sca-java-1.5.1/samples/calculator-android/src/calculator/DivideServiceImpl.java +++ /dev/null @@ -1,18 +0,0 @@ -package calculator; - - -import java.util.logging.Level; -import java.util.logging.Logger; - -/** - * An implementation of the Divide service. - */ -public class DivideServiceImpl implements DivideService { - - public double divide(double n1, double n2) { - Logger logger = Logger.getLogger("calculator"); - logger.log(Level.FINEST, "Dividing " + n1 + " with " + n2); - return n1 / n2; - } - -} diff --git a/branches/sca-java-1.5.1/samples/calculator-android/src/calculator/MultiplyService.class b/branches/sca-java-1.5.1/samples/calculator-android/src/calculator/MultiplyService.class deleted file mode 100644 index 6542db7083..0000000000 Binary files a/branches/sca-java-1.5.1/samples/calculator-android/src/calculator/MultiplyService.class and /dev/null differ diff --git a/branches/sca-java-1.5.1/samples/calculator-android/src/calculator/MultiplyService.java b/branches/sca-java-1.5.1/samples/calculator-android/src/calculator/MultiplyService.java deleted file mode 100644 index f7f4ee77b5..0000000000 --- a/branches/sca-java-1.5.1/samples/calculator-android/src/calculator/MultiplyService.java +++ /dev/null @@ -1,11 +0,0 @@ -package calculator; - - -/** - * The interface for the multiply service - */ -public interface MultiplyService { - - double multiply(double n1, double n2); - -} diff --git a/branches/sca-java-1.5.1/samples/calculator-android/src/calculator/MultiplyServiceImpl.class b/branches/sca-java-1.5.1/samples/calculator-android/src/calculator/MultiplyServiceImpl.class deleted file mode 100644 index 0e69e7ad2d..0000000000 Binary files a/branches/sca-java-1.5.1/samples/calculator-android/src/calculator/MultiplyServiceImpl.class and /dev/null differ diff --git a/branches/sca-java-1.5.1/samples/calculator-android/src/calculator/MultiplyServiceImpl.java b/branches/sca-java-1.5.1/samples/calculator-android/src/calculator/MultiplyServiceImpl.java deleted file mode 100644 index 3142f86a58..0000000000 --- a/branches/sca-java-1.5.1/samples/calculator-android/src/calculator/MultiplyServiceImpl.java +++ /dev/null @@ -1,18 +0,0 @@ -package calculator; - - -import java.util.logging.Level; -import java.util.logging.Logger; - -/** - * An implementation of the Multiply service. - */ -public class MultiplyServiceImpl implements MultiplyService { - - public double multiply(double n1, double n2) { - Logger logger = Logger.getLogger("calculator"); - logger.log(Level.FINEST, "Multiplying " + n1 + " with " + n2); - return n1 * n2; - } - -} diff --git a/branches/sca-java-1.5.1/samples/calculator-android/src/calculator/SubtractService.class b/branches/sca-java-1.5.1/samples/calculator-android/src/calculator/SubtractService.class deleted file mode 100644 index 84c741e301..0000000000 Binary files a/branches/sca-java-1.5.1/samples/calculator-android/src/calculator/SubtractService.class and /dev/null differ diff --git a/branches/sca-java-1.5.1/samples/calculator-android/src/calculator/SubtractService.java b/branches/sca-java-1.5.1/samples/calculator-android/src/calculator/SubtractService.java deleted file mode 100644 index 2349febb0f..0000000000 --- a/branches/sca-java-1.5.1/samples/calculator-android/src/calculator/SubtractService.java +++ /dev/null @@ -1,11 +0,0 @@ -package calculator; - - -/** - * The interface for the multiply service - */ -public interface SubtractService { - - double subtract(double n1, double n2); - -} diff --git a/branches/sca-java-1.5.1/samples/calculator-android/src/calculator/SubtractServiceImpl.class b/branches/sca-java-1.5.1/samples/calculator-android/src/calculator/SubtractServiceImpl.class deleted file mode 100644 index 7b1aeab811..0000000000 Binary files a/branches/sca-java-1.5.1/samples/calculator-android/src/calculator/SubtractServiceImpl.class and /dev/null differ diff --git a/branches/sca-java-1.5.1/samples/calculator-android/src/calculator/SubtractServiceImpl.java b/branches/sca-java-1.5.1/samples/calculator-android/src/calculator/SubtractServiceImpl.java deleted file mode 100644 index ec55f4f07d..0000000000 --- a/branches/sca-java-1.5.1/samples/calculator-android/src/calculator/SubtractServiceImpl.java +++ /dev/null @@ -1,18 +0,0 @@ -package calculator; - - -import java.util.logging.Level; -import java.util.logging.Logger; - -/** - * An implementation of the subtract service. - */ -public class SubtractServiceImpl implements SubtractService { - - public double subtract(double n1, double n2) { - Logger logger = Logger.getLogger("calculator"); - logger.log(Level.FINEST, "Subtracting " + n1 + " from " + n2); - return n1 - n2; - } - -} diff --git a/branches/sca-java-1.5.1/samples/calculator-android/src/calculator/android/CalculatorClient.class b/branches/sca-java-1.5.1/samples/calculator-android/src/calculator/android/CalculatorClient.class deleted file mode 100644 index 20b588f972..0000000000 Binary files a/branches/sca-java-1.5.1/samples/calculator-android/src/calculator/android/CalculatorClient.class and /dev/null differ diff --git a/branches/sca-java-1.5.1/samples/calculator-android/src/calculator/android/CalculatorClient.java b/branches/sca-java-1.5.1/samples/calculator-android/src/calculator/android/CalculatorClient.java deleted file mode 100644 index 9e5c782447..0000000000 --- a/branches/sca-java-1.5.1/samples/calculator-android/src/calculator/android/CalculatorClient.java +++ /dev/null @@ -1,233 +0,0 @@ -package calculator.android; - -import java.io.FileDescriptor; -import java.net.InetAddress; -import java.net.URL; -import java.security.Permission; - -import org.apache.tuscany.sca.contribution.Contribution; -import org.apache.tuscany.sca.contribution.service.ContributionService; -import org.apache.tuscany.sca.host.embedded.SCADomain; -import org.apache.tuscany.sca.host.embedded.impl.EmbeddedSCADomain; - -import android.app.Activity; -import android.os.Bundle; -import android.widget.TextView; -import calculator.CalculatorService; - -public class CalculatorClient extends Activity { - private EmbeddedSCADomain domain; - private CalculatorService calculatorService; - - /** Called when the activity is first created. */ - @Override - public void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - - String calculationResult = "Error !"; - try { - System.setSecurityManager(new SecurityManager() { - @Override - public void checkPermission(Permission permission) { - - } - - @Override - public void checkAccept(String host, int port) { - - } - - @Override - public void checkAccess(Thread thread) { - // TODO Auto-generated method stub - - } - @Override - public void checkAccess(ThreadGroup group) { - - } - - @Override - public void checkAwtEventQueueAccess() { - // TODO Auto-generated method stub - - } - @Override - public void checkConnect(String host, int port) { - - } - @Override - public void checkConnect(String host, int port, Object context) { - - } - @Override - public void checkCreateClassLoader() { - // TODO Auto-generated method stub - - } - @Override - public void checkDelete(String file) { - - } - @Override - public void checkExec(String cmd) { - // TODO Auto-generated method stub - - } - @Override - public void checkExit(int status) { - - } - @Override - public void checkLink(String libName) { - // TODO Auto-generated method stub - - } - @Override - public void checkListen(int port) { - // TODO Auto-generated method stub - - } - @Override - public void checkMemberAccess(Class cls, int type) { - // TODO Auto-generated method stub - - } - @Override - public void checkMulticast(InetAddress maddr) { - // TODO Auto-generated method stub - - } - @Override - public void checkMulticast(InetAddress maddr, byte ttl) { - // TODO Auto-generated method stub - - } - @Override - public void checkPackageAccess(String packageName) { - // TODO Auto-generated method stub - - } - @Override - public void checkPackageDefinition(String packageName) { - // TODO Auto-generated method stub - - } - @Override - public void checkPermission(Permission permission, - Object context) { - // TODO Auto-generated method stub - - } - @Override - public void checkPrintJobAccess() { - // TODO Auto-generated method stub - - } - @Override - public void checkPropertiesAccess() { - // TODO Auto-generated method stub - - } - @Override - public void checkPropertyAccess(String key) { - // TODO Auto-generated method stub - - } - @Override - public void checkRead(FileDescriptor fd) { - // TODO Auto-generated method stub - - } - @Override - public void checkRead(String file) { - // TODO Auto-generated method stub - - } - @Override - public void checkRead(String file, Object context) { - // TODO Auto-generated method stub - - } - @Override - public void checkSecurityAccess(String target) { - // TODO Auto-generated method stub - - } - @Override - public void checkSetFactory() { - // TODO Auto-generated method stub - - } - @Override - public void checkSystemClipboardAccess() { - // TODO Auto-generated method stub - - } - - @Override - public void checkWrite(FileDescriptor fd) { - // TODO Auto-generated method stub - - } - @Override - public void checkWrite(String file) { - // TODO Auto-generated method stub - - } - - }); - - Thread.currentThread().setContextClassLoader(getClassLoader()); - - 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(); - - } catch(Exception e) { - e.printStackTrace(); - } - - - - TextView tv = new TextView(this); - tv.setText("3 + 2 =" + calculationResult); - setContentView(tv); - - } - - @Override - protected void onDestroy() { - super.onDestroy(); - - try { - //scaDomain.close(); - } catch (Exception e) { - e.printStackTrace(); - } - } - - @Override - public void onContentChanged() { - super.onContentChanged(); - /* - // 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)); - */ - - } - - -} \ No newline at end of file diff --git a/branches/sca-java-1.5.1/samples/calculator-android/src/calculator/android/R$attr.class b/branches/sca-java-1.5.1/samples/calculator-android/src/calculator/android/R$attr.class deleted file mode 100644 index 4d7e121ddc..0000000000 Binary files a/branches/sca-java-1.5.1/samples/calculator-android/src/calculator/android/R$attr.class and /dev/null differ diff --git a/branches/sca-java-1.5.1/samples/calculator-android/src/calculator/android/R$drawable.class b/branches/sca-java-1.5.1/samples/calculator-android/src/calculator/android/R$drawable.class deleted file mode 100644 index 842aa47958..0000000000 Binary files a/branches/sca-java-1.5.1/samples/calculator-android/src/calculator/android/R$drawable.class and /dev/null differ diff --git a/branches/sca-java-1.5.1/samples/calculator-android/src/calculator/android/R$layout.class b/branches/sca-java-1.5.1/samples/calculator-android/src/calculator/android/R$layout.class deleted file mode 100644 index 2b7eadeac8..0000000000 Binary files a/branches/sca-java-1.5.1/samples/calculator-android/src/calculator/android/R$layout.class and /dev/null differ diff --git a/branches/sca-java-1.5.1/samples/calculator-android/src/calculator/android/R$string.class b/branches/sca-java-1.5.1/samples/calculator-android/src/calculator/android/R$string.class deleted file mode 100644 index fd104e6c86..0000000000 Binary files a/branches/sca-java-1.5.1/samples/calculator-android/src/calculator/android/R$string.class and /dev/null differ diff --git a/branches/sca-java-1.5.1/samples/calculator-android/src/calculator/android/R.class b/branches/sca-java-1.5.1/samples/calculator-android/src/calculator/android/R.class deleted file mode 100644 index 7bca04a8a4..0000000000 Binary files a/branches/sca-java-1.5.1/samples/calculator-android/src/calculator/android/R.class and /dev/null differ diff --git a/branches/sca-java-1.5.1/samples/calculator-android/src/calculator/android/R.java b/branches/sca-java-1.5.1/samples/calculator-android/src/calculator/android/R.java deleted file mode 100644 index a338c98c3a..0000000000 --- a/branches/sca-java-1.5.1/samples/calculator-android/src/calculator/android/R.java +++ /dev/null @@ -1,23 +0,0 @@ -/* AUTO-GENERATED FILE. DO NOT MODIFY. - * - * This class was automatically generated by the - * aapt tool from the resource data it found. It - * should not be modified by hand. - */ - -package calculator.android; - -public final class R { - public static final class attr { - } - public static final class drawable { - public static final int icon=0x7f020000; - } - public static final class layout { - public static final int main=0x7f030000; - } - public static final class string { - public static final int app_name=0x7f040001; - public static final int hello=0x7f040000; - } -} -- cgit v1.2.3