From 66b717ff298aeaa02af8b3e37ab67f9442919f60 Mon Sep 17 00:00:00 2001 From: jsdelfino Date: Sat, 13 Sep 2008 20:48:01 +0000 Subject: Moved calculator-android sample to the samples directory. git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@695028 13f79535-47bb-0310-9956-ffa450edef68 --- .../modules/calculator-android/.classpath | 113 ------- .../modules/calculator-android/.project | 33 -- .../modules/calculator-android/AndroidManifest.xml | 12 - .../calculator-android/res/drawable/icon.png | Bin 6094 -> 0 bytes .../modules/calculator-android/res/layout/main.xml | 12 - .../res/raw/calculator_composite | 49 --- .../modules/calculator-android/res/raw/sca.xsd | 22 -- .../modules/calculator-android/res/raw/sca_all.xsd | 32 -- .../calculator-android/res/raw/sca_binding_ejb.xsd | 43 --- .../calculator-android/res/raw/sca_binding_jms.xsd | 135 -------- .../calculator-android/res/raw/sca_binding_sca.xsd | 23 -- .../res/raw/sca_binding_webservice.xsd | 26 -- .../calculator-android/res/raw/sca_core.xsd | 350 --------------------- .../calculator-android/res/raw/sca_definitions.xsd | 25 -- .../res/raw/sca_implementation_bpel.xsd | 43 --- .../res/raw/sca_implementation_composite_xsd | 23 -- .../res/raw/sca_implementation_cpp.xsd | 53 ---- .../res/raw/sca_implementation_ejb.xsd | 25 -- .../res/raw/sca_implementation_java.xsd | 24 -- .../res/raw/sca_implementation_spring.xsd | 24 -- .../res/raw/sca_interface_cpp.xsd | 40 --- .../res/raw/sca_interface_java.xsd | 23 -- .../res/raw/sca_interface_wsdl.xsd | 23 -- .../calculator-android/res/raw/sca_policy.xsd | 76 ----- .../calculator-android/res/raw/tuscany_sca.xsd | 45 --- .../res/raw/tuscany_sca_binding_atom.xsd | 40 --- .../res/raw/tuscany_sca_binding_dwr.xsd | 40 --- .../res/raw/tuscany_sca_binding_http.xsd | 40 --- .../res/raw/tuscany_sca_binding_jsonrpc.xsd | 40 --- .../res/raw/tuscany_sca_binding_notification.xsd | 42 --- .../res/raw/tuscany_sca_binding_rmi.xsd | 43 --- .../res/raw/tuscany_sca_binding_rss.xsd | 40 --- .../res/raw/tuscany_sca_implementation_node.xsd | 42 --- .../tuscany_sca_implementation_notification.xsd | 42 --- .../res/raw/tuscany_sca_implementation_osgi.xsd | 43 --- .../raw/tuscany_sca_implementation_resource.xsd | 42 --- .../res/raw/tuscany_sca_implementation_script.xsd | 43 --- .../res/raw/tuscany_sca_implementation_widget.xsd | 42 --- .../res/raw/tuscany_sca_implementation_xquery.xsd | 42 --- .../calculator-android/res/values/strings.xml | 4 - .../src/calculator/AddService.java | 28 -- .../src/calculator/AddServiceImpl.java | 35 --- .../src/calculator/CalculatorService.java | 35 --- .../src/calculator/CalculatorServiceImpl.java | 70 ----- .../src/calculator/DivideService.java | 28 -- .../src/calculator/DivideServiceImpl.java | 35 --- .../src/calculator/MultiplyService.java | 28 -- .../src/calculator/MultiplyServiceImpl.java | 35 --- .../src/calculator/SubtractService.java | 28 -- .../src/calculator/SubtractServiceImpl.java | 35 --- .../src/calculator/android/CalculatorClient.java | 36 --- 51 files changed, 2252 deletions(-) delete mode 100644 branches/sca-android/modules/calculator-android/.classpath delete mode 100644 branches/sca-android/modules/calculator-android/.project delete mode 100644 branches/sca-android/modules/calculator-android/AndroidManifest.xml delete mode 100644 branches/sca-android/modules/calculator-android/res/drawable/icon.png delete mode 100644 branches/sca-android/modules/calculator-android/res/layout/main.xml delete mode 100644 branches/sca-android/modules/calculator-android/res/raw/calculator_composite delete mode 100644 branches/sca-android/modules/calculator-android/res/raw/sca.xsd delete mode 100644 branches/sca-android/modules/calculator-android/res/raw/sca_all.xsd delete mode 100644 branches/sca-android/modules/calculator-android/res/raw/sca_binding_ejb.xsd delete mode 100644 branches/sca-android/modules/calculator-android/res/raw/sca_binding_jms.xsd delete mode 100644 branches/sca-android/modules/calculator-android/res/raw/sca_binding_sca.xsd delete mode 100644 branches/sca-android/modules/calculator-android/res/raw/sca_binding_webservice.xsd delete mode 100644 branches/sca-android/modules/calculator-android/res/raw/sca_core.xsd delete mode 100644 branches/sca-android/modules/calculator-android/res/raw/sca_definitions.xsd delete mode 100644 branches/sca-android/modules/calculator-android/res/raw/sca_implementation_bpel.xsd delete mode 100644 branches/sca-android/modules/calculator-android/res/raw/sca_implementation_composite_xsd delete mode 100644 branches/sca-android/modules/calculator-android/res/raw/sca_implementation_cpp.xsd delete mode 100644 branches/sca-android/modules/calculator-android/res/raw/sca_implementation_ejb.xsd delete mode 100644 branches/sca-android/modules/calculator-android/res/raw/sca_implementation_java.xsd delete mode 100644 branches/sca-android/modules/calculator-android/res/raw/sca_implementation_spring.xsd delete mode 100644 branches/sca-android/modules/calculator-android/res/raw/sca_interface_cpp.xsd delete mode 100644 branches/sca-android/modules/calculator-android/res/raw/sca_interface_java.xsd delete mode 100644 branches/sca-android/modules/calculator-android/res/raw/sca_interface_wsdl.xsd delete mode 100644 branches/sca-android/modules/calculator-android/res/raw/sca_policy.xsd delete mode 100644 branches/sca-android/modules/calculator-android/res/raw/tuscany_sca.xsd delete mode 100644 branches/sca-android/modules/calculator-android/res/raw/tuscany_sca_binding_atom.xsd delete mode 100644 branches/sca-android/modules/calculator-android/res/raw/tuscany_sca_binding_dwr.xsd delete mode 100644 branches/sca-android/modules/calculator-android/res/raw/tuscany_sca_binding_http.xsd delete mode 100644 branches/sca-android/modules/calculator-android/res/raw/tuscany_sca_binding_jsonrpc.xsd delete mode 100644 branches/sca-android/modules/calculator-android/res/raw/tuscany_sca_binding_notification.xsd delete mode 100644 branches/sca-android/modules/calculator-android/res/raw/tuscany_sca_binding_rmi.xsd delete mode 100644 branches/sca-android/modules/calculator-android/res/raw/tuscany_sca_binding_rss.xsd delete mode 100644 branches/sca-android/modules/calculator-android/res/raw/tuscany_sca_implementation_node.xsd delete mode 100644 branches/sca-android/modules/calculator-android/res/raw/tuscany_sca_implementation_notification.xsd delete mode 100644 branches/sca-android/modules/calculator-android/res/raw/tuscany_sca_implementation_osgi.xsd delete mode 100644 branches/sca-android/modules/calculator-android/res/raw/tuscany_sca_implementation_resource.xsd delete mode 100644 branches/sca-android/modules/calculator-android/res/raw/tuscany_sca_implementation_script.xsd delete mode 100644 branches/sca-android/modules/calculator-android/res/raw/tuscany_sca_implementation_widget.xsd delete mode 100644 branches/sca-android/modules/calculator-android/res/raw/tuscany_sca_implementation_xquery.xsd delete mode 100644 branches/sca-android/modules/calculator-android/res/values/strings.xml delete mode 100644 branches/sca-android/modules/calculator-android/src/calculator/AddService.java delete mode 100644 branches/sca-android/modules/calculator-android/src/calculator/AddServiceImpl.java delete mode 100644 branches/sca-android/modules/calculator-android/src/calculator/CalculatorService.java delete mode 100644 branches/sca-android/modules/calculator-android/src/calculator/CalculatorServiceImpl.java delete mode 100644 branches/sca-android/modules/calculator-android/src/calculator/DivideService.java delete mode 100644 branches/sca-android/modules/calculator-android/src/calculator/DivideServiceImpl.java delete mode 100644 branches/sca-android/modules/calculator-android/src/calculator/MultiplyService.java delete mode 100644 branches/sca-android/modules/calculator-android/src/calculator/MultiplyServiceImpl.java delete mode 100644 branches/sca-android/modules/calculator-android/src/calculator/SubtractService.java delete mode 100644 branches/sca-android/modules/calculator-android/src/calculator/SubtractServiceImpl.java delete mode 100644 branches/sca-android/modules/calculator-android/src/calculator/android/CalculatorClient.java (limited to 'branches/sca-android/modules/calculator-android') diff --git a/branches/sca-android/modules/calculator-android/.classpath b/branches/sca-android/modules/calculator-android/.classpath deleted file mode 100644 index 6f78dd6f3c..0000000000 --- a/branches/sca-android/modules/calculator-android/.classpath +++ /dev/null @@ -1,113 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/branches/sca-android/modules/calculator-android/.project b/branches/sca-android/modules/calculator-android/.project deleted file mode 100644 index e77a01d623..0000000000 --- a/branches/sca-android/modules/calculator-android/.project +++ /dev/null @@ -1,33 +0,0 @@ - - - calculator-android - - - - - - 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-android/modules/calculator-android/AndroidManifest.xml b/branches/sca-android/modules/calculator-android/AndroidManifest.xml deleted file mode 100644 index 8f419508ce..0000000000 --- a/branches/sca-android/modules/calculator-android/AndroidManifest.xml +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - - - - - - \ No newline at end of file diff --git a/branches/sca-android/modules/calculator-android/res/drawable/icon.png b/branches/sca-android/modules/calculator-android/res/drawable/icon.png deleted file mode 100644 index 64e3601c23..0000000000 Binary files a/branches/sca-android/modules/calculator-android/res/drawable/icon.png and /dev/null differ diff --git a/branches/sca-android/modules/calculator-android/res/layout/main.xml b/branches/sca-android/modules/calculator-android/res/layout/main.xml deleted file mode 100644 index 469c950462..0000000000 --- a/branches/sca-android/modules/calculator-android/res/layout/main.xml +++ /dev/null @@ -1,12 +0,0 @@ - - - - diff --git a/branches/sca-android/modules/calculator-android/res/raw/calculator_composite b/branches/sca-android/modules/calculator-android/res/raw/calculator_composite deleted file mode 100644 index 90872041b0..0000000000 --- a/branches/sca-android/modules/calculator-android/res/raw/calculator_composite +++ /dev/null @@ -1,49 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/branches/sca-android/modules/calculator-android/res/raw/sca.xsd b/branches/sca-android/modules/calculator-android/res/raw/sca.xsd deleted file mode 100644 index e108342693..0000000000 --- a/branches/sca-android/modules/calculator-android/res/raw/sca.xsd +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/branches/sca-android/modules/calculator-android/res/raw/sca_all.xsd b/branches/sca-android/modules/calculator-android/res/raw/sca_all.xsd deleted file mode 100644 index 6e3b848a53..0000000000 --- a/branches/sca-android/modules/calculator-android/res/raw/sca_all.xsd +++ /dev/null @@ -1,32 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/branches/sca-android/modules/calculator-android/res/raw/sca_binding_ejb.xsd b/branches/sca-android/modules/calculator-android/res/raw/sca_binding_ejb.xsd deleted file mode 100644 index 0e7e40432c..0000000000 --- a/branches/sca-android/modules/calculator-android/res/raw/sca_binding_ejb.xsd +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/branches/sca-android/modules/calculator-android/res/raw/sca_binding_jms.xsd b/branches/sca-android/modules/calculator-android/res/raw/sca_binding_jms.xsd deleted file mode 100644 index 868a9d64e0..0000000000 --- a/branches/sca-android/modules/calculator-android/res/raw/sca_binding_jms.xsd +++ /dev/null @@ -1,135 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/branches/sca-android/modules/calculator-android/res/raw/sca_binding_sca.xsd b/branches/sca-android/modules/calculator-android/res/raw/sca_binding_sca.xsd deleted file mode 100644 index 8005cda8a6..0000000000 --- a/branches/sca-android/modules/calculator-android/res/raw/sca_binding_sca.xsd +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/branches/sca-android/modules/calculator-android/res/raw/sca_binding_webservice.xsd b/branches/sca-android/modules/calculator-android/res/raw/sca_binding_webservice.xsd deleted file mode 100644 index 92446c0338..0000000000 --- a/branches/sca-android/modules/calculator-android/res/raw/sca_binding_webservice.xsd +++ /dev/null @@ -1,26 +0,0 @@ - - - - - - - - - - - - - - - - - - - diff --git a/branches/sca-android/modules/calculator-android/res/raw/sca_core.xsd b/branches/sca-android/modules/calculator-android/res/raw/sca_core.xsd deleted file mode 100644 index 20e0a6901c..0000000000 --- a/branches/sca-android/modules/calculator-android/res/raw/sca_core.xsd +++ /dev/null @@ -1,350 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/branches/sca-android/modules/calculator-android/res/raw/sca_definitions.xsd b/branches/sca-android/modules/calculator-android/res/raw/sca_definitions.xsd deleted file mode 100644 index 4676d34eeb..0000000000 --- a/branches/sca-android/modules/calculator-android/res/raw/sca_definitions.xsd +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/branches/sca-android/modules/calculator-android/res/raw/sca_implementation_bpel.xsd b/branches/sca-android/modules/calculator-android/res/raw/sca_implementation_bpel.xsd deleted file mode 100644 index 80141a57af..0000000000 --- a/branches/sca-android/modules/calculator-android/res/raw/sca_implementation_bpel.xsd +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/branches/sca-android/modules/calculator-android/res/raw/sca_implementation_composite_xsd b/branches/sca-android/modules/calculator-android/res/raw/sca_implementation_composite_xsd deleted file mode 100644 index 2486653235..0000000000 --- a/branches/sca-android/modules/calculator-android/res/raw/sca_implementation_composite_xsd +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/branches/sca-android/modules/calculator-android/res/raw/sca_implementation_cpp.xsd b/branches/sca-android/modules/calculator-android/res/raw/sca_implementation_cpp.xsd deleted file mode 100644 index 1d157d9504..0000000000 --- a/branches/sca-android/modules/calculator-android/res/raw/sca_implementation_cpp.xsd +++ /dev/null @@ -1,53 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/branches/sca-android/modules/calculator-android/res/raw/sca_implementation_ejb.xsd b/branches/sca-android/modules/calculator-android/res/raw/sca_implementation_ejb.xsd deleted file mode 100644 index 850b854fd5..0000000000 --- a/branches/sca-android/modules/calculator-android/res/raw/sca_implementation_ejb.xsd +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/branches/sca-android/modules/calculator-android/res/raw/sca_implementation_java.xsd b/branches/sca-android/modules/calculator-android/res/raw/sca_implementation_java.xsd deleted file mode 100644 index 792ad407b3..0000000000 --- a/branches/sca-android/modules/calculator-android/res/raw/sca_implementation_java.xsd +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/branches/sca-android/modules/calculator-android/res/raw/sca_implementation_spring.xsd b/branches/sca-android/modules/calculator-android/res/raw/sca_implementation_spring.xsd deleted file mode 100644 index a9ef307bed..0000000000 --- a/branches/sca-android/modules/calculator-android/res/raw/sca_implementation_spring.xsd +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/branches/sca-android/modules/calculator-android/res/raw/sca_interface_cpp.xsd b/branches/sca-android/modules/calculator-android/res/raw/sca_interface_cpp.xsd deleted file mode 100644 index 9cae7e3685..0000000000 --- a/branches/sca-android/modules/calculator-android/res/raw/sca_interface_cpp.xsd +++ /dev/null @@ -1,40 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/branches/sca-android/modules/calculator-android/res/raw/sca_interface_java.xsd b/branches/sca-android/modules/calculator-android/res/raw/sca_interface_java.xsd deleted file mode 100644 index 3f9eb25440..0000000000 --- a/branches/sca-android/modules/calculator-android/res/raw/sca_interface_java.xsd +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/branches/sca-android/modules/calculator-android/res/raw/sca_interface_wsdl.xsd b/branches/sca-android/modules/calculator-android/res/raw/sca_interface_wsdl.xsd deleted file mode 100644 index c161d98f88..0000000000 --- a/branches/sca-android/modules/calculator-android/res/raw/sca_interface_wsdl.xsd +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/branches/sca-android/modules/calculator-android/res/raw/sca_policy.xsd b/branches/sca-android/modules/calculator-android/res/raw/sca_policy.xsd deleted file mode 100644 index 1ae1c9dfdc..0000000000 --- a/branches/sca-android/modules/calculator-android/res/raw/sca_policy.xsd +++ /dev/null @@ -1,76 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/branches/sca-android/modules/calculator-android/res/raw/tuscany_sca.xsd b/branches/sca-android/modules/calculator-android/res/raw/tuscany_sca.xsd deleted file mode 100644 index 33b7c5099b..0000000000 --- a/branches/sca-android/modules/calculator-android/res/raw/tuscany_sca.xsd +++ /dev/null @@ -1,45 +0,0 @@ - - - - - - - - - - - - - - - - - __> - - - - - - - - - \ No newline at end of file diff --git a/branches/sca-android/modules/calculator-android/res/raw/tuscany_sca_binding_atom.xsd b/branches/sca-android/modules/calculator-android/res/raw/tuscany_sca_binding_atom.xsd deleted file mode 100644 index 1423a7ee87..0000000000 --- a/branches/sca-android/modules/calculator-android/res/raw/tuscany_sca_binding_atom.xsd +++ /dev/null @@ -1,40 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/branches/sca-android/modules/calculator-android/res/raw/tuscany_sca_binding_dwr.xsd b/branches/sca-android/modules/calculator-android/res/raw/tuscany_sca_binding_dwr.xsd deleted file mode 100644 index 98b17bbb8b..0000000000 --- a/branches/sca-android/modules/calculator-android/res/raw/tuscany_sca_binding_dwr.xsd +++ /dev/null @@ -1,40 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/branches/sca-android/modules/calculator-android/res/raw/tuscany_sca_binding_http.xsd b/branches/sca-android/modules/calculator-android/res/raw/tuscany_sca_binding_http.xsd deleted file mode 100644 index 4d709353d0..0000000000 --- a/branches/sca-android/modules/calculator-android/res/raw/tuscany_sca_binding_http.xsd +++ /dev/null @@ -1,40 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/branches/sca-android/modules/calculator-android/res/raw/tuscany_sca_binding_jsonrpc.xsd b/branches/sca-android/modules/calculator-android/res/raw/tuscany_sca_binding_jsonrpc.xsd deleted file mode 100644 index e03d6feb02..0000000000 --- a/branches/sca-android/modules/calculator-android/res/raw/tuscany_sca_binding_jsonrpc.xsd +++ /dev/null @@ -1,40 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/branches/sca-android/modules/calculator-android/res/raw/tuscany_sca_binding_notification.xsd b/branches/sca-android/modules/calculator-android/res/raw/tuscany_sca_binding_notification.xsd deleted file mode 100644 index d1b23e8826..0000000000 --- a/branches/sca-android/modules/calculator-android/res/raw/tuscany_sca_binding_notification.xsd +++ /dev/null @@ -1,42 +0,0 @@ - - - - - - - - - - - - - - - - - - - - diff --git a/branches/sca-android/modules/calculator-android/res/raw/tuscany_sca_binding_rmi.xsd b/branches/sca-android/modules/calculator-android/res/raw/tuscany_sca_binding_rmi.xsd deleted file mode 100644 index 7815e390e4..0000000000 --- a/branches/sca-android/modules/calculator-android/res/raw/tuscany_sca_binding_rmi.xsd +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - diff --git a/branches/sca-android/modules/calculator-android/res/raw/tuscany_sca_binding_rss.xsd b/branches/sca-android/modules/calculator-android/res/raw/tuscany_sca_binding_rss.xsd deleted file mode 100644 index 8fd10cc781..0000000000 --- a/branches/sca-android/modules/calculator-android/res/raw/tuscany_sca_binding_rss.xsd +++ /dev/null @@ -1,40 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/branches/sca-android/modules/calculator-android/res/raw/tuscany_sca_implementation_node.xsd b/branches/sca-android/modules/calculator-android/res/raw/tuscany_sca_implementation_node.xsd deleted file mode 100644 index 1943c98d70..0000000000 --- a/branches/sca-android/modules/calculator-android/res/raw/tuscany_sca_implementation_node.xsd +++ /dev/null @@ -1,42 +0,0 @@ - - - - - - - - - - - - - - - - - - - - diff --git a/branches/sca-android/modules/calculator-android/res/raw/tuscany_sca_implementation_notification.xsd b/branches/sca-android/modules/calculator-android/res/raw/tuscany_sca_implementation_notification.xsd deleted file mode 100644 index 1c4c6d7aeb..0000000000 --- a/branches/sca-android/modules/calculator-android/res/raw/tuscany_sca_implementation_notification.xsd +++ /dev/null @@ -1,42 +0,0 @@ - - - - - - - - - - - - - - - - - - - - diff --git a/branches/sca-android/modules/calculator-android/res/raw/tuscany_sca_implementation_osgi.xsd b/branches/sca-android/modules/calculator-android/res/raw/tuscany_sca_implementation_osgi.xsd deleted file mode 100644 index 9fedc2bb84..0000000000 --- a/branches/sca-android/modules/calculator-android/res/raw/tuscany_sca_implementation_osgi.xsd +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - diff --git a/branches/sca-android/modules/calculator-android/res/raw/tuscany_sca_implementation_resource.xsd b/branches/sca-android/modules/calculator-android/res/raw/tuscany_sca_implementation_resource.xsd deleted file mode 100644 index e37b2c47ee..0000000000 --- a/branches/sca-android/modules/calculator-android/res/raw/tuscany_sca_implementation_resource.xsd +++ /dev/null @@ -1,42 +0,0 @@ - - - - - - - - - - - - - - - - - - - - diff --git a/branches/sca-android/modules/calculator-android/res/raw/tuscany_sca_implementation_script.xsd b/branches/sca-android/modules/calculator-android/res/raw/tuscany_sca_implementation_script.xsd deleted file mode 100644 index a13643d148..0000000000 --- a/branches/sca-android/modules/calculator-android/res/raw/tuscany_sca_implementation_script.xsd +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - diff --git a/branches/sca-android/modules/calculator-android/res/raw/tuscany_sca_implementation_widget.xsd b/branches/sca-android/modules/calculator-android/res/raw/tuscany_sca_implementation_widget.xsd deleted file mode 100644 index 1afb30c106..0000000000 --- a/branches/sca-android/modules/calculator-android/res/raw/tuscany_sca_implementation_widget.xsd +++ /dev/null @@ -1,42 +0,0 @@ - - - - - - - - - - - - - - - - - - - - diff --git a/branches/sca-android/modules/calculator-android/res/raw/tuscany_sca_implementation_xquery.xsd b/branches/sca-android/modules/calculator-android/res/raw/tuscany_sca_implementation_xquery.xsd deleted file mode 100644 index 875f0da1dc..0000000000 --- a/branches/sca-android/modules/calculator-android/res/raw/tuscany_sca_implementation_xquery.xsd +++ /dev/null @@ -1,42 +0,0 @@ - - - - - - - - - - - - - - - - - - - - diff --git a/branches/sca-android/modules/calculator-android/res/values/strings.xml b/branches/sca-android/modules/calculator-android/res/values/strings.xml deleted file mode 100644 index 91b584c887..0000000000 --- a/branches/sca-android/modules/calculator-android/res/values/strings.xml +++ /dev/null @@ -1,4 +0,0 @@ - - - Calculator - diff --git a/branches/sca-android/modules/calculator-android/src/calculator/AddService.java b/branches/sca-android/modules/calculator-android/src/calculator/AddService.java deleted file mode 100644 index 188451ebac..0000000000 --- a/branches/sca-android/modules/calculator-android/src/calculator/AddService.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package calculator; - -/** - * The Add service interface - */ -public interface AddService { - - double add(double n1, double n2); - -} diff --git a/branches/sca-android/modules/calculator-android/src/calculator/AddServiceImpl.java b/branches/sca-android/modules/calculator-android/src/calculator/AddServiceImpl.java deleted file mode 100644 index 7ca8fb04b5..0000000000 --- a/branches/sca-android/modules/calculator-android/src/calculator/AddServiceImpl.java +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -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-android/modules/calculator-android/src/calculator/CalculatorService.java b/branches/sca-android/modules/calculator-android/src/calculator/CalculatorService.java deleted file mode 100644 index 031fa8b912..0000000000 --- a/branches/sca-android/modules/calculator-android/src/calculator/CalculatorService.java +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -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-android/modules/calculator-android/src/calculator/CalculatorServiceImpl.java b/branches/sca-android/modules/calculator-android/src/calculator/CalculatorServiceImpl.java deleted file mode 100644 index 3d861f2018..0000000000 --- a/branches/sca-android/modules/calculator-android/src/calculator/CalculatorServiceImpl.java +++ /dev/null @@ -1,70 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -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-android/modules/calculator-android/src/calculator/DivideService.java b/branches/sca-android/modules/calculator-android/src/calculator/DivideService.java deleted file mode 100644 index 30d248208b..0000000000 --- a/branches/sca-android/modules/calculator-android/src/calculator/DivideService.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package calculator; - -/** - * The divide service interface - */ -public interface DivideService { - - double divide(double n1, double n2); - -} diff --git a/branches/sca-android/modules/calculator-android/src/calculator/DivideServiceImpl.java b/branches/sca-android/modules/calculator-android/src/calculator/DivideServiceImpl.java deleted file mode 100644 index 1323edf55a..0000000000 --- a/branches/sca-android/modules/calculator-android/src/calculator/DivideServiceImpl.java +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -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-android/modules/calculator-android/src/calculator/MultiplyService.java b/branches/sca-android/modules/calculator-android/src/calculator/MultiplyService.java deleted file mode 100644 index 5290605938..0000000000 --- a/branches/sca-android/modules/calculator-android/src/calculator/MultiplyService.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package calculator; - -/** - * The interface for the multiply service - */ -public interface MultiplyService { - - double multiply(double n1, double n2); - -} diff --git a/branches/sca-android/modules/calculator-android/src/calculator/MultiplyServiceImpl.java b/branches/sca-android/modules/calculator-android/src/calculator/MultiplyServiceImpl.java deleted file mode 100644 index 91b803bc9e..0000000000 --- a/branches/sca-android/modules/calculator-android/src/calculator/MultiplyServiceImpl.java +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -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-android/modules/calculator-android/src/calculator/SubtractService.java b/branches/sca-android/modules/calculator-android/src/calculator/SubtractService.java deleted file mode 100644 index bf0d1882b6..0000000000 --- a/branches/sca-android/modules/calculator-android/src/calculator/SubtractService.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package calculator; - -/** - * The interface for the multiply service - */ -public interface SubtractService { - - double subtract(double n1, double n2); - -} diff --git a/branches/sca-android/modules/calculator-android/src/calculator/SubtractServiceImpl.java b/branches/sca-android/modules/calculator-android/src/calculator/SubtractServiceImpl.java deleted file mode 100644 index 58cc4a3547..0000000000 --- a/branches/sca-android/modules/calculator-android/src/calculator/SubtractServiceImpl.java +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -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-android/modules/calculator-android/src/calculator/android/CalculatorClient.java b/branches/sca-android/modules/calculator-android/src/calculator/android/CalculatorClient.java deleted file mode 100644 index 7d6a6613ed..0000000000 --- a/branches/sca-android/modules/calculator-android/src/calculator/android/CalculatorClient.java +++ /dev/null @@ -1,36 +0,0 @@ -package calculator.android; - -import org.apache.tuscany.sca.host.embedded.SCADomain; - -import calculator.CalculatorService; -import android.app.Activity; -import android.os.Bundle; -import android.widget.TextView; - -public class CalculatorClient extends Activity { - - /** Called when the activity is first created. */ - @Override - public void onCreate(Bundle icicle) { - super.onCreate(icicle); - StringBuffer sb = new StringBuffer(); - - SCADomain scaDomain = SCADomain.newInstance(this, "dex://calculator.android/raw/calculator.composite"); - - CalculatorService calculatorService = - scaDomain.getService(CalculatorService.class, "CalculatorServiceComponent"); - - // Calculate - sb.append("3 + 2=" + calculatorService.add(3, 2)); - sb.append("3 - 2=" + calculatorService.subtract(3, 2)); - sb.append("3 * 2=" + calculatorService.multiply(3, 2)); - sb.append("3 / 2=" + calculatorService.divide(3, 2)); - - scaDomain.close(); - - TextView tv = new TextView(this); - tv.setText(sb.toString()); - setContentView(tv); - - } -} \ No newline at end of file -- cgit v1.2.3