diff options
author | lresende <lresende@13f79535-47bb-0310-9956-ffa450edef68> | 2008-12-17 19:51:24 +0000 |
---|---|---|
committer | lresende <lresende@13f79535-47bb-0310-9956-ffa450edef68> | 2008-12-17 19:51:24 +0000 |
commit | 432dd8fb555ad9d6dde1b5d220e7a0fe2de51904 (patch) | |
tree | ffdc231e6c6413aaed515297a9f5834087d4d31b /branches/sca-java-1.x/samples/calculator-android/src/calculator/AddServiceImpl.java | |
parent | 31cc3f73bea03fb0d8403ed7b5c7adda6c7c9c9a (diff) |
[Work in progress] An Android version of the calculator sample application
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@727494 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'branches/sca-java-1.x/samples/calculator-android/src/calculator/AddServiceImpl.java')
-rw-r--r-- | branches/sca-java-1.x/samples/calculator-android/src/calculator/AddServiceImpl.java | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/branches/sca-java-1.x/samples/calculator-android/src/calculator/AddServiceImpl.java b/branches/sca-java-1.x/samples/calculator-android/src/calculator/AddServiceImpl.java new file mode 100644 index 0000000000..6181a1c651 --- /dev/null +++ b/branches/sca-java-1.x/samples/calculator-android/src/calculator/AddServiceImpl.java @@ -0,0 +1,18 @@ +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;
+ }
+
+}
|