From b27842ba0b5ee1c797b6dcf421f61e91aca317af Mon Sep 17 00:00:00 2001 From: lresende Date: Mon, 18 Oct 2010 02:28:30 +0000 Subject: Deleting 2.0-M5-RC3 release candidate tag git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1023631 13f79535-47bb-0310-9956-ffa450edef68 --- sca-java-2.x/tags/2.0-M5-RC3/BUILDING | 44 - sca-java-2.x/tags/2.0-M5-RC3/CHANGES | 94 - sca-java-2.x/tags/2.0-M5-RC3/LICENSE | 485 ----- sca-java-2.x/tags/2.0-M5-RC3/NOTICE | 5 - sca-java-2.x/tags/2.0-M5-RC3/README | 19 - sca-java-2.x/tags/2.0-M5-RC3/RELEASE_NOTES | 84 - .../contribution-jar/META-INF/MANIFEST.MF | 11 - .../2.0-M5-RC3/archetypes/contribution-jar/pom.xml | 50 - .../META-INF/maven/archetype-metadata.xml | 36 - .../main/resources/META-INF/maven/archetype.xml | 30 - .../src/main/resources/archetype-resources/pom.xml | 110 - .../src/main/java/HelloworldImpl.java | 36 - .../src/main/java/HelloworldService.java | 28 - .../main/resources/META-INF/sca-contribution.xml | 23 - .../src/main/resources/helloworld.composite | 29 - .../archetypes/contribution-zip-discriptor/pom.xml | 33 - .../assemblies/tuscany-zip-contribution.xml | 40 - .../contribution-zip/META-INF/MANIFEST.MF | 11 - .../2.0-M5-RC3/archetypes/contribution-zip/pom.xml | 50 - .../META-INF/maven/archetype-metadata.xml | 36 - .../main/resources/META-INF/maven/archetype.xml | 30 - .../src/main/resources/archetype-resources/pom.xml | 153 -- .../archetype-resources/src/main/java/AddImpl.java | 38 - .../src/main/java/AddService.java | 25 - .../main/resources/META-INF/sca-contribution.xml | 23 - .../src/main/resources/add.composite | 29 - sca-java-2.x/tags/2.0-M5-RC3/archetypes/pom.xml | 51 - .../quickstart-bpel/META-INF/MANIFEST.MF | 11 - .../2.0-M5-RC3/archetypes/quickstart-bpel/pom.xml | 50 - .../META-INF/maven/archetype-metadata.xml | 43 - .../main/resources/META-INF/maven/archetype.xml | 33 - .../src/main/resources/archetype-resources/pom.xml | 182 -- .../src/main/java/HelloworldService.java | 28 - .../src/main/resources/helloworld.bpel | 66 - .../src/main/resources/helloworld.wsdl | 82 - .../src/main/webapp/WEB-INF/web.composite | 37 - .../src/main/webapp/WEB-INF/web.xml | 41 - .../archetype-resources/src/main/webapp/hello.jsp | 36 - .../2.0-M5-RC3/archetypes/quickstart-jsf/pom.xml | 50 - .../META-INF/maven/archetype-metadata.xml | 44 - .../main/resources/META-INF/maven/archetype.xml | 38 - .../src/main/resources/archetype-resources/pom.xml | 154 -- .../main/java/myfaces/HelloWorldController.java | 64 - .../src/main/java/sca/HelloworldService.java | 28 - .../src/main/java/sca/HelloworldServiceImpl.java | 30 - .../src/main/webapp/WEB-INF/faces-config.xml | 53 - .../src/main/webapp/WEB-INF/web.composite | 35 - .../src/main/webapp/WEB-INF/web.xml | 230 -- .../src/main/webapp/helloWorld.jsp | 37 - .../archetype-resources/src/main/webapp/index.jsp | 22 - .../archetype-resources/src/main/webapp/page2.jsp | 35 - .../quickstart-jsonp/META-INF/MANIFEST.MF | 11 - .../2.0-M5-RC3/archetypes/quickstart-jsonp/pom.xml | 50 - .../META-INF/maven/archetype-metadata.xml | 42 - .../main/resources/META-INF/maven/archetype.xml | 31 - .../src/main/resources/archetype-resources/pom.xml | 154 -- .../src/main/java/HelloworldImpl.java | 27 - .../src/main/java/HelloworldService.java | 28 - .../src/main/webapp/WEB-INF/web.composite | 32 - .../src/main/webapp/WEB-INF/web.xml | 43 - .../archetype-resources/src/main/webapp/hello.jsp | 36 - .../quickstart-stripes/META-INF/MANIFEST.MF | 11 - .../archetypes/quickstart-stripes/pom.xml | 50 - .../META-INF/maven/archetype-metadata.xml | 44 - .../main/resources/META-INF/maven/archetype.xml | 38 - .../src/main/resources/archetype-resources/pom.xml | 124 -- .../src/main/java/sca/HelloworldService.java | 28 - .../src/main/java/sca/HelloworldServiceImpl.java | 31 - .../main/java/stripes/action/BaseActionBean.java | 36 - .../main/java/stripes/action/HomeActionBean.java | 48 - .../src/main/resources/StripesResources.properties | 77 - .../src/main/resources/log4j.properties | 51 - .../src/main/webapp/WEB-INF/jsp/home.jsp | 29 - .../src/main/webapp/WEB-INF/jsp/layout.jsp | 42 - .../src/main/webapp/WEB-INF/jsp/taglibs.jsp | 32 - .../src/main/webapp/WEB-INF/web.composite | 34 - .../src/main/webapp/WEB-INF/web.xml | 68 - .../archetype-resources/src/main/webapp/index.html | 27 - .../archetypes/quickstart/META-INF/MANIFEST.MF | 11 - .../tags/2.0-M5-RC3/archetypes/quickstart/pom.xml | 50 - .../META-INF/maven/archetype-metadata.xml | 42 - .../main/resources/META-INF/maven/archetype.xml | 31 - .../src/main/resources/archetype-resources/pom.xml | 143 -- .../src/main/java/HelloworldImpl.java | 27 - .../src/main/java/HelloworldService.java | 25 - .../src/main/webapp/WEB-INF/web.composite | 34 - .../src/main/webapp/WEB-INF/web.xml | 43 - .../archetype-resources/src/main/webapp/hello.jsp | 36 - .../2.0-M5-RC3/compliance-tests/assembly/pom.xml | 126 -- .../tuscany/sca/otest/TuscanyRuntimeBridge.java | 231 -- .../src/test/resources/oasis-sca-tests.properties | 30 - .../tuscany-oasis-sca-tests-errors.properties | 94 - .../2.0-M5-RC3/compliance-tests/java-caa/pom.xml | 121 -- .../tuscany/sca/otest/TuscanyRuntimeBridge.java | 238 -- .../src/test/resources/oasis-sca-tests.properties | 30 - .../tuscany-oasis-sca-tests-errors.properties | 57 - .../2.0-M5-RC3/compliance-tests/java-ci/pom.xml | 119 - .../tuscany/sca/otest/TuscanyRuntimeBridge.java | 238 -- .../src/test/resources/oasis-sca-tests.properties | 30 - .../tuscany-oasis-sca-tests-errors.properties | 33 - .../2.0-M5-RC3/compliance-tests/policy/pom.xml | 136 -- .../tuscany/sca/otest/TuscanyRuntimeBridge.java | 238 -- .../src/test/resources/oasis-sca-tests.properties | 30 - .../tuscany-oasis-sca-tests-errors.properties | 44 - .../tags/2.0-M5-RC3/compliance-tests/pom.xml | 48 - .../distribution/all/manifests/axiom-api-1.2.7.MF | 47 - .../distribution/all/manifests/axiom-api-1.2.8.MF | 49 - .../all/manifests/axis2-kernel-1.5.1.MF | 39 - .../all/manifests/axis2-transport-http-1.5.1.MF | 12 - .../all/manifests/woden-impl-dom-1.0M8.MF | 229 -- .../tags/2.0-M5-RC3/distribution/all/pom.xml | 294 --- .../all/src/main/assembly/bin-default.xml | 37 - .../all/src/main/assembly/bin-distribution.xml | 37 - .../distribution/all/src/main/assembly/src.xml | 45 - .../all/src/main/components/bin-common.xml | 43 - .../all/src/main/components/bin-launcher.xml | 40 - .../all/src/main/components/bin-lib.xml | 55 - .../all/src/main/components/bin-modules.xml | 35 - .../all/src/main/components/bin-samples.xml | 53 - .../all/src/main/components/bin-tracing.xml | 39 - .../distribution/all/src/main/release/bin/INSTALL | 29 - .../distribution/all/src/main/release/bin/LICENSE | 2297 -------------------- .../distribution/all/src/main/release/bin/NOTICE | 5 - .../distribution/all/src/main/release/bin/README | 3 - .../all/src/main/release/launcher/README | 42 - .../all/src/main/release/launcher/default.config | 22 - .../all/src/main/release/launcher/osgi.config | 21 - .../all/src/main/release/launcher/tuscany.bat | 83 - .../all/src/main/release/launcher/tuscany.sh | 54 - .../all/src/main/release/launcher/unmanaged.config | 21 - sca-java-2.x/tags/2.0-M5-RC3/distribution/pom.xml | 38 - .../tags/2.0-M5-RC3/distribution/tomcat/README.txt | 8 - .../tags/2.0-M5-RC3/distribution/tomcat/pom.xml | 40 - .../tomcat/testing/download-tomcat/pom.xml | 82 - .../testing/helloworld-client-webapp/pom.xml | 47 - .../src/main/java/testing/HelloworldService.java | 30 - .../src/main/webapp/WEB-INF/web.composite | 30 - .../src/main/webapp/WEB-INF/web.xml | 31 - .../src/main/webapp/hello.jsp | 36 - .../helloworld-reference-contribution/pom.xml | 45 - .../src/main/java/testing/HelloworldRefImpl.java | 38 - .../src/main/java/testing/HelloworldService.java | 28 - .../main/resources/META-INF/sca-contribution.xml | 23 - .../src/main/resources/helloworld.composite | 29 - .../testing/helloworld-scaclient-jsp/pom.xml | 48 - .../src/main/java/testing/HelloworldService.java | 28 - .../src/main/webapp/META-INF/sca-contribution.xml | 28 - .../src/main/webapp/WEB-INF/web.xml | 31 - .../src/main/webapp/hello.jsp | 41 - .../testing/helloworld-scaclient-servlet/pom.xml | 53 - .../src/main/java/testing/HelloworldService.java | 28 - .../src/main/java/testing/HelloworldServlet.java | 64 - .../src/main/webapp/META-INF/sca-contribution.xml | 28 - .../src/main/webapp/WEB-INF/web.xml | 41 - .../src/main/webapp/hello.html | 52 - .../helloworld-service-contribution/pom.xml | 45 - .../src/main/java/testing/HelloworldImpl.java | 38 - .../src/main/java/testing/HelloworldService.java | 28 - .../main/resources/META-INF/sca-contribution.xml | 23 - .../src/main/resources/helloworld.composite | 28 - .../tomcat/testing/legal-checks/pom.xml | 36 - .../src/test/java/itest/JarsInLICENSETestCase.java | 147 -- .../2.0-M5-RC3/distribution/tomcat/testing/pom.xml | 42 - .../distribution/tomcat/tomcat-hook/LICENSE | 205 -- .../tomcat/tomcat-hook/META-INF/MANIFEST.MF | 24 - .../distribution/tomcat/tomcat-hook/NOTICE | 7 - .../distribution/tomcat/tomcat-hook/pom.xml | 70 - .../sca/tomcat/TuscanyAnnotationsProcessor.java | 85 - .../tuscany/sca/tomcat/TuscanyContextConfig.java | 183 -- .../tuscany/sca/tomcat/TuscanyHostConfig.java | 167 -- .../sca/tomcat/TuscanyLifecycleListener.java | 161 -- .../tuscany/sca/tomcat/TuscanyStandardContext.java | 196 -- .../tomcat/tomcat-servlet/META-INF/MANIFEST.MF | 11 - .../distribution/tomcat/tomcat-servlet/pom.xml | 63 - .../java/org/apache/tuscany/sca/war/Installer.java | 374 ---- .../apache/tuscany/sca/war/InstallerServlet.java | 70 - .../distribution/tomcat/tomcat-war/pom.xml | 105 - .../tomcat/tomcat-war/src/main/assembly/war.xml | 98 - .../tomcat/tomcat-war/src/main/webapp/LICENSE | 442 ---- .../tomcat/tomcat-war/src/main/webapp/NOTICE | 79 - .../tomcat-war/src/main/webapp/WEB-INF/web.xml | 40 - .../tomcat-war/src/main/webapp/installer.jsp | 106 - sca-java-2.x/tags/2.0-M5-RC3/features/all/pom.xml | 112 - sca-java-2.x/tags/2.0-M5-RC3/features/api/pom.xml | 58 - .../tags/2.0-M5-RC3/features/binding-ws/pom.xml | 107 - sca-java-2.x/tags/2.0-M5-RC3/features/core/pom.xml | 230 -- .../tags/2.0-M5-RC3/features/ejava/pom.xml | 177 -- sca-java-2.x/tags/2.0-M5-RC3/features/osgi/pom.xml | 109 - sca-java-2.x/tags/2.0-M5-RC3/features/pom.xml | 51 - .../tags/2.0-M5-RC3/features/process/pom.xml | 57 - sca-java-2.x/tags/2.0-M5-RC3/features/sdo/pom.xml | 58 - .../tags/2.0-M5-RC3/features/web20/pom.xml | 145 -- .../tags/2.0-M5-RC3/features/webapp/pom.xml | 96 - .../tags/2.0-M5-RC3/features/webservice/pom.xml | 107 - sca-java-2.x/tags/2.0-M5-RC3/itest/T3558/pom.xml | 45 - .../tuscany/sca/itest/t3558/T3558TestCase.java | 72 - .../T3558/src/test/resources/sample-store-all.jar | Bin 15723 -> 0 bytes .../src/test/resources/sample-store-client.jar | Bin 4829 -> 0 bytes .../T3558/src/test/resources/sample-store.jar | Bin 13510 -> 0 bytes .../2.0-M5-RC3/itest/base/dependencies/pom.xml | 59 - .../dependencies/ValidateDependenciesTestCase.java | 58 - sca-java-2.x/tags/2.0-M5-RC3/itest/base/pom.xml | 36 - .../itest/bpel/helloworld-reference/pom.xml | 286 --- .../src/test/java/greetings/GreetingsService.java | 31 - .../test/java/greetings/GreetingsServiceImpl.java | 33 - .../src/test/java/greetings/GreetingsTestCase.java | 65 - .../test/java/helloworld/HelloWorldService.java | 29 - .../java/helloworld/HelloWorldServiceImpl.java | 47 - .../test/java/helloworld/HelloWorldTestCase.java | 64 - .../test/resources/greetings/greetings.composite | 32 - .../src/test/resources/greetings/greetings.wsdl | 87 - .../src/test/resources/helloworld/helloworld.bpel | 84 - .../test/resources/helloworld/helloworld.composite | 36 - .../src/test/resources/helloworld/helloworld.wsdl | 94 - .../src/test/resources/log4j.properties | 36 - .../2.0-M5-RC3/itest/bpel/helloworld-ws/pom.xml | 175 -- .../src/test/java/helloworld/HelloWorld.java | 45 - .../test/java/helloworld/HelloWorldTestCase.java | 71 - .../src/test/resources/helloworld/helloworld.bpel | 66 - .../test/resources/helloworld/helloworld.composite | 32 - .../src/test/resources/helloworld/helloworld.wsdl | 82 - .../src/test/resources/log4j.properties | 36 - .../tags/2.0-M5-RC3/itest/bpel/helloworld/pom.xml | 264 --- .../src/test/java/helloworld/HelloWorld.java | 45 - .../test/java/helloworld/HelloWorldTestCase.java | 73 - .../src/test/resources/helloworld/helloworld.bpel | 78 - .../test/resources/helloworld/helloworld.composite | 36 - .../src/test/resources/helloworld/helloworld.wsdl | 94 - .../helloworld/src/test/resources/log4j.properties | 36 - sca-java-2.x/tags/2.0-M5-RC3/itest/bpel/pom.xml | 39 - sca-java-2.x/tags/2.0-M5-RC3/itest/builder/pom.xml | 112 - .../tuscany/sca/itest/builder/ComponentDImpl.java | 43 - .../ComponentDReferenceMultiplicityImpl.java | 48 - .../tuscany/sca/itest/builder/ComponentEImpl.java | 36 - .../tuscany/sca/itest/builder/ComponentFImpl.java | 36 - .../apache/tuscany/sca/itest/builder/Service3.java | 34 - .../tuscany/sca/itest/builder/Service3a.java | 34 - .../scenario1/META-INF/sca-contribution.xml | 23 - .../main/resources/scenario1/scenario1.composite | 45 - .../main/resources/scenario1/scenario1a.composite | 47 - .../scenario10/META-INF/sca-contribution.xml | 24 - .../main/resources/scenario10/scenario10.composite | 62 - .../resources/scenario10/scenario10a.composite | 61 - .../src/main/resources/scenario10/service3.wsdl | 63 - .../scenario11/META-INF/sca-contribution.xml | 24 - .../main/resources/scenario11/scenario11.composite | 59 - .../resources/scenario11/scenario11a.composite | 64 - .../src/main/resources/scenario11/service3.wsdl | 63 - .../scenario12/META-INF/sca-contribution.xml | 24 - .../main/resources/scenario12/scenario12.composite | 58 - .../resources/scenario12/scenario12a.composite | 64 - .../scenario13/META-INF/sca-contribution.xml | 24 - .../main/resources/scenario13/scenario13.composite | 58 - .../resources/scenario13/scenario13a.composite | 64 - .../scenario2/META-INF/sca-contribution.xml | 23 - .../main/resources/scenario2/scenario2.composite | 45 - .../main/resources/scenario2/scenario2a.composite | 47 - .../scenario3/META-INF/sca-contribution.xml | 24 - .../main/resources/scenario3/scenario3.composite | 44 - .../main/resources/scenario3/scenario3a.composite | 48 - .../scenario4/META-INF/sca-contribution.xml | 24 - .../main/resources/scenario4/scenario4.composite | 44 - .../main/resources/scenario4/scenario4a.composite | 48 - .../scenario5/META-INF/sca-contribution.xml | 24 - .../main/resources/scenario5/scenario5.composite | 46 - .../main/resources/scenario5/scenario5a.composite | 47 - .../src/main/resources/scenario5/scenarios.wsdl | 63 - .../scenario6/META-INF/sca-contribution.xml | 24 - .../main/resources/scenario6/scenario6.composite | 47 - .../main/resources/scenario6/scenario6a.composite | 47 - .../src/main/resources/scenario6/scenarios.wsdl | 63 - .../scenario7/META-INF/sca-contribution.xml | 24 - .../main/resources/scenario7/scenario7.composite | 45 - .../main/resources/scenario7/scenario7a.composite | 49 - .../src/main/resources/scenario7/scenarios.wsdl | 63 - .../scenario8/META-INF/sca-contribution.xml | 24 - .../main/resources/scenario8/scenario8.composite | 44 - .../main/resources/scenario8/scenario8a.composite | 50 - .../src/main/resources/scenario8/scenarios.wsdl | 63 - .../scenario9/META-INF/sca-contribution.xml | 24 - .../main/resources/scenario9/scenario9.composite | 60 - .../main/resources/scenario9/scenario9a.composite | 61 - .../tuscany/sca/itest/builder/BuilderTestCase.java | 814 ------- .../sca/itest/builder/CustomCompositeBuilder.java | 99 - .../tuscany/sca/itest/builder/TestUtils.java | 319 --- .../tags/2.0-M5-RC3/itest/callback-api/pom.xml | 58 - .../tuscany/sca/test/CallBackApiCallBack.java | 38 - .../apache/tuscany/sca/test/CallBackApiClient.java | 30 - .../tuscany/sca/test/CallBackApiClientImpl.java | 201 -- .../tuscany/sca/test/CallBackApiService.java | 50 - .../tuscany/sca/test/CallBackApiServiceImpl.java | 113 - .../src/main/resources/CallBackApiTest.composite | 33 - .../main/resources/META-INF/sca-contribution.xml | 23 - .../tuscany/sca/test/CallBackApiTestCase.java | 70 - .../2.0-M5-RC3/itest/callback-basic-ws/pom.xml | 79 - .../tuscany/sca/test/CallBackBasicCallBack.java | 33 - .../tuscany/sca/test/CallBackBasicClient.java | 28 - .../tuscany/sca/test/CallBackBasicClientImpl.java | 129 -- .../tuscany/sca/test/CallBackBasicService.java | 37 - .../tuscany/sca/test/CallBackBasicServiceImpl.java | 56 - .../src/main/resources/CallBackBasicTest.composite | 43 - .../main/resources/META-INF/sca-contribution.xml | 23 - .../tuscany/sca/test/CallBackBasicTestCase.java | 56 - .../tags/2.0-M5-RC3/itest/callback-basic/pom.xml | 58 - .../tuscany/sca/test/CallBackBasicCallBack.java | 33 - .../tuscany/sca/test/CallBackBasicClient.java | 28 - .../tuscany/sca/test/CallBackBasicClientImpl.java | 129 -- .../tuscany/sca/test/CallBackBasicService.java | 37 - .../tuscany/sca/test/CallBackBasicServiceImpl.java | 56 - .../src/main/resources/CallBackBasicTest.composite | 33 - .../main/resources/META-INF/sca-contribution.xml | 23 - .../tuscany/sca/test/CallBackBasicTestCase.java | 56 - .../2.0-M5-RC3/itest/callback-complex-type/pom.xml | 53 - .../tuscany/sca/test/CallBackCTypeCallBack.java | 33 - .../tuscany/sca/test/CallBackCTypeClient.java | 28 - .../tuscany/sca/test/CallBackCTypeClientImpl.java | 138 -- .../tuscany/sca/test/CallBackCTypeService.java | 37 - .../tuscany/sca/test/CallBackCTypeServiceImpl.java | 59 - .../main/resources/CallBackCTypeClient.composite | 33 - .../test/CallBackCTypeServiceImpl.componentType | 28 - .../tuscany/sca/test/CallBackCTypeTestCase.java | 54 - .../itest/callback-multiple-wires/pom.xml | 53 - .../apache/tuscany/sca/test/callback/MyClient.java | 27 - .../tuscany/sca/test/callback/MyClientImpl1.java | 49 - .../tuscany/sca/test/callback/MyClientImpl2.java | 49 - .../tuscany/sca/test/callback/MyService.java | 32 - .../sca/test/callback/MyServiceCallback.java | 27 - .../tuscany/sca/test/callback/MyServiceImpl.java | 50 - .../main/resources/CallbackMultiWireTest.composite | 38 - .../test/callback/CallbackMultiWireTestCase.java | 64 - .../itest/callback-separatethread/pom.xml | 53 - .../sca/itest/CallBackSeparateThreadClient.java | 34 - .../itest/CallBackSeparateThreadClientImpl.java | 186 -- .../tuscany/sca/itest/EventProcessorCallBack.java | 37 - .../tuscany/sca/itest/EventProcessorService.java | 45 - .../sca/itest/EventProcessorServiceImpl.java | 195 -- .../resources/CallBackSeparateThreadTest.composite | 31 - .../sca/itest/CallBackSeparateThreadTestCase.java | 73 - .../itest/callback-two-composites/pom.xml | 79 - .../tuscany/sca/test/CallBackBasicCallBack.java | 33 - .../tuscany/sca/test/CallBackBasicClient.java | 28 - .../tuscany/sca/test/CallBackBasicClientImpl.java | 129 -- .../tuscany/sca/test/CallBackBasicService.java | 37 - .../tuscany/sca/test/CallBackBasicServiceImpl.java | 56 - .../src/main/resources/CallBackReference.composite | 33 - .../src/main/resources/CallBackService.composite | 31 - .../main/resources/META-INF/sca-contribution.xml | 24 - .../sca/test/CallBackTwoCompositesTestCase.java | 56 - .../2.0-M5-RC3/itest/callback-two-nodes/pom.xml | 86 - .../tuscany/sca/test/CallBackBasicCallBack.java | 33 - .../tuscany/sca/test/CallBackBasicClient.java | 28 - .../tuscany/sca/test/CallBackBasicClientImpl.java | 129 -- .../tuscany/sca/test/CallBackBasicService.java | 37 - .../tuscany/sca/test/CallBackBasicServiceImpl.java | 56 - .../src/main/resources/CallBackReference.composite | 33 - .../src/main/resources/CallBackService.composite | 31 - .../main/resources/META-INF/sca-contribution.xml | 24 - .../tuscany/sca/test/CallBackTwoNodesTestCase.java | 78 - .../tags/2.0-M5-RC3/itest/component-type/pom.xml | 53 - .../src/main/java/calculator/AddService.java | 28 - .../src/main/java/calculator/AddServiceImpl.java | 30 - .../src/main/java/calculator/CalculatorClient.java | 49 - .../main/java/calculator/CalculatorService.java | 34 - .../java/calculator/CalculatorServiceImpl.java | 63 - .../src/main/java/calculator/DivideService.java | 28 - .../main/java/calculator/DivideServiceImpl.java | 30 - .../src/main/java/calculator/MultiplyService.java | 28 - .../main/java/calculator/MultiplyServiceImpl.java | 30 - .../src/main/java/calculator/SubtractService.java | 28 - .../main/java/calculator/SubtractServiceImpl.java | 30 - .../src/main/resources/Calculator.composite | 49 - .../calculator/AddServiceImpl.componentType | 27 - .../calculator/CalculatorServiceImpl.componentType | 43 - .../calculator/DivideServiceImpl.componentType | 27 - .../calculator/MultiplyServiceImpl.componentType | 27 - .../calculator/SubtractServiceImpl.componentType | 27 - .../test/java/calculator/CalculatorTestCase.java | 60 - .../2.0-M5-RC3/itest/contribution-folder/pom.xml | 46 - .../test/java/calculator/CalculatorService.java | 31 - .../test/java/test/ContributionFolderTestCase.java | 55 - .../repository/folderWithJars/Calculator.composite | 49 - .../folderWithJars/META-INF/sca-contribution.xml | 23 - .../repository/folderWithJars/service.jar | Bin 2380 -> 0 bytes .../repository/folderWithJars/serviceImpl.jar | Bin 4655 -> 0 bytes .../test/resources/repository3/contribution.zip | Bin 5478 -> 0 bytes .../export-composite/pom.xml | 67 - .../src/main/java/hello/Hello.java | 30 - .../src/main/java/hello/HelloImpl.java | 33 - .../main/resources/META-INF/sca-contribution.xml | 25 - .../src/main/resources/hello.composite | 31 - .../sca/test/contribution/HelloTestCase.java | 91 - .../contribution-import-export/export-java/pom.xml | 67 - .../main/java/helloworld/HelloWorldService.java | 30 - .../main/resources/META-INF/sca-contribution.xml | 24 - .../helloworld/HelloWorldImpl.componentType | 30 - .../export-resource/pom.xml | 31 - .../main/resources/META-INF/sca-contribution.xml | 24 - .../src/main/resources/ufservices/store.html | 27 - .../contribution-import-export/export-wsdl/pom.xml | 31 - .../main/resources/META-INF/sca-contribution.xml | 24 - .../export-wsdl/src/main/resources/helloworld.wsdl | 76 - .../export-wsdl/src/main/resources/helloworld.xsd | 35 - .../import-composite/pom.xml | 73 - .../src/main/java/helloworld/HelloWorldImpl.java | 38 - .../src/main/java/helloworld/HelloWorldServer.java | 46 - .../main/java/helloworld/HelloWorldService.java | 30 - .../main/resources/META-INF/sca-contribution.xml | 27 - .../src/main/resources/helloworld.wsdl | 76 - .../src/main/resources/helloworld.xsd | 35 - .../src/main/resources/helloworldws.composite | 39 - .../contribution/HelloWorldServerTestCase.java | 126 -- .../contribution-import-export/import-java/pom.xml | 73 - .../src/main/java/helloworld/HelloWorldImpl.java | 33 - .../main/resources/META-INF/sca-contribution.xml | 25 - .../src/main/resources/helloworldws.composite | 29 - .../contribution/HelloWorldServerTestCase.java | 127 -- .../import-resource/pom.xml | 102 - .../main/resources/META-INF/sca-contribution.xml | 25 - .../src/main/resources/store.composite | 33 - .../sca/test/contribution/StoreTestCase.java | 129 -- .../contribution-import-export/import-wsdl/pom.xml | 73 - .../src/main/java/helloworld/HelloWorldImpl.java | 33 - .../src/main/java/helloworld/HelloWorldServer.java | 46 - .../main/java/helloworld/HelloWorldService.java | 30 - .../main/resources/META-INF/sca-contribution.xml | 25 - .../src/main/resources/helloworldws.composite | 33 - .../contribution/HelloWorldServerTestCase.java | 137 -- .../itest/contribution-import-export/pom.xml | 56 - .../tags/2.0-M5-RC3/itest/contribution-zip/pom.xml | 45 - .../test/java/calculator/CalculatorService.java | 31 - .../contribution/zip/ContributionZIPTestCase.java | 56 - .../src/test/resources/repository/contribution.zip | Bin 7287 -> 0 bytes sca-java-2.x/tags/2.0-M5-RC3/itest/corba/pom.xml | 144 -- .../sca/test/corba/ScenarioFiveTestCase.java | 53 - .../sca/test/corba/ScenarioFourTestCase.java | 153 -- .../sca/test/corba/ScenarioOneTestCase.java | 373 ---- .../sca/test/corba/ScenarioSixTestCase.java | 230 -- .../sca/test/corba/ScenarioThreeTestCase.java | 132 -- .../sca/test/corba/ScenarioTwoTestCase.java | 141 -- .../tuscany/sca/test/corba/TestCorbaHost.java | 56 - .../test/corba/TestCorbaHostModuleActivator.java | 50 - .../sca/test/corba/generated/AnnotatedStruct.java | 43 - .../corba/generated/AnnotatedStructHelper.java | 97 - .../corba/generated/AnnotatedStructHolder.java | 57 - .../tuscany/sca/test/corba/generated/Color.java | 61 - .../sca/test/corba/generated/ColorHelper.java | 72 - .../sca/test/corba/generated/ColorHolder.java | 57 - .../sca/test/corba/generated/InnerStruct.java | 47 - .../test/corba/generated/InnerStructHelper.java | 112 - .../test/corba/generated/InnerStructHolder.java | 57 - .../sca/test/corba/generated/InnerUnion.java | 130 -- .../sca/test/corba/generated/InnerUnionHelper.java | 124 -- .../sca/test/corba/generated/InnerUnionHolder.java | 56 - .../test/corba/generated/LongSequenceHelper.java | 79 - .../test/corba/generated/LongSequenceHolder.java | 58 - .../sca/test/corba/generated/RichStruct.java | 47 - .../sca/test/corba/generated/RichStructHelper.java | 110 - .../sca/test/corba/generated/RichStructHolder.java | 57 - .../sca/test/corba/generated/RichUnion.java | 195 -- .../sca/test/corba/generated/RichUnionHelper.java | 175 -- .../sca/test/corba/generated/RichUnionHolder.java | 56 - .../sca/test/corba/generated/ScenarioOne.java | 32 - .../test/corba/generated/ScenarioOneHelper.java | 104 - .../test/corba/generated/ScenarioOneHolder.java | 57 - .../corba/generated/ScenarioOneOperations.java | 33 - .../sca/test/corba/generated/ScenarioSix.java | 32 - .../test/corba/generated/ScenarioSixHelper.java | 104 - .../test/corba/generated/ScenarioSixHolder.java | 57 - .../corba/generated/ScenarioSixOperations.java | 35 - .../sca/test/corba/generated/ScenarioTwo.java | 34 - .../test/corba/generated/ScenarioTwoHelper.java | 106 - .../test/corba/generated/ScenarioTwoHolder.java | 59 - .../corba/generated/ScenarioTwoOperations.java | 36 - .../test/corba/generated/StringArrayHelper.java | 95 - .../test/corba/generated/StringArrayHolder.java | 58 - .../test/corba/generated/StringSequenceHelper.java | 81 - .../test/corba/generated/StringSequenceHolder.java | 58 - .../corba/generated/TwoDimLongSequenceHelper.java | 83 - .../corba/generated/TwoDimLongSequenceHolder.java | 58 - .../test/corba/generated/UnexpectedException.java | 52 - .../corba/generated/UnexpectedExceptionHelper.java | 98 - .../corba/generated/UnexpectedExceptionHolder.java | 57 - .../sca/test/corba/generated/WrongColor.java | 55 - .../sca/test/corba/generated/WrongColorHelper.java | 105 - .../sca/test/corba/generated/WrongColorHolder.java | 57 - .../test/corba/generated/_ScenarioOneImplBase.java | 91 - .../sca/test/corba/generated/_ScenarioOneStub.java | 84 - .../test/corba/generated/_ScenarioSixImplBase.java | 105 - .../sca/test/corba/generated/_ScenarioSixStub.java | 119 - .../test/corba/generated/_ScenarioTwoImplBase.java | 93 - .../sca/test/corba/generated/_ScenarioTwoStub.java | 99 - .../tuscany/sca/test/corba/types/ScenarioFive.java | 33 - .../test/corba/types/ScenarioFiveComponent.java | 41 - .../sca/test/corba/types/ScenarioFiveImpl.java | 32 - .../tuscany/sca/test/corba/types/ScenarioFour.java | 38 - .../test/corba/types/ScenarioFourComponent.java | 41 - .../test/corba/types/ScenarioFourException.java | 41 - .../sca/test/corba/types/ScenarioFourImpl.java | 44 - .../sca/test/corba/types/ScenarioFourStruct.java | 40 - .../sca/test/corba/types/ScenarioOneComponent.java | 46 - .../sca/test/corba/types/ScenarioOneServant.java | 45 - .../sca/test/corba/types/ScenarioSixServant.java | 46 - .../sca/test/corba/types/ScenarioTwoServant.java | 42 - .../sca/test/corba/types/TAnnotatedStruct.java | 40 - .../tuscany/sca/test/corba/types/TColor.java | 62 - .../tuscany/sca/test/corba/types/TInnerStruct.java | 42 - .../tuscany/sca/test/corba/types/TInnerUnion.java | 59 - .../tuscany/sca/test/corba/types/TRichStruct.java | 42 - .../tuscany/sca/test/corba/types/TRichUnion.java | 95 - .../tuscany/sca/test/corba/types/TScenarioOne.java | 33 - .../test/corba/types/TScenarioOneComponent.java | 43 - .../sca/test/corba/types/TScenarioOneServant.java | 44 - .../tuscany/sca/test/corba/types/TScenarioSix.java | 37 - .../test/corba/types/TScenarioSixComponent.java | 41 - .../sca/test/corba/types/TScenarioSixServant.java | 42 - .../sca/test/corba/types/TScenarioThree.java | 42 - .../test/corba/types/TScenarioThreeComponent.java | 41 - .../test/corba/types/TScenarioThreeServant.java | 52 - .../tuscany/sca/test/corba/types/TScenarioTwo.java | 32 - .../test/corba/types/TScenarioTwoComponent.java | 41 - .../sca/test/corba/types/TScenarioTwoServant.java | 38 - .../org.apache.tuscany.sca.core.ModuleActivator | 18 - .../src/test/resources/ScenarioFive.composite | 41 - .../src/test/resources/ScenarioFour.composite | 56 - .../corba/src/test/resources/ScenarioOne.composite | 111 - .../corba/src/test/resources/ScenarioSix.composite | 41 - .../src/test/resources/ScenarioThree.composite | 43 - .../corba/src/test/resources/ScenarioTwo.composite | 43 - .../corba/src/test/resources/itest_scenario.idl | 110 - .../corba/src/test/resources/scenariofour.xsd | 31 - .../itest/databindings/jaxb-bottom-up/pom.xml | 188 -- .../itest/databindings/jaxb/AClientService.java | 29 - .../sca/itest/databindings/jaxb/AService.java | 32 - .../tuscany/sca/itest/databindings/jaxb/Bean1.java | 66 - .../sca/itest/databindings/jaxb/Bean10.java | 25 - .../sca/itest/databindings/jaxb/Bean11.java | 25 - .../tuscany/sca/itest/databindings/jaxb/Bean2.java | 59 - .../tuscany/sca/itest/databindings/jaxb/Bean3.java | 56 - .../sca/itest/databindings/jaxb/Bean31.java | 56 - .../databindings/jaxb/GenericsLocalService.java | 42 - .../itest/databindings/jaxb/GenericsService.java | 30 - .../databindings/jaxb/GenericsServiceClient.java | 43 - .../databindings/jaxb/HelloLocalServiceSimple.java | 37 - .../databindings/jaxb/HelloServiceSimple.java | 29 - .../jaxb/HelloServiceSimpleClient.java | 38 - .../databindings/jaxb/PrimitivesLocalService.java | 47 - .../itest/databindings/jaxb/PrimitivesService.java | 29 - .../databindings/jaxb/PrimitivesServiceClient.java | 48 - .../jaxb/StandardTypesLocalService.java | 78 - .../databindings/jaxb/StandardTypesService.java | 30 - .../jaxb/StandardTypesServiceClient.java | 79 - .../databindings/jaxb/impl/AClientServiceImpl.java | 38 - .../itest/databindings/jaxb/impl/AServiceImpl.java | 33 - .../jaxb/impl/GenericsLocalServiceClientImpl.java | 77 - .../jaxb/impl/GenericsServiceClientImpl.java | 40 - .../jaxb/impl/GenericsServiceImpl.java | 69 - .../jaxb/impl/GenericsTransformer.java | 125 -- .../impl/HelloLocalServiceSimpleClientImpl.java | 73 - .../jaxb/impl/HelloServiceSimpleClientImpl.java | 38 - .../jaxb/impl/HelloServiceSimpleImpl.java | 86 - .../impl/PrimitivesLocalServiceClientImpl.java | 138 -- .../jaxb/impl/PrimitivesServiceClientImpl.java | 38 - .../jaxb/impl/PrimitivesServiceImpl.java | 151 -- .../impl/StandardTypesLocalServiceClientImpl.java | 157 -- .../jaxb/impl/StandardTypesServiceClientImpl.java | 38 - .../jaxb/impl/StandardTypesServiceImpl.java | 208 -- .../jaxb/impl/StandardTypesTransformer.java | 144 -- .../src/main/resources/aservice.wsdl | 127 -- .../src/main/resources/doclitbarewsdl.composite | 37 - .../src/main/resources/generics-service.composite | 69 - .../src/main/resources/helloservice.composite | 65 - .../src/main/resources/primitivesservice.composite | 66 - .../resources/standard-types-service.composite | 66 - .../databindings/jaxb/DatabindingTestCase.java | 345 --- .../databindings/jaxb/DocLitBareWsdlTestCase.java | 75 - .../jaxb/GenericsDatabindingTestCase.java | 493 ----- .../jaxb/PrimitivesDatabindingTestCase.java | 784 ------- .../jaxb/StandardTypesDatabindingTestCase.java | 1439 ------------ .../itest/databindings/jaxb-top-down/pom.xml | 189 -- .../sca/itest/databindings/jaxb/HelloService.java | 42 - .../databindings/jaxb/HelloServiceClient.java | 41 - .../itest/databindings/jaxb/PrimitivesService.java | 51 - .../databindings/jaxb/PrimitivesServiceClient.java | 50 - .../databindings/jaxb/StandardTypesService.java | 84 - .../jaxb/StandardTypesServiceClient.java | 81 - .../jaxb/impl/HelloServiceClientImpl.java | 73 - .../databindings/jaxb/impl/HelloServiceImpl.java | 86 - .../jaxb/impl/PrimitivesServiceClientImpl.java | 139 -- .../jaxb/impl/PrimitivesServiceImpl.java | 151 -- .../jaxb/impl/StandardTypesServiceClientImpl.java | 159 -- .../jaxb/impl/StandardTypesServiceImpl.java | 207 -- .../jaxb/impl/StandardTypesTransformer.java | 142 -- .../main/resources/wsdl/wrapped/hello-service.wsdl | 371 ---- .../resources/wsdl/wrapped/helloservice.composite | 80 - .../resources/wsdl/wrapped/primitives-service.wsdl | 927 -------- .../wsdl/wrapped/primitivesservice.composite | 80 - .../wsdl/wrapped/standard-types-service.composite | 80 - .../wsdl/wrapped/standard-types-service.wsdl | 1155 ---------- .../jaxb/topdown/DatabindingTestCase.java | 346 --- .../topdown/PrimitivesDatabindingTestCase.java | 849 -------- .../topdown/StandardTypesDatabindingTestCase.java | 1438 ------------ .../tags/2.0-M5-RC3/itest/databindings/pom.xml | 41 - .../itest/distribution/bin-distro-unzip/build.xml | 27 - .../itest/distribution/bin-distro-unzip/pom.xml | 128 -- .../contribution-binding-rmi-calculator/build.xml | 39 - .../contribution-binding-rmi-calculator/pom.xml | 68 - .../contribution-binding-sca-calculator/build.xml | 40 - .../contribution-binding-sca-calculator/pom.xml | 87 - .../contribution-binding-ws-calculator/build.xml | 40 - .../contribution-binding-ws-calculator/pom.xml | 69 - .../build.xml | 40 - .../pom.xml | 87 - .../distribution/launcher-embedded-jse/build.xml | 41 - .../distribution/launcher-embedded-jse/pom.xml | 69 - .../distribution/launcher-embedded-osgi/build.xml | 45 - .../distribution/launcher-embedded-osgi/pom.xml | 69 - .../itest/distribution/legal-checks/pom.xml | 47 - .../src/test/java/itest/JarsInLICENSETestCase.java | 162 -- .../tags/2.0-M5-RC3/itest/distribution/pom.xml | 71 - .../2.0-M5-RC3/itest/domains/distributed/pom.xml | 51 - .../src/test/java/itest/Helloworld.java | 28 - .../src/test/java/itest/StandaloneTestCase.java | 46 - .../2.0-M5-RC3/itest/domains/helloworld/pom.xml | 83 - .../src/main/java/itest/HelloworldImpl.java | 38 - .../main/resources/META-INF/sca-contribution.xml | 23 - .../src/main/resources/helloworld.composite | 29 - .../2.0-M5-RC3/itest/domains/interfaces/pom.xml | 51 - .../interfaces/src/main/java/itest/Helloworld.java | 28 - sca-java-2.x/tags/2.0-M5-RC3/itest/domains/pom.xml | 38 - .../2.0-M5-RC3/itest/domains/standalone/pom.xml | 57 - .../src/test/java/itest/StandaloneTestCase.java | 66 - .../tags/2.0-M5-RC3/itest/endpoints/pom.xml | 68 - .../src/test/java/helloworld/HelloWorldImpl.java | 28 - .../test/java/helloworld/HelloWorldService.java | 28 - .../src/test/java/test/EndpointsTestCase.java | 110 - .../test/java/test/NestedEndpointsTestCase.java | 110 - .../itest/endpoints/src/test/java/test/Utils.java | 70 - .../src/test/resources/helloworld.composite | 116 - .../endpoints/src/test/resources/nested.composite | 30 - .../tags/2.0-M5-RC3/itest/exceptions/pom.xml | 53 - .../tuscany/sca/test/exceptions/Checked.java | 57 - .../sca/test/exceptions/ExceptionHandler.java | 32 - .../test/exceptions/ExceptionRemoteThrower.java | 30 - .../sca/test/exceptions/ExceptionThrower.java | 37 - .../tuscany/sca/test/exceptions/UnChecked.java | 57 - .../test/exceptions/impl/ExceptionHandlerImpl.java | 115 - .../impl/ExceptionRemoteThrowerImpl.java | 44 - .../test/exceptions/impl/ExceptionThrowerImpl.java | 45 - .../impl/RemoteExceptionHandlerImpl.java | 116 - .../src/main/resources/ExceptionTest.composite | 41 - .../sca/test/exceptions/ExceptionsTestCase.java | 85 - .../2.0-M5-RC3/itest/implementation-spring/pom.xml | 92 - .../java/bigbank/stockquote/StockQuoteImpl.java | 38 - .../java/bigbank/stockquote/StockQuoteService.java | 30 - .../src/main/java/calculator/AddService.java | 28 - .../src/main/java/calculator/AddServiceImpl.java | 35 - .../main/java/calculator/CalculatorService.java | 37 - .../java/calculator/CalculatorServiceImpl.java | 79 - .../src/main/java/calculator/DivideService.java | 28 - .../main/java/calculator/DivideServiceImpl.java | 35 - .../src/main/java/calculator/MultiplyService.java | 28 - .../main/java/calculator/MultiplyServiceImpl.java | 35 - .../src/main/java/calculator/SubtractService.java | 28 - .../main/java/calculator/SubtractServiceImpl.java | 35 - .../security/CalculatorCallbackHandler.java | 50 - .../java/calculator/security/JaasLoginModule.java | 178 -- .../java/calculator/security/UserPrincipal.java | 66 - .../access/SCAApplicationContextProvider.java | 37 - .../src/main/java/helloworld/HelloWorld.java | 35 - .../src/main/java/helloworld/HelloWorldImpl.java | 38 - .../src/main/java/helloworld/HelloWorldProxy.java | 42 - .../src/main/java/mock/TestBean.java | 31 - .../src/main/java/mock/TestBeanImpl.java | 42 - .../src/main/java/mock/TestHelloWorldBean.java | 39 - .../src/main/java/mock/TestReference.java | 27 - .../src/main/java/mock/TestReferenceBean.java | 57 - .../src/main/java/mock/TestSCAPropertyBean.java | 55 - .../spring/annotations/CalculatorServiceImpl.java | 131 -- .../context/access/CalculatorService-context.xml | 45 - .../context/access/ContextAccess.composite | 49 - .../context/imports/ContextImports.composite | 49 - .../META-INF/spring/CalculatorService-context.xml | 39 - .../META-INF/spring/SpringImport-context.xml | 29 - .../context/multiple/MultipleContext.composite | 30 - .../multiple/springapp/META-INF/MANIFEST.MF | 3 - .../META-INF/spring/SpringHelloWorld-context.xml | 31 - .../META-INF/spring/StockQuoteService-context.xml | 36 - .../springapp/META-INF/spring/beanRefContext.xml | 34 - .../implementation/policies/CalculatorJass.config | 3 - .../policies/CalculatorLogMessages.properties | 18 - .../policies/ImplementationPolicies.composite | 58 - .../policies/META-INF/definitions.xml | 51 - .../META-INF/spring/CalculatorService-context.xml | 39 - .../location/folder/SpringFolderLocation.composite | 40 - .../location/folder/springapp/META-INF/MANIFEST.MF | 3 - .../META-INF/spring/SpringSCAProperty-context.xml | 34 - .../location/jar/SpringJarLocation.composite | 40 - .../main/resources/location/jar/spring-context.jar | Bin 1454 -> 0 bytes .../spring/SpringDelegationHelloWorld-context.xml | 39 - .../META-INF/spring/SpringHelloWorld-context.xml | 31 - .../spring/SpringDelegationHelloWorld.composite | 33 - .../sca/itest/spring/SpringHelloWorld.composite | 33 - .../spring/SpringExplicitReference-context.xml | 33 - .../spring/SpringImplicitReference-context.xml | 34 - .../references/SpringExplicitReference.composite | 33 - .../references/SpringImplicitReference.composite | 40 - .../spring/SpringExplicitService-context.xml | 39 - .../spring/SpringImplicitService-context.xml | 31 - .../sca/services/SpringExplicitService.composite | 34 - .../sca/services/SpringImplicitService.composite | 33 - .../spring/annotations/Calculator.composite | 60 - .../annotations/CalculatorService-context.xml | 41 - .../test/java/context/access/CalculatorClient.java | 59 - .../java/context/access/ContextAccessTestCase.java | 32 - .../java/context/imports/CalculatorClient.java | 53 - .../context/imports/ContextImportsTestCase.java | 32 - .../context/multiple/MultipleContextTestCase.java | 32 - .../java/context/multiple/StockQuoteServer.java | 54 - .../implementation/policies/CalculatorClient.java | 77 - .../policies/ImplementationPoliciesTestCase.java | 32 - .../folder/SpringFolderLocationTestCase.java | 45 - .../location/jar/SpringJarLocationTestCase.java | 45 - .../itest/spring/AbstractHelloWorldTestCase.java | 44 - .../sca/itest/spring/AbstractSCATestCase.java | 58 - .../tuscany/sca/itest/spring/HelloWorld.java | 34 - .../tuscany/sca/itest/spring/HelloWorldProxy.java | 41 - .../spring/SpringDelegationHelloWorldTestCase.java | 35 - .../sca/itest/spring/SpringHelloWorldTestCase.java | 36 - .../sca/itest/spring/TestHelloWorldBean.java | 36 - .../itest/spring/TestHelloWorldDelegatorBean.java | 40 - .../SpringExplicitReferenceTestCase.java | 45 - .../SpringImplicitReferenceTestCase.java | 48 - .../services/SpringExplicitServiceTestCase.java | 40 - .../services/SpringImplicitServiceTestCase.java | 38 - .../java/spring/annotations/CalculatorClient.java | 55 - .../annotations/SpringAnnotationsTestCase.java | 32 - .../2.0-M5-RC3/itest/import-export/exports/pom.xml | 40 - .../tuscany/sca/itest/exports/Helloworld.java | 27 - .../main/resources/META-INF/sca-contribution.xml | 23 - .../2.0-M5-RC3/itest/import-export/imports/pom.xml | 46 - .../tuscany/sca/itest/imports/HelloworldImpl.java | 30 - .../src/main/resources/Helloworld.composite | 29 - .../main/resources/META-INF/sca-contribution.xml | 24 - .../tags/2.0-M5-RC3/itest/import-export/pom.xml | 38 - .../2.0-M5-RC3/itest/import-export/tests/pom.xml | 40 - .../apache/tuscany/sca/itests/TestTestCase.java | 60 - .../tags/2.0-M5-RC3/itest/interfaces/pom.xml | 53 - .../itest/interfaces/LocalCallbackInterface.java | 30 - .../sca/itest/interfaces/LocalClientComponent.java | 47 - .../itest/interfaces/LocalClientComponentImpl.java | 83 - .../itest/interfaces/LocalServiceComponent.java | 37 - .../interfaces/LocalServiceComponentImpl.java | 49 - .../sca/itest/interfaces/ParameterObject.java | 48 - .../itest/interfaces/RemoteCallbackInterface.java | 33 - .../itest/interfaces/RemoteClientComponent.java | 64 - .../interfaces/RemoteClientComponentImpl.java | 81 - .../itest/interfaces/RemoteServiceComponent.java | 38 - .../interfaces/RemoteServiceComponentImpl.java | 54 - .../invalid/InvalidRemoteAttribute.composite | 28 - .../interfaces/valid/InterfacesTest.composite | 40 - .../sca/itest/interfaces/InterfacesTestCase.java | 137 -- .../interfaces/InvalidRemoteAttributeTestCase.java | 52 - .../2.0-M5-RC3/itest/jaxws-asyncclient/pom.xml | 53 - .../src/main/java/stock/StockQuote.java | 36 - .../src/main/java/stock/StockQuoteClient.java | 69 - .../src/main/java/stock/StockQuoteImpl.java | 34 - .../src/main/java/stock/StockQuoteRef.java | 39 - .../main/resources/META-INF/sca-contribution.xml | 23 - .../src/main/resources/StockQuote.composite | 33 - .../src/test/java/itest/AsyncServiceTestCase.java | 67 - sca-java-2.x/tags/2.0-M5-RC3/itest/jaxws/pom.xml | 53 - .../src/test/java/stock/AsyncServiceTestCase.java | 42 - .../jaxws/src/test/java/stock/StockQuote.java | 45 - .../jaxws/src/test/java/stock/StockQuoteImpl.java | 46 - .../jaxws/src/test/resources/StockQuote.composite | 31 - .../2.0-M5-RC3/itest/jms/DynamicReplyQ/pom.xml | 83 - .../sca/binding/jms/HelloWorldClientImpl.java | 41 - .../tuscany/sca/binding/jms/HelloWorldService.java | 26 - .../sca/binding/jms/HelloWorldServiceImpl.java | 30 - .../main/resources/META-INF/sca-contribution.xml | 24 - .../src/main/resources/dynamic/client.composite | 34 - .../src/main/resources/jndi.properties | 39 - .../src/main/resources/simple/service.composite | 37 - .../sca/binding/jms/DynamicReplyQTestCase.java | 53 - .../tags/2.0-M5-RC3/itest/jms/args/pom.xml | 70 - .../apache/tuscany/sca/binding/jms/ClientImpl.java | 41 - .../apache/tuscany/sca/binding/jms/MyService.java | 29 - .../tuscany/sca/binding/jms/ServiceImpl.java | 38 - .../main/resources/META-INF/sca-contribution.xml | 23 - .../jms/args/src/main/resources/jndi.properties | 38 - .../main/resources/selectors/selectors.composite | 38 - .../tuscany/sca/binding/jms/ArgsTestCase.java | 62 - .../tags/2.0-M5-RC3/itest/jms/callbacks/pom.xml | 73 - .../apache/tuscany/sca/binding/jms/JMSClient.java | 28 - .../tuscany/sca/binding/jms/JMSClientImpl.java | 50 - .../apache/tuscany/sca/binding/jms/JMSService.java | 34 - .../sca/binding/jms/JMSServiceCallback.java | 32 - .../tuscany/sca/binding/jms/JMSServiceImpl.java | 47 - .../main/resources/META-INF/sca-contribution.xml | 24 - .../callbacks/src/main/resources/jndi.properties | 40 - .../src/main/resources/simple/client.composite | 44 - .../src/main/resources/simple/tempq.composite | 50 - .../tuscany/sca/binding/jms/CallbackTestCase.java | 61 - .../sca/binding/jms/TempCallbackQTestCase.java | 64 - .../tags/2.0-M5-RC3/itest/jms/defaults/pom.xml | 83 - .../sca/binding/jms/HelloWorldClientImpl.java | 41 - .../tuscany/sca/binding/jms/HelloWorldService.java | 26 - .../sca/binding/jms/HelloWorldServiceImpl.java | 30 - .../main/resources/META-INF/sca-contribution.xml | 24 - .../src/main/resources/defaults/client.composite | 31 - .../src/main/resources/defaults/service.composite | 31 - .../defaults/src/main/resources/jndi.properties | 39 - .../tuscany/sca/binding/jms/DefaultsTestCase.java | 54 - .../tags/2.0-M5-RC3/itest/jms/definitions/pom.xml | 73 - .../tuscany/sca/binding/jms/OneWayClientImpl.java | 41 - .../tuscany/sca/binding/jms/OneWayService.java | 29 - .../tuscany/sca/binding/jms/OneWayServiceImpl.java | 34 - .../main/resources/META-INF/sca-contribution.xml | 23 - .../definitions/src/main/resources/definitions.xml | 28 - .../resources/definitions/definitions.composite | 39 - .../definitions/src/main/resources/jndi.properties | 38 - .../sca/binding/jms/DefinitionsTestCase.java | 62 - .../tags/2.0-M5-RC3/itest/jms/exceptions/pom.xml | 90 - .../tuscany/sca/binding/jms/CheckedExcpetion.java | 28 - .../sca/binding/jms/CheckedExcpetion2Args.java | 28 - .../sca/binding/jms/CheckedExcpetionChained.java | 28 - .../sca/binding/jms/CheckedExcpetionNoArgs.java | 28 - .../tuscany/sca/binding/jms/ExceptionService.java | 33 - .../sca/binding/jms/ExceptionServiceImpl.java | 44 - .../main/resources/META-INF/sca-contribution.xml | 23 - .../main/resources/exceptions/service.composite | 44 - .../exceptions/src/main/resources/jndi.properties | 40 - .../sca/binding/jms/ExceptionsTestCase.java | 212 -- .../tags/2.0-M5-RC3/itest/jms/exceptions1/pom.xml | 83 - .../tuscany/sca/binding/jms/CheckedExcpetion.java | 28 - .../sca/binding/jms/CheckedExcpetion2Args.java | 28 - .../sca/binding/jms/CheckedExcpetionChained.java | 28 - .../sca/binding/jms/CheckedExcpetionNoArgs.java | 28 - .../tuscany/sca/binding/jms/ExceptionService.java | 33 - .../sca/binding/jms/ExceptionServiceClient.java | 57 - .../sca/binding/jms/ExceptionServiceImpl.java | 44 - .../main/resources/META-INF/sca-contribution.xml | 24 - .../src/main/resources/exceptions/client.composite | 31 - .../main/resources/exceptions/service.composite | 31 - .../exceptions1/src/main/resources/jndi.properties | 39 - .../sca/binding/jms/ExceptionsTestCase.java | 110 - .../2.0-M5-RC3/itest/jms/externalBroker/pom.xml | 83 - .../sca/binding/jms/HelloWorldClientImpl.java | 41 - .../tuscany/sca/binding/jms/HelloWorldService.java | 26 - .../sca/binding/jms/HelloWorldServiceImpl.java | 30 - .../main/resources/META-INF/sca-contribution.xml | 24 - .../src/main/resources/external/client.composite | 36 - .../src/main/resources/external/service.composite | 36 - .../src/main/resources/jndi.properties | 39 - .../sca/binding/jms/ExternalBrokerTestCase.java | 71 - .../2.0-M5-RC3/itest/jms/format-jmsbytes/pom.xml | 83 - .../jmsbytes/helloworld/CheckedException.java | 28 - .../jmsbytes/helloworld/HelloWorldReference.java | 32 - .../helloworld/HelloWorldReferenceImpl.java | 50 - .../jmsbytes/helloworld/HelloWorldService.java | 35 - .../jmsbytes/helloworld/HelloWorldServiceImpl.java | 40 - .../helloworld/HelloWorldServiceReference.java | 35 - .../main/resources/META-INF/sca-contribution.xml | 23 - .../main/resources/jmsbytes/helloworld.composite | 45 - .../src/main/resources/jndi.properties | 39 - .../binding/jms/format/FormatJMSBytesTestCase.java | 69 - .../itest/jms/format-jmsbytesxml/pom.xml | 83 - .../jmsbytesxml/helloworld/CheckedException.java | 28 - .../helloworld/HelloWorldReference.java | 32 - .../helloworld/HelloWorldReferenceImpl.java | 46 - .../jmsbytesxml/helloworld/HelloWorldService.java | 34 - .../helloworld/HelloWorldServiceImpl.java | 39 - .../main/resources/META-INF/sca-contribution.xml | 23 - .../resources/jmsbytesxml/helloworld.composite | 45 - .../src/main/resources/jndi.properties | 39 - .../jms/format/FormatJMSBytesXMLTestCase.java | 58 - .../jmsbytes/helloworld/CheckedException.java | 28 - .../jmsbytes/helloworld/HelloWorldReference.java | 32 - .../helloworld/HelloWorldReferenceImpl.java | 50 - .../jmsbytes/helloworld/HelloWorldService.java | 35 - .../jmsbytes/helloworld/HelloWorldServiceImpl.java | 40 - .../helloworld/HelloWorldServiceReference.java | 35 - .../2.0-M5-RC3/itest/jms/format-jmsdefault/pom.xml | 83 - .../jmsbytes/helloworld/CheckedException.java | 28 - .../jmsbytes/helloworld/HelloWorldReference.java | 32 - .../helloworld/HelloWorldReferenceImpl.java | 50 - .../jmsbytes/helloworld/HelloWorldService.java | 35 - .../jmsbytes/helloworld/HelloWorldServiceImpl.java | 40 - .../helloworld/HelloWorldServiceReference.java | 35 - .../jmsdefault/helloworld/CheckedException.java | 28 - .../jmsdefault/helloworld/HelloWorldReference.java | 36 - .../helloworld/HelloWorldReferenceImpl.java | 85 - .../jmsdefault/helloworld/HelloWorldService.java | 38 - .../helloworld/HelloWorldServiceImpl.java | 51 - .../jms/format/jmsdefault/helloworld/Person.java | 42 - .../main/resources/META-INF/sca-contribution.xml | 23 - .../main/resources/jmsdefault/helloworld.composite | 94 - .../src/main/resources/jmsdefault/helloworld.wsdl | 139 -- .../src/main/resources/jndi.properties | 39 - .../jms/format/FormatJMSDefaultTestCase.java | 68 - .../2.0-M5-RC3/itest/jms/format-jmsmessage/pom.xml | 83 - .../jmsbytes/helloworld/CheckedException.java | 28 - .../jmsbytes/helloworld/HelloWorldReference.java | 32 - .../helloworld/HelloWorldReferenceImpl.java | 50 - .../jmsbytes/helloworld/HelloWorldService.java | 35 - .../jmsbytes/helloworld/HelloWorldServiceImpl.java | 40 - .../helloworld/HelloWorldServiceReference.java | 35 - .../jmsmessage/helloworld/HelloWorldReference.java | 32 - .../helloworld/HelloWorldReferenceImpl.java | 41 - .../jmsmessage/helloworld/HelloWorldService.java | 34 - .../helloworld/HelloWorldServiceImpl.java | 51 - .../helloworld/HelloWorldServiceReferenceSide.java | 37 - .../jms/format/jmsmessage/helloworld/README | 3 - .../main/resources/META-INF/sca-contribution.xml | 23 - .../main/resources/jmsmessage/helloworld.composite | 46 - .../src/main/resources/jmsmessage/helloworld.wsdl | 129 -- .../src/main/resources/jndi.properties | 39 - .../jms/format/FormatJMSMessageTestCase.java | 58 - .../2.0-M5-RC3/itest/jms/format-jmsobject/pom.xml | 83 - .../jmsbytes/helloworld/CheckedException.java | 28 - .../jmsbytes/helloworld/HelloWorldReference.java | 32 - .../helloworld/HelloWorldReferenceImpl.java | 50 - .../jmsbytes/helloworld/HelloWorldService.java | 35 - .../jmsbytes/helloworld/HelloWorldServiceImpl.java | 40 - .../helloworld/HelloWorldServiceReference.java | 35 - .../jmsobject/helloworld/CheckedException.java | 28 - .../jmsobject/helloworld/HelloWorldReference.java | 32 - .../helloworld/HelloWorldReferenceImpl.java | 112 - .../jmsobject/helloworld/HelloWorldService.java | 41 - .../helloworld/HelloWorldServiceImpl.java | 63 - .../jms/format/jmsobject/helloworld/Person.java | 47 - .../main/resources/META-INF/sca-contribution.xml | 23 - .../main/resources/jmsobject/helloworld.composite | 62 - .../src/main/resources/jmsobject/helloworld.wsdl | 368 ---- .../src/main/resources/jndi.properties | 39 - .../jms/format/FormatJMSObjectTestCase.java | 73 - .../2.0-M5-RC3/itest/jms/format-jmstext/pom.xml | 83 - .../jmsbytes/helloworld/CheckedException.java | 28 - .../jmsbytes/helloworld/HelloWorldReference.java | 32 - .../helloworld/HelloWorldReferenceImpl.java | 50 - .../jmsbytes/helloworld/HelloWorldService.java | 35 - .../jmsbytes/helloworld/HelloWorldServiceImpl.java | 40 - .../helloworld/HelloWorldServiceReference.java | 35 - .../jmstext/helloworld/CheckedException.java | 28 - .../jmstext/helloworld/HelloWorldReference.java | 32 - .../helloworld/HelloWorldReferenceImpl.java | 46 - .../jmstext/helloworld/HelloWorldService.java | 35 - .../jmstext/helloworld/HelloWorldServiceImpl.java | 38 - .../helloworld/HelloWorldServiceReference.java | 35 - .../main/resources/META-INF/sca-contribution.xml | 23 - .../main/resources/jmstext/helloworld.composite | 45 - .../src/main/resources/jndi.properties | 39 - .../binding/jms/format/FormatJMSTextTestCase.java | 60 - .../2.0-M5-RC3/itest/jms/format-jmstextxml/pom.xml | 83 - .../jmsbytes/helloworld/CheckedException.java | 28 - .../jmsbytes/helloworld/HelloWorldReference.java | 32 - .../helloworld/HelloWorldReferenceImpl.java | 50 - .../jmsbytes/helloworld/HelloWorldService.java | 35 - .../jmsbytes/helloworld/HelloWorldServiceImpl.java | 40 - .../helloworld/HelloWorldServiceReference.java | 35 - .../jmstextxml/helloworld/CheckedException.java | 28 - .../jmstextxml/helloworld/HelloWorldReference.java | 33 - .../helloworld/HelloWorldReferenceImpl.java | 62 - .../jmstextxml/helloworld/HelloWorldService.java | 35 - .../helloworld/HelloWorldServiceImpl.java | 44 - .../jms/format/jmstextxml/helloworld/Person.java | 42 - .../main/resources/META-INF/sca-contribution.xml | 23 - .../main/resources/jmstextxml/helloworld.composite | 80 - .../src/main/resources/jmstextxml/helloworld.wsdl | 153 -- .../src/main/resources/jndi.properties | 39 - .../jms/format/FormatJMSTextXMLTestCase.java | 62 - .../jms/format-jmstextxmlinjmsobjectout/pom.xml | 83 - .../jmsbytes/helloworld/CheckedException.java | 28 - .../jmsbytes/helloworld/HelloWorldReference.java | 32 - .../helloworld/HelloWorldReferenceImpl.java | 50 - .../jmsbytes/helloworld/HelloWorldService.java | 35 - .../jmsbytes/helloworld/HelloWorldServiceImpl.java | 40 - .../helloworld/HelloWorldServiceReference.java | 35 - .../jmsbytesxml/helloworld/CheckedException.java | 28 - .../helloworld/HelloWorldReference.java | 32 - .../helloworld/HelloWorldReferenceImpl.java | 46 - .../jmsbytesxml/helloworld/HelloWorldService.java | 34 - .../helloworld/HelloWorldServiceImpl.java | 39 - .../jmsdefault/helloworld/CheckedException.java | 28 - .../jmsdefault/helloworld/HelloWorldReference.java | 36 - .../helloworld/HelloWorldReferenceImpl.java | 85 - .../jmsdefault/helloworld/HelloWorldService.java | 38 - .../helloworld/HelloWorldServiceImpl.java | 51 - .../jms/format/jmsdefault/helloworld/Person.java | 42 - .../jmsmessage/helloworld/HelloWorldReference.java | 32 - .../helloworld/HelloWorldReferenceImpl.java | 41 - .../jmsmessage/helloworld/HelloWorldService.java | 34 - .../helloworld/HelloWorldServiceImpl.java | 51 - .../helloworld/HelloWorldServiceReferenceSide.java | 37 - .../jms/format/jmsmessage/helloworld/README | 3 - .../jmsobject/helloworld/CheckedException.java | 28 - .../jmsobject/helloworld/HelloWorldReference.java | 32 - .../helloworld/HelloWorldReferenceImpl.java | 112 - .../jmsobject/helloworld/HelloWorldService.java | 41 - .../helloworld/HelloWorldServiceImpl.java | 63 - .../jms/format/jmsobject/helloworld/Person.java | 47 - .../jmstext/helloworld/CheckedException.java | 28 - .../jmstext/helloworld/HelloWorldReference.java | 32 - .../helloworld/HelloWorldReferenceImpl.java | 46 - .../jmstext/helloworld/HelloWorldService.java | 35 - .../jmstext/helloworld/HelloWorldServiceImpl.java | 38 - .../helloworld/HelloWorldServiceReference.java | 35 - .../jmstextxml/helloworld/CheckedException.java | 28 - .../jmstextxml/helloworld/HelloWorldReference.java | 33 - .../helloworld/HelloWorldReferenceImpl.java | 62 - .../jmstextxml/helloworld/HelloWorldService.java | 35 - .../helloworld/HelloWorldServiceImpl.java | 44 - .../jms/format/jmstextxml/helloworld/Person.java | 42 - .../helloworld/HelloWorldReferenceImpl.java | 38 - .../helloworld/HelloWorldService.java | 33 - .../helloworld/HelloWorldServiceImpl.java | 35 - .../helloworld/Person.java | 42 - .../main/resources/META-INF/sca-contribution.xml | 23 - .../jmstextxmlinjmsobjectout/helloworld.composite | 52 - .../jmstextxmlinjmsobjectout/helloworld.wsdl | 139 -- .../src/main/resources/jndi.properties | 39 - .../FormatJMSTextXMLInJMSObjectOutTestCase.java | 62 - .../2.0-M5-RC3/itest/jms/non-sca-client/pom.xml | 83 - .../sca/binding/jms/OneWayObjectService.java | 29 - .../sca/binding/jms/OneWayObjectServiceImpl.java | 34 - .../tuscany/sca/binding/jms/OneWayService.java | 29 - .../tuscany/sca/binding/jms/OneWayServiceImpl.java | 34 - .../main/resources/META-INF/sca-contribution.xml | 23 - .../src/main/resources/jndi.properties | 39 - .../main/resources/nonSCAclient/service.composite | 54 - .../sca/binding/jms/NonSCAClientTestCase.java | 144 -- .../tags/2.0-M5-RC3/itest/jms/noreplyto/pom.xml | 83 - .../tuscany/sca/binding/jms/HelloWorldService.java | 26 - .../sca/binding/jms/HelloWorldServiceImpl.java | 30 - .../main/resources/META-INF/sca-contribution.xml | 23 - .../noreplyto/src/main/resources/jndi.properties | 39 - .../noreplyto/src/main/resources/service.composite | 38 - .../tuscany/sca/binding/jms/NoReplyToTestCase.java | 100 - .../tags/2.0-M5-RC3/itest/jms/nulls/pom.xml | 71 - .../apache/tuscany/sca/binding/jms/ClientImpl.java | 41 - .../apache/tuscany/sca/binding/jms/MyService.java | 28 - .../tuscany/sca/binding/jms/ServiceImpl.java | 28 - .../main/resources/META-INF/sca-contribution.xml | 23 - .../jms/nulls/src/main/resources/jndi.properties | 38 - .../jms/nulls/src/main/resources/nulls.composite | 57 - .../tuscany/sca/binding/jms/NullsTestCase.java | 60 - .../tags/2.0-M5-RC3/itest/jms/oneway-nocf/pom.xml | 83 - .../tuscany/sca/binding/jms/OneWayClientImpl.java | 41 - .../tuscany/sca/binding/jms/OneWayService.java | 29 - .../tuscany/sca/binding/jms/OneWayServiceImpl.java | 34 - .../main/resources/META-INF/sca-contribution.xml | 24 - .../oneway-nocf/src/main/resources/jndi.properties | 38 - .../main/resources/oneway/OneWayClient.composite | 35 - .../main/resources/oneway/OneWayService.composite | 34 - .../tuscany/sca/binding/jms/OneWayTestCase.java | 59 - .../tags/2.0-M5-RC3/itest/jms/oneway/pom.xml | 83 - .../tuscany/sca/binding/jms/OneWayClientImpl.java | 41 - .../sca/binding/jms/OneWayObjectService.java | 29 - .../sca/binding/jms/OneWayObjectServiceImpl.java | 34 - .../tuscany/sca/binding/jms/OneWayService.java | 29 - .../tuscany/sca/binding/jms/OneWayServiceImpl.java | 34 - .../main/resources/META-INF/sca-contribution.xml | 24 - .../jms/oneway/src/main/resources/jndi.properties | 39 - .../main/resources/oneway/OneWayClient.composite | 33 - .../main/resources/oneway/OneWayService.composite | 33 - .../tuscany/sca/binding/jms/OneWayTestCase.java | 60 - .../2.0-M5-RC3/itest/jms/policy-headers/pom.xml | 83 - .../apache/tuscany/sca/binding/jms/JMSClient.java | 28 - .../apache/tuscany/sca/binding/jms/MsgClient.java | 29 - .../tuscany/sca/binding/jms/MsgClientImpl.java | 38 - .../tuscany/sca/binding/jms/MsgClientService.java | 33 - .../apache/tuscany/sca/binding/jms/MsgService.java | 32 - .../tuscany/sca/binding/jms/MsgServiceImpl.java | 39 - .../src/main/resources/META-INF/definitions.xml | 65 - .../main/resources/META-INF/sca-contribution.xml | 23 - .../src/main/resources/jndi.properties | 39 - .../policyHeaders/policyHeaders.composite | 45 - .../sca/binding/jms/PolicyHeadersTestCase.java | 94 - sca-java-2.x/tags/2.0-M5-RC3/itest/jms/pom.xml | 68 - .../tags/2.0-M5-RC3/itest/jms/properties/pom.xml | 83 - .../apache/tuscany/sca/binding/jms/JMSClient.java | 28 - .../apache/tuscany/sca/binding/jms/MsgClient.java | 29 - .../tuscany/sca/binding/jms/MsgClientImpl.java | 38 - .../tuscany/sca/binding/jms/MsgClientService.java | 33 - .../apache/tuscany/sca/binding/jms/MsgService.java | 32 - .../tuscany/sca/binding/jms/MsgServiceImpl.java | 39 - .../main/resources/META-INF/sca-contribution.xml | 23 - .../properties/src/main/resources/jndi.properties | 39 - .../main/resources/properties/properties.composite | 53 - .../sca/binding/jms/PropertiesTestCase.java | 93 - .../tags/2.0-M5-RC3/itest/jms/responsecf/pom.xml | 83 - .../sca/binding/jms/HelloWorldClientImpl.java | 41 - .../tuscany/sca/binding/jms/HelloWorldService.java | 26 - .../sca/binding/jms/HelloWorldServiceImpl.java | 30 - .../main/resources/META-INF/sca-contribution.xml | 24 - .../src/main/resources/cf/client.composite | 36 - .../src/main/resources/cf/service.composite | 36 - .../responsecf/src/main/resources/jndi.properties | 39 - .../sca/binding/jms/ResponseCFTestCase.java | 53 - sca-java-2.x/tags/2.0-M5-RC3/itest/jms/rpc/pom.xml | 83 - .../sca/binding/jms/HelloWorldClientImpl.java | 41 - .../tuscany/sca/binding/jms/HelloWorldService.java | 26 - .../sca/binding/jms/HelloWorldServiceImpl.java | 30 - .../main/resources/META-INF/sca-contribution.xml | 24 - .../jms/rpc/src/main/resources/jndi.properties | 39 - .../rpc/src/main/resources/simple/client.composite | 37 - .../src/main/resources/simple/service.composite | 37 - .../tuscany/sca/binding/jms/RPCTestCase.java | 53 - .../tags/2.0-M5-RC3/itest/jms/selectors/pom.xml | 70 - .../apache/tuscany/sca/binding/jms/ClientImpl.java | 41 - .../tuscany/sca/binding/jms/SelectorService.java | 29 - .../sca/binding/jms/SelectorServiceImpl1.java | 40 - .../sca/binding/jms/SelectorServiceImpl2.java | 38 - .../sca/binding/jms/SelectorServiceImpl3.java | 38 - .../jmsdefault/HelloWorldReference.java | 32 - .../jmsdefault/HelloWorldReferenceImpl.java | 39 - .../jmsdefault/HelloWorldService.java | 38 - .../jmsdefault/HelloWorldServiceImpl.java | 47 - .../jmsuserprop/HelloWorldReference.java | 32 - .../jmsuserprop/HelloWorldReferenceImpl.java | 36 - .../jmsuserprop/HelloWorldService.java | 38 - .../jmsuserprop/HelloWorldServiceImpl.java | 47 - .../main/resources/META-INF/sca-contribution.xml | 25 - .../main/resources/jmsdefault/helloworld.composite | 69 - .../resources/jmsuserprop/helloworld.composite | 65 - .../selectors/src/main/resources/jndi.properties | 38 - .../main/resources/selectors/selectors.composite | 68 - .../jms/OperationselectorJMSDefaultTestCase.java | 57 - .../jms/OperationselectorJMSUserPropTestCase.java | 57 - .../tuscany/sca/binding/jms/SelectorsTestCase.java | 76 - .../tags/2.0-M5-RC3/itest/jms/topics/pom.xml | 71 - .../tuscany/sca/binding/jms/OneWayClientImpl.java | 41 - .../tuscany/sca/binding/jms/OneWayService.java | 29 - .../tuscany/sca/binding/jms/OneWayServiceImpl.java | 34 - .../main/resources/META-INF/sca-contribution.xml | 24 - .../jms/topics/src/main/resources/jndi.properties | 38 - .../main/resources/topics/TopicsClient.composite | 33 - .../main/resources/topics/TopicsService.composite | 33 - .../tuscany/sca/binding/jms/TopicsTestCase.java | 59 - sca-java-2.x/tags/2.0-M5-RC3/itest/jms/ttl/pom.xml | 71 - .../main/java/itest/MockInitialContextFactory.java | 904 -------- .../tuscany/sca/binding/jms/ClientIface.java | 30 - .../apache/tuscany/sca/binding/jms/ClientImpl.java | 39 - .../main/resources/META-INF/sca-contribution.xml | 23 - .../jms/ttl/src/main/resources/jndi.properties | 38 - .../itest/jms/ttl/src/main/resources/ttl.composite | 35 - .../tuscany/sca/binding/jms/TTLTestCase.java | 64 - .../tags/2.0-M5-RC3/itest/jms/uri-rpc/pom.xml | 83 - .../sca/binding/jms/HelloWorldClientImpl.java | 41 - .../tuscany/sca/binding/jms/HelloWorldService.java | 26 - .../sca/binding/jms/HelloWorldServiceImpl.java | 30 - .../main/resources/META-INF/sca-contribution.xml | 24 - .../jms/uri-rpc/src/main/resources/jndi.properties | 39 - .../src/main/resources/simple/service.composite | 37 - .../src/main/resources/simple/uriclient.composite | 31 - .../tuscany/sca/binding/jms/URIRPCTestCase.java | 54 - .../2.0-M5-RC3/itest/node-launcher-equinox/pom.xml | 76 - .../src/test/java/hello/HelloWorld.java | 30 - .../src/test/java/hello/HelloWorldClient.java | 50 - .../src/test/java/hello/HelloWorldImpl.java | 30 - .../equinox/launcher/EquinoxOSGiHostTestCase.java | 100 - .../equinox/launcher/NodeLauncherTestCase.java | 67 - .../src/test/resources/HelloWorld.composite | 34 - .../itest/nodes/binding-sca-hazelcast/pom.xml | 94 - .../tuscany/sca/itest/bindingsca/Client.java | 29 - .../tuscany/sca/itest/bindingsca/ClientImpl.java | 53 - .../tuscany/sca/itest/bindingsca/Customer.java | 70 - .../bindingsca/CustomerNotFoundException.java | 64 - .../apache/tuscany/sca/itest/bindingsca/Local.java | 27 - .../sca/itest/bindingsca/LocalServiceImpl.java | 38 - .../tuscany/sca/itest/bindingsca/Remote.java | 36 - .../sca/itest/bindingsca/RemoteServiceImpl.java | 66 - .../sca/itest/bindingsca/SCAClientImpl.java | 57 - .../tuscany/sca/itest/bindingsca/Client.composite | 30 - .../tuscany/sca/itest/bindingsca/Service.composite | 31 - .../sca/binding/sca/axis2/AsynchTestCase.java | 79 - .../sca/binding/sca/axis2/CallbackTestCase.java | 83 - .../sca/binding/sca/axis2/PromotionTestCase.java | 74 - .../sca/binding/sca/axis2/SimpleTestCase.java | 110 - .../axis2/helloworld/HelloWorldCallbackRemote.java | 30 - .../sca/axis2/helloworld/HelloWorldClient.java | 27 - .../HelloWorldServiceCallbackOnewayRemote.java | 33 - .../HelloWorldServiceCallbackRemote.java | 31 - .../axis2/helloworld/HelloWorldServiceLocal.java | 27 - .../axis2/helloworld/HelloWorldServiceRemote.java | 29 - .../axis2/helloworld/HelloWorldServiceRemote2.java | 29 - .../HelloWorldClientCallbackOnewayRemoteImpl.java | 43 - .../impl/HelloWorldClientCallbackRemoteImpl.java | 42 - .../helloworld/impl/HelloWorldClientLocalImpl.java | 35 - .../impl/HelloWorldClientRemote2Impl.java | 35 - .../impl/HelloWorldClientRemoteImpl.java | 35 - .../HelloWorldServiceCallbackOnewayRemoteImpl.java | 35 - .../impl/HelloWorldServiceCallbackRemoteImpl.java | 39 - .../impl/HelloWorldServiceLocalImpl.java | 30 - .../HelloWorldServiceMultipleServicesImpl.java | 41 - .../impl/HelloWorldServiceRemoteImpl.java | 30 - .../sca/binding/sca/rmi/AsynchTestCase.java | 79 - .../sca/binding/sca/rmi/CallbackTestCase.java | 84 - .../sca/binding/sca/rmi/PromotionTestCase.java | 76 - .../sca/binding/sca/rmi/SimpleTestCase.java | 116 - .../rmi/helloworld/HelloWorldCallbackRemote.java | 30 - .../sca/rmi/helloworld/HelloWorldClient.java | 27 - .../HelloWorldServiceCallbackOnewayRemote.java | 33 - .../HelloWorldServiceCallbackRemote.java | 31 - .../sca/rmi/helloworld/HelloWorldServiceLocal.java | 27 - .../rmi/helloworld/HelloWorldServiceRemote.java | 29 - .../rmi/helloworld/HelloWorldServiceRemote2.java | 29 - .../HelloWorldClientCallbackOnewayRemoteImpl.java | 43 - .../impl/HelloWorldClientCallbackRemoteImpl.java | 42 - .../helloworld/impl/HelloWorldClientLocalImpl.java | 35 - .../impl/HelloWorldClientRemote2Impl.java | 35 - .../impl/HelloWorldClientRemoteImpl.java | 35 - .../HelloWorldServiceCallbackOnewayRemoteImpl.java | 35 - .../impl/HelloWorldServiceCallbackRemoteImpl.java | 39 - .../impl/HelloWorldServiceLocalImpl.java | 30 - .../HelloWorldServiceMultipleServicesImpl.java | 41 - .../impl/HelloWorldServiceRemoteImpl.java | 30 - .../sca/itest/bindingsca/BindingSCATestCase.java | 170 -- .../ClientNodeSharedCustomerTestCase.java | 62 - .../bindingsca/ClientNodeSharedLocalTestCase.java | 62 - .../bindingsca/ClientSharedCustomerTestCase.java | 54 - .../bindingsca/ClientSharedLocalTestCase.java | 63 - .../tuscany/sca/itest/bindingsca/ServiceNode.java | 48 - .../sca/itest/bindingsca/TestCaseRunner.java | 329 --- .../rmi/asynchReference/HelloWorld.composite | 36 - .../asynchReference/META-INF/sca-contribution.xml | 23 - .../rmi/asynchService/HelloWorld.composite | 38 - .../asynchService/META-INF/sca-contribution.xml | 23 - .../rmi/callbackReference/HelloWorld.composite | 36 - .../META-INF/sca-contribution.xml | 23 - .../rmi/callbackService/HelloWorld.composite | 43 - .../callbackService/META-INF/sca-contribution.xml | 23 - .../rmi/promotionReference/HelloWorld.composite | 33 - .../HelloWorldComponent.composite | 37 - .../META-INF/sca-contribution.xml | 23 - .../rmi/promotionService/HelloWorld.composite | 35 - .../promotionService/HelloWorldComponent.composite | 37 - .../promotionService/META-INF/sca-contribution.xml | 23 - .../rmi/simpleReference/HelloWorld.composite | 67 - .../simpleReference/META-INF/sca-contribution.xml | 23 - .../rmi/simpleService/HelloWorld.composite | 85 - .../simpleService/META-INF/sca-contribution.xml | 23 - .../ws/asynchReference/HelloWorld.composite | 36 - .../asynchReference/META-INF/sca-contribution.xml | 23 - .../ws/asynchService/HelloWorld.composite | 38 - .../ws/asynchService/META-INF/sca-contribution.xml | 23 - .../ws/callbackReference/HelloWorld.composite | 36 - .../META-INF/sca-contribution.xml | 23 - .../ws/callbackService/HelloWorld.composite | 43 - .../callbackService/META-INF/sca-contribution.xml | 23 - .../ws/promotionReference/HelloWorld.composite | 33 - .../HelloWorldComponent.composite | 37 - .../META-INF/sca-contribution.xml | 23 - .../ws/promotionService/HelloWorld.composite | 35 - .../promotionService/HelloWorldComponent.composite | 37 - .../promotionService/META-INF/sca-contribution.xml | 23 - .../ws/simpleReference/HelloWorld.composite | 67 - .../simpleReference/META-INF/sca-contribution.xml | 23 - .../ws/simpleService/HelloWorld.composite | 84 - .../ws/simpleService/META-INF/sca-contribution.xml | 23 - .../itest/nodes/binding-sca-tribes/pom.xml | 74 - .../tuscany/sca/itest/bindingsca/Client.java | 29 - .../tuscany/sca/itest/bindingsca/ClientImpl.java | 53 - .../tuscany/sca/itest/bindingsca/Customer.java | 70 - .../bindingsca/CustomerNotFoundException.java | 64 - .../apache/tuscany/sca/itest/bindingsca/Local.java | 27 - .../sca/itest/bindingsca/LocalServiceImpl.java | 38 - .../tuscany/sca/itest/bindingsca/Remote.java | 36 - .../sca/itest/bindingsca/RemoteServiceImpl.java | 66 - .../sca/itest/bindingsca/SCAClientImpl.java | 57 - .../tuscany/sca/itest/bindingsca/Client.composite | 30 - .../tuscany/sca/itest/bindingsca/Service.composite | 31 - .../sca/binding/sca/axis2/AsynchTestCase.java | 79 - .../sca/binding/sca/axis2/CallbackTestCase.java | 83 - .../sca/binding/sca/axis2/PromotionTestCase.java | 74 - .../sca/binding/sca/axis2/SimpleTestCase.java | 110 - .../axis2/helloworld/HelloWorldCallbackRemote.java | 30 - .../sca/axis2/helloworld/HelloWorldClient.java | 27 - .../HelloWorldServiceCallbackOnewayRemote.java | 33 - .../HelloWorldServiceCallbackRemote.java | 31 - .../axis2/helloworld/HelloWorldServiceLocal.java | 27 - .../axis2/helloworld/HelloWorldServiceRemote.java | 29 - .../axis2/helloworld/HelloWorldServiceRemote2.java | 29 - .../HelloWorldClientCallbackOnewayRemoteImpl.java | 43 - .../impl/HelloWorldClientCallbackRemoteImpl.java | 42 - .../helloworld/impl/HelloWorldClientLocalImpl.java | 35 - .../impl/HelloWorldClientRemote2Impl.java | 35 - .../impl/HelloWorldClientRemoteImpl.java | 35 - .../HelloWorldServiceCallbackOnewayRemoteImpl.java | 35 - .../impl/HelloWorldServiceCallbackRemoteImpl.java | 39 - .../impl/HelloWorldServiceLocalImpl.java | 30 - .../HelloWorldServiceMultipleServicesImpl.java | 41 - .../impl/HelloWorldServiceRemoteImpl.java | 30 - .../sca/binding/sca/rmi/AsynchTestCase.java | 79 - .../sca/binding/sca/rmi/CallbackTestCase.java | 84 - .../sca/binding/sca/rmi/PromotionTestCase.java | 76 - .../sca/binding/sca/rmi/SimpleTestCase.java | 116 - .../rmi/helloworld/HelloWorldCallbackRemote.java | 30 - .../sca/rmi/helloworld/HelloWorldClient.java | 27 - .../HelloWorldServiceCallbackOnewayRemote.java | 33 - .../HelloWorldServiceCallbackRemote.java | 31 - .../sca/rmi/helloworld/HelloWorldServiceLocal.java | 27 - .../rmi/helloworld/HelloWorldServiceRemote.java | 29 - .../rmi/helloworld/HelloWorldServiceRemote2.java | 29 - .../HelloWorldClientCallbackOnewayRemoteImpl.java | 43 - .../impl/HelloWorldClientCallbackRemoteImpl.java | 42 - .../helloworld/impl/HelloWorldClientLocalImpl.java | 35 - .../impl/HelloWorldClientRemote2Impl.java | 35 - .../impl/HelloWorldClientRemoteImpl.java | 35 - .../HelloWorldServiceCallbackOnewayRemoteImpl.java | 35 - .../impl/HelloWorldServiceCallbackRemoteImpl.java | 39 - .../impl/HelloWorldServiceLocalImpl.java | 30 - .../HelloWorldServiceMultipleServicesImpl.java | 41 - .../impl/HelloWorldServiceRemoteImpl.java | 30 - .../sca/itest/bindingsca/BindingSCATestCase.java | 170 -- .../ClientNodeSharedCustomerTestCase.java | 62 - .../bindingsca/ClientNodeSharedLocalTestCase.java | 62 - .../bindingsca/ClientSharedCustomerTestCase.java | 54 - .../bindingsca/ClientSharedLocalTestCase.java | 63 - .../tuscany/sca/itest/bindingsca/ServiceNode.java | 48 - .../sca/itest/bindingsca/TestCaseRunner.java | 329 --- .../rmi/asynchReference/HelloWorld.composite | 36 - .../asynchReference/META-INF/sca-contribution.xml | 23 - .../rmi/asynchService/HelloWorld.composite | 38 - .../asynchService/META-INF/sca-contribution.xml | 23 - .../rmi/callbackReference/HelloWorld.composite | 36 - .../META-INF/sca-contribution.xml | 23 - .../rmi/callbackService/HelloWorld.composite | 43 - .../callbackService/META-INF/sca-contribution.xml | 23 - .../rmi/promotionReference/HelloWorld.composite | 33 - .../HelloWorldComponent.composite | 37 - .../META-INF/sca-contribution.xml | 23 - .../rmi/promotionService/HelloWorld.composite | 35 - .../promotionService/HelloWorldComponent.composite | 37 - .../promotionService/META-INF/sca-contribution.xml | 23 - .../rmi/simpleReference/HelloWorld.composite | 67 - .../simpleReference/META-INF/sca-contribution.xml | 23 - .../rmi/simpleService/HelloWorld.composite | 85 - .../simpleService/META-INF/sca-contribution.xml | 23 - .../ws/asynchReference/HelloWorld.composite | 36 - .../asynchReference/META-INF/sca-contribution.xml | 23 - .../ws/asynchService/HelloWorld.composite | 38 - .../ws/asynchService/META-INF/sca-contribution.xml | 23 - .../ws/callbackReference/HelloWorld.composite | 36 - .../META-INF/sca-contribution.xml | 23 - .../ws/callbackService/HelloWorld.composite | 43 - .../callbackService/META-INF/sca-contribution.xml | 23 - .../ws/promotionReference/HelloWorld.composite | 33 - .../HelloWorldComponent.composite | 37 - .../META-INF/sca-contribution.xml | 23 - .../ws/promotionService/HelloWorld.composite | 35 - .../promotionService/HelloWorldComponent.composite | 37 - .../promotionService/META-INF/sca-contribution.xml | 23 - .../ws/simpleReference/HelloWorld.composite | 67 - .../simpleReference/META-INF/sca-contribution.xml | 23 - .../ws/simpleService/HelloWorld.composite | 84 - .../ws/simpleService/META-INF/sca-contribution.xml | 23 - .../itest/nodes/helloworld-client/pom.xml | 44 - .../src/main/java/itest/nodes/HelloworldImpl.java | 43 - .../main/resources/META-INF/sca-contribution.xml | 23 - .../src/main/resources/helloworld-client.composite | 29 - .../itest/nodes/helloworld-iface/pom.xml | 39 - .../src/main/java/itest/nodes/Helloworld.java | 29 - .../itest/nodes/helloworld-service-a/pom.xml | 44 - .../src/main/java/itest/nodes/HelloworldImpl.java | 43 - .../main/resources/META-INF/sca-contribution.xml | 23 - .../src/main/resources/service-a.composite | 29 - .../nodes/helloworld-service-and-client/pom.xml | 39 - .../src/main/java/itest/nodes/sac/Helloworld.java | 26 - .../java/itest/nodes/sac/HelloworldClientImpl.java | 34 - .../itest/nodes/sac/HelloworldServiceImpl.java | 30 - .../main/resources/META-INF/sca-contribution.xml | 23 - .../main/resources/helloworld-service.composite | 33 - .../itest/nodes/helloworld-service-b/pom.xml | 49 - .../src/main/java/itest/nodes/HelloworldImpl.java | 33 - .../main/resources/META-INF/sca-contribution.xml | 23 - .../src/main/resources/service-b.composite | 29 - .../itest/nodes/helloworld-service-c/pom.xml | 49 - .../src/main/java/itest/nodes/HelloworldImpl.java | 28 - .../main/resources/META-INF/sca-contribution.xml | 23 - .../src/main/resources/service-c.composite | 28 - .../itest/nodes/helloworld-service/pom.xml | 43 - .../src/main/java/itest/nodes/HelloworldImpl.java | 30 - .../main/resources/META-INF/sca-contribution.xml | 23 - .../main/resources/helloworld-service.composite | 28 - .../itest/nodes/one-jvm-hazelcast-client/pom.xml | 70 - .../src/test/java/itest/ClientTestCase.java | 110 - .../itest/nodes/one-jvm-hazelcast/pom.xml | 70 - .../java/itest/OneNodeOneContributionTestCase.java | 64 - .../src/test/java/itest/OneNodeTestCase.java | 76 - .../src/test/java/itest/TwoNodeTestCase.java | 82 - .../test/java/itest/TwoRemoteNodesTestCase.java | 82 - .../2.0-M5-RC3/itest/nodes/one-jvm-tribes/pom.xml | 82 - .../src/test/java/itest/OneNodeTestCase.java | 76 - .../src/test/java/itest/TwoNodeTestCase.java | 82 - .../test/java/itest/TwoRemoteNodesTestCase.java | 83 - .../tags/2.0-M5-RC3/itest/nodes/one-jvm/pom.xml | 55 - .../src/test/java/itest/OneNodeTestCase.java | 76 - .../src/test/java/itest/TwoNodeTestCase.java | 82 - .../2.0-M5-RC3/itest/nodes/one-node-test/pom.xml | 48 - .../src/test/java/itest/OneNodeTestCase.java | 87 - sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/pom.xml | 63 - .../nodes/three-nodes-three-vms-test/build.xml | 38 - .../nodes/three-nodes-three-vms-test/client.xml | 31 - .../itest/nodes/three-nodes-three-vms-test/pom.xml | 104 - .../nodes/three-nodes-three-vms-test/server.xml | 30 - .../service-a-config.xml | 39 - .../service-b-config.xml | 39 - .../service-c-config.xml | 39 - .../src/test/java/itest/ServiceA.java | 65 - .../src/test/java/itest/ServiceB.java | 55 - .../src/test/java/itest/ServiceC.java | 55 - .../2.0-M5-RC3/itest/nodes/two-nodes-test/pom.xml | 59 - .../src/test/java/itest/ClientNode.java | 93 - .../src/test/java/itest/ServiceNode.java | 58 - .../test/java/itest/StopStartNodesTestCase.java | 103 - .../src/test/java/itest/TestCaseRunner.java | 292 --- .../src/test/java/itest/TwoNodesTestCase.java | 106 - .../nodes/two-nodes-two-vms-hazelcast/build.xml | 39 - .../two-nodes-two-vms-hazelcast/client-config.xml | 39 - .../nodes/two-nodes-two-vms-hazelcast/client.xml | 55 - .../nodes/two-nodes-two-vms-hazelcast/pom.xml | 114 - .../two-nodes-two-vms-hazelcast/scaclient.xml | 54 - .../two-nodes-two-vms-hazelcast/server-config.xml | 39 - .../nodes/two-nodes-two-vms-hazelcast/server.xml | 42 - .../src/test/java/itest/Client.java | 56 - .../src/test/java/itest/SCAClient.java | 66 - .../src/test/java/itest/Service.java | 59 - .../itest/nodes/two-nodes-two-vms-test/build.xml | 38 - .../nodes/two-nodes-two-vms-test/client-config.xml | 39 - .../itest/nodes/two-nodes-two-vms-test/client.xml | 31 - .../itest/nodes/two-nodes-two-vms-test/pom.xml | 104 - .../nodes/two-nodes-two-vms-test/server-config.xml | 39 - .../itest/nodes/two-nodes-two-vms-test/server.xml | 33 - .../src/test/java/itest/Client.java | 69 - .../src/test/java/itest/Service.java | 61 - .../tags/2.0-M5-RC3/itest/oneway/build.xml | 127 -- sca-java-2.x/tags/2.0-M5-RC3/itest/oneway/pom.xml | 64 - .../tuscany/sca/itest/oneway/OneWayClient.java | 40 - .../tuscany/sca/itest/oneway/OneWayService.java | 47 - .../sca/itest/oneway/impl/OneWayClientImpl.java | 64 - .../sca/itest/oneway/impl/OneWayServiceImpl.java | 68 - .../META-INF/sca-deployables/oneWay.composite | 57 - .../tuscany/sca/itest/oneway/OneWayTestCase.java | 235 -- .../2.0-M5-RC3/itest/operation-overloading/pom.xml | 53 - .../sca/test/opoverload/OverloadASourceTarget.java | 61 - .../sca/test/opoverload/impl/OverloadASource.java | 113 - .../sca/test/opoverload/impl/OverloadATarget.java | 99 - .../src/main/resources/OperationOverload.composite | 34 - .../test/opoverload/impl/OverloadATestCase.java | 98 - .../tags/2.0-M5-RC3/itest/policies/pom.xml | 59 - .../tuscany/sca/itest/policies/CreditCard.java | 65 - .../sca/itest/policies/CreditCardPayment.java | 37 - .../tuscany/sca/itest/policies/Customer.java | 51 - .../sca/itest/policies/CustomerRegistry.java | 27 - .../apache/tuscany/sca/itest/policies/Payment.java | 30 - .../itest/policies/impl/CreditCardPaymentImpl.java | 40 - .../itest/policies/impl/CustomerRegistryImpl.java | 78 - .../sca/itest/policies/impl/PaymentImpl.java | 54 - .../policies/src/main/resources/Customer.composite | 34 - .../src/main/resources/LoggingMessages.properties | 16 - .../src/main/resources/META-INF/definitions.xml | 71 - .../main/resources/META-INF/sca-contribution.xml | 23 - .../policies/src/main/resources/Payment.composite | 57 - .../sca/itest/policies/PaymentTestCase.java | 69 - .../2.0-M5-RC3/itest/policy-transaction/pom.xml | 72 - .../src/main/java/customer/Customer.java | 44 - .../src/main/java/customer/CustomerRegistry.java | 30 - .../java/customer/impl/CustomerRegistryImpl.java | 63 - .../src/main/resources/Customer.composite | 30 - .../itest/policy/transaction/CustomerTestCase.java | 69 - .../tags/2.0-M5-RC3/itest/policy/matching/pom.xml | 58 - .../sca/policy/matching/helloworld/HelloWorld.java | 29 - .../matching/helloworld/HelloWorldClient.java | 35 - .../matching/helloworld/HelloWorldService.java | 30 - .../main/resources/META-INF/sca-contribution.xml | 23 - ....apache.tuscany.sca.definitions.xml.Definitions | 17 - .../sca/policy/matching/helloworld/definitions.xml | 65 - .../matching/helloworld/helloworld.composite | 86 - .../sca/policy/matching/helloworld/helloworld.wsdl | 90 - .../sca/policy/matching/MatchingTestCase.java | 135 -- sca-java-2.x/tags/2.0-M5-RC3/itest/policy/pom.xml | 37 - .../tags/2.0-M5-RC3/itest/policy/wspolicy/pom.xml | 58 - .../sca/policy/wspolicy/helloworld/HelloWorld.java | 29 - .../wspolicy/helloworld/HelloWorldClient.java | 35 - .../wspolicy/helloworld/HelloWorldService.java | 30 - .../src/main/resources/LoggingMessages.properties | 16 - .../main/resources/META-INF/sca-contribution.xml | 23 - ....apache.tuscany.sca.definitions.xml.Definitions | 17 - .../sca/policy/wspolicy/helloworld/definitions.xml | 42 - .../wspolicy/helloworld/helloworld.composite | 38 - .../sca/policy/wspolicy/helloworld/helloworld.wsdl | 90 - .../sca/policy/wspolicy/WSPolicyTestCase.java | 50 - sca-java-2.x/tags/2.0-M5-RC3/itest/pom.xml | 111 - .../tags/2.0-M5-RC3/itest/properties/pom.xml | 74 - .../java/mysca/test/myservice/impl/MyService.java | 34 - .../mysca/test/myservice/impl/MyServiceImpl.java | 88 - .../test/myservice/impl/MyTotalServiceImpl.java | 46 - .../apache/tuscany/sca/itest/ABCDComponent.java | 50 - .../tuscany/sca/itest/ABCDComponentImpl.java | 73 - .../org/apache/tuscany/sca/itest/ABComponent.java | 75 - .../apache/tuscany/sca/itest/ABComponentImpl.java | 131 -- .../org/apache/tuscany/sca/itest/CDComponent.java | 71 - .../apache/tuscany/sca/itest/CDComponentImpl.java | 143 -- .../tuscany/sca/itest/ComplexPropertyBean.java | 151 -- .../apache/tuscany/sca/itest/OverrideService.java | 27 - .../tuscany/sca/itest/OverrideServiceImpl.java | 28 - .../tuscany/sca/itest/PropertyComponent.java | 114 - .../tuscany/sca/itest/PropertyComponentImpl.java | 144 -- .../apache/tuscany/sca/itest/PropertyService.java | 27 - .../java/org/apache/tuscany/sca/itest/cdi/Bar.java | 23 - .../org/apache/tuscany/sca/itest/cdi/Foo1.java | 38 - .../org/apache/tuscany/sca/itest/cdi/Foo2.java | 39 - .../org/apache/tuscany/sca/itest/cdi/Foo3.java | 44 - .../main/java/test/jaxb/props/ObjectFactory.java | 75 - .../java/test/jaxb/props/ReturnCodeProperties.java | 103 - .../main/java/test/jaxb/props/package-info.java | 27 - .../ConstructorPropertyInjection.composite | 39 - .../properties/src/main/resources/Outer.composite | 43 - .../src/main/resources/OuterPropertyTest.composite | 42 - .../src/main/resources/PropertyTest.composite | 260 --- .../properties/src/main/resources/customer.xsd | 30 - .../properties/src/main/resources/fileProperty.txt | 21 - .../itest/properties/src/main/resources/foo.xsd | 40 - .../src/main/resources/manyValuesFileProperty.txt | 25 - .../src/main/resources/mySimpleService.composite | 40 - .../properties/src/main/resources/rcProps.txt | 22 - .../properties/src/main/resources/rcprops.xsd | 55 - .../tuscany/sca/itest/MyTotalServiceTestCase.java | 104 - .../tuscany/sca/itest/OuterPropertyTestCase.java | 169 -- .../apache/tuscany/sca/itest/PropertyTestCase.java | 422 ---- .../cdi/ConstructorPropertyInjectionTestCase.java | 72 - .../2.0-M5-RC3/itest/recursive-multi-level/pom.xml | 61 - .../main/java/mysca/test/myservice/MyService.java | 26 - .../java/mysca/test/myservice/MyServiceImpl.java | 42 - .../mysca/test/myservice/MySimpleTotalService.java | 26 - .../test/myservice/MySimpleTotalServiceImpl.java | 39 - .../src/main/resources/TotalService1Auto.composite | 52 - .../src/main/resources/TotalService2Auto.composite | 49 - .../src/main/resources/TotalService3Auto.composite | 52 - .../java/test/sca/tests/MultiLevelTestCase.java | 90 - .../tags/2.0-M5-RC3/itest/recursive-ws/pom.xml | 92 - .../recursive-ws/src/main/java/policy/Target.java | 26 - .../src/main/java/policy/TargetClientImpl.java | 33 - .../src/main/java/policy/TargetServiceImpl.java | 29 - .../src/main/java/recursive/Composer.java | 26 - .../src/main/java/recursive/ComposerClient.java | 43 - .../main/java/recursive/ComposerClientImpl.java | 38 - .../src/main/java/recursive/ComposerImpl.java | 34 - .../src/main/java/recursive/ComposerServer.java | 42 - .../src/main/resources/Client.composite | 29 - .../src/main/resources/Inner.composite | 27 - .../src/main/resources/Outer.composite | 32 - .../bindingoverride/InnerComposite.composite | 36 - .../bindingoverride/OuterComposite.composite | 38 - .../policy/PolicyInnerComposite.composite | 37 - .../policy/PolicyOuterComposite.composite | 39 - .../src/main/resources/policy/definitions.xml | 39 - .../bindingoverride/BindingOverrideTestCase.java | 65 - .../src/test/java/policy/PolicyTestCase.java | 81 - .../java/recursive/ComposerClientTestCase.java | 76 - .../test/java/recursive/ComposerTestServer.java | 61 - .../tags/2.0-M5-RC3/itest/references/pom.xml | 52 - .../tuscany/sca/itest/references/AComponent.java | 40 - .../sca/itest/references/AComponentImpl.java | 125 -- .../tuscany/sca/itest/references/BComponent.java | 26 - .../sca/itest/references/BComponentImpl.java | 39 - .../references/BComponentWrongTargetImpl.java | 39 - .../tuscany/sca/itest/references/CComponent.java | 24 - .../sca/itest/references/CComponentImpl.java | 27 - .../tuscany/sca/itest/references/DComponent.java | 26 - .../sca/itest/references/DComponentImpl.java | 35 - .../resources/AutoWiredReferencesTest.composite | 61 - .../main/resources/InnerReferencesTest.composite | 51 - .../resources/ManualWiredReferencesTest.composite | 59 - .../references/AutoWiredReferenceTestCase.java | 114 - .../itest/references/InnerReferenceTestCase.java | 99 - .../references/ManualWiredReferenceTestCase.java | 97 - .../2.0-M5-RC3/itest/samples/helloworld/pom.xml | 38 - .../src/test/java/itest/helloworld/Helloworld.java | 27 - .../helloworld/HelloworldDomainNodeTestCase.java | 51 - .../itest/helloworld/HelloworldNodeTestCase.java | 49 - .../itest/scaclient-api-jse-osgi/pom.xml | 57 - .../src/main/java/itest/HelloworldService.java | 25 - .../src/main/java/itest/HelloworldServiceImpl.java | 38 - .../src/main/resources/Helloworld.composite | 29 - .../main/resources/META-INF/sca-contribution.xml | 23 - .../java/test/scaclient/SCAClientTestCase.java | 63 - .../itest/scaclient-api-osgi/META-INF/MANIFEST.MF | 20 - .../2.0-M5-RC3/itest/scaclient-api-osgi/pom.xml | 109 - .../src/main/java/itest/HelloworldService.java | 25 - .../src/main/java/itest/HelloworldServiceImpl.java | 38 - .../src/main/resources/Helloworld.composite | 29 - .../main/resources/META-INF/sca-contribution.xml | 23 - .../java/test/scaclient/SCAClientTestCase.java | 65 - .../2.0-M5-RC3/itest/scaclient-api-remote/pom.xml | 64 - .../src/main/java/itest/HelloworldService.java | 28 - .../src/main/java/itest/HelloworldServiceImpl.java | 38 - .../src/main/resources/Helloworld.composite | 29 - .../main/resources/META-INF/sca-contribution.xml | 23 - .../java/test/scaclient/SCAClientTestCase.java | 115 - .../tags/2.0-M5-RC3/itest/scaclient-api/pom.xml | 46 - .../src/main/java/itest/HelloworldService.java | 25 - .../src/main/java/itest/HelloworldServiceImpl.java | 44 - .../main/java/itest/RemoteHelloworldService.java | 28 - .../src/main/resources/Helloworld.composite | 29 - .../main/resources/META-INF/sca-contribution.xml | 23 - .../java/test/scaclient/SCAClientTestCase.java | 129 -- sca-java-2.x/tags/2.0-M5-RC3/itest/scdl/pom.xml | 79 - .../sca/itest/scdl/ContributionTestCase.java | 80 - .../tuscany/sca/itest/scdl/SCDLTestCase.java | 109 - .../itest/scdl/ValidateDependenciesTestCase.java | 68 - .../itest/scdl/src/test/resources/test.composite | 51 - sca-java-2.x/tags/2.0-M5-RC3/itest/scopes/pom.xml | 54 - .../scopes/CompositeScopeStateVerifierImpl.java | 46 - .../tuscany/sca/itest/scopes/StateVerifier.java | 25 - .../scopes/src/main/resources/scopes.composite | 29 - .../org/apache/tuscany/sca/test/ScopeTestCase.java | 89 - .../2.0-M5-RC3/itest/service-reference/pom.xml | 66 - .../tuscany/sca/itest/serviceref/AComponent.java | 39 - .../sca/itest/serviceref/AComponentImpl.java | 112 - .../tuscany/sca/itest/serviceref/BComponent.java | 31 - .../sca/itest/serviceref/BComponentImpl.java | 38 - .../tuscany/sca/itest/serviceref/Base64Binary.java | 297 --- .../tuscany/sca/itest/serviceref/CComponent.java | 27 - .../sca/itest/serviceref/CComponentImpl.java | 30 - .../tuscany/sca/itest/serviceref/DComponent.java | 30 - .../sca/itest/serviceref/DComponentImpl.java | 64 - .../src/main/resources/nodeA/CompositeA.composite | 44 - .../src/main/resources/nodeB/CompositeB.composite | 46 - .../ServiceReferenceTest.composite | 48 - .../CallableReferenceRemoteTestCase.java | 139 -- .../itest/serviceref/ServiceReferenceTestCase.java | 88 - .../tags/2.0-M5-RC3/itest/services/pom.xml | 53 - .../tuscany/sca/itest/services/AComponent.java | 27 - .../tuscany/sca/itest/services/AComponentImpl.java | 28 - .../tuscany/sca/itest/services/BComponent.java | 25 - .../tuscany/sca/itest/services/BComponentImpl.java | 31 - .../tuscany/sca/itest/services/CComponent.java | 27 - .../tuscany/sca/itest/services/CComponentImpl.java | 28 - .../tuscany/sca/itest/services/D1Component.java | 24 - .../tuscany/sca/itest/services/DComponent.java | 24 - .../tuscany/sca/itest/services/DComponentImpl.java | 34 - .../main/resources/META-INF/sca-contribution.xml | 23 - .../src/main/resources/ServicesTest.composite | 70 - .../sca/itest/services/ServicesTestCase.java | 108 - sca-java-2.x/tags/2.0-M5-RC3/itest/wires/pom.xml | 53 - .../org/apache/tuscany/sca/itest/WireClient.java | 34 - .../apache/tuscany/sca/itest/WireClientImpl.java | 51 - .../org/apache/tuscany/sca/itest/WireService.java | 36 - .../apache/tuscany/sca/itest/WireServiceImpl.java | 39 - .../wires/src/main/resources/WireTest.composite | 39 - .../org/apache/tuscany/sca/itest/WireTestCase.java | 78 - sca-java-2.x/tags/2.0-M5-RC3/itest/ws-jaxws/README | 83 - .../itest/ws-jaxws/contribution-java-first/pom.xml | 123 -- .../apache/tuscany/sca/binding/ws/jaxws/Bar.java | 58 - .../apache/tuscany/sca/binding/ws/jaxws/Foo.java | 36 - .../tuscany/sca/binding/ws/jaxws/HelloWorld.java | 31 - .../sca/binding/ws/jaxws/HelloWorldImpl.java | 53 - .../resources/HelloWorldServiceService_schema1.xsd | 38 - .../main/resources/META-INF/sca-contribution.xml | 23 - .../resources/helloworld-external-service.wsdl | 57 - .../src/main/resources/helloworld.composite | 35 - .../itest/ws-jaxws/contribution-wsdl-first/pom.xml | 125 -- .../sca/binding/ws/jaxws/impl/HelloWorldImpl.java | 43 - .../main/resources/META-INF/sca-contribution.xml | 23 - .../src/main/resources/helloworld-external.wsdl | 84 - .../src/main/resources/helloworld-sca.wsdl | 84 - .../src/main/resources/helloworld.composite | 35 - .../itest/ws-jaxws/external-client/pom.xml | 122 -- .../external/client/HelloWorldClientLauncher.java | 73 - .../src/main/resources/HelloWorldImplService.wsdl | 104 - .../resources/HelloWorldImplService_schema1.xsd | 93 - .../itest/ws-jaxws/external-service/pom.xml | 104 - .../jaxws/external/service/HelloWorldService.java | 57 - .../service/HelloWorldServiceLauncher.java | 49 - .../2.0-M5-RC3/itest/ws-jaxws/launcher-ri/pom.xml | 114 - .../ws/jaxws/launcher/JavaFirstTestCase.java | 119 - .../ws/jaxws/launcher/WSDLFirstTestCaseOFF.java | 143 -- .../tags/2.0-M5-RC3/itest/ws-jaxws/pom.xml | 41 - .../itest/ws/authentication-basic/pom.xml | 47 - .../binding/ws/axis2/helloworld/HelloWorld.java | 29 - .../ws/axis2/helloworld/HelloWorldClient.java | 35 - .../ws/axis2/helloworld/HelloWorldService.java | 45 - .../main/resources/META-INF/sca-contribution.xml | 23 - ....apache.tuscany.sca.definitions.xml.Definitions | 17 - .../binding/ws/axis2/helloworld/definitions.xml | 46 - .../ws/axis2/helloworld/helloworld.composite | 45 - .../binding/ws/axis2/helloworld/helloworld.wsdl | 90 - .../sca/binding/ws/axis2/HelloworldTestCase.java | 50 - .../tags/2.0-M5-RC3/itest/ws/defaults/pom.xml | 47 - .../apache/tuscany/sca/binding/ws/axis2/Bar.java | 58 - .../apache/tuscany/sca/binding/ws/axis2/Foo.java | 36 - .../tuscany/sca/binding/ws/axis2/HelloWorld.java | 29 - .../sca/binding/ws/axis2/HelloWorldClient.java | 40 - .../sca/binding/ws/axis2/HelloWorldService.java | 42 - .../main/resources/META-INF/sca-contribution.xml | 23 - .../sca/binding/ws/axis2/helloworld.composite | 41 - .../tuscany/sca/binding/ws/axis2/helloworld.wsdl | 90 - .../sca/binding/ws/axis2/DefaultsTestCase.java | 74 - .../itest/ws/endpoint-references/pom.xml | 47 - .../tuscany/sca/binding/ws/axis2/HelloWorld.java | 29 - .../sca/binding/ws/axis2/HelloWorldComponent.java | 33 - .../sca/binding/ws/axis2/HelloWorldService.java | 28 - .../sca/binding/ws/axis2/HelloWorld.composite | 48 - .../tuscany/sca/binding/ws/axis2/helloworld.wsdl | 86 - .../sca/binding/ws/axis2/HelloWorldTestCase.java | 52 - .../tags/2.0-M5-RC3/itest/ws/endpoints/pom.xml | 47 - .../binding/ws/axis2/HelloWorldMultiService.java | 51 - .../tuscany/sca/binding/ws/axis2/HelloWorldOM.java | 30 - .../sca/binding/ws/axis2/HelloWorldOM2.java | 30 - .../binding/ws/axis2/HelloWorldOMComponent.java | 34 - .../sca/binding/ws/axis2/HelloWorldOMService.java | 41 - .../binding/ws/axis2/DefaultMultiService.composite | 53 - .../ws/axis2/DefaultSingleService.composite | 51 - .../sca/binding/ws/axis2/WSDLExplicitURI.composite | 50 - .../sca/binding/ws/axis2/WSDLRelativeURI.composite | 51 - .../ws/axis2/helloworld-om-relative-uri.wsdl | 78 - .../sca/binding/ws/axis2/helloworld-om-uri.wsdl | 78 - .../sca/binding/ws/axis2/helloworld-om.wsdl | 78 - .../ws/axis2/AbstractHelloWorldOMTestCase.java | 68 - .../ws/axis2/DefaultMultiServiceTestCase.java | 24 - .../ws/axis2/DefaultSingleServiceTestCase.java | 24 - .../binding/ws/axis2/WSDLExplicitURITestCase.java | 24 - .../binding/ws/axis2/WSDLRelativeURITestCase.java | 24 - .../tags/2.0-M5-RC3/itest/ws/http-ssl/README | 68 - .../tags/2.0-M5-RC3/itest/ws/http-ssl/pom.xml | 52 - .../binding/ws/axis2/helloworld/HelloWorld.java | 29 - .../ws/axis2/helloworld/HelloWorldClient.java | 35 - .../ws/axis2/helloworld/HelloWorldService.java | 30 - .../main/resources/META-INF/sca-contribution.xml | 23 - ....apache.tuscany.sca.definitions.xml.Definitions | 17 - .../binding/ws/axis2/helloworld/definitions.xml | 35 - .../ws/axis2/helloworld/helloworld.composite | 59 - .../binding/ws/axis2/helloworld/helloworld.wsdl | 90 - .../sca/binding/ws/axis2/helloworld/tuscany.jks | Bin 1378 -> 0 bytes .../sca/binding/ws/axis2/HTTPSTestCase.java | 57 - sca-java-2.x/tags/2.0-M5-RC3/itest/ws/pom.xml | 48 - sca-java-2.x/tags/2.0-M5-RC3/itest/ws/wsdl/pom.xml | 47 - .../tuscany/sca/binding/ws/axis2/Account.java | 34 - .../sca/binding/ws/axis2/AccountService.java | 33 - .../sca/binding/ws/axis2/CustomerProfileData.java | 103 - .../tuscany/sca/binding/ws/axis2/HelloWorld.java | 29 - .../tuscany/sca/binding/ws/axis2/HelloWorldOM.java | 30 - .../binding/ws/axis2/HelloWorldOMComponent.java | 34 - .../sca/binding/ws/axis2/HelloWorldOMService.java | 41 - .../sca/binding/ws/axis2/HelloWorldService.java | 28 - .../tuscany/sca/binding/ws/axis2/customerdata.xsd | 36 - .../tuscany/sca/binding/ws/axis2/customerdefs.xsd | 27 - .../tuscany/sca/binding/ws/axis2/customerinfo.xsd | 31 - .../ws/axis2/helloworld-om-merged.composite | 43 - .../sca/binding/ws/axis2/helloworld-om-merged.wsdl | 59 - .../sca/binding/ws/axis2/helloworld-prec.composite | 46 - .../sca/binding/ws/axis2/helloworld-prec.wsdl | 81 - .../tuscany/sca/binding/ws/axis2/helloworld.wsdl | 86 - .../ws/axis2/questionmark-import-nested.wsdl | 70 - .../sca/binding/ws/axis2/questionmark-import.wsdl | 49 - .../sca/binding/ws/axis2/questionmark-include.wsdl | 94 - .../ws/axis2/questionmark-wsdl-import.composite | 31 - .../ws/axis2/questionmark-wsdl-include.composite | 31 - .../binding/ws/axis2/questionmark-wsdl.composite | 33 - .../ws/axis2/HelloWorldWSDLMergedTestCase.java | 62 - .../ws/axis2/QuestionMarkWSDLImportTestCase.java | 99 - .../ws/axis2/QuestionMarkWSDLIncludeTestCase.java | 98 - .../binding/ws/axis2/QuestionMarkWSDLTestCase.java | 126 -- .../binding/ws/axis2/UriPrecedenceTestCase.java | 73 - .../2.0-M5-RC3/maven/maven-tuscany-plugin/LICENSE | 205 -- .../2.0-M5-RC3/maven/maven-tuscany-plugin/NOTICE | 6 - .../2.0-M5-RC3/maven/maven-tuscany-plugin/README | 21 - .../2.0-M5-RC3/maven/maven-tuscany-plugin/pom.xml | 60 - .../tuscany/maven/plugin/TuscanyLaunchMojo.java | 108 - .../tuscany/maven/plugin/TuscanyRunMojo.java | 188 -- .../tags/2.0-M5-RC3/modules/assembly-xml/LICENSE | 205 -- .../modules/assembly-xml/META-INF/MANIFEST.MF | 70 - .../tags/2.0-M5-RC3/modules/assembly-xml/NOTICE | 6 - .../tags/2.0-M5-RC3/modules/assembly-xml/pom.xml | 88 - .../sca/assembly/xml/BaseAssemblyProcessor.java | 782 ------- .../xml/ComponentTypeDocumentProcessor.java | 129 -- .../assembly/xml/ComponentTypeModelResolver.java | 96 - .../sca/assembly/xml/ComponentTypeProcessor.java | 381 ---- .../assembly/xml/CompositeDocumentProcessor.java | 185 -- .../sca/assembly/xml/CompositeModelResolver.java | 96 - .../sca/assembly/xml/CompositeProcessor.java | 1118 ---------- .../assembly/xml/ConfiguredOperationProcessor.java | 108 - .../apache/tuscany/sca/assembly/xml/Constants.java | 156 -- .../assembly/xml/DefaultBeanModelProcessor.java | 257 --- .../sca/assembly/xml/EndpointProcessor.java | 126 -- .../assembly/xml/EndpointReferenceProcessor.java | 151 -- .../apache/tuscany/sca/assembly/xml/Messages.java | 28 - .../sca/assembly/xml/PolicySubjectProcessor.java | 242 --- .../sca/assembly/xml/SCABindingProcessor.java | 132 -- .../xml/DefaultDefinitionsExtensionPoint.java | 128 -- .../xml/DefinitionsDocumentProcessor.java | 171 -- .../definitions/xml/DefinitionsExtensionPoint.java | 64 - .../sca/definitions/xml/DefinitionsProcessor.java | 292 --- .../tuscany/sca/definitions/xml/Messages.java | 27 - .../sca/policy/xml/BindingTypeProcessor.java | 65 - .../sca/policy/xml/ExtensionTypeProcessor.java | 250 --- .../policy/xml/ImplementationTypeProcessor.java | 65 - .../tuscany/sca/policy/xml/IntentProcessor.java | 424 ---- .../apache/tuscany/sca/policy/xml/Messages.java | 27 - .../tuscany/sca/policy/xml/PolicyConstants.java | 74 - .../tuscany/sca/policy/xml/PolicySetProcessor.java | 554 ----- .../sca/policy/xml/PolicyXPathFunction.java | 158 -- .../policy/xml/PolicyXPathFunctionResolver.java | 72 - .../sca-policy-1.1-intents-definitions-cd03.xml | 242 --- ...ca.contribution.processor.StAXArtifactProcessor | 29 - ...sca.contribution.processor.URLArtifactProcessor | 22 - ...tuscany.sca.contribution.resolver.ModelResolver | 21 - ....apache.tuscany.sca.definitions.xml.Definitions | 17 - ...y.sca.definitions.xml.DefinitionsExtensionPoint | 17 - .../assembly-xml-validation-messages.properties | 32 - .../definitions-xml-validation-messages.properties | 24 - .../xml/policy-xml-validation-messages.properties | 50 - .../assembly/xml/CompositeProcessorTestCase.java | 108 - .../xml/MultiplicityReadWriteTestCase.java | 88 - .../tuscany/sca/assembly/xml/ReadAllTestCase.java | 151 -- .../sca/assembly/xml/ReadDocumentTestCase.java | 192 -- .../tuscany/sca/assembly/xml/ReadTestCase.java | 85 - .../xml/ReadWriteAnyAttributeTestCase.java | 130 -- .../assembly/xml/ReadWriteAnyElementTestCase.java | 151 -- .../xml/ReadWriteLocalCompositeTestCase.java | 103 - .../sca/assembly/xml/ResolvePolicyTestCase.java | 143 -- .../tuscany/sca/assembly/xml/ResolveTestCase.java | 82 - .../sca/assembly/xml/StripURISpacesTestCase.java | 78 - .../sca/assembly/xml/TestAttributeProcessor.java | 62 - .../sca/assembly/xml/TestPolicyProcessor.java | 83 - .../assembly/xml/TestSCABindingFactoryImpl.java | 35 - .../sca/assembly/xml/TestSCABindingImpl.java | 162 -- .../tuscany/sca/assembly/xml/WireTestCase.java | 109 - .../tuscany/sca/assembly/xml/WriteAllTestCase.java | 136 -- .../sca/assembly/xml/WriteNamespacesTestCase.java | 99 - .../tuscany/sca/definitions/xml/MockPolicy.java | 39 - .../sca/definitions/xml/ReadDocumentTestCase.java | 230 -- .../sca/definitions/xml/TestPolicyProcessor.java | 58 - .../xml/PolicyXPathFunctionResolverTestCase.java | 136 -- .../sca/policy/xml/ReadDocumentTestCase.java | 286 --- .../sca/policy/xml/TestPolicyProcessor.java | 83 - .../tuscany/sca/assembly/xml/Calculator.composite | 59 - .../sca/assembly/xml/CalculatorImpl.componentType | 31 - .../sca/assembly/xml/CalculatorURISpaces.composite | 59 - .../sca/assembly/xml/Multiplicity.composite | 32 - .../sca/assembly/xml/NestedCalculator.composite | 29 - .../sca/assembly/xml/RMIBindingTest.composite | 44 - .../sca/assembly/xml/TestAllCalculator.composite | 127 -- .../sca/assembly/xml/TestAllDivide.composite | 56 - .../assembly/xml/TestAllPolicyCalculator.composite | 125 -- .../sca/assembly/xml/another_test_definitions.xml | 96 - .../tuscany/sca/assembly/xml/local.composite | 27 - .../tuscany/sca/assembly/xml/test_definitions.xml | 206 -- .../sca/definitions/xml/test_definitions.xml | 207 -- .../tuscany/sca/policy/xml/Calculator.composite | 49 - .../tuscany/sca/policy/xml/test_definitions.xml | 204 -- .../tags/2.0-M5-RC3/modules/assembly-xsd/LICENSE | 338 --- .../modules/assembly-xsd/META-INF/MANIFEST.MF | 13 - .../tags/2.0-M5-RC3/modules/assembly-xsd/NOTICE | 38 - .../tags/2.0-M5-RC3/modules/assembly-xsd/pom.xml | 31 - .../apache/tuscany/sca/assembly/xsd/Constants.java | 140 -- ...any.sca.contribution.processor.ValidationSchema | 19 - .../apache/tuscany/sca/assembly/xsd/XMLSchema.dtd | 402 ---- .../apache/tuscany/sca/assembly/xsd/datatypes.dtd | 204 -- .../xsd/oasis-200401-wss-wssecurity-secext-1.0.xsd | 195 -- .../oasis-200401-wss-wssecurity-utility-1.0.xsd | 108 - .../apache/tuscany/sca/assembly/xsd/ws-addr.xsd | 137 -- .../apache/tuscany/sca/assembly/xsd/ws-policy.xsd | 141 -- .../org/apache/tuscany/sca/assembly/xsd/wsdli.xsd | 35 - .../org/apache/tuscany/sca/assembly/xsd/xml.xsd | 117 - .../sca/assembly/xsd/xmldsig-core-schema.xsd | 318 --- .../src/main/resources/sca-1.1-cd05.xsd | 38 - .../main/resources/sca-binding-ejb-1.1-cd01.xsd | 34 - .../main/resources/sca-binding-jca-1.1-cd04.xsd | 173 -- .../main/resources/sca-binding-jms-1.1-cd04.xsd | 179 -- .../main/resources/sca-binding-sca-1.1-cd05.xsd | 20 - .../src/main/resources/sca-binding-ws-1.1-cd04.xsd | 35 - .../resources/sca-binding-ws-callback-1.1-cd04.xsd | 18 - .../main/resources/sca-contribution-1.1-cd05.xsd | 90 - .../main/resources/sca-contribution-c-1.1-cd04.xsd | 35 - .../resources/sca-contribution-cpp-1.1-cd04.xsd | 35 - .../resources/sca-contribution-java-1.1-cd02.xsd | 34 - .../src/main/resources/sca-core-1.1-cd05.xsd | 478 ---- .../main/resources/sca-definitions-1.1-cd05.xsd | 30 - .../resources/sca-implementation-bpel-1.1-cd03.xsd | 32 - .../resources/sca-implementation-c-1.1-cd04.xsd | 55 - .../sca-implementation-composite-1.1-cd05.xsd | 26 - .../resources/sca-implementation-cpp-1.1-cd04.xsd | 63 - .../resources/sca-implementation-java-1.1-cd02.xsd | 26 - .../sca-implementation-spring-1.1-cd01.xsd | 21 - .../main/resources/sca-interface-c-1.1-cd04.xsd | 51 - .../main/resources/sca-interface-cpp-1.1-cd04.xsd | 51 - .../main/resources/sca-interface-java-1.1-cd04.xsd | 28 - .../main/resources/sca-interface-wsdl-1.1-cd05.xsd | 28 - .../src/main/resources/sca-jee-1.1-wd03.xsd | 52 - .../src/main/resources/sca-policy-1.1-cd03.xsd | 119 - .../sca-policy-1.1-intents-definitions-cd03.xml | 249 --- .../resources/tuscany-sca-1.1-binding-atom.xsd | 43 - .../main/resources/tuscany-sca-1.1-binding-dwr.xsd | 41 - .../resources/tuscany-sca-1.1-binding-http.xsd | 41 - .../main/resources/tuscany-sca-1.1-binding-jms.xsd | 128 -- .../resources/tuscany-sca-1.1-binding-jsonrpc.xsd | 41 - .../resources/tuscany-sca-1.1-binding-rest.xsd | 97 - .../main/resources/tuscany-sca-1.1-binding-rmi.xsd | 40 - .../main/resources/tuscany-sca-1.1-binding-rss.xsd | 43 - .../tuscany-sca-1.1-implementation-osgi.xsd | 53 - .../tuscany-sca-1.1-implementation-script.xsd | 38 - .../tuscany-sca-1.1-implementation-widget.xsd | 42 - .../src/main/resources/tuscany-sca-1.1.xsd | 40 - .../tags/2.0-M5-RC3/modules/assembly/LICENSE | 205 -- .../modules/assembly/META-INF/MANIFEST.MF | 60 - .../tags/2.0-M5-RC3/modules/assembly/NOTICE | 6 - .../tags/2.0-M5-RC3/modules/assembly/pom.xml | 45 - .../tuscany/sca/assembly/AbstractContract.java | 78 - .../tuscany/sca/assembly/AbstractProperty.java | 151 -- .../tuscany/sca/assembly/AbstractReference.java | 43 - .../tuscany/sca/assembly/AbstractService.java | 28 - .../tuscany/sca/assembly/AssemblyFactory.java | 167 -- .../java/org/apache/tuscany/sca/assembly/Base.java | 45 - .../org/apache/tuscany/sca/assembly/Binding.java | 114 - .../org/apache/tuscany/sca/assembly/Callback.java | 39 - .../org/apache/tuscany/sca/assembly/Component.java | 142 -- .../tuscany/sca/assembly/ComponentProperty.java | 89 - .../tuscany/sca/assembly/ComponentReference.java | 113 - .../tuscany/sca/assembly/ComponentService.java | 59 - .../apache/tuscany/sca/assembly/ComponentType.java | 90 - .../org/apache/tuscany/sca/assembly/Composite.java | 132 -- .../tuscany/sca/assembly/CompositeReference.java | 44 - .../tuscany/sca/assembly/CompositeService.java | 57 - .../tuscany/sca/assembly/ConfiguredOperation.java | 62 - .../org/apache/tuscany/sca/assembly/Contract.java | 111 - .../sca/assembly/DefaultAssemblyFactory.java | 41 - .../org/apache/tuscany/sca/assembly/Endpoint.java | 139 -- .../tuscany/sca/assembly/EndpointReference.java | 165 -- .../apache/tuscany/sca/assembly/Extensible.java | 45 - .../org/apache/tuscany/sca/assembly/Extension.java | 66 - .../tuscany/sca/assembly/Implementation.java | 36 - .../apache/tuscany/sca/assembly/Multiplicity.java | 50 - .../tuscany/sca/assembly/OperationSelector.java | 29 - .../sca/assembly/OperationsConfigurator.java | 33 - .../org/apache/tuscany/sca/assembly/Property.java | 40 - .../org/apache/tuscany/sca/assembly/Reference.java | 71 - .../apache/tuscany/sca/assembly/SCABinding.java | 30 - .../tuscany/sca/assembly/SCABindingFactory.java | 35 - .../org/apache/tuscany/sca/assembly/Service.java | 42 - .../java/org/apache/tuscany/sca/assembly/Wire.java | 85 - .../apache/tuscany/sca/assembly/WireFormat.java | 31 - .../sca/assembly/builder/BindingBuilder.java | 51 - .../sca/assembly/builder/BuilderContext.java | 107 - .../assembly/builder/BuilderExtensionPoint.java | 127 -- .../sca/assembly/builder/CompositeBuilder.java | 51 - .../builder/CompositeBuilderException.java | 45 - .../builder/DefaultBuilderExtensionPoint.java | 408 ---- .../assembly/builder/ImplementationBuilder.java | 50 - .../tuscany/sca/assembly/builder/Messages.java | 31 - .../sca/assembly/builder/PolicyBuilder.java | 84 - .../tuscany/sca/assembly/builder/WireBuilder.java | 39 - .../sca/assembly/impl/AbstractPropertyImpl.java | 112 - .../sca/assembly/impl/AbstractReferenceImpl.java | 46 - .../sca/assembly/impl/AbstractServiceImpl.java | 36 - .../sca/assembly/impl/AssemblyFactoryImpl.java | 138 -- .../apache/tuscany/sca/assembly/impl/BaseImpl.java | 45 - .../tuscany/sca/assembly/impl/BindingImpl.java | 122 -- .../tuscany/sca/assembly/impl/CallbackImpl.java | 67 - .../tuscany/sca/assembly/impl/ComponentImpl.java | 186 -- .../sca/assembly/impl/ComponentPropertyImpl.java | 97 - .../sca/assembly/impl/ComponentReferenceImpl.java | 119 - .../sca/assembly/impl/ComponentServiceImpl.java | 71 - .../sca/assembly/impl/ComponentTypeImpl.java | 176 -- .../tuscany/sca/assembly/impl/CompositeImpl.java | 185 -- .../sca/assembly/impl/CompositeReferenceImpl.java | 63 - .../sca/assembly/impl/CompositeServiceImpl.java | 62 - .../sca/assembly/impl/ConfiguredOperationImpl.java | 95 - .../tuscany/sca/assembly/impl/ContractImpl.java | 88 - .../tuscany/sca/assembly/impl/EndpointImpl.java | 276 --- .../sca/assembly/impl/EndpointReferenceImpl.java | 229 -- .../tuscany/sca/assembly/impl/ExtensibleImpl.java | 49 - .../tuscany/sca/assembly/impl/ExtensionImpl.java | 62 - .../sca/assembly/impl/ImplementationImpl.java | 89 - .../tuscany/sca/assembly/impl/PropertyImpl.java | 59 - .../tuscany/sca/assembly/impl/ReferenceImpl.java | 135 -- .../sca/assembly/impl/SCABindingFactoryImpl.java | 40 - .../tuscany/sca/assembly/impl/SCABindingImpl.java | 148 -- .../tuscany/sca/assembly/impl/ServiceImpl.java | 106 - .../apache/tuscany/sca/assembly/impl/WireImpl.java | 105 - .../sca/definitions/DefaultDefinitionsFactory.java | 32 - .../tuscany/sca/definitions/Definitions.java | 84 - .../sca/definitions/DefinitionsBuilder.java | 34 - .../definitions/DefinitionsBuilderException.java | 43 - .../sca/definitions/DefinitionsFactory.java | 31 - .../definitions/impl/DefinitionsBuilderImpl.java | 307 --- .../sca/definitions/impl/DefinitionsImpl.java | 73 - .../sca/definitions/util/DefinitionsUtil.java | 108 - .../tuscany/sca/interfacedef/Compatibility.java | 29 - .../apache/tuscany/sca/interfacedef/DataType.java | 120 - .../sca/interfacedef/FaultExceptionMapper.java | 63 - .../IncompatibleInterfaceContractException.java | 69 - .../apache/tuscany/sca/interfacedef/Interface.java | 116 - .../sca/interfacedef/InterfaceContract.java | 82 - .../sca/interfacedef/InterfaceContractMapper.java | 207 -- .../interfacedef/InvalidAnnotationException.java | 40 - .../sca/interfacedef/InvalidCallbackException.java | 35 - .../interfacedef/InvalidInterfaceException.java | 43 - .../interfacedef/InvalidOperationException.java | 43 - .../apache/tuscany/sca/interfacedef/Operation.java | 198 -- .../interfacedef/OverloadedOperationException.java | 46 - .../sca/interfacedef/impl/DataTypeImpl.java | 220 -- .../interfacedef/impl/InterfaceContractImpl.java | 129 -- .../impl/InterfaceContractMapperImpl.java | 392 ---- .../sca/interfacedef/impl/InterfaceImpl.java | 329 --- .../sca/interfacedef/impl/OperationImpl.java | 274 --- .../tuscany/sca/interfacedef/util/ElementInfo.java | 115 - .../sca/interfacedef/util/FaultException.java | 83 - .../sca/interfacedef/util/JavaXMLMapper.java | 144 -- .../tuscany/sca/interfacedef/util/TypeInfo.java | 101 - .../tuscany/sca/interfacedef/util/WrapperInfo.java | 204 -- .../tuscany/sca/interfacedef/util/XMLType.java | 153 -- .../org/apache/tuscany/sca/policy/BindingType.java | 27 - .../tuscany/sca/policy/DefaultPolicyFactory.java | 30 - .../apache/tuscany/sca/policy/ExtensionType.java | 82 - .../tuscany/sca/policy/ImplementationType.java | 27 - .../java/org/apache/tuscany/sca/policy/Intent.java | 161 -- .../org/apache/tuscany/sca/policy/IntentMap.java | 49 - .../tuscany/sca/policy/PolicyAttachment.java | 31 - .../apache/tuscany/sca/policy/PolicyContainer.java | 37 - .../tuscany/sca/policy/PolicyExpression.java | 66 - .../apache/tuscany/sca/policy/PolicyFactory.java | 67 - .../org/apache/tuscany/sca/policy/PolicySet.java | 147 -- .../apache/tuscany/sca/policy/PolicySubject.java | 57 - .../org/apache/tuscany/sca/policy/Qualifier.java | 44 - .../tuscany/sca/policy/impl/BindingTypeImpl.java | 38 - .../tuscany/sca/policy/impl/ExtensionTypeImpl.java | 97 - .../sca/policy/impl/ImplementationTypeImpl.java | 39 - .../apache/tuscany/sca/policy/impl/IntentImpl.java | 168 -- .../tuscany/sca/policy/impl/IntentMapImpl.java | 78 - .../sca/policy/impl/PolicyExpressionImpl.java | 87 - .../tuscany/sca/policy/impl/PolicyFactoryImpl.java | 70 - .../tuscany/sca/policy/impl/PolicySetImpl.java | 145 -- .../tuscany/sca/policy/impl/QualifierImpl.java | 48 - .../tuscany/sca/policy/util/PolicyHelper.java | 130 -- ...org.apache.tuscany.sca.assembly.AssemblyFactory | 18 - ...g.apache.tuscany.sca.assembly.SCABindingFactory | 19 - ...cany.sca.assembly.builder.BuilderExtensionPoint | 18 - ...ache.tuscany.sca.definitions.DefinitionsFactory | 17 - ...uscany.sca.interfacedef.InterfaceContractMapper | 19 - .../org.apache.tuscany.sca.policy.PolicyFactory | 18 - .../assembly-conformance-messages.properties | 327 --- .../assembly-validation-messages.properties | 81 - .../assembly-validation-messages_it.properties | 30 - .../definitions-validation-messages.properties | 25 - .../sca/assembly/AssemblyFactoryTestCase.java | 170 -- .../apache/tuscany/sca/assembly/TestBinding.java | 70 - .../tuscany/sca/assembly/TestImplementation.java | 61 - .../apache/tuscany/sca/assembly/TestInterface.java | 42 - .../sca/assembly/TestInterfaceContract.java | 41 - .../apache/tuscany/sca/assembly/TestOperation.java | 30 - .../impl/ContractCompatibilityTestCase.java | 396 ---- .../impl/InterfaceContractTestCase.java | 70 - .../tuscany/sca/policy/PolicyFactoryTestCase.java | 55 - .../modules/binding-atom-js-dojo/LICENSE | 205 -- .../binding-atom-js-dojo/META-INF/MANIFEST.MF | 24 - .../2.0-M5-RC3/modules/binding-atom-js-dojo/NOTICE | 6 - .../modules/binding-atom-js-dojo/pom.xml | 53 - .../AtomBindingJavascriptProxyFactoryImpl.java | 77 - ...scany.sca.web.javascript.JavascriptProxyFactory | 19 - .../modules/binding-atom-runtime/LICENSE | 205 -- .../binding-atom-runtime/META-INF/MANIFEST.MF | 47 - ...che.tuscany.sca.provider.BindingProviderFactory | 19 - .../2.0-M5-RC3/modules/binding-atom-runtime/NOTICE | 6 - .../modules/binding-atom-runtime/pom.xml | 227 -- .../sca/binding/atom/collection/Collection.java | 81 - .../binding/atom/collection/MediaCollection.java | 54 - .../binding/atom/collection/NotFoundException.java | 45 - .../binding/atom/provider/AtomBindingInvoker.java | 510 ----- .../atom/provider/AtomBindingListenerServlet.java | 895 -------- .../atom/provider/AtomBindingProviderFactory.java | 65 - .../sca/binding/atom/provider/AtomBindingUtil.java | 165 -- .../provider/AtomReferenceBindingProvider.java | 178 -- .../atom/provider/AtomServiceBindingProvider.java | 105 - ...che.tuscany.sca.provider.BindingProviderFactory | 20 - .../atom/AbstractProviderConsumerTestCase.java | 53 - .../sca/binding/atom/AtomDeleteTestCase.java | 118 - .../binding/atom/AtomFeedNonCollectionTest.java | 219 -- .../tuscany/sca/binding/atom/AtomGetTestCase.java | 121 -- .../tuscany/sca/binding/atom/AtomPostTestCase.java | 110 - .../tuscany/sca/binding/atom/AtomPutTestCase.java | 129 -- .../apache/tuscany/sca/binding/atom/Consumer.java | 43 - .../binding/atom/ConsumerProviderAtomTestCase.java | 159 -- .../sca/binding/atom/ContentNegotiationTest.java | 258 --- .../tuscany/sca/binding/atom/CustomerClient.java | 33 - .../sca/binding/atom/CustomerClientImpl.java | 103 - .../sca/binding/atom/CustomerCollectionImpl.java | 153 -- .../binding/atom/CustomerNonCollectionImpl.java | 55 - .../sca/binding/atom/MediaCollectionImpl.java | 213 -- .../sca/binding/atom/MediaCollectionTestCase.java | 294 --- .../apache/tuscany/sca/binding/atom/Provider.java | 49 - .../atom/ProviderEntryEntityTagsTestCase.java | 432 ---- .../atom/ProviderFeedEntityTagsTestCase.java | 386 ---- .../atom/ProviderServiceDocumentTestCase.java | 204 -- .../sca/binding/atom/aggregator/Aggregator.java | 35 - .../binding/atom/aggregator/AggregatorImpl.java | 135 -- .../atom/aggregator/AggregatorTestCase.java | 82 - .../tuscany/sca/binding/atom/aggregator/Sort.java | 39 - .../sca/binding/atom/aggregator/SortImpl.java | 62 - .../tuscany/sca/binding/atom/news/Headline.java | 54 - .../tuscany/sca/binding/atom/news/NewsService.java | 28 - .../sca/binding/atom/news/NewsServiceImpl.java | 90 - .../sca/binding/atom/news/NewsServiceTestCase.java | 77 - .../sca/binding/atom/util/AtomTestCaseUtils.java | 98 - .../src/test/resources/ReceiptToms.gif | Bin 14205 -> 0 bytes .../src/test/resources/ReceiptValue.jpg | Bin 21373 -> 0 bytes .../tuscany/sca/binding/atom/Consumer.composite | 32 - .../tuscany/sca/binding/atom/Provider.composite | 36 - .../binding/atom/ProviderNonCollection.composite | 38 - .../sca/binding/atom/ReceiptProvider.composite | 36 - .../atom/aggregator/FeedAggregator.composite | 51 - .../tuscany/sca/binding/atom/news/news.composite | 32 - .../tags/2.0-M5-RC3/modules/binding-atom/LICENSE | 205 -- .../modules/binding-atom/META-INF/MANIFEST.MF | 19 - ...che.tuscany.sca.binding.atom.AtomBindingFactory | 19 - ...ca.contribution.processor.StAXArtifactProcessor | 19 - .../tags/2.0-M5-RC3/modules/binding-atom/NOTICE | 6 - .../tags/2.0-M5-RC3/modules/binding-atom/pom.xml | 54 - .../tuscany/sca/binding/atom/AtomBinding.java | 59 - .../sca/binding/atom/AtomBindingFactory.java | 35 - .../binding/atom/impl/AtomBindingFactoryImpl.java | 36 - .../sca/binding/atom/impl/AtomBindingImpl.java | 110 - ...che.tuscany.sca.binding.atom.AtomBindingFactory | 19 - ...ca.contribution.processor.StAXArtifactProcessor | 19 - .../binding/atom/AtomBindingProcessorTestCase.java | 83 - .../modules/binding-corba-runtime/LICENSE | 205 -- .../binding-corba-runtime/META-INF/MANIFEST.MF | 35 - .../modules/binding-corba-runtime/NOTICE | 6 - .../modules/binding-corba-runtime/pom.xml | 130 -- .../provider/CorbaBindingProviderFactory.java | 61 - .../sca/binding/corba/provider/CorbaInvoker.java | 89 - .../provider/CorbaReferenceBindingProvider.java | 101 - .../provider/CorbaServiceBindingProvider.java | 94 - .../corba/provider/exceptions/CorbaException.java | 34 - .../exceptions/RequestConfigurationException.java | 43 - .../binding/corba/provider/meta/CorbaArray.java | 34 - .../corba/provider/meta/CorbaUnionElement.java | 37 - .../corba/provider/meta/CorbaUnionElementType.java | 28 - .../corba/provider/reference/DynaCorbaRequest.java | 253 --- .../provider/reference/DynaCorbaResponse.java | 39 - .../reference/InterfaceInstanceCreator.java | 70 - .../reference/InterfaceMethodInterceptor.java | 65 - .../provider/service/ComponentInvocationProxy.java | 122 -- .../corba/provider/service/DynaCorbaServant.java | 137 -- .../provider/service/InvocationException.java | 43 - .../corba/provider/service/InvocationProxy.java | 46 - .../corba/provider/service/OperationTypes.java | 51 - .../corba/provider/types/AnnotationAttributes.java | 46 - .../sca/binding/corba/provider/types/NodeType.java | 28 - .../sca/binding/corba/provider/types/TypeTree.java | 50 - .../corba/provider/types/TypeTreeCreator.java | 497 ----- .../binding/corba/provider/types/TypeTreeNode.java | 75 - .../corba/provider/types/UnionAttributes.java | 59 - .../corba/provider/types/util/ArrayTypeHelper.java | 53 - .../provider/types/util/BooleanTypeHelper.java | 39 - .../corba/provider/types/util/ByteTypeHelper.java | 39 - .../corba/provider/types/util/CharTypeHelper.java | 39 - .../provider/types/util/DoubleTypeHelper.java | 39 - .../corba/provider/types/util/EnumTypeHelper.java | 59 - .../corba/provider/types/util/FloatTypeHelper.java | 39 - .../corba/provider/types/util/IntTypeHelper.java | 39 - .../corba/provider/types/util/LongTypeHelper.java | 39 - .../provider/types/util/ReferenceTypeHelper.java | 42 - .../provider/types/util/SequenceTypeHelper.java | 70 - .../corba/provider/types/util/ShortTypeHelper.java | 39 - .../provider/types/util/StringTypeHelper.java | 39 - .../provider/types/util/StructTypeHelper.java | 69 - .../corba/provider/types/util/TypeHelper.java | 47 - .../provider/types/util/TypeHelpersProxy.java | 119 - .../corba/provider/types/util/UnionTypeHelper.java | 92 - .../binding/corba/provider/types/util/Utils.java | 40 - .../binding/corba/provider/util/MethodFinder.java | 97 - .../corba/provider/util/OperationMapper.java | 578 ----- ...che.tuscany.sca.provider.BindingProviderFactory | 19 - .../corba/testing/CorbaServantTestCase.java | 565 ----- .../binding/corba/testing/CorbaTypesTestCase.java | 841 ------- .../corba/testing/MappingTestInterface.java | 46 - .../corba/testing/MethodFinderTestCase.java | 70 - .../corba/testing/OperationMappingTestCase.java | 67 - .../sca/binding/corba/testing/TestConstants.java | 87 - .../testing/arrays_unions/ArraysUnionsTests.java | 31 - .../arrays_unions/ArraysUnionsTestsHelper.java | 103 - .../arrays_unions/ArraysUnionsTestsHolder.java | 56 - .../arrays_unions/ArraysUnionsTestsOperations.java | 34 - .../corba/testing/arrays_unions/InnerUnion.java | 130 -- .../testing/arrays_unions/InnerUnionHelper.java | 124 -- .../testing/arrays_unions/InnerUnionHolder.java | 56 - .../corba/testing/arrays_unions/RichUnion.java | 195 -- .../testing/arrays_unions/RichUnionHelper.java | 175 -- .../testing/arrays_unions/RichUnionHolder.java | 56 - .../testing/arrays_unions/StringArrayHelper.java | 94 - .../testing/arrays_unions/StringArrayHolder.java | 57 - .../corba/testing/arrays_unions/TestStruct.java | 46 - .../testing/arrays_unions/TestStructHelper.java | 167 -- .../testing/arrays_unions/TestStructHolder.java | 56 - .../arrays_unions/_ArraysUnionsTestsImplBase.java | 104 - .../arrays_unions/_ArraysUnionsTestsStub.java | 118 - .../sca/binding/corba/testing/enums/Color.java | 60 - .../binding/corba/testing/enums/ColorHelper.java | 69 - .../binding/corba/testing/enums/ColorHolder.java | 51 - .../binding/corba/testing/enums/EnumManager.java | 30 - .../corba/testing/enums/EnumManagerHelper.java | 98 - .../corba/testing/enums/EnumManagerHolder.java | 51 - .../corba/testing/enums/EnumManagerOperations.java | 32 - .../corba/testing/enums/_EnumManagerImplBase.java | 76 - .../corba/testing/enums/_EnumManagerStub.java | 75 - .../sca/binding/corba/testing/exceptions/Calc.java | 30 - .../corba/testing/exceptions/CalcHelper.java | 98 - .../corba/testing/exceptions/CalcHolder.java | 51 - .../corba/testing/exceptions/CalcOperations.java | 36 - .../testing/exceptions/CalcPackage/Arguments.java | 41 - .../exceptions/CalcPackage/ArgumentsHelper.java | 94 - .../exceptions/CalcPackage/ArgumentsHolder.java | 51 - .../testing/exceptions/CalcPackage/DivByZero.java | 52 - .../exceptions/CalcPackage/DivByZeroHelper.java | 100 - .../exceptions/CalcPackage/DivByZeroHolder.java | 51 - .../exceptions/CalcPackage/NotSupported.java | 46 - .../exceptions/CalcPackage/NotSupportedHelper.java | 93 - .../exceptions/CalcPackage/NotSupportedHolder.java | 51 - .../corba/testing/exceptions/_CalcImplBase.java | 102 - .../corba/testing/exceptions/_CalcStub.java | 106 - .../corba/testing/generated/ArraysSetter.java | 30 - .../testing/generated/ArraysSetterHelper.java | 100 - .../testing/generated/ArraysSetterHolder.java | 51 - .../testing/generated/ArraysSetterOperations.java | 59 - .../corba/testing/generated/PrimitivesSetter.java | 31 - .../testing/generated/PrimitivesSetterHelper.java | 100 - .../testing/generated/PrimitivesSetterHolder.java | 51 - .../generated/PrimitivesSetterOperations.java | 59 - .../corba/testing/generated/RemoteObject.java | 30 - .../testing/generated/RemoteObjectHelper.java | 100 - .../testing/generated/RemoteObjectHolder.java | 51 - .../testing/generated/RemoteObjectOperations.java | 30 - .../corba/testing/generated/SimpleStruct.java | 41 - .../testing/generated/SimpleStructHelper.java | 93 - .../testing/generated/SimpleStructHolder.java | 51 - .../corba/testing/generated/SomeStruct.java | 51 - .../corba/testing/generated/SomeStructHelper.java | 146 -- .../corba/testing/generated/SomeStructHolder.java | 51 - .../corba/testing/generated/TestObject.java | 30 - .../corba/testing/generated/TestObjectHelper.java | 99 - .../corba/testing/generated/TestObjectHolder.java | 51 - .../testing/generated/TestObjectOperations.java | 44 - .../testing/generated/_ArraysSetterImplBase.java | 232 -- .../corba/testing/generated/_ArraysSetterStub.java | 343 --- .../generated/_PrimitivesSetterImplBase.java | 230 -- .../testing/generated/_PrimitivesSetterStub.java | 341 --- .../testing/generated/_RemoteObjectImplBase.java | 59 - .../corba/testing/generated/_RemoteObjectStub.java | 55 - .../testing/generated/_TestObjectImplBase.java | 149 -- .../corba/testing/generated/_TestObjectStub.java | 182 -- .../testing/generated/boolean_listHelper.java | 75 - .../testing/generated/boolean_listHolder.java | 51 - .../corba/testing/generated/char_listHelper.java | 75 - .../corba/testing/generated/char_listHolder.java | 51 - .../corba/testing/generated/double_listHelper.java | 75 - .../corba/testing/generated/double_listHolder.java | 51 - .../corba/testing/generated/float_listHelper.java | 75 - .../corba/testing/generated/float_listHolder.java | 51 - .../corba/testing/generated/long_listHelper.java | 75 - .../corba/testing/generated/long_listHolder.java | 51 - .../testing/generated/long_long_listHelper.java | 75 - .../testing/generated/long_long_listHolder.java | 51 - .../corba/testing/generated/long_seq1Helper.java | 75 - .../corba/testing/generated/long_seq1Holder.java | 51 - .../corba/testing/generated/long_seq2Helper.java | 83 - .../corba/testing/generated/long_seq2Holder.java | 51 - .../corba/testing/generated/long_seq3Helper.java | 89 - .../corba/testing/generated/long_seq3Holder.java | 51 - .../corba/testing/generated/octet_listHelper.java | 75 - .../corba/testing/generated/octet_listHolder.java | 51 - .../generated/remote_object_listHelper.java | 80 - .../generated/remote_object_listHolder.java | 51 - .../corba/testing/generated/short_listHelper.java | 75 - .../corba/testing/generated/short_listHolder.java | 51 - .../corba/testing/generated/string_listHelper.java | 77 - .../corba/testing/generated/string_listHolder.java | 51 - .../generated/unsigned_long_listHelper.java | 76 - .../generated/unsigned_long_listHolder.java | 51 - .../generated/unsigned_long_long_listHelper.java | 78 - .../generated/unsigned_long_long_listHolder.java | 51 - .../generated/unsigned_short_listHelper.java | 76 - .../generated/unsigned_short_listHolder.java | 51 - .../corba/testing/generated/wchar_listHelper.java | 75 - .../corba/testing/generated/wchar_listHolder.java | 51 - .../testing/generated/wstring_listHelper.java | 77 - .../testing/generated/wstring_listHolder.java | 51 - .../corba/testing/hierarchy/ArraysTestStruct.java | 45 - .../sca/binding/corba/testing/hierarchy/Calc.java | 30 - .../corba/testing/hierarchy/DummyObject.java | 28 - .../corba/testing/hierarchy/InnerUnion.java | 55 - .../corba/testing/hierarchy/InvalidCorbaArray.java | 38 - .../corba/testing/hierarchy/InvalidEnum1.java | 36 - .../corba/testing/hierarchy/InvalidEnum2.java | 33 - .../corba/testing/hierarchy/InvalidEnum3.java | 33 - .../corba/testing/hierarchy/InvalidStruct1.java | 28 - .../corba/testing/hierarchy/InvalidStruct2.java | 31 - .../corba/testing/hierarchy/InvalidStruct3.java | 36 - .../corba/testing/hierarchy/InvalidUnion1.java | 37 - .../corba/testing/hierarchy/InvalidUnion2.java | 34 - .../corba/testing/hierarchy/InvalidUnion3.java | 35 - .../corba/testing/hierarchy/InvalidUnion4.java | 39 - .../corba/testing/hierarchy/InvalidUnion5.java | 42 - .../corba/testing/hierarchy/NonCorbaException.java | 28 - .../binding/corba/testing/hierarchy/RichUnion.java | 91 - .../corba/testing/hierarchy/SimpleStruct.java | 30 - .../corba/testing/hierarchy/SomeStruct.java | 33 - .../corba/testing/references/DummyObject.java | 30 - .../testing/references/DummyObjectHelper.java | 100 - .../testing/references/DummyObjectHolder.java | 51 - .../testing/references/DummyObjectOperations.java | 33 - .../corba/testing/references/ObjectManager.java | 30 - .../testing/references/ObjectManagerHelper.java | 100 - .../testing/references/ObjectManagerHolder.java | 51 - .../references/ObjectManagerOperations.java | 33 - .../testing/references/_DummyObjectImplBase.java | 84 - .../corba/testing/references/_DummyObjectStub.java | 92 - .../testing/references/_ObjectManagerImplBase.java | 86 - .../testing/references/_ObjectManagerStub.java | 94 - .../testing/servants/ArraysSetterServant.java | 89 - .../testing/servants/ArraysUnionsServant.java | 42 - .../servants/ArraysUnionsTuscanyServant.java | 43 - .../corba/testing/servants/CalcServant.java | 52 - .../corba/testing/servants/DummyObjectServant.java | 42 - .../corba/testing/servants/EnumManagerServant.java | 33 - .../testing/servants/InvalidTestObjectServant.java | 24 - .../testing/servants/InvalidTypesServant.java | 34 - .../corba/testing/servants/NonCorbaServant.java | 36 - .../testing/servants/ObjectManagerServant.java | 37 - .../testing/servants/PrimitivesSetterServant.java | 89 - .../corba/testing/servants/TestObjectServant.java | 71 - .../corba/testing/service/mocks/TestDataType.java | 88 - .../corba/testing/service/mocks/TestInterface.java | 163 -- .../service/mocks/TestInterfaceContract.java | 58 - .../corba/testing/service/mocks/TestOperation.java | 173 -- .../service/mocks/TestRuntimeComponentService.java | 220 -- .../testing/service/mocks/TestRuntimeWire.java | 292 --- .../src/test/resources/arrays_unions.idl | 69 - .../src/test/resources/enums.idl | 44 - .../src/test/resources/exceptions.idl | 58 - .../src/test/resources/general_tests.idl | 124 -- .../src/test/resources/references.idl | 50 - .../tags/2.0-M5-RC3/modules/binding-corba/LICENSE | 205 -- .../modules/binding-corba/META-INF/MANIFEST.MF | 29 - .../tags/2.0-M5-RC3/modules/binding-corba/NOTICE | 6 - .../tags/2.0-M5-RC3/modules/binding-corba/pom.xml | 53 - .../tuscany/sca/binding/corba/CorbaBinding.java | 47 - .../sca/binding/corba/CorbaBindingFactory.java | 31 - .../corba/impl/CorbaBindingFactoryImpl.java | 37 - .../sca/binding/corba/impl/CorbaBindingImpl.java | 74 - .../binding/corba/impl/CorbaBindingProcessor.java | 137 -- ...e.tuscany.sca.binding.corba.CorbaBindingFactory | 19 - ...ca.contribution.processor.StAXArtifactProcessor | 19 - .../2.0-M5-RC3/modules/binding-ejb-runtime/LICENSE | 205 -- .../binding-ejb-runtime/META-INF/MANIFEST.MF | 39 - .../2.0-M5-RC3/modules/binding-ejb-runtime/NOTICE | 6 - .../2.0-M5-RC3/modules/binding-ejb-runtime/pom.xml | 169 -- .../sca/binding/ejb/corba/ClassLoadingUtil.java | 365 ---- .../binding/ejb/corba/DynamicStubClassLoader.java | 150 -- .../sca/binding/ejb/corba/Java2IDLUtil.java | 811 ------- .../binding/ejb/corba/ObjectInputStreamExt.java | 61 - .../binding/ejb/corba/StubMethodInterceptor.java | 154 -- .../sca/binding/ejb/corba/UtilInitializer.java | 69 - .../binding/ejb/provider/EJBBindingInvoker.java | 86 - .../ejb/provider/EJBBindingProviderFactory.java | 56 - .../EJBBindingReferenceBindingProvider.java | 86 - .../tuscany/sca/binding/ejb/util/EJBHandler.java | 338 --- .../tuscany/sca/binding/ejb/util/EJBLocator.java | 483 ---- .../sca/binding/ejb/util/EJBObjectFactory.java | 209 -- .../sca/binding/ejb/util/EJBStubHelper.java | 69 - .../sca/binding/ejb/util/InterfaceInfo.java | 117 - .../binding/ejb/util/JavaReflectionAdapter.java | 157 -- .../tuscany/sca/binding/ejb/util/MethodInfo.java | 189 -- .../sca/binding/ejb/util/NamingEndpoint.java | 124 -- ...che.tuscany.sca.provider.BindingProviderFactory | 20 - .../binding-ejb-validation-messages.properties | 23 - .../src/test/java/account/BankManagerFacade.java | 33 - .../src/test/java/account/Customer.java | 36 - .../src/test/java/account/CustomerImpl.java | 57 - .../src/test/java/calculator/AddService.java | 27 - .../src/test/java/calculator/AddServiceHome.java | 31 - .../samples/bank/ejb/BankManagerFacade.java | 44 - .../samples/bank/ejb/BankManagerFacadeHome.java | 44 - .../binding/ejb/tests/EJBReferenceTestCase.java | 72 - .../tuscany/sca/binding/ejb/tests/MockServer.java | 151 -- .../sca/binding/ejb/tests/SocketTracer.java | 138 -- .../src/test/resources/account/account.composite | 37 - .../tags/2.0-M5-RC3/modules/binding-ejb/LICENSE | 205 -- .../modules/binding-ejb/META-INF/MANIFEST.MF | 26 - .../tags/2.0-M5-RC3/modules/binding-ejb/NOTICE | 6 - .../tags/2.0-M5-RC3/modules/binding-ejb/pom.xml | 60 - .../apache/tuscany/sca/binding/ejb/EJBBinding.java | 85 - .../sca/binding/ejb/EJBBindingException.java | 56 - .../tuscany/sca/binding/ejb/EJBBindingFactory.java | 35 - .../binding/ejb/impl/EJBBindingFactoryImpl.java | 36 - .../sca/binding/ejb/impl/EJBBindingImpl.java | 203 -- .../sca/binding/ejb/impl/EJBBindingProcessor.java | 168 -- ...pache.tuscany.sca.binding.ejb.EJBBindingFactory | 20 - ...ca.contribution.processor.StAXArtifactProcessor | 20 - ....apache.tuscany.sca.definitions.xml.Definitions | 17 - .../binding-ejb-validation-messages.properties | 23 - .../tuscany/sca/binding/ejb/policy/definitions.xml | 30 - .../binding-hazelcast-runtime/META-INF/MANIFEST.MF | 31 - .../modules/binding-hazelcast-runtime/pom.xml | 58 - .../sca/binding/hazelcast/EndpointStash.java | 54 - .../sca/binding/hazelcast/HazelcastBinding.java | 33 - .../hazelcast/HazelcastBindingProviderFactory.java | 66 - .../HazelcastReferenceBindingProvider.java | 58 - .../hazelcast/HazelcastServiceBindingProvider.java | 52 - .../sca/binding/hazelcast/ReferenceInvoker.java | 127 -- .../sca/binding/hazelcast/ServiceInvoker.java | 98 - ...ca.contribution.processor.StAXArtifactProcessor | 21 - ...che.tuscany.sca.provider.BindingProviderFactory | 19 - .../sca/binding/hazelcast/BadStringException.java | 29 - .../tuscany/sca/binding/hazelcast/ComplexType.java | 33 - .../hazelcast/HazelcastBindingTestCase.java | 114 - .../tuscany/sca/binding/hazelcast/TestService.java | 30 - .../sca/binding/hazelcast/TestServiceClient.java | 45 - .../sca/binding/hazelcast/TestServiceImpl.java | 43 - .../src/test/resources/client.composite | 29 - .../src/test/resources/client2.composite | 29 - .../src/test/resources/service.composite | 28 - .../modules/binding-http-runtime/LICENSE | 205 -- .../binding-http-runtime/META-INF/MANIFEST.MF | 26 - .../2.0-M5-RC3/modules/binding-http-runtime/NOTICE | 6 - .../modules/binding-http-runtime/pom.xml | 96 - .../http/provider/HTTPBindingListenerServlet.java | 461 ---- .../http/provider/HTTPBindingProviderFactory.java | 64 - .../http/provider/HTTPGetListenerServlet.java | 94 - .../http/provider/HTTPServiceBindingProvider.java | 208 -- .../http/provider/HTTPServiceListenerServlet.java | 85 - ...che.tuscany.sca.provider.BindingProviderFactory | 20 - .../sca/binding/http/HTTPBindingCacheTestCase.java | 903 -------- .../sca/binding/http/HTTPBindingTestCase.java | 163 -- .../sca/binding/http/NotModifiedException.java | 44 - .../binding/http/PreconditionFailedException.java | 44 - .../sca/binding/http/TestBindingCacheImpl.java | 243 --- .../tuscany/sca/binding/http/TestGetImpl.java | 37 - .../tuscany/sca/binding/http/TestServiceImpl.java | 60 - .../src/test/resources/content/test.html | 21 - .../src/test/resources/test.composite | 47 - .../src/test/resources/testCache.composite | 33 - .../tags/2.0-M5-RC3/modules/binding-http/LICENSE | 205 -- .../modules/binding-http/META-INF/MANIFEST.MF | 23 - .../tags/2.0-M5-RC3/modules/binding-http/NOTICE | 6 - .../tags/2.0-M5-RC3/modules/binding-http/pom.xml | 54 - .../tuscany/sca/binding/http/HTTPBinding.java | 33 - .../sca/binding/http/HTTPBindingFactory.java | 35 - .../binding/http/impl/HTTPBindingFactoryImpl.java | 36 - .../sca/binding/http/impl/HTTPBindingImpl.java | 100 - .../sca/binding/http/xml/HTTPBindingProcessor.java | 142 -- ...che.tuscany.sca.binding.http.HTTPBindingFactory | 20 - ...ca.contribution.processor.StAXArtifactProcessor | 19 - .../2.0-M5-RC3/modules/binding-jms-runtime/LICENSE | 205 -- .../binding-jms-runtime/META-INF/MANIFEST.MF | 40 - .../2.0-M5-RC3/modules/binding-jms-runtime/NOTICE | 6 - .../2.0-M5-RC3/modules/binding-jms-runtime/pom.xml | 117 - .../sca/binding/jms/context/JMSBindingContext.java | 141 -- .../jms/headers/HeaderReferenceInterceptor.java | 166 -- .../jms/host/DefaultJMSHostExtensionPoint.java | 40 - .../jms/host/DefaultJMSServiceListener.java | 234 -- .../jms/host/DefaultJMSServiceListenerFactory.java | 55 - .../binding/jms/host/DefaultServiceInvoker.java | 106 - .../binding/jms/host/JMSHostExtensionPoint.java | 27 - .../sca/binding/jms/host/JMSServiceListener.java | 29 - .../jms/host/JMSServiceListenerDetails.java | 37 - .../jms/host/JMSServiceListenerFactory.java | 27 - ...OperationSelectorJMSDefaultProviderFactory.java | 60 - ...rationSelectorJMSDefaultServiceInterceptor.java | 186 -- ...OperationSelectorJMSDefaultServiceProvider.java | 53 - ...perationSelectorJMSUserPropProviderFactory.java | 56 - ...ationSelectorJMSUserPropServiceInterceptor.java | 107 - ...perationSelectorJMSUserPropServiceProvider.java | 47 - ...MSTokenAuthenticationPolicyProviderFactory.java | 74 - ...enAuthenticationReferencePolicyInterceptor.java | 104 - ...TokenAuthenticationReferencePolicyProvider.java | 57 - ...okenAuthenticationServicePolicyInterceptor.java | 106 - ...MSTokenAuthenticationServicePolicyProvider.java | 57 - .../provider/JMSHeaderPolicyProviderFactory.java | 83 - .../JMSHeaderReferencePolicyInterceptor.java | 88 - .../provider/JMSHeaderReferencePolicyProvider.java | 58 - .../jms/provider/AbstractMessageProcessor.java | 136 -- .../jms/provider/BytesMessageProcessor.java | 120 - .../DefaultJMSResourceFactoryExtensionPoint.java | 30 - .../jms/provider/DefaultMessageProcessor.java | 302 --- .../jms/provider/JMSBindingProviderFactory.java | 76 - .../JMSBindingReferenceBindingProvider.java | 169 -- .../provider/JMSBindingServiceBindingProvider.java | 236 -- .../binding/jms/provider/JMSMessageProcessor.java | 55 - .../jms/provider/JMSMessageProcessorUtil.java | 109 - .../binding/jms/provider/JMSResourceFactory.java | 95 - .../provider/JMSResourceFactoryExtensionPoint.java | 28 - .../jms/provider/JMSResourceFactoryImpl.java | 282 --- .../jms/provider/ObjectMessageProcessor.java | 231 -- .../binding/jms/provider/RRBJMSBindingInvoker.java | 261 --- .../binding/jms/provider/TextMessageProcessor.java | 80 - .../jms/provider/XMLBytesMessageProcessor.java | 136 -- .../jms/provider/XMLTextMessageProcessor.java | 132 -- .../transport/TransportReferenceInterceptor.java | 157 -- .../jms/transport/TransportServiceInterceptor.java | 193 -- .../jms/wire/CallbackDestinationInterceptor.java | 94 - .../jms/wire/OperationPropertiesInterceptor.java | 69 - .../runtime/WireFormatJMSBytesProviderFactory.java | 60 - .../WireFormatJMSBytesReferenceInterceptor.java | 123 -- .../WireFormatJMSBytesReferenceProvider.java | 92 - .../WireFormatJMSBytesServiceInterceptor.java | 115 - .../runtime/WireFormatJMSBytesServiceProvider.java | 96 - .../WireFormatJMSBytesXMLProviderFactory.java | 64 - .../WireFormatJMSBytesXMLReferenceInterceptor.java | 123 -- .../WireFormatJMSBytesXMLReferenceProvider.java | 100 - .../WireFormatJMSBytesXMLServiceInterceptor.java | 109 - .../WireFormatJMSBytesXMLServiceProvider.java | 108 - .../WireFormatJMSDefaultProviderFactory.java | 66 - .../WireFormatJMSDefaultReferenceInterceptor.java | 175 -- .../WireFormatJMSDefaultReferenceProvider.java | 204 -- .../WireFormatJMSDefaultServiceInterceptor.java | 175 -- .../WireFormatJMSDefaultServiceProvider.java | 198 -- .../WireFormatJMSObjectProviderFactory.java | 60 - .../WireFormatJMSObjectReferenceInterceptor.java | 142 -- .../WireFormatJMSObjectReferenceProvider.java | 113 - .../WireFormatJMSObjectServiceInterceptor.java | 139 -- .../WireFormatJMSObjectServiceProvider.java | 119 - .../runtime/WireFormatJMSTextProviderFactory.java | 60 - .../WireFormatJMSTextReferenceInterceptor.java | 124 -- .../WireFormatJMSTextReferenceProvider.java | 101 - .../WireFormatJMSTextServiceInterceptor.java | 115 - .../runtime/WireFormatJMSTextServiceProvider.java | 103 - .../WireFormatJMSTextXMLProviderFactory.java | 66 - .../WireFormatJMSTextXMLReferenceInterceptor.java | 129 -- .../WireFormatJMSTextXMLReferenceProvider.java | 113 - .../WireFormatJMSTextXMLServiceInterceptor.java | 116 - .../WireFormatJMSTextXMLServiceProvider.java | 108 - ...che.tuscany.sca.provider.BindingProviderFactory | 20 - ...y.sca.provider.OperationSelectorProviderFactory | 21 - ...ache.tuscany.sca.provider.PolicyProviderFactory | 19 - ....tuscany.sca.provider.WireFormatProviderFactory | 25 - .../sca/binding/jms/HelloWorldClientImpl.java | 43 - .../tuscany/sca/binding/jms/HelloWorldService.java | 31 - .../sca/binding/jms/HelloWorldServiceImpl.java | 32 - .../jms/OperationSelectionTestCaseFIXME.java | 229 -- .../src/test/resources/simple/client.composite | 38 - .../src/test/resources/simple/service.composite | 35 - .../tags/2.0-M5-RC3/modules/binding-jms/LICENSE | 205 -- .../modules/binding-jms/META-INF/MANIFEST.MF | 62 - .../tags/2.0-M5-RC3/modules/binding-jms/NOTICE | 6 - .../tags/2.0-M5-RC3/modules/binding-jms/pom.xml | 51 - .../tuscany/sca/binding/jms/BindingProperty.java | 72 - .../apache/tuscany/sca/binding/jms/JMSBinding.java | 974 --------- .../sca/binding/jms/JMSBindingConstants.java | 75 - .../sca/binding/jms/JMSBindingException.java | 45 - .../sca/binding/jms/JMSBindingProcessor.java | 1541 ------------- .../OperationSelectorJMSDefault.java | 45 - .../OperationSelectorJMSDefaultProcessor.java | 76 - .../OperationSelectorJMSUserProp.java | 57 - .../OperationSelectorJMSUserPropProcessor.java | 87 - .../token/JMSTokenAuthenticationPolicy.java | 55 - .../JMSTokenAuthenticationPolicyProcessor.java | 111 - .../binding/jms/policy/header/JMSHeaderPolicy.java | 130 -- .../policy/header/JMSHeaderPolicyProcessor.java | 206 -- .../binding/jms/wireformat/WireFormatJMSBytes.java | 45 - .../wireformat/WireFormatJMSBytesProcessor.java | 75 - .../jms/wireformat/WireFormatJMSBytesXML.java | 40 - .../wireformat/WireFormatJMSBytesXMLProcessor.java | 72 - .../jms/wireformat/WireFormatJMSDefault.java | 64 - .../wireformat/WireFormatJMSDefaultProcessor.java | 89 - .../jms/wireformat/WireFormatJMSObject.java | 57 - .../wireformat/WireFormatJMSObjectProcessor.java | 88 - .../binding/jms/wireformat/WireFormatJMSText.java | 45 - .../jms/wireformat/WireFormatJMSTextProcessor.java | 75 - .../jms/wireformat/WireFormatJMSTextXML.java | 48 - .../wireformat/WireFormatJMSTextXMLProcessor.java | 75 - ...ca.contribution.processor.StAXArtifactProcessor | 30 - ...che.tuscany.sca.provider.SCADefinitionsProvider | 19 - ...nding-jms-policy-validation-messages.properties | 23 - .../binding-jms-validation-messages.properties | 50 - .../tuscany/sca/binding/jms/policy/definitions.xml | 84 - .../binding/jms/JMSBindingProcessorTestCase.java | 773 ------- .../jms/JMSBindingProcessorWriteTestCase.java | 438 ---- .../jms/policy/PolicyProcessorTestCase.java | 95 - .../modules/binding-jsonp-runtime/LICENSE | 205 -- .../binding-jsonp-runtime/META-INF/MANIFEST.MF | 31 - .../modules/binding-jsonp-runtime/NOTICE | 6 - .../modules/binding-jsonp-runtime/pom.xml | 97 - .../jsonp/runtime/JSONPBindingProviderFactory.java | 52 - .../sca/binding/jsonp/runtime/JSONPInvoker.java | 161 -- .../runtime/JSONPReferenceBindingProvider.java | 53 - .../jsonp/runtime/JSONPServiceBindingProvider.java | 68 - .../sca/binding/jsonp/runtime/JSONPServlet.java | 162 -- ...che.tuscany.sca.provider.BindingProviderFactory | 20 - .../src/test/java/helloworld/HelloWorldClient.java | 37 - .../src/test/java/helloworld/HelloWorldImpl.java | 32 - .../test/java/helloworld/HelloWorldService.java | 30 - .../src/test/java/test/BindingTestCase.java | 83 - .../src/test/resources/helloworld.composite | 39 - .../src/test/resources/jquery.html | 51 - .../tags/2.0-M5-RC3/modules/binding-jsonp/LICENSE | 205 -- .../modules/binding-jsonp/META-INF/MANIFEST.MF | 17 - .../tags/2.0-M5-RC3/modules/binding-jsonp/NOTICE | 6 - .../tags/2.0-M5-RC3/modules/binding-jsonp/pom.xml | 41 - .../tuscany/sca/binding/jsonp/JSONPBinding.java | 31 - .../sca/binding/jsonp/JSONPBindingFactory.java | 31 - .../jsonp/impl/JSONPBindingFactoryImpl.java | 34 - .../sca/binding/jsonp/impl/JSONPBindingImpl.java | 90 - ...e.tuscany.sca.binding.jsonp.JSONPBindingFactory | 20 - ...ca.contribution.processor.StAXArtifactProcessor | 20 - ...any.sca.contribution.processor.ValidationSchema | 19 - .../src/main/resources/binding-jsonp.xsd | 41 - .../modules/binding-jsonrpc-js-dojo/LICENSE | 205 -- .../binding-jsonrpc-js-dojo/META-INF/MANIFEST.MF | 22 - .../modules/binding-jsonrpc-js-dojo/NOTICE | 6 - .../modules/binding-jsonrpc-js-dojo/pom.xml | 52 - .../JSONRPCBindingJavascriptProxyFactoryImpl.java | 77 - ...scany.sca.web.javascript.JavascriptProxyFactory | 19 - .../modules/binding-jsonrpc-runtime/LICENSE | 205 -- .../binding-jsonrpc-runtime/META-INF/MANIFEST.MF | 42 - .../modules/binding-jsonrpc-runtime/NOTICE | 11 - .../modules/binding-jsonrpc-runtime/pom.xml | 154 -- .../jsonrpc/provider/JSONRPCBindingInvoker.java | 143 -- .../provider/JSONRPCBindingProviderFactory.java | 63 - .../jsonrpc/provider/JSONRPCClientInvoker.java | 70 - .../jsonrpc/provider/JSONRPCDatabindingHelper.java | 61 - .../provider/JSONRPCReferenceBindingProvider.java | 107 - .../provider/JSONRPCServiceBindingProvider.java | 123 -- .../jsonrpc/provider/JSONRPCServiceServlet.java | 381 ---- .../sca/binding/jsonrpc/provider/JavaToSmd.java | 56 - ...che.tuscany.sca.provider.BindingProviderFactory | 20 - .../sca/binding/jsonrpc/provider/jsonrpc.js | 493 ----- .../src/test/java/bean/TestBean.java | 51 - .../src/test/java/echo/Echo.java | 64 - .../src/test/java/echo/EchoBusinessException.java | 29 - .../src/test/java/echo/EchoClientImpl.java | 85 - .../src/test/java/echo/EchoComponentImpl.java | 103 - .../binding/jsonrpc/JSONRPCDataTypeTestCase.java | 202 -- .../binding/jsonrpc/JSONRPCExceptionTestCase.java | 95 - .../binding/jsonrpc/JSONRPCReferenceTestCase.java | 70 - .../binding/jsonrpc/JSONRPCServiceTestCase.java | 101 - .../sca/binding/jsonrpc/JSONRPCSmdTestCase.java | 80 - .../src/test/resources/JSONRPCBinding.composite | 38 - .../src/test/resources/JSONRPCReference.composite | 33 - .../2.0-M5-RC3/modules/binding-jsonrpc/LICENSE | 205 -- .../modules/binding-jsonrpc/META-INF/MANIFEST.MF | 16 - .../tags/2.0-M5-RC3/modules/binding-jsonrpc/NOTICE | 6 - .../2.0-M5-RC3/modules/binding-jsonrpc/pom.xml | 46 - .../sca/binding/jsonrpc/JSONRPCBinding.java | 33 - .../sca/binding/jsonrpc/JSONRPCBindingFactory.java | 35 - .../jsonrpc/impl/JSONRPCBindingFactoryImpl.java | 38 - .../binding/jsonrpc/impl/JSONRPCBindingImpl.java | 91 - ...scany.sca.binding.jsonrpc.JSONRPCBindingFactory | 20 - ...ca.contribution.processor.StAXArtifactProcessor | 20 - .../modules/binding-rest-runtime/LICENSE | 205 -- .../binding-rest-runtime/META-INF/MANIFEST.MF | 50 - .../2.0-M5-RC3/modules/binding-rest-runtime/NOTICE | 6 - .../modules/binding-rest-runtime/pom.xml | 175 -- .../JAXRSOperationSelectorInterceptor.java | 256 --- .../JAXRSOperationSelectorProviderFactory.java | 52 - .../JAXRSOperationSelectorReferenceProvider.java | 50 - .../JAXRSOperationSelectorServiceProvider.java | 57 - .../provider/RPCOperationSelectorInterceptor.java | 177 -- .../RPCOperationSelectorProviderFactory.java | 52 - .../RPCOperationSelectorReferenceProvider.java | 50 - .../RPCOperationSelectorServiceProvider.java | 57 - .../rest/provider/DataBindingJAXRSProvider.java | 203 -- .../rest/provider/DataBindingJAXRSReader.java | 85 - .../rest/provider/DataBindingJAXRSWriter.java | 86 - .../binding/rest/provider/RESTBindingInvoker.java | 285 --- .../rest/provider/RESTBindingListenerServlet.java | 582 ----- .../rest/provider/RESTBindingProviderFactory.java | 65 - .../provider/RESTReferenceBindingProvider.java | 64 - .../rest/provider/RESTServiceBindingProvider.java | 376 ---- .../rest/provider/RESTServiceListenerServlet.java | 118 - .../binding/rest/provider/TuscanyRESTServlet.java | 127 -- .../json/provider/JSONWireFormatInterceptor.java | 115 - .../provider/JSONWireFormatProviderFactory.java | 52 - .../provider/JSONWireFormatReferenceProvider.java | 54 - .../provider/JSONWireFormatServiceProvider.java | 125 -- .../xml/provider/XMLWireFormatInterceptor.java | 82 - .../xml/provider/XMLWireFormatProviderFactory.java | 52 - .../provider/XMLWireFormatReferenceProvider.java | 54 - .../xml/provider/XMLWireFormatServiceProvider.java | 130 -- ...che.tuscany.sca.provider.BindingProviderFactory | 19 - ...y.sca.provider.OperationSelectorProviderFactory | 20 - ....tuscany.sca.provider.WireFormatProviderFactory | 20 - .../sca/binding/rest/NotModifiedException.java | 44 - .../binding/rest/PreconditionFailedException.java | 44 - .../sca/binding/rest/RESTBindingCacheTestCase.java | 903 -------- .../sca/binding/rest/RESTBindingTestCase.java | 163 -- .../sca/binding/rest/TestBindingCacheImpl.java | 199 -- .../tuscany/sca/binding/rest/TestGetImpl.java | 37 - .../tuscany/sca/binding/rest/TestServiceImpl.java | 60 - .../sca/binding/rest/rpc/EchoServiceTestCase.java | 102 - .../wireformat/binary/BinaryServiceTestCase.java | 106 - .../wireformat/json/CatalogServiceTestCase.java | 132 -- .../wireformat/xml/CustomerServiceTestCase.java | 122 -- .../test/java/services/binary/BinaryService.java | 45 - .../java/services/binary/BinaryServiceImpl.java | 57 - .../src/test/java/services/customer/Customer.java | 70 - .../java/services/customer/CustomerService.java | 41 - .../services/customer/CustomerServiceImpl.java | 50 - .../src/test/java/services/echo/Echo.java | 43 - .../src/test/java/services/echo/EchoImpl.java | 50 - .../src/test/java/services/store/Catalog.java | 51 - .../java/services/store/CurrencyConverter.java | 29 - .../java/services/store/CurrencyConverterImpl.java | 38 - .../java/services/store/FruitsCatalogImpl.java | 81 - .../src/test/java/services/store/Item.java | 50 - .../src/test/java/services/store/Items.java | 37 - .../src/test/resources/binary.composite | 33 - .../src/test/resources/content/test.html | 21 - .../src/test/resources/customer.composite | 39 - .../src/test/resources/echo.composite | 36 - .../src/test/resources/store.composite | 41 - .../src/test/resources/test.composite | 40 - .../src/test/resources/testCache.composite | 33 - .../tags/2.0-M5-RC3/modules/binding-rest/LICENSE | 205 -- .../modules/binding-rest/META-INF/MANIFEST.MF | 27 - .../tags/2.0-M5-RC3/modules/binding-rest/NOTICE | 6 - .../tags/2.0-M5-RC3/modules/binding-rest/pom.xml | 60 - .../tuscany/sca/binding/rest/RESTBinding.java | 38 - .../sca/binding/rest/RESTBindingFactory.java | 36 - .../binding/rest/impl/RESTBindingFactoryImpl.java | 36 - .../sca/binding/rest/impl/RESTBindingImpl.java | 110 - .../jaxrs/JAXRSOperationSelector.java | 43 - .../jaxrs/JAXRSOperationSelectorFactory.java | 35 - .../impl/JAXRSOperationSelectorFactoryImpl.java | 36 - .../jaxrs/impl/JAXRSOperationSelectorImpl.java | 45 - .../rpc/RPCOperationSelector.java | 43 - .../rpc/RPCOperationSelectorFactory.java | 35 - .../rpc/impl/RPCOperationSelectorFactoryImpl.java | 36 - .../rpc/impl/RPCOperationSelectorImpl.java | 45 - .../rest/wireformat/json/JSONWireFormat.java | 43 - .../wireformat/json/JSONWireFormatFactory.java | 34 - .../json/impl/JSONWireFormatFactoryImpl.java | 36 - .../wireformat/json/impl/JSONWireFormatImpl.java | 44 - .../binding/rest/wireformat/xml/XMLWireFormat.java | 43 - .../rest/wireformat/xml/XMLWireFormatFactory.java | 34 - .../xml/impl/XMLWireFormatFactoryImpl.java | 37 - .../wireformat/xml/impl/XMLWireFormatImpl.java | 44 - .../sca/binding/rest/xml/RESTBindingProcessor.java | 198 -- ...che.tuscany.sca.binding.rest.RESTBindingFactory | 20 - ...ionselector.jaxrs.JAXRSOperationSelectorFactory | 19 - ...erationselector.rpc.RPCOperationSelectorFactory | 19 - ...ding.rest.wireformat.json.JSONWireFormatFactory | 19 - ...inding.rest.wireformat.xml.XMLWireFormatFactory | 19 - ...ca.contribution.processor.StAXArtifactProcessor | 27 - .../JAXRSOperationSelectorProcessorTestCase.java | 107 - .../json/impl/JSONWireFormatProcessorTestCase.java | 111 - .../rest/xml/RESTBindingProcessorTestCase.java | 93 - .../2.0-M5-RC3/modules/binding-rmi-runtime/LICENSE | 205 -- .../binding-rmi-runtime/META-INF/MANIFEST.MF | 28 - .../2.0-M5-RC3/modules/binding-rmi-runtime/NOTICE | 6 - .../2.0-M5-RC3/modules/binding-rmi-runtime/pom.xml | 79 - .../binding/rmi/provider/RMIBindingInvoker.java | 100 - .../rmi/provider/RMIBindingProviderFactory.java | 60 - .../rmi/provider/RMIReferenceBindingProvider.java | 79 - .../rmi/provider/RMIServiceBindingProvider.java | 168 -- .../rmi/provider/RemoteInterfaceGenerator.java | 102 - ...che.tuscany.sca.provider.BindingProviderFactory | 20 - .../src/test/java/helloworld/HelloException.java | 60 - .../src/test/java/helloworld/HelloWorldImpl.java | 42 - .../test/java/helloworld/HelloWorldRmiImpl.java | 50 - .../test/java/helloworld/HelloWorldRmiService.java | 31 - .../test/java/helloworld/HelloWorldService.java | 31 - .../tuscany/sca/binding/rmi/BindingTestCase.java | 80 - .../test/resources/HelloWorldImpl.componentType | 23 - .../test/resources/HelloWorldRmiImpl.componentType | 28 - .../src/test/resources/RMIBindingTest.composite | 41 - .../tags/2.0-M5-RC3/modules/binding-rmi/LICENSE | 205 -- .../modules/binding-rmi/META-INF/MANIFEST.MF | 17 - .../tags/2.0-M5-RC3/modules/binding-rmi/NOTICE | 6 - .../tags/2.0-M5-RC3/modules/binding-rmi/pom.xml | 41 - .../apache/tuscany/sca/binding/rmi/RMIBinding.java | 33 - .../tuscany/sca/binding/rmi/RMIBindingFactory.java | 33 - .../binding/rmi/impl/RMIBindingFactoryImpl.java | 35 - .../sca/binding/rmi/impl/RMIBindingImpl.java | 90 - ...pache.tuscany.sca.binding.rmi.RMIBindingFactory | 20 - ...ca.contribution.processor.StAXArtifactProcessor | 20 - .../2.0-M5-RC3/modules/binding-rss-runtime/LICENSE | 205 -- .../binding-rss-runtime/META-INF/MANIFEST.MF | 21 - .../2.0-M5-RC3/modules/binding-rss-runtime/NOTICE | 6 - .../2.0-M5-RC3/modules/binding-rss-runtime/pom.xml | 170 -- .../sca/binding/rss/collection/Collection.java | 58 - .../binding/rss/collection/MediaCollection.java | 55 - .../binding/rss/collection/NotFoundException.java | 45 - .../binding/rss/provider/RSSBindingInvoker.java | 76 - .../rss/provider/RSSBindingListenerServlet.java | 397 ---- .../rss/provider/RSSBindingProviderFactory.java | 66 - .../rss/provider/RSSReferenceBindingProvider.java | 68 - .../rss/provider/RSSServiceBindingProvider.java | 93 - ...che.tuscany.sca.provider.BindingProviderFactory | 19 - .../apache/tuscany/sca/binding/rss/Consumer.java | 42 - .../tuscany/sca/binding/rss/CustomerClient.java | 25 - .../sca/binding/rss/CustomerClientImpl.java | 45 - .../sca/binding/rss/CustomerCollectionImpl.java | 114 - .../apache/tuscany/sca/binding/rss/Provider.java | 49 - .../tuscany/sca/binding/rss/RSSGetTestCase.java | 78 - .../tuscany/sca/binding/rss/Consumer.composite | 32 - .../tuscany/sca/binding/rss/Provider.composite | 33 - .../tags/2.0-M5-RC3/modules/binding-rss/LICENSE | 205 -- .../modules/binding-rss/META-INF/MANIFEST.MF | 20 - .../tags/2.0-M5-RC3/modules/binding-rss/NOTICE | 6 - .../tags/2.0-M5-RC3/modules/binding-rss/pom.xml | 78 - .../apache/tuscany/sca/binding/rss/RSSBinding.java | 33 - .../tuscany/sca/binding/rss/RSSBindingFactory.java | 35 - .../binding/rss/impl/RSSBindingFactoryImpl.java | 36 - .../sca/binding/rss/impl/RSSBindingImpl.java | 91 - ...pache.tuscany.sca.binding.rss.RSSBindingFactory | 19 - ...ca.contribution.processor.StAXArtifactProcessor | 19 - .../2.0-M5-RC3/modules/binding-sca-runtime/LICENSE | 205 -- .../binding-sca-runtime/META-INF/MANIFEST.MF | 43 - .../2.0-M5-RC3/modules/binding-sca-runtime/NOTICE | 6 - .../2.0-M5-RC3/modules/binding-sca-runtime/pom.xml | 72 - .../sca/provider/DefaultSCABindingMapper.java | 220 -- .../DelegatingSCAReferenceBindingProvider.java | 69 - .../DelegatingSCAServiceBindingProvider.java | 82 - .../binding/sca/provider/RemoteBindingHelper.java | 43 - .../provider/RuntimeSCABindingProviderFactory.java | 56 - .../RuntimeSCAReferenceBindingProvider.java | 215 -- .../provider/RuntimeSCAServiceBindingProvider.java | 101 - .../binding/sca/provider/SCABindingInvoker.java | 91 - .../sca/binding/sca/provider/SCABindingMapper.java | 50 - ...scany.sca.binding.sca.provider.SCABindingMapper | 17 - ....apache.tuscany.sca.definitions.xml.Definitions | 17 - ...che.tuscany.sca.provider.BindingProviderFactory | 20 - .../apache/tuscany/sca/binding/sca/definitions.xml | 26 - .../sca/binding/sca/SCABindingTestCase.java | 102 - .../tuscany/sca/binding/sca/xml/ReadTestCase.java | 93 - .../tuscany/sca/binding/sca/xml/WriteTestCase.java | 88 - .../src/test/resources/Calculator.composite | 59 - .../resources/CalculatorServiceImpl.componentType | 33 - .../modules/binding-ws-runtime-axis2/LICENSE | 205 -- .../binding-ws-runtime-axis2/META-INF/MANIFEST.MF | 151 -- .../modules/binding-ws-runtime-axis2/NOTICE | 6 - .../modules/binding-ws-runtime-axis2/pom.xml | 436 ---- .../BasicAuthenticationPolicyProviderFactory.java | 57 - ...icAuthenticationReferencePolicyInterceptor.java | 129 -- ...BasicAuthenticationReferencePolicyProvider.java | 48 - ...asicAuthenticationServicePolicyInterceptor.java | 123 -- .../BasicAuthenticationServicePolicyProvider.java | 49 - .../configuration/Axis2ConfigParamPolicy.java | 53 - .../Axis2ConfigParamPolicyProcessor.java | 156 -- .../Axis2ConfigParamPolicyProvider.java | 60 - .../Axis2ConfigParamPolicyProviderFactory.java | 54 - .../axis2/policy/mtom/Axis2MTOMPolicyProvider.java | 44 - .../security/http/ssl/HTTPSPolicyProvider.java | 66 - .../http/ssl/HTTPSPolicyProviderFactory.java | 57 - .../axis2/provider/Axis2BaseBindingProvider.java | 62 - .../provider/Axis2BindingProviderFactory.java | 63 - .../ws/axis2/provider/Axis2EngineIntegration.java | 540 ----- .../provider/Axis2ReferenceBindingInvoker.java | 194 -- .../provider/Axis2ReferenceBindingProvider.java | 340 --- .../provider/Axis2ServiceBindingProvider.java | 286 --- .../provider/Axis2ServiceInMessageReceiver.java | 62 - .../Axis2ServiceInOutSyncMessageReceiver.java | 99 - .../ws/axis2/provider/Axis2ServiceProvider.java | 127 -- .../ws/axis2/provider/Axis2ServiceServlet.java | 300 --- .../ws/axis2/provider/TuscanyDispatcher.java | 104 - .../ws/axis2/provider/TuscanyListingAgent.java | 232 -- .../transport/TransportReferenceInterceptor.java | 137 -- ....apache.tuscany.sca.definitions.xml.Definitions | 17 - ...che.tuscany.sca.provider.BindingProviderFactory | 21 - ...ache.tuscany.sca.provider.PolicyProviderFactory | 20 - .../tuscany/sca/binding/ws/axis2/definitions.xml | 41 - .../binding/ws/axis2/engine/conf/tuscany-axis2.xml | 507 ----- .../axis2/engine/repository/modules/modules.list | 1 - .../engine/repository/modules/rampart-1.4.mar | Bin 2796 -> 0 bytes .../axis2/engine/repository/services/services.list | 0 .../sca/binding/ws/axis2/HelloWorldTestCase.java | 51 - .../sca/binding/ws/axis2/WSDLBindingTestCase.java | 51 - .../binding/ws/axis2/WSDLBindingURITestCase.java | 51 - .../binding/ws/axis2/WSDLBindingWSATestCase.java | 51 - .../binding/ws/axis2/helloworld/HelloWorld.java | 29 - .../ws/axis2/helloworld/HelloWorldClient.java | 35 - .../ws/axis2/helloworld/HelloWorldService.java | 30 - .../ws/axis2/helloworld/helloworld.composite | 45 - .../binding/ws/axis2/helloworld/helloworld.wsdl | 86 - .../ws/axis2/wsdlbinding/helloworld.composite | 41 - .../ws/axis2/wsdlbindinguri/helloworld.composite | 42 - .../ws/axis2/wsdlbindingwsa/helloworld.composite | 45 - .../modules/binding-ws-runtime-jaxws-ri/LICENSE | 205 -- .../META-INF/MANIFEST.MF | 54 - .../modules/binding-ws-runtime-jaxws-ri/NOTICE | 6 - .../modules/binding-ws-runtime-jaxws-ri/pom.xml | 151 -- .../ws/jaxws/ri/JAXWSBindingProviderFactory.java | 77 - .../ws/jaxws/ri/JAXWSReferenceBindingProvider.java | 75 - .../ws/jaxws/ri/JAXWSServiceBindingProvider.java | 140 -- ....apache.tuscany.sca.definitions.xml.Definitions | 17 - ...che.tuscany.sca.provider.BindingProviderFactory | 19 - .../sca/binding/ws/jaxws/ri/definitions.xml | 41 - .../sca/binding/ws/axis2/WSDLPortTestCase.java | 100 - .../binding/ws/axis2/helloworld/HelloWorld.java | 29 - .../ws/axis2/helloworld/HelloWorldClient.java | 35 - .../ws/axis2/helloworld/HelloWorldService.java | 30 - .../binding/ws/axis2/wsdlport/helloworld.composite | 39 - .../sca/binding/ws/axis2/wsdlport/helloworld.wsdl | 80 - .../modules/binding-ws-runtime-jaxws/LICENSE | 205 -- .../binding-ws-runtime-jaxws/META-INF/MANIFEST.MF | 55 - .../modules/binding-ws-runtime-jaxws/NOTICE | 6 - .../modules/binding-ws-runtime-jaxws/pom.xml | 237 -- .../sca/binding/ws/jaxws/JAXWSBindingInvoker.java | 204 -- .../sca/binding/ws/jaxws/JAXWSBindingProvider.java | 180 -- .../2.0-M5-RC3/modules/binding-ws-wsdlgen/LICENSE | 205 -- .../binding-ws-wsdlgen/META-INF/MANIFEST.MF | 60 - .../2.0-M5-RC3/modules/binding-ws-wsdlgen/NOTICE | 6 - .../2.0-M5-RC3/modules/binding-ws-wsdlgen/pom.xml | 79 - .../binding/ws/wsdlgen/BindingWSDLGenerator.java | 322 --- .../ws/wsdlgen/Interface2WSDLGenerator.java | 887 -------- .../ws/wsdlgen/WSDLDefinitionGenerator.java | 305 --- .../ws/wsdlgen/WSDLGenerationException.java | 54 - .../binding/ws/wsdlgen/WSDLServiceGenerator.java | 508 ----- .../ws/wsdlgen/WebServiceBindingBuilder.java | 55 - ...che.tuscany.sca.assembly.builder.BindingBuilder | 18 - .../wsdlgen-validation-messages.properties | 32 - .../apache/tuscany/sca/binding/ws/other/Other.java | 34 - .../tuscany/sca/binding/ws/other/package-info.java | 21 - .../ws/wsdlgen/BindingWSDLGeneratorTestCase.java | 86 - .../wsdlgen/Interface2WSDLGeneratorTestCase.java | 75 - .../sca/binding/ws/wsdlgen/TestException.java | 47 - .../tuscany/sca/binding/ws/wsdlgen/TestFault.java | 46 - .../sca/binding/ws/wsdlgen/TestFaultBean.java | 54 - .../sca/binding/ws/wsdlgen/TestJavaClass.java | 32 - .../sca/binding/ws/wsdlgen/TestJavaInterface.java | 67 - .../tags/2.0-M5-RC3/modules/binding-ws/LICENSE | 205 -- .../modules/binding-ws/META-INF/MANIFEST.MF | 41 - .../tags/2.0-M5-RC3/modules/binding-ws/NOTICE | 6 - .../tags/2.0-M5-RC3/modules/binding-ws/pom.xml | 95 - .../tuscany/sca/binding/ws/WebServiceBinding.java | 226 -- .../sca/binding/ws/WebServiceBindingFactory.java | 35 - .../binding/ws/addressing/EndPointReference.java | 62 - .../ws/impl/WebServiceBindingFactoryImpl.java | 35 - .../sca/binding/ws/impl/WebServiceBindingImpl.java | 322 --- .../binding/ws/xml/EndPointReferenceHelper.java | 223 -- .../binding/ws/xml/WebServiceBindingProcessor.java | 385 ---- .../sca/binding/ws/xml/WebServiceConstants.java | 47 - ...tuscany.sca.binding.ws.WebServiceBindingFactory | 19 - ...ca.contribution.processor.StAXArtifactProcessor | 20 - .../binding-wsxml-validation-messages.properties | 28 - .../tuscany/sca/binding/ws/xml/ReadTestCase.java | 106 - .../tuscany/sca/binding/ws/xml/WriteTestCase.java | 82 - .../ws/xml/Calculator-bad-wsdlElement.composite | 59 - .../sca/binding/ws/xml/Calculator.composite | 63 - .../binding/ws/xml/CalculatorImpl.componentType | 45 - .../binding/ws/xml/PoliciedCalculator.composite | 60 - .../apache/tuscany/sca/binding/ws/xml/example.wsdl | 26 - .../sca/binding/ws/xml/invalid-stockquote.wsdl | 58 - .../org/apache/tuscany/sca/binding/ws/xml/ipo.xsd | 136 -- .../tuscany/sca/binding/ws/xml/stockquote.wsdl | 58 - .../apache/tuscany/sca/binding/ws/xml/test1.wsdl | 45 - .../apache/tuscany/sca/binding/ws/xml/test1.xsd | 33 - .../apache/tuscany/sca/binding/ws/xml/test2.wsdl | 63 - .../sca/binding/ws/xml/unwrapped-stockquote.wsdl | 76 - .../modules/builder/META-INF/MANIFEST.MF | 40 - .../tags/2.0-M5-RC3/modules/builder/pom.xml | 66 - .../sca/builder/impl/BindingURIBuilderImpl.java | 355 --- .../sca/builder/impl/ComponentBuilderImpl.java | 1395 ------------ .../builder/impl/ComponentPolicyBuilderImpl.java | 553 ----- .../impl/ComponentReferenceBindingBuilderImpl.java | 81 - .../impl/ComponentServiceBindingBuilderImpl.java | 80 - .../builder/impl/CompositeCloneBuilderImpl.java | 100 - .../impl/CompositeComponentTypeBuilderImpl.java | 619 ------ .../builder/impl/CompositeIncludeBuilderImpl.java | 126 -- .../builder/impl/CompositePolicyBuilderImpl.java | 288 --- .../sca/builder/impl/CompositeWireApplierImpl.java | 212 -- .../sca/builder/impl/EndpointBuilderImpl.java | 135 -- .../builder/impl/EndpointReferenceBuilderImpl.java | 836 ------- .../tuscany/sca/builder/impl/IntentValidator.java | 139 -- .../tuscany/sca/builder/impl/ModelBuilderImpl.java | 189 -- .../builder/impl/PolicyAppliesToBuilderImpl.java | 171 -- .../builder/impl/PolicyAttachmentBuilderImpl.java | 336 --- .../sca/builder/impl/StructuralURIBuilderImpl.java | 191 -- .../tuscany/sca/builder/impl/WireBuilderImpl.java | 1028 --------- .../tuscany/sca/builder/impl/WireMatcherImpl.java | 64 - ...e.tuscany.sca.assembly.builder.CompositeBuilder | 18 - .../builder/builder-validation-messages.properties | 34 - .../sca/builder/impl/BuildPolicyTestCase.java | 132 -- .../sca/builder/impl/CompositeBuilderTestCase.java | 139 -- .../tuscany/sca/builder/impl/MockPolicy.java | 39 - .../sca/builder/impl/PolicyAttachmentTestCase.java | 151 -- .../sca/builder/impl/TestPolicyProcessor.java | 58 - .../tuscany/sca/builder/impl/Calculator.composite | 49 - .../tuscany/sca/builder/impl/Composite1.composite | 34 - .../tuscany/sca/builder/impl/Composite2.composite | 33 - .../tuscany/sca/builder/impl/Composite3.composite | 29 - .../tuscany/sca/builder/impl/Composite4.composite | 32 - .../tuscany/sca/builder/impl/definitions.xml | 38 - .../apache/tuscany/sca/builder/impl/scenario.odg | Bin 15518 -> 0 bytes .../apache/tuscany/sca/builder/impl/scenario.png | Bin 4041817 -> 0 bytes .../tuscany/sca/builder/impl/test_definitions.xml | 207 -- .../modules/common-http/META-INF/MANIFEST.MF | 14 - .../tags/2.0-M5-RC3/modules/common-http/pom.xml | 47 - .../tuscany/sca/common/http/HTTPCacheContext.java | 261 --- .../tuscany/sca/common/http/HTTPConstants.java | 36 - .../sca/common/http/HTTPContentTypeMapper.java | 58 - .../tuscany/sca/common/http/HTTPContext.java | 46 - .../apache/tuscany/sca/common/http/HTTPHeader.java | 73 - .../apache/tuscany/sca/common/http/HTTPUtil.java | 93 - .../modules/common-java/META-INF/MANIFEST.MF | 22 - .../tags/2.0-M5-RC3/modules/common-java/pom.xml | 55 - .../java/classloader/ClassLoaderDelegate.java | 102 - .../sca/common/java/collection/CollectionMap.java | 77 - .../java/collection/CompoundEnumeration.java | 93 - .../common/java/collection/CompoundIterator.java | 113 - .../sca/common/java/collection/LRUCache.java | 89 - .../tuscany/sca/common/java/io/IOHelper.java | 167 -- .../java/reflection/JavaIntrospectionHelper.java | 586 ----- .../JavaIntrospectionHelperTestCase.java | 71 - .../sca/common/java/reflection/SubTestImpl.java | 45 - .../tuscany/sca/common/java/reflection/Test1.java | 28 - .../tuscany/sca/common/java/reflection/Test2.java | 28 - .../sca/common/java/reflection/TestImpl.java | 44 - .../modules/common-xml/META-INF/MANIFEST.MF | 57 - .../tags/2.0-M5-RC3/modules/common-xml/pom.xml | 98 - .../tuscany/sca/common/xml/XMLDocumentHelper.java | 153 -- .../tuscany/sca/common/xml/dom/DOMHelper.java | 231 -- .../sca/common/xml/dom/impl/SAX2DOMAdapter.java | 244 --- .../tuscany/sca/common/xml/sax/SAXHelper.java | 79 - .../tuscany/sca/common/xml/stax/StAXHelper.java | 573 ----- .../sca/common/xml/stax/impl/StAX2SAXAdapter.java | 256 --- .../common/xml/stax/impl/XMLStreamSerializer.java | 368 ---- .../common/xml/stax/reader/DOMXMLStreamReader.java | 36 - .../sca/common/xml/stax/reader/DOMXmlNodeImpl.java | 150 -- .../stax/reader/DelegatingNamespaceContext.java | 310 --- .../stax/reader/NameValueArrayStreamReader.java | 404 ---- .../xml/stax/reader/NameValuePairStreamReader.java | 348 --- .../sca/common/xml/stax/reader/NamedProperty.java | 59 - .../xml/stax/reader/NamespaceContextImpl.java | 124 -- .../xml/stax/reader/NilElementStreamReader.java | 279 --- .../common/xml/stax/reader/SimpleXmlNodeImpl.java | 112 - .../xml/stax/reader/WrappingXMLStreamReader.java | 100 - .../xml/stax/reader/XMLDocumentStreamReader.java | 482 ---- .../xml/stax/reader/XMLFragmentStreamReader.java | 53 - .../stax/reader/XMLFragmentStreamReaderImpl.java | 858 -------- .../sca/common/xml/stax/reader/XMLStreamable.java | 37 - .../sca/common/xml/stax/reader/XmlNode.java | 69 - .../common/xml/stax/reader/XmlNodeIterator.java | 258 --- .../xml/stax/reader/XmlTreeStreamReaderImpl.java | 531 ----- .../sca/common/xml/xpath/XMLCharHelper.java | 613 ------ .../tuscany/sca/common/xml/xpath/XPathHelper.java | 151 -- .../sca/common/xml/dom/DOMHelperTestCase.java | 81 - .../sca/common/xml/stax/StAXHelperTestCase.java | 112 - .../stax/reader/XmlTreeStreamReaderTestCase.java | 207 -- .../sca/common/xml/xpath/XPathHelperTestCase.java | 120 - .../apache/tuscany/sca/common/xml/stax/test.wsdl | 60 - .../apache/tuscany/sca/common/xml/stax/test.xsd | 30 - .../2.0-M5-RC3/modules/contribution-osgi/LICENSE | 205 -- .../modules/contribution-osgi/META-INF/MANIFEST.MF | 24 - .../2.0-M5-RC3/modules/contribution-osgi/NOTICE | 6 - .../2.0-M5-RC3/modules/contribution-osgi/pom.xml | 72 - .../sca/contribution/osgi/BundleReference.java | 136 -- .../osgi/impl/OSGiBundleActivator.java | 152 -- .../osgi/impl/OSGiBundleContributionScanner.java | 222 -- .../osgi/impl/OSGiBundleProcessor.java | 75 - .../impl/OSGiBundleReferenceModelResolver.java | 117 - .../osgi/impl/OSGiClassReferenceModelResolver.java | 73 - ...tuscany.sca.contribution.resolver.ModelResolver | 19 - ...ny.sca.contribution.scanner.ContributionScanner | 22 - .../tags/2.0-M5-RC3/modules/contribution/LICENSE | 205 -- .../modules/contribution/META-INF/MANIFEST.MF | 59 - .../tags/2.0-M5-RC3/modules/contribution/NOTICE | 6 - .../tags/2.0-M5-RC3/modules/contribution/pom.xml | 69 - .../apache/tuscany/sca/contribution/Artifact.java | 75 - .../tuscany/sca/contribution/ContentType.java | 40 - .../tuscany/sca/contribution/Contribution.java | 126 -- .../sca/contribution/ContributionFactory.java | 66 - .../sca/contribution/ContributionMetadata.java | 70 - .../contribution/DefaultContributionFactory.java | 32 - .../tuscany/sca/contribution/DefaultExport.java | 30 - .../tuscany/sca/contribution/DefaultImport.java | 31 - .../apache/tuscany/sca/contribution/Export.java | 48 - .../apache/tuscany/sca/contribution/Import.java | 58 - .../tuscany/sca/contribution/PackageType.java | 57 - .../sca/contribution/impl/ArtifactImpl.java | 94 - .../contribution/impl/ContributionFactoryImpl.java | 60 - .../sca/contribution/impl/ContributionImpl.java | 158 -- .../impl/ContributionMetadataImpl.java | 74 - .../sca/contribution/impl/DefaultExportImpl.java | 46 - .../sca/contribution/impl/DefaultImportImpl.java | 56 - .../java/DefaultJavaImportExportFactory.java | 30 - .../tuscany/sca/contribution/java/JavaExport.java | 43 - .../tuscany/sca/contribution/java/JavaImport.java | 58 - .../contribution/java/JavaImportExportFactory.java | 42 - .../java/impl/ClassLoaderModelResolver.java | 174 -- .../java/impl/ContributionClassLoader.java | 386 ---- .../contribution/java/impl/ContributionHelper.java | 96 - .../sca/contribution/java/impl/JavaExportImpl.java | 59 - .../java/impl/JavaExportModelResolver.java | 77 - .../java/impl/JavaExportProcessor.java | 147 -- .../java/impl/JavaImportExportFactoryImpl.java | 41 - .../sca/contribution/java/impl/JavaImportImpl.java | 111 - .../java/impl/JavaImportModelResolver.java | 63 - .../java/impl/JavaImportProcessor.java | 153 -- .../DefaultNamespaceImportExportFactory.java | 30 - .../contribution/namespace/NamespaceExport.java | 46 - .../contribution/namespace/NamespaceImport.java | 60 - .../namespace/NamespaceImportExportFactory.java | 42 - .../namespace/impl/NamespaceExportImpl.java | 55 - .../impl/NamespaceExportModelResolver.java | 55 - .../namespace/impl/NamespaceExportProcessor.java | 172 -- .../impl/NamespaceImportExportFactoryImpl.java | 41 - .../namespace/impl/NamespaceImportImpl.java | 93 - .../namespace/impl/NamespaceImportProcessor.java | 178 -- .../contribution/processor/ArtifactProcessor.java | 48 - .../processor/BaseStAXArtifactProcessor.java | 532 ----- .../processor/ContributionException.java | 46 - .../processor/ContributionReadException.java | 96 - .../processor/ContributionResolveException.java | 43 - .../processor/ContributionRuntimeException.java | 45 - .../processor/ContributionWriteException.java | 63 - .../DefaultArtifactProcessorExtensionPoint.java | 66 - ...DefaultStAXArtifactProcessorExtensionPoint.java | 325 --- ...efaultStAXAttributeProcessorExtensionPoint.java | 292 --- .../DefaultURLArtifactProcessorExtensionPoint.java | 320 --- .../DefaultValidatingXMLInputFactory.java | 435 ---- .../DefaultValidationSchemaExtensionPoint.java | 123 -- .../processor/ExtendedArtifactProcessor.java | 41 - .../processor/ExtendedURLArtifactProcessor.java | 30 - .../processor/ExtensibleStAXArtifactProcessor.java | 283 --- .../ExtensibleStAXAttributeProcessor.java | 259 --- .../processor/ExtensibleURLArtifactProcessor.java | 145 -- .../contribution/processor/ProcessorContext.java | 95 - .../processor/StAXArtifactProcessor.java | 62 - .../StAXArtifactProcessorExtensionPoint.java | 57 - .../processor/StAXAttributeProcessor.java | 64 - .../StAXAttributeProcessorExtensionPoint.java | 56 - .../processor/URLArtifactProcessor.java | 52 - .../URLArtifactProcessorExtensionPoint.java | 66 - .../processor/UnrecognizedElementException.java | 48 - .../processor/UnsupportedContentTypeException.java | 43 - .../processor/UnsupportedPackageTypeException.java | 40 - .../processor/ValidatingXMLInputFactory.java | 49 - .../processor/ValidatingXMLStreamReader.java | 409 ---- .../processor/ValidationSchemaExtensionPoint.java | 63 - .../impl/ContributionContentProcessor.java | 306 --- .../processor/xml/AnyAttributeProcessor.java | 79 - .../processor/xml/AnyElementProcessor.java | 96 - .../sca/contribution/resolver/ClassReference.java | 108 - .../resolver/DefaultDelegatingModelResolver.java | 69 - .../resolver/DefaultImportAllModelResolver.java | 81 - .../resolver/DefaultImportModelResolver.java | 70 - .../resolver/DefaultModelResolver.java | 89 - .../DefaultModelResolverExtensionPoint.java | 131 -- .../resolver/ExtensibleModelResolver.java | 179 -- .../sca/contribution/resolver/ModelResolver.java | 75 - .../resolver/ModelResolverExtensionPoint.java | 52 - .../contribution/resolver/ResolverExtension.java | 46 - .../contribution/resolver/ResourceReference.java | 103 - .../contribution/scanner/ContributionScanner.java | 55 - .../scanner/ContributionScannerExtensionPoint.java | 50 - .../DefaultContributionScannerExtensionPoint.java | 131 -- .../scanner/impl/DirectoryContributionScanner.java | 148 -- .../scanner/impl/JarContributionScanner.java | 143 -- ...ributionGeneratedMetadataDocumentProcessor.java | 48 - .../xml/ContributionMetadataDocumentProcessor.java | 127 -- .../xml/ContributionMetadataProcessor.java | 270 --- .../xml/ContributionModelResolver.java | 73 - ...he.tuscany.sca.contribution.ContributionFactory | 18 - ...y.sca.contribution.java.JavaImportExportFactory | 19 - ...ribution.namespace.NamespaceImportExportFactory | 19 - ...ca.contribution.processor.StAXArtifactProcessor | 25 - ...n.processor.StAXArtifactProcessorExtensionPoint | 19 - ...a.contribution.processor.StAXAttributeProcessor | 20 - ....processor.StAXAttributeProcessorExtensionPoint | 19 - ...sca.contribution.processor.URLArtifactProcessor | 22 - ...on.processor.URLArtifactProcessorExtensionPoint | 19 - ...ontribution.processor.ValidatingXMLInputFactory | 17 - ...bution.processor.ValidationSchemaExtensionPoint | 19 - ...tuscany.sca.contribution.resolver.ModelResolver | 20 - ...ntribution.resolver.ModelResolverExtensionPoint | 19 - ...ution.scanner.ContributionScannerExtensionPoint | 19 - ...ontribution-java-validation-messages.properties | 23 - ...bution-namespace-validation-messages.properties | 23 - .../contribution-validation-messages.properties | 34 - ...contribution-xml-validation-messages.properties | 25 - .../java/impl/ContributionClassLoaderTestCase.java | 262 --- .../java/impl/JavaExportProcessorTestCase.java | 103 - .../java/impl/JavaImportProcessorTestCase.java | 106 - .../impl/NamespaceExportProcessorTestCase.java | 106 - .../impl/NamespaceImportProcessorTestCase.java | 110 - ...URLartifactProcessorExtensionPointTestCase.java | 116 - .../resolver/DefaultModelResolverTestCase.java | 94 - .../resolver/ExtensibleModelResolverTestCase.java | 137 -- .../contribution/resolver/TestModelResolver.java | 59 - .../xml/ContributionMetadataProcessorTestCase.java | 156 -- .../resources/deployables/sample-calculator.jar | Bin 26901 -> 0 bytes .../resources/repository/sample-calculator.jar | Bin 29164 -> 0 bytes .../contribution/src/test/resources/test.composite | 22 - .../2.0-M5-RC3/modules/core-databinding/LICENSE | 205 -- .../modules/core-databinding/META-INF/MANIFEST.MF | 29 - .../2.0-M5-RC3/modules/core-databinding/NOTICE | 6 - .../2.0-M5-RC3/modules/core-databinding/pom.xml | 91 - .../DataBindingJavaInterfaceProcessor.java | 131 -- .../processor/WrapperJavaInterfaceProcessor.java | 126 -- .../transformers/Array2ArrayTransformer.java | 104 - .../Collection2CollectionTransformer.java | 108 - .../Exception2ExceptionTransformer.java | 112 - .../transformers/Input2InputTransformer.java | 270 --- .../transformers/Map2MapTransformer.java | 108 - .../transformers/Output2OutputTransformer.java | 251 --- .../wire/DataBindingRuntimeWireProcessor.java | 184 -- .../wire/DataTransformationInterceptor.java | 98 - .../databinding/wire/PassByValueInterceptor.java | 80 - ....apache.tuscany.sca.databinding.PullTransformer | 30 - ...terfacedef.java.introspect.JavaInterfaceVisitor | 19 - ...apache.tuscany.sca.runtime.RuntimeWireProcessor | 17 - .../tags/2.0-M5-RC3/modules/core-spi/LICENSE | 205 -- .../modules/core-spi/META-INF/MANIFEST.MF | 48 - .../tags/2.0-M5-RC3/modules/core-spi/NOTICE | 6 - .../tags/2.0-M5-RC3/modules/core-spi/pom.xml | 120 - .../modules/core-spi/src/doc/Context Model.emx | 673 ------ .../sca/context/ComponentContextFactory.java | 38 - .../tuscany/sca/context/CompositeContext.java | 152 -- .../sca/context/ContextFactoryExtensionPoint.java | 51 - .../DefaultContextFactoryExtensionPoint.java | 115 - .../tuscany/sca/context/PropertyValueFactory.java | 42 - .../tuscany/sca/context/RequestContextFactory.java | 35 - .../tuscany/sca/context/ThreadMessageContext.java | 57 - .../sca/invocation/DataExchangeSemantics.java | 34 - .../apache/tuscany/sca/invocation/Interceptor.java | 41 - .../tuscany/sca/invocation/InvocationChain.java | 108 - .../org/apache/tuscany/sca/invocation/Invoker.java | 37 - .../org/apache/tuscany/sca/invocation/Message.java | 128 -- .../tuscany/sca/invocation/MessageFactory.java | 37 - .../org/apache/tuscany/sca/invocation/Phase.java | 60 - .../tuscany/sca/invocation/PhasedInterceptor.java | 32 - .../tuscany/sca/management/ConfigAttributes.java | 26 - .../tuscany/sca/management/ManagementService.java | 39 - .../tuscany/sca/provider/BasePolicyProvider.java | 186 -- .../sca/provider/BindingPolicyProvider.java | 37 - .../sca/provider/BindingProviderFactory.java | 51 - .../DefaultProviderFactoryExtensionPoint.java | 500 ----- .../tuscany/sca/provider/EndpointProvider.java | 35 - .../sca/provider/EndpointReferenceProvider.java | 36 - .../sca/provider/ImplementationProvider.java | 57 - .../provider/ImplementationProviderFactory.java | 43 - .../sca/provider/OperationSelectorProvider.java | 40 - .../provider/OperationSelectorProviderFactory.java | 44 - .../tuscany/sca/provider/PolicyImplementor.java | 38 - .../tuscany/sca/provider/PolicyProvider.java | 55 - .../sca/provider/PolicyProviderFactory.java | 52 - .../tuscany/sca/provider/ProviderFactory.java | 36 - .../provider/ProviderFactoryExtensionPoint.java | 74 - .../sca/provider/ReferenceBindingProvider.java | 64 - .../tuscany/sca/provider/RuntimeProvider.java | 35 - .../sca/provider/ServiceBindingProvider.java | 53 - .../tuscany/sca/provider/WireFormatProvider.java | 55 - .../sca/provider/WireFormatProviderFactory.java | 44 - .../tuscany/sca/runtime/ActivationException.java | 37 - .../sca/runtime/BaseDomainRegistryFactory.java | 115 - .../tuscany/sca/runtime/BaseEndpointRegistry.java | 135 -- .../tuscany/sca/runtime/CompositeActivator.java | 159 -- ...DefaultDomainRegistryFactoryExtensionPoint.java | 103 - .../DefaultWireProcessorExtensionPoint.java | 127 -- .../tuscany/sca/runtime/DomainRegistryFactory.java | 61 - .../DomainRegistryFactoryExtensionPoint.java | 51 - .../tuscany/sca/runtime/DomainRegistryURI.java | 168 -- .../tuscany/sca/runtime/EndpointListener.java | 46 - .../sca/runtime/EndpointReferenceBinder.java | 52 - .../tuscany/sca/runtime/EndpointRegistry.java | 71 - .../tuscany/sca/runtime/EndpointSerializer.java | 36 - .../runtime/ExtensibleDomainRegistryFactory.java | 133 -- .../org/apache/tuscany/sca/runtime/Invocable.java | 137 -- .../tuscany/sca/runtime/ReferenceParameters.java | 59 - .../tuscany/sca/runtime/RuntimeComponent.java | 84 - .../sca/runtime/RuntimeComponentContext.java | 70 - .../sca/runtime/RuntimeComponentReference.java | 38 - .../sca/runtime/RuntimeComponentService.java | 33 - .../tuscany/sca/runtime/RuntimeEndpoint.java | 67 - .../sca/runtime/RuntimeEndpointReference.java | 61 - .../tuscany/sca/runtime/RuntimeProperties.java | 31 - .../tuscany/sca/runtime/RuntimeWireProcessor.java | 39 - .../RuntimeWireProcessorExtensionPoint.java | 53 - .../org/apache/tuscany/sca/runtime/Version.java | 47 - .../tuscany/sca/work/NotificationListener.java | 67 - .../org/apache/tuscany/sca/work/WorkScheduler.java | 54 - .../tuscany/sca/work/WorkSchedulerException.java | 59 - ...uscany.sca.context.ContextFactoryExtensionPoint | 19 - ...cany.sca.provider.ProviderFactoryExtensionPoint | 19 - ...sca.runtime.DomainRegistryFactoryExtensionPoint | 17 - ....sca.runtime.RuntimeWireProcessorExtensionPoint | 19 - .../apache/tuscany/sca/runtime/revision.properties | 30 - ...efaultContextFactoryExtensionPointTestCase.java | 207 -- .../tuscany/sca/runtime/ConfigURITestCase.java | 107 - .../tuscany/sca/runtime/VersionTestCase.java | 36 - sca-java-2.x/tags/2.0-M5-RC3/modules/core/LICENSE | 205 -- .../2.0-M5-RC3/modules/core/META-INF/MANIFEST.MF | 66 - sca-java-2.x/tags/2.0-M5-RC3/modules/core/NOTICE | 6 - sca-java-2.x/tags/2.0-M5-RC3/modules/core/pom.xml | 89 - .../sca/core/assembly/RuntimeAssemblyFactory.java | 75 - .../core/assembly/impl/CompositeActivatorImpl.java | 599 ----- .../core/assembly/impl/EndpointRegistryImpl.java | 119 - .../core/assembly/impl/EndpointSerializerImpl.java | 106 - .../assembly/impl/LocalDomainRegistryFactory.java | 49 - .../assembly/impl/ReferenceParameterProcessor.java | 98 - .../assembly/impl/ReferenceParametersImpl.java | 121 -- .../core/assembly/impl/RuntimeComponentImpl.java | 111 - .../impl/RuntimeComponentReferenceImpl.java | 66 - .../assembly/impl/RuntimeComponentServiceImpl.java | 40 - .../core/assembly/impl/RuntimeEndpointImpl.java | 577 ----- .../impl/RuntimeEndpointReferenceImpl.java | 539 ----- .../context/DefaultComponentContextFactory.java | 43 - .../core/context/DefaultRequestContextFactory.java | 40 - .../sca/core/context/ServiceReferenceExt.java | 41 - .../context/impl/CallbackServiceReferenceImpl.java | 124 -- .../core/context/impl/ComponentContextImpl.java | 494 ----- .../sca/core/context/impl/RequestContextImpl.java | 96 - .../core/context/impl/ServiceReferenceImpl.java | 424 ---- .../tuscany/sca/core/factory/InstanceWrapper.java | 49 - .../sca/core/factory/ObjectCreationException.java | 48 - .../tuscany/sca/core/factory/ObjectFactory.java | 36 - .../invocation/CallableReferenceObjectFactory.java | 58 - .../invocation/CallbackInterfaceInterceptor.java | 60 - .../invocation/CallbackReferenceObjectFactory.java | 50 - .../core/invocation/CallbackWireObjectFactory.java | 48 - .../sca/core/invocation/CglibProxyFactory.java | 152 -- .../DefaultProxyFactoryExtensionPoint.java | 95 - .../core/invocation/ExtensibleProxyFactory.java | 125 -- .../core/invocation/ExtensibleWireProcessor.java | 51 - .../core/invocation/NonBlockingInterceptor.java | 184 -- .../core/invocation/ProxyCreationException.java | 48 - .../tuscany/sca/core/invocation/ProxyFactory.java | 88 - .../invocation/ProxyFactoryExtensionPoint.java | 54 - .../sca/core/invocation/RuntimeInvoker.java | 97 - .../sca/core/invocation/WireObjectFactory.java | 56 - .../invocation/impl/AsyncJDKInvocationHandler.java | 101 - .../sca/core/invocation/impl/AsyncResponse.java | 68 - .../core/invocation/impl/InvocationChainImpl.java | 208 -- .../impl/JDKCallbackInvocationHandler.java | 77 - .../core/invocation/impl/JDKInvocationHandler.java | 278 --- .../sca/core/invocation/impl/JDKProxyFactory.java | 202 -- .../core/invocation/impl/MessageFactoryImpl.java | 36 - .../sca/core/invocation/impl/MessageImpl.java | 114 - .../impl/NoMethodForOperationException.java | 45 - .../sca/core/invocation/impl/PhaseManager.java | 313 --- .../sca/core/invocation/impl/PhaseSorter.java | 236 -- .../runtime/impl/EndpointReferenceBinderImpl.java | 728 ------- .../core/runtime/impl/RuntimePropertiesImpl.java | 38 - .../sca/core/scope/AbstractScopeContainer.java | 196 -- .../sca/core/scope/DefaultScopeRegistry.java | 40 - .../org/apache/tuscany/sca/core/scope/Scope.java | 63 - .../tuscany/sca/core/scope/ScopeContainer.java | 160 -- .../sca/core/scope/ScopeContainerFactory.java | 32 - .../tuscany/sca/core/scope/ScopeRegistry.java | 43 - .../core/scope/ScopedImplementationProvider.java | 56 - .../sca/core/scope/ScopedRuntimeComponent.java | 41 - .../sca/core/scope/TargetDestructionException.java | 45 - .../core/scope/TargetInitializationException.java | 45 - .../sca/core/scope/TargetNotFoundException.java | 44 - .../sca/core/scope/TargetResolutionException.java | 45 - .../core/scope/impl/CompositeScopeContainer.java | 87 - .../scope/impl/CompositeScopeContainerFactory.java | 40 - .../sca/core/scope/impl/ScopeRegistryImpl.java | 70 - .../core/scope/impl/StatelessScopeContainer.java | 61 - .../scope/impl/StatelessScopeContainerFactory.java | 40 - .../sca/core/work/impl/DefaultWorkScheduler.java | 204 -- .../sca/core/work/impl/ThreadPoolWorkManager.java | 228 -- .../apache/tuscany/sca/core/work/impl/Work.java | 65 - .../tuscany/sca/core/work/impl/WorkEvent.java | 80 - .../tuscany/sca/core/work/impl/WorkItem.java | 167 -- .../tuscany/sca/core/work/impl/WorkListener.java | 32 - ...org.apache.tuscany.sca.assembly.AssemblyFactory | 18 - ...che.tuscany.sca.context.ComponentContextFactory | 17 - ...pache.tuscany.sca.context.RequestContextFactory | 17 - ...ca.contribution.processor.StAXArtifactProcessor | 20 - ....sca.core.invocation.ProxyFactoryExtensionPoint | 19 - ...org.apache.tuscany.sca.core.scope.ScopeRegistry | 19 - ...rg.apache.tuscany.sca.invocation.MessageFactory | 19 - ...g.apache.tuscany.sca.runtime.CompositeActivator | 19 - ...pache.tuscany.sca.runtime.DomainRegistryFactory | 17 - ...che.tuscany.sca.runtime.EndpointReferenceBinder | 18 - ...g.apache.tuscany.sca.runtime.EndpointSerializer | 17 - ...rg.apache.tuscany.sca.runtime.RuntimeProperties | 18 - .../org.apache.tuscany.sca.work.WorkScheduler | 17 - .../endpoint-validation-messages.properties | 23 - .../impl/InvocationChainImplTestCase.java | 93 - .../core/invocation/impl/PhaseManagerTestCase.java | 50 - .../core/invocation/impl/PhaseSorterTestCase.java | 67 - .../tuscany/sca/core/work/impl/FailingWork.java | 54 - .../core/work/impl/JSR237MyFailingRunnable.java | 43 - .../sca/core/work/impl/JSR237MyRunnable.java | 71 - .../sca/core/work/impl/JSR237MyRunnerListener.java | 154 -- .../work/impl/Jsr237WorkSchedulerTestCase.java | 240 -- .../sca/core/work/impl/TestWorkListener.java | 153 -- .../work/impl/ThreadPoolWorkManagerTestCase.java | 227 -- .../tuscany/sca/core/work/impl/TimeDelayWork.java | 86 - .../apache/tuscany/sca/scope/ScopeTestCase.java | 66 - .../org.apache.tuscany.sca.invocation.PhaseTest | 24 - .../tags/2.0-M5-RC3/modules/data-api/LICENSE | 205 -- .../modules/data-api/META-INF/MANIFEST.MF | 14 - .../tags/2.0-M5-RC3/modules/data-api/NOTICE | 6 - .../tags/2.0-M5-RC3/modules/data-api/pom.xml | 38 - .../tuscany/sca/data/collection/Collection.java | 79 - .../apache/tuscany/sca/data/collection/Entry.java | 86 - .../apache/tuscany/sca/data/collection/Item.java | 159 -- .../sca/data/collection/ItemCollection.java | 30 - .../sca/data/collection/LocalItemCollection.java | 28 - .../sca/data/collection/NotFoundException.java | 45 - .../2.0-M5-RC3/modules/databinding-axiom/LICENSE | 205 -- .../modules/databinding-axiom/META-INF/MANIFEST.MF | 29 - .../2.0-M5-RC3/modules/databinding-axiom/NOTICE | 6 - .../2.0-M5-RC3/modules/databinding-axiom/pom.xml | 112 - .../sca/databinding/axiom/AxiomDataBinding.java | 66 - .../tuscany/sca/databinding/axiom/AxiomHelper.java | 142 -- .../sca/databinding/axiom/Exception2OMElement.java | 95 - .../axiom/Externalizable2OMElement.java | 77 - .../sca/databinding/axiom/OMElement2Exception.java | 79 - .../axiom/OMElement2Externalizable.java | 69 - .../sca/databinding/axiom/OMElement2Object.java | 50 - .../sca/databinding/axiom/OMElement2String.java | 64 - .../axiom/OMElement2XMLStreamReader.java | 66 - .../databinding/axiom/OMElementWrapperHandler.java | 251 --- .../sca/databinding/axiom/Object2OMElement.java | 63 - .../sca/databinding/axiom/String2OMElement.java | 64 - .../axiom/XMLStreamReader2OMElement.java | 70 - .../org.apache.tuscany.sca.databinding.DataBinding | 21 - ....apache.tuscany.sca.databinding.PullTransformer | 31 - .../sca/databinding/axiom/OMElementTestCase.java | 129 -- .../databinding-axiom/src/test/resources/ipo.xml | 51 - .../databinding-axiom/src/test/resources/ipo.xsd | 137 -- .../src/test/resources/order.wsdl | 76 - .../modules/databinding-jaxb-axiom/LICENSE | 205 -- .../databinding-jaxb-axiom/META-INF/MANIFEST.MF | 38 - .../modules/databinding-jaxb-axiom/NOTICE | 6 - .../modules/databinding-jaxb-axiom/pom.xml | 175 -- .../sca/databinding/jaxb/axiom/AxiomHelper.java | 140 -- .../sca/databinding/jaxb/axiom/JAXB2OMElement.java | 84 - .../sca/databinding/jaxb/axiom/JAXBDataSource.java | 128 -- .../sca/databinding/jaxb/axiom/OMElement2JAXB.java | 106 - .../jaxb/axiom/ext/JAXBCustomBuilder.java | 114 - .../databinding/jaxb/axiom/ext/JAXBDSContext.java | 191 -- .../jaxb/axiom/ext/JAXBDataSourceExt.java | 144 -- .../jaxb/axiom/ext/SourceDataSource.java | 123 -- .../jaxb/axiom/ext/XMLStreamWriterWithOS.java | 246 --- .../jaxb/axiom/ext/XMLStringDataSource.java | 84 - ....apache.tuscany.sca.databinding.PullTransformer | 27 - .../databinding/jaxb/axiom/JAXB2OMTestCase.java | 113 - .../jaxb/axiom/OMElement2JAXBTestCase.java | 72 - .../src/test/resources/ipo.xsd | 136 -- .../2.0-M5-RC3/modules/databinding-jaxb/LICENSE | 205 -- .../modules/databinding-jaxb/META-INF/MANIFEST.MF | 53 - .../2.0-M5-RC3/modules/databinding-jaxb/NOTICE | 6 - .../2.0-M5-RC3/modules/databinding-jaxb/pom.xml | 175 -- .../sca/databinding/jaxb/AnyTypeXmlAdapter.java | 39 - .../sca/databinding/jaxb/DOMElementXmlAdapter.java | 57 - .../sca/databinding/jaxb/DataConverter.java | 378 ---- .../jaxb/DefaultXMLAdapterExtensionPoint.java | 60 - .../tuscany/sca/databinding/jaxb/JAXB2Node.java | 85 - .../tuscany/sca/databinding/jaxb/JAXB2SAX.java | 77 - .../tuscany/sca/databinding/jaxb/JAXB2String.java | 82 - .../sca/databinding/jaxb/JAXBContextCache.java | 561 ----- .../sca/databinding/jaxb/JAXBContextHelper.java | 492 ----- .../sca/databinding/jaxb/JAXBDataBinding.java | 148 -- .../databinding/jaxb/JAXBPropertyDescriptor.java | 302 --- .../sca/databinding/jaxb/JAXBTypeHelper.java | 244 --- .../sca/databinding/jaxb/JAXBWrapperException.java | 56 - .../sca/databinding/jaxb/JAXBWrapperHandler.java | 151 -- .../sca/databinding/jaxb/JAXBWrapperHelper.java | 166 -- .../tuscany/sca/databinding/jaxb/Node2JAXB.java | 75 - .../tuscany/sca/databinding/jaxb/Reader2JAXB.java | 79 - .../tuscany/sca/databinding/jaxb/String2JAXB.java | 86 - .../databinding/jaxb/XMLAdapterExtensionPoint.java | 52 - .../sca/databinding/jaxb/XMLRootElementUtil.java | 299 --- .../sca/databinding/jaxb/XMLStreamReader2JAXB.java | 80 - .../tuscany/sca/databinding/jaxb/package.html | 29 - .../org.apache.tuscany.sca.databinding.DataBinding | 20 - ....apache.tuscany.sca.databinding.PullTransformer | 33 - ...y.sca.databinding.jaxb.XMLAdapterExtensionPoint | 17 - .../java/com/example/stock/StockQuoteOffer.java | 45 - .../databinding/jaxb/JAXBContextCacheTestCase.java | 122 -- .../databinding/jaxb/JAXBDataBindingTestCase.java | 131 -- .../databinding/jaxb/JAXBReflectionTestCase.java | 39 - .../tuscany/sca/databinding/jaxb/JAXBTestCase.java | 148 -- .../jaxb/JAXBWrapperHandlerTestCase.java | 90 - .../tuscany/sca/databinding/jaxb/MyBean.java | 162 -- .../tuscany/sca/databinding/jaxb/MyInterface.java | 29 - .../sca/databinding/jaxb/MyInterfaceImpl.java | 67 - .../tuscany/sca/databinding/jaxb/MyJaxbBean.java | 64 - .../tuscany/sca/databinding/jaxb/MySubBean.java | 35 - .../tuscany/sca/databinding/jaxb/POJOTestCase.java | 238 -- .../databinding-jaxb/src/test/resources/ipo.xsd | 144 -- .../2.0-M5-RC3/modules/databinding-json/LICENSE | 202 -- .../modules/databinding-json/META-INF/MANIFEST.MF | 37 - .../2.0-M5-RC3/modules/databinding-json/NOTICE | 6 - .../2.0-M5-RC3/modules/databinding-json/pom.xml | 140 -- .../sca/databinding/json/JSON2JavaBean.java | 72 - .../tuscany/sca/databinding/json/JSON2String.java | 61 - .../sca/databinding/json/JSON2XMLStreamReader.java | 65 - .../sca/databinding/json/JSONDataBinding.java | 78 - .../tuscany/sca/databinding/json/JSONHelper.java | 106 - .../sca/databinding/json/JavaBean2JSON.java | 81 - .../sca/databinding/json/JavaBean2JSONObject.java | 142 -- .../tuscany/sca/databinding/json/String2JSON.java | 64 - .../sca/databinding/json/XMLStreamReader2JSON.java | 83 - .../sca/databinding/json/axiom/JSON2OMElement.java | 94 - .../json/axiom/JSONBadgerfishDataSource.java | 57 - .../sca/databinding/json/axiom/JSONDataSource.java | 176 -- .../databinding/json/jackson/InputStream2JSON.java | 49 - .../sca/databinding/json/jackson/JSON2Object.java | 76 - .../json/jackson/JSON2OutputStream.java | 65 - .../databinding/json/jackson/JacksonHelper.java | 128 -- .../sca/databinding/json/jackson/Object2JSON.java | 83 - .../org.apache.tuscany.sca.databinding.DataBinding | 20 - ....apache.tuscany.sca.databinding.PullTransformer | 34 - ....apache.tuscany.sca.databinding.PushTransformer | 34 - .../databinding/json/JSONTransformerTestCase.java | 140 -- .../databinding/json/JavaBean2JSONTestCase.java | 170 -- .../tuscany/sca/databinding/json/MyBean.java | 158 -- .../tuscany/sca/databinding/json/MyInterface.java | 29 - .../sca/databinding/json/MyInterfaceImpl.java | 67 - .../tuscany/sca/databinding/json/POJOTestCase.java | 92 - .../databinding/json/jackson/JacksonTestCase.java | 95 - .../json/jackson/Object2JSONTestCase.java | 169 -- .../databinding-json/src/test/resources/ipo.xsd | 136 -- .../modules/databinding-sdo-axiom/LICENSE | 205 -- .../databinding-sdo-axiom/META-INF/MANIFEST.MF | 21 - .../modules/databinding-sdo-axiom/NOTICE | 6 - .../modules/databinding-sdo-axiom/pom.xml | 148 -- .../sca/databinding/sdo2om/AxiomHelper.java | 142 -- .../databinding/sdo2om/DataObject2OMElement.java | 86 - .../sca/databinding/sdo2om/SDODataSource.java | 89 - .../databinding/sdo2om/XMLDocument2OMElement.java | 65 - ....apache.tuscany.sca.databinding.PullTransformer | 20 - .../sdo2om/DataObject2OMElementTestCase.java | 78 - .../sdo2om/SDOTransformerTestCaseBase.java | 86 - .../sdo2om/XMLDocument2OMElementTestCase.java | 63 - .../src/test/resources/ipo.xsd | 136 -- .../src/test/resources/stock.xsd | 33 - .../2.0-M5-RC3/modules/databinding-sdo/LICENSE | 205 -- .../modules/databinding-sdo/META-INF/MANIFEST.MF | 37 - .../tags/2.0-M5-RC3/modules/databinding-sdo/NOTICE | 6 - .../2.0-M5-RC3/modules/databinding-sdo/pom.xml | 157 -- .../sca/databinding/sdo/DataObject2Node.java | 75 - .../sca/databinding/sdo/DataObject2String.java | 64 - .../sdo/DataObject2XMLStreamReader.java | 82 - .../tuscany/sca/databinding/sdo/ImportSDO.java | 79 - .../sca/databinding/sdo/ImportSDOProcessor.java | 215 -- .../sca/databinding/sdo/Node2DataObject.java | 76 - .../sca/databinding/sdo/SDOContextHelper.java | 258 --- .../sca/databinding/sdo/SDODataBinding.java | 150 -- .../sca/databinding/sdo/SDOSimpleTypeMapper.java | 82 - .../tuscany/sca/databinding/sdo/SDOTypeHelper.java | 253 --- .../tuscany/sca/databinding/sdo/SDOTypes.java | 107 - .../sca/databinding/sdo/SDOWrapperHandler.java | 192 -- .../sca/databinding/sdo/String2DataObject.java | 61 - .../sca/databinding/sdo/XMLDocument2String.java | 65 - .../sdo/XMLDocument2XMLStreamReader.java | 69 - .../sdo/XMLStreamReader2DataObject.java | 72 - .../sdo/XMLStreamReader2XMLDocument.java | 66 - .../databinding/sdo/xml/SDOTypesModelResolver.java | 234 -- .../sca/databinding/sdo/xml/SDOTypesProcessor.java | 109 - ...ca.contribution.processor.StAXArtifactProcessor | 19 - ...tuscany.sca.contribution.resolver.ModelResolver | 17 - .../org.apache.tuscany.sca.databinding.DataBinding | 19 - ....apache.tuscany.sca.databinding.PullTransformer | 27 - .../databinding-sdo-validation-messages.properties | 23 - .../sdo/fault/InvalidSymbolFault_Exception.java | 70 - .../databinding/sdo/DataObject2NodeTestCase.java | 61 - .../databinding/sdo/DataObject2StringTestCase.java | 65 - .../sdo/DataObject2XMLStreamReaderTestCase.java | 76 - .../sdo/ImportSDOProcessorTestCase.java | 103 - .../databinding/sdo/SDOContextHelperTestCase.java | 55 - .../databinding/sdo/SDODataBindingTestCase.java | 115 - .../sdo/SDOTransformerTestCaseBase.java | 84 - .../databinding/sdo/SDOWrapperHandlerTestCase.java | 85 - .../sca/databinding/sdo/TestModelResolver.java | 64 - .../sdo/XMLDocument2XMLStreamReaderTestCase.java | 64 - .../databinding-sdo/src/test/resources/ipo.xsd | 136 -- .../databinding-sdo/src/test/resources/stock.xsd | 33 - .../databinding-sdo/src/test/resources/wrapper.xml | 27 - .../databinding-sdo/src/test/resources/wrapper.xsd | 38 - .../tags/2.0-M5-RC3/modules/databinding/LICENSE | 244 --- .../modules/databinding/META-INF/MANIFEST.MF | 71 - .../tags/2.0-M5-RC3/modules/databinding/NOTICE | 6 - .../tags/2.0-M5-RC3/modules/databinding/pom.xml | 97 - .../tuscany/sca/databinding/BaseDataBinding.java | 108 - .../tuscany/sca/databinding/BaseTransformer.java | 52 - .../tuscany/sca/databinding/DataBinding.java | 94 - .../sca/databinding/DataBindingContext.java | 95 - .../sca/databinding/DataBindingExtensionPoint.java | 75 - .../apache/tuscany/sca/databinding/DataPipe.java | 46 - .../sca/databinding/DataPipeTransformer.java | 29 - .../DefaultDataBindingExtensionPoint.java | 261 --- .../DefaultTransformerExtensionPoint.java | 321 --- .../apache/tuscany/sca/databinding/Mediator.java | 204 -- .../tuscany/sca/databinding/PullTransformer.java | 39 - .../tuscany/sca/databinding/PushTransformer.java | 36 - .../tuscany/sca/databinding/SimpleTypeMapper.java | 70 - .../sca/databinding/TransformationContext.java | 89 - .../sca/databinding/TransformationException.java | 66 - .../tuscany/sca/databinding/Transformer.java | 51 - .../sca/databinding/TransformerExtensionPoint.java | 81 - .../tuscany/sca/databinding/WrapperHandler.java | 79 - .../tuscany/sca/databinding/XMLTypeHelper.java | 69 - .../sca/databinding/annotation/DataBinding.java | 56 - .../sca/databinding/annotation/DataType.java | 43 - .../externalizable/ExternalizableDataBinding.java | 39 - .../sca/databinding/impl/DirectedGraph.java | 469 ---- .../databinding/impl/Group2GroupTransformer.java | 91 - .../sca/databinding/impl/GroupDataBinding.java | 104 - .../impl/Java2SimpleTypeTransformer.java | 72 - .../tuscany/sca/databinding/impl/MediatorImpl.java | 629 ------ .../sca/databinding/impl/PipedTransformer.java | 70 - .../impl/SimpleType2JavaTransformer.java | 91 - .../sca/databinding/impl/SimpleTypeMapperImpl.java | 402 ---- .../impl/TransformationContextImpl.java | 102 - .../sca/databinding/impl/XSDDataTypeConverter.java | 951 -------- .../javabeans/DOMNode2JavaBeanTransformer.java | 98 - .../javabeans/Java2XMLMapperException.java | 69 - .../javabeans/JavaBean2DOMNodeTransformer.java | 76 - .../JavaBean2XMLStreamReaderTransformer.java | 68 - .../javabeans/JavaBean2XMLTransformer.java | 262 --- .../javabeans/JavaBeansDataBinding.java | 166 -- .../javabeans/JavaExceptionDataBinding.java | 35 - .../javabeans/SimpleJavaDataBinding.java | 89 - .../javabeans/XML2JavaBeanTransformer.java | 329 --- .../javabeans/XML2JavaMapperException.java | 76 - .../sca/databinding/util/DataTypeHelper.java | 165 -- .../databinding/xml/BeanXMLStreamReaderImpl.java | 300 --- .../sca/databinding/xml/DOMDataBinding.java | 131 -- .../sca/databinding/xml/DOMWrapperHandler.java | 138 -- .../sca/databinding/xml/InputSource2Node.java | 74 - .../sca/databinding/xml/InputSource2SAX.java | 65 - .../sca/databinding/xml/InputStream2Node.java | 76 - .../sca/databinding/xml/InputStream2SAX.java | 64 - .../sca/databinding/xml/Node2OutputStream.java | 75 - .../sca/databinding/xml/Node2SimpleJavaType.java | 45 - .../databinding/xml/Node2SourceTransformer.java | 61 - .../tuscany/sca/databinding/xml/Node2String.java | 68 - .../tuscany/sca/databinding/xml/Node2Writer.java | 74 - .../sca/databinding/xml/Node2XMLStreamReader.java | 65 - .../tuscany/sca/databinding/xml/Reader2Node.java | 73 - .../tuscany/sca/databinding/xml/Reader2SAX.java | 60 - .../tuscany/sca/databinding/xml/SAX2DOMPipe.java | 78 - .../sca/databinding/xml/SimpleJavaType2Node.java | 66 - .../databinding/xml/Source2NodeTransformer.java | 70 - .../databinding/xml/Source2ResultTransformer.java | 71 - .../databinding/xml/Source2StringTransformer.java | 76 - .../sca/databinding/xml/StAXDataBinding.java | 53 - .../sca/databinding/xml/StreamDataPipe.java | 65 - .../tuscany/sca/databinding/xml/String2Node.java | 60 - .../tuscany/sca/databinding/xml/String2SAX.java | 61 - .../databinding/xml/String2SourceTransformer.java | 62 - .../databinding/xml/String2XMLStreamReader.java | 62 - .../sca/databinding/xml/Writer2ReaderDataPipe.java | 63 - .../sca/databinding/xml/XMLGroupDataBinding.java | 57 - .../sca/databinding/xml/XMLStreamReader2Node.java | 81 - .../sca/databinding/xml/XMLStreamReader2SAX.java | 77 - .../databinding/xml/XMLStreamReader2String.java | 64 - .../sca/databinding/xml/XMLStringDataBinding.java | 51 - .../org.apache.tuscany.sca.databinding.DataBinding | 26 - ...scany.sca.databinding.DataBindingExtensionPoint | 19 - .../org.apache.tuscany.sca.databinding.Mediator | 17 - ....apache.tuscany.sca.databinding.PullTransformer | 41 - ....apache.tuscany.sca.databinding.PushTransformer | 27 - ...apache.tuscany.sca.databinding.SimpleTypeMapper | 17 - ...scany.sca.databinding.TransformerExtensionPoint | 19 - .../extension/DataBindingExtensionTestCase.java | 83 - .../SimpleTypeMapperExtensionTestCase.java.fixme | 124 -- .../TransformerExtensionTestCase.java.fixme | 77 - .../extension/XSDDataTypeConverterTestCase.java | 58 - .../sca/databinding/impl/DataBindingTestCase.java | 48 - .../databinding/impl/DirectedGraphTestCase.java | 127 -- .../sca/databinding/impl/MediatorImplTestCase.java | 125 -- .../impl/XMLDocumentStreamReaderTestCase.java | 60 - .../xml/BeanXMLStreamReaderTestCase.java | 188 -- .../sca/databinding/xml/DOM2StAXTestCase.java | 116 - .../sca/databinding/xml/DataPipeTestCase.java | 98 - .../xml/JavaBean2XMLStreamReaderTestCase.java | 137 -- .../sca/databinding/xml/Node2StringTestCase.java | 43 - .../xml/PushTransformationTestCase.java | 81 - .../databinding/xml/TraxTransformerTestCase.java | 102 - .../apache/tuscany/sca/databinding/impl/ipo.xsd | 136 -- .../apache/tuscany/sca/databinding/impl/order.wsdl | 76 - .../org/apache/tuscany/sca/databinding/xml/foo.xml | 22 - .../tags/2.0-M5-RC3/modules/deployment/LICENSE | 205 -- .../modules/deployment/META-INF/MANIFEST.MF | 51 - .../tags/2.0-M5-RC3/modules/deployment/NOTICE | 6 - .../tags/2.0-M5-RC3/modules/deployment/pom.xml | 83 - .../tuscany/sca/deployment/DefaultDeployer.java | 42 - .../apache/tuscany/sca/deployment/Deployer.java | 196 -- .../tuscany/sca/deployment/impl/Contributions.java | 160 -- .../tuscany/sca/deployment/impl/DeployerImpl.java | 648 ------ .../org.apache.tuscany.sca.deployment.Deployer | 18 - .../deployer-impl-validation-messages.properties | 22 - .../src/test/java/hello/deployer/HelloWorld.java | 30 - .../test/java/hello/deployer/HelloWorldImpl.java | 30 - .../sca/deployment/impl/DeployerImplTestCase.java | 135 -- .../test/resources/META-INF/sca-contribution.xml | 24 - .../sca/deployment/impl/HelloWorld.composite | 29 - .../tags/2.0-M5-RC3/modules/domain-node/LICENSE | 205 -- .../modules/domain-node/META-INF/MANIFEST.MF | 17 - .../tags/2.0-M5-RC3/modules/domain-node/NOTICE | 6 - .../tags/2.0-M5-RC3/modules/domain-node/pom.xml | 61 - .../apache/tuscany/sca/domain/node/DomainNode.java | 179 -- .../tuscany/sca/domain/node/DomainNodeMain.java | 67 - .../src/test/java/itest/nodes/Helloworld.java | 29 - .../sca/domain/node/GetServiceTestCase.java | 84 - .../domain/node/MultipleNodesPerJVMTestCase.java | 87 - .../tuscany/sca/domain/node/OneNodeTestCase.java | 105 - .../sca/domain/node/StopStartNodesTestCase.java | 82 - .../itest-nodes-helloworld-client-2.0-SNAPSHOT.jar | Bin 4708 -> 0 bytes ...itest-nodes-helloworld-service-2.0-SNAPSHOT.jar | Bin 4515 -> 0 bytes .../endpoint-hazelcast-client/META-INF/MANIFEST.MF | 18 - .../modules/endpoint-hazelcast-client/pom.xml | 45 - .../HazelcastClientDomainRegistryFactory.java | 49 - .../client/HazelcastClientEndpointRegistry.java | 120 - ...pache.tuscany.sca.runtime.DomainRegistryFactory | 17 - .../endpoint-hazelcast/META-INF/MANIFEST.MF | 19 - .../2.0-M5-RC3/modules/endpoint-hazelcast/pom.xml | 63 - .../hazelcast/HazelcastDomainRegistryFactory.java | 49 - .../hazelcast/HazelcastEndpointRegistry.java | 370 ---- .../sca/endpoint/hazelcast/RegistryConfig.java | 179 -- ...pache.tuscany.sca.runtime.DomainRegistryFactory | 17 - .../sca/endpoint/hazelcast/MultiRegTestCase.java | 157 -- .../sca/endpoint/hazelcast/RegistryTestCase.java | 142 -- .../modules/endpoint-tribes/META-INF/MANIFEST.MF | 28 - .../2.0-M5-RC3/modules/endpoint-tribes/pom.xml | 65 - .../sca/endpoint/tribes/AbstractReplicatedMap.java | 1564 ------------- .../endpoint/tribes/DisableMcastInterceptor.java | 41 - .../tuscany/sca/endpoint/tribes/MapStore.java | 83 - .../tribes/ReplicatedEndpointRegistry.java | 420 ---- .../tuscany/sca/endpoint/tribes/ReplicatedMap.java | 163 -- .../tribes/TribesDomainRegistryFactory.java | 49 - ...pache.tuscany.sca.runtime.DomainRegistryFactory | 17 - .../sca/endpoint/tribes/MultiRegTestCase.java | 169 -- .../tribes/ReplicatedEndpointRegistryTestCase.java | 79 - .../modules/extensibility-equinox/LICENSE | 205 -- .../extensibility-equinox/META-INF/MANIFEST.MF | 30 - .../modules/extensibility-equinox/NOTICE | 5 - .../modules/extensibility-equinox/pom.xml | 66 - .../equinox/EquinoxServiceDiscoverer.java | 326 --- .../equinox/EquinoxServiceDiscoveryActivator.java | 49 - .../equinox/OSGiExtensionPointRegistry.java | 106 - .../extensibility/equinox/EquinoxHostTestCase.java | 95 - .../equinox/EquinoxServiceDiscovererTestCase.java | 132 -- .../sca/extensibility/equinox/TestEquinoxHost.java | 77 - .../src/test/resources/test-bundle-v1.jar | Bin 2801 -> 0 bytes .../src/test/resources/test-bundle-v2.jar | Bin 2805 -> 0 bytes .../tags/2.0-M5-RC3/modules/extensibility/LICENSE | 205 -- .../modules/extensibility/META-INF/MANIFEST.MF | 18 - .../tags/2.0-M5-RC3/modules/extensibility/NOTICE | 10 - .../tags/2.0-M5-RC3/modules/extensibility/pom.xml | 31 - .../sca/core/DefaultExtensionPointRegistry.java | 193 -- .../sca/core/DefaultFactoryExtensionPoint.java | 162 -- .../core/DefaultModuleActivatorExtensionPoint.java | 154 -- .../sca/core/DefaultUtilityExtensionPoint.java | 219 -- .../tuscany/sca/core/ExtensionPointRegistry.java | 66 - .../tuscany/sca/core/FactoryExtensionPoint.java | 55 - .../apache/tuscany/sca/core/LifeCycleListener.java | 37 - .../apache/tuscany/sca/core/ModuleActivator.java | 72 - .../sca/core/ModuleActivatorExtensionPoint.java | 53 - .../tuscany/sca/core/UtilityExtensionPoint.java | 74 - .../sca/extensibility/ClassLoaderContext.java | 213 -- .../ContextClassLoaderServiceDiscoverer.java | 179 -- .../sca/extensibility/ServiceDeclaration.java | 82 - .../extensibility/ServiceDeclarationParser.java | 375 ---- .../sca/extensibility/ServiceDiscoverer.java | 54 - .../sca/extensibility/ServiceDiscovery.java | 288 --- .../tuscany/sca/extensibility/ServiceHelper.java | 226 -- .../extensibility/impl/ClassLoaderDelegate.java | 89 - .../extensibility/impl/InvalidSyntaxException.java | 86 - .../tuscany/sca/extensibility/impl/LDAPFilter.java | 1373 ------------ ...g.apache.tuscany.sca.core.FactoryExtensionPoint | 19 - ....tuscany.sca.core.ModuleActivatorExtensionPoint | 19 - ...g.apache.tuscany.sca.core.UtilityExtensionPoint | 19 - ...ontextClassLoaderServiceDiscovererTestCase.java | 81 - .../DefaultExtensionPointRegistryTestCase.java | 58 - .../DefaultUtilityExtensionPointTestCase.java | 118 - .../extensibility/ServiceDiscoveryTestCase.java | 101 - .../sca/extensibility/ServiceHelperTestCase.java | 79 - .../tuscany/sca/extensibility/test/DummyImpl.java | 31 - .../tuscany/sca/extensibility/test/Test2Impl.java | 103 - .../tuscany/sca/extensibility/test/TestImpl.java | 42 - .../sca/extensibility/test/TestInterface.java | 30 - ...he.tuscany.sca.extensibility.test.TestInterface | 19 - .../tags/2.0-M5-RC3/modules/host-corba-jee/LICENSE | 205 -- .../modules/host-corba-jee/META-INF/MANIFEST.MF | 23 - .../tags/2.0-M5-RC3/modules/host-corba-jee/NOTICE | 6 - .../tags/2.0-M5-RC3/modules/host-corba-jee/pom.xml | 44 - .../tuscany/sca/host/corba/jee/JEECorbaHost.java | 164 -- .../org.apache.tuscany.sca.host.corba.CorbaHost | 17 - .../corba/jee/testing/JEECorbaHostTestCase.java | 208 -- .../sca/host/corba/jee/testing/TestContext.java | 174 -- .../jee/testing/TestInitialContextFactory.java | 37 - .../corba/jee/testing/general/TestInterface.java | 30 - .../jee/testing/general/TestInterfaceHelper.java | 100 - .../jee/testing/general/TestInterfaceHolder.java | 51 - .../testing/general/TestInterfaceOperations.java | 31 - .../testing/general/_TestInterfaceImplBase.java | 74 - .../jee/testing/general/_TestInterfaceStub.java | 73 - .../jee/testing/servants/TestInterfaceServant.java | 35 - .../host-corba-jee/src/test/resources/general.idl | 45 - .../2.0-M5-RC3/modules/host-corba-jse-tns/LICENSE | 205 -- .../host-corba-jse-tns/META-INF/MANIFEST.MF | 21 - .../2.0-M5-RC3/modules/host-corba-jse-tns/NOTICE | 6 - .../2.0-M5-RC3/modules/host-corba-jse-tns/pom.xml | 53 - .../host/corba/jse/tns/TnsDefaultCorbaHost.java | 120 - .../org.apache.tuscany.sca.host.corba.CorbaHost | 17 - .../corba/testing/TnsDefaultCorbaHostTestCase.java | 99 - .../tags/2.0-M5-RC3/modules/host-corba-jse/LICENSE | 205 -- .../modules/host-corba-jse/META-INF/MANIFEST.MF | 32 - .../tags/2.0-M5-RC3/modules/host-corba-jse/NOTICE | 6 - .../tags/2.0-M5-RC3/modules/host-corba-jse/pom.xml | 38 - .../sca/host/corba/jse/DefaultCorbaHost.java | 185 -- .../sca/host/corba/naming/NamingContextBase.java | 863 -------- .../sca/host/corba/naming/TransientNameServer.java | 134 -- .../host/corba/naming/TransientNameService.java | 200 -- .../host/corba/naming/TransientNamingContext.java | 440 ---- .../corba/naming/TransientServiceException.java | 44 - .../org.apache.tuscany.sca.host.corba.CorbaHost | 17 - .../corba/testing/DefaultCorbaHostTestCase.java | 253 --- .../host/corba/testing/general/TestInterface.java | 30 - .../corba/testing/general/TestInterfaceHelper.java | 98 - .../corba/testing/general/TestInterfaceHolder.java | 51 - .../testing/general/TestInterfaceOperations.java | 31 - .../testing/general/_TestInterfaceImplBase.java | 74 - .../corba/testing/general/_TestInterfaceStub.java | 73 - .../testing/servants/TestInterfaceServant.java | 35 - .../host-corba-jse/src/test/resources/general.idl | 43 - .../tags/2.0-M5-RC3/modules/host-corba/LICENSE | 205 -- .../modules/host-corba/META-INF/MANIFEST.MF | 17 - .../tags/2.0-M5-RC3/modules/host-corba/NOTICE | 6 - .../tags/2.0-M5-RC3/modules/host-corba/pom.xml | 38 - .../apache/tuscany/sca/host/corba/CorbaHost.java | 56 - .../tuscany/sca/host/corba/CorbaHostException.java | 47 - .../sca/host/corba/CorbaHostExtensionPoint.java | 51 - .../tuscany/sca/host/corba/CorbaHostUtils.java | 61 - .../tuscany/sca/host/corba/CorbanameURL.java | 202 -- .../host/corba/DefaultCorbaHostExtensionPoint.java | 80 - .../sca/host/corba/ExtensibleCorbaHost.java | 62 - .../apache/tuscany/sca/host/corba/SocketUtil.java | 226 -- ....tuscany.sca.host.corba.CorbaHostExtensionPoint | 18 - .../tuscany/sca/host/corba/UtilsTestCase.java | 145 -- .../tags/2.0-M5-RC3/modules/host-http/LICENSE | 205 -- .../modules/host-http/META-INF/MANIFEST.MF | 19 - .../tags/2.0-M5-RC3/modules/host-http/NOTICE | 6 - .../tags/2.0-M5-RC3/modules/host-http/pom.xml | 46 - .../sca/host/http/DefaultResourceServlet.java | 86 - .../http/DefaultServletHostExtensionPoint.java | 194 -- .../sca/host/http/ExtensibleServletHost.java | 134 -- .../tuscany/sca/host/http/SecurityContext.java | 64 - .../apache/tuscany/sca/host/http/ServletHost.java | 140 -- .../sca/host/http/ServletHostExtensionPoint.java | 62 - .../tuscany/sca/host/http/ServletHostHelper.java | 36 - .../sca/host/http/ServletMappingException.java | 44 - .../apache/tuscany/sca/host/http/UserContext.java | 68 - ...tuscany.sca.host.http.ServletHostExtensionPoint | 19 - .../tags/2.0-M5-RC3/modules/host-jetty/LICENSE | 205 -- .../modules/host-jetty/META-INF/MANIFEST.MF | 27 - .../tags/2.0-M5-RC3/modules/host-jetty/NOTICE | 6 - .../tags/2.0-M5-RC3/modules/host-jetty/pom.xml | 69 - .../sca/http/jetty/JettyDefaultServlet.java | 90 - .../apache/tuscany/sca/http/jetty/JettyLogger.java | 107 - .../apache/tuscany/sca/http/jetty/JettyServer.java | 582 ----- .../org.apache.tuscany.sca.host.http.ServletHost | 18 - .../sca/http/jetty/JettyServerTestCase.java | 358 --- .../src/test/resources/content/test.html | 21 - .../host-jetty/src/test/resources/tuscany.keyStore | Bin 1265 -> 0 bytes .../tags/2.0-M5-RC3/modules/host-rmi/LICENSE | 205 -- .../modules/host-rmi/META-INF/MANIFEST.MF | 15 - .../tags/2.0-M5-RC3/modules/host-rmi/NOTICE | 6 - .../tags/2.0-M5-RC3/modules/host-rmi/pom.xml | 39 - .../tuscany/sca/host/rmi/DefaultRMIHost.java | 177 -- .../sca/host/rmi/DefaultRMIHostExtensionPoint.java | 67 - .../tuscany/sca/host/rmi/ExtensibleRMIHost.java | 62 - .../org/apache/tuscany/sca/host/rmi/RMIHost.java | 61 - .../tuscany/sca/host/rmi/RMIHostException.java | 45 - .../sca/host/rmi/RMIHostExtensionPoint.java | 51 - .../sca/host/rmi/RMIHostRuntimeException.java | 46 - .../tuscany/sca/host/rmi/RMISocketFactoryImpl.java | 57 - ...ache.tuscany.sca.host.rmi.RMIHostExtensionPoint | 19 - .../tuscany/sca/host/rmi/RMIHostImplTestCase.java | 90 - .../tags/2.0-M5-RC3/modules/host-webapp/LICENSE | 205 -- .../modules/host-webapp/META-INF/MANIFEST.MF | 23 - .../tags/2.0-M5-RC3/modules/host-webapp/NOTICE | 7 - .../tags/2.0-M5-RC3/modules/host-webapp/pom.xml | 73 - .../sca/host/webapp/TuscanyContextListener.java | 59 - .../sca/host/webapp/TuscanyServletFilter.java | 109 - .../tuscany/sca/host/webapp/WebAppHelper.java | 226 -- .../sca/host/webapp/WebAppRequestDispatcher.java | 117 - .../tuscany/sca/host/webapp/WebAppServletHost.java | 338 --- .../org.apache.tuscany.sca.host.http.ServletHost | 18 - .../modules/implementation-bpel-runtime/LICENSE | 251 --- .../META-INF/MANIFEST.MF | 52 - .../modules/implementation-bpel-runtime/NOTICE | 17 - .../modules/implementation-bpel-runtime/pom.xml | 495 ----- .../implementation/bpel/ode/BPELODEDeployFile.java | 233 -- .../bpel/ode/DeploymentWorkspace.java | 233 -- .../implementation/bpel/ode/EmbeddedODEServer.java | 563 ----- .../implementation/bpel/ode/GeronimoTxFactory.java | 48 - .../implementation/bpel/ode/ODEBindingContext.java | 91 - .../sca/implementation/bpel/ode/ODEDeployment.java | 55 - .../bpel/ode/ODEDeploymentException.java | 41 - .../bpel/ode/ODEEndpointReference.java | 96 - .../sca/implementation/bpel/ode/ODEEprContext.java | 75 - .../bpel/ode/ODEExternalService.java | 370 ---- .../bpel/ode/ODEInitializationException.java | 41 - .../bpel/ode/ODEMessageExchangeContext.java | 57 - .../bpel/ode/ODEShutdownException.java | 41 - .../sca/implementation/bpel/ode/TuscanyEPR.java | 49 - .../sca/implementation/bpel/ode/TuscanyPRC.java | 62 - .../bpel/ode/TuscanyProcessConfImpl.java | 823 ------- .../ode/provider/BPELImplementationProvider.java | 187 -- .../BPELImplementationProviderFactory.java | 69 - .../bpel/ode/provider/BPELInvoker.java | 286 --- .../bpel/ode/provider/ODEInvocationException.java | 33 - ...cany.sca.provider.ImplementationProviderFactory | 20 - .../bpel/ode/EmbeddedODEServerTestCase.java | 124 -- .../src/test/resources/helloworld/deploy.xml | 30 - .../src/test/resources/helloworld/greetings.wsdl | 87 - .../src/test/resources/helloworld/helloworld.bpel | 81 - .../src/test/resources/helloworld/helloworld.wsdl | 82 - .../src/test/resources/log4j.properties | 36 - .../2.0-M5-RC3/modules/implementation-bpel/LICENSE | 251 --- .../implementation-bpel/META-INF/MANIFEST.MF | 32 - .../2.0-M5-RC3/modules/implementation-bpel/NOTICE | 17 - .../2.0-M5-RC3/modules/implementation-bpel/pom.xml | 64 - .../sca/implementation/bpel/BPELFactory.java | 42 - .../implementation/bpel/BPELImplementation.java | 109 - .../implementation/bpel/BPELProcessDefinition.java | 115 - .../implementation/bpel/impl/BPELFactoryImpl.java | 44 - .../bpel/impl/BPELImplementationImpl.java | 152 -- .../bpel/impl/BPELProcessDefinitionImpl.java | 128 -- .../bpel/xml/BPELDocumentModelResolver.java | 401 ---- .../bpel/xml/BPELDocumentProcessor.java | 355 --- .../bpel/xml/BPELImplementationProcessor.java | 452 ---- .../implementation/bpel/xml/BPELImportElement.java | 65 - .../bpel/xml/BPELPartnerLinkElement.java | 132 -- .../bpel/xml/BPELPartnerLinkTypeElement.java | 118 - .../bpel/xml/BPELProcessorConstants.java | 61 - ...ca.contribution.processor.StAXArtifactProcessor | 19 - ...sca.contribution.processor.URLArtifactProcessor | 19 - ...tuscany.sca.contribution.resolver.ModelResolver | 19 - ...che.tuscany.sca.implementation.bpel.BPELFactory | 19 - .../impl-bpel-validation-messages.properties | 34 - .../bpel/BPELDocumentProcessorTestCase.java | 62 - .../bpel/BPELImplementationProcessorTestCase.java | 102 - .../src/test/resources/helloworld/helloworld.bpel | 66 - .../src/test/resources/helloworld/helloworld.wsdl | 82 - .../modules/implementation-java-runtime/LICENSE | 205 -- .../META-INF/MANIFEST.MF | 60 - .../modules/implementation-java-runtime/NOTICE | 6 - .../modules/implementation-java-runtime/pom.xml | 57 - .../java/context/InstanceFactory.java | 43 - .../java/context/InstanceFactoryProvider.java | 49 - .../java/context/ReflectiveInstanceFactory.java | 93 - .../java/context/ReflectiveInstanceWrapper.java | 64 - .../databinding/PropertyDataTypeProcessor.java | 83 - .../injection/ArrayMultiplicityObjectFactory.java | 54 - .../java/injection/ContextInjector.java | 32 - .../java/injection/FieldInjector.java | 67 - .../java/injection/InjectionRuntimeException.java | 47 - .../implementation/java/injection/Injector.java | 35 - .../java/injection/InvalidAccessorException.java | 43 - .../injection/JavaPropertyValueObjectFactory.java | 319 --- .../injection/ListMultiplicityObjectFactory.java | 50 - .../java/injection/MethodInjector.java | 64 - .../injection/RequestContextObjectFactory.java | 44 - .../java/injection/ResourceHost.java | 46 - .../java/injection/ResourceNotFoundException.java | 47 - .../java/injection/ResourceObjectFactory.java | 86 - .../injection/ResourceResolutionException.java | 43 - .../java/invocation/EventInvocationException.java | 47 - .../java/invocation/EventInvoker.java | 34 - .../InvalidConversationSequenceException.java | 45 - .../JavaCallbackRuntimeWireProcessor.java | 125 -- .../invocation/JavaComponentContextFactory.java | 40 - .../invocation/JavaComponentContextProvider.java | 378 ---- .../java/invocation/JavaComponentNameFactory.java | 40 - .../java/invocation/JavaImplementationInvoker.java | 152 -- .../invocation/JavaImplementationProvider.java | 169 -- .../JavaImplementationProviderFactory.java | 108 - .../invocation/JavaInstanceFactoryProvider.java | 182 -- .../java/invocation/MethodEventInvoker.java | 56 - .../NoConversationalContractException.java | 33 - ...apache.tuscany.sca.context.PropertyValueFactory | 17 - ....apache.tuscany.sca.definitions.xml.Definitions | 17 - ...implementation.java.introspect.JavaClassVisitor | 20 - ...cany.sca.provider.ImplementationProviderFactory | 20 - ...apache.tuscany.sca.runtime.RuntimeWireProcessor | 17 - .../java/definitions/definitions.xml | 30 - .../java/context/MultiplicityTestCase.java | 36 - .../ReflectiveInstanceWrapperTestCase.java.fixme | 84 - .../CallbackWireObjectFactoryTestCase.java.fixme | 54 - .../java/injection/FieldInjectorTestCase.java | 52 - ...vaPropertyValueObjectFactoryTestCase.java.fixme | 449 ---- .../java/injection/MethodEventInvokerTestCase.java | 79 - .../java/injection/MethodInjectorTestCase.java | 83 - .../ResourceObjectFactoryTestCase.java.fixme | 89 - .../java/injection/SingletonObjectFactory.java | 39 - .../injection/SingletonObjectFactoryTestCase.java | 36 - .../java/injection/TestObjectFactory.java | 120 - .../java/injection/TestObjectFactoryTestCase.java | 82 - .../sca/implementation/java/util/Bean1.java | 50 - .../sca/implementation/java/util/Bean2.java | 49 - .../sca/implementation/java/util/Entry.java | 32 - .../java/util/JavaIntrospectionHelperTestCase.java | 189 -- .../sca/implementation/java/util/SuperBean.java | 48 - .../2.0-M5-RC3/modules/implementation-java/LICENSE | 205 -- .../implementation-java/META-INF/MANIFEST.MF | 45 - .../2.0-M5-RC3/modules/implementation-java/NOTICE | 6 - .../2.0-M5-RC3/modules/implementation-java/pom.xml | 99 - .../java/BaseJavaImplementation.java | 59 - .../java/DefaultJavaImplementationFactory.java | 40 - .../java/IntrospectionException.java | 60 - .../implementation/java/JavaConstructorImpl.java | 56 - .../sca/implementation/java/JavaElementImpl.java | 222 -- .../implementation/java/JavaImplementation.java | 164 -- .../java/JavaImplementationFactory.java | 75 - .../sca/implementation/java/JavaParameterImpl.java | 36 - .../sca/implementation/java/JavaResourceImpl.java | 86 - .../sca/implementation/java/JavaScopeImpl.java | 62 - .../java/impl/BaseJavaImplementationImpl.java | 92 - .../java/impl/JavaClassIntrospectorImpl.java | 131 -- .../java/impl/JavaImplementationFactoryImpl.java | 135 -- .../java/impl/JavaImplementationImpl.java | 144 -- .../java/introspect/BaseJavaClassVisitor.java | 74 - .../java/introspect/JavaClassVisitor.java | 126 -- .../java/introspect/JavaIntrospectionHelper.java | 577 ----- .../introspect/impl/AbstractPropertyProcessor.java | 229 -- .../impl/AllowsPassByReferenceProcessor.java | 57 - .../impl/AmbiguousConstructorException.java | 40 - .../introspect/impl/ComponentNameProcessor.java | 87 - .../java/introspect/impl/ConstructorProcessor.java | 110 - .../java/introspect/impl/ContextProcessor.java | 89 - .../java/introspect/impl/DestroyProcessor.java | 63 - .../impl/DuplicateConstructorException.java | 41 - .../impl/DuplicateDestructorException.java | 35 - .../introspect/impl/DuplicateInitException.java | 35 - .../impl/DuplicatePropertyException.java | 34 - .../impl/DuplicateReferenceException.java | 35 - .../impl/DuplicateResourceException.java | 36 - .../java/introspect/impl/EagerInitProcessor.java | 63 - .../introspect/impl/HeuristicPojoProcessor.java | 678 ------ .../impl/IllegalCallbackReferenceException.java | 40 - .../introspect/impl/IllegalContextException.java | 40 - .../impl/IllegalDestructorException.java | 40 - .../java/introspect/impl/IllegalInitException.java | 40 - .../introspect/impl/IllegalPropertyException.java | 40 - .../introspect/impl/IllegalReferenceException.java | 40 - .../introspect/impl/IllegalResourceException.java | 40 - .../impl/IllegalServiceDefinitionException.java | 35 - .../java/introspect/impl/InitProcessor.java | 67 - .../impl/InvalidConstructorException.java | 36 - ...validConversationalImplementationException.java | 39 - .../introspect/impl/InvalidPropertyException.java | 35 - .../introspect/impl/InvalidReferenceException.java | 42 - .../introspect/impl/InvalidResourceException.java | 40 - .../impl/InvalidServiceTypeException.java | 48 - .../introspect/impl/NoConstructorException.java | 37 - .../java/introspect/impl/PolicyProcessor.java | 303 --- .../java/introspect/impl/PropertyProcessor.java | 50 - .../java/introspect/impl/ReferenceProcessor.java | 274 --- .../java/introspect/impl/Resource.java | 49 - .../java/introspect/impl/ResourceProcessor.java | 153 -- .../java/introspect/impl/ScopeProcessor.java | 68 - .../java/introspect/impl/ServiceProcessor.java | 238 -- .../impl/ServiceTypeNotFoundException.java | 35 - .../impl/UnknownContextTypeException.java | 33 - .../tuscany/sca/implementation/java/package.html | 29 - .../java/xml/JavaImplementationConstants.java | 35 - .../java/xml/JavaImplementationProcessor.java | 334 --- ...ca.contribution.processor.StAXArtifactProcessor | 20 - ...a.implementation.java.JavaImplementationFactory | 19 - ...implementation.java.introspect.JavaClassVisitor | 33 - .../impl-javaxml-validation-messages.properties | 23 - .../src/test/java/calculator/AddService.java | 30 - .../src/test/java/calculator/AddServiceImpl.java | 37 - .../test/java/calculator/CalculatorService.java | 36 - .../java/calculator/CalculatorServiceImpl.java | 73 - .../src/test/java/calculator/DivideService.java | 30 - .../test/java/calculator/DivideServiceImpl.java | 35 - .../src/test/java/calculator/MultiplyService.java | 30 - .../test/java/calculator/MultiplyServiceImpl.java | 35 - .../src/test/java/calculator/SubtractService.java | 30 - .../test/java/calculator/SubtractServiceImpl.java | 35 - .../introspect/impl/AbstractProcessorTest.java | 80 - .../AllowsPassByReferenceProcessorTestCase.java | 74 - .../impl/ConstructorProcessorTestCase.java | 206 -- .../impl/ConstructorPropertyTestCase.java | 174 -- .../impl/ConstructorReferenceTestCase.java | 188 -- .../impl/ConstructorResourceTestCase.java | 164 -- .../introspect/impl/ContextProcessorTestCase.java | 216 -- .../introspect/impl/DestroyProcessorTestCase.java | 150 -- .../impl/EagerInitProcessorTestCase.java | 60 - .../impl/HeuristicAndPropertyTestCase.java | 72 - .../impl/HeuristicConstructorTestCase.java | 330 --- .../impl/HeuristicPojoProcessorTestCase.java | 583 ----- .../HeutisticExtensibleConstructorTestCase.java | 157 -- .../introspect/impl/InitProcessorTestCase.java | 153 -- .../java/introspect/impl/ModelHelper.java | 99 - .../introspect/impl/PolicyProcessorTestCase.java | 428 ---- .../introspect/impl/PropertyProcessorTestCase.java | 304 --- .../impl/ReferenceProcessorTestCase.java | 310 --- .../introspect/impl/ResourceProcessorTestCase.java | 128 -- .../introspect/impl/ScopeProcessorTestCase.java | 80 - .../introspect/impl/ServiceCallbackTestCase.java | 197 -- .../introspect/impl/ServiceProcessorTestCase.java | 219 -- .../TestAbstractPropertyProcessorTestCase.java | 180 -- .../sca/implementation/java/xml/ReadTestCase.java | 241 -- .../implementation/java/xml/TestModelResolver.java | 89 - .../sca/implementation/java/xml/WriteTestCase.java | 71 - .../implementation/java/xml/Calculator.composite | 66 - .../sca/implementation/java/xml/definitions.xml | 100 - .../java/xml/definitions_with_policysets.xml | 113 - .../modules/implementation-jaxrs-runtime/LICENSE | 241 -- .../META-INF/MANIFEST.MF | 32 - .../modules/implementation-jaxrs-runtime/NOTICE | 12 - .../modules/implementation-jaxrs-runtime/pom.xml | 154 -- .../provider/JAXRSImplementationProvider.java | 76 - .../JAXRSImplementationProviderFactory.java | 46 - ...cany.sca.provider.ImplementationProviderFactory | 21 - .../src/test/java/helloworld/jaxrs/HelloWorld.java | 70 - .../test/java/helloworld/jaxrs/HelloWorldApp.java | 64 - .../helloworld/jaxrs/test/HelloWorldTestCase.java | 71 - .../helloworld/jaxrs/HelloWorld.composite | 29 - .../modules/implementation-jaxrs/LICENSE | 205 -- .../implementation-jaxrs/META-INF/MANIFEST.MF | 31 - .../2.0-M5-RC3/modules/implementation-jaxrs/NOTICE | 6 - .../modules/implementation-jaxrs/pom.xml | 91 - .../implementation/jaxrs/JAXRSImplementation.java | 39 - .../jaxrs/JAXRSImplementationFactory.java | 33 - .../jaxrs/impl/JAXRSImplementationFactoryImpl.java | 37 - .../jaxrs/impl/JAXRSImplementationImpl.java | 85 - .../jaxrs/xml/JAXRSImplementationProcessor.java | 162 -- ...ca.contribution.processor.StAXArtifactProcessor | 20 - ...any.sca.contribution.processor.ValidationSchema | 18 - ...implementation.jaxrs.JAXRSImplementationFactory | 20 - .../jaxrs/tuscany-sca-1.1-implementation-jaxrs.xsd | 38 - .../sca/implementation/jaxrs/xml/ReadTestCase.java | 66 - .../implementation/jaxrs/xml/WriteTestCase.java | 69 - .../implementation/jaxrs/xml/TestJAXRS.composite | 30 - .../modules/implementation-osgi-runtime/LICENSE | 203 -- .../META-INF/MANIFEST.MF | 29 - .../modules/implementation-osgi-runtime/NOTICE | 6 - .../modules/implementation-osgi-runtime/pom.xml | 78 - .../osgi/runtime/OSGiImplementationProvider.java | 336 --- .../runtime/OSGiImplementationProviderFactory.java | 61 - .../osgi/runtime/OSGiTargetInvoker.java | 210 -- .../src/main/resources/META-INF/definitions.xml | 37 - ...cany.sca.provider.ImplementationProviderFactory | 20 - .../impl-osgi-validation-messages.properties | 25 - .../2.0-M5-RC3/modules/implementation-osgi/LICENSE | 203 -- .../implementation-osgi/META-INF/MANIFEST.MF | 37 - .../2.0-M5-RC3/modules/implementation-osgi/NOTICE | 6 - .../2.0-M5-RC3/modules/implementation-osgi/pom.xml | 72 - .../osgi/DefaultOSGiImplementationFactory.java | 34 - .../osgi/DefaultServiceDescriptionsFactory.java | 33 - .../implementation/osgi/OSGiImplementation.java | 51 - .../osgi/OSGiImplementationFactory.java | 47 - .../sca/implementation/osgi/OSGiProperty.java | 242 --- .../tuscany/sca/implementation/osgi/SCAConfig.java | 65 - .../implementation/osgi/ServiceDescription.java | 40 - .../implementation/osgi/ServiceDescriptions.java | 38 - .../osgi/ServiceDescriptionsFactory.java | 31 - .../osgi/impl/OSGiImplementationFactoryImpl.java | 125 -- .../osgi/impl/OSGiImplementationImpl.java | 124 -- .../implementation/osgi/impl/OSGiPropertyImpl.java | 69 - .../implementation/osgi/impl/SCAConfigImpl.java | 58 - .../osgi/impl/ServiceDescriptionImpl.java | 51 - .../osgi/impl/ServiceDescriptionsFactoryImpl.java | 48 - .../osgi/impl/ServiceDescriptionsImpl.java | 36 - .../osgi/xml/BluePrintComponentsProcessor.java | 144 -- .../osgi/xml/OSGiComponentProcessor.java | 174 -- .../osgi/xml/OSGiImplementationActivator.java | 47 - .../osgi/xml/OSGiImplementationProcessor.java | 342 --- .../osgi/xml/OSGiPropertyProcessor.java | 115 - .../osgi/xml/SCAConfigProcessor.java | 194 -- .../xml/ServiceDescriptionsDocumentProcessor.java | 99 - .../osgi/xml/ServiceDescriptionsModelResolver.java | 59 - .../osgi/xml/ServiceDescriptionsProcessor.java | 255 --- .../src/main/resources/META-INF/definitions.xml | 37 - ...ca.contribution.processor.StAXArtifactProcessor | 22 - ...sca.contribution.processor.URLArtifactProcessor | 20 - ...tuscany.sca.contribution.resolver.ModelResolver | 18 - ...a.implementation.osgi.OSGiImplementationFactory | 19 - ....implementation.osgi.ServiceDescriptionsFactory | 18 - .../impl-osgi-validation-messages.properties | 26 - .../java/calculator/dosgi/CalculatorService.java | 39 - .../calculator/dosgi/operations/AddService.java | 31 - .../calculator/dosgi/operations/DivideService.java | 31 - .../dosgi/operations/MultiplyService.java | 31 - .../dosgi/operations/SubtractService.java | 31 - .../xml/BluePrintComponentsProcessorTestCase.java | 89 - .../osgi/xml/OSGiComponentProcessorTestCase.java | 89 - .../osgi/xml/OSGiReadImplTestCase.java | 173 -- .../osgi/xml/ServiceDescriptionsTestCase.java | 110 - .../implementation/osgi/xml/TestModelResolver.java | 105 - .../resources/OSGI-INF/calculator-component.xml | 36 - .../resources/OSGI-INF/sca/bundle.componentType | 63 - .../src/test/resources/osgitest.composite | 35 - .../modules/implementation-script-runtime/LICENSE | 251 --- .../META-INF/MANIFEST.MF | 58 - .../modules/implementation-script-runtime/NOTICE | 12 - .../modules/implementation-script-runtime/pom.xml | 189 -- .../provider/ScriptImplementationProvider.java | 174 -- .../ScriptImplementationProviderFactory.java | 55 - .../script/provider/ScriptInvoker.java | 84 - .../script/provider/ScriptPropertyFactory.java | 225 -- ...cany.sca.provider.ImplementationProviderFactory | 19 - .../script/itests/AbstractSCATestCase.java | 59 - .../helloworld/AbstractHelloWorldTestCase.java | 38 - .../helloworld/GroovyHelloWorldTestCase.java | 29 - .../script/itests/helloworld/HelloWorld.java | 30 - .../script/itests/helloworld/HelloWorldProxy.java | 37 - .../itests/helloworld/JRubyHelloWorldTestCase.java | 29 - .../helloworld/JavaScriptHelloWorldTestCase.java | 29 - .../helloworld/JythonHelloWorldTestCase.java | 29 - .../properties/AbstractHelloWorldTestCase.java | 38 - .../properties/GroovyHelloWorldTestCase.java | 29 - .../script/itests/properties/HelloWorld.java | 30 - .../script/itests/properties/HelloWorldProxy.java | 37 - .../itests/properties/JRubyHelloWorldTestCase.java | 28 - .../properties/JavaScriptHelloWorldTestCase.java | 29 - .../properties/JythonHelloWorldTestCase.java | 29 - .../itests/references/GroovyReferenceTestCase.java | 29 - .../script/itests/references/HelloWorldTarget.java | 34 - .../itests/references/JRubyReferenceTestCase.java | 29 - .../references/JavaScriptReferenceTestCase.java | 29 - .../itests/references/JythonReferenceTestCase.java | 29 - .../itests/helloworld/GroovyHelloWorld.composite | 33 - .../itests/helloworld/JRubyHelloWorld.composite | 33 - .../helloworld/JavaScriptHelloWorld.composite | 33 - .../itests/helloworld/JythonHelloWorld.composite | 33 - .../itests/helloworld/helloworld.componentType | 30 - .../script/itests/helloworld/helloworld.groovy | 22 - .../script/itests/helloworld/helloworld.js | 23 - .../script/itests/helloworld/helloworld.py | 20 - .../script/itests/helloworld/helloworld.rb | 21 - .../itests/properties/GroovyHelloWorld.composite | 33 - .../itests/properties/JRubyHelloWorld.composite | 33 - .../properties/JavaScriptHelloWorld.composite | 33 - .../itests/properties/JythonHelloWorld.composite | 33 - .../itests/properties/helloworld.componentType | 32 - .../script/itests/properties/helloworld.groovy | 22 - .../script/itests/properties/helloworld.js | 23 - .../script/itests/properties/helloworld.py | 20 - .../script/itests/properties/helloworld.rb | 21 - .../itests/references/GroovyReference.composite | 38 - .../itests/references/JRubyReference.composite | 38 - .../references/JavaScriptReference.composite | 38 - .../itests/references/JythonReference.composite | 38 - .../itests/references/reference.componentType | 31 - .../script/itests/references/reference.groovy | 22 - .../script/itests/references/reference.js | 22 - .../script/itests/references/reference.py | 20 - .../script/itests/references/reference.rb | 21 - .../modules/implementation-script/LICENSE | 251 --- .../implementation-script/META-INF/MANIFEST.MF | 29 - .../modules/implementation-script/NOTICE | 12 - .../modules/implementation-script/pom.xml | 48 - .../script/ScriptImplementation.java | 46 - .../script/ScriptImplementationFactory.java | 27 - .../impl/ScriptImplementationFactoryImpl.java | 34 - .../script/impl/ScriptImplementationImpl.java | 102 - .../script/xml/ScriptImplementationProcessor.java | 167 -- ...ca.contribution.processor.StAXArtifactProcessor | 19 - ...plementation.script.ScriptImplementationFactory | 17 - .../modules/implementation-spring-sca/LICENSE | 205 -- .../implementation-spring-sca/META-INF/MANIFEST.MF | 24 - .../modules/implementation-spring-sca/NOTICE | 6 - .../modules/implementation-spring-sca/README | 9 - .../modules/implementation-spring-sca/pom.xml | 70 - .../namespace/SCANamespaceHandlerResolver.java | 53 - .../spring/namespace/ScaNamespaceHandler.java | 38 - .../namespace/ScaPropertyBeanDefinitionParser.java | 35 - .../ScaReferenceBeanDefinitionParser.java | 36 - .../namespace/ScaServiceBeanDefinitionParser.java | 36 - .../ComponentNameAnnotationProcessor.java | 150 -- .../spring/processor/ComponentStub.java | 54 - .../processor/ConstructorAnnotationProcessor.java | 115 - .../processor/InitDestroyAnnotationProcessor.java | 75 - .../processor/PropertyAnnotationProcessor.java | 161 -- .../spring/processor/PropertyValueStub.java | 55 - .../processor/ReferenceAnnotationProcessor.java | 164 -- .../context/SCAGenericApplicationContext.java | 47 - .../context/SCAParentApplicationContext.java | 189 -- .../spring/runtime/context/SpringContextTie.java | 133 -- .../runtime/context/SpringImplementationStub.java | 129 -- .../src/main/resources/META-INF/spring.handlers | 1 - .../src/main/resources/META-INF/spring.schemas | 1 - .../org/springframework/sca/xml/spring-sca.xsd | 84 - .../modules/implementation-spring/LICENSE | 205 -- .../implementation-spring/META-INF/MANIFEST.MF | 53 - .../modules/implementation-spring/NOTICE | 6 - .../modules/implementation-spring/README | 9 - .../modules/implementation-spring/pom.xml | 69 - .../implementation/spring/SpringBeanElement.java | 117 - .../spring/SpringConstructorArgElement.java | 77 - .../spring/SpringImplementation.java | 258 --- .../spring/SpringImplementationBuilder.java | 41 - .../spring/SpringImplementationConstants.java | 73 - .../spring/SpringPropertyElement.java | 60 - .../spring/SpringSCAPropertyElement.java | 52 - .../spring/SpringSCAReferenceElement.java | 78 - .../spring/SpringSCAServiceElement.java | 78 - .../spring/introspect/SpringBeanIntrospector.java | 99 - .../spring/introspect/SpringBeanPojoProcessor.java | 660 ------ .../introspect/SpringXMLComponentTypeLoader.java | 1153 ---------- .../spring/invocation/ComponentTie.java | 41 - .../spring/invocation/PropertyValueTie.java | 53 - .../spring/invocation/SpringContextStub.java | 134 -- .../invocation/SpringImplementationProvider.java | 85 - .../SpringImplementationProviderFactory.java | 75 - .../spring/invocation/SpringImplementationTie.java | 147 -- .../invocation/SpringInvocationException.java | 40 - .../spring/invocation/SpringInvoker.java | 124 -- .../spring/xml/SpringImplementationProcessor.java | 231 -- ...cany.sca.assembly.builder.ImplementationBuilder | 18 - ...ca.contribution.processor.StAXArtifactProcessor | 20 - ....apache.tuscany.sca.definitions.xml.Definitions | 17 - ...cany.sca.provider.ImplementationProviderFactory | 20 - .../impl-spring-validation-messages.properties | 28 - .../sca/implementation/spring/definitions.xml | 30 - .../modules/implementation-web-client/LICENSE | 241 -- .../implementation-web-client/META-INF/MANIFEST.MF | 31 - .../modules/implementation-web-client/NOTICE | 12 - .../modules/implementation-web-client/pom.xml | 68 - .../implementation/web/client/ClientServlet.java | 259 --- .../web/client/JSClientExtensionPointImpl.java | 70 - ...implementation.web.runtime.ClientExtensionPoint | 22 - .../modules/implementation-web-runtime/LICENSE | 241 -- .../META-INF/MANIFEST.MF | 28 - .../modules/implementation-web-runtime/NOTICE | 12 - .../modules/implementation-web-runtime/pom.xml | 89 - .../web/runtime/ClientExtensionPoint.java | 30 - .../web/runtime/ComponentContextProxy.java | 85 - .../runtime/WebImplementationProviderFactory.java | 71 - .../web/runtime/jsp/ReferenceTEI.java | 45 - .../web/runtime/jsp/ReferenceTag.java | 97 - .../web/runtime/utils/ContextHelper.java | 133 -- .../src/main/resources/META-INF/sca.tld | 49 - ...cany.sca.provider.ImplementationProviderFactory | 21 - .../2.0-M5-RC3/modules/implementation-web/LICENSE | 205 -- .../implementation-web/META-INF/MANIFEST.MF | 28 - .../2.0-M5-RC3/modules/implementation-web/NOTICE | 6 - .../2.0-M5-RC3/modules/implementation-web/pom.xml | 73 - .../sca/implementation/web/WebImplementation.java | 47 - .../web/WebImplementationFactory.java | 34 - .../web/impl/WebImplementationBuilder.java | 43 - .../web/impl/WebImplementationFactoryImpl.java | 37 - .../web/impl/WebImplementationImpl.java | 156 -- .../web/xml/WebImplementationProcessor.java | 126 -- ...cany.sca.assembly.builder.ImplementationBuilder | 18 - ...ca.contribution.processor.StAXArtifactProcessor | 20 - ...sca.implementation.web.WebImplementationFactory | 20 - .../sca/implementation/web/xml/ReadTestCase.java | 64 - .../sca/implementation/web/xml/WriteTestCase.java | 69 - .../sca/implementation/web/xml/TestWeb.composite | 29 - .../implementation-widget-runtime-dojo/LICENSE | 205 -- .../META-INF/MANIFEST.MF | 15 - .../implementation-widget-runtime-dojo/NOTICE | 6 - .../implementation-widget-runtime-dojo/pom.xml | 52 - .../dojo/DojoJavaScriptComponentGeneratorImpl.java | 267 --- ...sca.web.javascript.ComponentJavaScriptGenerator | 19 - .../modules/implementation-widget-runtime/LICENSE | 205 -- .../META-INF/MANIFEST.MF | 33 - .../modules/implementation-widget-runtime/NOTICE | 6 - .../modules/implementation-widget-runtime/pom.xml | 71 - .../provider/WidgetComponentScriptServlet.java | 62 - .../provider/WidgetImplementationInvoker.java | 101 - .../provider/WidgetImplementationProvider.java | 157 -- .../WidgetImplementationProviderFactory.java | 65 - ...cany.sca.provider.ImplementationProviderFactory | 19 - .../src/main/resources/atomModel.js | 1590 -------------- .../src/main/resources/binding-http.js | 105 - .../modules/implementation-widget/LICENSE | 205 -- .../implementation-widget/META-INF/MANIFEST.MF | 31 - .../modules/implementation-widget/NOTICE | 6 - .../modules/implementation-widget/pom.xml | 64 - .../tuscany/sca/implementation/widget/Widget.java | 38 - .../widget/WidgetImplementation.java | 59 - .../widget/WidgetImplementationFactory.java | 35 - .../widget/WidgetImplementationIntrospector.java | 150 -- .../widget/WidgetImplementationProcessor.java | 188 -- .../impl/WidgetImplementationFactoryImpl.java | 43 - .../widget/impl/WidgetImplementationImpl.java | 134 -- .../WidgetImplementationJavascriptProvider.java | 34 - ...ca.contribution.processor.StAXArtifactProcessor | 19 - ...plementation.widget.WidgetImplementationFactory | 19 - .../impl-widget-validation-messages.properties | 23 - .../modules/interface-java-jaxrs/LICENSE | 205 -- .../interface-java-jaxrs/META-INF/MANIFEST.MF | 18 - .../2.0-M5-RC3/modules/interface-java-jaxrs/NOTICE | 6 - .../modules/interface-java-jaxrs/pom.xml | 64 - .../java/jaxrs/CodeGenerationHelper.java | 280 --- .../java/jaxrs/GeneratedClassLoader.java | 70 - .../java/jaxrs/JAXRSJavaInterfaceProcessor.java | 111 - .../java/jaxrs/RootResourceClassGenerator.java | 214 -- ...terfacedef.java.introspect.JavaInterfaceVisitor | 17 - .../tuscany/sca/interfacedef/java/jaxrs/Bean.java | 31 - .../jaxrs/JAXRSInterfaceProcessorTestCase.java | 66 - .../interfacedef/java/jaxrs/MockedResource.java | 44 - .../sca/interfacedef/java/jaxrs/Resource.java | 44 - .../interfacedef/java/jaxrs/ResourceWrapper.java | 54 - .../jaxrs/RootResourceClassGeneratorTestCase.java | 69 - .../modules/interface-java-jaxws/LICENSE | 205 -- .../interface-java-jaxws/META-INF/MANIFEST.MF | 48 - .../2.0-M5-RC3/modules/interface-java-jaxws/NOTICE | 6 - .../modules/interface-java-jaxws/pom.xml | 281 --- .../interfacedef/java/jaxws/BaseBeanGenerator.java | 542 ----- .../java/jaxws/CodeGenerationHelper.java | 280 --- .../java/jaxws/FaultBeanGenerator.java | 147 -- .../java/jaxws/GeneratedClassLoader.java | 70 - .../java/jaxws/GeneratedDataTypeImpl.java | 143 -- .../java/jaxws/JAXWSAsyncInterfaceProcessor.java | 276 --- .../java/jaxws/JAXWSFaultExceptionMapper.java | 403 ---- .../java/jaxws/JAXWSJavaInterfaceProcessor.java | 393 ---- .../java/jaxws/WebServiceInterfaceProcessor.java | 49 - .../java/jaxws/WrapperBeanGenerator.java | 238 -- ...e.tuscany.sca.interfacedef.FaultExceptionMapper | 17 - ...terfacedef.java.introspect.JavaInterfaceVisitor | 19 - .../tuscany/sca/interfacedef/java/jaxws/Bean.java | 27 - .../tuscany/sca/interfacedef/java/jaxws/Bean1.java | 40 - .../tuscany/sca/interfacedef/java/jaxws/Bean2.java | 40 - .../sca/interfacedef/java/jaxws/BeanInterface.java | 28 - .../interfacedef/java/jaxws/BeanInterfaceImpl.java | 35 - .../java/jaxws/FaultBeanGeneratorTestCase.java | 65 - .../JAXWSAsyncInterfaceProcessorTestCase.java | 67 - .../jaxws/JAXWSJavaInterfaceProcessorTestCase.java | 121 -- .../java/jaxws/JavaReflectionHelperTestCase.java | 47 - .../sca/interfacedef/java/jaxws/MyException.java | 62 - .../sca/interfacedef/java/jaxws/MyServiceImpl.java | 52 - .../sca/interfacedef/java/jaxws/StockQuote.java | 44 - .../sca/interfacedef/java/jaxws/TestAdapter.java | 39 - .../interfacedef/java/jaxws/TestGenericClass.java | 40 - .../sca/interfacedef/java/jaxws/TestInterface.java | 70 - .../java/jaxws/WrapperBeanGeneratorTestCase.java | 80 - .../src/test/resources/wsdl/Stock.wsdl | 142 -- .../test/resources/wsdl/StockExceptionTest.wsdl | 171 -- .../tags/2.0-M5-RC3/modules/interface-java/LICENSE | 205 -- .../modules/interface-java/META-INF/MANIFEST.MF | 42 - .../tags/2.0-M5-RC3/modules/interface-java/NOTICE | 6 - .../tags/2.0-M5-RC3/modules/interface-java/pom.xml | 58 - .../java/DefaultJavaInterfaceFactory.java | 100 - .../sca/interfacedef/java/JavaInterface.java | 89 - .../interfacedef/java/JavaInterfaceContract.java | 33 - .../interfacedef/java/JavaInterfaceFactory.java | 91 - .../sca/interfacedef/java/JavaOperation.java | 58 - .../java/impl/JavaInterfaceContractImpl.java | 39 - .../java/impl/JavaInterfaceFactoryImpl.java | 93 - .../interfacedef/java/impl/JavaInterfaceImpl.java | 139 -- .../java/impl/JavaInterfaceIntrospectorImpl.java | 278 --- .../interfacedef/java/impl/JavaInterfaceUtil.java | 174 -- .../interfacedef/java/impl/JavaOperationImpl.java | 83 - .../java/impl/PolicyJavaInterfaceVisitor.java | 210 -- .../java/introspect/JavaInterfaceVisitor.java | 39 - .../tuscany/sca/interfacedef/java/package.html | 30 - .../sca/interfacedef/java/xml/JavaConstants.java | 36 - .../java/xml/JavaInterfaceProcessor.java | 364 ---- ...ca.contribution.processor.StAXArtifactProcessor | 20 - ...cany.sca.interfacedef.java.JavaInterfaceFactory | 18 - ...terfacedef.java.introspect.JavaInterfaceVisitor | 18 - ...nterface-javaxml-validation-messages.properties | 27 - ...avaInterfaceUtilDuplicateRemotableTestCase.java | 317 --- .../java/impl/JavaInterfaceUtilTestCase.java | 123 -- ...terfaceProcessorRegistryImplTestCase.java.fixme | 107 - .../impl/PolicyProcessorTestCase.java | 119 - .../sca/interfacedef/java/xml/ReadTestCase.java | 81 - .../sca/interfacedef/java/xml/WriteTestCase.java | 80 - .../sca/interfacedef/java/xml/Calculator.composite | 53 - .../java/xml/CalculatorImpl.componentType | 31 - .../tags/2.0-M5-RC3/modules/interface-wsdl/LICENSE | 205 -- .../modules/interface-wsdl/META-INF/MANIFEST.MF | 47 - .../tags/2.0-M5-RC3/modules/interface-wsdl/NOTICE | 6 - .../tags/2.0-M5-RC3/modules/interface-wsdl/pom.xml | 86 - .../interfacedef/wsdl/BPELPartnerLinkTypeExt.java | 79 - .../sca/interfacedef/wsdl/DefaultWSDLFactory.java | 35 - .../sca/interfacedef/wsdl/WSDLDefinition.java | 140 -- .../tuscany/sca/interfacedef/wsdl/WSDLFactory.java | 71 - .../sca/interfacedef/wsdl/WSDLInterface.java | 81 - .../interfacedef/wsdl/WSDLInterfaceContract.java | 43 - .../tuscany/sca/interfacedef/wsdl/WSDLObject.java | 54 - .../sca/interfacedef/wsdl/WSDLOperation.java | 40 - .../wsdl/impl/InvalidWSDLException.java | 35 - .../interfacedef/wsdl/impl/WSDLDefinitionImpl.java | 284 --- .../interfacedef/wsdl/impl/WSDLFactoryImpl.java | 80 - .../wsdl/impl/WSDLInterfaceContractImpl.java | 47 - .../interfacedef/wsdl/impl/WSDLInterfaceImpl.java | 124 -- .../wsdl/impl/WSDLInterfaceIntrospectorImpl.java | 135 -- .../sca/interfacedef/wsdl/impl/WSDLObjectImpl.java | 61 - .../interfacedef/wsdl/impl/WSDLOperationImpl.java | 81 - .../wsdl/impl/WSDLOperationIntrospectorImpl.java | 605 ------ .../tuscany/sca/interfacedef/wsdl/package.html | 31 - .../wsdl/xml/BPELExtensionHandler.java | 142 -- .../sca/interfacedef/wsdl/xml/WSDLConstants.java | 39 - .../wsdl/xml/WSDLDocumentProcessor.java | 221 -- .../wsdl/xml/WSDLInterfaceProcessor.java | 397 ---- .../interfacedef/wsdl/xml/WSDLModelResolver.java | 623 ------ ...ca.contribution.processor.StAXArtifactProcessor | 20 - ...sca.contribution.processor.URLArtifactProcessor | 20 - ...tuscany.sca.contribution.resolver.ModelResolver | 19 - ...pache.tuscany.sca.interfacedef.wsdl.WSDLFactory | 18 - ...nterface-wsdlxml-validation-messages.properties | 26 - .../WSDLInterfaceIntrospectorTestCase.java | 85 - .../WSDLOperationIntrospectorTestCase.java | 125 -- ...licyAnnotatedInterfaceIntrospectorTestCase.java | 80 - .../introspect/WrapperStyleOperationTestCase.java | 74 - .../wsdl/xml/AbstractWSDLTestCase.java | 65 - .../sca/interfacedef/wsdl/xml/ReadTestCase.java | 77 - .../wsdl/xml/WSDLDocumentProcessorTestCase.java | 68 - .../sca/interfacedef/wsdl/xml/WSDLTestCase.java | 126 -- .../sca/interfacedef/wsdl/xml/WriteTestCase.java | 82 - .../sca/interfacedef/wsdl/xml/Calculator.composite | 55 - .../wsdl/xml/CalculatorImpl.componentType | 33 - .../tuscany/sca/interfacedef/wsdl/xml/example.wsdl | 26 - .../interfacedef/wsdl/xml/invalid-stockquote.wsdl | 58 - .../tuscany/sca/interfacedef/wsdl/xml/ipo.xsd | 136 -- .../sca/interfacedef/wsdl/xml/stockquote.wsdl | 58 - .../tuscany/sca/interfacedef/wsdl/xml/test1.wsdl | 45 - .../tuscany/sca/interfacedef/wsdl/xml/test1.xsd | 33 - .../tuscany/sca/interfacedef/wsdl/xml/test2.wsdl | 63 - .../wsdl/xml/unwrapped-stockquote.wsdl | 76 - .../test/resources/policy/stockquote_policy.wsdl | 62 - .../test/resources/wsdl/helloworld-interface.wsdl | 67 - .../test/resources/wsdl/helloworld-service.wsdl | 49 - .../src/test/resources/xsd/greeting.xsd | 29 - .../src/test/resources/xsd/helloworld.xsd | 22 - .../interface-wsdl/src/test/resources/xsd/name.xsd | 29 - .../tags/2.0-M5-RC3/modules/launcher/LICENSE | 205 -- .../modules/launcher/META-INF/MANIFEST.MF | 14 - .../tags/2.0-M5-RC3/modules/launcher/NOTICE | 6 - .../tags/2.0-M5-RC3/modules/launcher/pom.xml | 35 - .../apache/tuscany/sca/launcher/LauncherMain.java | 346 --- .../tags/2.0-M5-RC3/modules/monitor/LICENSE | 205 -- .../modules/monitor/META-INF/MANIFEST.MF | 14 - .../tags/2.0-M5-RC3/modules/monitor/NOTICE | 6 - .../tags/2.0-M5-RC3/modules/monitor/pom.xml | 33 - .../tuscany/sca/monitor/DefaultMonitorFactory.java | 60 - .../org/apache/tuscany/sca/monitor/Monitor.java | 364 ---- .../apache/tuscany/sca/monitor/MonitorFactory.java | 61 - .../org/apache/tuscany/sca/monitor/Problem.java | 54 - .../tuscany/sca/monitor/ValidationException.java | 40 - .../tuscany/sca/monitor/impl/MonitorImpl.java | 144 -- .../tuscany/sca/monitor/impl/ProblemImpl.java | 181 -- .../org.apache.tuscany.sca.monitor.MonitorFactory | 19 - .../tuscany/sca/monitor/MonitorTestCase.java | 98 - .../tuscany-monitor-test-messages.properties | 24 - .../tuscany-monitor-test-messages_it.properties | 24 - .../tags/2.0-M5-RC3/modules/myfaces/LICENSE | 241 -- .../modules/myfaces/META-INF/MANIFEST.MF | 18 - .../tags/2.0-M5-RC3/modules/myfaces/NOTICE | 12 - .../tags/2.0-M5-RC3/modules/myfaces/pom.xml | 76 - .../TuscanyAnnotationLifecycleProvider.java | 69 - .../sca/myfaces/TuscanyAnnotationProcessor.java | 53 - .../tags/2.0-M5-RC3/modules/node-api/LICENSE | 205 -- .../modules/node-api/META-INF/MANIFEST.MF | 18 - .../tags/2.0-M5-RC3/modules/node-api/NOTICE | 6 - .../tags/2.0-M5-RC3/modules/node-api/pom.xml | 41 - .../org/apache/tuscany/sca/node/Contribution.java | 54 - .../sca/node/ContributionLocationHelper.java | 160 -- .../java/org/apache/tuscany/sca/node/Node.java | 86 - .../org/apache/tuscany/sca/node/NodeFactory.java | 623 ------ .../org/apache/tuscany/sca/node/NodeMain2.java | 55 - .../node/configuration/BindingConfiguration.java | 55 - .../configuration/ContributionConfiguration.java | 102 - .../DefaultNodeConfigurationFactory.java | 46 - .../node/configuration/DeploymentComposite.java | 64 - .../sca/node/configuration/NodeConfiguration.java | 108 - .../configuration/NodeConfigurationFactory.java | 50 - .../impl/BindingConfigurationImpl.java | 54 - .../impl/ContributionConfigurationImpl.java | 155 -- .../impl/DeploymentCompositeImpl.java | 64 - .../impl/NodeConfigurationFactoryImpl.java | 63 - .../configuration/impl/NodeConfigurationImpl.java | 176 -- .../tags/2.0-M5-RC3/modules/node-impl-osgi/LICENSE | 205 -- .../modules/node-impl-osgi/META-INF/MANIFEST.MF | 53 - .../tags/2.0-M5-RC3/modules/node-impl-osgi/NOTICE | 9 - .../tags/2.0-M5-RC3/modules/node-impl-osgi/pom.xml | 121 -- .../tuscany/sca/node/osgi/impl/NodeActivator.java | 129 -- .../tuscany/sca/node/osgi/impl/NodeManager.java | 143 -- .../sca/node/osgi/impl/OSGiNodeFactoryImpl.java | 142 -- .../impl/AbstractOSGiServiceHandler.java | 97 - .../remoteserviceadmin/impl/EndpointHelper.java | 109 - .../impl/EndpointIntrospector.java | 550 ----- .../remoteserviceadmin/impl/EndpointMatcher.java | 273 --- .../impl/ExportReferenceImpl.java | 73 - .../impl/ExportRegistrationImpl.java | 80 - .../impl/ImportReferenceImpl.java | 72 - .../impl/ImportRegistrationImpl.java | 70 - .../osgi/remoteserviceadmin/impl/OSGiHelper.java | 234 -- .../impl/OSGiServiceExporter.java | 163 -- .../impl/OSGiServiceImporter.java | 114 - .../impl/RemoteServiceAdminImpl.java | 346 --- .../impl/TopologyManagerImpl.java | 400 ---- .../discovery/impl/AbstractDiscoveryService.java | 265 --- .../sca/osgi/service/discovery/impl/Discovery.java | 66 - .../service/discovery/impl/DiscoveryActivator.java | 57 - .../discovery/impl/DomainDiscoveryService.java | 140 -- .../discovery/impl/LocalDiscoveryService.java | 262 --- .../remoteserviceadmin/EndpointDescription.java | 682 ------ .../remoteserviceadmin/EndpointListener.java | 126 -- .../remoteserviceadmin/EndpointPermission.java | 693 ------ .../remoteserviceadmin/ExportReference.java | 45 - .../remoteserviceadmin/ExportRegistration.java | 71 - .../remoteserviceadmin/ImportReference.java | 44 - .../remoteserviceadmin/ImportRegistration.java | 67 - .../remoteserviceadmin/RemoteConstants.java | 216 -- .../remoteserviceadmin/RemoteServiceAdmin.java | 124 -- .../RemoteServiceAdminEvent.java | 178 -- .../RemoteServiceAdminListener.java | 44 - ...any.sca.contribution.processor.ValidationSchema | 18 - .../org.apache.tuscany.sca.node.NodeFactory | 17 - .../remoteserviceadmin/osgi-remoteserviceadmin.xsd | 92 - .../java/calculator/dosgi/CalculatorService.java | 36 - .../calculator/dosgi/impl/CalculatorActivator.java | 75 - .../dosgi/impl/CalculatorServiceDSImpl.java | 114 - .../dosgi/impl/CalculatorServiceImpl.java | 96 - .../calculator/dosgi/operations/AddService.java | 31 - .../calculator/dosgi/operations/DivideService.java | 31 - .../dosgi/operations/MultiplyService.java | 31 - .../dosgi/operations/SubtractService.java | 31 - .../dosgi/operations/impl/AddServiceImpl.java | 37 - .../dosgi/operations/impl/DivideServiceImpl.java | 37 - .../dosgi/operations/impl/MultiplyServiceImpl.java | 37 - .../dosgi/operations/impl/OperationsActivator.java | 88 - .../dosgi/operations/impl/SubtractServiceImpl.java | 37 - .../dosgi/test/CalculatorOSGiNodeTestCase.java | 156 -- .../dosgi/test/CalculatorOSGiTestCase.java | 99 - .../calculator/dosgi/test/OSGiTestBundles.java | 362 --- .../calculator/dosgi/META-INF/MANIFEST.MF | 20 - .../calculator/dosgi/META-INF/sca-contribution.xml | 24 - .../dosgi/OSGI-INF/blueprint/calculator-module.xml | 43 - .../dosgi/OSGI-INF/calculator-component.xml | 36 - .../calculator-service-descriptions.xml | 55 - .../calculator/dosgi/bundle.componentType | 63 - .../calculator/dosgi/calculator.composite | 53 - .../dosgi/operations/META-INF/MANIFEST.MF | 22 - .../dosgi/operations/META-INF/sca-contribution.xml | 23 - .../dosgi/operations/OSGI-INF/add-component.xml | 25 - .../OSGI-INF/blueprint/operations-module.xml | 40 - .../dosgi/operations/OSGI-INF/divide-component.xml | 25 - .../operations/OSGI-INF/multiply-component.xml | 25 - .../operations/OSGI-INF/subtract-component.xml | 25 - .../dosgi/operations/bundle.componentType | 54 - .../dosgi/operations/operations.composite | 43 - .../calculator/dosgi/sca/META-INF/MANIFEST.MF | 12 - .../dosgi/sca/META-INF/sca-contribution.xml | 24 - .../dosgi/sca/OSGI-INF/sca/calculator.composite | 70 - .../tags/2.0-M5-RC3/modules/node-impl/LICENSE | 205 -- .../modules/node-impl/META-INF/MANIFEST.MF | 40 - .../tags/2.0-M5-RC3/modules/node-impl/NOTICE | 6 - .../tags/2.0-M5-RC3/modules/node-impl/pom.xml | 108 - .../xml/NodeConfigurationATOMProcessor.java | 160 -- .../xml/NodeConfigurationProcessor.java | 237 -- .../tuscany/sca/node/impl/NodeFactoryImpl.java | 524 ----- .../org/apache/tuscany/sca/node/impl/NodeImpl.java | 371 ---- .../org/apache/tuscany/sca/node/impl/NodeUtil.java | 43 - .../tuscany/sca/node/management/NodeManager.java | 65 - .../sca/node/management/NodeManagerMBean.java | 30 - ...ca.contribution.processor.StAXArtifactProcessor | 18 - .../org.apache.tuscany.sca.node.NodeFactory | 18 - ...sca.node.configuration.NodeConfigurationFactory | 18 - .../impl/node-impl-validation-messages.properties | 22 - .../node-impl/src/test/java/hello/HelloWorld.java | 30 - .../src/test/java/hello/HelloWorldImpl.java | 30 - .../xml/NodeConfigurationProcessorTestCase.java | 86 - .../tuscany/sca/node/impl/NodeImplTestCase.java | 218 -- .../tuscany/sca/node/impl/NodeUtilTestCase.java | 48 - .../src/test/resources/HelloWorld.composite | 30 - .../test/resources/META-INF/sca-contribution.xml | 24 - .../tuscany/sca/node/configuration/node1.xml | 58 - .../node/configuration/test-node-factory.config | 19 - .../node-impl/src/test/resources/test.properties | 22 - .../modules/node-launcher-equinox/LICENSE | 205 -- .../node-launcher-equinox/META-INF/MANIFEST.MF | 21 - .../modules/node-launcher-equinox/NOTICE | 6 - .../modules/node-launcher-equinox/pom.xml | 126 -- .../sca/node/equinox/launcher/Contribution.java | 48 - .../launcher/ContributionLocationHelper.java | 66 - .../equinox/launcher/DomainManagerLauncher.java | 173 -- .../sca/node/equinox/launcher/EquinoxHost.java | 658 ------ .../node/equinox/launcher/FrameworkLauncher.java | 254 --- .../node/equinox/launcher/LauncherException.java | 55 - .../node/equinox/launcher/NodeDaemonLauncher.java | 160 -- .../sca/node/equinox/launcher/NodeLauncher.java | 375 ---- .../sca/node/equinox/launcher/NodeLauncher2.java | 217 -- .../node/equinox/launcher/NodeLauncherCommand.java | 57 - .../node/equinox/launcher/NodeLauncherUtil.java | 1352 ------------ .../sca/node/equinox/launcher/NodeMain.java | 62 - .../sca/node/equinox/launcher/J2SE-1.5.profile | 150 -- .../sca/node/equinox/launcher/JavaSE-1.6.profile | 185 -- .../sca/node/equinox/launcher/axiom-api-1.2.7.MF | 47 - .../sca/node/equinox/launcher/axiom-api-1.2.8.MF | 49 - .../node/equinox/launcher/axis2-kernel-1.4.1.MF | 2 - .../node/equinox/launcher/axis2-kernel-1.5.1.MF | 39 - .../equinox/launcher/axis2-transport-http-1.5.1.MF | 12 - .../sca/node/equinox/launcher/ode-agents-1.3.2.MF | 7 - .../node/equinox/launcher/ode-bpel-api-1.3.2.MF | 58 - .../equinox/launcher/ode-bpel-compiler-1.3.2.MF | 170 -- .../node/equinox/launcher/ode-bpel-dao-1.3.2.MF | 23 - .../node/equinox/launcher/ode-bpel-epr-1.3.2.MF | 79 - .../node/equinox/launcher/ode-bpel-obj-1.3.2.MF | 40 - .../equinox/launcher/ode-bpel-runtime-1.3.2.MF | 256 --- .../equinox/launcher/ode-bpel-schemas-1.3.2.MF | 40 - .../node/equinox/launcher/ode-bpel-store-1.3.2.MF | 97 - .../equinox/launcher/ode-dao-hibernate-1.3.2.MF | 83 - .../sca/node/equinox/launcher/ode-dao-jpa-1.3.2.MF | 44 - .../sca/node/equinox/launcher/ode-jacob-1.3.2.MF | 46 - .../node/equinox/launcher/ode-jacob-ap-1.3.2.MF | 19 - .../equinox/launcher/ode-scheduler-simple-1.3.2.MF | 24 - .../sca/node/equinox/launcher/ode-utils-1.3.2.MF | 134 -- .../node/equinox/launcher/woden-impl-dom-1.0M8.MF | 226 -- .../sca/node/equinox/launcher/xercesImpl-2.9.0.MF | 421 ---- .../tags/2.0-M5-RC3/modules/node-launcher/LICENSE | 205 -- .../modules/node-launcher/META-INF/MANIFEST.MF | 15 - .../tags/2.0-M5-RC3/modules/node-launcher/NOTICE | 6 - .../tags/2.0-M5-RC3/modules/node-launcher/pom.xml | 64 - .../tuscany/sca/node/launcher/Contribution.java | 48 - .../sca/node/launcher/DomainManagerLauncher.java | 180 -- .../sca/node/launcher/LauncherException.java | 55 - .../sca/node/launcher/NodeDaemonLauncher.java | 169 -- .../tuscany/sca/node/launcher/NodeLauncher.java | 364 ---- .../sca/node/launcher/NodeLauncherUtil.java | 567 ----- .../apache/tuscany/sca/node/launcher/NodeMain.java | 62 - .../sca/node/launcher/NodeServletFilter.java | 130 -- .../node/launcher/ServiceInvocationTestCase.java | 77 - .../tags/2.0-M5-RC3/modules/policy-logging/LICENSE | 205 -- .../modules/policy-logging/META-INF/MANIFEST.MF | 28 - .../tags/2.0-M5-RC3/modules/policy-logging/NOTICE | 6 - .../tags/2.0-M5-RC3/modules/policy-logging/pom.xml | 53 - .../apache/tuscany/sca/policy/logging/Logging.java | 46 - .../JDKLoggingImplementationPolicyProvider.java | 48 - .../sca/policy/logging/jdk/JDKLoggingPolicy.java | 97 - .../logging/jdk/JDKLoggingPolicyBuilder.java | 84 - .../logging/jdk/JDKLoggingPolicyInterceptor.java | 171 -- .../logging/jdk/JDKLoggingPolicyProcessor.java | 135 -- .../jdk/JDKLoggingPolicyProviderFactory.java | 68 - .../jdk/JDKLoggingReferencePolicyProvider.java | 45 - .../jdk/JDKLoggingServicePolicyProvider.java | 44 - ...ache.tuscany.sca.assembly.builder.PolicyBuilder | 17 - ...ca.contribution.processor.StAXArtifactProcessor | 20 - ....apache.tuscany.sca.definitions.xml.Definitions | 17 - ...ache.tuscany.sca.provider.PolicyProviderFactory | 20 - .../tuscany/sca/policy/logging/definitions.xml | 38 - .../sca/policy/logging/jdk/PolicyReadTestCase.java | 94 - .../sca/policy/logging/jdk/mock_policies.xml | 23 - .../2.0-M5-RC3/modules/policy-security/LICENSE | 205 -- .../modules/policy-security/META-INF/MANIFEST.MF | 88 - .../tags/2.0-M5-RC3/modules/policy-security/NOTICE | 6 - .../2.0-M5-RC3/modules/policy-security/pom.xml | 52 - .../basic/BasicAuthenticationPolicy.java | 65 - .../basic/BasicAuthenticationPolicyProcessor.java | 123 -- .../basic/BasicAuthenticationPrincipal.java | 80 - .../authentication/token/TokenPrincipal.java | 75 - .../policy/authorization/AuthorizationPolicy.java | 83 - .../AuthorizationPolicyProcessor.java | 150 -- ...ityIdentityImplementationPolicyInterceptor.java | 83 - ...curityIdentityImplementationPolicyProvider.java | 89 - .../policy/identity/SecurityIdentityPolicy.java | 75 - .../identity/SecurityIdentityPolicyProcessor.java | 131 -- .../SecurityIdentityPolicyProviderFactory.java | 56 - .../tuscany/sca/policy/security/SecurityUtil.java | 78 - .../sca/policy/security/http/ssl/HTTPSPolicy.java | 130 -- .../security/http/ssl/HTTPSPolicyProcessor.java | 156 -- ...AuthenticationImplementationPolicyProvider.java | 91 - .../jaas/JaasAuthenticationInterceptor.java | 81 - .../security/jaas/JaasAuthenticationPolicy.java | 71 - .../jaas/JaasAuthenticationPolicyHandler.java | 71 - .../jaas/JaasAuthenticationPolicyProcessor.java | 148 -- .../JaasAuthenticationPolicyProviderFactory.java | 60 - ...ca.contribution.processor.StAXArtifactProcessor | 29 - ....apache.tuscany.sca.definitions.xml.Definitions | 18 - ...ache.tuscany.sca.provider.PolicyProviderFactory | 21 - .../tuscany/sca/policy/security/definitions.xml | 35 - .../sca/policy/security/tuscany_definitions.xml | 30 - .../policy-security-validation-messages.properties | 28 - .../policy/security/PolicyProcessorTestCase.java | 88 - .../policy/security/mock_policy_definitions.xml | 80 - .../META-INF/MANIFEST.MF | 35 - .../policy-transaction-runtime-geronimo/pom.xml | 70 - .../geronimo/GeronimoTransactionManagerHelper.java | 36 - .../geronimo/TransactionManagerWrapper.java | 90 - .../geronimo/TransactionModuleActivator.java | 89 - .../org.apache.tuscany.sca.core.ModuleActivator | 18 - ...cy.transaction.runtime.TransactionManagerHelper | 17 - .../TransactionManagerHelperTestCaseOFF.java | 196 -- .../META-INF/MANIFEST.MF | 33 - .../modules/policy-transaction-runtime/pom.xml | 63 - .../runtime/IncompatibleIntentException.java | 44 - .../TransactionImplementationPolicyProvider.java | 51 - .../transaction/runtime/TransactionIntent.java | 34 - .../runtime/TransactionInterceptor.java | 151 -- .../runtime/TransactionManagerHelper.java | 252 --- .../runtime/TransactionPolicyProviderFactory.java | 60 - .../TransactionReferencePolicyProvider.java | 51 - .../runtime/TransactionServicePolicyProvider.java | 51 - .../transaction/runtime/TransactionalAction.java | 31 - ...ache.tuscany.sca.provider.PolicyProviderFactory | 19 - .../2.0-M5-RC3/modules/policy-transaction/LICENSE | 205 -- .../policy-transaction/META-INF/MANIFEST.MF | 31 - .../2.0-M5-RC3/modules/policy-transaction/NOTICE | 6 - .../2.0-M5-RC3/modules/policy-transaction/pom.xml | 51 - .../sca/policy/transaction/TransactionPolicy.java | 49 - .../transaction/TransactionPolicyFactory.java | 34 - .../transaction/TransactionPolicyProcessor.java | 103 - .../impl/TransactionPolicyFactoryImpl.java | 36 - .../transaction/impl/TransactionPolicyImpl.java | 61 - ...ca.contribution.processor.StAXArtifactProcessor | 19 - ....apache.tuscany.sca.definitions.xml.Definitions | 17 - ...sca.policy.transaction.TransactionPolicyFactory | 19 - .../src/main/resources/log4j.properties | 29 - .../tuscany/sca/policy/transaction/definitions.xml | 57 - .../sca/policy/transaction/PolicyReadTestCase.java | 58 - .../2.0-M5-RC3/modules/policy-wspolicy/LICENSE | 205 -- .../modules/policy-wspolicy/META-INF/MANIFEST.MF | 39 - .../tags/2.0-M5-RC3/modules/policy-wspolicy/NOTICE | 6 - .../2.0-M5-RC3/modules/policy-wspolicy/pom.xml | 136 -- .../tuscany/sca/policy/wspolicy/WSPolicy.java | 74 - .../sca/policy/wspolicy/WSPolicyBuilder.java | 173 -- .../sca/policy/wspolicy/xml/WSPolicyProcessor.java | 180 -- ...ache.tuscany.sca.assembly.builder.PolicyBuilder | 17 - ...ca.contribution.processor.StAXArtifactProcessor | 20 - .../sca/policy/wspolicy/TestModelResolver.java | 64 - .../policy/wspolicy/TuscanyWSPolicyAssertion.java | 40 - .../TuscanyWSPolicyAssertionProcessor.java | 60 - .../sca/policy/wspolicy/WSPolicyTestCase.java | 199 -- .../wspolicy/xml/WSPolicyProcessorTestCase.java | 140 -- .../sca/policy/wspolicy/test_definitions.xml | 192 -- sca-java-2.x/tags/2.0-M5-RC3/modules/pom.xml | 203 -- .../tags/2.0-M5-RC3/modules/sca-api/LICENSE | 261 --- .../modules/sca-api/META-INF/MANIFEST.MF | 16 - .../tags/2.0-M5-RC3/modules/sca-api/NOTICE | 9 - .../tags/2.0-M5-RC3/modules/sca-api/pom.xml | 35 - .../java/org/oasisopen/sca/ComponentContext.java | 194 -- .../src/main/java/org/oasisopen/sca/Constants.java | 90 - .../org/oasisopen/sca/InvalidServiceException.java | 60 - .../org/oasisopen/sca/NoSuchDomainException.java | 56 - .../org/oasisopen/sca/NoSuchServiceException.java | 56 - .../java/org/oasisopen/sca/RequestContext.java | 71 - .../java/org/oasisopen/sca/ResponseDispatch.java | 46 - .../java/org/oasisopen/sca/ServiceReference.java | 36 - .../org/oasisopen/sca/ServiceRuntimeException.java | 55 - .../oasisopen/sca/ServiceUnavailableException.java | 62 - .../sca/annotation/AllowsPassByReference.java | 39 - .../org/oasisopen/sca/annotation/AsyncFault.java | 27 - .../oasisopen/sca/annotation/AsyncInvocation.java | 29 - .../oasisopen/sca/annotation/Authentication.java | 51 - .../oasisopen/sca/annotation/Authorization.java | 32 - .../org/oasisopen/sca/annotation/Callback.java | 29 - .../oasisopen/sca/annotation/ComponentName.java | 21 - .../oasisopen/sca/annotation/Confidentiality.java | 50 - .../org/oasisopen/sca/annotation/Constructor.java | 22 - .../java/org/oasisopen/sca/annotation/Context.java | 26 - .../java/org/oasisopen/sca/annotation/Destroy.java | 22 - .../org/oasisopen/sca/annotation/EagerInit.java | 22 - .../java/org/oasisopen/sca/annotation/Init.java | 22 - .../org/oasisopen/sca/annotation/Integrity.java | 51 - .../java/org/oasisopen/sca/annotation/Intent.java | 38 - .../sca/annotation/ManagedSharedTransaction.java | 32 - .../sca/annotation/ManagedTransaction.java | 50 - .../sca/annotation/MutualAuthentication.java | 32 - .../sca/annotation/NoManagedTransaction.java | 32 - .../java/org/oasisopen/sca/annotation/OneWay.java | 23 - .../org/oasisopen/sca/annotation/PolicySets.java | 30 - .../org/oasisopen/sca/annotation/Property.java | 58 - .../org/oasisopen/sca/annotation/Qualifier.java | 24 - .../org/oasisopen/sca/annotation/Reference.java | 56 - .../org/oasisopen/sca/annotation/Remotable.java | 23 - .../org/oasisopen/sca/annotation/Requires.java | 32 - .../java/org/oasisopen/sca/annotation/Scope.java | 36 - .../java/org/oasisopen/sca/annotation/Service.java | 45 - .../java/org/oasisopen/sca/annotation/package.html | 21 - .../org/oasisopen/sca/client/SCAClientFactory.java | 152 -- .../sca/client/SCAClientFactoryFinder.java | 35 - .../client/impl/SCAClientFactoryFinderImpl.java | 289 --- .../src/main/java/org/oasisopen/sca/package.html | 3 - .../2.0-M5-RC3/modules/sca-client-impl/LICENSE | 205 -- .../modules/sca-client-impl/META-INF/MANIFEST.MF | 24 - .../tags/2.0-M5-RC3/modules/sca-client-impl/NOTICE | 6 - .../2.0-M5-RC3/modules/sca-client-impl/pom.xml | 47 - .../client/impl/SCAClientFactoryFinderImpl.java | 49 - .../sca/client/impl/SCAClientFactoryImpl.java | 202 -- .../sca/client/impl/SCAClientFactoryImpl2.java | 77 - .../tuscany/sca/client/impl/SCAClientHandler.java | 210 -- .../sca/client/impl/SCAClientModuleActivator.java | 37 - .../sca/client/impl/SCAClientProxyHandler.java | 76 - .../org.apache.tuscany.sca.core.ModuleActivator | 18 - .../org.oasisopen.sca.client.SCAClientFactory | 18 - .../tags/2.0-M5-RC3/modules/stripes/LICENSE | 241 -- .../modules/stripes/META-INF/MANIFEST.MF | 29 - .../tags/2.0-M5-RC3/modules/stripes/NOTICE | 12 - .../tags/2.0-M5-RC3/modules/stripes/pom.xml | 60 - .../apache/tuscany/sca/stripes/TuscanyHelper.java | 298 --- .../tuscany/sca/stripes/TuscanyInterceptor.java | 73 - .../sca/stripes/TuscanyInterceptorSupport.java | 57 - .../2.0-M5-RC3/modules/tracing-aspectj/LICENSE | 205 -- .../modules/tracing-aspectj/META-INF/MANIFEST.MF | 13 - .../tags/2.0-M5-RC3/modules/tracing-aspectj/NOTICE | 6 - .../modules/tracing-aspectj/maven-eclipse.xml | 8 - .../2.0-M5-RC3/modules/tracing-aspectj/pom.xml | 75 - .../apache/tuscany/sca/aspectj/LoggingAspect.java | 102 - .../tuscany/sca/aspectj/SimpleTracingAspect.java | 85 - .../apache/tuscany/sca/aspectj/TimingAspect.java | 53 - .../apache/tuscany/sca/aspectj/TracingAspect.java | 92 - .../tuscany/sca/aspectj/UserTimingAspect.java | 45 - .../src/main/resources/META-INF/aop.xml | 42 - .../tuscany/sca/aspectj/TracingTestCase.java | 41 - .../2.0-M5-RC3/modules/web-javascript-dojo/LICENSE | 238 -- .../web-javascript-dojo/META-INF/MANIFEST.MF | 26 - .../2.0-M5-RC3/modules/web-javascript-dojo/NOTICE | 11 - .../modules/web-javascript-dojo/build-dojo.xml | 64 - .../2.0-M5-RC3/modules/web-javascript-dojo/pom.xml | 120 - .../web/javascript/dojo/DojoResourceServlet.java | 95 - .../dojo/DojoWidgetJavascriptProvider.java | 106 - ...vascript.WidgetImplementationJavascriptProvider | 19 - .../src/main/resources/tuscany/AtomService.js | 141 -- .../tags/2.0-M5-RC3/modules/web-javascript/LICENSE | 205 -- .../modules/web-javascript/META-INF/MANIFEST.MF | 19 - .../tags/2.0-M5-RC3/modules/web-javascript/NOTICE | 6 - .../tags/2.0-M5-RC3/modules/web-javascript/pom.xml | 46 - .../javascript/ComponentJavaScriptGenerator.java | 60 - ...ComponentJavaScriptGeneratorExtensionPoint.java | 57 - ...ComponentJavaScriptGeneratorExtensionPoint.java | 158 -- ...efaultJavascriptProxyFactoryExtensionPoint.java | 231 -- .../sca/web/javascript/JavascriptProxyFactory.java | 79 - .../JavascriptProxyFactoryExtensionPoint.java | 57 - ...ript.ComponentJavaScriptGeneratorExtensionPoint | 18 - ...javascript.JavascriptProxyFactoryExtensionPoint | 18 - .../web-javascript-validation-messages.properties | 21 - sca-java-2.x/tags/2.0-M5-RC3/modules/wink/LICENSE | 241 -- .../2.0-M5-RC3/modules/wink/META-INF/MANIFEST.MF | 18 - sca-java-2.x/tags/2.0-M5-RC3/modules/wink/NOTICE | 12 - sca-java-2.x/tags/2.0-M5-RC3/modules/wink/pom.xml | 69 - .../tuscany/sca/wink/PropertyInjectable.java | 66 - .../tuscany/sca/wink/ReferenceInjectable.java | 66 - .../sca/wink/TuscanyDeploymentConfiguration.java | 38 - .../tuscany/sca/wink/TuscanyInjectableFactory.java | 52 - sca-java-2.x/tags/2.0-M5-RC3/modules/xsd/LICENSE | 205 -- .../2.0-M5-RC3/modules/xsd/META-INF/MANIFEST.MF | 45 - sca-java-2.x/tags/2.0-M5-RC3/modules/xsd/NOTICE | 6 - sca-java-2.x/tags/2.0-M5-RC3/modules/xsd/pom.xml | 65 - .../apache/tuscany/sca/xsd/DefaultXSDFactory.java | 30 - .../org/apache/tuscany/sca/xsd/XSDFactory.java | 36 - .../org/apache/tuscany/sca/xsd/XSDefinition.java | 118 - .../tuscany/sca/xsd/impl/XSDFactoryImpl.java | 35 - .../tuscany/sca/xsd/impl/XSDefinitionImpl.java | 232 -- .../tuscany/sca/xsd/xml/XSDDocumentProcessor.java | 106 - .../tuscany/sca/xsd/xml/XSDModelResolver.java | 391 ---- ...sca.contribution.processor.URLArtifactProcessor | 20 - ...tuscany.sca.contribution.resolver.ModelResolver | 19 - .../services/org.apache.tuscany.sca.xsd.XSDFactory | 18 - .../xsd-xml-validation-messages.properties | 23 - .../sca/xsd/xml/XSDDocumentProcessorTestCase.java | 96 - .../xsd/src/test/resources/xsd/greeting.xsd | 29 - .../modules/xsd/src/test/resources/xsd/name.xsd | 29 - sca-java-2.x/tags/2.0-M5-RC3/pom.xml | 969 --------- sca-java-2.x/tags/2.0-M5-RC3/samples/README | 269 --- .../tags/2.0-M5-RC3/samples/binding-rmi/README | 1 - .../contribution-calculator-reference/README | 34 - .../contribution-calculator-reference/build.xml | 59 - .../contribution-calculator-reference/pom.xml | 69 - .../src/main/java/calculator/AddService.java | 28 - .../main/java/calculator/CalculatorService.java | 39 - .../java/calculator/CalculatorServiceImpl.java | 68 - .../src/main/java/calculator/DivideService.java | 28 - .../src/main/java/calculator/MultiplyService.java | 28 - .../src/main/java/calculator/SubtractService.java | 28 - .../resources/CalculatorRMIReference.composite | 42 - .../calculator/CalculatorRMIReferenceTestCase.java | 70 - .../java/calculator/CalculatorRMIServiceImpl.java | 52 - .../contribution-calculator-service/README | 28 - .../contribution-calculator-service/build.xml | 59 - .../contribution-calculator-service/pom.xml | 67 - .../src/main/java/calculator/AddService.java | 28 - .../src/main/java/calculator/AddServiceImpl.java | 30 - .../src/main/java/calculator/CalculatorClient.java | 40 - .../main/java/calculator/CalculatorService.java | 36 - .../java/calculator/CalculatorServiceImpl.java | 68 - .../src/main/java/calculator/DivideService.java | 28 - .../main/java/calculator/DivideServiceImpl.java | 30 - .../src/main/java/calculator/MultiplyService.java | 28 - .../main/java/calculator/MultiplyServiceImpl.java | 30 - .../src/main/java/calculator/SubtractService.java | 28 - .../main/java/calculator/SubtractServiceImpl.java | 30 - .../main/resources/CalculatorRMIServer.composite | 53 - .../main/resources/META-INF/sca-contribution.xml | 23 - .../calculator/CalculatorRMIServerTestCase.java | 63 - .../tags/2.0-M5-RC3/samples/binding-rmi/pom.xml | 44 - .../tags/2.0-M5-RC3/samples/binding-sca/README | 1 - .../binding-sca/contribution-calculator/README | 26 - .../binding-sca/contribution-calculator/build.xml | 57 - .../binding-sca/contribution-calculator/pom.xml | 58 - .../src/main/java/calculator/AddService.java | 28 - .../src/main/java/calculator/AddServiceImpl.java | 38 - .../src/main/java/calculator/CalculatorClient.java | 52 - .../main/java/calculator/CalculatorService.java | 37 - .../java/calculator/CalculatorServiceImpl.java | 72 - .../src/main/java/calculator/DivideService.java | 28 - .../main/java/calculator/DivideServiceImpl.java | 38 - .../src/main/java/calculator/MultiplyService.java | 28 - .../main/java/calculator/MultiplyServiceImpl.java | 38 - .../src/main/java/calculator/SubtractService.java | 28 - .../main/java/calculator/SubtractServiceImpl.java | 38 - .../src/main/resources/Calculator.composite | 49 - .../src/main/resources/CalculatorClient.composite | 30 - .../main/resources/META-INF/sca-contribution.xml | 24 - .../test/java/calculator/CalculatorTestCase.java | 50 - .../tags/2.0-M5-RC3/samples/binding-sca/pom.xml | 43 - .../samples/calculator-osgi/META-INF/MANIFEST.MF | 19 - .../tags/2.0-M5-RC3/samples/calculator-osgi/README | 99 - .../2.0-M5-RC3/samples/calculator-osgi/build.xml | 78 - .../2.0-M5-RC3/samples/calculator-osgi/pom.xml | 116 - .../src/main/java/calculator/AddService.java | 28 - .../src/main/java/calculator/AddServiceImpl.java | 35 - .../main/java/calculator/CalculatorActivator.java | 54 - .../src/main/java/calculator/CalculatorClient.java | 52 - .../main/java/calculator/CalculatorService.java | 34 - .../java/calculator/CalculatorServiceImpl.java | 69 - .../src/main/java/calculator/DivideService.java | 28 - .../main/java/calculator/DivideServiceImpl.java | 35 - .../src/main/java/calculator/MultiplyService.java | 28 - .../main/java/calculator/MultiplyServiceImpl.java | 35 - .../src/main/java/calculator/SubtractService.java | 28 - .../main/java/calculator/SubtractServiceImpl.java | 35 - .../src/main/resources/Calculator.composite | 54 - .../test/java/calculator/CalculatorTestCase.java | 54 - .../2.0-M5-RC3/samples/calculator-scaclient/README | 13 - .../samples/calculator-scaclient/pom.xml | 69 - .../main/java/calculator/CalculatorService.java | 38 - .../src/main/java/sample/CalculatorSCAClient.java | 53 - .../contribution-binding-ws-calculator/README | 25 - .../contribution-binding-ws-calculator/build.xml | 55 - .../calculator.odg | Bin 12477 -> 0 bytes .../calculator.png | Bin 41196 -> 0 bytes .../contribution-binding-ws-calculator/pom.xml | 54 - .../src/main/java/calculator/AddService.java | 31 - .../src/main/java/calculator/AddServiceImpl.java | 35 - .../main/java/calculator/CalculatorService.java | 35 - .../java/calculator/CalculatorServiceImpl.java | 70 - .../src/main/java/calculator/DivideService.java | 28 - .../main/java/calculator/DivideServiceImpl.java | 35 - .../src/main/java/calculator/MultiplyService.java | 28 - .../main/java/calculator/MultiplyServiceImpl.java | 35 - .../src/main/java/calculator/SubtractService.java | 28 - .../main/java/calculator/SubtractServiceImpl.java | 35 - .../src/main/resources/Calculator.composite | 54 - .../main/resources/META-INF/sca-contribution.xml | 23 - .../test/java/calculator/CalculatorTestCase.java | 50 - .../README | 25 - .../build.xml | 56 - .../pom.xml | 58 - .../src/main/java/calculator/AddService.java | 28 - .../src/main/java/calculator/AddServiceImpl.java | 35 - .../src/main/java/calculator/CalculatorClient.java | 62 - .../main/java/calculator/CalculatorService.java | 37 - .../java/calculator/CalculatorServiceImpl.java | 70 - .../src/main/java/calculator/DivideService.java | 28 - .../main/java/calculator/DivideServiceImpl.java | 35 - .../src/main/java/calculator/MultiplyService.java | 28 - .../main/java/calculator/MultiplyServiceImpl.java | 35 - .../src/main/java/calculator/SubtractService.java | 28 - .../main/java/calculator/SubtractServiceImpl.java | 35 - .../src/main/resources/Calculator.composite | 49 - .../src/main/resources/CalculatorClient.composite | 30 - .../main/resources/META-INF/sca-contribution.xml | 24 - .../test/java/calculator/CalculatorTestCase.java | 49 - .../samples/dosgi-calculator-operations/LICENSE | 205 -- .../META-INF/MANIFEST.MF | 22 - .../samples/dosgi-calculator-operations/NOTICE | 6 - .../OSGI-INF/add-component.xml | 25 - .../OSGI-INF/blueprint/operations-module.xml | 40 - .../OSGI-INF/divide-component.xml | 25 - .../OSGI-INF/multiply-component.xml | 25 - .../OSGI-INF/sca/bundle.componentType | 54 - .../OSGI-INF/sca/bundle.composite | 43 - .../OSGI-INF/subtract-component.xml | 25 - .../samples/dosgi-calculator-operations/README | 185 -- .../samples/dosgi-calculator-operations/pom.xml | 148 -- .../calculator/dosgi/operations/AddService.java | 31 - .../calculator/dosgi/operations/DivideService.java | 31 - .../dosgi/operations/MultiplyService.java | 31 - .../dosgi/operations/SubtractService.java | 31 - .../dosgi/operations/impl/AddServiceImpl.java | 37 - .../dosgi/operations/impl/DivideServiceImpl.java | 37 - .../dosgi/operations/impl/MultiplyServiceImpl.java | 37 - .../dosgi/operations/impl/OperationsActivator.java | 88 - .../dosgi/operations/impl/SubtractServiceImpl.java | 37 - .../main/resources/META-INF/sca-contribution.xml | 23 - .../dosgi/operations/test/OSGiTestUtils.java | 105 - .../dosgi/operations/test/OperationsNode.java | 43 - .../test/OperationsOSGiNodeTestCase.java | 104 - .../2.0-M5-RC3/samples/dosgi-calculator/LICENSE | 205 -- .../samples/dosgi-calculator/META-INF/MANIFEST.MF | 20 - .../2.0-M5-RC3/samples/dosgi-calculator/NOTICE | 6 - .../OSGI-INF/blueprint/calculator-module.xml | 43 - .../OSGI-INF/calculator-component.xml | 36 - .../OSGI-INF/sca/bundle.componentType | 64 - .../dosgi-calculator/OSGI-INF/sca/bundle.composite | 45 - .../2.0-M5-RC3/samples/dosgi-calculator/README | 143 -- .../samples/dosgi-calculator/dosgi-calculator.png | Bin 85103 -> 0 bytes .../2.0-M5-RC3/samples/dosgi-calculator/pom.xml | 153 -- .../java/calculator/dosgi/CalculatorService.java | 36 - .../calculator/dosgi/impl/CalculatorActivator.java | 76 - .../dosgi/impl/CalculatorServiceDSImpl.java | 114 - .../dosgi/impl/CalculatorServiceImpl.java | 105 - .../calculator/dosgi/operations/AddService.java | 31 - .../calculator/dosgi/operations/DivideService.java | 31 - .../dosgi/operations/MultiplyService.java | 31 - .../dosgi/operations/SubtractService.java | 31 - .../java/calculator/rmi/OperationsRMIServer.java | 93 - .../calculator/rmi/OperationsRMIServer_Stub.java | 132 -- .../main/java/calculator/rmi/OperationsRemote.java | 37 - .../main/resources/META-INF/sca-contribution.xml | 24 - .../java/calculator/dosgi/test/CalculatorNode.java | 43 - .../dosgi/test/CalculatorOSGiNodeTestCase.java | 152 -- .../java/calculator/dosgi/test/OSGiTestUtils.java | 105 - .../dosgi-dynamic-calculator-operations/LICENSE | 205 -- .../META-INF/MANIFEST.MF | 23 - .../dosgi-dynamic-calculator-operations/NOTICE | 6 - .../OSGI-INF/add-component.xml | 25 - .../OSGI-INF/blueprint/operations-module.xml | 40 - .../OSGI-INF/divide-component.xml | 25 - .../OSGI-INF/multiply-component.xml | 25 - .../OSGI-INF/sca-config/operations-config.xml | 29 - .../OSGI-INF/subtract-component.xml | 25 - .../dosgi-dynamic-calculator-operations/README | 196 -- .../dosgi-dynamic-calculator-operations/pom.xml | 148 -- .../calculator/dosgi/operations/AddService.java | 31 - .../calculator/dosgi/operations/DivideService.java | 31 - .../dosgi/operations/MultiplyService.java | 31 - .../dosgi/operations/SubtractService.java | 31 - .../dosgi/operations/impl/AddServiceImpl.java | 37 - .../dosgi/operations/impl/DivideServiceImpl.java | 37 - .../dosgi/operations/impl/MultiplyServiceImpl.java | 37 - .../dosgi/operations/impl/OperationsActivator.java | 94 - .../dosgi/operations/impl/SubtractServiceImpl.java | 37 - .../dosgi/operations/test/OSGiTestUtils.java | 105 - .../dosgi/operations/test/OperationsNode.java | 43 - .../test/OperationsOSGiNodeTestCase.java | 104 - .../samples/dosgi-dynamic-calculator/LICENSE | 205 -- .../dosgi-dynamic-calculator/META-INF/MANIFEST.MF | 23 - .../samples/dosgi-dynamic-calculator/NOTICE | 6 - .../OSGI-INF/blueprint/calculator-module.xml | 43 - .../OSGI-INF/calculator-component.xml | 36 - .../calculator-service-descriptions.xml | 61 - .../OSGI-INF/sca-config/calculator-config.xml | 32 - .../samples/dosgi-dynamic-calculator/README | 145 -- .../dosgi-dynamic-calculator/dosgi-calculator.png | Bin 85103 -> 0 bytes .../samples/dosgi-dynamic-calculator/pom.xml | 153 -- .../java/calculator/dosgi/CalculatorService.java | 36 - .../calculator/dosgi/impl/CalculatorActivator.java | 78 - .../dosgi/impl/CalculatorServiceDSImpl.java | 114 - .../dosgi/impl/CalculatorServiceImpl.java | 99 - .../calculator/dosgi/operations/AddService.java | 31 - .../calculator/dosgi/operations/DivideService.java | 31 - .../dosgi/operations/MultiplyService.java | 31 - .../dosgi/operations/SubtractService.java | 31 - .../java/calculator/rmi/OperationsRMIServer.java | 93 - .../calculator/rmi/OperationsRMIServer_Stub.java | 132 -- .../main/java/calculator/rmi/OperationsRemote.java | 37 - .../java/calculator/dosgi/test/CalculatorNode.java | 43 - .../dosgi/test/CalculatorOSGiNodeTestCase.java | 144 -- .../java/calculator/dosgi/test/OSGiTestUtils.java | 105 - .../tags/2.0-M5-RC3/samples/helloworld-bpel/README | 153 -- .../2.0-M5-RC3/samples/helloworld-bpel/build.xml | 95 - .../samples/helloworld-bpel/helloworld-bpel.png | Bin 8897 -> 0 bytes .../samples/helloworld-bpel/helloworld-bpel.svg | 179 -- .../2.0-M5-RC3/samples/helloworld-bpel/pom.xml | 76 - .../src/main/java/helloworld/Hello.java | 29 - .../main/resources/META-INF/sca-contribution.xml | 23 - .../src/main/resources/helloworld.bpel | 80 - .../src/main/resources/helloworld.composite | 29 - .../src/main/resources/helloworld.wsdl | 94 - .../src/main/resources/log4j.properties | 35 - .../samples/helloworld-scaclient/pom.xml | 69 - .../src/main/java/sample/Helloworld.java | 28 - .../src/main/java/sample/HelloworldSCAClient.java | 51 - .../src/test/java/sample/HelloworldTestCase.java | 33 - .../2.0-M5-RC3/samples/helloworld-spring/pom.xml | 67 - .../src/main/java/sample/Helloworld.java | 28 - .../src/main/java/sample/HelloworldImpl.java | 28 - .../main/resources/META-INF/sca-contribution.xml | 23 - .../src/main/resources/helloworld-context.xml | 30 - .../src/main/resources/helloworld.composite | 29 - .../src/test/java/sample/HelloworldTestCase.java | 33 - .../2.0-M5-RC3/samples/helloworld-ws-sdo/README | 214 -- .../2.0-M5-RC3/samples/helloworld-ws-sdo/build.xml | 101 - .../helloworld-ws-sdo/helloworld-ws-sdo.png | Bin 7549 -> 0 bytes .../samples/helloworld-ws-sdo/maven-eclipse.xml | 8 - .../2.0-M5-RC3/samples/helloworld-ws-sdo/pom.xml | 180 -- .../src/main/java/helloworld/HelloWorldClient.java | 51 - .../src/main/java/helloworld/HelloWorldImpl.java | 33 - .../src/main/java/helloworld/HelloWorldServer.java | 51 - .../main/java/helloworld/HelloWorldService.java | 34 - .../helloworld/HelloWorldServiceComponent.java | 42 - .../main/java/services/bcircle/BioTestCase.java | 59 - .../java/services/bcircle/BiochemicalCircle.java | 29 - .../services/bcircle/BiochemicalCircleImpl.java | 40 - .../main/resources/META-INF/sca-contribution.xml | 28 - .../src/main/resources/helloworldws.composite | 31 - .../main/resources/helloworldwsclient.composite | 34 - .../src/main/resources/logging.properties | 30 - .../resources/clinicalLaboratory.composite | 34 - .../helloworld-ws-sdo/src/main/resources/test.xsd | 35 - .../src/main/resources/wsdl/helloworld.wsdl | 88 - .../java/helloworld/HelloWorldClientTestCase.java | 85 - .../test/java/helloworld/HelloWorldTestServer.java | 67 - .../src/test/java/helloworld/TestCaseRunner.java | 329 --- .../tags/2.0-M5-RC3/samples/helloworld/README | 7 - .../tags/2.0-M5-RC3/samples/helloworld/pom.xml | 58 - .../src/main/java/sample/Helloworld.java | 28 - .../src/main/java/sample/HelloworldImpl.java | 28 - .../main/resources/META-INF/sca-contribution.xml | 23 - .../src/main/resources/helloworld.composite | 29 - .../src/test/java/sample/HelloworldTestCase.java | 33 - .../samples/launcher-command-line/README | 13 - .../samples/launcher-embedded-jse/README | 20 - .../samples/launcher-embedded-jse/build.xml | 119 - .../samples/launcher-embedded-jse/pom.xml | 76 - .../main/java/calculator/CalculatorService.java | 38 - .../src/main/java/launcher/RuntimeIntegration.java | 43 - .../src/main/java/launcher/SampleJSELauncher.java | 150 -- .../java/launcher/SampleLauncherException.java | 42 - .../src/test/java/launcher/LauncherTestCase.java | 47 - .../samples/launcher-embedded-osgi/README | 20 - .../samples/launcher-embedded-osgi/build.xml | 94 - .../samples/launcher-embedded-osgi/pom.xml | 76 - .../main/java/calculator/CalculatorService.java | 38 - .../src/main/java/launcher/RuntimeIntegration.java | 61 - .../src/main/java/launcher/SampleJSELauncher.java | 89 - .../java/launcher/SampleLauncherException.java | 42 - .../src/test/java/launcher/LauncherTestCase.java | 39 - .../tags/2.0-M5-RC3/samples/launcher-maven/README | 18 - .../tags/2.0-M5-RC3/samples/logging.properties | 25 - sca-java-2.x/tags/2.0-M5-RC3/samples/pom.xml | 98 - .../tags/2.0-M5-RC3/samples/store-webapp/README | 28 - .../tags/2.0-M5-RC3/samples/store-webapp/pom.xml | 84 - .../store-webapp/src/main/java/services/Cart.java | 28 - .../src/main/java/services/Catalog.java | 27 - .../src/main/java/services/CurrencyConverter.java | 29 - .../main/java/services/CurrencyConverterImpl.java | 38 - .../src/main/java/services/FruitsCatalogImpl.java | 52 - .../store-webapp/src/main/java/services/Item.java | 51 - .../src/main/java/services/ShoppingCartImpl.java | 112 - .../store-webapp/src/main/java/services/Total.java | 29 - .../src/main/resources/store.composite | 55 - .../src/main/webapp/META-INF/sca-contribution.xml | 23 - .../src/main/webapp/WEB-INF/geronimo-web.xml | 50 - .../store-webapp/src/main/webapp/WEB-INF/web.xml | 36 - .../store-webapp/src/main/webapp/store.html | 163 -- .../tags/2.0-M5-RC3/samples/store-webapp/store.png | Bin 15670 -> 0 bytes .../tags/2.0-M5-RC3/samples/store-webapp/store.svg | 304 --- sca-java-2.x/tags/2.0-M5-RC3/samples/store/README | 28 - .../tags/2.0-M5-RC3/samples/store/build.xml | 79 - sca-java-2.x/tags/2.0-M5-RC3/samples/store/pom.xml | 70 - .../samples/store/src/main/java/launch/Launch.java | 39 - .../samples/store/src/main/java/services/Cart.java | 28 - .../store/src/main/java/services/Catalog.java | 27 - .../src/main/java/services/CurrencyConverter.java | 29 - .../main/java/services/CurrencyConverterImpl.java | 38 - .../src/main/java/services/FruitsCatalogImpl.java | 52 - .../samples/store/src/main/java/services/Item.java | 50 - .../src/main/java/services/ShoppingCartImpl.java | 112 - .../store/src/main/java/services/Total.java | 29 - .../store/src/main/resources/store.composite | 58 - .../store/src/main/resources/uiservices/store.html | 162 -- .../store/src/test/java/client/Shopper.java | 29 - .../store/src/test/java/client/ShopperImpl.java | 64 - .../store/src/test/java/store/StoreTestCase.java | 117 - .../src/test/resources/store-client.composite | 38 - .../tags/2.0-M5-RC3/samples/store/store.png | Bin 15670 -> 0 bytes .../tags/2.0-M5-RC3/samples/store/store.svg | 304 --- .../samples/webapps/helloworld-bpel/README | 7 - .../samples/webapps/helloworld-bpel/pom.xml | 160 -- .../src/main/java/sample/HelloworldService.java | 28 - .../src/main/resources/helloworld.bpel | 66 - .../src/main/resources/helloworld.wsdl | 82 - .../src/main/webapp/WEB-INF/web.composite | 37 - .../src/main/webapp/WEB-INF/web.xml | 41 - .../helloworld-bpel/src/main/webapp/hello.jsp | 36 - .../samples/webapps/helloworld-jaxrs/README | 7 - .../samples/webapps/helloworld-jaxrs/pom.xml | 111 - .../src/main/java/sample/HelloWorldResource.java | 68 - .../src/main/java/sample/HelloworldService.java | 25 - .../main/java/sample/HelloworldServiceImpl.java | 28 - .../src/main/webapp/WEB-INF/application | 14 - .../src/main/webapp/WEB-INF/web.composite | 34 - .../src/main/webapp/WEB-INF/web.xml | 49 - .../src/test/java/itest/HelloworldTestCase.java | 46 - .../samples/webapps/helloworld-jms/README | 131 -- .../samples/webapps/helloworld-jms/pom.xml | 96 - .../src/main/java/sample/HelloWorldClient.java | 37 - .../src/main/java/sample/HelloWorldService.java | 29 - .../main/java/sample/HelloWorldServiceImpl.java | 31 - .../src/main/webapp/META-INF/context.xml | 34 - .../src/main/webapp/WEB-INF/jetty-env.xml | 48 - .../src/main/webapp/WEB-INF/web.composite | 44 - .../helloworld-jms/src/main/webapp/WEB-INF/web.xml | 66 - .../helloworld-jms/src/main/webapp/hello.jsp | 41 - .../samples/webapps/helloworld-js-client/README | 7 - .../samples/webapps/helloworld-js-client/pom.xml | 104 - .../src/main/java/sample/HelloworldService.java | 25 - .../main/java/sample/HelloworldServiceImpl.java | 28 - .../src/main/webapp/WEB-INF/web.composite | 36 - .../src/main/webapp/WEB-INF/web.xml | 41 - .../src/main/webapp/hello.html | 51 - .../src/test/java/itest/HelloworldTestCase.java | 75 - .../samples/webapps/helloworld-jsf/pom.xml | 99 - .../src/main/java/sample/HelloWorldController.java | 56 - .../src/main/java/sample/HelloworldService.java | 25 - .../main/java/sample/HelloworldServiceImpl.java | 27 - .../src/main/webapp/WEB-INF/faces-config.xml | 51 - .../src/main/webapp/WEB-INF/web.composite | 34 - .../helloworld-jsf/src/main/webapp/WEB-INF/web.xml | 191 -- .../helloworld-jsf/src/main/webapp/helloWorld.jsp | 40 - .../helloworld-jsf/src/main/webapp/index.jsp | 23 - .../helloworld-jsf/src/main/webapp/page2.jsp | 38 - .../samples/webapps/helloworld-jsp/README | 7 - .../samples/webapps/helloworld-jsp/pom.xml | 98 - .../src/main/java/sample/HelloworldService.java | 25 - .../main/java/sample/HelloworldServiceImpl.java | 28 - .../src/main/webapp/WEB-INF/web.composite | 34 - .../helloworld-jsp/src/main/webapp/WEB-INF/web.xml | 41 - .../helloworld-jsp/src/main/webapp/hello.jsp | 37 - .../src/test/java/itest/HelloworldTestCase.java | 53 - .../samples/webapps/helloworld-servlet/README | 7 - .../samples/webapps/helloworld-servlet/pom.xml | 105 - .../src/main/java/sample/HelloworldService.java | 25 - .../main/java/sample/HelloworldServiceImpl.java | 27 - .../src/main/java/sample/HelloworldServlet.java | 64 - .../src/main/webapp/WEB-INF/web.composite | 34 - .../src/main/webapp/WEB-INF/web.xml | 44 - .../helloworld-servlet/src/main/webapp/hello.html | 46 - .../src/test/java/itest/HelloworldTestCase.java | 55 - .../samples/webapps/helloworld-stripes/pom.xml | 112 - .../main/java/mystripes/action/BaseActionBean.java | 33 - .../main/java/mystripes/action/HomeActionBean.java | 45 - .../src/main/java/sample/HelloworldService.java | 25 - .../main/java/sample/HelloworldServiceImpl.java | 28 - .../src/main/resources/StripesResources.properties | 73 - .../src/main/resources/log4j.properties | 48 - .../src/main/webapp/WEB-INF/jsp/home.jsp | 26 - .../src/main/webapp/WEB-INF/jsp/layout.jsp | 39 - .../src/main/webapp/WEB-INF/jsp/taglibs.jsp | 29 - .../src/main/webapp/WEB-INF/web.composite | 34 - .../src/main/webapp/WEB-INF/web.xml | 61 - .../helloworld-stripes/src/main/webapp/index.html | 24 - .../helloworld-stripes/src/test/java/README | 7 - .../src/test/java/itest/HelloworldTestCase.java | 53 - .../2.0-M5-RC3/samples/webapps/helloworld/README | 7 - .../2.0-M5-RC3/samples/webapps/helloworld/pom.xml | 118 - .../helloworld/src/main/webapp/WEB-INF/web.xml | 47 - .../helloworld/src/test/java/itest/Helloworld.java | 27 - .../test/java/itest/HelloworldTestCaseFIXME.java | 44 - .../helloworld/src/test/resources/test-web.xml | 30 - .../tags/2.0-M5-RC3/shades/base-nodep/pom.xml | 109 - .../sca/base/AggregatedBundleActivator.java | 56 - .../shades/base-nodep/src/main/resources/LICENSE | 234 -- .../src/main/resources/META-INF/MANIFEST.MF | 470 ---- .../shades/base-nodep/src/main/resources/NOTICE | 12 - .../base-nodep/src/main/resources/README.txt | 33 - sca-java-2.x/tags/2.0-M5-RC3/shades/base/pom.xml | 317 --- .../shades/base/src/main/resources/LICENSE | 234 -- .../shades/base/src/main/resources/NOTICE | 12 - .../shades/base/src/main/resources/README.txt | 31 - .../tags/2.0-M5-RC3/shades/bpel-nodep/pom.xml | 75 - sca-java-2.x/tags/2.0-M5-RC3/shades/bpel/pom.xml | 132 -- .../tags/2.0-M5-RC3/shades/jms-nodep/pom.xml | 107 - sca-java-2.x/tags/2.0-M5-RC3/shades/jms/pom.xml | 124 -- .../tags/2.0-M5-RC3/shades/json-nodep/pom.xml | 73 - sca-java-2.x/tags/2.0-M5-RC3/shades/json/pom.xml | 167 -- sca-java-2.x/tags/2.0-M5-RC3/shades/pom.xml | 45 - .../tags/2.0-M5-RC3/shades/spring-nodep/pom.xml | 72 - sca-java-2.x/tags/2.0-M5-RC3/shades/spring/pom.xml | 111 - .../2.0-M5-RC3/shades/webservices-nodep/pom.xml | 69 - .../tags/2.0-M5-RC3/shades/webservices/pom.xml | 208 -- 5367 files changed, 452465 deletions(-) delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/BUILDING delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/CHANGES delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/LICENSE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/NOTICE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/README delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/RELEASE_NOTES delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/archetypes/contribution-jar/META-INF/MANIFEST.MF delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/archetypes/contribution-jar/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/archetypes/contribution-jar/src/main/resources/META-INF/maven/archetype-metadata.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/archetypes/contribution-jar/src/main/resources/META-INF/maven/archetype.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/archetypes/contribution-jar/src/main/resources/archetype-resources/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/archetypes/contribution-jar/src/main/resources/archetype-resources/src/main/java/HelloworldImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/archetypes/contribution-jar/src/main/resources/archetype-resources/src/main/java/HelloworldService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/archetypes/contribution-jar/src/main/resources/archetype-resources/src/main/resources/META-INF/sca-contribution.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/archetypes/contribution-jar/src/main/resources/archetype-resources/src/main/resources/helloworld.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/archetypes/contribution-zip-discriptor/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/archetypes/contribution-zip-discriptor/src/main/resources/assemblies/tuscany-zip-contribution.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/archetypes/contribution-zip/META-INF/MANIFEST.MF delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/archetypes/contribution-zip/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/archetypes/contribution-zip/src/main/resources/META-INF/maven/archetype-metadata.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/archetypes/contribution-zip/src/main/resources/META-INF/maven/archetype.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/archetypes/contribution-zip/src/main/resources/archetype-resources/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/archetypes/contribution-zip/src/main/resources/archetype-resources/src/main/java/AddImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/archetypes/contribution-zip/src/main/resources/archetype-resources/src/main/java/AddService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/archetypes/contribution-zip/src/main/resources/archetype-resources/src/main/resources/META-INF/sca-contribution.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/archetypes/contribution-zip/src/main/resources/archetype-resources/src/main/resources/add.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/archetypes/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-bpel/META-INF/MANIFEST.MF delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-bpel/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-bpel/src/main/resources/META-INF/maven/archetype-metadata.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-bpel/src/main/resources/META-INF/maven/archetype.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-bpel/src/main/resources/archetype-resources/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-bpel/src/main/resources/archetype-resources/src/main/java/HelloworldService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-bpel/src/main/resources/archetype-resources/src/main/resources/helloworld.bpel delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-bpel/src/main/resources/archetype-resources/src/main/resources/helloworld.wsdl delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-bpel/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-bpel/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-bpel/src/main/resources/archetype-resources/src/main/webapp/hello.jsp delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-jsf/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-jsf/src/main/resources/META-INF/maven/archetype-metadata.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-jsf/src/main/resources/META-INF/maven/archetype.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-jsf/src/main/resources/archetype-resources/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-jsf/src/main/resources/archetype-resources/src/main/java/myfaces/HelloWorldController.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-jsf/src/main/resources/archetype-resources/src/main/java/sca/HelloworldService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-jsf/src/main/resources/archetype-resources/src/main/java/sca/HelloworldServiceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-jsf/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/faces-config.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-jsf/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-jsf/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-jsf/src/main/resources/archetype-resources/src/main/webapp/helloWorld.jsp delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-jsf/src/main/resources/archetype-resources/src/main/webapp/index.jsp delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-jsf/src/main/resources/archetype-resources/src/main/webapp/page2.jsp delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-jsonp/META-INF/MANIFEST.MF delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-jsonp/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-jsonp/src/main/resources/META-INF/maven/archetype-metadata.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-jsonp/src/main/resources/META-INF/maven/archetype.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-jsonp/src/main/resources/archetype-resources/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-jsonp/src/main/resources/archetype-resources/src/main/java/HelloworldImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-jsonp/src/main/resources/archetype-resources/src/main/java/HelloworldService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-jsonp/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-jsonp/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-jsonp/src/main/resources/archetype-resources/src/main/webapp/hello.jsp delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-stripes/META-INF/MANIFEST.MF delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-stripes/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-stripes/src/main/resources/META-INF/maven/archetype-metadata.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-stripes/src/main/resources/META-INF/maven/archetype.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-stripes/src/main/resources/archetype-resources/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-stripes/src/main/resources/archetype-resources/src/main/java/sca/HelloworldService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-stripes/src/main/resources/archetype-resources/src/main/java/sca/HelloworldServiceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-stripes/src/main/resources/archetype-resources/src/main/java/stripes/action/BaseActionBean.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-stripes/src/main/resources/archetype-resources/src/main/java/stripes/action/HomeActionBean.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-stripes/src/main/resources/archetype-resources/src/main/resources/StripesResources.properties delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-stripes/src/main/resources/archetype-resources/src/main/resources/log4j.properties delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-stripes/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/jsp/home.jsp delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-stripes/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/jsp/layout.jsp delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-stripes/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/jsp/taglibs.jsp delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-stripes/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-stripes/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-stripes/src/main/resources/archetype-resources/src/main/webapp/index.html delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart/META-INF/MANIFEST.MF delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart/src/main/resources/META-INF/maven/archetype-metadata.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart/src/main/resources/META-INF/maven/archetype.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart/src/main/resources/archetype-resources/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart/src/main/resources/archetype-resources/src/main/java/HelloworldImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart/src/main/resources/archetype-resources/src/main/java/HelloworldService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart/src/main/resources/archetype-resources/src/main/webapp/hello.jsp delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/compliance-tests/assembly/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/compliance-tests/assembly/src/test/java/org/apache/tuscany/sca/otest/TuscanyRuntimeBridge.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/compliance-tests/assembly/src/test/resources/oasis-sca-tests.properties delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/compliance-tests/assembly/src/test/resources/tuscany-oasis-sca-tests-errors.properties delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/compliance-tests/java-caa/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/compliance-tests/java-caa/src/test/java/org/apache/tuscany/sca/otest/TuscanyRuntimeBridge.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/compliance-tests/java-caa/src/test/resources/oasis-sca-tests.properties delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/compliance-tests/java-caa/src/test/resources/tuscany-oasis-sca-tests-errors.properties delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/compliance-tests/java-ci/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/compliance-tests/java-ci/src/test/java/org/apache/tuscany/sca/otest/TuscanyRuntimeBridge.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/compliance-tests/java-ci/src/test/resources/oasis-sca-tests.properties delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/compliance-tests/java-ci/src/test/resources/tuscany-oasis-sca-tests-errors.properties delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/compliance-tests/policy/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/compliance-tests/policy/src/test/java/org/apache/tuscany/sca/otest/TuscanyRuntimeBridge.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/compliance-tests/policy/src/test/resources/oasis-sca-tests.properties delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/compliance-tests/policy/src/test/resources/tuscany-oasis-sca-tests-errors.properties delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/compliance-tests/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/distribution/all/manifests/axiom-api-1.2.7.MF delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/distribution/all/manifests/axiom-api-1.2.8.MF delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/distribution/all/manifests/axis2-kernel-1.5.1.MF delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/distribution/all/manifests/axis2-transport-http-1.5.1.MF delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/distribution/all/manifests/woden-impl-dom-1.0M8.MF delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/distribution/all/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/distribution/all/src/main/assembly/bin-default.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/distribution/all/src/main/assembly/bin-distribution.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/distribution/all/src/main/assembly/src.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/distribution/all/src/main/components/bin-common.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/distribution/all/src/main/components/bin-launcher.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/distribution/all/src/main/components/bin-lib.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/distribution/all/src/main/components/bin-modules.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/distribution/all/src/main/components/bin-samples.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/distribution/all/src/main/components/bin-tracing.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/distribution/all/src/main/release/bin/INSTALL delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/distribution/all/src/main/release/bin/LICENSE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/distribution/all/src/main/release/bin/NOTICE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/distribution/all/src/main/release/bin/README delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/distribution/all/src/main/release/launcher/README delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/distribution/all/src/main/release/launcher/default.config delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/distribution/all/src/main/release/launcher/osgi.config delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/distribution/all/src/main/release/launcher/tuscany.bat delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/distribution/all/src/main/release/launcher/tuscany.sh delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/distribution/all/src/main/release/launcher/unmanaged.config delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/distribution/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/README.txt delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/testing/download-tomcat/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/testing/helloworld-client-webapp/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/testing/helloworld-client-webapp/src/main/java/testing/HelloworldService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/testing/helloworld-client-webapp/src/main/webapp/WEB-INF/web.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/testing/helloworld-client-webapp/src/main/webapp/WEB-INF/web.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/testing/helloworld-client-webapp/src/main/webapp/hello.jsp delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/testing/helloworld-reference-contribution/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/testing/helloworld-reference-contribution/src/main/java/testing/HelloworldRefImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/testing/helloworld-reference-contribution/src/main/java/testing/HelloworldService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/testing/helloworld-reference-contribution/src/main/resources/META-INF/sca-contribution.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/testing/helloworld-reference-contribution/src/main/resources/helloworld.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/testing/helloworld-scaclient-jsp/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/testing/helloworld-scaclient-jsp/src/main/java/testing/HelloworldService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/testing/helloworld-scaclient-jsp/src/main/webapp/META-INF/sca-contribution.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/testing/helloworld-scaclient-jsp/src/main/webapp/WEB-INF/web.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/testing/helloworld-scaclient-jsp/src/main/webapp/hello.jsp delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/testing/helloworld-scaclient-servlet/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/testing/helloworld-scaclient-servlet/src/main/java/testing/HelloworldService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/testing/helloworld-scaclient-servlet/src/main/java/testing/HelloworldServlet.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/testing/helloworld-scaclient-servlet/src/main/webapp/META-INF/sca-contribution.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/testing/helloworld-scaclient-servlet/src/main/webapp/WEB-INF/web.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/testing/helloworld-scaclient-servlet/src/main/webapp/hello.html delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/testing/helloworld-service-contribution/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/testing/helloworld-service-contribution/src/main/java/testing/HelloworldImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/testing/helloworld-service-contribution/src/main/java/testing/HelloworldService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/testing/helloworld-service-contribution/src/main/resources/META-INF/sca-contribution.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/testing/helloworld-service-contribution/src/main/resources/helloworld.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/testing/legal-checks/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/testing/legal-checks/src/test/java/itest/JarsInLICENSETestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/testing/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/tomcat-hook/LICENSE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/tomcat-hook/META-INF/MANIFEST.MF delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/tomcat-hook/NOTICE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/tomcat-hook/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/tomcat-hook/src/main/java/org/apache/tuscany/sca/tomcat/TuscanyAnnotationsProcessor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/tomcat-hook/src/main/java/org/apache/tuscany/sca/tomcat/TuscanyContextConfig.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/tomcat-hook/src/main/java/org/apache/tuscany/sca/tomcat/TuscanyHostConfig.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/tomcat-hook/src/main/java/org/apache/tuscany/sca/tomcat/TuscanyLifecycleListener.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/tomcat-hook/src/main/java/org/apache/tuscany/sca/tomcat/TuscanyStandardContext.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/tomcat-servlet/META-INF/MANIFEST.MF delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/tomcat-servlet/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/tomcat-servlet/src/main/java/org/apache/tuscany/sca/war/Installer.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/tomcat-servlet/src/main/java/org/apache/tuscany/sca/war/InstallerServlet.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/tomcat-war/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/tomcat-war/src/main/assembly/war.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/tomcat-war/src/main/webapp/LICENSE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/tomcat-war/src/main/webapp/NOTICE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/tomcat-war/src/main/webapp/WEB-INF/web.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/tomcat-war/src/main/webapp/installer.jsp delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/features/all/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/features/api/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/features/binding-ws/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/features/core/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/features/ejava/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/features/osgi/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/features/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/features/process/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/features/sdo/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/features/web20/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/features/webapp/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/features/webservice/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/T3558/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/T3558/src/test/java/org/apache/tuscany/sca/itest/t3558/T3558TestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/T3558/src/test/resources/sample-store-all.jar delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/T3558/src/test/resources/sample-store-client.jar delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/T3558/src/test/resources/sample-store.jar delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/base/dependencies/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/base/dependencies/src/test/java/org/apache/tuscany/sca/itest/base/dependencies/ValidateDependenciesTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/base/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/bpel/helloworld-reference/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/bpel/helloworld-reference/src/test/java/greetings/GreetingsService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/bpel/helloworld-reference/src/test/java/greetings/GreetingsServiceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/bpel/helloworld-reference/src/test/java/greetings/GreetingsTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/bpel/helloworld-reference/src/test/java/helloworld/HelloWorldService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/bpel/helloworld-reference/src/test/java/helloworld/HelloWorldServiceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/bpel/helloworld-reference/src/test/java/helloworld/HelloWorldTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/bpel/helloworld-reference/src/test/resources/greetings/greetings.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/bpel/helloworld-reference/src/test/resources/greetings/greetings.wsdl delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/bpel/helloworld-reference/src/test/resources/helloworld/helloworld.bpel delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/bpel/helloworld-reference/src/test/resources/helloworld/helloworld.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/bpel/helloworld-reference/src/test/resources/helloworld/helloworld.wsdl delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/bpel/helloworld-reference/src/test/resources/log4j.properties delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/bpel/helloworld-ws/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/bpel/helloworld-ws/src/test/java/helloworld/HelloWorld.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/bpel/helloworld-ws/src/test/java/helloworld/HelloWorldTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/bpel/helloworld-ws/src/test/resources/helloworld/helloworld.bpel delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/bpel/helloworld-ws/src/test/resources/helloworld/helloworld.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/bpel/helloworld-ws/src/test/resources/helloworld/helloworld.wsdl delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/bpel/helloworld-ws/src/test/resources/log4j.properties delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/bpel/helloworld/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/bpel/helloworld/src/test/java/helloworld/HelloWorld.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/bpel/helloworld/src/test/java/helloworld/HelloWorldTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/bpel/helloworld/src/test/resources/helloworld/helloworld.bpel delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/bpel/helloworld/src/test/resources/helloworld/helloworld.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/bpel/helloworld/src/test/resources/helloworld/helloworld.wsdl delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/bpel/helloworld/src/test/resources/log4j.properties delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/bpel/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/builder/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/java/org/apache/tuscany/sca/itest/builder/ComponentDImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/java/org/apache/tuscany/sca/itest/builder/ComponentDReferenceMultiplicityImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/java/org/apache/tuscany/sca/itest/builder/ComponentEImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/java/org/apache/tuscany/sca/itest/builder/ComponentFImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/java/org/apache/tuscany/sca/itest/builder/Service3.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/java/org/apache/tuscany/sca/itest/builder/Service3a.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/resources/scenario1/META-INF/sca-contribution.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/resources/scenario1/scenario1.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/resources/scenario1/scenario1a.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/resources/scenario10/META-INF/sca-contribution.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/resources/scenario10/scenario10.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/resources/scenario10/scenario10a.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/resources/scenario10/service3.wsdl delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/resources/scenario11/META-INF/sca-contribution.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/resources/scenario11/scenario11.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/resources/scenario11/scenario11a.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/resources/scenario11/service3.wsdl delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/resources/scenario12/META-INF/sca-contribution.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/resources/scenario12/scenario12.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/resources/scenario12/scenario12a.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/resources/scenario13/META-INF/sca-contribution.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/resources/scenario13/scenario13.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/resources/scenario13/scenario13a.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/resources/scenario2/META-INF/sca-contribution.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/resources/scenario2/scenario2.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/resources/scenario2/scenario2a.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/resources/scenario3/META-INF/sca-contribution.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/resources/scenario3/scenario3.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/resources/scenario3/scenario3a.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/resources/scenario4/META-INF/sca-contribution.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/resources/scenario4/scenario4.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/resources/scenario4/scenario4a.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/resources/scenario5/META-INF/sca-contribution.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/resources/scenario5/scenario5.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/resources/scenario5/scenario5a.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/resources/scenario5/scenarios.wsdl delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/resources/scenario6/META-INF/sca-contribution.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/resources/scenario6/scenario6.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/resources/scenario6/scenario6a.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/resources/scenario6/scenarios.wsdl delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/resources/scenario7/META-INF/sca-contribution.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/resources/scenario7/scenario7.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/resources/scenario7/scenario7a.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/resources/scenario7/scenarios.wsdl delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/resources/scenario8/META-INF/sca-contribution.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/resources/scenario8/scenario8.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/resources/scenario8/scenario8a.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/resources/scenario8/scenarios.wsdl delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/resources/scenario9/META-INF/sca-contribution.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/resources/scenario9/scenario9.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/resources/scenario9/scenario9a.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/test/java/org/apache/tuscany/sca/itest/builder/BuilderTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/test/java/org/apache/tuscany/sca/itest/builder/CustomCompositeBuilder.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/test/java/org/apache/tuscany/sca/itest/builder/TestUtils.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/callback-api/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/callback-api/src/main/java/org/apache/tuscany/sca/test/CallBackApiCallBack.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/callback-api/src/main/java/org/apache/tuscany/sca/test/CallBackApiClient.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/callback-api/src/main/java/org/apache/tuscany/sca/test/CallBackApiClientImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/callback-api/src/main/java/org/apache/tuscany/sca/test/CallBackApiService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/callback-api/src/main/java/org/apache/tuscany/sca/test/CallBackApiServiceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/callback-api/src/main/resources/CallBackApiTest.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/callback-api/src/main/resources/META-INF/sca-contribution.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/callback-api/src/test/java/org/apache/tuscany/sca/test/CallBackApiTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/callback-basic-ws/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/callback-basic-ws/src/main/java/org/apache/tuscany/sca/test/CallBackBasicCallBack.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/callback-basic-ws/src/main/java/org/apache/tuscany/sca/test/CallBackBasicClient.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/callback-basic-ws/src/main/java/org/apache/tuscany/sca/test/CallBackBasicClientImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/callback-basic-ws/src/main/java/org/apache/tuscany/sca/test/CallBackBasicService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/callback-basic-ws/src/main/java/org/apache/tuscany/sca/test/CallBackBasicServiceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/callback-basic-ws/src/main/resources/CallBackBasicTest.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/callback-basic-ws/src/main/resources/META-INF/sca-contribution.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/callback-basic-ws/src/test/java/org/apache/tuscany/sca/test/CallBackBasicTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/callback-basic/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/callback-basic/src/main/java/org/apache/tuscany/sca/test/CallBackBasicCallBack.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/callback-basic/src/main/java/org/apache/tuscany/sca/test/CallBackBasicClient.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/callback-basic/src/main/java/org/apache/tuscany/sca/test/CallBackBasicClientImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/callback-basic/src/main/java/org/apache/tuscany/sca/test/CallBackBasicService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/callback-basic/src/main/java/org/apache/tuscany/sca/test/CallBackBasicServiceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/callback-basic/src/main/resources/CallBackBasicTest.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/callback-basic/src/main/resources/META-INF/sca-contribution.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/callback-basic/src/test/java/org/apache/tuscany/sca/test/CallBackBasicTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/callback-complex-type/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/callback-complex-type/src/main/java/org/apache/tuscany/sca/test/CallBackCTypeCallBack.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/callback-complex-type/src/main/java/org/apache/tuscany/sca/test/CallBackCTypeClient.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/callback-complex-type/src/main/java/org/apache/tuscany/sca/test/CallBackCTypeClientImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/callback-complex-type/src/main/java/org/apache/tuscany/sca/test/CallBackCTypeService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/callback-complex-type/src/main/java/org/apache/tuscany/sca/test/CallBackCTypeServiceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/callback-complex-type/src/main/resources/CallBackCTypeClient.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/callback-complex-type/src/main/resources/org/apache/tuscany/sca/test/CallBackCTypeServiceImpl.componentType delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/callback-complex-type/src/test/java/org/apache/tuscany/sca/test/CallBackCTypeTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/callback-multiple-wires/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/callback-multiple-wires/src/main/java/org/apache/tuscany/sca/test/callback/MyClient.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/callback-multiple-wires/src/main/java/org/apache/tuscany/sca/test/callback/MyClientImpl1.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/callback-multiple-wires/src/main/java/org/apache/tuscany/sca/test/callback/MyClientImpl2.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/callback-multiple-wires/src/main/java/org/apache/tuscany/sca/test/callback/MyService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/callback-multiple-wires/src/main/java/org/apache/tuscany/sca/test/callback/MyServiceCallback.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/callback-multiple-wires/src/main/java/org/apache/tuscany/sca/test/callback/MyServiceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/callback-multiple-wires/src/main/resources/CallbackMultiWireTest.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/callback-multiple-wires/src/test/java/org/apache/tuscany/sca/test/callback/CallbackMultiWireTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/callback-separatethread/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/callback-separatethread/src/main/java/org/apache/tuscany/sca/itest/CallBackSeparateThreadClient.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/callback-separatethread/src/main/java/org/apache/tuscany/sca/itest/CallBackSeparateThreadClientImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/callback-separatethread/src/main/java/org/apache/tuscany/sca/itest/EventProcessorCallBack.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/callback-separatethread/src/main/java/org/apache/tuscany/sca/itest/EventProcessorService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/callback-separatethread/src/main/java/org/apache/tuscany/sca/itest/EventProcessorServiceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/callback-separatethread/src/main/resources/CallBackSeparateThreadTest.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/callback-separatethread/src/test/java/org/apache/tuscany/sca/itest/CallBackSeparateThreadTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/callback-two-composites/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/callback-two-composites/src/main/java/org/apache/tuscany/sca/test/CallBackBasicCallBack.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/callback-two-composites/src/main/java/org/apache/tuscany/sca/test/CallBackBasicClient.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/callback-two-composites/src/main/java/org/apache/tuscany/sca/test/CallBackBasicClientImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/callback-two-composites/src/main/java/org/apache/tuscany/sca/test/CallBackBasicService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/callback-two-composites/src/main/java/org/apache/tuscany/sca/test/CallBackBasicServiceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/callback-two-composites/src/main/resources/CallBackReference.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/callback-two-composites/src/main/resources/CallBackService.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/callback-two-composites/src/main/resources/META-INF/sca-contribution.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/callback-two-composites/src/test/java/org/apache/tuscany/sca/test/CallBackTwoCompositesTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/callback-two-nodes/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/callback-two-nodes/src/main/java/org/apache/tuscany/sca/test/CallBackBasicCallBack.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/callback-two-nodes/src/main/java/org/apache/tuscany/sca/test/CallBackBasicClient.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/callback-two-nodes/src/main/java/org/apache/tuscany/sca/test/CallBackBasicClientImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/callback-two-nodes/src/main/java/org/apache/tuscany/sca/test/CallBackBasicService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/callback-two-nodes/src/main/java/org/apache/tuscany/sca/test/CallBackBasicServiceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/callback-two-nodes/src/main/resources/CallBackReference.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/callback-two-nodes/src/main/resources/CallBackService.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/callback-two-nodes/src/main/resources/META-INF/sca-contribution.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/callback-two-nodes/src/test/java/org/apache/tuscany/sca/test/CallBackTwoNodesTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/component-type/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/component-type/src/main/java/calculator/AddService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/component-type/src/main/java/calculator/AddServiceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/component-type/src/main/java/calculator/CalculatorClient.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/component-type/src/main/java/calculator/CalculatorService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/component-type/src/main/java/calculator/CalculatorServiceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/component-type/src/main/java/calculator/DivideService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/component-type/src/main/java/calculator/DivideServiceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/component-type/src/main/java/calculator/MultiplyService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/component-type/src/main/java/calculator/MultiplyServiceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/component-type/src/main/java/calculator/SubtractService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/component-type/src/main/java/calculator/SubtractServiceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/component-type/src/main/resources/Calculator.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/component-type/src/main/resources/calculator/AddServiceImpl.componentType delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/component-type/src/main/resources/calculator/CalculatorServiceImpl.componentType delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/component-type/src/main/resources/calculator/DivideServiceImpl.componentType delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/component-type/src/main/resources/calculator/MultiplyServiceImpl.componentType delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/component-type/src/main/resources/calculator/SubtractServiceImpl.componentType delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/component-type/src/test/java/calculator/CalculatorTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-folder/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-folder/src/test/java/calculator/CalculatorService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-folder/src/test/java/test/ContributionFolderTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-folder/src/test/resources/repository/folderWithJars/Calculator.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-folder/src/test/resources/repository/folderWithJars/META-INF/sca-contribution.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-folder/src/test/resources/repository/folderWithJars/service.jar delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-folder/src/test/resources/repository/folderWithJars/serviceImpl.jar delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-folder/src/test/resources/repository3/contribution.zip delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-import-export/export-composite/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-import-export/export-composite/src/main/java/hello/Hello.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-import-export/export-composite/src/main/java/hello/HelloImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-import-export/export-composite/src/main/resources/META-INF/sca-contribution.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-import-export/export-composite/src/main/resources/hello.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-import-export/export-composite/src/test/java/org/apache/tuscany/sca/test/contribution/HelloTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-import-export/export-java/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-import-export/export-java/src/main/java/helloworld/HelloWorldService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-import-export/export-java/src/main/resources/META-INF/sca-contribution.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-import-export/export-java/src/main/resources/helloworld/HelloWorldImpl.componentType delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-import-export/export-resource/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-import-export/export-resource/src/main/resources/META-INF/sca-contribution.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-import-export/export-resource/src/main/resources/ufservices/store.html delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-import-export/export-wsdl/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-import-export/export-wsdl/src/main/resources/META-INF/sca-contribution.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-import-export/export-wsdl/src/main/resources/helloworld.wsdl delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-import-export/export-wsdl/src/main/resources/helloworld.xsd delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-import-export/import-composite/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-import-export/import-composite/src/main/java/helloworld/HelloWorldImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-import-export/import-composite/src/main/java/helloworld/HelloWorldServer.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-import-export/import-composite/src/main/java/helloworld/HelloWorldService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-import-export/import-composite/src/main/resources/META-INF/sca-contribution.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-import-export/import-composite/src/main/resources/helloworld.wsdl delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-import-export/import-composite/src/main/resources/helloworld.xsd delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-import-export/import-composite/src/main/resources/helloworldws.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-import-export/import-composite/src/test/java/org/apache/tuscany/test/contribution/HelloWorldServerTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-import-export/import-java/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-import-export/import-java/src/main/java/helloworld/HelloWorldImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-import-export/import-java/src/main/resources/META-INF/sca-contribution.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-import-export/import-java/src/main/resources/helloworldws.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-import-export/import-java/src/test/java/org/apache/tuscany/sca/test/contribution/HelloWorldServerTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-import-export/import-resource/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-import-export/import-resource/src/main/resources/META-INF/sca-contribution.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-import-export/import-resource/src/main/resources/store.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-import-export/import-resource/src/test/java/org/apache/tuscany/sca/test/contribution/StoreTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-import-export/import-wsdl/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-import-export/import-wsdl/src/main/java/helloworld/HelloWorldImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-import-export/import-wsdl/src/main/java/helloworld/HelloWorldServer.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-import-export/import-wsdl/src/main/java/helloworld/HelloWorldService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-import-export/import-wsdl/src/main/resources/META-INF/sca-contribution.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-import-export/import-wsdl/src/main/resources/helloworldws.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-import-export/import-wsdl/src/test/java/org/apache/tuscany/sca/test/contribution/HelloWorldServerTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-import-export/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-zip/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-zip/src/test/java/calculator/CalculatorService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-zip/src/test/java/org/apache/tuscany/sca/contribution/zip/ContributionZIPTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-zip/src/test/resources/repository/contribution.zip delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/corba/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/ScenarioFiveTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/ScenarioFourTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/ScenarioOneTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/ScenarioSixTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/ScenarioThreeTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/ScenarioTwoTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/TestCorbaHost.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/TestCorbaHostModuleActivator.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/AnnotatedStruct.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/AnnotatedStructHelper.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/AnnotatedStructHolder.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/Color.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/ColorHelper.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/ColorHolder.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/InnerStruct.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/InnerStructHelper.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/InnerStructHolder.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/InnerUnion.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/InnerUnionHelper.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/InnerUnionHolder.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/LongSequenceHelper.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/LongSequenceHolder.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/RichStruct.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/RichStructHelper.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/RichStructHolder.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/RichUnion.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/RichUnionHelper.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/RichUnionHolder.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/ScenarioOne.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/ScenarioOneHelper.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/ScenarioOneHolder.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/ScenarioOneOperations.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/ScenarioSix.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/ScenarioSixHelper.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/ScenarioSixHolder.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/ScenarioSixOperations.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/ScenarioTwo.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/ScenarioTwoHelper.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/ScenarioTwoHolder.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/ScenarioTwoOperations.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/StringArrayHelper.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/StringArrayHolder.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/StringSequenceHelper.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/StringSequenceHolder.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/TwoDimLongSequenceHelper.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/TwoDimLongSequenceHolder.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/UnexpectedException.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/UnexpectedExceptionHelper.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/UnexpectedExceptionHolder.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/WrongColor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/WrongColorHelper.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/WrongColorHolder.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/_ScenarioOneImplBase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/_ScenarioOneStub.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/_ScenarioSixImplBase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/_ScenarioSixStub.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/_ScenarioTwoImplBase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/_ScenarioTwoStub.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/ScenarioFive.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/ScenarioFiveComponent.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/ScenarioFiveImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/ScenarioFour.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/ScenarioFourComponent.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/ScenarioFourException.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/ScenarioFourImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/ScenarioFourStruct.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/ScenarioOneComponent.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/ScenarioOneServant.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/ScenarioSixServant.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/ScenarioTwoServant.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/TAnnotatedStruct.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/TColor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/TInnerStruct.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/TInnerUnion.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/TRichStruct.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/TRichUnion.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/TScenarioOne.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/TScenarioOneComponent.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/TScenarioOneServant.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/TScenarioSix.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/TScenarioSixComponent.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/TScenarioSixServant.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/TScenarioThree.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/TScenarioThreeComponent.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/TScenarioThreeServant.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/TScenarioTwo.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/TScenarioTwoComponent.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/TScenarioTwoServant.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/resources/META-INF/services/org.apache.tuscany.sca.core.ModuleActivator delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/resources/ScenarioFive.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/resources/ScenarioFour.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/resources/ScenarioOne.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/resources/ScenarioSix.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/resources/ScenarioThree.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/resources/ScenarioTwo.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/resources/itest_scenario.idl delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/resources/scenariofour.xsd delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/AClientService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/AService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/Bean1.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/Bean10.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/Bean11.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/Bean2.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/Bean3.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/Bean31.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/GenericsLocalService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/GenericsService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/GenericsServiceClient.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/HelloLocalServiceSimple.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/HelloServiceSimple.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/HelloServiceSimpleClient.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/PrimitivesLocalService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/PrimitivesService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/PrimitivesServiceClient.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/StandardTypesLocalService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/StandardTypesService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/StandardTypesServiceClient.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/AClientServiceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/AServiceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/GenericsLocalServiceClientImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/GenericsServiceClientImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/GenericsServiceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/GenericsTransformer.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/HelloLocalServiceSimpleClientImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/HelloServiceSimpleClientImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/HelloServiceSimpleImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/PrimitivesLocalServiceClientImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/PrimitivesServiceClientImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/PrimitivesServiceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/StandardTypesLocalServiceClientImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/StandardTypesServiceClientImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/StandardTypesServiceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/StandardTypesTransformer.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/main/resources/aservice.wsdl delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/main/resources/doclitbarewsdl.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/main/resources/generics-service.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/main/resources/helloservice.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/main/resources/primitivesservice.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/main/resources/standard-types-service.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/test/java/org/apache/tuscany/sca/itest/databindings/jaxb/DatabindingTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/test/java/org/apache/tuscany/sca/itest/databindings/jaxb/DocLitBareWsdlTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/test/java/org/apache/tuscany/sca/itest/databindings/jaxb/GenericsDatabindingTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/test/java/org/apache/tuscany/sca/itest/databindings/jaxb/PrimitivesDatabindingTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/test/java/org/apache/tuscany/sca/itest/databindings/jaxb/StandardTypesDatabindingTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-top-down/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-top-down/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/HelloService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-top-down/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/HelloServiceClient.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-top-down/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/PrimitivesService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-top-down/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/PrimitivesServiceClient.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-top-down/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/StandardTypesService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-top-down/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/StandardTypesServiceClient.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-top-down/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/HelloServiceClientImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-top-down/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/HelloServiceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-top-down/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/PrimitivesServiceClientImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-top-down/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/PrimitivesServiceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-top-down/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/StandardTypesServiceClientImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-top-down/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/StandardTypesServiceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-top-down/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/StandardTypesTransformer.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-top-down/src/main/resources/wsdl/wrapped/hello-service.wsdl delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-top-down/src/main/resources/wsdl/wrapped/helloservice.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-top-down/src/main/resources/wsdl/wrapped/primitives-service.wsdl delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-top-down/src/main/resources/wsdl/wrapped/primitivesservice.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-top-down/src/main/resources/wsdl/wrapped/standard-types-service.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-top-down/src/main/resources/wsdl/wrapped/standard-types-service.wsdl delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-top-down/src/test/java/org/apache/tuscany/sca/itest/databindings/jaxb/topdown/DatabindingTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-top-down/src/test/java/org/apache/tuscany/sca/itest/databindings/jaxb/topdown/PrimitivesDatabindingTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-top-down/src/test/java/org/apache/tuscany/sca/itest/databindings/jaxb/topdown/StandardTypesDatabindingTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/distribution/bin-distro-unzip/build.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/distribution/bin-distro-unzip/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/distribution/contribution-binding-rmi-calculator/build.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/distribution/contribution-binding-rmi-calculator/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/distribution/contribution-binding-sca-calculator/build.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/distribution/contribution-binding-sca-calculator/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/distribution/contribution-binding-ws-calculator/build.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/distribution/contribution-binding-ws-calculator/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/distribution/contribution-implementation-java-calculator/build.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/distribution/contribution-implementation-java-calculator/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/distribution/launcher-embedded-jse/build.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/distribution/launcher-embedded-jse/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/distribution/launcher-embedded-osgi/build.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/distribution/launcher-embedded-osgi/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/distribution/legal-checks/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/distribution/legal-checks/src/test/java/itest/JarsInLICENSETestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/distribution/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/domains/distributed/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/domains/distributed/src/test/java/itest/Helloworld.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/domains/distributed/src/test/java/itest/StandaloneTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/domains/helloworld/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/domains/helloworld/src/main/java/itest/HelloworldImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/domains/helloworld/src/main/resources/META-INF/sca-contribution.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/domains/helloworld/src/main/resources/helloworld.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/domains/interfaces/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/domains/interfaces/src/main/java/itest/Helloworld.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/domains/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/domains/standalone/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/domains/standalone/src/test/java/itest/StandaloneTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/endpoints/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/endpoints/src/test/java/helloworld/HelloWorldImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/endpoints/src/test/java/helloworld/HelloWorldService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/endpoints/src/test/java/test/EndpointsTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/endpoints/src/test/java/test/NestedEndpointsTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/endpoints/src/test/java/test/Utils.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/endpoints/src/test/resources/helloworld.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/endpoints/src/test/resources/nested.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/exceptions/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/exceptions/src/main/java/org/apache/tuscany/sca/test/exceptions/Checked.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/exceptions/src/main/java/org/apache/tuscany/sca/test/exceptions/ExceptionHandler.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/exceptions/src/main/java/org/apache/tuscany/sca/test/exceptions/ExceptionRemoteThrower.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/exceptions/src/main/java/org/apache/tuscany/sca/test/exceptions/ExceptionThrower.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/exceptions/src/main/java/org/apache/tuscany/sca/test/exceptions/UnChecked.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/exceptions/src/main/java/org/apache/tuscany/sca/test/exceptions/impl/ExceptionHandlerImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/exceptions/src/main/java/org/apache/tuscany/sca/test/exceptions/impl/ExceptionRemoteThrowerImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/exceptions/src/main/java/org/apache/tuscany/sca/test/exceptions/impl/ExceptionThrowerImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/exceptions/src/main/java/org/apache/tuscany/sca/test/exceptions/impl/RemoteExceptionHandlerImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/exceptions/src/main/resources/ExceptionTest.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/exceptions/src/test/java/org/apache/tuscany/sca/test/exceptions/ExceptionsTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/java/bigbank/stockquote/StockQuoteImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/java/bigbank/stockquote/StockQuoteService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/java/calculator/AddService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/java/calculator/AddServiceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/java/calculator/CalculatorService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/java/calculator/CalculatorServiceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/java/calculator/DivideService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/java/calculator/DivideServiceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/java/calculator/MultiplyService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/java/calculator/MultiplyServiceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/java/calculator/SubtractService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/java/calculator/SubtractServiceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/java/calculator/security/CalculatorCallbackHandler.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/java/calculator/security/JaasLoginModule.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/java/calculator/security/UserPrincipal.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/java/context/access/SCAApplicationContextProvider.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/java/helloworld/HelloWorld.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/java/helloworld/HelloWorldImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/java/helloworld/HelloWorldProxy.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/java/mock/TestBean.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/java/mock/TestBeanImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/java/mock/TestHelloWorldBean.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/java/mock/TestReference.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/java/mock/TestReferenceBean.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/java/mock/TestSCAPropertyBean.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/java/spring/annotations/CalculatorServiceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/resources/context/access/CalculatorService-context.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/resources/context/access/ContextAccess.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/resources/context/imports/ContextImports.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/resources/context/imports/META-INF/spring/CalculatorService-context.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/resources/context/imports/META-INF/spring/SpringImport-context.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/resources/context/multiple/MultipleContext.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/resources/context/multiple/springapp/META-INF/MANIFEST.MF delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/resources/context/multiple/springapp/META-INF/spring/SpringHelloWorld-context.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/resources/context/multiple/springapp/META-INF/spring/StockQuoteService-context.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/resources/context/multiple/springapp/META-INF/spring/beanRefContext.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/resources/implementation/policies/CalculatorJass.config delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/resources/implementation/policies/CalculatorLogMessages.properties delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/resources/implementation/policies/ImplementationPolicies.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/resources/implementation/policies/META-INF/definitions.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/resources/implementation/policies/META-INF/spring/CalculatorService-context.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/resources/location/folder/SpringFolderLocation.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/resources/location/folder/springapp/META-INF/MANIFEST.MF delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/resources/location/folder/springapp/META-INF/spring/SpringSCAProperty-context.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/resources/location/jar/SpringJarLocation.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/resources/location/jar/spring-context.jar delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/resources/org/apache/tuscany/sca/itest/spring/META-INF/spring/SpringDelegationHelloWorld-context.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/resources/org/apache/tuscany/sca/itest/spring/META-INF/spring/SpringHelloWorld-context.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/resources/org/apache/tuscany/sca/itest/spring/SpringDelegationHelloWorld.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/resources/org/apache/tuscany/sca/itest/spring/SpringHelloWorld.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/resources/sca/references/META-INF/spring/SpringExplicitReference-context.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/resources/sca/references/META-INF/spring/SpringImplicitReference-context.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/resources/sca/references/SpringExplicitReference.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/resources/sca/references/SpringImplicitReference.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/resources/sca/services/META-INF/spring/SpringExplicitService-context.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/resources/sca/services/META-INF/spring/SpringImplicitService-context.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/resources/sca/services/SpringExplicitService.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/resources/sca/services/SpringImplicitService.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/resources/spring/annotations/Calculator.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/resources/spring/annotations/CalculatorService-context.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/test/java/context/access/CalculatorClient.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/test/java/context/access/ContextAccessTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/test/java/context/imports/CalculatorClient.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/test/java/context/imports/ContextImportsTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/test/java/context/multiple/MultipleContextTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/test/java/context/multiple/StockQuoteServer.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/test/java/implementation/policies/CalculatorClient.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/test/java/implementation/policies/ImplementationPoliciesTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/test/java/location/folder/SpringFolderLocationTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/test/java/location/jar/SpringJarLocationTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/test/java/org/apache/tuscany/sca/itest/spring/AbstractHelloWorldTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/test/java/org/apache/tuscany/sca/itest/spring/AbstractSCATestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/test/java/org/apache/tuscany/sca/itest/spring/HelloWorld.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/test/java/org/apache/tuscany/sca/itest/spring/HelloWorldProxy.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/test/java/org/apache/tuscany/sca/itest/spring/SpringDelegationHelloWorldTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/test/java/org/apache/tuscany/sca/itest/spring/SpringHelloWorldTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/test/java/org/apache/tuscany/sca/itest/spring/TestHelloWorldBean.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/test/java/org/apache/tuscany/sca/itest/spring/TestHelloWorldDelegatorBean.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/test/java/sca/references/SpringExplicitReferenceTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/test/java/sca/references/SpringImplicitReferenceTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/test/java/sca/services/SpringExplicitServiceTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/test/java/sca/services/SpringImplicitServiceTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/test/java/spring/annotations/CalculatorClient.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/test/java/spring/annotations/SpringAnnotationsTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/import-export/exports/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/import-export/exports/src/main/java/org/apache/tuscany/sca/itest/exports/Helloworld.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/import-export/exports/src/main/resources/META-INF/sca-contribution.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/import-export/imports/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/import-export/imports/src/main/java/org/apache/tuscany/sca/itest/imports/HelloworldImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/import-export/imports/src/main/resources/Helloworld.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/import-export/imports/src/main/resources/META-INF/sca-contribution.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/import-export/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/import-export/tests/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/import-export/tests/src/test/java/org/apache/tuscany/sca/itests/TestTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/interfaces/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/interfaces/src/main/java/org/apache/tuscany/sca/itest/interfaces/LocalCallbackInterface.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/interfaces/src/main/java/org/apache/tuscany/sca/itest/interfaces/LocalClientComponent.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/interfaces/src/main/java/org/apache/tuscany/sca/itest/interfaces/LocalClientComponentImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/interfaces/src/main/java/org/apache/tuscany/sca/itest/interfaces/LocalServiceComponent.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/interfaces/src/main/java/org/apache/tuscany/sca/itest/interfaces/LocalServiceComponentImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/interfaces/src/main/java/org/apache/tuscany/sca/itest/interfaces/ParameterObject.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/interfaces/src/main/java/org/apache/tuscany/sca/itest/interfaces/RemoteCallbackInterface.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/interfaces/src/main/java/org/apache/tuscany/sca/itest/interfaces/RemoteClientComponent.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/interfaces/src/main/java/org/apache/tuscany/sca/itest/interfaces/RemoteClientComponentImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/interfaces/src/main/java/org/apache/tuscany/sca/itest/interfaces/RemoteServiceComponent.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/interfaces/src/main/java/org/apache/tuscany/sca/itest/interfaces/RemoteServiceComponentImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/interfaces/src/main/resources/org/apache/tuscany/sca/itest/interfaces/invalid/InvalidRemoteAttribute.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/interfaces/src/main/resources/org/apache/tuscany/sca/itest/interfaces/valid/InterfacesTest.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/interfaces/src/test/java/org/apache/tuscany/sca/itest/interfaces/InterfacesTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/interfaces/src/test/java/org/apache/tuscany/sca/itest/interfaces/InvalidRemoteAttributeTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jaxws-asyncclient/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jaxws-asyncclient/src/main/java/stock/StockQuote.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jaxws-asyncclient/src/main/java/stock/StockQuoteClient.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jaxws-asyncclient/src/main/java/stock/StockQuoteImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jaxws-asyncclient/src/main/java/stock/StockQuoteRef.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jaxws-asyncclient/src/main/resources/META-INF/sca-contribution.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jaxws-asyncclient/src/main/resources/StockQuote.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jaxws-asyncclient/src/test/java/itest/AsyncServiceTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jaxws/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jaxws/src/test/java/stock/AsyncServiceTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jaxws/src/test/java/stock/StockQuote.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jaxws/src/test/java/stock/StockQuoteImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jaxws/src/test/resources/StockQuote.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/DynamicReplyQ/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/DynamicReplyQ/src/main/java/org/apache/tuscany/sca/binding/jms/HelloWorldClientImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/DynamicReplyQ/src/main/java/org/apache/tuscany/sca/binding/jms/HelloWorldService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/DynamicReplyQ/src/main/java/org/apache/tuscany/sca/binding/jms/HelloWorldServiceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/DynamicReplyQ/src/main/resources/META-INF/sca-contribution.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/DynamicReplyQ/src/main/resources/dynamic/client.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/DynamicReplyQ/src/main/resources/jndi.properties delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/DynamicReplyQ/src/main/resources/simple/service.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/DynamicReplyQ/src/test/java/org/apache/tuscany/sca/binding/jms/DynamicReplyQTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/args/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/args/src/main/java/org/apache/tuscany/sca/binding/jms/ClientImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/args/src/main/java/org/apache/tuscany/sca/binding/jms/MyService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/args/src/main/java/org/apache/tuscany/sca/binding/jms/ServiceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/args/src/main/resources/META-INF/sca-contribution.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/args/src/main/resources/jndi.properties delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/args/src/main/resources/selectors/selectors.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/args/src/test/java/org/apache/tuscany/sca/binding/jms/ArgsTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/callbacks/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/callbacks/src/main/java/org/apache/tuscany/sca/binding/jms/JMSClient.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/callbacks/src/main/java/org/apache/tuscany/sca/binding/jms/JMSClientImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/callbacks/src/main/java/org/apache/tuscany/sca/binding/jms/JMSService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/callbacks/src/main/java/org/apache/tuscany/sca/binding/jms/JMSServiceCallback.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/callbacks/src/main/java/org/apache/tuscany/sca/binding/jms/JMSServiceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/callbacks/src/main/resources/META-INF/sca-contribution.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/callbacks/src/main/resources/jndi.properties delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/callbacks/src/main/resources/simple/client.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/callbacks/src/main/resources/simple/tempq.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/callbacks/src/test/java/org/apache/tuscany/sca/binding/jms/CallbackTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/callbacks/src/test/java/org/apache/tuscany/sca/binding/jms/TempCallbackQTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/defaults/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/defaults/src/main/java/org/apache/tuscany/sca/binding/jms/HelloWorldClientImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/defaults/src/main/java/org/apache/tuscany/sca/binding/jms/HelloWorldService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/defaults/src/main/java/org/apache/tuscany/sca/binding/jms/HelloWorldServiceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/defaults/src/main/resources/META-INF/sca-contribution.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/defaults/src/main/resources/defaults/client.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/defaults/src/main/resources/defaults/service.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/defaults/src/main/resources/jndi.properties delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/defaults/src/test/java/org/apache/tuscany/sca/binding/jms/DefaultsTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/definitions/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/definitions/src/main/java/org/apache/tuscany/sca/binding/jms/OneWayClientImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/definitions/src/main/java/org/apache/tuscany/sca/binding/jms/OneWayService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/definitions/src/main/java/org/apache/tuscany/sca/binding/jms/OneWayServiceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/definitions/src/main/resources/META-INF/sca-contribution.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/definitions/src/main/resources/definitions.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/definitions/src/main/resources/definitions/definitions.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/definitions/src/main/resources/jndi.properties delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/definitions/src/test/java/org/apache/tuscany/sca/binding/jms/DefinitionsTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/exceptions/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/exceptions/src/main/java/org/apache/tuscany/sca/binding/jms/CheckedExcpetion.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/exceptions/src/main/java/org/apache/tuscany/sca/binding/jms/CheckedExcpetion2Args.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/exceptions/src/main/java/org/apache/tuscany/sca/binding/jms/CheckedExcpetionChained.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/exceptions/src/main/java/org/apache/tuscany/sca/binding/jms/CheckedExcpetionNoArgs.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/exceptions/src/main/java/org/apache/tuscany/sca/binding/jms/ExceptionService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/exceptions/src/main/java/org/apache/tuscany/sca/binding/jms/ExceptionServiceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/exceptions/src/main/resources/META-INF/sca-contribution.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/exceptions/src/main/resources/exceptions/service.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/exceptions/src/main/resources/jndi.properties delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/exceptions/src/test/java/org/apache/tuscany/sca/binding/jms/ExceptionsTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/exceptions1/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/exceptions1/src/main/java/org/apache/tuscany/sca/binding/jms/CheckedExcpetion.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/exceptions1/src/main/java/org/apache/tuscany/sca/binding/jms/CheckedExcpetion2Args.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/exceptions1/src/main/java/org/apache/tuscany/sca/binding/jms/CheckedExcpetionChained.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/exceptions1/src/main/java/org/apache/tuscany/sca/binding/jms/CheckedExcpetionNoArgs.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/exceptions1/src/main/java/org/apache/tuscany/sca/binding/jms/ExceptionService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/exceptions1/src/main/java/org/apache/tuscany/sca/binding/jms/ExceptionServiceClient.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/exceptions1/src/main/java/org/apache/tuscany/sca/binding/jms/ExceptionServiceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/exceptions1/src/main/resources/META-INF/sca-contribution.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/exceptions1/src/main/resources/exceptions/client.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/exceptions1/src/main/resources/exceptions/service.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/exceptions1/src/main/resources/jndi.properties delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/exceptions1/src/test/java/org/apache/tuscany/sca/binding/jms/ExceptionsTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/externalBroker/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/externalBroker/src/main/java/org/apache/tuscany/sca/binding/jms/HelloWorldClientImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/externalBroker/src/main/java/org/apache/tuscany/sca/binding/jms/HelloWorldService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/externalBroker/src/main/java/org/apache/tuscany/sca/binding/jms/HelloWorldServiceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/externalBroker/src/main/resources/META-INF/sca-contribution.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/externalBroker/src/main/resources/external/client.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/externalBroker/src/main/resources/external/service.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/externalBroker/src/main/resources/jndi.properties delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/externalBroker/src/test/java/org/apache/tuscany/sca/binding/jms/ExternalBrokerTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsbytes/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsbytes/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/CheckedException.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsbytes/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/HelloWorldReference.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsbytes/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/HelloWorldReferenceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsbytes/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/HelloWorldService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsbytes/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/HelloWorldServiceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsbytes/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/HelloWorldServiceReference.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsbytes/src/main/resources/META-INF/sca-contribution.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsbytes/src/main/resources/jmsbytes/helloworld.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsbytes/src/main/resources/jndi.properties delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsbytes/src/test/java/org/apache/tuscany/sca/binding/jms/format/FormatJMSBytesTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsbytesxml/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsbytesxml/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytesxml/helloworld/CheckedException.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsbytesxml/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytesxml/helloworld/HelloWorldReference.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsbytesxml/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytesxml/helloworld/HelloWorldReferenceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsbytesxml/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytesxml/helloworld/HelloWorldService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsbytesxml/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytesxml/helloworld/HelloWorldServiceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsbytesxml/src/main/resources/META-INF/sca-contribution.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsbytesxml/src/main/resources/jmsbytesxml/helloworld.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsbytesxml/src/main/resources/jndi.properties delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsbytesxml/src/test/java/org/apache/tuscany/sca/binding/jms/format/FormatJMSBytesXMLTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsbytesxml/src/test/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/CheckedException.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsbytesxml/src/test/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/HelloWorldReference.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsbytesxml/src/test/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/HelloWorldReferenceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsbytesxml/src/test/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/HelloWorldService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsbytesxml/src/test/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/HelloWorldServiceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsbytesxml/src/test/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/HelloWorldServiceReference.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsdefault/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsdefault/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/CheckedException.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsdefault/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/HelloWorldReference.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsdefault/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/HelloWorldReferenceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsdefault/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/HelloWorldService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsdefault/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/HelloWorldServiceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsdefault/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/HelloWorldServiceReference.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsdefault/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsdefault/helloworld/CheckedException.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsdefault/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsdefault/helloworld/HelloWorldReference.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsdefault/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsdefault/helloworld/HelloWorldReferenceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsdefault/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsdefault/helloworld/HelloWorldService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsdefault/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsdefault/helloworld/HelloWorldServiceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsdefault/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsdefault/helloworld/Person.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsdefault/src/main/resources/META-INF/sca-contribution.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsdefault/src/main/resources/jmsdefault/helloworld.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsdefault/src/main/resources/jmsdefault/helloworld.wsdl delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsdefault/src/main/resources/jndi.properties delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsdefault/src/test/java/org/apache/tuscany/sca/binding/jms/format/FormatJMSDefaultTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsmessage/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsmessage/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/CheckedException.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsmessage/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/HelloWorldReference.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsmessage/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/HelloWorldReferenceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsmessage/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/HelloWorldService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsmessage/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/HelloWorldServiceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsmessage/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/HelloWorldServiceReference.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsmessage/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsmessage/helloworld/HelloWorldReference.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsmessage/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsmessage/helloworld/HelloWorldReferenceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsmessage/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsmessage/helloworld/HelloWorldService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsmessage/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsmessage/helloworld/HelloWorldServiceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsmessage/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsmessage/helloworld/HelloWorldServiceReferenceSide.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsmessage/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsmessage/helloworld/README delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsmessage/src/main/resources/META-INF/sca-contribution.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsmessage/src/main/resources/jmsmessage/helloworld.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsmessage/src/main/resources/jmsmessage/helloworld.wsdl delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsmessage/src/main/resources/jndi.properties delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsmessage/src/test/java/org/apache/tuscany/sca/binding/jms/format/FormatJMSMessageTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsobject/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsobject/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/CheckedException.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsobject/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/HelloWorldReference.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsobject/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/HelloWorldReferenceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsobject/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/HelloWorldService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsobject/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/HelloWorldServiceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsobject/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/HelloWorldServiceReference.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsobject/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsobject/helloworld/CheckedException.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsobject/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsobject/helloworld/HelloWorldReference.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsobject/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsobject/helloworld/HelloWorldReferenceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsobject/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsobject/helloworld/HelloWorldService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsobject/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsobject/helloworld/HelloWorldServiceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsobject/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsobject/helloworld/Person.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsobject/src/main/resources/META-INF/sca-contribution.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsobject/src/main/resources/jmsobject/helloworld.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsobject/src/main/resources/jmsobject/helloworld.wsdl delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsobject/src/main/resources/jndi.properties delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsobject/src/test/java/org/apache/tuscany/sca/binding/jms/format/FormatJMSObjectTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstext/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstext/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/CheckedException.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstext/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/HelloWorldReference.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstext/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/HelloWorldReferenceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstext/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/HelloWorldService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstext/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/HelloWorldServiceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstext/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/HelloWorldServiceReference.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstext/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmstext/helloworld/CheckedException.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstext/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmstext/helloworld/HelloWorldReference.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstext/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmstext/helloworld/HelloWorldReferenceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstext/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmstext/helloworld/HelloWorldService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstext/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmstext/helloworld/HelloWorldServiceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstext/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmstext/helloworld/HelloWorldServiceReference.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstext/src/main/resources/META-INF/sca-contribution.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstext/src/main/resources/jmstext/helloworld.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstext/src/main/resources/jndi.properties delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstext/src/test/java/org/apache/tuscany/sca/binding/jms/format/FormatJMSTextTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxml/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxml/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/CheckedException.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxml/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/HelloWorldReference.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxml/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/HelloWorldReferenceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxml/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/HelloWorldService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxml/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/HelloWorldServiceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxml/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/HelloWorldServiceReference.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxml/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmstextxml/helloworld/CheckedException.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxml/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmstextxml/helloworld/HelloWorldReference.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxml/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmstextxml/helloworld/HelloWorldReferenceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxml/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmstextxml/helloworld/HelloWorldService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxml/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmstextxml/helloworld/HelloWorldServiceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxml/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmstextxml/helloworld/Person.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxml/src/main/resources/META-INF/sca-contribution.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxml/src/main/resources/jmstextxml/helloworld.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxml/src/main/resources/jmstextxml/helloworld.wsdl delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxml/src/main/resources/jndi.properties delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxml/src/test/java/org/apache/tuscany/sca/binding/jms/format/FormatJMSTextXMLTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/CheckedException.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/HelloWorldReference.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/HelloWorldReferenceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/HelloWorldService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/HelloWorldServiceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/HelloWorldServiceReference.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytesxml/helloworld/CheckedException.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytesxml/helloworld/HelloWorldReference.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytesxml/helloworld/HelloWorldReferenceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytesxml/helloworld/HelloWorldService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytesxml/helloworld/HelloWorldServiceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsdefault/helloworld/CheckedException.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsdefault/helloworld/HelloWorldReference.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsdefault/helloworld/HelloWorldReferenceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsdefault/helloworld/HelloWorldService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsdefault/helloworld/HelloWorldServiceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsdefault/helloworld/Person.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsmessage/helloworld/HelloWorldReference.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsmessage/helloworld/HelloWorldReferenceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsmessage/helloworld/HelloWorldService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsmessage/helloworld/HelloWorldServiceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsmessage/helloworld/HelloWorldServiceReferenceSide.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsmessage/helloworld/README delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsobject/helloworld/CheckedException.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsobject/helloworld/HelloWorldReference.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsobject/helloworld/HelloWorldReferenceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsobject/helloworld/HelloWorldService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsobject/helloworld/HelloWorldServiceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsobject/helloworld/Person.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmstext/helloworld/CheckedException.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmstext/helloworld/HelloWorldReference.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmstext/helloworld/HelloWorldReferenceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmstext/helloworld/HelloWorldService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmstext/helloworld/HelloWorldServiceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmstext/helloworld/HelloWorldServiceReference.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmstextxml/helloworld/CheckedException.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmstextxml/helloworld/HelloWorldReference.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmstextxml/helloworld/HelloWorldReferenceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmstextxml/helloworld/HelloWorldService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmstextxml/helloworld/HelloWorldServiceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmstextxml/helloworld/Person.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmstextxmlinjmsobjectout/helloworld/HelloWorldReferenceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmstextxmlinjmsobjectout/helloworld/HelloWorldService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmstextxmlinjmsobjectout/helloworld/HelloWorldServiceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmstextxmlinjmsobjectout/helloworld/Person.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/resources/META-INF/sca-contribution.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/resources/jmstextxmlinjmsobjectout/helloworld.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/resources/jmstextxmlinjmsobjectout/helloworld.wsdl delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/resources/jndi.properties delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/test/java/org/apache/tuscany/sca/binding/jms/format/FormatJMSTextXMLInJMSObjectOutTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/non-sca-client/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/non-sca-client/src/main/java/org/apache/tuscany/sca/binding/jms/OneWayObjectService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/non-sca-client/src/main/java/org/apache/tuscany/sca/binding/jms/OneWayObjectServiceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/non-sca-client/src/main/java/org/apache/tuscany/sca/binding/jms/OneWayService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/non-sca-client/src/main/java/org/apache/tuscany/sca/binding/jms/OneWayServiceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/non-sca-client/src/main/resources/META-INF/sca-contribution.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/non-sca-client/src/main/resources/jndi.properties delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/non-sca-client/src/main/resources/nonSCAclient/service.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/non-sca-client/src/test/java/org/apache/tuscany/sca/binding/jms/NonSCAClientTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/noreplyto/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/noreplyto/src/main/java/org/apache/tuscany/sca/binding/jms/HelloWorldService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/noreplyto/src/main/java/org/apache/tuscany/sca/binding/jms/HelloWorldServiceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/noreplyto/src/main/resources/META-INF/sca-contribution.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/noreplyto/src/main/resources/jndi.properties delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/noreplyto/src/main/resources/service.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/noreplyto/src/test/java/org/apache/tuscany/sca/binding/jms/NoReplyToTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/nulls/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/nulls/src/main/java/org/apache/tuscany/sca/binding/jms/ClientImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/nulls/src/main/java/org/apache/tuscany/sca/binding/jms/MyService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/nulls/src/main/java/org/apache/tuscany/sca/binding/jms/ServiceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/nulls/src/main/resources/META-INF/sca-contribution.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/nulls/src/main/resources/jndi.properties delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/nulls/src/main/resources/nulls.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/nulls/src/test/java/org/apache/tuscany/sca/binding/jms/NullsTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/oneway-nocf/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/oneway-nocf/src/main/java/org/apache/tuscany/sca/binding/jms/OneWayClientImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/oneway-nocf/src/main/java/org/apache/tuscany/sca/binding/jms/OneWayService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/oneway-nocf/src/main/java/org/apache/tuscany/sca/binding/jms/OneWayServiceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/oneway-nocf/src/main/resources/META-INF/sca-contribution.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/oneway-nocf/src/main/resources/jndi.properties delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/oneway-nocf/src/main/resources/oneway/OneWayClient.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/oneway-nocf/src/main/resources/oneway/OneWayService.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/oneway-nocf/src/test/java/org/apache/tuscany/sca/binding/jms/OneWayTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/oneway/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/oneway/src/main/java/org/apache/tuscany/sca/binding/jms/OneWayClientImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/oneway/src/main/java/org/apache/tuscany/sca/binding/jms/OneWayObjectService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/oneway/src/main/java/org/apache/tuscany/sca/binding/jms/OneWayObjectServiceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/oneway/src/main/java/org/apache/tuscany/sca/binding/jms/OneWayService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/oneway/src/main/java/org/apache/tuscany/sca/binding/jms/OneWayServiceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/oneway/src/main/resources/META-INF/sca-contribution.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/oneway/src/main/resources/jndi.properties delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/oneway/src/main/resources/oneway/OneWayClient.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/oneway/src/main/resources/oneway/OneWayService.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/oneway/src/test/java/org/apache/tuscany/sca/binding/jms/OneWayTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/policy-headers/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/policy-headers/src/main/java/org/apache/tuscany/sca/binding/jms/JMSClient.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/policy-headers/src/main/java/org/apache/tuscany/sca/binding/jms/MsgClient.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/policy-headers/src/main/java/org/apache/tuscany/sca/binding/jms/MsgClientImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/policy-headers/src/main/java/org/apache/tuscany/sca/binding/jms/MsgClientService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/policy-headers/src/main/java/org/apache/tuscany/sca/binding/jms/MsgService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/policy-headers/src/main/java/org/apache/tuscany/sca/binding/jms/MsgServiceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/policy-headers/src/main/resources/META-INF/definitions.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/policy-headers/src/main/resources/META-INF/sca-contribution.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/policy-headers/src/main/resources/jndi.properties delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/policy-headers/src/main/resources/policyHeaders/policyHeaders.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/policy-headers/src/test/java/org/apache/tuscany/sca/binding/jms/PolicyHeadersTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/properties/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/properties/src/main/java/org/apache/tuscany/sca/binding/jms/JMSClient.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/properties/src/main/java/org/apache/tuscany/sca/binding/jms/MsgClient.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/properties/src/main/java/org/apache/tuscany/sca/binding/jms/MsgClientImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/properties/src/main/java/org/apache/tuscany/sca/binding/jms/MsgClientService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/properties/src/main/java/org/apache/tuscany/sca/binding/jms/MsgService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/properties/src/main/java/org/apache/tuscany/sca/binding/jms/MsgServiceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/properties/src/main/resources/META-INF/sca-contribution.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/properties/src/main/resources/jndi.properties delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/properties/src/main/resources/properties/properties.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/properties/src/test/java/org/apache/tuscany/sca/binding/jms/PropertiesTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/responsecf/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/responsecf/src/main/java/org/apache/tuscany/sca/binding/jms/HelloWorldClientImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/responsecf/src/main/java/org/apache/tuscany/sca/binding/jms/HelloWorldService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/responsecf/src/main/java/org/apache/tuscany/sca/binding/jms/HelloWorldServiceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/responsecf/src/main/resources/META-INF/sca-contribution.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/responsecf/src/main/resources/cf/client.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/responsecf/src/main/resources/cf/service.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/responsecf/src/main/resources/jndi.properties delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/responsecf/src/test/java/org/apache/tuscany/sca/binding/jms/ResponseCFTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/rpc/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/rpc/src/main/java/org/apache/tuscany/sca/binding/jms/HelloWorldClientImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/rpc/src/main/java/org/apache/tuscany/sca/binding/jms/HelloWorldService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/rpc/src/main/java/org/apache/tuscany/sca/binding/jms/HelloWorldServiceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/rpc/src/main/resources/META-INF/sca-contribution.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/rpc/src/main/resources/jndi.properties delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/rpc/src/main/resources/simple/client.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/rpc/src/main/resources/simple/service.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/rpc/src/test/java/org/apache/tuscany/sca/binding/jms/RPCTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/selectors/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/selectors/src/main/java/org/apache/tuscany/sca/binding/jms/ClientImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/selectors/src/main/java/org/apache/tuscany/sca/binding/jms/SelectorService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/selectors/src/main/java/org/apache/tuscany/sca/binding/jms/SelectorServiceImpl1.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/selectors/src/main/java/org/apache/tuscany/sca/binding/jms/SelectorServiceImpl2.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/selectors/src/main/java/org/apache/tuscany/sca/binding/jms/SelectorServiceImpl3.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/selectors/src/main/java/org/apache/tuscany/sca/binding/jms/operationselector/jmsdefault/HelloWorldReference.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/selectors/src/main/java/org/apache/tuscany/sca/binding/jms/operationselector/jmsdefault/HelloWorldReferenceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/selectors/src/main/java/org/apache/tuscany/sca/binding/jms/operationselector/jmsdefault/HelloWorldService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/selectors/src/main/java/org/apache/tuscany/sca/binding/jms/operationselector/jmsdefault/HelloWorldServiceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/selectors/src/main/java/org/apache/tuscany/sca/binding/jms/operationselector/jmsuserprop/HelloWorldReference.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/selectors/src/main/java/org/apache/tuscany/sca/binding/jms/operationselector/jmsuserprop/HelloWorldReferenceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/selectors/src/main/java/org/apache/tuscany/sca/binding/jms/operationselector/jmsuserprop/HelloWorldService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/selectors/src/main/java/org/apache/tuscany/sca/binding/jms/operationselector/jmsuserprop/HelloWorldServiceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/selectors/src/main/resources/META-INF/sca-contribution.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/selectors/src/main/resources/jmsdefault/helloworld.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/selectors/src/main/resources/jmsuserprop/helloworld.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/selectors/src/main/resources/jndi.properties delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/selectors/src/main/resources/selectors/selectors.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/selectors/src/test/java/org/apache/tuscany/sca/binding/jms/OperationselectorJMSDefaultTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/selectors/src/test/java/org/apache/tuscany/sca/binding/jms/OperationselectorJMSUserPropTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/selectors/src/test/java/org/apache/tuscany/sca/binding/jms/SelectorsTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/topics/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/topics/src/main/java/org/apache/tuscany/sca/binding/jms/OneWayClientImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/topics/src/main/java/org/apache/tuscany/sca/binding/jms/OneWayService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/topics/src/main/java/org/apache/tuscany/sca/binding/jms/OneWayServiceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/topics/src/main/resources/META-INF/sca-contribution.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/topics/src/main/resources/jndi.properties delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/topics/src/main/resources/topics/TopicsClient.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/topics/src/main/resources/topics/TopicsService.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/topics/src/test/java/org/apache/tuscany/sca/binding/jms/TopicsTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/ttl/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/ttl/src/main/java/itest/MockInitialContextFactory.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/ttl/src/main/java/org/apache/tuscany/sca/binding/jms/ClientIface.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/ttl/src/main/java/org/apache/tuscany/sca/binding/jms/ClientImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/ttl/src/main/resources/META-INF/sca-contribution.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/ttl/src/main/resources/jndi.properties delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/ttl/src/main/resources/ttl.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/ttl/src/test/java/org/apache/tuscany/sca/binding/jms/TTLTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/uri-rpc/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/uri-rpc/src/main/java/org/apache/tuscany/sca/binding/jms/HelloWorldClientImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/uri-rpc/src/main/java/org/apache/tuscany/sca/binding/jms/HelloWorldService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/uri-rpc/src/main/java/org/apache/tuscany/sca/binding/jms/HelloWorldServiceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/uri-rpc/src/main/resources/META-INF/sca-contribution.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/uri-rpc/src/main/resources/jndi.properties delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/uri-rpc/src/main/resources/simple/service.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/uri-rpc/src/main/resources/simple/uriclient.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/jms/uri-rpc/src/test/java/org/apache/tuscany/sca/binding/jms/URIRPCTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/node-launcher-equinox/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/node-launcher-equinox/src/test/java/hello/HelloWorld.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/node-launcher-equinox/src/test/java/hello/HelloWorldClient.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/node-launcher-equinox/src/test/java/hello/HelloWorldImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/node-launcher-equinox/src/test/java/org/apache/tuscany/sca/node/equinox/launcher/EquinoxOSGiHostTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/node-launcher-equinox/src/test/java/org/apache/tuscany/sca/node/equinox/launcher/NodeLauncherTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/node-launcher-equinox/src/test/resources/HelloWorld.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/main/java/org/apache/tuscany/sca/itest/bindingsca/Client.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/main/java/org/apache/tuscany/sca/itest/bindingsca/ClientImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/main/java/org/apache/tuscany/sca/itest/bindingsca/Customer.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/main/java/org/apache/tuscany/sca/itest/bindingsca/CustomerNotFoundException.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/main/java/org/apache/tuscany/sca/itest/bindingsca/Local.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/main/java/org/apache/tuscany/sca/itest/bindingsca/LocalServiceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/main/java/org/apache/tuscany/sca/itest/bindingsca/Remote.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/main/java/org/apache/tuscany/sca/itest/bindingsca/RemoteServiceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/main/java/org/apache/tuscany/sca/itest/bindingsca/SCAClientImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/main/resources/org/apache/tuscany/sca/itest/bindingsca/Client.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/main/resources/org/apache/tuscany/sca/itest/bindingsca/Service.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/AsynchTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/CallbackTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/PromotionTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/SimpleTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/helloworld/HelloWorldCallbackRemote.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/helloworld/HelloWorldClient.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/helloworld/HelloWorldServiceCallbackOnewayRemote.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/helloworld/HelloWorldServiceCallbackRemote.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/helloworld/HelloWorldServiceLocal.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/helloworld/HelloWorldServiceRemote.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/helloworld/HelloWorldServiceRemote2.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/helloworld/impl/HelloWorldClientCallbackOnewayRemoteImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/helloworld/impl/HelloWorldClientCallbackRemoteImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/helloworld/impl/HelloWorldClientLocalImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/helloworld/impl/HelloWorldClientRemote2Impl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/helloworld/impl/HelloWorldClientRemoteImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/helloworld/impl/HelloWorldServiceCallbackOnewayRemoteImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/helloworld/impl/HelloWorldServiceCallbackRemoteImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/helloworld/impl/HelloWorldServiceLocalImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/helloworld/impl/HelloWorldServiceMultipleServicesImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/helloworld/impl/HelloWorldServiceRemoteImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/binding/sca/rmi/AsynchTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/binding/sca/rmi/CallbackTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/binding/sca/rmi/PromotionTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/binding/sca/rmi/SimpleTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/binding/sca/rmi/helloworld/HelloWorldCallbackRemote.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/binding/sca/rmi/helloworld/HelloWorldClient.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/binding/sca/rmi/helloworld/HelloWorldServiceCallbackOnewayRemote.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/binding/sca/rmi/helloworld/HelloWorldServiceCallbackRemote.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/binding/sca/rmi/helloworld/HelloWorldServiceLocal.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/binding/sca/rmi/helloworld/HelloWorldServiceRemote.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/binding/sca/rmi/helloworld/HelloWorldServiceRemote2.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/binding/sca/rmi/helloworld/impl/HelloWorldClientCallbackOnewayRemoteImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/binding/sca/rmi/helloworld/impl/HelloWorldClientCallbackRemoteImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/binding/sca/rmi/helloworld/impl/HelloWorldClientLocalImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/binding/sca/rmi/helloworld/impl/HelloWorldClientRemote2Impl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/binding/sca/rmi/helloworld/impl/HelloWorldClientRemoteImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/binding/sca/rmi/helloworld/impl/HelloWorldServiceCallbackOnewayRemoteImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/binding/sca/rmi/helloworld/impl/HelloWorldServiceCallbackRemoteImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/binding/sca/rmi/helloworld/impl/HelloWorldServiceLocalImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/binding/sca/rmi/helloworld/impl/HelloWorldServiceMultipleServicesImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/binding/sca/rmi/helloworld/impl/HelloWorldServiceRemoteImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/itest/bindingsca/BindingSCATestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/itest/bindingsca/ClientNodeSharedCustomerTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/itest/bindingsca/ClientNodeSharedLocalTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/itest/bindingsca/ClientSharedCustomerTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/itest/bindingsca/ClientSharedLocalTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/itest/bindingsca/ServiceNode.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/itest/bindingsca/TestCaseRunner.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/resources/rmi/asynchReference/HelloWorld.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/resources/rmi/asynchReference/META-INF/sca-contribution.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/resources/rmi/asynchService/HelloWorld.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/resources/rmi/asynchService/META-INF/sca-contribution.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/resources/rmi/callbackReference/HelloWorld.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/resources/rmi/callbackReference/META-INF/sca-contribution.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/resources/rmi/callbackService/HelloWorld.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/resources/rmi/callbackService/META-INF/sca-contribution.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/resources/rmi/promotionReference/HelloWorld.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/resources/rmi/promotionReference/HelloWorldComponent.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/resources/rmi/promotionReference/META-INF/sca-contribution.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/resources/rmi/promotionService/HelloWorld.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/resources/rmi/promotionService/HelloWorldComponent.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/resources/rmi/promotionService/META-INF/sca-contribution.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/resources/rmi/simpleReference/HelloWorld.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/resources/rmi/simpleReference/META-INF/sca-contribution.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/resources/rmi/simpleService/HelloWorld.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/resources/rmi/simpleService/META-INF/sca-contribution.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/resources/ws/asynchReference/HelloWorld.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/resources/ws/asynchReference/META-INF/sca-contribution.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/resources/ws/asynchService/HelloWorld.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/resources/ws/asynchService/META-INF/sca-contribution.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/resources/ws/callbackReference/HelloWorld.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/resources/ws/callbackReference/META-INF/sca-contribution.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/resources/ws/callbackService/HelloWorld.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/resources/ws/callbackService/META-INF/sca-contribution.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/resources/ws/promotionReference/HelloWorld.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/resources/ws/promotionReference/HelloWorldComponent.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/resources/ws/promotionReference/META-INF/sca-contribution.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/resources/ws/promotionService/HelloWorld.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/resources/ws/promotionService/HelloWorldComponent.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/resources/ws/promotionService/META-INF/sca-contribution.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/resources/ws/simpleReference/HelloWorld.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/resources/ws/simpleReference/META-INF/sca-contribution.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/resources/ws/simpleService/HelloWorld.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/resources/ws/simpleService/META-INF/sca-contribution.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/main/java/org/apache/tuscany/sca/itest/bindingsca/Client.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/main/java/org/apache/tuscany/sca/itest/bindingsca/ClientImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/main/java/org/apache/tuscany/sca/itest/bindingsca/Customer.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/main/java/org/apache/tuscany/sca/itest/bindingsca/CustomerNotFoundException.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/main/java/org/apache/tuscany/sca/itest/bindingsca/Local.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/main/java/org/apache/tuscany/sca/itest/bindingsca/LocalServiceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/main/java/org/apache/tuscany/sca/itest/bindingsca/Remote.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/main/java/org/apache/tuscany/sca/itest/bindingsca/RemoteServiceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/main/java/org/apache/tuscany/sca/itest/bindingsca/SCAClientImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/main/resources/org/apache/tuscany/sca/itest/bindingsca/Client.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/main/resources/org/apache/tuscany/sca/itest/bindingsca/Service.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/AsynchTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/CallbackTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/PromotionTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/SimpleTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/helloworld/HelloWorldCallbackRemote.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/helloworld/HelloWorldClient.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/helloworld/HelloWorldServiceCallbackOnewayRemote.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/helloworld/HelloWorldServiceCallbackRemote.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/helloworld/HelloWorldServiceLocal.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/helloworld/HelloWorldServiceRemote.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/helloworld/HelloWorldServiceRemote2.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/helloworld/impl/HelloWorldClientCallbackOnewayRemoteImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/helloworld/impl/HelloWorldClientCallbackRemoteImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/helloworld/impl/HelloWorldClientLocalImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/helloworld/impl/HelloWorldClientRemote2Impl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/helloworld/impl/HelloWorldClientRemoteImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/helloworld/impl/HelloWorldServiceCallbackOnewayRemoteImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/helloworld/impl/HelloWorldServiceCallbackRemoteImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/helloworld/impl/HelloWorldServiceLocalImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/helloworld/impl/HelloWorldServiceMultipleServicesImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/helloworld/impl/HelloWorldServiceRemoteImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/binding/sca/rmi/AsynchTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/binding/sca/rmi/CallbackTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/binding/sca/rmi/PromotionTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/binding/sca/rmi/SimpleTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/binding/sca/rmi/helloworld/HelloWorldCallbackRemote.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/binding/sca/rmi/helloworld/HelloWorldClient.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/binding/sca/rmi/helloworld/HelloWorldServiceCallbackOnewayRemote.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/binding/sca/rmi/helloworld/HelloWorldServiceCallbackRemote.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/binding/sca/rmi/helloworld/HelloWorldServiceLocal.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/binding/sca/rmi/helloworld/HelloWorldServiceRemote.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/binding/sca/rmi/helloworld/HelloWorldServiceRemote2.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/binding/sca/rmi/helloworld/impl/HelloWorldClientCallbackOnewayRemoteImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/binding/sca/rmi/helloworld/impl/HelloWorldClientCallbackRemoteImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/binding/sca/rmi/helloworld/impl/HelloWorldClientLocalImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/binding/sca/rmi/helloworld/impl/HelloWorldClientRemote2Impl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/binding/sca/rmi/helloworld/impl/HelloWorldClientRemoteImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/binding/sca/rmi/helloworld/impl/HelloWorldServiceCallbackOnewayRemoteImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/binding/sca/rmi/helloworld/impl/HelloWorldServiceCallbackRemoteImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/binding/sca/rmi/helloworld/impl/HelloWorldServiceLocalImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/binding/sca/rmi/helloworld/impl/HelloWorldServiceMultipleServicesImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/binding/sca/rmi/helloworld/impl/HelloWorldServiceRemoteImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/itest/bindingsca/BindingSCATestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/itest/bindingsca/ClientNodeSharedCustomerTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/itest/bindingsca/ClientNodeSharedLocalTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/itest/bindingsca/ClientSharedCustomerTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/itest/bindingsca/ClientSharedLocalTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/itest/bindingsca/ServiceNode.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/itest/bindingsca/TestCaseRunner.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/resources/rmi/asynchReference/HelloWorld.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/resources/rmi/asynchReference/META-INF/sca-contribution.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/resources/rmi/asynchService/HelloWorld.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/resources/rmi/asynchService/META-INF/sca-contribution.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/resources/rmi/callbackReference/HelloWorld.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/resources/rmi/callbackReference/META-INF/sca-contribution.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/resources/rmi/callbackService/HelloWorld.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/resources/rmi/callbackService/META-INF/sca-contribution.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/resources/rmi/promotionReference/HelloWorld.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/resources/rmi/promotionReference/HelloWorldComponent.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/resources/rmi/promotionReference/META-INF/sca-contribution.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/resources/rmi/promotionService/HelloWorld.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/resources/rmi/promotionService/HelloWorldComponent.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/resources/rmi/promotionService/META-INF/sca-contribution.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/resources/rmi/simpleReference/HelloWorld.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/resources/rmi/simpleReference/META-INF/sca-contribution.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/resources/rmi/simpleService/HelloWorld.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/resources/rmi/simpleService/META-INF/sca-contribution.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/resources/ws/asynchReference/HelloWorld.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/resources/ws/asynchReference/META-INF/sca-contribution.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/resources/ws/asynchService/HelloWorld.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/resources/ws/asynchService/META-INF/sca-contribution.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/resources/ws/callbackReference/HelloWorld.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/resources/ws/callbackReference/META-INF/sca-contribution.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/resources/ws/callbackService/HelloWorld.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/resources/ws/callbackService/META-INF/sca-contribution.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/resources/ws/promotionReference/HelloWorld.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/resources/ws/promotionReference/HelloWorldComponent.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/resources/ws/promotionReference/META-INF/sca-contribution.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/resources/ws/promotionService/HelloWorld.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/resources/ws/promotionService/HelloWorldComponent.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/resources/ws/promotionService/META-INF/sca-contribution.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/resources/ws/simpleReference/HelloWorld.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/resources/ws/simpleReference/META-INF/sca-contribution.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/resources/ws/simpleService/HelloWorld.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/resources/ws/simpleService/META-INF/sca-contribution.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/helloworld-client/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/helloworld-client/src/main/java/itest/nodes/HelloworldImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/helloworld-client/src/main/resources/META-INF/sca-contribution.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/helloworld-client/src/main/resources/helloworld-client.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/helloworld-iface/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/helloworld-iface/src/main/java/itest/nodes/Helloworld.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/helloworld-service-a/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/helloworld-service-a/src/main/java/itest/nodes/HelloworldImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/helloworld-service-a/src/main/resources/META-INF/sca-contribution.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/helloworld-service-a/src/main/resources/service-a.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/helloworld-service-and-client/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/helloworld-service-and-client/src/main/java/itest/nodes/sac/Helloworld.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/helloworld-service-and-client/src/main/java/itest/nodes/sac/HelloworldClientImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/helloworld-service-and-client/src/main/java/itest/nodes/sac/HelloworldServiceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/helloworld-service-and-client/src/main/resources/META-INF/sca-contribution.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/helloworld-service-and-client/src/main/resources/helloworld-service.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/helloworld-service-b/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/helloworld-service-b/src/main/java/itest/nodes/HelloworldImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/helloworld-service-b/src/main/resources/META-INF/sca-contribution.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/helloworld-service-b/src/main/resources/service-b.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/helloworld-service-c/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/helloworld-service-c/src/main/java/itest/nodes/HelloworldImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/helloworld-service-c/src/main/resources/META-INF/sca-contribution.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/helloworld-service-c/src/main/resources/service-c.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/helloworld-service/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/helloworld-service/src/main/java/itest/nodes/HelloworldImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/helloworld-service/src/main/resources/META-INF/sca-contribution.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/helloworld-service/src/main/resources/helloworld-service.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/one-jvm-hazelcast-client/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/one-jvm-hazelcast-client/src/test/java/itest/ClientTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/one-jvm-hazelcast/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/one-jvm-hazelcast/src/test/java/itest/OneNodeOneContributionTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/one-jvm-hazelcast/src/test/java/itest/OneNodeTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/one-jvm-hazelcast/src/test/java/itest/TwoNodeTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/one-jvm-hazelcast/src/test/java/itest/TwoRemoteNodesTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/one-jvm-tribes/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/one-jvm-tribes/src/test/java/itest/OneNodeTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/one-jvm-tribes/src/test/java/itest/TwoNodeTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/one-jvm-tribes/src/test/java/itest/TwoRemoteNodesTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/one-jvm/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/one-jvm/src/test/java/itest/OneNodeTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/one-jvm/src/test/java/itest/TwoNodeTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/one-node-test/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/one-node-test/src/test/java/itest/OneNodeTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/three-nodes-three-vms-test/build.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/three-nodes-three-vms-test/client.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/three-nodes-three-vms-test/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/three-nodes-three-vms-test/server.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/three-nodes-three-vms-test/service-a-config.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/three-nodes-three-vms-test/service-b-config.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/three-nodes-three-vms-test/service-c-config.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/three-nodes-three-vms-test/src/test/java/itest/ServiceA.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/three-nodes-three-vms-test/src/test/java/itest/ServiceB.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/three-nodes-three-vms-test/src/test/java/itest/ServiceC.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/two-nodes-test/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/two-nodes-test/src/test/java/itest/ClientNode.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/two-nodes-test/src/test/java/itest/ServiceNode.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/two-nodes-test/src/test/java/itest/StopStartNodesTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/two-nodes-test/src/test/java/itest/TestCaseRunner.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/two-nodes-test/src/test/java/itest/TwoNodesTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/two-nodes-two-vms-hazelcast/build.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/two-nodes-two-vms-hazelcast/client-config.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/two-nodes-two-vms-hazelcast/client.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/two-nodes-two-vms-hazelcast/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/two-nodes-two-vms-hazelcast/scaclient.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/two-nodes-two-vms-hazelcast/server-config.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/two-nodes-two-vms-hazelcast/server.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/two-nodes-two-vms-hazelcast/src/test/java/itest/Client.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/two-nodes-two-vms-hazelcast/src/test/java/itest/SCAClient.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/two-nodes-two-vms-hazelcast/src/test/java/itest/Service.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/two-nodes-two-vms-test/build.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/two-nodes-two-vms-test/client-config.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/two-nodes-two-vms-test/client.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/two-nodes-two-vms-test/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/two-nodes-two-vms-test/server-config.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/two-nodes-two-vms-test/server.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/two-nodes-two-vms-test/src/test/java/itest/Client.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/two-nodes-two-vms-test/src/test/java/itest/Service.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/oneway/build.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/oneway/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/oneway/src/main/java/org/apache/tuscany/sca/itest/oneway/OneWayClient.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/oneway/src/main/java/org/apache/tuscany/sca/itest/oneway/OneWayService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/oneway/src/main/java/org/apache/tuscany/sca/itest/oneway/impl/OneWayClientImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/oneway/src/main/java/org/apache/tuscany/sca/itest/oneway/impl/OneWayServiceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/oneway/src/main/resources/OneWayContribution/META-INF/sca-deployables/oneWay.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/oneway/src/test/java/org/apache/tuscany/sca/itest/oneway/OneWayTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/operation-overloading/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/operation-overloading/src/main/java/org/apache/tuscany/sca/test/opoverload/OverloadASourceTarget.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/operation-overloading/src/main/java/org/apache/tuscany/sca/test/opoverload/impl/OverloadASource.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/operation-overloading/src/main/java/org/apache/tuscany/sca/test/opoverload/impl/OverloadATarget.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/operation-overloading/src/main/resources/OperationOverload.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/operation-overloading/src/test/java/org/apache/tuscany/sca/test/opoverload/impl/OverloadATestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/policies/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/policies/src/main/java/org/apache/tuscany/sca/itest/policies/CreditCard.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/policies/src/main/java/org/apache/tuscany/sca/itest/policies/CreditCardPayment.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/policies/src/main/java/org/apache/tuscany/sca/itest/policies/Customer.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/policies/src/main/java/org/apache/tuscany/sca/itest/policies/CustomerRegistry.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/policies/src/main/java/org/apache/tuscany/sca/itest/policies/Payment.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/policies/src/main/java/org/apache/tuscany/sca/itest/policies/impl/CreditCardPaymentImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/policies/src/main/java/org/apache/tuscany/sca/itest/policies/impl/CustomerRegistryImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/policies/src/main/java/org/apache/tuscany/sca/itest/policies/impl/PaymentImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/policies/src/main/resources/Customer.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/policies/src/main/resources/LoggingMessages.properties delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/policies/src/main/resources/META-INF/definitions.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/policies/src/main/resources/META-INF/sca-contribution.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/policies/src/main/resources/Payment.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/policies/src/test/java/org/apache/tuscany/sca/itest/policies/PaymentTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/policy-transaction/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/policy-transaction/src/main/java/customer/Customer.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/policy-transaction/src/main/java/customer/CustomerRegistry.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/policy-transaction/src/main/java/customer/impl/CustomerRegistryImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/policy-transaction/src/main/resources/Customer.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/policy-transaction/src/test/java/org/apache/tuscany/sca/itest/policy/transaction/CustomerTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/policy/matching/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/policy/matching/src/main/java/org/apache/tuscany/sca/policy/matching/helloworld/HelloWorld.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/policy/matching/src/main/java/org/apache/tuscany/sca/policy/matching/helloworld/HelloWorldClient.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/policy/matching/src/main/java/org/apache/tuscany/sca/policy/matching/helloworld/HelloWorldService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/policy/matching/src/main/resources/META-INF/sca-contribution.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/policy/matching/src/main/resources/META-INF/services/org.apache.tuscany.sca.definitions.xml.Definitions delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/policy/matching/src/main/resources/org/apache/tuscany/sca/policy/matching/helloworld/definitions.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/policy/matching/src/main/resources/org/apache/tuscany/sca/policy/matching/helloworld/helloworld.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/policy/matching/src/main/resources/org/apache/tuscany/sca/policy/matching/helloworld/helloworld.wsdl delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/policy/matching/src/test/java/org/apache/tuscany/sca/policy/matching/MatchingTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/policy/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/policy/wspolicy/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/policy/wspolicy/src/main/java/org/apache/tuscany/sca/policy/wspolicy/helloworld/HelloWorld.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/policy/wspolicy/src/main/java/org/apache/tuscany/sca/policy/wspolicy/helloworld/HelloWorldClient.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/policy/wspolicy/src/main/java/org/apache/tuscany/sca/policy/wspolicy/helloworld/HelloWorldService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/policy/wspolicy/src/main/resources/LoggingMessages.properties delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/policy/wspolicy/src/main/resources/META-INF/sca-contribution.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/policy/wspolicy/src/main/resources/META-INF/services/org.apache.tuscany.sca.definitions.xml.Definitions delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/policy/wspolicy/src/main/resources/org/apache/tuscany/sca/policy/wspolicy/helloworld/definitions.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/policy/wspolicy/src/main/resources/org/apache/tuscany/sca/policy/wspolicy/helloworld/helloworld.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/policy/wspolicy/src/main/resources/org/apache/tuscany/sca/policy/wspolicy/helloworld/helloworld.wsdl delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/policy/wspolicy/src/test/java/org/apache/tuscany/sca/policy/wspolicy/WSPolicyTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/properties/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/properties/src/main/java/mysca/test/myservice/impl/MyService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/properties/src/main/java/mysca/test/myservice/impl/MyServiceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/properties/src/main/java/mysca/test/myservice/impl/MyTotalServiceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/properties/src/main/java/org/apache/tuscany/sca/itest/ABCDComponent.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/properties/src/main/java/org/apache/tuscany/sca/itest/ABCDComponentImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/properties/src/main/java/org/apache/tuscany/sca/itest/ABComponent.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/properties/src/main/java/org/apache/tuscany/sca/itest/ABComponentImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/properties/src/main/java/org/apache/tuscany/sca/itest/CDComponent.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/properties/src/main/java/org/apache/tuscany/sca/itest/CDComponentImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/properties/src/main/java/org/apache/tuscany/sca/itest/ComplexPropertyBean.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/properties/src/main/java/org/apache/tuscany/sca/itest/OverrideService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/properties/src/main/java/org/apache/tuscany/sca/itest/OverrideServiceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/properties/src/main/java/org/apache/tuscany/sca/itest/PropertyComponent.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/properties/src/main/java/org/apache/tuscany/sca/itest/PropertyComponentImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/properties/src/main/java/org/apache/tuscany/sca/itest/PropertyService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/properties/src/main/java/org/apache/tuscany/sca/itest/cdi/Bar.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/properties/src/main/java/org/apache/tuscany/sca/itest/cdi/Foo1.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/properties/src/main/java/org/apache/tuscany/sca/itest/cdi/Foo2.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/properties/src/main/java/org/apache/tuscany/sca/itest/cdi/Foo3.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/properties/src/main/java/test/jaxb/props/ObjectFactory.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/properties/src/main/java/test/jaxb/props/ReturnCodeProperties.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/properties/src/main/java/test/jaxb/props/package-info.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/properties/src/main/resources/ConstructorPropertyInjection.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/properties/src/main/resources/Outer.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/properties/src/main/resources/OuterPropertyTest.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/properties/src/main/resources/PropertyTest.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/properties/src/main/resources/customer.xsd delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/properties/src/main/resources/fileProperty.txt delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/properties/src/main/resources/foo.xsd delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/properties/src/main/resources/manyValuesFileProperty.txt delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/properties/src/main/resources/mySimpleService.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/properties/src/main/resources/rcProps.txt delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/properties/src/main/resources/rcprops.xsd delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/properties/src/test/java/org/apache/tuscany/sca/itest/MyTotalServiceTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/properties/src/test/java/org/apache/tuscany/sca/itest/OuterPropertyTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/properties/src/test/java/org/apache/tuscany/sca/itest/PropertyTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/properties/src/test/java/org/apache/tuscany/sca/itest/cdi/ConstructorPropertyInjectionTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/recursive-multi-level/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/recursive-multi-level/src/main/java/mysca/test/myservice/MyService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/recursive-multi-level/src/main/java/mysca/test/myservice/MyServiceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/recursive-multi-level/src/main/java/mysca/test/myservice/MySimpleTotalService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/recursive-multi-level/src/main/java/mysca/test/myservice/MySimpleTotalServiceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/recursive-multi-level/src/main/resources/TotalService1Auto.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/recursive-multi-level/src/main/resources/TotalService2Auto.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/recursive-multi-level/src/main/resources/TotalService3Auto.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/recursive-multi-level/src/test/java/test/sca/tests/MultiLevelTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/recursive-ws/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/recursive-ws/src/main/java/policy/Target.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/recursive-ws/src/main/java/policy/TargetClientImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/recursive-ws/src/main/java/policy/TargetServiceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/recursive-ws/src/main/java/recursive/Composer.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/recursive-ws/src/main/java/recursive/ComposerClient.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/recursive-ws/src/main/java/recursive/ComposerClientImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/recursive-ws/src/main/java/recursive/ComposerImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/recursive-ws/src/main/java/recursive/ComposerServer.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/recursive-ws/src/main/resources/Client.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/recursive-ws/src/main/resources/Inner.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/recursive-ws/src/main/resources/Outer.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/recursive-ws/src/main/resources/bindingoverride/InnerComposite.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/recursive-ws/src/main/resources/bindingoverride/OuterComposite.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/recursive-ws/src/main/resources/policy/PolicyInnerComposite.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/recursive-ws/src/main/resources/policy/PolicyOuterComposite.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/recursive-ws/src/main/resources/policy/definitions.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/recursive-ws/src/test/java/bindingoverride/BindingOverrideTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/recursive-ws/src/test/java/policy/PolicyTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/recursive-ws/src/test/java/recursive/ComposerClientTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/recursive-ws/src/test/java/recursive/ComposerTestServer.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/references/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/references/src/main/java/org/apache/tuscany/sca/itest/references/AComponent.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/references/src/main/java/org/apache/tuscany/sca/itest/references/AComponentImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/references/src/main/java/org/apache/tuscany/sca/itest/references/BComponent.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/references/src/main/java/org/apache/tuscany/sca/itest/references/BComponentImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/references/src/main/java/org/apache/tuscany/sca/itest/references/BComponentWrongTargetImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/references/src/main/java/org/apache/tuscany/sca/itest/references/CComponent.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/references/src/main/java/org/apache/tuscany/sca/itest/references/CComponentImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/references/src/main/java/org/apache/tuscany/sca/itest/references/DComponent.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/references/src/main/java/org/apache/tuscany/sca/itest/references/DComponentImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/references/src/main/resources/AutoWiredReferencesTest.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/references/src/main/resources/InnerReferencesTest.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/references/src/main/resources/ManualWiredReferencesTest.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/references/src/test/java/org/apache/tuscany/sca/itest/references/AutoWiredReferenceTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/references/src/test/java/org/apache/tuscany/sca/itest/references/InnerReferenceTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/references/src/test/java/org/apache/tuscany/sca/itest/references/ManualWiredReferenceTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/samples/helloworld/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/samples/helloworld/src/test/java/itest/helloworld/Helloworld.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/samples/helloworld/src/test/java/itest/helloworld/HelloworldDomainNodeTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/samples/helloworld/src/test/java/itest/helloworld/HelloworldNodeTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/scaclient-api-jse-osgi/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/scaclient-api-jse-osgi/src/main/java/itest/HelloworldService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/scaclient-api-jse-osgi/src/main/java/itest/HelloworldServiceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/scaclient-api-jse-osgi/src/main/resources/Helloworld.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/scaclient-api-jse-osgi/src/main/resources/META-INF/sca-contribution.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/scaclient-api-jse-osgi/src/test/java/test/scaclient/SCAClientTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/scaclient-api-osgi/META-INF/MANIFEST.MF delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/scaclient-api-osgi/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/scaclient-api-osgi/src/main/java/itest/HelloworldService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/scaclient-api-osgi/src/main/java/itest/HelloworldServiceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/scaclient-api-osgi/src/main/resources/Helloworld.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/scaclient-api-osgi/src/main/resources/META-INF/sca-contribution.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/scaclient-api-osgi/src/test/java/test/scaclient/SCAClientTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/scaclient-api-remote/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/scaclient-api-remote/src/main/java/itest/HelloworldService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/scaclient-api-remote/src/main/java/itest/HelloworldServiceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/scaclient-api-remote/src/main/resources/Helloworld.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/scaclient-api-remote/src/main/resources/META-INF/sca-contribution.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/scaclient-api-remote/src/test/java/test/scaclient/SCAClientTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/scaclient-api/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/scaclient-api/src/main/java/itest/HelloworldService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/scaclient-api/src/main/java/itest/HelloworldServiceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/scaclient-api/src/main/java/itest/RemoteHelloworldService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/scaclient-api/src/main/resources/Helloworld.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/scaclient-api/src/main/resources/META-INF/sca-contribution.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/scaclient-api/src/test/java/test/scaclient/SCAClientTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/scdl/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/scdl/src/test/java/org/apache/tuscany/sca/itest/scdl/ContributionTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/scdl/src/test/java/org/apache/tuscany/sca/itest/scdl/SCDLTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/scdl/src/test/java/org/apache/tuscany/sca/itest/scdl/ValidateDependenciesTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/scdl/src/test/resources/test.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/scopes/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/scopes/src/main/java/org/apache/tuscany/sca/itest/scopes/CompositeScopeStateVerifierImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/scopes/src/main/java/org/apache/tuscany/sca/itest/scopes/StateVerifier.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/scopes/src/main/resources/scopes.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/scopes/src/test/java/org/apache/tuscany/sca/test/ScopeTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/service-reference/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/service-reference/src/main/java/org/apache/tuscany/sca/itest/serviceref/AComponent.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/service-reference/src/main/java/org/apache/tuscany/sca/itest/serviceref/AComponentImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/service-reference/src/main/java/org/apache/tuscany/sca/itest/serviceref/BComponent.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/service-reference/src/main/java/org/apache/tuscany/sca/itest/serviceref/BComponentImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/service-reference/src/main/java/org/apache/tuscany/sca/itest/serviceref/Base64Binary.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/service-reference/src/main/java/org/apache/tuscany/sca/itest/serviceref/CComponent.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/service-reference/src/main/java/org/apache/tuscany/sca/itest/serviceref/CComponentImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/service-reference/src/main/java/org/apache/tuscany/sca/itest/serviceref/DComponent.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/service-reference/src/main/java/org/apache/tuscany/sca/itest/serviceref/DComponentImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/service-reference/src/main/resources/nodeA/CompositeA.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/service-reference/src/main/resources/nodeB/CompositeB.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/service-reference/src/main/resources/servicereference/ServiceReferenceTest.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/service-reference/src/test/java/org/apache/tuscany/sca/itest/serviceref/CallableReferenceRemoteTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/service-reference/src/test/java/org/apache/tuscany/sca/itest/serviceref/ServiceReferenceTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/services/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/services/src/main/java/org/apache/tuscany/sca/itest/services/AComponent.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/services/src/main/java/org/apache/tuscany/sca/itest/services/AComponentImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/services/src/main/java/org/apache/tuscany/sca/itest/services/BComponent.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/services/src/main/java/org/apache/tuscany/sca/itest/services/BComponentImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/services/src/main/java/org/apache/tuscany/sca/itest/services/CComponent.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/services/src/main/java/org/apache/tuscany/sca/itest/services/CComponentImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/services/src/main/java/org/apache/tuscany/sca/itest/services/D1Component.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/services/src/main/java/org/apache/tuscany/sca/itest/services/DComponent.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/services/src/main/java/org/apache/tuscany/sca/itest/services/DComponentImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/services/src/main/resources/META-INF/sca-contribution.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/services/src/main/resources/ServicesTest.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/services/src/test/java/org/apache/tuscany/sca/itest/services/ServicesTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/wires/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/wires/src/main/java/org/apache/tuscany/sca/itest/WireClient.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/wires/src/main/java/org/apache/tuscany/sca/itest/WireClientImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/wires/src/main/java/org/apache/tuscany/sca/itest/WireService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/wires/src/main/java/org/apache/tuscany/sca/itest/WireServiceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/wires/src/main/resources/WireTest.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/wires/src/test/java/org/apache/tuscany/sca/itest/WireTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/ws-jaxws/README delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/ws-jaxws/contribution-java-first/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/ws-jaxws/contribution-java-first/src/main/java/org/apache/tuscany/sca/binding/ws/jaxws/Bar.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/ws-jaxws/contribution-java-first/src/main/java/org/apache/tuscany/sca/binding/ws/jaxws/Foo.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/ws-jaxws/contribution-java-first/src/main/java/org/apache/tuscany/sca/binding/ws/jaxws/HelloWorld.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/ws-jaxws/contribution-java-first/src/main/java/org/apache/tuscany/sca/binding/ws/jaxws/HelloWorldImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/ws-jaxws/contribution-java-first/src/main/resources/HelloWorldServiceService_schema1.xsd delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/ws-jaxws/contribution-java-first/src/main/resources/META-INF/sca-contribution.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/ws-jaxws/contribution-java-first/src/main/resources/helloworld-external-service.wsdl delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/ws-jaxws/contribution-java-first/src/main/resources/helloworld.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/ws-jaxws/contribution-wsdl-first/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/ws-jaxws/contribution-wsdl-first/src/main/java/org/apache/tuscany/sca/binding/ws/jaxws/impl/HelloWorldImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/ws-jaxws/contribution-wsdl-first/src/main/resources/META-INF/sca-contribution.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/ws-jaxws/contribution-wsdl-first/src/main/resources/helloworld-external.wsdl delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/ws-jaxws/contribution-wsdl-first/src/main/resources/helloworld-sca.wsdl delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/ws-jaxws/contribution-wsdl-first/src/main/resources/helloworld.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/ws-jaxws/external-client/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/ws-jaxws/external-client/src/main/java/org/apache/tuscany/sca/binding/ws/jaxws/external/client/HelloWorldClientLauncher.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/ws-jaxws/external-client/src/main/resources/HelloWorldImplService.wsdl delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/ws-jaxws/external-client/src/main/resources/HelloWorldImplService_schema1.xsd delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/ws-jaxws/external-service/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/ws-jaxws/external-service/src/main/java/org/apache/tuscany/sca/binding/ws/jaxws/external/service/HelloWorldService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/ws-jaxws/external-service/src/main/java/org/apache/tuscany/sca/binding/ws/jaxws/external/service/HelloWorldServiceLauncher.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/ws-jaxws/launcher-ri/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/ws-jaxws/launcher-ri/src/test/java/org/apache/tuscany/sca/binding/ws/jaxws/launcher/JavaFirstTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/ws-jaxws/launcher-ri/src/test/java/org/apache/tuscany/sca/binding/ws/jaxws/launcher/WSDLFirstTestCaseOFF.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/ws-jaxws/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/ws/authentication-basic/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/ws/authentication-basic/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/helloworld/HelloWorld.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/ws/authentication-basic/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/helloworld/HelloWorldClient.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/ws/authentication-basic/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/helloworld/HelloWorldService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/ws/authentication-basic/src/main/resources/META-INF/sca-contribution.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/ws/authentication-basic/src/main/resources/META-INF/services/org.apache.tuscany.sca.definitions.xml.Definitions delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/ws/authentication-basic/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/helloworld/definitions.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/ws/authentication-basic/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/helloworld/helloworld.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/ws/authentication-basic/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/helloworld/helloworld.wsdl delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/ws/authentication-basic/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/HelloworldTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/ws/defaults/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/ws/defaults/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/Bar.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/ws/defaults/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/Foo.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/ws/defaults/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/HelloWorld.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/ws/defaults/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/HelloWorldClient.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/ws/defaults/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/HelloWorldService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/ws/defaults/src/main/resources/META-INF/sca-contribution.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/ws/defaults/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/helloworld.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/ws/defaults/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/helloworld.wsdl delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/ws/defaults/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/DefaultsTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/ws/endpoint-references/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/ws/endpoint-references/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/HelloWorld.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/ws/endpoint-references/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/HelloWorldComponent.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/ws/endpoint-references/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/HelloWorldService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/ws/endpoint-references/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/HelloWorld.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/ws/endpoint-references/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/helloworld.wsdl delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/ws/endpoint-references/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/HelloWorldTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/ws/endpoints/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/ws/endpoints/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/HelloWorldMultiService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/ws/endpoints/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/HelloWorldOM.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/ws/endpoints/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/HelloWorldOM2.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/ws/endpoints/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/HelloWorldOMComponent.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/ws/endpoints/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/HelloWorldOMService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/ws/endpoints/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/DefaultMultiService.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/ws/endpoints/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/DefaultSingleService.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/ws/endpoints/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/WSDLExplicitURI.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/ws/endpoints/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/WSDLRelativeURI.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/ws/endpoints/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/helloworld-om-relative-uri.wsdl delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/ws/endpoints/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/helloworld-om-uri.wsdl delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/ws/endpoints/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/helloworld-om.wsdl delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/ws/endpoints/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/AbstractHelloWorldOMTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/ws/endpoints/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/DefaultMultiServiceTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/ws/endpoints/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/DefaultSingleServiceTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/ws/endpoints/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/WSDLExplicitURITestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/ws/endpoints/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/WSDLRelativeURITestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/ws/http-ssl/README delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/ws/http-ssl/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/ws/http-ssl/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/helloworld/HelloWorld.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/ws/http-ssl/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/helloworld/HelloWorldClient.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/ws/http-ssl/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/helloworld/HelloWorldService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/ws/http-ssl/src/main/resources/META-INF/sca-contribution.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/ws/http-ssl/src/main/resources/META-INF/services/org.apache.tuscany.sca.definitions.xml.Definitions delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/ws/http-ssl/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/helloworld/definitions.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/ws/http-ssl/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/helloworld/helloworld.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/ws/http-ssl/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/helloworld/helloworld.wsdl delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/ws/http-ssl/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/helloworld/tuscany.jks delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/ws/http-ssl/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/HTTPSTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/ws/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/ws/wsdl/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/ws/wsdl/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/Account.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/ws/wsdl/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/AccountService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/ws/wsdl/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/CustomerProfileData.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/ws/wsdl/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/HelloWorld.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/ws/wsdl/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/HelloWorldOM.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/ws/wsdl/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/HelloWorldOMComponent.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/ws/wsdl/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/HelloWorldOMService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/ws/wsdl/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/HelloWorldService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/ws/wsdl/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/customerdata.xsd delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/ws/wsdl/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/customerdefs.xsd delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/ws/wsdl/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/customerinfo.xsd delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/ws/wsdl/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/helloworld-om-merged.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/ws/wsdl/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/helloworld-om-merged.wsdl delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/ws/wsdl/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/helloworld-prec.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/ws/wsdl/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/helloworld-prec.wsdl delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/ws/wsdl/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/helloworld.wsdl delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/ws/wsdl/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/questionmark-import-nested.wsdl delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/ws/wsdl/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/questionmark-import.wsdl delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/ws/wsdl/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/questionmark-include.wsdl delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/ws/wsdl/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/questionmark-wsdl-import.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/ws/wsdl/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/questionmark-wsdl-include.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/ws/wsdl/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/questionmark-wsdl.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/ws/wsdl/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/HelloWorldWSDLMergedTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/ws/wsdl/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/QuestionMarkWSDLImportTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/ws/wsdl/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/QuestionMarkWSDLIncludeTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/ws/wsdl/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/QuestionMarkWSDLTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/itest/ws/wsdl/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/UriPrecedenceTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/maven/maven-tuscany-plugin/LICENSE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/maven/maven-tuscany-plugin/NOTICE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/maven/maven-tuscany-plugin/README delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/maven/maven-tuscany-plugin/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/maven/maven-tuscany-plugin/src/main/java/org/apache/tuscany/maven/plugin/TuscanyLaunchMojo.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/maven/maven-tuscany-plugin/src/main/java/org/apache/tuscany/maven/plugin/TuscanyRunMojo.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/LICENSE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/META-INF/MANIFEST.MF delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/NOTICE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/assembly/xml/BaseAssemblyProcessor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/assembly/xml/ComponentTypeDocumentProcessor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/assembly/xml/ComponentTypeModelResolver.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/assembly/xml/ComponentTypeProcessor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/assembly/xml/CompositeDocumentProcessor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/assembly/xml/CompositeModelResolver.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/assembly/xml/CompositeProcessor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/assembly/xml/ConfiguredOperationProcessor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/assembly/xml/Constants.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/assembly/xml/DefaultBeanModelProcessor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/assembly/xml/EndpointProcessor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/assembly/xml/EndpointReferenceProcessor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/assembly/xml/Messages.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/assembly/xml/PolicySubjectProcessor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/assembly/xml/SCABindingProcessor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/definitions/xml/DefaultDefinitionsExtensionPoint.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/definitions/xml/DefinitionsDocumentProcessor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/definitions/xml/DefinitionsExtensionPoint.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/definitions/xml/DefinitionsProcessor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/definitions/xml/Messages.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/policy/xml/BindingTypeProcessor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/policy/xml/ExtensionTypeProcessor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/policy/xml/ImplementationTypeProcessor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/policy/xml/IntentProcessor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/policy/xml/Messages.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/policy/xml/PolicyConstants.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/policy/xml/PolicySetProcessor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/policy/xml/PolicyXPathFunction.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/policy/xml/PolicyXPathFunctionResolver.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/main/resources/META-INF/sca-policy-1.1-intents-definitions-cd03.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessor delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.processor.URLArtifactProcessor delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.resolver.ModelResolver delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/main/resources/META-INF/services/org.apache.tuscany.sca.definitions.xml.Definitions delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/main/resources/META-INF/services/org.apache.tuscany.sca.definitions.xml.DefinitionsExtensionPoint delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/main/resources/org/apache/tuscany/sca/assembly/xml/assembly-xml-validation-messages.properties delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/main/resources/org/apache/tuscany/sca/definitions/xml/definitions-xml-validation-messages.properties delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/main/resources/org/apache/tuscany/sca/policy/xml/policy-xml-validation-messages.properties delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/test/java/org/apache/tuscany/sca/assembly/xml/CompositeProcessorTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/test/java/org/apache/tuscany/sca/assembly/xml/MultiplicityReadWriteTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/test/java/org/apache/tuscany/sca/assembly/xml/ReadAllTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/test/java/org/apache/tuscany/sca/assembly/xml/ReadDocumentTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/test/java/org/apache/tuscany/sca/assembly/xml/ReadTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/test/java/org/apache/tuscany/sca/assembly/xml/ReadWriteAnyAttributeTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/test/java/org/apache/tuscany/sca/assembly/xml/ReadWriteAnyElementTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/test/java/org/apache/tuscany/sca/assembly/xml/ReadWriteLocalCompositeTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/test/java/org/apache/tuscany/sca/assembly/xml/ResolvePolicyTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/test/java/org/apache/tuscany/sca/assembly/xml/ResolveTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/test/java/org/apache/tuscany/sca/assembly/xml/StripURISpacesTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/test/java/org/apache/tuscany/sca/assembly/xml/TestAttributeProcessor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/test/java/org/apache/tuscany/sca/assembly/xml/TestPolicyProcessor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/test/java/org/apache/tuscany/sca/assembly/xml/TestSCABindingFactoryImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/test/java/org/apache/tuscany/sca/assembly/xml/TestSCABindingImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/test/java/org/apache/tuscany/sca/assembly/xml/WireTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/test/java/org/apache/tuscany/sca/assembly/xml/WriteAllTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/test/java/org/apache/tuscany/sca/assembly/xml/WriteNamespacesTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/test/java/org/apache/tuscany/sca/definitions/xml/MockPolicy.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/test/java/org/apache/tuscany/sca/definitions/xml/ReadDocumentTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/test/java/org/apache/tuscany/sca/definitions/xml/TestPolicyProcessor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/test/java/org/apache/tuscany/sca/policy/xml/PolicyXPathFunctionResolverTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/test/java/org/apache/tuscany/sca/policy/xml/ReadDocumentTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/test/java/org/apache/tuscany/sca/policy/xml/TestPolicyProcessor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/test/resources/org/apache/tuscany/sca/assembly/xml/Calculator.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/test/resources/org/apache/tuscany/sca/assembly/xml/CalculatorImpl.componentType delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/test/resources/org/apache/tuscany/sca/assembly/xml/CalculatorURISpaces.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/test/resources/org/apache/tuscany/sca/assembly/xml/Multiplicity.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/test/resources/org/apache/tuscany/sca/assembly/xml/NestedCalculator.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/test/resources/org/apache/tuscany/sca/assembly/xml/RMIBindingTest.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/test/resources/org/apache/tuscany/sca/assembly/xml/TestAllCalculator.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/test/resources/org/apache/tuscany/sca/assembly/xml/TestAllDivide.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/test/resources/org/apache/tuscany/sca/assembly/xml/TestAllPolicyCalculator.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/test/resources/org/apache/tuscany/sca/assembly/xml/another_test_definitions.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/test/resources/org/apache/tuscany/sca/assembly/xml/local.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/test/resources/org/apache/tuscany/sca/assembly/xml/test_definitions.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/test/resources/org/apache/tuscany/sca/definitions/xml/test_definitions.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/test/resources/org/apache/tuscany/sca/policy/xml/Calculator.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/test/resources/org/apache/tuscany/sca/policy/xml/test_definitions.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/LICENSE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/META-INF/MANIFEST.MF delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/NOTICE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/java/org/apache/tuscany/sca/assembly/xsd/Constants.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.processor.ValidationSchema delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/org/apache/tuscany/sca/assembly/xsd/XMLSchema.dtd delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/org/apache/tuscany/sca/assembly/xsd/datatypes.dtd delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/org/apache/tuscany/sca/assembly/xsd/oasis-200401-wss-wssecurity-secext-1.0.xsd delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/org/apache/tuscany/sca/assembly/xsd/oasis-200401-wss-wssecurity-utility-1.0.xsd delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/org/apache/tuscany/sca/assembly/xsd/ws-addr.xsd delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/org/apache/tuscany/sca/assembly/xsd/ws-policy.xsd delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/org/apache/tuscany/sca/assembly/xsd/wsdli.xsd delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/org/apache/tuscany/sca/assembly/xsd/xml.xsd delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/org/apache/tuscany/sca/assembly/xsd/xmldsig-core-schema.xsd delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/sca-1.1-cd05.xsd delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/sca-binding-ejb-1.1-cd01.xsd delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/sca-binding-jca-1.1-cd04.xsd delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/sca-binding-jms-1.1-cd04.xsd delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/sca-binding-sca-1.1-cd05.xsd delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/sca-binding-ws-1.1-cd04.xsd delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/sca-binding-ws-callback-1.1-cd04.xsd delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/sca-contribution-1.1-cd05.xsd delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/sca-contribution-c-1.1-cd04.xsd delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/sca-contribution-cpp-1.1-cd04.xsd delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/sca-contribution-java-1.1-cd02.xsd delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/sca-core-1.1-cd05.xsd delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/sca-definitions-1.1-cd05.xsd delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/sca-implementation-bpel-1.1-cd03.xsd delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/sca-implementation-c-1.1-cd04.xsd delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/sca-implementation-composite-1.1-cd05.xsd delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/sca-implementation-cpp-1.1-cd04.xsd delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/sca-implementation-java-1.1-cd02.xsd delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/sca-implementation-spring-1.1-cd01.xsd delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/sca-interface-c-1.1-cd04.xsd delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/sca-interface-cpp-1.1-cd04.xsd delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/sca-interface-java-1.1-cd04.xsd delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/sca-interface-wsdl-1.1-cd05.xsd delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/sca-jee-1.1-wd03.xsd delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/sca-policy-1.1-cd03.xsd delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/sca-policy-1.1-intents-definitions-cd03.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/tuscany-sca-1.1-binding-atom.xsd delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/tuscany-sca-1.1-binding-dwr.xsd delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/tuscany-sca-1.1-binding-http.xsd delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/tuscany-sca-1.1-binding-jms.xsd delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/tuscany-sca-1.1-binding-jsonrpc.xsd delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/tuscany-sca-1.1-binding-rest.xsd delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/tuscany-sca-1.1-binding-rmi.xsd delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/tuscany-sca-1.1-binding-rss.xsd delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/tuscany-sca-1.1-implementation-osgi.xsd delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/tuscany-sca-1.1-implementation-script.xsd delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/tuscany-sca-1.1-implementation-widget.xsd delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/tuscany-sca-1.1.xsd delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/LICENSE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/META-INF/MANIFEST.MF delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/NOTICE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/AbstractContract.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/AbstractProperty.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/AbstractReference.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/AbstractService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/AssemblyFactory.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/Base.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/Binding.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/Callback.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/Component.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/ComponentProperty.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/ComponentReference.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/ComponentService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/ComponentType.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/Composite.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/CompositeReference.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/CompositeService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/ConfiguredOperation.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/Contract.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/DefaultAssemblyFactory.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/Endpoint.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/EndpointReference.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/Extensible.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/Extension.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/Implementation.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/Multiplicity.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/OperationSelector.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/OperationsConfigurator.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/Property.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/Reference.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/SCABinding.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/SCABindingFactory.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/Service.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/Wire.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/WireFormat.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/builder/BindingBuilder.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/builder/BuilderContext.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/builder/BuilderExtensionPoint.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/builder/CompositeBuilder.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/builder/CompositeBuilderException.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/builder/DefaultBuilderExtensionPoint.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/builder/ImplementationBuilder.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/builder/Messages.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/builder/PolicyBuilder.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/builder/WireBuilder.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/AbstractPropertyImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/AbstractReferenceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/AbstractServiceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/AssemblyFactoryImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/BaseImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/BindingImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/CallbackImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/ComponentImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/ComponentPropertyImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/ComponentReferenceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/ComponentServiceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/ComponentTypeImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/CompositeImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/CompositeReferenceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/CompositeServiceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/ConfiguredOperationImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/ContractImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/EndpointImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/EndpointReferenceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/ExtensibleImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/ExtensionImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/ImplementationImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/PropertyImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/ReferenceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/SCABindingFactoryImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/SCABindingImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/ServiceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/WireImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/definitions/DefaultDefinitionsFactory.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/definitions/Definitions.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/definitions/DefinitionsBuilder.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/definitions/DefinitionsBuilderException.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/definitions/DefinitionsFactory.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/definitions/impl/DefinitionsBuilderImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/definitions/impl/DefinitionsImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/definitions/util/DefinitionsUtil.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/interfacedef/Compatibility.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/interfacedef/DataType.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/interfacedef/FaultExceptionMapper.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/interfacedef/IncompatibleInterfaceContractException.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/interfacedef/Interface.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/interfacedef/InterfaceContract.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/interfacedef/InterfaceContractMapper.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/interfacedef/InvalidAnnotationException.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/interfacedef/InvalidCallbackException.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/interfacedef/InvalidInterfaceException.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/interfacedef/InvalidOperationException.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/interfacedef/Operation.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/interfacedef/OverloadedOperationException.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/interfacedef/impl/DataTypeImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/interfacedef/impl/InterfaceContractImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/interfacedef/impl/InterfaceContractMapperImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/interfacedef/impl/InterfaceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/interfacedef/impl/OperationImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/interfacedef/util/ElementInfo.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/interfacedef/util/FaultException.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/interfacedef/util/JavaXMLMapper.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/interfacedef/util/TypeInfo.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/interfacedef/util/WrapperInfo.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/interfacedef/util/XMLType.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/policy/BindingType.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/policy/DefaultPolicyFactory.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/policy/ExtensionType.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/policy/ImplementationType.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/policy/Intent.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/policy/IntentMap.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/policy/PolicyAttachment.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/policy/PolicyContainer.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/policy/PolicyExpression.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/policy/PolicyFactory.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/policy/PolicySet.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/policy/PolicySubject.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/policy/Qualifier.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/policy/impl/BindingTypeImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/policy/impl/ExtensionTypeImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/policy/impl/ImplementationTypeImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/policy/impl/IntentImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/policy/impl/IntentMapImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/policy/impl/PolicyExpressionImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/policy/impl/PolicyFactoryImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/policy/impl/PolicySetImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/policy/impl/QualifierImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/policy/util/PolicyHelper.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/resources/META-INF/services/org.apache.tuscany.sca.assembly.AssemblyFactory delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/resources/META-INF/services/org.apache.tuscany.sca.assembly.SCABindingFactory delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/resources/META-INF/services/org.apache.tuscany.sca.assembly.builder.BuilderExtensionPoint delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/resources/META-INF/services/org.apache.tuscany.sca.definitions.DefinitionsFactory delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/resources/META-INF/services/org.apache.tuscany.sca.interfacedef.InterfaceContractMapper delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/resources/META-INF/services/org.apache.tuscany.sca.policy.PolicyFactory delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/resources/org/apache/tuscany/sca/assembly/builder/assembly-conformance-messages.properties delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/resources/org/apache/tuscany/sca/assembly/builder/assembly-validation-messages.properties delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/resources/org/apache/tuscany/sca/assembly/builder/assembly-validation-messages_it.properties delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/resources/org/apache/tuscany/sca/assembly/builder/definitions-validation-messages.properties delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/test/java/org/apache/tuscany/sca/assembly/AssemblyFactoryTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/test/java/org/apache/tuscany/sca/assembly/TestBinding.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/test/java/org/apache/tuscany/sca/assembly/TestImplementation.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/test/java/org/apache/tuscany/sca/assembly/TestInterface.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/test/java/org/apache/tuscany/sca/assembly/TestInterfaceContract.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/test/java/org/apache/tuscany/sca/assembly/TestOperation.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/test/java/org/apache/tuscany/sca/interfacedef/impl/ContractCompatibilityTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/test/java/org/apache/tuscany/sca/interfacedef/impl/InterfaceContractTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/test/java/org/apache/tuscany/sca/policy/PolicyFactoryTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-atom-js-dojo/LICENSE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-atom-js-dojo/META-INF/MANIFEST.MF delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-atom-js-dojo/NOTICE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-atom-js-dojo/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-atom-js-dojo/src/main/java/org/apache/tuscany/sca/binding/atom/js/dojo/AtomBindingJavascriptProxyFactoryImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-atom-js-dojo/src/main/resources/META-INF/services/org.apache.tuscany.sca.web.javascript.JavascriptProxyFactory delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-atom-runtime/LICENSE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-atom-runtime/META-INF/MANIFEST.MF delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-atom-runtime/META-INF/services/org.apache.tuscany.sca.provider.BindingProviderFactory delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-atom-runtime/NOTICE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-atom-runtime/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-atom-runtime/src/main/java/org/apache/tuscany/sca/binding/atom/collection/Collection.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-atom-runtime/src/main/java/org/apache/tuscany/sca/binding/atom/collection/MediaCollection.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-atom-runtime/src/main/java/org/apache/tuscany/sca/binding/atom/collection/NotFoundException.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-atom-runtime/src/main/java/org/apache/tuscany/sca/binding/atom/provider/AtomBindingInvoker.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-atom-runtime/src/main/java/org/apache/tuscany/sca/binding/atom/provider/AtomBindingListenerServlet.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-atom-runtime/src/main/java/org/apache/tuscany/sca/binding/atom/provider/AtomBindingProviderFactory.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-atom-runtime/src/main/java/org/apache/tuscany/sca/binding/atom/provider/AtomBindingUtil.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-atom-runtime/src/main/java/org/apache/tuscany/sca/binding/atom/provider/AtomReferenceBindingProvider.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-atom-runtime/src/main/java/org/apache/tuscany/sca/binding/atom/provider/AtomServiceBindingProvider.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-atom-runtime/src/main/resources/META-INF/services/org.apache.tuscany.sca.provider.BindingProviderFactory delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-atom-runtime/src/test/java/org/apache/tuscany/sca/binding/atom/AbstractProviderConsumerTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-atom-runtime/src/test/java/org/apache/tuscany/sca/binding/atom/AtomDeleteTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-atom-runtime/src/test/java/org/apache/tuscany/sca/binding/atom/AtomFeedNonCollectionTest.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-atom-runtime/src/test/java/org/apache/tuscany/sca/binding/atom/AtomGetTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-atom-runtime/src/test/java/org/apache/tuscany/sca/binding/atom/AtomPostTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-atom-runtime/src/test/java/org/apache/tuscany/sca/binding/atom/AtomPutTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-atom-runtime/src/test/java/org/apache/tuscany/sca/binding/atom/Consumer.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-atom-runtime/src/test/java/org/apache/tuscany/sca/binding/atom/ConsumerProviderAtomTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-atom-runtime/src/test/java/org/apache/tuscany/sca/binding/atom/ContentNegotiationTest.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-atom-runtime/src/test/java/org/apache/tuscany/sca/binding/atom/CustomerClient.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-atom-runtime/src/test/java/org/apache/tuscany/sca/binding/atom/CustomerClientImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-atom-runtime/src/test/java/org/apache/tuscany/sca/binding/atom/CustomerCollectionImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-atom-runtime/src/test/java/org/apache/tuscany/sca/binding/atom/CustomerNonCollectionImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-atom-runtime/src/test/java/org/apache/tuscany/sca/binding/atom/MediaCollectionImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-atom-runtime/src/test/java/org/apache/tuscany/sca/binding/atom/MediaCollectionTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-atom-runtime/src/test/java/org/apache/tuscany/sca/binding/atom/Provider.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-atom-runtime/src/test/java/org/apache/tuscany/sca/binding/atom/ProviderEntryEntityTagsTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-atom-runtime/src/test/java/org/apache/tuscany/sca/binding/atom/ProviderFeedEntityTagsTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-atom-runtime/src/test/java/org/apache/tuscany/sca/binding/atom/ProviderServiceDocumentTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-atom-runtime/src/test/java/org/apache/tuscany/sca/binding/atom/aggregator/Aggregator.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-atom-runtime/src/test/java/org/apache/tuscany/sca/binding/atom/aggregator/AggregatorImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-atom-runtime/src/test/java/org/apache/tuscany/sca/binding/atom/aggregator/AggregatorTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-atom-runtime/src/test/java/org/apache/tuscany/sca/binding/atom/aggregator/Sort.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-atom-runtime/src/test/java/org/apache/tuscany/sca/binding/atom/aggregator/SortImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-atom-runtime/src/test/java/org/apache/tuscany/sca/binding/atom/news/Headline.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-atom-runtime/src/test/java/org/apache/tuscany/sca/binding/atom/news/NewsService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-atom-runtime/src/test/java/org/apache/tuscany/sca/binding/atom/news/NewsServiceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-atom-runtime/src/test/java/org/apache/tuscany/sca/binding/atom/news/NewsServiceTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-atom-runtime/src/test/java/org/apache/tuscany/sca/binding/atom/util/AtomTestCaseUtils.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-atom-runtime/src/test/resources/ReceiptToms.gif delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-atom-runtime/src/test/resources/ReceiptValue.jpg delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-atom-runtime/src/test/resources/org/apache/tuscany/sca/binding/atom/Consumer.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-atom-runtime/src/test/resources/org/apache/tuscany/sca/binding/atom/Provider.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-atom-runtime/src/test/resources/org/apache/tuscany/sca/binding/atom/ProviderNonCollection.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-atom-runtime/src/test/resources/org/apache/tuscany/sca/binding/atom/ReceiptProvider.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-atom-runtime/src/test/resources/org/apache/tuscany/sca/binding/atom/aggregator/FeedAggregator.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-atom-runtime/src/test/resources/org/apache/tuscany/sca/binding/atom/news/news.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-atom/LICENSE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-atom/META-INF/MANIFEST.MF delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-atom/META-INF/services/org.apache.tuscany.sca.binding.atom.AtomBindingFactory delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-atom/META-INF/services/org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessor delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-atom/NOTICE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-atom/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-atom/src/main/java/org/apache/tuscany/sca/binding/atom/AtomBinding.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-atom/src/main/java/org/apache/tuscany/sca/binding/atom/AtomBindingFactory.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-atom/src/main/java/org/apache/tuscany/sca/binding/atom/impl/AtomBindingFactoryImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-atom/src/main/java/org/apache/tuscany/sca/binding/atom/impl/AtomBindingImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-atom/src/main/resources/META-INF/services/org.apache.tuscany.sca.binding.atom.AtomBindingFactory delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-atom/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessor delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-atom/src/test/java/org/apache/tuscany/sca/binding/atom/AtomBindingProcessorTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/LICENSE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/META-INF/MANIFEST.MF delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/NOTICE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/provider/CorbaBindingProviderFactory.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/provider/CorbaInvoker.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/provider/CorbaReferenceBindingProvider.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/provider/CorbaServiceBindingProvider.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/provider/exceptions/CorbaException.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/provider/exceptions/RequestConfigurationException.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/provider/meta/CorbaArray.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/provider/meta/CorbaUnionElement.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/provider/meta/CorbaUnionElementType.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/provider/reference/DynaCorbaRequest.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/provider/reference/DynaCorbaResponse.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/provider/reference/InterfaceInstanceCreator.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/provider/reference/InterfaceMethodInterceptor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/provider/service/ComponentInvocationProxy.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/provider/service/DynaCorbaServant.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/provider/service/InvocationException.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/provider/service/InvocationProxy.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/provider/service/OperationTypes.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/provider/types/AnnotationAttributes.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/provider/types/NodeType.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/provider/types/TypeTree.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/provider/types/TypeTreeCreator.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/provider/types/TypeTreeNode.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/provider/types/UnionAttributes.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/provider/types/util/ArrayTypeHelper.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/provider/types/util/BooleanTypeHelper.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/provider/types/util/ByteTypeHelper.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/provider/types/util/CharTypeHelper.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/provider/types/util/DoubleTypeHelper.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/provider/types/util/EnumTypeHelper.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/provider/types/util/FloatTypeHelper.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/provider/types/util/IntTypeHelper.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/provider/types/util/LongTypeHelper.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/provider/types/util/ReferenceTypeHelper.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/provider/types/util/SequenceTypeHelper.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/provider/types/util/ShortTypeHelper.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/provider/types/util/StringTypeHelper.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/provider/types/util/StructTypeHelper.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/provider/types/util/TypeHelper.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/provider/types/util/TypeHelpersProxy.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/provider/types/util/UnionTypeHelper.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/provider/types/util/Utils.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/provider/util/MethodFinder.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/provider/util/OperationMapper.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/main/resources/META-INF/services/org.apache.tuscany.sca.provider.BindingProviderFactory delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/CorbaServantTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/CorbaTypesTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/MappingTestInterface.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/MethodFinderTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/OperationMappingTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/TestConstants.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/arrays_unions/ArraysUnionsTests.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/arrays_unions/ArraysUnionsTestsHelper.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/arrays_unions/ArraysUnionsTestsHolder.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/arrays_unions/ArraysUnionsTestsOperations.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/arrays_unions/InnerUnion.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/arrays_unions/InnerUnionHelper.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/arrays_unions/InnerUnionHolder.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/arrays_unions/RichUnion.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/arrays_unions/RichUnionHelper.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/arrays_unions/RichUnionHolder.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/arrays_unions/StringArrayHelper.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/arrays_unions/StringArrayHolder.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/arrays_unions/TestStruct.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/arrays_unions/TestStructHelper.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/arrays_unions/TestStructHolder.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/arrays_unions/_ArraysUnionsTestsImplBase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/arrays_unions/_ArraysUnionsTestsStub.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/enums/Color.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/enums/ColorHelper.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/enums/ColorHolder.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/enums/EnumManager.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/enums/EnumManagerHelper.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/enums/EnumManagerHolder.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/enums/EnumManagerOperations.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/enums/_EnumManagerImplBase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/enums/_EnumManagerStub.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/exceptions/Calc.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/exceptions/CalcHelper.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/exceptions/CalcHolder.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/exceptions/CalcOperations.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/exceptions/CalcPackage/Arguments.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/exceptions/CalcPackage/ArgumentsHelper.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/exceptions/CalcPackage/ArgumentsHolder.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/exceptions/CalcPackage/DivByZero.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/exceptions/CalcPackage/DivByZeroHelper.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/exceptions/CalcPackage/DivByZeroHolder.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/exceptions/CalcPackage/NotSupported.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/exceptions/CalcPackage/NotSupportedHelper.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/exceptions/CalcPackage/NotSupportedHolder.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/exceptions/_CalcImplBase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/exceptions/_CalcStub.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/ArraysSetter.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/ArraysSetterHelper.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/ArraysSetterHolder.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/ArraysSetterOperations.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/PrimitivesSetter.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/PrimitivesSetterHelper.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/PrimitivesSetterHolder.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/PrimitivesSetterOperations.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/RemoteObject.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/RemoteObjectHelper.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/RemoteObjectHolder.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/RemoteObjectOperations.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/SimpleStruct.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/SimpleStructHelper.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/SimpleStructHolder.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/SomeStruct.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/SomeStructHelper.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/SomeStructHolder.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/TestObject.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/TestObjectHelper.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/TestObjectHolder.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/TestObjectOperations.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/_ArraysSetterImplBase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/_ArraysSetterStub.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/_PrimitivesSetterImplBase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/_PrimitivesSetterStub.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/_RemoteObjectImplBase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/_RemoteObjectStub.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/_TestObjectImplBase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/_TestObjectStub.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/boolean_listHelper.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/boolean_listHolder.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/char_listHelper.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/char_listHolder.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/double_listHelper.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/double_listHolder.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/float_listHelper.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/float_listHolder.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/long_listHelper.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/long_listHolder.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/long_long_listHelper.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/long_long_listHolder.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/long_seq1Helper.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/long_seq1Holder.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/long_seq2Helper.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/long_seq2Holder.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/long_seq3Helper.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/long_seq3Holder.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/octet_listHelper.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/octet_listHolder.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/remote_object_listHelper.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/remote_object_listHolder.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/short_listHelper.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/short_listHolder.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/string_listHelper.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/string_listHolder.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/unsigned_long_listHelper.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/unsigned_long_listHolder.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/unsigned_long_long_listHelper.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/unsigned_long_long_listHolder.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/unsigned_short_listHelper.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/unsigned_short_listHolder.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/wchar_listHelper.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/wchar_listHolder.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/wstring_listHelper.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/wstring_listHolder.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/hierarchy/ArraysTestStruct.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/hierarchy/Calc.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/hierarchy/DummyObject.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/hierarchy/InnerUnion.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/hierarchy/InvalidCorbaArray.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/hierarchy/InvalidEnum1.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/hierarchy/InvalidEnum2.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/hierarchy/InvalidEnum3.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/hierarchy/InvalidStruct1.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/hierarchy/InvalidStruct2.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/hierarchy/InvalidStruct3.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/hierarchy/InvalidUnion1.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/hierarchy/InvalidUnion2.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/hierarchy/InvalidUnion3.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/hierarchy/InvalidUnion4.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/hierarchy/InvalidUnion5.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/hierarchy/NonCorbaException.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/hierarchy/RichUnion.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/hierarchy/SimpleStruct.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/hierarchy/SomeStruct.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/references/DummyObject.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/references/DummyObjectHelper.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/references/DummyObjectHolder.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/references/DummyObjectOperations.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/references/ObjectManager.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/references/ObjectManagerHelper.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/references/ObjectManagerHolder.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/references/ObjectManagerOperations.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/references/_DummyObjectImplBase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/references/_DummyObjectStub.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/references/_ObjectManagerImplBase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/references/_ObjectManagerStub.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/servants/ArraysSetterServant.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/servants/ArraysUnionsServant.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/servants/ArraysUnionsTuscanyServant.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/servants/CalcServant.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/servants/DummyObjectServant.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/servants/EnumManagerServant.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/servants/InvalidTestObjectServant.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/servants/InvalidTypesServant.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/servants/NonCorbaServant.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/servants/ObjectManagerServant.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/servants/PrimitivesSetterServant.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/servants/TestObjectServant.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/service/mocks/TestDataType.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/service/mocks/TestInterface.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/service/mocks/TestInterfaceContract.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/service/mocks/TestOperation.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/service/mocks/TestRuntimeComponentService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/service/mocks/TestRuntimeWire.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/test/resources/arrays_unions.idl delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/test/resources/enums.idl delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/test/resources/exceptions.idl delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/test/resources/general_tests.idl delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba-runtime/src/test/resources/references.idl delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba/LICENSE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba/META-INF/MANIFEST.MF delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba/NOTICE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba/src/main/java/org/apache/tuscany/sca/binding/corba/CorbaBinding.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba/src/main/java/org/apache/tuscany/sca/binding/corba/CorbaBindingFactory.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba/src/main/java/org/apache/tuscany/sca/binding/corba/impl/CorbaBindingFactoryImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba/src/main/java/org/apache/tuscany/sca/binding/corba/impl/CorbaBindingImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba/src/main/java/org/apache/tuscany/sca/binding/corba/impl/CorbaBindingProcessor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba/src/main/resources/META-INF/services/org.apache.tuscany.sca.binding.corba.CorbaBindingFactory delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-corba/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessor delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-ejb-runtime/LICENSE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-ejb-runtime/META-INF/MANIFEST.MF delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-ejb-runtime/NOTICE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-ejb-runtime/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-ejb-runtime/src/main/java/org/apache/tuscany/sca/binding/ejb/corba/ClassLoadingUtil.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-ejb-runtime/src/main/java/org/apache/tuscany/sca/binding/ejb/corba/DynamicStubClassLoader.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-ejb-runtime/src/main/java/org/apache/tuscany/sca/binding/ejb/corba/Java2IDLUtil.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-ejb-runtime/src/main/java/org/apache/tuscany/sca/binding/ejb/corba/ObjectInputStreamExt.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-ejb-runtime/src/main/java/org/apache/tuscany/sca/binding/ejb/corba/StubMethodInterceptor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-ejb-runtime/src/main/java/org/apache/tuscany/sca/binding/ejb/corba/UtilInitializer.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-ejb-runtime/src/main/java/org/apache/tuscany/sca/binding/ejb/provider/EJBBindingInvoker.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-ejb-runtime/src/main/java/org/apache/tuscany/sca/binding/ejb/provider/EJBBindingProviderFactory.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-ejb-runtime/src/main/java/org/apache/tuscany/sca/binding/ejb/provider/EJBBindingReferenceBindingProvider.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-ejb-runtime/src/main/java/org/apache/tuscany/sca/binding/ejb/util/EJBHandler.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-ejb-runtime/src/main/java/org/apache/tuscany/sca/binding/ejb/util/EJBLocator.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-ejb-runtime/src/main/java/org/apache/tuscany/sca/binding/ejb/util/EJBObjectFactory.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-ejb-runtime/src/main/java/org/apache/tuscany/sca/binding/ejb/util/EJBStubHelper.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-ejb-runtime/src/main/java/org/apache/tuscany/sca/binding/ejb/util/InterfaceInfo.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-ejb-runtime/src/main/java/org/apache/tuscany/sca/binding/ejb/util/JavaReflectionAdapter.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-ejb-runtime/src/main/java/org/apache/tuscany/sca/binding/ejb/util/MethodInfo.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-ejb-runtime/src/main/java/org/apache/tuscany/sca/binding/ejb/util/NamingEndpoint.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-ejb-runtime/src/main/resources/META-INF/services/org.apache.tuscany.sca.provider.BindingProviderFactory delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-ejb-runtime/src/main/resources/binding-ejb-validation-messages.properties delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-ejb-runtime/src/test/java/account/BankManagerFacade.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-ejb-runtime/src/test/java/account/Customer.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-ejb-runtime/src/test/java/account/CustomerImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-ejb-runtime/src/test/java/calculator/AddService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-ejb-runtime/src/test/java/calculator/AddServiceHome.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-ejb-runtime/src/test/java/org/apache/geronimo/samples/bank/ejb/BankManagerFacade.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-ejb-runtime/src/test/java/org/apache/geronimo/samples/bank/ejb/BankManagerFacadeHome.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-ejb-runtime/src/test/java/org/apache/tuscany/sca/binding/ejb/tests/EJBReferenceTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-ejb-runtime/src/test/java/org/apache/tuscany/sca/binding/ejb/tests/MockServer.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-ejb-runtime/src/test/java/org/apache/tuscany/sca/binding/ejb/tests/SocketTracer.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-ejb-runtime/src/test/resources/account/account.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-ejb/LICENSE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-ejb/META-INF/MANIFEST.MF delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-ejb/NOTICE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-ejb/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-ejb/src/main/java/org/apache/tuscany/sca/binding/ejb/EJBBinding.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-ejb/src/main/java/org/apache/tuscany/sca/binding/ejb/EJBBindingException.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-ejb/src/main/java/org/apache/tuscany/sca/binding/ejb/EJBBindingFactory.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-ejb/src/main/java/org/apache/tuscany/sca/binding/ejb/impl/EJBBindingFactoryImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-ejb/src/main/java/org/apache/tuscany/sca/binding/ejb/impl/EJBBindingImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-ejb/src/main/java/org/apache/tuscany/sca/binding/ejb/impl/EJBBindingProcessor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-ejb/src/main/resources/META-INF/services/org.apache.tuscany.sca.binding.ejb.EJBBindingFactory delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-ejb/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessor delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-ejb/src/main/resources/META-INF/services/org.apache.tuscany.sca.definitions.xml.Definitions delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-ejb/src/main/resources/binding-ejb-validation-messages.properties delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-ejb/src/main/resources/org/apache/tuscany/sca/binding/ejb/policy/definitions.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-hazelcast-runtime/META-INF/MANIFEST.MF delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-hazelcast-runtime/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-hazelcast-runtime/src/main/java/org/apache/tuscany/sca/binding/hazelcast/EndpointStash.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-hazelcast-runtime/src/main/java/org/apache/tuscany/sca/binding/hazelcast/HazelcastBinding.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-hazelcast-runtime/src/main/java/org/apache/tuscany/sca/binding/hazelcast/HazelcastBindingProviderFactory.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-hazelcast-runtime/src/main/java/org/apache/tuscany/sca/binding/hazelcast/HazelcastReferenceBindingProvider.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-hazelcast-runtime/src/main/java/org/apache/tuscany/sca/binding/hazelcast/HazelcastServiceBindingProvider.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-hazelcast-runtime/src/main/java/org/apache/tuscany/sca/binding/hazelcast/ReferenceInvoker.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-hazelcast-runtime/src/main/java/org/apache/tuscany/sca/binding/hazelcast/ServiceInvoker.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-hazelcast-runtime/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessor delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-hazelcast-runtime/src/main/resources/META-INF/services/org.apache.tuscany.sca.provider.BindingProviderFactory delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-hazelcast-runtime/src/test/java/org/apache/tuscany/sca/binding/hazelcast/BadStringException.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-hazelcast-runtime/src/test/java/org/apache/tuscany/sca/binding/hazelcast/ComplexType.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-hazelcast-runtime/src/test/java/org/apache/tuscany/sca/binding/hazelcast/HazelcastBindingTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-hazelcast-runtime/src/test/java/org/apache/tuscany/sca/binding/hazelcast/TestService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-hazelcast-runtime/src/test/java/org/apache/tuscany/sca/binding/hazelcast/TestServiceClient.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-hazelcast-runtime/src/test/java/org/apache/tuscany/sca/binding/hazelcast/TestServiceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-hazelcast-runtime/src/test/resources/client.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-hazelcast-runtime/src/test/resources/client2.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-hazelcast-runtime/src/test/resources/service.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-http-runtime/LICENSE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-http-runtime/META-INF/MANIFEST.MF delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-http-runtime/NOTICE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-http-runtime/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-http-runtime/src/main/java/org/apache/tuscany/sca/binding/http/provider/HTTPBindingListenerServlet.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-http-runtime/src/main/java/org/apache/tuscany/sca/binding/http/provider/HTTPBindingProviderFactory.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-http-runtime/src/main/java/org/apache/tuscany/sca/binding/http/provider/HTTPGetListenerServlet.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-http-runtime/src/main/java/org/apache/tuscany/sca/binding/http/provider/HTTPServiceBindingProvider.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-http-runtime/src/main/java/org/apache/tuscany/sca/binding/http/provider/HTTPServiceListenerServlet.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-http-runtime/src/main/resources/META-INF/services/org.apache.tuscany.sca.provider.BindingProviderFactory delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-http-runtime/src/test/java/org/apache/tuscany/sca/binding/http/HTTPBindingCacheTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-http-runtime/src/test/java/org/apache/tuscany/sca/binding/http/HTTPBindingTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-http-runtime/src/test/java/org/apache/tuscany/sca/binding/http/NotModifiedException.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-http-runtime/src/test/java/org/apache/tuscany/sca/binding/http/PreconditionFailedException.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-http-runtime/src/test/java/org/apache/tuscany/sca/binding/http/TestBindingCacheImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-http-runtime/src/test/java/org/apache/tuscany/sca/binding/http/TestGetImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-http-runtime/src/test/java/org/apache/tuscany/sca/binding/http/TestServiceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-http-runtime/src/test/resources/content/test.html delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-http-runtime/src/test/resources/test.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-http-runtime/src/test/resources/testCache.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-http/LICENSE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-http/META-INF/MANIFEST.MF delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-http/NOTICE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-http/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-http/src/main/java/org/apache/tuscany/sca/binding/http/HTTPBinding.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-http/src/main/java/org/apache/tuscany/sca/binding/http/HTTPBindingFactory.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-http/src/main/java/org/apache/tuscany/sca/binding/http/impl/HTTPBindingFactoryImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-http/src/main/java/org/apache/tuscany/sca/binding/http/impl/HTTPBindingImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-http/src/main/java/org/apache/tuscany/sca/binding/http/xml/HTTPBindingProcessor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-http/src/main/resources/META-INF/services/org.apache.tuscany.sca.binding.http.HTTPBindingFactory delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-http/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessor delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jms-runtime/LICENSE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jms-runtime/META-INF/MANIFEST.MF delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jms-runtime/NOTICE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jms-runtime/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/context/JMSBindingContext.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/headers/HeaderReferenceInterceptor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/host/DefaultJMSHostExtensionPoint.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/host/DefaultJMSServiceListener.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/host/DefaultJMSServiceListenerFactory.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/host/DefaultServiceInvoker.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/host/JMSHostExtensionPoint.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/host/JMSServiceListener.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/host/JMSServiceListenerDetails.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/host/JMSServiceListenerFactory.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/operationselector/jmsdefault/runtime/OperationSelectorJMSDefaultProviderFactory.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/operationselector/jmsdefault/runtime/OperationSelectorJMSDefaultServiceInterceptor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/operationselector/jmsdefault/runtime/OperationSelectorJMSDefaultServiceProvider.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/operationselector/jmsuserprop/runtime/OperationSelectorJMSUserPropProviderFactory.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/operationselector/jmsuserprop/runtime/OperationSelectorJMSUserPropServiceInterceptor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/operationselector/jmsuserprop/runtime/OperationSelectorJMSUserPropServiceProvider.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/policy/authentication/token/provider/JMSTokenAuthenticationPolicyProviderFactory.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/policy/authentication/token/provider/JMSTokenAuthenticationReferencePolicyInterceptor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/policy/authentication/token/provider/JMSTokenAuthenticationReferencePolicyProvider.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/policy/authentication/token/provider/JMSTokenAuthenticationServicePolicyInterceptor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/policy/authentication/token/provider/JMSTokenAuthenticationServicePolicyProvider.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/policy/header/provider/JMSHeaderPolicyProviderFactory.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/policy/header/provider/JMSHeaderReferencePolicyInterceptor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/policy/header/provider/JMSHeaderReferencePolicyProvider.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/provider/AbstractMessageProcessor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/provider/BytesMessageProcessor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/provider/DefaultJMSResourceFactoryExtensionPoint.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/provider/DefaultMessageProcessor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/provider/JMSBindingProviderFactory.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/provider/JMSBindingReferenceBindingProvider.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/provider/JMSBindingServiceBindingProvider.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/provider/JMSMessageProcessor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/provider/JMSMessageProcessorUtil.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/provider/JMSResourceFactory.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/provider/JMSResourceFactoryExtensionPoint.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/provider/JMSResourceFactoryImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/provider/ObjectMessageProcessor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/provider/RRBJMSBindingInvoker.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/provider/TextMessageProcessor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/provider/XMLBytesMessageProcessor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/provider/XMLTextMessageProcessor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/transport/TransportReferenceInterceptor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/transport/TransportServiceInterceptor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/wire/CallbackDestinationInterceptor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/wire/OperationPropertiesInterceptor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/wireformat/jmsbytes/runtime/WireFormatJMSBytesProviderFactory.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/wireformat/jmsbytes/runtime/WireFormatJMSBytesReferenceInterceptor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/wireformat/jmsbytes/runtime/WireFormatJMSBytesReferenceProvider.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/wireformat/jmsbytes/runtime/WireFormatJMSBytesServiceInterceptor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/wireformat/jmsbytes/runtime/WireFormatJMSBytesServiceProvider.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/wireformat/jmsbytesxml/runtime/WireFormatJMSBytesXMLProviderFactory.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/wireformat/jmsbytesxml/runtime/WireFormatJMSBytesXMLReferenceInterceptor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/wireformat/jmsbytesxml/runtime/WireFormatJMSBytesXMLReferenceProvider.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/wireformat/jmsbytesxml/runtime/WireFormatJMSBytesXMLServiceInterceptor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/wireformat/jmsbytesxml/runtime/WireFormatJMSBytesXMLServiceProvider.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/wireformat/jmsdefault/runtime/WireFormatJMSDefaultProviderFactory.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/wireformat/jmsdefault/runtime/WireFormatJMSDefaultReferenceInterceptor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/wireformat/jmsdefault/runtime/WireFormatJMSDefaultReferenceProvider.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/wireformat/jmsdefault/runtime/WireFormatJMSDefaultServiceInterceptor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/wireformat/jmsdefault/runtime/WireFormatJMSDefaultServiceProvider.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/wireformat/jmsobject/runtime/WireFormatJMSObjectProviderFactory.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/wireformat/jmsobject/runtime/WireFormatJMSObjectReferenceInterceptor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/wireformat/jmsobject/runtime/WireFormatJMSObjectReferenceProvider.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/wireformat/jmsobject/runtime/WireFormatJMSObjectServiceInterceptor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/wireformat/jmsobject/runtime/WireFormatJMSObjectServiceProvider.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/wireformat/jmstext/runtime/WireFormatJMSTextProviderFactory.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/wireformat/jmstext/runtime/WireFormatJMSTextReferenceInterceptor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/wireformat/jmstext/runtime/WireFormatJMSTextReferenceProvider.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/wireformat/jmstext/runtime/WireFormatJMSTextServiceInterceptor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/wireformat/jmstext/runtime/WireFormatJMSTextServiceProvider.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/wireformat/jmstextxml/runtime/WireFormatJMSTextXMLProviderFactory.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/wireformat/jmstextxml/runtime/WireFormatJMSTextXMLReferenceInterceptor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/wireformat/jmstextxml/runtime/WireFormatJMSTextXMLReferenceProvider.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/wireformat/jmstextxml/runtime/WireFormatJMSTextXMLServiceInterceptor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/wireformat/jmstextxml/runtime/WireFormatJMSTextXMLServiceProvider.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jms-runtime/src/main/resources/META-INF/services/org.apache.tuscany.sca.provider.BindingProviderFactory delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jms-runtime/src/main/resources/META-INF/services/org.apache.tuscany.sca.provider.OperationSelectorProviderFactory delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jms-runtime/src/main/resources/META-INF/services/org.apache.tuscany.sca.provider.PolicyProviderFactory delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jms-runtime/src/main/resources/META-INF/services/org.apache.tuscany.sca.provider.WireFormatProviderFactory delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jms-runtime/src/test/java/org/apache/tuscany/sca/binding/jms/HelloWorldClientImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jms-runtime/src/test/java/org/apache/tuscany/sca/binding/jms/HelloWorldService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jms-runtime/src/test/java/org/apache/tuscany/sca/binding/jms/HelloWorldServiceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jms-runtime/src/test/java/org/apache/tuscany/sca/binding/jms/OperationSelectionTestCaseFIXME.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jms-runtime/src/test/resources/simple/client.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jms-runtime/src/test/resources/simple/service.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jms/LICENSE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jms/META-INF/MANIFEST.MF delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jms/NOTICE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jms/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jms/src/main/java/org/apache/tuscany/sca/binding/jms/BindingProperty.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jms/src/main/java/org/apache/tuscany/sca/binding/jms/JMSBinding.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jms/src/main/java/org/apache/tuscany/sca/binding/jms/JMSBindingConstants.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jms/src/main/java/org/apache/tuscany/sca/binding/jms/JMSBindingException.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jms/src/main/java/org/apache/tuscany/sca/binding/jms/JMSBindingProcessor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jms/src/main/java/org/apache/tuscany/sca/binding/jms/operationselector/OperationSelectorJMSDefault.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jms/src/main/java/org/apache/tuscany/sca/binding/jms/operationselector/OperationSelectorJMSDefaultProcessor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jms/src/main/java/org/apache/tuscany/sca/binding/jms/operationselector/OperationSelectorJMSUserProp.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jms/src/main/java/org/apache/tuscany/sca/binding/jms/operationselector/OperationSelectorJMSUserPropProcessor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jms/src/main/java/org/apache/tuscany/sca/binding/jms/policy/authentication/token/JMSTokenAuthenticationPolicy.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jms/src/main/java/org/apache/tuscany/sca/binding/jms/policy/authentication/token/JMSTokenAuthenticationPolicyProcessor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jms/src/main/java/org/apache/tuscany/sca/binding/jms/policy/header/JMSHeaderPolicy.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jms/src/main/java/org/apache/tuscany/sca/binding/jms/policy/header/JMSHeaderPolicyProcessor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jms/src/main/java/org/apache/tuscany/sca/binding/jms/wireformat/WireFormatJMSBytes.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jms/src/main/java/org/apache/tuscany/sca/binding/jms/wireformat/WireFormatJMSBytesProcessor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jms/src/main/java/org/apache/tuscany/sca/binding/jms/wireformat/WireFormatJMSBytesXML.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jms/src/main/java/org/apache/tuscany/sca/binding/jms/wireformat/WireFormatJMSBytesXMLProcessor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jms/src/main/java/org/apache/tuscany/sca/binding/jms/wireformat/WireFormatJMSDefault.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jms/src/main/java/org/apache/tuscany/sca/binding/jms/wireformat/WireFormatJMSDefaultProcessor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jms/src/main/java/org/apache/tuscany/sca/binding/jms/wireformat/WireFormatJMSObject.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jms/src/main/java/org/apache/tuscany/sca/binding/jms/wireformat/WireFormatJMSObjectProcessor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jms/src/main/java/org/apache/tuscany/sca/binding/jms/wireformat/WireFormatJMSText.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jms/src/main/java/org/apache/tuscany/sca/binding/jms/wireformat/WireFormatJMSTextProcessor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jms/src/main/java/org/apache/tuscany/sca/binding/jms/wireformat/WireFormatJMSTextXML.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jms/src/main/java/org/apache/tuscany/sca/binding/jms/wireformat/WireFormatJMSTextXMLProcessor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jms/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessor delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jms/src/main/resources/META-INF/services/org.apache.tuscany.sca.provider.SCADefinitionsProvider delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jms/src/main/resources/binding-jms-policy-validation-messages.properties delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jms/src/main/resources/binding-jms-validation-messages.properties delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jms/src/main/resources/org/apache/tuscany/sca/binding/jms/policy/definitions.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jms/src/test/java/org/apache/tuscany/sca/binding/jms/JMSBindingProcessorTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jms/src/test/java/org/apache/tuscany/sca/binding/jms/JMSBindingProcessorWriteTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jms/src/test/java/org/apache/tuscany/sca/binding/jms/policy/PolicyProcessorTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jsonp-runtime/LICENSE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jsonp-runtime/META-INF/MANIFEST.MF delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jsonp-runtime/NOTICE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jsonp-runtime/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jsonp-runtime/src/main/java/org/apache/tuscany/sca/binding/jsonp/runtime/JSONPBindingProviderFactory.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jsonp-runtime/src/main/java/org/apache/tuscany/sca/binding/jsonp/runtime/JSONPInvoker.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jsonp-runtime/src/main/java/org/apache/tuscany/sca/binding/jsonp/runtime/JSONPReferenceBindingProvider.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jsonp-runtime/src/main/java/org/apache/tuscany/sca/binding/jsonp/runtime/JSONPServiceBindingProvider.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jsonp-runtime/src/main/java/org/apache/tuscany/sca/binding/jsonp/runtime/JSONPServlet.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jsonp-runtime/src/main/resources/META-INF/services/org.apache.tuscany.sca.provider.BindingProviderFactory delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jsonp-runtime/src/test/java/helloworld/HelloWorldClient.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jsonp-runtime/src/test/java/helloworld/HelloWorldImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jsonp-runtime/src/test/java/helloworld/HelloWorldService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jsonp-runtime/src/test/java/test/BindingTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jsonp-runtime/src/test/resources/helloworld.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jsonp-runtime/src/test/resources/jquery.html delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jsonp/LICENSE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jsonp/META-INF/MANIFEST.MF delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jsonp/NOTICE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jsonp/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jsonp/src/main/java/org/apache/tuscany/sca/binding/jsonp/JSONPBinding.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jsonp/src/main/java/org/apache/tuscany/sca/binding/jsonp/JSONPBindingFactory.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jsonp/src/main/java/org/apache/tuscany/sca/binding/jsonp/impl/JSONPBindingFactoryImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jsonp/src/main/java/org/apache/tuscany/sca/binding/jsonp/impl/JSONPBindingImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jsonp/src/main/resources/META-INF/services/org.apache.tuscany.sca.binding.jsonp.JSONPBindingFactory delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jsonp/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessor delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jsonp/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.processor.ValidationSchema delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jsonp/src/main/resources/binding-jsonp.xsd delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jsonrpc-js-dojo/LICENSE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jsonrpc-js-dojo/META-INF/MANIFEST.MF delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jsonrpc-js-dojo/NOTICE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jsonrpc-js-dojo/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jsonrpc-js-dojo/src/main/java/org/apache/tuscany/sca/binding/jsonrpc/js/dojo/JSONRPCBindingJavascriptProxyFactoryImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jsonrpc-js-dojo/src/main/resources/META-INF/services/org.apache.tuscany.sca.web.javascript.JavascriptProxyFactory delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jsonrpc-runtime/LICENSE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jsonrpc-runtime/META-INF/MANIFEST.MF delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jsonrpc-runtime/NOTICE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jsonrpc-runtime/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jsonrpc-runtime/src/main/java/org/apache/tuscany/sca/binding/jsonrpc/provider/JSONRPCBindingInvoker.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jsonrpc-runtime/src/main/java/org/apache/tuscany/sca/binding/jsonrpc/provider/JSONRPCBindingProviderFactory.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jsonrpc-runtime/src/main/java/org/apache/tuscany/sca/binding/jsonrpc/provider/JSONRPCClientInvoker.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jsonrpc-runtime/src/main/java/org/apache/tuscany/sca/binding/jsonrpc/provider/JSONRPCDatabindingHelper.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jsonrpc-runtime/src/main/java/org/apache/tuscany/sca/binding/jsonrpc/provider/JSONRPCReferenceBindingProvider.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jsonrpc-runtime/src/main/java/org/apache/tuscany/sca/binding/jsonrpc/provider/JSONRPCServiceBindingProvider.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jsonrpc-runtime/src/main/java/org/apache/tuscany/sca/binding/jsonrpc/provider/JSONRPCServiceServlet.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jsonrpc-runtime/src/main/java/org/apache/tuscany/sca/binding/jsonrpc/provider/JavaToSmd.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jsonrpc-runtime/src/main/resources/META-INF/services/org.apache.tuscany.sca.provider.BindingProviderFactory delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jsonrpc-runtime/src/main/resources/org/apache/tuscany/sca/binding/jsonrpc/provider/jsonrpc.js delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jsonrpc-runtime/src/test/java/bean/TestBean.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jsonrpc-runtime/src/test/java/echo/Echo.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jsonrpc-runtime/src/test/java/echo/EchoBusinessException.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jsonrpc-runtime/src/test/java/echo/EchoClientImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jsonrpc-runtime/src/test/java/echo/EchoComponentImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jsonrpc-runtime/src/test/java/org/apache/tuscany/sca/binding/jsonrpc/JSONRPCDataTypeTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jsonrpc-runtime/src/test/java/org/apache/tuscany/sca/binding/jsonrpc/JSONRPCExceptionTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jsonrpc-runtime/src/test/java/org/apache/tuscany/sca/binding/jsonrpc/JSONRPCReferenceTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jsonrpc-runtime/src/test/java/org/apache/tuscany/sca/binding/jsonrpc/JSONRPCServiceTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jsonrpc-runtime/src/test/java/org/apache/tuscany/sca/binding/jsonrpc/JSONRPCSmdTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jsonrpc-runtime/src/test/resources/JSONRPCBinding.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jsonrpc-runtime/src/test/resources/JSONRPCReference.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jsonrpc/LICENSE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jsonrpc/META-INF/MANIFEST.MF delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jsonrpc/NOTICE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jsonrpc/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jsonrpc/src/main/java/org/apache/tuscany/sca/binding/jsonrpc/JSONRPCBinding.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jsonrpc/src/main/java/org/apache/tuscany/sca/binding/jsonrpc/JSONRPCBindingFactory.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jsonrpc/src/main/java/org/apache/tuscany/sca/binding/jsonrpc/impl/JSONRPCBindingFactoryImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jsonrpc/src/main/java/org/apache/tuscany/sca/binding/jsonrpc/impl/JSONRPCBindingImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jsonrpc/src/main/resources/META-INF/services/org.apache.tuscany.sca.binding.jsonrpc.JSONRPCBindingFactory delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-jsonrpc/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessor delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-rest-runtime/LICENSE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-rest-runtime/META-INF/MANIFEST.MF delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-rest-runtime/NOTICE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-rest-runtime/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-rest-runtime/src/main/java/org/apache/tuscany/sca/binding/rest/operationselector/jaxrs/provider/JAXRSOperationSelectorInterceptor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-rest-runtime/src/main/java/org/apache/tuscany/sca/binding/rest/operationselector/jaxrs/provider/JAXRSOperationSelectorProviderFactory.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-rest-runtime/src/main/java/org/apache/tuscany/sca/binding/rest/operationselector/jaxrs/provider/JAXRSOperationSelectorReferenceProvider.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-rest-runtime/src/main/java/org/apache/tuscany/sca/binding/rest/operationselector/jaxrs/provider/JAXRSOperationSelectorServiceProvider.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-rest-runtime/src/main/java/org/apache/tuscany/sca/binding/rest/operationselector/rpc/provider/RPCOperationSelectorInterceptor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-rest-runtime/src/main/java/org/apache/tuscany/sca/binding/rest/operationselector/rpc/provider/RPCOperationSelectorProviderFactory.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-rest-runtime/src/main/java/org/apache/tuscany/sca/binding/rest/operationselector/rpc/provider/RPCOperationSelectorReferenceProvider.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-rest-runtime/src/main/java/org/apache/tuscany/sca/binding/rest/operationselector/rpc/provider/RPCOperationSelectorServiceProvider.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-rest-runtime/src/main/java/org/apache/tuscany/sca/binding/rest/provider/DataBindingJAXRSProvider.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-rest-runtime/src/main/java/org/apache/tuscany/sca/binding/rest/provider/DataBindingJAXRSReader.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-rest-runtime/src/main/java/org/apache/tuscany/sca/binding/rest/provider/DataBindingJAXRSWriter.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-rest-runtime/src/main/java/org/apache/tuscany/sca/binding/rest/provider/RESTBindingInvoker.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-rest-runtime/src/main/java/org/apache/tuscany/sca/binding/rest/provider/RESTBindingListenerServlet.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-rest-runtime/src/main/java/org/apache/tuscany/sca/binding/rest/provider/RESTBindingProviderFactory.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-rest-runtime/src/main/java/org/apache/tuscany/sca/binding/rest/provider/RESTReferenceBindingProvider.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-rest-runtime/src/main/java/org/apache/tuscany/sca/binding/rest/provider/RESTServiceBindingProvider.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-rest-runtime/src/main/java/org/apache/tuscany/sca/binding/rest/provider/RESTServiceListenerServlet.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-rest-runtime/src/main/java/org/apache/tuscany/sca/binding/rest/provider/TuscanyRESTServlet.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-rest-runtime/src/main/java/org/apache/tuscany/sca/binding/rest/wireformat/json/provider/JSONWireFormatInterceptor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-rest-runtime/src/main/java/org/apache/tuscany/sca/binding/rest/wireformat/json/provider/JSONWireFormatProviderFactory.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-rest-runtime/src/main/java/org/apache/tuscany/sca/binding/rest/wireformat/json/provider/JSONWireFormatReferenceProvider.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-rest-runtime/src/main/java/org/apache/tuscany/sca/binding/rest/wireformat/json/provider/JSONWireFormatServiceProvider.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-rest-runtime/src/main/java/org/apache/tuscany/sca/binding/rest/wireformat/xml/provider/XMLWireFormatInterceptor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-rest-runtime/src/main/java/org/apache/tuscany/sca/binding/rest/wireformat/xml/provider/XMLWireFormatProviderFactory.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-rest-runtime/src/main/java/org/apache/tuscany/sca/binding/rest/wireformat/xml/provider/XMLWireFormatReferenceProvider.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-rest-runtime/src/main/java/org/apache/tuscany/sca/binding/rest/wireformat/xml/provider/XMLWireFormatServiceProvider.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-rest-runtime/src/main/resources/META-INF/services/org.apache.tuscany.sca.provider.BindingProviderFactory delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-rest-runtime/src/main/resources/META-INF/services/org.apache.tuscany.sca.provider.OperationSelectorProviderFactory delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-rest-runtime/src/main/resources/META-INF/services/org.apache.tuscany.sca.provider.WireFormatProviderFactory delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-rest-runtime/src/test/java/org/apache/tuscany/sca/binding/rest/NotModifiedException.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-rest-runtime/src/test/java/org/apache/tuscany/sca/binding/rest/PreconditionFailedException.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-rest-runtime/src/test/java/org/apache/tuscany/sca/binding/rest/RESTBindingCacheTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-rest-runtime/src/test/java/org/apache/tuscany/sca/binding/rest/RESTBindingTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-rest-runtime/src/test/java/org/apache/tuscany/sca/binding/rest/TestBindingCacheImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-rest-runtime/src/test/java/org/apache/tuscany/sca/binding/rest/TestGetImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-rest-runtime/src/test/java/org/apache/tuscany/sca/binding/rest/TestServiceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-rest-runtime/src/test/java/org/apache/tuscany/sca/binding/rest/rpc/EchoServiceTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-rest-runtime/src/test/java/org/apache/tuscany/sca/binding/rest/wireformat/binary/BinaryServiceTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-rest-runtime/src/test/java/org/apache/tuscany/sca/binding/rest/wireformat/json/CatalogServiceTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-rest-runtime/src/test/java/org/apache/tuscany/sca/binding/rest/wireformat/xml/CustomerServiceTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-rest-runtime/src/test/java/services/binary/BinaryService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-rest-runtime/src/test/java/services/binary/BinaryServiceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-rest-runtime/src/test/java/services/customer/Customer.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-rest-runtime/src/test/java/services/customer/CustomerService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-rest-runtime/src/test/java/services/customer/CustomerServiceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-rest-runtime/src/test/java/services/echo/Echo.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-rest-runtime/src/test/java/services/echo/EchoImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-rest-runtime/src/test/java/services/store/Catalog.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-rest-runtime/src/test/java/services/store/CurrencyConverter.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-rest-runtime/src/test/java/services/store/CurrencyConverterImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-rest-runtime/src/test/java/services/store/FruitsCatalogImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-rest-runtime/src/test/java/services/store/Item.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-rest-runtime/src/test/java/services/store/Items.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-rest-runtime/src/test/resources/binary.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-rest-runtime/src/test/resources/content/test.html delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-rest-runtime/src/test/resources/customer.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-rest-runtime/src/test/resources/echo.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-rest-runtime/src/test/resources/store.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-rest-runtime/src/test/resources/test.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-rest-runtime/src/test/resources/testCache.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-rest/LICENSE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-rest/META-INF/MANIFEST.MF delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-rest/NOTICE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-rest/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-rest/src/main/java/org/apache/tuscany/sca/binding/rest/RESTBinding.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-rest/src/main/java/org/apache/tuscany/sca/binding/rest/RESTBindingFactory.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-rest/src/main/java/org/apache/tuscany/sca/binding/rest/impl/RESTBindingFactoryImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-rest/src/main/java/org/apache/tuscany/sca/binding/rest/impl/RESTBindingImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-rest/src/main/java/org/apache/tuscany/sca/binding/rest/operationselector/jaxrs/JAXRSOperationSelector.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-rest/src/main/java/org/apache/tuscany/sca/binding/rest/operationselector/jaxrs/JAXRSOperationSelectorFactory.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-rest/src/main/java/org/apache/tuscany/sca/binding/rest/operationselector/jaxrs/impl/JAXRSOperationSelectorFactoryImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-rest/src/main/java/org/apache/tuscany/sca/binding/rest/operationselector/jaxrs/impl/JAXRSOperationSelectorImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-rest/src/main/java/org/apache/tuscany/sca/binding/rest/operationselector/rpc/RPCOperationSelector.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-rest/src/main/java/org/apache/tuscany/sca/binding/rest/operationselector/rpc/RPCOperationSelectorFactory.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-rest/src/main/java/org/apache/tuscany/sca/binding/rest/operationselector/rpc/impl/RPCOperationSelectorFactoryImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-rest/src/main/java/org/apache/tuscany/sca/binding/rest/operationselector/rpc/impl/RPCOperationSelectorImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-rest/src/main/java/org/apache/tuscany/sca/binding/rest/wireformat/json/JSONWireFormat.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-rest/src/main/java/org/apache/tuscany/sca/binding/rest/wireformat/json/JSONWireFormatFactory.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-rest/src/main/java/org/apache/tuscany/sca/binding/rest/wireformat/json/impl/JSONWireFormatFactoryImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-rest/src/main/java/org/apache/tuscany/sca/binding/rest/wireformat/json/impl/JSONWireFormatImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-rest/src/main/java/org/apache/tuscany/sca/binding/rest/wireformat/xml/XMLWireFormat.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-rest/src/main/java/org/apache/tuscany/sca/binding/rest/wireformat/xml/XMLWireFormatFactory.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-rest/src/main/java/org/apache/tuscany/sca/binding/rest/wireformat/xml/impl/XMLWireFormatFactoryImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-rest/src/main/java/org/apache/tuscany/sca/binding/rest/wireformat/xml/impl/XMLWireFormatImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-rest/src/main/java/org/apache/tuscany/sca/binding/rest/xml/RESTBindingProcessor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-rest/src/main/resources/META-INF/services/org.apache.tuscany.sca.binding.rest.RESTBindingFactory delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-rest/src/main/resources/META-INF/services/org.apache.tuscany.sca.binding.rest.operationselector.jaxrs.JAXRSOperationSelectorFactory delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-rest/src/main/resources/META-INF/services/org.apache.tuscany.sca.binding.rest.operationselector.rpc.RPCOperationSelectorFactory delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-rest/src/main/resources/META-INF/services/org.apache.tuscany.sca.binding.rest.wireformat.json.JSONWireFormatFactory delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-rest/src/main/resources/META-INF/services/org.apache.tuscany.sca.binding.rest.wireformat.xml.XMLWireFormatFactory delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-rest/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessor delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-rest/src/test/java/org/apache/tuscany/sca/binding/rest/operationselector/jaxrs/impl/JAXRSOperationSelectorProcessorTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-rest/src/test/java/org/apache/tuscany/sca/binding/rest/wireformat/json/impl/JSONWireFormatProcessorTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-rest/src/test/java/org/apache/tuscany/sca/binding/rest/xml/RESTBindingProcessorTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-rmi-runtime/LICENSE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-rmi-runtime/META-INF/MANIFEST.MF delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-rmi-runtime/NOTICE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-rmi-runtime/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-rmi-runtime/src/main/java/org/apache/tuscany/sca/binding/rmi/provider/RMIBindingInvoker.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-rmi-runtime/src/main/java/org/apache/tuscany/sca/binding/rmi/provider/RMIBindingProviderFactory.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-rmi-runtime/src/main/java/org/apache/tuscany/sca/binding/rmi/provider/RMIReferenceBindingProvider.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-rmi-runtime/src/main/java/org/apache/tuscany/sca/binding/rmi/provider/RMIServiceBindingProvider.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-rmi-runtime/src/main/java/org/apache/tuscany/sca/binding/rmi/provider/RemoteInterfaceGenerator.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-rmi-runtime/src/main/resources/META-INF/services/org.apache.tuscany.sca.provider.BindingProviderFactory delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-rmi-runtime/src/test/java/helloworld/HelloException.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-rmi-runtime/src/test/java/helloworld/HelloWorldImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-rmi-runtime/src/test/java/helloworld/HelloWorldRmiImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-rmi-runtime/src/test/java/helloworld/HelloWorldRmiService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-rmi-runtime/src/test/java/helloworld/HelloWorldService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-rmi-runtime/src/test/java/org/apache/tuscany/sca/binding/rmi/BindingTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-rmi-runtime/src/test/resources/HelloWorldImpl.componentType delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-rmi-runtime/src/test/resources/HelloWorldRmiImpl.componentType delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-rmi-runtime/src/test/resources/RMIBindingTest.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-rmi/LICENSE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-rmi/META-INF/MANIFEST.MF delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-rmi/NOTICE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-rmi/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-rmi/src/main/java/org/apache/tuscany/sca/binding/rmi/RMIBinding.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-rmi/src/main/java/org/apache/tuscany/sca/binding/rmi/RMIBindingFactory.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-rmi/src/main/java/org/apache/tuscany/sca/binding/rmi/impl/RMIBindingFactoryImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-rmi/src/main/java/org/apache/tuscany/sca/binding/rmi/impl/RMIBindingImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-rmi/src/main/resources/META-INF/services/org.apache.tuscany.sca.binding.rmi.RMIBindingFactory delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-rmi/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessor delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-rss-runtime/LICENSE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-rss-runtime/META-INF/MANIFEST.MF delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-rss-runtime/NOTICE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-rss-runtime/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-rss-runtime/src/main/java/org/apache/tuscany/sca/binding/rss/collection/Collection.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-rss-runtime/src/main/java/org/apache/tuscany/sca/binding/rss/collection/MediaCollection.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-rss-runtime/src/main/java/org/apache/tuscany/sca/binding/rss/collection/NotFoundException.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-rss-runtime/src/main/java/org/apache/tuscany/sca/binding/rss/provider/RSSBindingInvoker.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-rss-runtime/src/main/java/org/apache/tuscany/sca/binding/rss/provider/RSSBindingListenerServlet.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-rss-runtime/src/main/java/org/apache/tuscany/sca/binding/rss/provider/RSSBindingProviderFactory.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-rss-runtime/src/main/java/org/apache/tuscany/sca/binding/rss/provider/RSSReferenceBindingProvider.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-rss-runtime/src/main/java/org/apache/tuscany/sca/binding/rss/provider/RSSServiceBindingProvider.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-rss-runtime/src/main/resources/META-INF/services/org.apache.tuscany.sca.provider.BindingProviderFactory delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-rss-runtime/src/test/java/org/apache/tuscany/sca/binding/rss/Consumer.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-rss-runtime/src/test/java/org/apache/tuscany/sca/binding/rss/CustomerClient.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-rss-runtime/src/test/java/org/apache/tuscany/sca/binding/rss/CustomerClientImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-rss-runtime/src/test/java/org/apache/tuscany/sca/binding/rss/CustomerCollectionImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-rss-runtime/src/test/java/org/apache/tuscany/sca/binding/rss/Provider.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-rss-runtime/src/test/java/org/apache/tuscany/sca/binding/rss/RSSGetTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-rss-runtime/src/test/resources/org/apache/tuscany/sca/binding/rss/Consumer.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-rss-runtime/src/test/resources/org/apache/tuscany/sca/binding/rss/Provider.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-rss/LICENSE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-rss/META-INF/MANIFEST.MF delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-rss/NOTICE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-rss/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-rss/src/main/java/org/apache/tuscany/sca/binding/rss/RSSBinding.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-rss/src/main/java/org/apache/tuscany/sca/binding/rss/RSSBindingFactory.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-rss/src/main/java/org/apache/tuscany/sca/binding/rss/impl/RSSBindingFactoryImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-rss/src/main/java/org/apache/tuscany/sca/binding/rss/impl/RSSBindingImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-rss/src/main/resources/META-INF/services/org.apache.tuscany.sca.binding.rss.RSSBindingFactory delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-rss/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessor delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-sca-runtime/LICENSE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-sca-runtime/META-INF/MANIFEST.MF delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-sca-runtime/NOTICE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-sca-runtime/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-sca-runtime/src/main/java/org/apache/tuscany/sca/binding/sca/provider/DefaultSCABindingMapper.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-sca-runtime/src/main/java/org/apache/tuscany/sca/binding/sca/provider/DelegatingSCAReferenceBindingProvider.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-sca-runtime/src/main/java/org/apache/tuscany/sca/binding/sca/provider/DelegatingSCAServiceBindingProvider.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-sca-runtime/src/main/java/org/apache/tuscany/sca/binding/sca/provider/RemoteBindingHelper.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-sca-runtime/src/main/java/org/apache/tuscany/sca/binding/sca/provider/RuntimeSCABindingProviderFactory.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-sca-runtime/src/main/java/org/apache/tuscany/sca/binding/sca/provider/RuntimeSCAReferenceBindingProvider.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-sca-runtime/src/main/java/org/apache/tuscany/sca/binding/sca/provider/RuntimeSCAServiceBindingProvider.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-sca-runtime/src/main/java/org/apache/tuscany/sca/binding/sca/provider/SCABindingInvoker.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-sca-runtime/src/main/java/org/apache/tuscany/sca/binding/sca/provider/SCABindingMapper.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-sca-runtime/src/main/resources/META-INF/services/org.apache.tuscany.sca.binding.sca.provider.SCABindingMapper delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-sca-runtime/src/main/resources/META-INF/services/org.apache.tuscany.sca.definitions.xml.Definitions delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-sca-runtime/src/main/resources/META-INF/services/org.apache.tuscany.sca.provider.BindingProviderFactory delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-sca-runtime/src/main/resources/org/apache/tuscany/sca/binding/sca/definitions.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-sca-runtime/src/test/java/org/apace/tuscany/sca/binding/sca/SCABindingTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-sca-runtime/src/test/java/org/apace/tuscany/sca/binding/sca/xml/ReadTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-sca-runtime/src/test/java/org/apace/tuscany/sca/binding/sca/xml/WriteTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-sca-runtime/src/test/resources/Calculator.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-sca-runtime/src/test/resources/CalculatorServiceImpl.componentType delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-ws-runtime-axis2/LICENSE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-ws-runtime-axis2/META-INF/MANIFEST.MF delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-ws-runtime-axis2/NOTICE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-ws-runtime-axis2/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-ws-runtime-axis2/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/policy/authentication/basic/BasicAuthenticationPolicyProviderFactory.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-ws-runtime-axis2/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/policy/authentication/basic/BasicAuthenticationReferencePolicyInterceptor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-ws-runtime-axis2/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/policy/authentication/basic/BasicAuthenticationReferencePolicyProvider.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-ws-runtime-axis2/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/policy/authentication/basic/BasicAuthenticationServicePolicyInterceptor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-ws-runtime-axis2/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/policy/authentication/basic/BasicAuthenticationServicePolicyProvider.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-ws-runtime-axis2/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/policy/configuration/Axis2ConfigParamPolicy.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-ws-runtime-axis2/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/policy/configuration/Axis2ConfigParamPolicyProcessor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-ws-runtime-axis2/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/policy/configuration/Axis2ConfigParamPolicyProvider.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-ws-runtime-axis2/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/policy/configuration/Axis2ConfigParamPolicyProviderFactory.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-ws-runtime-axis2/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/policy/mtom/Axis2MTOMPolicyProvider.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-ws-runtime-axis2/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/policy/security/http/ssl/HTTPSPolicyProvider.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-ws-runtime-axis2/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/policy/security/http/ssl/HTTPSPolicyProviderFactory.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-ws-runtime-axis2/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/provider/Axis2BaseBindingProvider.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-ws-runtime-axis2/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/provider/Axis2BindingProviderFactory.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-ws-runtime-axis2/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/provider/Axis2EngineIntegration.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-ws-runtime-axis2/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/provider/Axis2ReferenceBindingInvoker.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-ws-runtime-axis2/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/provider/Axis2ReferenceBindingProvider.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-ws-runtime-axis2/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/provider/Axis2ServiceBindingProvider.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-ws-runtime-axis2/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/provider/Axis2ServiceInMessageReceiver.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-ws-runtime-axis2/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/provider/Axis2ServiceInOutSyncMessageReceiver.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-ws-runtime-axis2/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/provider/Axis2ServiceProvider.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-ws-runtime-axis2/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/provider/Axis2ServiceServlet.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-ws-runtime-axis2/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/provider/TuscanyDispatcher.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-ws-runtime-axis2/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/provider/TuscanyListingAgent.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-ws-runtime-axis2/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/transport/TransportReferenceInterceptor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-ws-runtime-axis2/src/main/resources/META-INF/services/org.apache.tuscany.sca.definitions.xml.Definitions delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-ws-runtime-axis2/src/main/resources/META-INF/services/org.apache.tuscany.sca.provider.BindingProviderFactory delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-ws-runtime-axis2/src/main/resources/META-INF/services/org.apache.tuscany.sca.provider.PolicyProviderFactory delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-ws-runtime-axis2/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/definitions.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-ws-runtime-axis2/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/engine/conf/tuscany-axis2.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-ws-runtime-axis2/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/engine/repository/modules/modules.list delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-ws-runtime-axis2/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/engine/repository/modules/rampart-1.4.mar delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-ws-runtime-axis2/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/engine/repository/services/services.list delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-ws-runtime-axis2/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/HelloWorldTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-ws-runtime-axis2/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/WSDLBindingTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-ws-runtime-axis2/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/WSDLBindingURITestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-ws-runtime-axis2/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/WSDLBindingWSATestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-ws-runtime-axis2/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/helloworld/HelloWorld.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-ws-runtime-axis2/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/helloworld/HelloWorldClient.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-ws-runtime-axis2/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/helloworld/HelloWorldService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-ws-runtime-axis2/src/test/resources/org/apache/tuscany/sca/binding/ws/axis2/helloworld/helloworld.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-ws-runtime-axis2/src/test/resources/org/apache/tuscany/sca/binding/ws/axis2/helloworld/helloworld.wsdl delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-ws-runtime-axis2/src/test/resources/org/apache/tuscany/sca/binding/ws/axis2/wsdlbinding/helloworld.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-ws-runtime-axis2/src/test/resources/org/apache/tuscany/sca/binding/ws/axis2/wsdlbindinguri/helloworld.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-ws-runtime-axis2/src/test/resources/org/apache/tuscany/sca/binding/ws/axis2/wsdlbindingwsa/helloworld.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-ws-runtime-jaxws-ri/LICENSE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-ws-runtime-jaxws-ri/META-INF/MANIFEST.MF delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-ws-runtime-jaxws-ri/NOTICE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-ws-runtime-jaxws-ri/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-ws-runtime-jaxws-ri/src/main/java/org/apache/tuscany/sca/binding/ws/jaxws/ri/JAXWSBindingProviderFactory.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-ws-runtime-jaxws-ri/src/main/java/org/apache/tuscany/sca/binding/ws/jaxws/ri/JAXWSReferenceBindingProvider.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-ws-runtime-jaxws-ri/src/main/java/org/apache/tuscany/sca/binding/ws/jaxws/ri/JAXWSServiceBindingProvider.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-ws-runtime-jaxws-ri/src/main/resources/META-INF/services/org.apache.tuscany.sca.definitions.xml.Definitions delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-ws-runtime-jaxws-ri/src/main/resources/META-INF/services/org.apache.tuscany.sca.provider.BindingProviderFactory delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-ws-runtime-jaxws-ri/src/main/resources/org/apache/tuscany/sca/binding/ws/jaxws/ri/definitions.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-ws-runtime-jaxws-ri/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/WSDLPortTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-ws-runtime-jaxws-ri/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/helloworld/HelloWorld.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-ws-runtime-jaxws-ri/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/helloworld/HelloWorldClient.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-ws-runtime-jaxws-ri/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/helloworld/HelloWorldService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-ws-runtime-jaxws-ri/src/test/resources/org/apache/tuscany/sca/binding/ws/axis2/wsdlport/helloworld.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-ws-runtime-jaxws-ri/src/test/resources/org/apache/tuscany/sca/binding/ws/axis2/wsdlport/helloworld.wsdl delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-ws-runtime-jaxws/LICENSE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-ws-runtime-jaxws/META-INF/MANIFEST.MF delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-ws-runtime-jaxws/NOTICE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-ws-runtime-jaxws/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-ws-runtime-jaxws/src/main/java/org/apache/tuscany/sca/binding/ws/jaxws/JAXWSBindingInvoker.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-ws-runtime-jaxws/src/main/java/org/apache/tuscany/sca/binding/ws/jaxws/JAXWSBindingProvider.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-ws-wsdlgen/LICENSE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-ws-wsdlgen/META-INF/MANIFEST.MF delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-ws-wsdlgen/NOTICE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-ws-wsdlgen/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-ws-wsdlgen/src/main/java/org/apache/tuscany/sca/binding/ws/wsdlgen/BindingWSDLGenerator.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-ws-wsdlgen/src/main/java/org/apache/tuscany/sca/binding/ws/wsdlgen/Interface2WSDLGenerator.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-ws-wsdlgen/src/main/java/org/apache/tuscany/sca/binding/ws/wsdlgen/WSDLDefinitionGenerator.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-ws-wsdlgen/src/main/java/org/apache/tuscany/sca/binding/ws/wsdlgen/WSDLGenerationException.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-ws-wsdlgen/src/main/java/org/apache/tuscany/sca/binding/ws/wsdlgen/WSDLServiceGenerator.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-ws-wsdlgen/src/main/java/org/apache/tuscany/sca/binding/ws/wsdlgen/WebServiceBindingBuilder.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-ws-wsdlgen/src/main/resources/META-INF/services/org.apache.tuscany.sca.assembly.builder.BindingBuilder delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-ws-wsdlgen/src/main/resources/wsdlgen-validation-messages.properties delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-ws-wsdlgen/src/test/java/org/apache/tuscany/sca/binding/ws/other/Other.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-ws-wsdlgen/src/test/java/org/apache/tuscany/sca/binding/ws/other/package-info.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-ws-wsdlgen/src/test/java/org/apache/tuscany/sca/binding/ws/wsdlgen/BindingWSDLGeneratorTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-ws-wsdlgen/src/test/java/org/apache/tuscany/sca/binding/ws/wsdlgen/Interface2WSDLGeneratorTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-ws-wsdlgen/src/test/java/org/apache/tuscany/sca/binding/ws/wsdlgen/TestException.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-ws-wsdlgen/src/test/java/org/apache/tuscany/sca/binding/ws/wsdlgen/TestFault.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-ws-wsdlgen/src/test/java/org/apache/tuscany/sca/binding/ws/wsdlgen/TestFaultBean.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-ws-wsdlgen/src/test/java/org/apache/tuscany/sca/binding/ws/wsdlgen/TestJavaClass.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-ws-wsdlgen/src/test/java/org/apache/tuscany/sca/binding/ws/wsdlgen/TestJavaInterface.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-ws/LICENSE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-ws/META-INF/MANIFEST.MF delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-ws/NOTICE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-ws/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-ws/src/main/java/org/apache/tuscany/sca/binding/ws/WebServiceBinding.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-ws/src/main/java/org/apache/tuscany/sca/binding/ws/WebServiceBindingFactory.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-ws/src/main/java/org/apache/tuscany/sca/binding/ws/addressing/EndPointReference.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-ws/src/main/java/org/apache/tuscany/sca/binding/ws/impl/WebServiceBindingFactoryImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-ws/src/main/java/org/apache/tuscany/sca/binding/ws/impl/WebServiceBindingImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-ws/src/main/java/org/apache/tuscany/sca/binding/ws/xml/EndPointReferenceHelper.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-ws/src/main/java/org/apache/tuscany/sca/binding/ws/xml/WebServiceBindingProcessor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-ws/src/main/java/org/apache/tuscany/sca/binding/ws/xml/WebServiceConstants.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-ws/src/main/resources/META-INF/services/org.apache.tuscany.sca.binding.ws.WebServiceBindingFactory delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-ws/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessor delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-ws/src/main/resources/binding-wsxml-validation-messages.properties delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-ws/src/test/java/org/apache/tuscany/sca/binding/ws/xml/ReadTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-ws/src/test/java/org/apache/tuscany/sca/binding/ws/xml/WriteTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-ws/src/test/resources/org/apache/tuscany/sca/binding/ws/xml/Calculator-bad-wsdlElement.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-ws/src/test/resources/org/apache/tuscany/sca/binding/ws/xml/Calculator.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-ws/src/test/resources/org/apache/tuscany/sca/binding/ws/xml/CalculatorImpl.componentType delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-ws/src/test/resources/org/apache/tuscany/sca/binding/ws/xml/PoliciedCalculator.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-ws/src/test/resources/org/apache/tuscany/sca/binding/ws/xml/example.wsdl delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-ws/src/test/resources/org/apache/tuscany/sca/binding/ws/xml/invalid-stockquote.wsdl delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-ws/src/test/resources/org/apache/tuscany/sca/binding/ws/xml/ipo.xsd delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-ws/src/test/resources/org/apache/tuscany/sca/binding/ws/xml/stockquote.wsdl delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-ws/src/test/resources/org/apache/tuscany/sca/binding/ws/xml/test1.wsdl delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-ws/src/test/resources/org/apache/tuscany/sca/binding/ws/xml/test1.xsd delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-ws/src/test/resources/org/apache/tuscany/sca/binding/ws/xml/test2.wsdl delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/binding-ws/src/test/resources/org/apache/tuscany/sca/binding/ws/xml/unwrapped-stockquote.wsdl delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/builder/META-INF/MANIFEST.MF delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/builder/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/builder/src/main/java/org/apache/tuscany/sca/builder/impl/BindingURIBuilderImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/builder/src/main/java/org/apache/tuscany/sca/builder/impl/ComponentBuilderImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/builder/src/main/java/org/apache/tuscany/sca/builder/impl/ComponentPolicyBuilderImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/builder/src/main/java/org/apache/tuscany/sca/builder/impl/ComponentReferenceBindingBuilderImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/builder/src/main/java/org/apache/tuscany/sca/builder/impl/ComponentServiceBindingBuilderImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/builder/src/main/java/org/apache/tuscany/sca/builder/impl/CompositeCloneBuilderImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/builder/src/main/java/org/apache/tuscany/sca/builder/impl/CompositeComponentTypeBuilderImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/builder/src/main/java/org/apache/tuscany/sca/builder/impl/CompositeIncludeBuilderImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/builder/src/main/java/org/apache/tuscany/sca/builder/impl/CompositePolicyBuilderImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/builder/src/main/java/org/apache/tuscany/sca/builder/impl/CompositeWireApplierImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/builder/src/main/java/org/apache/tuscany/sca/builder/impl/EndpointBuilderImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/builder/src/main/java/org/apache/tuscany/sca/builder/impl/EndpointReferenceBuilderImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/builder/src/main/java/org/apache/tuscany/sca/builder/impl/IntentValidator.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/builder/src/main/java/org/apache/tuscany/sca/builder/impl/ModelBuilderImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/builder/src/main/java/org/apache/tuscany/sca/builder/impl/PolicyAppliesToBuilderImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/builder/src/main/java/org/apache/tuscany/sca/builder/impl/PolicyAttachmentBuilderImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/builder/src/main/java/org/apache/tuscany/sca/builder/impl/StructuralURIBuilderImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/builder/src/main/java/org/apache/tuscany/sca/builder/impl/WireBuilderImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/builder/src/main/java/org/apache/tuscany/sca/builder/impl/WireMatcherImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/builder/src/main/resources/META-INF/services/org.apache.tuscany.sca.assembly.builder.CompositeBuilder delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/builder/src/main/resources/org/apache/tuscany/sca/builder/builder-validation-messages.properties delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/builder/src/test/java/org/apache/tuscany/sca/builder/impl/BuildPolicyTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/builder/src/test/java/org/apache/tuscany/sca/builder/impl/CompositeBuilderTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/builder/src/test/java/org/apache/tuscany/sca/builder/impl/MockPolicy.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/builder/src/test/java/org/apache/tuscany/sca/builder/impl/PolicyAttachmentTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/builder/src/test/java/org/apache/tuscany/sca/builder/impl/TestPolicyProcessor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/builder/src/test/resources/org/apache/tuscany/sca/builder/impl/Calculator.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/builder/src/test/resources/org/apache/tuscany/sca/builder/impl/Composite1.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/builder/src/test/resources/org/apache/tuscany/sca/builder/impl/Composite2.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/builder/src/test/resources/org/apache/tuscany/sca/builder/impl/Composite3.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/builder/src/test/resources/org/apache/tuscany/sca/builder/impl/Composite4.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/builder/src/test/resources/org/apache/tuscany/sca/builder/impl/definitions.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/builder/src/test/resources/org/apache/tuscany/sca/builder/impl/scenario.odg delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/builder/src/test/resources/org/apache/tuscany/sca/builder/impl/scenario.png delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/builder/src/test/resources/org/apache/tuscany/sca/builder/impl/test_definitions.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/common-http/META-INF/MANIFEST.MF delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/common-http/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/common-http/src/main/java/org/apache/tuscany/sca/common/http/HTTPCacheContext.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/common-http/src/main/java/org/apache/tuscany/sca/common/http/HTTPConstants.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/common-http/src/main/java/org/apache/tuscany/sca/common/http/HTTPContentTypeMapper.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/common-http/src/main/java/org/apache/tuscany/sca/common/http/HTTPContext.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/common-http/src/main/java/org/apache/tuscany/sca/common/http/HTTPHeader.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/common-http/src/main/java/org/apache/tuscany/sca/common/http/HTTPUtil.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/common-java/META-INF/MANIFEST.MF delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/common-java/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/common-java/src/main/java/org/apache/tuscany/sca/common/java/classloader/ClassLoaderDelegate.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/common-java/src/main/java/org/apache/tuscany/sca/common/java/collection/CollectionMap.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/common-java/src/main/java/org/apache/tuscany/sca/common/java/collection/CompoundEnumeration.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/common-java/src/main/java/org/apache/tuscany/sca/common/java/collection/CompoundIterator.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/common-java/src/main/java/org/apache/tuscany/sca/common/java/collection/LRUCache.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/common-java/src/main/java/org/apache/tuscany/sca/common/java/io/IOHelper.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/common-java/src/main/java/org/apache/tuscany/sca/common/java/reflection/JavaIntrospectionHelper.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/common-java/src/test/java/org/apache/tuscany/sca/common/java/reflection/JavaIntrospectionHelperTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/common-java/src/test/java/org/apache/tuscany/sca/common/java/reflection/SubTestImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/common-java/src/test/java/org/apache/tuscany/sca/common/java/reflection/Test1.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/common-java/src/test/java/org/apache/tuscany/sca/common/java/reflection/Test2.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/common-java/src/test/java/org/apache/tuscany/sca/common/java/reflection/TestImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/common-xml/META-INF/MANIFEST.MF delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/common-xml/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/common-xml/src/main/java/org/apache/tuscany/sca/common/xml/XMLDocumentHelper.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/common-xml/src/main/java/org/apache/tuscany/sca/common/xml/dom/DOMHelper.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/common-xml/src/main/java/org/apache/tuscany/sca/common/xml/dom/impl/SAX2DOMAdapter.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/common-xml/src/main/java/org/apache/tuscany/sca/common/xml/sax/SAXHelper.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/common-xml/src/main/java/org/apache/tuscany/sca/common/xml/stax/StAXHelper.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/common-xml/src/main/java/org/apache/tuscany/sca/common/xml/stax/impl/StAX2SAXAdapter.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/common-xml/src/main/java/org/apache/tuscany/sca/common/xml/stax/impl/XMLStreamSerializer.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/common-xml/src/main/java/org/apache/tuscany/sca/common/xml/stax/reader/DOMXMLStreamReader.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/common-xml/src/main/java/org/apache/tuscany/sca/common/xml/stax/reader/DOMXmlNodeImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/common-xml/src/main/java/org/apache/tuscany/sca/common/xml/stax/reader/DelegatingNamespaceContext.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/common-xml/src/main/java/org/apache/tuscany/sca/common/xml/stax/reader/NameValueArrayStreamReader.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/common-xml/src/main/java/org/apache/tuscany/sca/common/xml/stax/reader/NameValuePairStreamReader.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/common-xml/src/main/java/org/apache/tuscany/sca/common/xml/stax/reader/NamedProperty.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/common-xml/src/main/java/org/apache/tuscany/sca/common/xml/stax/reader/NamespaceContextImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/common-xml/src/main/java/org/apache/tuscany/sca/common/xml/stax/reader/NilElementStreamReader.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/common-xml/src/main/java/org/apache/tuscany/sca/common/xml/stax/reader/SimpleXmlNodeImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/common-xml/src/main/java/org/apache/tuscany/sca/common/xml/stax/reader/WrappingXMLStreamReader.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/common-xml/src/main/java/org/apache/tuscany/sca/common/xml/stax/reader/XMLDocumentStreamReader.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/common-xml/src/main/java/org/apache/tuscany/sca/common/xml/stax/reader/XMLFragmentStreamReader.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/common-xml/src/main/java/org/apache/tuscany/sca/common/xml/stax/reader/XMLFragmentStreamReaderImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/common-xml/src/main/java/org/apache/tuscany/sca/common/xml/stax/reader/XMLStreamable.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/common-xml/src/main/java/org/apache/tuscany/sca/common/xml/stax/reader/XmlNode.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/common-xml/src/main/java/org/apache/tuscany/sca/common/xml/stax/reader/XmlNodeIterator.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/common-xml/src/main/java/org/apache/tuscany/sca/common/xml/stax/reader/XmlTreeStreamReaderImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/common-xml/src/main/java/org/apache/tuscany/sca/common/xml/xpath/XMLCharHelper.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/common-xml/src/main/java/org/apache/tuscany/sca/common/xml/xpath/XPathHelper.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/common-xml/src/test/java/org/apache/tuscany/sca/common/xml/dom/DOMHelperTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/common-xml/src/test/java/org/apache/tuscany/sca/common/xml/stax/StAXHelperTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/common-xml/src/test/java/org/apache/tuscany/sca/common/xml/stax/reader/XmlTreeStreamReaderTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/common-xml/src/test/java/org/apache/tuscany/sca/common/xml/xpath/XPathHelperTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/common-xml/src/test/resources/org/apache/tuscany/sca/common/xml/stax/test.wsdl delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/common-xml/src/test/resources/org/apache/tuscany/sca/common/xml/stax/test.xsd delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/contribution-osgi/LICENSE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/contribution-osgi/META-INF/MANIFEST.MF delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/contribution-osgi/NOTICE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/contribution-osgi/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/contribution-osgi/src/main/java/org/apache/tuscany/sca/contribution/osgi/BundleReference.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/contribution-osgi/src/main/java/org/apache/tuscany/sca/contribution/osgi/impl/OSGiBundleActivator.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/contribution-osgi/src/main/java/org/apache/tuscany/sca/contribution/osgi/impl/OSGiBundleContributionScanner.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/contribution-osgi/src/main/java/org/apache/tuscany/sca/contribution/osgi/impl/OSGiBundleProcessor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/contribution-osgi/src/main/java/org/apache/tuscany/sca/contribution/osgi/impl/OSGiBundleReferenceModelResolver.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/contribution-osgi/src/main/java/org/apache/tuscany/sca/contribution/osgi/impl/OSGiClassReferenceModelResolver.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/contribution-osgi/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.resolver.ModelResolver delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/contribution-osgi/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.scanner.ContributionScanner delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/contribution/LICENSE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/contribution/META-INF/MANIFEST.MF delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/contribution/NOTICE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/contribution/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/Artifact.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/ContentType.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/Contribution.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/ContributionFactory.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/ContributionMetadata.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/DefaultContributionFactory.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/DefaultExport.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/DefaultImport.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/Export.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/Import.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/PackageType.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/impl/ArtifactImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/impl/ContributionFactoryImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/impl/ContributionImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/impl/ContributionMetadataImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/impl/DefaultExportImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/impl/DefaultImportImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/java/DefaultJavaImportExportFactory.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/java/JavaExport.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/java/JavaImport.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/java/JavaImportExportFactory.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/java/impl/ClassLoaderModelResolver.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/java/impl/ContributionClassLoader.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/java/impl/ContributionHelper.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/java/impl/JavaExportImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/java/impl/JavaExportModelResolver.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/java/impl/JavaExportProcessor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/java/impl/JavaImportExportFactoryImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/java/impl/JavaImportImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/java/impl/JavaImportModelResolver.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/java/impl/JavaImportProcessor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/namespace/DefaultNamespaceImportExportFactory.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/namespace/NamespaceExport.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/namespace/NamespaceImport.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/namespace/NamespaceImportExportFactory.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/namespace/impl/NamespaceExportImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/namespace/impl/NamespaceExportModelResolver.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/namespace/impl/NamespaceExportProcessor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/namespace/impl/NamespaceImportExportFactoryImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/namespace/impl/NamespaceImportImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/namespace/impl/NamespaceImportProcessor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/processor/ArtifactProcessor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/processor/BaseStAXArtifactProcessor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/processor/ContributionException.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/processor/ContributionReadException.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/processor/ContributionResolveException.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/processor/ContributionRuntimeException.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/processor/ContributionWriteException.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/processor/DefaultArtifactProcessorExtensionPoint.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/processor/DefaultStAXArtifactProcessorExtensionPoint.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/processor/DefaultStAXAttributeProcessorExtensionPoint.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/processor/DefaultURLArtifactProcessorExtensionPoint.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/processor/DefaultValidatingXMLInputFactory.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/processor/DefaultValidationSchemaExtensionPoint.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/processor/ExtendedArtifactProcessor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/processor/ExtendedURLArtifactProcessor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/processor/ExtensibleStAXArtifactProcessor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/processor/ExtensibleStAXAttributeProcessor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/processor/ExtensibleURLArtifactProcessor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/processor/ProcessorContext.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/processor/StAXArtifactProcessor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/processor/StAXArtifactProcessorExtensionPoint.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/processor/StAXAttributeProcessor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/processor/StAXAttributeProcessorExtensionPoint.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/processor/URLArtifactProcessor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/processor/URLArtifactProcessorExtensionPoint.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/processor/UnrecognizedElementException.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/processor/UnsupportedContentTypeException.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/processor/UnsupportedPackageTypeException.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/processor/ValidatingXMLInputFactory.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/processor/ValidatingXMLStreamReader.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/processor/ValidationSchemaExtensionPoint.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/processor/impl/ContributionContentProcessor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/processor/xml/AnyAttributeProcessor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/processor/xml/AnyElementProcessor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/resolver/ClassReference.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/resolver/DefaultDelegatingModelResolver.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/resolver/DefaultImportAllModelResolver.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/resolver/DefaultImportModelResolver.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/resolver/DefaultModelResolver.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/resolver/DefaultModelResolverExtensionPoint.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/resolver/ExtensibleModelResolver.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/resolver/ModelResolver.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/resolver/ModelResolverExtensionPoint.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/resolver/ResolverExtension.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/resolver/ResourceReference.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/scanner/ContributionScanner.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/scanner/ContributionScannerExtensionPoint.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/scanner/DefaultContributionScannerExtensionPoint.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/scanner/impl/DirectoryContributionScanner.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/scanner/impl/JarContributionScanner.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/xml/ContributionGeneratedMetadataDocumentProcessor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/xml/ContributionMetadataDocumentProcessor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/xml/ContributionMetadataProcessor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/xml/ContributionModelResolver.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/contribution/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.ContributionFactory delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/contribution/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.java.JavaImportExportFactory delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/contribution/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.namespace.NamespaceImportExportFactory delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/contribution/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessor delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/contribution/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessorExtensionPoint delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/contribution/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.processor.StAXAttributeProcessor delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/contribution/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.processor.StAXAttributeProcessorExtensionPoint delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/contribution/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.processor.URLArtifactProcessor delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/contribution/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.processor.URLArtifactProcessorExtensionPoint delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/contribution/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.processor.ValidatingXMLInputFactory delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/contribution/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.processor.ValidationSchemaExtensionPoint delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/contribution/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.resolver.ModelResolver delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/contribution/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.resolver.ModelResolverExtensionPoint delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/contribution/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.scanner.ContributionScannerExtensionPoint delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/contribution/src/main/resources/contribution-java-validation-messages.properties delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/contribution/src/main/resources/contribution-namespace-validation-messages.properties delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/contribution/src/main/resources/contribution-validation-messages.properties delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/contribution/src/main/resources/contribution-xml-validation-messages.properties delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/contribution/src/test/java/org/apache/tuscany/sca/contribution/java/impl/ContributionClassLoaderTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/contribution/src/test/java/org/apache/tuscany/sca/contribution/java/impl/JavaExportProcessorTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/contribution/src/test/java/org/apache/tuscany/sca/contribution/java/impl/JavaImportProcessorTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/contribution/src/test/java/org/apache/tuscany/sca/contribution/namespace/impl/NamespaceExportProcessorTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/contribution/src/test/java/org/apache/tuscany/sca/contribution/namespace/impl/NamespaceImportProcessorTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/contribution/src/test/java/org/apache/tuscany/sca/contribution/processor/URLartifactProcessorExtensionPointTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/contribution/src/test/java/org/apache/tuscany/sca/contribution/resolver/DefaultModelResolverTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/contribution/src/test/java/org/apache/tuscany/sca/contribution/resolver/ExtensibleModelResolverTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/contribution/src/test/java/org/apache/tuscany/sca/contribution/resolver/TestModelResolver.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/contribution/src/test/java/org/apache/tuscany/sca/contribution/xml/ContributionMetadataProcessorTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/contribution/src/test/resources/deployables/sample-calculator.jar delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/contribution/src/test/resources/repository/sample-calculator.jar delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/contribution/src/test/resources/test.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core-databinding/LICENSE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core-databinding/META-INF/MANIFEST.MF delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core-databinding/NOTICE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core-databinding/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core-databinding/src/main/java/org/apache/tuscany/sca/core/databinding/processor/DataBindingJavaInterfaceProcessor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core-databinding/src/main/java/org/apache/tuscany/sca/core/databinding/processor/WrapperJavaInterfaceProcessor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core-databinding/src/main/java/org/apache/tuscany/sca/core/databinding/transformers/Array2ArrayTransformer.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core-databinding/src/main/java/org/apache/tuscany/sca/core/databinding/transformers/Collection2CollectionTransformer.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core-databinding/src/main/java/org/apache/tuscany/sca/core/databinding/transformers/Exception2ExceptionTransformer.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core-databinding/src/main/java/org/apache/tuscany/sca/core/databinding/transformers/Input2InputTransformer.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core-databinding/src/main/java/org/apache/tuscany/sca/core/databinding/transformers/Map2MapTransformer.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core-databinding/src/main/java/org/apache/tuscany/sca/core/databinding/transformers/Output2OutputTransformer.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core-databinding/src/main/java/org/apache/tuscany/sca/core/databinding/wire/DataBindingRuntimeWireProcessor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core-databinding/src/main/java/org/apache/tuscany/sca/core/databinding/wire/DataTransformationInterceptor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core-databinding/src/main/java/org/apache/tuscany/sca/core/databinding/wire/PassByValueInterceptor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core-databinding/src/main/resources/META-INF/services/org.apache.tuscany.sca.databinding.PullTransformer delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core-databinding/src/main/resources/META-INF/services/org.apache.tuscany.sca.interfacedef.java.introspect.JavaInterfaceVisitor delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core-databinding/src/main/resources/META-INF/services/org.apache.tuscany.sca.runtime.RuntimeWireProcessor delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core-spi/LICENSE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core-spi/META-INF/MANIFEST.MF delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core-spi/NOTICE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core-spi/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core-spi/src/doc/Context Model.emx delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core-spi/src/main/java/org/apache/tuscany/sca/context/ComponentContextFactory.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core-spi/src/main/java/org/apache/tuscany/sca/context/CompositeContext.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core-spi/src/main/java/org/apache/tuscany/sca/context/ContextFactoryExtensionPoint.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core-spi/src/main/java/org/apache/tuscany/sca/context/DefaultContextFactoryExtensionPoint.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core-spi/src/main/java/org/apache/tuscany/sca/context/PropertyValueFactory.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core-spi/src/main/java/org/apache/tuscany/sca/context/RequestContextFactory.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core-spi/src/main/java/org/apache/tuscany/sca/context/ThreadMessageContext.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core-spi/src/main/java/org/apache/tuscany/sca/invocation/DataExchangeSemantics.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core-spi/src/main/java/org/apache/tuscany/sca/invocation/Interceptor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core-spi/src/main/java/org/apache/tuscany/sca/invocation/InvocationChain.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core-spi/src/main/java/org/apache/tuscany/sca/invocation/Invoker.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core-spi/src/main/java/org/apache/tuscany/sca/invocation/Message.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core-spi/src/main/java/org/apache/tuscany/sca/invocation/MessageFactory.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core-spi/src/main/java/org/apache/tuscany/sca/invocation/Phase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core-spi/src/main/java/org/apache/tuscany/sca/invocation/PhasedInterceptor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core-spi/src/main/java/org/apache/tuscany/sca/management/ConfigAttributes.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core-spi/src/main/java/org/apache/tuscany/sca/management/ManagementService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core-spi/src/main/java/org/apache/tuscany/sca/provider/BasePolicyProvider.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core-spi/src/main/java/org/apache/tuscany/sca/provider/BindingPolicyProvider.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core-spi/src/main/java/org/apache/tuscany/sca/provider/BindingProviderFactory.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core-spi/src/main/java/org/apache/tuscany/sca/provider/DefaultProviderFactoryExtensionPoint.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core-spi/src/main/java/org/apache/tuscany/sca/provider/EndpointProvider.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core-spi/src/main/java/org/apache/tuscany/sca/provider/EndpointReferenceProvider.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core-spi/src/main/java/org/apache/tuscany/sca/provider/ImplementationProvider.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core-spi/src/main/java/org/apache/tuscany/sca/provider/ImplementationProviderFactory.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core-spi/src/main/java/org/apache/tuscany/sca/provider/OperationSelectorProvider.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core-spi/src/main/java/org/apache/tuscany/sca/provider/OperationSelectorProviderFactory.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core-spi/src/main/java/org/apache/tuscany/sca/provider/PolicyImplementor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core-spi/src/main/java/org/apache/tuscany/sca/provider/PolicyProvider.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core-spi/src/main/java/org/apache/tuscany/sca/provider/PolicyProviderFactory.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core-spi/src/main/java/org/apache/tuscany/sca/provider/ProviderFactory.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core-spi/src/main/java/org/apache/tuscany/sca/provider/ProviderFactoryExtensionPoint.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core-spi/src/main/java/org/apache/tuscany/sca/provider/ReferenceBindingProvider.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core-spi/src/main/java/org/apache/tuscany/sca/provider/RuntimeProvider.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core-spi/src/main/java/org/apache/tuscany/sca/provider/ServiceBindingProvider.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core-spi/src/main/java/org/apache/tuscany/sca/provider/WireFormatProvider.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core-spi/src/main/java/org/apache/tuscany/sca/provider/WireFormatProviderFactory.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core-spi/src/main/java/org/apache/tuscany/sca/runtime/ActivationException.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core-spi/src/main/java/org/apache/tuscany/sca/runtime/BaseDomainRegistryFactory.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core-spi/src/main/java/org/apache/tuscany/sca/runtime/BaseEndpointRegistry.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core-spi/src/main/java/org/apache/tuscany/sca/runtime/CompositeActivator.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core-spi/src/main/java/org/apache/tuscany/sca/runtime/DefaultDomainRegistryFactoryExtensionPoint.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core-spi/src/main/java/org/apache/tuscany/sca/runtime/DefaultWireProcessorExtensionPoint.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core-spi/src/main/java/org/apache/tuscany/sca/runtime/DomainRegistryFactory.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core-spi/src/main/java/org/apache/tuscany/sca/runtime/DomainRegistryFactoryExtensionPoint.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core-spi/src/main/java/org/apache/tuscany/sca/runtime/DomainRegistryURI.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core-spi/src/main/java/org/apache/tuscany/sca/runtime/EndpointListener.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core-spi/src/main/java/org/apache/tuscany/sca/runtime/EndpointReferenceBinder.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core-spi/src/main/java/org/apache/tuscany/sca/runtime/EndpointRegistry.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core-spi/src/main/java/org/apache/tuscany/sca/runtime/EndpointSerializer.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core-spi/src/main/java/org/apache/tuscany/sca/runtime/ExtensibleDomainRegistryFactory.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core-spi/src/main/java/org/apache/tuscany/sca/runtime/Invocable.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core-spi/src/main/java/org/apache/tuscany/sca/runtime/ReferenceParameters.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core-spi/src/main/java/org/apache/tuscany/sca/runtime/RuntimeComponent.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core-spi/src/main/java/org/apache/tuscany/sca/runtime/RuntimeComponentContext.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core-spi/src/main/java/org/apache/tuscany/sca/runtime/RuntimeComponentReference.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core-spi/src/main/java/org/apache/tuscany/sca/runtime/RuntimeComponentService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core-spi/src/main/java/org/apache/tuscany/sca/runtime/RuntimeEndpoint.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core-spi/src/main/java/org/apache/tuscany/sca/runtime/RuntimeEndpointReference.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core-spi/src/main/java/org/apache/tuscany/sca/runtime/RuntimeProperties.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core-spi/src/main/java/org/apache/tuscany/sca/runtime/RuntimeWireProcessor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core-spi/src/main/java/org/apache/tuscany/sca/runtime/RuntimeWireProcessorExtensionPoint.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core-spi/src/main/java/org/apache/tuscany/sca/runtime/Version.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core-spi/src/main/java/org/apache/tuscany/sca/work/NotificationListener.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core-spi/src/main/java/org/apache/tuscany/sca/work/WorkScheduler.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core-spi/src/main/java/org/apache/tuscany/sca/work/WorkSchedulerException.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core-spi/src/main/resources/META-INF/services/org.apache.tuscany.sca.context.ContextFactoryExtensionPoint delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core-spi/src/main/resources/META-INF/services/org.apache.tuscany.sca.provider.ProviderFactoryExtensionPoint delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core-spi/src/main/resources/META-INF/services/org.apache.tuscany.sca.runtime.DomainRegistryFactoryExtensionPoint delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core-spi/src/main/resources/META-INF/services/org.apache.tuscany.sca.runtime.RuntimeWireProcessorExtensionPoint delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core-spi/src/main/resources/org/apache/tuscany/sca/runtime/revision.properties delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core-spi/src/test/java/org/apache/tuscany/sca/context/DefaultContextFactoryExtensionPointTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core-spi/src/test/java/org/apache/tuscany/sca/runtime/ConfigURITestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core-spi/src/test/java/org/apache/tuscany/sca/runtime/VersionTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core/LICENSE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core/META-INF/MANIFEST.MF delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core/NOTICE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core/src/main/java/org/apache/tuscany/sca/core/assembly/RuntimeAssemblyFactory.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core/src/main/java/org/apache/tuscany/sca/core/assembly/impl/CompositeActivatorImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core/src/main/java/org/apache/tuscany/sca/core/assembly/impl/EndpointRegistryImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core/src/main/java/org/apache/tuscany/sca/core/assembly/impl/EndpointSerializerImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core/src/main/java/org/apache/tuscany/sca/core/assembly/impl/LocalDomainRegistryFactory.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core/src/main/java/org/apache/tuscany/sca/core/assembly/impl/ReferenceParameterProcessor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core/src/main/java/org/apache/tuscany/sca/core/assembly/impl/ReferenceParametersImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core/src/main/java/org/apache/tuscany/sca/core/assembly/impl/RuntimeComponentImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core/src/main/java/org/apache/tuscany/sca/core/assembly/impl/RuntimeComponentReferenceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core/src/main/java/org/apache/tuscany/sca/core/assembly/impl/RuntimeComponentServiceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core/src/main/java/org/apache/tuscany/sca/core/assembly/impl/RuntimeEndpointImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core/src/main/java/org/apache/tuscany/sca/core/assembly/impl/RuntimeEndpointReferenceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core/src/main/java/org/apache/tuscany/sca/core/context/DefaultComponentContextFactory.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core/src/main/java/org/apache/tuscany/sca/core/context/DefaultRequestContextFactory.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core/src/main/java/org/apache/tuscany/sca/core/context/ServiceReferenceExt.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core/src/main/java/org/apache/tuscany/sca/core/context/impl/CallbackServiceReferenceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core/src/main/java/org/apache/tuscany/sca/core/context/impl/ComponentContextImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core/src/main/java/org/apache/tuscany/sca/core/context/impl/RequestContextImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core/src/main/java/org/apache/tuscany/sca/core/context/impl/ServiceReferenceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core/src/main/java/org/apache/tuscany/sca/core/factory/InstanceWrapper.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core/src/main/java/org/apache/tuscany/sca/core/factory/ObjectCreationException.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core/src/main/java/org/apache/tuscany/sca/core/factory/ObjectFactory.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core/src/main/java/org/apache/tuscany/sca/core/invocation/CallableReferenceObjectFactory.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core/src/main/java/org/apache/tuscany/sca/core/invocation/CallbackInterfaceInterceptor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core/src/main/java/org/apache/tuscany/sca/core/invocation/CallbackReferenceObjectFactory.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core/src/main/java/org/apache/tuscany/sca/core/invocation/CallbackWireObjectFactory.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core/src/main/java/org/apache/tuscany/sca/core/invocation/CglibProxyFactory.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core/src/main/java/org/apache/tuscany/sca/core/invocation/DefaultProxyFactoryExtensionPoint.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core/src/main/java/org/apache/tuscany/sca/core/invocation/ExtensibleProxyFactory.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core/src/main/java/org/apache/tuscany/sca/core/invocation/ExtensibleWireProcessor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core/src/main/java/org/apache/tuscany/sca/core/invocation/NonBlockingInterceptor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core/src/main/java/org/apache/tuscany/sca/core/invocation/ProxyCreationException.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core/src/main/java/org/apache/tuscany/sca/core/invocation/ProxyFactory.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core/src/main/java/org/apache/tuscany/sca/core/invocation/ProxyFactoryExtensionPoint.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core/src/main/java/org/apache/tuscany/sca/core/invocation/RuntimeInvoker.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core/src/main/java/org/apache/tuscany/sca/core/invocation/WireObjectFactory.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core/src/main/java/org/apache/tuscany/sca/core/invocation/impl/AsyncJDKInvocationHandler.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core/src/main/java/org/apache/tuscany/sca/core/invocation/impl/AsyncResponse.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core/src/main/java/org/apache/tuscany/sca/core/invocation/impl/InvocationChainImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core/src/main/java/org/apache/tuscany/sca/core/invocation/impl/JDKCallbackInvocationHandler.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core/src/main/java/org/apache/tuscany/sca/core/invocation/impl/JDKInvocationHandler.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core/src/main/java/org/apache/tuscany/sca/core/invocation/impl/JDKProxyFactory.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core/src/main/java/org/apache/tuscany/sca/core/invocation/impl/MessageFactoryImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core/src/main/java/org/apache/tuscany/sca/core/invocation/impl/MessageImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core/src/main/java/org/apache/tuscany/sca/core/invocation/impl/NoMethodForOperationException.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core/src/main/java/org/apache/tuscany/sca/core/invocation/impl/PhaseManager.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core/src/main/java/org/apache/tuscany/sca/core/invocation/impl/PhaseSorter.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core/src/main/java/org/apache/tuscany/sca/core/runtime/impl/EndpointReferenceBinderImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core/src/main/java/org/apache/tuscany/sca/core/runtime/impl/RuntimePropertiesImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core/src/main/java/org/apache/tuscany/sca/core/scope/AbstractScopeContainer.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core/src/main/java/org/apache/tuscany/sca/core/scope/DefaultScopeRegistry.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core/src/main/java/org/apache/tuscany/sca/core/scope/Scope.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core/src/main/java/org/apache/tuscany/sca/core/scope/ScopeContainer.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core/src/main/java/org/apache/tuscany/sca/core/scope/ScopeContainerFactory.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core/src/main/java/org/apache/tuscany/sca/core/scope/ScopeRegistry.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core/src/main/java/org/apache/tuscany/sca/core/scope/ScopedImplementationProvider.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core/src/main/java/org/apache/tuscany/sca/core/scope/ScopedRuntimeComponent.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core/src/main/java/org/apache/tuscany/sca/core/scope/TargetDestructionException.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core/src/main/java/org/apache/tuscany/sca/core/scope/TargetInitializationException.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core/src/main/java/org/apache/tuscany/sca/core/scope/TargetNotFoundException.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core/src/main/java/org/apache/tuscany/sca/core/scope/TargetResolutionException.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core/src/main/java/org/apache/tuscany/sca/core/scope/impl/CompositeScopeContainer.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core/src/main/java/org/apache/tuscany/sca/core/scope/impl/CompositeScopeContainerFactory.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core/src/main/java/org/apache/tuscany/sca/core/scope/impl/ScopeRegistryImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core/src/main/java/org/apache/tuscany/sca/core/scope/impl/StatelessScopeContainer.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core/src/main/java/org/apache/tuscany/sca/core/scope/impl/StatelessScopeContainerFactory.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core/src/main/java/org/apache/tuscany/sca/core/work/impl/DefaultWorkScheduler.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core/src/main/java/org/apache/tuscany/sca/core/work/impl/ThreadPoolWorkManager.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core/src/main/java/org/apache/tuscany/sca/core/work/impl/Work.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core/src/main/java/org/apache/tuscany/sca/core/work/impl/WorkEvent.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core/src/main/java/org/apache/tuscany/sca/core/work/impl/WorkItem.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core/src/main/java/org/apache/tuscany/sca/core/work/impl/WorkListener.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core/src/main/resources/META-INF/services/org.apache.tuscany.sca.assembly.AssemblyFactory delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core/src/main/resources/META-INF/services/org.apache.tuscany.sca.context.ComponentContextFactory delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core/src/main/resources/META-INF/services/org.apache.tuscany.sca.context.RequestContextFactory delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessor delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core/src/main/resources/META-INF/services/org.apache.tuscany.sca.core.invocation.ProxyFactoryExtensionPoint delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core/src/main/resources/META-INF/services/org.apache.tuscany.sca.core.scope.ScopeRegistry delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core/src/main/resources/META-INF/services/org.apache.tuscany.sca.invocation.MessageFactory delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core/src/main/resources/META-INF/services/org.apache.tuscany.sca.runtime.CompositeActivator delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core/src/main/resources/META-INF/services/org.apache.tuscany.sca.runtime.DomainRegistryFactory delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core/src/main/resources/META-INF/services/org.apache.tuscany.sca.runtime.EndpointReferenceBinder delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core/src/main/resources/META-INF/services/org.apache.tuscany.sca.runtime.EndpointSerializer delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core/src/main/resources/META-INF/services/org.apache.tuscany.sca.runtime.RuntimeProperties delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core/src/main/resources/META-INF/services/org.apache.tuscany.sca.work.WorkScheduler delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core/src/main/resources/endpoint-validation-messages.properties delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core/src/test/java/org/apache/tuscany/sca/core/invocation/impl/InvocationChainImplTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core/src/test/java/org/apache/tuscany/sca/core/invocation/impl/PhaseManagerTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core/src/test/java/org/apache/tuscany/sca/core/invocation/impl/PhaseSorterTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core/src/test/java/org/apache/tuscany/sca/core/work/impl/FailingWork.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core/src/test/java/org/apache/tuscany/sca/core/work/impl/JSR237MyFailingRunnable.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core/src/test/java/org/apache/tuscany/sca/core/work/impl/JSR237MyRunnable.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core/src/test/java/org/apache/tuscany/sca/core/work/impl/JSR237MyRunnerListener.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core/src/test/java/org/apache/tuscany/sca/core/work/impl/Jsr237WorkSchedulerTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core/src/test/java/org/apache/tuscany/sca/core/work/impl/TestWorkListener.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core/src/test/java/org/apache/tuscany/sca/core/work/impl/ThreadPoolWorkManagerTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core/src/test/java/org/apache/tuscany/sca/core/work/impl/TimeDelayWork.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core/src/test/java/org/apache/tuscany/sca/scope/ScopeTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/core/src/test/resources/META-INF/services/org.apache.tuscany.sca.invocation.PhaseTest delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/data-api/LICENSE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/data-api/META-INF/MANIFEST.MF delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/data-api/NOTICE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/data-api/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/data-api/src/main/java/org/apache/tuscany/sca/data/collection/Collection.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/data-api/src/main/java/org/apache/tuscany/sca/data/collection/Entry.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/data-api/src/main/java/org/apache/tuscany/sca/data/collection/Item.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/data-api/src/main/java/org/apache/tuscany/sca/data/collection/ItemCollection.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/data-api/src/main/java/org/apache/tuscany/sca/data/collection/LocalItemCollection.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/data-api/src/main/java/org/apache/tuscany/sca/data/collection/NotFoundException.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding-axiom/LICENSE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding-axiom/META-INF/MANIFEST.MF delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding-axiom/NOTICE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding-axiom/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding-axiom/src/main/java/org/apache/tuscany/sca/databinding/axiom/AxiomDataBinding.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding-axiom/src/main/java/org/apache/tuscany/sca/databinding/axiom/AxiomHelper.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding-axiom/src/main/java/org/apache/tuscany/sca/databinding/axiom/Exception2OMElement.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding-axiom/src/main/java/org/apache/tuscany/sca/databinding/axiom/Externalizable2OMElement.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding-axiom/src/main/java/org/apache/tuscany/sca/databinding/axiom/OMElement2Exception.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding-axiom/src/main/java/org/apache/tuscany/sca/databinding/axiom/OMElement2Externalizable.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding-axiom/src/main/java/org/apache/tuscany/sca/databinding/axiom/OMElement2Object.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding-axiom/src/main/java/org/apache/tuscany/sca/databinding/axiom/OMElement2String.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding-axiom/src/main/java/org/apache/tuscany/sca/databinding/axiom/OMElement2XMLStreamReader.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding-axiom/src/main/java/org/apache/tuscany/sca/databinding/axiom/OMElementWrapperHandler.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding-axiom/src/main/java/org/apache/tuscany/sca/databinding/axiom/Object2OMElement.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding-axiom/src/main/java/org/apache/tuscany/sca/databinding/axiom/String2OMElement.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding-axiom/src/main/java/org/apache/tuscany/sca/databinding/axiom/XMLStreamReader2OMElement.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding-axiom/src/main/resources/META-INF/services/org.apache.tuscany.sca.databinding.DataBinding delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding-axiom/src/main/resources/META-INF/services/org.apache.tuscany.sca.databinding.PullTransformer delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding-axiom/src/test/java/org/apache/tuscany/sca/databinding/axiom/OMElementTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding-axiom/src/test/resources/ipo.xml delete mode 100755 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding-axiom/src/test/resources/ipo.xsd delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding-axiom/src/test/resources/order.wsdl delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding-jaxb-axiom/LICENSE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding-jaxb-axiom/META-INF/MANIFEST.MF delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding-jaxb-axiom/NOTICE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding-jaxb-axiom/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding-jaxb-axiom/src/main/java/org/apache/tuscany/sca/databinding/jaxb/axiom/AxiomHelper.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding-jaxb-axiom/src/main/java/org/apache/tuscany/sca/databinding/jaxb/axiom/JAXB2OMElement.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding-jaxb-axiom/src/main/java/org/apache/tuscany/sca/databinding/jaxb/axiom/JAXBDataSource.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding-jaxb-axiom/src/main/java/org/apache/tuscany/sca/databinding/jaxb/axiom/OMElement2JAXB.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding-jaxb-axiom/src/main/java/org/apache/tuscany/sca/databinding/jaxb/axiom/ext/JAXBCustomBuilder.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding-jaxb-axiom/src/main/java/org/apache/tuscany/sca/databinding/jaxb/axiom/ext/JAXBDSContext.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding-jaxb-axiom/src/main/java/org/apache/tuscany/sca/databinding/jaxb/axiom/ext/JAXBDataSourceExt.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding-jaxb-axiom/src/main/java/org/apache/tuscany/sca/databinding/jaxb/axiom/ext/SourceDataSource.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding-jaxb-axiom/src/main/java/org/apache/tuscany/sca/databinding/jaxb/axiom/ext/XMLStreamWriterWithOS.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding-jaxb-axiom/src/main/java/org/apache/tuscany/sca/databinding/jaxb/axiom/ext/XMLStringDataSource.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding-jaxb-axiom/src/main/resources/META-INF/services/org.apache.tuscany.sca.databinding.PullTransformer delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding-jaxb-axiom/src/test/java/org/apache/tuscany/databinding/jaxb/axiom/JAXB2OMTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding-jaxb-axiom/src/test/java/org/apache/tuscany/databinding/jaxb/axiom/OMElement2JAXBTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding-jaxb-axiom/src/test/resources/ipo.xsd delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding-jaxb/LICENSE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding-jaxb/META-INF/MANIFEST.MF delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding-jaxb/NOTICE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding-jaxb/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding-jaxb/src/main/java/org/apache/tuscany/sca/databinding/jaxb/AnyTypeXmlAdapter.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding-jaxb/src/main/java/org/apache/tuscany/sca/databinding/jaxb/DOMElementXmlAdapter.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding-jaxb/src/main/java/org/apache/tuscany/sca/databinding/jaxb/DataConverter.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding-jaxb/src/main/java/org/apache/tuscany/sca/databinding/jaxb/DefaultXMLAdapterExtensionPoint.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding-jaxb/src/main/java/org/apache/tuscany/sca/databinding/jaxb/JAXB2Node.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding-jaxb/src/main/java/org/apache/tuscany/sca/databinding/jaxb/JAXB2SAX.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding-jaxb/src/main/java/org/apache/tuscany/sca/databinding/jaxb/JAXB2String.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding-jaxb/src/main/java/org/apache/tuscany/sca/databinding/jaxb/JAXBContextCache.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding-jaxb/src/main/java/org/apache/tuscany/sca/databinding/jaxb/JAXBContextHelper.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding-jaxb/src/main/java/org/apache/tuscany/sca/databinding/jaxb/JAXBDataBinding.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding-jaxb/src/main/java/org/apache/tuscany/sca/databinding/jaxb/JAXBPropertyDescriptor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding-jaxb/src/main/java/org/apache/tuscany/sca/databinding/jaxb/JAXBTypeHelper.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding-jaxb/src/main/java/org/apache/tuscany/sca/databinding/jaxb/JAXBWrapperException.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding-jaxb/src/main/java/org/apache/tuscany/sca/databinding/jaxb/JAXBWrapperHandler.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding-jaxb/src/main/java/org/apache/tuscany/sca/databinding/jaxb/JAXBWrapperHelper.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding-jaxb/src/main/java/org/apache/tuscany/sca/databinding/jaxb/Node2JAXB.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding-jaxb/src/main/java/org/apache/tuscany/sca/databinding/jaxb/Reader2JAXB.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding-jaxb/src/main/java/org/apache/tuscany/sca/databinding/jaxb/String2JAXB.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding-jaxb/src/main/java/org/apache/tuscany/sca/databinding/jaxb/XMLAdapterExtensionPoint.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding-jaxb/src/main/java/org/apache/tuscany/sca/databinding/jaxb/XMLRootElementUtil.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding-jaxb/src/main/java/org/apache/tuscany/sca/databinding/jaxb/XMLStreamReader2JAXB.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding-jaxb/src/main/java/org/apache/tuscany/sca/databinding/jaxb/package.html delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding-jaxb/src/main/resources/META-INF/services/org.apache.tuscany.sca.databinding.DataBinding delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding-jaxb/src/main/resources/META-INF/services/org.apache.tuscany.sca.databinding.PullTransformer delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding-jaxb/src/main/resources/META-INF/services/org.apache.tuscany.sca.databinding.jaxb.XMLAdapterExtensionPoint delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding-jaxb/src/test/java/com/example/stock/StockQuoteOffer.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding-jaxb/src/test/java/org/apache/tuscany/sca/databinding/jaxb/JAXBContextCacheTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding-jaxb/src/test/java/org/apache/tuscany/sca/databinding/jaxb/JAXBDataBindingTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding-jaxb/src/test/java/org/apache/tuscany/sca/databinding/jaxb/JAXBReflectionTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding-jaxb/src/test/java/org/apache/tuscany/sca/databinding/jaxb/JAXBTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding-jaxb/src/test/java/org/apache/tuscany/sca/databinding/jaxb/JAXBWrapperHandlerTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding-jaxb/src/test/java/org/apache/tuscany/sca/databinding/jaxb/MyBean.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding-jaxb/src/test/java/org/apache/tuscany/sca/databinding/jaxb/MyInterface.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding-jaxb/src/test/java/org/apache/tuscany/sca/databinding/jaxb/MyInterfaceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding-jaxb/src/test/java/org/apache/tuscany/sca/databinding/jaxb/MyJaxbBean.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding-jaxb/src/test/java/org/apache/tuscany/sca/databinding/jaxb/MySubBean.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding-jaxb/src/test/java/org/apache/tuscany/sca/databinding/jaxb/POJOTestCase.java delete mode 100755 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding-jaxb/src/test/resources/ipo.xsd delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding-json/LICENSE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding-json/META-INF/MANIFEST.MF delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding-json/NOTICE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding-json/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding-json/src/main/java/org/apache/tuscany/sca/databinding/json/JSON2JavaBean.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding-json/src/main/java/org/apache/tuscany/sca/databinding/json/JSON2String.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding-json/src/main/java/org/apache/tuscany/sca/databinding/json/JSON2XMLStreamReader.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding-json/src/main/java/org/apache/tuscany/sca/databinding/json/JSONDataBinding.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding-json/src/main/java/org/apache/tuscany/sca/databinding/json/JSONHelper.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding-json/src/main/java/org/apache/tuscany/sca/databinding/json/JavaBean2JSON.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding-json/src/main/java/org/apache/tuscany/sca/databinding/json/JavaBean2JSONObject.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding-json/src/main/java/org/apache/tuscany/sca/databinding/json/String2JSON.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding-json/src/main/java/org/apache/tuscany/sca/databinding/json/XMLStreamReader2JSON.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding-json/src/main/java/org/apache/tuscany/sca/databinding/json/axiom/JSON2OMElement.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding-json/src/main/java/org/apache/tuscany/sca/databinding/json/axiom/JSONBadgerfishDataSource.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding-json/src/main/java/org/apache/tuscany/sca/databinding/json/axiom/JSONDataSource.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding-json/src/main/java/org/apache/tuscany/sca/databinding/json/jackson/InputStream2JSON.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding-json/src/main/java/org/apache/tuscany/sca/databinding/json/jackson/JSON2Object.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding-json/src/main/java/org/apache/tuscany/sca/databinding/json/jackson/JSON2OutputStream.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding-json/src/main/java/org/apache/tuscany/sca/databinding/json/jackson/JacksonHelper.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding-json/src/main/java/org/apache/tuscany/sca/databinding/json/jackson/Object2JSON.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding-json/src/main/resources/META-INF/services/org.apache.tuscany.sca.databinding.DataBinding delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding-json/src/main/resources/META-INF/services/org.apache.tuscany.sca.databinding.PullTransformer delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding-json/src/main/resources/META-INF/services/org.apache.tuscany.sca.databinding.PushTransformer delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding-json/src/test/java/org/apache/tuscany/sca/databinding/json/JSONTransformerTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding-json/src/test/java/org/apache/tuscany/sca/databinding/json/JavaBean2JSONTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding-json/src/test/java/org/apache/tuscany/sca/databinding/json/MyBean.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding-json/src/test/java/org/apache/tuscany/sca/databinding/json/MyInterface.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding-json/src/test/java/org/apache/tuscany/sca/databinding/json/MyInterfaceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding-json/src/test/java/org/apache/tuscany/sca/databinding/json/POJOTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding-json/src/test/java/org/apache/tuscany/sca/databinding/json/jackson/JacksonTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding-json/src/test/java/org/apache/tuscany/sca/databinding/json/jackson/Object2JSONTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding-json/src/test/resources/ipo.xsd delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding-sdo-axiom/LICENSE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding-sdo-axiom/META-INF/MANIFEST.MF delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding-sdo-axiom/NOTICE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding-sdo-axiom/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding-sdo-axiom/src/main/java/org/apache/tuscany/sca/databinding/sdo2om/AxiomHelper.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding-sdo-axiom/src/main/java/org/apache/tuscany/sca/databinding/sdo2om/DataObject2OMElement.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding-sdo-axiom/src/main/java/org/apache/tuscany/sca/databinding/sdo2om/SDODataSource.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding-sdo-axiom/src/main/java/org/apache/tuscany/sca/databinding/sdo2om/XMLDocument2OMElement.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding-sdo-axiom/src/main/resources/META-INF/services/org.apache.tuscany.sca.databinding.PullTransformer delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding-sdo-axiom/src/test/java/org/apache/tuscany/sca/databinding/sdo2om/DataObject2OMElementTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding-sdo-axiom/src/test/java/org/apache/tuscany/sca/databinding/sdo2om/SDOTransformerTestCaseBase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding-sdo-axiom/src/test/java/org/apache/tuscany/sca/databinding/sdo2om/XMLDocument2OMElementTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding-sdo-axiom/src/test/resources/ipo.xsd delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding-sdo-axiom/src/test/resources/stock.xsd delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding-sdo/LICENSE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding-sdo/META-INF/MANIFEST.MF delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding-sdo/NOTICE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding-sdo/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding-sdo/src/main/java/org/apache/tuscany/sca/databinding/sdo/DataObject2Node.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding-sdo/src/main/java/org/apache/tuscany/sca/databinding/sdo/DataObject2String.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding-sdo/src/main/java/org/apache/tuscany/sca/databinding/sdo/DataObject2XMLStreamReader.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding-sdo/src/main/java/org/apache/tuscany/sca/databinding/sdo/ImportSDO.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding-sdo/src/main/java/org/apache/tuscany/sca/databinding/sdo/ImportSDOProcessor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding-sdo/src/main/java/org/apache/tuscany/sca/databinding/sdo/Node2DataObject.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding-sdo/src/main/java/org/apache/tuscany/sca/databinding/sdo/SDOContextHelper.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding-sdo/src/main/java/org/apache/tuscany/sca/databinding/sdo/SDODataBinding.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding-sdo/src/main/java/org/apache/tuscany/sca/databinding/sdo/SDOSimpleTypeMapper.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding-sdo/src/main/java/org/apache/tuscany/sca/databinding/sdo/SDOTypeHelper.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding-sdo/src/main/java/org/apache/tuscany/sca/databinding/sdo/SDOTypes.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding-sdo/src/main/java/org/apache/tuscany/sca/databinding/sdo/SDOWrapperHandler.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding-sdo/src/main/java/org/apache/tuscany/sca/databinding/sdo/String2DataObject.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding-sdo/src/main/java/org/apache/tuscany/sca/databinding/sdo/XMLDocument2String.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding-sdo/src/main/java/org/apache/tuscany/sca/databinding/sdo/XMLDocument2XMLStreamReader.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding-sdo/src/main/java/org/apache/tuscany/sca/databinding/sdo/XMLStreamReader2DataObject.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding-sdo/src/main/java/org/apache/tuscany/sca/databinding/sdo/XMLStreamReader2XMLDocument.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding-sdo/src/main/java/org/apache/tuscany/sca/databinding/sdo/xml/SDOTypesModelResolver.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding-sdo/src/main/java/org/apache/tuscany/sca/databinding/sdo/xml/SDOTypesProcessor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding-sdo/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessor delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding-sdo/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.resolver.ModelResolver delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding-sdo/src/main/resources/META-INF/services/org.apache.tuscany.sca.databinding.DataBinding delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding-sdo/src/main/resources/META-INF/services/org.apache.tuscany.sca.databinding.PullTransformer delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding-sdo/src/main/resources/databinding-sdo-validation-messages.properties delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding-sdo/src/test/java/com/example/stock/sdo/fault/InvalidSymbolFault_Exception.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding-sdo/src/test/java/org/apache/tuscany/sca/databinding/sdo/DataObject2NodeTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding-sdo/src/test/java/org/apache/tuscany/sca/databinding/sdo/DataObject2StringTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding-sdo/src/test/java/org/apache/tuscany/sca/databinding/sdo/DataObject2XMLStreamReaderTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding-sdo/src/test/java/org/apache/tuscany/sca/databinding/sdo/ImportSDOProcessorTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding-sdo/src/test/java/org/apache/tuscany/sca/databinding/sdo/SDOContextHelperTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding-sdo/src/test/java/org/apache/tuscany/sca/databinding/sdo/SDODataBindingTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding-sdo/src/test/java/org/apache/tuscany/sca/databinding/sdo/SDOTransformerTestCaseBase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding-sdo/src/test/java/org/apache/tuscany/sca/databinding/sdo/SDOWrapperHandlerTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding-sdo/src/test/java/org/apache/tuscany/sca/databinding/sdo/TestModelResolver.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding-sdo/src/test/java/org/apache/tuscany/sca/databinding/sdo/XMLDocument2XMLStreamReaderTestCase.java delete mode 100755 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding-sdo/src/test/resources/ipo.xsd delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding-sdo/src/test/resources/stock.xsd delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding-sdo/src/test/resources/wrapper.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding-sdo/src/test/resources/wrapper.xsd delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding/LICENSE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding/META-INF/MANIFEST.MF delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding/NOTICE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/BaseDataBinding.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/BaseTransformer.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/DataBinding.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/DataBindingContext.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/DataBindingExtensionPoint.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/DataPipe.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/DataPipeTransformer.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/DefaultDataBindingExtensionPoint.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/DefaultTransformerExtensionPoint.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/Mediator.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/PullTransformer.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/PushTransformer.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/SimpleTypeMapper.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/TransformationContext.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/TransformationException.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/Transformer.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/TransformerExtensionPoint.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/WrapperHandler.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/XMLTypeHelper.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/annotation/DataBinding.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/annotation/DataType.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/externalizable/ExternalizableDataBinding.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/impl/DirectedGraph.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/impl/Group2GroupTransformer.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/impl/GroupDataBinding.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/impl/Java2SimpleTypeTransformer.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/impl/MediatorImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/impl/PipedTransformer.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/impl/SimpleType2JavaTransformer.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/impl/SimpleTypeMapperImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/impl/TransformationContextImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/impl/XSDDataTypeConverter.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/javabeans/DOMNode2JavaBeanTransformer.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/javabeans/Java2XMLMapperException.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/javabeans/JavaBean2DOMNodeTransformer.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/javabeans/JavaBean2XMLStreamReaderTransformer.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/javabeans/JavaBean2XMLTransformer.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/javabeans/JavaBeansDataBinding.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/javabeans/JavaExceptionDataBinding.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/javabeans/SimpleJavaDataBinding.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/javabeans/XML2JavaBeanTransformer.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/javabeans/XML2JavaMapperException.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/util/DataTypeHelper.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/xml/BeanXMLStreamReaderImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/xml/DOMDataBinding.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/xml/DOMWrapperHandler.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/xml/InputSource2Node.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/xml/InputSource2SAX.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/xml/InputStream2Node.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/xml/InputStream2SAX.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/xml/Node2OutputStream.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/xml/Node2SimpleJavaType.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/xml/Node2SourceTransformer.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/xml/Node2String.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/xml/Node2Writer.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/xml/Node2XMLStreamReader.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/xml/Reader2Node.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/xml/Reader2SAX.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/xml/SAX2DOMPipe.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/xml/SimpleJavaType2Node.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/xml/Source2NodeTransformer.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/xml/Source2ResultTransformer.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/xml/Source2StringTransformer.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/xml/StAXDataBinding.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/xml/StreamDataPipe.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/xml/String2Node.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/xml/String2SAX.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/xml/String2SourceTransformer.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/xml/String2XMLStreamReader.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/xml/Writer2ReaderDataPipe.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/xml/XMLGroupDataBinding.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/xml/XMLStreamReader2Node.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/xml/XMLStreamReader2SAX.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/xml/XMLStreamReader2String.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/xml/XMLStringDataBinding.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding/src/main/resources/META-INF/services/org.apache.tuscany.sca.databinding.DataBinding delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding/src/main/resources/META-INF/services/org.apache.tuscany.sca.databinding.DataBindingExtensionPoint delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding/src/main/resources/META-INF/services/org.apache.tuscany.sca.databinding.Mediator delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding/src/main/resources/META-INF/services/org.apache.tuscany.sca.databinding.PullTransformer delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding/src/main/resources/META-INF/services/org.apache.tuscany.sca.databinding.PushTransformer delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding/src/main/resources/META-INF/services/org.apache.tuscany.sca.databinding.SimpleTypeMapper delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding/src/main/resources/META-INF/services/org.apache.tuscany.sca.databinding.TransformerExtensionPoint delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding/src/test/java/org/apache/tuscany/sca/databinding/extension/DataBindingExtensionTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding/src/test/java/org/apache/tuscany/sca/databinding/extension/SimpleTypeMapperExtensionTestCase.java.fixme delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding/src/test/java/org/apache/tuscany/sca/databinding/extension/TransformerExtensionTestCase.java.fixme delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding/src/test/java/org/apache/tuscany/sca/databinding/extension/XSDDataTypeConverterTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding/src/test/java/org/apache/tuscany/sca/databinding/impl/DataBindingTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding/src/test/java/org/apache/tuscany/sca/databinding/impl/DirectedGraphTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding/src/test/java/org/apache/tuscany/sca/databinding/impl/MediatorImplTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding/src/test/java/org/apache/tuscany/sca/databinding/impl/XMLDocumentStreamReaderTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding/src/test/java/org/apache/tuscany/sca/databinding/xml/BeanXMLStreamReaderTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding/src/test/java/org/apache/tuscany/sca/databinding/xml/DOM2StAXTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding/src/test/java/org/apache/tuscany/sca/databinding/xml/DataPipeTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding/src/test/java/org/apache/tuscany/sca/databinding/xml/JavaBean2XMLStreamReaderTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding/src/test/java/org/apache/tuscany/sca/databinding/xml/Node2StringTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding/src/test/java/org/apache/tuscany/sca/databinding/xml/PushTransformationTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding/src/test/java/org/apache/tuscany/sca/databinding/xml/TraxTransformerTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding/src/test/resources/org/apache/tuscany/sca/databinding/impl/ipo.xsd delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding/src/test/resources/org/apache/tuscany/sca/databinding/impl/order.wsdl delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/databinding/src/test/resources/org/apache/tuscany/sca/databinding/xml/foo.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/deployment/LICENSE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/deployment/META-INF/MANIFEST.MF delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/deployment/NOTICE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/deployment/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/deployment/src/main/java/org/apache/tuscany/sca/deployment/DefaultDeployer.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/deployment/src/main/java/org/apache/tuscany/sca/deployment/Deployer.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/deployment/src/main/java/org/apache/tuscany/sca/deployment/impl/Contributions.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/deployment/src/main/java/org/apache/tuscany/sca/deployment/impl/DeployerImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/deployment/src/main/resources/META-INF/services/org.apache.tuscany.sca.deployment.Deployer delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/deployment/src/main/resources/org/apache/tuscany/sca/deployment/impl/deployer-impl-validation-messages.properties delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/deployment/src/test/java/hello/deployer/HelloWorld.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/deployment/src/test/java/hello/deployer/HelloWorldImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/deployment/src/test/java/org/apache/tuscany/sca/deployment/impl/DeployerImplTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/deployment/src/test/resources/META-INF/sca-contribution.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/deployment/src/test/resources/org/apache/tuscany/sca/deployment/impl/HelloWorld.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/domain-node/LICENSE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/domain-node/META-INF/MANIFEST.MF delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/domain-node/NOTICE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/domain-node/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/domain-node/src/main/java/org/apache/tuscany/sca/domain/node/DomainNode.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/domain-node/src/main/java/org/apache/tuscany/sca/domain/node/DomainNodeMain.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/domain-node/src/test/java/itest/nodes/Helloworld.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/domain-node/src/test/java/org/apache/tuscany/sca/domain/node/GetServiceTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/domain-node/src/test/java/org/apache/tuscany/sca/domain/node/MultipleNodesPerJVMTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/domain-node/src/test/java/org/apache/tuscany/sca/domain/node/OneNodeTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/domain-node/src/test/java/org/apache/tuscany/sca/domain/node/StopStartNodesTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/domain-node/src/test/resources/itest-nodes-helloworld-client-2.0-SNAPSHOT.jar delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/domain-node/src/test/resources/itest-nodes-helloworld-service-2.0-SNAPSHOT.jar delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/endpoint-hazelcast-client/META-INF/MANIFEST.MF delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/endpoint-hazelcast-client/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/endpoint-hazelcast-client/src/main/java/org/apache/tuscany/sca/endpoint/hazelcast/client/HazelcastClientDomainRegistryFactory.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/endpoint-hazelcast-client/src/main/java/org/apache/tuscany/sca/endpoint/hazelcast/client/HazelcastClientEndpointRegistry.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/endpoint-hazelcast-client/src/main/resources/META-INF/services/org.apache.tuscany.sca.runtime.DomainRegistryFactory delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/endpoint-hazelcast/META-INF/MANIFEST.MF delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/endpoint-hazelcast/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/endpoint-hazelcast/src/main/java/org/apache/tuscany/sca/endpoint/hazelcast/HazelcastDomainRegistryFactory.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/endpoint-hazelcast/src/main/java/org/apache/tuscany/sca/endpoint/hazelcast/HazelcastEndpointRegistry.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/endpoint-hazelcast/src/main/java/org/apache/tuscany/sca/endpoint/hazelcast/RegistryConfig.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/endpoint-hazelcast/src/main/resources/META-INF/services/org.apache.tuscany.sca.runtime.DomainRegistryFactory delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/endpoint-hazelcast/src/test/java/org/apache/tuscany/sca/endpoint/hazelcast/MultiRegTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/endpoint-hazelcast/src/test/java/org/apache/tuscany/sca/endpoint/hazelcast/RegistryTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/endpoint-tribes/META-INF/MANIFEST.MF delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/endpoint-tribes/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/endpoint-tribes/src/main/java/org/apache/tuscany/sca/endpoint/tribes/AbstractReplicatedMap.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/endpoint-tribes/src/main/java/org/apache/tuscany/sca/endpoint/tribes/DisableMcastInterceptor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/endpoint-tribes/src/main/java/org/apache/tuscany/sca/endpoint/tribes/MapStore.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/endpoint-tribes/src/main/java/org/apache/tuscany/sca/endpoint/tribes/ReplicatedEndpointRegistry.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/endpoint-tribes/src/main/java/org/apache/tuscany/sca/endpoint/tribes/ReplicatedMap.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/endpoint-tribes/src/main/java/org/apache/tuscany/sca/endpoint/tribes/TribesDomainRegistryFactory.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/endpoint-tribes/src/main/resources/META-INF/services/org.apache.tuscany.sca.runtime.DomainRegistryFactory delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/endpoint-tribes/src/test/java/org/apache/tuscany/sca/endpoint/tribes/MultiRegTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/endpoint-tribes/src/test/java/org/apache/tuscany/sca/endpoint/tribes/ReplicatedEndpointRegistryTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/extensibility-equinox/LICENSE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/extensibility-equinox/META-INF/MANIFEST.MF delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/extensibility-equinox/NOTICE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/extensibility-equinox/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/extensibility-equinox/src/main/java/org/apache/tuscany/sca/extensibility/equinox/EquinoxServiceDiscoverer.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/extensibility-equinox/src/main/java/org/apache/tuscany/sca/extensibility/equinox/EquinoxServiceDiscoveryActivator.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/extensibility-equinox/src/main/java/org/apache/tuscany/sca/extensibility/equinox/OSGiExtensionPointRegistry.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/extensibility-equinox/src/test/java/org/apache/tuscany/sca/extensibility/equinox/EquinoxHostTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/extensibility-equinox/src/test/java/org/apache/tuscany/sca/extensibility/equinox/EquinoxServiceDiscovererTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/extensibility-equinox/src/test/java/org/apache/tuscany/sca/extensibility/equinox/TestEquinoxHost.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/extensibility-equinox/src/test/resources/test-bundle-v1.jar delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/extensibility-equinox/src/test/resources/test-bundle-v2.jar delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/extensibility/LICENSE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/extensibility/META-INF/MANIFEST.MF delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/extensibility/NOTICE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/extensibility/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/extensibility/src/main/java/org/apache/tuscany/sca/core/DefaultExtensionPointRegistry.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/extensibility/src/main/java/org/apache/tuscany/sca/core/DefaultFactoryExtensionPoint.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/extensibility/src/main/java/org/apache/tuscany/sca/core/DefaultModuleActivatorExtensionPoint.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/extensibility/src/main/java/org/apache/tuscany/sca/core/DefaultUtilityExtensionPoint.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/extensibility/src/main/java/org/apache/tuscany/sca/core/ExtensionPointRegistry.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/extensibility/src/main/java/org/apache/tuscany/sca/core/FactoryExtensionPoint.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/extensibility/src/main/java/org/apache/tuscany/sca/core/LifeCycleListener.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/extensibility/src/main/java/org/apache/tuscany/sca/core/ModuleActivator.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/extensibility/src/main/java/org/apache/tuscany/sca/core/ModuleActivatorExtensionPoint.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/extensibility/src/main/java/org/apache/tuscany/sca/core/UtilityExtensionPoint.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/extensibility/src/main/java/org/apache/tuscany/sca/extensibility/ClassLoaderContext.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/extensibility/src/main/java/org/apache/tuscany/sca/extensibility/ContextClassLoaderServiceDiscoverer.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/extensibility/src/main/java/org/apache/tuscany/sca/extensibility/ServiceDeclaration.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/extensibility/src/main/java/org/apache/tuscany/sca/extensibility/ServiceDeclarationParser.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/extensibility/src/main/java/org/apache/tuscany/sca/extensibility/ServiceDiscoverer.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/extensibility/src/main/java/org/apache/tuscany/sca/extensibility/ServiceDiscovery.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/extensibility/src/main/java/org/apache/tuscany/sca/extensibility/ServiceHelper.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/extensibility/src/main/java/org/apache/tuscany/sca/extensibility/impl/ClassLoaderDelegate.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/extensibility/src/main/java/org/apache/tuscany/sca/extensibility/impl/InvalidSyntaxException.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/extensibility/src/main/java/org/apache/tuscany/sca/extensibility/impl/LDAPFilter.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/extensibility/src/main/resources/META-INF/services/org.apache.tuscany.sca.core.FactoryExtensionPoint delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/extensibility/src/main/resources/META-INF/services/org.apache.tuscany.sca.core.ModuleActivatorExtensionPoint delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/extensibility/src/main/resources/META-INF/services/org.apache.tuscany.sca.core.UtilityExtensionPoint delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/extensibility/src/test/java/org/apache/tuscany/sca/extensibility/ContextClassLoaderServiceDiscovererTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/extensibility/src/test/java/org/apache/tuscany/sca/extensibility/DefaultExtensionPointRegistryTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/extensibility/src/test/java/org/apache/tuscany/sca/extensibility/DefaultUtilityExtensionPointTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/extensibility/src/test/java/org/apache/tuscany/sca/extensibility/ServiceDiscoveryTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/extensibility/src/test/java/org/apache/tuscany/sca/extensibility/ServiceHelperTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/extensibility/src/test/java/org/apache/tuscany/sca/extensibility/test/DummyImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/extensibility/src/test/java/org/apache/tuscany/sca/extensibility/test/Test2Impl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/extensibility/src/test/java/org/apache/tuscany/sca/extensibility/test/TestImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/extensibility/src/test/java/org/apache/tuscany/sca/extensibility/test/TestInterface.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/extensibility/src/test/resources/META-INF/services/org.apache.tuscany.sca.extensibility.test.TestInterface delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/host-corba-jee/LICENSE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/host-corba-jee/META-INF/MANIFEST.MF delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/host-corba-jee/NOTICE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/host-corba-jee/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/host-corba-jee/src/main/java/org/apache/tuscany/sca/host/corba/jee/JEECorbaHost.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/host-corba-jee/src/main/resources/META-INF/services/org.apache.tuscany.sca.host.corba.CorbaHost delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/host-corba-jee/src/test/java/org/apache/tuscany/sca/host/corba/jee/testing/JEECorbaHostTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/host-corba-jee/src/test/java/org/apache/tuscany/sca/host/corba/jee/testing/TestContext.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/host-corba-jee/src/test/java/org/apache/tuscany/sca/host/corba/jee/testing/TestInitialContextFactory.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/host-corba-jee/src/test/java/org/apache/tuscany/sca/host/corba/jee/testing/general/TestInterface.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/host-corba-jee/src/test/java/org/apache/tuscany/sca/host/corba/jee/testing/general/TestInterfaceHelper.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/host-corba-jee/src/test/java/org/apache/tuscany/sca/host/corba/jee/testing/general/TestInterfaceHolder.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/host-corba-jee/src/test/java/org/apache/tuscany/sca/host/corba/jee/testing/general/TestInterfaceOperations.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/host-corba-jee/src/test/java/org/apache/tuscany/sca/host/corba/jee/testing/general/_TestInterfaceImplBase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/host-corba-jee/src/test/java/org/apache/tuscany/sca/host/corba/jee/testing/general/_TestInterfaceStub.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/host-corba-jee/src/test/java/org/apache/tuscany/sca/host/corba/jee/testing/servants/TestInterfaceServant.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/host-corba-jee/src/test/resources/general.idl delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/host-corba-jse-tns/LICENSE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/host-corba-jse-tns/META-INF/MANIFEST.MF delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/host-corba-jse-tns/NOTICE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/host-corba-jse-tns/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/host-corba-jse-tns/src/main/java/org/apache/tuscany/sca/host/corba/jse/tns/TnsDefaultCorbaHost.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/host-corba-jse-tns/src/main/resources/META-INF/services/org.apache.tuscany.sca.host.corba.CorbaHost delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/host-corba-jse-tns/src/test/java/org/apache/tuscany/sca/host/corba/testing/TnsDefaultCorbaHostTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/host-corba-jse/LICENSE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/host-corba-jse/META-INF/MANIFEST.MF delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/host-corba-jse/NOTICE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/host-corba-jse/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/host-corba-jse/src/main/java/org/apache/tuscany/sca/host/corba/jse/DefaultCorbaHost.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/host-corba-jse/src/main/java/org/apache/tuscany/sca/host/corba/naming/NamingContextBase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/host-corba-jse/src/main/java/org/apache/tuscany/sca/host/corba/naming/TransientNameServer.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/host-corba-jse/src/main/java/org/apache/tuscany/sca/host/corba/naming/TransientNameService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/host-corba-jse/src/main/java/org/apache/tuscany/sca/host/corba/naming/TransientNamingContext.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/host-corba-jse/src/main/java/org/apache/tuscany/sca/host/corba/naming/TransientServiceException.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/host-corba-jse/src/main/resources/META-INF/services/org.apache.tuscany.sca.host.corba.CorbaHost delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/host-corba-jse/src/test/java/org/apache/tuscany/sca/host/corba/testing/DefaultCorbaHostTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/host-corba-jse/src/test/java/org/apache/tuscany/sca/host/corba/testing/general/TestInterface.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/host-corba-jse/src/test/java/org/apache/tuscany/sca/host/corba/testing/general/TestInterfaceHelper.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/host-corba-jse/src/test/java/org/apache/tuscany/sca/host/corba/testing/general/TestInterfaceHolder.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/host-corba-jse/src/test/java/org/apache/tuscany/sca/host/corba/testing/general/TestInterfaceOperations.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/host-corba-jse/src/test/java/org/apache/tuscany/sca/host/corba/testing/general/_TestInterfaceImplBase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/host-corba-jse/src/test/java/org/apache/tuscany/sca/host/corba/testing/general/_TestInterfaceStub.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/host-corba-jse/src/test/java/org/apache/tuscany/sca/host/corba/testing/servants/TestInterfaceServant.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/host-corba-jse/src/test/resources/general.idl delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/host-corba/LICENSE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/host-corba/META-INF/MANIFEST.MF delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/host-corba/NOTICE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/host-corba/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/host-corba/src/main/java/org/apache/tuscany/sca/host/corba/CorbaHost.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/host-corba/src/main/java/org/apache/tuscany/sca/host/corba/CorbaHostException.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/host-corba/src/main/java/org/apache/tuscany/sca/host/corba/CorbaHostExtensionPoint.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/host-corba/src/main/java/org/apache/tuscany/sca/host/corba/CorbaHostUtils.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/host-corba/src/main/java/org/apache/tuscany/sca/host/corba/CorbanameURL.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/host-corba/src/main/java/org/apache/tuscany/sca/host/corba/DefaultCorbaHostExtensionPoint.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/host-corba/src/main/java/org/apache/tuscany/sca/host/corba/ExtensibleCorbaHost.java delete mode 100755 sca-java-2.x/tags/2.0-M5-RC3/modules/host-corba/src/main/java/org/apache/tuscany/sca/host/corba/SocketUtil.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/host-corba/src/main/resources/META-INF/services/org.apache.tuscany.sca.host.corba.CorbaHostExtensionPoint delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/host-corba/src/test/java/org/apache/tuscany/sca/host/corba/UtilsTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/host-http/LICENSE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/host-http/META-INF/MANIFEST.MF delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/host-http/NOTICE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/host-http/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/host-http/src/main/java/org/apache/tuscany/sca/host/http/DefaultResourceServlet.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/host-http/src/main/java/org/apache/tuscany/sca/host/http/DefaultServletHostExtensionPoint.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/host-http/src/main/java/org/apache/tuscany/sca/host/http/ExtensibleServletHost.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/host-http/src/main/java/org/apache/tuscany/sca/host/http/SecurityContext.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/host-http/src/main/java/org/apache/tuscany/sca/host/http/ServletHost.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/host-http/src/main/java/org/apache/tuscany/sca/host/http/ServletHostExtensionPoint.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/host-http/src/main/java/org/apache/tuscany/sca/host/http/ServletHostHelper.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/host-http/src/main/java/org/apache/tuscany/sca/host/http/ServletMappingException.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/host-http/src/main/java/org/apache/tuscany/sca/host/http/UserContext.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/host-http/src/main/resources/META-INF/services/org.apache.tuscany.sca.host.http.ServletHostExtensionPoint delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/host-jetty/LICENSE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/host-jetty/META-INF/MANIFEST.MF delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/host-jetty/NOTICE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/host-jetty/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/host-jetty/src/main/java/org/apache/tuscany/sca/http/jetty/JettyDefaultServlet.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/host-jetty/src/main/java/org/apache/tuscany/sca/http/jetty/JettyLogger.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/host-jetty/src/main/java/org/apache/tuscany/sca/http/jetty/JettyServer.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/host-jetty/src/main/resources/META-INF/services/org.apache.tuscany.sca.host.http.ServletHost delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/host-jetty/src/test/java/org/apache/tuscany/sca/http/jetty/JettyServerTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/host-jetty/src/test/resources/content/test.html delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/host-jetty/src/test/resources/tuscany.keyStore delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/host-rmi/LICENSE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/host-rmi/META-INF/MANIFEST.MF delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/host-rmi/NOTICE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/host-rmi/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/host-rmi/src/main/java/org/apache/tuscany/sca/host/rmi/DefaultRMIHost.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/host-rmi/src/main/java/org/apache/tuscany/sca/host/rmi/DefaultRMIHostExtensionPoint.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/host-rmi/src/main/java/org/apache/tuscany/sca/host/rmi/ExtensibleRMIHost.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/host-rmi/src/main/java/org/apache/tuscany/sca/host/rmi/RMIHost.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/host-rmi/src/main/java/org/apache/tuscany/sca/host/rmi/RMIHostException.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/host-rmi/src/main/java/org/apache/tuscany/sca/host/rmi/RMIHostExtensionPoint.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/host-rmi/src/main/java/org/apache/tuscany/sca/host/rmi/RMIHostRuntimeException.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/host-rmi/src/main/java/org/apache/tuscany/sca/host/rmi/RMISocketFactoryImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/host-rmi/src/main/resources/META-INF/services/org.apache.tuscany.sca.host.rmi.RMIHostExtensionPoint delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/host-rmi/src/test/java/org/apache/tuscany/sca/host/rmi/RMIHostImplTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/host-webapp/LICENSE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/host-webapp/META-INF/MANIFEST.MF delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/host-webapp/NOTICE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/host-webapp/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/host-webapp/src/main/java/org/apache/tuscany/sca/host/webapp/TuscanyContextListener.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/host-webapp/src/main/java/org/apache/tuscany/sca/host/webapp/TuscanyServletFilter.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/host-webapp/src/main/java/org/apache/tuscany/sca/host/webapp/WebAppHelper.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/host-webapp/src/main/java/org/apache/tuscany/sca/host/webapp/WebAppRequestDispatcher.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/host-webapp/src/main/java/org/apache/tuscany/sca/host/webapp/WebAppServletHost.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/host-webapp/src/main/resources/META-INF/services/org.apache.tuscany.sca.host.http.ServletHost delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-bpel-runtime/LICENSE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-bpel-runtime/META-INF/MANIFEST.MF delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-bpel-runtime/NOTICE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-bpel-runtime/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-bpel-runtime/src/main/java/org/apache/tuscany/sca/implementation/bpel/ode/BPELODEDeployFile.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-bpel-runtime/src/main/java/org/apache/tuscany/sca/implementation/bpel/ode/DeploymentWorkspace.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-bpel-runtime/src/main/java/org/apache/tuscany/sca/implementation/bpel/ode/EmbeddedODEServer.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-bpel-runtime/src/main/java/org/apache/tuscany/sca/implementation/bpel/ode/GeronimoTxFactory.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-bpel-runtime/src/main/java/org/apache/tuscany/sca/implementation/bpel/ode/ODEBindingContext.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-bpel-runtime/src/main/java/org/apache/tuscany/sca/implementation/bpel/ode/ODEDeployment.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-bpel-runtime/src/main/java/org/apache/tuscany/sca/implementation/bpel/ode/ODEDeploymentException.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-bpel-runtime/src/main/java/org/apache/tuscany/sca/implementation/bpel/ode/ODEEndpointReference.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-bpel-runtime/src/main/java/org/apache/tuscany/sca/implementation/bpel/ode/ODEEprContext.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-bpel-runtime/src/main/java/org/apache/tuscany/sca/implementation/bpel/ode/ODEExternalService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-bpel-runtime/src/main/java/org/apache/tuscany/sca/implementation/bpel/ode/ODEInitializationException.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-bpel-runtime/src/main/java/org/apache/tuscany/sca/implementation/bpel/ode/ODEMessageExchangeContext.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-bpel-runtime/src/main/java/org/apache/tuscany/sca/implementation/bpel/ode/ODEShutdownException.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-bpel-runtime/src/main/java/org/apache/tuscany/sca/implementation/bpel/ode/TuscanyEPR.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-bpel-runtime/src/main/java/org/apache/tuscany/sca/implementation/bpel/ode/TuscanyPRC.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-bpel-runtime/src/main/java/org/apache/tuscany/sca/implementation/bpel/ode/TuscanyProcessConfImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-bpel-runtime/src/main/java/org/apache/tuscany/sca/implementation/bpel/ode/provider/BPELImplementationProvider.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-bpel-runtime/src/main/java/org/apache/tuscany/sca/implementation/bpel/ode/provider/BPELImplementationProviderFactory.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-bpel-runtime/src/main/java/org/apache/tuscany/sca/implementation/bpel/ode/provider/BPELInvoker.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-bpel-runtime/src/main/java/org/apache/tuscany/sca/implementation/bpel/ode/provider/ODEInvocationException.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-bpel-runtime/src/main/resources/META-INF/services/org.apache.tuscany.sca.provider.ImplementationProviderFactory delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-bpel-runtime/src/test/java/org/apache/tuscany/sca/implementation/bpel/ode/EmbeddedODEServerTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-bpel-runtime/src/test/resources/helloworld/deploy.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-bpel-runtime/src/test/resources/helloworld/greetings.wsdl delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-bpel-runtime/src/test/resources/helloworld/helloworld.bpel delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-bpel-runtime/src/test/resources/helloworld/helloworld.wsdl delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-bpel-runtime/src/test/resources/log4j.properties delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-bpel/LICENSE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-bpel/META-INF/MANIFEST.MF delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-bpel/NOTICE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-bpel/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-bpel/src/main/java/org/apache/tuscany/sca/implementation/bpel/BPELFactory.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-bpel/src/main/java/org/apache/tuscany/sca/implementation/bpel/BPELImplementation.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-bpel/src/main/java/org/apache/tuscany/sca/implementation/bpel/BPELProcessDefinition.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-bpel/src/main/java/org/apache/tuscany/sca/implementation/bpel/impl/BPELFactoryImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-bpel/src/main/java/org/apache/tuscany/sca/implementation/bpel/impl/BPELImplementationImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-bpel/src/main/java/org/apache/tuscany/sca/implementation/bpel/impl/BPELProcessDefinitionImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-bpel/src/main/java/org/apache/tuscany/sca/implementation/bpel/xml/BPELDocumentModelResolver.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-bpel/src/main/java/org/apache/tuscany/sca/implementation/bpel/xml/BPELDocumentProcessor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-bpel/src/main/java/org/apache/tuscany/sca/implementation/bpel/xml/BPELImplementationProcessor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-bpel/src/main/java/org/apache/tuscany/sca/implementation/bpel/xml/BPELImportElement.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-bpel/src/main/java/org/apache/tuscany/sca/implementation/bpel/xml/BPELPartnerLinkElement.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-bpel/src/main/java/org/apache/tuscany/sca/implementation/bpel/xml/BPELPartnerLinkTypeElement.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-bpel/src/main/java/org/apache/tuscany/sca/implementation/bpel/xml/BPELProcessorConstants.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-bpel/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessor delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-bpel/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.processor.URLArtifactProcessor delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-bpel/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.resolver.ModelResolver delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-bpel/src/main/resources/META-INF/services/org.apache.tuscany.sca.implementation.bpel.BPELFactory delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-bpel/src/main/resources/impl-bpel-validation-messages.properties delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-bpel/src/test/java/org/apache/tuscany/sca/implementation/bpel/BPELDocumentProcessorTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-bpel/src/test/java/org/apache/tuscany/sca/implementation/bpel/BPELImplementationProcessorTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-bpel/src/test/resources/helloworld/helloworld.bpel delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-bpel/src/test/resources/helloworld/helloworld.wsdl delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-java-runtime/LICENSE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-java-runtime/META-INF/MANIFEST.MF delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-java-runtime/NOTICE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-java-runtime/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-java-runtime/src/main/java/org/apache/tuscany/sca/implementation/java/context/InstanceFactory.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-java-runtime/src/main/java/org/apache/tuscany/sca/implementation/java/context/InstanceFactoryProvider.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-java-runtime/src/main/java/org/apache/tuscany/sca/implementation/java/context/ReflectiveInstanceFactory.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-java-runtime/src/main/java/org/apache/tuscany/sca/implementation/java/context/ReflectiveInstanceWrapper.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-java-runtime/src/main/java/org/apache/tuscany/sca/implementation/java/databinding/PropertyDataTypeProcessor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-java-runtime/src/main/java/org/apache/tuscany/sca/implementation/java/injection/ArrayMultiplicityObjectFactory.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-java-runtime/src/main/java/org/apache/tuscany/sca/implementation/java/injection/ContextInjector.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-java-runtime/src/main/java/org/apache/tuscany/sca/implementation/java/injection/FieldInjector.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-java-runtime/src/main/java/org/apache/tuscany/sca/implementation/java/injection/InjectionRuntimeException.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-java-runtime/src/main/java/org/apache/tuscany/sca/implementation/java/injection/Injector.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-java-runtime/src/main/java/org/apache/tuscany/sca/implementation/java/injection/InvalidAccessorException.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-java-runtime/src/main/java/org/apache/tuscany/sca/implementation/java/injection/JavaPropertyValueObjectFactory.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-java-runtime/src/main/java/org/apache/tuscany/sca/implementation/java/injection/ListMultiplicityObjectFactory.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-java-runtime/src/main/java/org/apache/tuscany/sca/implementation/java/injection/MethodInjector.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-java-runtime/src/main/java/org/apache/tuscany/sca/implementation/java/injection/RequestContextObjectFactory.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-java-runtime/src/main/java/org/apache/tuscany/sca/implementation/java/injection/ResourceHost.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-java-runtime/src/main/java/org/apache/tuscany/sca/implementation/java/injection/ResourceNotFoundException.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-java-runtime/src/main/java/org/apache/tuscany/sca/implementation/java/injection/ResourceObjectFactory.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-java-runtime/src/main/java/org/apache/tuscany/sca/implementation/java/injection/ResourceResolutionException.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-java-runtime/src/main/java/org/apache/tuscany/sca/implementation/java/invocation/EventInvocationException.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-java-runtime/src/main/java/org/apache/tuscany/sca/implementation/java/invocation/EventInvoker.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-java-runtime/src/main/java/org/apache/tuscany/sca/implementation/java/invocation/InvalidConversationSequenceException.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-java-runtime/src/main/java/org/apache/tuscany/sca/implementation/java/invocation/JavaCallbackRuntimeWireProcessor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-java-runtime/src/main/java/org/apache/tuscany/sca/implementation/java/invocation/JavaComponentContextFactory.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-java-runtime/src/main/java/org/apache/tuscany/sca/implementation/java/invocation/JavaComponentContextProvider.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-java-runtime/src/main/java/org/apache/tuscany/sca/implementation/java/invocation/JavaComponentNameFactory.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-java-runtime/src/main/java/org/apache/tuscany/sca/implementation/java/invocation/JavaImplementationInvoker.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-java-runtime/src/main/java/org/apache/tuscany/sca/implementation/java/invocation/JavaImplementationProvider.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-java-runtime/src/main/java/org/apache/tuscany/sca/implementation/java/invocation/JavaImplementationProviderFactory.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-java-runtime/src/main/java/org/apache/tuscany/sca/implementation/java/invocation/JavaInstanceFactoryProvider.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-java-runtime/src/main/java/org/apache/tuscany/sca/implementation/java/invocation/MethodEventInvoker.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-java-runtime/src/main/java/org/apache/tuscany/sca/implementation/java/invocation/NoConversationalContractException.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-java-runtime/src/main/resources/META-INF/services/org.apache.tuscany.sca.context.PropertyValueFactory delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-java-runtime/src/main/resources/META-INF/services/org.apache.tuscany.sca.definitions.xml.Definitions delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-java-runtime/src/main/resources/META-INF/services/org.apache.tuscany.sca.implementation.java.introspect.JavaClassVisitor delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-java-runtime/src/main/resources/META-INF/services/org.apache.tuscany.sca.provider.ImplementationProviderFactory delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-java-runtime/src/main/resources/META-INF/services/org.apache.tuscany.sca.runtime.RuntimeWireProcessor delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-java-runtime/src/main/resources/org/apache/tuscany/sca/implementation/java/definitions/definitions.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-java-runtime/src/test/java/org/apache/tuscany/sca/implementation/java/context/MultiplicityTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-java-runtime/src/test/java/org/apache/tuscany/sca/implementation/java/context/ReflectiveInstanceWrapperTestCase.java.fixme delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-java-runtime/src/test/java/org/apache/tuscany/sca/implementation/java/injection/CallbackWireObjectFactoryTestCase.java.fixme delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-java-runtime/src/test/java/org/apache/tuscany/sca/implementation/java/injection/FieldInjectorTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-java-runtime/src/test/java/org/apache/tuscany/sca/implementation/java/injection/JavaPropertyValueObjectFactoryTestCase.java.fixme delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-java-runtime/src/test/java/org/apache/tuscany/sca/implementation/java/injection/MethodEventInvokerTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-java-runtime/src/test/java/org/apache/tuscany/sca/implementation/java/injection/MethodInjectorTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-java-runtime/src/test/java/org/apache/tuscany/sca/implementation/java/injection/ResourceObjectFactoryTestCase.java.fixme delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-java-runtime/src/test/java/org/apache/tuscany/sca/implementation/java/injection/SingletonObjectFactory.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-java-runtime/src/test/java/org/apache/tuscany/sca/implementation/java/injection/SingletonObjectFactoryTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-java-runtime/src/test/java/org/apache/tuscany/sca/implementation/java/injection/TestObjectFactory.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-java-runtime/src/test/java/org/apache/tuscany/sca/implementation/java/injection/TestObjectFactoryTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-java-runtime/src/test/java/org/apache/tuscany/sca/implementation/java/util/Bean1.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-java-runtime/src/test/java/org/apache/tuscany/sca/implementation/java/util/Bean2.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-java-runtime/src/test/java/org/apache/tuscany/sca/implementation/java/util/Entry.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-java-runtime/src/test/java/org/apache/tuscany/sca/implementation/java/util/JavaIntrospectionHelperTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-java-runtime/src/test/java/org/apache/tuscany/sca/implementation/java/util/SuperBean.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-java/LICENSE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-java/META-INF/MANIFEST.MF delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-java/NOTICE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-java/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/BaseJavaImplementation.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/DefaultJavaImplementationFactory.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/IntrospectionException.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/JavaConstructorImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/JavaElementImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/JavaImplementation.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/JavaImplementationFactory.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/JavaParameterImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/JavaResourceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/JavaScopeImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/impl/BaseJavaImplementationImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/impl/JavaClassIntrospectorImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/impl/JavaImplementationFactoryImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/impl/JavaImplementationImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/introspect/BaseJavaClassVisitor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/introspect/JavaClassVisitor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/introspect/JavaIntrospectionHelper.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/introspect/impl/AbstractPropertyProcessor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/introspect/impl/AllowsPassByReferenceProcessor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/introspect/impl/AmbiguousConstructorException.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/introspect/impl/ComponentNameProcessor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/introspect/impl/ConstructorProcessor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/introspect/impl/ContextProcessor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/introspect/impl/DestroyProcessor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/introspect/impl/DuplicateConstructorException.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/introspect/impl/DuplicateDestructorException.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/introspect/impl/DuplicateInitException.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/introspect/impl/DuplicatePropertyException.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/introspect/impl/DuplicateReferenceException.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/introspect/impl/DuplicateResourceException.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/introspect/impl/EagerInitProcessor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/introspect/impl/HeuristicPojoProcessor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/introspect/impl/IllegalCallbackReferenceException.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/introspect/impl/IllegalContextException.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/introspect/impl/IllegalDestructorException.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/introspect/impl/IllegalInitException.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/introspect/impl/IllegalPropertyException.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/introspect/impl/IllegalReferenceException.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/introspect/impl/IllegalResourceException.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/introspect/impl/IllegalServiceDefinitionException.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/introspect/impl/InitProcessor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/introspect/impl/InvalidConstructorException.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/introspect/impl/InvalidConversationalImplementationException.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/introspect/impl/InvalidPropertyException.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/introspect/impl/InvalidReferenceException.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/introspect/impl/InvalidResourceException.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/introspect/impl/InvalidServiceTypeException.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/introspect/impl/NoConstructorException.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/introspect/impl/PolicyProcessor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/introspect/impl/PropertyProcessor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/introspect/impl/ReferenceProcessor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/introspect/impl/Resource.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/introspect/impl/ResourceProcessor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/introspect/impl/ScopeProcessor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/introspect/impl/ServiceProcessor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/introspect/impl/ServiceTypeNotFoundException.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/introspect/impl/UnknownContextTypeException.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/package.html delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/xml/JavaImplementationConstants.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/xml/JavaImplementationProcessor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-java/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessor delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-java/src/main/resources/META-INF/services/org.apache.tuscany.sca.implementation.java.JavaImplementationFactory delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-java/src/main/resources/META-INF/services/org.apache.tuscany.sca.implementation.java.introspect.JavaClassVisitor delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-java/src/main/resources/impl-javaxml-validation-messages.properties delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-java/src/test/java/calculator/AddService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-java/src/test/java/calculator/AddServiceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-java/src/test/java/calculator/CalculatorService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-java/src/test/java/calculator/CalculatorServiceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-java/src/test/java/calculator/DivideService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-java/src/test/java/calculator/DivideServiceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-java/src/test/java/calculator/MultiplyService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-java/src/test/java/calculator/MultiplyServiceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-java/src/test/java/calculator/SubtractService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-java/src/test/java/calculator/SubtractServiceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-java/src/test/java/org/apache/tuscany/sca/implementation/java/introspect/impl/AbstractProcessorTest.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-java/src/test/java/org/apache/tuscany/sca/implementation/java/introspect/impl/AllowsPassByReferenceProcessorTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-java/src/test/java/org/apache/tuscany/sca/implementation/java/introspect/impl/ConstructorProcessorTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-java/src/test/java/org/apache/tuscany/sca/implementation/java/introspect/impl/ConstructorPropertyTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-java/src/test/java/org/apache/tuscany/sca/implementation/java/introspect/impl/ConstructorReferenceTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-java/src/test/java/org/apache/tuscany/sca/implementation/java/introspect/impl/ConstructorResourceTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-java/src/test/java/org/apache/tuscany/sca/implementation/java/introspect/impl/ContextProcessorTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-java/src/test/java/org/apache/tuscany/sca/implementation/java/introspect/impl/DestroyProcessorTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-java/src/test/java/org/apache/tuscany/sca/implementation/java/introspect/impl/EagerInitProcessorTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-java/src/test/java/org/apache/tuscany/sca/implementation/java/introspect/impl/HeuristicAndPropertyTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-java/src/test/java/org/apache/tuscany/sca/implementation/java/introspect/impl/HeuristicConstructorTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-java/src/test/java/org/apache/tuscany/sca/implementation/java/introspect/impl/HeuristicPojoProcessorTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-java/src/test/java/org/apache/tuscany/sca/implementation/java/introspect/impl/HeutisticExtensibleConstructorTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-java/src/test/java/org/apache/tuscany/sca/implementation/java/introspect/impl/InitProcessorTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-java/src/test/java/org/apache/tuscany/sca/implementation/java/introspect/impl/ModelHelper.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-java/src/test/java/org/apache/tuscany/sca/implementation/java/introspect/impl/PolicyProcessorTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-java/src/test/java/org/apache/tuscany/sca/implementation/java/introspect/impl/PropertyProcessorTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-java/src/test/java/org/apache/tuscany/sca/implementation/java/introspect/impl/ReferenceProcessorTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-java/src/test/java/org/apache/tuscany/sca/implementation/java/introspect/impl/ResourceProcessorTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-java/src/test/java/org/apache/tuscany/sca/implementation/java/introspect/impl/ScopeProcessorTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-java/src/test/java/org/apache/tuscany/sca/implementation/java/introspect/impl/ServiceCallbackTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-java/src/test/java/org/apache/tuscany/sca/implementation/java/introspect/impl/ServiceProcessorTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-java/src/test/java/org/apache/tuscany/sca/implementation/java/introspect/impl/TestAbstractPropertyProcessorTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-java/src/test/java/org/apache/tuscany/sca/implementation/java/xml/ReadTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-java/src/test/java/org/apache/tuscany/sca/implementation/java/xml/TestModelResolver.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-java/src/test/java/org/apache/tuscany/sca/implementation/java/xml/WriteTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-java/src/test/resources/org/apache/tuscany/sca/implementation/java/xml/Calculator.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-java/src/test/resources/org/apache/tuscany/sca/implementation/java/xml/definitions.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-java/src/test/resources/org/apache/tuscany/sca/implementation/java/xml/definitions_with_policysets.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-jaxrs-runtime/LICENSE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-jaxrs-runtime/META-INF/MANIFEST.MF delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-jaxrs-runtime/NOTICE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-jaxrs-runtime/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-jaxrs-runtime/src/main/java/org/apache/tuscany/sca/implementation/jaxrs/provider/JAXRSImplementationProvider.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-jaxrs-runtime/src/main/java/org/apache/tuscany/sca/implementation/jaxrs/provider/JAXRSImplementationProviderFactory.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-jaxrs-runtime/src/main/resources/META-INF/services/org.apache.tuscany.sca.provider.ImplementationProviderFactory delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-jaxrs-runtime/src/test/java/helloworld/jaxrs/HelloWorld.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-jaxrs-runtime/src/test/java/helloworld/jaxrs/HelloWorldApp.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-jaxrs-runtime/src/test/java/helloworld/jaxrs/test/HelloWorldTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-jaxrs-runtime/src/test/resources/helloworld/jaxrs/HelloWorld.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-jaxrs/LICENSE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-jaxrs/META-INF/MANIFEST.MF delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-jaxrs/NOTICE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-jaxrs/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-jaxrs/src/main/java/org/apache/tuscany/sca/implementation/jaxrs/JAXRSImplementation.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-jaxrs/src/main/java/org/apache/tuscany/sca/implementation/jaxrs/JAXRSImplementationFactory.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-jaxrs/src/main/java/org/apache/tuscany/sca/implementation/jaxrs/impl/JAXRSImplementationFactoryImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-jaxrs/src/main/java/org/apache/tuscany/sca/implementation/jaxrs/impl/JAXRSImplementationImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-jaxrs/src/main/java/org/apache/tuscany/sca/implementation/jaxrs/xml/JAXRSImplementationProcessor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-jaxrs/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessor delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-jaxrs/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.processor.ValidationSchema delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-jaxrs/src/main/resources/META-INF/services/org.apache.tuscany.sca.implementation.jaxrs.JAXRSImplementationFactory delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-jaxrs/src/main/resources/org/apache/tuscany/sca/implementation/jaxrs/tuscany-sca-1.1-implementation-jaxrs.xsd delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-jaxrs/src/test/java/org/apache/tuscany/sca/implementation/jaxrs/xml/ReadTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-jaxrs/src/test/java/org/apache/tuscany/sca/implementation/jaxrs/xml/WriteTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-jaxrs/src/test/resources/org/apache/tuscany/sca/implementation/jaxrs/xml/TestJAXRS.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-osgi-runtime/LICENSE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-osgi-runtime/META-INF/MANIFEST.MF delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-osgi-runtime/NOTICE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-osgi-runtime/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-osgi-runtime/src/main/java/org/apache/tuscany/sca/implementation/osgi/runtime/OSGiImplementationProvider.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-osgi-runtime/src/main/java/org/apache/tuscany/sca/implementation/osgi/runtime/OSGiImplementationProviderFactory.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-osgi-runtime/src/main/java/org/apache/tuscany/sca/implementation/osgi/runtime/OSGiTargetInvoker.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-osgi-runtime/src/main/resources/META-INF/definitions.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-osgi-runtime/src/main/resources/META-INF/services/org.apache.tuscany.sca.provider.ImplementationProviderFactory delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-osgi-runtime/src/main/resources/impl-osgi-validation-messages.properties delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-osgi/LICENSE delete mode 100755 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-osgi/META-INF/MANIFEST.MF delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-osgi/NOTICE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-osgi/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-osgi/src/main/java/org/apache/tuscany/sca/implementation/osgi/DefaultOSGiImplementationFactory.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-osgi/src/main/java/org/apache/tuscany/sca/implementation/osgi/DefaultServiceDescriptionsFactory.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-osgi/src/main/java/org/apache/tuscany/sca/implementation/osgi/OSGiImplementation.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-osgi/src/main/java/org/apache/tuscany/sca/implementation/osgi/OSGiImplementationFactory.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-osgi/src/main/java/org/apache/tuscany/sca/implementation/osgi/OSGiProperty.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-osgi/src/main/java/org/apache/tuscany/sca/implementation/osgi/SCAConfig.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-osgi/src/main/java/org/apache/tuscany/sca/implementation/osgi/ServiceDescription.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-osgi/src/main/java/org/apache/tuscany/sca/implementation/osgi/ServiceDescriptions.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-osgi/src/main/java/org/apache/tuscany/sca/implementation/osgi/ServiceDescriptionsFactory.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-osgi/src/main/java/org/apache/tuscany/sca/implementation/osgi/impl/OSGiImplementationFactoryImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-osgi/src/main/java/org/apache/tuscany/sca/implementation/osgi/impl/OSGiImplementationImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-osgi/src/main/java/org/apache/tuscany/sca/implementation/osgi/impl/OSGiPropertyImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-osgi/src/main/java/org/apache/tuscany/sca/implementation/osgi/impl/SCAConfigImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-osgi/src/main/java/org/apache/tuscany/sca/implementation/osgi/impl/ServiceDescriptionImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-osgi/src/main/java/org/apache/tuscany/sca/implementation/osgi/impl/ServiceDescriptionsFactoryImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-osgi/src/main/java/org/apache/tuscany/sca/implementation/osgi/impl/ServiceDescriptionsImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-osgi/src/main/java/org/apache/tuscany/sca/implementation/osgi/xml/BluePrintComponentsProcessor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-osgi/src/main/java/org/apache/tuscany/sca/implementation/osgi/xml/OSGiComponentProcessor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-osgi/src/main/java/org/apache/tuscany/sca/implementation/osgi/xml/OSGiImplementationActivator.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-osgi/src/main/java/org/apache/tuscany/sca/implementation/osgi/xml/OSGiImplementationProcessor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-osgi/src/main/java/org/apache/tuscany/sca/implementation/osgi/xml/OSGiPropertyProcessor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-osgi/src/main/java/org/apache/tuscany/sca/implementation/osgi/xml/SCAConfigProcessor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-osgi/src/main/java/org/apache/tuscany/sca/implementation/osgi/xml/ServiceDescriptionsDocumentProcessor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-osgi/src/main/java/org/apache/tuscany/sca/implementation/osgi/xml/ServiceDescriptionsModelResolver.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-osgi/src/main/java/org/apache/tuscany/sca/implementation/osgi/xml/ServiceDescriptionsProcessor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-osgi/src/main/resources/META-INF/definitions.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-osgi/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessor delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-osgi/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.processor.URLArtifactProcessor delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-osgi/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.resolver.ModelResolver delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-osgi/src/main/resources/META-INF/services/org.apache.tuscany.sca.implementation.osgi.OSGiImplementationFactory delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-osgi/src/main/resources/META-INF/services/org.apache.tuscany.sca.implementation.osgi.ServiceDescriptionsFactory delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-osgi/src/main/resources/impl-osgi-validation-messages.properties delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-osgi/src/test/java/calculator/dosgi/CalculatorService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-osgi/src/test/java/calculator/dosgi/operations/AddService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-osgi/src/test/java/calculator/dosgi/operations/DivideService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-osgi/src/test/java/calculator/dosgi/operations/MultiplyService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-osgi/src/test/java/calculator/dosgi/operations/SubtractService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-osgi/src/test/java/org/apache/tuscany/sca/implementation/osgi/xml/BluePrintComponentsProcessorTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-osgi/src/test/java/org/apache/tuscany/sca/implementation/osgi/xml/OSGiComponentProcessorTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-osgi/src/test/java/org/apache/tuscany/sca/implementation/osgi/xml/OSGiReadImplTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-osgi/src/test/java/org/apache/tuscany/sca/implementation/osgi/xml/ServiceDescriptionsTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-osgi/src/test/java/org/apache/tuscany/sca/implementation/osgi/xml/TestModelResolver.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-osgi/src/test/resources/OSGI-INF/calculator-component.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-osgi/src/test/resources/OSGI-INF/sca/bundle.componentType delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-osgi/src/test/resources/osgitest.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-script-runtime/LICENSE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-script-runtime/META-INF/MANIFEST.MF delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-script-runtime/NOTICE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-script-runtime/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-script-runtime/src/main/java/org/apache/tuscany/sca/implementation/script/provider/ScriptImplementationProvider.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-script-runtime/src/main/java/org/apache/tuscany/sca/implementation/script/provider/ScriptImplementationProviderFactory.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-script-runtime/src/main/java/org/apache/tuscany/sca/implementation/script/provider/ScriptInvoker.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-script-runtime/src/main/java/org/apache/tuscany/sca/implementation/script/provider/ScriptPropertyFactory.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-script-runtime/src/main/resources/META-INF/services/org.apache.tuscany.sca.provider.ImplementationProviderFactory delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-script-runtime/src/test/java/org/apache/tuscany/sca/implementation/script/itests/AbstractSCATestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-script-runtime/src/test/java/org/apache/tuscany/sca/implementation/script/itests/helloworld/AbstractHelloWorldTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-script-runtime/src/test/java/org/apache/tuscany/sca/implementation/script/itests/helloworld/GroovyHelloWorldTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-script-runtime/src/test/java/org/apache/tuscany/sca/implementation/script/itests/helloworld/HelloWorld.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-script-runtime/src/test/java/org/apache/tuscany/sca/implementation/script/itests/helloworld/HelloWorldProxy.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-script-runtime/src/test/java/org/apache/tuscany/sca/implementation/script/itests/helloworld/JRubyHelloWorldTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-script-runtime/src/test/java/org/apache/tuscany/sca/implementation/script/itests/helloworld/JavaScriptHelloWorldTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-script-runtime/src/test/java/org/apache/tuscany/sca/implementation/script/itests/helloworld/JythonHelloWorldTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-script-runtime/src/test/java/org/apache/tuscany/sca/implementation/script/itests/properties/AbstractHelloWorldTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-script-runtime/src/test/java/org/apache/tuscany/sca/implementation/script/itests/properties/GroovyHelloWorldTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-script-runtime/src/test/java/org/apache/tuscany/sca/implementation/script/itests/properties/HelloWorld.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-script-runtime/src/test/java/org/apache/tuscany/sca/implementation/script/itests/properties/HelloWorldProxy.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-script-runtime/src/test/java/org/apache/tuscany/sca/implementation/script/itests/properties/JRubyHelloWorldTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-script-runtime/src/test/java/org/apache/tuscany/sca/implementation/script/itests/properties/JavaScriptHelloWorldTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-script-runtime/src/test/java/org/apache/tuscany/sca/implementation/script/itests/properties/JythonHelloWorldTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-script-runtime/src/test/java/org/apache/tuscany/sca/implementation/script/itests/references/GroovyReferenceTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-script-runtime/src/test/java/org/apache/tuscany/sca/implementation/script/itests/references/HelloWorldTarget.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-script-runtime/src/test/java/org/apache/tuscany/sca/implementation/script/itests/references/JRubyReferenceTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-script-runtime/src/test/java/org/apache/tuscany/sca/implementation/script/itests/references/JavaScriptReferenceTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-script-runtime/src/test/java/org/apache/tuscany/sca/implementation/script/itests/references/JythonReferenceTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-script-runtime/src/test/resources/org/apache/tuscany/sca/implementation/script/itests/helloworld/GroovyHelloWorld.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-script-runtime/src/test/resources/org/apache/tuscany/sca/implementation/script/itests/helloworld/JRubyHelloWorld.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-script-runtime/src/test/resources/org/apache/tuscany/sca/implementation/script/itests/helloworld/JavaScriptHelloWorld.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-script-runtime/src/test/resources/org/apache/tuscany/sca/implementation/script/itests/helloworld/JythonHelloWorld.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-script-runtime/src/test/resources/org/apache/tuscany/sca/implementation/script/itests/helloworld/helloworld.componentType delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-script-runtime/src/test/resources/org/apache/tuscany/sca/implementation/script/itests/helloworld/helloworld.groovy delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-script-runtime/src/test/resources/org/apache/tuscany/sca/implementation/script/itests/helloworld/helloworld.js delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-script-runtime/src/test/resources/org/apache/tuscany/sca/implementation/script/itests/helloworld/helloworld.py delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-script-runtime/src/test/resources/org/apache/tuscany/sca/implementation/script/itests/helloworld/helloworld.rb delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-script-runtime/src/test/resources/org/apache/tuscany/sca/implementation/script/itests/properties/GroovyHelloWorld.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-script-runtime/src/test/resources/org/apache/tuscany/sca/implementation/script/itests/properties/JRubyHelloWorld.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-script-runtime/src/test/resources/org/apache/tuscany/sca/implementation/script/itests/properties/JavaScriptHelloWorld.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-script-runtime/src/test/resources/org/apache/tuscany/sca/implementation/script/itests/properties/JythonHelloWorld.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-script-runtime/src/test/resources/org/apache/tuscany/sca/implementation/script/itests/properties/helloworld.componentType delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-script-runtime/src/test/resources/org/apache/tuscany/sca/implementation/script/itests/properties/helloworld.groovy delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-script-runtime/src/test/resources/org/apache/tuscany/sca/implementation/script/itests/properties/helloworld.js delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-script-runtime/src/test/resources/org/apache/tuscany/sca/implementation/script/itests/properties/helloworld.py delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-script-runtime/src/test/resources/org/apache/tuscany/sca/implementation/script/itests/properties/helloworld.rb delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-script-runtime/src/test/resources/org/apache/tuscany/sca/implementation/script/itests/references/GroovyReference.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-script-runtime/src/test/resources/org/apache/tuscany/sca/implementation/script/itests/references/JRubyReference.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-script-runtime/src/test/resources/org/apache/tuscany/sca/implementation/script/itests/references/JavaScriptReference.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-script-runtime/src/test/resources/org/apache/tuscany/sca/implementation/script/itests/references/JythonReference.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-script-runtime/src/test/resources/org/apache/tuscany/sca/implementation/script/itests/references/reference.componentType delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-script-runtime/src/test/resources/org/apache/tuscany/sca/implementation/script/itests/references/reference.groovy delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-script-runtime/src/test/resources/org/apache/tuscany/sca/implementation/script/itests/references/reference.js delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-script-runtime/src/test/resources/org/apache/tuscany/sca/implementation/script/itests/references/reference.py delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-script-runtime/src/test/resources/org/apache/tuscany/sca/implementation/script/itests/references/reference.rb delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-script/LICENSE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-script/META-INF/MANIFEST.MF delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-script/NOTICE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-script/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-script/src/main/java/org/apache/tuscany/sca/implementation/script/ScriptImplementation.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-script/src/main/java/org/apache/tuscany/sca/implementation/script/ScriptImplementationFactory.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-script/src/main/java/org/apache/tuscany/sca/implementation/script/impl/ScriptImplementationFactoryImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-script/src/main/java/org/apache/tuscany/sca/implementation/script/impl/ScriptImplementationImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-script/src/main/java/org/apache/tuscany/sca/implementation/script/xml/ScriptImplementationProcessor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-script/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessor delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-script/src/main/resources/META-INF/services/org.apache.tuscany.sca.implementation.script.ScriptImplementationFactory delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-spring-sca/LICENSE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-spring-sca/META-INF/MANIFEST.MF delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-spring-sca/NOTICE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-spring-sca/README delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-spring-sca/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-spring-sca/src/main/java/org/apache/tuscany/sca/implementation/spring/namespace/SCANamespaceHandlerResolver.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-spring-sca/src/main/java/org/apache/tuscany/sca/implementation/spring/namespace/ScaNamespaceHandler.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-spring-sca/src/main/java/org/apache/tuscany/sca/implementation/spring/namespace/ScaPropertyBeanDefinitionParser.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-spring-sca/src/main/java/org/apache/tuscany/sca/implementation/spring/namespace/ScaReferenceBeanDefinitionParser.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-spring-sca/src/main/java/org/apache/tuscany/sca/implementation/spring/namespace/ScaServiceBeanDefinitionParser.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-spring-sca/src/main/java/org/apache/tuscany/sca/implementation/spring/processor/ComponentNameAnnotationProcessor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-spring-sca/src/main/java/org/apache/tuscany/sca/implementation/spring/processor/ComponentStub.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-spring-sca/src/main/java/org/apache/tuscany/sca/implementation/spring/processor/ConstructorAnnotationProcessor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-spring-sca/src/main/java/org/apache/tuscany/sca/implementation/spring/processor/InitDestroyAnnotationProcessor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-spring-sca/src/main/java/org/apache/tuscany/sca/implementation/spring/processor/PropertyAnnotationProcessor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-spring-sca/src/main/java/org/apache/tuscany/sca/implementation/spring/processor/PropertyValueStub.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-spring-sca/src/main/java/org/apache/tuscany/sca/implementation/spring/processor/ReferenceAnnotationProcessor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-spring-sca/src/main/java/org/apache/tuscany/sca/implementation/spring/runtime/context/SCAGenericApplicationContext.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-spring-sca/src/main/java/org/apache/tuscany/sca/implementation/spring/runtime/context/SCAParentApplicationContext.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-spring-sca/src/main/java/org/apache/tuscany/sca/implementation/spring/runtime/context/SpringContextTie.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-spring-sca/src/main/java/org/apache/tuscany/sca/implementation/spring/runtime/context/SpringImplementationStub.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-spring-sca/src/main/resources/META-INF/spring.handlers delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-spring-sca/src/main/resources/META-INF/spring.schemas delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-spring-sca/src/main/resources/org/springframework/sca/xml/spring-sca.xsd delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-spring/LICENSE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-spring/META-INF/MANIFEST.MF delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-spring/NOTICE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-spring/README delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-spring/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-spring/src/main/java/org/apache/tuscany/sca/implementation/spring/SpringBeanElement.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-spring/src/main/java/org/apache/tuscany/sca/implementation/spring/SpringConstructorArgElement.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-spring/src/main/java/org/apache/tuscany/sca/implementation/spring/SpringImplementation.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-spring/src/main/java/org/apache/tuscany/sca/implementation/spring/SpringImplementationBuilder.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-spring/src/main/java/org/apache/tuscany/sca/implementation/spring/SpringImplementationConstants.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-spring/src/main/java/org/apache/tuscany/sca/implementation/spring/SpringPropertyElement.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-spring/src/main/java/org/apache/tuscany/sca/implementation/spring/SpringSCAPropertyElement.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-spring/src/main/java/org/apache/tuscany/sca/implementation/spring/SpringSCAReferenceElement.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-spring/src/main/java/org/apache/tuscany/sca/implementation/spring/SpringSCAServiceElement.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-spring/src/main/java/org/apache/tuscany/sca/implementation/spring/introspect/SpringBeanIntrospector.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-spring/src/main/java/org/apache/tuscany/sca/implementation/spring/introspect/SpringBeanPojoProcessor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-spring/src/main/java/org/apache/tuscany/sca/implementation/spring/introspect/SpringXMLComponentTypeLoader.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-spring/src/main/java/org/apache/tuscany/sca/implementation/spring/invocation/ComponentTie.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-spring/src/main/java/org/apache/tuscany/sca/implementation/spring/invocation/PropertyValueTie.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-spring/src/main/java/org/apache/tuscany/sca/implementation/spring/invocation/SpringContextStub.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-spring/src/main/java/org/apache/tuscany/sca/implementation/spring/invocation/SpringImplementationProvider.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-spring/src/main/java/org/apache/tuscany/sca/implementation/spring/invocation/SpringImplementationProviderFactory.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-spring/src/main/java/org/apache/tuscany/sca/implementation/spring/invocation/SpringImplementationTie.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-spring/src/main/java/org/apache/tuscany/sca/implementation/spring/invocation/SpringInvocationException.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-spring/src/main/java/org/apache/tuscany/sca/implementation/spring/invocation/SpringInvoker.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-spring/src/main/java/org/apache/tuscany/sca/implementation/spring/xml/SpringImplementationProcessor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-spring/src/main/resources/META-INF/services/org.apache.tuscany.sca.assembly.builder.ImplementationBuilder delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-spring/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessor delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-spring/src/main/resources/META-INF/services/org.apache.tuscany.sca.definitions.xml.Definitions delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-spring/src/main/resources/META-INF/services/org.apache.tuscany.sca.provider.ImplementationProviderFactory delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-spring/src/main/resources/impl-spring-validation-messages.properties delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-spring/src/main/resources/org/apache/tuscany/sca/implementation/spring/definitions.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-web-client/LICENSE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-web-client/META-INF/MANIFEST.MF delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-web-client/NOTICE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-web-client/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-web-client/src/main/java/org/apache/tuscany/sca/implementation/web/client/ClientServlet.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-web-client/src/main/java/org/apache/tuscany/sca/implementation/web/client/JSClientExtensionPointImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-web-client/src/main/resources/META-INF/services/org.apache.tuscany.sca.implementation.web.runtime.ClientExtensionPoint delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-web-runtime/LICENSE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-web-runtime/META-INF/MANIFEST.MF delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-web-runtime/NOTICE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-web-runtime/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-web-runtime/src/main/java/org/apache/tuscany/sca/implementation/web/runtime/ClientExtensionPoint.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-web-runtime/src/main/java/org/apache/tuscany/sca/implementation/web/runtime/ComponentContextProxy.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-web-runtime/src/main/java/org/apache/tuscany/sca/implementation/web/runtime/WebImplementationProviderFactory.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-web-runtime/src/main/java/org/apache/tuscany/sca/implementation/web/runtime/jsp/ReferenceTEI.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-web-runtime/src/main/java/org/apache/tuscany/sca/implementation/web/runtime/jsp/ReferenceTag.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-web-runtime/src/main/java/org/apache/tuscany/sca/implementation/web/runtime/utils/ContextHelper.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-web-runtime/src/main/resources/META-INF/sca.tld delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-web-runtime/src/main/resources/META-INF/services/org.apache.tuscany.sca.provider.ImplementationProviderFactory delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-web/LICENSE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-web/META-INF/MANIFEST.MF delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-web/NOTICE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-web/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-web/src/main/java/org/apache/tuscany/sca/implementation/web/WebImplementation.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-web/src/main/java/org/apache/tuscany/sca/implementation/web/WebImplementationFactory.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-web/src/main/java/org/apache/tuscany/sca/implementation/web/impl/WebImplementationBuilder.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-web/src/main/java/org/apache/tuscany/sca/implementation/web/impl/WebImplementationFactoryImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-web/src/main/java/org/apache/tuscany/sca/implementation/web/impl/WebImplementationImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-web/src/main/java/org/apache/tuscany/sca/implementation/web/xml/WebImplementationProcessor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-web/src/main/resources/META-INF/services/org.apache.tuscany.sca.assembly.builder.ImplementationBuilder delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-web/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessor delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-web/src/main/resources/META-INF/services/org.apache.tuscany.sca.implementation.web.WebImplementationFactory delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-web/src/test/java/org/apache/tuscany/sca/implementation/web/xml/ReadTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-web/src/test/java/org/apache/tuscany/sca/implementation/web/xml/WriteTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-web/src/test/resources/org/apache/tuscany/sca/implementation/web/xml/TestWeb.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-widget-runtime-dojo/LICENSE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-widget-runtime-dojo/META-INF/MANIFEST.MF delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-widget-runtime-dojo/NOTICE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-widget-runtime-dojo/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-widget-runtime-dojo/src/main/java/org/apache/tuscany/sca/implementation/widget/dojo/DojoJavaScriptComponentGeneratorImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-widget-runtime-dojo/src/main/resources/META-INF/services/org.apache.tuscany.sca.web.javascript.ComponentJavaScriptGenerator delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-widget-runtime/LICENSE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-widget-runtime/META-INF/MANIFEST.MF delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-widget-runtime/NOTICE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-widget-runtime/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-widget-runtime/src/main/java/org/apache/tuscany/sca/implementation/widget/provider/WidgetComponentScriptServlet.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-widget-runtime/src/main/java/org/apache/tuscany/sca/implementation/widget/provider/WidgetImplementationInvoker.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-widget-runtime/src/main/java/org/apache/tuscany/sca/implementation/widget/provider/WidgetImplementationProvider.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-widget-runtime/src/main/java/org/apache/tuscany/sca/implementation/widget/provider/WidgetImplementationProviderFactory.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-widget-runtime/src/main/resources/META-INF/services/org.apache.tuscany.sca.provider.ImplementationProviderFactory delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-widget-runtime/src/main/resources/atomModel.js delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-widget-runtime/src/main/resources/binding-http.js delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-widget/LICENSE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-widget/META-INF/MANIFEST.MF delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-widget/NOTICE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-widget/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-widget/src/main/java/org/apache/tuscany/sca/implementation/widget/Widget.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-widget/src/main/java/org/apache/tuscany/sca/implementation/widget/WidgetImplementation.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-widget/src/main/java/org/apache/tuscany/sca/implementation/widget/WidgetImplementationFactory.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-widget/src/main/java/org/apache/tuscany/sca/implementation/widget/WidgetImplementationIntrospector.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-widget/src/main/java/org/apache/tuscany/sca/implementation/widget/WidgetImplementationProcessor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-widget/src/main/java/org/apache/tuscany/sca/implementation/widget/impl/WidgetImplementationFactoryImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-widget/src/main/java/org/apache/tuscany/sca/implementation/widget/impl/WidgetImplementationImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-widget/src/main/java/org/apache/tuscany/sca/implementation/widget/javascript/WidgetImplementationJavascriptProvider.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-widget/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessor delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-widget/src/main/resources/META-INF/services/org.apache.tuscany.sca.implementation.widget.WidgetImplementationFactory delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/implementation-widget/src/main/resources/impl-widget-validation-messages.properties delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/interface-java-jaxrs/LICENSE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/interface-java-jaxrs/META-INF/MANIFEST.MF delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/interface-java-jaxrs/NOTICE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/interface-java-jaxrs/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/interface-java-jaxrs/src/main/java/org/apache/tuscany/sca/interfacedef/java/jaxrs/CodeGenerationHelper.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/interface-java-jaxrs/src/main/java/org/apache/tuscany/sca/interfacedef/java/jaxrs/GeneratedClassLoader.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/interface-java-jaxrs/src/main/java/org/apache/tuscany/sca/interfacedef/java/jaxrs/JAXRSJavaInterfaceProcessor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/interface-java-jaxrs/src/main/java/org/apache/tuscany/sca/interfacedef/java/jaxrs/RootResourceClassGenerator.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/interface-java-jaxrs/src/main/resources/META-INF/services/org.apache.tuscany.sca.interfacedef.java.introspect.JavaInterfaceVisitor delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/interface-java-jaxrs/src/test/java/org/apache/tuscany/sca/interfacedef/java/jaxrs/Bean.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/interface-java-jaxrs/src/test/java/org/apache/tuscany/sca/interfacedef/java/jaxrs/JAXRSInterfaceProcessorTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/interface-java-jaxrs/src/test/java/org/apache/tuscany/sca/interfacedef/java/jaxrs/MockedResource.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/interface-java-jaxrs/src/test/java/org/apache/tuscany/sca/interfacedef/java/jaxrs/Resource.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/interface-java-jaxrs/src/test/java/org/apache/tuscany/sca/interfacedef/java/jaxrs/ResourceWrapper.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/interface-java-jaxrs/src/test/java/org/apache/tuscany/sca/interfacedef/java/jaxrs/RootResourceClassGeneratorTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/interface-java-jaxws/LICENSE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/interface-java-jaxws/META-INF/MANIFEST.MF delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/interface-java-jaxws/NOTICE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/interface-java-jaxws/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/interface-java-jaxws/src/main/java/org/apache/tuscany/sca/interfacedef/java/jaxws/BaseBeanGenerator.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/interface-java-jaxws/src/main/java/org/apache/tuscany/sca/interfacedef/java/jaxws/CodeGenerationHelper.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/interface-java-jaxws/src/main/java/org/apache/tuscany/sca/interfacedef/java/jaxws/FaultBeanGenerator.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/interface-java-jaxws/src/main/java/org/apache/tuscany/sca/interfacedef/java/jaxws/GeneratedClassLoader.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/interface-java-jaxws/src/main/java/org/apache/tuscany/sca/interfacedef/java/jaxws/GeneratedDataTypeImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/interface-java-jaxws/src/main/java/org/apache/tuscany/sca/interfacedef/java/jaxws/JAXWSAsyncInterfaceProcessor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/interface-java-jaxws/src/main/java/org/apache/tuscany/sca/interfacedef/java/jaxws/JAXWSFaultExceptionMapper.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/interface-java-jaxws/src/main/java/org/apache/tuscany/sca/interfacedef/java/jaxws/JAXWSJavaInterfaceProcessor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/interface-java-jaxws/src/main/java/org/apache/tuscany/sca/interfacedef/java/jaxws/WebServiceInterfaceProcessor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/interface-java-jaxws/src/main/java/org/apache/tuscany/sca/interfacedef/java/jaxws/WrapperBeanGenerator.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/interface-java-jaxws/src/main/resources/META-INF/services/org.apache.tuscany.sca.interfacedef.FaultExceptionMapper delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/interface-java-jaxws/src/main/resources/META-INF/services/org.apache.tuscany.sca.interfacedef.java.introspect.JavaInterfaceVisitor delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/interface-java-jaxws/src/test/java/org/apache/tuscany/sca/interfacedef/java/jaxws/Bean.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/interface-java-jaxws/src/test/java/org/apache/tuscany/sca/interfacedef/java/jaxws/Bean1.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/interface-java-jaxws/src/test/java/org/apache/tuscany/sca/interfacedef/java/jaxws/Bean2.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/interface-java-jaxws/src/test/java/org/apache/tuscany/sca/interfacedef/java/jaxws/BeanInterface.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/interface-java-jaxws/src/test/java/org/apache/tuscany/sca/interfacedef/java/jaxws/BeanInterfaceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/interface-java-jaxws/src/test/java/org/apache/tuscany/sca/interfacedef/java/jaxws/FaultBeanGeneratorTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/interface-java-jaxws/src/test/java/org/apache/tuscany/sca/interfacedef/java/jaxws/JAXWSAsyncInterfaceProcessorTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/interface-java-jaxws/src/test/java/org/apache/tuscany/sca/interfacedef/java/jaxws/JAXWSJavaInterfaceProcessorTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/interface-java-jaxws/src/test/java/org/apache/tuscany/sca/interfacedef/java/jaxws/JavaReflectionHelperTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/interface-java-jaxws/src/test/java/org/apache/tuscany/sca/interfacedef/java/jaxws/MyException.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/interface-java-jaxws/src/test/java/org/apache/tuscany/sca/interfacedef/java/jaxws/MyServiceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/interface-java-jaxws/src/test/java/org/apache/tuscany/sca/interfacedef/java/jaxws/StockQuote.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/interface-java-jaxws/src/test/java/org/apache/tuscany/sca/interfacedef/java/jaxws/TestAdapter.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/interface-java-jaxws/src/test/java/org/apache/tuscany/sca/interfacedef/java/jaxws/TestGenericClass.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/interface-java-jaxws/src/test/java/org/apache/tuscany/sca/interfacedef/java/jaxws/TestInterface.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/interface-java-jaxws/src/test/java/org/apache/tuscany/sca/interfacedef/java/jaxws/WrapperBeanGeneratorTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/interface-java-jaxws/src/test/resources/wsdl/Stock.wsdl delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/interface-java-jaxws/src/test/resources/wsdl/StockExceptionTest.wsdl delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/interface-java/LICENSE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/interface-java/META-INF/MANIFEST.MF delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/interface-java/NOTICE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/interface-java/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/interface-java/src/main/java/org/apache/tuscany/sca/interfacedef/java/DefaultJavaInterfaceFactory.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/interface-java/src/main/java/org/apache/tuscany/sca/interfacedef/java/JavaInterface.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/interface-java/src/main/java/org/apache/tuscany/sca/interfacedef/java/JavaInterfaceContract.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/interface-java/src/main/java/org/apache/tuscany/sca/interfacedef/java/JavaInterfaceFactory.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/interface-java/src/main/java/org/apache/tuscany/sca/interfacedef/java/JavaOperation.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/interface-java/src/main/java/org/apache/tuscany/sca/interfacedef/java/impl/JavaInterfaceContractImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/interface-java/src/main/java/org/apache/tuscany/sca/interfacedef/java/impl/JavaInterfaceFactoryImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/interface-java/src/main/java/org/apache/tuscany/sca/interfacedef/java/impl/JavaInterfaceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/interface-java/src/main/java/org/apache/tuscany/sca/interfacedef/java/impl/JavaInterfaceIntrospectorImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/interface-java/src/main/java/org/apache/tuscany/sca/interfacedef/java/impl/JavaInterfaceUtil.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/interface-java/src/main/java/org/apache/tuscany/sca/interfacedef/java/impl/JavaOperationImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/interface-java/src/main/java/org/apache/tuscany/sca/interfacedef/java/impl/PolicyJavaInterfaceVisitor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/interface-java/src/main/java/org/apache/tuscany/sca/interfacedef/java/introspect/JavaInterfaceVisitor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/interface-java/src/main/java/org/apache/tuscany/sca/interfacedef/java/package.html delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/interface-java/src/main/java/org/apache/tuscany/sca/interfacedef/java/xml/JavaConstants.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/interface-java/src/main/java/org/apache/tuscany/sca/interfacedef/java/xml/JavaInterfaceProcessor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/interface-java/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessor delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/interface-java/src/main/resources/META-INF/services/org.apache.tuscany.sca.interfacedef.java.JavaInterfaceFactory delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/interface-java/src/main/resources/META-INF/services/org.apache.tuscany.sca.interfacedef.java.introspect.JavaInterfaceVisitor delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/interface-java/src/main/resources/interface-javaxml-validation-messages.properties delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/interface-java/src/test/java/org/apache/tuscany/sca/interfacedef/java/impl/JavaInterfaceUtilDuplicateRemotableTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/interface-java/src/test/java/org/apache/tuscany/sca/interfacedef/java/impl/JavaInterfaceUtilTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/interface-java/src/test/java/org/apache/tuscany/sca/interfacedef/java/introspection/impl/JavaInterfaceProcessorRegistryImplTestCase.java.fixme delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/interface-java/src/test/java/org/apache/tuscany/sca/interfacedef/java/introspection/impl/PolicyProcessorTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/interface-java/src/test/java/org/apache/tuscany/sca/interfacedef/java/xml/ReadTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/interface-java/src/test/java/org/apache/tuscany/sca/interfacedef/java/xml/WriteTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/interface-java/src/test/resources/org/apache/tuscany/sca/interfacedef/java/xml/Calculator.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/interface-java/src/test/resources/org/apache/tuscany/sca/interfacedef/java/xml/CalculatorImpl.componentType delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/interface-wsdl/LICENSE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/interface-wsdl/META-INF/MANIFEST.MF delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/interface-wsdl/NOTICE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/interface-wsdl/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/interface-wsdl/src/main/java/org/apache/tuscany/sca/interfacedef/wsdl/BPELPartnerLinkTypeExt.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/interface-wsdl/src/main/java/org/apache/tuscany/sca/interfacedef/wsdl/DefaultWSDLFactory.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/interface-wsdl/src/main/java/org/apache/tuscany/sca/interfacedef/wsdl/WSDLDefinition.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/interface-wsdl/src/main/java/org/apache/tuscany/sca/interfacedef/wsdl/WSDLFactory.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/interface-wsdl/src/main/java/org/apache/tuscany/sca/interfacedef/wsdl/WSDLInterface.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/interface-wsdl/src/main/java/org/apache/tuscany/sca/interfacedef/wsdl/WSDLInterfaceContract.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/interface-wsdl/src/main/java/org/apache/tuscany/sca/interfacedef/wsdl/WSDLObject.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/interface-wsdl/src/main/java/org/apache/tuscany/sca/interfacedef/wsdl/WSDLOperation.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/interface-wsdl/src/main/java/org/apache/tuscany/sca/interfacedef/wsdl/impl/InvalidWSDLException.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/interface-wsdl/src/main/java/org/apache/tuscany/sca/interfacedef/wsdl/impl/WSDLDefinitionImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/interface-wsdl/src/main/java/org/apache/tuscany/sca/interfacedef/wsdl/impl/WSDLFactoryImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/interface-wsdl/src/main/java/org/apache/tuscany/sca/interfacedef/wsdl/impl/WSDLInterfaceContractImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/interface-wsdl/src/main/java/org/apache/tuscany/sca/interfacedef/wsdl/impl/WSDLInterfaceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/interface-wsdl/src/main/java/org/apache/tuscany/sca/interfacedef/wsdl/impl/WSDLInterfaceIntrospectorImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/interface-wsdl/src/main/java/org/apache/tuscany/sca/interfacedef/wsdl/impl/WSDLObjectImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/interface-wsdl/src/main/java/org/apache/tuscany/sca/interfacedef/wsdl/impl/WSDLOperationImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/interface-wsdl/src/main/java/org/apache/tuscany/sca/interfacedef/wsdl/impl/WSDLOperationIntrospectorImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/interface-wsdl/src/main/java/org/apache/tuscany/sca/interfacedef/wsdl/package.html delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/interface-wsdl/src/main/java/org/apache/tuscany/sca/interfacedef/wsdl/xml/BPELExtensionHandler.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/interface-wsdl/src/main/java/org/apache/tuscany/sca/interfacedef/wsdl/xml/WSDLConstants.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/interface-wsdl/src/main/java/org/apache/tuscany/sca/interfacedef/wsdl/xml/WSDLDocumentProcessor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/interface-wsdl/src/main/java/org/apache/tuscany/sca/interfacedef/wsdl/xml/WSDLInterfaceProcessor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/interface-wsdl/src/main/java/org/apache/tuscany/sca/interfacedef/wsdl/xml/WSDLModelResolver.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/interface-wsdl/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessor delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/interface-wsdl/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.processor.URLArtifactProcessor delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/interface-wsdl/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.resolver.ModelResolver delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/interface-wsdl/src/main/resources/META-INF/services/org.apache.tuscany.sca.interfacedef.wsdl.WSDLFactory delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/interface-wsdl/src/main/resources/interface-wsdlxml-validation-messages.properties delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/interface-wsdl/src/test/java/org/apache/tuscany/sca/interfacedef/wsdl/introspect/WSDLInterfaceIntrospectorTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/interface-wsdl/src/test/java/org/apache/tuscany/sca/interfacedef/wsdl/introspect/WSDLOperationIntrospectorTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/interface-wsdl/src/test/java/org/apache/tuscany/sca/interfacedef/wsdl/introspect/WSDLPolicyAnnotatedInterfaceIntrospectorTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/interface-wsdl/src/test/java/org/apache/tuscany/sca/interfacedef/wsdl/introspect/WrapperStyleOperationTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/interface-wsdl/src/test/java/org/apache/tuscany/sca/interfacedef/wsdl/xml/AbstractWSDLTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/interface-wsdl/src/test/java/org/apache/tuscany/sca/interfacedef/wsdl/xml/ReadTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/interface-wsdl/src/test/java/org/apache/tuscany/sca/interfacedef/wsdl/xml/WSDLDocumentProcessorTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/interface-wsdl/src/test/java/org/apache/tuscany/sca/interfacedef/wsdl/xml/WSDLTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/interface-wsdl/src/test/java/org/apache/tuscany/sca/interfacedef/wsdl/xml/WriteTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/interface-wsdl/src/test/resources/org/apache/tuscany/sca/interfacedef/wsdl/xml/Calculator.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/interface-wsdl/src/test/resources/org/apache/tuscany/sca/interfacedef/wsdl/xml/CalculatorImpl.componentType delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/interface-wsdl/src/test/resources/org/apache/tuscany/sca/interfacedef/wsdl/xml/example.wsdl delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/interface-wsdl/src/test/resources/org/apache/tuscany/sca/interfacedef/wsdl/xml/invalid-stockquote.wsdl delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/interface-wsdl/src/test/resources/org/apache/tuscany/sca/interfacedef/wsdl/xml/ipo.xsd delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/interface-wsdl/src/test/resources/org/apache/tuscany/sca/interfacedef/wsdl/xml/stockquote.wsdl delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/interface-wsdl/src/test/resources/org/apache/tuscany/sca/interfacedef/wsdl/xml/test1.wsdl delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/interface-wsdl/src/test/resources/org/apache/tuscany/sca/interfacedef/wsdl/xml/test1.xsd delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/interface-wsdl/src/test/resources/org/apache/tuscany/sca/interfacedef/wsdl/xml/test2.wsdl delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/interface-wsdl/src/test/resources/org/apache/tuscany/sca/interfacedef/wsdl/xml/unwrapped-stockquote.wsdl delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/interface-wsdl/src/test/resources/policy/stockquote_policy.wsdl delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/interface-wsdl/src/test/resources/wsdl/helloworld-interface.wsdl delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/interface-wsdl/src/test/resources/wsdl/helloworld-service.wsdl delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/interface-wsdl/src/test/resources/xsd/greeting.xsd delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/interface-wsdl/src/test/resources/xsd/helloworld.xsd delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/interface-wsdl/src/test/resources/xsd/name.xsd delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/launcher/LICENSE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/launcher/META-INF/MANIFEST.MF delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/launcher/NOTICE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/launcher/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/launcher/src/main/java/org/apache/tuscany/sca/launcher/LauncherMain.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/monitor/LICENSE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/monitor/META-INF/MANIFEST.MF delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/monitor/NOTICE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/monitor/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/monitor/src/main/java/org/apache/tuscany/sca/monitor/DefaultMonitorFactory.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/monitor/src/main/java/org/apache/tuscany/sca/monitor/Monitor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/monitor/src/main/java/org/apache/tuscany/sca/monitor/MonitorFactory.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/monitor/src/main/java/org/apache/tuscany/sca/monitor/Problem.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/monitor/src/main/java/org/apache/tuscany/sca/monitor/ValidationException.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/monitor/src/main/java/org/apache/tuscany/sca/monitor/impl/MonitorImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/monitor/src/main/java/org/apache/tuscany/sca/monitor/impl/ProblemImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/monitor/src/main/resources/META-INF/services/org.apache.tuscany.sca.monitor.MonitorFactory delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/monitor/src/test/java/org/apache/tuscany/sca/monitor/MonitorTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/monitor/src/test/resources/org/apache/tuscany/sca/monitor/tuscany-monitor-test-messages.properties delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/monitor/src/test/resources/org/apache/tuscany/sca/monitor/tuscany-monitor-test-messages_it.properties delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/myfaces/LICENSE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/myfaces/META-INF/MANIFEST.MF delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/myfaces/NOTICE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/myfaces/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/myfaces/src/main/java/org/apache/tuscany/sca/myfaces/TuscanyAnnotationLifecycleProvider.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/myfaces/src/main/java/org/apache/tuscany/sca/myfaces/TuscanyAnnotationProcessor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/node-api/LICENSE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/node-api/META-INF/MANIFEST.MF delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/node-api/NOTICE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/node-api/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/node-api/src/main/java/org/apache/tuscany/sca/node/Contribution.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/node-api/src/main/java/org/apache/tuscany/sca/node/ContributionLocationHelper.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/node-api/src/main/java/org/apache/tuscany/sca/node/Node.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/node-api/src/main/java/org/apache/tuscany/sca/node/NodeFactory.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/node-api/src/main/java/org/apache/tuscany/sca/node/NodeMain2.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/node-api/src/main/java/org/apache/tuscany/sca/node/configuration/BindingConfiguration.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/node-api/src/main/java/org/apache/tuscany/sca/node/configuration/ContributionConfiguration.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/node-api/src/main/java/org/apache/tuscany/sca/node/configuration/DefaultNodeConfigurationFactory.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/node-api/src/main/java/org/apache/tuscany/sca/node/configuration/DeploymentComposite.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/node-api/src/main/java/org/apache/tuscany/sca/node/configuration/NodeConfiguration.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/node-api/src/main/java/org/apache/tuscany/sca/node/configuration/NodeConfigurationFactory.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/node-api/src/main/java/org/apache/tuscany/sca/node/configuration/impl/BindingConfigurationImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/node-api/src/main/java/org/apache/tuscany/sca/node/configuration/impl/ContributionConfigurationImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/node-api/src/main/java/org/apache/tuscany/sca/node/configuration/impl/DeploymentCompositeImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/node-api/src/main/java/org/apache/tuscany/sca/node/configuration/impl/NodeConfigurationFactoryImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/node-api/src/main/java/org/apache/tuscany/sca/node/configuration/impl/NodeConfigurationImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/node-impl-osgi/LICENSE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/node-impl-osgi/META-INF/MANIFEST.MF delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/node-impl-osgi/NOTICE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/node-impl-osgi/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/node-impl-osgi/src/main/java/org/apache/tuscany/sca/node/osgi/impl/NodeActivator.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/node-impl-osgi/src/main/java/org/apache/tuscany/sca/node/osgi/impl/NodeManager.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/node-impl-osgi/src/main/java/org/apache/tuscany/sca/node/osgi/impl/OSGiNodeFactoryImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/node-impl-osgi/src/main/java/org/apache/tuscany/sca/osgi/remoteserviceadmin/impl/AbstractOSGiServiceHandler.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/node-impl-osgi/src/main/java/org/apache/tuscany/sca/osgi/remoteserviceadmin/impl/EndpointHelper.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/node-impl-osgi/src/main/java/org/apache/tuscany/sca/osgi/remoteserviceadmin/impl/EndpointIntrospector.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/node-impl-osgi/src/main/java/org/apache/tuscany/sca/osgi/remoteserviceadmin/impl/EndpointMatcher.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/node-impl-osgi/src/main/java/org/apache/tuscany/sca/osgi/remoteserviceadmin/impl/ExportReferenceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/node-impl-osgi/src/main/java/org/apache/tuscany/sca/osgi/remoteserviceadmin/impl/ExportRegistrationImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/node-impl-osgi/src/main/java/org/apache/tuscany/sca/osgi/remoteserviceadmin/impl/ImportReferenceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/node-impl-osgi/src/main/java/org/apache/tuscany/sca/osgi/remoteserviceadmin/impl/ImportRegistrationImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/node-impl-osgi/src/main/java/org/apache/tuscany/sca/osgi/remoteserviceadmin/impl/OSGiHelper.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/node-impl-osgi/src/main/java/org/apache/tuscany/sca/osgi/remoteserviceadmin/impl/OSGiServiceExporter.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/node-impl-osgi/src/main/java/org/apache/tuscany/sca/osgi/remoteserviceadmin/impl/OSGiServiceImporter.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/node-impl-osgi/src/main/java/org/apache/tuscany/sca/osgi/remoteserviceadmin/impl/RemoteServiceAdminImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/node-impl-osgi/src/main/java/org/apache/tuscany/sca/osgi/remoteserviceadmin/impl/TopologyManagerImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/node-impl-osgi/src/main/java/org/apache/tuscany/sca/osgi/service/discovery/impl/AbstractDiscoveryService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/node-impl-osgi/src/main/java/org/apache/tuscany/sca/osgi/service/discovery/impl/Discovery.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/node-impl-osgi/src/main/java/org/apache/tuscany/sca/osgi/service/discovery/impl/DiscoveryActivator.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/node-impl-osgi/src/main/java/org/apache/tuscany/sca/osgi/service/discovery/impl/DomainDiscoveryService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/node-impl-osgi/src/main/java/org/apache/tuscany/sca/osgi/service/discovery/impl/LocalDiscoveryService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/node-impl-osgi/src/main/java/org/osgi/service/remoteserviceadmin/EndpointDescription.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/node-impl-osgi/src/main/java/org/osgi/service/remoteserviceadmin/EndpointListener.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/node-impl-osgi/src/main/java/org/osgi/service/remoteserviceadmin/EndpointPermission.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/node-impl-osgi/src/main/java/org/osgi/service/remoteserviceadmin/ExportReference.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/node-impl-osgi/src/main/java/org/osgi/service/remoteserviceadmin/ExportRegistration.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/node-impl-osgi/src/main/java/org/osgi/service/remoteserviceadmin/ImportReference.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/node-impl-osgi/src/main/java/org/osgi/service/remoteserviceadmin/ImportRegistration.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/node-impl-osgi/src/main/java/org/osgi/service/remoteserviceadmin/RemoteConstants.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/node-impl-osgi/src/main/java/org/osgi/service/remoteserviceadmin/RemoteServiceAdmin.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/node-impl-osgi/src/main/java/org/osgi/service/remoteserviceadmin/RemoteServiceAdminEvent.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/node-impl-osgi/src/main/java/org/osgi/service/remoteserviceadmin/RemoteServiceAdminListener.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/node-impl-osgi/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.processor.ValidationSchema delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/node-impl-osgi/src/main/resources/META-INF/services/org.apache.tuscany.sca.node.NodeFactory delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/node-impl-osgi/src/main/resources/org/osgi/service/remoteserviceadmin/osgi-remoteserviceadmin.xsd delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/node-impl-osgi/src/test/java/calculator/dosgi/CalculatorService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/node-impl-osgi/src/test/java/calculator/dosgi/impl/CalculatorActivator.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/node-impl-osgi/src/test/java/calculator/dosgi/impl/CalculatorServiceDSImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/node-impl-osgi/src/test/java/calculator/dosgi/impl/CalculatorServiceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/node-impl-osgi/src/test/java/calculator/dosgi/operations/AddService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/node-impl-osgi/src/test/java/calculator/dosgi/operations/DivideService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/node-impl-osgi/src/test/java/calculator/dosgi/operations/MultiplyService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/node-impl-osgi/src/test/java/calculator/dosgi/operations/SubtractService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/node-impl-osgi/src/test/java/calculator/dosgi/operations/impl/AddServiceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/node-impl-osgi/src/test/java/calculator/dosgi/operations/impl/DivideServiceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/node-impl-osgi/src/test/java/calculator/dosgi/operations/impl/MultiplyServiceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/node-impl-osgi/src/test/java/calculator/dosgi/operations/impl/OperationsActivator.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/node-impl-osgi/src/test/java/calculator/dosgi/operations/impl/SubtractServiceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/node-impl-osgi/src/test/java/calculator/dosgi/test/CalculatorOSGiNodeTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/node-impl-osgi/src/test/java/calculator/dosgi/test/CalculatorOSGiTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/node-impl-osgi/src/test/java/calculator/dosgi/test/OSGiTestBundles.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/node-impl-osgi/src/test/resources/calculator/dosgi/META-INF/MANIFEST.MF delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/node-impl-osgi/src/test/resources/calculator/dosgi/META-INF/sca-contribution.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/node-impl-osgi/src/test/resources/calculator/dosgi/OSGI-INF/blueprint/calculator-module.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/node-impl-osgi/src/test/resources/calculator/dosgi/OSGI-INF/calculator-component.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/node-impl-osgi/src/test/resources/calculator/dosgi/OSGI-INF/remote-service/calculator-service-descriptions.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/node-impl-osgi/src/test/resources/calculator/dosgi/bundle.componentType delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/node-impl-osgi/src/test/resources/calculator/dosgi/calculator.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/node-impl-osgi/src/test/resources/calculator/dosgi/operations/META-INF/MANIFEST.MF delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/node-impl-osgi/src/test/resources/calculator/dosgi/operations/META-INF/sca-contribution.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/node-impl-osgi/src/test/resources/calculator/dosgi/operations/OSGI-INF/add-component.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/node-impl-osgi/src/test/resources/calculator/dosgi/operations/OSGI-INF/blueprint/operations-module.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/node-impl-osgi/src/test/resources/calculator/dosgi/operations/OSGI-INF/divide-component.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/node-impl-osgi/src/test/resources/calculator/dosgi/operations/OSGI-INF/multiply-component.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/node-impl-osgi/src/test/resources/calculator/dosgi/operations/OSGI-INF/subtract-component.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/node-impl-osgi/src/test/resources/calculator/dosgi/operations/bundle.componentType delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/node-impl-osgi/src/test/resources/calculator/dosgi/operations/operations.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/node-impl-osgi/src/test/resources/calculator/dosgi/sca/META-INF/MANIFEST.MF delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/node-impl-osgi/src/test/resources/calculator/dosgi/sca/META-INF/sca-contribution.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/node-impl-osgi/src/test/resources/calculator/dosgi/sca/OSGI-INF/sca/calculator.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/node-impl/LICENSE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/node-impl/META-INF/MANIFEST.MF delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/node-impl/NOTICE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/node-impl/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/node-impl/src/main/java/org/apache/tuscany/sca/node/configuration/xml/NodeConfigurationATOMProcessor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/node-impl/src/main/java/org/apache/tuscany/sca/node/configuration/xml/NodeConfigurationProcessor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/node-impl/src/main/java/org/apache/tuscany/sca/node/impl/NodeFactoryImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/node-impl/src/main/java/org/apache/tuscany/sca/node/impl/NodeImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/node-impl/src/main/java/org/apache/tuscany/sca/node/impl/NodeUtil.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/node-impl/src/main/java/org/apache/tuscany/sca/node/management/NodeManager.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/node-impl/src/main/java/org/apache/tuscany/sca/node/management/NodeManagerMBean.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/node-impl/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessor delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/node-impl/src/main/resources/META-INF/services/org.apache.tuscany.sca.node.NodeFactory delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/node-impl/src/main/resources/META-INF/services/org.apache.tuscany.sca.node.configuration.NodeConfigurationFactory delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/node-impl/src/main/resources/org/apache/tuscany/sca/node/impl/node-impl-validation-messages.properties delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/node-impl/src/test/java/hello/HelloWorld.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/node-impl/src/test/java/hello/HelloWorldImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/node-impl/src/test/java/org/apache/tuscany/sca/node/configuration/xml/NodeConfigurationProcessorTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/node-impl/src/test/java/org/apache/tuscany/sca/node/impl/NodeImplTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/node-impl/src/test/java/org/apache/tuscany/sca/node/impl/NodeUtilTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/node-impl/src/test/resources/HelloWorld.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/node-impl/src/test/resources/META-INF/sca-contribution.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/node-impl/src/test/resources/org/apache/tuscany/sca/node/configuration/node1.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/node-impl/src/test/resources/org/apache/tuscany/sca/node/configuration/test-node-factory.config delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/node-impl/src/test/resources/test.properties delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/node-launcher-equinox/LICENSE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/node-launcher-equinox/META-INF/MANIFEST.MF delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/node-launcher-equinox/NOTICE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/node-launcher-equinox/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/node-launcher-equinox/src/main/java/org/apache/tuscany/sca/node/equinox/launcher/Contribution.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/node-launcher-equinox/src/main/java/org/apache/tuscany/sca/node/equinox/launcher/ContributionLocationHelper.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/node-launcher-equinox/src/main/java/org/apache/tuscany/sca/node/equinox/launcher/DomainManagerLauncher.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/node-launcher-equinox/src/main/java/org/apache/tuscany/sca/node/equinox/launcher/EquinoxHost.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/node-launcher-equinox/src/main/java/org/apache/tuscany/sca/node/equinox/launcher/FrameworkLauncher.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/node-launcher-equinox/src/main/java/org/apache/tuscany/sca/node/equinox/launcher/LauncherException.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/node-launcher-equinox/src/main/java/org/apache/tuscany/sca/node/equinox/launcher/NodeDaemonLauncher.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/node-launcher-equinox/src/main/java/org/apache/tuscany/sca/node/equinox/launcher/NodeLauncher.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/node-launcher-equinox/src/main/java/org/apache/tuscany/sca/node/equinox/launcher/NodeLauncher2.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/node-launcher-equinox/src/main/java/org/apache/tuscany/sca/node/equinox/launcher/NodeLauncherCommand.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/node-launcher-equinox/src/main/java/org/apache/tuscany/sca/node/equinox/launcher/NodeLauncherUtil.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/node-launcher-equinox/src/main/java/org/apache/tuscany/sca/node/equinox/launcher/NodeMain.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/node-launcher-equinox/src/main/resources/org/apache/tuscany/sca/node/equinox/launcher/J2SE-1.5.profile delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/node-launcher-equinox/src/main/resources/org/apache/tuscany/sca/node/equinox/launcher/JavaSE-1.6.profile delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/node-launcher-equinox/src/main/resources/org/apache/tuscany/sca/node/equinox/launcher/axiom-api-1.2.7.MF delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/node-launcher-equinox/src/main/resources/org/apache/tuscany/sca/node/equinox/launcher/axiom-api-1.2.8.MF delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/node-launcher-equinox/src/main/resources/org/apache/tuscany/sca/node/equinox/launcher/axis2-kernel-1.4.1.MF delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/node-launcher-equinox/src/main/resources/org/apache/tuscany/sca/node/equinox/launcher/axis2-kernel-1.5.1.MF delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/node-launcher-equinox/src/main/resources/org/apache/tuscany/sca/node/equinox/launcher/axis2-transport-http-1.5.1.MF delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/node-launcher-equinox/src/main/resources/org/apache/tuscany/sca/node/equinox/launcher/ode-agents-1.3.2.MF delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/node-launcher-equinox/src/main/resources/org/apache/tuscany/sca/node/equinox/launcher/ode-bpel-api-1.3.2.MF delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/node-launcher-equinox/src/main/resources/org/apache/tuscany/sca/node/equinox/launcher/ode-bpel-compiler-1.3.2.MF delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/node-launcher-equinox/src/main/resources/org/apache/tuscany/sca/node/equinox/launcher/ode-bpel-dao-1.3.2.MF delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/node-launcher-equinox/src/main/resources/org/apache/tuscany/sca/node/equinox/launcher/ode-bpel-epr-1.3.2.MF delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/node-launcher-equinox/src/main/resources/org/apache/tuscany/sca/node/equinox/launcher/ode-bpel-obj-1.3.2.MF delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/node-launcher-equinox/src/main/resources/org/apache/tuscany/sca/node/equinox/launcher/ode-bpel-runtime-1.3.2.MF delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/node-launcher-equinox/src/main/resources/org/apache/tuscany/sca/node/equinox/launcher/ode-bpel-schemas-1.3.2.MF delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/node-launcher-equinox/src/main/resources/org/apache/tuscany/sca/node/equinox/launcher/ode-bpel-store-1.3.2.MF delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/node-launcher-equinox/src/main/resources/org/apache/tuscany/sca/node/equinox/launcher/ode-dao-hibernate-1.3.2.MF delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/node-launcher-equinox/src/main/resources/org/apache/tuscany/sca/node/equinox/launcher/ode-dao-jpa-1.3.2.MF delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/node-launcher-equinox/src/main/resources/org/apache/tuscany/sca/node/equinox/launcher/ode-jacob-1.3.2.MF delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/node-launcher-equinox/src/main/resources/org/apache/tuscany/sca/node/equinox/launcher/ode-jacob-ap-1.3.2.MF delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/node-launcher-equinox/src/main/resources/org/apache/tuscany/sca/node/equinox/launcher/ode-scheduler-simple-1.3.2.MF delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/node-launcher-equinox/src/main/resources/org/apache/tuscany/sca/node/equinox/launcher/ode-utils-1.3.2.MF delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/node-launcher-equinox/src/main/resources/org/apache/tuscany/sca/node/equinox/launcher/woden-impl-dom-1.0M8.MF delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/node-launcher-equinox/src/main/resources/org/apache/tuscany/sca/node/equinox/launcher/xercesImpl-2.9.0.MF delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/node-launcher/LICENSE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/node-launcher/META-INF/MANIFEST.MF delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/node-launcher/NOTICE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/node-launcher/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/node-launcher/src/main/java/org/apache/tuscany/sca/node/launcher/Contribution.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/node-launcher/src/main/java/org/apache/tuscany/sca/node/launcher/DomainManagerLauncher.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/node-launcher/src/main/java/org/apache/tuscany/sca/node/launcher/LauncherException.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/node-launcher/src/main/java/org/apache/tuscany/sca/node/launcher/NodeDaemonLauncher.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/node-launcher/src/main/java/org/apache/tuscany/sca/node/launcher/NodeLauncher.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/node-launcher/src/main/java/org/apache/tuscany/sca/node/launcher/NodeLauncherUtil.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/node-launcher/src/main/java/org/apache/tuscany/sca/node/launcher/NodeMain.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/node-launcher/src/main/java/org/apache/tuscany/sca/node/launcher/NodeServletFilter.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/node-launcher/src/test/java/org/apache/tuscany/sca/node/launcher/ServiceInvocationTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/policy-logging/LICENSE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/policy-logging/META-INF/MANIFEST.MF delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/policy-logging/NOTICE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/policy-logging/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/policy-logging/src/main/java/org/apache/tuscany/sca/policy/logging/Logging.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/policy-logging/src/main/java/org/apache/tuscany/sca/policy/logging/jdk/JDKLoggingImplementationPolicyProvider.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/policy-logging/src/main/java/org/apache/tuscany/sca/policy/logging/jdk/JDKLoggingPolicy.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/policy-logging/src/main/java/org/apache/tuscany/sca/policy/logging/jdk/JDKLoggingPolicyBuilder.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/policy-logging/src/main/java/org/apache/tuscany/sca/policy/logging/jdk/JDKLoggingPolicyInterceptor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/policy-logging/src/main/java/org/apache/tuscany/sca/policy/logging/jdk/JDKLoggingPolicyProcessor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/policy-logging/src/main/java/org/apache/tuscany/sca/policy/logging/jdk/JDKLoggingPolicyProviderFactory.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/policy-logging/src/main/java/org/apache/tuscany/sca/policy/logging/jdk/JDKLoggingReferencePolicyProvider.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/policy-logging/src/main/java/org/apache/tuscany/sca/policy/logging/jdk/JDKLoggingServicePolicyProvider.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/policy-logging/src/main/resources/META-INF/services/org.apache.tuscany.sca.assembly.builder.PolicyBuilder delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/policy-logging/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessor delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/policy-logging/src/main/resources/META-INF/services/org.apache.tuscany.sca.definitions.xml.Definitions delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/policy-logging/src/main/resources/META-INF/services/org.apache.tuscany.sca.provider.PolicyProviderFactory delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/policy-logging/src/main/resources/org/apache/tuscany/sca/policy/logging/definitions.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/policy-logging/src/test/java/org/apache/tuscany/sca/policy/logging/jdk/PolicyReadTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/policy-logging/src/test/resources/org/apache/tuscany/sca/policy/logging/jdk/mock_policies.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/policy-security/LICENSE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/policy-security/META-INF/MANIFEST.MF delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/policy-security/NOTICE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/policy-security/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/policy-security/src/main/java/org/apache/tuscany/sca/policy/authentication/basic/BasicAuthenticationPolicy.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/policy-security/src/main/java/org/apache/tuscany/sca/policy/authentication/basic/BasicAuthenticationPolicyProcessor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/policy-security/src/main/java/org/apache/tuscany/sca/policy/authentication/basic/BasicAuthenticationPrincipal.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/policy-security/src/main/java/org/apache/tuscany/sca/policy/authentication/token/TokenPrincipal.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/policy-security/src/main/java/org/apache/tuscany/sca/policy/authorization/AuthorizationPolicy.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/policy-security/src/main/java/org/apache/tuscany/sca/policy/authorization/AuthorizationPolicyProcessor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/policy-security/src/main/java/org/apache/tuscany/sca/policy/identity/SecurityIdentityImplementationPolicyInterceptor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/policy-security/src/main/java/org/apache/tuscany/sca/policy/identity/SecurityIdentityImplementationPolicyProvider.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/policy-security/src/main/java/org/apache/tuscany/sca/policy/identity/SecurityIdentityPolicy.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/policy-security/src/main/java/org/apache/tuscany/sca/policy/identity/SecurityIdentityPolicyProcessor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/policy-security/src/main/java/org/apache/tuscany/sca/policy/identity/SecurityIdentityPolicyProviderFactory.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/policy-security/src/main/java/org/apache/tuscany/sca/policy/security/SecurityUtil.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/policy-security/src/main/java/org/apache/tuscany/sca/policy/security/http/ssl/HTTPSPolicy.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/policy-security/src/main/java/org/apache/tuscany/sca/policy/security/http/ssl/HTTPSPolicyProcessor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/policy-security/src/main/java/org/apache/tuscany/sca/policy/security/jaas/JaasAuthenticationImplementationPolicyProvider.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/policy-security/src/main/java/org/apache/tuscany/sca/policy/security/jaas/JaasAuthenticationInterceptor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/policy-security/src/main/java/org/apache/tuscany/sca/policy/security/jaas/JaasAuthenticationPolicy.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/policy-security/src/main/java/org/apache/tuscany/sca/policy/security/jaas/JaasAuthenticationPolicyHandler.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/policy-security/src/main/java/org/apache/tuscany/sca/policy/security/jaas/JaasAuthenticationPolicyProcessor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/policy-security/src/main/java/org/apache/tuscany/sca/policy/security/jaas/JaasAuthenticationPolicyProviderFactory.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/policy-security/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessor delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/policy-security/src/main/resources/META-INF/services/org.apache.tuscany.sca.definitions.xml.Definitions delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/policy-security/src/main/resources/META-INF/services/org.apache.tuscany.sca.provider.PolicyProviderFactory delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/policy-security/src/main/resources/org/apache/tuscany/sca/policy/security/definitions.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/policy-security/src/main/resources/org/apache/tuscany/sca/policy/security/tuscany_definitions.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/policy-security/src/main/resources/policy-security-validation-messages.properties delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/policy-security/src/test/java/org/apache/tuscany/sca/policy/security/PolicyProcessorTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/policy-security/src/test/resources/org/apache/tuscany/sca/policy/security/mock_policy_definitions.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/policy-transaction-runtime-geronimo/META-INF/MANIFEST.MF delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/policy-transaction-runtime-geronimo/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/policy-transaction-runtime-geronimo/src/main/java/org/apache/tuscany/sca/policy/transaction/runtime/geronimo/GeronimoTransactionManagerHelper.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/policy-transaction-runtime-geronimo/src/main/java/org/apache/tuscany/sca/policy/transaction/runtime/geronimo/TransactionManagerWrapper.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/policy-transaction-runtime-geronimo/src/main/java/org/apache/tuscany/sca/policy/transaction/runtime/geronimo/TransactionModuleActivator.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/policy-transaction-runtime-geronimo/src/main/resources/META-INF/services/org.apache.tuscany.sca.core.ModuleActivator delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/policy-transaction-runtime-geronimo/src/main/resources/META-INF/services/org.apache.tuscany.sca.policy.transaction.runtime.TransactionManagerHelper delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/policy-transaction-runtime-geronimo/src/test/java/org/apache/tuscany/sca/policy/transaction/runtime/geronimo/TransactionManagerHelperTestCaseOFF.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/policy-transaction-runtime/META-INF/MANIFEST.MF delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/policy-transaction-runtime/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/policy-transaction-runtime/src/main/java/org/apache/tuscany/sca/policy/transaction/runtime/IncompatibleIntentException.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/policy-transaction-runtime/src/main/java/org/apache/tuscany/sca/policy/transaction/runtime/TransactionImplementationPolicyProvider.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/policy-transaction-runtime/src/main/java/org/apache/tuscany/sca/policy/transaction/runtime/TransactionIntent.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/policy-transaction-runtime/src/main/java/org/apache/tuscany/sca/policy/transaction/runtime/TransactionInterceptor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/policy-transaction-runtime/src/main/java/org/apache/tuscany/sca/policy/transaction/runtime/TransactionManagerHelper.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/policy-transaction-runtime/src/main/java/org/apache/tuscany/sca/policy/transaction/runtime/TransactionPolicyProviderFactory.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/policy-transaction-runtime/src/main/java/org/apache/tuscany/sca/policy/transaction/runtime/TransactionReferencePolicyProvider.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/policy-transaction-runtime/src/main/java/org/apache/tuscany/sca/policy/transaction/runtime/TransactionServicePolicyProvider.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/policy-transaction-runtime/src/main/java/org/apache/tuscany/sca/policy/transaction/runtime/TransactionalAction.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/policy-transaction-runtime/src/main/resources/META-INF/services/org.apache.tuscany.sca.provider.PolicyProviderFactory delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/policy-transaction/LICENSE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/policy-transaction/META-INF/MANIFEST.MF delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/policy-transaction/NOTICE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/policy-transaction/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/policy-transaction/src/main/java/org/apache/tuscany/sca/policy/transaction/TransactionPolicy.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/policy-transaction/src/main/java/org/apache/tuscany/sca/policy/transaction/TransactionPolicyFactory.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/policy-transaction/src/main/java/org/apache/tuscany/sca/policy/transaction/TransactionPolicyProcessor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/policy-transaction/src/main/java/org/apache/tuscany/sca/policy/transaction/impl/TransactionPolicyFactoryImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/policy-transaction/src/main/java/org/apache/tuscany/sca/policy/transaction/impl/TransactionPolicyImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/policy-transaction/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessor delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/policy-transaction/src/main/resources/META-INF/services/org.apache.tuscany.sca.definitions.xml.Definitions delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/policy-transaction/src/main/resources/META-INF/services/org.apache.tuscany.sca.policy.transaction.TransactionPolicyFactory delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/policy-transaction/src/main/resources/log4j.properties delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/policy-transaction/src/main/resources/org/apache/tuscany/sca/policy/transaction/definitions.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/policy-transaction/src/test/java/org/apache/tuscany/sca/policy/transaction/PolicyReadTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/policy-wspolicy/LICENSE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/policy-wspolicy/META-INF/MANIFEST.MF delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/policy-wspolicy/NOTICE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/policy-wspolicy/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/policy-wspolicy/src/main/java/org/apache/tuscany/sca/policy/wspolicy/WSPolicy.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/policy-wspolicy/src/main/java/org/apache/tuscany/sca/policy/wspolicy/WSPolicyBuilder.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/policy-wspolicy/src/main/java/org/apache/tuscany/sca/policy/wspolicy/xml/WSPolicyProcessor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/policy-wspolicy/src/main/resources/META-INF/services/org.apache.tuscany.sca.assembly.builder.PolicyBuilder delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/policy-wspolicy/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessor delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/policy-wspolicy/src/test/java/org/apache/tuscany/sca/policy/wspolicy/TestModelResolver.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/policy-wspolicy/src/test/java/org/apache/tuscany/sca/policy/wspolicy/TuscanyWSPolicyAssertion.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/policy-wspolicy/src/test/java/org/apache/tuscany/sca/policy/wspolicy/TuscanyWSPolicyAssertionProcessor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/policy-wspolicy/src/test/java/org/apache/tuscany/sca/policy/wspolicy/WSPolicyTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/policy-wspolicy/src/test/java/org/apache/tuscany/sca/policy/wspolicy/xml/WSPolicyProcessorTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/policy-wspolicy/src/test/resources/org/apache/tuscany/sca/policy/wspolicy/test_definitions.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/sca-api/LICENSE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/sca-api/META-INF/MANIFEST.MF delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/sca-api/NOTICE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/sca-api/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/sca-api/src/main/java/org/oasisopen/sca/ComponentContext.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/sca-api/src/main/java/org/oasisopen/sca/Constants.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/sca-api/src/main/java/org/oasisopen/sca/InvalidServiceException.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/sca-api/src/main/java/org/oasisopen/sca/NoSuchDomainException.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/sca-api/src/main/java/org/oasisopen/sca/NoSuchServiceException.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/sca-api/src/main/java/org/oasisopen/sca/RequestContext.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/sca-api/src/main/java/org/oasisopen/sca/ResponseDispatch.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/sca-api/src/main/java/org/oasisopen/sca/ServiceReference.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/sca-api/src/main/java/org/oasisopen/sca/ServiceRuntimeException.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/sca-api/src/main/java/org/oasisopen/sca/ServiceUnavailableException.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/sca-api/src/main/java/org/oasisopen/sca/annotation/AllowsPassByReference.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/sca-api/src/main/java/org/oasisopen/sca/annotation/AsyncFault.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/sca-api/src/main/java/org/oasisopen/sca/annotation/AsyncInvocation.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/sca-api/src/main/java/org/oasisopen/sca/annotation/Authentication.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/sca-api/src/main/java/org/oasisopen/sca/annotation/Authorization.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/sca-api/src/main/java/org/oasisopen/sca/annotation/Callback.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/sca-api/src/main/java/org/oasisopen/sca/annotation/ComponentName.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/sca-api/src/main/java/org/oasisopen/sca/annotation/Confidentiality.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/sca-api/src/main/java/org/oasisopen/sca/annotation/Constructor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/sca-api/src/main/java/org/oasisopen/sca/annotation/Context.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/sca-api/src/main/java/org/oasisopen/sca/annotation/Destroy.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/sca-api/src/main/java/org/oasisopen/sca/annotation/EagerInit.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/sca-api/src/main/java/org/oasisopen/sca/annotation/Init.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/sca-api/src/main/java/org/oasisopen/sca/annotation/Integrity.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/sca-api/src/main/java/org/oasisopen/sca/annotation/Intent.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/sca-api/src/main/java/org/oasisopen/sca/annotation/ManagedSharedTransaction.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/sca-api/src/main/java/org/oasisopen/sca/annotation/ManagedTransaction.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/sca-api/src/main/java/org/oasisopen/sca/annotation/MutualAuthentication.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/sca-api/src/main/java/org/oasisopen/sca/annotation/NoManagedTransaction.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/sca-api/src/main/java/org/oasisopen/sca/annotation/OneWay.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/sca-api/src/main/java/org/oasisopen/sca/annotation/PolicySets.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/sca-api/src/main/java/org/oasisopen/sca/annotation/Property.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/sca-api/src/main/java/org/oasisopen/sca/annotation/Qualifier.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/sca-api/src/main/java/org/oasisopen/sca/annotation/Reference.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/sca-api/src/main/java/org/oasisopen/sca/annotation/Remotable.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/sca-api/src/main/java/org/oasisopen/sca/annotation/Requires.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/sca-api/src/main/java/org/oasisopen/sca/annotation/Scope.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/sca-api/src/main/java/org/oasisopen/sca/annotation/Service.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/sca-api/src/main/java/org/oasisopen/sca/annotation/package.html delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/sca-api/src/main/java/org/oasisopen/sca/client/SCAClientFactory.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/sca-api/src/main/java/org/oasisopen/sca/client/SCAClientFactoryFinder.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/sca-api/src/main/java/org/oasisopen/sca/client/impl/SCAClientFactoryFinderImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/sca-api/src/main/java/org/oasisopen/sca/package.html delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/sca-client-impl/LICENSE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/sca-client-impl/META-INF/MANIFEST.MF delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/sca-client-impl/NOTICE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/sca-client-impl/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/sca-client-impl/src/main/java/org/apache/tuscany/sca/client/impl/SCAClientFactoryFinderImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/sca-client-impl/src/main/java/org/apache/tuscany/sca/client/impl/SCAClientFactoryImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/sca-client-impl/src/main/java/org/apache/tuscany/sca/client/impl/SCAClientFactoryImpl2.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/sca-client-impl/src/main/java/org/apache/tuscany/sca/client/impl/SCAClientHandler.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/sca-client-impl/src/main/java/org/apache/tuscany/sca/client/impl/SCAClientModuleActivator.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/sca-client-impl/src/main/java/org/apache/tuscany/sca/client/impl/SCAClientProxyHandler.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/sca-client-impl/src/main/resources/META-INF/services/org.apache.tuscany.sca.core.ModuleActivator delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/sca-client-impl/src/main/resources/META-INF/services/org.oasisopen.sca.client.SCAClientFactory delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/stripes/LICENSE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/stripes/META-INF/MANIFEST.MF delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/stripes/NOTICE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/stripes/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/stripes/src/main/java/org/apache/tuscany/sca/stripes/TuscanyHelper.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/stripes/src/main/java/org/apache/tuscany/sca/stripes/TuscanyInterceptor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/stripes/src/main/java/org/apache/tuscany/sca/stripes/TuscanyInterceptorSupport.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/tracing-aspectj/LICENSE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/tracing-aspectj/META-INF/MANIFEST.MF delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/tracing-aspectj/NOTICE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/tracing-aspectj/maven-eclipse.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/tracing-aspectj/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/tracing-aspectj/src/main/java/org/apache/tuscany/sca/aspectj/LoggingAspect.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/tracing-aspectj/src/main/java/org/apache/tuscany/sca/aspectj/SimpleTracingAspect.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/tracing-aspectj/src/main/java/org/apache/tuscany/sca/aspectj/TimingAspect.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/tracing-aspectj/src/main/java/org/apache/tuscany/sca/aspectj/TracingAspect.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/tracing-aspectj/src/main/java/org/apache/tuscany/sca/aspectj/UserTimingAspect.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/tracing-aspectj/src/main/resources/META-INF/aop.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/tracing-aspectj/src/test/java/org/apache/tuscany/sca/aspectj/TracingTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/web-javascript-dojo/LICENSE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/web-javascript-dojo/META-INF/MANIFEST.MF delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/web-javascript-dojo/NOTICE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/web-javascript-dojo/build-dojo.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/web-javascript-dojo/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/web-javascript-dojo/src/main/java/org/apache/tuscany/sca/web/javascript/dojo/DojoResourceServlet.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/web-javascript-dojo/src/main/java/org/apache/tuscany/sca/web/javascript/dojo/DojoWidgetJavascriptProvider.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/web-javascript-dojo/src/main/resources/META-INF/services/org.apache.tuscany.sca.implementation.widget.javascript.WidgetImplementationJavascriptProvider delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/web-javascript-dojo/src/main/resources/tuscany/AtomService.js delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/web-javascript/LICENSE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/web-javascript/META-INF/MANIFEST.MF delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/web-javascript/NOTICE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/web-javascript/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/web-javascript/src/main/java/org/apache/tuscany/sca/web/javascript/ComponentJavaScriptGenerator.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/web-javascript/src/main/java/org/apache/tuscany/sca/web/javascript/ComponentJavaScriptGeneratorExtensionPoint.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/web-javascript/src/main/java/org/apache/tuscany/sca/web/javascript/DefaultComponentJavaScriptGeneratorExtensionPoint.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/web-javascript/src/main/java/org/apache/tuscany/sca/web/javascript/DefaultJavascriptProxyFactoryExtensionPoint.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/web-javascript/src/main/java/org/apache/tuscany/sca/web/javascript/JavascriptProxyFactory.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/web-javascript/src/main/java/org/apache/tuscany/sca/web/javascript/JavascriptProxyFactoryExtensionPoint.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/web-javascript/src/main/resources/META-INF/services/org.apache.tuscany.sca.web.javascript.ComponentJavaScriptGeneratorExtensionPoint delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/web-javascript/src/main/resources/META-INF/services/org.apache.tuscany.sca.web.javascript.JavascriptProxyFactoryExtensionPoint delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/web-javascript/src/main/resources/web-javascript-validation-messages.properties delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/wink/LICENSE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/wink/META-INF/MANIFEST.MF delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/wink/NOTICE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/wink/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/wink/src/main/java/org/apache/tuscany/sca/wink/PropertyInjectable.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/wink/src/main/java/org/apache/tuscany/sca/wink/ReferenceInjectable.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/wink/src/main/java/org/apache/tuscany/sca/wink/TuscanyDeploymentConfiguration.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/wink/src/main/java/org/apache/tuscany/sca/wink/TuscanyInjectableFactory.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/xsd/LICENSE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/xsd/META-INF/MANIFEST.MF delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/xsd/NOTICE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/xsd/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/xsd/src/main/java/org/apache/tuscany/sca/xsd/DefaultXSDFactory.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/xsd/src/main/java/org/apache/tuscany/sca/xsd/XSDFactory.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/xsd/src/main/java/org/apache/tuscany/sca/xsd/XSDefinition.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/xsd/src/main/java/org/apache/tuscany/sca/xsd/impl/XSDFactoryImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/xsd/src/main/java/org/apache/tuscany/sca/xsd/impl/XSDefinitionImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/xsd/src/main/java/org/apache/tuscany/sca/xsd/xml/XSDDocumentProcessor.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/xsd/src/main/java/org/apache/tuscany/sca/xsd/xml/XSDModelResolver.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/xsd/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.processor.URLArtifactProcessor delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/xsd/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.resolver.ModelResolver delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/xsd/src/main/resources/META-INF/services/org.apache.tuscany.sca.xsd.XSDFactory delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/xsd/src/main/resources/xsd-xml-validation-messages.properties delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/xsd/src/test/java/org/apache/tuscany/sca/xsd/xml/XSDDocumentProcessorTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/xsd/src/test/resources/xsd/greeting.xsd delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/modules/xsd/src/test/resources/xsd/name.xsd delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/README delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/binding-rmi/README delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/binding-rmi/contribution-calculator-reference/README delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/binding-rmi/contribution-calculator-reference/build.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/binding-rmi/contribution-calculator-reference/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/binding-rmi/contribution-calculator-reference/src/main/java/calculator/AddService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/binding-rmi/contribution-calculator-reference/src/main/java/calculator/CalculatorService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/binding-rmi/contribution-calculator-reference/src/main/java/calculator/CalculatorServiceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/binding-rmi/contribution-calculator-reference/src/main/java/calculator/DivideService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/binding-rmi/contribution-calculator-reference/src/main/java/calculator/MultiplyService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/binding-rmi/contribution-calculator-reference/src/main/java/calculator/SubtractService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/binding-rmi/contribution-calculator-reference/src/main/resources/CalculatorRMIReference.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/binding-rmi/contribution-calculator-reference/src/test/java/calculator/CalculatorRMIReferenceTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/binding-rmi/contribution-calculator-reference/src/test/java/calculator/CalculatorRMIServiceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/binding-rmi/contribution-calculator-service/README delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/binding-rmi/contribution-calculator-service/build.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/binding-rmi/contribution-calculator-service/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/binding-rmi/contribution-calculator-service/src/main/java/calculator/AddService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/binding-rmi/contribution-calculator-service/src/main/java/calculator/AddServiceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/binding-rmi/contribution-calculator-service/src/main/java/calculator/CalculatorClient.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/binding-rmi/contribution-calculator-service/src/main/java/calculator/CalculatorService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/binding-rmi/contribution-calculator-service/src/main/java/calculator/CalculatorServiceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/binding-rmi/contribution-calculator-service/src/main/java/calculator/DivideService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/binding-rmi/contribution-calculator-service/src/main/java/calculator/DivideServiceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/binding-rmi/contribution-calculator-service/src/main/java/calculator/MultiplyService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/binding-rmi/contribution-calculator-service/src/main/java/calculator/MultiplyServiceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/binding-rmi/contribution-calculator-service/src/main/java/calculator/SubtractService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/binding-rmi/contribution-calculator-service/src/main/java/calculator/SubtractServiceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/binding-rmi/contribution-calculator-service/src/main/resources/CalculatorRMIServer.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/binding-rmi/contribution-calculator-service/src/main/resources/META-INF/sca-contribution.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/binding-rmi/contribution-calculator-service/src/test/java/calculator/CalculatorRMIServerTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/binding-rmi/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/binding-sca/README delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/binding-sca/contribution-calculator/README delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/binding-sca/contribution-calculator/build.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/binding-sca/contribution-calculator/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/binding-sca/contribution-calculator/src/main/java/calculator/AddService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/binding-sca/contribution-calculator/src/main/java/calculator/AddServiceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/binding-sca/contribution-calculator/src/main/java/calculator/CalculatorClient.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/binding-sca/contribution-calculator/src/main/java/calculator/CalculatorService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/binding-sca/contribution-calculator/src/main/java/calculator/CalculatorServiceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/binding-sca/contribution-calculator/src/main/java/calculator/DivideService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/binding-sca/contribution-calculator/src/main/java/calculator/DivideServiceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/binding-sca/contribution-calculator/src/main/java/calculator/MultiplyService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/binding-sca/contribution-calculator/src/main/java/calculator/MultiplyServiceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/binding-sca/contribution-calculator/src/main/java/calculator/SubtractService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/binding-sca/contribution-calculator/src/main/java/calculator/SubtractServiceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/binding-sca/contribution-calculator/src/main/resources/Calculator.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/binding-sca/contribution-calculator/src/main/resources/CalculatorClient.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/binding-sca/contribution-calculator/src/main/resources/META-INF/sca-contribution.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/binding-sca/contribution-calculator/src/test/java/calculator/CalculatorTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/binding-sca/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/calculator-osgi/META-INF/MANIFEST.MF delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/calculator-osgi/README delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/calculator-osgi/build.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/calculator-osgi/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/calculator-osgi/src/main/java/calculator/AddService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/calculator-osgi/src/main/java/calculator/AddServiceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/calculator-osgi/src/main/java/calculator/CalculatorActivator.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/calculator-osgi/src/main/java/calculator/CalculatorClient.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/calculator-osgi/src/main/java/calculator/CalculatorService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/calculator-osgi/src/main/java/calculator/CalculatorServiceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/calculator-osgi/src/main/java/calculator/DivideService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/calculator-osgi/src/main/java/calculator/DivideServiceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/calculator-osgi/src/main/java/calculator/MultiplyService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/calculator-osgi/src/main/java/calculator/MultiplyServiceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/calculator-osgi/src/main/java/calculator/SubtractService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/calculator-osgi/src/main/java/calculator/SubtractServiceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/calculator-osgi/src/main/resources/Calculator.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/calculator-osgi/src/test/java/calculator/CalculatorTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/calculator-scaclient/README delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/calculator-scaclient/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/calculator-scaclient/src/main/java/calculator/CalculatorService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/calculator-scaclient/src/main/java/sample/CalculatorSCAClient.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/contribution-binding-ws-calculator/README delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/contribution-binding-ws-calculator/build.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/contribution-binding-ws-calculator/calculator.odg delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/contribution-binding-ws-calculator/calculator.png delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/contribution-binding-ws-calculator/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/contribution-binding-ws-calculator/src/main/java/calculator/AddService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/contribution-binding-ws-calculator/src/main/java/calculator/AddServiceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/contribution-binding-ws-calculator/src/main/java/calculator/CalculatorService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/contribution-binding-ws-calculator/src/main/java/calculator/CalculatorServiceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/contribution-binding-ws-calculator/src/main/java/calculator/DivideService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/contribution-binding-ws-calculator/src/main/java/calculator/DivideServiceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/contribution-binding-ws-calculator/src/main/java/calculator/MultiplyService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/contribution-binding-ws-calculator/src/main/java/calculator/MultiplyServiceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/contribution-binding-ws-calculator/src/main/java/calculator/SubtractService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/contribution-binding-ws-calculator/src/main/java/calculator/SubtractServiceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/contribution-binding-ws-calculator/src/main/resources/Calculator.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/contribution-binding-ws-calculator/src/main/resources/META-INF/sca-contribution.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/contribution-binding-ws-calculator/src/test/java/calculator/CalculatorTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/contribution-implementation-java-calculator/README delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/contribution-implementation-java-calculator/build.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/contribution-implementation-java-calculator/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/contribution-implementation-java-calculator/src/main/java/calculator/AddService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/contribution-implementation-java-calculator/src/main/java/calculator/AddServiceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/contribution-implementation-java-calculator/src/main/java/calculator/CalculatorClient.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/contribution-implementation-java-calculator/src/main/java/calculator/CalculatorService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/contribution-implementation-java-calculator/src/main/java/calculator/CalculatorServiceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/contribution-implementation-java-calculator/src/main/java/calculator/DivideService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/contribution-implementation-java-calculator/src/main/java/calculator/DivideServiceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/contribution-implementation-java-calculator/src/main/java/calculator/MultiplyService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/contribution-implementation-java-calculator/src/main/java/calculator/MultiplyServiceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/contribution-implementation-java-calculator/src/main/java/calculator/SubtractService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/contribution-implementation-java-calculator/src/main/java/calculator/SubtractServiceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/contribution-implementation-java-calculator/src/main/resources/Calculator.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/contribution-implementation-java-calculator/src/main/resources/CalculatorClient.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/contribution-implementation-java-calculator/src/main/resources/META-INF/sca-contribution.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/contribution-implementation-java-calculator/src/test/java/calculator/CalculatorTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/dosgi-calculator-operations/LICENSE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/dosgi-calculator-operations/META-INF/MANIFEST.MF delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/dosgi-calculator-operations/NOTICE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/dosgi-calculator-operations/OSGI-INF/add-component.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/dosgi-calculator-operations/OSGI-INF/blueprint/operations-module.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/dosgi-calculator-operations/OSGI-INF/divide-component.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/dosgi-calculator-operations/OSGI-INF/multiply-component.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/dosgi-calculator-operations/OSGI-INF/sca/bundle.componentType delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/dosgi-calculator-operations/OSGI-INF/sca/bundle.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/dosgi-calculator-operations/OSGI-INF/subtract-component.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/dosgi-calculator-operations/README delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/dosgi-calculator-operations/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/dosgi-calculator-operations/src/main/java/calculator/dosgi/operations/AddService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/dosgi-calculator-operations/src/main/java/calculator/dosgi/operations/DivideService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/dosgi-calculator-operations/src/main/java/calculator/dosgi/operations/MultiplyService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/dosgi-calculator-operations/src/main/java/calculator/dosgi/operations/SubtractService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/dosgi-calculator-operations/src/main/java/calculator/dosgi/operations/impl/AddServiceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/dosgi-calculator-operations/src/main/java/calculator/dosgi/operations/impl/DivideServiceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/dosgi-calculator-operations/src/main/java/calculator/dosgi/operations/impl/MultiplyServiceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/dosgi-calculator-operations/src/main/java/calculator/dosgi/operations/impl/OperationsActivator.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/dosgi-calculator-operations/src/main/java/calculator/dosgi/operations/impl/SubtractServiceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/dosgi-calculator-operations/src/main/resources/META-INF/sca-contribution.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/dosgi-calculator-operations/src/test/java/calculator/dosgi/operations/test/OSGiTestUtils.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/dosgi-calculator-operations/src/test/java/calculator/dosgi/operations/test/OperationsNode.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/dosgi-calculator-operations/src/test/java/calculator/dosgi/operations/test/OperationsOSGiNodeTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/dosgi-calculator/LICENSE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/dosgi-calculator/META-INF/MANIFEST.MF delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/dosgi-calculator/NOTICE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/dosgi-calculator/OSGI-INF/blueprint/calculator-module.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/dosgi-calculator/OSGI-INF/calculator-component.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/dosgi-calculator/OSGI-INF/sca/bundle.componentType delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/dosgi-calculator/OSGI-INF/sca/bundle.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/dosgi-calculator/README delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/dosgi-calculator/dosgi-calculator.png delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/dosgi-calculator/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/dosgi-calculator/src/main/java/calculator/dosgi/CalculatorService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/dosgi-calculator/src/main/java/calculator/dosgi/impl/CalculatorActivator.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/dosgi-calculator/src/main/java/calculator/dosgi/impl/CalculatorServiceDSImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/dosgi-calculator/src/main/java/calculator/dosgi/impl/CalculatorServiceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/dosgi-calculator/src/main/java/calculator/dosgi/operations/AddService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/dosgi-calculator/src/main/java/calculator/dosgi/operations/DivideService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/dosgi-calculator/src/main/java/calculator/dosgi/operations/MultiplyService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/dosgi-calculator/src/main/java/calculator/dosgi/operations/SubtractService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/dosgi-calculator/src/main/java/calculator/rmi/OperationsRMIServer.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/dosgi-calculator/src/main/java/calculator/rmi/OperationsRMIServer_Stub.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/dosgi-calculator/src/main/java/calculator/rmi/OperationsRemote.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/dosgi-calculator/src/main/resources/META-INF/sca-contribution.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/dosgi-calculator/src/test/java/calculator/dosgi/test/CalculatorNode.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/dosgi-calculator/src/test/java/calculator/dosgi/test/CalculatorOSGiNodeTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/dosgi-calculator/src/test/java/calculator/dosgi/test/OSGiTestUtils.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/dosgi-dynamic-calculator-operations/LICENSE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/dosgi-dynamic-calculator-operations/META-INF/MANIFEST.MF delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/dosgi-dynamic-calculator-operations/NOTICE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/dosgi-dynamic-calculator-operations/OSGI-INF/add-component.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/dosgi-dynamic-calculator-operations/OSGI-INF/blueprint/operations-module.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/dosgi-dynamic-calculator-operations/OSGI-INF/divide-component.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/dosgi-dynamic-calculator-operations/OSGI-INF/multiply-component.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/dosgi-dynamic-calculator-operations/OSGI-INF/sca-config/operations-config.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/dosgi-dynamic-calculator-operations/OSGI-INF/subtract-component.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/dosgi-dynamic-calculator-operations/README delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/dosgi-dynamic-calculator-operations/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/dosgi-dynamic-calculator-operations/src/main/java/calculator/dosgi/operations/AddService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/dosgi-dynamic-calculator-operations/src/main/java/calculator/dosgi/operations/DivideService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/dosgi-dynamic-calculator-operations/src/main/java/calculator/dosgi/operations/MultiplyService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/dosgi-dynamic-calculator-operations/src/main/java/calculator/dosgi/operations/SubtractService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/dosgi-dynamic-calculator-operations/src/main/java/calculator/dosgi/operations/impl/AddServiceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/dosgi-dynamic-calculator-operations/src/main/java/calculator/dosgi/operations/impl/DivideServiceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/dosgi-dynamic-calculator-operations/src/main/java/calculator/dosgi/operations/impl/MultiplyServiceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/dosgi-dynamic-calculator-operations/src/main/java/calculator/dosgi/operations/impl/OperationsActivator.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/dosgi-dynamic-calculator-operations/src/main/java/calculator/dosgi/operations/impl/SubtractServiceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/dosgi-dynamic-calculator-operations/src/test/java/calculator/dosgi/operations/test/OSGiTestUtils.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/dosgi-dynamic-calculator-operations/src/test/java/calculator/dosgi/operations/test/OperationsNode.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/dosgi-dynamic-calculator-operations/src/test/java/calculator/dosgi/operations/test/OperationsOSGiNodeTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/dosgi-dynamic-calculator/LICENSE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/dosgi-dynamic-calculator/META-INF/MANIFEST.MF delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/dosgi-dynamic-calculator/NOTICE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/dosgi-dynamic-calculator/OSGI-INF/blueprint/calculator-module.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/dosgi-dynamic-calculator/OSGI-INF/calculator-component.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/dosgi-dynamic-calculator/OSGI-INF/remote-service/calculator-service-descriptions.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/dosgi-dynamic-calculator/OSGI-INF/sca-config/calculator-config.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/dosgi-dynamic-calculator/README delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/dosgi-dynamic-calculator/dosgi-calculator.png delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/dosgi-dynamic-calculator/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/dosgi-dynamic-calculator/src/main/java/calculator/dosgi/CalculatorService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/dosgi-dynamic-calculator/src/main/java/calculator/dosgi/impl/CalculatorActivator.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/dosgi-dynamic-calculator/src/main/java/calculator/dosgi/impl/CalculatorServiceDSImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/dosgi-dynamic-calculator/src/main/java/calculator/dosgi/impl/CalculatorServiceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/dosgi-dynamic-calculator/src/main/java/calculator/dosgi/operations/AddService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/dosgi-dynamic-calculator/src/main/java/calculator/dosgi/operations/DivideService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/dosgi-dynamic-calculator/src/main/java/calculator/dosgi/operations/MultiplyService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/dosgi-dynamic-calculator/src/main/java/calculator/dosgi/operations/SubtractService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/dosgi-dynamic-calculator/src/main/java/calculator/rmi/OperationsRMIServer.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/dosgi-dynamic-calculator/src/main/java/calculator/rmi/OperationsRMIServer_Stub.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/dosgi-dynamic-calculator/src/main/java/calculator/rmi/OperationsRemote.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/dosgi-dynamic-calculator/src/test/java/calculator/dosgi/test/CalculatorNode.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/dosgi-dynamic-calculator/src/test/java/calculator/dosgi/test/CalculatorOSGiNodeTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/dosgi-dynamic-calculator/src/test/java/calculator/dosgi/test/OSGiTestUtils.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/helloworld-bpel/README delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/helloworld-bpel/build.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/helloworld-bpel/helloworld-bpel.png delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/helloworld-bpel/helloworld-bpel.svg delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/helloworld-bpel/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/helloworld-bpel/src/main/java/helloworld/Hello.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/helloworld-bpel/src/main/resources/META-INF/sca-contribution.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/helloworld-bpel/src/main/resources/helloworld.bpel delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/helloworld-bpel/src/main/resources/helloworld.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/helloworld-bpel/src/main/resources/helloworld.wsdl delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/helloworld-bpel/src/main/resources/log4j.properties delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/helloworld-scaclient/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/helloworld-scaclient/src/main/java/sample/Helloworld.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/helloworld-scaclient/src/main/java/sample/HelloworldSCAClient.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/helloworld-scaclient/src/test/java/sample/HelloworldTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/helloworld-spring/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/helloworld-spring/src/main/java/sample/Helloworld.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/helloworld-spring/src/main/java/sample/HelloworldImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/helloworld-spring/src/main/resources/META-INF/sca-contribution.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/helloworld-spring/src/main/resources/helloworld-context.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/helloworld-spring/src/main/resources/helloworld.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/helloworld-spring/src/test/java/sample/HelloworldTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/helloworld-ws-sdo/README delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/helloworld-ws-sdo/build.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/helloworld-ws-sdo/helloworld-ws-sdo.png delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/helloworld-ws-sdo/maven-eclipse.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/helloworld-ws-sdo/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/helloworld-ws-sdo/src/main/java/helloworld/HelloWorldClient.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/helloworld-ws-sdo/src/main/java/helloworld/HelloWorldImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/helloworld-ws-sdo/src/main/java/helloworld/HelloWorldServer.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/helloworld-ws-sdo/src/main/java/helloworld/HelloWorldService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/helloworld-ws-sdo/src/main/java/helloworld/HelloWorldServiceComponent.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/helloworld-ws-sdo/src/main/java/services/bcircle/BioTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/helloworld-ws-sdo/src/main/java/services/bcircle/BiochemicalCircle.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/helloworld-ws-sdo/src/main/java/services/bcircle/BiochemicalCircleImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/helloworld-ws-sdo/src/main/resources/META-INF/sca-contribution.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/helloworld-ws-sdo/src/main/resources/helloworldws.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/helloworld-ws-sdo/src/main/resources/helloworldwsclient.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/helloworld-ws-sdo/src/main/resources/logging.properties delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/helloworld-ws-sdo/src/main/resources/resources/clinicalLaboratory.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/helloworld-ws-sdo/src/main/resources/test.xsd delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/helloworld-ws-sdo/src/main/resources/wsdl/helloworld.wsdl delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/helloworld-ws-sdo/src/test/java/helloworld/HelloWorldClientTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/helloworld-ws-sdo/src/test/java/helloworld/HelloWorldTestServer.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/helloworld-ws-sdo/src/test/java/helloworld/TestCaseRunner.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/helloworld/README delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/helloworld/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/helloworld/src/main/java/sample/Helloworld.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/helloworld/src/main/java/sample/HelloworldImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/helloworld/src/main/resources/META-INF/sca-contribution.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/helloworld/src/main/resources/helloworld.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/helloworld/src/test/java/sample/HelloworldTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/launcher-command-line/README delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/launcher-embedded-jse/README delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/launcher-embedded-jse/build.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/launcher-embedded-jse/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/launcher-embedded-jse/src/main/java/calculator/CalculatorService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/launcher-embedded-jse/src/main/java/launcher/RuntimeIntegration.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/launcher-embedded-jse/src/main/java/launcher/SampleJSELauncher.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/launcher-embedded-jse/src/main/java/launcher/SampleLauncherException.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/launcher-embedded-jse/src/test/java/launcher/LauncherTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/launcher-embedded-osgi/README delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/launcher-embedded-osgi/build.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/launcher-embedded-osgi/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/launcher-embedded-osgi/src/main/java/calculator/CalculatorService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/launcher-embedded-osgi/src/main/java/launcher/RuntimeIntegration.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/launcher-embedded-osgi/src/main/java/launcher/SampleJSELauncher.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/launcher-embedded-osgi/src/main/java/launcher/SampleLauncherException.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/launcher-embedded-osgi/src/test/java/launcher/LauncherTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/launcher-maven/README delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/logging.properties delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/store-webapp/README delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/store-webapp/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/store-webapp/src/main/java/services/Cart.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/store-webapp/src/main/java/services/Catalog.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/store-webapp/src/main/java/services/CurrencyConverter.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/store-webapp/src/main/java/services/CurrencyConverterImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/store-webapp/src/main/java/services/FruitsCatalogImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/store-webapp/src/main/java/services/Item.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/store-webapp/src/main/java/services/ShoppingCartImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/store-webapp/src/main/java/services/Total.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/store-webapp/src/main/resources/store.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/store-webapp/src/main/webapp/META-INF/sca-contribution.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/store-webapp/src/main/webapp/WEB-INF/geronimo-web.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/store-webapp/src/main/webapp/WEB-INF/web.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/store-webapp/src/main/webapp/store.html delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/store-webapp/store.png delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/store-webapp/store.svg delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/store/README delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/store/build.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/store/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/store/src/main/java/launch/Launch.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/store/src/main/java/services/Cart.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/store/src/main/java/services/Catalog.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/store/src/main/java/services/CurrencyConverter.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/store/src/main/java/services/CurrencyConverterImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/store/src/main/java/services/FruitsCatalogImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/store/src/main/java/services/Item.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/store/src/main/java/services/ShoppingCartImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/store/src/main/java/services/Total.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/store/src/main/resources/store.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/store/src/main/resources/uiservices/store.html delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/store/src/test/java/client/Shopper.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/store/src/test/java/client/ShopperImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/store/src/test/java/store/StoreTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/store/src/test/resources/store-client.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/store/store.png delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/store/store.svg delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/webapps/helloworld-bpel/README delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/webapps/helloworld-bpel/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/webapps/helloworld-bpel/src/main/java/sample/HelloworldService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/webapps/helloworld-bpel/src/main/resources/helloworld.bpel delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/webapps/helloworld-bpel/src/main/resources/helloworld.wsdl delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/webapps/helloworld-bpel/src/main/webapp/WEB-INF/web.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/webapps/helloworld-bpel/src/main/webapp/WEB-INF/web.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/webapps/helloworld-bpel/src/main/webapp/hello.jsp delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/webapps/helloworld-jaxrs/README delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/webapps/helloworld-jaxrs/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/webapps/helloworld-jaxrs/src/main/java/sample/HelloWorldResource.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/webapps/helloworld-jaxrs/src/main/java/sample/HelloworldService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/webapps/helloworld-jaxrs/src/main/java/sample/HelloworldServiceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/webapps/helloworld-jaxrs/src/main/webapp/WEB-INF/application delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/webapps/helloworld-jaxrs/src/main/webapp/WEB-INF/web.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/webapps/helloworld-jaxrs/src/main/webapp/WEB-INF/web.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/webapps/helloworld-jaxrs/src/test/java/itest/HelloworldTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/webapps/helloworld-jms/README delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/webapps/helloworld-jms/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/webapps/helloworld-jms/src/main/java/sample/HelloWorldClient.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/webapps/helloworld-jms/src/main/java/sample/HelloWorldService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/webapps/helloworld-jms/src/main/java/sample/HelloWorldServiceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/webapps/helloworld-jms/src/main/webapp/META-INF/context.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/webapps/helloworld-jms/src/main/webapp/WEB-INF/jetty-env.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/webapps/helloworld-jms/src/main/webapp/WEB-INF/web.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/webapps/helloworld-jms/src/main/webapp/WEB-INF/web.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/webapps/helloworld-jms/src/main/webapp/hello.jsp delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/webapps/helloworld-js-client/README delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/webapps/helloworld-js-client/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/webapps/helloworld-js-client/src/main/java/sample/HelloworldService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/webapps/helloworld-js-client/src/main/java/sample/HelloworldServiceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/webapps/helloworld-js-client/src/main/webapp/WEB-INF/web.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/webapps/helloworld-js-client/src/main/webapp/WEB-INF/web.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/webapps/helloworld-js-client/src/main/webapp/hello.html delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/webapps/helloworld-js-client/src/test/java/itest/HelloworldTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/webapps/helloworld-jsf/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/webapps/helloworld-jsf/src/main/java/sample/HelloWorldController.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/webapps/helloworld-jsf/src/main/java/sample/HelloworldService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/webapps/helloworld-jsf/src/main/java/sample/HelloworldServiceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/webapps/helloworld-jsf/src/main/webapp/WEB-INF/faces-config.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/webapps/helloworld-jsf/src/main/webapp/WEB-INF/web.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/webapps/helloworld-jsf/src/main/webapp/WEB-INF/web.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/webapps/helloworld-jsf/src/main/webapp/helloWorld.jsp delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/webapps/helloworld-jsf/src/main/webapp/index.jsp delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/webapps/helloworld-jsf/src/main/webapp/page2.jsp delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/webapps/helloworld-jsp/README delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/webapps/helloworld-jsp/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/webapps/helloworld-jsp/src/main/java/sample/HelloworldService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/webapps/helloworld-jsp/src/main/java/sample/HelloworldServiceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/webapps/helloworld-jsp/src/main/webapp/WEB-INF/web.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/webapps/helloworld-jsp/src/main/webapp/WEB-INF/web.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/webapps/helloworld-jsp/src/main/webapp/hello.jsp delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/webapps/helloworld-jsp/src/test/java/itest/HelloworldTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/webapps/helloworld-servlet/README delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/webapps/helloworld-servlet/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/webapps/helloworld-servlet/src/main/java/sample/HelloworldService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/webapps/helloworld-servlet/src/main/java/sample/HelloworldServiceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/webapps/helloworld-servlet/src/main/java/sample/HelloworldServlet.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/webapps/helloworld-servlet/src/main/webapp/WEB-INF/web.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/webapps/helloworld-servlet/src/main/webapp/WEB-INF/web.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/webapps/helloworld-servlet/src/main/webapp/hello.html delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/webapps/helloworld-servlet/src/test/java/itest/HelloworldTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/webapps/helloworld-stripes/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/webapps/helloworld-stripes/src/main/java/mystripes/action/BaseActionBean.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/webapps/helloworld-stripes/src/main/java/mystripes/action/HomeActionBean.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/webapps/helloworld-stripes/src/main/java/sample/HelloworldService.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/webapps/helloworld-stripes/src/main/java/sample/HelloworldServiceImpl.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/webapps/helloworld-stripes/src/main/resources/StripesResources.properties delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/webapps/helloworld-stripes/src/main/resources/log4j.properties delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/webapps/helloworld-stripes/src/main/webapp/WEB-INF/jsp/home.jsp delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/webapps/helloworld-stripes/src/main/webapp/WEB-INF/jsp/layout.jsp delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/webapps/helloworld-stripes/src/main/webapp/WEB-INF/jsp/taglibs.jsp delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/webapps/helloworld-stripes/src/main/webapp/WEB-INF/web.composite delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/webapps/helloworld-stripes/src/main/webapp/WEB-INF/web.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/webapps/helloworld-stripes/src/main/webapp/index.html delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/webapps/helloworld-stripes/src/test/java/README delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/webapps/helloworld-stripes/src/test/java/itest/HelloworldTestCase.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/webapps/helloworld/README delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/webapps/helloworld/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/webapps/helloworld/src/main/webapp/WEB-INF/web.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/webapps/helloworld/src/test/java/itest/Helloworld.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/webapps/helloworld/src/test/java/itest/HelloworldTestCaseFIXME.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/samples/webapps/helloworld/src/test/resources/test-web.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/shades/base-nodep/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/shades/base-nodep/src/main/java/org/apache/tuscany/sca/base/AggregatedBundleActivator.java delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/shades/base-nodep/src/main/resources/LICENSE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/shades/base-nodep/src/main/resources/META-INF/MANIFEST.MF delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/shades/base-nodep/src/main/resources/NOTICE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/shades/base-nodep/src/main/resources/README.txt delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/shades/base/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/shades/base/src/main/resources/LICENSE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/shades/base/src/main/resources/NOTICE delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/shades/base/src/main/resources/README.txt delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/shades/bpel-nodep/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/shades/bpel/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/shades/jms-nodep/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/shades/jms/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/shades/json-nodep/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/shades/json/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/shades/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/shades/spring-nodep/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/shades/spring/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/shades/webservices-nodep/pom.xml delete mode 100644 sca-java-2.x/tags/2.0-M5-RC3/shades/webservices/pom.xml diff --git a/sca-java-2.x/tags/2.0-M5-RC3/BUILDING b/sca-java-2.x/tags/2.0-M5-RC3/BUILDING deleted file mode 100644 index 1f7d52f93f..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/BUILDING +++ /dev/null @@ -1,44 +0,0 @@ -Building the Apache Tuscany SCA source distribution -=================================================== - -Initial Setup -------------- - -1) Install J2SE 6.x JDK, which can be downloaded from - http://java.sun.com/javase/downloads/index.jsp. - -2) Make sure that your JAVA_HOME environment variable is set to the newly installed - JDK location, and that your PATH includes %JAVA_HOME%\bin (windows) or - $JAVA_HOME/bin (unix). - -3) Install Maven 2.0.7 or higher (2.2.1 recommended), which can be downloaded from - http://maven.apache.org/download.html. Make sure that your PATH includes - the MVN_HOME/bin directory. - -4) Make sure that your MAVEN_OPTS environment variable has -Xmx128M (or more), - you can manually do this by executing the following in your prompt : - Windows users: - set MAVEN_OPTS=-Xmx128M - Unix users: - export MAVEN_OPTS=-Xmx128M - - -Building --------- - -1) Change to the top level directory of Apache Tuscany source distribution. -2) Run - - $> mvn - - This will compile Apache Tuscany and run all of the tests in the source - distribution. - - Depending on the load of remote Maven 2.0 repositories, you may have - to run "mvn" several times utill the required dependencies are - all located in your local maven repository. It usually takes some time for - maven to download required dependencies in the first build. Once all the - dependencies have been downloaded you may use the -o option to run maven - in offline mode, for example, 'mvn clean install -o'. - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/CHANGES b/sca-java-2.x/tags/2.0-M5-RC3/CHANGES deleted file mode 100644 index 3fb0070a17..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/CHANGES +++ /dev/null @@ -1,94 +0,0 @@ -Changes With Apache Tuscany SCA 2.0-M5 June 2010 -==================================================== - -Highlights include: -- Passes the OASIS conformance test suite for the SCA Assembly, SCA-J CAA and SCA-J CI Specifications! -- Passes OSGI remote service SCA config type conformance test suite -- New Tuscany specific support for REST/JAXRS -- Started improving the layout of the samples to separate contributions from launchers -- Further improvements to the distributed SCA domain support -- Improved support for the SCAClient in distributed scenarios -- Dropped support for JDK 5 -- Numerous other bug fixes and improvements - -Changes With Apache Tuscany SCA 2.0-M4 November 2009 -==================================================== - -Highlights include: -- Passes the OASIS conformance test suite for the SCA-J CAA Specification! -- Almost passes the OASIS conformance test suite for the SCA Assembly Specification with - a small number of test failures that will be fixed in the next release -- Support for and the OASIS SCA JMS specification -- Support for on references and partial support of the OASIS SCA EJB specification -- A new Tuscany specific binding for JSONP support -- Several Tuscany specific extensions ported up from the 1.x runtime including bindings for ATOM, - HTTP, JSON-RPC, and implementation web clients, plus new support for JSON-RPC references -- Improved distributed SCA domain support -- Improve the implementation of OSGi remote services with SCA configuration type that supports dynamic - OSGi remote service admin, including import, export and discovery -- Add extension points for builders that can build implementation, binding and policy types -- Add a Deployer utility to facilitate deployment-related functions -- Improve the monitor usage so that monitors are isolated between requests -- Numerous other bug fixes and improvements - - -Changes With Apache Tuscany SCA 2.0-M3 June 2009 -================================================ - -Highlights include: -- Support for and the OASIS BPEL specification -- Support for and the draft OASIS Spring specification -- Support for the new SCACleint API as defined in the OASIS spec drafts -- Runtime support for SCA contributions in ZIP archives from the OASIS Assembly spec -- New Maven archetype to simplify create ZIP contributions -- New tuscany:run maven plugin for easy running SCA contributions -- Clean up and simplify the Tuscany module structure -- Various fixes for Assembly spec compliance and improved error reporting -- New deep integration into Apache Tomcat - - -Changes With Apache Tuscany SCA 2.0-M2 April 2009 -================================================= - -Highlights include: -- OSGi Enhancements including support for and a new OSGi RFC119 prototype -- Many updates towards support for OASIS OpenCSA specification and the use OASIS namespaces and schemas -- Start to implement the SCA policy framework 1.1 spec draft from OASIS OpenCSA -- New Endpoint and EndpoitReference structures -- Webapps integration support including and the web application composite along -- with support for various web technologies and frameworks including JSP support, JSF support with -- Apache MyFaces, and integration with the Stripes Web Framework -- New Maven Archetypes to make developing SCA applications easier, - see http://cwiki.apache.org/confluence/display/TUSCANYWIKI/Tuscany+Maven+Archetypes - -Changes With Apache Tuscany SCA 2.0-M1 February 2009 -==================================================== - - The first milestone release for the 2.0 codebase - - Features and/or Enhancements - - * SCA Specification support - - The change over from OSOA SCA specification support to OASIS SCA - specification support is now in progress. As such we don't claim to - support either the OSOA or OASIS SCA specifications in the - 2.0 codebase yet. - - * Core - - Enable Tuscany to run inside an OSGi runtime - - Updated SCA API package names. - - * Other Extensions - - Binding RMI - - RMI Binding - - Binding WS - - WebServices Binding - - * Samples/Tutorial/Demos - - binding-ws-calculator/ - - calculator/ - - calculator-equinox/ - - calculator-osgi/ - - calculator-rmi-reference/ - - calculator-rmi-service/ - - implementation-java-calculator diff --git a/sca-java-2.x/tags/2.0-M5-RC3/LICENSE b/sca-java-2.x/tags/2.0-M5-RC3/LICENSE deleted file mode 100644 index ddd30126af..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/LICENSE +++ /dev/null @@ -1,485 +0,0 @@ - - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright [yyyy] [name of copyright owner] - - Licensed 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. - - -=============================================================================================================== - -Apache Tuscany SCA for Java Subcomponents -=========================================: - -The Tuscany SCA for Java release includes a number of subcomponents with -separate copyright notices and license terms. Your use of the source -code for the these subcomponents is subject to the terms and -conditions of the following licenses. - -=============================================================================================================== - -The module itest/databindings/common includes the test schema; datagraph.xsd, sdoJava.xsd, and sdoModel.xsd -under the following license: - -License for the Service Data Objects JavaDoc, Interface Definition files -and XSD files. - -The Service Data Objects JavaDoc, Interface Definition files and XSD files -are being provided by the copyright holders under the following license. -By using and/or copying this work, you agree that you have read, -understood and will comply with the following terms and conditions: - -Permission to copy, display, make derivative works of and distribute -the Service Data Objects JavaDoc, Interface Definition files and XSD files -(the "Artifacts") in any medium without fee or royalty is hereby granted, -provided that you include the following on ALL copies of the Artifacts, -or portions thereof, that you make: - -1. A link or URL to the Artifacts at this location: -http://www.osoa.org/display/Main/Service+Data+Objects+Specifications - -2. The full text of this copyright notice as shown in the Artifacts. - - - -THE ARTIFACTS ARE PROVIDED "AS IS" AND THE AUTHORS MAKE NO -REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED, REGARDING THE -ARTIFACTS AND THE IMPLEMENTATION OF THEIR CONTENTS, -INCLUDING, BUT NOT LIMITED TO, WARRANTIES OF MERCHANTABILITY, FITNESS -FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT OR TITLE. - -THE AUTHORS WILL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL, -INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF OR RELATING TO ANY -USE OR DISTRIBUTION OF THE ARTIFACTS. - -The name and trademarks of the Authors may NOT be used in any manner, -including advertising or publicity pertaining to the Service Data -Objects Specification or its contents without specific, written prior -permission. Title to copyright in the Service Data Objects -Specification will at all times remain with the Authors. - -No other rights are granted by implication, estoppel or otherwise. - -Revision level 1.11, last updated on 2007/12/21 - -================================================================================================================= - -The module implementation-script temporarily includes one file under the following BSD license: - - Copyright (c) 2006, Sun Microsystems, Inc. - All rights reserved. - - Redistribution and use in source and binary forms, with or without - modification, are permitted provided that the following conditions are met: - - - Redistributions of source code must retain the above copyright notice, this - list of conditions and the following disclaimer. - - - Redistributions in binary form must reproduce the above copyright notice, - this list of conditions and the following disclaimer in the documentation - and/or other materials provided with the distribution. - - - Neither the name of the Sun Microsystems, Inc. nor the names of - contributors may be used to endorse or promote products derived from this - software without specific prior written permission. - - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND - CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED - WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED - WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A - PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY - DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, - PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF - USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE - OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH - DAMAGE. - -================================================================================================================= - -The module assembly-xsd includes XSD files under the following license: - -License for the Service Component Architecture JavaDoc, Interface -Definition files and XSD files. - -The Service Component Architecture JavaDoc, Interface Definition files, -and XSD files are being provided by the copyright holders under the -following license. By using and/or copying this work, you agree that -you have read, understood and will comply with the following terms and -conditions: - -Permission to copy, display, make derivative works of, and distribute -the Service Component Architecture JavaDoc, Interface Definition Files -and XSD files (the "Artifacts") in any medium without fee or royalty is -hereby granted, provided that you include the following on ALL copies -of the Artifacts, or portions thereof, that you make: - -1. A link or URL to the Artifacts at this location: -http://www.osoa.org/display/Main/Service+Component+Architecture+Specifications - -2. The full text of this copyright notice as shown in the Artifacts. - -THE ARTIFACTS ARE PROVIDED "AS IS," AND THE AUTHORS MAKE NO -REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED, REGARDING THE -ARTIFACTS AND THE IMPLEMENTATION OF THEIR CONTENTS, INCLUDING, BUT NOT -LIMITED TO, WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR -PURPOSE, NON-INFRINGEMENT OR TITLE. - -THE AUTHORS WILL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL, -INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF OR RELATING TO ANY -USE OR DISTRIBUTION OF THE ARTIFACTS. - -The name and trademarks of the Authors may NOT be used in any manner, -including advertising or publicity pertaining to the Service Component -Architecture Specification or its contents without specific, written -prior permission. Title to copyright in the Service Component -Architecture Specification and the JavaDoc, Interface Definition Files -and XSD Files will at all times remain with the Authors. - -No other rights are granted by implication, estoppel or otherwise. - -Revision level 1.1, last updated on 2007/11/19 - -================================================================================================================= - -The modules assembly-xsd and definitions-xml includes XSD and XML files under the following license: - -Copyright OASIS 2005, 2009. All Rights Reserved. -All capitalized terms in the following text have the meanings assigned to them in the OASIS Intellectual -Property Rights Policy (the "OASIS IPR Policy"). The full Policy may be found at the OASIS website. -This document and translations of it may be copied and furnished to others, and derivative works that -comment on or otherwise explain it or assist in its implementation may be prepared, copied, published, -and distributed, in whole or in part, without restriction of any kind, provided that the above copyright -notice and this section are included on all such copies and derivative works. However, this document -itself may not be modified in any way, including by removing the copyright notice or references to OASIS, -except as needed for the purpose of developing any document or deliverable produced by an OASIS -Technical Committee (in which case the rules applicable to copyrights, as set forth in the OASIS IPR -Policy, must be followed) or as required to translate it into languages other than English. -The limited permissions granted above are perpetual and will not be revoked by OASIS or its successors -or assigns. -This document and the information contained herein is provided on an "AS IS" basis and OASIS -DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY -WARRANTY THAT THE USE OF THE INFORMATION HEREIN WILL NOT INFRINGE ANY OWNERSHIP -RIGHTS OR ANY IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR -PURPOSE. -OASIS requests that any OASIS Party or any other party that believes it has patent claims that would -necessarily be infringed by implementations of this OASIS Committee Specification or OASIS Standard, -to notify OASIS TC Administrator and provide an indication of its willingness to grant patent licenses to -such patent claims in a manner consistent with the IPR Mode of the OASIS Technical Committee that -produced this specification. -OASIS invites any party to contact the OASIS TC Administrator if it is aware of a claim of ownership of -any patent claims that would necessarily be infringed by implementations of this specification by a patent -holder that is not willing to provide a license to such patent claims in a manner consistent with the IPR -Mode of the OASIS Technical Committee that produced this specification. OASIS may include such -claims on its website, but disclaims any obligation to do so. -OASIS takes no position regarding the validity or scope of any intellectual property or other rights that -might be claimed to pertain to the implementation or use of the technology described in this document or -the extent to which any license under such rights might or might not be available; neither does it represent -that it has made any effort to identify any such rights. Information on OASIS' procedures with respect to -rights in any document or deliverable produced by an OASIS Technical Committee can be found on the -OASIS website. Copies of claims of rights made available for publication and any assurances of licenses -to be made available, or the result of an attempt made to obtain a general license or permission for the use -of such proprietary rights by implementers or users of this OASIS Committee Specification or OASIS -Standard, can be obtained from the OASIS TC Administrator. OASIS makes no representation that any -information or list of intellectual property rights will at any time be complete, or that any claims in such list -are, in fact, Essential Claims. -The names "OASIS", are trademarks of OASIS, the owner and developer of this specification, and should -be used only to refer to the organization and its official outputs. OASIS welcomes reference to, and -implementation and use of, specifications, while reserving the right to enforce its marks against misleading -uses. Please see http://www.oasis-open.org/who/trademark.php for above guidance. - -================================================================================================================= - -The module assembly-xsd includes XSD files under the following license: - -http://www.w3.org/Consortium/Legal/copyright-software-19980720 - -W3C® SOFTWARE NOTICE AND LICENSE -Copyright (c) 1994-2002 World Wide Web Consortium, (Massachusetts Institute of Technology, Institut National de Recherche -en Informatique et en Automatique, Keio University). All Rights Reserved. http://www.w3.org/Consortium/Legal/ - -This W3C work (including software, documents, or other related items) is being provided by the copyright holders under -the following license. By obtaining, using and/or copying this work, you (the licensee) agree that you have read, understood, -and will comply with the following terms and conditions: - -Permission to use, copy, modify, and distribute this software and its documentation, with or without modification, -for any purpose and without fee or royalty is hereby granted, provided that you include the following on ALL copies -of the software and documentation or portions thereof, including modifications, that you make: - - 1. The full text of this NOTICE in a location viewable to users of the redistributed or derivative work. - 2. Any pre-existing intellectual property disclaimers, notices, or terms and conditions. If none exist, a short -notice of the following form (hypertext is preferred, text is permitted) should be used within the body of any redistributed -or derivative code: "Copyright (c) [$date-of-software] World Wide Web Consortium, (Massachusetts Institute of Technology, -Institut National de Recherche en Informatique et en Automatique, Keio University). All Rights Reserved. http://www.w3.org/Consortium/Legal/" - 3. Notice of any changes or modifications to the W3C files, including the date changes were made. (We recommend you provide URIs -to the location from which the code is derived.) - -THIS SOFTWARE AND DOCUMENTATION IS PROVIDED "AS IS," AND COPYRIGHT HOLDERS MAKE NO REPRESENTATIONS OR WARRANTIES, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO, WARRANTIES OF MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR PURPOSE -OR THAT THE USE OF THE SOFTWARE OR DOCUMENTATION WILL NOT INFRINGE ANY THIRD PARTY PATENTS, COPYRIGHTS, TRADEMARKS OR OTHER RIGHTS. - -COPYRIGHT HOLDERS WILL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF ANY USE -OF THE SOFTWARE OR DOCUMENTATION. - -The name and trademarks of copyright holders may NOT be used in advertising or publicity pertaining to the software -without specific, written prior permission. Title to copyright in this software and any associated documentation will -at all times remain with copyright holders. - -================================================================================================================= - -The module assembly-xsd includes XSD files under the following license: - -The modules - -binding-ws-xml -databinding -databinding-axiom -databinding-jaxb -databinding-json -databinding-sdo -databinding-sdo-axiom -databinding-xmlbeans -interface-wsdl-xml - -Include the ipo.xsd and address.xsd information from the XML Schema Primer -(http://www.w3.org/TR/2004/PER-xmlschema-0-20040318/) combined into the -file ipo.xsd and extended with UK postcode structures. - -The ipo.xsd file is also included under the following license: - -W3C(c) SOFTWARE NOTICE AND LICENSE -http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231 - -This work (and included software, documentation such as READMEs, or other -related items) is being provided by the copyright holders under the following -license. By obtaining, using and/or copying this work, you (the licensee) agree -that you have read, understood, and will comply with the following terms and conditions. - -Permission to copy, modify, and distribute this software and its documentation, -with or without modification, for any purpose and without fee or royalty is -hereby granted, provided that you include the following on ALL copies of the -software and documentation or portions thereof, including modifications: - - 1. The full text of this NOTICE in a location viewable to users of the - redistributed or derivative work. - 2. Any pre-existing intellectual property disclaimers, notices, or terms - and conditions. If none exist, the W3C Software Short Notice should be - included (hypertext is preferred, text is permitted) within the body of - any redistributed or derivative code. - 3. Notice of any changes or modifications to the files, including the date - changes were made. (We recommend you provide URIs to the location from which - the code is derived.) - -THIS SOFTWARE AND DOCUMENTATION IS PROVIDED "AS IS," AND COPYRIGHT HOLDERS MAKE -NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO, -WARRANTIES OF MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR PURPOSE OR THAT THE -USE OF THE SOFTWARE OR DOCUMENTATION WILL NOT INFRINGE ANY THIRD PARTY PATENTS, -COPYRIGHTS, TRADEMARKS OR OTHER RIGHTS. - -COPYRIGHT HOLDERS WILL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL OR -CONSEQUENTIAL DAMAGES ARISING OUT OF ANY USE OF THE SOFTWARE OR DOCUMENTATION. - -The name and trademarks of copyright holders may NOT be used in advertising or -publicity pertaining to the software without specific, written prior permission. -Title to copyright in this software and any associated documentation will at all -times remain with copyright holders. diff --git a/sca-java-2.x/tags/2.0-M5-RC3/NOTICE b/sca-java-2.x/tags/2.0-M5-RC3/NOTICE deleted file mode 100644 index 65bf34a9ba..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/NOTICE +++ /dev/null @@ -1,5 +0,0 @@ -Apache Tuscany -Copyright (c) 2005 - 2010 The Apache Software Foundation - -This product includes software developed at -The Apache Software Foundation (http://www.apache.org/). diff --git a/sca-java-2.x/tags/2.0-M5-RC3/README b/sca-java-2.x/tags/2.0-M5-RC3/README deleted file mode 100644 index 3c795aa464..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/README +++ /dev/null @@ -1,19 +0,0 @@ -Apache Tuscany SCA 2.0-M5 June 2010 README -============================================== - -Welcome to the Tuscany SCA 2.0-M5 release. - -See the RELEASE_NOTES file for information specific to this release. - -In the binary release see the INSTALL file for information on how to -install the release. - -In the source distribution see the BUILDING file for information on -building the source code. - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/RELEASE_NOTES b/sca-java-2.x/tags/2.0-M5-RC3/RELEASE_NOTES deleted file mode 100644 index 5dcb5b60cd..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/RELEASE_NOTES +++ /dev/null @@ -1,84 +0,0 @@ -Apache Tuscany SCA 2.0-M5 June 2010 Release Notes -===================================================== - -Apache Tuscany provides a runtime based on the Service Component -Architecture. SCA is a set of specifications aimed at simplifying SOA -Application Development which are being standardized at OASIS as part -of Open Composite Services Architecture (Open CSA) - http://www.oasis-opencsa.org/. - -Overview --------- - - The Apache Tuscany SCA 2.0-M5 release includes implementations of the - main SCA specifications and recent updates from Open CSA drafts including: - - SCA Assembly Model V1.1 - SCA Policy Framework V1.1 - SCA Java Common Annotations and APIs V1.1 - SCA Java Component Implementation V1.1 - SCA Client & Implementation: Spring V1.1 - SCA Web Services Binding V1.1 - SCA WS-BPEL Client and Implementation V1.1 - (portions of) SCA JEE Integration V1.1 - - It also includes implementations of many features not yet defined - by SCA specifications, including: - - - SCA bindings for RMI, HTTP, JSON-RPC, ATOM. - - Databindings for JAXB, Axis2's AXIOM, DOM, SAX and StAX - - Integration with various web frameworks - - The Tuscany SCA Runtime can be configured as a single node SCA domain or - as an SCA domain distributed across multiple nodes. - In addition Tuscany SCA supports the following host-deployment options: - - - running standalone - - running in a OSGi enabled runtime Environment (Equinox) - - running with distributed nodes across multiple JVMs - -See the CHANGES file for a detailed list of the features in this release. - -Known Issues ------------- - -If when building using the source distribution of tuscany you see build errors -relating to use of hazelcast, this is a known issue which occurs in some -environments where our use of hazelcast doesn't match up with your network -configuration. If you see these errors please contact us on the mailing list -as described below. You may wish to build using the -"mvn -fae" -command, so that the rest of the build completes before it reports the issue. - -Support -------- - -For more information on Apache Tuscany visit the website at: - - http://tuscany.apache.org/tuscany/ - -Any issues with this release can be reported to Apache Tuscany -using the mailing lists or in the JIRA issue tracker. - - Mailing list archives: - - http://mail-archives.apache.org/mod_mbox/tuscany-user/ - http://mail-archives.apache.org/mod_mbox/tuscany-dev/ - - Jira: - - http://issues.apache.org/jira/browse/TUSCANY - -To join the project's mailing lists follow the instructions at: - - http://incubator.apache.org/tuscany/mailing-lists.html - -To find out more about OASIS Open CSA go to: - - http://www.oasis-opencsa.org. - -Apache Tuscany welcomes your help. Any contribution, including code, -testing, improving the documentation, or bug reporting is always -appreciated. - -Thank you for using Apache Tuscany! - -- The Tuscany Team. diff --git a/sca-java-2.x/tags/2.0-M5-RC3/archetypes/contribution-jar/META-INF/MANIFEST.MF b/sca-java-2.x/tags/2.0-M5-RC3/archetypes/contribution-jar/META-INF/MANIFEST.MF deleted file mode 100644 index 1e2a0fbb4d..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/archetypes/contribution-jar/META-INF/MANIFEST.MF +++ /dev/null @@ -1,11 +0,0 @@ -Manifest-Version: 1.0 -Bundle-Name: Apache Tuscany SCA Contribution JAR -Created-By: 1.6.0_07 (Sun Microsystems Inc.) -Bundle-Vendor: The Apache Software Foundation -Bundle-Version: 2.0.0 -Bundle-ManifestVersion: 2 -Bundle-License: http://www.apache.org/licenses/LICENSE-2.0.txt -Bundle-Description: Apache Tuscany SCA Quickstart Archetype -Bundle-SymbolicName: org.apache.tuscany.sca.archetype.contribution.jar -Bundle-DocURL: http://www.apache.org/ -Bundle-RequiredExecutionEnvironment: J2SE-1.5,JavaSE-1.6 diff --git a/sca-java-2.x/tags/2.0-M5-RC3/archetypes/contribution-jar/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/archetypes/contribution-jar/pom.xml deleted file mode 100644 index 475ebfa831..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/archetypes/contribution-jar/pom.xml +++ /dev/null @@ -1,50 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-sca - 2.0-M5 - ../../pom.xml - - - tuscany-contribution-jar - maven-archetype - Create an SCA JAR contribution project - - - - - org.apache.maven.archetype - archetype-packaging - 2.0-alpha-3 - - - - - maven-archetype-plugin - 2.0-alpha-3 - true - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/archetypes/contribution-jar/src/main/resources/META-INF/maven/archetype-metadata.xml b/sca-java-2.x/tags/2.0-M5-RC3/archetypes/contribution-jar/src/main/resources/META-INF/maven/archetype-metadata.xml deleted file mode 100644 index 46c5cd6dca..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/archetypes/contribution-jar/src/main/resources/META-INF/maven/archetype-metadata.xml +++ /dev/null @@ -1,36 +0,0 @@ - - - - - - src/main/java - - **/*.java - - - - src/main/resources - - **/*.xml - **/*.composite - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/archetypes/contribution-jar/src/main/resources/META-INF/maven/archetype.xml b/sca-java-2.x/tags/2.0-M5-RC3/archetypes/contribution-jar/src/main/resources/META-INF/maven/archetype.xml deleted file mode 100644 index 69c3fb5ac9..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/archetypes/contribution-jar/src/main/resources/META-INF/maven/archetype.xml +++ /dev/null @@ -1,30 +0,0 @@ - - - - tuscany-contribution-jar - - src/main/java/HelloworldImpl.java - src/main/java/HelloworldService.java - - - src/main/hello.composite - src/main/webapp/META-INF/sca-contribution.xml - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/archetypes/contribution-jar/src/main/resources/archetype-resources/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/archetypes/contribution-jar/src/main/resources/archetype-resources/pom.xml deleted file mode 100644 index 4982e2d6cf..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/archetypes/contribution-jar/src/main/resources/archetype-resources/pom.xml +++ /dev/null @@ -1,110 +0,0 @@ - - - - - 4.0.0 - ${groupId} - ${artifactId} - jar - ${version} - #literal() - quickstart - - - - - - org.apache.tuscany.sca - tuscany-sca-api - ${tuscany.version} - provided - - - - - junit - junit - 4.8.1 - test - - - - - install - ${artifactId} - - - false - src/main/resources - - - false - src/main/java - - ** - - - **/*.java - - - - - - false - src/test/java - - ** - - - **/*.java - - - - - - true - org.apache.maven.plugins - maven-compiler-plugin - - 1.5 - 1.5 - true - true - - - - org.apache.maven.plugins - maven-eclipse-plugin - - true - - - - org.apache.tuscany.maven.plugins - maven-tuscany-plugin - - - - - 2.0-M5 - - #end - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/archetypes/contribution-jar/src/main/resources/archetype-resources/src/main/java/HelloworldImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/archetypes/contribution-jar/src/main/resources/archetype-resources/src/main/java/HelloworldImpl.java deleted file mode 100644 index 26237c105c..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/archetypes/contribution-jar/src/main/resources/archetype-resources/src/main/java/HelloworldImpl.java +++ /dev/null @@ -1,36 +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 ${package}; - -import org.oasisopen.sca.annotation.Init; -import org.oasisopen.sca.annotation.Scope; -import org.oasisopen.sca.annotation.EagerInit; - -@Scope("COMPOSITE") @EagerInit -public class HelloworldImpl implements HelloworldService { - - public String sayHello(String name) { - return "Hello " + name; - } - - @Init - public void init() { - System.out.println(sayHello("world")); - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/archetypes/contribution-jar/src/main/resources/archetype-resources/src/main/java/HelloworldService.java b/sca-java-2.x/tags/2.0-M5-RC3/archetypes/contribution-jar/src/main/resources/archetype-resources/src/main/java/HelloworldService.java deleted file mode 100644 index d705564334..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/archetypes/contribution-jar/src/main/resources/archetype-resources/src/main/java/HelloworldService.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 ${package}; - -import org.oasisopen.sca.annotation.Remotable; - -@Remotable -public interface HelloworldService { - - String sayHello(String name); - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/archetypes/contribution-jar/src/main/resources/archetype-resources/src/main/resources/META-INF/sca-contribution.xml b/sca-java-2.x/tags/2.0-M5-RC3/archetypes/contribution-jar/src/main/resources/archetype-resources/src/main/resources/META-INF/sca-contribution.xml deleted file mode 100644 index 960d6a90ae..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/archetypes/contribution-jar/src/main/resources/archetype-resources/src/main/resources/META-INF/sca-contribution.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/archetypes/contribution-jar/src/main/resources/archetype-resources/src/main/resources/helloworld.composite b/sca-java-2.x/tags/2.0-M5-RC3/archetypes/contribution-jar/src/main/resources/archetype-resources/src/main/resources/helloworld.composite deleted file mode 100644 index 35970f63ca..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/archetypes/contribution-jar/src/main/resources/archetype-resources/src/main/resources/helloworld.composite +++ /dev/null @@ -1,29 +0,0 @@ - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/archetypes/contribution-zip-discriptor/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/archetypes/contribution-zip-discriptor/pom.xml deleted file mode 100644 index 073786692a..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/archetypes/contribution-zip-discriptor/pom.xml +++ /dev/null @@ -1,33 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-sca - 2.0-M5 - ../../pom.xml - - - tuscany-zip-contribution-descriptor - Tuscany SCA ZIP contribution Shared Assembly Descriptor - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/archetypes/contribution-zip-discriptor/src/main/resources/assemblies/tuscany-zip-contribution.xml b/sca-java-2.x/tags/2.0-M5-RC3/archetypes/contribution-zip-discriptor/src/main/resources/assemblies/tuscany-zip-contribution.xml deleted file mode 100644 index a672d2920d..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/archetypes/contribution-zip-discriptor/src/main/resources/assemblies/tuscany-zip-contribution.xml +++ /dev/null @@ -1,40 +0,0 @@ - - - - zip-contribution - - zip - - false - - - false - runtime - lib - false - - - - - ${project.build.outputDirectory} - / - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/archetypes/contribution-zip/META-INF/MANIFEST.MF b/sca-java-2.x/tags/2.0-M5-RC3/archetypes/contribution-zip/META-INF/MANIFEST.MF deleted file mode 100644 index b5be2573dd..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/archetypes/contribution-zip/META-INF/MANIFEST.MF +++ /dev/null @@ -1,11 +0,0 @@ -Manifest-Version: 1.0 -Bundle-Name: Apache Tuscany SCA Contribution ZIP -Created-By: 1.6.0_07 (Sun Microsystems Inc.) -Bundle-Vendor: The Apache Software Foundation -Bundle-Version: 2.0.0 -Bundle-ManifestVersion: 2 -Bundle-License: http://www.apache.org/licenses/LICENSE-2.0.txt -Bundle-Description: Apache Tuscany SCA ZIP Contribution Archetype -Bundle-SymbolicName: org.apache.tuscany.sca.archetype.contribution.zip -Bundle-DocURL: http://www.apache.org/ -Bundle-RequiredExecutionEnvironment: J2SE-1.5,JavaSE-1.6 diff --git a/sca-java-2.x/tags/2.0-M5-RC3/archetypes/contribution-zip/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/archetypes/contribution-zip/pom.xml deleted file mode 100644 index 577bef4479..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/archetypes/contribution-zip/pom.xml +++ /dev/null @@ -1,50 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-sca - 2.0-M5 - ../../pom.xml - - - tuscany-contribution-zip - maven-archetype - Create an SCA ZIP contribution project - - - - - org.apache.maven.archetype - archetype-packaging - 2.0-alpha-3 - - - - - maven-archetype-plugin - 2.0-alpha-3 - true - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/archetypes/contribution-zip/src/main/resources/META-INF/maven/archetype-metadata.xml b/sca-java-2.x/tags/2.0-M5-RC3/archetypes/contribution-zip/src/main/resources/META-INF/maven/archetype-metadata.xml deleted file mode 100644 index 46c5cd6dca..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/archetypes/contribution-zip/src/main/resources/META-INF/maven/archetype-metadata.xml +++ /dev/null @@ -1,36 +0,0 @@ - - - - - - src/main/java - - **/*.java - - - - src/main/resources - - **/*.xml - **/*.composite - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/archetypes/contribution-zip/src/main/resources/META-INF/maven/archetype.xml b/sca-java-2.x/tags/2.0-M5-RC3/archetypes/contribution-zip/src/main/resources/META-INF/maven/archetype.xml deleted file mode 100644 index c17535e802..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/archetypes/contribution-zip/src/main/resources/META-INF/maven/archetype.xml +++ /dev/null @@ -1,30 +0,0 @@ - - - - tuscany-contribution-zip - - src/main/java/AddImpl.java - src/main/java/AddService.java - - - src/main/resources/add.composite - src/main/resources/META-INF/sca-contribution.xml - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/archetypes/contribution-zip/src/main/resources/archetype-resources/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/archetypes/contribution-zip/src/main/resources/archetype-resources/pom.xml deleted file mode 100644 index 35e8a813f7..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/archetypes/contribution-zip/src/main/resources/archetype-resources/pom.xml +++ /dev/null @@ -1,153 +0,0 @@ - - - - - 4.0.0 - ${groupId} - ${artifactId} - jar - ${version} - #literal() - quickstart - - - - - - org.apache.tuscany.sca - tuscany-sca-api - ${tuscany.version} - provided - - - - - commons-io - commons-io - 1.4 - - - - commons-math - commons-math - 1.2 - - - - - junit - junit - 4.8.1 - test - - - - - install - ${artifactId} - - - false - src/main/resources - - - false - src/main/java - - ** - - - **/*.java - - - - - - false - src/test/java - - ** - - - **/*.java - - - - - - true - org.apache.maven.plugins - maven-compiler-plugin - - 1.5 - 1.5 - true - true - - - - org.apache.maven.plugins - maven-eclipse-plugin - - true - - - - maven-assembly-plugin - 2.2-beta-3 - - - org.apache.tuscany.sca - tuscany-zip-contribution-descriptor - ${tuscany.version} - - - - - make-assembly - package - - single - - - false - - - tuscany-zip-contribution.xml - - - - - - - - org.apache.tuscany.maven.plugins - maven-tuscany-plugin - - - - - 2.0-M5 - - #end - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/archetypes/contribution-zip/src/main/resources/archetype-resources/src/main/java/AddImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/archetypes/contribution-zip/src/main/resources/archetype-resources/src/main/java/AddImpl.java deleted file mode 100644 index 48b62dbb6f..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/archetypes/contribution-zip/src/main/resources/archetype-resources/src/main/java/AddImpl.java +++ /dev/null @@ -1,38 +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 ${package}; - -import org.apache.commons.math.util.MathUtils; - -import org.oasisopen.sca.annotation.Init; -import org.oasisopen.sca.annotation.Scope; -import org.oasisopen.sca.annotation.EagerInit; - -@Scope("COMPOSITE") @EagerInit -public class AddImpl implements AddService { - - public int add(int x, int y) { - return MathUtils.addAndCheck(x, y); - } - - @Init - public void init() { - System.out.println("1 + 2 = " + add(1, 2)); - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/archetypes/contribution-zip/src/main/resources/archetype-resources/src/main/java/AddService.java b/sca-java-2.x/tags/2.0-M5-RC3/archetypes/contribution-zip/src/main/resources/archetype-resources/src/main/java/AddService.java deleted file mode 100644 index 4b25553893..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/archetypes/contribution-zip/src/main/resources/archetype-resources/src/main/java/AddService.java +++ /dev/null @@ -1,25 +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 ${package}; - -public interface AddService { - - int add(int x, int y); - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/archetypes/contribution-zip/src/main/resources/archetype-resources/src/main/resources/META-INF/sca-contribution.xml b/sca-java-2.x/tags/2.0-M5-RC3/archetypes/contribution-zip/src/main/resources/archetype-resources/src/main/resources/META-INF/sca-contribution.xml deleted file mode 100644 index 960d6a90ae..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/archetypes/contribution-zip/src/main/resources/archetype-resources/src/main/resources/META-INF/sca-contribution.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/archetypes/contribution-zip/src/main/resources/archetype-resources/src/main/resources/add.composite b/sca-java-2.x/tags/2.0-M5-RC3/archetypes/contribution-zip/src/main/resources/archetype-resources/src/main/resources/add.composite deleted file mode 100644 index 3dc8175bd7..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/archetypes/contribution-zip/src/main/resources/archetype-resources/src/main/resources/add.composite +++ /dev/null @@ -1,29 +0,0 @@ - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/archetypes/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/archetypes/pom.xml deleted file mode 100644 index 9ec4ccd61b..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/archetypes/pom.xml +++ /dev/null @@ -1,51 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-sca - 2.0-M5 - ../pom.xml - - tuscany-archetype - pom - Apache Tuscany SCA Maven Archetypes - - - - default - - true - - - - contribution-jar - contribution-zip - contribution-zip-discriptor - quickstart - quickstart-jsf - quickstart-stripes - quickstart-bpel - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-bpel/META-INF/MANIFEST.MF b/sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-bpel/META-INF/MANIFEST.MF deleted file mode 100644 index 29e03eb396..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-bpel/META-INF/MANIFEST.MF +++ /dev/null @@ -1,11 +0,0 @@ -Manifest-Version: 1.0 -Bundle-Name: Apache Tuscany SCA Quickstart Archetype -Created-By: 1.6.0_07 (Sun Microsystems Inc.) -Bundle-Vendor: The Apache Software Foundation -Bundle-Version: 2.0.0 -Bundle-ManifestVersion: 2 -Bundle-License: http://www.apache.org/licenses/LICENSE-2.0.txt -Bundle-Description: Apache Tuscany SCA Quickstart Archetype -Bundle-SymbolicName: org.apache.tuscany.sca.archetype.quickstart -Bundle-DocURL: http://www.apache.org/ -Bundle-RequiredExecutionEnvironment: J2SE-1.5,JavaSE-1.6 diff --git a/sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-bpel/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-bpel/pom.xml deleted file mode 100644 index a9ca02dc4c..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-bpel/pom.xml +++ /dev/null @@ -1,50 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-sca - 2.0-M5 - ../../pom.xml - - - tuscany-quickstart-bpel - maven-archetype - Create an SCA Webapp project using BPEL - - - - - org.apache.maven.archetype - archetype-packaging - 2.0-alpha-3 - - - - - maven-archetype-plugin - 2.0-alpha-3 - true - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-bpel/src/main/resources/META-INF/maven/archetype-metadata.xml b/sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-bpel/src/main/resources/META-INF/maven/archetype-metadata.xml deleted file mode 100644 index 47c2f5dc10..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-bpel/src/main/resources/META-INF/maven/archetype-metadata.xml +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - src/main/java - - **/*.java - - - - src/main/resources - - **/* - - - - src/main/webapp - - **/*.jsp - **/*.xml - **/*.composite - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-bpel/src/main/resources/META-INF/maven/archetype.xml b/sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-bpel/src/main/resources/META-INF/maven/archetype.xml deleted file mode 100644 index c466a1b3f5..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-bpel/src/main/resources/META-INF/maven/archetype.xml +++ /dev/null @@ -1,33 +0,0 @@ - - - - tuscany-quickstart - - src/main/java/HelloworldImpl.java - src/main/java/HelloworldService.java - - - src/main/resources/helloworld.bpel - src/main/resources/helloworld.wsdl - src/main/webapp/hello.jsp - src/main/webapp/WEB-INF/web.composite - src/main/webapp/WEB-INF/web.xml - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-bpel/src/main/resources/archetype-resources/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-bpel/src/main/resources/archetype-resources/pom.xml deleted file mode 100644 index 41f99af4e7..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-bpel/src/main/resources/archetype-resources/pom.xml +++ /dev/null @@ -1,182 +0,0 @@ - - - - - 4.0.0 - ${groupId} - ${artifactId} - war - ${version} - #literal() - quickstart - - - - - - org.apache.tuscany.sca - tuscany-sca-api - ${tuscany.version} - - - - org.apache.tuscany.sca - tuscany-implementation-web-runtime - ${tuscany.version} - runtime - - - - org.apache.tuscany.sca - tuscany-implementation-bpel-runtime - ${tuscany.version} - runtime - - - - - junit - junit - 4.8.1 - test - - - - - org.mortbay.jetty - jetty - ${jetty.version} - provided - - - org.mortbay.jetty - jetty-util - ${jetty.version} - provided - - - org.mortbay.jetty - jetty-management - ${jetty.version} - provided - - - - install - ${artifactId} - - - false - src/main/resources - - - false - src/main/java - - ** - - - **/*.java - - - - - - false - src/test/java - - ** - - - **/*.java - - - - - - org.apache.maven.plugins - maven-dependency-plugin - - - unpack - compile - - unpack - - - - - org.apache.ode - ode-dao-jpa-ojpa-derby - 1.1.1 - zip - false - ${project.build.directory}/classes - **/* - - - - - - - - true - org.apache.maven.plugins - maven-compiler-plugin - - 1.5 - 1.5 - true - true - - - - org.mortbay.jetty - maven-jetty-plugin - ${jetty.version} - - - - - openjpa.QueryCompilationCache - false - - - - ${basedir}/src/main - ${basedir}/src/main/webapp/WEB-INF/web.xml - - - - org.apache.maven.plugins - maven-eclipse-plugin - - true - - - - - - 2.0-M5 - 6.1.18 - - #end - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-bpel/src/main/resources/archetype-resources/src/main/java/HelloworldService.java b/sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-bpel/src/main/resources/archetype-resources/src/main/java/HelloworldService.java deleted file mode 100644 index a99cc7b032..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-bpel/src/main/resources/archetype-resources/src/main/java/HelloworldService.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 ${package}; - -import org.oasisopen.sca.annotation.Remotable; - -@Remotable -public interface HelloworldService { - - String hello(String name); - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-bpel/src/main/resources/archetype-resources/src/main/resources/helloworld.bpel b/sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-bpel/src/main/resources/archetype-resources/src/main/resources/helloworld.bpel deleted file mode 100644 index 53e77c5be0..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-bpel/src/main/resources/archetype-resources/src/main/resources/helloworld.bpel +++ /dev/null @@ -1,66 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - concat($tmpVar,' World') - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-bpel/src/main/resources/archetype-resources/src/main/resources/helloworld.wsdl b/sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-bpel/src/main/resources/archetype-resources/src/main/resources/helloworld.wsdl deleted file mode 100644 index 46cf381577..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-bpel/src/main/resources/archetype-resources/src/main/resources/helloworld.wsdl +++ /dev/null @@ -1,82 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-bpel/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.composite b/sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-bpel/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.composite deleted file mode 100644 index 4d3d532184..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-bpel/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.composite +++ /dev/null @@ -1,37 +0,0 @@ - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-bpel/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml b/sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-bpel/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml deleted file mode 100644 index 922d275b17..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-bpel/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml +++ /dev/null @@ -1,41 +0,0 @@ - - - - - ${artifactId} - - - tuscany.${artifactId} - org.apache.tuscany.sca.host.webapp.TuscanyServletFilter - - - - tuscany.${artifactId} - /* - - - - hello.jsp - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-bpel/src/main/resources/archetype-resources/src/main/webapp/hello.jsp b/sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-bpel/src/main/resources/archetype-resources/src/main/webapp/hello.jsp deleted file mode 100644 index 7aeaf81b33..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-bpel/src/main/resources/archetype-resources/src/main/webapp/hello.jsp +++ /dev/null @@ -1,36 +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. ---%> -<%@ page contentType="text/html;charset=UTF-8" language="java" %> -<%@ taglib uri="http://www.osoa.org/sca/sca_jsp.tld" prefix="sca" %> - - - - - - -

${artifactId}

- - Calling HelloworldService sayHello("world") returns: - -

- - <%= service.hello("world") %> - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-jsf/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-jsf/pom.xml deleted file mode 100644 index aacc180b2a..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-jsf/pom.xml +++ /dev/null @@ -1,50 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-sca - 2.0-M5 - ../../pom.xml - - - tuscany-quickstart-jsf - maven-archetype - Create a Tuscany SCA and JSF project - - - - - org.apache.maven.archetype - archetype-packaging - 2.0-alpha-4 - - - - - maven-archetype-plugin - 2.0-alpha-4 - true - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-jsf/src/main/resources/META-INF/maven/archetype-metadata.xml b/sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-jsf/src/main/resources/META-INF/maven/archetype-metadata.xml deleted file mode 100644 index f15a12fb88..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-jsf/src/main/resources/META-INF/maven/archetype-metadata.xml +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - src/main/java - - **/*.java - - - - src/main/webapp - - **/*.jsp - **/*.xml - **/*.html - **/*.composite - - - - src/main/resources - - **/*.properties - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-jsf/src/main/resources/META-INF/maven/archetype.xml b/sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-jsf/src/main/resources/META-INF/maven/archetype.xml deleted file mode 100644 index b5295d8a73..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-jsf/src/main/resources/META-INF/maven/archetype.xml +++ /dev/null @@ -1,38 +0,0 @@ - - - - quickstart-stripes - - src/main/java/sample/stripes/action/BaseActionBean.java - src/main/java/sample/stripes/action/HomeActionBean.java - src/main/java/sample/sca/HelloworldService.java - src/main/java/sample/sca/HelloworldServiceImpl.java - - - src/main/resources/log4j.properties - src/main/resources/StripesResources.properties - src/main/webapp/index.html - src/main/webapp/WEB-INF/jsp/home.jsp - src/main/webapp/WEB-INF/jsp/layout.jsp - src/main/webapp/WEB-INF/jsp/taglibs.jsp - src/main/webapp/WEB-INF/web.composite - src/main/webapp/WEB-INF/web.xml - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-jsf/src/main/resources/archetype-resources/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-jsf/src/main/resources/archetype-resources/pom.xml deleted file mode 100644 index 4bb4752b1c..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-jsf/src/main/resources/archetype-resources/pom.xml +++ /dev/null @@ -1,154 +0,0 @@ - - - - - 4.0.0 - ${groupId} - ${artifactId} - war - ${version} - #literal() - quickstart-jsf - - - - - - - org.apache.tuscany.sca - tuscany-sca-api - ${tuscany.version} - - - org.apache.tuscany.sca - tuscany-myfaces - ${tuscany.version} - - - - - org.apache.myfaces.core - myfaces-api - 1.2.2 - compile - - - - org.apache.myfaces.core - myfaces-impl - 1.2.2 - compile - - - - org.apache.myfaces.tomahawk - tomahawk - 1.1.6 - runtime - - - javax.servlet - jstl - - - - - - jstl - jstl - 1.2 - runtime - - - - junit - junit - 4.0 - test - - - - - - install - ${artifactId} - - - false - src/main/resources - - - false - src/main/java - - ** - - - **/*.java - - - - - - false - src/test/java - - ** - - - **/*.java - - - - - - true - org.apache.maven.plugins - maven-compiler-plugin - - 1.5 - 1.5 - true - true - - - - org.mortbay.jetty - maven-jetty-plugin - ${jetty.version} - - - org.apache.maven.plugins - maven-eclipse-plugin - - true - - - - - - 2.0-M5 - 1.5 - 6.1.4 - - #end - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-jsf/src/main/resources/archetype-resources/src/main/java/myfaces/HelloWorldController.java b/sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-jsf/src/main/resources/archetype-resources/src/main/java/myfaces/HelloWorldController.java deleted file mode 100644 index e38c84feda..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-jsf/src/main/resources/archetype-resources/src/main/java/myfaces/HelloWorldController.java +++ /dev/null @@ -1,64 +0,0 @@ -#set( $symbol_pound = '#' ) -#set( $symbol_dollar = '$' ) -#set( $symbol_escape = '\' ) -/* - * 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 ${package}.myfaces; - -import org.oasisopen.sca.annotation.Reference; - -import ${package}.sca.HelloworldService; - -/** - * A typical simple backing bean, that is backed to helloworld.jsp - * - */ -public class HelloWorldController { - - //properties - private String name; - - @Reference - private HelloworldService service; - - /** - * default empty constructor - */ - public HelloWorldController(){ - } - - //-------------------getter & setter - public String getName() { - return name; - } - public void setName(String name) { - this.name = name; - } - - /** - * Method that is backed to a submit button of a form. - */ - public String send(){ - - // invoke the SCA reference - name = service.sayHello(name); - - return "success"; - } -} \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-jsf/src/main/resources/archetype-resources/src/main/java/sca/HelloworldService.java b/sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-jsf/src/main/resources/archetype-resources/src/main/java/sca/HelloworldService.java deleted file mode 100644 index d6cb7bbcf2..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-jsf/src/main/resources/archetype-resources/src/main/java/sca/HelloworldService.java +++ /dev/null @@ -1,28 +0,0 @@ -#set( $symbol_pound = '#' ) -#set( $symbol_dollar = '$' ) -#set( $symbol_escape = '\' ) -/* - * 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 ${package}.sca; - -public interface HelloworldService { - - String sayHello(String name); - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-jsf/src/main/resources/archetype-resources/src/main/java/sca/HelloworldServiceImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-jsf/src/main/resources/archetype-resources/src/main/java/sca/HelloworldServiceImpl.java deleted file mode 100644 index ec9bfd7221..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-jsf/src/main/resources/archetype-resources/src/main/java/sca/HelloworldServiceImpl.java +++ /dev/null @@ -1,30 +0,0 @@ -#set( $symbol_pound = '#' ) -#set( $symbol_dollar = '$' ) -#set( $symbol_escape = '\' ) -/* - * 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 ${package}.sca; - -public class HelloworldServiceImpl implements HelloworldService { - - public String sayHello(String name) { - return "Hello " + name; - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-jsf/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/faces-config.xml b/sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-jsf/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/faces-config.xml deleted file mode 100644 index 3b732de8af..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-jsf/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/faces-config.xml +++ /dev/null @@ -1,53 +0,0 @@ -#set( $symbol_pound = '#' ) -#set( $symbol_dollar = '$' ) -#set( $symbol_escape = '\' ) - - - - - - - helloWorld - ${package}.myfaces.HelloWorldController - request - - - - - /helloWorld.jsp - - success - /page2.jsp - - - - - - /page2.jsp - - back - /helloWorld.jsp - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-jsf/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.composite b/sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-jsf/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.composite deleted file mode 100644 index 7e18dc9308..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-jsf/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.composite +++ /dev/null @@ -1,35 +0,0 @@ - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-jsf/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml b/sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-jsf/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml deleted file mode 100644 index 48b73fe68a..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-jsf/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml +++ /dev/null @@ -1,230 +0,0 @@ -#set( $symbol_pound = '#' ) -#set( $symbol_dollar = '$' ) -#set( $symbol_escape = '\' ) - - - - - ${artifactId} - - - - org.apache.tuscany.sca.host.webapp.TuscanyContextListener - - - org.apache.myfaces.config.annotation.LifecycleProvider - org.apache.tuscany.sca.myfaces.TuscanyAnnotationLifecycleProvider - - - - - State saving method: "client" or "server" (= default) - See JSF Specification 2.5.3 - javax.faces.STATE_SAVING_METHOD - client - - - Only applicable if state saving method is "server" (= default). - Defines the amount (default = 20) of the latest views are stored in session. - org.apache.myfaces.NUMBER_OF_VIEWS_IN_SESSION - 20 - - - Only applicable if state saving method is "server" (= default). - If true (default) the state will be serialized to a byte stream before it - is written to the session. - If false the state will not be serialized to a byte stream. - org.apache.myfaces.SERIALIZE_STATE_IN_SESSION - true - - - Only applicable if state saving method is "server" (= default) and if - org.apache.myfaces.SERIALIZE_STATE_IN_SESSION is true (= default) - If true (default) the serialized state will be compressed before it - is written to the session. If false the state will not be compressed. - org.apache.myfaces.COMPRESS_STATE_IN_SESSION - true - - - This parameter tells MyFaces if javascript code should be allowed in the - rendered HTML output. - If javascript is allowed, command_link anchors will have javascript code - that submits the corresponding form. - If javascript is not allowed, the state saving info and nested parameters - will be added as url parameters. - Default: "true" - org.apache.myfaces.ALLOW_JAVASCRIPT - true - - - org.apache.myfaces.DETECT_JAVASCRIPT - false - - - If true, rendered HTML code will be formatted, so that it is "human readable". - i.e. additional line separators and whitespace will be written, that do not - influence the HTML code. - Default: "true" - org.apache.myfaces.PRETTY_HTML - true - - - If true, a javascript function will be rendered that is able to restore the - former vertical scroll on every request. Convenient feature if you have pages - with long lists and you do not want the browser page to always jump to the top - if you trigger a link or button action that stays on the same page. - Default: "false" - org.apache.myfaces.AUTO_SCROLL - true - - - - Used for encrypting view state. Only relevant for client side - state saving. See MyFaces wiki/web site documentation for instructions - on how to configure an application for diffenent encryption strengths. - - org.apache.myfaces.SECRET - NzY1NDMyMTA= - - - - - Validate managed beans, navigation rules and ensure that forms are not nested. - - org.apache.myfaces.VALIDATE - true - - - - - Treat readonly same as if disabled attribute was set for select elements. - - org.apache.myfaces.READONLY_AS_DISABLED_FOR_SELECTS - true - - - - - Use the defined class as the class which will be called when a resource is added to the - ExtensionFilter handling. Using StreamingAddResource here helps with performance. If you want to add - custom components and want to use the ExtensionFilter, you need to provide your custom implementation here. - - org.apache.myfaces.ADD_RESOURCE_CLASS - org.apache.myfaces.renderkit.html.util.DefaultAddResource - - - - - Virtual path in the URL which triggers loading of resources for the MyFaces extended components - in the ExtensionFilter. - - org.apache.myfaces.RESOURCE_VIRTUAL_PATH - /faces/myFacesExtensionResource - - - - - Check if the extensions-filter has been properly configured. - - org.apache.myfaces.CHECK_EXTENSIONS_FILTER - true - - - - - Define partial state saving as true/false. - - javax.faces.PARTIAL_STATE_SAVING_METHOD - false - - - - - extensionsFilter - org.apache.myfaces.webapp.filter.ExtensionsFilter - - Set the size limit for uploaded files. - Format: 10 - 10 bytes - 10k - 10 KB - 10m - 10 MB - 1g - 1 GB - uploadMaxFileSize - 100m - - - Set the threshold size - files - below this limit are stored in memory, files above - this limit are stored on disk. - - Format: 10 - 10 bytes - 10k - 10 KB - 10m - 10 MB - 1g - 1 GB - uploadThresholdSize - 100k - - - - - extensionsFilter - *.jsf - - - extensionsFilter - /faces/* - - - - - org.apache.myfaces.webapp.StartupServletContextListener - - - - - Faces Servlet - javax.faces.webapp.FacesServlet - 1 - - - - - Faces Servlet - *.jsf - - - - - index.jsp - index.html - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-jsf/src/main/resources/archetype-resources/src/main/webapp/helloWorld.jsp b/sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-jsf/src/main/resources/archetype-resources/src/main/webapp/helloWorld.jsp deleted file mode 100644 index 4a3197ec4f..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-jsf/src/main/resources/archetype-resources/src/main/webapp/helloWorld.jsp +++ /dev/null @@ -1,37 +0,0 @@ - -<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %> -<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%> - - - Hello World - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-jsf/src/main/resources/archetype-resources/src/main/webapp/index.jsp b/sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-jsf/src/main/resources/archetype-resources/src/main/webapp/index.jsp deleted file mode 100644 index 768aa2408b..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-jsf/src/main/resources/archetype-resources/src/main/webapp/index.jsp +++ /dev/null @@ -1,22 +0,0 @@ - -<%@ page session="false"%> -<% -response.sendRedirect("helloWorld.jsf"); -%> \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-jsf/src/main/resources/archetype-resources/src/main/webapp/page2.jsp b/sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-jsf/src/main/resources/archetype-resources/src/main/webapp/page2.jsp deleted file mode 100644 index 1c096f66c6..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-jsf/src/main/resources/archetype-resources/src/main/webapp/page2.jsp +++ /dev/null @@ -1,35 +0,0 @@ - -<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %> -<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%> - - - Hello World - - - - -

- - - - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-jsonp/META-INF/MANIFEST.MF b/sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-jsonp/META-INF/MANIFEST.MF deleted file mode 100644 index 29e03eb396..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-jsonp/META-INF/MANIFEST.MF +++ /dev/null @@ -1,11 +0,0 @@ -Manifest-Version: 1.0 -Bundle-Name: Apache Tuscany SCA Quickstart Archetype -Created-By: 1.6.0_07 (Sun Microsystems Inc.) -Bundle-Vendor: The Apache Software Foundation -Bundle-Version: 2.0.0 -Bundle-ManifestVersion: 2 -Bundle-License: http://www.apache.org/licenses/LICENSE-2.0.txt -Bundle-Description: Apache Tuscany SCA Quickstart Archetype -Bundle-SymbolicName: org.apache.tuscany.sca.archetype.quickstart -Bundle-DocURL: http://www.apache.org/ -Bundle-RequiredExecutionEnvironment: J2SE-1.5,JavaSE-1.6 diff --git a/sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-jsonp/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-jsonp/pom.xml deleted file mode 100644 index 3969e89fc7..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-jsonp/pom.xml +++ /dev/null @@ -1,50 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-sca - 2.0-M5 - ../../pom.xml - - - tuscany-quickstart-jsonp - maven-archetype - Create a Tuscany SCA webapp project using the JSONP binding - - - - - org.apache.maven.archetype - archetype-packaging - 2.0-alpha-4 - - - - - maven-archetype-plugin - 2.0-alpha-4 - true - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-jsonp/src/main/resources/META-INF/maven/archetype-metadata.xml b/sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-jsonp/src/main/resources/META-INF/maven/archetype-metadata.xml deleted file mode 100644 index 450e33afd5..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-jsonp/src/main/resources/META-INF/maven/archetype-metadata.xml +++ /dev/null @@ -1,42 +0,0 @@ - - - - - - Y - - - - - src/main/java - - **/*.java - - - - src/main/webapp - - **/*.jsp - **/*.xml - **/*.composite - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-jsonp/src/main/resources/META-INF/maven/archetype.xml b/sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-jsonp/src/main/resources/META-INF/maven/archetype.xml deleted file mode 100644 index 1bf4353502..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-jsonp/src/main/resources/META-INF/maven/archetype.xml +++ /dev/null @@ -1,31 +0,0 @@ - - - - tuscany-quickstart - - src/main/java/HelloworldImpl.java - src/main/java/HelloworldService.java - - - src/main/webapp/hello.jsp - src/main/webapp/WEB-INF/web.composite - src/main/webapp/WEB-INF/web.xml - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-jsonp/src/main/resources/archetype-resources/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-jsonp/src/main/resources/archetype-resources/pom.xml deleted file mode 100644 index 95e50ef7dd..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-jsonp/src/main/resources/archetype-resources/pom.xml +++ /dev/null @@ -1,154 +0,0 @@ - - - - - 4.0.0 - ${groupId} - ${artifactId} - war - ${version} - quickstart-jsonp - - - - - org.apache.tuscany.sca - tuscany-sca-api - ${tuscany.version} -#if(${includeTuscanyRuntime} == "Y") - compile -#else - provided -#end - - - - org.apache.tuscany.sca - tuscany-implementation-web-runtime - ${tuscany.version} -#if( $includeTuscanyRuntime == "Y") - runtime -#else - provided -#end - - - - org.apache.tuscany.sca - tuscany-binding-jsonp-runtime - ${tuscany.version} -#if( $includeTuscanyRuntime == "Y") - runtime -#else - provided -#end - - - - - junit - junit - 4.8.1 - test - - - - - org.mortbay.jetty - jetty - ${jetty.version} - provided - - - org.mortbay.jetty - jetty-util - ${jetty.version} - provided - - - org.mortbay.jetty - jetty-management - ${jetty.version} - provided - - - - install - ${artifactId} - - - false - src/main/resources - - - false - src/main/java - - ** - - - **/*.java - - - - - - false - src/test/java - - ** - - - **/*.java - - - - - - true - org.apache.maven.plugins - maven-compiler-plugin - - 1.5 - 1.5 - true - true - - - - org.mortbay.jetty - maven-jetty-plugin - ${jetty.version} - - - org.apache.maven.plugins - maven-eclipse-plugin - - true - - - - - - 2.0-M5 - 6.1.18 - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-jsonp/src/main/resources/archetype-resources/src/main/java/HelloworldImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-jsonp/src/main/resources/archetype-resources/src/main/java/HelloworldImpl.java deleted file mode 100644 index 2491816adc..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-jsonp/src/main/resources/archetype-resources/src/main/java/HelloworldImpl.java +++ /dev/null @@ -1,27 +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 ${package}; - -public class HelloworldImpl implements HelloworldService { - - public String sayHello(String name) { - return "Hello " + name; - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-jsonp/src/main/resources/archetype-resources/src/main/java/HelloworldService.java b/sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-jsonp/src/main/resources/archetype-resources/src/main/java/HelloworldService.java deleted file mode 100644 index 3527edcd6f..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-jsonp/src/main/resources/archetype-resources/src/main/java/HelloworldService.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 ${package}; - -import org.oasisopen.sca.annotation.Remotable; - -@Remotable -public interface HelloworldService { - - String sayHello(String name); - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-jsonp/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.composite b/sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-jsonp/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.composite deleted file mode 100644 index fa37fec88c..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-jsonp/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.composite +++ /dev/null @@ -1,32 +0,0 @@ - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-jsonp/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml b/sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-jsonp/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml deleted file mode 100644 index 25d8d8184d..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-jsonp/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml +++ /dev/null @@ -1,43 +0,0 @@ - - - - - ${artifactId} - -#if($includeTuscanyRuntime == "Y") - - tuscany.${artifactId} - org.apache.tuscany.sca.host.webapp.TuscanyServletFilter - - - - tuscany.${artifactId} - /* - - -#end - - hello.jsp - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-jsonp/src/main/resources/archetype-resources/src/main/webapp/hello.jsp b/sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-jsonp/src/main/resources/archetype-resources/src/main/webapp/hello.jsp deleted file mode 100644 index 9729ca6823..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-jsonp/src/main/resources/archetype-resources/src/main/webapp/hello.jsp +++ /dev/null @@ -1,36 +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. ---%> -<%@ page contentType="text/html;charset=UTF-8" language="java" %> -<%@ taglib uri="http://www.osoa.org/sca/sca_jsp.tld" prefix="sca" %> - - - - - - -

${artifactId}

- - Calling HelloworldService sayHello("world") returns: - -

- - <%= service.sayHello("world") %> - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-stripes/META-INF/MANIFEST.MF b/sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-stripes/META-INF/MANIFEST.MF deleted file mode 100644 index ae84237c4a..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-stripes/META-INF/MANIFEST.MF +++ /dev/null @@ -1,11 +0,0 @@ -Manifest-Version: 1.0 -Bundle-Name: Apache Tuscany SCA Quickstart Stripes Archetype -Created-By: 1.6.0_07 (Sun Microsystems Inc.) -Bundle-Vendor: The Apache Software Foundation -Bundle-Version: 2.0.0 -Bundle-ManifestVersion: 2 -Bundle-License: http://www.apache.org/licenses/LICENSE-2.0.txt -Bundle-Description: Apache Tuscany SCA Quickstart Stripes Archetype -Bundle-SymbolicName: org.apache.tuscany.sca.archetype.quickstart.stripes -Bundle-DocURL: http://www.apache.org/ -Bundle-RequiredExecutionEnvironment: J2SE-1.5,JavaSE-1.6 diff --git a/sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-stripes/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-stripes/pom.xml deleted file mode 100644 index 389d5a76f3..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-stripes/pom.xml +++ /dev/null @@ -1,50 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-sca - 2.0-M5 - ../../pom.xml - - - tuscany-quickstart-stripes - maven-archetype - Create a simple Apache Tuscany SCA webapp project using the Stripes Web Framework - - - - - org.apache.maven.archetype - archetype-packaging - 2.0-alpha-4 - - - - - maven-archetype-plugin - 2.0-alpha-4 - true - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-stripes/src/main/resources/META-INF/maven/archetype-metadata.xml b/sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-stripes/src/main/resources/META-INF/maven/archetype-metadata.xml deleted file mode 100644 index f15a12fb88..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-stripes/src/main/resources/META-INF/maven/archetype-metadata.xml +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - src/main/java - - **/*.java - - - - src/main/webapp - - **/*.jsp - **/*.xml - **/*.html - **/*.composite - - - - src/main/resources - - **/*.properties - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-stripes/src/main/resources/META-INF/maven/archetype.xml b/sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-stripes/src/main/resources/META-INF/maven/archetype.xml deleted file mode 100644 index b5295d8a73..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-stripes/src/main/resources/META-INF/maven/archetype.xml +++ /dev/null @@ -1,38 +0,0 @@ - - - - quickstart-stripes - - src/main/java/sample/stripes/action/BaseActionBean.java - src/main/java/sample/stripes/action/HomeActionBean.java - src/main/java/sample/sca/HelloworldService.java - src/main/java/sample/sca/HelloworldServiceImpl.java - - - src/main/resources/log4j.properties - src/main/resources/StripesResources.properties - src/main/webapp/index.html - src/main/webapp/WEB-INF/jsp/home.jsp - src/main/webapp/WEB-INF/jsp/layout.jsp - src/main/webapp/WEB-INF/jsp/taglibs.jsp - src/main/webapp/WEB-INF/web.composite - src/main/webapp/WEB-INF/web.xml - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-stripes/src/main/resources/archetype-resources/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-stripes/src/main/resources/archetype-resources/pom.xml deleted file mode 100644 index 2b1179d02b..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-stripes/src/main/resources/archetype-resources/pom.xml +++ /dev/null @@ -1,124 +0,0 @@ - - - - - 4.0.0 - ${groupId} - ${artifactId} - war - ${version} - #literal() - quickstart-stripes - - - - - - - org.apache.tuscany.sca - tuscany-sca-api - ${tuscany.version} - - - org.apache.tuscany.sca - tuscany-stripes - ${tuscany.version} - - - - - net.sourceforge.stripes - stripes - ${stripes.version} - - - taglibs - standard - 1.1.2 - - - - - - install - ${artifactId} - - - false - src/main/resources - - - false - src/main/java - - ** - - - **/*.java - - - - - - false - src/test/java - - ** - - - **/*.java - - - - - - true - org.apache.maven.plugins - maven-compiler-plugin - - 1.5 - 1.5 - true - true - - - - org.mortbay.jetty - maven-jetty-plugin - ${jetty.version} - - - org.apache.maven.plugins - maven-eclipse-plugin - - true - - - - - - 2.0-M5 - 1.5.2 - 6.1.4 - - #end - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-stripes/src/main/resources/archetype-resources/src/main/java/sca/HelloworldService.java b/sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-stripes/src/main/resources/archetype-resources/src/main/java/sca/HelloworldService.java deleted file mode 100644 index d6cb7bbcf2..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-stripes/src/main/resources/archetype-resources/src/main/java/sca/HelloworldService.java +++ /dev/null @@ -1,28 +0,0 @@ -#set( $symbol_pound = '#' ) -#set( $symbol_dollar = '$' ) -#set( $symbol_escape = '\' ) -/* - * 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 ${package}.sca; - -public interface HelloworldService { - - String sayHello(String name); - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-stripes/src/main/resources/archetype-resources/src/main/java/sca/HelloworldServiceImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-stripes/src/main/resources/archetype-resources/src/main/java/sca/HelloworldServiceImpl.java deleted file mode 100644 index 390b424d24..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-stripes/src/main/resources/archetype-resources/src/main/java/sca/HelloworldServiceImpl.java +++ /dev/null @@ -1,31 +0,0 @@ -#set( $symbol_pound = '#' ) -#set( $symbol_dollar = '$' ) -#set( $symbol_escape = '\' ) -/* - * 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 ${package}.sca; - - -public class HelloworldServiceImpl implements HelloworldService { - - public String sayHello(String name) { - return "Hello " + name; - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-stripes/src/main/resources/archetype-resources/src/main/java/stripes/action/BaseActionBean.java b/sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-stripes/src/main/resources/archetype-resources/src/main/java/stripes/action/BaseActionBean.java deleted file mode 100644 index 5bfa1c5d32..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-stripes/src/main/resources/archetype-resources/src/main/java/stripes/action/BaseActionBean.java +++ /dev/null @@ -1,36 +0,0 @@ -#set( $symbol_pound = '#' ) -#set( $symbol_dollar = '$' ) -#set( $symbol_escape = '\' ) -/* - * 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 ${package}.stripes.action; - -import net.sourceforge.stripes.action.ActionBean; -import net.sourceforge.stripes.action.ActionBeanContext; - -public class BaseActionBean implements ActionBean { - private ActionBeanContext context; - - public ActionBeanContext getContext() { - return context; - } - public void setContext(ActionBeanContext context) { - this.context = context; - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-stripes/src/main/resources/archetype-resources/src/main/java/stripes/action/HomeActionBean.java b/sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-stripes/src/main/resources/archetype-resources/src/main/java/stripes/action/HomeActionBean.java deleted file mode 100644 index 05fd743841..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-stripes/src/main/resources/archetype-resources/src/main/java/stripes/action/HomeActionBean.java +++ /dev/null @@ -1,48 +0,0 @@ -#set( $symbol_pound = '#' ) -#set( $symbol_dollar = '$' ) -#set( $symbol_escape = '\' ) -/* - * 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 ${package}.stripes.action; - -import net.sourceforge.stripes.action.DefaultHandler; -import net.sourceforge.stripes.action.ForwardResolution; -import net.sourceforge.stripes.action.Resolution; -import net.sourceforge.stripes.action.UrlBinding; - -import org.oasisopen.sca.annotation.Reference; - -import ${package}.sca.HelloworldService; - -@UrlBinding("/Home.htm") -public class HomeActionBean extends BaseActionBean { - - @Reference - HelloworldService service; - - @DefaultHandler - public Resolution view() { - return new ForwardResolution("/WEB-INF/jsp/home.jsp"); - } - - public String getHello() { - return service.sayHello("world"); - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-stripes/src/main/resources/archetype-resources/src/main/resources/StripesResources.properties b/sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-stripes/src/main/resources/archetype-resources/src/main/resources/StripesResources.properties deleted file mode 100644 index 6567f21ce1..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-stripes/src/main/resources/archetype-resources/src/main/resources/StripesResources.properties +++ /dev/null @@ -1,77 +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. -# - -#set( $symbol_pound = '#' ) -#set( $symbol_dollar = '$' ) -#set( $symbol_escape = '\' ) - -${symbol_pound} Resource strings used by the tag when there are no nested tags -stripes.errors.header=

Please fix the following errors:
    -stripes.errors.beforeError=
  1. -stripes.errors.afterError=
  2. -stripes.errors.footer=
- -${symbol_pound} Resource strings used by the tag when displaying errors for a -${symbol_pound} specific field (e.g. ). If not supplied the -${symbol_pound} values above will be used instead. -stripes.fieldErrors.header= -stripes.fieldErrors.beforeError= -stripes.fieldErrors.afterError=
-stripes.fieldErrors.footer= - -${symbol_pound} Resource strings used by the stripes:messages tag -stripes.messages.header=
    -stripes.messages.beforeMessage=
  • -stripes.messages.afterMessage=
  • -stripes.messages.footer=
- -${symbol_pound} Validation error messages produced by Stripes' built-in converter classes. These -${symbol_pound} are default error messages and can be overridden on per-field and per-form levels. -${symbol_pound} Using the 'invalidNumber' error for a field 'age' of a form posting to -${symbol_pound} '/user/Profile.action', the keys looked for (in order) would be: -${symbol_pound} 1: /user/Profile.action.age.invalidNumber -${symbol_pound} 2: /user/Profile.action.age.errorMessage -${symbol_pound} 3: age.errorMessage -${symbol_pound} 4: /user/Profile.action.invalidNumber -${symbol_pound} 5: converter.number.invalidNumber -converter.number.invalidNumber=The value ({1}) entered in field {0} must be a valid number -converter.byte.outOfRange=The value ({1}) entered in field {0} was out of the range {2} to {3} -converter.short.outOfRange=The value ({1}) entered in field {0} was out of the range {2} to {3} -converter.integer.outOfRange=The value ({1}) entered in field {0} was out of the range {2} to {3} -converter.float.outOfRange=The value ({1}) entered in field {0} was out of the range {2} to {3} -converter.enum.notAnEnumeratedValue=The value "{1}" is not a valid value for field {0} -converter.date.invalidDate=The value ({1}) entered in field {0} must be a valid date -converter.email.invalidEmail=The value ({1}) entered is not a valid email address -converter.creditCard.invalidCreditCard=The value ({1}) entered is not a valid credit card number - -${symbol_pound} Validation error messages produced by Stripes' annotation based validations. These -${symbol_pound} are default error messages and can be overridden on per-field and per-form levels. -${symbol_pound} Using the 'valueNotPresent' required field error for a field 'username' of a form -${symbol_pound} posting to '/user/Register.action', the keys looked for (in order) would be: -${symbol_pound} 1: /user/Register.action.username.valueNotPresent -${symbol_pound} 2: /user/Register.action.username.errorMessage -${symbol_pound} 3: username.errorMessage -${symbol_pound} 4: /user/Register.action.valueNotPresent -${symbol_pound} 5: validation.required.valueNotPresent -validation.required.valueNotPresent={0} is a required field -validation.minlength.valueTooShort={0} must be at least {2} characters long -validation.maxlength.valueTooLong={0} must be no more than {2} characters long -validation.minvalue.valueBelowMinimum=The minimum allowed value for {0} is {2} -validation.maxvalue.valueAboveMaximum=The maximum allowed value for {0} is {2} -validation.mask.valueDoesNotMatch={1} is not a valid {0} -validation.expression.valueFailedExpression=The value supplied ({1}) for field {0} is invalid -validation.file.postBodyTooBig=Total upload size of {3} KB exceeds the maximum size of {2} KB diff --git a/sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-stripes/src/main/resources/archetype-resources/src/main/resources/log4j.properties b/sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-stripes/src/main/resources/archetype-resources/src/main/resources/log4j.properties deleted file mode 100644 index e2fd1997c8..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-stripes/src/main/resources/archetype-resources/src/main/resources/log4j.properties +++ /dev/null @@ -1,51 +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. -# - -#set( $symbol_pound = '#' ) -#set( $symbol_dollar = '$' ) -#set( $symbol_escape = '\' ) -${symbol_pound} log4j.properties - -${symbol_pound} Set up a logger to the console -log4j.appender.stdout=org.apache.log4j.ConsoleAppender -log4j.appender.stdout.layout=org.apache.log4j.PatternLayout -log4j.appender.stdout.layout.ConversionPattern=[%d{HH:mm:ss}] %-5p %c %x - %m%n - -${symbol_pound} Use this to only see log messages beyond a certain threshold in the console -${symbol_pound}log4j.appender.stdout.Threshold=WARN - -${symbol_pound} Set up a logger to a log file -log4j.appender.logfile=org.apache.log4j.DailyRollingFileAppender -log4j.appender.logfile.layout=org.apache.log4j.PatternLayout -log4j.appender.logfile.layout.ConversionPattern=[%d{HH:mm:ss}] %-5p %c %x - %m%n -log4j.appender.logfile.File=${symbol_dollar}{user.home}/stripesquick.log -log4j.appender.logfile.DatePattern='.'yyyy-MM-dd - -${symbol_pound} Use this to only see log messages beyond a certain threshold in the log file -${symbol_pound}log4j.appender.logfile.Threshold=WARN - -${symbol_pound} Logger settings -log4j.rootLogger=INFO, stdout, logfile - -${symbol_pound} Valid levels are TRACE, DEBUG, INFO, WARN, ERROR, FATAL -${symbol_pound} Change to TRACE or DEBUG to see more log messages -log4j.logger.net.sourceforge.stripes=WARN -log4j.logger.org.stripesbook.quickstart=INFO -log4j.logger.org.mortbay.log=INFO -log4j.logger.org=WARN -log4j.logger.com=WARN -log4j.logger.net=WARN diff --git a/sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-stripes/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/jsp/home.jsp b/sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-stripes/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/jsp/home.jsp deleted file mode 100644 index 59cdacfe23..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-stripes/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/jsp/home.jsp +++ /dev/null @@ -1,29 +0,0 @@ -#set( $symbol_pound = '#' ) -#set( $symbol_dollar = '$' ) -#set( $symbol_escape = '\' ) -<%-- - * 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. ---%> -<%@ include file="/WEB-INF/jsp/taglibs.jsp" %> - - - -

sayHello returns: ${symbol_dollar}{actionBean.hello}

-

Congratulations, you've set up a Stripes SCA project!

-
-
diff --git a/sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-stripes/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/jsp/layout.jsp b/sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-stripes/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/jsp/layout.jsp deleted file mode 100644 index 0964d2fb7b..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-stripes/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/jsp/layout.jsp +++ /dev/null @@ -1,42 +0,0 @@ -#set( $symbol_pound = '#' ) -#set( $symbol_dollar = '$' ) -#set( $symbol_escape = '\' ) -<%-- - * 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. ---%> -<%@ include file="/WEB-INF/jsp/taglibs.jsp" %> - - - - - - - ${symbol_dollar}{title} - - - - - -
- - -
- - - -
\ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-stripes/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/jsp/taglibs.jsp b/sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-stripes/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/jsp/taglibs.jsp deleted file mode 100644 index 6452b1bd9c..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-stripes/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/jsp/taglibs.jsp +++ /dev/null @@ -1,32 +0,0 @@ -#set( $symbol_pound = '#' ) -#set( $symbol_dollar = '$' ) -#set( $symbol_escape = '\' ) -<%-- - * 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. ---%> -<%-- Stripes TLD --%> -<%@ taglib prefix="s" uri="http://stripes.sourceforge.net/stripes.tld" %> -<%@ taglib prefix="sdyn" uri="http://stripes.sourceforge.net/stripes-dynattr.tld" %> - -<%-- JSTL TLDs --%> -<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> -<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %> -<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %> - -<%-- This is so that you can conveniently refer to the context path with ${symbol_dollar}{contextPath} --%> - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-stripes/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.composite b/sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-stripes/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.composite deleted file mode 100644 index f98b7f2721..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-stripes/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.composite +++ /dev/null @@ -1,34 +0,0 @@ - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-stripes/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml b/sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-stripes/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml deleted file mode 100644 index d73e7311d6..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-stripes/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml +++ /dev/null @@ -1,68 +0,0 @@ -#set( $symbol_pound = '#' ) -#set( $symbol_dollar = '$' ) -#set( $symbol_escape = '\' ) - - - - - ${artifactId} - - - org.apache.tuscany.sca.host.webapp.TuscanyContextListener - - - - StripesFilter - net.sourceforge.stripes.controller.StripesFilter - - ActionResolver.Packages - ${package}.stripes.action - - - Extension.Packages - org.apache.tuscany.sca.stripes - - - - - DispatcherServlet - net.sourceforge.stripes.controller.DispatcherServlet - 1 - - - - StripesFilter - DispatcherServlet - REQUEST - FORWARD - - - - DispatcherServlet - *.htm - - - - index.html - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-stripes/src/main/resources/archetype-resources/src/main/webapp/index.html b/sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-stripes/src/main/resources/archetype-resources/src/main/webapp/index.html deleted file mode 100644 index a350f1e68a..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart-stripes/src/main/resources/archetype-resources/src/main/webapp/index.html +++ /dev/null @@ -1,27 +0,0 @@ -#set( $symbol_pound = '#' ) -#set( $symbol_dollar = '$' ) -#set( $symbol_escape = '\' ) - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart/META-INF/MANIFEST.MF b/sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart/META-INF/MANIFEST.MF deleted file mode 100644 index 29e03eb396..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart/META-INF/MANIFEST.MF +++ /dev/null @@ -1,11 +0,0 @@ -Manifest-Version: 1.0 -Bundle-Name: Apache Tuscany SCA Quickstart Archetype -Created-By: 1.6.0_07 (Sun Microsystems Inc.) -Bundle-Vendor: The Apache Software Foundation -Bundle-Version: 2.0.0 -Bundle-ManifestVersion: 2 -Bundle-License: http://www.apache.org/licenses/LICENSE-2.0.txt -Bundle-Description: Apache Tuscany SCA Quickstart Archetype -Bundle-SymbolicName: org.apache.tuscany.sca.archetype.quickstart -Bundle-DocURL: http://www.apache.org/ -Bundle-RequiredExecutionEnvironment: J2SE-1.5,JavaSE-1.6 diff --git a/sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart/pom.xml deleted file mode 100644 index 216ed18163..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart/pom.xml +++ /dev/null @@ -1,50 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-sca - 2.0-M5 - ../../pom.xml - - - tuscany-quickstart - maven-archetype - Create a simple Apache Tuscany SCA webapp project - - - - - org.apache.maven.archetype - archetype-packaging - 2.0-alpha-4 - - - - - maven-archetype-plugin - 2.0-alpha-4 - true - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart/src/main/resources/META-INF/maven/archetype-metadata.xml b/sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart/src/main/resources/META-INF/maven/archetype-metadata.xml deleted file mode 100644 index c132fa0364..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart/src/main/resources/META-INF/maven/archetype-metadata.xml +++ /dev/null @@ -1,42 +0,0 @@ - - - - - - Y - - - - - src/main/java - - **/*.java - - - - src/main/webapp - - **/*.jsp - **/*.xml - **/*.composite - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart/src/main/resources/META-INF/maven/archetype.xml b/sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart/src/main/resources/META-INF/maven/archetype.xml deleted file mode 100644 index 7794570626..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart/src/main/resources/META-INF/maven/archetype.xml +++ /dev/null @@ -1,31 +0,0 @@ - - - - tuscany-quickstart - - src/main/java/HelloworldImpl.java - src/main/java/HelloworldService.java - - - src/main/webapp/hello.jsp - src/main/webapp/WEB-INF/web.composite - src/main/webapp/WEB-INF/web.xml - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart/src/main/resources/archetype-resources/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart/src/main/resources/archetype-resources/pom.xml deleted file mode 100644 index b7cec4cc0b..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart/src/main/resources/archetype-resources/pom.xml +++ /dev/null @@ -1,143 +0,0 @@ - - - - - 4.0.0 - ${groupId} - ${artifactId} - war - ${version} - quickstart - - - - - org.apache.tuscany.sca - tuscany-sca-api - ${tuscany.version} -#if(${includeTuscanyRuntime} == "Y") - compile -#else - provided -#end - - - - org.apache.tuscany.sca - tuscany-implementation-web-runtime - ${tuscany.version} -#if( $includeTuscanyRuntime == "Y") - runtime -#else - provided -#end - - - - - junit - junit - 4.8.1 - test - - - - - org.mortbay.jetty - jetty - ${jetty.version} - provided - - - org.mortbay.jetty - jetty-util - ${jetty.version} - provided - - - org.mortbay.jetty - jetty-management - ${jetty.version} - provided - - - - install - ${artifactId} - - - false - src/main/resources - - - false - src/main/java - - ** - - - **/*.java - - - - - - false - src/test/java - - ** - - - **/*.java - - - - - - true - org.apache.maven.plugins - maven-compiler-plugin - - 1.5 - 1.5 - true - true - - - - org.mortbay.jetty - maven-jetty-plugin - ${jetty.version} - - - org.apache.maven.plugins - maven-eclipse-plugin - - true - - - - - - 2.0-M5 - 6.1.18 - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart/src/main/resources/archetype-resources/src/main/java/HelloworldImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart/src/main/resources/archetype-resources/src/main/java/HelloworldImpl.java deleted file mode 100644 index df80303778..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart/src/main/resources/archetype-resources/src/main/java/HelloworldImpl.java +++ /dev/null @@ -1,27 +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 ${package}; - -public class HelloworldImpl implements HelloworldService { - - public String sayHello(String name) { - return "Hello " + name; - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart/src/main/resources/archetype-resources/src/main/java/HelloworldService.java b/sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart/src/main/resources/archetype-resources/src/main/java/HelloworldService.java deleted file mode 100644 index 47501efb9a..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart/src/main/resources/archetype-resources/src/main/java/HelloworldService.java +++ /dev/null @@ -1,25 +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 ${package}; - -public interface HelloworldService { - - String sayHello(String name); - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.composite b/sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.composite deleted file mode 100644 index 8d840b7867..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.composite +++ /dev/null @@ -1,34 +0,0 @@ - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml b/sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml deleted file mode 100644 index a7c7d2251e..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml +++ /dev/null @@ -1,43 +0,0 @@ - - - - - ${artifactId} - -#if($includeTuscanyRuntime == "Y") - - tuscany.${artifactId} - org.apache.tuscany.sca.host.webapp.TuscanyServletFilter - - - - tuscany.${artifactId} - /* - - -#end - - hello.jsp - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart/src/main/resources/archetype-resources/src/main/webapp/hello.jsp b/sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart/src/main/resources/archetype-resources/src/main/webapp/hello.jsp deleted file mode 100644 index 9729ca6823..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/archetypes/quickstart/src/main/resources/archetype-resources/src/main/webapp/hello.jsp +++ /dev/null @@ -1,36 +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. ---%> -<%@ page contentType="text/html;charset=UTF-8" language="java" %> -<%@ taglib uri="http://www.osoa.org/sca/sca_jsp.tld" prefix="sca" %> - - - - - - -

${artifactId}

- - Calling HelloworldService sayHello("world") returns: - -

- - <%= service.sayHello("world") %> - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/compliance-tests/assembly/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/compliance-tests/assembly/pom.xml deleted file mode 100644 index a50a9e2802..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/compliance-tests/assembly/pom.xml +++ /dev/null @@ -1,126 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-compliance-tests - 2.0-M5 - ../pom.xml - - tuscany-compliance-test-assembly - Apache Tuscany SCA Specification Compliance Tests Assembly - - - - - - - org.apache.tuscany.sca - oasis-assembly-test-runner - 1.0-SNAPSHOT - - - - org.apache.tuscany.sca.shades - tuscany-base - 2.0-M5 - - - - - org.codehaus.woodstox - wstx-asl - 3.2.4 - runtime - - - stax - stax-api - - - - - - junit - junit - 4.5 - test - - - - - - ${artifactId} - - - - org.apache.maven.plugins - maven-surefire-plugin - - - - **/ASM_10002_TestCase.java - - - **/ASM_13004_TestCase.java - - - - - - - - org.apache.maven.plugins - maven-dependency-plugin - - - unpack - test-compile - - unpack - - - - - org.apache.tuscany.sca - oasis-assembly-contributions - 1.0-SNAPSHOT - zip - ${project.build.directory}/oasis-contributions - - - org.apache.tuscany.sca - oasis-assembly-test-runner - 1.0-SNAPSHOT - jar - commons-logging.properties,oasis-sca-tests.properties - ${project.build.directory}/test-classes - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/compliance-tests/assembly/src/test/java/org/apache/tuscany/sca/otest/TuscanyRuntimeBridge.java b/sca-java-2.x/tags/2.0-M5-RC3/compliance-tests/assembly/src/test/java/org/apache/tuscany/sca/otest/TuscanyRuntimeBridge.java deleted file mode 100644 index 9431fee034..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/compliance-tests/assembly/src/test/java/org/apache/tuscany/sca/otest/TuscanyRuntimeBridge.java +++ /dev/null @@ -1,231 +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 org.apache.tuscany.sca.otest; - -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.fail; - -import java.io.BufferedWriter; -import java.io.File; -import java.io.FileWriter; -import java.io.IOException; -import java.io.InputStream; -import java.util.Properties; - -import org.apache.tuscany.sca.node.Contribution; -import org.apache.tuscany.sca.node.ContributionLocationHelper; -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; - -import client.RuntimeBridge; -import client.TestConfiguration; - -/** - * An implementation of the Runtime Bridge for the Apache Tuscany SCA runtime (version 2.x) - * - */ -public class TuscanyRuntimeBridge implements RuntimeBridge { - - static final String CONTRIBUTION_LOCATION_PROPKEY = "OASIS_TESTENV_CONTRIBUTION_LOCATION"; - - protected NodeFactory launcher; - protected Node node; - protected Properties expectedErrorMessages; - - TestConfiguration testConfiguration = null; - - public TuscanyRuntimeBridge() { - // read test error mapping - expectedErrorMessages = new Properties(); - try { - InputStream propertiesStream = this.getClass().getResourceAsStream("/tuscany-oasis-sca-tests-errors.properties"); - expectedErrorMessages.load(propertiesStream); - } catch (IOException e) { - System.out.println("Unable to read oasis-sca-tests-errors.properties file"); - } - } - - public TestConfiguration getTestConfiguration() { - return testConfiguration; - } - - public void setTestConfiguration(TestConfiguration testConfiguration) { - this.testConfiguration = testConfiguration; - } - - public boolean startContribution(String contributionLocation, String[] contributionNames) throws Exception { - try { - // Tuscany specific code which starts the contribution(s) holding the test - Properties ps = new Properties(); - ps.setProperty("defaultScheme", "vm"); - ps.setProperty("org.apache.tuscany.sca.binding.ws.jaxws.ri.JAXWSBindingProviderFactory.defaultPort", "8080"); - launcher = NodeFactory.newInstance(ps); - - Contribution[] contributions = new Contribution[contributionNames.length]; - String[] contributionURIs = getContributionURIs(contributionLocation); - for (int i = 0; i < contributions.length; i++) { - contributions[i] = new Contribution(contributionNames[i], contributionURIs[i]); - } // end for - - node = launcher.createNode(testConfiguration.getComposite(), contributions); - // Start the node - node.start(); - - // For debugging - // print out the composites that have been read in success cases - // System.out.println(((NodeImpl)node).dumpDomainComposite()); - } catch (Exception e) { - System.out.println(e.getMessage()); - e.printStackTrace(); - throw e; - } // end try - - return true; - } // end method startContribution - - /** - * Gets the location of the Contributions as URIs - * @param contributionLocation - a location pattern URI, which contains one or more "%1" - * substrings, which are substituted with the name of the contribution to get the URI of - * the contribution - * @return the contribution locations as an array of Strings - */ - protected String[] getContributionURIs(String contributionLocation) throws Exception { - String[] locations; - locations = testConfiguration.getContributionNames(); - - if (locations != null && contributionLocation != null) { - - for (int i = 0; i < locations.length; i++) { - String aLocation = contributionLocation.replaceAll("%1", locations[i]); - // Looks like bugs in the oasis code that sometimes still uses jars for some - if (aLocation.endsWith("_Java-1.0.zip") && !aLocation.endsWith("ASM_8005_Java-1.0.zip")) { - aLocation = aLocation.substring(0, aLocation.length()-3) + "jar"; - } - if (!(new File(aLocation)).exists()) { - aLocation = aLocation.replace(".zip", ".jar"); - } - locations[i] = aLocation; - } // end for - } else { - if (locations == null) { - // No contribution specified - throw an Exception - throw new Exception("Unable to start SCA runtime - no contribution supplied - error"); - } else { - // No contribution location supplied - throw an Exception - throw new Exception("Unable to start SCA runtime - no contribution location supplied - error"); - } // end if - } // end if - - return locations; - } // end getContributionURI - - public void stopContribution() { - if (node != null) { - node.stop(); - } // end if - if (launcher != null) { - launcher.destroy(); - } // end if - } // end method stopContribution - - public String getContributionLocation(Class testClass) { - return ContributionLocationHelper.getContributionLocation(testConfiguration.getTestClass()); - } // end method getContributionLocation - - public void checkError(String testName, Throwable ex) throws Throwable { - - String expectedMessage = expectedErrorMessages.getProperty(testName); - String receivedMessage = ex.getMessage(); - - if (expectedMessage == null){ - writeMissingMessage(testName, ex); - fail("Null expected error message for test " + testName + - "Please add message to oasis-sca-tests-errors.properties"); - } // end if - - if (receivedMessage == null){ - ex.printStackTrace(); - fail("Null received error message for test " + testName); - } // end if - - if (expectedMessage.startsWith("*")) { - // allow using * to ignore a message comparison - return; - } - - // Deal with the case where the message has variable parts within it - // marked with the characters ***. Here we tokenize the epected string - // and make sure all the individual parts are present in the results string - String expectedMessageParts[] = expectedMessage.split("\\*\\*\\*"); - - if (expectedMessageParts.length > 1){ - int foundParts = 0; - for(int i = 0; i < expectedMessageParts.length; i++){ - if (receivedMessage.indexOf(expectedMessageParts[i]) > -1 ){ - foundParts++; - } - } - - if (foundParts == expectedMessageParts.length){ - return; - } - } - - - // Deal with the case where the end of the message is variable (eg contains absolute filenames) - // and where the only relevant part is the start of the message - in this case the expected - // message only contains the stem section which is unchanging... - if( receivedMessage.length() > expectedMessage.length() ) { - // Truncate the received message to the length of the expected message - receivedMessage = receivedMessage.substring(0, expectedMessage.length() ); - } // end if - - if (!expectedMessage.equals(receivedMessage)) { - writeIncorrectMessage(testName, expectedMessage, receivedMessage); - } - - assertEquals( expectedMessage, receivedMessage ); - - return; - - } - - protected void writeMissingMessage(String testName, Throwable ex) { - try { - BufferedWriter out = new BufferedWriter(new FileWriter("target/OTestMissingMsgs.txt", true)); - out.write(testName + "=*"); - out.newLine(); - out.close(); - } catch (IOException e) { - } - } - - protected void writeIncorrectMessage(String testName, String expected, String received) { - try { - BufferedWriter out = new BufferedWriter(new FileWriter("target/OTestIncorrectMsgs.txt", true)); - out.write(testName); out.newLine(); - out.write(" " + expected); out.newLine(); - out.write(" " + received); out.newLine(); - out.close(); - } catch (IOException e) { - } - } - -} // end class TuscanyRuntimeBridge diff --git a/sca-java-2.x/tags/2.0-M5-RC3/compliance-tests/assembly/src/test/resources/oasis-sca-tests.properties b/sca-java-2.x/tags/2.0-M5-RC3/compliance-tests/assembly/src/test/resources/oasis-sca-tests.properties deleted file mode 100644 index 0d8cc27a45..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/compliance-tests/assembly/src/test/resources/oasis-sca-tests.properties +++ /dev/null @@ -1,30 +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. - -# OASIS SCA Assembly test properties -# The implementation type to use for Assembly test suite -# org.oasis.sca.tests.assembly.lang=BPEL -org.oasis.sca.tests.assembly.lang=Java - -# The class to use as the Runtime Bridge for the SCA runtime under test -#org.oasis.sca.tests.assembly.runtime_bridge=org.apache.tuscany.sca.otest.TuscanyOSGiRuntimeBridge -org.oasis.sca.tests.assembly.runtime_bridge=org.apache.tuscany.sca.otest.TuscanyRuntimeBridge - -# The location of the contributions for the test suite -# %1 represents the placement of the name of each contribution into the location URI -org.oasis.sca.tests.assembly.contribution.location=target/oasis-contributions/%1.zip - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/compliance-tests/assembly/src/test/resources/tuscany-oasis-sca-tests-errors.properties b/sca-java-2.x/tags/2.0-M5-RC3/compliance-tests/assembly/src/test/resources/tuscany-oasis-sca-tests-errors.properties deleted file mode 100644 index 630361751a..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/compliance-tests/assembly/src/test/resources/tuscany-oasis-sca-tests-errors.properties +++ /dev/null @@ -1,94 +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. - -ASM_4002=org.oasisopen.sca.ServiceRuntimeException: [Composite: {http://docs.oasis-open.org/ns/opencsa/sca/200912}, Component: TestComponent1] - [ASM40003,ASM60003,JCA90045] Duplicate implementation service name: Component = TestComponent1 Service = Service1 -ASM_4003=org.oasisopen.sca.ServiceRuntimeException: [Composite: {http://docs.oasis-open.org/ns/opencsa/sca/200912}, Component: TestComponent1] - [ASM40004,ASM50007,ASM60006] Duplicate implementation reference name: Component = TestComponent1 Reference = Reference1 -ASM_4004=org.oasisopen.sca.ServiceRuntimeException: [Composite: {http://docs.oasis-open.org/ns/opencsa/sca/200912}, Component: TestComponent1] - [ASM40005,ASM60014] Duplicate implementation property name: Component = TestComponent1 Property = propertyName -ASM_4007=org.apache.tuscany.sca.contribution.processor.ContributionReadException: [ASM40010,ASM60040] Error: property has both @type and @element attribute values - propertyName -ASM_4008=org.oasisopen.sca.ServiceRuntimeException: [Composite: {http://docs.oasis-open.org/ns/opencsa/sca/200912}, Component: TestComponent1] - [ASM40011,ASM60034] No value configured on a mustSupply property: Component = TestComponent1 Property = propertyName -ASM_5004=org.oasisopen.sca.ServiceRuntimeException: [Composite: {http://docs.oasis-open.org/ns/opencsa/sca/200912}, Component: TestClient] - [ASM50022] Too many targets on reference: reference1 -ASM_5005=org.oasisopen.sca.ServiceRuntimeException: [Composite: {http://docs.oasis-open.org/ns/opencsa/sca/200912}, Component: Test_ASM_5005Component1] - [ASM40003,ASM60003,JCA90045] Duplicate implementation service name: Component = Test_ASM_5005Component1 Service = Service1 -ASM_5006=org.oasisopen.sca.ServiceRuntimeException: [Composite: {http://docs.oasis-open.org/ns/opencsa/sca/200912}, Component: TestComponent1] - Component type service not found for component service (missing @Remotable annotation?): Component = TestComponent1 Service = InvalidName -ASM_5007=org.oasisopen.sca.ServiceRuntimeException: [Composite: {http://docs.oasis-open.org/ns/opencsa/sca/200912}, Component: Test_ASM_5007Component1] - [ASM40004,ASM50007,ASM60006] Duplicate implementation reference name: Component = Test_ASM_5007Component1 Reference = Reference1 -ASM_5008=org.oasisopen.sca.ServiceRuntimeException: [Composite: {http://docs.oasis-open.org/ns/opencsa/sca/200912}, Component: TestComponent1] - [ASM50008] Component type reference not found for component reference: Component = TestComponent1 Reference = InvalidName -ASM_5009=org.oasisopen.sca.ServiceRuntimeException: [Composite: {http://docs.oasis-open.org/ns/opencsa/sca/200912}] - [ASM50001] Duplicate component name: Composite = {http://docs.oasis-open.org/ns/opencsa/sca/200912} Component = TestComponent1 -ASM_5010=org.oasisopen.sca.ServiceRuntimeException: [Composite: {http://docs.oasis-open.org/ns/opencsa/sca/200912}, Component: TestComponent1] - [ASM50004,JCA30002,JCI80001] Component service interface incompatible with implementation service interface: Component = TestComponent1 Service = Service1 -ASM_5014=org.oasisopen.sca.ServiceRuntimeException: [Composite: {http://docs.oasis-open.org/ns/opencsa/sca/200912}, Component: TestComponent1] - [ASM50009] Component reference multiplicity incompatible with reference multiplicity: Component = TestComponent1 Reference = Reference1 -ASM_5023=org.oasisopen.sca.ServiceRuntimeException: [Composite: {http://docs.oasis-open.org/ns/opencsa/sca/200912}, Component: TestComponent1, Composite: {http://docs.oasis-open.org/ns/opencsa/scatests/200903}TestComposite11, Component: Composite11Component1, Composite: {http://docs.oasis-open.org/ns/opencsa/scatests/200903}TestComposite4, Component: Composite4Component1] - [ASM50022] Too many targets on reference: reference1 -ASM_5024=org.oasisopen.sca.ServiceRuntimeException: [Composite: {http://docs.oasis-open.org/ns/opencsa/sca/200912}, Component: TestComponent1, Reference: Reference1] - [ASM50026] Composite {http://docs.oasis-open.org/ns/opencsa/sca/200912} Component TestComponent1 Reference Reference1 must not specify endpoints using both target attribute and with a binding child element -ASM_5027=org.oasisopen.sca.ServiceRuntimeException: [Composite: {http://docs.oasis-open.org/ns/opencsa/sca/200912}, Component: TestComponent1] - Duplicate component property name: Component = TestComponent1 Property = serviceName -ASM_5028=org.oasisopen.sca.ServiceRuntimeException: [Composite: {http://docs.oasis-open.org/ns/opencsa/sca/200912}, Component: TestComponent1] - [ASM50031] Property not found for component property: Component = TestComponent1 Property = randomName -ASM_5029=org.oasisopen.sca.ServiceRuntimeException: [Composite: {http://docs.oasis-open.org/ns/opencsa/sca/200912}, Component: TestComponent1] - [ASM50032] The property component TestComponent1 property complexType has many values but its "many" attribute is set to false -ASM_5030=org.oasisopen.sca.ServiceRuntimeException: [Contribution: ASM_5030, Artifact: Test_ASM_5030.composite] - ASM50033: value attribute exists for the property element -ASM_5035=org.apache.tuscany.sca.contribution.processor.ContributionReadException: [ASM40010,ASM60040] Error: property has both @type and @element attribute values - complexType -ASM_5036=org.oasisopen.sca.ServiceRuntimeException: [Composite: {http://docs.oasis-open.org/ns/opencsa/sca/200912}, Component: TEST_ASM_5036Component1] - [ASM_5036] The property component TEST_ASM_5036Component1 property complexType has XSD type {http://docs.oasis-open.org/ns/opencsa/scatests/200903}ComplexType2 while its component type property has the XSD type {http://docs.oasis-open.org/ns/opencsa/scatests/200903}ComplexType1 -ASM_5037=org.oasisopen.sca.ServiceRuntimeException: [Composite: {http://docs.oasis-open.org/ns/opencsa/sca/200912}, Component: TEST_ASM_5037Component1] - [ASM50031] Property not found for component property: Component = TEST_ASM_5037Component1 Property = bogusName -ASM_5038=org.oasisopen.sca.ServiceRuntimeException: [Composite: {http://docs.oasis-open.org/ns/opencsa/sca/200912}, Component: TEST_ASM_5038Component1] - [ASM50027] The property serviceData1 on component TEST_ASM_5038Component1 has a value which does not match the simple type {http://www.w3.org/2001/XMLSchema}float with which it is associated -ASM_5039=org.oasisopen.sca.ServiceRuntimeException: [Composite: {http://docs.oasis-open.org/ns/opencsa/sca/200912}, Component: TEST_ASM_5039Component1] - [ASM50038] The property complexType on component TEST_ASM_5039Component1 has a value which does not match the complex type {http://docs.oasis-open.org/ns/opencsa/scatests/200903}ComplexType1 with which it is associated. Validation reported cvc-complex-type.2.4.d: Invalid content was found starting with element 'test:thirdData'. No child element is expected at this point. -ASM_5040=org.oasisopen.sca.ServiceRuntimeException: [Composite: {http://docs.oasis-open.org/ns/opencsa/sca/200912}, Component: TEST_ASM_5040Component1, Composite: {http://docs.oasis-open.org/ns/opencsa/scatests/200903}TestComposite74] - [ASM50042] Composite reference promotes component reference with 1..1 multiplicity and nonOverridable flag set true: Composite = TestComposite74.composite Composite reference = Reference1 Component reference = Reference1 -ASM_6001=org.oasisopen.sca.ServiceRuntimeException: [Contribution: ASM_6001, Artifact: TestDuplicate1.composite] - [ASM_6001] More than one composite with the same name {http://docs.oasis-open.org/ns/opencsa/scatests/200903}DuplicateComposite found in contribution -ASM_6002=org.oasisopen.sca.ServiceRuntimeException: [Composite: {http://docs.oasis-open.org/ns/opencsa/sca/200912}, Component: TestComponent1] - [ASM40003,ASM60003,JCA90045] Duplicate implementation service name: Component = TestComponent1 Service = Service1 -ASM_6003=org.oasisopen.sca.ServiceRuntimeException: [Composite: {http://docs.oasis-open.org/ns/opencsa/sca/200912}, Component: TestComponent1, Composite: {http://docs.oasis-open.org/ns/opencsa/scatests/200903}TestComposite17] - [ASM60004,ASM60032] Promoted component service not found: Composite = {http://docs.oasis-open.org/ns/opencsa/scatests/200903}TestComposite17 Service = SpuriousComponent/SpuriousService -ASM_6005=org.oasisopen.sca.ServiceRuntimeException: [Composite: {http://docs.oasis-open.org/ns/opencsa/sca/200912}, Component: TestComponent1] - [ASM40004,ASM50007,ASM60006] Duplicate implementation reference name: Component = TestComponent1 Reference = Reference1 -ASM_6006=org.oasisopen.sca.ServiceRuntimeException: [Composite: {http://docs.oasis-open.org/ns/opencsa/sca/200912}, Component: TestComponent1, Composite: {http://docs.oasis-open.org/ns/opencsa/scatests/200903}TestComposite20] - [ASM60007] Promoted component reference not found: Composite = {http://docs.oasis-open.org/ns/opencsa/scatests/200903}TestComposite20 Reference = Composite20Componentz/Reference1 -ASM_6008=org.oasisopen.sca.ServiceRuntimeException: [Composite: {http://docs.oasis-open.org/ns/opencsa/sca/200912}, Component: TEST_ASM_6008Component1, Composite: {http://docs.oasis-open.org/ns/opencsa/scatests/200903}TestComposite22] - [ASM60008,ASM60013] Interface of composite reference Reference1 must be compatible with the interface declared by promoted component reference. Operation operation2 not found on target -ASM_6012=org.oasisopen.sca.ServiceRuntimeException: [Composite: {http://docs.oasis-open.org/ns/opencsa/sca/200912}, Component: TEST_ASM_6012TestComponent1] - [ASM40005,ASM60014] Duplicate implementation property name: Component = TEST_ASM_6012TestComponent1 Property = propertyName -ASM_6016=org.oasisopen.sca.ServiceRuntimeException: [Composite: {http://docs.oasis-open.org/ns/opencsa/sca/200912}, Component: TestComponent1, Composite: {http://docs.oasis-open.org/ns/opencsa/scatests/200903}TestComposite30, Component: TestComponent1, Reference: Reference1] - [ASM60028] No target services found for the component reference to be autowired: Reference1 -ASM_6020=org.oasisopen.sca.ServiceRuntimeException: [Composite: {http://docs.oasis-open.org/ns/opencsa/sca/200912}, Component: TestComponent1, Reference: Reference1] - [ASM60028] No target services found for the component reference to be autowired: Reference1 -ASM_6021=org.oasisopen.sca.ServiceRuntimeException: [Composite: {http://docs.oasis-open.org/ns/opencsa/sca/200912}, Component: TEST_ASM_6021TestComponent1, Composite: {http://docs.oasis-open.org/ns/opencsa/scatests/200903}TestComposite31] - [ASM60004,ASM60032] Promoted component service not found: Composite = {http://docs.oasis-open.org/ns/opencsa/scatests/200903}TestComposite31 Service = Not_A_URI_of_a_Component -ASM_6022=org.oasisopen.sca.ServiceRuntimeException: [Composite: {http://docs.oasis-open.org/ns/opencsa/sca/200912}, Component: TestComponent1, Composite: {http://docs.oasis-open.org/ns/opencsa/scatests/200903}TestComposite32, Component: TestComponent1] - [ASM60033] No targets for reference: Composite = {http://docs.oasis-open.org/ns/opencsa/scatests/200903}TestComposite32 Reference = Reference1 -ASM_6023=org.oasisopen.sca.ServiceRuntimeException: [Composite: {http://docs.oasis-open.org/ns/opencsa/sca/200912}, Component: TestComponent1] - [ASM40011,ASM60034] No value configured on a mustSupply property: Component = TestComponent1 Property = simpleType -ASM_6024=org.oasisopen.sca.ServiceRuntimeException: [Composite: {http://docs.oasis-open.org/ns/opencsa/sca/200912}, Component: TestComponent1] - [ASM60030,JCI50004,JCI80001] Component implementation not resolved: Component = TestComponent1 Uri = TestComponent1 -ASM_6025=org.oasisopen.sca.ServiceRuntimeException: [Composite: {http://docs.oasis-open.org/ns/opencsa/sca/200912}] - [ASM50001] Duplicate component name: Composite = {http://docs.oasis-open.org/ns/opencsa/sca/200912} Component = TestComponent1 -ASM_6028=org.apache.tuscany.sca.contribution.processor.ContributionReadException: [ASM40010,ASM60040] Error: property has both @type and @element attribute values - InvalidProperty -ASM_6029=org.apache.tuscany.sca.contribution.processor.ContributionResolveException: [ASM60041] Error: Composite {http://docs.oasis-open.org/ns/opencsa/scatests/200903}TEST_ASM_6029 can only include another composite with the identical @local attribute value -ASM_6030=org.apache.tuscany.sca.contribution.processor.ContributionResolveException: [ASM60042] Error: Composite {http://docs.oasis-open.org/ns/opencsa/scatests/200903}Invalid_composite_name is not a valid composite within the domain -ASM_6031=org.oasisopen.sca.ServiceRuntimeException: [Composite: {http://docs.oasis-open.org/ns/opencsa/sca/200912}, Component: TestComponent1, Composite: {http://docs.oasis-open.org/ns/opencsa/scatests/200903}TestComposite39] - [POL40009,ASM60009,ASM60010,JCA70001,JCA70003] Intent {http://docs.oasis-open.org/ns/opencsa/sca/200912}suspendsTransaction and {http://docs.oasis-open.org/ns/opencsa/sca/200912}propagatesTransaction are mutually exclusive -ASM_6032=org.oasisopen.sca.ServiceRuntimeException: [Composite: {http://docs.oasis-open.org/ns/opencsa/sca/200912}, Component: TestComponent1, Composite: {http://docs.oasis-open.org/ns/opencsa/scatests/200903}TestComposite40] - [POL40009,ASM60009,ASM60010,JCA70001,JCA70003] Intent {http://docs.oasis-open.org/ns/opencsa/sca/200912}suspendsTransaction and {http://docs.oasis-open.org/ns/opencsa/sca/200912}propagatesTransaction are mutually exclusive -ASM_6033=org.oasisopen.sca.ServiceRuntimeException: [Composite: {http://docs.oasis-open.org/ns/opencsa/sca/200912}, Component: TestComponent1, Composite: {http://docs.oasis-open.org/ns/opencsa/scatests/200903}TestComposite41] - [ASM60011] Composite reference multiplicity incompatible with component reference multiplicity: Composite = TestComposite41.composite Composite reference = Reference1 Component reference = Reference1 -ASM_6036=Test service got an exception during execution: org.oasisopen.sca.ServiceRuntimeException Unable to bind [] - No endpoints found in the domain that match the reference (@***)EndpointReference: URI = TestClient#reference(reference1) WIRED_TARGET_NOT_FOUND Target = (@***)Endpoint: URI = TEST_ASM_6036Component1#service(ServiceZ) [Unresolved] -ASM_6039=Test service got an exception during execution: org.oasisopen.sca.ServiceRuntimeException Unable to bind [] - No endpoints found in the domain that match the reference (@***)EndpointReference: URI = TestClient#reference(reference1) WIRED_TARGET_NOT_FOUND Target = (@***)Endpoint: URI = TEST_ASM_6039Component1#service-binding(Service1/harry) [Unresolved] -ASM_8001=org.apache.tuscany.sca.interfacedef.OverloadedOperationException: [JCA20001] Cannot overload operation operation1 on org.oasisopen.sca.test.Service3 as it is a @Remotable interface -ASM_8004=org.apache.tuscany.sca.interfacedef.InvalidCallbackException: Callback org.oasisopen.sca.test.Service6Callback must be remotable on remotable interface org.oasisopen.sca.test.Service6 -ASM_8005=org.apache.tuscany.sca.interfacedef.InvalidCallbackException: Callbackorg.oasisopen.sca.test.Service7Callback must not be remotable on local interface org.oasisopen.sca.test.Service7 -ASM_8006=org.oasisopen.sca.ServiceRuntimeException: [Contribution: ASM_8006, Composite: {http://docs.oasis-open.org/ns/opencsa/scatests/200903}TEST_ASM_8006] - The interface.wsdl element has a forward interface with a callback declared in the WSDL {http://test.sca.oasisopen.org/}Service9Callback and a callback interface also declared using the callbackInterface attribute {http://test.sca.oasisopen.org/}Service8Callback but the callback interfaces are not equal. -ASM_8007=org.oasisopen.sca.ServiceRuntimeException: [Composite: {http://docs.oasis-open.org/ns/opencsa/sca/200912}, Component: TestComponent2] - [ASM50004,JCA30002,JCI80001] Component service interface incompatible with implementation service interface: Component = TestComponent2 Service = Service1 -ASM_8008=org.oasisopen.sca.ServiceRuntimeException: [Composite: {http://docs.oasis-open.org/ns/opencsa/sca/200912}, Component: TestComponent1] - [JCA30001,JCA30002,JCA30003,JCA90046] Component reference interface incompatible with implementation reference interface: Component = TestComponent1 Reference = Reference1 -ASM_8009=org.oasisopen.sca.ServiceRuntimeException: [Composite: {http://docs.oasis-open.org/ns/opencsa/sca/200912}, Component: TEST_ASM_8009Component1] - [JCA30001,JCA30002,JCA30003,JCA90046] Component reference interface incompatible with implementation reference interface: Component = TEST_ASM_8009Component1 Reference = Reference1 -ASM_8010=org.oasisopen.sca.ServiceRuntimeException: [Composite: {http://docs.oasis-open.org/ns/opencsa/sca/200912}, Component: TEST_ASM_8010Component2, Composite: {http://docs.oasis-open.org/ns/opencsa/scatests/200903}TestComposite63] - Interface of composite service Service1 must be subset of the interface declared by promoted component service. Callback operation not found on target -ASM_8011=org.oasisopen.sca.ServiceRuntimeException: [Composite: {http://docs.oasis-open.org/ns/opencsa/sca/200912}, Component: TestComponent1, Composite: {http://docs.oasis-open.org/ns/opencsa/scatests/200903}TestComposite62] - [ASM60008,ASM60013] Interface of composite reference Reference1 must be compatible with the interface declared by promoted component reference. Callback operation not found on target -ASM_8012=org.oasisopen.sca.ServiceRuntimeException: [Composite: {http://docs.oasis-open.org/ns/opencsa/sca/200912}, Component: TEST_ASM_8012Component1, Composite: {http://docs.oasis-open.org/ns/opencsa/scatests/200903}TestComposite64] - [ASM60008,ASM60013] Interface of composite reference Reference1 must be compatible with the interface declared by promoted component reference. -ASM_8017=org.oasisopen.sca.ServiceRuntimeException: [Composite: {http://docs.oasis-open.org/ns/opencsa/sca/200912}, Component: TEST_ASM_8017Component1, Composite: {http://docs.oasis-open.org/ns/opencsa/scatests/200903}TestComposite72] - Interface of composite service Service1a must be subset of the interface declared by promoted component service. Callback interface doesn't match -ASM_8018=org.oasisopen.sca.ServiceRuntimeException: [Composite: {http://docs.oasis-open.org/ns/opencsa/sca/200912}, Component: TestClient] - [ASM50004,JCA30002,JCI80001] Component service interface incompatible with implementation service interface: Component = TestClient Service = TestInvocation -ASM_8019=org.oasisopen.sca.ServiceRuntimeException: [Contribution: ASM_8019, Artifact: Test_ASM_8019.composite] - The interface.wsdl interface {http://test.sca.oasisopen.org/}Service1 element can only have a remotable attribute with the value "true" as WSDL interface are assumed to be remotable by default. The value that was found is: false. -ASM_9002=org.oasisopen.sca.ServiceRuntimeException: [Composite: {http://docs.oasis-open.org/ns/opencsa/sca/200912}, Component: TestComponent1] - Multiple bindings with the same name for a service: Service = Service1 Binding name = Fred -ASM_9005=org.oasisopen.sca.ServiceRuntimeException: [Composite: {http://docs.oasis-open.org/ns/opencsa/sca/200912}, Component: TEST_ASM_9005Component1] - [ASM90005] The SCA binding Service1 on component TEST_ASM_9005Component1 service Service1 should not have a URI and the URI is currently set to http://example/bar -ASM_10001=org.oasisopen.sca.ServiceRuntimeException: [Contribution: ASM_10001, Artifact: META-INF/definitions.xml, Definitions: jar:file:***ASM_10001***.zip!/META-INF/definitions.xml] - [ASM10001,POL30002] Duplicate intent {http://docs.oasis-open.org/ns/opencsa/scatests/200903}Fred found in domain -ASM_10003=org.oasisopen.sca.ServiceRuntimeException: [Contribution: ASM_10003, Artifact: META-INF/definitions.xml, Definitions: jar:file:***ASM_10003***.zip!/META-INF/definitions.xml] - XMLSchema validation error occured in: Test_ASM_10003.composite ,line = ***, column = ***, Message = cvc-complex-type.2.4.a: Invalid content was found starting with element 'component'. One of '{"http://docs.oasis-open.org/ns/opencsa/sca/200912":documentation, "http://docs.oasis-open.org/ns/opencsa/sca/200912":intent, "http://docs.oasis-open.org/ns/opencsa/sca/200912":policySet, "http://docs.oasis-open.org/ns/opencsa/sca/200912":bindingType, "http://docs.oasis-open.org/ns/opencsa/sca/200912":implementationType, WC[##other:"http://docs.oasis-open.org/ns/opencsa/sca/200912"]}' is expected. -ASM_12003=org.apache.tuscany.sca.contribution.processor.ContributionResolveException: Invalid interface when resolving -ASM_12007=org.oasisopen.sca.ServiceRuntimeException: [Composite: {http://docs.oasis-open.org/ns/opencsa/sca/200912}, Component: TestComponent1] - [ASM50004,JCA30002,JCI80001] Component service interface incompatible with implementation service interface: Component = TestComponent1 Service = Service1 Operation operation1 not found on target -ASM_12008=org.oasisopen.sca.ServiceRuntimeException: [Composite: {http://docs.oasis-open.org/ns/opencsa/sca/200912}, Component: TEST_ASM_12008TestComponent1] - [ASM50004,JCA30002,JCI80001] Component service interface incompatible with implementation service interface: Component = TEST_ASM_12008TestComponent1 Service = Service1 Operation operation1 not found on target -ASM_12011=org.oasisopen.sca.ServiceRuntimeException: [Composite: {http://docs.oasis-open.org/ns/opencsa/sca/200912}, Component: TestComponent1] - [ASM60030,JCI50004,JCI80001] Component implementation not resolved: Component = TestComponent1 Uri = TestComponent1 -ASM_12012=org.oasisopen.sca.ServiceRuntimeException: [Contribution: ASM_12012, Artifact: META-INF/sca-contribution.xml] - XMLSchema validation error occured in: jar:file:***ASM_12012***.zip!/META-INF/sca-contribution.xml ,line = ***, column = ***, Message = cvc-complex-type.2.4.a: Invalid content was found starting with element 'component'. One of '{"http://docs.oasis-open.org/ns/opencsa/sca/200912":documentation, "http://docs.oasis-open.org/ns/opencsa/sca/200912":deployable, "http://docs.oasis-open.org/ns/opencsa/sca/200912":importBase, "http://docs.oasis-open.org/ns/opencsa/sca/200912":exportBase, WC[##other:"http://docs.oasis-open.org/ns/opencsa/sca/200912"]}' is expected. -ASM_13001=org.oasisopen.sca.ServiceRuntimeException: [Contribution: ASM_13001, Artifact: Test_ASM_13001.composite] - XMLSchema validation error occured in: Test_ASM_13001.composite ,line = ***, column = ***, Message = cvc-complex-type.2.4.a: Invalid content was found starting with element 'sevrice'. One of '{"http://docs.oasis-open.org/ns/opencsa/sca/200912":service, "http://docs.oasis-open.org/ns/opencsa/sca/200912":reference, "http://docs.oasis-open.org/ns/opencsa/sca/200912":property, "http://docs.oasis-open.org/ns/opencsa/sca/200912":requires, "http://docs.oasis-open.org/ns/opencsa/sca/200912":policySetAttachment, WC[##other:"http://docs.oasis-open.org/ns/opencsa/sca/200912"]}' is expected. -ASM_13002=org.oasisopen.sca.ServiceRuntimeException: [Contribution: ASM_13002, Artifact: Test_ASM_13002.composite] - XMLSchema validation error occured in: Test_ASM_13002.composite ,line = ***, column = ***, Message = cvc-complex-type.2.4.a: Invalid content was found starting with element 'operation'. One of '{"http://docs.oasis-open.org/ns/opencsa/sca/200912":binding, "http://docs.oasis-open.org/ns/opencsa/sca/200912":callback, "http://docs.oasis-open.org/ns/opencsa/sca/200912":requires, "http://docs.oasis-open.org/ns/opencsa/sca/200912":policySetAttachment, "http://docs.oasis-open.org/ns/opencsa/sca/200912":extensions}' is expected. -ASM_13003=org.oasisopen.sca.ServiceRuntimeException: [Contribution: ASM_13003, Artifact: Test_ASM_13003.composite] - XMLSchema validation error occured in: Test_ASM_13003.composite ,line = ***, column = ***, Message = cvc-complex-type.2.4.a: Invalid content was found starting with element 'binding.ws'. One of '{"http://docs.oasis-open.org/ns/opencsa/sca/200912":documentation, "http://docs.oasis-open.org/ns/opencsa/sca/200912":include, "http://docs.oasis-open.org/ns/opencsa/sca/200912":requires, "http://docs.oasis-open.org/ns/opencsa/sca/200912":policySetAttachment, "http://docs.oasis-open.org/ns/opencsa/sca/200912":service, "http://docs.oasis-open.org/ns/opencsa/sca/200912":property, "http://docs.oasis-open.org/ns/opencsa/sca/200912":component, "http://docs.oasis-open.org/ns/opencsa/sca/200912":reference, "http://docs.oasis-open.org/ns/opencsa/sca/200912":wire, WC[##other:"http://docs.oasis-open.org/ns/opencsa/sca/200912"]}' is expected. -ASM_13004=org.oasisopen.sca.ServiceRuntimeException: [Composite: {http://docs.oasis-open.org/ns/opencsa/sca/200912}, Component: TestClient, Composite: {http://docs.oasis-open.org/ns/opencsa/scatests/200903}TestClient_0002, Component: TestClient_0002TestClient] - [ASM40011,ASM60034] No value configured on a mustSupply property -ASM_13005=org.oasisopen.sca.ServiceRuntimeException: [Contribution: ASM_13005, Artifact: Test_ASM_13005.composite] - XMLSchema validation error occured in: Test_ASM_13005.composite ,line = ***, column = ***, Message = cvc-elt.2: The value of {abstract} in the element declaration for 'implementation' must be false. -ASM_13006=org.oasisopen.sca.ServiceRuntimeException: [Contribution: ASM_13006, Artifact: Test_ASM_13006.composite] - XMLSchema validation error occured in: Test_ASM_13006.composite ,line = ***, column = ***, Message = cvc-complex-type.3.2.2: Attribute 'callback' is not allowed to appear in element 'interface.java'. -ASM_13007=org.oasisopen.sca.ServiceRuntimeException: [Contribution: ASM_13007, Artifact: Test_ASM_13007.composite] - XMLSchema validation error occured in: Test_ASM_13007.composite ,line = ***, column = ***, Message = cvc-complex-type.3.2.2: Attribute 'mulplicity' is not allowed to appear in element 'reference'. -ASM_13008=org.oasisopen.sca.ServiceRuntimeException: [Contribution: ASM_13008, Artifact: Test_ASM_13008.composite] - XMLSchema validation error occured in: Test_ASM_13008.composite ,line = ***, column = ***, Message = cvc-complex-type.2.4.a: Invalid content was found starting with element 'operation'. One of '{"http://docs.oasis-open.org/ns/opencsa/sca/200912":documentation, "http://docs.oasis-open.org/ns/opencsa/sca/200912":wireFormat, "http://docs.oasis-open.org/ns/opencsa/sca/200912":operationSelector, "http://docs.oasis-open.org/ns/opencsa/sca/200912":requires, "http://docs.oasis-open.org/ns/opencsa/sca/200912":policySetAttachment}' is expected. \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/compliance-tests/java-caa/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/compliance-tests/java-caa/pom.xml deleted file mode 100644 index e16bd86d0d..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/compliance-tests/java-caa/pom.xml +++ /dev/null @@ -1,121 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-compliance-tests - 2.0-M5 - ../pom.xml - - tuscany-compliance-test-java-caa - Apache Tuscany SCA Specification Compliance Tests Java CAA - - - - - - - org.apache.tuscany.sca - oasis-javacaa-test-runner - 1.0-SNAPSHOT - - - - org.apache.tuscany.sca.shades - tuscany-base - 2.0-M5 - - - - - org.codehaus.woodstox - wstx-asl - 3.2.4 - runtime - - - stax - stax-api - - - - - - junit - junit - 4.5 - test - - - - - - - - ${artifactId} - - - - org.apache.maven.plugins - maven-surefire-plugin - - - - - - - - org.apache.maven.plugins - maven-dependency-plugin - - - unpack - test-compile - - unpack - - - - - org.apache.tuscany.sca - oasis-javacaa-contributions - 1.0-SNAPSHOT - zip - ${project.build.directory}/oasis-contributions - - - org.apache.tuscany.sca - oasis-javacaa-test-runner - 1.0-SNAPSHOT - jar - commons-logging.properties,oasis-sca-tests.properties,tuscany-oasis-sca-tests-errors.properties - ${project.build.directory}/test-classes - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/compliance-tests/java-caa/src/test/java/org/apache/tuscany/sca/otest/TuscanyRuntimeBridge.java b/sca-java-2.x/tags/2.0-M5-RC3/compliance-tests/java-caa/src/test/java/org/apache/tuscany/sca/otest/TuscanyRuntimeBridge.java deleted file mode 100644 index 136e5668c0..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/compliance-tests/java-caa/src/test/java/org/apache/tuscany/sca/otest/TuscanyRuntimeBridge.java +++ /dev/null @@ -1,238 +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 org.apache.tuscany.sca.otest; - -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.fail; - -import java.io.BufferedWriter; -import java.io.File; -import java.io.FileWriter; -import java.io.IOException; -import java.io.InputStream; -import java.util.Properties; - -import org.apache.tuscany.sca.node.Contribution; -import org.apache.tuscany.sca.node.ContributionLocationHelper; -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; - -import client.RuntimeBridge; -import client.TestConfiguration; - -/** - * An implementation of the Runtime Bridge for the Apache Tuscany SCA runtime (version 2.x) - * - */ -public class TuscanyRuntimeBridge implements RuntimeBridge { - - static final String CONTRIBUTION_LOCATION_PROPKEY = "OASIS_TESTENV_CONTRIBUTION_LOCATION"; - - protected NodeFactory launcher; - protected Node node; - protected Properties expectedErrorMessages; - - TestConfiguration testConfiguration = null; - - public TuscanyRuntimeBridge() { - // read test error mapping - expectedErrorMessages = new Properties(); - try { - InputStream propertiesStream = this.getClass().getResourceAsStream("/tuscany-oasis-sca-tests-errors.properties"); - expectedErrorMessages.load(propertiesStream); - } catch (IOException e) { - System.out.println("Unable to read oasis-sca-tests-errors.properties file"); - } - } - - public TestConfiguration getTestConfiguration() { - return testConfiguration; - } - - public void setTestConfiguration(TestConfiguration testConfiguration) { - this.testConfiguration = testConfiguration; - } - - public boolean startContribution(String compositeName, - String contributionLocation, String[] contributionNames) - throws Exception { - //TODO: - return startContribution(contributionLocation, contributionNames); - } - - public boolean startContribution(String contributionLocation, String[] contributionNames) throws Exception { - try { - // Tuscany specific code which starts the contribution(s) holding the test - Properties ps = new Properties(); - ps.setProperty("defaultScheme", "vm"); - ps.setProperty("org.apache.tuscany.sca.binding.ws.jaxws.ri.JAXWSBindingProviderFactory.defaultPort", "8080"); - launcher = NodeFactory.newInstance(ps); - - Contribution[] contributions = new Contribution[contributionNames.length]; - String[] contributionURIs = getContributionURIs(contributionLocation); - for (int i = 0; i < contributions.length; i++) { - contributions[i] = new Contribution(contributionNames[i], contributionURIs[i]); - } // end for - - node = launcher.createNode(testConfiguration.getComposite(), contributions); - // Start the node - node.start(); - - // For debugging - // print out the composites that have been read in success cases - // System.out.println(((NodeImpl)node).dumpDomainComposite()); - } catch (Exception e) { - System.out.println(e.getMessage()); - e.printStackTrace(); - throw e; - } // end try - - return true; - } // end method startContribution - - /** - * Gets the location of the Contributions as URIs - * @param contributionLocation - a location pattern URI, which contains one or more "%1" - * substrings, which are substituted with the name of the contribution to get the URI of - * the contribution - * @return the contribution locations as an array of Strings - */ - protected String[] getContributionURIs(String contributionLocation) throws Exception { - String[] locations; - locations = testConfiguration.getContributionNames(); - - if (locations != null && contributionLocation != null) { - - for (int i = 0; i < locations.length; i++) { - String aLocation = contributionLocation.replaceAll("%1", locations[i]); - // Looks like bugs in the oasis code that sometimes still uses jars for some - if (aLocation.endsWith("_POJO.zip") && !aLocation.endsWith("ASM_8005_Java-1.0.zip")) { - aLocation = aLocation.substring(0, aLocation.length()-3) + "jar"; - } - if (!(new File(aLocation)).exists()) { - aLocation = aLocation.replace(".zip", ".jar"); - } - locations[i] = aLocation; - } // end for - } else { - if (locations == null) { - // No contribution specified - throw an Exception - throw new Exception("Unable to start SCA runtime - no contribution supplied - error"); - } else { - // No contribution location supplied - throw an Exception - throw new Exception("Unable to start SCA runtime - no contribution location supplied - error"); - } // end if - } // end if - - return locations; - } // end getContributionURI - - public void stopContribution() { - if (node != null) { - node.stop(); - } // end if - if (launcher != null) { - launcher.destroy(); - } // end if - } // end method stopContribution - - public String getContributionLocation(Class testClass) { - return ContributionLocationHelper.getContributionLocation(testConfiguration.getTestClass()); - } // end method getContributionLocation - - public void checkError(String testName, Throwable ex) throws Throwable { - - String expectedMessage = expectedErrorMessages.getProperty(testName); - String receivedMessage = ex.getMessage(); - - if (expectedMessage == null){ - writeMissingMessage(testName, ex); - fail("Null expected error message for test " + testName + - "Please add message to oasis-sca-tests-errors.properties"); - } // end if - - if (receivedMessage == null){ - ex.printStackTrace(); - fail("Null received error message for test " + testName); - } // end if - - if (expectedMessage.startsWith("*")) { - // allow using * to ignore a message comparison - return; - } - - // Deal with the case where the message has variable parts within it - // marked with the characters ***. Here we tokenize the epected string - // and make sure all the individual parts are present in the results string - String expectedMessageParts[] = expectedMessage.split("\\*\\*\\*"); - - if (expectedMessageParts.length > 1){ - int foundParts = 0; - for(int i = 0; i < expectedMessageParts.length; i++){ - if (receivedMessage.indexOf(expectedMessageParts[i]) > -1 ){ - foundParts++; - } - } - - if (foundParts == expectedMessageParts.length){ - return; - } - } - - - // Deal with the case where the end of the message is variable (eg contains absolute filenames) - // and where the only relevant part is the start of the message - in this case the expected - // message only contains the stem section which is unchanging... - if( receivedMessage.length() > expectedMessage.length() ) { - // Truncate the received message to the length of the expected message - receivedMessage = receivedMessage.substring(0, expectedMessage.length() ); - } // end if - - if (!expectedMessage.equals(receivedMessage)) { - writeIncorrectMessage(testName, expectedMessage, receivedMessage); - } - - assertEquals( expectedMessage, receivedMessage ); - - return; - - } - - protected void writeMissingMessage(String testName, Throwable ex) { - try { - BufferedWriter out = new BufferedWriter(new FileWriter("target/OTestMissingMsgs.txt", true)); - out.write(testName + "=*"); - out.newLine(); - out.close(); - } catch (IOException e) { - } - } - - protected void writeIncorrectMessage(String testName, String expected, String received) { - try { - BufferedWriter out = new BufferedWriter(new FileWriter("target/OTestIncorrectMsgs.txt", true)); - out.write(testName); out.newLine(); - out.write(" " + expected); out.newLine(); - out.write(" " + received); out.newLine(); - out.close(); - } catch (IOException e) { - } - } - -} // end class TuscanyRuntimeBridge diff --git a/sca-java-2.x/tags/2.0-M5-RC3/compliance-tests/java-caa/src/test/resources/oasis-sca-tests.properties b/sca-java-2.x/tags/2.0-M5-RC3/compliance-tests/java-caa/src/test/resources/oasis-sca-tests.properties deleted file mode 100644 index 38e1e013dc..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/compliance-tests/java-caa/src/test/resources/oasis-sca-tests.properties +++ /dev/null @@ -1,30 +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. - -# OASIS SCA Assembly test properties -# The implementation type to use for Assembly test suite -# org.oasis.sca.tests.assembly.lang=BPEL -org.oasis.sca.tests.assembly.lang=POJO - -# The class to use as the Runtime Bridge for the SCA runtime under test -#org.oasis.sca.tests.assembly.runtime_bridge=org.apache.tuscany.sca.otest.TuscanyOSGiRuntimeBridge -org.oasis.sca.tests.assembly.runtime_bridge=org.apache.tuscany.sca.otest.TuscanyRuntimeBridge - -# The location of the contributions for the test suite -# %1 represents the placement of the name of each contribution into the location URI -org.oasis.sca.tests.assembly.contribution.location=target/oasis-contributions/%1.zip - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/compliance-tests/java-caa/src/test/resources/tuscany-oasis-sca-tests-errors.properties b/sca-java-2.x/tags/2.0-M5-RC3/compliance-tests/java-caa/src/test/resources/tuscany-oasis-sca-tests-errors.properties deleted file mode 100644 index 2e0017225b..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/compliance-tests/java-caa/src/test/resources/tuscany-oasis-sca-tests-errors.properties +++ /dev/null @@ -1,57 +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. -JCA_2001=org.apache.tuscany.sca.interfacedef.OverloadedOperationException: [JCA20001] Cannot overload operation operation1 on org.oasisopen.sca.test.Service1Overload as it is a @Remotable interface -JCA_3001=org.oasisopen.sca.ServiceRuntimeException: [Contribution: JCA_3001, Composite: {http://docs.oasis-open.org/ns/opencsa/scatests/200903}TEST_JCA_3001] - Class Not Found Exception: Service1 -JCA_3002=org.oasisopen.sca.ServiceRuntimeException: [Contribution: JCA_3002, Composite: {http://docs.oasis-open.org/ns/opencsa/scatests/200903}TEST_JCA_3002] - Class Not Found Exception: Service1 -JCA_3003=org.oasisopen.sca.ServiceRuntimeException: [Contribution: JCA_3003, Composite: {http://docs.oasis-open.org/ns/opencsa/scatests/200903}TEST_JCA_3003] - Class Not Found Exception: Service3Callback -JCA_3004=org.oasisopen.sca.ServiceRuntimeException: [Contribution: JCA_3004, Composite: {http://docs.oasis-open.org/ns/opencsa/scatests/200903}TEST_JCA_3004] - Class Not Found Exception: Service3Callback -JCA_3006=org.oasisopen.sca.ServiceRuntimeException: [Composite: {http://docs.oasis-open.org/ns/opencsa/sca/200912}, Component: TEST_JCA_3006Component2] - [ASM50004,JCA30002,JCI80001] Component service interface incompatible with implementation service interface: Component = TEST_JCA_3006Component2 Service = Service3WithCallback Callback operation not found on target -JCA_3007=org.oasisopen.sca.ServiceRuntimeException: [Composite: {http://docs.oasis-open.org/ns/opencsa/sca/200912}, Component: TEST_JCA_3007Component1] - [JCA30001,JCA30002,JCA30003,JCA90046] Component reference interface incompatible with implementation reference interface: Component = TEST_JCA_3007Component1 Reference = reference1 -JCA_3008=org.oasisopen.sca.ServiceRuntimeException: [Contribution: JCA_3008, Artifact: Test_JCA_3008.composite] - XMLSchema validation error occured in: Test_JCA_3008.composite ,line = ***, column = ***, Message = cvc-complex-type.3.2.2: Attribute 'oops' is not allowed to appear in element 'interface.java'. -JCA_3009=org.apache.tuscany.sca.interfacedef.InvalidAnnotationException: [JCA30005] @Remotable annotation present in a interface marked as not remotable in the SCDL -JCA_3011=org.oasisopen.sca.ServiceRuntimeException: [Contribution: JCA_3011, Composite: {http://docs.oasis-open.org/ns/opencsa/scatests/200903}TEST_JCA_3011] - [JCA30006] Forbidden annotation interface org.oasisopen.sca.annotation.Property found on service interface in class org.oasisopen.sca.test.JCA3011Service -JCA_3012=org.oasisopen.sca.ServiceRuntimeException: [Contribution: JCA_3012, Composite: {http://docs.oasis-open.org/ns/opencsa/scatests/200903}TEST_JCA_3012] - [JCA30007] Forbidden annotation interface org.oasisopen.sca.annotation.Property found on callback interface in class org.oasisopen.sca.test.JCA3012Service3Callback -JCA_10001=org.apache.tuscany.sca.contribution.processor.ContributionResolveException: org.apache.tuscany.sca.implementation.java.introspect.impl.IllegalPropertyException: [JCA90001] Argument 1 of method operation1 in class class org.oasisopen.sca.test.service1BadAnnotation can not be a Property -JCA_10002=org.oasisopen.sca.ServiceRuntimeException: [Contribution: JCA_10002, Composite: {http://docs.oasis-open.org/ns/opencsa/scatests/200903}TEST_JCA_10002] - [JCA9002] SCA annotations are not permitted on static members: org.oasisopen.sca.test.service1Sta -JCA_10003=org.oasisopen.sca.ServiceRuntimeException: [Contribution: JCA_10003, Composite: {http://docs.oasis-open.org/ns/opencsa/scatests/200903}TEST_JCA_10003] - [JCA9002] SCA annotations are not permitted on static members: org.oasisopen.sca.test.service1Sta -JCA_10004=org.apache.tuscany.sca.contribution.processor.ContributionResolveException: org.apache.tuscany.sca.implementation.java.introspect.impl.IllegalCallbackReferenceException: [JCA90046] @Callback on field of method must not have any parameters -JCA_10006=org.apache.tuscany.sca.contribution.processor.ContributionResolveException: org.apache.tuscany.sca.implementation.java.introspect.impl.InvalidConstructorException: JCA90003 constructor parameters for class *** must have @Property or @Reference annotation -JCA_10007=org.apache.tuscany.sca.contribution.processor.ContributionResolveException: org.apache.tuscany.sca.implementation.java.introspect.impl.IllegalDestructorException: [JCA90004] Destructor must not have arguments -JCA_10008=org.apache.tuscany.sca.contribution.processor.ContributionResolveException: org.apache.tuscany.sca.implementation.java.introspect.impl.IllegalInitException: [JCA90008] Initializer must not have argments -JCA_10009=org.apache.tuscany.sca.contribution.processor.ContributionResolveException: org.apache.tuscany.sca.implementation.java.introspect.impl.IllegalPropertyException: [JCA90011] Final field serviceName in class org.oasisopen.sca.test.service1BadPropImpl can not be annotated as a Property -JCA_10010=org.apache.tuscany.sca.contribution.processor.ContributionResolveException: org.apache.tuscany.sca.implementation.java.introspect.impl.InvalidPropertyException: [JCA90013] Missing property name: public org.oasisopen.sca.test.service1ConstrBadPropImpl(java.lang.String)[0] -JCA_10011=org.apache.tuscany.sca.contribution.processor.ContributionResolveException: org.apache.tuscany.sca.implementation.java.introspect.impl.InvalidPropertyException: [JCA90014] Constructor property must not have required=false: org.oasisopen.sca.test.service1ConstrBadPropImpl -JCA_10014=org.apache.tuscany.sca.contribution.processor.ContributionResolveException: org.apache.tuscany.sca.implementation.java.introspect.impl.InvalidReferenceException: [JCA90018] @Reference in a Constructor must have a name attributeorg.oasisopen.sca.test.service1ConstrBad -JCA_10015=org.apache.tuscany.sca.contribution.processor.ContributionResolveException: org.apache.tuscany.sca.implementation.java.introspect.impl.InvalidReference -JCA_10046=org.oasisopen.sca.ServiceRuntimeException: [] - [JCA90040] Exception while generating WSDL for TEST_JCA_10046Component1/Unmappable exception was: -JCA_10047=org.apache.tuscany.sca.contribution.processor.ContributionResolveException: org.apache.tuscany.sca.implementation.java.IntrospectionException: [JCA90041] @Scope annotation not allowed on service interface -JCA_10048=org.apache.tuscany.sca.contribution.processor.ContributionResolveException: org.apache.tuscany.sca.implementation.java.IntrospectionException: [JCA90042,JCI20002] Implementation missing service method operation2 service interface org.oasisopen.sca.test.Service1Superset -JCA_10049=org.apache.tuscany.sca.contribution.processor.ContributionResolveException: org.apache.tuscany.sca.implementation.java.IntrospectionException: [JCA90050] The number of Strings in the names attribute array of the @Service annotation MUST match the number of elements in the value attribute array -JCA_10050=org.oasisopen.sca.ServiceRuntimeException: [Composite: {http://docs.oasis-open.org/ns/opencsa/sca/200912}, Component: TEST_JCA_10050Component1] - [ASM40003,ASM60003,JCA90045] Duplicate implementation service name: Component = TEST_JCA_10050Component1 Service = Service1 -JCA_10051=org.apache.tuscany.sca.contribution.processor.ContributionResolveException: org.apache.tuscany.sca.implementation.java.IntrospectionException: [JCA90059] The array of interfaces or classes specified by the value attribute of the @Service annotation -JCA_10052=org.apache.tuscany.sca.contribution.processor.ContributionResolveException: org.apache.tuscany.sca.implementation.java.IntrospectionException: [JCA90060] The value of each element in the @Service names array MUST be unique amongst all the other element values in the array -JCA_11005=org.oasisopen.sca.ServiceRuntimeException: [Component: TEST_JCA_11005Component1, Service: Service1] - [JCA100006] JAX-WS client-side asynchronous polling and callback methods are not allowed in service interfaces -# Intent and PolicySet related tests -JCA_8001=org.oasisopen.sca.ServiceRuntimeException: [Composite: {http://docs.oasis-open.org/ns/opencsa/sca/200912}, Component: TEST_JCA_8001Component1, Service: Service1] - [POL40009,ASM60009,ASM60010,JCA70001,JCA70003] Intent {http://docs.oasis-open.org/ns/opencsa/scatests/200903}testIntent2 and {http://docs.oasis-open.org/ns/opencsa/scatests/200903}testIntent1 are mutually exclusive -JCA_8002=org.apache.tuscany.sca.contribution.processor.ContributionResolveException: org.apache.tuscany.sca.contribution.processor.ContributionResolveException: Processing composite {http://docs.oasis-open.org/ns/opencsa/scatests/200903}TEST_JCA_8002: Resolving Java implementation: org.oasisopen.sca.test.service1BadIntent, [JCA70002,JCA70005] Method that is not an SCA reference cannot have policySet/intent annotations: public java.lang.String org.oasisopen.sca.test.service1BadIntent.operation1(java.lang.String) -JCA_8003=org.apache.tuscany.sca.contribution.processor.ContributionResolveException: org.apache.tuscany.sca.contribution.processor.ContributionResolveException: Processing composite {http://docs.oasis-open.org/ns/opencsa/scatests/200903}TEST_JCA_8003: Resolving Java implementation: org.oasisopen.sca.test.service1BadIntent, [JCA70002,JCA70005] Field that is not an SCA reference cannot have policySet/intent annotations: public java.lang.String org.oasisopen.sca.test.service1BadIntent.someField -JCA_8004=org.apache.tuscany.sca.contribution.processor.ContributionResolveException: org.apache.tuscany.sca.contribution.processor.ContributionResolveException: Processing composite {http://docs.oasis-open.org/ns/opencsa/scatests/200903}TEST_JCA_8004: Resolving Java implementation: org.oasisopen.sca.test.service1BadIntent, [JCA70002,JCA70005] Constructor parameter that is not an SCA reference cannot have policySet/intent annotations: public org.oasisopen.sca.test.service1BadIntent(java.lang.String)[0] -JCA_8006=org.oasisopen.sca.ServiceRuntimeException: [Composite: {http://docs.oasis-open.org/ns/opencsa/sca/200912}, Component: TEST_JCA_8006Component1, Service: Service1] - [POL40009,ASM60009,ASM60010,JCA70001,JCA70003] Intent {http://docs.oasis-open.org/ns/opencsa/scatests/200903}testIntent2 and {http://docs.oasis-open.org/ns/opencsa/scatests/200903}testIntent1 are mutually exclusive -JCA_8008=org.apache.tuscany.sca.contribution.processor.ContributionResolveException: org.apache.tuscany.sca.contribution.processor.ContributionResolveException: Processing composite {http://docs.oasis-open.org/ns/opencsa/scatests/200903}TEST_JCA_8008: Resolving Java implementation: org.oasisopen.sca.test.service1BadPolicySet, [JCA70002,JCA70005] Method that is not an SCA reference cannot have policySet/intent annotations: public java.lang.String org.oasisopen.sca.test.service1BadPolicySet.operation1(java.lang.String) -JCA_8009=org.apache.tuscany.sca.contribution.processor.ContributionResolveException: org.apache.tuscany.sca.contribution.processor.ContributionResolveException: Processing composite {http://docs.oasis-open.org/ns/opencsa/scatests/200903}TEST_JCA_8009: Resolving Java implementation: org.oasisopen.sca.test.service1BadPolicySet, [JCA70002,JCA70005] Field that is not an SCA reference cannot have policySet/intent annotations: public java.lang.String org.oasisopen.sca.test.service1BadPolicySet.someField -JCA_8010=org.apache.tuscany.sca.contribution.processor.ContributionResolveException: org.apache.tuscany.sca.contribution.processor.ContributionResolveException: Processing composite {http://docs.oasis-open.org/ns/opencsa/scatests/200903}TEST_JCA_8010: Resolving Java implementation: org.oasisopen.sca.test.service1BadPolicySet, [JCA70002,JCA70005] Constructor parameter that is not an SCA reference cannot have policySet/intent annotations: public org.oasisopen.sca.test.service1BadPolicySet(java.lang.String)[0] - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/compliance-tests/java-ci/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/compliance-tests/java-ci/pom.xml deleted file mode 100644 index 0ca5b84567..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/compliance-tests/java-ci/pom.xml +++ /dev/null @@ -1,119 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-compliance-tests - 2.0-M5 - ../pom.xml - - tuscany-compliance-test-java-ci - Apache Tuscany SCA Specification Compliance Tests Java CI - - - - - - - org.apache.tuscany.sca - oasis-javaci-test-runner - 1.0-SNAPSHOT - - - - org.apache.tuscany.sca.shades - tuscany-base - 2.0-M5 - - - - - org.codehaus.woodstox - wstx-asl - 3.2.4 - runtime - - - stax - stax-api - - - - - - junit - junit - 4.5 - test - - - - - - ${artifactId} - - - - org.apache.maven.plugins - maven-surefire-plugin - - - - - - - - org.apache.maven.plugins - maven-dependency-plugin - - - unpack - test-compile - - unpack - - - - - org.apache.tuscany.sca - oasis-javaci-contributions - 1.0-SNAPSHOT - zip - ${project.build.directory}/oasis-contributions - - - org.apache.tuscany.sca - oasis-javaci-test-runner - 1.0-SNAPSHOT - jar - commons-logging.properties,oasis-sca-tests.properties,tuscany-oasis-sca-tests-errors.properties - ${project.build.directory}/test-classes - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/compliance-tests/java-ci/src/test/java/org/apache/tuscany/sca/otest/TuscanyRuntimeBridge.java b/sca-java-2.x/tags/2.0-M5-RC3/compliance-tests/java-ci/src/test/java/org/apache/tuscany/sca/otest/TuscanyRuntimeBridge.java deleted file mode 100644 index 136e5668c0..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/compliance-tests/java-ci/src/test/java/org/apache/tuscany/sca/otest/TuscanyRuntimeBridge.java +++ /dev/null @@ -1,238 +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 org.apache.tuscany.sca.otest; - -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.fail; - -import java.io.BufferedWriter; -import java.io.File; -import java.io.FileWriter; -import java.io.IOException; -import java.io.InputStream; -import java.util.Properties; - -import org.apache.tuscany.sca.node.Contribution; -import org.apache.tuscany.sca.node.ContributionLocationHelper; -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; - -import client.RuntimeBridge; -import client.TestConfiguration; - -/** - * An implementation of the Runtime Bridge for the Apache Tuscany SCA runtime (version 2.x) - * - */ -public class TuscanyRuntimeBridge implements RuntimeBridge { - - static final String CONTRIBUTION_LOCATION_PROPKEY = "OASIS_TESTENV_CONTRIBUTION_LOCATION"; - - protected NodeFactory launcher; - protected Node node; - protected Properties expectedErrorMessages; - - TestConfiguration testConfiguration = null; - - public TuscanyRuntimeBridge() { - // read test error mapping - expectedErrorMessages = new Properties(); - try { - InputStream propertiesStream = this.getClass().getResourceAsStream("/tuscany-oasis-sca-tests-errors.properties"); - expectedErrorMessages.load(propertiesStream); - } catch (IOException e) { - System.out.println("Unable to read oasis-sca-tests-errors.properties file"); - } - } - - public TestConfiguration getTestConfiguration() { - return testConfiguration; - } - - public void setTestConfiguration(TestConfiguration testConfiguration) { - this.testConfiguration = testConfiguration; - } - - public boolean startContribution(String compositeName, - String contributionLocation, String[] contributionNames) - throws Exception { - //TODO: - return startContribution(contributionLocation, contributionNames); - } - - public boolean startContribution(String contributionLocation, String[] contributionNames) throws Exception { - try { - // Tuscany specific code which starts the contribution(s) holding the test - Properties ps = new Properties(); - ps.setProperty("defaultScheme", "vm"); - ps.setProperty("org.apache.tuscany.sca.binding.ws.jaxws.ri.JAXWSBindingProviderFactory.defaultPort", "8080"); - launcher = NodeFactory.newInstance(ps); - - Contribution[] contributions = new Contribution[contributionNames.length]; - String[] contributionURIs = getContributionURIs(contributionLocation); - for (int i = 0; i < contributions.length; i++) { - contributions[i] = new Contribution(contributionNames[i], contributionURIs[i]); - } // end for - - node = launcher.createNode(testConfiguration.getComposite(), contributions); - // Start the node - node.start(); - - // For debugging - // print out the composites that have been read in success cases - // System.out.println(((NodeImpl)node).dumpDomainComposite()); - } catch (Exception e) { - System.out.println(e.getMessage()); - e.printStackTrace(); - throw e; - } // end try - - return true; - } // end method startContribution - - /** - * Gets the location of the Contributions as URIs - * @param contributionLocation - a location pattern URI, which contains one or more "%1" - * substrings, which are substituted with the name of the contribution to get the URI of - * the contribution - * @return the contribution locations as an array of Strings - */ - protected String[] getContributionURIs(String contributionLocation) throws Exception { - String[] locations; - locations = testConfiguration.getContributionNames(); - - if (locations != null && contributionLocation != null) { - - for (int i = 0; i < locations.length; i++) { - String aLocation = contributionLocation.replaceAll("%1", locations[i]); - // Looks like bugs in the oasis code that sometimes still uses jars for some - if (aLocation.endsWith("_POJO.zip") && !aLocation.endsWith("ASM_8005_Java-1.0.zip")) { - aLocation = aLocation.substring(0, aLocation.length()-3) + "jar"; - } - if (!(new File(aLocation)).exists()) { - aLocation = aLocation.replace(".zip", ".jar"); - } - locations[i] = aLocation; - } // end for - } else { - if (locations == null) { - // No contribution specified - throw an Exception - throw new Exception("Unable to start SCA runtime - no contribution supplied - error"); - } else { - // No contribution location supplied - throw an Exception - throw new Exception("Unable to start SCA runtime - no contribution location supplied - error"); - } // end if - } // end if - - return locations; - } // end getContributionURI - - public void stopContribution() { - if (node != null) { - node.stop(); - } // end if - if (launcher != null) { - launcher.destroy(); - } // end if - } // end method stopContribution - - public String getContributionLocation(Class testClass) { - return ContributionLocationHelper.getContributionLocation(testConfiguration.getTestClass()); - } // end method getContributionLocation - - public void checkError(String testName, Throwable ex) throws Throwable { - - String expectedMessage = expectedErrorMessages.getProperty(testName); - String receivedMessage = ex.getMessage(); - - if (expectedMessage == null){ - writeMissingMessage(testName, ex); - fail("Null expected error message for test " + testName + - "Please add message to oasis-sca-tests-errors.properties"); - } // end if - - if (receivedMessage == null){ - ex.printStackTrace(); - fail("Null received error message for test " + testName); - } // end if - - if (expectedMessage.startsWith("*")) { - // allow using * to ignore a message comparison - return; - } - - // Deal with the case where the message has variable parts within it - // marked with the characters ***. Here we tokenize the epected string - // and make sure all the individual parts are present in the results string - String expectedMessageParts[] = expectedMessage.split("\\*\\*\\*"); - - if (expectedMessageParts.length > 1){ - int foundParts = 0; - for(int i = 0; i < expectedMessageParts.length; i++){ - if (receivedMessage.indexOf(expectedMessageParts[i]) > -1 ){ - foundParts++; - } - } - - if (foundParts == expectedMessageParts.length){ - return; - } - } - - - // Deal with the case where the end of the message is variable (eg contains absolute filenames) - // and where the only relevant part is the start of the message - in this case the expected - // message only contains the stem section which is unchanging... - if( receivedMessage.length() > expectedMessage.length() ) { - // Truncate the received message to the length of the expected message - receivedMessage = receivedMessage.substring(0, expectedMessage.length() ); - } // end if - - if (!expectedMessage.equals(receivedMessage)) { - writeIncorrectMessage(testName, expectedMessage, receivedMessage); - } - - assertEquals( expectedMessage, receivedMessage ); - - return; - - } - - protected void writeMissingMessage(String testName, Throwable ex) { - try { - BufferedWriter out = new BufferedWriter(new FileWriter("target/OTestMissingMsgs.txt", true)); - out.write(testName + "=*"); - out.newLine(); - out.close(); - } catch (IOException e) { - } - } - - protected void writeIncorrectMessage(String testName, String expected, String received) { - try { - BufferedWriter out = new BufferedWriter(new FileWriter("target/OTestIncorrectMsgs.txt", true)); - out.write(testName); out.newLine(); - out.write(" " + expected); out.newLine(); - out.write(" " + received); out.newLine(); - out.close(); - } catch (IOException e) { - } - } - -} // end class TuscanyRuntimeBridge diff --git a/sca-java-2.x/tags/2.0-M5-RC3/compliance-tests/java-ci/src/test/resources/oasis-sca-tests.properties b/sca-java-2.x/tags/2.0-M5-RC3/compliance-tests/java-ci/src/test/resources/oasis-sca-tests.properties deleted file mode 100644 index 38e1e013dc..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/compliance-tests/java-ci/src/test/resources/oasis-sca-tests.properties +++ /dev/null @@ -1,30 +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. - -# OASIS SCA Assembly test properties -# The implementation type to use for Assembly test suite -# org.oasis.sca.tests.assembly.lang=BPEL -org.oasis.sca.tests.assembly.lang=POJO - -# The class to use as the Runtime Bridge for the SCA runtime under test -#org.oasis.sca.tests.assembly.runtime_bridge=org.apache.tuscany.sca.otest.TuscanyOSGiRuntimeBridge -org.oasis.sca.tests.assembly.runtime_bridge=org.apache.tuscany.sca.otest.TuscanyRuntimeBridge - -# The location of the contributions for the test suite -# %1 represents the placement of the name of each contribution into the location URI -org.oasis.sca.tests.assembly.contribution.location=target/oasis-contributions/%1.zip - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/compliance-tests/java-ci/src/test/resources/tuscany-oasis-sca-tests-errors.properties b/sca-java-2.x/tags/2.0-M5-RC3/compliance-tests/java-ci/src/test/resources/tuscany-oasis-sca-tests-errors.properties deleted file mode 100644 index aebd49cef3..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/compliance-tests/java-ci/src/test/resources/tuscany-oasis-sca-tests-errors.properties +++ /dev/null @@ -1,33 +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. -POJO_2003=org.apache.tuscany.sca.contribution.processor.ContributionResolveException: org.apache.tuscany.sca.implementation.java.IntrospectionException: [JCA90042,JCI20002] Implementation missing service method operation2 service interface org.oasisopen.sca.test.Service1Superset -POJO_5001=org.apache.tuscany.sca.contribution.processor.ContributionResolveException: org.apache.tuscany.sca.implementation.java.introspect.impl.NoConstructorException: [JCI50001] No public constructor for class -POJO_5005=org.apache.tuscany.sca.contribution.processor.ContributionResolveException: org.apache.tuscany.sca.implementation.java.introspect.impl.AmbiguousConstructorException: -POJO_5006=org.apache.tuscany.sca.contribution.processor.ContributionResolveException: org.apache.tuscany.sca.implementation.java.introspect.impl.DuplicateConstructorException: [JCI50002] Multiple constructors marked with @Constructor -POJO_5007=org.apache.tuscany.sca.contribution.processor.ContributionResolveException: org.apache.tuscany.sca.implementation.java.introspect.impl.InvalidConstructorException: [JCI50005] Multiple annotated constructors -POJO_8002=org.oasisopen.sca.ServiceRuntimeException: [Composite: {http://docs.oasis-open.org/ns/opencsa/sca/200912}, Component: TEST_POJO_8002Component1] - [ASM50004,JCA30002,JCI80001] Component service interface incompatible with implementation service interface: Component = TEST_POJO_8002Component1 Service = Service1Superset Operation operationb not found on target -POJO_8003=org.oasisopen.sca.ServiceRuntimeException: [Composite: {http://docs.oasis-open.org/ns/opencsa/sca/200912}, Component: TEST_POJO_8003Component1, Service: Service1] - [POL40009,ASM60009,ASM60010,JCA70001,JCA70003] Intent {http://docs.oasis-open.org/ns/opencsa/sca/200912}suspendsTransaction and {http://docs.oasis-open.org/ns/opencsa/sca/200912}propagatesTransaction are mutually exclusive -POJO_8008=org.oasisopen.sca.ServiceRuntimeException: [Composite: {http://docs.oasis-open.org/ns/opencsa/sca/200912}, Component: TEST_POJO_8008Component1, Service: Service1] - [POL40009,ASM60009,ASM60010,JCA70001,JCA70003] Intent {http://docs.oasis-open.org/ns/opencsa/sca/200912}suspendsTransaction and {http://docs.oasis-open.org/ns/opencsa/sca/200912}propagatesTransaction are mutually exclusive -POJO_8012=org.oasisopen.sca.ServiceRuntimeException: [Composite: {http://docs.oasis-open.org/ns/opencsa/sca/200912}, Component: TEST_POJO_8012Component1, Service: Service1] - [POL40009,ASM60009,ASM60010,JCA70001,JCA70003] Intent {http://docs.oasis-open.org/ns/opencsa/sca/200912}managedTransaction.global and {http://docs.oasis-open.org/ns/opencsa/sca/200912}noManagedTransaction are mutually exclusive -POJO_8013=org.apache.tuscany.sca.contribution.processor.ContributionResolveException: org.apache.tuscany.sca.implementation.java.introspect.impl.DuplicatePropertyException: duplicateProperty -POJO_8014=org.apache.tuscany.sca.contribution.processor.ContributionResolveException: org.apache.tuscany.sca.implementation.java.introspect.impl.DuplicateReferenceException: duplicateReference -POJO_9001=org.oasisopen.sca.ServiceRuntimeException: [Contribution: POJO_9001, Artifact: Test_POJO_9001.composite] - XMLSchema validation error occured in: Test_POJO_9001.composite ,line = ***, column = ***, Message = cvc-complex-type.3.2.2: Attribute 'interface' is not allowed to appear in element 'implementation.java'. -POJO_10001=org.oasisopen.sca.ServiceRuntimeException: [Contribution: POJO_10001, Artifact: META-INF/sca-contribution.xml] - [JCI10001] The value of the @package attribute on the element is not unique across all other elements within the contribution. -POJO_10004=org.apache.tuscany.sca.contribution.processor.ContributionResolveException: [JCI100007] A Java package org.oasisopen.sca.test;version=1.0.0 that is specified on an export element MUST be contained within the contribution containing the export element. -POJO_10005=org.oasisopen.sca.ServiceRuntimeException: [Contribution: POJO_10005, Artifact: META-INF/sca-contribution.xml] - [JCI10004] The value of the @package attribute on the element is not unique across all other elements within the contribution. -POJO_10006=org.apache.tuscany.sca.contribution.processor.ContributionResolveException: [JCI100007] A Java package org.oasisopen.sca.test.y that is specified on an export element MUST be contained within the contribution containing the export element. - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/compliance-tests/policy/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/compliance-tests/policy/pom.xml deleted file mode 100644 index 05064190ff..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/compliance-tests/policy/pom.xml +++ /dev/null @@ -1,136 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-compliance-tests - 2.0-M5 - ../pom.xml - - tuscany-compliance-test-policy - Apache Tuscany SCA Specification Compliance Tests Policy - - - - - - - org.apache.tuscany.sca - oasis-policy-test-runner - 1.0-SNAPSHOT - - - - org.apache.tuscany.sca.shades - tuscany-base - 2.0-M5 - - - - - org.codehaus.woodstox - wstx-asl - 3.2.4 - runtime - - - stax - stax-api - - - - - - junit - junit - 4.5 - test - - - - - - ${artifactId} - - - - org.apache.maven.plugins - maven-surefire-plugin - - - **/POL_3001_TestCase.java - **/POL_3002_TestCase.java - **/POL_4003_TestCase.java - **/POL_4028_TestCase.java - - **/POL_9006_TestCase.java - **/POL_9009_TestCase.java - **/POL_9015_TestCase.java - **/POL_9016_TestCase.java - **/POL_9017_TestCase.java - **/POL_9018_TestCase.java - - **/POL_10001_TestCase.java - **/POL_10002_TestCase.java - - **/POL_11001_TestCase.java - - - - - - org.apache.maven.plugins - maven-dependency-plugin - - - unpack - test-compile - - unpack - - - - - org.apache.tuscany.sca - oasis-policy-contributions - 1.0-SNAPSHOT - zip - ${project.build.directory}/oasis-contributions - - - org.apache.tuscany.sca - oasis-policy-test-runner - 1.0-SNAPSHOT - jar - commons-logging.properties,oasis-sca-tests.properties,tuscany-oasis-sca-tests-errors.properties - ${project.build.directory}/test-classes - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/compliance-tests/policy/src/test/java/org/apache/tuscany/sca/otest/TuscanyRuntimeBridge.java b/sca-java-2.x/tags/2.0-M5-RC3/compliance-tests/policy/src/test/java/org/apache/tuscany/sca/otest/TuscanyRuntimeBridge.java deleted file mode 100644 index 136e5668c0..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/compliance-tests/policy/src/test/java/org/apache/tuscany/sca/otest/TuscanyRuntimeBridge.java +++ /dev/null @@ -1,238 +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 org.apache.tuscany.sca.otest; - -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.fail; - -import java.io.BufferedWriter; -import java.io.File; -import java.io.FileWriter; -import java.io.IOException; -import java.io.InputStream; -import java.util.Properties; - -import org.apache.tuscany.sca.node.Contribution; -import org.apache.tuscany.sca.node.ContributionLocationHelper; -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; - -import client.RuntimeBridge; -import client.TestConfiguration; - -/** - * An implementation of the Runtime Bridge for the Apache Tuscany SCA runtime (version 2.x) - * - */ -public class TuscanyRuntimeBridge implements RuntimeBridge { - - static final String CONTRIBUTION_LOCATION_PROPKEY = "OASIS_TESTENV_CONTRIBUTION_LOCATION"; - - protected NodeFactory launcher; - protected Node node; - protected Properties expectedErrorMessages; - - TestConfiguration testConfiguration = null; - - public TuscanyRuntimeBridge() { - // read test error mapping - expectedErrorMessages = new Properties(); - try { - InputStream propertiesStream = this.getClass().getResourceAsStream("/tuscany-oasis-sca-tests-errors.properties"); - expectedErrorMessages.load(propertiesStream); - } catch (IOException e) { - System.out.println("Unable to read oasis-sca-tests-errors.properties file"); - } - } - - public TestConfiguration getTestConfiguration() { - return testConfiguration; - } - - public void setTestConfiguration(TestConfiguration testConfiguration) { - this.testConfiguration = testConfiguration; - } - - public boolean startContribution(String compositeName, - String contributionLocation, String[] contributionNames) - throws Exception { - //TODO: - return startContribution(contributionLocation, contributionNames); - } - - public boolean startContribution(String contributionLocation, String[] contributionNames) throws Exception { - try { - // Tuscany specific code which starts the contribution(s) holding the test - Properties ps = new Properties(); - ps.setProperty("defaultScheme", "vm"); - ps.setProperty("org.apache.tuscany.sca.binding.ws.jaxws.ri.JAXWSBindingProviderFactory.defaultPort", "8080"); - launcher = NodeFactory.newInstance(ps); - - Contribution[] contributions = new Contribution[contributionNames.length]; - String[] contributionURIs = getContributionURIs(contributionLocation); - for (int i = 0; i < contributions.length; i++) { - contributions[i] = new Contribution(contributionNames[i], contributionURIs[i]); - } // end for - - node = launcher.createNode(testConfiguration.getComposite(), contributions); - // Start the node - node.start(); - - // For debugging - // print out the composites that have been read in success cases - // System.out.println(((NodeImpl)node).dumpDomainComposite()); - } catch (Exception e) { - System.out.println(e.getMessage()); - e.printStackTrace(); - throw e; - } // end try - - return true; - } // end method startContribution - - /** - * Gets the location of the Contributions as URIs - * @param contributionLocation - a location pattern URI, which contains one or more "%1" - * substrings, which are substituted with the name of the contribution to get the URI of - * the contribution - * @return the contribution locations as an array of Strings - */ - protected String[] getContributionURIs(String contributionLocation) throws Exception { - String[] locations; - locations = testConfiguration.getContributionNames(); - - if (locations != null && contributionLocation != null) { - - for (int i = 0; i < locations.length; i++) { - String aLocation = contributionLocation.replaceAll("%1", locations[i]); - // Looks like bugs in the oasis code that sometimes still uses jars for some - if (aLocation.endsWith("_POJO.zip") && !aLocation.endsWith("ASM_8005_Java-1.0.zip")) { - aLocation = aLocation.substring(0, aLocation.length()-3) + "jar"; - } - if (!(new File(aLocation)).exists()) { - aLocation = aLocation.replace(".zip", ".jar"); - } - locations[i] = aLocation; - } // end for - } else { - if (locations == null) { - // No contribution specified - throw an Exception - throw new Exception("Unable to start SCA runtime - no contribution supplied - error"); - } else { - // No contribution location supplied - throw an Exception - throw new Exception("Unable to start SCA runtime - no contribution location supplied - error"); - } // end if - } // end if - - return locations; - } // end getContributionURI - - public void stopContribution() { - if (node != null) { - node.stop(); - } // end if - if (launcher != null) { - launcher.destroy(); - } // end if - } // end method stopContribution - - public String getContributionLocation(Class testClass) { - return ContributionLocationHelper.getContributionLocation(testConfiguration.getTestClass()); - } // end method getContributionLocation - - public void checkError(String testName, Throwable ex) throws Throwable { - - String expectedMessage = expectedErrorMessages.getProperty(testName); - String receivedMessage = ex.getMessage(); - - if (expectedMessage == null){ - writeMissingMessage(testName, ex); - fail("Null expected error message for test " + testName + - "Please add message to oasis-sca-tests-errors.properties"); - } // end if - - if (receivedMessage == null){ - ex.printStackTrace(); - fail("Null received error message for test " + testName); - } // end if - - if (expectedMessage.startsWith("*")) { - // allow using * to ignore a message comparison - return; - } - - // Deal with the case where the message has variable parts within it - // marked with the characters ***. Here we tokenize the epected string - // and make sure all the individual parts are present in the results string - String expectedMessageParts[] = expectedMessage.split("\\*\\*\\*"); - - if (expectedMessageParts.length > 1){ - int foundParts = 0; - for(int i = 0; i < expectedMessageParts.length; i++){ - if (receivedMessage.indexOf(expectedMessageParts[i]) > -1 ){ - foundParts++; - } - } - - if (foundParts == expectedMessageParts.length){ - return; - } - } - - - // Deal with the case where the end of the message is variable (eg contains absolute filenames) - // and where the only relevant part is the start of the message - in this case the expected - // message only contains the stem section which is unchanging... - if( receivedMessage.length() > expectedMessage.length() ) { - // Truncate the received message to the length of the expected message - receivedMessage = receivedMessage.substring(0, expectedMessage.length() ); - } // end if - - if (!expectedMessage.equals(receivedMessage)) { - writeIncorrectMessage(testName, expectedMessage, receivedMessage); - } - - assertEquals( expectedMessage, receivedMessage ); - - return; - - } - - protected void writeMissingMessage(String testName, Throwable ex) { - try { - BufferedWriter out = new BufferedWriter(new FileWriter("target/OTestMissingMsgs.txt", true)); - out.write(testName + "=*"); - out.newLine(); - out.close(); - } catch (IOException e) { - } - } - - protected void writeIncorrectMessage(String testName, String expected, String received) { - try { - BufferedWriter out = new BufferedWriter(new FileWriter("target/OTestIncorrectMsgs.txt", true)); - out.write(testName); out.newLine(); - out.write(" " + expected); out.newLine(); - out.write(" " + received); out.newLine(); - out.close(); - } catch (IOException e) { - } - } - -} // end class TuscanyRuntimeBridge diff --git a/sca-java-2.x/tags/2.0-M5-RC3/compliance-tests/policy/src/test/resources/oasis-sca-tests.properties b/sca-java-2.x/tags/2.0-M5-RC3/compliance-tests/policy/src/test/resources/oasis-sca-tests.properties deleted file mode 100644 index 0d8cc27a45..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/compliance-tests/policy/src/test/resources/oasis-sca-tests.properties +++ /dev/null @@ -1,30 +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. - -# OASIS SCA Assembly test properties -# The implementation type to use for Assembly test suite -# org.oasis.sca.tests.assembly.lang=BPEL -org.oasis.sca.tests.assembly.lang=Java - -# The class to use as the Runtime Bridge for the SCA runtime under test -#org.oasis.sca.tests.assembly.runtime_bridge=org.apache.tuscany.sca.otest.TuscanyOSGiRuntimeBridge -org.oasis.sca.tests.assembly.runtime_bridge=org.apache.tuscany.sca.otest.TuscanyRuntimeBridge - -# The location of the contributions for the test suite -# %1 represents the placement of the name of each contribution into the location URI -org.oasis.sca.tests.assembly.contribution.location=target/oasis-contributions/%1.zip - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/compliance-tests/policy/src/test/resources/tuscany-oasis-sca-tests-errors.properties b/sca-java-2.x/tags/2.0-M5-RC3/compliance-tests/policy/src/test/resources/tuscany-oasis-sca-tests-errors.properties deleted file mode 100644 index 8a17b24f8b..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/compliance-tests/policy/src/test/resources/tuscany-oasis-sca-tests-errors.properties +++ /dev/null @@ -1,44 +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. - -POL_3001=TUSCANY-3370 -POL_3002=TUSCANY-3370 -POL_3003=org.oasisopen.sca.ServiceRuntimeException: [Contribution: POL_3003, Artifact: META-INF/definitions.xml, Definitions: jar:file:***/POL_3003.zip!/META-INF/definitions.xml] - [ASM10001,POL30002] Duplicate intent {http://docs.oasis-open.org/ns/opencsa/scatests/200903}dupIntent found in domain -POL_3004=org.oasisopen.sca.ServiceRuntimeException: [Contribution: POL_3004, Artifact: META-INF/definitions.xml, Definitions: jar:file:***/POL_3004.zip!/META-INF/definitions.xml] - [POL30004] Intent twoDefaults has more than one qualifier marked as the default qualifier -POL_3005=org.oasisopen.sca.ServiceRuntimeException: [Contribution: POL_3005, Artifact: META-INF/definitions.xml, Definitions: jar:file:***/POL_3005.zip!/META-INF/definitions.xml] - [POL30005] The intent dupQualifiers has more than one qualifier with the name qual1 -POL_3006=org.oasisopen.sca.ServiceRuntimeException: [Contribution: POL_3006, Artifact: META-INF/definitions.xml, Definitions: jar:file:***/POL_3006.zip!/META-INF/definitions.xml] - [POL30006] The profile intent name bad.ProfileIntent must not have the character "." in it -POL_3009=org.oasisopen.sca.ServiceRuntimeException: [Contribution: POL_3009, Artifact: META-INF/definitions.xml, Definitions: jar:file:***/POL_3009.zip!/META-INF/definitions.xml] - [POL30010] The policy set TwoIntentMapPolicySet has more than one intent map with the name testIntent6 -POL_3012=org.oasisopen.sca.ServiceRuntimeException: [Contribution: http://tuscany.apache.org/SystemContribution] - [POL30015] Required Intent - {http://docs.oasis-open.org/ns/opencsa/scatests/200903}undefinedIntent2 not found for ProfileIntent {http://docs.oasis-open.org/ns/opencsa/scatests/200903}badProfileIntent -POL_3013=org.oasisopen.sca.ServiceRuntimeException: [Contribution: http://tuscany.apache.org/SystemContribution] - [POL30016] Excluded Intent {http://docs.oasis-open.org/ns/opencsa/scatests/200903}undefinedIntent not found for intent {http://docs.oasis-open.org/ns/opencsa/scatests/200903}noMuxIntent -POL_3014=org.oasisopen.sca.ServiceRuntimeException: [Contribution: Policy_General, Definitions: jar:file:***/Policy_General.zip!/META-INF/definitions.xml] - DuplicatePolicySet -POL_3015=org.apache.tuscany.sca.contribution.processor.ContributionReadException: javax.xml.xpath.XPathExpressionException -POL_3016=org.apache.tuscany.sca.contribution.processor.ContributionReadException: javax.xml.xpath.XPathExpressionException -POL_3017=org.oasisopen.sca.ServiceRuntimeException: [Contribution: http://tuscany.apache.org/SystemContribution] - [POL30020] The policy set {http://docs.oasis-open.org/ns/opencsa/scatests/200903}BadIntentMapPolicySet intent map testIntent6 has missing qualifiers: testIntent6.qual2 The intent map qualifiers must match the provided intent qualifiers. -POL_3018=org.oasisopen.sca.ServiceRuntimeException: [Contribution: POL_3018, Artifact: META-INF/definitions.xml, Definitions: jar:file:***/POL_3018.zip!/META-INF/definitions.xml] - [POL30021] Intent Map provides for Intent not specified as provided by parent PolicySet - BadIntentMapPolicySet -POL_3020=TUSCANY-3371 -POL_4012=org.oasisopen.sca.ServiceRuntimeException: [Composite: {http://docs.oasis-open.org/ns/opencsa/sca/200912}, Component: TestClient, Service: TestInvocation] - [POL40009,ASM60009,ASM60010,JCA70001,JCA70003] Intent {http://docs.oasis-open.org/ns/opencsa/scatests/200903}testIntent3 and {http://docs.oasis-open.org/ns/opencsa/scatests/200903}testIntent4 are mutually exclusive -POL_4027=org.oasisopen.sca.ServiceRuntimeException: [Contribution: POL_4027, Artifact: META-INF/definitions.xml, Definitions: jar:file:***/POL_4027.zip!/META-INF/definitions.xml] - [POL40020] Duplicate binding type {http://docs.oasis-open.org/ns/opencsa/sca/200912}dupBinding.type found in domain -POL_4028=org.oasisopen.sca.ServiceRuntimeException: [Composite: {http://docs.oasis-open.org/ns/opencsa/sca/200912}] - [POL40002] The policy {http://docs.oasis-open.org/ns/opencsa/scatests/200903}PolicySetExtAttachProp has been attached to a property or one of its children. This is not allowed. -POL_5001=org.oasisopen.sca.ServiceRuntimeException: [Contribution: http://tuscany.apache.org/SystemContribution] - [POL50001] An extension to support the implementation type {http://docs.oasis-open.org/ns/opencsa/sca/200912}unknown.type cant be found in the domain -POL_9006=TUSCANY-1649 -POL_9009=TUSCANY-1649 -POL_9015=TUSCANY-1649 -POL_9016=TUSCANY-1649 -POL_9017=TUSCANY-1649 -POL_9018=TUSCANY-1649 -POL_10001=TUSCANY-3381 -POL_11001=org.oasisopen.sca.ServiceRuntimeException: [Contribution: POL_11001, Artifact: Test_POL_11001.composite] - XMLSchema validation error occured in: Test_POL_11001.composite ,line = ***, column = ***, Message = cvc-complex-type.2.4.a: Invalid content was found starting with element 'policySetAttachment'. One of '{"http://docs.oasis-open.org/ns/opencsa/sca/200912":documentation, "http://docs.oasis-open.org/ns/opencsa/sca/200912":interface, "http://docs.oasis-open.org/ns/opencsa/sca/200912":binding, "http://docs.oasis-open.org/ns/opencsa/sca/200912":callback, WC[##other:"http://docs.oasis-open.org/ns/opencsa/sca/200912"]}' is expected \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/compliance-tests/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/compliance-tests/pom.xml deleted file mode 100644 index ecab946c5c..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/compliance-tests/pom.xml +++ /dev/null @@ -1,48 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-sca - 2.0-M5 - ../pom.xml - - - pom - tuscany-compliance-tests - Apache Tuscany SCA Compliance Tests - - - - - oasis.contributions - http://people.apache.org/~antelder/tuscany/otests/maven - - - - - assembly - policy - java-caa - java-ci - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/distribution/all/manifests/axiom-api-1.2.7.MF b/sca-java-2.x/tags/2.0-M5-RC3/distribution/all/manifests/axiom-api-1.2.7.MF deleted file mode 100644 index 3a692b6c06..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/distribution/all/manifests/axiom-api-1.2.7.MF +++ /dev/null @@ -1,47 +0,0 @@ -Manifest-Version: 1.0 -Bundle-ManifestVersion: 2 -Bundle-Name: Axiom API -Bundle-SymbolicName: org.apache.ws.commons.axiom.axiom-api -Bundle-Version: 1.2.7 -Bundle-Vendor: Apache Software Foundation -Export-Package: org.apache.axiom.attachments, - org.apache.axiom.attachments.impl, - org.apache.axiom.attachments.lifecycle, - org.apache.axiom.attachments.lifecycle.impl, - org.apache.axiom.attachments.utils, - org.apache.axiom.om, - org.apache.axiom.om.ds, - org.apache.axiom.om.ds.custombuilder, - org.apache.axiom.om.impl, - org.apache.axiom.om.impl.builder, - org.apache.axiom.om.impl.exception, - org.apache.axiom.om.impl.serialize, - org.apache.axiom.om.impl.traverse, - org.apache.axiom.om.impl.util, - org.apache.axiom.om.util, - org.apache.axiom.om.xpath, - org.apache.axiom.soap, - org.apache.axiom.soap.impl.builder -Archiver-Version: Plexus Archiver -Build-Jdk: 1.5.0_15 -Created-By: Apache Maven -Bundle-DocURL: http://www.apache.org/ -Bundle-License: http://www.apache.org/licenses/LICENSE-2.0.txt -Built-By: dims -Import-Package: javax.activation, - javax.mail, - javax.mail.internet, - javax.xml.namespace, - javax.xml.stream, - org.apache.axiom.om.impl.dom.factory;resolution:=optional, - org.apache.axiom.om.impl.llom.factory;resolution:=optional, - org.apache.axiom.soap.impl.dom.factory;resolution:=optional, - org.apache.axiom.soap.impl.llom.soap11;resolution:=optional, - org.apache.axiom.soap.impl.llom.soap12;resolution:=optional, - org.apache.commons.logging, - org.jaxen;resolution:=optional, - org.jaxen.saxpath;resolution:=optional, - org.jaxen.util;resolution:=optional, - org.w3c.dom, - org.xml.sax, - org.xml.sax.helpers diff --git a/sca-java-2.x/tags/2.0-M5-RC3/distribution/all/manifests/axiom-api-1.2.8.MF b/sca-java-2.x/tags/2.0-M5-RC3/distribution/all/manifests/axiom-api-1.2.8.MF deleted file mode 100644 index 671a7bff34..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/distribution/all/manifests/axiom-api-1.2.8.MF +++ /dev/null @@ -1,49 +0,0 @@ -Manifest-Version: 1.0 -Bundle-ManifestVersion: 2 -Bundle-Name: Axiom API -Bundle-SymbolicName: org.apache.ws.commons.axiom.axiom-api -Bundle-Version: 1.2.8 -Bundle-Vendor: Apache Software Foundation -Bundle-DocURL: http://www.apache.org/ -Bundle-License: http://www.apache.org/licenses/LICENSE-2.0.txt -Bundle-ClassPath: axiom-api-1.2.8.jar -Export-Package: org.apache.axiom.attachments, - org.apache.axiom.attachments.impl, - org.apache.axiom.attachments.lifecycle, - org.apache.axiom.attachments.lifecycle.impl, - org.apache.axiom.attachments.utils, - org.apache.axiom.om, - org.apache.axiom.om.ds, - org.apache.axiom.om.ds.custombuilder, - org.apache.axiom.om.impl, - org.apache.axiom.om.impl.builder, - org.apache.axiom.om.impl.exception, - org.apache.axiom.om.impl.serialize, - org.apache.axiom.om.impl.traverse, - org.apache.axiom.om.impl.util, - org.apache.axiom.om.util, - org.apache.axiom.om.xpath, - org.apache.axiom.soap, - org.apache.axiom.soap.impl.builder -Archiver-Version: Plexus Archiver -Build-Jdk: 1.5.0_15 -Created-By: Apache Maven -Built-By: dims -Import-Package: javax.activation, - javax.mail, - javax.mail.internet, - javax.xml.namespace, - javax.xml.stream, - javax.xml.stream.util, - org.apache.axiom.om.impl.dom.factory;resolution:=optional, - org.apache.axiom.om.impl.llom.factory;resolution:=optional, - org.apache.axiom.soap.impl.dom.factory;resolution:=optional, - org.apache.axiom.soap.impl.llom.soap11;resolution:=optional, - org.apache.axiom.soap.impl.llom.soap12;resolution:=optional, - org.apache.commons.logging, - org.jaxen;resolution:=optional, - org.jaxen.saxpath;resolution:=optional, - org.jaxen.util;resolution:=optional, - org.w3c.dom, - org.xml.sax, - org.xml.sax.helpers diff --git a/sca-java-2.x/tags/2.0-M5-RC3/distribution/all/manifests/axis2-kernel-1.5.1.MF b/sca-java-2.x/tags/2.0-M5-RC3/distribution/all/manifests/axis2-kernel-1.5.1.MF deleted file mode 100644 index 686e53ae0b..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/distribution/all/manifests/axis2-kernel-1.5.1.MF +++ /dev/null @@ -1,39 +0,0 @@ -Manifest-Version: 1.0 -Bundle-ManifestVersion: 2 -Bundle-SymbolicName: org.apache.axis2.kernel -Bundle-Name: org.apache.axis2.kernel -Bundle-Version: 1.5.1 -DynamicImport-Package: javax.transaction;version="1.1",javax.transacti - on.xa;version="1.1",javax.xml.ws,* -Bundle-ClassPath: axis2-kernel-1.5.1.jar -Export-Package: org.apache.axis2.dataretrieval;version=1.5.1,org.apach - e.axis2;version=1.5.1,org.apache.axis2.builder;version=1.5.1,org.apac - he.axis2.phaseresolver;version=1.5.1,org.apache.axis2.deployment.repo - sitory.util;version=1.5.1,org.apache.axis2.deployment;version=1.5.1,o - rg.apache.axis2.java.security;version=1.5.1,org.apache.axis2.engine;v - ersion=1.5.1,org.apache.axis2.context;version=1.5.1,org.apache.axis2. - addressing.i18n;version=1.5.1,org.apache.axis2.modules;version=1.5.1, - org.apache.axis2.addressing.metadata;version=1.5.1,org.apache.axis2.d - ataretrieval.client;version=1.5.1,org.apache.axis2.service;version=1. - 5.1,org.apache.axis2.description.java2wsdl.bytecode;version=1.5.1,org - .apache.axis2.i18n;version=1.5.1,org.apache.axis2.deployment.schedule - r;version=1.5.1,org.apache.axis2.description.java2wsdl;version=1.5.1, - org.apache.axis2.transport;version=1.5.1,org.apache.axis2.transport.h - ttp;version=1.5.1,org.apache.axis2.client;version=1.5.1,org.apache.ax - is2.wsdl;version=1.5.1,org.apache.axis2.util.threadpool;version=1.5.1 - ,org.apache.axis2.client.async;version=1.5.1,org.apache.axis2.receive - rs;version=1.5.1,org.apache.axis2.util;version=1.5.1,org.apache.axis2 - .namespace;version=1.5.1,org.apache.axis2.transport.http.util;version - =1.5.1,org.apache.axis2.context.externalize;version=1.5.1,org.apache. - axis2.addressing;version=1.5.1,org.apache.axis2.deployment.util;versi - on=1.5.1,org.apache.axis2.dispatchers;version=1.5.1,org.apache.axis2. - deployment.resolver;version=1.5.1,org.apache.axis2.clustering.configu - ration;version=1.5.1,org.apache.axis2.transaction;version=1.5.1,org.a - pache.axis2.clustering;version=1.5.1,org.apache.axis2.wsdl.util;versi - on=1.5.1,org.apache.axis2.clustering.context;version=1.5.1,org.apache - .axis2.builder.unknowncontent;version=1.5.1,org.apache.axis2.handlers - ;version=1.5.1,org.apache.axis2.addressing.wsdl;version=1.5.1,org.apa - che.axis2.classloader;version=1.5.1,org.apache.axis2.description;vers - ion=1.5.1 -Import-Package: javax.xml.ws -Eclipse-ExtensibleAPI: true diff --git a/sca-java-2.x/tags/2.0-M5-RC3/distribution/all/manifests/axis2-transport-http-1.5.1.MF b/sca-java-2.x/tags/2.0-M5-RC3/distribution/all/manifests/axis2-transport-http-1.5.1.MF deleted file mode 100644 index ae6448acf5..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/distribution/all/manifests/axis2-transport-http-1.5.1.MF +++ /dev/null @@ -1,12 +0,0 @@ -Manifest-Version: 1.0 -Bundle-ManifestVersion: 2 -Bundle-SymbolicName: org.apache.axis2.transport.http -Bundle-Name: org.apache.axis2.transport.http -Bundle-Version: 1.5.1 -DynamicImport-Package: javax.transaction;version="1.1",javax.transacti - on.xa;version="1.1",* -Bundle-ClassPath: axis2-transport-http-1.5.1.jar -Export-Package: org.apache.axis2.transport.http.server;version=1.5.1,o - rg.apache.axis2.transport.http;version=1.5.1,org.apache.axis2.transpo - rt.http.util;version=1.5.1 -Fragment-Host: org.apache.axis2.kernel;bundle-version=1.5.1 diff --git a/sca-java-2.x/tags/2.0-M5-RC3/distribution/all/manifests/woden-impl-dom-1.0M8.MF b/sca-java-2.x/tags/2.0-M5-RC3/distribution/all/manifests/woden-impl-dom-1.0M8.MF deleted file mode 100644 index b3e9d79d28..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/distribution/all/manifests/woden-impl-dom-1.0M8.MF +++ /dev/null @@ -1,229 +0,0 @@ -Manifest-Version: 1.0 -Archiver-Version: Plexus Archiver -Created-By: 1.4.2_17 (Sun Microsystems Inc.) -Built-By: dims -Build-Jdk: 1.4.2_17 -Bundle-License: http://www.apache.org/licenses/LICENSE-2.0.txt -Import-Package: com.ibm.wsdl.util, - com.ibm.wsdl.util.xml, - javax.wsdl, - javax.wsdl.extensions, - javax.wsdl.extensions.soap, - javax.wsdl.factory, - javax.wsdl.xml, - javax.xml.namespace, - javax.xml.parsers, - org.apache.woden;version="1.0", - org.apache.woden.internal;version="1.0.0", - org.apache.woden.internal.resolver;version="1.0.0", - org.apache.woden.internal.schema;version="1.0.0", - org.apache.woden.internal.util;version="1.0.0", - org.apache.woden.internal.util.dom;version="1.0.0", - org.apache.woden.internal.wsdl20;version="1.0.0", - org.apache.woden.internal.wsdl20.assertions;version="1.0.0", - org.apache.woden.internal.wsdl20.extensions;version="1.0.0", - org.apache.woden.internal.wsdl20.extensions.http;version="1.0.0", - org.apache.woden.internal.wsdl20.extensions.rpc;version="1.0.0", - org.apache.woden.internal.wsdl20.extensions.soap;version="1.0.0", - org.apache.woden.internal.wsdl20.validation;version="1.0.0", - org.apache.woden.internal.xml;version="1.0.0", - org.apache.woden.internal.xpointer;version="1.0.0", - org.apache.woden.resolver;version="1.0", - org.apache.woden.schema;version="1.0", - org.apache.woden.tool.converter;version="1.0.0", - org.apache.woden.types;version="1.0", - org.apache.woden.wsdl20;version="1.0", - org.apache.woden.wsdl20.enumeration;version="1.0", - org.apache.woden.wsdl20.extensions;version="1.0", - org.apache.woden.wsdl20.extensions.http;version="1.0", - org.apache.woden.wsdl20.extensions.rpc;version="1.0", - org.apache.woden.wsdl20.extensions.soap;version="1.0", - org.apache.woden.wsdl20.fragids;version="1.0", - org.apache.woden.wsdl20.validation;version="1.0", - org.apache.woden.wsdl20.xml;version="1.0", - org.apache.woden.xml;version="1.0", - org.apache.woden.xpointer;version="1.0", - org.apache.ws.commons.schema, - org.apache.ws.commons.schema.resolver, - org.apache.ws.commons.schema.utils, - org.apache.xerces.parsers, - org.apache.xml.serialize, - org.w3c.dom, - org.xml.sax -Bnd-LastModified: 1208980539265 -Export-Package: javax.xml.namespace, - org.apache.woden.internal;version="1.0.0"; - uses:="org.apache.woden.wsdl20, - org.apache.woden.schema, - org.apache.xerces.parsers, - javax.xml.namespace, - org.apache.woden.xml, - org.apache.woden.wsdl20.extensions, - org.apache.woden.resolver, - org.apache.woden.internal.schema, - javax.xml.parsers, - org.apache.woden.wsdl20.xml, - org.xml.sax, - org.apache.ws.commons.schema, - org.w3c.dom, - org.apache.woden, - org.apache.woden.internal.wsdl20, - org.apache.woden.internal.xpointer, - org.apache.woden.internal.util.dom, - org.apache.ws.commons.schema.resolver, - org.apache.woden.internal.wsdl20.extensions, - org.apache.woden.xpointer, - org.apache.woden.internal.wsdl20.validation, - org.apache.woden.wsdl20.enumeration, - org.apache.woden.types, - org.apache.woden.internal.resolver, - org.apache.woden.internal.util", - org.apache.woden.internal.resolver;version="1.0.0"; - uses:="org.apache.ws.commons.schema.resolver, - org.xml.sax, - org.apache.xml.serialize, - org.w3c.dom, - org.apache.woden, - org.apache.woden.resolver, - org.apache.woden.internal.util", - org.apache.woden.internal.schema;version="1.0.0"; - uses:="org.apache.woden.schema, - org.apache.ws.commons.schema, - javax.xml.namespace, - org.apache.woden", - org.apache.woden.internal.util;version="1.0.0", - org.apache.woden.internal.util.dom;version="1.0.0"; - uses:="javax.xml.namespace, - org.w3c.dom, - org.apache.woden, - org.apache.woden.internal.util", - org.apache.woden.internal.wsdl20;version="1.0.0"; - uses:="org.apache.woden.wsdl20, - org.apache.woden.schema, - org.apache.woden.wsdl20.extensions.rpc, - org.apache.ws.commons.schema, - javax.xml.namespace, - org.apache.woden.xml, - org.apache.woden, - org.apache.woden.wsdl20.extensions, - org.apache.woden.wsdl20.fragids, - org.apache.woden.internal, - org.apache.woden.internal.wsdl20.extensions, - org.apache.ws.commons.schema.utils, - org.apache.woden.internal.schema, - org.apache.woden.wsdl20.enumeration, - org.apache.woden.wsdl20.xml, - org.apache.woden.types", - org.apache.woden.internal.wsdl20.assertions;version="1.0.0"; - uses:="org.apache.woden.wsdl20, - org.apache.woden.wsdl20.validation, - javax.xml.namespace, - org.apache.woden.wsdl20.xml, - org.apache.woden, - org.apache.woden.resolver, - org.apache.woden.internal", - org.apache.woden.internal.wsdl20.extensions;version="1.0.0"; - uses:="org.apache.woden.wsdl20, - org.apache.woden.wsdl20.extensions.http, - org.apache.woden.internal.wsdl20.extensions.http, - org.apache.woden.internal.xml, - org.apache.woden.internal.wsdl20.extensions.soap, - org.apache.woden.wsdl20.extensions.rpc, - javax.xml.namespace, - org.apache.woden.xml, - org.apache.woden, - org.apache.woden.wsdl20.extensions, - org.apache.woden.internal.wsdl20.extensions.rpc, - org.apache.woden.wsdl20.xml, - org.apache.woden.wsdl20.extensions.soap, - org.apache.woden.internal.util", - org.apache.woden.internal.wsdl20.extensions.http;version="1.0.0"; - uses:="org.apache.woden.wsdl20, - org.apache.woden.wsdl20.extensions.http, - org.apache.woden.internal.xml, - org.apache.ws.commons.schema, - javax.xml.namespace, - org.apache.woden.xml, - org.apache.woden.internal.wsdl20, - org.apache.woden, - org.apache.woden.wsdl20.extensions, - org.apache.woden.internal, - org.apache.woden.internal.wsdl20.extensions, - org.apache.woden.wsdl20.xml", - org.apache.woden.internal.wsdl20.extensions.rpc;version="1.0.0"; - uses:="org.apache.woden.wsdl20, - org.apache.woden.wsdl20.extensions.rpc, - javax.xml.namespace, - org.apache.woden.xml, - org.apache.woden.wsdl20.xml, - org.apache.woden, - org.apache.woden.wsdl20.extensions", - org.apache.woden.internal.wsdl20.extensions.soap;version="1.0.0"; - uses:="org.apache.woden.wsdl20, - org.apache.woden.wsdl20.extensions.http, - org.apache.woden.internal.xml, - org.apache.ws.commons.schema, - javax.xml.namespace, - org.apache.woden.xml, - org.apache.woden, - org.apache.woden.internal.wsdl20, - org.apache.woden.wsdl20.extensions, - org.apache.woden.internal, - org.apache.woden.internal.wsdl20.extensions, - org.apache.woden.wsdl20.xml, - org.apache.woden.wsdl20.extensions.soap", - org.apache.woden.internal.wsdl20.validation;version="1.0.0"; - uses:="org.apache.woden.wsdl20, - org.apache.woden.wsdl20.validation, - org.apache.woden.schema, - org.apache.woden.internal.wsdl20.assertions, - org.apache.ws.commons.schema, - javax.xml.namespace, - org.apache.woden, - org.apache.woden.wsdl20.extensions, - org.apache.woden.resolver, - org.apache.woden.internal, - org.apache.woden.types, - org.apache.woden.wsdl20.xml", - org.apache.woden.internal.xml;version="1.0.0"; - uses:="org.apache.woden.wsdl20.extensions.http, - org.apache.woden.wsdl20.extensions.rpc, - javax.xml.namespace, - org.apache.woden.xml, - org.apache.woden, - org.apache.woden.internal.util, - org.apache.woden.internal", - org.apache.woden.internal.xpointer;version="1.0.0"; - uses:="org.apache.woden.xpointer, - org.apache.woden.types, - org.w3c.dom, - org.apache.woden, - org.apache.woden.internal", - org.apache.woden.tool.converter;version="1.0.0"; - uses:="javax.wsdl, - javax.wsdl.extensions, - javax.wsdl.extensions.soap, - javax.wsdl.xml, - javax.wsdl.factory, - javax.xml.namespace, - com.ibm.wsdl.util, - com.ibm.wsdl.util.xml" -Bundle-Version: 1.0.0 -Bundle-Description: The Woden project is a subproject of the Apache We - b Services Project to develop a Java class library for reading, ma - nipulating, creating and writing WSDL documents, initially to supp - ort WSDL 2.0 but with the longer term aim of supporting past, present - and future versions of WSDL. There are two main deliverables: - an API and an implementation. The Woden API consists of a set of J - ava interfaces. The WSDL 2.0-specific portion of the Woden API confor - ms to the W3C WSDL 2.0 specification. The implementation will be a - high performance implementation directly usable in other Apache p - rojects such as Axis2. -Bundle-Name: Woden - DOM -Bundle-DocURL: http://www.apache.org/ -Bundle-ManifestVersion: 2 -Bundle-Vendor: Apache Software Foundation -Bundle-SymbolicName: org.apache.woden.woden-impl-dom -Tool: Bnd-0.0.238 - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/distribution/all/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/distribution/all/pom.xml deleted file mode 100644 index 07ffb7f1d3..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/distribution/all/pom.xml +++ /dev/null @@ -1,294 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-distribution - 2.0-M5 - ../pom.xml - - - tuscany-distribution-all - Apache Tuscany SCA All-in-one Distribution - pom - - - - org.apache.tuscany.sca - tuscany-feature-all - pom - 2.0-M5 - - - org.apache.tuscany.sca - tuscany-domain-node - 2.0-M5 - - - org.apache.tuscany.sca - tuscany-binding-ejb-runtime - 2.0-M5 - - - org.apache.tuscany.sca - tuscany-binding-hazelcast-runtime - 2.0-M5 - - - org.apache.tuscany.sca - tuscany-binding-jms-runtime - 2.0-M5 - - - org.apache.tuscany.sca - tuscany-implementation-web-client - 2.0-M5 - - - org.apache.tuscany.sca - tuscany-tracing-aspectj - 2.0-M5 - - - org.aspectj - aspectjweaver - 1.6.8 - - - - org.apache.tuscany.sca.shades - tuscany-base - 2.0-M5 - - - org.apache.tuscany.sca.shades - tuscany-spring - 2.0-M5 - - - - - - - default - - true - - - false - false - - - - - org.apache.maven.plugins - maven-assembly-plugin - 2.2-beta-3 - - - distribution-package - package - - single - - - - src/main/assembly/bin-default.xml - - gnu - apache-tuscany-sca-all-${version} - true - false - - - - - - - - - - distribution - - false - false - - - - - org.apache.maven.plugins - maven-assembly-plugin - 2.2-beta-3 - - - distribution-package - package - - single - - - - src/main/assembly/bin-distribution.xml - src/main/assembly/src.xml - - gnu - apache-tuscany-sca-all-${version} - true - true - - - - - - - - - - singlebundle - - true - true - - - - - - - - - - org.apache.tuscany.maven.plugins - maven-bundle-plugin - 1.0.6 - - - distribution-modules - generate-resources - - generate-modules - - - target/modules - ${useDistributionName} - ${generateAggregatedBundle} - true - - org.apache.tuscany.sca.shades - - - - org.apache.ws.commons.axiom - axiom-api - 1.2.8 - ${basedir}/manifests/axiom-api-1.2.8.MF - - - org.apache.woden - woden-impl-dom - 1.0M8 - ${basedir}/manifests/woden-impl-dom-1.0M8.MF - - - - org.apache.axis2 - axis2-kernel - 1.5.1 - ${basedir}/manifests/axis2-kernel-1.5.1.MF - - - org.apache.axis2 - axis2-transport-http - 1.5.1 - ${basedir}/manifests/axis2-transport-http-1.5.1.MF - - - org.apache.axis2 - * - * - - - - - - - - - - org.eclipse - osgi - 3.3.0-v20070530 - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/distribution/all/src/main/assembly/bin-default.xml b/sca-java-2.x/tags/2.0-M5-RC3/distribution/all/src/main/assembly/bin-default.xml deleted file mode 100644 index c946a0925a..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/distribution/all/src/main/assembly/bin-default.xml +++ /dev/null @@ -1,37 +0,0 @@ - - - - - - true - tuscany-sca-${version} - - dir - - - - src/main/components/bin-common.xml - src/main/components/bin-lib.xml - src/main/components/bin-modules.xml - src/main/components/bin-samples.xml - src/main/components/bin-launcher.xml - src/main/components/bin-tracing.xml - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/distribution/all/src/main/assembly/bin-distribution.xml b/sca-java-2.x/tags/2.0-M5-RC3/distribution/all/src/main/assembly/bin-distribution.xml deleted file mode 100644 index 59b7c14719..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/distribution/all/src/main/assembly/bin-distribution.xml +++ /dev/null @@ -1,37 +0,0 @@ - - - - - - true - tuscany-sca-${version} - - tar.gz - zip - - - - src/main/components/bin-common.xml - src/main/components/bin-lib.xml - src/main/components/bin-modules.xml - src/main/components/bin-samples.xml - src/main/components/bin-launcher.xml - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/distribution/all/src/main/assembly/src.xml b/sca-java-2.x/tags/2.0-M5-RC3/distribution/all/src/main/assembly/src.xml deleted file mode 100644 index 4badbac903..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/distribution/all/src/main/assembly/src.xml +++ /dev/null @@ -1,45 +0,0 @@ - - - - - src - true - tuscany-sca-${version}-src - - tar.gz - zip - - - - - ../.. - - - **/.* - **/.*/** - **/*.log - **/target - **/target/**/* - **/maven-eclipse.xml - modules/web-javascript-dojo/src/main/resources/dojo/** - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/distribution/all/src/main/components/bin-common.xml b/sca-java-2.x/tags/2.0-M5-RC3/distribution/all/src/main/components/bin-common.xml deleted file mode 100644 index b5b7111096..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/distribution/all/src/main/components/bin-common.xml +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - - ../.. - - - CHANGES - README - RELEASE_NOTES - - - - src/main/release/bin - - - INSTALL - LICENSE - NOTICE - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/distribution/all/src/main/components/bin-launcher.xml b/sca-java-2.x/tags/2.0-M5-RC3/distribution/all/src/main/components/bin-launcher.xml deleted file mode 100644 index 4afd92b098..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/distribution/all/src/main/components/bin-launcher.xml +++ /dev/null @@ -1,40 +0,0 @@ - - - - - src/main/release/launcher - bin - - - - - - - - bin - false - - org.apache.tuscany.sca:tuscany-launcher - - launcher.jar - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/distribution/all/src/main/components/bin-lib.xml b/sca-java-2.x/tags/2.0-M5-RC3/distribution/all/src/main/components/bin-lib.xml deleted file mode 100644 index 1da6bebbe6..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/distribution/all/src/main/components/bin-lib.xml +++ /dev/null @@ -1,55 +0,0 @@ - - - - - - lib - true - false - - org.apache.tuscany.sca.shades:tuscany-base - org.apache.ws.commons.schema:XmlSchema - cglib:cglib - com.hazelcast:* - wsdl4j:wsdl4j - org.apache.tuscany.sca:tuscany-sca-api - - - - - lib/spring - true - false - - org.apache.tuscany.sca.shades:tuscany-spring - org.springframework:* - - - - - - src/main/release/bin/ - lib - - README - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/distribution/all/src/main/components/bin-modules.xml b/sca-java-2.x/tags/2.0-M5-RC3/distribution/all/src/main/components/bin-modules.xml deleted file mode 100644 index 15233db587..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/distribution/all/src/main/components/bin-modules.xml +++ /dev/null @@ -1,35 +0,0 @@ - - - - - - target - / - - modules/**/* - features/**/* - - - org.aspectj:aspectjweaver - org.apache.tuscany.sca.shades:* - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/distribution/all/src/main/components/bin-samples.xml b/sca-java-2.x/tags/2.0-M5-RC3/distribution/all/src/main/components/bin-samples.xml deleted file mode 100644 index 1c1bc5abfd..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/distribution/all/src/main/components/bin-samples.xml +++ /dev/null @@ -1,53 +0,0 @@ - - - - - - ../../samples - samples - - - **/.* - **/.*/** - **/*.log - **/*.svg - **/maven-eclipse.xml - **/target/mvn-eclipse-cache.properties - **/target/pom-transformed.xml - **/target/classes - **/target/classes/**/* - **/target/dependency-maven-plugin-markers - **/target/dependency-maven-plugin-markers/**/* - **/target/.felix - **/target/.felix/**/* - **/target/maven-archiver - **/target/maven-archiver/**/* - **/target/test-classes - **/target/test-classes/**/* - **/target/surefire-reports - **/target/surefire-reports/**/* - **/target/surefire-osgi-reports - **/target/surefire-osgi-reports/**/* - webapps/*/target - webapps/*/target/**/* - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/distribution/all/src/main/components/bin-tracing.xml b/sca-java-2.x/tags/2.0-M5-RC3/distribution/all/src/main/components/bin-tracing.xml deleted file mode 100644 index d80fdf42f0..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/distribution/all/src/main/components/bin-tracing.xml +++ /dev/null @@ -1,39 +0,0 @@ - - - - - src/main/release/tracing - bin - - - - - - - bin - false - - org.aspectj:aspectjweaver - - aspectjweaver.jar - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/distribution/all/src/main/release/bin/INSTALL b/sca-java-2.x/tags/2.0-M5-RC3/distribution/all/src/main/release/bin/INSTALL deleted file mode 100644 index b8df91da7b..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/distribution/all/src/main/release/bin/INSTALL +++ /dev/null @@ -1,29 +0,0 @@ -Installing the Apache Tuscany SCA 2.0-M5 June 2010 Release binary distribution -================================================================================== - -Unzip Tuscany binary distribution archive and you get the following: - -tuscany-sca-2.0-M5 - CHANGES - A note of the major changes in this release - INSTALL - this help file - LICENSE - the Apache License and any dependecy licenses - NOTICE - attribution notices associated with the licenses - README - readme for the release - RELEASE_NOTES - description of this release - - /bin - Tuscany launcher (for use when running tuscany from the command line) - - /features - OSGi runtime configuration, Tuscany manifest and PDE target - - /lib - a new feature of this release looking at how to aggregate the - information in modules into more coarse grained jars to ease - classpath creation without having to rely on the Tuscany distribution - structure. - - /modules - all of the individual Tuscany jars and their dependencies - - /samples - all the Tuscany samples, see the README in that directory - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/distribution/all/src/main/release/bin/LICENSE b/sca-java-2.x/tags/2.0-M5-RC3/distribution/all/src/main/release/bin/LICENSE deleted file mode 100644 index 4586f6b833..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/distribution/all/src/main/release/bin/LICENSE +++ /dev/null @@ -1,2297 +0,0 @@ - - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright [yyyy] [name of copyright owner] - - Licensed 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. - - -=============================================================================== - -APACHE TUSCANY SUBCOMPONENTS: - -The Apache Tuscany binary distribution includes a number of subcomponents -with separate copyright notices and license terms. Your use of the -code for the these subcomponents is subject to the terms and -conditions of the following licenses. - -=============================================================================== - -The following components come under Apache Software License 2.0 - - abdera-client-1.0.jar - abdera-core-1.0.jar - abdera-extensions-html-1.0.jar - abdera-extensions-json-1.0.jar - abdera-extensions-main-1.0.jar - abdera-i18n-1.0.jar - abdera-parser-1.0.jar - abdera-server-1.0.jar - addressing-1.3.mar - aopalliance-1.0.jar - annogen-0.1.0.jar - aspectjrt-1.6.8.jar - aspectjweaver-1.6.8.jar - axiom-api-1.2.8.jar - axiom-dom-1.2.8.jar - axiom-impl-1.2.8.jar - axis2-codegen-1.5.1.jar - axis2-kernel-1.5.1.jar - axis2-java2wsdl-1.5.1.jar - axis2-mtompolicy-1.5.1.jar - axis2-transport-base-1.0.0.jar - axis2-transport-jms-1.0.0.jar - axis2-transport-local-1.5.1.jar - axis2-transport-http-1.5.1.jar - axis-ant-1.4.jar - bsf-all-3.0.jar - cglib-2.2.jar - commons-beanutils-1.7.0.jar - commons-cli-1.2.jar - commons-collections-3.2.jar - commons-codec-1.3.jar - commons-digester-1.8.jar - commons-discovery-0.4.jar - commons-fileupload-1.2.jar - commons-httpclient-3.1.jar - commons-io-1.4.jar - commons-lang-2.3.jar - commons-logging-1.1.1.jar - commons-pool-1.3.jar - derby-10.4.1.3.jar - dwr-2.0.3.jar - geronimo-activation_1.1_spec-1.0.1.jar - geronimo-connector-2.1.3.jar - geronimo-ejb_3.0_spec-1.0.1.jar - geronimo-el_1.0_spec-1.0.1.jar - geronimo-javamail_1.4_spec-1.6.jar - geronimo-jms_1.1_spec-1.1.1.jar - geronimo-jpa_3.0_spec-1.1.1.jar - geronimo-jsp_2.1_spec-1.0.1.jar - geronimo-jta_1.0.1B_spec-1.0.jar - geronimo-jta_1.1_spec-1.1.1.jar - geronimo-j2ee-connector_1.5_spec-2.0.0.jar - geronimo-kernel-2.0.1.jar - geronimo-stax-api_1.0_spec-1.0.1.jar - geronimo-transaction-2.1.3.jar - geronimo-ws-metadata_2.0_spec-1.1.2.jar - groovy-all-1.7.1.jar - hazelcast-1.8.3.jar - hazelcast-client-1.8.3.jar - httpclient-4.0.jar - httpcore-4.0.1.jar - httpcore-nio-4.0.1.jar - jabsorb-1.3.1.jar - jackson-core-asl-1.5.3.jar - jackson-mapper-asl-1.5.3.jar - jackson-xc-1.5.3.jar - jettison-1.2.jar - jetty-6.1.19.jar - jetty-util-6.1.19.jar - juli-6.0.26.jar - log4j-1.2.15.jar - mex-1.5.1-impl.jar - myfaces-api-1.2.2.jar - myfaces-impl-1.2.2.jar - neethi-2.0.4.jar - ode-agents-1.3.2.jar - ode-bpel-api-1.3.2.jar - ode-bpel-compiler-1.3.2.jar - ode-bpel-dao-1.3.2.jar - ode-bpel-epr-1.3.2.jar - ode-bpel-obj-1.3.2.jar - ode-bpel-runtime-1.3.2.jar - ode-bpel-schemas-1.3.2.jar - ode-bpel-store-1.3.2.jar - ode-dao-hibernate-1.3.2.jar - ode-dao-jpa-1.3.2.jar - ode-jacob-1.3.2.jar - ode-jacob-ap-1.3.2.jar - ode-scheduler-simple-1.3.2.jar - ode-utils-1.3.2.jar - openjpa-1.2.1.jar - rampart-core-1.4.jar - rampart-policy-1.4.jar - rampart-trust-1.4.jar - regexp-1.3.jar - rome-1.0.jar - spring-beans-2.5.6.jar - spring-context-2.5.6.jar - spring-core-2.5.6.jar - stripes-1.5.2.jar - tranql-connector-1.1.jar - tribes-6.0.26.jar - wink-common-1.1-incubating.jar - wink-client-1.1-incubating.jar - wink-server-1.1-incubating.jar - woden-api-1.0M8.jar - woden-impl-dom-1.0M8.jar - wss4j-1.5.4.jar - wstx-asl-3.2.4.jar - wstx-asl-3.2.6.jar - xalan-2.7.0.jar - xercesImpl-2.8.1.jar - xml-apis-1.3.04.jar - xmlbeans-2.3.0.jar - xmlsec-1.4.3.jar - XmlSchema-1.4.3.jar - -=============================================================================== -The serp-1.13.1.jar is distributed under the BSD license with the following copyright: - - Copyright (c) 2002, A. Abram White - All rights reserved. - -BSD license: - - Redistribution and use in source and binary forms, with or without - modification, are permitted provided that the following conditions are met: - - - Redistributions of source code must retain the above copyright notice, this - list of conditions and the following disclaimer. - - - Redistributions in binary form must reproduce the above copyright notice, - this list of conditions and the following disclaimer in the documentation - and/or other materials provided with the distribution. - - - Neither the name of the Sun Microsystems, Inc. nor the names of - contributors may be used to endorse or promote products derived from this - software without specific prior written permission. - - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND - CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED - WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED - WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A - PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY - DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, - PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF - USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE - OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH - DAMAGE. - -================================================================================ - -dom4j-1.6.1.jar - -Copyright 2001-2005 (C) MetaStuff, Ltd. All Rights Reserved. - -Redistribution and use of this software and associated documentation -("Software"), with or without modification, are permitted provided -that the following conditions are met: - -1. Redistributions of source code must retain copyright - statements and notices. Redistributions must also contain a - copy of this document. - -2. Redistributions in binary form must reproduce the - above copyright notice, this list of conditions and the - following disclaimer in the documentation and/or other - materials provided with the distribution. - -3. The name "DOM4J" must not be used to endorse or promote - products derived from this Software without prior written - permission of MetaStuff, Ltd. For written permission, - please contact dom4j-info@metastuff.com. - -4. Products derived from this Software may not be called "DOM4J" - nor may "DOM4J" appear in their names without prior written - permission of MetaStuff, Ltd. DOM4J is a registered - trademark of MetaStuff, Ltd. - -5. Due credit should be given to the DOM4J Project - - http://www.dom4j.org - -THIS SOFTWARE IS PROVIDED BY METASTUFF, LTD. AND CONTRIBUTORS -``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT -NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND -FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL -METASTUFF, LTD. OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, -INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES -(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR -SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) -HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED -OF THE POSSIBILITY OF SUCH DAMAGE. - -=============================================================================== -The Equinox OSGi Runtime jars: - osgi-3.5.0-v20090520.jar - common-3.5.0-v20090520-1800.jar - services-3.2.0-v20090520-1800.jar - -Tuscany SDO dependencies on Eclipse: - ecore-2.2.3.jar - ecore-change-2.2.3.jar - ecore-xmi-2.2.3.jar - common-2.2.3.jar - xsd-2.2.3.jar - runtime-3.4.0-v20080512.jar, - app-1.2.0-v20090520-1800.jar - contenttype-3.3.0-v20080604-1400.jar - jobs-3.4.0-v20080512.jar - preferences-3.2.300-v20090520-1800.jar - registry-3.4.100-v20090520-1800.jar - -Eclipse Public License - v 1.0 - -THE ACCOMPANYING PROGRAM IS PROVIDED UNDER THE TERMS OF THIS ECLIPSE -PUBLIC LICENSE ("AGREEMENT"). ANY USE, REPRODUCTION OR DISTRIBUTION OF -THE PROGRAM CONSTITUTES RECIPIENT'S ACCEPTANCE OF THIS AGREEMENT. - -1. DEFINITIONS - -"Contribution" means: - -a) in the case of the initial Contributor, the initial code and -documentation distributed under this Agreement, and -b) in the case of each subsequent Contributor: - -i) changes to the Program, and - -ii) additions to the Program; - -where such changes and/or additions to the Program originate from and -are distributed by that particular Contributor. A Contribution -'originates' from a Contributor if it was added to the Program by such -Contributor itself or anyone acting on such Contributor's behalf. -Contributions do not include additions to the Program which: (i) are -separate modules of software distributed in conjunction with the -Program under their own license agreement, and (ii) are not derivative -works of the Program. - -"Contributor" means any person or entity that distributes the Program. - -"Licensed Patents " mean patent claims licensable by a Contributor -which are necessarily infringed by the use or sale of its Contribution -alone or when combined with the Program. - -"Program" means the Contributions distributed in accordance with this -Agreement. - -"Recipient" means anyone who receives the Program under this -Agreement, including all Contributors. - -2. GRANT OF RIGHTS - -a) Subject to the terms of this Agreement, each Contributor hereby -grants Recipient a non-exclusive, worldwide, royalty-free copyright -license to reproduce, prepare derivative works of, publicly display, -publicly perform, distribute and sublicense the Contribution of such -Contributor, if any, and such derivative works, in source code and -object code form. - -b) Subject to the terms of this Agreement, each Contributor hereby -grants Recipient a non-exclusive, worldwide, royalty-free patent -license under Licensed Patents to make, use, sell, offer to sell, -import and otherwise transfer the Contribution of such Contributor, if -any, in source code and object code form. This patent license shall -apply to the combination of the Contribution and the Program if, at -the time the Contribution is added by the Contributor, such addition -of the Contribution causes such combination to be covered by the -Licensed Patents. The patent license shall not apply to any other -combinations which include the Contribution. No hardware per se is -licensed hereunder. - -c) Recipient understands that although each Contributor grants the -licenses to its Contributions set forth herein, no assurances are -provided by any Contributor that the Program does not infringe the -patent or other intellectual property rights of any other entity. Each -Contributor disclaims any liability to Recipient for claims brought by -any other entity based on infringement of intellectual property rights -or otherwise. As a condition to exercising the rights and licenses -granted hereunder, each Recipient hereby assumes sole responsibility -to secure any other intellectual property rights needed, if any. For -example, if a third party patent license is required to allow -Recipient to distribute the Program, it is Recipient's responsibility -to acquire that license before distributing the Program. - -d) Each Contributor represents that to its knowledge it has sufficient -copyright rights in its Contribution, if any, to grant the copyright -license set forth in this Agreement. - -3. REQUIREMENTS - -A Contributor may choose to distribute the Program in object code form -under its own license agreement, provided that: - -a) it complies with the terms and conditions of this Agreement; and - -b) its license agreement: - -i) effectively disclaims on behalf of all Contributors all warranties -and conditions, express and implied, including warranties or -conditions of title and non-infringement, and implied warranties or -conditions of merchantability and fitness for a particular purpose; - -ii) effectively excludes on behalf of all Contributors all liability -for damages, including direct, indirect, special, incidental and -consequential damages, such as lost profits; - -iii) states that any provisions which differ from this Agreement are -offered by that Contributor alone and not by any other party; and - -iv) states that source code for the Program is available from such -Contributor, and informs licensees how to obtain it in a reasonable -manner on or through a medium customarily used for software exchange. - -When the Program is made available in source code form: - -a) it must be made available under this Agreement; and - -b) a copy of this Agreement must be included with each copy of the -Program. - -Contributors may not remove or alter any copyright notices contained -within the Program. - -Each Contributor must identify itself as the originator of its -Contribution, if any, in a manner that reasonably allows subsequent -Recipients to identify the originator of the Contribution. - -4. COMMERCIAL DISTRIBUTION - -Commercial distributors of software may accept certain -responsibilities with respect to end users, business partners and the -like. While this license is intended to facilitate the commercial use -of the Program, the Contributor who includes the Program in a -commercial product offering should do so in a manner which does not -create potential liability for other Contributors. Therefore, if a -Contributor includes the Program in a commercial product offering, -such Contributor ("Commercial Contributor") hereby agrees to defend -and indemnify every other Contributor ("Indemnified Contributor") -against any losses, damages and costs (collectively "Losses") arising -from claims, lawsuits and other legal actions brought by a third party -against the Indemnified Contributor to the extent caused by the acts -or omissions of such Commercial Contributor in connection with its -distribution of the Program in a commercial product offering. The -obligations in this section do not apply to any claims or Losses -relating to any actual or alleged intellectual property infringement. -In order to qualify, an Indemnified Contributor must: a) promptly -notify the Commercial Contributor in writing of such claim, and b) -allow the Commercial Contributor to control, and cooperate with the -Commercial Contributor in, the defense and any related settlement -negotiations. The Indemnified Contributor may participate in any such -claim at its own expense. - -For example, a Contributor might include the Program in a commercial -product offering, Product X. That Contributor is then a Commercial -Contributor. If that Commercial Contributor then makes performance -claims, or offers warranties related to Product X, those performance -claims and warranties are such Commercial Contributor's responsibility -alone. Under this section, the Commercial Contributor would have to -defend claims against the other Contributors related to those -performance claims and warranties, and if a court requires any other -Contributor to pay any damages as a result, the Commercial Contributor -must pay those damages. - -5. NO WARRANTY - -EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, THE PROGRAM IS -PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -KIND, EITHER EXPRESS OR IMPLIED INCLUDING, WITHOUT LIMITATION, ANY -WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT, MERCHANTABILITY -OR FITNESS FOR A PARTICULAR PURPOSE. Each Recipient is solely -responsible for determining the appropriateness of using and -distributing the Program and assumes all risks associated with its -exercise of rights under this Agreement , including but not limited to -the risks and costs of program errors, compliance with applicable -laws, damage to or loss of data, programs or equipment, and -unavailability or interruption of operations. - -6. DISCLAIMER OF LIABILITY - -EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, NEITHER RECIPIENT NOR -ANY CONTRIBUTORS SHALL HAVE ANY LIABILITY FOR ANY DIRECT, INDIRECT, -INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING -WITHOUT LIMITATION LOST PROFITS), HOWEVER CAUSED AND ON ANY THEORY OF -LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OR -DISTRIBUTION OF THE PROGRAM OR THE EXERCISE OF ANY RIGHTS GRANTED -HEREUNDER, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -7. GENERAL - -If any provision of this Agreement is invalid or unenforceable under -applicable law, it shall not affect the validity or enforceability of -the remainder of the terms of this Agreement, and without further -action by the parties hereto, such provision shall be reformed to the -minimum extent necessary to make such provision valid and enforceable. - -If Recipient institutes patent litigation against any entity -(including a cross-claim or counterclaim in a lawsuit) alleging that -the Program itself (excluding combinations of the Program with other -software or hardware) infringes such Recipient's patent(s), then such -Recipient's rights granted under Section 2(b) shall terminate as of -the date such litigation is filed. - -All Recipient's rights under this Agreement shall terminate if it -fails to comply with any of the material terms or conditions of this -Agreement and does not cure such failure in a reasonable period of -time after becoming aware of such noncompliance. If all Recipient's -rights under this Agreement terminate, Recipient agrees to cease use -and distribution of the Program as soon as reasonably practicable. -However, Recipient's obligations under this Agreement and any licenses -granted by Recipient relating to the Program shall continue and -survive. - -Everyone is permitted to copy and distribute copies of this Agreement, -but in order to avoid inconsistency the Agreement is copyrighted and -may only be modified in the following manner. The Agreement Steward -reserves the right to publish new versions (including revisions) of -this Agreement from time to time. No one other than the Agreement -Steward has the right to modify this Agreement. The Eclipse Foundation -is the initial Agreement Steward. The Eclipse Foundation may assign -the responsibility to serve as the Agreement Steward to a suitable -separate entity. Each new version of the Agreement will be given a -distinguishing version number. The Program (including Contributions) -may always be distributed subject to the version of the Agreement -under which it was received. In addition, after a new version of the -Agreement is published, Contributor may elect to distribute the -Program (including its Contributions) under the new version. Except as -expressly stated in Sections 2(a) and 2(b) above, Recipient receives -no rights or licenses to the intellectual property of any Contributor -under this Agreement, whether expressly, by implication, estoppel or -otherwise. All rights in the Program not expressly granted under this -Agreement are reserved. - -This Agreement is governed by the laws of the State of New York and -the intellectual property laws of the United States of America. No -party to this Agreement will bring a legal action under this Agreement -more than one year after the cause of action arose. Each party waives -its rights to a jury trial in any resulting litigation. - -=============================================================================== - -The howl-1.0.1-1.jar is distributed under the BSD license: - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions -are met: - - * Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - - * Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED -TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR -PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR -CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, -PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR -PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF -LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -================================================================================ - -The jars; -activation-1.1.jar, -jaxb-api-2.1.jar, -jaxb-impl-2.1.12.jar, -jaxws-api-2.1.jar, -jsr181-api-1.0-MR1.jar, -jsr250-api-1.0.jar, -jstl-1.1.2.jar, -mail-1.4.jar, -servlet-api-2.5.jar, -jsr311-api-1.1.jar - -COMMON DEVELOPMENT AND DISTRIBUTION LICENSE (CDDL) Version 1.0 - - - 1. Definitions. - - 1.1. "Contributor" means each individual or entity that - creates or contributes to the creation of Modifications. - - 1.2. "Contributor Version" means the combination of the - Original Software, prior Modifications used by a - Contributor (if any), and the Modifications made by that - particular Contributor. - - 1.3. "Covered Software" means (a) the Original Software, or - (b) Modifications, or (c) the combination of files - containing Original Software with files containing - Modifications, in each case including portions thereof. - - 1.4. "Executable" means the Covered Software in any form - other than Source Code. - - 1.5. "Initial Developer" means the individual or entity - that first makes Original Software available under this - License. - - 1.6. "Larger Work" means a work which combines Covered - Software or portions thereof with code not governed by the - terms of this License. - - 1.7. "License" means this document. - - 1.8. "Licensable" means having the right to grant, to the - maximum extent possible, whether at the time of the initial - grant or subsequently acquired, any and all of the rights - conveyed herein. - - 1.9. "Modifications" means the Source Code and Executable - form of any of the following: - - A. Any file that results from an addition to, - deletion from or modification of the contents of a - file containing Original Software or previous - Modifications; - - B. Any new file that contains any part of the - Original Software or previous Modification; or - - C. Any new file that is contributed or otherwise made - available under the terms of this License. - - 1.10. "Original Software" means the Source Code and - Executable form of computer software code that is - originally released under this License. - - 1.11. "Patent Claims" means any patent claim(s), now owned - or hereafter acquired, including without limitation, - method, process, and apparatus claims, in any patent - Licensable by grantor. - - 1.12. "Source Code" means (a) the common form of computer - software code in which modifications are made and (b) - associated documentation included in or with such code. - - 1.13. "You" (or "Your") means an individual or a legal - entity exercising rights under, and complying with all of - the terms of, this License. For legal entities, "You" - includes any entity which controls, is controlled by, or is - under common control with You. For purposes of this - definition, "control" means (a) the power, direct or - indirect, to cause the direction or management of such - entity, whether by contract or otherwise, or (b) ownership - of more than fifty percent (50%) of the outstanding shares - or beneficial ownership of such entity. - - 2. License Grants. - - 2.1. The Initial Developer Grant. - - Conditioned upon Your compliance with Section 3.1 below and - subject to third party intellectual property claims, the - Initial Developer hereby grants You a world-wide, - royalty-free, non-exclusive license: - - (a) under intellectual property rights (other than - patent or trademark) Licensable by Initial Developer, - to use, reproduce, modify, display, perform, - sublicense and distribute the Original Software (or - portions thereof), with or without Modifications, - and/or as part of a Larger Work; and - - (b) under Patent Claims infringed by the making, - using or selling of Original Software, to make, have - made, use, practice, sell, and offer for sale, and/or - otherwise dispose of the Original Software (or - portions thereof). - - (c) The licenses granted in Sections 2.1(a) and (b) - are effective on the date Initial Developer first - distributes or otherwise makes the Original Software - available to a third party under the terms of this - License. - - (d) Notwithstanding Section 2.1(b) above, no patent - license is granted: (1) for code that You delete from - the Original Software, or (2) for infringements - caused by: (i) the modification of the Original - Software, or (ii) the combination of the Original - Software with other software or devices. - - 2.2. Contributor Grant. - - Conditioned upon Your compliance with Section 3.1 below and - subject to third party intellectual property claims, each - Contributor hereby grants You a world-wide, royalty-free, - non-exclusive license: - - (a) under intellectual property rights (other than - patent or trademark) Licensable by Contributor to - use, reproduce, modify, display, perform, sublicense - and distribute the Modifications created by such - Contributor (or portions thereof), either on an - unmodified basis, with other Modifications, as - Covered Software and/or as part of a Larger Work; and - - - (b) under Patent Claims infringed by the making, - using, or selling of Modifications made by that - Contributor either alone and/or in combination with - its Contributor Version (or portions of such - combination), to make, use, sell, offer for sale, - have made, and/or otherwise dispose of: (1) - Modifications made by that Contributor (or portions - thereof); and (2) the combination of Modifications - made by that Contributor with its Contributor Version - (or portions of such combination). - - (c) The licenses granted in Sections 2.2(a) and - 2.2(b) are effective on the date Contributor first - distributes or otherwise makes the Modifications - available to a third party. - - (d) Notwithstanding Section 2.2(b) above, no patent - license is granted: (1) for any code that Contributor - has deleted from the Contributor Version; (2) for - infringements caused by: (i) third party - modifications of Contributor Version, or (ii) the - combination of Modifications made by that Contributor - with other software (except as part of the - Contributor Version) or other devices; or (3) under - Patent Claims infringed by Covered Software in the - absence of Modifications made by that Contributor. - - 3. Distribution Obligations. - - 3.1. Availability of Source Code. - - Any Covered Software that You distribute or otherwise make - available in Executable form must also be made available in - Source Code form and that Source Code form must be - distributed only under the terms of this License. You must - include a copy of this License with every copy of the - Source Code form of the Covered Software You distribute or - otherwise make available. You must inform recipients of any - such Covered Software in Executable form as to how they can - obtain such Covered Software in Source Code form in a - reasonable manner on or through a medium customarily used - for software exchange. - - 3.2. Modifications. - - The Modifications that You create or to which You - contribute are governed by the terms of this License. You - represent that You believe Your Modifications are Your - original creation(s) and/or You have sufficient rights to - grant the rights conveyed by this License. - - 3.3. Required Notices. - - You must include a notice in each of Your Modifications - that identifies You as the Contributor of the Modification. - You may not remove or alter any copyright, patent or - trademark notices contained within the Covered Software, or - any notices of licensing or any descriptive text giving - attribution to any Contributor or the Initial Developer. - - 3.4. Application of Additional Terms. - - You may not offer or impose any terms on any Covered - Software in Source Code form that alters or restricts the - applicable version of this License or the recipients' - rights hereunder. You may choose to offer, and to charge a - fee for, warranty, support, indemnity or liability - obligations to one or more recipients of Covered Software. - However, you may do so only on Your own behalf, and not on - behalf of the Initial Developer or any Contributor. You - must make it absolutely clear that any such warranty, - support, indemnity or liability obligation is offered by - You alone, and You hereby agree to indemnify the Initial - Developer and every Contributor for any liability incurred - by the Initial Developer or such Contributor as a result of - warranty, support, indemnity or liability terms You offer. - - - 3.5. Distribution of Executable Versions. - - You may distribute the Executable form of the Covered - Software under the terms of this License or under the terms - of a license of Your choice, which may contain terms - different from this License, provided that You are in - compliance with the terms of this License and that the - license for the Executable form does not attempt to limit - or alter the recipient's rights in the Source Code form - from the rights set forth in this License. If You - distribute the Covered Software in Executable form under a - different license, You must make it absolutely clear that - any terms which differ from this License are offered by You - alone, not by the Initial Developer or Contributor. You - hereby agree to indemnify the Initial Developer and every - Contributor for any liability incurred by the Initial - Developer or such Contributor as a result of any such terms - You offer. - - 3.6. Larger Works. - - You may create a Larger Work by combining Covered Software - with other code not governed by the terms of this License - and distribute the Larger Work as a single product. In such - a case, You must make sure the requirements of this License - are fulfilled for the Covered Software. - - 4. Versions of the License. - - 4.1. New Versions. - - Sun Microsystems, Inc. is the initial license steward and - may publish revised and/or new versions of this License - from time to time. Each version will be given a - distinguishing version number. Except as provided in - Section 4.3, no one other than the license steward has the - right to modify this License. - - 4.2. Effect of New Versions. - - You may always continue to use, distribute or otherwise - make the Covered Software available under the terms of the - version of the License under which You originally received - the Covered Software. If the Initial Developer includes a - notice in the Original Software prohibiting it from being - distributed or otherwise made available under any - subsequent version of the License, You must distribute and - make the Covered Software available under the terms of the - version of the License under which You originally received - the Covered Software. Otherwise, You may also choose to - use, distribute or otherwise make the Covered Software - available under the terms of any subsequent version of the - License published by the license steward. - - 4.3. Modified Versions. - - When You are an Initial Developer and You want to create a - new license for Your Original Software, You may create and - use a modified version of this License if You: (a) rename - the license and remove any references to the name of the - license steward (except to note that the license differs - from this License); and (b) otherwise make it clear that - the license contains terms which differ from this License. - - - 5. DISCLAIMER OF WARRANTY. - - COVERED SOFTWARE IS PROVIDED UNDER THIS LICENSE ON AN "AS IS" - BASIS, WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, - INCLUDING, WITHOUT LIMITATION, WARRANTIES THAT THE COVERED - SOFTWARE IS FREE OF DEFECTS, MERCHANTABLE, FIT FOR A PARTICULAR - PURPOSE OR NON-INFRINGING. THE ENTIRE RISK AS TO THE QUALITY AND - PERFORMANCE OF THE COVERED SOFTWARE IS WITH YOU. SHOULD ANY - COVERED SOFTWARE PROVE DEFECTIVE IN ANY RESPECT, YOU (NOT THE - INITIAL DEVELOPER OR ANY OTHER CONTRIBUTOR) ASSUME THE COST OF - ANY NECESSARY SERVICING, REPAIR OR CORRECTION. THIS DISCLAIMER OF - WARRANTY CONSTITUTES AN ESSENTIAL PART OF THIS LICENSE. NO USE OF - ANY COVERED SOFTWARE IS AUTHORIZED HEREUNDER EXCEPT UNDER THIS - DISCLAIMER. - - 6. TERMINATION. - - 6.1. This License and the rights granted hereunder will - terminate automatically if You fail to comply with terms - herein and fail to cure such breach within 30 days of - becoming aware of the breach. Provisions which, by their - nature, must remain in effect beyond the termination of - this License shall survive. - - 6.2. If You assert a patent infringement claim (excluding - declaratory judgment actions) against Initial Developer or - a Contributor (the Initial Developer or Contributor against - whom You assert such claim is referred to as "Participant") - alleging that the Participant Software (meaning the - Contributor Version where the Participant is a Contributor - or the Original Software where the Participant is the - Initial Developer) directly or indirectly infringes any - patent, then any and all rights granted directly or - indirectly to You by such Participant, the Initial - Developer (if the Initial Developer is not the Participant) - and all Contributors under Sections 2.1 and/or 2.2 of this - License shall, upon 60 days notice from Participant - terminate prospectively and automatically at the expiration - of such 60 day notice period, unless if within such 60 day - period You withdraw Your claim with respect to the - Participant Software against such Participant either - unilaterally or pursuant to a written agreement with - Participant. - - 6.3. In the event of termination under Sections 6.1 or 6.2 - above, all end user licenses that have been validly granted - by You or any distributor hereunder prior to termination - (excluding licenses granted to You by any distributor) - shall survive termination. - - 7. LIMITATION OF LIABILITY. - - UNDER NO CIRCUMSTANCES AND UNDER NO LEGAL THEORY, WHETHER TORT - (INCLUDING NEGLIGENCE), CONTRACT, OR OTHERWISE, SHALL YOU, THE - INITIAL DEVELOPER, ANY OTHER CONTRIBUTOR, OR ANY DISTRIBUTOR OF - COVERED SOFTWARE, OR ANY SUPPLIER OF ANY OF SUCH PARTIES, BE - LIABLE TO ANY PERSON FOR ANY INDIRECT, SPECIAL, INCIDENTAL, OR - CONSEQUENTIAL DAMAGES OF ANY CHARACTER INCLUDING, WITHOUT - LIMITATION, DAMAGES FOR LOST PROFITS, LOSS OF GOODWILL, WORK - STOPPAGE, COMPUTER FAILURE OR MALFUNCTION, OR ANY AND ALL OTHER - COMMERCIAL DAMAGES OR LOSSES, EVEN IF SUCH PARTY SHALL HAVE BEEN - INFORMED OF THE POSSIBILITY OF SUCH DAMAGES. THIS LIMITATION OF - LIABILITY SHALL NOT APPLY TO LIABILITY FOR DEATH OR PERSONAL - INJURY RESULTING FROM SUCH PARTY'S NEGLIGENCE TO THE EXTENT - APPLICABLE LAW PROHIBITS SUCH LIMITATION. SOME JURISDICTIONS DO - NOT ALLOW THE EXCLUSION OR LIMITATION OF INCIDENTAL OR - CONSEQUENTIAL DAMAGES, SO THIS EXCLUSION AND LIMITATION MAY NOT - APPLY TO YOU. - - 8. U.S. GOVERNMENT END USERS. - - The Covered Software is a "commercial item," as that term is - defined in 48 C.F.R. 2.101 (Oct. 1995), consisting of "commercial - computer software" (as that term is defined at 48 C.F.R. - 252.227-7014(a)(1)) and "commercial computer software - documentation" as such terms are used in 48 C.F.R. 12.212 (Sept. - 1995). Consistent with 48 C.F.R. 12.212 and 48 C.F.R. 227.7202-1 - through 227.7202-4 (June 1995), all U.S. Government End Users - acquire Covered Software with only those rights set forth herein. - This U.S. Government Rights clause is in lieu of, and supersedes, - any other FAR, DFAR, or other clause or provision that addresses - Government rights in computer software under this License. - - 9. MISCELLANEOUS. - - This License represents the complete agreement concerning subject - matter hereof. If any provision of this License is held to be - unenforceable, such provision shall be reformed only to the - extent necessary to make it enforceable. This License shall be - governed by the law of the jurisdiction specified in a notice - contained within the Original Software (except to the extent - applicable law, if any, provides otherwise), excluding such - jurisdiction's conflict-of-law provisions. Any litigation - relating to this License shall be subject to the jurisdiction of - the courts located in the jurisdiction and venue specified in a - notice contained within the Original Software, with the losing - party responsible for costs, including, without limitation, court - costs and reasonable attorneys' fees and expenses. The - application of the United Nations Convention on Contracts for the - International Sale of Goods is expressly excluded. Any law or - regulation which provides that the language of a contract shall - be construed against the drafter shall not apply to this License. - You agree that You alone are responsible for compliance with the - United States export administration regulations (and the export - control laws and regulation of any other countries) when You use, - distribute or otherwise make available any Covered Software. - - 10. RESPONSIBILITY FOR CLAIMS. - - As between Initial Developer and the Contributors, each party is - responsible for claims and damages arising, directly or - indirectly, out of its utilization of rights under this License - and You agree to work with Initial Developer and Contributors to - distribute such responsibility on an equitable basis. Nothing - herein is intended or shall be deemed to constitute any admission - of liability. - -=============================================================================== - -WSDL4j (wsdl4j-1.6.2.jar): - -Common Public License - v 1.0 - -THE ACCOMPANYING PROGRAM IS PROVIDED UNDER THE TERMS OF THIS COMMON PUBLIC LICENSE ("AGREEMENT"). ANY USE, REPRODUCTION OR DISTRIBUTION OF THE PROGRAM CONSTITUTES RECIPIENT'S ACCEPTANCE OF THIS AGREEMENT. - -1. DEFINITIONS - -"Contribution" means: - - a) in the case of the initial Contributor, the initial code and documentation distributed under this Agreement, and - b) in the case of each subsequent Contributor: - - i) changes to the Program, and - - ii) additions to the Program; - - where such changes and/or additions to the Program originate from and are distributed by that particular Contributor. A Contribution 'originates' from a Contributor if it was added to the Program by such Contributor itself or anyone acting on such Contributor's behalf. Contributions do not include additions to the Program which: (i) are separate modules of software distributed in conjunction with the Program under their own license agreement, and (ii) are not derivative works of the Program. - -"Contributor" means any person or entity that distributes the Program. - -"Licensed Patents " mean patent claims licensable by a Contributor which are necessarily infringed by the use or sale of its Contribution alone or when combined with the Program. - -"Program" means the Contributions distributed in accordance with this Agreement. - -"Recipient" means anyone who receives the Program under this Agreement, including all Contributors. - -2. GRANT OF RIGHTS - - a) Subject to the terms of this Agreement, each Contributor hereby grants Recipient a non-exclusive, worldwide, royalty-free copyright license to reproduce, prepare derivative works of, publicly display, publicly perform, distribute and sublicense the Contribution of such Contributor, if any, and such derivative works, in source code and object code form. - - b) Subject to the terms of this Agreement, each Contributor hereby grants Recipient a non-exclusive, worldwide, royalty-free patent license under Licensed Patents to make, use, sell, offer to sell, import and otherwise transfer the Contribution of such Contributor, if any, in source code and object code form. This patent license shall apply to the combination of the Contribution and the Program if, at the time the Contribution is added by the Contributor, such addition of the Contribution causes such combination to be covered by the Licensed Patents. The patent license shall not apply to any other combinations which include the Contribution. No hardware per se is licensed hereunder. - - c) Recipient understands that although each Contributor grants the licenses to its Contributions set forth herein, no assurances are provided by any Contributor that the Program does not infringe the patent or other intellectual property rights of any other entity. Each Contributor disclaims any liability to Recipient for claims brought by any other entity based on infringement of intellectual property rights or otherwise. As a condition to exercising the rights and licenses granted hereunder, each Recipient hereby assumes sole responsibility to secure any other intellectual property rights needed, if any. For example, if a third party patent license is required to allow Recipient to distribute the Program, it is Recipient's responsibility to acquire that license before distributing the Program. - - d) Each Contributor represents that to its knowledge it has sufficient copyright rights in its Contribution, if any, to grant the copyright license set forth in this Agreement. - -3. REQUIREMENTS - -A Contributor may choose to distribute the Program in object code form under its own license agreement, provided that: - - a) it complies with the terms and conditions of this Agreement; and - - b) its license agreement: - - i) effectively disclaims on behalf of all Contributors all warranties and conditions, express and implied, including warranties or conditions of title and non-infringement, and implied warranties or conditions of merchantability and fitness for a particular purpose; - - ii) effectively excludes on behalf of all Contributors all liability for damages, including direct, indirect, special, incidental and consequential damages, such as lost profits; - - iii) states that any provisions which differ from this Agreement are offered by that Contributor alone and not by any other party; and - - iv) states that source code for the Program is available from such Contributor, and informs licensees how to obtain it in a reasonable manner on or through a medium customarily used for software exchange. - -When the Program is made available in source code form: - - a) it must be made available under this Agreement; and - - b) a copy of this Agreement must be included with each copy of the Program. - -Contributors may not remove or alter any copyright notices contained within the Program. - -Each Contributor must identify itself as the originator of its Contribution, if any, in a manner that reasonably allows subsequent Recipients to identify the originator of the Contribution. - -4. COMMERCIAL DISTRIBUTION - -Commercial distributors of software may accept certain responsibilities with respect to end users, business partners and the like. While this license is intended to facilitate the commercial use of the Program, the Contributor who includes the Program in a commercial product offering should do so in a manner which does not create potential liability for other Contributors. Therefore, if a Contributor includes the Program in a commercial product offering, such Contributor ("Commercial Contributor") hereby agrees to defend and indemnify every other Contributor ("Indemnified Contributor") against any losses, damages and costs (collectively "Losses") arising from claims, lawsuits and other legal actions brought by a third party against the Indemnified Contributor to the extent caused by the acts or omissions of such Commercial Contributor in connection with its distribution of the Program in a commercial product offering. The obligations in this section do not apply to any claims or Losses relating to any actual or alleged intellectual property infringement. In order to qualify, an Indemnified Contributor must: a) promptly notify the Commercial Contributor in writing of such claim, and b) allow the Commercial Contributor to control, and cooperate with the Commercial Contributor in, the defense and any related settlement negotiations. The Indemnified Contributor may participate in any such claim at its own expense. - -For example, a Contributor might include the Program in a commercial product offering, Product X. That Contributor is then a Commercial Contributor. If that Commercial Contributor then makes performance claims, or offers warranties related to Product X, those performance claims and warranties are such Commercial Contributor's responsibility alone. Under this section, the Commercial Contributor would have to defend claims against the other Contributors related to those performance claims and warranties, and if a court requires any other Contributor to pay any damages as a result, the Commercial Contributor must pay those damages. - -5. NO WARRANTY - -EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, THE PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED INCLUDING, WITHOUT LIMITATION, ANY WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT, MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Each Recipient is solely responsible for determining the appropriateness of using and distributing the Program and assumes all risks associated with its exercise of rights under this Agreement, including but not limited to the risks and costs of program errors, compliance with applicable laws, damage to or loss of data, programs or equipment, and unavailability or interruption of operations. - -6. DISCLAIMER OF LIABILITY - -EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, NEITHER RECIPIENT NOR ANY CONTRIBUTORS SHALL HAVE ANY LIABILITY FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING WITHOUT LIMITATION LOST PROFITS), HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OR DISTRIBUTION OF THE PROGRAM OR THE EXERCISE OF ANY RIGHTS GRANTED HEREUNDER, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -7. GENERAL - -If any provision of this Agreement is invalid or unenforceable under applicable law, it shall not affect the validity or enforceability of the remainder of the terms of this Agreement, and without further action by the parties hereto, such provision shall be reformed to the minimum extent necessary to make such provision valid and enforceable. - -If Recipient institutes patent litigation against a Contributor with respect to a patent applicable to software (including a cross-claim or counterclaim in a lawsuit), then any patent licenses granted by that Contributor to such Recipient under this Agreement shall terminate as of the date such litigation is filed. In addition, if Recipient institutes patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Program itself (excluding combinations of the Program with other software or hardware) infringes such Recipient's patent(s), then such Recipient's rights granted under Section 2(b) shall terminate as of the date such litigation is filed. - -All Recipient's rights under this Agreement shall terminate if it fails to comply with any of the material terms or conditions of this Agreement and does not cure such failure in a reasonable period of time after becoming aware of such noncompliance. If all Recipient's rights under this Agreement terminate, Recipient agrees to cease use and distribution of the Program as soon as reasonably practicable. However, Recipient's obligations under this Agreement and any licenses granted by Recipient relating to the Program shall continue and survive. - -Everyone is permitted to copy and distribute copies of this Agreement, but in order to avoid inconsistency the Agreement is copyrighted and may only be modified in the following manner. The Agreement Steward reserves the right to publish new versions (including revisions) of this Agreement from time to time. No one other than the Agreement Steward has the right to modify this Agreement. IBM is the initial Agreement Steward. IBM may assign the responsibility to serve as the Agreement Steward to a suitable separate entity. Each new version of the Agreement will be given a distinguishing version number. The Program (including Contributions) may always be distributed subject to the version of the Agreement under which it was received. In addition, after a new version of the Agreement is published, Contributor may elect to distribute the Program (including its Contributions) under the new version. Except as expressly stated in Sections 2(a) and 2(b) above, Recipient receives no rights or licenses to the intellectual property of any Contributor under this Agreement, whether expressly, by implication, estoppel or otherwise. All rights in the Program not expressly granted under this Agreement are reserved. - -This Agreement is governed by the laws of the State of New York and the intellectual property laws of the United States of America. No party to this Agreement will bring a legal action under this Agreement more than one year after the cause of action arose. Each party waives its rights to a jury trial in any resulting litigation. - -=============================================================================== - -backport-util-concurrent-3.1.jar : - -The software comprising backport-util-concurrent is based in large -part on the code from JSR166, and the package dl.util.concurrent. -The software has been released to the public domain, as explained at: -http://creativecommons.org/licenses/publicdomain, excepting portions -of the class -edu.emory.mathcs.backport.java.util.concurrent.CopyOnWriteArrayList, -which were adapted from class java.util.ArrayList, written by Sun -Microsystems, Inc, which are used with kind permission, and subject -to the following: - -Copyright 2002-2004 Sun Microsystems, Inc. All rights reserved. Use is -subject to the following license terms. - - "Sun hereby grants you a non-exclusive, worldwide, non-transferrable - license to use and distribute the Java Software technologies as part - of a larger work in source and binary forms, with or without - modification, provided that the following conditions are met: - - -Neither the name of or trademarks of Sun may be used to endorse or - promote products derived from the Java Software technology without - specific prior written permission. - - -Redistributions of source or binary code must be accompanied by the - following notice and disclaimers: - - Portions copyright Sun Microsystems, Inc. Used with kind permission. - - This software is provided AS IS, without a warranty of any kind. ALL - EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND - WARRANTIES, INCLUDING ANY IMPLIED WARRANTY OF - MERCHANTABILITY, FITNESS FOR A PARTICULAR PUPOSE OR - NON-INFRINGEMENT, ARE HEREBY EXCLUDED. SUN - MICROSYSTEMS, INC. AND ITS LICENSORS SHALL NOT BE LIABLE - FOR ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT OF - USING, MODIFYING OR DISTRIBUTING THE SOFTWARE OR ITS - DERIVATIVES. IN NO EVENT WILL SUN MICROSYSTEMS, INC. OR - ITS LICENSORS BE LIABLE FOR ANY LOST REVENUE, PROFIT OR - DATA, OR FOR DIRECT, INDIRECT,CONSQUENTIAL, INCIDENTAL - OR PUNITIVE DAMAGES, HOWEVER CAUSED AND REGARDLESS OF - THE THEORY OR LIABILITY, ARISING OUT OF THE USE OF OR - INABILITY TO USE SOFTWARE, EVEN IF SUN MICROSYSTEMS, INC. - HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - - You acknowledge that Software is not designed, licensed or intended for - use in the design, construction, operation or maintenance of any nuclear - facility." - -=============================================================================== - -jdom-1.0.jar : - -$Id: LICENSE.txt,v 1.11 2004/02/06 09:32:57 jhunter Exp $ - - Copyright (C) 2000-2004 Jason Hunter & Brett McLaughlin. - All rights reserved. - - Redistribution and use in source and binary forms, with or without - modification, are permitted provided that the following conditions - are met: - - 1. Redistributions of source code must retain the above copyright - notice, this list of conditions, and the following disclaimer. - - 2. Redistributions in binary form must reproduce the above copyright - notice, this list of conditions, and the disclaimer that follows - these conditions in the documentation and/or other materials - provided with the distribution. - - 3. The name "JDOM" must not be used to endorse or promote products - derived from this software without prior written permission. For - written permission, please contact . - - 4. Products derived from this software may not be called "JDOM", nor - may "JDOM" appear in their name, without prior written permission - from the JDOM Project Management . - - In addition, we request (but do not require) that you include in the - end-user documentation provided with the redistribution and/or in the - software itself an acknowledgement equivalent to the following: - "This product includes software developed by the - JDOM Project (http://www.jdom.org/)." - Alternatively, the acknowledgment may be graphical using the logos - available at http://www.jdom.org/images/logos. - - THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED - WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES - OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - DISCLAIMED. IN NO EVENT SHALL THE JDOM AUTHORS OR THE PROJECT - CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, - SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT - LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF - USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND - ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, - OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT - OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - SUCH DAMAGE. - - This software consists of voluntary contributions made by many - individuals on behalf of the JDOM Project and was originally - created by Jason Hunter and - Brett McLaughlin . For more information - on the JDOM Project, please see . - -================================================================================ - -For Saxon including - saxon-9.x.jar - saxon-dom-9.x.jar - saxon-xpath-9.x.jar - saxon-xqj-9.x.jar - - MOZILLA PUBLIC LICENSE -Version 1.0 - -1. Definitions. - - 1.1. ``Contributor'' means each entity that creates or contributes to the creation of Modifications. - - 1.2. ``Contributor Version'' means the combination of the Original Code, prior Modifications used by a Contributor, and the Modifications made by that particular Contributor. - - 1.3. ``Covered Code'' means the Original Code or Modifications or the combination of the Original Code and Modifications, in each case including portions thereof. - - 1.4. ``Electronic Distribution Mechanism'' means a mechanism generally accepted in the software development community for the electronic transfer of data. - - 1.5. ``Executable'' means Covered Code in any form other than Source Code. - - 1.6. ``Initial Developer'' means the individual or entity identified as the Initial Developer in the Source Code notice required by Exhibit A. - - 1.7. ``Larger Work'' means a work which combines Covered Code or portions thereof with code not governed by the terms of this License. - - 1.8. ``License'' means this document. - - 1.9. ``Modifications'' means any addition to or deletion from the substance or structure of either the Original Code or any previous Modifications. When Covered Code is released as a series of files, a Modification is: - - A. Any addition to or deletion from the contents of a file containing Original Code or previous Modifications. - - B. Any new file that contains any part of the Original Code or previous Modifications. - - 1.10. ``Original Code'' means Source Code of computer software code which is described in the Source Code notice required by Exhibit A as Original Code, and which, at the time of its release under this License is not already Covered Code governed by this License. - - 1.11. ``Source Code'' means the preferred form of the Covered Code for making modifications to it, including all modules it contains, plus any associated interface definition files, scripts used to control compilation and installation of an Executable, or a list of source code differential comparisons against either the Original Code or another well known, available Covered Code of the Contributor's choice. The Source Code can be in a compressed or archival form, provided the appropriate decompression or de-archiving software is widely available for no charge. - - 1.12. ``You'' means an individual or a legal entity exercising rights under, and complying with all of the terms of, this License or a future version of this License issued under Section 6.1. For legal entities, ``You'' includes any entity which controls, is controlled by, or is under common control with You. For purposes of this definition, ``control'' means (a) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (b) ownership of fifty percent (50%) or more of the outstanding shares or beneficial ownership of such entity. - -2. Source Code License. - - 2.1. The Initial Developer Grant. - The Initial Developer hereby grants You a world-wide, royalty-free, non-exclusive license, subject to third party intellectual property claims: - - (a) to use, reproduce, modify, display, perform, sublicense and distribute the Original Code (or portions thereof) with or without Modifications, or as part of a Larger Work; and - - (b) under patents now or hereafter owned or controlled by Initial Developer, to make, have made, use and sell (``Utilize'') the Original Code (or portions thereof), but solely to the extent that any such patent is reasonably necessary to enable You to Utilize the Original Code (or portions thereof) and not to any greater extent that may be necessary to Utilize further Modifications or combinations. - - 2.2. Contributor Grant. - Each Contributor hereby grants You a world-wide, royalty-free, non-exclusive license, subject to third party intellectual property claims: - - (a) to use, reproduce, modify, display, perform, sublicense and distribute the Modifications created by such Contributor (or portions thereof) either on an unmodified basis, with other Modifications, as Covered Code or as part of a Larger Work; and - - (b) under patents now or hereafter owned or controlled by Contributor, to Utilize the Contributor Version (or portions thereof), but solely to the extent that any such patent is reasonably necessary to enable You to Utilize the Contributor Version (or portions thereof), and not to any greater extent that may be necessary to Utilize further Modifications or combinations. - -3. Distribution Obligations. - - 3.1. Application of License. - The Modifications which You create or to which You contribute are governed by the terms of this License, including without limitation Section 2.2. The Source Code version of Covered Code may be distributed only under the terms of this License or a future version of this License released under Section 6.1, and You must include a copy of this License with every copy of the Source Code You distribute. You may not offer or impose any terms on any Source Code version that alters or restricts the applicable version of this License or the recipients' rights hereunder. However, You may include an additional document offering the additional rights described in Section 3.5. - - 3.2. Availability of Source Code. - Any Modification which You create or to which You contribute must be made available in Source Code form under the terms of this License either on the same media as an Executable version or via an accepted Electronic Distribution Mechanism to anyone to whom you made an Executable version available; and if made available via Electronic Distribution Mechanism, must remain available for at least twelve (12) months after the date it initially became available, or at least six (6) months after a subsequent version of that particular Modification has been made available to such recipients. You are responsible for ensuring that the Source Code version remains available even if the Electronic Distribution Mechanism is maintained by a third party. - - 3.3. Description of Modifications. - You must cause all Covered Code to which you contribute to contain a file documenting the changes You made to create that Covered Code and the date of any change. You must include a prominent statement that the Modification is derived, directly or indirectly, from Original Code provided by the Initial Developer and including the name of the Initial Developer in (a) the Source Code, and (b) in any notice in an Executable version or related documentation in which You describe the origin or ownership of the Covered Code. - - 3.4. Intellectual Property Matters - - (a) Third Party Claims. - If You have knowledge that a party claims an intellectual property right in particular functionality or code (or its utilization under this License), you must include a text file with the source code distribution titled ``LEGAL'' which describes the claim and the party making the claim in sufficient detail that a recipient will know whom to contact. If you obtain such knowledge after You make Your Modification available as described in Section 3.2, You shall promptly modify the LEGAL file in all copies You make available thereafter and shall take other steps (such as notifying appropriate mailing lists or newsgroups) reasonably calculated to inform those who received the Covered Code that new knowledge has been obtained. - - (b) Contributor APIs. - If Your Modification is an application programming interface and You own or control patents which are reasonably necessary to implement that API, you must also include this information in the LEGAL file. - - 3.5. Required Notices. - You must duplicate the notice in Exhibit A in each file of the Source Code, and this License in any documentation for the Source Code, where You describe recipients' rights relating to Covered Code. If You created one or more Modification(s), You may add your name as a Contributor to the notice described in Exhibit A. If it is not possible to put such notice in a particular Source Code file due to its structure, then you must include such notice in a location (such as a relevant directory file) where a user would be likely to look for such a notice. You may choose to offer, and to charge a fee for, warranty, support, indemnity or liability obligations to one or more recipients of Covered Code. However, You may do so only on Your own behalf, and not on behalf of the Initial Developer or any Contributor. You must make it absolutely clear than any such warranty, support, indemnity or liability obligation is offered by You alone, and You hereby agree to indemnify the Initial Developer and every Contributor for any liability incurred by the Initial Developer or such Contributor as a result of warranty, support, indemnity or liability terms You offer. - - 3.6. Distribution of Executable Versions. - You may distribute Covered Code in Executable form only if the requirements of Section 3.1-3.5 have been met for that Covered Code, and if You include a notice stating that the Source Code version of the Covered Code is available under the terms of this License, including a description of how and where You have fulfilled the obligations of Section 3.2. The notice must be conspicuously included in any notice in an Executable version, related documentation or collateral in which You describe recipients' rights relating to the Covered Code. You may distribute the Executable version of Covered Code under a license of Your choice, which may contain terms different from this License, provided that You are in compliance with the terms of this License and that the license for the Executable version does not attempt to limit or alter the recipient's rights in the Source Code version from the rights set forth in this License. If You distribute the Executable version under a different license You must make it absolutely clear that any terms which differ from this License are offered by You alone, not by the Initial Developer or any Contributor. You hereby agree to indemnify the Initial Developer and every Contributor for any liability incurred by the Initial Developer or such Contributor as a result of any such terms You offer. - - 3.7. Larger Works. - You may create a Larger Work by combining Covered Code with other code not governed by the terms of this License and distribute the Larger Work as a single product. In such a case, You must make sure the requirements of this License are fulfilled for the Covered Code. - -4. Inability to Comply Due to Statute or Regulation. - - If it is impossible for You to comply with any of the terms of this License with respect to some or all of the Covered Code due to statute or regulation then You must: (a) comply with the terms of this License to the maximum extent possible; and (b) describe the limitations and the code they affect. Such description must be included in the LEGAL file described in Section 3.4 and must be included with all distributions of the Source Code. Except to the extent prohibited by statute or regulation, such description must be sufficiently detailed for a recipient of ordinary skill to be able to understand it. - -5. Application of this License. - - This License applies to code to which the Initial Developer has attached the notice in Exhibit A, and to related Covered Code. - -6. Versions of the License. - - 6.1. New Versions. - Netscape Communications Corporation (``Netscape'') may publish revised and/or new versions of the License from time to time. Each version will be given a distinguishing version number. - - 6.2. Effect of New Versions. - Once Covered Code has been published under a particular version of the License, You may always continue to use it under the terms of that version. You may also choose to use such Covered Code under the terms of any subsequent version of the License published by Netscape. No one other than Netscape has the right to modify the terms applicable to Covered Code created under this License. - - 6.3. Derivative Works. - If you create or use a modified version of this License (which you may only do in order to apply it to code which is not already Covered Code governed by this License), you must (a) rename Your license so that the phrases ``Mozilla'', ``MOZILLAPL'', ``MOZPL'', ``Netscape'', ``NPL'' or any confusingly similar phrase do not appear anywhere in your license and (b) otherwise make it clear that your version of the license contains terms which differ from the Mozilla Public License and Netscape Public License. (Filling in the name of the Initial Developer, Original Code or Contributor in the notice described in Exhibit A shall not of themselves be deemed to be modifications of this License.) - -7. DISCLAIMER OF WARRANTY. - - COVERED CODE IS PROVIDED UNDER THIS LICENSE ON AN ``AS IS'' BASIS, WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, WITHOUT LIMITATION, WARRANTIES THAT THE COVERED CODE IS FREE OF DEFECTS, MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE OR NON-INFRINGING. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE COVERED CODE IS WITH YOU. SHOULD ANY COVERED CODE PROVE DEFECTIVE IN ANY RESPECT, YOU (NOT THE INITIAL DEVELOPER OR ANY OTHER CONTRIBUTOR) ASSUME THE COST OF ANY NECESSARY SERVICING, REPAIR OR CORRECTION. THIS DISCLAIMER OF WARRANTY CONSTITUTES AN ESSENTIAL PART OF THIS LICENSE. NO USE OF ANY COVERED CODE IS AUTHORIZED HEREUNDER EXCEPT UNDER THIS DISCLAIMER. - -8. TERMINATION. - - This License and the rights granted hereunder will terminate automatically if You fail to comply with terms herein and fail to cure such breach within 30 days of becoming aware of the breach. All sublicenses to the Covered Code which are properly granted shall survive any termination of this License. Provisions which, by their nature, must remain in effect beyond the termination of this License shall survive. - -9. LIMITATION OF LIABILITY. - - UNDER NO CIRCUMSTANCES AND UNDER NO LEGAL THEORY, WHETHER TORT (INCLUDING NEGLIGENCE), CONTRACT, OR OTHERWISE, SHALL THE INITIAL DEVELOPER, ANY OTHER CONTRIBUTOR, OR ANY DISTRIBUTOR OF COVERED CODE, OR ANY SUPPLIER OF ANY OF SUCH PARTIES, BE LIABLE TO YOU OR ANY OTHER PERSON FOR ANY INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES OF ANY CHARACTER INCLUDING, WITHOUT LIMITATION, DAMAGES FOR LOSS OF GOODWILL, WORK STOPPAGE, COMPUTER FAILURE OR MALFUNCTION, OR ANY AND ALL OTHER COMMERCIAL DAMAGES OR LOSSES, EVEN IF SUCH PARTY SHALL HAVE BEEN INFORMED OF THE POSSIBILITY OF SUCH DAMAGES. THIS LIMITATION OF LIABILITY SHALL NOT APPLY TO LIABILITY FOR DEATH OR PERSONAL INJURY RESULTING FROM SUCH PARTY'S NEGLIGENCE TO THE EXTENT APPLICABLE LAW PROHIBITS SUCH LIMITATION. SOME JURISDICTIONS DO NOT ALLOW THE EXCLUSION OR LIMITATION OF INCIDENTAL OR CONSEQUENTIAL DAMAGES, SO THAT EXCLUSION AND LIMITATION MAY NOT APPLY TO YOU. - -10. U.S. GOVERNMENT END USERS. - - The Covered Code is a ``commercial item,'' as that term is defined in 48 C.F.R. 2.101 (Oct. 1995), consisting of ``commercial computer software'' and ``commercial computer software documentation,'' as such terms are used in 48 C.F.R. 12.212 (Sept. 1995). Consistent with 48 C.F.R. 12.212 and 48 C.F.R. 227.7202-1 through 227.7202-4 (June 1995), all U.S. Government End Users acquire Covered Code with only those rights set forth herein. - -11. MISCELLANEOUS. - - This License represents the complete agreement concerning subject matter hereof. If any provision of this License is held to be unenforceable, such provision shall be reformed only to the extent necessary to make it enforceable. This License shall be governed by California law provisions (except to the extent applicable law, if any, provides otherwise), excluding its conflict-of-law provisions. With respect to disputes in which at least one party is a citizen of, or an entity chartered or registered to do business in, the United States of America: (a) unless otherwise agreed in writing, all disputes relating to this License (excepting any dispute relating to intellectual property rights) shall be subject to final and binding arbitration, with the losing party paying all costs of arbitration; (b) any arbitration relating to this Agreement shall be held in Santa Clara County, California, under the auspices of JAMS/EndDispute; and (c) any litigation relating to this Agreement shall be subject to the jurisdiction of the Federal Courts of the Northern District of California, with venue lying in Santa Clara County, California, with the losing party responsible for costs, including without limitation, court costs and reasonable attorneys fees and expenses. The application of the United Nations Convention on Contracts for the International Sale of Goods is expressly excluded. Any law or regulation which provides that the language of a contract shall be construed against the drafter shall not apply to this License. - -12. RESPONSIBILITY FOR CLAIMS. - - Except in cases where another Contributor has failed to comply with Section 3.4, You are responsible for damages arising, directly or indirectly, out of Your utilization of rights under this License, based on the number of copies of Covered Code you made available, the revenues you received from utilizing such rights, and other relevant factors. You agree to work with affected parties to distribute responsibility on an equitable basis. - -EXHIBIT A. - - ``The contents of this file are subject to the Mozilla Public License Version 1.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.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License. - - The Original Code is ______________________________________. - - The Initial Developer of the Original Code is ________________________. Portions created by ______________________ are Copyright (C) ______ _______________________. All Rights Reserved. - - Contributor(s): ______________________________________.'' - -=============================================================================== - -The jaxen-1.1.1.jar: - - $Id: LICENSE.txt,v 1.5 2006/02/05 21:49:04 elharo Exp $ - - Copyright 2003-2006 The Werken Company. All Rights Reserved. - - Redistribution and use in source and binary forms, with or without - modification, are permitted provided that the following conditions are - met: - - * Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - - * Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - - * Neither the name of the Jaxen Project nor the names of its - contributors may be used to endorse or promote products derived - from this software without specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS -IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED -TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A -PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER -OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, -PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR -PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF -LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -================================================================================ -The asm-3.1.jar are distributed under the license: - -Copyright (c) 2000-2005 INRIA, France Telecom -All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions -are met: - -1. Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - -2. Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - -3. Neither the name of the copyright holders nor the names of its - contributors may be used to endorse or promote products derived from - this software without specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE -LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF -THE POSSIBILITY OF SUCH DAMAGE. - -================================================================================ - -The slf4j-api-1.5.11.jar and slf4j-jdk14-1.5.11.jar are distributed under the license: - -Copyright (c) 2004-2008 QOS.ch - All rights reserved. - - Permission is hereby granted, free of charge, to any person obtaining - a copy of this software and associated documentation files (the - "Software"), to deal in the Software without restriction, including - without limitation the rights to use, copy, modify, merge, publish, - distribute, sublicense, and/or sell copies of the Software, and to - permit persons to whom the Software is furnished to do so, subject to - the following conditions: - - The above copyright notice and this permission notice shall be - included in all copies or substantial portions of the Software. - - THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, - EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF - MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND - NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE - LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION - OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION - WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - -========================================================================================== - -The htmlparser-1.0.5.jar includes files under the following licenses: - -This is for the HTML parser as a whole except the rewindable input stream, -and the Live DOM Viewer. -For the copyright notices for individual files, please see individual files. - -/* - * Copyright (c) 2005, 2006, 2007 Henri Sivonen - * Copyright (c) 2007-2008 Mozilla Foundation - * Portions of comments Copyright 2004-2007 Apple Computer, Inc., Mozilla - * Foundation, and Opera Software ASA. - * - * Permission is hereby granted, free of charge, to any person obtaining a - * copy of this software and associated documentation files (the "Software"), - * to deal in the Software without restriction, including without limitation - * the rights to use, copy, modify, merge, publish, distribute, sublicense, - * and/or sell copies of the Software, and to permit persons to whom the - * Software is furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in - * all copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL - * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER - * DEALINGS IN THE SOFTWARE. - */ - -The following license is for the rewindable input stream. - -/* - * Copyright (c) 2001-2003 Thai Open Source Software Center Ltd - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * * Redistributions in binary form must reproduce the above - * copyright notice, this list of conditions and the following - * disclaimer in the documentation and/or other materials provided - * with the distribution. - * * Neither the name of the Thai Open Source Software Center Ltd nor - * the names of its contributors may be used to endorse or promote - * products derived from this software without specific prior - * written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -The following license applies to the Live DOM Viewer: - -Copyright (c) 2000, 2006, 2008 Ian Hickson and various contributors - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. - -========================================================================================== - - -The tuscany-assembly-xsd-osoa jar includes XSD files under the following SCA Collaboration license: - -License for the Service Component Architecture JavaDoc, Interface -Definition files and XSD files. - -The Service Component Architecture JavaDoc, Interface Definition files, -and XSD files are being provided by the copyright holders under the -following license. By using and/or copying this work, you agree that -you have read, understood and will comply with the following terms and -conditions: - -Permission to copy, display, make derivative works of, and distribute -the Service Component Architecture JavaDoc, Interface Definition Files -and XSD files (the "Artifacts") in any medium without fee or royalty is -hereby granted, provided that you include the following on ALL copies -of the Artifacts, or portions thereof, that you make: - -1. A link or URL to the Artifacts at this location: -http://www.osoa.org/display/Main/Service+Component+Architecture+Specifications - -2. The full text of this copyright notice as shown in the Artifacts. - -THE ARTIFACTS ARE PROVIDED "AS IS," AND THE AUTHORS MAKE NO -REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED, REGARDING THE -ARTIFACTS AND THE IMPLEMENTATION OF THEIR CONTENTS, INCLUDING, BUT NOT -LIMITED TO, WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR -PURPOSE, NON-INFRINGEMENT OR TITLE. - -THE AUTHORS WILL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL, -INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF OR RELATING TO ANY -USE OR DISTRIBUTION OF THE ARTIFACTS. - -The name and trademarks of the Authors may NOT be used in any manner, -including advertising or publicity pertaining to the Service Component -Architecture Specification or its contents without specific, written -prior permission. Title to copyright in the Service Component -Architecture Specification and the JavaDoc, Interface Definition Files -and XSD Files will at all times remain with the Authors. - -No other rights are granted by implication, estoppel or otherwise. - -Revision level 1.1, last updated on 2007/11/19 - - -================================================================================ - -The tuscany-assembly-xsd.jar and tuscany-sca-api.jar include files under the following OASIS license: - -Copyright (C) OASIS(R) 2005, 2009. All Rights Reserved. -All capitalized terms in the following text have the meanings assigned to them in the OASIS Intellectual -Property Rights Policy (the "OASIS IPR Policy"). The full Policy may be found at the OASIS website. -This document and translations of it may be copied and furnished to others, and derivative works that -comment on or otherwise explain it or assist in its implementation may be prepared, copied, published, -and distributed, in whole or in part, without restriction of any kind, provided that the above copyright -notice and this section are included on all such copies and derivative works. However, this document -itself may not be modified in any way, including by removing the copyright notice or references to OASIS, -except as needed for the purpose of developing any document or deliverable produced by an OASIS -Technical Committee (in which case the rules applicable to copyrights, as set forth in the OASIS IPR -Policy, must be followed) or as required to translate it into languages other than English. -The limited permissions granted above are perpetual and will not be revoked by OASIS or its successors -or assigns. -This document and the information contained herein is provided on an "AS IS" basis and OASIS -DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY -WARRANTY THAT THE USE OF THE INFORMATION HEREIN WILL NOT INFRINGE ANY OWNERSHIP -RIGHTS OR ANY IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR -PURPOSE. -OASIS requests that any OASIS Party or any other party that believes it has patent claims that would -necessarily be infringed by implementations of this OASIS Committee Specification or OASIS Standard, -to notify OASIS TC Administrator and provide an indication of its willingness to grant patent licenses to -such patent claims in a manner consistent with the IPR Mode of the OASIS Technical Committee that -produced this specification. -OASIS invites any party to contact the OASIS TC Administrator if it is aware of a claim of ownership of -any patent claims that would necessarily be infringed by implementations of this specification by a patent -holder that is not willing to provide a license to such patent claims in a manner consistent with the IPR -Mode of the OASIS Technical Committee that produced this specification. OASIS may include such -claims on its website, but disclaims any obligation to do so. -OASIS takes no position regarding the validity or scope of any intellectual property or other rights that -might be claimed to pertain to the implementation or use of the technology described in this document or -the extent to which any license under such rights might or might not be available; neither does it represent -that it has made any effort to identify any such rights. Information on OASIS' procedures with respect to -rights in any document or deliverable produced by an OASIS Technical Committee can be found on the -OASIS website. Copies of claims of rights made available for publication and any assurances of licenses -to be made available, or the result of an attempt made to obtain a general license or permission for the use -of such proprietary rights by implementers or users of this OASIS Committee Specification or OASIS -Standard, can be obtained from the OASIS TC Administrator. OASIS makes no representation that any -information or list of intellectual property rights will at any time be complete, or that any claims in such list -are, in fact, Essential Claims. -The names "OASIS", are trademarks of OASIS, the owner and developer of this specification, and should -be used only to refer to the organization and its official outputs. OASIS welcomes reference to, and -implementation and use of, specifications, while reserving the right to enforce its marks against misleading -uses. Please see http://www.oasis-open.org/who/trademark.php for above guidance. - - -================================================================================ - -The jruby-complete-1.4.0.jar includes files under the following licenses: - -Common Public License - v 1.0 - -THE ACCOMPANYING PROGRAM IS PROVIDED UNDER THE TERMS OF THIS COMMON PUBLIC LICENSE ("AGREEMENT"). ANY USE, REPRODUCTION OR DISTRIBUTION OF THE PROGRAM CONSTITUTES RECIPIENT'S ACCEPTANCE OF THIS AGREEMENT. - -1. DEFINITIONS - -"Contribution" means: - - a) in the case of the initial Contributor, the initial code and documentation distributed under this Agreement, and - b) in the case of each subsequent Contributor: - - i) changes to the Program, and - - ii) additions to the Program; - - where such changes and/or additions to the Program originate from and are distributed by that particular Contributor. A Contribution 'originates' from a Contributor if it was added to the Program by such Contributor itself or anyone acting on such Contributor's behalf. Contributions do not include additions to the Program which: (i) are separate modules of software distributed in conjunction with the Program under their own license agreement, and (ii) are not derivative works of the Program. - -"Contributor" means any person or entity that distributes the Program. - -"Licensed Patents " mean patent claims licensable by a Contributor which are necessarily infringed by the use or sale of its Contribution alone or when combined with the Program. - -"Program" means the Contributions distributed in accordance with this Agreement. - -"Recipient" means anyone who receives the Program under this Agreement, including all Contributors. - -2. GRANT OF RIGHTS - - a) Subject to the terms of this Agreement, each Contributor hereby grants Recipient a non-exclusive, worldwide, royalty-free copyright license to reproduce, prepare derivative works of, publicly display, publicly perform, distribute and sublicense the Contribution of such Contributor, if any, and such derivative works, in source code and object code form. - - b) Subject to the terms of this Agreement, each Contributor hereby grants Recipient a non-exclusive, worldwide, royalty-free patent license under Licensed Patents to make, use, sell, offer to sell, import and otherwise transfer the Contribution of such Contributor, if any, in source code and object code form. This patent license shall apply to the combination of the Contribution and the Program if, at the time the Contribution is added by the Contributor, such addition of the Contribution causes such combination to be covered by the Licensed Patents. The patent license shall not apply to any other combinations which include the Contribution. No hardware per se is licensed hereunder. - - c) Recipient understands that although each Contributor grants the licenses to its Contributions set forth herein, no assurances are provided by any Contributor that the Program does not infringe the patent or other intellectual property rights of any other entity. Each Contributor disclaims any liability to Recipient for claims brought by any other entity based on infringement of intellectual property rights or otherwise. As a condition to exercising the rights and licenses granted hereunder, each Recipient hereby assumes sole responsibility to secure any other intellectual property rights needed, if any. For example, if a third party patent license is required to allow Recipient to distribute the Program, it is Recipient's responsibility to acquire that license before distributing the Program. - - d) Each Contributor represents that to its knowledge it has sufficient copyright rights in its Contribution, if any, to grant the copyright license set forth in this Agreement. - -3. REQUIREMENTS - -A Contributor may choose to distribute the Program in object code form under its own license agreement, provided that: - - a) it complies with the terms and conditions of this Agreement; and - - b) its license agreement: - - i) effectively disclaims on behalf of all Contributors all warranties and conditions, express and implied, including warranties or conditions of title and non-infringement, and implied warranties or conditions of merchantability and fitness for a particular purpose; - - ii) effectively excludes on behalf of all Contributors all liability for damages, including direct, indirect, special, incidental and consequential damages, such as lost profits; - - iii) states that any provisions which differ from this Agreement are offered by that Contributor alone and not by any other party; and - - iv) states that source code for the Program is available from such Contributor, and informs licensees how to obtain it in a reasonable manner on or through a medium customarily used for software exchange. - -When the Program is made available in source code form: - - a) it must be made available under this Agreement; and - - b) a copy of this Agreement must be included with each copy of the Program. - -Contributors may not remove or alter any copyright notices contained within the Program. - -Each Contributor must identify itself as the originator of its Contribution, if any, in a manner that reasonably allows subsequent Recipients to identify the originator of the Contribution. - -4. COMMERCIAL DISTRIBUTION - -Commercial distributors of software may accept certain responsibilities with respect to end users, business partners and the like. While this license is intended to facilitate the commercial use of the Program, the Contributor who includes the Program in a commercial product offering should do so in a manner which does not create potential liability for other Contributors. Therefore, if a Contributor includes the Program in a commercial product offering, such Contributor ("Commercial Contributor") hereby agrees to defend and indemnify every other Contributor ("Indemnified Contributor") against any losses, damages and costs (collectively "Losses") arising from claims, lawsuits and other legal actions brought by a third party against the Indemnified Contributor to the extent caused by the acts or omissions of such Commercial Contributor in connection with its distribution of the Program in a commercial product offering. The obligations in this section do not apply to any claims or Losses relating to any actual or alleged intellectual property infringement. In order to qualify, an Indemnified Contributor must: a) promptly notify the Commercial Contributor in writing of such claim, and b) allow the Commercial Contributor to control, and cooperate with the Commercial Contributor in, the defense and any related settlement negotiations. The Indemnified Contributor may participate in any such claim at its own expense. - -For example, a Contributor might include the Program in a commercial product offering, Product X. That Contributor is then a Commercial Contributor. If that Commercial Contributor then makes performance claims, or offers warranties related to Product X, those performance claims and warranties are such Commercial Contributor's responsibility alone. Under this section, the Commercial Contributor would have to defend claims against the other Contributors related to those performance claims and warranties, and if a court requires any other Contributor to pay any damages as a result, the Commercial Contributor must pay those damages. - -5. NO WARRANTY - -EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, THE PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED INCLUDING, WITHOUT LIMITATION, ANY WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT, MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Each Recipient is solely responsible for determining the appropriateness of using and distributing the Program and assumes all risks associated with its exercise of rights under this Agreement, including but not limited to the risks and costs of program errors, compliance with applicable laws, damage to or loss of data, programs or equipment, and unavailability or interruption of operations. - -6. DISCLAIMER OF LIABILITY - -EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, NEITHER RECIPIENT NOR ANY CONTRIBUTORS SHALL HAVE ANY LIABILITY FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING WITHOUT LIMITATION LOST PROFITS), HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OR DISTRIBUTION OF THE PROGRAM OR THE EXERCISE OF ANY RIGHTS GRANTED HEREUNDER, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -7. GENERAL - -If any provision of this Agreement is invalid or unenforceable under applicable law, it shall not affect the validity or enforceability of the remainder of the terms of this Agreement, and without further action by the parties hereto, such provision shall be reformed to the minimum extent necessary to make such provision valid and enforceable. - -If Recipient institutes patent litigation against a Contributor with respect to a patent applicable to software (including a cross-claim or counterclaim in a lawsuit), then any patent licenses granted by that Contributor to such Recipient under this Agreement shall terminate as of the date such litigation is filed. In addition, if Recipient institutes patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Program itself (excluding combinations of the Program with other software or hardware) infringes such Recipient's patent(s), then such Recipient's rights granted under Section 2(b) shall terminate as of the date such litigation is filed. - -All Recipient's rights under this Agreement shall terminate if it fails to comply with any of the material terms or conditions of this Agreement and does not cure such failure in a reasonable period of time after becoming aware of such noncompliance. If all Recipient's rights under this Agreement terminate, Recipient agrees to cease use and distribution of the Program as soon as reasonably practicable. However, Recipient's obligations under this Agreement and any licenses granted by Recipient relating to the Program shall continue and survive. - -Everyone is permitted to copy and distribute copies of this Agreement, but in order to avoid inconsistency the Agreement is copyrighted and may only be modified in the following manner. The Agreement Steward reserves the right to publish new versions (including revisions) of this Agreement from time to time. No one other than the Agreement Steward has the right to modify this Agreement. IBM is the initial Agreement Steward. IBM may assign the responsibility to serve as the Agreement Steward to a suitable separate entity. Each new version of the Agreement will be given a distinguishing version number. The Program (including Contributions) may always be distributed subject to the version of the Agreement under which it was received. In addition, after a new version of the Agreement is published, Contributor may elect to distribute the Program (including its Contributions) under the new version. Except as expressly stated in Sections 2(a) and 2(b) above, Recipient receives no rights or licenses to the intellectual property of any Contributor under this Agreement, whether expressly, by implication, estoppel or otherwise. All rights in the Program not expressly granted under this Agreement are reserved. - -This Agreement is governed by the laws of the State of New York and the intellectual property laws of the United States of America. No party to this Agreement will bring a legal action under this Agreement more than one year after the cause of action arose. Each party waives its rights to a jury trial in any resulting litigation. - -=============================================================================== - -The js-1.7R2.jar includes files under the following licenses: - - MOZILLA PUBLIC LICENSE - Version 1.1 - - --------------- - -1. Definitions. - - 1.0.1. "Commercial Use" means distribution or otherwise making the - Covered Code available to a third party. - - 1.1. "Contributor" means each entity that creates or contributes to - the creation of Modifications. - - 1.2. "Contributor Version" means the combination of the Original - Code, prior Modifications used by a Contributor, and the Modifications - made by that particular Contributor. - - 1.3. "Covered Code" means the Original Code or Modifications or the - combination of the Original Code and Modifications, in each case - including portions thereof. - - 1.4. "Electronic Distribution Mechanism" means a mechanism generally - accepted in the software development community for the electronic - transfer of data. - - 1.5. "Executable" means Covered Code in any form other than Source - Code. - - 1.6. "Initial Developer" means the individual or entity identified - as the Initial Developer in the Source Code notice required by Exhibit - A. - - 1.7. "Larger Work" means a work which combines Covered Code or - portions thereof with code not governed by the terms of this License. - - 1.8. "License" means this document. - - 1.8.1. "Licensable" means having the right to grant, to the maximum - extent possible, whether at the time of the initial grant or - subsequently acquired, any and all of the rights conveyed herein. - - 1.9. "Modifications" means any addition to or deletion from the - substance or structure of either the Original Code or any previous - Modifications. When Covered Code is released as a series of files, a - Modification is: - A. Any addition to or deletion from the contents of a file - containing Original Code or previous Modifications. - - B. Any new file that contains any part of the Original Code or - previous Modifications. - - 1.10. "Original Code" means Source Code of computer software code - which is described in the Source Code notice required by Exhibit A as - Original Code, and which, at the time of its release under this - License is not already Covered Code governed by this License. - - 1.10.1. "Patent Claims" means any patent claim(s), now owned or - hereafter acquired, including without limitation, method, process, - and apparatus claims, in any patent Licensable by grantor. - - 1.11. "Source Code" means the preferred form of the Covered Code for - making modifications to it, including all modules it contains, plus - any associated interface definition files, scripts used to control - compilation and installation of an Executable, or source code - differential comparisons against either the Original Code or another - well known, available Covered Code of the Contributor's choice. The - Source Code can be in a compressed or archival form, provided the - appropriate decompression or de-archiving software is widely available - for no charge. - - 1.12. "You" (or "Your") means an individual or a legal entity - exercising rights under, and complying with all of the terms of, this - License or a future version of this License issued under Section 6.1. - For legal entities, "You" includes any entity which controls, is - controlled by, or is under common control with You. For purposes of - this definition, "control" means (a) the power, direct or indirect, - to cause the direction or management of such entity, whether by - contract or otherwise, or (b) ownership of more than fifty percent - (50%) of the outstanding shares or beneficial ownership of such - entity. - -2. Source Code License. - - 2.1. The Initial Developer Grant. - The Initial Developer hereby grants You a world-wide, royalty-free, - non-exclusive license, subject to third party intellectual property - claims: - (a) under intellectual property rights (other than patent or - trademark) Licensable by Initial Developer to use, reproduce, - modify, display, perform, sublicense and distribute the Original - Code (or portions thereof) with or without Modifications, and/or - as part of a Larger Work; and - - (b) under Patents Claims infringed by the making, using or - selling of Original Code, to make, have made, use, practice, - sell, and offer for sale, and/or otherwise dispose of the - Original Code (or portions thereof). - - (c) the licenses granted in this Section 2.1(a) and (b) are - effective on the date Initial Developer first distributes - Original Code under the terms of this License. - - (d) Notwithstanding Section 2.1(b) above, no patent license is - granted: 1) for code that You delete from the Original Code; 2) - separate from the Original Code; or 3) for infringements caused - by: i) the modification of the Original Code or ii) the - combination of the Original Code with other software or devices. - - 2.2. Contributor Grant. - Subject to third party intellectual property claims, each Contributor - hereby grants You a world-wide, royalty-free, non-exclusive license - - (a) under intellectual property rights (other than patent or - trademark) Licensable by Contributor, to use, reproduce, modify, - display, perform, sublicense and distribute the Modifications - created by such Contributor (or portions thereof) either on an - unmodified basis, with other Modifications, as Covered Code - and/or as part of a Larger Work; and - - (b) under Patent Claims infringed by the making, using, or - selling of Modifications made by that Contributor either alone - and/or in combination with its Contributor Version (or portions - of such combination), to make, use, sell, offer for sale, have - made, and/or otherwise dispose of: 1) Modifications made by that - Contributor (or portions thereof); and 2) the combination of - Modifications made by that Contributor with its Contributor - Version (or portions of such combination). - - (c) the licenses granted in Sections 2.2(a) and 2.2(b) are - effective on the date Contributor first makes Commercial Use of - the Covered Code. - - (d) Notwithstanding Section 2.2(b) above, no patent license is - granted: 1) for any code that Contributor has deleted from the - Contributor Version; 2) separate from the Contributor Version; - 3) for infringements caused by: i) third party modifications of - Contributor Version or ii) the combination of Modifications made - by that Contributor with other software (except as part of the - Contributor Version) or other devices; or 4) under Patent Claims - infringed by Covered Code in the absence of Modifications made by - that Contributor. - -3. Distribution Obligations. - - 3.1. Application of License. - The Modifications which You create or to which You contribute are - governed by the terms of this License, including without limitation - Section 2.2. The Source Code version of Covered Code may be - distributed only under the terms of this License or a future version - of this License released under Section 6.1, and You must include a - copy of this License with every copy of the Source Code You - distribute. You may not offer or impose any terms on any Source Code - version that alters or restricts the applicable version of this - License or the recipients' rights hereunder. However, You may include - an additional document offering the additional rights described in - Section 3.5. - - 3.2. Availability of Source Code. - Any Modification which You create or to which You contribute must be - made available in Source Code form under the terms of this License - either on the same media as an Executable version or via an accepted - Electronic Distribution Mechanism to anyone to whom you made an - Executable version available; and if made available via Electronic - Distribution Mechanism, must remain available for at least twelve (12) - months after the date it initially became available, or at least six - (6) months after a subsequent version of that particular Modification - has been made available to such recipients. You are responsible for - ensuring that the Source Code version remains available even if the - Electronic Distribution Mechanism is maintained by a third party. - - 3.3. Description of Modifications. - You must cause all Covered Code to which You contribute to contain a - file documenting the changes You made to create that Covered Code and - the date of any change. You must include a prominent statement that - the Modification is derived, directly or indirectly, from Original - Code provided by the Initial Developer and including the name of the - Initial Developer in (a) the Source Code, and (b) in any notice in an - Executable version or related documentation in which You describe the - origin or ownership of the Covered Code. - - 3.4. Intellectual Property Matters - (a) Third Party Claims. - If Contributor has knowledge that a license under a third party's - intellectual property rights is required to exercise the rights - granted by such Contributor under Sections 2.1 or 2.2, - Contributor must include a text file with the Source Code - distribution titled "LEGAL" which describes the claim and the - party making the claim in sufficient detail that a recipient will - know whom to contact. If Contributor obtains such knowledge after - the Modification is made available as described in Section 3.2, - Contributor shall promptly modify the LEGAL file in all copies - Contributor makes available thereafter and shall take other steps - (such as notifying appropriate mailing lists or newsgroups) - reasonably calculated to inform those who received the Covered - Code that new knowledge has been obtained. - - (b) Contributor APIs. - If Contributor's Modifications include an application programming - interface and Contributor has knowledge of patent licenses which - are reasonably necessary to implement that API, Contributor must - also include this information in the LEGAL file. - - (c) Representations. - Contributor represents that, except as disclosed pursuant to - Section 3.4(a) above, Contributor believes that Contributor's - Modifications are Contributor's original creation(s) and/or - Contributor has sufficient rights to grant the rights conveyed by - this License. - - 3.5. Required Notices. - You must duplicate the notice in Exhibit A in each file of the Source - Code. If it is not possible to put such notice in a particular Source - Code file due to its structure, then You must include such notice in a - location (such as a relevant directory) where a user would be likely - to look for such a notice. If You created one or more Modification(s) - You may add your name as a Contributor to the notice described in - Exhibit A. You must also duplicate this License in any documentation - for the Source Code where You describe recipients' rights or ownership - rights relating to Covered Code. You may choose to offer, and to - charge a fee for, warranty, support, indemnity or liability - obligations to one or more recipients of Covered Code. However, You - may do so only on Your own behalf, and not on behalf of the Initial - Developer or any Contributor. You must make it absolutely clear than - any such warranty, support, indemnity or liability obligation is - offered by You alone, and You hereby agree to indemnify the Initial - Developer and every Contributor for any liability incurred by the - Initial Developer or such Contributor as a result of warranty, - support, indemnity or liability terms You offer. - - 3.6. Distribution of Executable Versions. - You may distribute Covered Code in Executable form only if the - requirements of Section 3.1-3.5 have been met for that Covered Code, - and if You include a notice stating that the Source Code version of - the Covered Code is available under the terms of this License, - including a description of how and where You have fulfilled the - obligations of Section 3.2. The notice must be conspicuously included - in any notice in an Executable version, related documentation or - collateral in which You describe recipients' rights relating to the - Covered Code. You may distribute the Executable version of Covered - Code or ownership rights under a license of Your choice, which may - contain terms different from this License, provided that You are in - compliance with the terms of this License and that the license for the - Executable version does not attempt to limit or alter the recipient's - rights in the Source Code version from the rights set forth in this - License. If You distribute the Executable version under a different - license You must make it absolutely clear that any terms which differ - from this License are offered by You alone, not by the Initial - Developer or any Contributor. You hereby agree to indemnify the - Initial Developer and every Contributor for any liability incurred by - the Initial Developer or such Contributor as a result of any such - terms You offer. - - 3.7. Larger Works. - You may create a Larger Work by combining Covered Code with other code - not governed by the terms of this License and distribute the Larger - Work as a single product. In such a case, You must make sure the - requirements of this License are fulfilled for the Covered Code. - -4. Inability to Comply Due to Statute or Regulation. - - If it is impossible for You to comply with any of the terms of this - License with respect to some or all of the Covered Code due to - statute, judicial order, or regulation then You must: (a) comply with - the terms of this License to the maximum extent possible; and (b) - describe the limitations and the code they affect. Such description - must be included in the LEGAL file described in Section 3.4 and must - be included with all distributions of the Source Code. Except to the - extent prohibited by statute or regulation, such description must be - sufficiently detailed for a recipient of ordinary skill to be able to - understand it. - -5. Application of this License. - - This License applies to code to which the Initial Developer has - attached the notice in Exhibit A and to related Covered Code. - -6. Versions of the License. - - 6.1. New Versions. - Netscape Communications Corporation ("Netscape") may publish revised - and/or new versions of the License from time to time. Each version - will be given a distinguishing version number. - - 6.2. Effect of New Versions. - Once Covered Code has been published under a particular version of the - License, You may always continue to use it under the terms of that - version. You may also choose to use such Covered Code under the terms - of any subsequent version of the License published by Netscape. No one - other than Netscape has the right to modify the terms applicable to - Covered Code created under this License. - - 6.3. Derivative Works. - If You create or use a modified version of this License (which you may - only do in order to apply it to code which is not already Covered Code - governed by this License), You must (a) rename Your license so that - the phrases "Mozilla", "MOZILLAPL", "MOZPL", "Netscape", - "MPL", "NPL" or any confusingly similar phrase do not appear in your - license (except to note that your license differs from this License) - and (b) otherwise make it clear that Your version of the license - contains terms which differ from the Mozilla Public License and - Netscape Public License. (Filling in the name of the Initial - Developer, Original Code or Contributor in the notice described in - Exhibit A shall not of themselves be deemed to be modifications of - this License.) - -7. DISCLAIMER OF WARRANTY. - - COVERED CODE IS PROVIDED UNDER THIS LICENSE ON AN "AS IS" BASIS, - WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, - WITHOUT LIMITATION, WARRANTIES THAT THE COVERED CODE IS FREE OF - DEFECTS, MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE OR NON-INFRINGING. - THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE COVERED CODE - IS WITH YOU. SHOULD ANY COVERED CODE PROVE DEFECTIVE IN ANY RESPECT, - YOU (NOT THE INITIAL DEVELOPER OR ANY OTHER CONTRIBUTOR) ASSUME THE - COST OF ANY NECESSARY SERVICING, REPAIR OR CORRECTION. THIS DISCLAIMER - OF WARRANTY CONSTITUTES AN ESSENTIAL PART OF THIS LICENSE. NO USE OF - ANY COVERED CODE IS AUTHORIZED HEREUNDER EXCEPT UNDER THIS DISCLAIMER. - -8. TERMINATION. - - 8.1. This License and the rights granted hereunder will terminate - automatically if You fail to comply with terms herein and fail to cure - such breach within 30 days of becoming aware of the breach. All - sublicenses to the Covered Code which are properly granted shall - survive any termination of this License. Provisions which, by their - nature, must remain in effect beyond the termination of this License - shall survive. - - 8.2. If You initiate litigation by asserting a patent infringement - claim (excluding declatory judgment actions) against Initial Developer - or a Contributor (the Initial Developer or Contributor against whom - You file such action is referred to as "Participant") alleging that: - - (a) such Participant's Contributor Version directly or indirectly - infringes any patent, then any and all rights granted by such - Participant to You under Sections 2.1 and/or 2.2 of this License - shall, upon 60 days notice from Participant terminate prospectively, - unless if within 60 days after receipt of notice You either: (i) - agree in writing to pay Participant a mutually agreeable reasonable - royalty for Your past and future use of Modifications made by such - Participant, or (ii) withdraw Your litigation claim with respect to - the Contributor Version against such Participant. If within 60 days - of notice, a reasonable royalty and payment arrangement are not - mutually agreed upon in writing by the parties or the litigation claim - is not withdrawn, the rights granted by Participant to You under - Sections 2.1 and/or 2.2 automatically terminate at the expiration of - the 60 day notice period specified above. - - (b) any software, hardware, or device, other than such Participant's - Contributor Version, directly or indirectly infringes any patent, then - any rights granted to You by such Participant under Sections 2.1(b) - and 2.2(b) are revoked effective as of the date You first made, used, - sold, distributed, or had made, Modifications made by that - Participant. - - 8.3. If You assert a patent infringement claim against Participant - alleging that such Participant's Contributor Version directly or - indirectly infringes any patent where such claim is resolved (such as - by license or settlement) prior to the initiation of patent - infringement litigation, then the reasonable value of the licenses - granted by such Participant under Sections 2.1 or 2.2 shall be taken - into account in determining the amount or value of any payment or - license. - - 8.4. In the event of termination under Sections 8.1 or 8.2 above, - all end user license agreements (excluding distributors and resellers) - which have been validly granted by You or any distributor hereunder - prior to termination shall survive termination. - -9. LIMITATION OF LIABILITY. - - UNDER NO CIRCUMSTANCES AND UNDER NO LEGAL THEORY, WHETHER TORT - (INCLUDING NEGLIGENCE), CONTRACT, OR OTHERWISE, SHALL YOU, THE INITIAL - DEVELOPER, ANY OTHER CONTRIBUTOR, OR ANY DISTRIBUTOR OF COVERED CODE, - OR ANY SUPPLIER OF ANY OF SUCH PARTIES, BE LIABLE TO ANY PERSON FOR - ANY INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES OF ANY - CHARACTER INCLUDING, WITHOUT LIMITATION, DAMAGES FOR LOSS OF GOODWILL, - WORK STOPPAGE, COMPUTER FAILURE OR MALFUNCTION, OR ANY AND ALL OTHER - COMMERCIAL DAMAGES OR LOSSES, EVEN IF SUCH PARTY SHALL HAVE BEEN - INFORMED OF THE POSSIBILITY OF SUCH DAMAGES. THIS LIMITATION OF - LIABILITY SHALL NOT APPLY TO LIABILITY FOR DEATH OR PERSONAL INJURY - RESULTING FROM SUCH PARTY'S NEGLIGENCE TO THE EXTENT APPLICABLE LAW - PROHIBITS SUCH LIMITATION. SOME JURISDICTIONS DO NOT ALLOW THE - EXCLUSION OR LIMITATION OF INCIDENTAL OR CONSEQUENTIAL DAMAGES, SO - THIS EXCLUSION AND LIMITATION MAY NOT APPLY TO YOU. - -10. U.S. GOVERNMENT END USERS. - - The Covered Code is a "commercial item," as that term is defined in - 48 C.F.R. 2.101 (Oct. 1995), consisting of "commercial computer - software" and "commercial computer software documentation," as such - terms are used in 48 C.F.R. 12.212 (Sept. 1995). Consistent with 48 - C.F.R. 12.212 and 48 C.F.R. 227.7202-1 through 227.7202-4 (June 1995), - all U.S. Government End Users acquire Covered Code with only those - rights set forth herein. - -11. MISCELLANEOUS. - - This License represents the complete agreement concerning subject - matter hereof. If any provision of this License is held to be - unenforceable, such provision shall be reformed only to the extent - necessary to make it enforceable. This License shall be governed by - California law provisions (except to the extent applicable law, if - any, provides otherwise), excluding its conflict-of-law provisions. - With respect to disputes in which at least one party is a citizen of, - or an entity chartered or registered to do business in the United - States of America, any litigation relating to this License shall be - subject to the jurisdiction of the Federal Courts of the Northern - District of California, with venue lying in Santa Clara County, - California, with the losing party responsible for costs, including - without limitation, court costs and reasonable attorneys' fees and - expenses. The application of the United Nations Convention on - Contracts for the International Sale of Goods is expressly excluded. - Any law or regulation which provides that the language of a contract - shall be construed against the drafter shall not apply to this - License. - -12. RESPONSIBILITY FOR CLAIMS. - - As between Initial Developer and the Contributors, each party is - responsible for claims and damages arising, directly or indirectly, - out of its utilization of rights under this License and You agree to - work with Initial Developer and Contributors to distribute such - responsibility on an equitable basis. Nothing herein is intended or - shall be deemed to constitute any admission of liability. - -13. MULTIPLE-LICENSED CODE. - - Initial Developer may designate portions of the Covered Code as - "Multiple-Licensed". "Multiple-Licensed" means that the Initial - Developer permits you to utilize portions of the Covered Code under - Your choice of the NPL or the alternative licenses, if any, specified - by the Initial Developer in the file described in Exhibit A. - -EXHIBIT A -Mozilla Public License. - - ``The contents of this file are subject to the Mozilla Public License - Version 1.1 (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.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS IS" - basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the - License for the specific language governing rights and limitations - under the License. - - The Original Code is ______________________________________. - - The Initial Developer of the Original Code is ________________________. - Portions created by ______________________ are Copyright (C) ______ - _______________________. All Rights Reserved. - - Contributor(s): ______________________________________. - - Alternatively, the contents of this file may be used under the terms - of the _____ license (the "[___] License"), in which case the - provisions of [______] License are applicable instead of those - above. If you wish to allow use of your version of this file only - under the terms of the [____] License and not to allow others to use - your version of this file under the MPL, indicate your decision by - deleting the provisions above and replace them with the notice and - other provisions required by the [___] License. If you do not delete - the provisions above, a recipient may use your version of this file - under either the MPL or the [___] License." - - [NOTE: The text of this Exhibit A may differ slightly from the text of - the notices in the Source Code files of the Original Code. You should - use the text of this Exhibit A rather than the text found in the - Original Code Source Code for Your Modifications.] -======================================================================================================== - -The jython-2.2.1.jar includes files under the following licenses: - -The Jython License -A. TERMS AND CONDITIONS FOR ACCESSING OR OTHERWISE USING JYTHON -PYTHON SOFTWARE FOUNDATION LICENSE VERSION 2 - -1. This LICENSE AGREEMENT is between the Python Software Foundation ("PSF"), and the Individual or Organization ("Licensee") accessing and otherwise using this software ("Jython") in source or binary form and its associated documentation. - -2. Subject to the terms and conditions of this License Agreement, PSF hereby grants Licensee a nonexclusive, royalty-free, world-wide license to reproduce, analyze, test, perform and/or display publicly, prepare derivative works, distribute, and otherwise use Jython alone or in any derivative version, provided, however, that PSF's License Agreement and PSF's notice of copyright, i.e., "Copyright (c) 2007 Python Software Foundation; All Rights Reserved" are retained in Jython alone or in any derivative version prepared by Licensee. - -3. In the event Licensee prepares a derivative work that is based on or incorporates Jython or any part thereof, and wants to make the derivative work available to others as provided herein, then Licensee hereby agrees to include in any such work a brief summary of the changes made to Jython. - -4. PSF is making Jython available to Licensee on an "AS IS" basis. PSF MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED. BY WAY OF EXAMPLE, BUT NOT LIMITATION, PSF MAKES NO AND DISCLAIMS ANY REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF JYTHON WILL NOT INFRINGE ANY THIRD PARTY RIGHTS. - -5. PSF SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF JYTHON FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS AS A RESULT OF MODIFYING, DISTRIBUTING, OR OTHERWISE USING JYTHON, OR ANY DERIVATIVE THEREOF, EVEN IF ADVISED OF THE POSSIBILITY THEREOF. - -6. This License Agreement will automatically terminate upon a material breach of its terms and conditions. - -7. Nothing in this License Agreement shall be deemed to create any relationship of agency, partnership, or joint venture between PSF and Licensee. This License Agreement does not grant permission to use PSF trademarks or trade name in a trademark sense to endorse or promote products or services of Licensee, or any third party. - -8. By copying, installing or otherwise using Jython, Licensee agrees to be bound by the terms and conditions of this License Agreement. -======================================================================================================== - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/distribution/all/src/main/release/bin/NOTICE b/sca-java-2.x/tags/2.0-M5-RC3/distribution/all/src/main/release/bin/NOTICE deleted file mode 100644 index 65bf34a9ba..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/distribution/all/src/main/release/bin/NOTICE +++ /dev/null @@ -1,5 +0,0 @@ -Apache Tuscany -Copyright (c) 2005 - 2010 The Apache Software Foundation - -This product includes software developed at -The Apache Software Foundation (http://www.apache.org/). diff --git a/sca-java-2.x/tags/2.0-M5-RC3/distribution/all/src/main/release/bin/README b/sca-java-2.x/tags/2.0-M5-RC3/distribution/all/src/main/release/bin/README deleted file mode 100644 index 210c673598..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/distribution/all/src/main/release/bin/README +++ /dev/null @@ -1,3 +0,0 @@ -Please note that this /lib directory is here to support an experimental -feature in the Tuscany 2.0-M5 release, and may not exist in future -releases. diff --git a/sca-java-2.x/tags/2.0-M5-RC3/distribution/all/src/main/release/launcher/README b/sca-java-2.x/tags/2.0-M5-RC3/distribution/all/src/main/release/launcher/README deleted file mode 100644 index d651dfdeb7..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/distribution/all/src/main/release/launcher/README +++ /dev/null @@ -1,42 +0,0 @@ -The bin folder contains bat and shell scripts to help with using Tuscany. -You can use the "tuscany.bat" script to start a standalone runtime and -deploy your SCA contributions. - -For example, change to the implementation-java-calculator sample included -in the Tuscany distribution and enter the following command: - -..\..\bin\tuscany.bat target\implementation-java-calculator.jar - -The script also supports things such as using a Java remote debugger, -for help enter use the "/?" parameter, eg: - -..\..\bin\tuscany.bat /? - -To simplify the use of the script add the absolute file path of the bin -folder to your environment path: - -set PATH=%PATH%;\Tuscany\tuscany-sca-2.0-M4\bin - -and that enables running the script by just "tuscany", for example, in the -implementation-java-calculator sample again you can enter: - -tuscany target\implementation-java-calculator.jar - -Tuscany developers may find it useful to add the script from their SVN checkout -development build to their environment so as to start runtimes using their local -trunk build, for example: - -set PATH=%PATH%;\Tuscany\SVN\trunk\distribution\all\target\apache-tuscany-sca-all-2.0-SNAPSHOT-dir\tuscany-sca-2.0-SNAPSHOT\bin - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/distribution/all/src/main/release/launcher/default.config b/sca-java-2.x/tags/2.0-M5-RC3/distribution/all/src/main/release/launcher/default.config deleted file mode 100644 index d0f68de133..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/distribution/all/src/main/release/launcher/default.config +++ /dev/null @@ -1,22 +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. -# - -classpath=modules/** -mainClass=[firstArgJarManifestMainClass]|org.apache.tuscany.sca.domain.node.DomainNodeMain --Djava.util.logging.config.file={TUSCANY_HOME}/samples/logging.properties - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/distribution/all/src/main/release/launcher/osgi.config b/sca-java-2.x/tags/2.0-M5-RC3/distribution/all/src/main/release/launcher/osgi.config deleted file mode 100644 index 9516b9db34..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/distribution/all/src/main/release/launcher/osgi.config +++ /dev/null @@ -1,21 +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. -# - -classpath=modules/** --Djava.util.logging.config.file={TUSCANY_HOME}/samples/logging.properties -mainClass=org.apache.tuscany.sca.node.equinox.launcher.NodeLauncher2 - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/distribution/all/src/main/release/launcher/tuscany.bat b/sca-java-2.x/tags/2.0-M5-RC3/distribution/all/src/main/release/launcher/tuscany.bat deleted file mode 100644 index cbf6962218..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/distribution/all/src/main/release/launcher/tuscany.bat +++ /dev/null @@ -1,83 +0,0 @@ -@echo off - -REM # Licensed to the Apache Software Foundation (ASF) under one -REM # or more contributor license agreements. See the NOTICE file -REM # distributed with this work for additional information -REM # regarding copyright ownership. The ASF licenses this file -REM # to you under the Apache License, Version 2.0 (the -REM # "License"); you may not use this file except in compliance -REM # with the License. You may obtain a copy of the License at -REM # -REM # http://www.apache.org/licenses/LICENSE-2.0 -REM # -REM # Unless required by applicable law or agreed to in writing, -REM # software distributed under the License is distributed on an -REM # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -REM # KIND, either express or implied. See the License for the -REM # specific language governing permissions and limitations -REM # under the License. - -REM TODO: can't get these to work yet when using the tribes domaim URI in quotes -REM if "%1".=="/?". goto help -REM if "%1".=="-help". goto help - -if not "%TUSCANY_HOME%"=="" goto gotHome -SET TUSCANY_HOME=%~dp0\.. -if not "%TUSCANY_HOME%"=="" goto gotHome -echo. -echo cannot find TUSCANY_HOME please set TUSCANY_HOME variable to the Tuscany installation dir -echo. -goto error -:gotHome - - -set _XDEBUG= -if not %1==debug goto skipDebug -set _XDEBUG=-Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=y -shift -:skipDebug - -set _FORK= -if not %1==fork goto skipFork -set _FORK=start -shift -:skipFORK - -set _CMD_LINE_ARGS= -:argsLoop -if %1a==a goto doneInit -set _CMD_LINE_ARGS=%_CMD_LINE_ARGS% %1 -shift -goto argsLoop - - -:doneInit - -%_FORK% java %_XDEBUG% -jar %TUSCANY_HOME%/bin/launcher.jar %_CMD_LINE_ARGS% - -goto end - -:help - -echo Apache Tuscany SCA runtime launcher -echo TUSCANY [debug] [fork] [domainURI] contributions -echo debug enable Java remote debugging -echo fork start a new command prompt window to run the contributions -echo domainURI config URI for the domain, the format is: -echo vm:domainName -echo or -echo "tribes:domainName?routes=ip1,ip2,..." -echo NOTE that the tribes URI needs to be in quotes -echo contributions list of SCA contribution file names seperated by spaces. All -echo deployable composites found in the contributions will be run. - -goto end - -:error -set ERROR_CODE=1 - - -:end -@endlocal -exit /B %ERROR_CODE% - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/distribution/all/src/main/release/launcher/tuscany.sh b/sca-java-2.x/tags/2.0-M5-RC3/distribution/all/src/main/release/launcher/tuscany.sh deleted file mode 100644 index b053afe4e1..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/distribution/all/src/main/release/launcher/tuscany.sh +++ /dev/null @@ -1,54 +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 - -#!/bin/bash - -# copied from tomcat catalina.sh -# resolve links - $0 may be a softlink -PRG="$0" - -while [ -h "$PRG" ]; do - ls=`ls -ld "$PRG"` - link=`expr "$ls" : '.*-> \(.*\)$'` - if expr "$link" : '/.*' > /dev/null; then - PRG="$link" - else - PRG=`dirname "$PRG"`/"$link" - fi -done - -# Get standard environment variables -PRGDIR=`dirname "$PRG"` - -# Only set CATALINA_HOME if not already set -[ -z "$TUSCANY_HOME" ] && TUSCANY_HOME=`cd "$PRGDIR/.." ; pwd` - -if [ "$1" = "/?" ] ; then - echo "Apache Tuscany SCA runtime launcher" - echo "TUSCANY [debug] contributions" - echo " debug enable Java remote debugging" - echo " contributions list of SCA contribution file names seperated by spaces. All" - echo " deployable composites found in the contributions will be run." - exit 1 -fi - -_XDEBUG="" -if [ "$1" = "debug" ] ; then - _XDEBUG="-Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=y" - shift -fi - -java $_XDEBUG -jar $TUSCANY_HOME/bin/launcher.jar "$@" diff --git a/sca-java-2.x/tags/2.0-M5-RC3/distribution/all/src/main/release/launcher/unmanaged.config b/sca-java-2.x/tags/2.0-M5-RC3/distribution/all/src/main/release/launcher/unmanaged.config deleted file mode 100644 index ac99590ce9..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/distribution/all/src/main/release/launcher/unmanaged.config +++ /dev/null @@ -1,21 +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. -# - -classpath=modules/** --Djava.util.logging.config.file={TUSCANY_HOME}/samples/logging.properties -mainClass=[firstArgJarManifestMainClass] - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/distribution/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/distribution/pom.xml deleted file mode 100644 index e9565d850f..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/distribution/pom.xml +++ /dev/null @@ -1,38 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-sca - ../pom.xml - 2.0-M5 - - org.apache.tuscany.sca - tuscany-distribution - pom - Apache Tuscany SCA Distributions - - - all - tomcat - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/README.txt b/sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/README.txt deleted file mode 100644 index b6158e3667..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/README.txt +++ /dev/null @@ -1,8 +0,0 @@ -This builds the Tuscany Tomcat Distribution. - -After building the distribution .war file will be -found in the tomcat-war/target directory. - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/pom.xml deleted file mode 100644 index 8d376f8a5c..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/pom.xml +++ /dev/null @@ -1,40 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-sca - ../pom.xml - 2.0-M5 - - org.apache.tuscany.sca - tuscany-distribution-tomcat - pom - Apache Tuscany SCA Distribution Tomcat - - - tomcat-hook - tomcat-servlet - tomcat-war - testing - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/testing/download-tomcat/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/testing/download-tomcat/pom.xml deleted file mode 100644 index 84ddcf9243..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/testing/download-tomcat/pom.xml +++ /dev/null @@ -1,82 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-distribution-tomcat-testing - 2.0-M5 - ../pom.xml - - - download-tomcat - war - Apache Tuscany SCA Tomcat Integration Testing Download Tomcat - - - 6.0.18 - - - - - - - - - org.codehaus.mojo - tomcat-maven-plugin - 1.0-beta-1 - - - - org.codehaus.mojo - wagon-maven-plugin - 1.0-beta-1 - - - download-tomcat - pre-integration-test - - download-single - - - http://archive.apache.org - dist/tomcat/tomcat-6/v${tomcat.version}/bin/apache-tomcat-${tomcat.version}.zip - download - - - - - - - - - - - - - download/apache-tomcat-6.0.18.zip - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/testing/helloworld-client-webapp/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/testing/helloworld-client-webapp/pom.xml deleted file mode 100644 index 9df7e987f1..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/testing/helloworld-client-webapp/pom.xml +++ /dev/null @@ -1,47 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-distribution-tomcat-testing - 2.0-M5 - ../pom.xml - - - helloworld-client-webapp - war - Apache Tuscany SCA Tomcat Integration Testing Helloworld Client Webapp - - - - org.apache.tuscany.sca - tuscany-sca-api - 2.0-M5 - provided - - - - - ${artifactId} - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/testing/helloworld-client-webapp/src/main/java/testing/HelloworldService.java b/sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/testing/helloworld-client-webapp/src/main/java/testing/HelloworldService.java deleted file mode 100644 index 0be22979c2..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/testing/helloworld-client-webapp/src/main/java/testing/HelloworldService.java +++ /dev/null @@ -1,30 +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 testing; - -// TODO: should the webapp need to include the service interface? - -import org.oasisopen.sca.annotation.Remotable; - -@Remotable -public interface HelloworldService { - - String sayHello(String name); - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/testing/helloworld-client-webapp/src/main/webapp/WEB-INF/web.composite b/sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/testing/helloworld-client-webapp/src/main/webapp/WEB-INF/web.composite deleted file mode 100644 index d6db86cf64..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/testing/helloworld-client-webapp/src/main/webapp/WEB-INF/web.composite +++ /dev/null @@ -1,30 +0,0 @@ - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/testing/helloworld-client-webapp/src/main/webapp/WEB-INF/web.xml b/sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/testing/helloworld-client-webapp/src/main/webapp/WEB-INF/web.xml deleted file mode 100644 index 411d8a3146..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/testing/helloworld-client-webapp/src/main/webapp/WEB-INF/web.xml +++ /dev/null @@ -1,31 +0,0 @@ - - - - - jsp-client-webapp - - - hello.jsp - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/testing/helloworld-client-webapp/src/main/webapp/hello.jsp b/sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/testing/helloworld-client-webapp/src/main/webapp/hello.jsp deleted file mode 100644 index d520375993..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/testing/helloworld-client-webapp/src/main/webapp/hello.jsp +++ /dev/null @@ -1,36 +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. ---%> -<%@ page contentType="text/html;charset=UTF-8" language="java" %> -<%@ taglib uri="http://www.osoa.org/sca/sca_jsp.tld" prefix="sca" %> - - - - - - -

jsp-client-webapp

- - Calling HelloworldService sayHello("world") returns: - -

- - <%= service.sayHello("world") %> - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/testing/helloworld-reference-contribution/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/testing/helloworld-reference-contribution/pom.xml deleted file mode 100644 index 44eae044df..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/testing/helloworld-reference-contribution/pom.xml +++ /dev/null @@ -1,45 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-distribution-tomcat-testing - 2.0-M5 - ../pom.xml - - - helloworld-reference-contribution - Apache Tuscany SCA Tomcat Integration Testing Helloworld Reference Contribution - - - - org.apache.tuscany.sca - tuscany-sca-api - 2.0-M5 - provided - - - - - - ${artifactId} - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/testing/helloworld-reference-contribution/src/main/java/testing/HelloworldRefImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/testing/helloworld-reference-contribution/src/main/java/testing/HelloworldRefImpl.java deleted file mode 100644 index c2d0bcb4dc..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/testing/helloworld-reference-contribution/src/main/java/testing/HelloworldRefImpl.java +++ /dev/null @@ -1,38 +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 testing; - -import org.oasisopen.sca.annotation.Service; -import org.oasisopen.sca.annotation.Reference; -import org.oasisopen.sca.annotation.EagerInit; - -@Service(HelloworldService.class) -public class HelloworldRefImpl implements HelloworldService { - - @Reference - public HelloworldService service; - - public String sayHello(String name) { - if (service == null) { - return "ERROR, @Reference is null!"; - } else { - return "Hello ref says: " + service.sayHello(name); - } - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/testing/helloworld-reference-contribution/src/main/java/testing/HelloworldService.java b/sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/testing/helloworld-reference-contribution/src/main/java/testing/HelloworldService.java deleted file mode 100644 index b035a772be..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/testing/helloworld-reference-contribution/src/main/java/testing/HelloworldService.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 testing; - -import org.oasisopen.sca.annotation.Remotable; - -@Remotable -public interface HelloworldService { - - String sayHello(String name); - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/testing/helloworld-reference-contribution/src/main/resources/META-INF/sca-contribution.xml b/sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/testing/helloworld-reference-contribution/src/main/resources/META-INF/sca-contribution.xml deleted file mode 100644 index 693325c13d..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/testing/helloworld-reference-contribution/src/main/resources/META-INF/sca-contribution.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/testing/helloworld-reference-contribution/src/main/resources/helloworld.composite b/sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/testing/helloworld-reference-contribution/src/main/resources/helloworld.composite deleted file mode 100644 index b07cf6078c..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/testing/helloworld-reference-contribution/src/main/resources/helloworld.composite +++ /dev/null @@ -1,29 +0,0 @@ - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/testing/helloworld-scaclient-jsp/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/testing/helloworld-scaclient-jsp/pom.xml deleted file mode 100644 index b85e085ce6..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/testing/helloworld-scaclient-jsp/pom.xml +++ /dev/null @@ -1,48 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-distribution-tomcat-testing - 2.0-M5 - ../pom.xml - - - helloworld-scaclient-jsp - war - Apache Tuscany SCA Tomcat Integration Testing Helloworld Webapp Using SCAClient in a JSP - - - - org.apache.tuscany.sca - tuscany-sca-api - 2.0-M5 - provided - - - - - ${artifactId} - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/testing/helloworld-scaclient-jsp/src/main/java/testing/HelloworldService.java b/sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/testing/helloworld-scaclient-jsp/src/main/java/testing/HelloworldService.java deleted file mode 100644 index b035a772be..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/testing/helloworld-scaclient-jsp/src/main/java/testing/HelloworldService.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 testing; - -import org.oasisopen.sca.annotation.Remotable; - -@Remotable -public interface HelloworldService { - - String sayHello(String name); - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/testing/helloworld-scaclient-jsp/src/main/webapp/META-INF/sca-contribution.xml b/sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/testing/helloworld-scaclient-jsp/src/main/webapp/META-INF/sca-contribution.xml deleted file mode 100644 index 7839933b3a..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/testing/helloworld-scaclient-jsp/src/main/webapp/META-INF/sca-contribution.xml +++ /dev/null @@ -1,28 +0,0 @@ - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/testing/helloworld-scaclient-jsp/src/main/webapp/WEB-INF/web.xml b/sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/testing/helloworld-scaclient-jsp/src/main/webapp/WEB-INF/web.xml deleted file mode 100644 index f2e3441d5e..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/testing/helloworld-scaclient-jsp/src/main/webapp/WEB-INF/web.xml +++ /dev/null @@ -1,31 +0,0 @@ - - - - - jsp-client-webapp - - - hello.jsp - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/testing/helloworld-scaclient-jsp/src/main/webapp/hello.jsp b/sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/testing/helloworld-scaclient-jsp/src/main/webapp/hello.jsp deleted file mode 100644 index 45ae96cb82..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/testing/helloworld-scaclient-jsp/src/main/webapp/hello.jsp +++ /dev/null @@ -1,41 +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. ---%> -<%@ page contentType="text/html;charset=UTF-8" language="java" %> - -<%@ page import="org.oasisopen.sca.client.SCAClientFactory"%> -<%@ page import="testing.HelloworldService" %> -<%@ page import="java.net.URI" %> - -<% - HelloworldService service = SCAClientFactory.newInstance(URI.create("default")).getService(HelloworldService.class, "HelloworldComponent"); -%> - - - - -

helloworld-scaclient-jsp

- - Calling HelloworldService sayHello("world") returns: - -

- - <%= service.sayHello("world") %> - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/testing/helloworld-scaclient-servlet/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/testing/helloworld-scaclient-servlet/pom.xml deleted file mode 100644 index 9f7dc1bc82..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/testing/helloworld-scaclient-servlet/pom.xml +++ /dev/null @@ -1,53 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-distribution-tomcat-testing - 2.0-M5 - ../pom.xml - - - helloworld-scaclient-servlet - war - Apache Tuscany SCA Tomcat Integration Testing Helloworld Webapp Using SCAClient in a Servlet - - - - org.apache.tuscany.sca - tuscany-sca-api - 2.0-M5 - provided - - - javax.servlet - servlet-api - 2.5 - provided - - - - - ${artifactId} - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/testing/helloworld-scaclient-servlet/src/main/java/testing/HelloworldService.java b/sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/testing/helloworld-scaclient-servlet/src/main/java/testing/HelloworldService.java deleted file mode 100644 index b035a772be..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/testing/helloworld-scaclient-servlet/src/main/java/testing/HelloworldService.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 testing; - -import org.oasisopen.sca.annotation.Remotable; - -@Remotable -public interface HelloworldService { - - String sayHello(String name); - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/testing/helloworld-scaclient-servlet/src/main/java/testing/HelloworldServlet.java b/sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/testing/helloworld-scaclient-servlet/src/main/java/testing/HelloworldServlet.java deleted file mode 100644 index 5be51fab61..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/testing/helloworld-scaclient-servlet/src/main/java/testing/HelloworldServlet.java +++ /dev/null @@ -1,64 +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 testing; - -import java.io.IOException; -import java.io.Writer; -import java.net.URI; - -import javax.servlet.ServletConfig; -import javax.servlet.ServletException; -import javax.servlet.http.HttpServlet; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; - -import org.oasisopen.sca.NoSuchDomainException; -import org.oasisopen.sca.NoSuchServiceException; -import org.oasisopen.sca.client.SCAClientFactory; - -/** - */ -public class HelloworldServlet extends HttpServlet { - private static final long serialVersionUID = 1L; - - @Override - protected void service(HttpServletRequest request, HttpServletResponse response) throws IOException { - try { - - String component = request.getParameter("component"); - HelloworldService service = SCAClientFactory.newInstance(URI.create("default")).getService(HelloworldService.class, component); - - String name = request.getParameter("name"); - String greeting = service.sayHello(name); - - Writer out = response.getWriter(); - out.write("Apache Tuscany Helloworld Servlet Sample"); - out.write("

Apache Tuscany Helloworld Servlet Sample

"); - out.write("
Component " + component + " says: " + greeting); - out.write(""); - out.flush(); - out.close(); - - } catch (NoSuchDomainException e) { - e.printStackTrace(); - } catch (NoSuchServiceException e) { - e.printStackTrace(); - } - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/testing/helloworld-scaclient-servlet/src/main/webapp/META-INF/sca-contribution.xml b/sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/testing/helloworld-scaclient-servlet/src/main/webapp/META-INF/sca-contribution.xml deleted file mode 100644 index 7839933b3a..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/testing/helloworld-scaclient-servlet/src/main/webapp/META-INF/sca-contribution.xml +++ /dev/null @@ -1,28 +0,0 @@ - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/testing/helloworld-scaclient-servlet/src/main/webapp/WEB-INF/web.xml b/sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/testing/helloworld-scaclient-servlet/src/main/webapp/WEB-INF/web.xml deleted file mode 100644 index d424d4b71b..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/testing/helloworld-scaclient-servlet/src/main/webapp/WEB-INF/web.xml +++ /dev/null @@ -1,41 +0,0 @@ - - - - - helloworld-scaclient2-webapp - - - HelloworldServlet - testing.HelloworldServlet - - - - HelloworldServlet - /HelloworldServlet - - - - hello.html - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/testing/helloworld-scaclient-servlet/src/main/webapp/hello.html b/sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/testing/helloworld-scaclient-servlet/src/main/webapp/hello.html deleted file mode 100644 index 5398cb5274..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/testing/helloworld-scaclient-servlet/src/main/webapp/hello.html +++ /dev/null @@ -1,52 +0,0 @@ - - - - -helloworld-scaclient2-webapp - - - - -

helloworld-scaclient-servlet

- -
- - - - - - - - - - - -
Enter your name: - -
- -
-
- - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/testing/helloworld-service-contribution/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/testing/helloworld-service-contribution/pom.xml deleted file mode 100644 index f07e66242e..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/testing/helloworld-service-contribution/pom.xml +++ /dev/null @@ -1,45 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-distribution-tomcat-testing - 2.0-M5 - ../pom.xml - - - helloworld-service-contribution - Apache Tuscany SCA Tomcat Integration Testing Helloworld Service Contribution - - - - org.apache.tuscany.sca - tuscany-sca-api - 2.0-M5 - provided - - - - - - ${artifactId} - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/testing/helloworld-service-contribution/src/main/java/testing/HelloworldImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/testing/helloworld-service-contribution/src/main/java/testing/HelloworldImpl.java deleted file mode 100644 index 564b2e332f..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/testing/helloworld-service-contribution/src/main/java/testing/HelloworldImpl.java +++ /dev/null @@ -1,38 +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 testing; - -import org.oasisopen.sca.annotation.Init; -import org.oasisopen.sca.annotation.Scope; -import org.oasisopen.sca.annotation.Service; -import org.oasisopen.sca.annotation.EagerInit; - -@Service(HelloworldService.class) -@Scope("COMPOSITE") @EagerInit -public class HelloworldImpl implements HelloworldService { - - public String sayHello(String name) { - return "Hello " + name; - } - - @Init - public void init() { - System.out.println("HelloworldImpl eager init: " + sayHello("world")); - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/testing/helloworld-service-contribution/src/main/java/testing/HelloworldService.java b/sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/testing/helloworld-service-contribution/src/main/java/testing/HelloworldService.java deleted file mode 100644 index eec9d63da8..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/testing/helloworld-service-contribution/src/main/java/testing/HelloworldService.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 testing; - -import org.oasisopen.sca.annotation.Remotable; - -@Remotable -public interface HelloworldService { - - String sayHello(String name); - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/testing/helloworld-service-contribution/src/main/resources/META-INF/sca-contribution.xml b/sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/testing/helloworld-service-contribution/src/main/resources/META-INF/sca-contribution.xml deleted file mode 100644 index 4e0eca6068..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/testing/helloworld-service-contribution/src/main/resources/META-INF/sca-contribution.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/testing/helloworld-service-contribution/src/main/resources/helloworld.composite b/sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/testing/helloworld-service-contribution/src/main/resources/helloworld.composite deleted file mode 100644 index 82b2cc7ce7..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/testing/helloworld-service-contribution/src/main/resources/helloworld.composite +++ /dev/null @@ -1,28 +0,0 @@ - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/testing/legal-checks/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/testing/legal-checks/pom.xml deleted file mode 100644 index d4c8265656..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/testing/legal-checks/pom.xml +++ /dev/null @@ -1,36 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - itest-distribution - 2.0-M5 - ../pom.xml - - war-legal-checks - Apache Tuscany SCA WAR Distribution Legal Checks - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/testing/legal-checks/src/test/java/itest/JarsInLICENSETestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/testing/legal-checks/src/test/java/itest/JarsInLICENSETestCase.java deleted file mode 100644 index 05f16f603d..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/testing/legal-checks/src/test/java/itest/JarsInLICENSETestCase.java +++ /dev/null @@ -1,147 +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 itest; - -import java.io.BufferedReader; -import java.io.File; -import java.io.FileReader; -import java.io.IOException; -import java.util.ArrayList; -import java.util.List; -import java.util.StringTokenizer; - -import org.junit.Test; - -/** - * Checks that all jar files included in the distribution are mentioned in the LICENSE file - * and that all jars mentioned in the LICENSE are in the distribution. - */ -public class JarsInLICENSETestCase { - - @Test - public void testJars() throws Exception { - File distroRoot = getUnzipedDistroRoot(); - - File licenseFile = new File(distroRoot, "LICENSE"); - if (!licenseFile.exists()) { - throw new IllegalStateException("can't find LICENSE file at: " + licenseFile.getAbsoluteFile().toString()); - } - - File libDirectory = distroRoot; - if (!libDirectory.exists()) { - throw new IllegalStateException("can't find modules folder at: " + libDirectory.getAbsoluteFile().toString()); - } - - List jars = getJarsInDistro(libDirectory); - - List bad2 = getLICENSEJarsNotInDistro(licenseFile, jars); - if (bad2.size() > 0) { - System.err.println("Jars in LICENSE but not in Distribution: " + bad2); - } - - List bad1 = getJarsNotInLICENSE(jars, licenseFile); - if (bad1.size() > 0) { - System.err.println("Jars in distribution but not in LICENSE: " + bad1); - } - - if (bad1.size() > 0 || bad2.size() > 0) { - throw new IllegalStateException("LICENSE problems, check log"); - } - } - - private List getLICENSEJarsNotInDistro(File licenseFile, List jars) throws IOException { - List badJars = new ArrayList(); - BufferedReader reader = new BufferedReader(new FileReader(licenseFile)); - String line = null; - while ((line = reader.readLine()) != null) { - line = line.trim(); - if (line.contains(".jar")) { - StringTokenizer st = new StringTokenizer(line); - while (st.hasMoreTokens()) { - String s = st.nextToken(); - if (s.contains(".jar")) { - if (s.startsWith("(")) { - s = s.substring(1); - } - if (s.endsWith(",") || s.endsWith(":")) { - s = s.substring(0, s.length()-1); - } - if (s.endsWith(")")) { - s = s.substring(0, s.length()-1); - } - if (!jars.contains(s) && !s.startsWith("tuscany-")) { - badJars.add(s); - } - } - } - } - } - return badJars; - } - - private List getJarsNotInLICENSE(List jars, File licenseFile) throws IOException { - List badJars = new ArrayList(); - String licenseText = readLICENSE(licenseFile); - for (String jar : jars) { - if (!licenseText.contains(jar)) { - if (jar.startsWith("tuscany-")) { - // ignore tuscany jars as they're not mentioned in the LICENSE file - } else { - badJars.add(jar); - } - } - } - return badJars; - } - - private List getJarsInDistro(File directory) { - List jars = new ArrayList(); - for (String fn : directory.list()){ - if (fn.endsWith(".jar")) { - jars.add(fn); - } else { - File f = new File(directory, fn); - if (f.isDirectory()) { - jars.addAll(getJarsInDistro(f)); - } - } - } - return jars; - } - - private File getUnzipedDistroRoot() { - return new File("../../tomcat-war/target/tuscany.dir"); - } - - private static String readLICENSE(File licenseFile) throws java.io.IOException { - StringBuffer fileData = new StringBuffer(); - BufferedReader reader = new BufferedReader(new FileReader(licenseFile)); - char[] buf = new char[1024]; - int numRead = 0; - while ((numRead = reader.read(buf)) != -1) { - String readData = String.valueOf(buf, 0, numRead); - fileData.append(readData); - buf = new char[1024]; - } - reader.close(); - return fileData.toString(); - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/testing/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/testing/pom.xml deleted file mode 100644 index f57fbb514c..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/testing/pom.xml +++ /dev/null @@ -1,42 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-distribution-tomcat - ../pom.xml - 2.0-M5 - - org.apache.tuscany.sca - tuscany-distribution-tomcat-testing - pom - Apache Tuscany SCA Distribution Tomcat Testing - - - helloworld-service-contribution - helloworld-reference-contribution - helloworld-scaclient-jsp - helloworld-scaclient-servlet - helloworld-client-webapp - legal-checks - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/tomcat-hook/LICENSE b/sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/tomcat-hook/LICENSE deleted file mode 100644 index 6e529a25c4..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/tomcat-hook/LICENSE +++ /dev/null @@ -1,205 +0,0 @@ - - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright [yyyy] [name of copyright owner] - - Licensed 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. - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/tomcat-hook/META-INF/MANIFEST.MF b/sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/tomcat-hook/META-INF/MANIFEST.MF deleted file mode 100644 index 70e18a0c9a..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/tomcat-hook/META-INF/MANIFEST.MF +++ /dev/null @@ -1,24 +0,0 @@ -Manifest-Version: 1.0 -Export-Package: org.apache.tuscany.sca.tomcat;version="2.0.0" -Tool: Bnd-0.0.255 -Bundle-Name: Apache Tuscany SCA Tomcat Hook -Created-By: 1.6.0_07 (Sun Microsystems Inc.) -Bundle-Vendor: The Apache Software Foundation -Bundle-Version: 2.0.0 -Bnd-LastModified: 1222833658000 -Bundle-ManifestVersion: 2 -Bundle-License: http://www.apache.org/licenses/LICENSE-2.0.txt -Bundle-Description: Apache Tuscany SCA Webapp Host -Import-Package: javax.naming, - javax.servlet, - javax.servlet.http, - org.apache.tuscany.sca.core;version="2.0.0", - org.apache.tuscany.sca.host.http;version="2.0.0", - org.apache.tuscany.sca.host.webapp;version="2.0.0", - org.apache.tuscany.sca.node;version="2.0.0", - org.apache.tuscany.sca.node.configuration;version="2.0.0", - org.apache.tuscany.sca.node.impl;version="2.0.0", - org.oasisopen.sca;version="2.0.0" -Bundle-SymbolicName: org.apache.tuscany.sca.tomcat -Bundle-DocURL: http://www.apache.org/ -Bundle-RequiredExecutionEnvironment: J2SE-1.5,JavaSE-1.6 diff --git a/sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/tomcat-hook/NOTICE b/sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/tomcat-hook/NOTICE deleted file mode 100644 index 0d2bd8fb3e..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/tomcat-hook/NOTICE +++ /dev/null @@ -1,7 +0,0 @@ -${pom.name} -Copyright (c) 2005 - 2010 The Apache Software Foundation - -This product includes software developed by -The Apache Software Foundation (http://www.apache.org/). - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/tomcat-hook/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/tomcat-hook/pom.xml deleted file mode 100644 index cadcda78b9..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/tomcat-hook/pom.xml +++ /dev/null @@ -1,70 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-modules - 2.0-M5 - ../pom.xml - - - tuscany-tomcat-hook - Apache Tuscany SCA Tomcat Hook - - - - - org.apache.tomcat - catalina - 6.0.18 - - - org.apache.tomcat - servlet-api - - - provided - - - - org.apache.tomcat - coyote - 6.0.18 - provided - - - - javax.servlet - servlet-api - 2.5 - provided - - - - org.codehaus.swizzle - swizzle-stream - 1.0.2 - provided - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/tomcat-hook/src/main/java/org/apache/tuscany/sca/tomcat/TuscanyAnnotationsProcessor.java b/sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/tomcat-hook/src/main/java/org/apache/tuscany/sca/tomcat/TuscanyAnnotationsProcessor.java deleted file mode 100644 index 54947d6492..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/tomcat-hook/src/main/java/org/apache/tuscany/sca/tomcat/TuscanyAnnotationsProcessor.java +++ /dev/null @@ -1,85 +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 org.apache.tuscany.sca.tomcat; - -import java.lang.reflect.InvocationTargetException; -import java.lang.reflect.Method; - -import javax.naming.NamingException; -import javax.servlet.ServletContext; - -import org.apache.AnnotationProcessor; -import org.apache.catalina.util.DefaultAnnotationProcessor; - -public class TuscanyAnnotationsProcessor implements AnnotationProcessor { - - private TuscanyStandardContext tuscanyStandardContext; - private AnnotationProcessor tomcatAnnotationProcessor; - private Method tuscanyInjectMethod; - - public TuscanyAnnotationsProcessor(TuscanyStandardContext tuscanyStandardContext, javax.naming.Context context) { - this.tuscanyStandardContext = tuscanyStandardContext; - this.tomcatAnnotationProcessor = new DefaultAnnotationProcessor(context); - initInjectMethod(tuscanyStandardContext); - } - - private void initInjectMethod(TuscanyStandardContext tuscanyStandardContext) { - - // this needs to use reflection as the tuscany-hook module can't have any - // dependencies on the tuscany runtime modules as they're not - // in the server classpath - // TODO: is there a nicer way ? - - ClassLoader cl = tuscanyStandardContext.getParentClassLoader(); - try { - Class c = Class.forName("org.apache.tuscany.sca.implementation.web.runtime.utils.ContextHelper", true, cl); - if (c != null) { - this.tuscanyInjectMethod = c.getMethod("inject", new Class[]{Object.class, ServletContext.class}); - } - } catch (Exception e){ - // ignore - } - } - - public void postConstruct(Object instance) throws IllegalAccessException, InvocationTargetException { - tomcatAnnotationProcessor.postConstruct(instance); - } - - public void preDestroy(Object instance) throws IllegalAccessException, InvocationTargetException { - tomcatAnnotationProcessor.preDestroy(instance); - } - - public void processAnnotations(Object instance) throws IllegalAccessException, InvocationTargetException, NamingException { - if (tuscanyInjectMethod != null) { - ServletContext sc = tuscanyStandardContext.getServletContext(); - if (sc != null) { - Object rc = sc.getAttribute("org.apache.tuscany.sca.implementation.web.RuntimeComponent"); - if (rc != null) { - try { - tuscanyInjectMethod.invoke(null, instance, sc); - } catch (Exception e) { - throw new InvocationTargetException(e); - } - } - } - } - tomcatAnnotationProcessor.processAnnotations(instance); - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/tomcat-hook/src/main/java/org/apache/tuscany/sca/tomcat/TuscanyContextConfig.java b/sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/tomcat-hook/src/main/java/org/apache/tuscany/sca/tomcat/TuscanyContextConfig.java deleted file mode 100644 index 5e7905d246..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/tomcat-hook/src/main/java/org/apache/tuscany/sca/tomcat/TuscanyContextConfig.java +++ /dev/null @@ -1,183 +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 org.apache.tuscany.sca.tomcat; - -import java.io.File; -import java.io.IOException; -import java.net.URL; - -import org.apache.catalina.Host; -import org.apache.catalina.core.StandardContext; -import org.apache.catalina.core.StandardHost; -import org.apache.catalina.startup.ContextConfig; -import org.apache.catalina.startup.ExpandWar; - -public class TuscanyContextConfig extends ContextConfig{ - - /** - * Return the location of the default deployment descriptor - * - * Override the super class method to use the Tuscany specific - * default web.xml which has the Tuscany listener and filer config - */ - @Override - public String getDefaultWebXml() { - if( defaultWebXml == null ) { - defaultWebXml="conf/tuscany-web.xml"; - } - return (this.defaultWebXml); - } - - /** - * Adjust docBase. - * - * This is cutNpaste of the Tomcat method but changed on the lines marked with // TUSCANY: - * to override the default that only works for file names ending with .war - * - */ - @Override - protected void fixDocBase() - throws IOException { - - Host host = (Host) context.getParent(); - String appBase = host.getAppBase(); - - boolean unpackWARs = true; - if (host instanceof StandardHost) { - unpackWARs = ((StandardHost) host).isUnpackWARs() - && ((StandardContext) context).getUnpackWAR(); - } - - File canonicalAppBase = new File(appBase); - if (canonicalAppBase.isAbsolute()) { - canonicalAppBase = canonicalAppBase.getCanonicalFile(); - } else { - canonicalAppBase = - new File(System.getProperty("catalina.base"), appBase) - .getCanonicalFile(); - } - - String docBase = context.getDocBase(); - if (docBase == null) { - // Trying to guess the docBase according to the path - String path = context.getPath(); - if (path == null) { - return; - } - if (path.equals("")) { - docBase = "ROOT"; - } else { - if (path.startsWith("/")) { - docBase = path.substring(1); - } else { - docBase = path; - } - } - } - - File file = new File(docBase); - if (!file.isAbsolute()) { - docBase = (new File(canonicalAppBase, docBase)).getPath(); - } else { - docBase = file.getCanonicalPath(); - } - file = new File(docBase); - String origDocBase = docBase; - - String contextPath = context.getPath(); - if (contextPath.equals("")) { - contextPath = "ROOT"; - } else { - if (contextPath.lastIndexOf('/') > 0) { - contextPath = "/" + contextPath.substring(1).replace('/','#'); - } - } - // TUSCANY: update from .war to also support .jar and .zip SCA contributions - if ((docBase.toLowerCase().endsWith(".war") || docBase.toLowerCase().endsWith(".jar")||docBase.toLowerCase().endsWith(".zip")) && !file.isDirectory() && unpackWARs) { - URL war = new URL("jar:" + (new File(docBase)).toURI().toURL() + "!/"); - docBase = ExpandWar.expand(host, war, contextPath); - file = new File(docBase); - docBase = file.getCanonicalPath(); - if (context instanceof StandardContext) { - ((StandardContext) context).setOriginalDocBase(origDocBase); - } - } else { - File docDir = new File(docBase); - if (!docDir.exists()) { - // TUSCANY: update from .war to also support .jar and .zip SCA contributions - File warFile = new File(docBase + ".war"); - if (warFile.exists()) { - if (unpackWARs) { - URL war = - new URL("jar:" + warFile.toURI().toURL() + "!/"); - docBase = ExpandWar.expand(host, war, contextPath); - file = new File(docBase); - docBase = file.getCanonicalPath(); - } else { - docBase = warFile.getCanonicalPath(); - } - } else { - warFile = new File(docBase + ".jar"); - if (warFile.exists()) { - if (unpackWARs) { - URL war = - new URL("jar:" + warFile.toURI().toURL() + "!/"); - docBase = ExpandWar.expand(host, war, contextPath); - file = new File(docBase); - docBase = file.getCanonicalPath(); - } else { - docBase = warFile.getCanonicalPath(); - } - } else { - warFile = new File(docBase + ".zip"); - if (warFile.exists()) { - if (unpackWARs) { - URL war = - new URL("jar:" + warFile.toURI().toURL() + "!/"); - docBase = ExpandWar.expand(host, war, contextPath); - file = new File(docBase); - docBase = file.getCanonicalPath(); - } else { - docBase = warFile.getCanonicalPath(); - } - } - } - } - if (context instanceof StandardContext) { - ((StandardContext) context).setOriginalDocBase(origDocBase); - } - } - } - - if (docBase.startsWith(canonicalAppBase.getPath())) { - docBase = docBase.substring(canonicalAppBase.getPath().length()); - docBase = docBase.replace(File.separatorChar, '/'); - if (docBase.startsWith("/")) { - docBase = docBase.substring(1); - } - } else { - docBase = docBase.replace(File.separatorChar, '/'); - } - - context.setDocBase(docBase); - - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/tomcat-hook/src/main/java/org/apache/tuscany/sca/tomcat/TuscanyHostConfig.java b/sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/tomcat-hook/src/main/java/org/apache/tuscany/sca/tomcat/TuscanyHostConfig.java deleted file mode 100644 index e92d7a0bf6..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/tomcat-hook/src/main/java/org/apache/tuscany/sca/tomcat/TuscanyHostConfig.java +++ /dev/null @@ -1,167 +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 org.apache.tuscany.sca.tomcat; - -import java.io.File; -import java.util.zip.ZipEntry; -import java.util.zip.ZipFile; - -import org.apache.catalina.Context; -import org.apache.catalina.Lifecycle; -import org.apache.catalina.LifecycleListener; -import org.apache.catalina.startup.HostConfig; - -/** - * A Tuscany customized HostConfig that adds support for SCA contributions - * to be deployed along with the usual .war files. - */ -public class TuscanyHostConfig extends HostConfig { - - protected File scaBase = null; - - @Override - protected void deployApps() { - - File appBase = appBase(); - File configBase = configBase(); - // Deploy XML descriptors from configBase - deployDescriptors(configBase, configBase.list()); - // Deploy WARs, and loop if additional descriptors are found - deployWARs(appBase, appBase.list()); - // TUSCANY: Deploy any SCA contibutions - deploySCAContributions(appBase, appBase.list()); - // Deploy expanded folders - deployDirectories(appBase, appBase.list()); - } - - protected void deploySCAContributions(File appBase, String[] files) { - if (files == null) - return; - - for (int i = 0; i < files.length; i++) { - - File scafile = new File(appBase, files[i]); - - if (scafile.isFile() && isSCAContribution(scafile)) { - - // Calculate the context path and make sure it is unique - String contextPath = "/" + files[i].replace('#','/'); - int period = contextPath.lastIndexOf("."); - if (period >= 0) - contextPath = contextPath.substring(0, period); - - if (isServiced(contextPath)) - continue; - - String file = files[i]; - - deploySCAContribution(contextPath, scafile, file); - - } - - } - - } - - protected String tuscanyContextClass = "org.apache.tuscany.sca.tomcat.TuscanyContextConfig"; - - protected void deploySCAContribution(String contextPath, File dir, String file) { - if (deploymentExists(contextPath)) - return; - - DeployedApplication deployedApp = new DeployedApplication(contextPath); - - // Deploy the application in this WAR file - if(log.isInfoEnabled()) - log.info("Deploying SCA contibution: " + file); - - // Populate redeploy resources with the WAR file - deployedApp.redeployResources.put(dir.getAbsolutePath(), new Long(dir.lastModified())); - - try { - Context context = (Context) Class.forName(contextClass).newInstance(); - if (context instanceof Lifecycle) { - - // Tuscany: change to use the Tuscany ContextConfig class - Class clazz = Class.forName(tuscanyContextClass); - - LifecycleListener listener = - (LifecycleListener) clazz.newInstance(); - ((Lifecycle) context).addLifecycleListener(listener); - } - context.setPath(contextPath); - context.setDocBase(file); - - host.addChild(context); - // If we're unpacking WARs, the docBase will be mutated after - // starting the context - if (unpackWARs && (context.getDocBase() != null)) { - String name = null; - String path = context.getPath(); - if (path.equals("")) { - name = "ROOT"; - } else { - if (path.startsWith("/")) { - name = path.substring(1); - } else { - name = path; - } - } - name = name.replace('/', '#'); - File docBase = new File(name); - if (!docBase.isAbsolute()) { - docBase = new File(appBase(), name); - } - deployedApp.redeployResources.put(docBase.getAbsolutePath(), - new Long(docBase.lastModified())); - addWatchedResources(deployedApp, docBase.getAbsolutePath(), context); - } else { - addWatchedResources(deployedApp, null, context); - } - } catch (Throwable t) { - log.error(sm.getString("hostConfig.deployJar.error", file), t); - } - - deployed.put(contextPath, deployedApp); - } - - protected boolean isSCAContribution(File file) { - ZipFile zip = null; - ZipEntry entry = null; - try { - try { - zip = new ZipFile(file); - entry = zip.getEntry("META-INF/sca-contribution.xml"); - } catch (Exception e) { - } - - return (entry != null); - - } finally { - if (zip != null) { - try { - zip.close(); - } catch (Throwable t) { - } - } - } - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/tomcat-hook/src/main/java/org/apache/tuscany/sca/tomcat/TuscanyLifecycleListener.java b/sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/tomcat-hook/src/main/java/org/apache/tuscany/sca/tomcat/TuscanyLifecycleListener.java deleted file mode 100644 index a9eee9687e..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/tomcat-hook/src/main/java/org/apache/tuscany/sca/tomcat/TuscanyLifecycleListener.java +++ /dev/null @@ -1,161 +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 org.apache.tuscany.sca.tomcat; - -import java.io.File; -import java.util.logging.Logger; - -import org.apache.catalina.Container; -import org.apache.catalina.LifecycleEvent; -import org.apache.catalina.LifecycleListener; -import org.apache.catalina.ServerFactory; -import org.apache.catalina.Service; -import org.apache.catalina.connector.Connector; -import org.apache.catalina.core.StandardEngine; -import org.apache.catalina.core.StandardHost; -import org.apache.catalina.core.StandardServer; -import org.apache.catalina.core.StandardService; -import org.apache.catalina.startup.HostConfig; - -/** - * A Tomcat LifecycleListener that initilizes the Tuscany Tomcat integration. - * It sets a System property with the location of the Tuscany runtime .war - * and configures each Tomcat Connector to use the TuscanyStandardContext. - * - * To configure Tomcat to use this add the following to the Tomcat conf/server.xml - * - */ -public class TuscanyLifecycleListener implements LifecycleListener { - private static final Logger log = Logger.getLogger(TuscanyLifecycleListener.class.getName()); - - public static final String TUSCANY_WAR_PROP = "org.apache.tuscany.sca.tomcat.war"; - - private static boolean running; - - public static boolean isRunning() { - return running; - } - - static final String TUSCANY_SHARED_PROP = "org.apache.tuscany.sca.tomcat.shared"; - - private static String domainURI = "tuscany:default"; - - public TuscanyLifecycleListener() { - running = true; - log.info("Apache Tuscany initilizing"); - } - - public void lifecycleEvent(LifecycleEvent event) { - if ("init".equals(event.getType()) && (event.getSource() instanceof StandardServer)) { - File webappDir = findTuscanyWar(); - if (webappDir == null) { - log.severe("Tuscany disabled as Tuscany webapp not found"); - } else { - System.setProperty(TUSCANY_WAR_PROP, webappDir.getAbsolutePath()); - log.info("Using Tuscany webapp: " + webappDir.getAbsolutePath()); - StandardServer server = (StandardServer)event.getSource(); - StandardService catalina = (StandardService)server.findService("Catalina"); - for (Connector connector : catalina.findConnectors()) { - for (Container container : connector.getContainer().findChildren()) { - if (container instanceof StandardHost) { - for (LifecycleListener listener : ((StandardHost)container).findLifecycleListeners()) { - if (listener instanceof HostConfig) { - ((HostConfig)listener).setContextClass("org.apache.tuscany.sca.tomcat.TuscanyStandardContext"); - log.info("Tuscany enabled on connector: " + container.getName() + ":" + connector.getPort()); - } - } - } - } - } - } - } - } - - private static File findTuscanyWar() { - - // in Tomcat 5.5 the Tuscany war is in the server/webapps director - String catalinaBase = System.getProperty("catalina.base"); - File serverWebapps = new File(catalinaBase, "server/webapps"); - File tuscanyWar = findTuscanyWar(serverWebapps); - if (tuscanyWar != null) { - return tuscanyWar; - } - - // in Tomcat 6 the Tuscany war is normally in webapps, but we just scan all hosts directories - for (Service service : ServerFactory.getServer().findServices()) { - Container container = service.getContainer(); - if (container instanceof StandardEngine) { - StandardEngine engine = (StandardEngine)container; - for (Container child : engine.findChildren()) { - if (child instanceof StandardHost) { - StandardHost host = (StandardHost)child; - String appBase = host.getAppBase(); - - // determine the host dir (normally webapps) - File hostDir = new File(appBase); - if (!hostDir.isAbsolute()) { - hostDir = new File(catalinaBase, appBase); - } - - tuscanyWar = findTuscanyWar(hostDir); - if (tuscanyWar != null) { - return tuscanyWar; - } - } - } - } - } - return null; - } - - private static File findTuscanyWar(File hostDir) { - if (!hostDir.isDirectory()) { - return null; - } - - // iterate over the contexts - for (File contextDir : hostDir.listFiles()) { - // does this war have a web-inf lib dir - File hookLib = new File(contextDir, "tomcat-lib"); - if (!hookLib.isDirectory()) { - continue; - } - // iterate over the libs looking for the tuscany-tomcat-*.jar - for (File file : hookLib.listFiles()) { - if (file.getName().startsWith("tuscany-tomcat-hook-") && file.getName().endsWith(".jar")) { - // this should be in the Tuscany war... - // make sure it has a runtime directory - if (new File(contextDir, "tuscany-lib").isDirectory()) { - return contextDir; - } - } - } - } - return null; - } - - public void setDomainURI(String domainURI) { - TuscanyLifecycleListener.domainURI = domainURI; - } - - public static String getDomainURI() { - return domainURI; - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/tomcat-hook/src/main/java/org/apache/tuscany/sca/tomcat/TuscanyStandardContext.java b/sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/tomcat-hook/src/main/java/org/apache/tuscany/sca/tomcat/TuscanyStandardContext.java deleted file mode 100644 index ca9c81f1c3..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/tomcat-hook/src/main/java/org/apache/tuscany/sca/tomcat/TuscanyStandardContext.java +++ /dev/null @@ -1,196 +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 org.apache.tuscany.sca.tomcat; - -import java.io.File; -import java.lang.reflect.Method; -import java.net.URI; -import java.net.URL; -import java.net.URLClassLoader; -import java.util.logging.Logger; - -import javax.naming.NameClassPair; -import javax.naming.NamingEnumeration; -import javax.naming.NamingException; - -import org.apache.catalina.LifecycleException; -import org.apache.catalina.Loader; -import org.apache.catalina.core.StandardContext; - -/** - * A Tuscany StandardContext to initilize SCA applications. - * There is a StandardContext instance for each webapp and its - * called to handle all start/stop/etc requests. This intercepts - * the start and inserts any required Tuscany configuration. - */ -public class TuscanyStandardContext extends StandardContext { - private static final long serialVersionUID = 1L; - private static final Logger log = Logger.getLogger(TuscanyStandardContext.class.getName()); - - private boolean isSCAApp; - - // TODO: this gives an instance per webapp, work out how to have only one per server - // ?? is that comment still true? - private static URLClassLoader tuscanyClassLoader; - private static Object node; - private static Class nodeClass; - private static Method nodeStopMethod; - - public TuscanyStandardContext() { - } - - /** - * Overrides the getLoader method in the Tomcat StandardContext as its a convenient - * point to insert the Tuscany initilization. This gets called the first time during - * StandardContext.start after the webapp resources have been created so this can - * use getResources() to look for the SCA web.composite or sca-contribution.xml files, - * but its still early enough in start to insert the required Tuscany config. - */ - @Override - public Loader getLoader() { - if (loader != null) { - return loader; - } - - ClassLoader parent = getParentClassLoader(); - if (isSCAApp = isSCAApplication()) { - if (tuscanyClassLoader == null) { - initTuscany(); - } - setParentClassLoader(getTuscanyClassloader(parent)); - setDefaultWebXml("conf/tuscany-web.xml"); - } - - return super.getLoader(); - } - - @Override - public boolean listenerStart() { - if (isSCAApp) { - enableTuscany(); - } - return super.listenerStart(); - } - - private void enableTuscany() { - - if (isUseNaming() && getNamingContextListener() != null) { - setAnnotationProcessor(new TuscanyAnnotationsProcessor(this, getNamingContextListener().getEnvContext())); - } else { - setAnnotationProcessor(new TuscanyAnnotationsProcessor(this, null)); - } - - log.info("Tuscany SCA is enabled for: " + this.getName()); - } - - private boolean isSCAApplication() { - Object o = null; - try { - o = getResources().lookup("WEB-INF/web.composite"); - } catch (NamingException e) { - } - if (o == null) { - try { - o = getResources().lookup("META-INF/sca-contribution.xml"); - } catch (NamingException e) { - } - } - if (o == null) { - return false; - } - - // Try to see if the Tuscany jars are packaged in the webapp - NamingEnumeration enumeration; - try { - enumeration = getResources().list("WEB-INF/lib"); - while (enumeration.hasMoreElements()) { - String jar = enumeration.nextElement().getName(); - if (jar.startsWith("tuscany-")) { - // Do not alter is - log.info("Tuscany SCA ignoring webapp with embedded Tuscany runtime: " + this.getName()); - return false; - } - } - } catch (NamingException e) { - } - return true; - } - - private URLClassLoader getTuscanyClassloader(ClassLoader parent) { - return tuscanyClassLoader; - } - - private void initTuscany() { - initTuscanyClassloader(getParentClassLoader()); - initDomain(); - } - - private void initTuscanyClassloader(ClassLoader parent) { - if (tuscanyClassLoader == null) { - File tuscanyWar = new File(System.getProperty(TuscanyLifecycleListener.TUSCANY_WAR_PROP)); - File[] runtimeJars = new File(tuscanyWar, "tuscany-lib").listFiles(); - try { - URL[] jarURLs = new URL[runtimeJars.length]; - for (int i = 0; i < jarURLs.length; i++) { - jarURLs[i] = runtimeJars[i].toURI().toURL(); - } - tuscanyClassLoader = new URLClassLoader(jarURLs, parent); - - } catch (Exception e) { - throw new RuntimeException(e); - } - } - } - - private void initDomain() { - ClassLoader oldCL = Thread.currentThread().getContextClassLoader(); - try { - Thread.currentThread().setContextClassLoader(tuscanyClassLoader); - Class nodeFactoryClass = Class.forName("org.apache.tuscany.sca.node.NodeFactory", true, tuscanyClassLoader); - Method getInstanceMethod = nodeFactoryClass.getMethod("getInstance", new Class[0]); - Object instance = getInstanceMethod.invoke(null); - Method createNodeMethod = nodeFactoryClass.getMethod("createNode", new Class[]{URI.class, new String[0].getClass()}); - URI domainURI = URI.create(TuscanyLifecycleListener.getDomainURI()); - this.node = createNodeMethod.invoke(instance, new Object[]{domainURI, new String[0]}); - this.nodeClass = Class.forName("org.apache.tuscany.sca.node.Node", true, tuscanyClassLoader); - Method nodeStartMethod = nodeClass.getMethod("start", new Class[0]); - this.nodeStopMethod = nodeClass.getMethod("stop", new Class[0]); - nodeStartMethod.invoke(node); - } catch (Exception e) { - throw new RuntimeException(e); - } finally { - Thread.currentThread().setContextClassLoader(oldCL); - } - } - - @Override - public synchronized void stop() throws LifecycleException { - super.stop(); - - if (node != null && nodeStopMethod != null) { - try { - nodeStopMethod.invoke(node); - node = null; - } catch (Exception e) { - throw new RuntimeException(e); - } - } - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/tomcat-servlet/META-INF/MANIFEST.MF b/sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/tomcat-servlet/META-INF/MANIFEST.MF deleted file mode 100644 index 0b0e3e7d0d..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/tomcat-servlet/META-INF/MANIFEST.MF +++ /dev/null @@ -1,11 +0,0 @@ -Manifest-Version: 1.0 -Bundle-Name: Apache Tuscany SCA Tomcat Servlet -Created-By: 1.6.0_07 (Sun Microsystems Inc.) -Bundle-Vendor: The Apache Software Foundation -Bundle-Version: 2.0.0 -Bnd-LastModified: 1222833658000 -Bundle-ManifestVersion: 2 -Bundle-License: http://www.apache.org/licenses/LICENSE-2.0.txt -Bundle-Description: Apache Tuscany SCA Tomcat Servlet -Bundle-SymbolicName: org.apache.tuscany.sca.tomcat.servlet -Import-Package: org.apache.tuscany.sca.tomcat;version="2.0.0" diff --git a/sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/tomcat-servlet/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/tomcat-servlet/pom.xml deleted file mode 100644 index b6176e1cd3..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/tomcat-servlet/pom.xml +++ /dev/null @@ -1,63 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-modules - 2.0-M5 - ../pom.xml - - - tuscany-tomcat-servlet - Apache Tuscany SCA Tomcat Integration Servlet - - - - - org.apache.tuscany.sca - tuscany-tomcat-hook - 2.0-M5 - provided - - - - org.apache.tuscany.sca - tuscany-node-api - 2.0-M5 - provided - - - - org.codehaus.swizzle - swizzle-stream - 1.0.2 - - - - javax.servlet - servlet-api - 2.5 - provided - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/tomcat-servlet/src/main/java/org/apache/tuscany/sca/war/Installer.java b/sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/tomcat-servlet/src/main/java/org/apache/tuscany/sca/war/Installer.java deleted file mode 100644 index 59fecbf8f7..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/tomcat-servlet/src/main/java/org/apache/tuscany/sca/war/Installer.java +++ /dev/null @@ -1,374 +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 org.apache.tuscany.sca.war; - -import java.io.ByteArrayInputStream; -import java.io.ByteArrayOutputStream; -import java.io.Closeable; -import java.io.File; -import java.io.FileInputStream; -import java.io.FileOutputStream; -import java.io.IOException; -import java.io.InputStream; -import java.io.OutputStream; -import java.io.PrintWriter; - -import org.apache.tuscany.sca.tomcat.TuscanyLifecycleListener; -import org.codehaus.swizzle.stream.DelimitedTokenReplacementInputStream; -import org.codehaus.swizzle.stream.StringTokenHandler; - -public class Installer { - - private static boolean restartRequired; - private static boolean tuscanyHookRunning; - static { - try { - tuscanyHookRunning = TuscanyLifecycleListener.isRunning(); - } catch (Throwable e) { - tuscanyHookRunning = false; - } - } - - public static boolean isTuscanyHookRunning() { - return tuscanyHookRunning; - } - - public static boolean isRestartRequired() { - return restartRequired; - } - - private File tuscanyWAR; - private File catalinaBase; - private String status = ""; - - public Installer(File tuscanyWAR, File catalinaBase) { - this.tuscanyWAR = tuscanyWAR; - this.catalinaBase = catalinaBase; - } - - public static boolean isInstalled() { - return false; - } - - public String getStatus() { - return status; - } - - public boolean install() { - try { - - doInstall(); - status = "Install successful, Tomcat restart required."; - restartRequired = true; - return true; - - } catch (Throwable e) { - status = "Exception during install\n"; - ByteArrayOutputStream os = new ByteArrayOutputStream(); - PrintWriter pw = new PrintWriter(os); - e.printStackTrace(pw); - pw.close(); - status += new String(os.toByteArray()); - return false; - } - } - - public boolean uninstall() { - try { - - doUnintsall(); - status = "Tuscany removed from server.xml, please restart Tomcat and manually remove Tuscany jars from Tomcat lib"; - restartRequired = true; - return true; - - } catch (Throwable e) { - status = "Exception during install"; - ByteArrayOutputStream os = new ByteArrayOutputStream(); - PrintWriter pw = new PrintWriter(os); - e.printStackTrace(pw); - status += "/n" + new String(os.toByteArray()); - return false; - } - } - - private void doUnintsall() { - File serverXml = new File(catalinaBase, "/conf/server.xml"); - if (!(serverXml.exists())) { - throw new IllegalStateException("conf/server.xml not found: " + serverXml.getAbsolutePath()); - } - removeServerXml(serverXml); - removeHostConfigXml(serverXml); - removeContextXml(); - } - - private boolean doInstall() { - // First verify all the file locations are as expected - if (!tuscanyWAR.exists()) { - throw new IllegalStateException("Tuscany war missing: " + tuscanyWAR.getAbsolutePath()); - } - if (!catalinaBase.exists()) { - throw new IllegalStateException("Catalina base does not exist: " + catalinaBase.getAbsolutePath()); - } - File serverLib = new File(catalinaBase, "/lib"); - if (!(serverLib.exists())) { - // try Tomcat 5 server/lib - if (new File(catalinaBase, "/server").exists()) { - serverLib = new File(new File(catalinaBase, "/server"), "/lib"); - } - } - if (!(serverLib.exists())) { - throw new IllegalStateException("Tomcat lib not found: " + serverLib.getAbsolutePath()); - } - File serverXml = new File(catalinaBase, "/conf/server.xml"); - if (!(serverXml.exists())) { - throw new IllegalStateException("conf/server.xml not found: " + serverXml.getAbsolutePath()); - } - - File tuscanyTomcatJar = findTuscanyTomcatJar(tuscanyWAR); - if (tuscanyTomcatJar == null || !tuscanyTomcatJar.exists()) { - throw new IllegalStateException("Can't find tuscany-tomcat-*.jar in: " + tuscanyWAR.getAbsolutePath()); - } - - // Copy tuscany-tomcat jar from the tuscany webapp web-inf/lib to Tomcat server/lib - copyFile(tuscanyTomcatJar, new File(serverLib, tuscanyTomcatJar.getName())); - - // Add Tuscany LifecycleListener to Tomcat server.xml - updateServerXml(serverXml); - - // Add Tuscany HostConfig to Hosts definitions in server.xml - updateHostConfigXml(serverXml); - - // Add Tuscany specific default web.xml and context.xml definitions - addTuscanyWebXml(); - addTuscanyContextXml(); - - return true; - } - - private static final String tuscanyWebXML = - "\r\n\r\n" + " \r\n" + - " \r\n" + - " org.apache.tuscany.sca.host.webapp.TuscanyContextListener\r\n" + - " \r\n" + - "\r\n" + - " \r\n" + - " tuscany\r\n" + - " org.apache.tuscany.sca.host.webapp.TuscanyServletFilter\r\n" + - " \r\n" + - "\r\n" + - " \r\n" + - " tuscany\r\n" + - " /*\r\n" + - " "; - - private void addTuscanyWebXml() { - File tuscanyWebXmlFile = new File(catalinaBase, "/conf/tuscany-web.xml"); - if (!(tuscanyWebXmlFile.exists())) { - File webXmlFile = new File(catalinaBase, "/conf/web.xml"); - if (!(webXmlFile.exists())) { - throw new IllegalStateException("conf/web.xml not found: " + webXmlFile.getAbsolutePath()); - } - String webXML = readAll(webXmlFile); - String newWebXml = replace(webXML, "", ">" + tuscanyWebXML); - writeAll(tuscanyWebXmlFile, newWebXml); - } - } - - private static final String tuscanyContextXML = - "\r\n\r\n \r\n" + - " "; - - private void addTuscanyContextXml() { - File contextXmlFile = new File(catalinaBase, "/conf/context.xml"); - if ((contextXmlFile.exists())) { - String contextXML = readAll(contextXmlFile); - String newcontextXml = replace(contextXML, "", "" + tuscanyContextXML, "<", "<"); - backup(contextXmlFile); - writeAll(contextXmlFile, newcontextXml); - } - } - private void removeContextXml() { - File contextXmlFile = new File(catalinaBase, "/conf/context.xml"); - if ((contextXmlFile.exists())) { - String contextXML = readAll(contextXmlFile); - String oldContextXml = replace(contextXML, "" + tuscanyContextXML, "", "<", "<"); - writeAll(contextXmlFile, oldContextXml); - } - } - - private File findTuscanyTomcatJar(File tuscanyWAR) { - File lib = new File(tuscanyWAR, "/tomcat-lib"); - for (File f : lib.listFiles()) { - if (f.getName().startsWith("tuscany-tomcat-hook-") && f.getName().endsWith(".jar")) { - return f; - } - } - return null; - } - - private static final String tuscanyListener = - "\r\n" + " \r\n" - + " "; - - private void updateServerXml(File serverXmlFile) { - String serverXML = readAll(serverXmlFile); - if (!serverXML.contains(tuscanyListener)) { - String newServerXml = replace(serverXML, "", ">" + tuscanyListener); - backup(serverXmlFile); - writeAll(serverXmlFile, newServerXml); - } - } - - private void removeServerXml(File serverXmlFile) { - String serverXML = readAll(serverXmlFile); - if (serverXML.contains(tuscanyListener)) { - String newServerXml = replace(serverXML, "" + tuscanyListener, ">"); - writeAll(serverXmlFile, newServerXml); - } - } - - static final String tuscanyHostConfig = " hostConfigClass=\"org.apache.tuscany.sca.tomcat.TuscanyHostConfig\" >"; - - private void updateHostConfigXml(File serverXmlFile) { - String serverXML = readAll(serverXmlFile); - String newServerXml = replace(serverXML, "", tuscanyHostConfig); - backup(serverXmlFile); - writeAll(serverXmlFile, newServerXml); - } - - private void removeHostConfigXml(File serverXmlFile) { - String serverXML = readAll(serverXmlFile); - if (serverXML.contains(tuscanyHostConfig)) { - String newServerXml = replace(serverXML, ""); - writeAll(serverXmlFile, newServerXml); - } - } - - private String replace(String inputText, String begin, String newBegin, String end, String newEnd) { - BeginEndTokenHandler tokenHandler = new BeginEndTokenHandler(newBegin, newEnd); - - ByteArrayInputStream in = new ByteArrayInputStream(inputText.getBytes()); - - InputStream replacementStream = new DelimitedTokenReplacementInputStream(in, begin, end, tokenHandler, true); - String newServerXml = readAll(replacementStream); - close(replacementStream); - return newServerXml; - } - - private boolean backup(File source) { - File backupFile = new File(source.getParent(), source.getName() + ".b4Tuscany"); - if (!backupFile.exists()) { - copyFile(source, backupFile); - } - return true; - } - - private String readAll(File file) { - FileInputStream in = null; - try { - in = new FileInputStream(file); - String text = readAll(in); - return text; - } catch (Exception e) { - return null; - } finally { - close(in); - } - } - - private String readAll(InputStream in) { - try { - // SwizzleStream block read methods are broken so read byte at a time - StringBuilder sb = new StringBuilder(); - int i = in.read(); - while (i != -1) { - sb.append((char)i); - i = in.read(); - } - return sb.toString(); - } catch (IOException e) { - throw new IllegalStateException(e); - } - } - - private void copyFile(File source, File destination) { - InputStream in = null; - OutputStream out = null; - try { - in = new FileInputStream(source); - out = new FileOutputStream(destination); - writeAll(in, out); - } catch (IOException e) { - throw new IllegalStateException(e); - } finally { - close(in); - close(out); - } - } - - private boolean writeAll(File file, String text) { - FileOutputStream fileOutputStream = null; - try { - fileOutputStream = new FileOutputStream(file); - writeAll(new ByteArrayInputStream(text.getBytes()), fileOutputStream); - return true; - } catch (Exception e) { - return false; - } finally { - close(fileOutputStream); - } - } - - private void writeAll(InputStream in, OutputStream out) throws IOException { - byte[] buffer = new byte[4096]; - int count; - while ((count = in.read(buffer)) > 0) { - out.write(buffer, 0, count); - } - out.flush(); - } - - private void close(Closeable thing) { - if (thing != null) { - try { - thing.close(); - } catch (Exception ignored) { - } - } - } - - private class BeginEndTokenHandler extends StringTokenHandler { - private final String begin; - private final String end; - - public BeginEndTokenHandler(String begin, String end) { - this.begin = begin; - this.end = end; - } - - public String handleToken(String token) throws IOException { - String result = begin + token + end; - return result; - } - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/tomcat-servlet/src/main/java/org/apache/tuscany/sca/war/InstallerServlet.java b/sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/tomcat-servlet/src/main/java/org/apache/tuscany/sca/war/InstallerServlet.java deleted file mode 100644 index efcc2711f3..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/tomcat-servlet/src/main/java/org/apache/tuscany/sca/war/InstallerServlet.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 org.apache.tuscany.sca.war; - -import java.io.File; -import java.io.IOException; - -import javax.servlet.RequestDispatcher; -import javax.servlet.ServletConfig; -import javax.servlet.ServletException; -import javax.servlet.http.HttpServlet; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; - -public class InstallerServlet extends HttpServlet { - private static final long serialVersionUID = 1L; - - private transient ServletConfig servletConfig; - private transient Installer installer; - - public void init(ServletConfig servletConfig) throws ServletException { - this.servletConfig = servletConfig; - String path = servletConfig.getServletContext().getRealPath("/"); - File tuscanyWarDir = null; - if (path != null) { - tuscanyWarDir = new File(path); - } - File tomcatBase = new File(System.getProperty("catalina.base")); - installer = new Installer(tuscanyWarDir, tomcatBase); - } - - protected void doGet(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse) throws ServletException, IOException { - doIt(httpServletRequest, httpServletResponse); - } - - protected void doPost(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse) throws ServletException, IOException { - doIt(httpServletRequest, httpServletResponse); - } - - protected void doIt(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException { - - if ("Install".equalsIgnoreCase(req.getParameter("action"))) { - installer.install(); - } else if ("Uninstall".equalsIgnoreCase(req.getParameter("action"))) { - installer.uninstall(); - } - - req.setAttribute("installer", installer); - RequestDispatcher rd = servletConfig.getServletContext().getRequestDispatcher("/installer.jsp"); - rd.forward(req,res); - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/tomcat-war/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/tomcat-war/pom.xml deleted file mode 100644 index 6b31f6316e..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/tomcat-war/pom.xml +++ /dev/null @@ -1,105 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-distribution - 2.0-M5 - ../pom.xml - - - tuscany-war - Apache Tuscany SCA Tomcat Deep Integration WAR - pom - - - - org.codehaus.swizzle - swizzle-stream - 1.0.2 - - - org.apache.tuscany.sca - tuscany-tomcat-servlet - 2.0-M5 - - - org.apache.tuscany.sca - tuscany-tomcat-hook - 2.0-M5 - - - org.apache.tuscany.sca.shades - tuscany-base - 2.0-M5 - - - - - - - tuscany - - - org.apache.maven.plugins - maven-assembly-plugin - 2.2-beta-2 - - - war - package - - attached - - - - - false - - src/main/assembly/war.xml - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/tomcat-war/src/main/assembly/war.xml b/sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/tomcat-war/src/main/assembly/war.xml deleted file mode 100644 index 5c6dff5915..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/tomcat-war/src/main/assembly/war.xml +++ /dev/null @@ -1,98 +0,0 @@ - - - - war - - war - dir - - false - - - ${basedir} - - README.txt - - - - ${basedir}/target/classes - / - - README.txt - NOTICE.txt - LICENSE.txt - - - - ${basedir}/src/main/webapp - / - - - ${basedir}/target/classes - / - - org/** - META-INF/LICENSE - META-INF/NOTICE - - - - ${basedir}/target/classes - WEB-INF/classes - - - ${basedir}/target - lib - - tuscany-host*.jar - - - - - - tuscany-lib - runtime - - org.apache.tomcat:catalina - org.apache.tomcat:annotations-api - org.apache.tomcat:juli - org.apache.tomcat:servlet-api - org.apache.tuscany.sca:tuscany-tomcat-hook - org.apache.tuscany.sca:tuscany-tomcat-servlet - org.codehaus.swizzle:swizzle-stream - - - - tomcat-lib - runtime - - org.apache.tuscany.sca:tuscany-tomcat-hook - - - - WEB-INF/lib - runtime - - org.apache.tuscany.sca:tuscany-tomcat-servlet - org.codehaus.swizzle:swizzle-stream - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/tomcat-war/src/main/webapp/LICENSE b/sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/tomcat-war/src/main/webapp/LICENSE deleted file mode 100644 index f4f88da9ac..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/tomcat-war/src/main/webapp/LICENSE +++ /dev/null @@ -1,442 +0,0 @@ - - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright [yyyy] [name of copyright owner] - - Licensed 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. - - -=============================================================================== - -APACHE TUSCANY SUBCOMPONENTS: - -The Apache Tuscany binary distribution includes a number of subcomponents -with separate copyright notices and license terms. Your use of the -code for the these subcomponents is subject to the terms and -conditions of the following licenses. - -=============================================================================== - -The following components come under Apache Software License 2.0 - - cglib-2.2.jar - hazelcast-1.8.3.jar - hazelcast-client-1.8.3.jar - swizzle-stream-1.0.2.jar - XmlSchema-1.4.3.jar - -=============================================================================== - -WSDL4j (wsdl4j-1.6.2.jar): - -Common Public License - v 1.0 - -THE ACCOMPANYING PROGRAM IS PROVIDED UNDER THE TERMS OF THIS COMMON PUBLIC LICENSE ("AGREEMENT"). ANY USE, REPRODUCTION OR DISTRIBUTION OF THE PROGRAM CONSTITUTES RECIPIENT'S ACCEPTANCE OF THIS AGREEMENT. - -1. DEFINITIONS - -"Contribution" means: - - a) in the case of the initial Contributor, the initial code and documentation distributed under this Agreement, and - b) in the case of each subsequent Contributor: - - i) changes to the Program, and - - ii) additions to the Program; - - where such changes and/or additions to the Program originate from and are distributed by that particular Contributor. A Contribution 'originates' from a Contributor if it was added to the Program by such Contributor itself or anyone acting on such Contributor's behalf. Contributions do not include additions to the Program which: (i) are separate modules of software distributed in conjunction with the Program under their own license agreement, and (ii) are not derivative works of the Program. - -"Contributor" means any person or entity that distributes the Program. - -"Licensed Patents " mean patent claims licensable by a Contributor which are necessarily infringed by the use or sale of its Contribution alone or when combined with the Program. - -"Program" means the Contributions distributed in accordance with this Agreement. - -"Recipient" means anyone who receives the Program under this Agreement, including all Contributors. - -2. GRANT OF RIGHTS - - a) Subject to the terms of this Agreement, each Contributor hereby grants Recipient a non-exclusive, worldwide, royalty-free copyright license to reproduce, prepare derivative works of, publicly display, publicly perform, distribute and sublicense the Contribution of such Contributor, if any, and such derivative works, in source code and object code form. - - b) Subject to the terms of this Agreement, each Contributor hereby grants Recipient a non-exclusive, worldwide, royalty-free patent license under Licensed Patents to make, use, sell, offer to sell, import and otherwise transfer the Contribution of such Contributor, if any, in source code and object code form. This patent license shall apply to the combination of the Contribution and the Program if, at the time the Contribution is added by the Contributor, such addition of the Contribution causes such combination to be covered by the Licensed Patents. The patent license shall not apply to any other combinations which include the Contribution. No hardware per se is licensed hereunder. - - c) Recipient understands that although each Contributor grants the licenses to its Contributions set forth herein, no assurances are provided by any Contributor that the Program does not infringe the patent or other intellectual property rights of any other entity. Each Contributor disclaims any liability to Recipient for claims brought by any other entity based on infringement of intellectual property rights or otherwise. As a condition to exercising the rights and licenses granted hereunder, each Recipient hereby assumes sole responsibility to secure any other intellectual property rights needed, if any. For example, if a third party patent license is required to allow Recipient to distribute the Program, it is Recipient's responsibility to acquire that license before distributing the Program. - - d) Each Contributor represents that to its knowledge it has sufficient copyright rights in its Contribution, if any, to grant the copyright license set forth in this Agreement. - -3. REQUIREMENTS - -A Contributor may choose to distribute the Program in object code form under its own license agreement, provided that: - - a) it complies with the terms and conditions of this Agreement; and - - b) its license agreement: - - i) effectively disclaims on behalf of all Contributors all warranties and conditions, express and implied, including warranties or conditions of title and non-infringement, and implied warranties or conditions of merchantability and fitness for a particular purpose; - - ii) effectively excludes on behalf of all Contributors all liability for damages, including direct, indirect, special, incidental and consequential damages, such as lost profits; - - iii) states that any provisions which differ from this Agreement are offered by that Contributor alone and not by any other party; and - - iv) states that source code for the Program is available from such Contributor, and informs licensees how to obtain it in a reasonable manner on or through a medium customarily used for software exchange. - -When the Program is made available in source code form: - - a) it must be made available under this Agreement; and - - b) a copy of this Agreement must be included with each copy of the Program. - -Contributors may not remove or alter any copyright notices contained within the Program. - -Each Contributor must identify itself as the originator of its Contribution, if any, in a manner that reasonably allows subsequent Recipients to identify the originator of the Contribution. - -4. COMMERCIAL DISTRIBUTION - -Commercial distributors of software may accept certain responsibilities with respect to end users, business partners and the like. While this license is intended to facilitate the commercial use of the Program, the Contributor who includes the Program in a commercial product offering should do so in a manner which does not create potential liability for other Contributors. Therefore, if a Contributor includes the Program in a commercial product offering, such Contributor ("Commercial Contributor") hereby agrees to defend and indemnify every other Contributor ("Indemnified Contributor") against any losses, damages and costs (collectively "Losses") arising from claims, lawsuits and other legal actions brought by a third party against the Indemnified Contributor to the extent caused by the acts or omissions of such Commercial Contributor in connection with its distribution of the Program in a commercial product offering. The obligations in this section do not apply to any claims or Losses relating to any actual or alleged intellectual property infringement. In order to qualify, an Indemnified Contributor must: a) promptly notify the Commercial Contributor in writing of such claim, and b) allow the Commercial Contributor to control, and cooperate with the Commercial Contributor in, the defense and any related settlement negotiations. The Indemnified Contributor may participate in any such claim at its own expense. - -For example, a Contributor might include the Program in a commercial product offering, Product X. That Contributor is then a Commercial Contributor. If that Commercial Contributor then makes performance claims, or offers warranties related to Product X, those performance claims and warranties are such Commercial Contributor's responsibility alone. Under this section, the Commercial Contributor would have to defend claims against the other Contributors related to those performance claims and warranties, and if a court requires any other Contributor to pay any damages as a result, the Commercial Contributor must pay those damages. - -5. NO WARRANTY - -EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, THE PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED INCLUDING, WITHOUT LIMITATION, ANY WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT, MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Each Recipient is solely responsible for determining the appropriateness of using and distributing the Program and assumes all risks associated with its exercise of rights under this Agreement, including but not limited to the risks and costs of program errors, compliance with applicable laws, damage to or loss of data, programs or equipment, and unavailability or interruption of operations. - -6. DISCLAIMER OF LIABILITY - -EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, NEITHER RECIPIENT NOR ANY CONTRIBUTORS SHALL HAVE ANY LIABILITY FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING WITHOUT LIMITATION LOST PROFITS), HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OR DISTRIBUTION OF THE PROGRAM OR THE EXERCISE OF ANY RIGHTS GRANTED HEREUNDER, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -7. GENERAL - -If any provision of this Agreement is invalid or unenforceable under applicable law, it shall not affect the validity or enforceability of the remainder of the terms of this Agreement, and without further action by the parties hereto, such provision shall be reformed to the minimum extent necessary to make such provision valid and enforceable. - -If Recipient institutes patent litigation against a Contributor with respect to a patent applicable to software (including a cross-claim or counterclaim in a lawsuit), then any patent licenses granted by that Contributor to such Recipient under this Agreement shall terminate as of the date such litigation is filed. In addition, if Recipient institutes patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Program itself (excluding combinations of the Program with other software or hardware) infringes such Recipient's patent(s), then such Recipient's rights granted under Section 2(b) shall terminate as of the date such litigation is filed. - -All Recipient's rights under this Agreement shall terminate if it fails to comply with any of the material terms or conditions of this Agreement and does not cure such failure in a reasonable period of time after becoming aware of such noncompliance. If all Recipient's rights under this Agreement terminate, Recipient agrees to cease use and distribution of the Program as soon as reasonably practicable. However, Recipient's obligations under this Agreement and any licenses granted by Recipient relating to the Program shall continue and survive. - -Everyone is permitted to copy and distribute copies of this Agreement, but in order to avoid inconsistency the Agreement is copyrighted and may only be modified in the following manner. The Agreement Steward reserves the right to publish new versions (including revisions) of this Agreement from time to time. No one other than the Agreement Steward has the right to modify this Agreement. IBM is the initial Agreement Steward. IBM may assign the responsibility to serve as the Agreement Steward to a suitable separate entity. Each new version of the Agreement will be given a distinguishing version number. The Program (including Contributions) may always be distributed subject to the version of the Agreement under which it was received. In addition, after a new version of the Agreement is published, Contributor may elect to distribute the Program (including its Contributions) under the new version. Except as expressly stated in Sections 2(a) and 2(b) above, Recipient receives no rights or licenses to the intellectual property of any Contributor under this Agreement, whether expressly, by implication, estoppel or otherwise. All rights in the Program not expressly granted under this Agreement are reserved. - -This Agreement is governed by the laws of the State of New York and the intellectual property laws of the United States of America. No party to this Agreement will bring a legal action under this Agreement more than one year after the cause of action arose. Each party waives its rights to a jury trial in any resulting litigation. - - -=============================================================================== - -The asm-3.1.jar are distributed under the license: - -Copyright (c) 2000-2005 INRIA, France Telecom -All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions -are met: - -1. Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - -2. Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - -3. Neither the name of the copyright holders nor the names of its - contributors may be used to endorse or promote products derived from - this software without specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE -LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF -THE POSSIBILITY OF SUCH DAMAGE. - -================================================================================ - -The tuscany-base jar includes XSD files under the following SCA Collaboration license: - -License for the Service Component Architecture JavaDoc, Interface -Definition files and XSD files. - -The Service Component Architecture JavaDoc, Interface Definition files, -and XSD files are being provided by the copyright holders under the -following license. By using and/or copying this work, you agree that -you have read, understood and will comply with the following terms and -conditions: - -Permission to copy, display, make derivative works of, and distribute -the Service Component Architecture JavaDoc, Interface Definition Files -and XSD files (the "Artifacts") in any medium without fee or royalty is -hereby granted, provided that you include the following on ALL copies -of the Artifacts, or portions thereof, that you make: - -1. A link or URL to the Artifacts at this location: -http://www.osoa.org/display/Main/Service+Component+Architecture+Specifications - -2. The full text of this copyright notice as shown in the Artifacts. - -THE ARTIFACTS ARE PROVIDED "AS IS," AND THE AUTHORS MAKE NO -REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED, REGARDING THE -ARTIFACTS AND THE IMPLEMENTATION OF THEIR CONTENTS, INCLUDING, BUT NOT -LIMITED TO, WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR -PURPOSE, NON-INFRINGEMENT OR TITLE. - -THE AUTHORS WILL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL, -INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF OR RELATING TO ANY -USE OR DISTRIBUTION OF THE ARTIFACTS. - -The name and trademarks of the Authors may NOT be used in any manner, -including advertising or publicity pertaining to the Service Component -Architecture Specification or its contents without specific, written -prior permission. Title to copyright in the Service Component -Architecture Specification and the JavaDoc, Interface Definition Files -and XSD Files will at all times remain with the Authors. - -No other rights are granted by implication, estoppel or otherwise. - -Revision level 1.1, last updated on 2007/11/19 - - -================================================================================ - -The tuscany-base jar includes XSD files under the following OASIS license: - -All capitalized terms in the following text have the meanings assigned to them in the OASIS Intellectual -Property Rights Policy (the "OASIS IPR Policy"). The full Policy may be found at the OASIS website. -This document and translations of it may be copied and furnished to others, and derivative works that -comment on or otherwise explain it or assist in its implementation may be prepared, copied, published, -and distributed, in whole or in part, without restriction of any kind, provided that the above copyright -notice and this section are included on all such copies and derivative works. However, this document -itself may not be modified in any way, including by removing the copyright notice or references to OASIS, -except as needed for the purpose of developing any document or deliverable produced by an OASIS -Technical Committee (in which case the rules applicable to copyrights, as set forth in the OASIS IPR -Policy, must be followed) or as required to translate it into languages other than English. -The limited permissions granted above are perpetual and will not be revoked by OASIS or its successors -or assigns. -This document and the information contained herein is provided on an "AS IS" basis and OASIS -DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY -WARRANTY THAT THE USE OF THE INFORMATION HEREIN WILL NOT INFRINGE ANY OWNERSHIP -RIGHTS OR ANY IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR -PURPOSE. -OASIS requests that any OASIS Party or any other party that believes it has patent claims that would -necessarily be infringed by implementations of this OASIS Committee Specification or OASIS Standard, -to notify OASIS TC Administrator and provide an indication of its willingness to grant patent licenses to -such patent claims in a manner consistent with the IPR Mode of the OASIS Technical Committee that -produced this specification. -OASIS invites any party to contact the OASIS TC Administrator if it is aware of a claim of ownership of -any patent claims that would necessarily be infringed by implementations of this specification by a patent -holder that is not willing to provide a license to such patent claims in a manner consistent with the IPR -Mode of the OASIS Technical Committee that produced this specification. OASIS may include such -claims on its website, but disclaims any obligation to do so. -OASIS takes no position regarding the validity or scope of any intellectual property or other rights that -might be claimed to pertain to the implementation or use of the technology described in this document or -the extent to which any license under such rights might or might not be available; neither does it represent -that it has made any effort to identify any such rights. Information on OASIS' procedures with respect to -rights in any document or deliverable produced by an OASIS Technical Committee can be found on the -OASIS website. Copies of claims of rights made available for publication and any assurances of licenses -to be made available, or the result of an attempt made to obtain a general license or permission for the use -of such proprietary rights by implementers or users of this OASIS Committee Specification or OASIS -Standard, can be obtained from the OASIS TC Administrator. OASIS makes no representation that any -information or list of intellectual property rights will at any time be complete, or that any claims in such list -are, in fact, Essential Claims. -The names "OASIS", are trademarks of OASIS, the owner and developer of this specification, and should -be used only to refer to the organization and its official outputs. OASIS welcomes reference to, and -implementation and use of, specifications, while reserving the right to enforce its marks against misleading -uses. Please see http://www.oasis-open.org/who/trademark.php for above guidance. - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/tomcat-war/src/main/webapp/NOTICE b/sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/tomcat-war/src/main/webapp/NOTICE deleted file mode 100644 index cdc221ee60..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/tomcat-war/src/main/webapp/NOTICE +++ /dev/null @@ -1,79 +0,0 @@ -Apache Tuscany -Copyright (c) 2005 - 2010 The Apache Software Foundation - -This product includes software developed at -The Apache Software Foundation (http://www.apache.org/). - -This product includes/uses the Axion : the Open Source Java Database (http://axion.tigris.org/) - Copyright (c) 2002-2003 Axion Development Team. All rights reserved. - -This product includes/uses XmlSchema developed at -The Apache Software Foundation (http://ws.apache.org/commons/XmlSchema) - Portions Copyright 2006 International Business Machines Corp. - -This product includes/uses the Jetty Servlet Engine (http://jetty.mortbay.org), -developed by Mort Bay Consulting (http://www.mortbay.com) - -This product includes/uses DOM4J : the flexible XML framework for java (http://www.dom4j.org/) - Copyright 2001-2005 (C) MetaStuff, Ltd. All Rights Reserved. - -This product includes/uses software, AOP alliance (http://aopalliance.sourceforge.net) -License: Public Domain - -This product includes/uses javacc (https://javacc.dev.java.net/) - Copyright (c) 2003 Sun Microsystems, Inc. All Rights Reserved. - -This product includes software from the GlassFish project (https://glassfish.dev.java.net/) - Copyright (c) 2006, Sun Microsystems, Inc. - -This product includes/uses the Sourceforge wsdl4j project (http://sourceforge.net/projects/wsdl4j/) - -This product includes/uses JDOM (http://www.jdom.org/) - Copyright (C) 2000-2004 Jason Hunter & Brett McLaughlin. All rights reserved. - -This product includes/uses javacc (https://javacc.dev.java.net/) - Copyright (c) 2003 Sun Microsystems, Inc. All Rights Reserved. - -This product includes/uses ASM (http://asm.objectweb.org) - Copyright (c) 2000-2005 INRIA, France Telecom. All rights reserved. - -This product includes/uses Jaxen (http://jaxen.codehaus.org/) - Copyright 2003-2006 The Werken Company. All Rights Reserved. - -This product includes/uses Serp (http://serp.sourceforge.net/) under the BSD license: - Copyright (c) 2002, A. Abram White. All rights reserved. - -This product also includes software under the BSD license -with the following copyright: - Copyright (c) 2006, Sun Microsystems, Inc. All rights reserved. - -The Program includes all or portions of the following software: "The -Saxon XSLT and XQuery Processor from Saxonica Limited" distributed under -an MPL v1.0 license. Please refer to the homepage URL at -http://www.saxonica.com/. - -This product includes/uses Serp (http://serp.sourceforge.net/) under the BSD license: - Copyright (c) 2002, A. Abram White. All rights reserved. - -This product also includes "OSGi Materials." - Copyright (c) 2000, 2006 - OSGi Alliance Bishop Ranch 6 - 2400 Camino Ramon, Suite 375 - San Ramon, CA 94583 USA - All Rights Reserved. - -This product includes software under the Service Component Architecture JavaDoc, -Interface Definition files and XSD files license. - (c) Copyright SCA Collaboration 2006, 2007 - -This product includes software under the Service Data Objects JavaDoc and -Interface Definition file license - -(c) Copyright BEA Systems, Inc., International Business Machines Corporation, -Oracle Corporation, Primeton Technologies Ltd., Rogue Wave Software, SAP AG., -Software AG., Sun Microsystems, Sybase Inc., Xcalia, Zend Technologies, -2005, 2006. All rights reserved. - -This product includes software under the OASIS license -Copyright (C) OASIS(R) 2005, 2009. All Rights Reserved. - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/tomcat-war/src/main/webapp/WEB-INF/web.xml b/sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/tomcat-war/src/main/webapp/WEB-INF/web.xml deleted file mode 100644 index e6c3d23e9e..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/tomcat-war/src/main/webapp/WEB-INF/web.xml +++ /dev/null @@ -1,40 +0,0 @@ - - - - - - - Tuscany Installer Application - - - InstallerServlet - org.apache.tuscany.sca.war.InstallerServlet - - - - InstallerServlet - /installer - - - - installer.jsp - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/tomcat-war/src/main/webapp/installer.jsp b/sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/tomcat-war/src/main/webapp/installer.jsp deleted file mode 100644 index 68fd5101b3..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/distribution/tomcat/tomcat-war/src/main/webapp/installer.jsp +++ /dev/null @@ -1,106 +0,0 @@ - - -<%@ page contentType="text/html;charset=UTF-8" language="java" %> -<%@ page import="org.apache.tuscany.sca.war.Installer" %> - -<% - Installer installer = (Installer) request.getAttribute("installer"); -%> - - - - -

Apache Tuscany Tomcat Integration

- - The Tuscany Tomcat integration turns Tomcat into an SCA enabled runtime so it can run SCA contributions and SCA-enabled Web Applications. -

- - Status: Tuscany is - <% if (Installer.isTuscanyHookRunning()) { %> - installed and active - <% } else if (Installer.isRestartRequired()) {%> - installed but Tomcat needs to be restarted - <% } else {%> - not installed - <% }%> - - in Tomcat. -

- - <% if (!Installer.isTuscanyHookRunning() && !Installer.isRestartRequired()) { %> - Install Tuscany
- To install Tuscany into Tomcat, click: -

- -
-
- <% } else {%> - Uninstall Tuscany
- If remove Tuscany from Tomcat, click: -
- -
-
- <% }%> - -

-
- - - <% if (installer != null) { %> - <%= installer.getStatus() %> - <% }%> - - - -

-

What does this do?

- - This Tuscany install makes two updates to Tomcat: -
    -
  • copies the jars from the tomcat-lib directory in this webapp into the Tomcat lib directory -
  • updates the Tomcat conf/server.xml to include a <Listener> definition for Tuscany -
- Those changes cause the Tuscany listener to be called at Tomcat startup and that locates all the Host - defiinitions and patches them to use the TuscanyStandardContext. This enables support for deploying - SCA enabled webapps and plain SCA jar, zip, or folder contributions to the Host in the same way - that .war files are deployed. -

- The SCA domain used for running the contributions defaults to "vm:default". This can be configured - by using an initilization parameter, most easiliy by defining that parameter in a context.xml file. - The Tomcat file conf/context.xml file defines the global defaults so that can be used for setting the - deafult domain for all SCA contributions. Individual contributions can also use their own context.xml - files to override that default. - See the Tomcat doc for more information on using context.xml files. -

- An example of setting the domain as a context.xml parameter: -
<Context> -
. . . -
<Parameter name="org.apache.tuscany.sca.defaultDomainURI" value="tribes:myDomain"/> -
. . . -
</Context> -

- For more information visit the Tuscany website page on Tomcat Integration. -

- Note also that this is work in progress so is liable to change as Tuscany 2.0 is developed. Feedback is welcome and appreciated so if you've any comments or requests on this Tomcat integration please email dev@tuscany.apache.org. -

- - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/features/all/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/features/all/pom.xml deleted file mode 100644 index 98c3b7427f..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/features/all/pom.xml +++ /dev/null @@ -1,112 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-feature - 2.0-M5 - ../pom.xml - - - tuscany-feature-all - Apache Tuscany SCA All-in-one Feature - pom - - - - - org.apache.tuscany.sca - tuscany-feature-api - pom - 2.0-M5 - - - - org.apache.tuscany.sca - tuscany-feature-core - pom - 2.0-M5 - - - - org.apache.tuscany.sca - tuscany-feature-webservice - pom - 2.0-M5 - - - - org.apache.tuscany.sca - tuscany-feature-web20 - pom - 2.0-M5 - - - - org.apache.tuscany.sca - tuscany-feature-ejava - pom - 2.0-M5 - - - - org.apache.tuscany.sca - tuscany-feature-osgi - pom - 2.0-M5 - - - - org.apache.tuscany.sca - tuscany-feature-sdo - pom - 2.0-M5 - - - - org.apache.tuscany.sca - tuscany-feature-webapp - pom - 2.0-M5 - - - - org.apache.tuscany.sca - tuscany-feature-process - pom - 2.0-M5 - - - - org.apache.tuscany.sca - tuscany-launcher - 2.0-M5 - - - - org.apache.tuscany.sca - tuscany-tracing-aspectj - 2.0-M5 - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/features/api/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/features/api/pom.xml deleted file mode 100644 index 0573576594..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/features/api/pom.xml +++ /dev/null @@ -1,58 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-feature - 2.0-M5 - ../pom.xml - - - tuscany-feature-api - Apache Tuscany SCA API Feature - pom - - - - - - org.apache.tuscany.sca - tuscany-sca-api - 2.0-M5 - - - - - org.apache.tuscany.sca - tuscany-data-api - 2.0-M5 - - - - - org.apache.tuscany.sca - tuscany-node-api - 2.0-M5 - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/features/binding-ws/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/features/binding-ws/pom.xml deleted file mode 100644 index 3ee4693df5..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/features/binding-ws/pom.xml +++ /dev/null @@ -1,107 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-feature - 2.0-M5 - ../pom.xml - - - tuscany-feature-binding-ws - Apache Tuscany SCA binding.ws Feature - pom - - - - - - org.apache.tuscany.sca - tuscany-feature-core - pom - 2.0-M5 - - - - - org.apache.tuscany.sca - tuscany-binding-ws - 2.0-M5 - - - org.apache.tuscany.sca - tuscany-binding-ws-runtime-axis2 - 2.0-M5 - - - org.apache.ant - ant-nodeps - - - org.apache.axis2 - addressing - - - org.apache.axis2 - axis2-xmlbeans - - - org.apache.axis2 - axis2-adb-codegen - - - bouncycastle - bcprov-jdk15 - - - opensaml - opensaml - - - - - org.apache.tuscany.sca - tuscany-binding-ws-wsdlgen - 2.0-M5 - - - - - org.apache.tuscany.sca - tuscany-databinding-axiom - 2.0-M5 - - - org.apache.tuscany.sca - tuscany-databinding-jaxb-axiom - 2.0-M5 - - - - - org.apache.tuscany.sca - tuscany-host-jetty - 2.0-M5 - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/features/core/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/features/core/pom.xml deleted file mode 100644 index 1917aaad26..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/features/core/pom.xml +++ /dev/null @@ -1,230 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-feature - 2.0-M5 - ../pom.xml - - - tuscany-feature-core - Apache Tuscany SCA Core Feature - pom - - - - org.apache.tuscany.sca - tuscany-feature-api - pom - 2.0-M5 - - - - - - - - org.apache.tuscany.sca - tuscany-assembly - 2.0-M5 - - - org.apache.tuscany.sca - tuscany-assembly-xml - 2.0-M5 - - - org.apache.tuscany.sca - tuscany-assembly-xsd - 2.0-M5 - - - - - - - - org.apache.tuscany.sca - tuscany-contribution - 2.0-M5 - - - - - org.apache.tuscany.sca - tuscany-core - 2.0-M5 - - - org.apache.tuscany.sca - tuscany-core-databinding - 2.0-M5 - - - org.apache.tuscany.sca - tuscany-core-spi - 2.0-M5 - - - - - org.apache.tuscany.sca - tuscany-databinding - 2.0-M5 - - - org.apache.tuscany.sca - tuscany-databinding-jaxb - 2.0-M5 - - - - - - - - org.apache.tuscany.sca - tuscany-extensibility - 2.0-M5 - - - org.apache.tuscany.sca - tuscany-extensibility-equinox - 2.0-M5 - - - - - - - org.apache.tuscany.sca - tuscany-host-http - 2.0-M5 - - - - - org.apache.tuscany.sca - tuscany-implementation-java-runtime - 2.0-M5 - - - - - org.apache.tuscany.sca - tuscany-interface-java - 2.0-M5 - - - org.apache.tuscany.sca - tuscany-interface-java-jaxws - 2.0-M5 - - - org.apache.tuscany.sca - tuscany-interface-wsdl - 2.0-M5 - - - - - org.apache.tuscany.sca - tuscany-sca-client-impl - 2.0-M5 - - - org.apache.tuscany.sca - tuscany-node-impl - 2.0-M5 - - - org.apache.tuscany.sca - tuscany-node-launcher - 2.0-M5 - - - org.apache.tuscany.sca - tuscany-node-launcher-equinox - 2.0-M5 - - - - - - - org.apache.tuscany.sca - tuscany-monitor - 2.0-M5 - - - - - org.apache.tuscany.sca - tuscany-policy-security - 2.0-M5 - - - - - - org.apache.tuscany.sca - tuscany-xsd - 2.0-M5 - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/features/ejava/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/features/ejava/pom.xml deleted file mode 100644 index ea7f02dadf..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/features/ejava/pom.xml +++ /dev/null @@ -1,177 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-feature - 2.0-M5 - ../pom.xml - - - tuscany-feature-ejava - Apache Tuscany SCA Enterprise Java Feature - pom - - - - - - org.apache.tuscany.sca - tuscany-feature-core - pom - 2.0-M5 - - - - - org.apache.tuscany.sca - tuscany-binding-rmi-runtime - 2.0-M5 - - - - org.apache.tuscany.sca - tuscany-binding-corba-runtime - 2.0-M5 - - - - - org.apache.tuscany.sca - tuscany-host-rmi - 2.0-M5 - - - - - org.apache.tuscany.sca - tuscany-host-corba-jee - 2.0-M5 - - - org.apache.tuscany.sca - tuscany-host-corba-jse - 2.0-M5 - - - org.apache.tuscany.sca - tuscany-host-corba-jse-tns - 2.0-M5 - - - - - - - org.apache.tuscany.sca - tuscany-implementation-spring - 2.0-M5 - - - - org.apache.tuscany.sca - tuscany-implementation-spring-sca - 2.0-M5 - - - - - org.apache.tuscany.sca - tuscany-implementation-osgi-runtime - 2.0-M5 - - - - org.apache.tuscany.sca - tuscany-contribution-osgi - 2.0-M5 - - - - org.apache.tuscany.sca - tuscany-node-impl-osgi - 2.0-M5 - - - - org.eclipse.osgi - services - 3.2.0-v20090520-1800 - - - - org.apache.tuscany.sca - tuscany-implementation-script-runtime - 2.0-M5 - - - - org.apache.tuscany.sca - tuscany-implementation-jaxrs-runtime - 2.0-M5 - - - - - org.apache.tuscany.sca - tuscany-policy-transaction - 2.0-M5 - - - - org.apache.tuscany.sca - tuscany-policy-transaction-runtime-geronimo - 2.0-M5 - - - - - org.apache.tuscany.sca - tuscany-endpoint-hazelcast - 2.0-M5 - - - org.apache.tuscany.sca - tuscany-endpoint-hazelcast-client - 2.0-M5 - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/features/osgi/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/features/osgi/pom.xml deleted file mode 100644 index 7699e4dc19..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/features/osgi/pom.xml +++ /dev/null @@ -1,109 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-feature - 2.0-M5 - ../pom.xml - - - tuscany-feature-osgi - Apache Tuscany SCA OSGi Remote Services Feature - pom - - - - - - org.apache.tuscany.sca - tuscany-feature-core - pom - 2.0-M5 - - - - - org.apache.tuscany.sca - tuscany-binding-rmi-runtime - 2.0-M5 - - - - - org.apache.tuscany.sca - tuscany-feature-webservice - pom - 2.0-M5 - - - - - org.apache.tuscany.sca - tuscany-host-rmi - 2.0-M5 - - - - - - - org.apache.tuscany.sca - tuscany-implementation-osgi-runtime - 2.0-M5 - - - - org.apache.tuscany.sca - tuscany-contribution-osgi - 2.0-M5 - - - - org.apache.tuscany.sca - tuscany-node-impl-osgi - 2.0-M5 - - - - org.eclipse.osgi - services - 3.2.0-v20090520-1800 - - - - org.apache.tuscany.sca - tuscany-endpoint-tribes - 2.0-M5 - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/features/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/features/pom.xml deleted file mode 100644 index 55684e8c81..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/features/pom.xml +++ /dev/null @@ -1,51 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-sca - ../pom.xml - 2.0-M5 - - org.apache.tuscany.sca - tuscany-feature - pom - Apache Tuscany SCA Features - - - all - api - core - ejava - osgi - process - webservice - web20 - webapp - sdo - - binding-ws - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/features/process/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/features/process/pom.xml deleted file mode 100644 index c04a9c23ef..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/features/process/pom.xml +++ /dev/null @@ -1,57 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-feature - 2.0-M5 - ../pom.xml - - - tuscany-feature-process - Apache Tuscany SCA Process Feature - pom - - - - - - org.apache.tuscany.sca - tuscany-feature-core - pom - 2.0-M5 - - - - - org.apache.tuscany.sca - tuscany-implementation-bpel - 2.0-M5 - - - org.apache.tuscany.sca - tuscany-implementation-bpel-runtime - 2.0-M5 - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/features/sdo/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/features/sdo/pom.xml deleted file mode 100644 index 1e9f1df76f..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/features/sdo/pom.xml +++ /dev/null @@ -1,58 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-feature - 2.0-M5 - ../pom.xml - - - tuscany-feature-sdo - Apache Tuscany SCA SDO Databinding Feature - pom - - - - - - org.apache.tuscany.sca - tuscany-feature-core - pom - 2.0-M5 - - - - - - org.apache.tuscany.sca - tuscany-databinding-sdo - 2.0-M5 - - - org.apache.tuscany.sca - tuscany-databinding-sdo-axiom - 2.0-M5 - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/features/web20/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/features/web20/pom.xml deleted file mode 100644 index 1d3c0a16c8..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/features/web20/pom.xml +++ /dev/null @@ -1,145 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-feature - 2.0-M5 - ../pom.xml - - - tuscany-feature-web20 - Apache Tuscany SCA Web 2.0 Feature - pom - - - - org.apache.tuscany.sca - tuscany-feature-api - pom - 2.0-M5 - - - - org.apache.tuscany.sca - tuscany-feature-core - pom - 2.0-M5 - - - - - org.apache.tuscany.sca - tuscany-common-http - 2.0-M5 - - - - - org.apache.tuscany.sca - tuscany-interface-java-jaxrs - 2.0-M5 - - - - - org.apache.tuscany.sca - tuscany-implementation-widget-runtime - 2.0-M5 - - - - org.apache.tuscany.sca - tuscany-implementation-widget-runtime-dojo - 2.0-M5 - - - - - org.apache.tuscany.sca - tuscany-binding-atom-runtime - 2.0-M5 - - - - org.apache.tuscany.sca - tuscany-binding-atom-js-dojo - 2.0-M5 - - - - org.apache.tuscany.sca - tuscany-binding-http-runtime - 2.0-M5 - - - - org.apache.tuscany.sca - tuscany-binding-rest-runtime - 2.0-M5 - - - - org.apache.tuscany.sca - tuscany-binding-jsonp - 2.0-M5 - - - - org.apache.tuscany.sca - tuscany-binding-jsonrpc-runtime - 2.0-M5 - - - - org.apache.tuscany.sca - tuscany-binding-jsonrpc-js-dojo - 2.0-M5 - - - - org.apache.tuscany.sca - tuscany-binding-rss-runtime - 2.0-M5 - - - - - org.apache.tuscany.sca - tuscany-web-javascript-dojo - 2.0-M5 - - - - - org.apache.tuscany.sca - tuscany-databinding-json - 2.0-M5 - - - - - org.apache.tuscany.sca - tuscany-host-jetty - 2.0-M5 - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/features/webapp/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/features/webapp/pom.xml deleted file mode 100644 index 18bf203914..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/features/webapp/pom.xml +++ /dev/null @@ -1,96 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-feature - 2.0-M5 - ../pom.xml - - - tuscany-feature-webapp - Apache Tuscany SCA WebApp Feature - pom - - - - - org.apache.tuscany.sca - tuscany-feature-core - 2.0-M5 - pom - - - - org.apache.tuscany.sca - tuscany-implementation-web-runtime - 2.0-M5 - - - - - javax.servlet - servlet-api - 2.5 - - - - org.apache.geronimo.specs - geronimo-jsp_2.1_spec - 1.0.1 - - - - org.apache.geronimo.specs - geronimo-el_1.0_spec - 1.0.1 - - - - org.apache.tuscany.sca - tuscany-stripes - 2.0-M5 - - - - org.apache.tuscany.sca - tuscany-myfaces - 2.0-M5 - - - - - org.apache.tuscany.sca - tuscany-binding-jsonp - 2.0-M5 - - - - org.apache.tuscany.sca - tuscany-binding-jsonp-runtime - 2.0-M5 - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/features/webservice/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/features/webservice/pom.xml deleted file mode 100644 index c532ffe510..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/features/webservice/pom.xml +++ /dev/null @@ -1,107 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-feature - 2.0-M5 - ../pom.xml - - - tuscany-feature-webservice - Apache Tuscany SCA Web Service Feature - pom - - - - - - org.apache.tuscany.sca - tuscany-feature-core - pom - 2.0-M5 - - - - - org.apache.tuscany.sca - tuscany-binding-ws - 2.0-M5 - - - org.apache.tuscany.sca - tuscany-binding-ws-runtime-axis2 - 2.0-M5 - - - org.apache.ant - ant-nodeps - - - org.apache.axis2 - addressing - - - org.apache.axis2 - axis2-xmlbeans - - - org.apache.axis2 - axis2-adb-codegen - - - bouncycastle - bcprov-jdk15 - - - opensaml - opensaml - - - - - org.apache.tuscany.sca - tuscany-binding-ws-wsdlgen - 2.0-M5 - - - - - org.apache.tuscany.sca - tuscany-databinding-axiom - 2.0-M5 - - - org.apache.tuscany.sca - tuscany-databinding-jaxb-axiom - 2.0-M5 - - - - - org.apache.tuscany.sca - tuscany-host-jetty - 2.0-M5 - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/T3558/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/T3558/pom.xml deleted file mode 100644 index ca5a49aa39..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/T3558/pom.xml +++ /dev/null @@ -1,45 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-itest - 2.0-M5 - ../pom.xml - - - itest-t3558 - Apache Tuscany SCA iTest T3558 - - - - org.apache.tuscany.sca.shades - tuscany-base - 2.0-M5 - - - org.apache.tuscany.sca - tuscany-data-api - 2.0-M5 - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/T3558/src/test/java/org/apache/tuscany/sca/itest/t3558/T3558TestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/T3558/src/test/java/org/apache/tuscany/sca/itest/t3558/T3558TestCase.java deleted file mode 100644 index 5bb860ef89..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/T3558/src/test/java/org/apache/tuscany/sca/itest/t3558/T3558TestCase.java +++ /dev/null @@ -1,72 +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 org.apache.tuscany.sca.itest.t3558; - -import org.apache.tuscany.sca.node.Contribution; -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; -import org.junit.Test; - -public class T3558TestCase { - - @Test - public void testAllJar() throws Exception { - Node node = NodeFactory.newInstance().createNode((String)null, new String[]{"src/test/resources/sample-store-all.jar"}); - node.start(); - } - - @Test - public void testOneNode() throws Exception { - Node node = NodeFactory.newInstance().createNode((String)null, new String[]{"src/test/resources/sample-store.jar","src/test/resources/sample-store-client.jar"}); - node.start(); - } - - @Test - public void testTwoNodes() throws Exception { - Node node2 = NodeFactory.newInstance().createNode((String)null, new String[]{"src/test/resources/sample-store.jar"}); - node2.start(); - Node node1 = NodeFactory.newInstance().createNode((String)null, new String[]{"src/test/resources/sample-store-client.jar"}); - node1.start(); - } - - @Test - public void testTwoNodesJIRACode1() throws Exception { - String storeLocation = "src/test/resources/sample-store.jar"; - String storeClientLocation = "src/test/resources/sample-store-client.jar"; - - Node node1 = NodeFactory.newInstance().createNode(new Contribution("store",storeLocation)); - node1.start(); - // The dependent contributions need to be added in the Node and need to be following the main contribution - Node node2 = NodeFactory.newInstance().createNode("store-client.composite",new Contribution("storeClient", storeClientLocation),new Contribution("store", storeLocation)); - node2.start(); - } - - @Test - public void testTwoNodesJIRACode2() throws Exception { - String storeLocation = "src/test/resources/sample-store.jar"; - String storeClientLocation = "src/test/resources/sample-store-client.jar"; - - Node node1 = NodeFactory.newInstance().createNode(new Contribution("store",storeLocation)); - node1.start(); - - Node node2 = NodeFactory.newInstance().createNode("store-client.composite",new Contribution("storeClient", storeClientLocation)); - node2.start(); - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/T3558/src/test/resources/sample-store-all.jar b/sca-java-2.x/tags/2.0-M5-RC3/itest/T3558/src/test/resources/sample-store-all.jar deleted file mode 100644 index 6f3649ff23..0000000000 Binary files a/sca-java-2.x/tags/2.0-M5-RC3/itest/T3558/src/test/resources/sample-store-all.jar and /dev/null differ diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/T3558/src/test/resources/sample-store-client.jar b/sca-java-2.x/tags/2.0-M5-RC3/itest/T3558/src/test/resources/sample-store-client.jar deleted file mode 100644 index 5dfecda310..0000000000 Binary files a/sca-java-2.x/tags/2.0-M5-RC3/itest/T3558/src/test/resources/sample-store-client.jar and /dev/null differ diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/T3558/src/test/resources/sample-store.jar b/sca-java-2.x/tags/2.0-M5-RC3/itest/T3558/src/test/resources/sample-store.jar deleted file mode 100644 index 98e1f6ebb4..0000000000 Binary files a/sca-java-2.x/tags/2.0-M5-RC3/itest/T3558/src/test/resources/sample-store.jar and /dev/null differ diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/base/dependencies/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/base/dependencies/pom.xml deleted file mode 100644 index 78dca90811..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/base/dependencies/pom.xml +++ /dev/null @@ -1,59 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-itest - 2.0-M5 - ../pom.xml - - - itest-base-dependencies - Apache Tuscany SCA iTest Base Dependencies - - - - org.apache.tuscany.sca.shades - tuscany-base - 2.0-M5 - - - - - - - - org.apache.maven.plugins - maven-dependency-plugin - - - copy - compile - - copy-dependencies - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/base/dependencies/src/test/java/org/apache/tuscany/sca/itest/base/dependencies/ValidateDependenciesTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/base/dependencies/src/test/java/org/apache/tuscany/sca/itest/base/dependencies/ValidateDependenciesTestCase.java deleted file mode 100644 index b24c88ccb0..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/base/dependencies/src/test/java/org/apache/tuscany/sca/itest/base/dependencies/ValidateDependenciesTestCase.java +++ /dev/null @@ -1,58 +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 org.apache.tuscany.sca.itest.base.dependencies; - -import java.io.File; - -import junit.framework.Assert; - -import org.junit.Test; - -/** - * Test case for verifying the expected dependencies of the base jar - * (Uses maven-dependency-plugin config in the pom.xml to generate the dependency list) - * - * *** NOTE: this is an API! If the dependencies change the API is changed and users will be broken. - * Don't just change the list without thinking about the consequencies - * - * Current required jars are: - * asm-3.1.jar - * cglib-2.2.jar - * hazelcast-1.8.3.jar - * hazelcast-client-1.8.3.jar - * tuscany-base-2.0-M5.jar - * wsdl4j-1.6.2.jar - * XmlSchema-1.4.3.jar - * - * junit-4.8.1.jar (only from this testcase) - * - */ -public class ValidateDependenciesTestCase { - - @Test - public void countDependencies() { - - File dependenciesDir = new File("target/dependency"); - Assert.assertTrue(dependenciesDir.exists()); - - File[] dependencyFiles = dependenciesDir.listFiles(); - Assert.assertEquals(8, dependencyFiles.length); - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/base/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/base/pom.xml deleted file mode 100644 index e5715b96d7..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/base/pom.xml +++ /dev/null @@ -1,36 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-itest - 2.0-M5 - ../pom.xml - - pom - itest-base - Apache Tuscany SCA iTest Base - - - dependencies - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/bpel/helloworld-reference/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/bpel/helloworld-reference/pom.xml deleted file mode 100644 index 779abc2f89..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/bpel/helloworld-reference/pom.xml +++ /dev/null @@ -1,286 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - itest-bpel - 2.0-M5 - ../../pom.xml - - itest-bpel-helloworld-reference - Apache Tuscany SCA iTest BPEL HelloWorld Reference - - - - apache.incubator - http://people.apache.org/repo/m2-incubating-repository - - - - - - org.apache.tuscany.sca - tuscany-node-impl - 2.0-M5 - - - - org.apache.tuscany.sca - tuscany-implementation-java-runtime - 2.0-M5 - runtime - - - - org.apache.tuscany.sca - tuscany-binding-ws-runtime-axis2 - 2.0-M5 - runtime - - - - org.apache.tuscany.sca - tuscany-host-jetty - 2.0-M5 - runtime - - - - org.apache.tuscany.sca - tuscany-implementation-bpel-runtime - 2.0-M5 - runtime - - - - org.apache.ode - ode-dao-jpa-ojpa-derby - 1.1 - zip - - - - xerces - xercesImpl - 2.8.0 - - - - junit - junit - - - - - ${artifactId} - - - org.apache.maven.plugins - maven-surefire-plugin - - 2.3.1 - - false - false - true - - - - org.apache.maven.plugins - maven-dependency-plugin - - - unpack - generate-sources - - unpack - - - - - org.apache.ode - ode-dao-jpa-ojpa-derby - 1.1 - zip - true - ${project.build.directory}/test-classes/ - - - - - - - - org.apache.maven.plugins - maven-surefire-plugin - - -Djava.endorsed.dirs=target/endorsed - - - - org.apache.maven.plugins - maven-dependency-plugin - - - copy - generate-sources - - copy - - - - - javax.xml.ws - jaxws-api - 2.1 - jar - - - javax.xml.bind - jaxb-api - 2.1 - jar - - - ${project.build.directory}/endorsed - false - true - - - - - - org.codehaus.mojo - build-helper-maven-plugin - 1.0 - - - add-test-source - generate-sources - - add-test-source - - - - target/jaxws-source - - - - - - - org.codehaus.mojo - jaxws-maven-plugin - 1.12 - - - - javax.jws - jsr181-api - 1.0-MR1 - - - javax.annotation - jsr250-api - 1.0 - - - - - wsimport - generate-test-sources - - wsimport - - - org.apache.tuscany.implementation.bpel.example.helloworld - ${basedir}/src/test/resources/helloworld/ - - helloworld.wsdl - - ${project.build.directory}/jaxws-source - false - true - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/bpel/helloworld-reference/src/test/java/greetings/GreetingsService.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/bpel/helloworld-reference/src/test/java/greetings/GreetingsService.java deleted file mode 100644 index d7dff093f9..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/bpel/helloworld-reference/src/test/java/greetings/GreetingsService.java +++ /dev/null @@ -1,31 +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 greetings; - -import org.oasisopen.sca.annotation.Remotable; - -/** - * This is the business interface of the HelloWorld greetings service. - */ -@Remotable -public interface GreetingsService { - - public String getGreetings(String name); -} - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/bpel/helloworld-reference/src/test/java/greetings/GreetingsServiceImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/bpel/helloworld-reference/src/test/java/greetings/GreetingsServiceImpl.java deleted file mode 100644 index 5ecf5494be..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/bpel/helloworld-reference/src/test/java/greetings/GreetingsServiceImpl.java +++ /dev/null @@ -1,33 +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 greetings; - -import org.oasisopen.sca.annotation.Service; - -/** - * This class implements the HelloWorld service. - */ -@Service(GreetingsService.class) -public class GreetingsServiceImpl implements GreetingsService { - - public String getGreetings(String name) { - return "Hello " + name; - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/bpel/helloworld-reference/src/test/java/greetings/GreetingsTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/bpel/helloworld-reference/src/test/java/greetings/GreetingsTestCase.java deleted file mode 100644 index 24ab0a4181..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/bpel/helloworld-reference/src/test/java/greetings/GreetingsTestCase.java +++ /dev/null @@ -1,65 +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 greetings; - -import junit.framework.Assert; - -import org.apache.tuscany.sca.node.Contribution; -import org.apache.tuscany.sca.node.ContributionLocationHelper; -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; -import org.junit.AfterClass; -import org.junit.BeforeClass; -import org.junit.Test; - -/** - * Tests the Greetings service - * - * @version $Rev$ $Date$ - */ -public class GreetingsTestCase { - - private static Node node; - - /** - * @throws java.lang.Exception - */ - @BeforeClass - public static void setUp() throws Exception { - String location = ContributionLocationHelper.getContributionLocation("greetings/greetings.composite"); - node = NodeFactory.newInstance().createNode("greetings/greetings.composite", new Contribution("c1", location)); - node.start(); - } - - /** - * @throws java.lang.Exception - */ - @AfterClass - public static void tearDown() throws Exception { - node.stop(); - } - - @Test - public void testInvoke() { - GreetingsService greetingsService = node.getService(GreetingsService.class, "GreetingsServiceComponent"); - String response = greetingsService.getGreetings("Luciano"); - Assert.assertEquals("Hello Luciano", response); - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/bpel/helloworld-reference/src/test/java/helloworld/HelloWorldService.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/bpel/helloworld-reference/src/test/java/helloworld/HelloWorldService.java deleted file mode 100644 index f46893481b..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/bpel/helloworld-reference/src/test/java/helloworld/HelloWorldService.java +++ /dev/null @@ -1,29 +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 helloworld; - -import org.oasisopen.sca.annotation.Remotable; - -/** - * The interface for the helloworld service - */ -@Remotable -public interface HelloWorldService { - public String hello(String name); -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/bpel/helloworld-reference/src/test/java/helloworld/HelloWorldServiceImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/bpel/helloworld-reference/src/test/java/helloworld/HelloWorldServiceImpl.java deleted file mode 100644 index a687534bb2..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/bpel/helloworld-reference/src/test/java/helloworld/HelloWorldServiceImpl.java +++ /dev/null @@ -1,47 +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 helloworld; - -import greetings.GreetingsService; - -import org.oasisopen.sca.annotation.Reference; - -/** - * The HelloWorld service implementation - */ -public class HelloWorldServiceImpl implements HelloWorldService { - - protected GreetingsService greetingsService; - - public GreetingsService getGreetingsService() { - System.out.println("Got Injected greetingsService"); - return greetingsService; - } - - @Reference - public void setGreetingsService(GreetingsService greetingsService) { - System.out.println("Injected greetingsService"); - this.greetingsService = greetingsService; - } - - public String hello(String name) { - System.out.println("Calling greeting services getGreetings"); - return greetingsService.getGreetings(name); - } -} \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/bpel/helloworld-reference/src/test/java/helloworld/HelloWorldTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/bpel/helloworld-reference/src/test/java/helloworld/HelloWorldTestCase.java deleted file mode 100644 index a9268ac1b5..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/bpel/helloworld-reference/src/test/java/helloworld/HelloWorldTestCase.java +++ /dev/null @@ -1,64 +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 helloworld; - -import junit.framework.Assert; - -import org.apache.tuscany.sca.node.Contribution; -import org.apache.tuscany.sca.node.ContributionLocationHelper; -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; -import org.junit.AfterClass; -import org.junit.BeforeClass; -import org.junit.Test; - -/** - * Tests the BPEL Helloworld Service - * - * @version $Rev$ $Date$ - */ -public class HelloWorldTestCase { - private static Node node; - - /** - * @throws java.lang.Exception - */ - @BeforeClass - public static void setUp() throws Exception { - String location = ContributionLocationHelper.getContributionLocation("helloworld/helloworld.composite"); - node = NodeFactory.newInstance().createNode("helloworld/helloworld.composite", new Contribution("c1", location)); - node.start(); - } - - /** - * @throws java.lang.Exception - */ - @AfterClass - public static void tearDown() throws Exception { - node.stop(); - } - - @Test - public void testServiceInvocation() { - HelloWorldService bpelService = node.getService(HelloWorldService.class, "HelloWorldService"); - String response = bpelService.hello("Luciano"); - Assert.assertEquals("Hello Luciano", response); - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/bpel/helloworld-reference/src/test/resources/greetings/greetings.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/bpel/helloworld-reference/src/test/resources/greetings/greetings.composite deleted file mode 100644 index d3cfb80547..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/bpel/helloworld-reference/src/test/resources/greetings/greetings.composite +++ /dev/null @@ -1,32 +0,0 @@ - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/bpel/helloworld-reference/src/test/resources/greetings/greetings.wsdl b/sca-java-2.x/tags/2.0-M5-RC3/itest/bpel/helloworld-reference/src/test/resources/greetings/greetings.wsdl deleted file mode 100644 index b976a53970..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/bpel/helloworld-reference/src/test/resources/greetings/greetings.wsdl +++ /dev/null @@ -1,87 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/bpel/helloworld-reference/src/test/resources/helloworld/helloworld.bpel b/sca-java-2.x/tags/2.0-M5-RC3/itest/bpel/helloworld-reference/src/test/resources/helloworld/helloworld.bpel deleted file mode 100644 index c0317687df..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/bpel/helloworld-reference/src/test/resources/helloworld/helloworld.bpel +++ /dev/null @@ -1,84 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - $helloMessage.TestPart - $greetingsRequest.request - - - - - - - - $greetingsResponse.parameters/greetings:GreetingsResponse - $helloMessageResponse.TestPart - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/bpel/helloworld-reference/src/test/resources/helloworld/helloworld.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/bpel/helloworld-reference/src/test/resources/helloworld/helloworld.composite deleted file mode 100644 index ef66d28bb9..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/bpel/helloworld-reference/src/test/resources/helloworld/helloworld.composite +++ /dev/null @@ -1,36 +0,0 @@ - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/bpel/helloworld-reference/src/test/resources/helloworld/helloworld.wsdl b/sca-java-2.x/tags/2.0-M5-RC3/itest/bpel/helloworld-reference/src/test/resources/helloworld/helloworld.wsdl deleted file mode 100644 index 541a713112..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/bpel/helloworld-reference/src/test/resources/helloworld/helloworld.wsdl +++ /dev/null @@ -1,94 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/bpel/helloworld-reference/src/test/resources/log4j.properties b/sca-java-2.x/tags/2.0-M5-RC3/itest/bpel/helloworld-reference/src/test/resources/log4j.properties deleted file mode 100644 index 4e13380e0b..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/bpel/helloworld-reference/src/test/resources/log4j.properties +++ /dev/null @@ -1,36 +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. -# - -# Set root logger level to WARN and its only appender to CONSOLE -log4j.rootLogger=OFF, CONSOLE - -# log4j properties to work with commandline tools. -log4j.category.org.mortbay=OFF -log4j.category.org.hibernate.type=OFF -log4j.category.org.objectweb=OFF -log4j.category.org.apache.ode.axis2=OFF -log4j.category.org.apache.ode.bpel.engine=OFF -log4j.category.org.apache.ode.daohib.bpel.CorrelatorDaoImpl=OFF -log4j.category.org.apache.ode.bpel.epr=OFF -log4j.category.org.apache.tuscany.sca.implementation.bpel=DEBUG -log4j.category.org.apache.tuscany.sca.implementation.bpel.ode=DEBUG -log4j.category.org.apache.tuscany.sca.implementation.bpel.provider=DEBUG - -# Console appender -log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender -log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout -log4j.appender.CONSOLE.layout.ConversionPattern=[%p] - %C{1}.%M(%L) | %m%n diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/bpel/helloworld-ws/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/bpel/helloworld-ws/pom.xml deleted file mode 100644 index 8b3bf9c9c3..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/bpel/helloworld-ws/pom.xml +++ /dev/null @@ -1,175 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - itest-bpel - 2.0-M5 - ../../pom.xml - - itest-bpel-helloworld-ws - - Apache Tuscany SCA iTest BPEL HelloWorld Over Web Services - - - - apache.incubator - http://people.apache.org/repo/m2-incubating-repository - - - - - - - org.apache.tuscany.sca - tuscany-node-impl - 2.0-M5 - - - - org.apache.tuscany.sca - tuscany-implementation-java-runtime - 2.0-M5 - runtime - - - - org.apache.tuscany.sca - tuscany-implementation-bpel-runtime - 2.0-M5 - runtime - - - - org.apache.tuscany.sca - tuscany-binding-ws-runtime-axis2 - 2.0-M5 - runtime - - - - xerces - xercesImpl - 2.8.1 - - - - org.apache.tuscany.sca - tuscany-host-jetty - 1.6-SNAPSHOT - runtime - - - - junit - junit - - - - - ${artifactId} - - - org.apache.maven.plugins - maven-surefire-plugin - - 2.3.1 - - false - false - true - - - - org.apache.maven.plugins - maven-dependency-plugin - - - - unpack - test-compile - - unpack - - - - - org.apache.ode - ode-dao-jpa-ojpa-derby - - 1.1 - zip - true - ${project.build.directory}/test-classes/ - - - - - - - - - org.apache.tuscany.sdo - tuscany-sdo-plugin - 1.1.1 - - - generate-bpel-helloworld - generate-sources - - - ${basedir}/src/test/resources/helloworld/helloworld.wsdl - - ${basedir}/target/wsdl2java-source - - HelloWorld - true - true - true - - - generate - - - - - - org.apache.tuscany.sca - tuscany-maven-wsdl2java - - 1.6-SNAPSHOT - - - - - - - ${basedir}/src/test/resources/helloworld/helloworld.wsdl - - - - - - generate - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/bpel/helloworld-ws/src/test/java/helloworld/HelloWorld.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/bpel/helloworld-ws/src/test/java/helloworld/HelloWorld.java deleted file mode 100644 index 0999e97065..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/bpel/helloworld-ws/src/test/java/helloworld/HelloWorld.java +++ /dev/null @@ -1,45 +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 helloworld; - -import org.apache.tuscany.implementation.bpel.example.helloworld.HelloPortType; -import org.oasisopen.sca.annotation.Reference; - -/** - * @version $Rev$ $Date$ - */ -public class HelloWorld { - private HelloPortType helloService; - - public HelloWorld() { - super(); - } - - @Reference - public void setHelloService(HelloPortType helloService){ - this.helloService = helloService; - } - - public String hello(String hello) throws java.rmi.RemoteException { - System.out.println(">>> Invoking helloService.hello with : " + hello); - return this.helloService.hello(hello); - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/bpel/helloworld-ws/src/test/java/helloworld/HelloWorldTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/bpel/helloworld-ws/src/test/java/helloworld/HelloWorldTestCase.java deleted file mode 100644 index 315591fb98..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/bpel/helloworld-ws/src/test/java/helloworld/HelloWorldTestCase.java +++ /dev/null @@ -1,71 +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 helloworld; - -import java.io.IOException; -import java.net.Socket; - -import junit.framework.Assert; - -import org.apache.tuscany.implementation.bpel.example.helloworld.HelloPortType; -import org.apache.tuscany.sca.node.Contribution; -import org.apache.tuscany.sca.node.ContributionLocationHelper; -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; -import org.junit.AfterClass; -import org.junit.BeforeClass; - -/** - * Tests the BPEL Helloworld Service - * - * @version $Rev$ $Date$ - */ -public class HelloWorldTestCase { - - private Node node; - - /** - * @throws java.lang.Exception - */ - @BeforeClass - protected void setUp() throws Exception { - String location = ContributionLocationHelper.getContributionLocation("helloworld/helloworld.composite"); - node = NodeFactory.newInstance().createNode("CallBackApiTest.composite", new Contribution("c1", location)); - node.start(); - } - - /** - * @throws java.lang.Exception - */ - @AfterClass - protected void tearDown() throws Exception { - node.stop(); - } - - public void testPing() throws IOException { - new Socket("127.0.0.1", 8085); - } - - public void testServiceInvocation() throws Exception { - HelloPortType bpelService = node.getService(HelloPortType.class, "BPELHelloWorldServiceComponent"); - String response = bpelService.hello("Hello"); - Assert.assertEquals("Hello World", response); - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/bpel/helloworld-ws/src/test/resources/helloworld/helloworld.bpel b/sca-java-2.x/tags/2.0-M5-RC3/itest/bpel/helloworld-ws/src/test/resources/helloworld/helloworld.bpel deleted file mode 100644 index 8cf91adc2c..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/bpel/helloworld-ws/src/test/resources/helloworld/helloworld.bpel +++ /dev/null @@ -1,66 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - concat($tmpVar,' World') - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/bpel/helloworld-ws/src/test/resources/helloworld/helloworld.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/bpel/helloworld-ws/src/test/resources/helloworld/helloworld.composite deleted file mode 100644 index e606e6dd52..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/bpel/helloworld-ws/src/test/resources/helloworld/helloworld.composite +++ /dev/null @@ -1,32 +0,0 @@ - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/bpel/helloworld-ws/src/test/resources/helloworld/helloworld.wsdl b/sca-java-2.x/tags/2.0-M5-RC3/itest/bpel/helloworld-ws/src/test/resources/helloworld/helloworld.wsdl deleted file mode 100644 index 610bda3cc4..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/bpel/helloworld-ws/src/test/resources/helloworld/helloworld.wsdl +++ /dev/null @@ -1,82 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/bpel/helloworld-ws/src/test/resources/log4j.properties b/sca-java-2.x/tags/2.0-M5-RC3/itest/bpel/helloworld-ws/src/test/resources/log4j.properties deleted file mode 100644 index 37f66e4189..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/bpel/helloworld-ws/src/test/resources/log4j.properties +++ /dev/null @@ -1,36 +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. -# - -# Set root logger level to WARN and its only appender to CONSOLE -log4j.rootLogger=OFF, CONSOLE - -# log4j properties to work with commandline tools. -log4j.category.org.mortbay=OFF -log4j.category.org.hibernate.type=OFF -log4j.category.org.objectweb=OFF -log4j.category.org.apache.ode.axis2=OFF -log4j.category.org.apache.ode.bpel.engine=OFF -log4j.category.org.apache.ode.daohib.bpel.CorrelatorDaoImpl=OFF -log4j.category.org.apache.ode.bpel.epr=OFF -log4j.category.org.apache.tuscany.sca.implementation.bpel=DEBUG -log4j.category.org.apache.tuscany.sca.implementation.bpel.ode=DEBUG -log4j.category.org.apache.tuscany.sca.implementation.bpel.provider=DEBUG - -# Console appender -log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender -log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout -log4j.appender.CONSOLE.layout.ConversionPattern=[%p] - %C{1}.%M(%L) | %m%n diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/bpel/helloworld/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/bpel/helloworld/pom.xml deleted file mode 100644 index ac8e50cf8a..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/bpel/helloworld/pom.xml +++ /dev/null @@ -1,264 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - itest-bpel - 2.0-M5 - ../../pom.xml - - itest-bpel-helloworld - Apache Tuscany SCA iTest BPEL HelloWorld - - - - apache.incubator - http://people.apache.org/repo/m2-incubating-repository - - - - - - - org.apache.tuscany.sca - tuscany-node-impl - 2.0-M5 - - - - org.apache.tuscany.sca - tuscany-implementation-java-runtime - 2.0-M5 - runtime - - - - org.apache.tuscany.sca - tuscany-implementation-bpel-runtime - 2.0-M5 - runtime - - - - xerces - xercesImpl - 2.8.1 - - - - - - ${artifactId} - - - org.apache.maven.plugins - maven-surefire-plugin - - 2.3.1 - - false - false - true - - - - org.apache.maven.plugins - maven-dependency-plugin - - - unpack - test-compile - - unpack - - - - - org.apache.ode - ode-dao-jpa-ojpa-derby - 1.1 - zip - true - ${project.build.directory}/test-classes/ - - - - - - - - - org.apache.maven.plugins - maven-surefire-plugin - - -Djava.endorsed.dirs=target/endorsed - - - - org.apache.maven.plugins - maven-dependency-plugin - - - copy - generate-sources - - copy - - - - - javax.xml.ws - jaxws-api - 2.1 - jar - - - javax.xml.bind - jaxb-api - 2.1 - jar - - - ${project.build.directory}/endorsed - false - true - - - - - - org.codehaus.mojo - build-helper-maven-plugin - 1.0 - - - add-test-source - generate-sources - - add-test-source - - - - target/jaxws-source - - - - - - - org.codehaus.mojo - jaxws-maven-plugin - 1.12 - - - - javax.jws - jsr181-api - 1.0-MR1 - - - javax.annotation - jsr250-api - 1.0 - - - - - wsimport - generate-test-sources - - wsimport - - - org.apache.tuscany.implementation.bpel.example.helloworld - ${basedir}/src/test/resources/helloworld/ - - helloworld.wsdl - - ${project.build.directory}/jaxws-source - false - true - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/bpel/helloworld/src/test/java/helloworld/HelloWorld.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/bpel/helloworld/src/test/java/helloworld/HelloWorld.java deleted file mode 100644 index 0999e97065..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/bpel/helloworld/src/test/java/helloworld/HelloWorld.java +++ /dev/null @@ -1,45 +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 helloworld; - -import org.apache.tuscany.implementation.bpel.example.helloworld.HelloPortType; -import org.oasisopen.sca.annotation.Reference; - -/** - * @version $Rev$ $Date$ - */ -public class HelloWorld { - private HelloPortType helloService; - - public HelloWorld() { - super(); - } - - @Reference - public void setHelloService(HelloPortType helloService){ - this.helloService = helloService; - } - - public String hello(String hello) throws java.rmi.RemoteException { - System.out.println(">>> Invoking helloService.hello with : " + hello); - return this.helloService.hello(hello); - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/bpel/helloworld/src/test/java/helloworld/HelloWorldTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/bpel/helloworld/src/test/java/helloworld/HelloWorldTestCase.java deleted file mode 100644 index 86e6e4e9c5..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/bpel/helloworld/src/test/java/helloworld/HelloWorldTestCase.java +++ /dev/null @@ -1,73 +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 helloworld; - -import junit.framework.Assert; - -import org.apache.tuscany.implementation.bpel.example.helloworld.HelloPortType; -import org.apache.tuscany.sca.node.Contribution; -import org.apache.tuscany.sca.node.ContributionLocationHelper; -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; -import org.junit.AfterClass; -import org.junit.BeforeClass; -import org.junit.Test; - -/** - * Tests the BPEL Helloworld Service - * - * @version $Rev$ $Date$ - */ -public class HelloWorldTestCase { - - private static Node node; - - /** - * @throws java.lang.Exception - */ - @BeforeClass - public static void setUp() throws Exception { - String location = ContributionLocationHelper.getContributionLocation("helloworld/helloworld.composite"); - node = NodeFactory.newInstance().createNode("helloworld/helloworld.composite", new Contribution("c1", location)); - node.start(); - } - - /** - * @throws java.lang.Exception - */ - @AfterClass - public static void tearDown() throws Exception { - node.stop(); - } - - @Test - public void testServiceInvocation() throws Exception { - HelloPortType bpelService = node.getService(HelloPortType.class, "BPELHelloWorldService"); - String response = bpelService.hello("Hello"); - Assert.assertEquals("Hello World", response); - } - - @Test - public void testReferenceInvocation() throws Exception { - HelloWorld bpelService = node.getService(HelloWorld.class, "BPELHelloWorld"); - String response = bpelService.hello("Hello"); - Assert.assertEquals("Hello World", response); - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/bpel/helloworld/src/test/resources/helloworld/helloworld.bpel b/sca-java-2.x/tags/2.0-M5-RC3/itest/bpel/helloworld/src/test/resources/helloworld/helloworld.bpel deleted file mode 100644 index 156e32e9ee..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/bpel/helloworld/src/test/resources/helloworld/helloworld.bpel +++ /dev/null @@ -1,78 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - concat($helloMessage.TestPart/test:message/text(), ' World') - - - - - - - - Dummy - - - - - - - - $helloMessageResponse.TestResponse/test:messageResponse - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/bpel/helloworld/src/test/resources/helloworld/helloworld.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/bpel/helloworld/src/test/resources/helloworld/helloworld.composite deleted file mode 100644 index 96ec8b24b7..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/bpel/helloworld/src/test/resources/helloworld/helloworld.composite +++ /dev/null @@ -1,36 +0,0 @@ - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/bpel/helloworld/src/test/resources/helloworld/helloworld.wsdl b/sca-java-2.x/tags/2.0-M5-RC3/itest/bpel/helloworld/src/test/resources/helloworld/helloworld.wsdl deleted file mode 100644 index c77318e8fd..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/bpel/helloworld/src/test/resources/helloworld/helloworld.wsdl +++ /dev/null @@ -1,94 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/bpel/helloworld/src/test/resources/log4j.properties b/sca-java-2.x/tags/2.0-M5-RC3/itest/bpel/helloworld/src/test/resources/log4j.properties deleted file mode 100644 index 37f66e4189..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/bpel/helloworld/src/test/resources/log4j.properties +++ /dev/null @@ -1,36 +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. -# - -# Set root logger level to WARN and its only appender to CONSOLE -log4j.rootLogger=OFF, CONSOLE - -# log4j properties to work with commandline tools. -log4j.category.org.mortbay=OFF -log4j.category.org.hibernate.type=OFF -log4j.category.org.objectweb=OFF -log4j.category.org.apache.ode.axis2=OFF -log4j.category.org.apache.ode.bpel.engine=OFF -log4j.category.org.apache.ode.daohib.bpel.CorrelatorDaoImpl=OFF -log4j.category.org.apache.ode.bpel.epr=OFF -log4j.category.org.apache.tuscany.sca.implementation.bpel=DEBUG -log4j.category.org.apache.tuscany.sca.implementation.bpel.ode=DEBUG -log4j.category.org.apache.tuscany.sca.implementation.bpel.provider=DEBUG - -# Console appender -log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender -log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout -log4j.appender.CONSOLE.layout.ConversionPattern=[%p] - %C{1}.%M(%L) | %m%n diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/bpel/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/bpel/pom.xml deleted file mode 100644 index 8abce9b9f5..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/bpel/pom.xml +++ /dev/null @@ -1,39 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-itest - 2.0-M5 - ../pom.xml - - itest-bpel - pom - Apache Tuscany SCA iTest BPEL Integration Tests - - - helloworld - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/builder/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/builder/pom.xml deleted file mode 100644 index 1b41ee87ca..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/builder/pom.xml +++ /dev/null @@ -1,112 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-itest - 2.0-M5 - ../pom.xml - - itest-builder - Apache Tuscany SCA iTest Builder - - - - org.apache.tuscany.sca - tuscany-sca-api - 2.0-M5 - - - - org.apache.tuscany.sca - tuscany-implementation-java-runtime - 2.0-M5 - runtime - - - - org.apache.tuscany.sca - tuscany-monitor - 2.0-M5 - test - - - - org.apache.tuscany.sca - tuscany-binding-ws-runtime-axis2 - 2.0-M5 - test - - - - org.apache.tuscany.sca - tuscany-binding-sca-runtime - 2.0-M5 - test - - - - org.apache.tuscany.sca - tuscany-assembly - 2.0-M5 - test - - - - org.apache.tuscany.sca - tuscany-core-databinding - 2.0-M5 - test - - - - org.apache.tuscany.sca - tuscany-node-api - 2.0-M5 - - - - org.apache.tuscany.sca - tuscany-node-impl - 2.0-M5 - test - - - - org.apache.tuscany.sca - tuscany-host-jetty - 2.0-M5 - test - - - - xerces - xercesImpl - 2.8.1 - test - - - - - - ${artifactId} - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/java/org/apache/tuscany/sca/itest/builder/ComponentDImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/java/org/apache/tuscany/sca/itest/builder/ComponentDImpl.java deleted file mode 100644 index b0dc7a6389..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/java/org/apache/tuscany/sca/itest/builder/ComponentDImpl.java +++ /dev/null @@ -1,43 +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 org.apache.tuscany.sca.itest.builder; - -import org.oasisopen.sca.annotation.Reference; -import org.oasisopen.sca.annotation.Service; - -/** - * Implementation class for ComponentD. - * - * @version $Rev$ $Date$ - */ -@Service({Service3.class, Service3a.class}) -public class ComponentDImpl implements Service3, Service3a { - - @Reference - protected Service3a reference3; - - public String getGreetings(String name) { - return "Hello, " + name + "!"; - } - - public String getGreetings2(String name) { - return "Goodbye, " + name + "!"; - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/java/org/apache/tuscany/sca/itest/builder/ComponentDReferenceMultiplicityImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/java/org/apache/tuscany/sca/itest/builder/ComponentDReferenceMultiplicityImpl.java deleted file mode 100644 index bf73a64027..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/java/org/apache/tuscany/sca/itest/builder/ComponentDReferenceMultiplicityImpl.java +++ /dev/null @@ -1,48 +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 org.apache.tuscany.sca.itest.builder; - -import java.util.List; - -import org.oasisopen.sca.annotation.Reference; -import org.oasisopen.sca.annotation.Service; - -/** - * Implementation class for ComponentD. - * - * @version $Rev$ $Date$ - */ -@Service({Service3.class, Service3a.class}) -public class ComponentDReferenceMultiplicityImpl implements Service3, Service3a { - - @Reference - protected Service3a reference3; - - @Reference - protected List reference3a; - - public String getGreetings(String name) { - return "Hello, " + name + "!"; - } - - public String getGreetings2(String name) { - return "Goodbye, " + name + "!"; - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/java/org/apache/tuscany/sca/itest/builder/ComponentEImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/java/org/apache/tuscany/sca/itest/builder/ComponentEImpl.java deleted file mode 100644 index 6f36b1c55a..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/java/org/apache/tuscany/sca/itest/builder/ComponentEImpl.java +++ /dev/null @@ -1,36 +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 org.apache.tuscany.sca.itest.builder; - -import org.oasisopen.sca.annotation.Service; - - -/** - * Implementation class for ComponentD. - * - * @version $Rev$ $Date$ - */ -@Service({Service3.class}) -public class ComponentEImpl implements Service3 { - - - public String getGreetings(String name) { - return "Hello, " + name + " from ComponentE"; - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/java/org/apache/tuscany/sca/itest/builder/ComponentFImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/java/org/apache/tuscany/sca/itest/builder/ComponentFImpl.java deleted file mode 100644 index 8c5c5de208..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/java/org/apache/tuscany/sca/itest/builder/ComponentFImpl.java +++ /dev/null @@ -1,36 +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 org.apache.tuscany.sca.itest.builder; - -import org.oasisopen.sca.annotation.Service; - - -/** - * Implementation class for ComponentD. - * - * @version $Rev$ $Date$ - */ -@Service({Service3.class}) -public class ComponentFImpl implements Service3 { - - - public String getGreetings(String name) { - return "Hello, " + name + " from ComponentF"; - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/java/org/apache/tuscany/sca/itest/builder/Service3.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/java/org/apache/tuscany/sca/itest/builder/Service3.java deleted file mode 100644 index f4b8d2cf39..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/java/org/apache/tuscany/sca/itest/builder/Service3.java +++ /dev/null @@ -1,34 +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 org.apache.tuscany.sca.itest.builder; - -import org.oasisopen.sca.annotation.Remotable; - - -/** - * Interface for Service3 in ComponentD. - * - * @version $Rev$ $Date$ - */ -@Remotable -public interface Service3 { - - String getGreetings(String name); - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/java/org/apache/tuscany/sca/itest/builder/Service3a.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/java/org/apache/tuscany/sca/itest/builder/Service3a.java deleted file mode 100644 index 299f7606e3..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/java/org/apache/tuscany/sca/itest/builder/Service3a.java +++ /dev/null @@ -1,34 +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 org.apache.tuscany.sca.itest.builder; - -import org.oasisopen.sca.annotation.Remotable; - - -/** - * Interface for Service3a in ComponentD. - * - * @version $Rev$ $Date$ - */ -@Remotable -public interface Service3a { - - String getGreetings2(String name); - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/resources/scenario1/META-INF/sca-contribution.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/resources/scenario1/META-INF/sca-contribution.xml deleted file mode 100644 index 7fabed9436..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/resources/scenario1/META-INF/sca-contribution.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/resources/scenario1/scenario1.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/resources/scenario1/scenario1.composite deleted file mode 100644 index 286e53539f..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/resources/scenario1/scenario1.composite +++ /dev/null @@ -1,45 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/resources/scenario1/scenario1a.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/resources/scenario1/scenario1a.composite deleted file mode 100644 index 2bdfc19c3c..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/resources/scenario1/scenario1a.composite +++ /dev/null @@ -1,47 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/resources/scenario10/META-INF/sca-contribution.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/resources/scenario10/META-INF/sca-contribution.xml deleted file mode 100644 index ac01b3c687..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/resources/scenario10/META-INF/sca-contribution.xml +++ /dev/null @@ -1,24 +0,0 @@ - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/resources/scenario10/scenario10.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/resources/scenario10/scenario10.composite deleted file mode 100644 index 2d127a7bec..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/resources/scenario10/scenario10.composite +++ /dev/null @@ -1,62 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/resources/scenario10/scenario10a.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/resources/scenario10/scenario10a.composite deleted file mode 100644 index 0fda11482b..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/resources/scenario10/scenario10a.composite +++ /dev/null @@ -1,61 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/resources/scenario10/service3.wsdl b/sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/resources/scenario10/service3.wsdl deleted file mode 100644 index 2477e23dc6..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/resources/scenario10/service3.wsdl +++ /dev/null @@ -1,63 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/resources/scenario11/META-INF/sca-contribution.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/resources/scenario11/META-INF/sca-contribution.xml deleted file mode 100644 index 8b82b43c68..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/resources/scenario11/META-INF/sca-contribution.xml +++ /dev/null @@ -1,24 +0,0 @@ - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/resources/scenario11/scenario11.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/resources/scenario11/scenario11.composite deleted file mode 100644 index 2f5ca96d07..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/resources/scenario11/scenario11.composite +++ /dev/null @@ -1,59 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/resources/scenario11/scenario11a.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/resources/scenario11/scenario11a.composite deleted file mode 100644 index 1831d97ea7..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/resources/scenario11/scenario11a.composite +++ /dev/null @@ -1,64 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/resources/scenario11/service3.wsdl b/sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/resources/scenario11/service3.wsdl deleted file mode 100644 index 2477e23dc6..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/resources/scenario11/service3.wsdl +++ /dev/null @@ -1,63 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/resources/scenario12/META-INF/sca-contribution.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/resources/scenario12/META-INF/sca-contribution.xml deleted file mode 100644 index 4028098023..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/resources/scenario12/META-INF/sca-contribution.xml +++ /dev/null @@ -1,24 +0,0 @@ - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/resources/scenario12/scenario12.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/resources/scenario12/scenario12.composite deleted file mode 100644 index 23799f8487..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/resources/scenario12/scenario12.composite +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/resources/scenario12/scenario12a.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/resources/scenario12/scenario12a.composite deleted file mode 100644 index 7982a9b2d7..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/resources/scenario12/scenario12a.composite +++ /dev/null @@ -1,64 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/resources/scenario13/META-INF/sca-contribution.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/resources/scenario13/META-INF/sca-contribution.xml deleted file mode 100644 index 1da59d5f04..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/resources/scenario13/META-INF/sca-contribution.xml +++ /dev/null @@ -1,24 +0,0 @@ - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/resources/scenario13/scenario13.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/resources/scenario13/scenario13.composite deleted file mode 100644 index 631e38855f..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/resources/scenario13/scenario13.composite +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/resources/scenario13/scenario13a.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/resources/scenario13/scenario13a.composite deleted file mode 100644 index a6e31ea5e2..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/resources/scenario13/scenario13a.composite +++ /dev/null @@ -1,64 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/resources/scenario2/META-INF/sca-contribution.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/resources/scenario2/META-INF/sca-contribution.xml deleted file mode 100644 index b51ef11b05..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/resources/scenario2/META-INF/sca-contribution.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/resources/scenario2/scenario2.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/resources/scenario2/scenario2.composite deleted file mode 100644 index 2fa559e1ed..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/resources/scenario2/scenario2.composite +++ /dev/null @@ -1,45 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/resources/scenario2/scenario2a.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/resources/scenario2/scenario2a.composite deleted file mode 100644 index 9fd3df07e8..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/resources/scenario2/scenario2a.composite +++ /dev/null @@ -1,47 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/resources/scenario3/META-INF/sca-contribution.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/resources/scenario3/META-INF/sca-contribution.xml deleted file mode 100644 index 22950dfe03..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/resources/scenario3/META-INF/sca-contribution.xml +++ /dev/null @@ -1,24 +0,0 @@ - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/resources/scenario3/scenario3.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/resources/scenario3/scenario3.composite deleted file mode 100644 index 84f42c60fc..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/resources/scenario3/scenario3.composite +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/resources/scenario3/scenario3a.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/resources/scenario3/scenario3a.composite deleted file mode 100644 index 89fa0619e4..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/resources/scenario3/scenario3a.composite +++ /dev/null @@ -1,48 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/resources/scenario4/META-INF/sca-contribution.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/resources/scenario4/META-INF/sca-contribution.xml deleted file mode 100644 index a17e27c9d8..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/resources/scenario4/META-INF/sca-contribution.xml +++ /dev/null @@ -1,24 +0,0 @@ - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/resources/scenario4/scenario4.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/resources/scenario4/scenario4.composite deleted file mode 100644 index a0bdb0197d..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/resources/scenario4/scenario4.composite +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/resources/scenario4/scenario4a.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/resources/scenario4/scenario4a.composite deleted file mode 100644 index fbf1b1a893..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/resources/scenario4/scenario4a.composite +++ /dev/null @@ -1,48 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/resources/scenario5/META-INF/sca-contribution.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/resources/scenario5/META-INF/sca-contribution.xml deleted file mode 100644 index 83a232db6e..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/resources/scenario5/META-INF/sca-contribution.xml +++ /dev/null @@ -1,24 +0,0 @@ - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/resources/scenario5/scenario5.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/resources/scenario5/scenario5.composite deleted file mode 100644 index 2326afd2f2..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/resources/scenario5/scenario5.composite +++ /dev/null @@ -1,46 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/resources/scenario5/scenario5a.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/resources/scenario5/scenario5a.composite deleted file mode 100644 index 802d82b0f3..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/resources/scenario5/scenario5a.composite +++ /dev/null @@ -1,47 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/resources/scenario5/scenarios.wsdl b/sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/resources/scenario5/scenarios.wsdl deleted file mode 100644 index 5cda7327dd..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/resources/scenario5/scenarios.wsdl +++ /dev/null @@ -1,63 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/resources/scenario6/META-INF/sca-contribution.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/resources/scenario6/META-INF/sca-contribution.xml deleted file mode 100644 index fb477d3e62..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/resources/scenario6/META-INF/sca-contribution.xml +++ /dev/null @@ -1,24 +0,0 @@ - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/resources/scenario6/scenario6.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/resources/scenario6/scenario6.composite deleted file mode 100644 index dadfc7eb82..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/resources/scenario6/scenario6.composite +++ /dev/null @@ -1,47 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/resources/scenario6/scenario6a.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/resources/scenario6/scenario6a.composite deleted file mode 100644 index 0c94b2bf06..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/resources/scenario6/scenario6a.composite +++ /dev/null @@ -1,47 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/resources/scenario6/scenarios.wsdl b/sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/resources/scenario6/scenarios.wsdl deleted file mode 100644 index 5cda7327dd..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/resources/scenario6/scenarios.wsdl +++ /dev/null @@ -1,63 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/resources/scenario7/META-INF/sca-contribution.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/resources/scenario7/META-INF/sca-contribution.xml deleted file mode 100644 index ede31d6bee..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/resources/scenario7/META-INF/sca-contribution.xml +++ /dev/null @@ -1,24 +0,0 @@ - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/resources/scenario7/scenario7.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/resources/scenario7/scenario7.composite deleted file mode 100644 index e1d2e0cefe..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/resources/scenario7/scenario7.composite +++ /dev/null @@ -1,45 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/resources/scenario7/scenario7a.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/resources/scenario7/scenario7a.composite deleted file mode 100644 index 76892f1515..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/resources/scenario7/scenario7a.composite +++ /dev/null @@ -1,49 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/resources/scenario7/scenarios.wsdl b/sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/resources/scenario7/scenarios.wsdl deleted file mode 100644 index 5cda7327dd..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/resources/scenario7/scenarios.wsdl +++ /dev/null @@ -1,63 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/resources/scenario8/META-INF/sca-contribution.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/resources/scenario8/META-INF/sca-contribution.xml deleted file mode 100644 index 7bb9e694a3..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/resources/scenario8/META-INF/sca-contribution.xml +++ /dev/null @@ -1,24 +0,0 @@ - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/resources/scenario8/scenario8.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/resources/scenario8/scenario8.composite deleted file mode 100644 index 467b7f57fa..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/resources/scenario8/scenario8.composite +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/resources/scenario8/scenario8a.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/resources/scenario8/scenario8a.composite deleted file mode 100644 index 86cf093f94..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/resources/scenario8/scenario8a.composite +++ /dev/null @@ -1,50 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/resources/scenario8/scenarios.wsdl b/sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/resources/scenario8/scenarios.wsdl deleted file mode 100644 index 5cda7327dd..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/resources/scenario8/scenarios.wsdl +++ /dev/null @@ -1,63 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/resources/scenario9/META-INF/sca-contribution.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/resources/scenario9/META-INF/sca-contribution.xml deleted file mode 100644 index b6ec160506..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/resources/scenario9/META-INF/sca-contribution.xml +++ /dev/null @@ -1,24 +0,0 @@ - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/resources/scenario9/scenario9.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/resources/scenario9/scenario9.composite deleted file mode 100644 index 83584ed482..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/resources/scenario9/scenario9.composite +++ /dev/null @@ -1,60 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/resources/scenario9/scenario9a.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/resources/scenario9/scenario9a.composite deleted file mode 100644 index 2861974c98..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/main/resources/scenario9/scenario9a.composite +++ /dev/null @@ -1,61 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/test/java/org/apache/tuscany/sca/itest/builder/BuilderTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/test/java/org/apache/tuscany/sca/itest/builder/BuilderTestCase.java deleted file mode 100644 index 6d41581371..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/test/java/org/apache/tuscany/sca/itest/builder/BuilderTestCase.java +++ /dev/null @@ -1,814 +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 org.apache.tuscany.sca.itest.builder; - -import javax.wsdl.Definition; -import javax.wsdl.Port; -import javax.xml.namespace.QName; - -import junit.framework.Assert; - -import org.apache.tuscany.sca.assembly.Component; -import org.apache.tuscany.sca.assembly.ComponentService; -import org.apache.tuscany.sca.assembly.Composite; -import org.apache.tuscany.sca.binding.ws.WebServiceBinding; -import org.junit.After; -import org.junit.Before; -import org.junit.Test; - -/** - * Load and build some composites and inspect the results. - * - * @version $Rev$ $Date$ - */ -public class BuilderTestCase { - private CustomCompositeBuilder customBuilder; - - @Before - public void setUp() throws Exception { - } - - @After - public void tearDown() throws Exception { - } - - /* OASIS doesn't take notice of top level composite services - * - // Scenario 1: on outer composite service CompositeA/Service1 - @Ignore - @Test - public void testScenario1() throws Exception { - System.out.println("====>Running testScenario1"); - customBuilder = new CustomCompositeBuilder(false); - customBuilder.loadContribution("scenario1.composite", "TestContribution", "src/main/resources/scenario1/"); - //TestUtils.printResults(customBuilder); - TestUtils.checkProblems(customBuilder); - checkScenario1Results(false); - } - - @Ignore - @Test - public void testScenario1NonWiring() throws Exception { - System.out.println("====>Running testScenario1NonWiring"); - customBuilder = new CustomCompositeBuilder(true); - customBuilder.loadContribution("scenario1.composite", "TestContribution", "src/main/resources/scenario1/"); - //TestUtils.printResults(customBuilder); - TestUtils.checkProblems(customBuilder); - checkScenario1Results(true); - } - - private void checkScenario1Results(boolean nonWiring) { - Composite domainComposite = customBuilder.getDomainComposite(); - - Component componentD = TestUtils.getComponent(domainComposite, "ComponentD"); - if (!nonWiring) { - // Should create component service $promoted$Service1 on innermost component - // ComponentD, with and uri="/Service1" - // No other services on ComponentD should have - WebServiceBinding wsBinding = null; - for (ComponentService service : componentD.getServices()) { - WebServiceBinding wsb = service.getBinding(WebServiceBinding.class); - if ("$promoted$Service1".equals(service.getName())) { - wsBinding = wsb; - } else { - assert wsb == null; - } - } - assert "/Service1".equals(wsBinding.getURI()); - - // Should create WSDL document for ComponentD/$promoted$Service1 with endpoint uri="/Service1" - Definition def = wsBinding.getWSDLDocument(); - javax.wsdl.Service svc = def.getService(new QName("http://builder.itest.sca.tuscany.apache.org/", "Service3Service")); - Port port = svc.getPort("Service3Port"); - assert "/Service1".equals(TestUtils.getPortAddress(port)); - } else { - // Should not create component service $promoted$Service1 on innermost component ComponentD - // No component services on ComponentD should have - for (ComponentService service : componentD.getServices()) { - assert !"$promoted$Service1".equals(service.getName()); - assert service.getBinding(WebServiceBinding.class) == null; - } - } - - // No services on ComponentB should have - Component componentB = TestUtils.getComponent(domainComposite, "ComponentB"); - for (ComponentService service : componentB.getServices()) { - assert service.getBinding(WebServiceBinding.class) == null; - } - - // No services on CompositeC should have - Composite compositeC = TestUtils.getComposite(domainComposite, new QName("http://scenario1", "CompositeC")); - for (Service service : compositeC.getServices()) { - assert service.getBinding(WebServiceBinding.class) == null; - } - - if (nonWiring) { - // Should not add a WSDL document to domain composite service Service1 - WebServiceBinding wsBinding = null; - for (Service service : domainComposite.getServices()) { - if ("Service1".equals(service.getName())) { - wsBinding = service.getBinding(WebServiceBinding.class); - } - } - assert wsBinding.getWSDLDocument() == null; - } - - String expectedEndpoints = "Component - ComponentB\n" + - "Service - Service2\n" + - "Endpoint - Service2\n" + - "Service - Service2a\n" + - "Endpoint - Service2a\n" + - "Reference - reference2\n" + - "Component - ComponentB has composite impl\n" + - " Component - ComponentD\n" + - " Service - Service3\n" + - " Endpoint - Service3\n" + - " Service - Service3a\n" + - " Endpoint - Service3a\n" + - " Reference - reference3"; - - String actualEndpoints = TestUtils.printEndpoints(domainComposite); - System.out.println(actualEndpoints); - - Assert.assertEquals(expectedEndpoints, actualEndpoints); - } -*/ - - // Scenario 2: on outer component service ComponentB/Service2 - @Test - public void testScenario2() throws Exception { - System.out.println("====>Running testScenario2"); - customBuilder = new CustomCompositeBuilder(false); - customBuilder.loadContribution("scenario2.composite", "TestContribution", "src/main/resources/scenario2/"); - //TestUtils.printResults(customBuilder); - TestUtils.checkProblems(customBuilder); - checkScenario2and3Results("http://scenario2", false); - } - - public void testScenario2NonWiring() throws Exception { - System.out.println("====>Running testScenario2NonWiring"); - customBuilder = new CustomCompositeBuilder(true); - customBuilder.loadContribution("scenario2.composite", "TestContribution", "src/main/resources/scenario2/"); - //TestUtils.printResults(customBuilder); - TestUtils.checkProblems(customBuilder); - checkScenario2and3Results("http://scenario2", true); - } - - private void checkScenario2and3Results(String namespace, boolean nonWiring) { - Composite domainComposite = customBuilder.getDomainComposite(); - - // Test that endpoint structure matches expected - String structure = TestUtils.printStructure(domainComposite, ""); - System.out.println(structure); - - String expectedStructure = "Component URI - ComponentB\n" + - " Component URI - ComponentB/ComponentD\n" + - " Endpoint: URI = ComponentB/ComponentD#service-binding(Service3/Service3) org.apache.tuscany.sca.assembly.impl.SCABindingImpl\n" + - " Endpoint: URI = ComponentB/ComponentD#service-binding(Service3a/Service3a) org.apache.tuscany.sca.assembly.impl.SCABindingImpl\n" + - "Endpoint: URI = ComponentB#service-binding(Service2/Service2) org.apache.tuscany.sca.binding.ws.impl.WebServiceBindingImpl\n" + - "Endpoint: URI = ComponentB#service-binding(Service2a/Service3a) org.apache.tuscany.sca.assembly.impl.SCABindingImpl\n"; - - Assert.assertEquals(expectedStructure, structure); - - // Test that generated WSDL matches expected - // Should create WSDL document for ComponentB/Service2 with endpoint uri="/ComponentB/Service2" - // No other services on ComponentB should have - Component componentB = TestUtils.getComponent(domainComposite, "ComponentB"); - WebServiceBinding wsBinding = null; - - for (ComponentService service : componentB.getServices()) { - WebServiceBinding wsb = service.getBinding(WebServiceBinding.class); - if ("Service2".equals(service.getName())) { - wsBinding = wsb; - } else { - assert wsb == null; - } - } - - Definition def = wsBinding.getWSDLDocument(); - TestUtils.writeWSDL(def); - - javax.wsdl.Service svc = def.getService(new QName("http://builder.itest.sca.tuscany.apache.org/", "Service3Service")); - Port port = svc.getPort("Service3Port"); - Assert.assertEquals("/ComponentB/Service2",TestUtils.getPortAddress(port)); - - } -/* - // Scenario 3: on inner composite service CompositeC/Service2 - public void testScenario3() throws Exception { - System.out.println("====>Running testScenario3"); - customBuilder = new CustomCompositeBuilder(false); - customBuilder.loadContribution("scenario3.composite", "TestContribution", "src/main/resources/scenario3/"); - //TestUtils.printResults(customBuilder); - TestUtils.checkProblems(customBuilder); - checkScenario2and3Results("http://scenario3", false); - } - - public void testScenario3NonWiring() throws Exception { - System.out.println("====>Running testScenario3NonWiring"); - customBuilder = new CustomCompositeBuilder(true); - customBuilder.loadContribution("scenario3.composite", "TestContribution", "src/main/resources/scenario3/"); - //TestUtils.printResults(customBuilder); - TestUtils.checkProblems(customBuilder); - checkScenario2and3Results("http://scenario3", true); - } - - // Scenario 4: on inner component service ComponentD/Service3 - public void testScenario4() throws Exception { - System.out.println("====>Running testScenario4"); - customBuilder = new CustomCompositeBuilder(false); - customBuilder.loadContribution("scenario4.composite", "TestContribution", "src/main/resources/scenario4/"); - //TestUtils.printResults(customBuilder); - TestUtils.checkProblems(customBuilder); - checkScenario4Results(false); - } - - public void testScenario4NonWiring() throws Exception { - System.out.println("====>Running testScenario4NonWiring"); - customBuilder = new CustomCompositeBuilder(true); - customBuilder.loadContribution("scenario4.composite", "TestContribution", "src/main/resources/scenario4/"); - //TestUtils.printResults(customBuilder); - TestUtils.checkProblems(customBuilder); - checkScenario4Results(true); - } - - private void checkScenario4Results(boolean nonWiring) { - Composite domainComposite = customBuilder.getDomainComposite(); - - // Should create WSDL document for ComponentD/Service3 with endpoint uri="/ComponentD/Service3" - Component componentD = TestUtils.getComponent(domainComposite, "ComponentD"); - WebServiceBinding wsBinding = null; - for (ComponentService service : componentD.getServices()) { - if ("Service3".equals(service.getName())) { - wsBinding = service.getBinding(WebServiceBinding.class); - } - } - Definition def = wsBinding.getWSDLDocument(); - javax.wsdl.Service svc = def.getService(new QName("http://builder.itest.sca.tuscany.apache.org/", "Service3Service")); - Port port = svc.getPort("Service3Port"); - assert "/ComponentB/ComponentD/Service3".equals(TestUtils.getPortAddress(port)); - - // Should add to inner composite service CompositeC/Service2 - // No other services on CompositeC should have - Composite compositeC = TestUtils.getComposite(domainComposite, new QName("http://scenario4", "CompositeC")); - wsBinding = null; - for (Service service : compositeC.getServices()) { - WebServiceBinding wsb = service.getBinding(WebServiceBinding.class); - if ("Service2".equals(service.getName())) { - wsBinding = wsb; - } else { - assert wsb == null; - } - } - assert "/ComponentB/Service2".equals(wsBinding.getURI()); - - // Should add to outer component service ComponentB/Service2 - // Should create WSDL document for ComponentB/Service2 with endpoint uri="/ComponentB/Service2" - // No other services on ComponentB should have - Component componentB = TestUtils.getComponent(domainComposite, "ComponentB"); - wsBinding = null; - for (ComponentService service : componentB.getServices()) { - WebServiceBinding wsb = service.getBinding(WebServiceBinding.class); - if ("Service2".equals(service.getName())) { - wsBinding = wsb; - } else { - assert wsb == null; - } - } - assert "/ComponentB/Service2".equals(wsBinding.getURI()); - def = wsBinding.getWSDLDocument(); - svc = def.getService(new QName("http://builder.itest.sca.tuscany.apache.org/", "Service3Service")); - port = svc.getPort("Service3Port"); - assert "/ComponentB/Service2".equals(TestUtils.getPortAddress(port)); - - if (!nonWiring) { - // Should create component service $promoted$ComponentB$slash$Service2 on innermost component - // ComponentD, with and uri="/ComponentB/Service2" - wsBinding = null; - for (ComponentService service : componentD.getServices()) { - if ("$promoted$ComponentB$slash$Service2".equals(service.getName())) { - wsBinding = service.getBinding(WebServiceBinding.class); - } - } - assert "/ComponentB/Service2".equals(wsBinding.getURI()); - - // Should create WSDL document for ComponentD/$promoted$ComponentB$slash$Service2 with endpoint uri="/ComponentB/Service2" - def = wsBinding.getWSDLDocument(); - svc = def.getService(new QName("http://builder.itest.sca.tuscany.apache.org/", "Service3Service")); - port = svc.getPort("Service3Port"); - assert "/ComponentB/Service2".equals(TestUtils.getPortAddress(port)); - } else { - // Should not create component service $promoted$ComponentB$slash$Service2 on innermost component ComponentD - for (ComponentService service : componentD.getServices()) { - assert !"$promoted$ComponentB$slash$Service2".equals(service.getName()); - } - } - - // Should add to outer composite service CompositeA/Service1 - wsBinding = null; - for (Service service : domainComposite.getServices()) { - if ("Service1".equals(service.getName())) { - wsBinding = service.getBinding(WebServiceBinding.class); - } - } - assert wsBinding != null; - if (nonWiring) { - // Should not add a WSDL document to domain composite service Service1 - assert wsBinding.getWSDLDocument() == null; - } - - if (!nonWiring) { - // Should create component service $promoted$Service1 on innermost component - // ComponentD, with and uri="/Service1" - wsBinding = null; - for (ComponentService service : componentD.getServices()) { - if ("$promoted$Service1".equals(service.getName())) { - wsBinding = service.getBinding(WebServiceBinding.class); - } - } - assert "/Service1".equals(wsBinding.getURI()); - - // Should create WSDL document for ComponentD/$promoted$Service1 with endpoint uri="/Service1" - def = wsBinding.getWSDLDocument(); - svc = def.getService(new QName("http://builder.itest.sca.tuscany.apache.org/", "Service3Service")); - port = svc.getPort("Service3Port"); - assert "/Service1".equals(TestUtils.getPortAddress(port)); - } else { - // Should not create component service $promoted$.Service1 on innermost component ComponentD - for (ComponentService service : componentD.getServices()) { - assert !"$promoted$Service1".equals(service.getName()); - } - } - - // No services on ComponentD should have , except for Service3, - // $promoted$.Service1 and $promoted$.ComponentB.Service2 - for (ComponentService service : componentD.getServices()) { - if (!"Service3".equals(service.getName()) && - !"$promoted$Service1".equals(service.getName()) && - !"$promoted$ComponentB$slash$Service2".equals(service.getName())) { - assert service.getBinding(WebServiceBinding.class) == null; - } - } - } - - // Scenario 5: and on outer composite reference CompositeA/reference1 - @Test - public void testScenario5() throws Exception { - System.out.println("====>Running testScenario5"); - customBuilder = new CustomCompositeBuilder(false); - customBuilder.loadContribution("scenario5.composite", "TestContribution", "src/main/resources/scenario5/"); - //TestUtils.printResults(customBuilder); - TestUtils.checkProblems(customBuilder); - checkScenario5Results(false); - } - - @Test - public void testScenario5NonWiring() throws Exception { - System.out.println("====>Running testScenario5NonWiring"); - customBuilder = new CustomCompositeBuilder(true); - customBuilder.loadContribution("scenario5.composite", "TestContribution", "src/main/resources/scenario5/"); - //TestUtils.printResults(customBuilder); - TestUtils.checkProblems(customBuilder); - checkScenario5Results(true); - } - - private void checkScenario5Results(boolean nonWiring) { - Composite domainComposite = customBuilder.getDomainComposite(); - - // Should not add to any outer component references - Component componentB = TestUtils.getComponent(domainComposite, "ComponentB"); - for (ComponentReference reference : componentB.getReferences()) { - assert reference.getBinding(WebServiceBinding.class) == null; - } - - Definition def; - javax.wsdl.Service svc; - Port port; - WebServiceBinding wsBinding; - Component componentD = TestUtils.getComponent(domainComposite, "ComponentD"); - if (!nonWiring) { - // Should add to inner component reference ComponentD/reference3 with uri="http://foo.com/bar" - // Should set on inner component reference ComponentD/reference3 - wsBinding = null; - for (ComponentReference reference : componentD.getReferences()) { - if ("reference3".equals(reference.getName())) { - wsBinding = reference.getBinding(WebServiceBinding.class); - assert reference.getInterfaceContract(wsBinding) instanceof WSDLInterfaceContract; - } - } - assert "http://foo.com/bar".equals(wsBinding.getURI()); - - // Should create WSDL document for ComponentD/reference3 with endpoint uri="http://foo.com/bar" - def = wsBinding.getWSDLDocument(); - svc = def.getService(new QName("http://scenarios/ComponentD/reference3", "Service3aService")); - port = svc.getPort("Service3aPort"); - assert "http://foo.com/bar".equals(TestUtils.getPortAddress(port)); - } else { - // Should not add to any inner component references - for (ComponentReference reference : componentD.getReferences()) { - assert reference.getBinding(WebServiceBinding.class) == null; - } - } - - // Should not add or to inner composite reference CompositeC/reference2 - Composite compositeC = TestUtils.getComposite(domainComposite, new QName("http://scenario5", "CompositeC")); - for (Reference reference : compositeC.getReferences()) { - assert reference.getBinding(WebServiceBinding.class) == null; - assert reference.getInterfaceContract() instanceof JavaInterfaceContract; - } - - String expectedEndpoints = "Component - ComponentB\n" + - "Service - Service2\n" + - "Endpoint - Service2\n" + - "Service - Service2a\n" + - "Endpoint - Service2a\n" + - "Reference - reference2\n" + - "Component - ComponentB has composite impl\n" + - " Component - ComponentD\n" + - " Service - Service3\n" + - " Endpoint - Service3\n" + - " Service - Service3a\n" + - " Endpoint - Service3a\n" + - " Reference - reference3"; - - String actualEndpoints = TestUtils.printEndpoints(domainComposite); - System.out.println(actualEndpoints); - - Assert.assertEquals(expectedEndpoints, actualEndpoints); - } - - - // Scenario 6: and on outer component reference ComponentB/reference2 - @Ignore - @Test - public void testScenario6() throws Exception { - System.out.println("====>Running testScenario6"); - customBuilder = new CustomCompositeBuilder(false); - customBuilder.loadContribution("scenario6.composite", "TestContribution", "src/main/resources/scenario6/"); - //TestUtils.printResults(customBuilder); - TestUtils.checkProblems(customBuilder); - checkScenario6and7Results("http://scenario6", false); - } - - @Ignore - @Test - public void testScenario6NonWiring() throws Exception { - System.out.println("====>Running testScenario6NonWiring"); - customBuilder = new CustomCompositeBuilder(true); - customBuilder.loadContribution("scenario6.composite", "TestContribution", "src/main/resources/scenario6/"); - //TestUtils.printResults(customBuilder); - TestUtils.checkProblems(customBuilder); - checkScenario6and7Results("http://scenario6", true); - } - - private void checkScenario6and7Results(String namespace, boolean nonWiring) { - Composite domainComposite = customBuilder.getDomainComposite(); - - // Should remove target= on ComponentB/reference2 (for Scenario 6) or - // CompositeC/reference2 (for Scenario 7), and add uri="http://foo.com/bar" - // to the element on ComponentB/reference2 - // For nonWiring, ComponentB/reference2 should have target= - // and no uri= should be added - Component componentB = TestUtils.getComponent(domainComposite, "ComponentB"); - WebServiceBinding wsBinding = null; - for (ComponentReference reference : componentB.getReferences()) { - if ("reference2".equals(reference.getName())) { - if (!nonWiring) { - assert reference.getTargets().size() == 0; - } else { - assert reference.getTargets().size() == 1; - } - wsBinding = reference.getBinding(WebServiceBinding.class); - } - } - if (!nonWiring) { - assert "http://foo.com/bar".equals(wsBinding.getURI()); - } else { - assert wsBinding.getURI() == null; - } - - Definition def; - javax.wsdl.Service svc; - Port port; - if (!nonWiring) { - // Should create WSDL document for ComponentB/reference2 with endpoint uri="http://foo.com/bar" - def = wsBinding.getWSDLDocument(); - svc = def.getService(new QName("http://scenarios/ComponentB/reference2", "Service3aService")); - port = svc.getPort("Service3aPort"); - assert "http://foo.com/bar".equals(TestUtils.getPortAddress(port)); - } - - Component componentD = TestUtils.getComponent(domainComposite, "ComponentD"); - if (!nonWiring) { - // Should add to inner component reference ComponentD/reference3 with uri="http://foo.com/bar" - // Should set on inner component reference ComponentD/reference3 - wsBinding = null; - for (ComponentReference reference : componentD.getReferences()) { - if ("reference3".equals(reference.getName())) { - wsBinding = reference.getBinding(WebServiceBinding.class); - assert reference.getBindings().size() == 1; - assert reference.getInterfaceContract(wsBinding) instanceof WSDLInterfaceContract; - } - } - assert "http://foo.com/bar".equals(wsBinding.getURI()); - - // Should create WSDL document for ComponentD/reference3 with endpoint uri="http://foo.com/bar" - def = wsBinding.getWSDLDocument(); - svc = def.getService(new QName("http://scenarios/ComponentB/reference2", "Service3aService")); - port = svc.getPort("Service3aPort"); - assert "http://foo.com/bar".equals(TestUtils.getPortAddress(port)); - } else { - // Should not add to any inner component references - for (ComponentReference reference : componentD.getReferences()) { - assert reference.getBinding(WebServiceBinding.class) == null; - } - } - - // No references on CompositeC should have or , except for - // reference2 in Scenario 7 - Composite compositeC = TestUtils.getComposite(domainComposite, new QName(namespace, "CompositeC")); - for (Reference reference : compositeC.getReferences()) { - if ("http://scenario7".equals(namespace) && "reference2".equals(reference.getName())) { - assert reference.getBinding(WebServiceBinding.class)!= null; - assert reference.getInterfaceContract() instanceof WSDLInterfaceContract; - } else { - assert reference.getBinding(WebServiceBinding.class) == null; - assert reference.getInterfaceContract() instanceof JavaInterfaceContract; - } - } - - // Should add and to outer composite reference CompositeA/reference1 - wsBinding = null; - for (Reference reference : domainComposite.getReferences()) { - if ("reference1".equals(reference.getName())) { - wsBinding = reference.getBinding(WebServiceBinding.class); - assert reference.getInterfaceContract() instanceof WSDLInterfaceContract; - } - } - assert wsBinding.getURI() == null; - - // Should not add a WSDL document to domain composite reference reference1 - assert wsBinding.getWSDLDocument() == null; - - String expectedEndpoints = "Component - ComponentB\n" + - "Service - Service2\n" + - "Endpoint - Service2\n" + - "Service - Service2a\n" + - "Endpoint - Service2a\n" + - "Reference - reference2\n" + - "Component - ComponentB has composite impl\n" + - " Component - ComponentD\n" + - " Service - Service3\n" + - " Endpoint - Service3\n" + - " Service - Service3a\n" + - " Endpoint - Service3a\n" + - " Reference - reference3"; - - String actualEndpoints = TestUtils.printEndpoints(domainComposite); - System.out.println(actualEndpoints); - - Assert.assertEquals(expectedEndpoints, actualEndpoints); - } - - // Scenario 7: and on inner composite reference CompositeC/reference2 - public void testScenario7() throws Exception { - System.out.println("====>Running testScenario7"); - customBuilder = new CustomCompositeBuilder(false); - customBuilder.loadContribution("scenario7.composite", "TestContribution", "src/main/resources/scenario7/"); - //TestUtils.printResults(customBuilder); - TestUtils.checkProblems(customBuilder); - checkScenario6and7Results("http://scenario7", false); - } - - public void testScenario7NonWiring() throws Exception { - System.out.println("====>Running testScenario7NonWiring"); - customBuilder = new CustomCompositeBuilder(true); - customBuilder.loadContribution("scenario7.composite", "TestContribution", "src/main/resources/scenario7/"); - //TestUtils.printResults(customBuilder); - TestUtils.checkProblems(customBuilder); - checkScenario6and7Results("http://scenario7", true); - } - - // Scenario 8: and on inner component reference ComponentD/reference3 - public void testScenario8() throws Exception { - System.out.println("====>Running testScenario8"); - customBuilder = new CustomCompositeBuilder(false); - customBuilder.loadContribution("scenario8.composite", "TestContribution", "src/main/resources/scenario8/"); - //TestUtils.printResults(customBuilder); - TestUtils.checkProblems(customBuilder); - checkScenario8Results(false); - } - - public void testScenario8NonWiring() throws Exception { - System.out.println("====>Running testScenario8NonWiring"); - customBuilder = new CustomCompositeBuilder(true); - customBuilder.loadContribution("scenario8.composite", "TestContribution", "src/main/resources/scenario8/"); - //TestUtils.printResults(customBuilder); - TestUtils.checkProblems(customBuilder); - checkScenario8Results(true); - } - - private void checkScenario8Results(boolean nonWiring) { - Composite domainComposite = customBuilder.getDomainComposite(); - - // Should replace target= on ComponentD/reference3 by uri="http://foo.com/bar" on - // For nonWiring, the original target= is preserved and there is no uri= - Component componentD = TestUtils.getComponent(domainComposite, "ComponentD"); - WebServiceBinding wsBinding = null; - for (ComponentReference reference : componentD.getReferences()) { - if ("reference3".equals(reference.getName())) { - if (!nonWiring) { - assert reference.getTargets().size() == 0; - } else { - assert reference.getTargets().size() == 1; - } - wsBinding = reference.getBinding(WebServiceBinding.class); - } - } - if (!nonWiring) { - assert "http://foo.com/bar".equals(wsBinding.getURI()); - } else { - assert wsBinding.getURI() == null; - } - - Definition def; - javax.wsdl.Service svc; - Port port; - if (!nonWiring) { - // Should create WSDL document for ComponentD/reference3 with endpoint uri="http://foo.com/bar" - def = wsBinding.getWSDLDocument(); - svc = def.getService(new QName("http://scenarios/ComponentD/reference3", "Service3aService")); - port = svc.getPort("Service3aPort"); - assert "http://foo.com/bar".equals(TestUtils.getPortAddress(port)); - } - - // Should add and to inner composite reference CompositeC/reference2 - Composite compositeC = TestUtils.getComposite(domainComposite, new QName("http://scenario8", "CompositeC")); - wsBinding = null; - for (Reference reference : compositeC.getReferences()) { - if ("reference2".equals(reference.getName())) { - wsBinding = reference.getBinding(WebServiceBinding.class); - assert reference.getInterfaceContract() instanceof WSDLInterfaceContract; - } - } - assert wsBinding.getURI() == null; - - // Should add and to outer component reference ComponentB/reference2 - Component componentB = TestUtils.getComponent(domainComposite, "ComponentB"); - wsBinding = null; - for (ComponentReference reference : componentB.getReferences()) { - if ("reference2".equals(reference.getName())) { - wsBinding = reference.getBinding(WebServiceBinding.class); - assert reference.getInterfaceContract() instanceof WSDLInterfaceContract; - } - } - assert wsBinding.getURI() == null; - - // Should add and to outer composite reference CompositeA/reference1 - wsBinding = null; - for (Reference reference : domainComposite.getReferences()) { - if ("reference1".equals(reference.getName())) { - wsBinding = reference.getBinding(WebServiceBinding.class); - assert reference.getInterfaceContract() instanceof WSDLInterfaceContract; - } - } - assert wsBinding.getURI() == null; - - // Should not add a WSDL document to domain composite reference reference1 - assert wsBinding.getWSDLDocument() == null; - } - - // Scenario 9: target in reference CDR3A and binding.ws uri= at CAR1A - public void testScenario9() throws Exception { - System.out.println("====>Running testScenario9"); - customBuilder = new CustomCompositeBuilder(false); - customBuilder.loadContribution("scenario9.composite", "TestContribution", "src/main/resources/scenario9/"); - //TestUtils.printResults(customBuilder); - TestUtils.checkProblems(customBuilder); - checkScenario9Results(); - } - - private void checkScenario9Results() { - Composite domainComposite = customBuilder.getDomainComposite(); - - Component componentD = TestUtils.getComponent(domainComposite, "ComponentD"); - ComponentReference componentRef = null; - for (ComponentReference reference : componentD.getReferences()) { - if ("reference3a".equals(reference.getName())) { - componentRef = reference; - assertTrue(reference.getBindings().size() == 2); - assertTrue(reference.getBindings().get(0) instanceof SCABinding); - assertTrue(reference.getBindings().get(1) instanceof WebServiceBinding); - } - } - assertTrue(componentRef != null); - } - - // Scenario 10: targets in references CBR2A and CDR3A and binding.ws at CBR2A - public void testScenario10() throws Exception { - System.out.println("====>Running testScenario10"); - customBuilder = new CustomCompositeBuilder(false); - customBuilder.loadContribution("scenario10.composite", "TestContribution", "src/main/resources/scenario10/"); - //TestUtils.printResults(customBuilder); - TestUtils.checkProblems(customBuilder); - checkScenario10And11Results(); - } - - // Scenario 11: targets in references CBR2A and CDR3A and binding.ws at CCR2A - public void testScenario11() throws Exception { - System.out.println("====>Running testScenario11"); - customBuilder = new CustomCompositeBuilder(false); - customBuilder.loadContribution("scenario11.composite", "TestContribution", "src/main/resources/scenario11/"); - //TestUtils.printResults(customBuilder); - TestUtils.checkProblems(customBuilder); - checkScenario10And11Results(); - } - - private void checkScenario10And11Results() { - Composite domainComposite = customBuilder.getDomainComposite(); - - Component componentD = TestUtils.getComponent(domainComposite, "ComponentD"); - ComponentReference componentRef = null; - for (ComponentReference reference : componentD.getReferences()) { - if ("reference3a".equals(reference.getName())) { - componentRef = reference; - assertTrue(reference.getBindings().size() == 2); - Binding binding1 = reference.getBindings().get(0); - assertTrue(binding1 instanceof SCABinding); - assertTrue(reference.getInterfaceContract(binding1) instanceof JavaInterfaceContract); - Binding binding2 = reference.getBindings().get(1); - assertTrue(binding2 instanceof WebServiceBinding); - assertTrue(reference.getInterfaceContract(binding2) instanceof WSDLInterfaceContract); - } - } - assertTrue(componentRef != null); - } - - // Scenario 12: targets in references CBR2A and CDR3A and binding.ws at CDR3A - public void testScenario12() throws Exception { - System.out.println("====>Running testScenario12"); - customBuilder = new CustomCompositeBuilder(false); - customBuilder.loadContribution("scenario12.composite", "TestContribution", "src/main/resources/scenario12/"); - //TestUtils.printResults(customBuilder); - TestUtils.checkProblems(customBuilder); - checkScenario12Results(); - } - - private void checkScenario12Results() { - Composite domainComposite = customBuilder.getDomainComposite(); - - Component componentD = TestUtils.getComponent(domainComposite, "ComponentD"); - ComponentReference componentRef = null; - for (ComponentReference reference : componentD.getReferences()) { - if ("reference3a".equals(reference.getName())) { - componentRef = reference; - assertTrue(reference.getBindings().size() == 2); - assertTrue(reference.getBindings().get(0) instanceof WebServiceBinding); - assertTrue(reference.getBindings().get(1) instanceof WebServiceBinding); - } - } - assertTrue(componentRef != null); - } - - // Scenario 13: target in reference CDR3A - public void testScenario13() throws Exception { - System.out.println("====>Running testScenario13"); - customBuilder = new CustomCompositeBuilder(false); - customBuilder.loadContribution("scenario13.composite", "TestContribution", "src/main/resources/scenario13/"); - //TestUtils.printResults(customBuilder); - TestUtils.checkProblems(customBuilder); - checkScenario13Results(); - } - - private void checkScenario13Results() { - Composite domainComposite = customBuilder.getDomainComposite(); - - Component componentD = TestUtils.getComponent(domainComposite, "ComponentD"); - ComponentReference componentRef = null; - for (ComponentReference reference : componentD.getReferences()) { - if ("reference3a".equals(reference.getName())) { - componentRef = reference; - assertTrue(reference.getBindings().size() == 1); - assertTrue(reference.getBindings().get(0) instanceof WebServiceBinding); - } - } - assertTrue(componentRef != null); - } -*/ -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/test/java/org/apache/tuscany/sca/itest/builder/CustomCompositeBuilder.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/test/java/org/apache/tuscany/sca/itest/builder/CustomCompositeBuilder.java deleted file mode 100644 index 897cd21e8a..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/test/java/org/apache/tuscany/sca/itest/builder/CustomCompositeBuilder.java +++ /dev/null @@ -1,99 +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 org.apache.tuscany.sca.itest.builder; - -import javax.xml.stream.XMLOutputFactory; - -import org.apache.tuscany.sca.assembly.Composite; -import org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessor; -import org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessorExtensionPoint; -import org.apache.tuscany.sca.core.ExtensionPointRegistry; -import org.apache.tuscany.sca.core.UtilityExtensionPoint; -import org.apache.tuscany.sca.monitor.Monitor; -import org.apache.tuscany.sca.monitor.MonitorFactory; -import org.apache.tuscany.sca.node.Contribution; -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; -import org.apache.tuscany.sca.node.impl.NodeImpl; -import org.apache.tuscany.sca.runtime.CompositeActivator; - - -public class CustomCompositeBuilder { - - private boolean nonWiring; - private Node node; - private ExtensionPointRegistry extensionPoints; - private Monitor monitor; - private StAXArtifactProcessor compositeProcessor; - - public CustomCompositeBuilder(boolean nonWiring) { - this.nonWiring = nonWiring; - } - - public void loadContribution(String compositeURL, String sourceURI, String sourceURL) throws Exception { - NodeFactory nodeFactory = NodeFactory.newInstance(); - node = nodeFactory.createNode(compositeURL, new Contribution(sourceURI, sourceURL)); - node.start(); - - // get some things out of the extension registry - extensionPoints = ((NodeImpl)node).getExtensionPointRegistry(); - - UtilityExtensionPoint utilities = extensionPoints.getExtensionPoint(UtilityExtensionPoint.class); - MonitorFactory monitorFactory = utilities.getUtility(MonitorFactory.class); - monitor = monitorFactory.createMonitor(); - - StAXArtifactProcessorExtensionPoint xmlProcessors = extensionPoints.getExtensionPoint(StAXArtifactProcessorExtensionPoint.class); - compositeProcessor = xmlProcessors.getProcessor(Composite.class); - - CompositeActivator compositeActivator = utilities.getUtility(CompositeActivator.class); - } - - /** - * Returns the delegating model processor. - * @return the delegating model processor - */ - public StAXArtifactProcessor getModelProcessor() { - return null;//compositeProcessor; - } - - /** - * Returns the XML output factory. - * @return the XML output factory - */ - public XMLOutputFactory getOutputFactory() { - return null; //outputFactory; - } - - /** - * Returns the domain composite. - * @return the domain composite model object - */ - public Composite getDomainComposite() { - return (Composite) ((NodeImpl)node).getDomainComposite(); - } - - /** - * Returns the monitor. - * @return the monitor instance - */ - public Monitor getMonitor() { - return monitor; - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/test/java/org/apache/tuscany/sca/itest/builder/TestUtils.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/test/java/org/apache/tuscany/sca/itest/builder/TestUtils.java deleted file mode 100644 index c5eb7a70ea..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/builder/src/test/java/org/apache/tuscany/sca/itest/builder/TestUtils.java +++ /dev/null @@ -1,319 +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 org.apache.tuscany.sca.itest.builder; - -import java.io.ByteArrayInputStream; -import java.io.ByteArrayOutputStream; - -import javax.wsdl.Definition; -import javax.wsdl.Port; -import javax.wsdl.WSDLException; -import javax.wsdl.extensions.soap.SOAPAddress; -import javax.wsdl.extensions.soap12.SOAP12Address; -import javax.wsdl.factory.WSDLFactory; -import javax.wsdl.xml.WSDLWriter; -import javax.xml.namespace.QName; -import javax.xml.parsers.DocumentBuilder; -import javax.xml.parsers.DocumentBuilderFactory; -import javax.xml.stream.XMLStreamWriter; - -import org.apache.tuscany.sca.assembly.Binding; -import org.apache.tuscany.sca.assembly.Component; -import org.apache.tuscany.sca.assembly.ComponentReference; -import org.apache.tuscany.sca.assembly.ComponentService; -import org.apache.tuscany.sca.assembly.Composite; -import org.apache.tuscany.sca.assembly.Contract; -import org.apache.tuscany.sca.assembly.Endpoint; -import org.apache.tuscany.sca.assembly.EndpointReference; -import org.apache.tuscany.sca.assembly.Implementation; -import org.apache.tuscany.sca.assembly.Reference; -import org.apache.tuscany.sca.assembly.Service; -import org.apache.tuscany.sca.assembly.impl.EndpointImpl; -import org.apache.tuscany.sca.assembly.impl.EndpointReferenceImpl; -import org.apache.tuscany.sca.binding.ws.WebServiceBinding; -import org.apache.tuscany.sca.contribution.processor.ProcessorContext; -import org.apache.tuscany.sca.monitor.Problem; -import org.apache.xml.serialize.OutputFormat; -import org.apache.xml.serialize.XMLSerializer; -import org.w3c.dom.Document; - -/** - * Static utility methods for use by test cases. - * - * @version $Rev$ $Date$ - */ -public class TestUtils { - - protected static void checkProblems(CustomCompositeBuilder customBuilder) throws Exception { - boolean problems = false; - for (Problem problem : customBuilder.getMonitor().getProblems()) { - if (problem.getCause() != null) { - problem.getCause().printStackTrace(); - } - if (problem.getSeverity() == Problem.Severity.ERROR){ - problems = true; - } - } - assert !problems; - } - - protected static String getPortAddress(Port port) { - Object ext = port.getExtensibilityElements().get(0); - String returnAddress = null; - if (ext instanceof SOAPAddress) { - returnAddress = ((SOAPAddress)ext).getLocationURI(); - } - if (ext instanceof SOAP12Address) { - returnAddress = ((SOAP12Address)ext).getLocationURI(); - } - - returnAddress = returnAddress.substring(returnAddress.indexOf("//") + 2); - returnAddress = returnAddress.substring(returnAddress.indexOf("/")); - - return returnAddress; - } - - protected static Component getComponent(Composite composite, String name) { - for (Component component : composite.getComponents()) { - if (name.equals(component.getName())) { - return component; - } - // process implementation composites recursively - Implementation impl = component.getImplementation(); - if (impl instanceof Composite) { - Component comp = getComponent((Composite)impl, name); - if (comp != null) { - return comp; - } - } - } - return null; - } - - protected static Composite getComposite(Composite composite, QName name) { - if (name.equals(composite.getName())) { - return composite; - } - for (Component component : composite.getComponents()) { - // process implementation composites recursively - Implementation impl = component.getImplementation(); - if (impl instanceof Composite) { - Composite comp = getComposite((Composite)impl, name); - if (comp != null) { - return comp; - } - } - } - return null; - } - - protected static void printResults(CustomCompositeBuilder customBuilder) throws Exception { - for (Problem problem : customBuilder.getMonitor().getProblems()) { - if (problem.getCause() != null) { - problem.getCause().printStackTrace(); - } - } - Composite domainComposite = customBuilder.getDomainComposite(); - printComposite(domainComposite, customBuilder); - } - - private static void printComposite(Composite composite, CustomCompositeBuilder customBuilder) throws Exception { - // process implementation composites recursively - for (Component component : composite.getComponents()) { - Implementation implementation = component.getImplementation(); - if (implementation instanceof Composite) { - printComposite((Composite)implementation, customBuilder); - } - } - - // write out the SCDL - writeSCDL(composite, customBuilder); - - // find all the component service and reference bindings - for (Component component : composite.getComponents()) { - for (ComponentService componentService : component.getServices()) { - for (Binding binding : componentService.getBindings()) { - if (binding instanceof WebServiceBinding) { - writeWSDL(component, componentService, ((WebServiceBinding)binding).getWSDLDocument()); - } - } - } - for (ComponentReference componentReference : component.getReferences()) { - for (Binding binding : componentReference.getBindings()) { - if (binding instanceof WebServiceBinding) { - writeWSDL(component, componentReference, ((WebServiceBinding)binding).getWSDLDocument()); - } - } - } - } - - // find all the composite service and reference bindings - for (Service service : composite.getServices()) { - for (Binding binding : service.getBindings()) { - if (binding instanceof WebServiceBinding) { - writeWSDL(null, service, ((WebServiceBinding)binding).getWSDLDocument()); - } - } - } - for (Reference reference : composite.getReferences()) { - for (Binding binding : reference.getBindings()) { - if (binding instanceof WebServiceBinding) { - writeWSDL(null, reference, ((WebServiceBinding)binding).getWSDLDocument()); - } - } - } - } - - private static void writeSCDL(Composite composite, CustomCompositeBuilder customBuilder) throws Exception { - // Print out a composite - ByteArrayOutputStream bos = new ByteArrayOutputStream(); - XMLStreamWriter writer = customBuilder.getOutputFactory().createXMLStreamWriter(bos); - customBuilder.getModelProcessor().write(composite, writer, new ProcessorContext()); - - // Parse and write again to pretty format it - DocumentBuilder documentBuilder = DocumentBuilderFactory.newInstance().newDocumentBuilder(); - Document document = documentBuilder.parse(new ByteArrayInputStream(bos.toByteArray())); - OutputFormat format = new OutputFormat(); - format.setIndenting(true); - format.setIndent(2); - XMLSerializer serializer = new XMLSerializer(System.out, format); - System.out.println("-->Runtime SCDL model for composite " + composite.getName()); - serializer.serialize(document); - } - - private static void writeWSDL(Component component, Contract contract, Definition definition) { - if (definition == null) { - System.out.println("-->No generated WSDL for " + (component != null ? component.getName() : "") + "/" + contract.getName()); - } else { - try { - System.out.println("-->Generated WSDL for " + (component != null ? component.getName() : "") + "/" + contract.getName()); - WSDLWriter writer = WSDLFactory.newInstance().newWSDLWriter(); - writer.writeWSDL(definition, System.out); - } catch (WSDLException e) { - // ignore - } - } - } - - protected static void writeWSDL(Definition definition) { - try { - WSDLWriter writer = WSDLFactory.newInstance().newWSDLWriter(); - writer.writeWSDL(definition, System.out); - } catch (WSDLException e) { - // ignore - } - } - - protected static String printStructure(Composite composite, String indent){ - String structure = ""; - for (Component component : composite.getComponents()){ - structure += indent + "Component URI - " + component.getURI() + "\n"; - - // recurse for composite implementations - Implementation implementation = component.getImplementation(); - if (implementation instanceof Composite) { - structure += printStructure((Composite)implementation, indent + " "); - } - - for (Service service : component.getServices()){ - for (Endpoint endpoint : service.getEndpoints()){ - structure += indent + ((EndpointImpl)endpoint).toStringWithoutHash() + " " + endpoint.getBinding().getClass().getName() + "\n"; - } - } - for (Reference reference : component.getReferences()){ - for (EndpointReference endpointReference : reference.getEndpointReferences()){ - structure += indent + ((EndpointReferenceImpl)endpointReference).toStringWithoutHash() + " " + endpointReference.getBinding().getClass().getName() + "\n"; - } - } - } - return structure; - } -/* - protected static String printEndpoints(Composite composite){ - return printEndpoints(composite, ""); - } - - protected static String printEndpoints(Composite composite, String indent){ - - String buffer = ""; - - for (Component component : composite.getComponents()) { - buffer += indent + "Component - " + component.getName() + "\n"; - - // print component service endpoints - for (ComponentService componentService : component.getServices()) { - buffer += indent + "Service - " + componentService.getName() + "\n"; - for (Endpoint endpoint : componentService.getEndpoints()) { - if (endpoint.getBinding() != null){ - buffer += printEndpoint(endpoint, indent); - } - } - } - - for (ComponentReference componentReference : component.getReferences()) { - buffer += indent + "Reference - " + componentReference.getName() + "\n"; - for (EndpointReference endpointReference : componentReference.getEndpointReferences()) { - buffer += printEndpointReference(endpointReference, indent); - } - } - - // process implementation composites recursively - Implementation implementation = component.getImplementation(); - if (implementation instanceof Composite) { - buffer += indent + "Component - " + component.getName() + " has composite impl" + "\n"; - buffer += printEndpoints((Composite)implementation, indent + " "); - } - } - - return buffer; - } - - protected static String printEndpoint(Endpoint endpoint, String indent){ - String buffer = ""; - - buffer += indent + " Endpoint - Component: " + endpoint.getComponent().getName() +"\n"; - buffer += indent + " Service: " + endpoint.getService().getName() +"\n"; - buffer += indent + " Binding: " + endpoint.getBinding().getName() +"\n"; - - return buffer; - } - - protected static String printEndpointReference(EndpointReference endpointReference, String indent){ - String buffer = ""; - - buffer += indent + " EndpointReference - Component: " + endpointReference.getComponent().getName() +"\n"; - buffer += indent + " Reference: " + endpointReference.getReference().getName() +"\n"; - if (endpointReference.getTargetEndpoint() != null){ - buffer += indent + " Wired: " +"\n"; - buffer += indent + " Target: " + endpointReference.getTargetEndpoint().getComponent().getName()+"\n"; - if (endpointReference.getTargetEndpoint() != null && - endpointReference.getTargetEndpoint().isUnresolved() == false){ - buffer += indent + " Binding: " + endpointReference.getBinding().getName() +"\n"; - buffer += indent + " TargetEndpoint: " + endpointReference.getTargetEndpoint().getBinding().getName()+"\n"; - } else { - buffer += indent + " Unresolved: " +"\n"; - } - } else { - buffer += indent + " NonWired: " +"\n"; - } - - return buffer; - } -*/ -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-api/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-api/pom.xml deleted file mode 100644 index 1633abdb56..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-api/pom.xml +++ /dev/null @@ -1,58 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-itest - 2.0-M5 - ../pom.xml - - itest-callback-api - Apache Tuscany SCA iTest Callback API - - - - org.apache.tuscany.sca - tuscany-node-api - 2.0-M5 - - - - org.apache.tuscany.sca - tuscany-node-impl - 2.0-M5 - test - - - - org.apache.tuscany.sca - tuscany-implementation-java-runtime - 2.0-M5 - test - - - - - - ${basedir}/../build-was-integration.xml - ${basedir}/../wasAdmin.py - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-api/src/main/java/org/apache/tuscany/sca/test/CallBackApiCallBack.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-api/src/main/java/org/apache/tuscany/sca/test/CallBackApiCallBack.java deleted file mode 100644 index b013462f9f..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-api/src/main/java/org/apache/tuscany/sca/test/CallBackApiCallBack.java +++ /dev/null @@ -1,38 +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 org.apache.tuscany.sca.test; - -import org.oasisopen.sca.annotation.Remotable; - -@Remotable -/** - * - */ -public interface CallBackApiCallBack { - /** - * This function is defined in CallBackApiClientImpl - */ - void callBackMessage(String aString); - - /** - * This function is defined in CallBackApiClientImpl - */ - void callBackIncrement(String aString); - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-api/src/main/java/org/apache/tuscany/sca/test/CallBackApiClient.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-api/src/main/java/org/apache/tuscany/sca/test/CallBackApiClient.java deleted file mode 100644 index 252e4dc45f..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-api/src/main/java/org/apache/tuscany/sca/test/CallBackApiClient.java +++ /dev/null @@ -1,30 +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 org.apache.tuscany.sca.test; - -import org.oasisopen.sca.annotation.Remotable; - -@Remotable -public interface CallBackApiClient { - /** - * This function is defined in CallBackApiClientImpl - */ - void run(); - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-api/src/main/java/org/apache/tuscany/sca/test/CallBackApiClientImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-api/src/main/java/org/apache/tuscany/sca/test/CallBackApiClientImpl.java deleted file mode 100644 index d883dc2d6f..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-api/src/main/java/org/apache/tuscany/sca/test/CallBackApiClientImpl.java +++ /dev/null @@ -1,201 +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 org.apache.tuscany.sca.test; - -import org.junit.Assert; -import org.oasisopen.sca.annotation.Reference; -import org.oasisopen.sca.annotation.Service; - -@Service(CallBackApiClient.class) -public class CallBackApiClientImpl implements CallBackApiClient, CallBackApiCallBack { - - @Reference - protected CallBackApiService aCallBackService; - - private static String returnMessage = null; - private static int callBackCount = 0; - private static Object monitor = new Object(); - - /** - * This test calls function test 3a,3a1,3b,3c - */ - public void run() { - - // This tests basic callback patterns. - - // Test3a is the basic callback where the target calls back prior to - // returning to the client. - test3a(); - - test3a1(); - - // Test3b is where the target does not call back to the client. - test3b(); - - // Test3c is where the target calls back multiple times to the client. - test3c(); - } - - /** - * This test is the basic callback where the target calls back prior to returning to the client. - */ - - private void test3a() { - aCallBackService.knockKnock("Knock Knock"); - int count = 0; - - // - // If we can't get a response in 30 seconds consider this a failure - // - - synchronized (monitor) { - while (returnMessage == null && count++ < 30) { - try { - monitor.wait(1000L); - } catch (InterruptedException e) { - e.printStackTrace(); - } - } - } - - Assert.assertEquals("CallBackApiITest - test3a", "Who's There", this.getReturnMessage()); - - } - - /** - * This test is the basic callback where the target calls back prior to returning to the client. - */ - private void test3a1() { - aCallBackService.knockKnockByRef("Knock Knock"); - int count = 0; - - // - // If we can't get a response in 30 seconds consider this a failure - // - - synchronized (monitor) { - while (returnMessage == null && count++ < 30) { - try { - monitor.wait(1000L); - } catch (InterruptedException e) { - e.printStackTrace(); - } - } - } - - Assert.assertEquals("CallBackApiITest - test3a", "Who's There", this.getReturnMessage()); - - } - - /** - * This test is the basic callback where the target does not call back to the client - */ - private void test3b() { - aCallBackService.noCallBack("No Reply Desired"); - Assert.assertEquals("CallBackApiITest - test3b", 1, 1); - } - - /** - * This test is the basic callback where the target calls back multiple times to the client - */ - - private void test3c() { - aCallBackService.multiCallBack("Call me back 3 times"); - int count = 0; - - // - // If we can't get a response in 30 seconds consider this a failure - // - - synchronized (monitor) { - while (this.getCallBackCount() < 3 && count++ < 30) { - try { - monitor.wait(1000L); - } catch (InterruptedException e) { - e.printStackTrace(); - } - } - } - - Assert.assertEquals("CallBackApiITest - test3c", 3, this.getCallBackCount()); - } - - /** - * This function returns a string - * - * @param void - * @return String result string - */ - - public String getReturnMessage() { - return returnMessage; - } - - /** - * This function set the returnMessage string - * - * @param String - */ - public void setReturnMessage(String aReturnMessage) { - returnMessage = aReturnMessage; - } - - /** - * This function returns the callBackCount variable - * - * @return Integer callBackCount variable - */ - public int getCallBackCount() { - return callBackCount; - } - - /** - * This function increments callBackCount variable by 1 - */ - public void incrementCallBackCount() { - callBackCount++; - } - - /** - * This function prints a message synched with setReturnMessage function - * - * @param String - */ - public void callBackMessage(String aString) { - System.out.println("Entering callback callBackMessage: " + aString); - synchronized (monitor) { - this.setReturnMessage(aString); - monitor.notify(); - } - } - - /** - * This function prints a message synched with incrementCallBackCount function - * - * @param String - */ - public void callBackIncrement(String aString) { - System.out.println("Entering callback increment: " + aString); - synchronized (monitor) { - this.incrementCallBackCount(); - monitor.notify(); - } - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-api/src/main/java/org/apache/tuscany/sca/test/CallBackApiService.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-api/src/main/java/org/apache/tuscany/sca/test/CallBackApiService.java deleted file mode 100644 index afb7c45e2c..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-api/src/main/java/org/apache/tuscany/sca/test/CallBackApiService.java +++ /dev/null @@ -1,50 +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 org.apache.tuscany.sca.test; - -import org.oasisopen.sca.annotation.Callback; -import org.oasisopen.sca.annotation.Remotable; - -@Remotable -@Callback(CallBackApiCallBack.class) -/** - * - */ -public interface CallBackApiService { - /** - * This function is defined in CallBackApiServiceImpl - */ - void knockKnock(String aString); - - /** - * This function is defined in CallBackApiServiceImpl - */ - void knockKnockByRef(String aString); - - /** - * This function is defined in CallBackApiServiceImpl - */ - void noCallBack(String aString); - - /** - * This function is defined in CallBackApiServiceImpl - */ - void multiCallBack(String aString); - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-api/src/main/java/org/apache/tuscany/sca/test/CallBackApiServiceImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-api/src/main/java/org/apache/tuscany/sca/test/CallBackApiServiceImpl.java deleted file mode 100644 index 44f57b4316..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-api/src/main/java/org/apache/tuscany/sca/test/CallBackApiServiceImpl.java +++ /dev/null @@ -1,113 +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 org.apache.tuscany.sca.test; - -import org.oasisopen.sca.ComponentContext; -import org.oasisopen.sca.RequestContext; -import org.oasisopen.sca.ServiceReference; -import org.oasisopen.sca.annotation.Callback; -import org.oasisopen.sca.annotation.Context; -import org.oasisopen.sca.annotation.Service; - -@Service(CallBackApiService.class) -public class CallBackApiServiceImpl implements CallBackApiService { - - @Context - protected ComponentContext componentContext; - /** - * Object of CallBackApiCallBack class - */ - private CallBackApiCallBack callback; - - @Callback - protected ServiceReference callbackRef; - - /** - * This function get an object of CallBackApiServiceImpl by calling getCallBackInterface function and calls the - * callBackMessage function. - * - * @param aString String passed by a function call - */ - - public void knockKnock(String aString) { - - System.out.println("CallBackApiServiceImpl message received: " + aString); - callback = this.getCallBackInterface(); - callback.callBackMessage("Who's There"); - System.out.println("CallBackApiServiceImpl response sent"); - } - - /** - * This function calls the callBackMessage function.
- * The reference to this function is received from Call back reference to the class CallBackApiService. - * - * @param aString String passed by a function call - */ - public void knockKnockByRef(String aString) { - - System.out.println("CallBackApiServiceImpl message received: " + aString); - callbackRef.getService().callBackMessage("Who's There"); - System.out.println("CallBackApiServiceImpl response sent"); - } - - /** - * This function get an object of CallBackApiServiceImpl by calling getCallBackInterface function.
- * This function then places multiple callBack using the callbackIncrement function defined in - * callBack.ApiServiceImpl - * - * @param aString String passed by a function call - */ - public void multiCallBack(String aString) { - - callback = this.getCallBackInterface(); - - System.out.println("CallBackApiServiceImpl message received: " + aString); - callback.callBackIncrement("Who's There 1"); - System.out.println("CallBackApiServiceImpl response sent"); - callback.callBackIncrement("Who's There 2"); - System.out.println("CallBackApiServiceImpl response sent"); - callback.callBackIncrement("Who's There 3"); - System.out.println("CallBackApiServiceImpl response sent"); - } - - /** - * This function does not callBack any function. - * - * @param aString String passed by a function call - */ - public void noCallBack(String aString) { - System.out.println("CallBackApiServiceImpl message received: " + aString); - } - - /** - * This function get an object of CallBackApiServiceImpl from the present componentContext - * - * @param void - */ - private CallBackApiCallBack getCallBackInterface() { - System.out.println("CallBackApiServiceImpl getting request context"); - RequestContext rc = componentContext.getRequestContext(); - System.out.println("CallBackApiServiceImpl getting callback from request context"); - callback = rc.getCallback(); - System.out.println("CallBackApiServiceImpl returning callback"); - return callback; - - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-api/src/main/resources/CallBackApiTest.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-api/src/main/resources/CallBackApiTest.composite deleted file mode 100644 index a67233665c..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-api/src/main/resources/CallBackApiTest.composite +++ /dev/null @@ -1,33 +0,0 @@ - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-api/src/main/resources/META-INF/sca-contribution.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-api/src/main/resources/META-INF/sca-contribution.xml deleted file mode 100644 index b1a01e9f7b..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-api/src/main/resources/META-INF/sca-contribution.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-api/src/test/java/org/apache/tuscany/sca/test/CallBackApiTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-api/src/test/java/org/apache/tuscany/sca/test/CallBackApiTestCase.java deleted file mode 100644 index 75fab95efb..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-api/src/test/java/org/apache/tuscany/sca/test/CallBackApiTestCase.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 org.apache.tuscany.sca.test; - -import org.apache.tuscany.sca.node.Contribution; -import org.apache.tuscany.sca.node.ContributionLocationHelper; -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; -import org.junit.AfterClass; -import org.junit.BeforeClass; -import org.junit.Test; - -public class CallBackApiTestCase { - - private static Node node; - private CallBackApiClient aCallBackClient; - - /** - * This function uses the Instance of CallBackApiClient.class
- * This function calls the run function defined in the CallBackApiClinet Interface
- * which in turn executes the following test cases.
- * 1. Basic callback patterns
- * 2. Test in which the target does not call back to the client
- * 3. Test in which the target calls back multiple times to the client. - */ - @Test - public void testCallBackBasic() { - aCallBackClient = node.getService(CallBackApiClient.class, "CallBackApiClient"); - aCallBackClient.run(); - } - - /** - * This function creates the Node instance and gets an Instance of CallBackApiClient.class - */ - - @BeforeClass - public static void setUp() throws Exception { - if (node == null) { - String location = ContributionLocationHelper.getContributionLocation("CallBackApiTest.composite"); - node = NodeFactory.newInstance().createNode("CallBackApiTest.composite", new Contribution("c1", location)); - node.start(); - } - } - - /** - * This function destroys the Node instance that was created in setUp() - */ - - @AfterClass - public static void tearDown() throws Exception { - node.stop(); - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-basic-ws/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-basic-ws/pom.xml deleted file mode 100644 index c04227c73b..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-basic-ws/pom.xml +++ /dev/null @@ -1,79 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-itest - 2.0-M5 - ../pom.xml - - itest-callback-basic-ws - Apache Tuscany SCA iTest Callback Basic WebServices - - - - org.apache.tuscany.sca - tuscany-node-api - 2.0-M5 - - - - org.apache.tuscany.sca - tuscany-node-impl - 2.0-M5 - test - - - - org.apache.tuscany.sca - tuscany-implementation-java-runtime - 2.0-M5 - test - - - - org.apache.tuscany.sca - tuscany-binding-ws-runtime-axis2 - 2.0-M5 - test - - - - org.apache.tuscany.sca - tuscany-host-http - 2.0-M5 - test - - - - org.apache.tuscany.sca - tuscany-host-jetty - 2.0-M5 - test - - - - - - ${basedir}/../build-was-integration.xml - ${basedir}/../wasAdmin.py - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-basic-ws/src/main/java/org/apache/tuscany/sca/test/CallBackBasicCallBack.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-basic-ws/src/main/java/org/apache/tuscany/sca/test/CallBackBasicCallBack.java deleted file mode 100644 index 291a72b9d6..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-basic-ws/src/main/java/org/apache/tuscany/sca/test/CallBackBasicCallBack.java +++ /dev/null @@ -1,33 +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 org.apache.tuscany.sca.test; - -import org.oasisopen.sca.annotation.Remotable; - -@Remotable -/** - * - */ -public interface CallBackBasicCallBack { - - void callBackMessage(String aString); - - void callBackIncrement(String aString); - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-basic-ws/src/main/java/org/apache/tuscany/sca/test/CallBackBasicClient.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-basic-ws/src/main/java/org/apache/tuscany/sca/test/CallBackBasicClient.java deleted file mode 100644 index 19f366c423..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-basic-ws/src/main/java/org/apache/tuscany/sca/test/CallBackBasicClient.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 org.apache.tuscany.sca.test; - -import org.oasisopen.sca.annotation.Remotable; - -@Remotable -public interface CallBackBasicClient { - - void run(); - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-basic-ws/src/main/java/org/apache/tuscany/sca/test/CallBackBasicClientImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-basic-ws/src/main/java/org/apache/tuscany/sca/test/CallBackBasicClientImpl.java deleted file mode 100644 index 4bb6b29a8d..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-basic-ws/src/main/java/org/apache/tuscany/sca/test/CallBackBasicClientImpl.java +++ /dev/null @@ -1,129 +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 org.apache.tuscany.sca.test; - -import org.junit.Assert; -import org.oasisopen.sca.annotation.Reference; -import org.oasisopen.sca.annotation.Service; - -@Service(CallBackBasicClient.class) -public class CallBackBasicClientImpl implements CallBackBasicClient, CallBackBasicCallBack { - - @Reference - protected CallBackBasicService aCallBackService; - private static String returnMessage = null; - private static int callBackCount = 0; - private static Object monitor = new Object(); - - public void run() { - - // This tests basic callback patterns. - - // Test1 is the basic callback where the target calls back prior to - // returning to the client. - test1a(); - - // Test2 is where the target does not call back to the client. - test1b(); - - // Test3 is where the target calls back multiple times to the client. - test1c(); - } - - private void test1a() { - aCallBackService.knockKnock("Knock Knock"); - int count = 0; - - // - // If we can't get a response in 30 seconds consider this a failure - // - - synchronized (monitor) { - while (returnMessage == null && count++ < 30) { - try { - monitor.wait(1000L); - } catch (InterruptedException e) { - e.printStackTrace(); - } - } - } - - Assert.assertEquals("CallBackBasicITest - test1a", "Who's There", this.getReturnMessage()); - - } - - private void test1b() { - aCallBackService.noCallBack("No Reply Desired"); - Assert.assertEquals("CallBackBasicITest - test1b", 1, 1); - } - - private void test1c() { - aCallBackService.multiCallBack("Call me back 3 times"); - int count = 0; - - // - // If we can't get a response in 30 seconds consider this a failure - // - - synchronized (monitor) { - while (this.getCallBackCount() < 3 && count++ < 30) { - try { - monitor.wait(1000L); - } catch (InterruptedException e) { - e.printStackTrace(); - } - } - } - - Assert.assertEquals("CallBackBasicITest - test1c", 3, this.getCallBackCount()); - } - - public String getReturnMessage() { - return returnMessage; - } - - public void setReturnMessage(String aReturnMessage) { - returnMessage = aReturnMessage; - } - - public int getCallBackCount() { - return callBackCount; - } - - public void incrementCallBackCount() { - callBackCount++; - } - - public void callBackMessage(String aString) { - System.out.println("Entering callback callBackMessage: " + aString); - synchronized (monitor) { - this.setReturnMessage(aString); - monitor.notify(); - } - } - - public void callBackIncrement(String aString) { - System.out.println("Entering callback increment: " + aString); - synchronized (monitor) { - this.incrementCallBackCount(); - monitor.notify(); - } - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-basic-ws/src/main/java/org/apache/tuscany/sca/test/CallBackBasicService.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-basic-ws/src/main/java/org/apache/tuscany/sca/test/CallBackBasicService.java deleted file mode 100644 index 5396879e83..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-basic-ws/src/main/java/org/apache/tuscany/sca/test/CallBackBasicService.java +++ /dev/null @@ -1,37 +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 org.apache.tuscany.sca.test; - -import org.oasisopen.sca.annotation.Callback; -import org.oasisopen.sca.annotation.Remotable; - -@Remotable -@Callback(CallBackBasicCallBack.class) -/** - * - */ -public interface CallBackBasicService { - - void knockKnock(String aString); - - void noCallBack(String aString); - - void multiCallBack(String aString); - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-basic-ws/src/main/java/org/apache/tuscany/sca/test/CallBackBasicServiceImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-basic-ws/src/main/java/org/apache/tuscany/sca/test/CallBackBasicServiceImpl.java deleted file mode 100644 index 07010f61e1..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-basic-ws/src/main/java/org/apache/tuscany/sca/test/CallBackBasicServiceImpl.java +++ /dev/null @@ -1,56 +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 org.apache.tuscany.sca.test; - -import org.oasisopen.sca.annotation.Callback; -import org.oasisopen.sca.annotation.Service; - -@Service(CallBackBasicService.class) -public class CallBackBasicServiceImpl implements CallBackBasicService { - - @Callback - protected CallBackBasicCallBack callback; - - public void knockKnock(String aString) { - - System.out.println("CallBackBasicServiceImpl message received: " + aString); - callback.callBackMessage("Who's There"); - System.out.println("CallBackBasicServiceImpl response sent"); - - } - - public void multiCallBack(String aString) { - - System.out.println("CallBackBasicServiceImpl message received: " + aString); - callback.callBackIncrement("Who's There 1"); - System.out.println("CallBackBasicServiceImpl response sent"); - callback.callBackIncrement("Who's There 2"); - System.out.println("CallBackBasicServiceImpl response sent"); - callback.callBackIncrement("Who's There 3"); - System.out.println("CallBackBasicServiceImpl response sent"); - - } - - public void noCallBack(String aString) { - - System.out.println("CallBackBasicServiceImpl message received: " + aString); - // System.out.println("CallBackBasicServiceImpl No response desired"); - - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-basic-ws/src/main/resources/CallBackBasicTest.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-basic-ws/src/main/resources/CallBackBasicTest.composite deleted file mode 100644 index 5e77ac2b91..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-basic-ws/src/main/resources/CallBackBasicTest.composite +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-basic-ws/src/main/resources/META-INF/sca-contribution.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-basic-ws/src/main/resources/META-INF/sca-contribution.xml deleted file mode 100644 index d36d7478e2..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-basic-ws/src/main/resources/META-INF/sca-contribution.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-basic-ws/src/test/java/org/apache/tuscany/sca/test/CallBackBasicTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-basic-ws/src/test/java/org/apache/tuscany/sca/test/CallBackBasicTestCase.java deleted file mode 100644 index 43b812faed..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-basic-ws/src/test/java/org/apache/tuscany/sca/test/CallBackBasicTestCase.java +++ /dev/null @@ -1,56 +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 org.apache.tuscany.sca.test; - -import org.apache.tuscany.sca.node.Contribution; -import org.apache.tuscany.sca.node.ContributionLocationHelper; -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; -import org.junit.After; -import org.junit.Before; -import org.junit.Test; - -public class CallBackBasicTestCase { - - private static Node node; - private CallBackBasicClient aCallBackClient; - - @Test - public void testCallBackBasic() { - aCallBackClient.run(); - } - - @Before - public void setUp() throws Exception { - if (node == null) { - String location = ContributionLocationHelper.getContributionLocation("CallBackBasicTest.composite"); - node = NodeFactory.newInstance().createNode("CallBackBasicTest.composite", new Contribution("c1", location)); - node.start(); - } - - aCallBackClient = node.getService(CallBackBasicClient.class, "CallBackBasicClient"); - } - - @After - public void tearDown() throws Exception { - node.stop(); - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-basic/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-basic/pom.xml deleted file mode 100644 index 9307cea9be..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-basic/pom.xml +++ /dev/null @@ -1,58 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-itest - 2.0-M5 - ../pom.xml - - itest-callback-basic - Apache Tuscany SCA iTest Callback Basic - - - - org.apache.tuscany.sca - tuscany-node-api - 2.0-M5 - - - - org.apache.tuscany.sca - tuscany-node-impl - 2.0-M5 - test - - - - org.apache.tuscany.sca - tuscany-implementation-java-runtime - 2.0-M5 - test - - - - - - ${basedir}/../build-was-integration.xml - ${basedir}/../wasAdmin.py - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-basic/src/main/java/org/apache/tuscany/sca/test/CallBackBasicCallBack.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-basic/src/main/java/org/apache/tuscany/sca/test/CallBackBasicCallBack.java deleted file mode 100644 index 291a72b9d6..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-basic/src/main/java/org/apache/tuscany/sca/test/CallBackBasicCallBack.java +++ /dev/null @@ -1,33 +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 org.apache.tuscany.sca.test; - -import org.oasisopen.sca.annotation.Remotable; - -@Remotable -/** - * - */ -public interface CallBackBasicCallBack { - - void callBackMessage(String aString); - - void callBackIncrement(String aString); - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-basic/src/main/java/org/apache/tuscany/sca/test/CallBackBasicClient.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-basic/src/main/java/org/apache/tuscany/sca/test/CallBackBasicClient.java deleted file mode 100644 index 19f366c423..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-basic/src/main/java/org/apache/tuscany/sca/test/CallBackBasicClient.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 org.apache.tuscany.sca.test; - -import org.oasisopen.sca.annotation.Remotable; - -@Remotable -public interface CallBackBasicClient { - - void run(); - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-basic/src/main/java/org/apache/tuscany/sca/test/CallBackBasicClientImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-basic/src/main/java/org/apache/tuscany/sca/test/CallBackBasicClientImpl.java deleted file mode 100644 index 4bb6b29a8d..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-basic/src/main/java/org/apache/tuscany/sca/test/CallBackBasicClientImpl.java +++ /dev/null @@ -1,129 +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 org.apache.tuscany.sca.test; - -import org.junit.Assert; -import org.oasisopen.sca.annotation.Reference; -import org.oasisopen.sca.annotation.Service; - -@Service(CallBackBasicClient.class) -public class CallBackBasicClientImpl implements CallBackBasicClient, CallBackBasicCallBack { - - @Reference - protected CallBackBasicService aCallBackService; - private static String returnMessage = null; - private static int callBackCount = 0; - private static Object monitor = new Object(); - - public void run() { - - // This tests basic callback patterns. - - // Test1 is the basic callback where the target calls back prior to - // returning to the client. - test1a(); - - // Test2 is where the target does not call back to the client. - test1b(); - - // Test3 is where the target calls back multiple times to the client. - test1c(); - } - - private void test1a() { - aCallBackService.knockKnock("Knock Knock"); - int count = 0; - - // - // If we can't get a response in 30 seconds consider this a failure - // - - synchronized (monitor) { - while (returnMessage == null && count++ < 30) { - try { - monitor.wait(1000L); - } catch (InterruptedException e) { - e.printStackTrace(); - } - } - } - - Assert.assertEquals("CallBackBasicITest - test1a", "Who's There", this.getReturnMessage()); - - } - - private void test1b() { - aCallBackService.noCallBack("No Reply Desired"); - Assert.assertEquals("CallBackBasicITest - test1b", 1, 1); - } - - private void test1c() { - aCallBackService.multiCallBack("Call me back 3 times"); - int count = 0; - - // - // If we can't get a response in 30 seconds consider this a failure - // - - synchronized (monitor) { - while (this.getCallBackCount() < 3 && count++ < 30) { - try { - monitor.wait(1000L); - } catch (InterruptedException e) { - e.printStackTrace(); - } - } - } - - Assert.assertEquals("CallBackBasicITest - test1c", 3, this.getCallBackCount()); - } - - public String getReturnMessage() { - return returnMessage; - } - - public void setReturnMessage(String aReturnMessage) { - returnMessage = aReturnMessage; - } - - public int getCallBackCount() { - return callBackCount; - } - - public void incrementCallBackCount() { - callBackCount++; - } - - public void callBackMessage(String aString) { - System.out.println("Entering callback callBackMessage: " + aString); - synchronized (monitor) { - this.setReturnMessage(aString); - monitor.notify(); - } - } - - public void callBackIncrement(String aString) { - System.out.println("Entering callback increment: " + aString); - synchronized (monitor) { - this.incrementCallBackCount(); - monitor.notify(); - } - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-basic/src/main/java/org/apache/tuscany/sca/test/CallBackBasicService.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-basic/src/main/java/org/apache/tuscany/sca/test/CallBackBasicService.java deleted file mode 100644 index 5396879e83..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-basic/src/main/java/org/apache/tuscany/sca/test/CallBackBasicService.java +++ /dev/null @@ -1,37 +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 org.apache.tuscany.sca.test; - -import org.oasisopen.sca.annotation.Callback; -import org.oasisopen.sca.annotation.Remotable; - -@Remotable -@Callback(CallBackBasicCallBack.class) -/** - * - */ -public interface CallBackBasicService { - - void knockKnock(String aString); - - void noCallBack(String aString); - - void multiCallBack(String aString); - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-basic/src/main/java/org/apache/tuscany/sca/test/CallBackBasicServiceImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-basic/src/main/java/org/apache/tuscany/sca/test/CallBackBasicServiceImpl.java deleted file mode 100644 index 07010f61e1..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-basic/src/main/java/org/apache/tuscany/sca/test/CallBackBasicServiceImpl.java +++ /dev/null @@ -1,56 +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 org.apache.tuscany.sca.test; - -import org.oasisopen.sca.annotation.Callback; -import org.oasisopen.sca.annotation.Service; - -@Service(CallBackBasicService.class) -public class CallBackBasicServiceImpl implements CallBackBasicService { - - @Callback - protected CallBackBasicCallBack callback; - - public void knockKnock(String aString) { - - System.out.println("CallBackBasicServiceImpl message received: " + aString); - callback.callBackMessage("Who's There"); - System.out.println("CallBackBasicServiceImpl response sent"); - - } - - public void multiCallBack(String aString) { - - System.out.println("CallBackBasicServiceImpl message received: " + aString); - callback.callBackIncrement("Who's There 1"); - System.out.println("CallBackBasicServiceImpl response sent"); - callback.callBackIncrement("Who's There 2"); - System.out.println("CallBackBasicServiceImpl response sent"); - callback.callBackIncrement("Who's There 3"); - System.out.println("CallBackBasicServiceImpl response sent"); - - } - - public void noCallBack(String aString) { - - System.out.println("CallBackBasicServiceImpl message received: " + aString); - // System.out.println("CallBackBasicServiceImpl No response desired"); - - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-basic/src/main/resources/CallBackBasicTest.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-basic/src/main/resources/CallBackBasicTest.composite deleted file mode 100644 index 5339e9952e..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-basic/src/main/resources/CallBackBasicTest.composite +++ /dev/null @@ -1,33 +0,0 @@ - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-basic/src/main/resources/META-INF/sca-contribution.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-basic/src/main/resources/META-INF/sca-contribution.xml deleted file mode 100644 index d36d7478e2..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-basic/src/main/resources/META-INF/sca-contribution.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-basic/src/test/java/org/apache/tuscany/sca/test/CallBackBasicTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-basic/src/test/java/org/apache/tuscany/sca/test/CallBackBasicTestCase.java deleted file mode 100644 index 43b812faed..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-basic/src/test/java/org/apache/tuscany/sca/test/CallBackBasicTestCase.java +++ /dev/null @@ -1,56 +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 org.apache.tuscany.sca.test; - -import org.apache.tuscany.sca.node.Contribution; -import org.apache.tuscany.sca.node.ContributionLocationHelper; -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; -import org.junit.After; -import org.junit.Before; -import org.junit.Test; - -public class CallBackBasicTestCase { - - private static Node node; - private CallBackBasicClient aCallBackClient; - - @Test - public void testCallBackBasic() { - aCallBackClient.run(); - } - - @Before - public void setUp() throws Exception { - if (node == null) { - String location = ContributionLocationHelper.getContributionLocation("CallBackBasicTest.composite"); - node = NodeFactory.newInstance().createNode("CallBackBasicTest.composite", new Contribution("c1", location)); - node.start(); - } - - aCallBackClient = node.getService(CallBackBasicClient.class, "CallBackBasicClient"); - } - - @After - public void tearDown() throws Exception { - node.stop(); - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-complex-type/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-complex-type/pom.xml deleted file mode 100644 index 5909c7fce7..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-complex-type/pom.xml +++ /dev/null @@ -1,53 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-itest - 2.0-M5 - ../pom.xml - - itest-callback-complex-type - Apache Tuscany SCA iTest Callback Complex Type - - - - org.apache.tuscany.sca - tuscany-node-api - 2.0-M5 - - - - org.apache.tuscany.sca - tuscany-node-impl - 2.0-M5 - test - - - - org.apache.tuscany.sca - tuscany-implementation-java-runtime - 2.0-M5 - test - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-complex-type/src/main/java/org/apache/tuscany/sca/test/CallBackCTypeCallBack.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-complex-type/src/main/java/org/apache/tuscany/sca/test/CallBackCTypeCallBack.java deleted file mode 100644 index 627d37e27d..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-complex-type/src/main/java/org/apache/tuscany/sca/test/CallBackCTypeCallBack.java +++ /dev/null @@ -1,33 +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 org.apache.tuscany.sca.test; - -import org.oasisopen.sca.annotation.Remotable; - -@Remotable -/** - * - */ -public interface CallBackCTypeCallBack { - - void callBackMessage(String aString); - - void callBackIncrement(String aString); - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-complex-type/src/main/java/org/apache/tuscany/sca/test/CallBackCTypeClient.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-complex-type/src/main/java/org/apache/tuscany/sca/test/CallBackCTypeClient.java deleted file mode 100644 index 966ad17b9a..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-complex-type/src/main/java/org/apache/tuscany/sca/test/CallBackCTypeClient.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 org.apache.tuscany.sca.test; - -import org.oasisopen.sca.annotation.Remotable; - -@Remotable -public interface CallBackCTypeClient { - - void run(); - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-complex-type/src/main/java/org/apache/tuscany/sca/test/CallBackCTypeClientImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-complex-type/src/main/java/org/apache/tuscany/sca/test/CallBackCTypeClientImpl.java deleted file mode 100644 index d2dc0add75..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-complex-type/src/main/java/org/apache/tuscany/sca/test/CallBackCTypeClientImpl.java +++ /dev/null @@ -1,138 +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 org.apache.tuscany.sca.test; - -import org.junit.Assert; -import org.oasisopen.sca.annotation.Reference; -import org.oasisopen.sca.annotation.Service; - -@Service(CallBackCTypeClient.class) -public class CallBackCTypeClientImpl implements CallBackCTypeClient, CallBackCTypeCallBack { - - @Reference - protected CallBackCTypeService aCallBackService; - private static String returnMessage = null; - private static int callBackCount = 0; - private static Object monitor = new Object(); - - public CallBackCTypeClientImpl() { - } - - public void run() { - - // This test is the same as the Basic Callback except it uses a - // componentType side file. - // This test currently fails because the integration test environment - // does not properly copy - // the componentType files to the target folder. This is documented in - // Tuscany-967. - - // Test12a is the basic callback where the target calls back prior to - // returning to the client. - test12a(); - - // Test12b is where the target does not call back to the client. - test12b(); - - // Test12c is where the target calls back multiple times to the client. - test12c(); - - } - - private void test12a() { - aCallBackService.knockKnock("Knock Knock"); - int count = 0; - - // - // If we can't get a response in 30 seconds consider this a failure - // - - synchronized (monitor) { - while (returnMessage == null && count++ < 30) { - try { - monitor.wait(1000L); - } catch (InterruptedException e) { - e.printStackTrace(); - } - } - } - - Assert.assertEquals("CallBackBasicITest - test12a -", "Who's There", this.getReturnMessage()); - - } - - private void test12b() { - aCallBackService.noCallBack("No Reply Desired"); - Assert.assertEquals("CallBackBasicITest - test12b -", 1, 1); - } - - private void test12c() { - aCallBackService.multiCallBack("Call me back 3 times"); - int count = 0; - - // - // If we can't get a response in 30 seconds consider this a failure - // - - synchronized (monitor) { - while (this.getCallBackCount() < 3 && count++ < 30) { - try { - monitor.wait(1000L); - } catch (InterruptedException e) { - e.printStackTrace(); - } - } - } - - Assert.assertEquals("CallBackBasicITest - test12c -", 3, this.getCallBackCount()); - } - - public String getReturnMessage() { - return returnMessage; - } - - public void setReturnMessage(String aReturnMessage) { - returnMessage = aReturnMessage; - } - - public int getCallBackCount() { - return callBackCount; - } - - public void incrementCallBackCount() { - callBackCount++; - } - - public void callBackMessage(String aString) { - System.out.println("Entering callback callBackMessage: " + aString); - synchronized (monitor) { - this.setReturnMessage(aString); - monitor.notify(); - } - } - - public void callBackIncrement(String aString) { - System.out.println("Entering callback increment: " + aString); - synchronized (monitor) { - this.incrementCallBackCount(); - monitor.notify(); - } - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-complex-type/src/main/java/org/apache/tuscany/sca/test/CallBackCTypeService.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-complex-type/src/main/java/org/apache/tuscany/sca/test/CallBackCTypeService.java deleted file mode 100644 index 32ab1bdd3e..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-complex-type/src/main/java/org/apache/tuscany/sca/test/CallBackCTypeService.java +++ /dev/null @@ -1,37 +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 org.apache.tuscany.sca.test; - -import org.oasisopen.sca.annotation.Callback; -import org.oasisopen.sca.annotation.Remotable; - -@Remotable -@Callback(CallBackCTypeCallBack.class) -/** - * - */ -public interface CallBackCTypeService { - - void knockKnock(String aString); - - void noCallBack(String aString); - - void multiCallBack(String aString); - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-complex-type/src/main/java/org/apache/tuscany/sca/test/CallBackCTypeServiceImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-complex-type/src/main/java/org/apache/tuscany/sca/test/CallBackCTypeServiceImpl.java deleted file mode 100644 index f7a1a195ed..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-complex-type/src/main/java/org/apache/tuscany/sca/test/CallBackCTypeServiceImpl.java +++ /dev/null @@ -1,59 +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 org.apache.tuscany.sca.test; - -import org.oasisopen.sca.annotation.Callback; -import org.oasisopen.sca.annotation.Service; - -@Service(CallBackCTypeService.class) -public class CallBackCTypeServiceImpl implements CallBackCTypeService { - - @Callback - protected CallBackCTypeCallBack callback; - - public CallBackCTypeServiceImpl() { - } - - public void knockKnock(String aString) { - - System.out.println("CallBackCTypeServiceImpl message received: " + aString); - callback.callBackMessage("Who's There"); - System.out.println("CallBackCTypeServiceImpl response sent"); - - } - - public void multiCallBack(String aString) { - - System.out.println("CallBackCTypeServiceImpl message received: " + aString); - callback.callBackIncrement("Who's There 1"); - System.out.println("CallBackCTypeServiceImpl response sent"); - callback.callBackIncrement("Who's There 2"); - System.out.println("CallBackCTypeServiceImpl response sent"); - callback.callBackIncrement("Who's There 3"); - System.out.println("CallBackCTypeServiceImpl response sent"); - - } - - public void noCallBack(String aString) { - - System.out.println("CallBackCTypeServiceImpl message received: " + aString); - System.out.println("CallBackCTypeServiceImpl No response desired"); - - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-complex-type/src/main/resources/CallBackCTypeClient.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-complex-type/src/main/resources/CallBackCTypeClient.composite deleted file mode 100644 index 9730c294d6..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-complex-type/src/main/resources/CallBackCTypeClient.composite +++ /dev/null @@ -1,33 +0,0 @@ - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-complex-type/src/main/resources/org/apache/tuscany/sca/test/CallBackCTypeServiceImpl.componentType b/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-complex-type/src/main/resources/org/apache/tuscany/sca/test/CallBackCTypeServiceImpl.componentType deleted file mode 100644 index 11e748675d..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-complex-type/src/main/resources/org/apache/tuscany/sca/test/CallBackCTypeServiceImpl.componentType +++ /dev/null @@ -1,28 +0,0 @@ - - - - - - - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-complex-type/src/test/java/org/apache/tuscany/sca/test/CallBackCTypeTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-complex-type/src/test/java/org/apache/tuscany/sca/test/CallBackCTypeTestCase.java deleted file mode 100644 index dde489d766..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-complex-type/src/test/java/org/apache/tuscany/sca/test/CallBackCTypeTestCase.java +++ /dev/null @@ -1,54 +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 org.apache.tuscany.sca.test; - -import org.apache.tuscany.sca.node.Contribution; -import org.apache.tuscany.sca.node.ContributionLocationHelper; -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; -import org.junit.After; -import org.junit.Before; -import org.junit.Test; - -public class CallBackCTypeTestCase { - - private Node node; - private CallBackCTypeClient aCallBackClient; - - @Test - public void testCallBackBasic() { - aCallBackClient.run(); - } - - @Before - public void setUp() throws Exception { - String location = ContributionLocationHelper.getContributionLocation("CallBackCTypeClient.composite"); - node = - NodeFactory.newInstance().createNode("CallBackCTypeClient.composite", new Contribution("c1", location)) - .start(); - - aCallBackClient = node.getService(CallBackCTypeClient.class, "CallBackCTypeClient"); - } - - @After - public void tearDown() throws Exception { - node.stop(); - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-multiple-wires/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-multiple-wires/pom.xml deleted file mode 100644 index 2c231b9906..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-multiple-wires/pom.xml +++ /dev/null @@ -1,53 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-itest - 2.0-M5 - ../pom.xml - - itest-callback-multiple-wires - Apache Tuscany SCA iTest Callback With Mutiple Wires - - - - org.apache.tuscany.sca - tuscany-node-api - 2.0-M5 - - - - org.apache.tuscany.sca - tuscany-node-impl - 2.0-M5 - test - - - - org.apache.tuscany.sca - tuscany-implementation-java-runtime - 2.0-M5 - test - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-multiple-wires/src/main/java/org/apache/tuscany/sca/test/callback/MyClient.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-multiple-wires/src/main/java/org/apache/tuscany/sca/test/callback/MyClient.java deleted file mode 100644 index 7c80d222fc..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-multiple-wires/src/main/java/org/apache/tuscany/sca/test/callback/MyClient.java +++ /dev/null @@ -1,27 +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 org.apache.tuscany.sca.test.callback; - -/** - * The client interface - */ -public interface MyClient { - - void aClientMethod(); -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-multiple-wires/src/main/java/org/apache/tuscany/sca/test/callback/MyClientImpl1.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-multiple-wires/src/main/java/org/apache/tuscany/sca/test/callback/MyClientImpl1.java deleted file mode 100644 index c3ea6c3032..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-multiple-wires/src/main/java/org/apache/tuscany/sca/test/callback/MyClientImpl1.java +++ /dev/null @@ -1,49 +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 org.apache.tuscany.sca.test.callback; - -import org.oasisopen.sca.annotation.Reference; -import org.oasisopen.sca.annotation.Scope; -import org.oasisopen.sca.annotation.Service; - -/** - * Demonstrates a component-to-component callback invocation - */ -@Service(MyClient.class) -@Scope("COMPOSITE") -public class MyClientImpl1 implements MyClient, MyServiceCallback { - - private MyService myService; - static String result; - - @Reference - public void setMyService(MyService myService) { - this.myService = myService; - } - - public void aClientMethod() { - myService.someMethod("-> someMethod1"); - } - - public void receiveResult(String result) { - System.out.println("Work thread " + Thread.currentThread()); - System.out.println("Result in client1: " + result); - MyClientImpl1.result = result; - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-multiple-wires/src/main/java/org/apache/tuscany/sca/test/callback/MyClientImpl2.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-multiple-wires/src/main/java/org/apache/tuscany/sca/test/callback/MyClientImpl2.java deleted file mode 100644 index 84ca158c97..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-multiple-wires/src/main/java/org/apache/tuscany/sca/test/callback/MyClientImpl2.java +++ /dev/null @@ -1,49 +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 org.apache.tuscany.sca.test.callback; - -import org.oasisopen.sca.annotation.Reference; -import org.oasisopen.sca.annotation.Scope; -import org.oasisopen.sca.annotation.Service; - -/** - * Demonstrates a component-to-component callback invocation - */ -@Service(MyClient.class) -@Scope("COMPOSITE") -public class MyClientImpl2 implements MyClient, MyServiceCallback { - - private MyService myService; - static String result; - - @Reference - public void setMyService(MyService myService) { - this.myService = myService; - } - - public void aClientMethod() { - myService.someMethod("-> someMethod2"); - } - - public void receiveResult(String result) { - System.out.println("Work thread " + Thread.currentThread()); - System.out.println("Result in client2: " + result); - MyClientImpl2.result = result; - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-multiple-wires/src/main/java/org/apache/tuscany/sca/test/callback/MyService.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-multiple-wires/src/main/java/org/apache/tuscany/sca/test/callback/MyService.java deleted file mode 100644 index 66758a1e73..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-multiple-wires/src/main/java/org/apache/tuscany/sca/test/callback/MyService.java +++ /dev/null @@ -1,32 +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 org.apache.tuscany.sca.test.callback; - -import org.oasisopen.sca.annotation.Callback; -import org.oasisopen.sca.annotation.OneWay; - -/** - * This service that will be invoked in a non-blocking fashion - */ -@Callback(MyServiceCallback.class) -public interface MyService { - - @OneWay - void someMethod(String arg); -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-multiple-wires/src/main/java/org/apache/tuscany/sca/test/callback/MyServiceCallback.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-multiple-wires/src/main/java/org/apache/tuscany/sca/test/callback/MyServiceCallback.java deleted file mode 100644 index f198efae51..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-multiple-wires/src/main/java/org/apache/tuscany/sca/test/callback/MyServiceCallback.java +++ /dev/null @@ -1,27 +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 org.apache.tuscany.sca.test.callback; - -/** - * The callback interface for {@link MyService}. - */ -public interface MyServiceCallback { - - void receiveResult(String result); -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-multiple-wires/src/main/java/org/apache/tuscany/sca/test/callback/MyServiceImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-multiple-wires/src/main/java/org/apache/tuscany/sca/test/callback/MyServiceImpl.java deleted file mode 100644 index 2b484293c7..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-multiple-wires/src/main/java/org/apache/tuscany/sca/test/callback/MyServiceImpl.java +++ /dev/null @@ -1,50 +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 org.apache.tuscany.sca.test.callback; - -import org.oasisopen.sca.RequestContext; -import org.oasisopen.sca.annotation.Context; -import org.oasisopen.sca.annotation.Scope; -import org.oasisopen.sca.annotation.Service; - -/** - * This class implements MyService and uses a callback. - * - * In this scenario, we exlore using the RequestContext to retrieve the callBack reference - * as @Callback injection is not performed for composite-scoped implementations (see JavaCAA Section 7.2.5) - * - * Changing the service implementation to be @Scope("STATELESS") would make plain @Callback injection work - */ -@Service(MyService.class) -@Scope("COMPOSITE") -public class MyServiceImpl implements MyService { - - @Context - protected RequestContext requestContext; - - public void someMethod(String arg) { - // invoke the callback - try { - MyServiceCallback myServiceCallback = requestContext.getCallback(); - myServiceCallback.receiveResult(arg + " -> receiveResult"); - } catch (RuntimeException e) { - System.out.println("RuntimeException invoking receiveResult: " + e.toString()); - } - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-multiple-wires/src/main/resources/CallbackMultiWireTest.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-multiple-wires/src/main/resources/CallbackMultiWireTest.composite deleted file mode 100644 index 9fe62ac671..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-multiple-wires/src/main/resources/CallbackMultiWireTest.composite +++ /dev/null @@ -1,38 +0,0 @@ - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-multiple-wires/src/test/java/org/apache/tuscany/sca/test/callback/CallbackMultiWireTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-multiple-wires/src/test/java/org/apache/tuscany/sca/test/callback/CallbackMultiWireTestCase.java deleted file mode 100644 index bd3cce74b4..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-multiple-wires/src/test/java/org/apache/tuscany/sca/test/callback/CallbackMultiWireTestCase.java +++ /dev/null @@ -1,64 +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 org.apache.tuscany.sca.test.callback; - -import static org.junit.Assert.assertEquals; - -import org.apache.tuscany.sca.node.Contribution; -import org.apache.tuscany.sca.node.ContributionLocationHelper; -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; -import org.junit.After; -import org.junit.Before; -import org.junit.Test; - -/** - * A TestCase that demonstrates resolving the client service and initiating the callback sequence - */ -public class CallbackMultiWireTestCase { - - private Node node; - private MyClient myClient1; - private MyClient myClient2; - - @Before - public void setUp() throws Exception { - String location = ContributionLocationHelper.getContributionLocation("CallbackMultiWireTest.composite"); - node = NodeFactory.newInstance().createNode("CallbackMultiWireTest.composite", new Contribution("c1", location)); - node.start(); - myClient1 = node.getService(MyClient.class, "MyClientComponent1"); - myClient2 = node.getService(MyClient.class, "MyClientComponent2"); - } - - @After - public void tearDown() throws Exception { - node.stop(); - } - - @Test - public void test() throws Exception { - System.out.println("Main thread " + Thread.currentThread()); - myClient1.aClientMethod(); - myClient2.aClientMethod(); - System.out.println("Sleeping ..."); - Thread.sleep(300); - assertEquals("-> someMethod1 -> receiveResult", MyClientImpl1.result); - assertEquals("-> someMethod2 -> receiveResult", MyClientImpl2.result); - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-separatethread/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-separatethread/pom.xml deleted file mode 100644 index 95f3012405..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-separatethread/pom.xml +++ /dev/null @@ -1,53 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-itest - 2.0-M5 - ../pom.xml - - itest-callback-separatethread - Apache Tuscany SCA iTest Callback Using Separate Thread - - - - org.apache.tuscany.sca - tuscany-node-api - 2.0-M5 - - - - org.apache.tuscany.sca - tuscany-node-impl - 2.0-M5 - test - - - - org.apache.tuscany.sca - tuscany-implementation-java-runtime - 2.0-M5 - test - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-separatethread/src/main/java/org/apache/tuscany/sca/itest/CallBackSeparateThreadClient.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-separatethread/src/main/java/org/apache/tuscany/sca/itest/CallBackSeparateThreadClient.java deleted file mode 100644 index dc66003604..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-separatethread/src/main/java/org/apache/tuscany/sca/itest/CallBackSeparateThreadClient.java +++ /dev/null @@ -1,34 +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 org.apache.tuscany.sca.itest; - -import org.oasisopen.sca.annotation.Remotable; - -/** - * This is the client interface for the call backs in a separate thread tests - */ -@Remotable -public interface CallBackSeparateThreadClient { - - /** - * This tests call back patterns using separate threads. - */ - void runTests(); -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-separatethread/src/main/java/org/apache/tuscany/sca/itest/CallBackSeparateThreadClientImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-separatethread/src/main/java/org/apache/tuscany/sca/itest/CallBackSeparateThreadClientImpl.java deleted file mode 100644 index f03144db8a..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-separatethread/src/main/java/org/apache/tuscany/sca/itest/CallBackSeparateThreadClientImpl.java +++ /dev/null @@ -1,186 +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 org.apache.tuscany.sca.itest; - -import java.util.concurrent.atomic.AtomicInteger; - -import org.junit.Assert; -import org.oasisopen.sca.annotation.Reference; -import org.oasisopen.sca.annotation.Service; - -/** - * This is the client implementation for the call backs in a separate thread tests - */ -@Service(CallBackSeparateThreadClient.class) -public class CallBackSeparateThreadClientImpl implements CallBackSeparateThreadClient, EventProcessorCallBack { - /** - * Max time to wait to receive events. If not all the events are received then timeout. - */ - private static final int TIMEOUT = 30 * 1000; - - /** - * Counts the number of fast call backs. - */ - private static final AtomicInteger FAST_CALLBACK_COUNT = new AtomicInteger(); - - /** - * Counts the number of slow call backs. - */ - private static final AtomicInteger SLOW_CALLBACK_COUNT = new AtomicInteger(); - - /** - * This is our injected reference to the EventProcessorService - */ - @Reference - protected EventProcessorService aCallBackService; - - /** - * This tests call back patterns using separate threads. - */ - public void runTests() { - try { - // Register for fast call back - registerForFastCallback(); - - // Wait for a few fast call backs - System.out.println("Waiting for some fast call backs"); - waitForSomeFastCallbacks(); - - try { - // Register for slow call back - registerForSlowCallback(); - - // Wait for a few fast call backs - System.out.println("Waiting for some fast calls"); - waitForSomeFastCallbacks(); - - // Wait for a few slow call backs - System.out.println("Waiting for some slow calls"); - waitForSomeSlowCallbacks(); - } finally { - unregisterForSlowCallback(); - } - - System.out.println("Done"); - } finally { - unregisterForFastCallback(); - } - } - - /** - * Waits for some fast call backs to be fired - */ - private void waitForSomeFastCallbacks() { - // Reset the fast call back count - FAST_CALLBACK_COUNT.set(0); - - // Wait until we have 10 fast call backs or timeout occurs - final long start = System.currentTimeMillis(); - do { - if (FAST_CALLBACK_COUNT.get() >= 10) { - System.out.println("Received enough fast notifications"); - return; - } - - try { - Thread.sleep(5); - } catch (InterruptedException e) { - Assert.fail("Unexpeceted exception " + e); - } - } while (System.currentTimeMillis() - start < TIMEOUT); - - // If we get to here then we did not receive enough events - Assert.fail("Did not receive enough fast events"); - } - - /** - * Waits for some slow call backs to be fired - */ - private void waitForSomeSlowCallbacks() { - // Reset the slow call back count - SLOW_CALLBACK_COUNT.set(0); - - // Wait until we have 4 slow call backs or timeout - final long start = System.currentTimeMillis(); - do { - if (SLOW_CALLBACK_COUNT.get() >= 4) { - System.out.println("Received enough slow notifications"); - return; - } - - try { - Thread.sleep(5); - } catch (InterruptedException e) { - Assert.fail("Unexpeceted exception " + e); - } - } while (System.currentTimeMillis() - start < TIMEOUT); - - // If we get to here then we did not receive enough events - Assert.fail("Did not receive enough slow events"); - } - - /** - * Register to receive fast call backs - */ - private void registerForFastCallback() { - aCallBackService.registerForEvent("FAST"); - } - - /** - * Register to receive slow call backs - */ - private void registerForSlowCallback() { - aCallBackService.registerForEvent("SLOW"); - } - - /** - * Unregister to receive fast call backs - */ - private void unregisterForFastCallback() { - aCallBackService.unregisterForEvent("FAST"); - } - - /** - * Unregister to receive slow call backs - */ - private void unregisterForSlowCallback() { - aCallBackService.unregisterForEvent("SLOW"); - } - - /** - * Method that is called when an Event is delivered. - * - * @param aEventName The name of the Event - * @param aEventData The Event data - */ - public void eventNotification(String aEventName, Object aEventData) { - // System.out.println("Received Event : " + aEventName + " " + aEventData); - - if (aEventName.equals("FAST")) { - final int newValue = FAST_CALLBACK_COUNT.incrementAndGet(); - //System.out.println("Received total of " + newValue + " fast call backs"); - } else if (aEventName.equals("SLOW")) { - final int newValue = SLOW_CALLBACK_COUNT.incrementAndGet(); - //System.out.println("Received total of " + newValue + " slow call backs"); - } else { - System.out.println("Unknown event type of " + aEventName); - } - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-separatethread/src/main/java/org/apache/tuscany/sca/itest/EventProcessorCallBack.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-separatethread/src/main/java/org/apache/tuscany/sca/itest/EventProcessorCallBack.java deleted file mode 100644 index 137ea6a658..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-separatethread/src/main/java/org/apache/tuscany/sca/itest/EventProcessorCallBack.java +++ /dev/null @@ -1,37 +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 org.apache.tuscany.sca.itest; - -import org.oasisopen.sca.annotation.Remotable; - -/** - * The call back interface for the EventProcessorService that is implemented - * by the client to receive event notifications - */ -@Remotable -public interface EventProcessorCallBack { - /** - * Call back notifying client of an Event - * - * @param aEventName The name of the Event - * @param aEventData The data for the Event - */ - void eventNotification(String aEventName, Object aEventData); -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-separatethread/src/main/java/org/apache/tuscany/sca/itest/EventProcessorService.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-separatethread/src/main/java/org/apache/tuscany/sca/itest/EventProcessorService.java deleted file mode 100644 index 4bf05fc925..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-separatethread/src/main/java/org/apache/tuscany/sca/itest/EventProcessorService.java +++ /dev/null @@ -1,45 +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 org.apache.tuscany.sca.itest; - -import org.oasisopen.sca.annotation.Callback; -import org.oasisopen.sca.annotation.Remotable; - -/** - * Sample Event Processor Service - */ -@Callback(EventProcessorCallBack.class) -@Remotable -public interface EventProcessorService { - - /** - * Registers the client to receive notifications for the specified event - * - * @param aEventName The name of the Event to register - */ - void registerForEvent(String aEventName); - - /** - * Unregisters the client so it no longer receives notifications for the specified event - * - * @param aEventName The name of the Event to unregister - */ - void unregisterForEvent(String aEventName); -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-separatethread/src/main/java/org/apache/tuscany/sca/itest/EventProcessorServiceImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-separatethread/src/main/java/org/apache/tuscany/sca/itest/EventProcessorServiceImpl.java deleted file mode 100644 index bec98a49c9..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-separatethread/src/main/java/org/apache/tuscany/sca/itest/EventProcessorServiceImpl.java +++ /dev/null @@ -1,195 +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 org.apache.tuscany.sca.itest; - -import java.util.Map; -import java.util.Timer; -import java.util.TimerTask; -import java.util.UUID; -import java.util.concurrent.ConcurrentHashMap; - -import org.oasisopen.sca.ServiceReference; -import org.oasisopen.sca.annotation.Callback; -import org.oasisopen.sca.annotation.Destroy; -import org.oasisopen.sca.annotation.Scope; -import org.oasisopen.sca.annotation.Service; - -/** - * Sample Event Processor Service Implementation - */ -@Service(EventProcessorService.class) -@Scope("COMPOSITE") -public class EventProcessorServiceImpl implements EventProcessorService { - - /** - * Reference to the call back - */ - @Callback - protected ServiceReference clientCallback; - - /** - * This map contains the call backs for each of the registered Event names - */ - private final Map> eventListeners; - - /** - * The list of all Event Generators we create - */ - private final EventGenerator[] allEventGenerators; - - /** - * Constructor. Starts the Event Generators - */ - public EventProcessorServiceImpl() { - eventListeners = new ConcurrentHashMap>(); - - // We will simulate an Event generator - allEventGenerators = new EventGenerator[2]; - allEventGenerators[0] = new EventGenerator("FAST", 10); // Generate the FAST event every 10ms - allEventGenerators[1] = new EventGenerator("SLOW", 50); // Generate the SLOW event every 50ms - } - - /** - * Registers the client to receive notifications for the specified event - * - * @param aEventName The name of the Event to register - */ - public void registerForEvent(String aEventName) { - // Register for the Event - eventListeners.put(aEventName, clientCallback); - - // Send the "register" started event to the client - receiveEvent(aEventName, "SameThread: Registered to receive notifications for " + aEventName); - } - - /** - * Unregisters the client so it no longer receives notifications for the specified event - * - * @param aEventName The name of the Event to unregister - */ - public void unregisterForEvent(String aEventName) { - // Send the "register" started event to the client - receiveEvent(aEventName, "SameThread: Unregister from receiving notifications for " + aEventName); - - eventListeners.remove(aEventName); - } - - /** - * This method is called whenever the EventProcessorService receives an Event - * - * @param aEventName The name of the Event received - * @param aEventData The Event data - */ - private void receiveEvent(String aEventName, Object aEventData) { - // Get the listener for the Event - final ServiceReference callback = eventListeners.get(aEventName); - if (callback == null) { - //System.out.println("No registered listeners for " + aEventName); - return; - } - - // Trigger the call back - // System.out.println("Notifying " + callback + " of event " + aEventName); - callback.getService().eventNotification(aEventName, aEventData); - // System.out.println("Done notify " + callback + " of event " + aEventName); - } - - /** - * Shuts down the Event Processor - */ - @Destroy - public void shutdown() { - System.out.println("Shutting down the EventProcessor"); - - // Clear list of call back locations as we don't want to send any more notifications - eventListeners.clear(); - - // Stop the Event Generators - for (EventGenerator generator : allEventGenerators) { - generator.stop(); - } - } - - /** - * Utility class for generating Events - */ - private final class EventGenerator { - /** - * The Timer we are using to generate the events - */ - private final Timer timer = new Timer(); - - /** - * Lock object to ensure that we can cancel the timer cleanly. - */ - private final Object lock = new Object(); - - /** - * Constructor - * - * @param aEventName The name of the Event to generate - * @param frequencyInMilliseconds How frequently we should generate the Events - */ - private EventGenerator(String aEventName, int frequencyInMilliseconds) { - timer.schedule(new EventGeneratorTimerTask(aEventName), - frequencyInMilliseconds, - frequencyInMilliseconds); - } - - /** - * Stop this Event Generator - */ - private void stop() { - synchronized (lock) { - timer.cancel(); - } - } - - /** - * The TimerTask that is invoked by the Timer for the EventGenerator - */ - private final class EventGeneratorTimerTask extends TimerTask { - /** - * The name of the Event we should generate - */ - private final String eventName; - - /** - * Constructor - * - * @param aEventName The name of the Event we should generate - */ - private EventGeneratorTimerTask(String aEventName) { - eventName = aEventName; - } - - /** - * Timer calls this method and it will generate an Event - */ - - public void run() { - synchronized(lock) { - // System.out.println("Generating new event " + eventName); - receiveEvent(eventName, "Separate Thread Notification: " + UUID.randomUUID().toString()); - } - } - } - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-separatethread/src/main/resources/CallBackSeparateThreadTest.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-separatethread/src/main/resources/CallBackSeparateThreadTest.composite deleted file mode 100644 index b10f3bc771..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-separatethread/src/main/resources/CallBackSeparateThreadTest.composite +++ /dev/null @@ -1,31 +0,0 @@ - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-separatethread/src/test/java/org/apache/tuscany/sca/itest/CallBackSeparateThreadTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-separatethread/src/test/java/org/apache/tuscany/sca/itest/CallBackSeparateThreadTestCase.java deleted file mode 100644 index c216cab1be..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-separatethread/src/test/java/org/apache/tuscany/sca/itest/CallBackSeparateThreadTestCase.java +++ /dev/null @@ -1,73 +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 org.apache.tuscany.sca.itest; - -import org.apache.tuscany.sca.node.Contribution; -import org.apache.tuscany.sca.node.ContributionLocationHelper; -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; -import org.junit.After; -import org.junit.Before; -import org.junit.Test; - -/** - * This test case will attempt to trigger a call back using a separate thread - */ -public class CallBackSeparateThreadTestCase { - - /** - * The Node we are using - */ - private Node node; - - /** - * The client the tests should use - */ - private CallBackSeparateThreadClient aCallBackClient; - - /** - * Run the call back in separate thread tests - */ - @Test - public void testCallBackSeparateThread() { - aCallBackClient.runTests(); - } - - /** - * Load the Call back in separate thread composite and look up the client. - */ - - @Before - public void setUp() throws Exception { - String location = ContributionLocationHelper.getContributionLocation("CallBackSeparateThreadTest.composite"); - node = NodeFactory.newInstance().createNode("CallBackSeparateThreadTest.composite", new Contribution("c1", location)); - node.start(); - aCallBackClient = node.getService(CallBackSeparateThreadClient.class, "CallBackSeparateThreadClient"); - } - - /** - * Shutdown the SCA node - */ - - @After - public void tearDown() throws Exception { - node.stop(); - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-two-composites/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-two-composites/pom.xml deleted file mode 100644 index 683d79ead5..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-two-composites/pom.xml +++ /dev/null @@ -1,79 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-itest - 2.0-M5 - ../pom.xml - - itest-callback-two-composites - Apache Tuscany SCA iTest Callback Two Composites - - - - org.apache.tuscany.sca - tuscany-node-api - 2.0-M5 - - - - org.apache.tuscany.sca - tuscany-node-impl - 2.0-M5 - test - - - - org.apache.tuscany.sca - tuscany-implementation-java-runtime - 2.0-M5 - test - - - - org.apache.tuscany.sca - tuscany-binding-ws-runtime-axis2 - 2.0-M5 - test - - - - org.apache.tuscany.sca - tuscany-host-http - 2.0-M5 - test - - - - org.apache.tuscany.sca - tuscany-host-jetty - 2.0-M5 - test - - - - - - ${basedir}/../build-was-integration.xml - ${basedir}/../wasAdmin.py - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-two-composites/src/main/java/org/apache/tuscany/sca/test/CallBackBasicCallBack.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-two-composites/src/main/java/org/apache/tuscany/sca/test/CallBackBasicCallBack.java deleted file mode 100644 index 291a72b9d6..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-two-composites/src/main/java/org/apache/tuscany/sca/test/CallBackBasicCallBack.java +++ /dev/null @@ -1,33 +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 org.apache.tuscany.sca.test; - -import org.oasisopen.sca.annotation.Remotable; - -@Remotable -/** - * - */ -public interface CallBackBasicCallBack { - - void callBackMessage(String aString); - - void callBackIncrement(String aString); - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-two-composites/src/main/java/org/apache/tuscany/sca/test/CallBackBasicClient.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-two-composites/src/main/java/org/apache/tuscany/sca/test/CallBackBasicClient.java deleted file mode 100644 index 19f366c423..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-two-composites/src/main/java/org/apache/tuscany/sca/test/CallBackBasicClient.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 org.apache.tuscany.sca.test; - -import org.oasisopen.sca.annotation.Remotable; - -@Remotable -public interface CallBackBasicClient { - - void run(); - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-two-composites/src/main/java/org/apache/tuscany/sca/test/CallBackBasicClientImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-two-composites/src/main/java/org/apache/tuscany/sca/test/CallBackBasicClientImpl.java deleted file mode 100644 index 4bb6b29a8d..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-two-composites/src/main/java/org/apache/tuscany/sca/test/CallBackBasicClientImpl.java +++ /dev/null @@ -1,129 +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 org.apache.tuscany.sca.test; - -import org.junit.Assert; -import org.oasisopen.sca.annotation.Reference; -import org.oasisopen.sca.annotation.Service; - -@Service(CallBackBasicClient.class) -public class CallBackBasicClientImpl implements CallBackBasicClient, CallBackBasicCallBack { - - @Reference - protected CallBackBasicService aCallBackService; - private static String returnMessage = null; - private static int callBackCount = 0; - private static Object monitor = new Object(); - - public void run() { - - // This tests basic callback patterns. - - // Test1 is the basic callback where the target calls back prior to - // returning to the client. - test1a(); - - // Test2 is where the target does not call back to the client. - test1b(); - - // Test3 is where the target calls back multiple times to the client. - test1c(); - } - - private void test1a() { - aCallBackService.knockKnock("Knock Knock"); - int count = 0; - - // - // If we can't get a response in 30 seconds consider this a failure - // - - synchronized (monitor) { - while (returnMessage == null && count++ < 30) { - try { - monitor.wait(1000L); - } catch (InterruptedException e) { - e.printStackTrace(); - } - } - } - - Assert.assertEquals("CallBackBasicITest - test1a", "Who's There", this.getReturnMessage()); - - } - - private void test1b() { - aCallBackService.noCallBack("No Reply Desired"); - Assert.assertEquals("CallBackBasicITest - test1b", 1, 1); - } - - private void test1c() { - aCallBackService.multiCallBack("Call me back 3 times"); - int count = 0; - - // - // If we can't get a response in 30 seconds consider this a failure - // - - synchronized (monitor) { - while (this.getCallBackCount() < 3 && count++ < 30) { - try { - monitor.wait(1000L); - } catch (InterruptedException e) { - e.printStackTrace(); - } - } - } - - Assert.assertEquals("CallBackBasicITest - test1c", 3, this.getCallBackCount()); - } - - public String getReturnMessage() { - return returnMessage; - } - - public void setReturnMessage(String aReturnMessage) { - returnMessage = aReturnMessage; - } - - public int getCallBackCount() { - return callBackCount; - } - - public void incrementCallBackCount() { - callBackCount++; - } - - public void callBackMessage(String aString) { - System.out.println("Entering callback callBackMessage: " + aString); - synchronized (monitor) { - this.setReturnMessage(aString); - monitor.notify(); - } - } - - public void callBackIncrement(String aString) { - System.out.println("Entering callback increment: " + aString); - synchronized (monitor) { - this.incrementCallBackCount(); - monitor.notify(); - } - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-two-composites/src/main/java/org/apache/tuscany/sca/test/CallBackBasicService.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-two-composites/src/main/java/org/apache/tuscany/sca/test/CallBackBasicService.java deleted file mode 100644 index 5396879e83..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-two-composites/src/main/java/org/apache/tuscany/sca/test/CallBackBasicService.java +++ /dev/null @@ -1,37 +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 org.apache.tuscany.sca.test; - -import org.oasisopen.sca.annotation.Callback; -import org.oasisopen.sca.annotation.Remotable; - -@Remotable -@Callback(CallBackBasicCallBack.class) -/** - * - */ -public interface CallBackBasicService { - - void knockKnock(String aString); - - void noCallBack(String aString); - - void multiCallBack(String aString); - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-two-composites/src/main/java/org/apache/tuscany/sca/test/CallBackBasicServiceImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-two-composites/src/main/java/org/apache/tuscany/sca/test/CallBackBasicServiceImpl.java deleted file mode 100644 index 07010f61e1..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-two-composites/src/main/java/org/apache/tuscany/sca/test/CallBackBasicServiceImpl.java +++ /dev/null @@ -1,56 +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 org.apache.tuscany.sca.test; - -import org.oasisopen.sca.annotation.Callback; -import org.oasisopen.sca.annotation.Service; - -@Service(CallBackBasicService.class) -public class CallBackBasicServiceImpl implements CallBackBasicService { - - @Callback - protected CallBackBasicCallBack callback; - - public void knockKnock(String aString) { - - System.out.println("CallBackBasicServiceImpl message received: " + aString); - callback.callBackMessage("Who's There"); - System.out.println("CallBackBasicServiceImpl response sent"); - - } - - public void multiCallBack(String aString) { - - System.out.println("CallBackBasicServiceImpl message received: " + aString); - callback.callBackIncrement("Who's There 1"); - System.out.println("CallBackBasicServiceImpl response sent"); - callback.callBackIncrement("Who's There 2"); - System.out.println("CallBackBasicServiceImpl response sent"); - callback.callBackIncrement("Who's There 3"); - System.out.println("CallBackBasicServiceImpl response sent"); - - } - - public void noCallBack(String aString) { - - System.out.println("CallBackBasicServiceImpl message received: " + aString); - // System.out.println("CallBackBasicServiceImpl No response desired"); - - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-two-composites/src/main/resources/CallBackReference.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-two-composites/src/main/resources/CallBackReference.composite deleted file mode 100644 index 477ef7391f..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-two-composites/src/main/resources/CallBackReference.composite +++ /dev/null @@ -1,33 +0,0 @@ - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-two-composites/src/main/resources/CallBackService.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-two-composites/src/main/resources/CallBackService.composite deleted file mode 100644 index c3f0f5bc81..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-two-composites/src/main/resources/CallBackService.composite +++ /dev/null @@ -1,31 +0,0 @@ - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-two-composites/src/main/resources/META-INF/sca-contribution.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-two-composites/src/main/resources/META-INF/sca-contribution.xml deleted file mode 100644 index 11d737e701..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-two-composites/src/main/resources/META-INF/sca-contribution.xml +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-two-composites/src/test/java/org/apache/tuscany/sca/test/CallBackTwoCompositesTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-two-composites/src/test/java/org/apache/tuscany/sca/test/CallBackTwoCompositesTestCase.java deleted file mode 100644 index 92fc8f4bef..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-two-composites/src/test/java/org/apache/tuscany/sca/test/CallBackTwoCompositesTestCase.java +++ /dev/null @@ -1,56 +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 org.apache.tuscany.sca.test; - -import org.apache.tuscany.sca.node.Contribution; -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; -import org.junit.After; -import org.junit.Before; -import org.junit.Test; - -public class CallBackTwoCompositesTestCase { - - private static Node node; - private CallBackBasicClient aCallBackClient; - - @Before - public void setUp() throws Exception { - try { - node = NodeFactory.newInstance().createNode(new Contribution("c1", "./target/classes")); - node.start(); - - aCallBackClient = node.getService(CallBackBasicClient.class, "CallBackBasicClient"); - } catch (Exception ex){ - ex.printStackTrace(); - } - } - - @Test - public void testCallBackBasic() { - aCallBackClient.run(); - } - - @After - public void tearDown() throws Exception { - node.stop(); - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-two-nodes/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-two-nodes/pom.xml deleted file mode 100644 index 2c8ef782b2..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-two-nodes/pom.xml +++ /dev/null @@ -1,86 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-itest - 2.0-M5 - ../pom.xml - - itest-callback-two-nodes - Apache Tuscany SCA iTest Callback Two Nodes - - - - org.apache.tuscany.sca - tuscany-node-api - 2.0-M5 - - - - org.apache.tuscany.sca - tuscany-node-impl - 2.0-M5 - test - - - - org.apache.tuscany.sca - tuscany-implementation-java-runtime - 2.0-M5 - test - - - - org.apache.tuscany.sca - tuscany-binding-ws-runtime-axis2 - 2.0-M5 - test - - - - org.apache.tuscany.sca - tuscany-host-http - 2.0-M5 - test - - - - org.apache.tuscany.sca - tuscany-host-jetty - 2.0-M5 - test - - - - org.apache.tuscany.sca - tuscany-endpoint-hazelcast - 2.0-M5 - test - - - - - - ${basedir}/../build-was-integration.xml - ${basedir}/../wasAdmin.py - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-two-nodes/src/main/java/org/apache/tuscany/sca/test/CallBackBasicCallBack.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-two-nodes/src/main/java/org/apache/tuscany/sca/test/CallBackBasicCallBack.java deleted file mode 100644 index 291a72b9d6..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-two-nodes/src/main/java/org/apache/tuscany/sca/test/CallBackBasicCallBack.java +++ /dev/null @@ -1,33 +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 org.apache.tuscany.sca.test; - -import org.oasisopen.sca.annotation.Remotable; - -@Remotable -/** - * - */ -public interface CallBackBasicCallBack { - - void callBackMessage(String aString); - - void callBackIncrement(String aString); - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-two-nodes/src/main/java/org/apache/tuscany/sca/test/CallBackBasicClient.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-two-nodes/src/main/java/org/apache/tuscany/sca/test/CallBackBasicClient.java deleted file mode 100644 index 19f366c423..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-two-nodes/src/main/java/org/apache/tuscany/sca/test/CallBackBasicClient.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 org.apache.tuscany.sca.test; - -import org.oasisopen.sca.annotation.Remotable; - -@Remotable -public interface CallBackBasicClient { - - void run(); - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-two-nodes/src/main/java/org/apache/tuscany/sca/test/CallBackBasicClientImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-two-nodes/src/main/java/org/apache/tuscany/sca/test/CallBackBasicClientImpl.java deleted file mode 100644 index 4bb6b29a8d..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-two-nodes/src/main/java/org/apache/tuscany/sca/test/CallBackBasicClientImpl.java +++ /dev/null @@ -1,129 +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 org.apache.tuscany.sca.test; - -import org.junit.Assert; -import org.oasisopen.sca.annotation.Reference; -import org.oasisopen.sca.annotation.Service; - -@Service(CallBackBasicClient.class) -public class CallBackBasicClientImpl implements CallBackBasicClient, CallBackBasicCallBack { - - @Reference - protected CallBackBasicService aCallBackService; - private static String returnMessage = null; - private static int callBackCount = 0; - private static Object monitor = new Object(); - - public void run() { - - // This tests basic callback patterns. - - // Test1 is the basic callback where the target calls back prior to - // returning to the client. - test1a(); - - // Test2 is where the target does not call back to the client. - test1b(); - - // Test3 is where the target calls back multiple times to the client. - test1c(); - } - - private void test1a() { - aCallBackService.knockKnock("Knock Knock"); - int count = 0; - - // - // If we can't get a response in 30 seconds consider this a failure - // - - synchronized (monitor) { - while (returnMessage == null && count++ < 30) { - try { - monitor.wait(1000L); - } catch (InterruptedException e) { - e.printStackTrace(); - } - } - } - - Assert.assertEquals("CallBackBasicITest - test1a", "Who's There", this.getReturnMessage()); - - } - - private void test1b() { - aCallBackService.noCallBack("No Reply Desired"); - Assert.assertEquals("CallBackBasicITest - test1b", 1, 1); - } - - private void test1c() { - aCallBackService.multiCallBack("Call me back 3 times"); - int count = 0; - - // - // If we can't get a response in 30 seconds consider this a failure - // - - synchronized (monitor) { - while (this.getCallBackCount() < 3 && count++ < 30) { - try { - monitor.wait(1000L); - } catch (InterruptedException e) { - e.printStackTrace(); - } - } - } - - Assert.assertEquals("CallBackBasicITest - test1c", 3, this.getCallBackCount()); - } - - public String getReturnMessage() { - return returnMessage; - } - - public void setReturnMessage(String aReturnMessage) { - returnMessage = aReturnMessage; - } - - public int getCallBackCount() { - return callBackCount; - } - - public void incrementCallBackCount() { - callBackCount++; - } - - public void callBackMessage(String aString) { - System.out.println("Entering callback callBackMessage: " + aString); - synchronized (monitor) { - this.setReturnMessage(aString); - monitor.notify(); - } - } - - public void callBackIncrement(String aString) { - System.out.println("Entering callback increment: " + aString); - synchronized (monitor) { - this.incrementCallBackCount(); - monitor.notify(); - } - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-two-nodes/src/main/java/org/apache/tuscany/sca/test/CallBackBasicService.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-two-nodes/src/main/java/org/apache/tuscany/sca/test/CallBackBasicService.java deleted file mode 100644 index 5396879e83..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-two-nodes/src/main/java/org/apache/tuscany/sca/test/CallBackBasicService.java +++ /dev/null @@ -1,37 +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 org.apache.tuscany.sca.test; - -import org.oasisopen.sca.annotation.Callback; -import org.oasisopen.sca.annotation.Remotable; - -@Remotable -@Callback(CallBackBasicCallBack.class) -/** - * - */ -public interface CallBackBasicService { - - void knockKnock(String aString); - - void noCallBack(String aString); - - void multiCallBack(String aString); - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-two-nodes/src/main/java/org/apache/tuscany/sca/test/CallBackBasicServiceImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-two-nodes/src/main/java/org/apache/tuscany/sca/test/CallBackBasicServiceImpl.java deleted file mode 100644 index 07010f61e1..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-two-nodes/src/main/java/org/apache/tuscany/sca/test/CallBackBasicServiceImpl.java +++ /dev/null @@ -1,56 +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 org.apache.tuscany.sca.test; - -import org.oasisopen.sca.annotation.Callback; -import org.oasisopen.sca.annotation.Service; - -@Service(CallBackBasicService.class) -public class CallBackBasicServiceImpl implements CallBackBasicService { - - @Callback - protected CallBackBasicCallBack callback; - - public void knockKnock(String aString) { - - System.out.println("CallBackBasicServiceImpl message received: " + aString); - callback.callBackMessage("Who's There"); - System.out.println("CallBackBasicServiceImpl response sent"); - - } - - public void multiCallBack(String aString) { - - System.out.println("CallBackBasicServiceImpl message received: " + aString); - callback.callBackIncrement("Who's There 1"); - System.out.println("CallBackBasicServiceImpl response sent"); - callback.callBackIncrement("Who's There 2"); - System.out.println("CallBackBasicServiceImpl response sent"); - callback.callBackIncrement("Who's There 3"); - System.out.println("CallBackBasicServiceImpl response sent"); - - } - - public void noCallBack(String aString) { - - System.out.println("CallBackBasicServiceImpl message received: " + aString); - // System.out.println("CallBackBasicServiceImpl No response desired"); - - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-two-nodes/src/main/resources/CallBackReference.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-two-nodes/src/main/resources/CallBackReference.composite deleted file mode 100644 index 477ef7391f..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-two-nodes/src/main/resources/CallBackReference.composite +++ /dev/null @@ -1,33 +0,0 @@ - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-two-nodes/src/main/resources/CallBackService.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-two-nodes/src/main/resources/CallBackService.composite deleted file mode 100644 index c3f0f5bc81..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-two-nodes/src/main/resources/CallBackService.composite +++ /dev/null @@ -1,31 +0,0 @@ - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-two-nodes/src/main/resources/META-INF/sca-contribution.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-two-nodes/src/main/resources/META-INF/sca-contribution.xml deleted file mode 100644 index efef032b8f..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-two-nodes/src/main/resources/META-INF/sca-contribution.xml +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-two-nodes/src/test/java/org/apache/tuscany/sca/test/CallBackTwoNodesTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-two-nodes/src/test/java/org/apache/tuscany/sca/test/CallBackTwoNodesTestCase.java deleted file mode 100644 index 19e818b68f..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/callback-two-nodes/src/test/java/org/apache/tuscany/sca/test/CallBackTwoNodesTestCase.java +++ /dev/null @@ -1,78 +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 org.apache.tuscany.sca.test; - -import org.apache.tuscany.sca.node.Contribution; -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; -import org.apache.tuscany.sca.node.configuration.NodeConfiguration; -import org.junit.After; -import org.junit.Before; -import org.junit.Test; - -public class CallBackTwoNodesTestCase { - - private static Node node1; - private static Node node2; - private CallBackBasicClient aCallBackClient; - - @Before - public void setUp() throws Exception { - try { - NodeFactory factory = NodeFactory.getInstance(); - - NodeConfiguration configuration = factory.createNodeConfiguration(); - configuration.setDomainURI("tuscany:default"); - configuration.setURI("node1"); - configuration.addContribution("c1", "./target/classes"); - configuration.addDeploymentComposite("c1","CallBackService.composite"); - - //node1 = factory.createNode("CallBackService.composite", new Contribution("c1", "./target/classes")); - node1 = factory.createNode(configuration); - node1.start(); - - configuration = factory.createNodeConfiguration(); - configuration.setDomainURI("tuscany:default"); - configuration.setURI("node2"); - configuration.addContribution("c1", "./target/classes"); - configuration.addDeploymentComposite("c1","CallBackReference.composite"); - - //node2 = factory.newInstance().createNode("CallBackReference.composite", new Contribution("c1", "./target/classes")); - node2 = factory.createNode(configuration); - node2.start(); - - aCallBackClient = node2.getService(CallBackBasicClient.class, "CallBackBasicClient"); - } catch (Exception ex){ - ex.printStackTrace(); - } - } - - @Test - public void testCallBackTwoNodes() { - aCallBackClient.run(); - } - - @After - public void tearDown() throws Exception { - node2.stop(); - node1.stop(); - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/component-type/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/component-type/pom.xml deleted file mode 100644 index 54ae620529..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/component-type/pom.xml +++ /dev/null @@ -1,53 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-itest - 2.0-M5 - ../pom.xml - - itest-component-type - Apache Tuscany SCA iTest Component Type - - - - org.apache.tuscany.sca - tuscany-node-api - 2.0-M5 - - - - org.apache.tuscany.sca - tuscany-node-impl - 2.0-M5 - runtime - - - - org.apache.tuscany.sca - tuscany-implementation-java-runtime - 2.0-M5 - runtime - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/component-type/src/main/java/calculator/AddService.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/component-type/src/main/java/calculator/AddService.java deleted file mode 100644 index 188451ebac..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/component-type/src/main/java/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/sca-java-2.x/tags/2.0-M5-RC3/itest/component-type/src/main/java/calculator/AddServiceImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/component-type/src/main/java/calculator/AddServiceImpl.java deleted file mode 100644 index 8b6fe066a6..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/component-type/src/main/java/calculator/AddServiceImpl.java +++ /dev/null @@ -1,30 +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; - -/** - * An implementation of the Add service - */ -public class AddServiceImpl implements AddService { - - public double add(double n1, double n2) { - return n1 + n2; - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/component-type/src/main/java/calculator/CalculatorClient.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/component-type/src/main/java/calculator/CalculatorClient.java deleted file mode 100644 index 6f978bd9be..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/component-type/src/main/java/calculator/CalculatorClient.java +++ /dev/null @@ -1,49 +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.apache.tuscany.sca.node.Contribution; -import org.apache.tuscany.sca.node.ContributionLocationHelper; -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; - -/** - * 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 { - - String location = ContributionLocationHelper.getContributionLocation("Calculator.composite"); - Node node = NodeFactory.newInstance().createNode("Calculator.composite", new Contribution("c1", location)); - node.start(); - - CalculatorService calculatorService = - node.getService(CalculatorService.class, "CalculatorServiceComponent/CalculatorService"); - - // 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)); - - node.stop(); - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/component-type/src/main/java/calculator/CalculatorService.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/component-type/src/main/java/calculator/CalculatorService.java deleted file mode 100644 index c89043276e..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/component-type/src/main/java/calculator/CalculatorService.java +++ /dev/null @@ -1,34 +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/sca-java-2.x/tags/2.0-M5-RC3/itest/component-type/src/main/java/calculator/CalculatorServiceImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/component-type/src/main/java/calculator/CalculatorServiceImpl.java deleted file mode 100644 index 1209ac128a..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/component-type/src/main/java/calculator/CalculatorServiceImpl.java +++ /dev/null @@ -1,63 +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; - -/** - * An implementation of the Calculator service. - */ -public class CalculatorServiceImpl implements CalculatorService { - - private AddService addService; - private SubtractService subtractService; - private MultiplyService multiplyService; - private DivideService divideService; - - public void setAddService(AddService addService) { - this.addService = addService; - } - - public void setSubtractService(SubtractService subtractService) { - this.subtractService = subtractService; - } - - public void setDivideService(DivideService divideService) { - this.divideService = divideService; - } - - 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/sca-java-2.x/tags/2.0-M5-RC3/itest/component-type/src/main/java/calculator/DivideService.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/component-type/src/main/java/calculator/DivideService.java deleted file mode 100644 index 30d248208b..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/component-type/src/main/java/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/sca-java-2.x/tags/2.0-M5-RC3/itest/component-type/src/main/java/calculator/DivideServiceImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/component-type/src/main/java/calculator/DivideServiceImpl.java deleted file mode 100644 index f7ac0b7287..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/component-type/src/main/java/calculator/DivideServiceImpl.java +++ /dev/null @@ -1,30 +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; - -/** - * An implementation of the Divide service. - */ -public class DivideServiceImpl implements DivideService { - - public double divide(double n1, double n2) { - return n1 / n2; - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/component-type/src/main/java/calculator/MultiplyService.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/component-type/src/main/java/calculator/MultiplyService.java deleted file mode 100644 index 5290605938..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/component-type/src/main/java/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/sca-java-2.x/tags/2.0-M5-RC3/itest/component-type/src/main/java/calculator/MultiplyServiceImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/component-type/src/main/java/calculator/MultiplyServiceImpl.java deleted file mode 100644 index b7dca792b2..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/component-type/src/main/java/calculator/MultiplyServiceImpl.java +++ /dev/null @@ -1,30 +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; - -/** - * An implementation of the Multiply service. - */ -public class MultiplyServiceImpl implements MultiplyService { - - public double multiply(double n1, double n2) { - return n1 * n2; - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/component-type/src/main/java/calculator/SubtractService.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/component-type/src/main/java/calculator/SubtractService.java deleted file mode 100644 index bf0d1882b6..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/component-type/src/main/java/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/sca-java-2.x/tags/2.0-M5-RC3/itest/component-type/src/main/java/calculator/SubtractServiceImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/component-type/src/main/java/calculator/SubtractServiceImpl.java deleted file mode 100644 index 77b128ab8d..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/component-type/src/main/java/calculator/SubtractServiceImpl.java +++ /dev/null @@ -1,30 +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; - -/** - * An implementation of the subtract service. - */ -public class SubtractServiceImpl implements SubtractService { - - public double subtract(double n1, double n2) { - return n1 - n2; - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/component-type/src/main/resources/Calculator.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/component-type/src/main/resources/Calculator.composite deleted file mode 100644 index fc08333544..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/component-type/src/main/resources/Calculator.composite +++ /dev/null @@ -1,49 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/component-type/src/main/resources/calculator/AddServiceImpl.componentType b/sca-java-2.x/tags/2.0-M5-RC3/itest/component-type/src/main/resources/calculator/AddServiceImpl.componentType deleted file mode 100644 index a6babbfc2f..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/component-type/src/main/resources/calculator/AddServiceImpl.componentType +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/component-type/src/main/resources/calculator/CalculatorServiceImpl.componentType b/sca-java-2.x/tags/2.0-M5-RC3/itest/component-type/src/main/resources/calculator/CalculatorServiceImpl.componentType deleted file mode 100644 index b3a4ac83e9..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/component-type/src/main/resources/calculator/CalculatorServiceImpl.componentType +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/component-type/src/main/resources/calculator/DivideServiceImpl.componentType b/sca-java-2.x/tags/2.0-M5-RC3/itest/component-type/src/main/resources/calculator/DivideServiceImpl.componentType deleted file mode 100644 index 9238359f76..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/component-type/src/main/resources/calculator/DivideServiceImpl.componentType +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/component-type/src/main/resources/calculator/MultiplyServiceImpl.componentType b/sca-java-2.x/tags/2.0-M5-RC3/itest/component-type/src/main/resources/calculator/MultiplyServiceImpl.componentType deleted file mode 100644 index 2fadb54bf1..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/component-type/src/main/resources/calculator/MultiplyServiceImpl.componentType +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/component-type/src/main/resources/calculator/SubtractServiceImpl.componentType b/sca-java-2.x/tags/2.0-M5-RC3/itest/component-type/src/main/resources/calculator/SubtractServiceImpl.componentType deleted file mode 100644 index 6ca2df2928..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/component-type/src/main/resources/calculator/SubtractServiceImpl.componentType +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/component-type/src/test/java/calculator/CalculatorTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/component-type/src/test/java/calculator/CalculatorTestCase.java deleted file mode 100644 index ac3ccc3d08..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/component-type/src/test/java/calculator/CalculatorTestCase.java +++ /dev/null @@ -1,60 +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.apache.tuscany.sca.node.Contribution; -import org.apache.tuscany.sca.node.ContributionLocationHelper; -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; -import org.junit.After; -import org.junit.Before; -import org.junit.Test; - -/** - * This shows how to test the Calculator service component. - */ -public class CalculatorTestCase { - - private CalculatorService calculatorService; - private Node node; - - @Before - public void setUp() throws Exception { - String location = ContributionLocationHelper.getContributionLocation("Calculator.composite"); - node = NodeFactory.newInstance().createNode("Calculator.composite", new Contribution("c1", location)); - node.start(); - calculatorService = node.getService(CalculatorService.class, "CalculatorServiceComponent/CalculatorService"); - } - - @After - public void tearDown() throws Exception { - node.stop(); - } - - @Test - public void testCalculator() throws Exception { - // Calculate - /* - assertEquals(calculatorService.add(3, 2), 5.0, 0.0); - assertEquals(calculatorService.subtract(3, 2), 1.0, 0.0); - assertEquals(calculatorService.multiply(3, 2), 6.0, 0.0); - assertEquals(calculatorService.divide(3, 2), 1.5, 0.0); - */ - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-folder/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-folder/pom.xml deleted file mode 100644 index 456785c348..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-folder/pom.xml +++ /dev/null @@ -1,46 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-itest - 2.0-M5 - ../pom.xml - - itest-contribution-folder - Apache Tuscany SCA iTest Contribution Folder - - - - org.apache.tuscany.sca - tuscany-node-impl - 2.0-M5 - - - - org.apache.tuscany.sca - tuscany-implementation-java-runtime - 2.0-M5 - runtime - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-folder/src/test/java/calculator/CalculatorService.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-folder/src/test/java/calculator/CalculatorService.java deleted file mode 100644 index b4c677b371..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-folder/src/test/java/calculator/CalculatorService.java +++ /dev/null @@ -1,31 +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; - -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/sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-folder/src/test/java/test/ContributionFolderTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-folder/src/test/java/test/ContributionFolderTestCase.java deleted file mode 100644 index ef2a43c766..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-folder/src/test/java/test/ContributionFolderTestCase.java +++ /dev/null @@ -1,55 +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 test; - -import junit.framework.TestCase; - -import org.apache.tuscany.sca.node.Contribution; -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; - -import calculator.CalculatorService; - -/** - * Test SCADomain.newInstance and invocation of a service. - * - * @version $Rev$ $Date$ - */ -public class ContributionFolderTestCase extends TestCase { - - private Node node; - - @Override - protected void setUp() throws Exception { - node = NodeFactory.newInstance().createNode(new Contribution("foo", "src/test/resources/repository")); - node.start(); - } - - public void testInvoke() throws Exception { - CalculatorService service = node.getService(CalculatorService.class, "CalculatorServiceComponent"); - assertEquals(3.0, service.add(1, 2)); - } - - @Override - protected void tearDown() throws Exception { - node.stop(); - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-folder/src/test/resources/repository/folderWithJars/Calculator.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-folder/src/test/resources/repository/folderWithJars/Calculator.composite deleted file mode 100644 index 05bea57944..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-folder/src/test/resources/repository/folderWithJars/Calculator.composite +++ /dev/null @@ -1,49 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-folder/src/test/resources/repository/folderWithJars/META-INF/sca-contribution.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-folder/src/test/resources/repository/folderWithJars/META-INF/sca-contribution.xml deleted file mode 100644 index 8d6012e5c4..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-folder/src/test/resources/repository/folderWithJars/META-INF/sca-contribution.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-folder/src/test/resources/repository/folderWithJars/service.jar b/sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-folder/src/test/resources/repository/folderWithJars/service.jar deleted file mode 100644 index fe264693fe..0000000000 Binary files a/sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-folder/src/test/resources/repository/folderWithJars/service.jar and /dev/null differ diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-folder/src/test/resources/repository/folderWithJars/serviceImpl.jar b/sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-folder/src/test/resources/repository/folderWithJars/serviceImpl.jar deleted file mode 100644 index d5dfb647d3..0000000000 Binary files a/sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-folder/src/test/resources/repository/folderWithJars/serviceImpl.jar and /dev/null differ diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-folder/src/test/resources/repository3/contribution.zip b/sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-folder/src/test/resources/repository3/contribution.zip deleted file mode 100644 index b293aa4bcc..0000000000 Binary files a/sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-folder/src/test/resources/repository3/contribution.zip and /dev/null differ diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-import-export/export-composite/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-import-export/export-composite/pom.xml deleted file mode 100644 index 775011627a..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-import-export/export-composite/pom.xml +++ /dev/null @@ -1,67 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-itest - 2.0-SNAPSHOT - ../pom.xml - - itest-contribution-export-composite - Apache Tuscany SCA iTest Contribution Export - - - - org.apache.tuscany.sca - tuscany-host-embedded - 2.0-SNAPSHOT - - - - org.apache.tuscany.sca - tuscany-implementation-java-runtime - 2.0-SNAPSHOT - runtime - - - - org.apache.tuscany.sca - tuscany-binding-ws-runtime-axis2 - 2.0-SNAPSHOT - runtime - - - - org.apache.tuscany.sca - tuscany-host-tomcat - 2.0-SNAPSHOT - runtime - - - - junit - junit - 4.8.1 - test - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-import-export/export-composite/src/main/java/hello/Hello.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-import-export/export-composite/src/main/java/hello/Hello.java deleted file mode 100644 index 669821261c..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-import-export/export-composite/src/main/java/hello/Hello.java +++ /dev/null @@ -1,30 +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 hello; - -import org.osoa.sca.annotations.Remotable; - -/** - * This is the business interface of the Hello service. - */ -@Remotable -public interface Hello { - - public String getGreetings(String name); -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-import-export/export-composite/src/main/java/hello/HelloImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-import-export/export-composite/src/main/java/hello/HelloImpl.java deleted file mode 100644 index ff9f6e75f3..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-import-export/export-composite/src/main/java/hello/HelloImpl.java +++ /dev/null @@ -1,33 +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 hello; - -import org.osoa.sca.annotations.Service; - -/** - * This class implements the HelloWorld service. - */ -@Service(Hello.class) -public class HelloImpl implements Hello { - - public String getGreetings(String name) { - return "Hello " + name; - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-import-export/export-composite/src/main/resources/META-INF/sca-contribution.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-import-export/export-composite/src/main/resources/META-INF/sca-contribution.xml deleted file mode 100644 index bea6f39932..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-import-export/export-composite/src/main/resources/META-INF/sca-contribution.xml +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-import-export/export-composite/src/main/resources/hello.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-import-export/export-composite/src/main/resources/hello.composite deleted file mode 100644 index aeeab337fa..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-import-export/export-composite/src/main/resources/hello.composite +++ /dev/null @@ -1,31 +0,0 @@ - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-import-export/export-composite/src/test/java/org/apache/tuscany/sca/test/contribution/HelloTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-import-export/export-composite/src/test/java/org/apache/tuscany/sca/test/contribution/HelloTestCase.java deleted file mode 100644 index 44614f243a..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-import-export/export-composite/src/test/java/org/apache/tuscany/sca/test/contribution/HelloTestCase.java +++ /dev/null @@ -1,91 +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 org.apache.tuscany.sca.test.contribution; - -import hello.Hello; - -import java.io.IOException; -import java.net.MalformedURLException; -import java.net.URL; - -import junit.framework.TestCase; - -import org.apache.tuscany.sca.assembly.Composite; -import org.apache.tuscany.sca.contribution.Contribution; -import org.apache.tuscany.sca.contribution.service.ContributionService; -import org.apache.tuscany.sca.host.embedded.impl.EmbeddedSCADomain; - -/** - * Tests that the helloworld server is available - */ -public class HelloTestCase extends TestCase { - private ClassLoader cl; - private EmbeddedSCADomain domain; - - @Override - protected void setUp() throws Exception { - // Create a test embedded SCA domain - cl = getClass().getClassLoader(); - domain = new EmbeddedSCADomain(cl, "http://localhost"); - - // Start the domain - domain.start(); - - // Contribute the SCA contribution - ContributionService contributionService = domain.getContributionService(); - - URL helloURL = getContributionURL(Hello.class); - - // File helloContrib = new File("./target/classes/"); - // URL helloURL = helloContrib.toURL(); - Contribution consumerContribution = - contributionService.contribute("http://import-export/hello", helloURL, false); - Composite consumerComposite = consumerContribution.getDeployables().get(0); - domain.getDomainComposite().getIncludes().add(consumerComposite); - domain.buildComposite(consumerComposite); - - // Start Components from my composite - domain.getCompositeActivator().activate(consumerComposite); - domain.getCompositeActivator().start(consumerComposite); - } - - private URL getContributionURL(Class cls) throws MalformedURLException { - String flag = "/" + cls.getName().replace('.', '/') + ".class"; - URL url = cls.getResource(flag); - String root = url.toExternalForm(); - root = root.substring(0, root.length() - flag.length() + 1); - if (root.startsWith("jar:") && root.endsWith("!/")) { - root = root.substring(4, root.length() - 2); - } - url = new URL(root); - return url; - } - - public void testHello() throws IOException { - Hello hello = domain.getService(Hello.class, "HelloServiceComponent"); - assertNotNull(hello); - assertEquals(hello.getGreetings("lresende"), "Hello lresende"); - } - - @Override - public void tearDown() throws Exception { - domain.close(); - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-import-export/export-java/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-import-export/export-java/pom.xml deleted file mode 100644 index 8cb47f7b0f..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-import-export/export-java/pom.xml +++ /dev/null @@ -1,67 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-itest - 2.0-SNAPSHOT - ../pom.xml - - itest-contribution-export-java - Apache Tuscany SCA iTest Contribution Java Export - - - - org.apache.tuscany.sca - tuscany-host-embedded - 2.0-SNAPSHOT - - - - org.apache.tuscany.sca - tuscany-implementation-java-runtime - 2.0-SNAPSHOT - runtime - - - - org.apache.tuscany.sca - tuscany-binding-ws-runtime-axis2 - 2.0-SNAPSHOT - runtime - - - - org.apache.tuscany.sca - tuscany-host-tomcat - 2.0-SNAPSHOT - runtime - - - - junit - junit - 4.8.1 - test - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-import-export/export-java/src/main/java/helloworld/HelloWorldService.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-import-export/export-java/src/main/java/helloworld/HelloWorldService.java deleted file mode 100644 index 268d90e910..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-import-export/export-java/src/main/java/helloworld/HelloWorldService.java +++ /dev/null @@ -1,30 +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 helloworld; - -import org.osoa.sca.annotations.Remotable; - -/** - * This is the business interface of the HelloWorld greetings service. - */ -@Remotable -public interface HelloWorldService { - - public String getGreetings(String name); -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-import-export/export-java/src/main/resources/META-INF/sca-contribution.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-import-export/export-java/src/main/resources/META-INF/sca-contribution.xml deleted file mode 100644 index 7e11adcec7..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-import-export/export-java/src/main/resources/META-INF/sca-contribution.xml +++ /dev/null @@ -1,24 +0,0 @@ - - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-import-export/export-java/src/main/resources/helloworld/HelloWorldImpl.componentType b/sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-import-export/export-java/src/main/resources/helloworld/HelloWorldImpl.componentType deleted file mode 100644 index 5a14b41650..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-import-export/export-java/src/main/resources/helloworld/HelloWorldImpl.componentType +++ /dev/null @@ -1,30 +0,0 @@ - - - - - - - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-import-export/export-resource/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-import-export/export-resource/pom.xml deleted file mode 100644 index d8133c4acc..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-import-export/export-resource/pom.xml +++ /dev/null @@ -1,31 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-itest - 1.6-SNAPSHOT - ../pom.xml - - itest-contribution-export-resource - Apache Tuscany SCA iTest Contribution Resource Export - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-import-export/export-resource/src/main/resources/META-INF/sca-contribution.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-import-export/export-resource/src/main/resources/META-INF/sca-contribution.xml deleted file mode 100644 index f11eacb416..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-import-export/export-resource/src/main/resources/META-INF/sca-contribution.xml +++ /dev/null @@ -1,24 +0,0 @@ - - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-import-export/export-resource/src/main/resources/ufservices/store.html b/sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-import-export/export-resource/src/main/resources/ufservices/store.html deleted file mode 100644 index 1ff281373a..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-import-export/export-resource/src/main/resources/ufservices/store.html +++ /dev/null @@ -1,27 +0,0 @@ - - - -Store - - - -

Sample Store Page

- - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-import-export/export-wsdl/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-import-export/export-wsdl/pom.xml deleted file mode 100644 index 831441fb7e..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-import-export/export-wsdl/pom.xml +++ /dev/null @@ -1,31 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-itest - 2.0-SNAPSHOT - ../pom.xml - - itest-contribution-export-wsdl - Apache Tuscany SCA iTest Contribution WSDL Export - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-import-export/export-wsdl/src/main/resources/META-INF/sca-contribution.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-import-export/export-wsdl/src/main/resources/META-INF/sca-contribution.xml deleted file mode 100644 index 8254b667f2..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-import-export/export-wsdl/src/main/resources/META-INF/sca-contribution.xml +++ /dev/null @@ -1,24 +0,0 @@ - - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-import-export/export-wsdl/src/main/resources/helloworld.wsdl b/sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-import-export/export-wsdl/src/main/resources/helloworld.wsdl deleted file mode 100644 index 0172fb2c7c..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-import-export/export-wsdl/src/main/resources/helloworld.wsdl +++ /dev/null @@ -1,76 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-import-export/export-wsdl/src/main/resources/helloworld.xsd b/sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-import-export/export-wsdl/src/main/resources/helloworld.xsd deleted file mode 100644 index d49e2ead99..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-import-export/export-wsdl/src/main/resources/helloworld.xsd +++ /dev/null @@ -1,35 +0,0 @@ - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-import-export/import-composite/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-import-export/import-composite/pom.xml deleted file mode 100644 index 86036a9577..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-import-export/import-composite/pom.xml +++ /dev/null @@ -1,73 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-itest - 2.0-SNAPSHOT - ../pom.xml - - itest-contribution-import-composite - Apache Tuscany SCA iTest Contribution Import - - - - org.apache.tuscany.sca - itest-contribution-export-composite - 2.0-SNAPSHOT - - - - org.apache.tuscany.sca - tuscany-host-embedded - 2.0-SNAPSHOT - - - - org.apache.tuscany.sca - tuscany-implementation-java-runtime - 2.0-SNAPSHOT - runtime - - - - org.apache.tuscany.sca - tuscany-binding-ws-runtime-axis2 - 2.0-SNAPSHOT - runtime - - - - org.apache.tuscany.sca - tuscany-host-tomcat - 2.0-SNAPSHOT - runtime - - - - junit - junit - 4.8.1 - test - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-import-export/import-composite/src/main/java/helloworld/HelloWorldImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-import-export/import-composite/src/main/java/helloworld/HelloWorldImpl.java deleted file mode 100644 index c062afaed0..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-import-export/import-composite/src/main/java/helloworld/HelloWorldImpl.java +++ /dev/null @@ -1,38 +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 helloworld; - -import hello.Hello; - -import org.osoa.sca.annotations.Reference; -import org.osoa.sca.annotations.Service; - -/** - * This class implements the HelloWorld service. - */ -@Service(HelloWorldService.class) -public class HelloWorldImpl implements HelloWorldService { - @Reference - protected Hello helloServiceRef; - - public String getGreetings(String name) { - return helloServiceRef.getGreetings(name); - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-import-export/import-composite/src/main/java/helloworld/HelloWorldServer.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-import-export/import-composite/src/main/java/helloworld/HelloWorldServer.java deleted file mode 100644 index e03ed4dc25..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-import-export/import-composite/src/main/java/helloworld/HelloWorldServer.java +++ /dev/null @@ -1,46 +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 helloworld; - -import java.io.IOException; - -import org.apache.tuscany.sca.host.embedded.SCADomain; - -/** - * This server program shows how to create an SCA runtime, and start it which - * activates the helloworld Web service endpoint. - */ -public class HelloWorldServer { - - public static void main(String[] args) { - - SCADomain scaDomain = SCADomain.newInstance("helloworldws.composite"); - - try { - System.out.println("HelloWorld server started (press enter to shutdown)"); - System.in.read(); - } catch (IOException e) { - e.printStackTrace(); - } - - scaDomain.close(); - System.out.println("HelloWorld server stopped"); - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-import-export/import-composite/src/main/java/helloworld/HelloWorldService.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-import-export/import-composite/src/main/java/helloworld/HelloWorldService.java deleted file mode 100644 index 268d90e910..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-import-export/import-composite/src/main/java/helloworld/HelloWorldService.java +++ /dev/null @@ -1,30 +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 helloworld; - -import org.osoa.sca.annotations.Remotable; - -/** - * This is the business interface of the HelloWorld greetings service. - */ -@Remotable -public interface HelloWorldService { - - public String getGreetings(String name); -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-import-export/import-composite/src/main/resources/META-INF/sca-contribution.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-import-export/import-composite/src/main/resources/META-INF/sca-contribution.xml deleted file mode 100644 index 130aa91093..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-import-export/import-composite/src/main/resources/META-INF/sca-contribution.xml +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-import-export/import-composite/src/main/resources/helloworld.wsdl b/sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-import-export/import-composite/src/main/resources/helloworld.wsdl deleted file mode 100644 index 0172fb2c7c..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-import-export/import-composite/src/main/resources/helloworld.wsdl +++ /dev/null @@ -1,76 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-import-export/import-composite/src/main/resources/helloworld.xsd b/sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-import-export/import-composite/src/main/resources/helloworld.xsd deleted file mode 100644 index d49e2ead99..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-import-export/import-composite/src/main/resources/helloworld.xsd +++ /dev/null @@ -1,35 +0,0 @@ - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-import-export/import-composite/src/main/resources/helloworldws.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-import-export/import-composite/src/main/resources/helloworldws.composite deleted file mode 100644 index 44ceba1240..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-import-export/import-composite/src/main/resources/helloworldws.composite +++ /dev/null @@ -1,39 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-import-export/import-composite/src/test/java/org/apache/tuscany/test/contribution/HelloWorldServerTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-import-export/import-composite/src/test/java/org/apache/tuscany/test/contribution/HelloWorldServerTestCase.java deleted file mode 100644 index 3cc6784eca..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-import-export/import-composite/src/test/java/org/apache/tuscany/test/contribution/HelloWorldServerTestCase.java +++ /dev/null @@ -1,126 +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 org.apache.tuscany.test.contribution; - -import hello.Hello; -import helloworld.HelloWorldService; - -import java.io.IOException; -import java.net.MalformedURLException; -import java.net.Socket; -import java.net.URL; - -import junit.framework.TestCase; - -import org.apache.tuscany.sca.assembly.Composite; -import org.apache.tuscany.sca.contribution.Contribution; -import org.apache.tuscany.sca.contribution.service.ContributionService; -import org.apache.tuscany.sca.host.embedded.impl.EmbeddedSCADomain; - -/** - * Tests that the helloworld server is available - */ -public class HelloWorldServerTestCase extends TestCase { - private ClassLoader cl; - private EmbeddedSCADomain domain; - private Contribution helloWorldContribution; - private Contribution compositeContribution; - - @Override - protected void setUp() throws Exception { - //Create a test embedded SCA domain - cl = getClass().getClassLoader(); - domain = new EmbeddedSCADomain(cl, "http://localhost"); - - //Start the domain - domain.start(); - - // Contribute the SCA contribution - ContributionService contributionService = domain.getContributionService(); - - // File compositeContribLocation = new File("../export-composite/target/classes"); - // URL compositeContribURL = compositeContribLocation.toURL(); - URL compositeContribURL = getContributionURL(Hello.class); - compositeContribution = - contributionService.contribute("http://import-export/export-composite", compositeContribURL, false); - for (Composite deployable : compositeContribution.getDeployables()) { - domain.getDomainComposite().getIncludes().add(deployable); - domain.buildComposite(deployable); - } - -// File helloWorldContribLocation = new File("./target/classes/"); -// URL helloWorldContribURL = helloWorldContribLocation.toURL(); - URL helloWorldContribURL = getContributionURL(HelloWorldService.class); - helloWorldContribution = - contributionService.contribute("http://import-export/helloworld", helloWorldContribURL, false); - for (Composite deployable : helloWorldContribution.getDeployables()) { - domain.getDomainComposite().getIncludes().add(deployable); - domain.buildComposite(deployable); - } - - // Start Components from my composite - for (Composite deployable : helloWorldContribution.getDeployables()) { - domain.getCompositeActivator().activate(deployable); - domain.getCompositeActivator().start(deployable); - } - } - - private URL getContributionURL(Class cls) throws MalformedURLException { - String flag = "/" + cls.getName().replace('.', '/') + ".class"; - URL url = cls.getResource(flag); - String root = url.toExternalForm(); - root = root.substring(0, root.length() - flag.length() + 1); - if (root.startsWith("jar:") && root.endsWith("!/")) { - root = root.substring(4, root.length() - 2); - } - url = new URL(root); - return url; - } - - public void testPing() throws IOException { - new Socket("127.0.0.1", 8085); - } - - public void testServiceCall() throws IOException { - HelloWorldService helloWorldService = - domain.getService(HelloWorldService.class, "HelloWorldServiceComponent/HelloWorldService"); - assertNotNull(helloWorldService); - - assertEquals("Hello Smith", helloWorldService.getGreetings("Smith")); - } - - @Override - public void tearDown() throws Exception { - ContributionService contributionService = domain.getContributionService(); - - // Remove the contribution from the in-memory repository - contributionService.remove("http://import-export/helloworld"); - contributionService.remove("http://import-export/export-composite"); - - //Stop Components from my composite - for (Composite deployable : helloWorldContribution.getDeployables()) { - domain.getCompositeActivator().stop(deployable); - domain.getCompositeActivator().deactivate(deployable); - } - - domain.stop(); - domain.close(); - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-import-export/import-java/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-import-export/import-java/pom.xml deleted file mode 100644 index a1a52ab5cc..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-import-export/import-java/pom.xml +++ /dev/null @@ -1,73 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-itest - 2.0-SNAPSHOT - ../pom.xml - - itest-contribution-import-java - Apache Tuscany SCA iTest Contribution Java Import - - - - org.apache.tuscany.sca - itest-contribution-export-java - 2.0-SNAPSHOT - - - - org.apache.tuscany.sca - tuscany-host-embedded - 2.0-SNAPSHOT - - - - org.apache.tuscany.sca - tuscany-implementation-java-runtime - 2.0-SNAPSHOT - runtime - - - - org.apache.tuscany.sca - tuscany-binding-ws-runtime-axis2 - 2.0-SNAPSHOT - runtime - - - - org.apache.tuscany.sca - tuscany-host-tomcat - 2.0-SNAPSHOT - runtime - - - - junit - junit - 4.8.1 - test - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-import-export/import-java/src/main/java/helloworld/HelloWorldImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-import-export/import-java/src/main/java/helloworld/HelloWorldImpl.java deleted file mode 100644 index 0de3c70303..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-import-export/import-java/src/main/java/helloworld/HelloWorldImpl.java +++ /dev/null @@ -1,33 +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 helloworld; - -import org.osoa.sca.annotations.Service; - -/** - * This class implements the HelloWorld service. - */ -@Service(HelloWorldService.class) -public class HelloWorldImpl implements HelloWorldService { - - public String getGreetings(String name) { - return "Hello " + name; - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-import-export/import-java/src/main/resources/META-INF/sca-contribution.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-import-export/import-java/src/main/resources/META-INF/sca-contribution.xml deleted file mode 100644 index 224e2c4d79..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-import-export/import-java/src/main/resources/META-INF/sca-contribution.xml +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-import-export/import-java/src/main/resources/helloworldws.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-import-export/import-java/src/main/resources/helloworldws.composite deleted file mode 100644 index a53117e72f..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-import-export/import-java/src/main/resources/helloworldws.composite +++ /dev/null @@ -1,29 +0,0 @@ - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-import-export/import-java/src/test/java/org/apache/tuscany/sca/test/contribution/HelloWorldServerTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-import-export/import-java/src/test/java/org/apache/tuscany/sca/test/contribution/HelloWorldServerTestCase.java deleted file mode 100644 index 9bc94525e0..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-import-export/import-java/src/test/java/org/apache/tuscany/sca/test/contribution/HelloWorldServerTestCase.java +++ /dev/null @@ -1,127 +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 org.apache.tuscany.sca.test.contribution; - -import helloworld.HelloWorldImpl; -import helloworld.HelloWorldService; - -import java.io.IOException; -import java.net.MalformedURLException; -import java.net.URL; - -import junit.framework.TestCase; - -import org.apache.tuscany.sca.assembly.Composite; -import org.apache.tuscany.sca.contribution.Contribution; -import org.apache.tuscany.sca.contribution.service.ContributionService; -import org.apache.tuscany.sca.host.embedded.impl.EmbeddedSCADomain; - -/** - * Tests that the helloworld server is available - */ -public class HelloWorldServerTestCase extends TestCase { - private ClassLoader cl; - private EmbeddedSCADomain domain; - private Contribution helloWorldContribution; - private Contribution javaContribution; - - @Override - protected void setUp() throws Exception { - //Create a test embedded SCA domain - cl = getClass().getClassLoader(); - domain = new EmbeddedSCADomain(cl, "http://localhost"); - - //Start the domain - domain.start(); - - // Contribute the SCA contribution - ContributionService contributionService = domain.getContributionService(); - - //File javaContribLocation = new File("../export-java/target/classes"); - //URL javaContribURL = javaContribLocation.toURL(); - URL javaContribURL = getContributionURL(HelloWorldService.class); - javaContribution = contributionService.contribute("http://import-export/export-java", javaContribURL, false); - for (Composite deployable : javaContribution.getDeployables()) { - domain.getDomainComposite().getIncludes().add(deployable); - domain.buildComposite(deployable); - } - - //File helloWorldContribLocation = new File("./target/classes/"); - //URL helloWorldContribURL = helloWorldContribLocation.toURL(); - URL helloWorldContribURL = getContributionURL(HelloWorldImpl.class); - helloWorldContribution = contributionService.contribute("http://import-export/helloworld", helloWorldContribURL, false); - for (Composite deployable : helloWorldContribution.getDeployables()) { - domain.getDomainComposite().getIncludes().add(deployable); - domain.buildComposite(deployable); - } - - // Start Components from my composite - for (Composite deployable : helloWorldContribution.getDeployables()) { - domain.getCompositeActivator().activate(deployable); - domain.getCompositeActivator().start(deployable); - } - } - - private URL getContributionURL(Class cls) throws MalformedURLException { - String flag = "/" + cls.getName().replace('.', '/') + ".class"; - URL url = cls.getResource(flag); - String root = url.toExternalForm(); - root = root.substring(0, root.length() - flag.length() + 1); - if (root.startsWith("jar:") && root.endsWith("!/")) { - root = root.substring(4, root.length() - 2); - } - url = new URL(root); - return url; - } - - public void testPing() throws IOException { - HelloWorldService helloWorldService = - domain.getService(HelloWorldService.class, "HelloWorldServiceComponent/HelloWorldService"); - assertNotNull(helloWorldService); - assertEquals("Hello test", helloWorldService.getGreetings("test")); - } - - public void testServiceCall() throws IOException { - HelloWorldService helloWorldService = - domain.getService(HelloWorldService.class, "HelloWorldServiceComponent/HelloWorldService"); - assertNotNull(helloWorldService); - - assertEquals("Hello Smith", helloWorldService.getGreetings("Smith")); - } - - @Override - public void tearDown() throws Exception { - ContributionService contributionService = domain.getContributionService(); - - // Remove the contribution from the in-memory repository - contributionService.remove("http://import-export/helloworld"); - contributionService.remove("http://import-export/export-java"); - - // Stop Components from my composite - for (Composite deployable : helloWorldContribution.getDeployables()) { - domain.getCompositeActivator().stop(deployable); - domain.getCompositeActivator().deactivate(deployable); - } - - domain.stop(); - - domain.close(); - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-import-export/import-resource/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-import-export/import-resource/pom.xml deleted file mode 100644 index e35feddf80..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-import-export/import-resource/pom.xml +++ /dev/null @@ -1,102 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-itest - 2.0-SNAPSHOT - ../pom.xml - - itest-contribution-import-resource - Apache Tuscany SCA iTest Contribution Resource Import - - - - - org.apache.tuscany.sca - itest-contribution-export-resource - 2.0-SNAPSHOT - - - - org.apache.tuscany.sca - tuscany-host-embedded - 2.0-SNAPSHOT - runtime - - - - org.apache.tuscany.sca - tuscany-implementation-java-runtime - 2.0-SNAPSHOT - runtime - - - - org.apache.tuscany.sca - tuscany-host-http - 2.0-SNAPSHOT - - - - org.apache.tuscany.sca - tuscany-binding-http-runtime - 2.0-SNAPSHOT - runtime - - - - org.apache.tuscany.sca - tuscany-implementation-resource-runtime - 2.0-SNAPSHOT - test - - - - org.apache.tuscany.sca - tuscany-contribution-resource - 2.0-SNAPSHOT - test - - - - javax.servlet - servlet-api - 2.5 - provided - - - - org.apache.tuscany.sca - tuscany-host-tomcat - 2.0-SNAPSHOT - runtime - - - - junit - junit - 4.8.1 - test - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-import-export/import-resource/src/main/resources/META-INF/sca-contribution.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-import-export/import-resource/src/main/resources/META-INF/sca-contribution.xml deleted file mode 100644 index ac6d7becb3..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-import-export/import-resource/src/main/resources/META-INF/sca-contribution.xml +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-import-export/import-resource/src/main/resources/store.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-import-export/import-resource/src/main/resources/store.composite deleted file mode 100644 index bb5a7b764f..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-import-export/import-resource/src/main/resources/store.composite +++ /dev/null @@ -1,33 +0,0 @@ - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-import-export/import-resource/src/test/java/org/apache/tuscany/sca/test/contribution/StoreTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-import-export/import-resource/src/test/java/org/apache/tuscany/sca/test/contribution/StoreTestCase.java deleted file mode 100644 index 1b7542b7d9..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-import-export/import-resource/src/test/java/org/apache/tuscany/sca/test/contribution/StoreTestCase.java +++ /dev/null @@ -1,129 +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 org.apache.tuscany.sca.test.contribution; - -import java.io.IOException; -import java.net.MalformedURLException; -import java.net.Socket; -import java.net.URL; - -import junit.framework.TestCase; - -import org.apache.tuscany.sca.assembly.Composite; -import org.apache.tuscany.sca.contribution.Contribution; -import org.apache.tuscany.sca.contribution.service.ContributionService; -import org.apache.tuscany.sca.host.embedded.impl.EmbeddedSCADomain; - -/** - * Tests that the helloworld server is available - */ -public class StoreTestCase extends TestCase { - private ClassLoader cl; - private EmbeddedSCADomain domain; - private Contribution storeContribution; - private Contribution resourceContribution; - - @Override - protected void setUp() throws Exception { - //Create a test embedded SCA domain - cl = getClass().getClassLoader(); - domain = new EmbeddedSCADomain(cl, "http://localhost"); - - //Start the domain - domain.start(); - - // Contribute the SCA contribution - ContributionService contributionService = domain.getContributionService(); - - URL javaContribURL = getContributionURL(cl, "ufservices/store.html"); - resourceContribution = contributionService.contribute("http://import-export/export-resource", javaContribURL, false); - for (Composite deployable : resourceContribution.getDeployables()) { - domain.getDomainComposite().getIncludes().add(deployable); - domain.buildComposite(deployable); - } - - URL storeContributionURL = getContributionURL(cl, "store.composite"); - - storeContribution = - contributionService.contribute("http://import-export/store", storeContributionURL, false); - for (Composite deployable : storeContribution.getDeployables()) { - domain.getDomainComposite().getIncludes().add(deployable); - domain.buildComposite(deployable); - } - - // Start Components from my composite - for (Composite deployable : storeContribution.getDeployables()) { - domain.getCompositeActivator().activate(deployable); - domain.getCompositeActivator().start(deployable); - } - } - - public void testPing() throws IOException { - new Socket("127.0.0.1", 8085); - } - - - @Override - public void tearDown() throws Exception { - ContributionService contributionService = domain.getContributionService(); - - // Remove the contribution from the in-memory repository - contributionService.remove("http://import-export/store"); - contributionService.remove("http://import-export/export-resource"); - - // Stop Components from my composite - for (Composite deployable : storeContribution.getDeployables()) { - domain.getCompositeActivator().stop(deployable); - domain.getCompositeActivator().deactivate(deployable); - } - - domain.stop(); - - domain.close(); - } - - - /** - * Utility methods - */ - - - private URL getContributionURL(ClassLoader cl, Class cls) throws MalformedURLException { - String flag = "/" + cls.getName().replace('.', '/') + ".class"; - URL url = cl.getResource(flag); - String root = url.toExternalForm(); - root = root.substring(0, root.length() - flag.length() + 1); - if (root.startsWith("jar:") && root.endsWith("!/")) { - root = root.substring(4, root.length() - 2); - } - url = new URL(root); - return url; - } - - private URL getContributionURL(ClassLoader cl, String uri) throws MalformedURLException { - URL url = cl.getResource(uri); - String root = url.toExternalForm(); - root = root.substring(0, root.length() - uri.length()); - if (root.startsWith("jar:") && root.endsWith("!/")) { - root = root.substring(4, root.length() - 2); - } - url = new URL(root); - return url; - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-import-export/import-wsdl/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-import-export/import-wsdl/pom.xml deleted file mode 100644 index 43a9cc27e7..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-import-export/import-wsdl/pom.xml +++ /dev/null @@ -1,73 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-itest - 2.0-SNAPSHOT - ../pom.xml - - itest-contribution-import-wsdl - Apache Tuscany SCA iTest Contribution WSDL Import - - - - org.apache.tuscany.sca - itest-contribution-export-wsdl - 2.0-SNAPSHOT - - - - org.apache.tuscany.sca - tuscany-host-embedded - 2.0-SNAPSHOT - - - - org.apache.tuscany.sca - tuscany-implementation-java-runtime - 2.0-SNAPSHOT - runtime - - - - org.apache.tuscany.sca - tuscany-binding-ws-runtime-axis2 - 2.0-SNAPSHOT - runtime - - - - org.apache.tuscany.sca - tuscany-host-tomcat - 2.0-SNAPSHOT - runtime - - - - junit - junit - 4.8.1 - test - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-import-export/import-wsdl/src/main/java/helloworld/HelloWorldImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-import-export/import-wsdl/src/main/java/helloworld/HelloWorldImpl.java deleted file mode 100644 index 0de3c70303..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-import-export/import-wsdl/src/main/java/helloworld/HelloWorldImpl.java +++ /dev/null @@ -1,33 +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 helloworld; - -import org.osoa.sca.annotations.Service; - -/** - * This class implements the HelloWorld service. - */ -@Service(HelloWorldService.class) -public class HelloWorldImpl implements HelloWorldService { - - public String getGreetings(String name) { - return "Hello " + name; - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-import-export/import-wsdl/src/main/java/helloworld/HelloWorldServer.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-import-export/import-wsdl/src/main/java/helloworld/HelloWorldServer.java deleted file mode 100644 index e03ed4dc25..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-import-export/import-wsdl/src/main/java/helloworld/HelloWorldServer.java +++ /dev/null @@ -1,46 +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 helloworld; - -import java.io.IOException; - -import org.apache.tuscany.sca.host.embedded.SCADomain; - -/** - * This server program shows how to create an SCA runtime, and start it which - * activates the helloworld Web service endpoint. - */ -public class HelloWorldServer { - - public static void main(String[] args) { - - SCADomain scaDomain = SCADomain.newInstance("helloworldws.composite"); - - try { - System.out.println("HelloWorld server started (press enter to shutdown)"); - System.in.read(); - } catch (IOException e) { - e.printStackTrace(); - } - - scaDomain.close(); - System.out.println("HelloWorld server stopped"); - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-import-export/import-wsdl/src/main/java/helloworld/HelloWorldService.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-import-export/import-wsdl/src/main/java/helloworld/HelloWorldService.java deleted file mode 100644 index 268d90e910..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-import-export/import-wsdl/src/main/java/helloworld/HelloWorldService.java +++ /dev/null @@ -1,30 +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 helloworld; - -import org.osoa.sca.annotations.Remotable; - -/** - * This is the business interface of the HelloWorld greetings service. - */ -@Remotable -public interface HelloWorldService { - - public String getGreetings(String name); -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-import-export/import-wsdl/src/main/resources/META-INF/sca-contribution.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-import-export/import-wsdl/src/main/resources/META-INF/sca-contribution.xml deleted file mode 100644 index a47b9a71e9..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-import-export/import-wsdl/src/main/resources/META-INF/sca-contribution.xml +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-import-export/import-wsdl/src/main/resources/helloworldws.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-import-export/import-wsdl/src/main/resources/helloworldws.composite deleted file mode 100644 index 76ccf71fb8..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-import-export/import-wsdl/src/main/resources/helloworldws.composite +++ /dev/null @@ -1,33 +0,0 @@ - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-import-export/import-wsdl/src/test/java/org/apache/tuscany/sca/test/contribution/HelloWorldServerTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-import-export/import-wsdl/src/test/java/org/apache/tuscany/sca/test/contribution/HelloWorldServerTestCase.java deleted file mode 100644 index 66227eacaa..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-import-export/import-wsdl/src/test/java/org/apache/tuscany/sca/test/contribution/HelloWorldServerTestCase.java +++ /dev/null @@ -1,137 +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 org.apache.tuscany.sca.test.contribution; - -import helloworld.HelloWorldService; - -import java.io.IOException; -import java.net.MalformedURLException; -import java.net.Socket; -import java.net.URL; - -import junit.framework.TestCase; - -import org.apache.tuscany.sca.assembly.Composite; -import org.apache.tuscany.sca.contribution.Contribution; -import org.apache.tuscany.sca.contribution.service.ContributionService; -import org.apache.tuscany.sca.host.embedded.impl.EmbeddedSCADomain; - -/** - * Tests that the helloworld server is available - */ -public class HelloWorldServerTestCase extends TestCase { - private ClassLoader cl; - private EmbeddedSCADomain domain; - private Contribution wsdlContribution; - private Contribution consumerContribution; - - @Override - protected void setUp() throws Exception { - // Create a test embedded SCA domain - cl = getClass().getClassLoader(); - domain = new EmbeddedSCADomain(cl, "http://localhost"); - - //Start the domain - domain.start(); - - // Contribute the SCA contribution - ContributionService contributionService = domain.getContributionService(); - - // File wsdlContribLocation = new File("../export-wsdl/target/classes"); - // URL wsdlContribURL = wsdlContribLocation.toURL(); - URL wsdlContribURL = getContributionURL(getClass().getClassLoader(), "helloworld.wsdl"); - wsdlContribution = contributionService.contribute("http://import-export/export-wsdl", wsdlContribURL, false); - for (Composite deployable : wsdlContribution.getDeployables()) { - domain.getDomainComposite().getIncludes().add(deployable); - domain.buildComposite(deployable); - } - - // File helloWorldContribLocation = new File("./target/classes/"); - // URL helloWorldContribURL = helloWorldContribLocation.toURL(); - URL helloWorldContribURL = getContributionURL(HelloWorldService.class); - consumerContribution = - contributionService.contribute("http://import-export/helloworld", helloWorldContribURL, false); - for (Composite deployable : consumerContribution.getDeployables()) { - domain.getDomainComposite().getIncludes().add(deployable); - domain.buildComposite(deployable); - } - - // Start Components from my composite - for (Composite deployable : consumerContribution.getDeployables()) { - domain.getCompositeActivator().activate(deployable); - domain.getCompositeActivator().start(deployable); - } - } - - public void testPing() throws IOException { - new Socket("127.0.0.1", 8085); - } - - private URL getContributionURL(Class cls) throws MalformedURLException { - String flag = "/" + cls.getName().replace('.', '/') + ".class"; - URL url = cls.getResource(flag); - String root = url.toExternalForm(); - root = root.substring(0, root.length() - flag.length() + 1); - if (root.startsWith("jar:") && root.endsWith("!/")) { - root = root.substring(4, root.length() - 2); - } - url = new URL(root); - return url; - } - - private URL getContributionURL(ClassLoader cl, String flag) throws MalformedURLException { - URL url = cl.getResource(flag); - String root = url.toExternalForm(); - root = root.substring(0, root.length() - flag.length()); - if (root.startsWith("jar:") && root.endsWith("!/")) { - root = root.substring(4, root.length() - 2); - } - url = new URL(root); - // System.out.println(url); - return url; - } - - public void testServiceCall() throws IOException { - HelloWorldService helloWorldService = - domain.getService(HelloWorldService.class, "HelloWorldServiceComponent/HelloWorldService"); - assertNotNull(helloWorldService); - - assertEquals("Hello Smith", helloWorldService.getGreetings("Smith")); - } - - @Override - public void tearDown() throws Exception { - ContributionService contributionService = domain.getContributionService(); - - // Remove the contribution from the in-memory repository - contributionService.remove("http://import-export/helloworld"); - contributionService.remove("http://import-export/export-wsdl"); - - // Stop Components from my composite - for (Composite deployable : consumerContribution.getDeployables()) { - domain.getCompositeActivator().stop(deployable); - domain.getCompositeActivator().deactivate(deployable); - } - - domain.stop(); - - domain.close(); - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-import-export/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-import-export/pom.xml deleted file mode 100644 index a586565252..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-import-export/pom.xml +++ /dev/null @@ -1,56 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-itest - 2.0-SNAPSHOT - ../pom.xml - - itest-contribution-import-export - pom - Apache Tuscany SCA Contribution Import/Export Integration Tests - - - export-composite - export-java - export-resource - export-wsdl - import-composite - import-java - import-resource - import-wsdl - - - - - org.apache.tuscany.sca - tuscany-host-embedded - 2.0-SNAPSHOT - - - - org.apache.tuscany.sca - tuscany-contribution-impl - 2.0-SNAPSHOT - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-zip/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-zip/pom.xml deleted file mode 100644 index e64c7718f5..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-zip/pom.xml +++ /dev/null @@ -1,45 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-itest - 2.0-M5 - ../pom.xml - - itest-contribution-zip - Apache Tuscany SCA iTest Contribution ZIP - - - - org.apache.tuscany.sca - tuscany-node-impl - 2.0-M5 - - - - org.apache.tuscany.sca - tuscany-implementation-java-runtime - 2.0-M5 - runtime - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-zip/src/test/java/calculator/CalculatorService.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-zip/src/test/java/calculator/CalculatorService.java deleted file mode 100644 index b4c677b371..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-zip/src/test/java/calculator/CalculatorService.java +++ /dev/null @@ -1,31 +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; - -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/sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-zip/src/test/java/org/apache/tuscany/sca/contribution/zip/ContributionZIPTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-zip/src/test/java/org/apache/tuscany/sca/contribution/zip/ContributionZIPTestCase.java deleted file mode 100644 index 303e2a6d9a..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-zip/src/test/java/org/apache/tuscany/sca/contribution/zip/ContributionZIPTestCase.java +++ /dev/null @@ -1,56 +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 org.apache.tuscany.sca.contribution.zip; - -import junit.framework.TestCase; - -import org.apache.tuscany.sca.node.Contribution; -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; - -import calculator.CalculatorService; - -/** - * Test SCADomain.newInstance and invocation of a service. - * - * @version $Rev$ $Date$ - */ -public class ContributionZIPTestCase extends TestCase { - - private Node node; - - @Override - protected void setUp() throws Exception { - node = - NodeFactory.newInstance().createNode(new Contribution("foo", - "src/test/resources/repository/contribution.zip")); - node.start(); - } - - public void testInvoke() throws Exception { - CalculatorService service = node.getService(CalculatorService.class, "CalculatorServiceComponent"); - assertEquals(3.0, service.add(1, 2)); - } - - @Override - protected void tearDown() throws Exception { - node.stop(); - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-zip/src/test/resources/repository/contribution.zip b/sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-zip/src/test/resources/repository/contribution.zip deleted file mode 100644 index 25476c2206..0000000000 Binary files a/sca-java-2.x/tags/2.0-M5-RC3/itest/contribution-zip/src/test/resources/repository/contribution.zip and /dev/null differ diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/pom.xml deleted file mode 100644 index 503c5d9554..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/pom.xml +++ /dev/null @@ -1,144 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-itest - 2.0-M5 - ../pom.xml - - itest-corba-binding - Apache Tuscany SCA CORBA Binding Integration Tests - - - - org.apache.tuscany.sca - tuscany-node-impl - 2.0-M5 - - - - org.apache.tuscany.sca - tuscany-implementation-java-runtime - 2.0-M5 - runtime - - - - org.apache.tuscany.sca - tuscany-binding-corba-runtime - 2.0-M5 - runtime - - - - org.apache.tuscany.sca - tuscany-host-corba-jse - 2.0-M5 - test - - - - org.apache.tuscany.sca - tuscany-host-corba-jse-tns - 2.0-M5 - test - - - - org.apache.tuscany.sca - tuscany-binding-sca-runtime - 2.0-M5 - runtime - - - - org.apache.tuscany.sca - tuscany-databinding-axiom - 2.0-M5 - runtime - - - - org.apache.tuscany.sca - tuscany-databinding-sdo - 2.0-M5 - compile - - - - junit - junit - 4.5 - compile - - - - - - - org.codehaus.mojo - build-helper-maven-plugin - 1.0 - - - add-source - generate-sources - - add-test-source - - - - target/sdo-source - - - - - - - org.apache.tuscany.sdo - tuscany-sdo-plugin - 1.1.1 - - - generate-scenariofour-sdo - generate-sources - - - ${basedir}/src/test/resources/scenariofour.xsd - - - org.apache.tuscany.sca.test.corba.scenariofour - - ScenarioFour - true - true - true - - - generate - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/ScenarioFiveTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/ScenarioFiveTestCase.java deleted file mode 100644 index 6c362b0062..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/ScenarioFiveTestCase.java +++ /dev/null @@ -1,53 +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 org.apache.tuscany.sca.test.corba; - -import static org.junit.Assert.fail; - -import org.apache.tuscany.sca.host.corba.jse.tns.TnsDefaultCorbaHost; -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; -import org.apache.tuscany.sca.test.corba.types.ScenarioFive; -import org.apache.tuscany.sca.test.corba.types.ScenarioFiveComponent; -import org.junit.Test; - -/** - * @version $Rev$ $Date$ - * Tests usage of TNS JSE Corba host - */ -public class ScenarioFiveTestCase { - - @Test - public void test_providedNameServer() { - TestCorbaHost.setCorbaHost(new TnsDefaultCorbaHost()); - try { - // just make sure we can obtain and use the reference with success - Node node = NodeFactory.getInstance().createNode("ScenarioFive.composite", getClass().getClassLoader()).start(); - ScenarioFive scenarioFive = - node.getService(ScenarioFiveComponent.class, "ScenarioFive").getScenarioFive(); - scenarioFive.doNothing(); - node.stop(); - } catch (Exception e) { - e.printStackTrace(); - fail(); - } - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/ScenarioFourTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/ScenarioFourTestCase.java deleted file mode 100644 index da4644057e..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/ScenarioFourTestCase.java +++ /dev/null @@ -1,153 +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 org.apache.tuscany.sca.test.corba; - -import static org.junit.Assert.assertTrue; -import static org.junit.Assert.fail; -import junit.framework.Assert; - -import org.apache.tuscany.sca.host.corba.jse.DefaultCorbaHost; -import org.apache.tuscany.sca.host.corba.naming.TransientNameServer; -import org.apache.tuscany.sca.host.corba.naming.TransientNameService; -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; -import org.apache.tuscany.sca.test.corba.scenariofour.ScenarioFourFactory; -import org.apache.tuscany.sca.test.corba.scenariofour.ScenarioFourSdo; -import org.apache.tuscany.sca.test.corba.types.ScenarioFour; -import org.apache.tuscany.sca.test.corba.types.ScenarioFourComponent; -import org.apache.tuscany.sca.test.corba.types.ScenarioFourException; -import org.apache.tuscany.sca.test.corba.types.ScenarioFourStruct; -import org.junit.AfterClass; -import org.junit.BeforeClass; -import org.junit.Test; - -/** - * @version $Rev$ $Date$ - * Tests SCA default binding over CORBA binding - */ -public class ScenarioFourTestCase { - - // note that those values are also used in resources/*.composite file - private static Node node; - private static ScenarioFourComponent scenarioFourComponent; - private static ScenarioFour scenarioFour; - private static TransientNameServer server; - private static final int ORB_INITIAL_PORT = 5080; - - /** - * Initial configuration - */ - @BeforeClass - public static void setUp() { - System.setProperty("org.apache.tuscany.sca.binding.sca.provider.SCABindingMapper.mappedBinding", "{http://tuscany.apache.org/xmlns/sca/1.1}binding.corba"); - TestCorbaHost.setCorbaHost(new DefaultCorbaHost()); - try { - server = new TransientNameServer("localhost", ORB_INITIAL_PORT, TransientNameService.DEFAULT_SERVICE_NAME); - Thread t = server.start(); - if (t == null) { - Assert.fail("The naming server cannot be started"); - } - // obtain node - node = NodeFactory.getInstance().createNode("ScenarioFour.composite", TestCorbaHost.class.getClassLoader()).start(); - scenarioFourComponent = node.getService(ScenarioFourComponent.class, "ScenarioFour"); - scenarioFour = scenarioFourComponent.getScenarioFour(); - } catch (Exception e) { - e.printStackTrace(); - } - } - - /** - * Test cleanup - */ - @AfterClass - public static void tearDown() { - server.stop(); - node.stop(); - System.clearProperty("org.apache.tuscany.sca.binding.sca.provider.SCABindingMapper.mappedBinding"); - } - - /** - * General tests for passing JAXB objects - */ - @Test - public void test_generalJAXB() { - try { - ScenarioFourStruct input = new ScenarioFourStruct(); - input.field1 = "Test"; - input.field2 = 1; - input.field3 = new double[1]; - ScenarioFourStruct output = scenarioFour.setStruct(input); - assertTrue(input.equals(output)); - } catch (Exception e) { - e.printStackTrace(); - Assert.fail(e.getMessage()); - } - } - - /** - * Test for JAXB exceptions - */ - @Test - public void test_exceptionsJAXB() { - try { - scenarioFour.exceptionTest(); - fail(); - } catch (ScenarioFourException e) { - assertTrue(ScenarioFourException.DEFAULT_CONTENT.equals(e.getContent())); - } catch (Exception e) { - e.printStackTrace(); - fail(); - } - } - - /** - * General test for passing SDO objects - */ - @Test - public void test_generalSDO() { - try { - ScenarioFourSdo scenarioFourSdo = ScenarioFourFactory.INSTANCE.createScenarioFourSdo(); - scenarioFourSdo.setMessage("Test1"); - scenarioFourSdo.setSymbol("Test2"); - ScenarioFourSdo result = scenarioFour.passScenarioFourStruct(scenarioFourSdo); - assertTrue(scenarioFourSdo.getMessage().equals(result.getMessage()) && scenarioFourSdo.getSymbol() - .equals(result.getSymbol())); - } catch (Exception e) { - e.printStackTrace(); - fail(); - } - } - - /** - * Tests reusing local name server with multiple bindings - */ - @Test - public void test_nameServerReuse() { - try { - ScenarioFour scenarioFour = - node.getService(ScenarioFourComponent.class, "ScenarioFourReuse").getScenarioFour(); - ScenarioFourStruct struct = new ScenarioFourStruct(); - scenarioFour.setStruct(struct); - } catch (Exception e) { - e.printStackTrace(); - fail(); - } - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/ScenarioOneTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/ScenarioOneTestCase.java deleted file mode 100644 index 4b58fab1f0..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/ScenarioOneTestCase.java +++ /dev/null @@ -1,373 +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 org.apache.tuscany.sca.test.corba; - -import static org.junit.Assert.assertTrue; -import static org.junit.Assert.fail; -import junit.framework.Assert; - -import org.apache.tuscany.sca.host.corba.jse.DefaultCorbaHost; -import org.apache.tuscany.sca.host.corba.naming.TransientNameServer; -import org.apache.tuscany.sca.host.corba.naming.TransientNameService; -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; -import org.apache.tuscany.sca.test.corba.generated.Color; -import org.apache.tuscany.sca.test.corba.generated.InnerStruct; -import org.apache.tuscany.sca.test.corba.generated.RichStruct; -import org.apache.tuscany.sca.test.corba.generated.ScenarioOne; -import org.apache.tuscany.sca.test.corba.generated.ScenarioOneHelper; -import org.apache.tuscany.sca.test.corba.generated.ScenarioOneOperations; -import org.apache.tuscany.sca.test.corba.generated.UnexpectedException; -import org.apache.tuscany.sca.test.corba.generated.WrongColor; -import org.apache.tuscany.sca.test.corba.types.ScenarioOneServant; -import org.apache.tuscany.sca.test.corba.types.TColor; -import org.apache.tuscany.sca.test.corba.types.TInnerStruct; -import org.apache.tuscany.sca.test.corba.types.TRichStruct; -import org.apache.tuscany.sca.test.corba.types.TScenarioOne; -import org.junit.AfterClass; -import org.junit.BeforeClass; -import org.junit.Test; -import org.omg.CORBA.ORB; -import org.omg.CosNaming.NameComponent; -import org.omg.CosNaming.NamingContext; -import org.omg.CosNaming.NamingContextHelper; - -/** - * @version $Rev$ $Date$ - * This test class contains three main tests:
- * 1. Tuscany is being used as a consumer of some non-Tuscany CORBA service
- * 2. Tuscany is being used as a service provider, which will be consumed by - * non-Tuscany CORBA client
- * 3. Tuscany is being used as a service provider, which will be consumed by - * Tuscany client
- * But that's not all, there are some other variations. Tuscany CORBA binding - * supports using Java interface generated by IDLJ, also it supports interfaces - * provided by user - I combined those cases in each test.
- */ -public class ScenarioOneTestCase { - - // note that those values are also used in resources/*.composite file - private static int ORB_INITIAL_PORT = 5060; - private static String SERVICE_NAME = "ScenarioOne"; - - private static Node node; - - private static TransientNameServer server; - private static ORB orb; - - /** - * Sets up name service, creates and registers traditional CORBA service, - * obtains SCADomain - */ - @BeforeClass - public static void setUp() { - TestCorbaHost.setCorbaHost(new DefaultCorbaHost()); - try { - try { - server = - new TransientNameServer("localhost", ORB_INITIAL_PORT, TransientNameService.DEFAULT_SERVICE_NAME); - Thread t = server.start(); - if (t == null) { - Assert.fail("The naming server cannot be started"); - } - orb = server.getORB(); - } catch (Throwable e) { - e.printStackTrace(); - Assert.fail(e.getMessage()); - } - org.omg.CORBA.Object objRef = orb.resolve_initial_references("NameService"); - NamingContext ncRef = NamingContextHelper.narrow(objRef); - NameComponent nc = new NameComponent(SERVICE_NAME, ""); - NameComponent path[] = {nc}; - ScenarioOne scenarioOne = new ScenarioOneServant(); - ncRef.rebind(path, scenarioOne); - // obtain node - node = NodeFactory.getInstance().createNode("ScenarioOne.composite", TestCorbaHost.class.getClassLoader()).start(); - } catch (Exception e) { - e.printStackTrace(); - } - } - - /** - * Kills previously spawned name service. - */ - @AfterClass - public static void tearDown() { - server.stop(); - node.stop(); - } - - /** - * Creates nicely filled structure for user provided interface. - * - * @return - */ - private static TRichStruct getTRichStruct() { - int[][] intArr = new int[][] { {1, 2}, {3, 4}}; - TInnerStruct innerStruct = new TInnerStruct(intArr, "Test", TColor.green); - String[] strSeq = {"i", "Test"}; - return new TRichStruct(innerStruct, strSeq, 1); - - } - - /** - * Creates nicely filled structure for generated interface. - * - * @return - */ - private static RichStruct getRichStruct() { - int[][] intArr = new int[][] { {1, 2}, {3, 4}}; - InnerStruct innerStruct2 = new InnerStruct(intArr, "Test", Color.green); - String[] strSeq = {"i", "Test"}; - return new RichStruct(innerStruct2, strSeq, 1); - } - - /** - * Compares String arrays - * - * @param arg1 - * @param arg2 - * @return - */ - private boolean areSrringArraysEqual(String[] arg1, String[] arg2) { - try { - for (int i = 0; i < arg1.length; i++) { - if (!arg1[i].equals(arg2[i])) { - return false; - } - } - } catch (Exception e) { - return false; - } - return true; - } - - /** - * Compares two dimensional int arrays - * - * @param arg1 - * @param arg2 - * @return - */ - private boolean areTwoDimIntArraysEqual(int[][] arg1, int[][] arg2) { - try { - for (int i = 0; i < arg1.length; i++) { - for (int j = 0; j < arg1[i].length; j++) { - if (arg1[i][j] != arg2[i][j]) { - return false; - } - } - } - } catch (Exception e) { - return false; - } - return true; - } - - private boolean equalTo(TInnerStruct arg1, TInnerStruct arg2) { - return (arg1.color.value() == arg2.color.value() && arg1.stringField.equals(arg2.stringField) && areTwoDimIntArraysEqual(arg1.twoDimLongSequence, - arg2.twoDimLongSequence)); - } - - private boolean equalTo(InnerStruct arg1, InnerStruct arg2) { - return (arg1.color.value() == arg2.color.value() && arg1.stringField.equals(arg2.stringField) && areTwoDimIntArraysEqual(arg1.twoDimLongSequence, - arg2.twoDimLongSequence)); - } - - private boolean equalTo(TRichStruct arg1, TRichStruct arg2) { - return (equalTo(arg1.innerStruct, arg2.innerStruct) && arg2.longField == arg1.longField && areSrringArraysEqual(arg1.stringSequence, - arg2.stringSequence)); - } - - private boolean equalTo(RichStruct arg1, RichStruct arg2) { - return (equalTo(arg1.innerStruct, arg2.innerStruct) && arg2.longField == arg1.longField && areSrringArraysEqual(arg1.stringSequence, - arg2.stringSequence)); - } - - /** - * Helper method used several times for various components. Executes several - * tests using Tuscany reference binding. This helper uses generated Java - * interface. - * - * @param componentName - */ - private void testClientUsingGeneratedInterface(String componentName) { - ScenarioOneOperations component = node.getService(ScenarioOneOperations.class, componentName); - RichStruct richStruct = getRichStruct(); - - try { - RichStruct result = component.setRichStruct(richStruct); - assertTrue(equalTo(result, richStruct)); - } catch (Exception e) { - e.printStackTrace(); - fail(); - } - - try { - richStruct.longField = 0; - component.setRichStruct(richStruct); - fail(); - } catch (Exception e) { - assertTrue(e instanceof UnexpectedException); - } - - try { - richStruct.longField = 1; - richStruct.innerStruct.color = Color.red; - component.setRichStruct(richStruct); - } catch (Exception e) { - assertTrue(e instanceof WrongColor); - } - } - - /** - * Helper method used several times for various components. Executes several - * tests using Tuscany reference binding. This helper uses user provided - * Java interface. - * - * @param componentName - */ - private void testClientUsingUserProvidedInterface(String componentName) { - TScenarioOne component = node.getService(TScenarioOne.class, componentName); - TRichStruct tRichStruct = getTRichStruct(); - - try { - TRichStruct result = component.setRichStruct(tRichStruct); - assertTrue(equalTo(result, tRichStruct)); - } catch (Exception e) { - fail(); - } - - try { - tRichStruct.longField = 0; - component.setRichStruct(tRichStruct); - fail(); - } catch (Exception e) { - assertTrue(e instanceof UnexpectedException); - } - - try { - tRichStruct.longField = 1; - tRichStruct.innerStruct.color = TColor.red; - component.setRichStruct(tRichStruct); - } catch (Exception e) { - assertTrue(e instanceof WrongColor); - } - } - - public void testServiceUsingGeneratedClient(String serviceName) { - try { - org.omg.CORBA.Object objRef = orb.resolve_initial_references("NameService"); - NamingContext ncRef = NamingContextHelper.narrow(objRef); - NameComponent nc = new NameComponent(serviceName, ""); - NameComponent path[] = {nc}; - ScenarioOne so = ScenarioOneHelper.narrow(ncRef.resolve(path)); - - RichStruct richStruct = getRichStruct(); - RichStruct result = so.setRichStruct(richStruct); - assertTrue(equalTo(result, richStruct)); - - try { - richStruct.innerStruct.color = Color.red; - result = so.setRichStruct(richStruct); - fail(); - } catch (Exception e) { - assertTrue(e instanceof WrongColor); - } - - try { - richStruct.innerStruct.color = Color.green; - richStruct.longField = 0; - result = so.setRichStruct(richStruct); - fail(); - } catch (Exception e) { - assertTrue(e instanceof UnexpectedException); - } - - } catch (Exception e) { - e.printStackTrace(); - fail(); - } - } - - /** - * Service is exposed in traditional way (using CORBA API from JDK). - * Reference is obtained from Tuscany. - */ - @Test - public void test_TraditionalService_TuscanyClient() { - - // Client is using user provided interface - testClientUsingUserProvidedInterface("ScenarioOne"); - - // Client is using generated interface - testClientUsingGeneratedInterface("ScenarioOneGenerated"); - } - - /** - * Service is exposed by Tuscany. Reference is obtained in traditional way. - * (using CORBA API from JDK) - * - * @throws Exception - */ - @Test - public void test_TuscanyService_TraditionalClient() throws Exception { - - // tests service which uses user provided interface - testServiceUsingGeneratedClient("ScenarioOneTuscany"); - - // tests service which uses generated interface - testServiceUsingGeneratedClient("ScenarioOneTuscanyGenerated"); - } - - /** - * Service is exposed by Tuscany. Reference is obtained from Tuscany. There - * are 4 combinations (basing on if we are using generated or user provided - * interfaces, both on service and reference side). - */ - @Test - public void test_TuscanyService_TuscanyClient() { - - // Client is using user provided interface, service is using user - // provided interface. - testClientUsingUserProvidedInterface("TU2TS1"); - - // Client is using user provided interface, service is using generated - // interface. - testClientUsingUserProvidedInterface("TU2TS2"); - - // Client is using generated interface, service is using user provided - // interface. - testClientUsingGeneratedInterface("TG2TS1"); - - // Client is using generated interface, service is using generated - // interface. - testClientUsingGeneratedInterface("TG2TS2"); - } - - /** - * Tests using reference obtained by corbaname URI - */ - @Test - public void test_serviceAndReferenceByURI() { - testClientUsingUserProvidedInterface("UriBinding"); - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/ScenarioSixTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/ScenarioSixTestCase.java deleted file mode 100644 index 3d3efb9c29..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/ScenarioSixTestCase.java +++ /dev/null @@ -1,230 +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 org.apache.tuscany.sca.test.corba; - -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertTrue; -import static org.junit.Assert.fail; -import junit.framework.Assert; - -import org.apache.tuscany.sca.host.corba.jse.DefaultCorbaHost; -import org.apache.tuscany.sca.host.corba.naming.TransientNameServer; -import org.apache.tuscany.sca.host.corba.naming.TransientNameService; -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; -import org.apache.tuscany.sca.test.corba.generated.AnnotatedStruct; -import org.apache.tuscany.sca.test.corba.generated.InnerUnion; -import org.apache.tuscany.sca.test.corba.generated.RichUnion; -import org.apache.tuscany.sca.test.corba.generated.ScenarioSix; -import org.apache.tuscany.sca.test.corba.generated.ScenarioSixHelper; -import org.apache.tuscany.sca.test.corba.types.ScenarioSixServant; -import org.apache.tuscany.sca.test.corba.types.TAnnotatedStruct; -import org.apache.tuscany.sca.test.corba.types.TInnerUnion; -import org.apache.tuscany.sca.test.corba.types.TRichUnion; -import org.apache.tuscany.sca.test.corba.types.TScenarioSix; -import org.apache.tuscany.sca.test.corba.types.TScenarioSixComponent; -import org.junit.AfterClass; -import org.junit.BeforeClass; -import org.junit.Test; -import org.omg.CORBA.ORB; -import org.omg.CosNaming.NameComponent; -import org.omg.CosNaming.NamingContext; -import org.omg.CosNaming.NamingContextHelper; - -/** - * Tests using enhanced Java interfaces (annotations) - * - * @version $Rev$ $Date$ - */ -public class ScenarioSixTestCase { - - // note that those values are also used in resources/*.composite file - private static int ORB_INITIAL_PORT = 5050; - private static String SERVICE_NAME = "ScenarioSix"; - private static String TUSCANY_SERVICE_NAME = "ScenarioSixTuscany"; - - private static Node node; - - private static TransientNameServer server; - private static ORB orb; - - /** - * Sets up name service, creates and registers traditional CORBA service, - * obtains SCADomain - */ - @BeforeClass - public static void setUp() { - TestCorbaHost.setCorbaHost(new DefaultCorbaHost()); - try { - try { - server = - new TransientNameServer("localhost", ORB_INITIAL_PORT, TransientNameService.DEFAULT_SERVICE_NAME); - Thread t = server.start(); - if (t == null) { - Assert.fail("The naming server cannot be started"); - } - orb = server.getORB(); - } catch (Throwable e) { - e.printStackTrace(); - Assert.fail(e.getMessage()); - } - org.omg.CORBA.Object objRef = orb.resolve_initial_references("NameService"); - NamingContext ncRef = NamingContextHelper.narrow(objRef); - NameComponent nc = new NameComponent(SERVICE_NAME, ""); - NameComponent path[] = {nc}; - ScenarioSix scenarioSix = new ScenarioSixServant(); - ncRef.rebind(path, scenarioSix); - // obtain node - node = NodeFactory.getInstance().createNode("ScenarioSix.composite", TestCorbaHost.class.getClassLoader()).start(); - } catch (Exception e) { - e.printStackTrace(); - } - } - - /** - * Kills previously spawned name service. - */ - @AfterClass - public static void tearDown() { - server.stop(); - node.stop(); - } - - private boolean areArraysEqual(String[][] arr1, String[][] arr2) { - for (int i = 0; i < arr1.length; i++) { - for (int j = 0; j < arr1[i].length; j++) { - if (!arr1[i][j].equals(arr2[i][j])) { - return false; - } - } - } - return true; - } - - private String[][] getStringArray() { - String[][] result = { {"Hello", "World"}, {"Hi", "Again"}}; - return result; - } - - /** - * Tests passing arrays. Tuscany acts as a client, servant object is served - * in a traditional way - */ - @Test - public void test_arraysPassing_tuscanyAsClient() { - try { - TScenarioSix ref = node.getService(TScenarioSixComponent.class, "ScenarioSix").getScenarioSix(); - String[][] arrayArg = getStringArray(); - String[][] arrayRes = ref.passStringArray(arrayArg); - assertTrue(areArraysEqual(arrayArg, arrayRes)); - TAnnotatedStruct structArg = new TAnnotatedStruct(); - structArg.stringArray = getStringArray(); - TAnnotatedStruct structRes = ref.passAnnotatedStruct(structArg); - assertTrue(areArraysEqual(structArg.stringArray, structRes.stringArray)); - } catch (Exception e) { - e.printStackTrace(); - fail(); - } - } - - /** - * Tests passing arrays. Servant object is served by Tuscany and it is - * accessed by traditional Corba client - */ - @Test - public void test_arraysPassing_tuscanyAsService() { - try { - org.omg.CORBA.Object objRef = orb.resolve_initial_references("NameService"); - NamingContext ncRef = NamingContextHelper.narrow(objRef); - NameComponent nc = new NameComponent(TUSCANY_SERVICE_NAME, ""); - NameComponent path[] = {nc}; - ScenarioSix ref = ScenarioSixHelper.narrow(ncRef.resolve(path)); - String[][] stringArg = getStringArray(); - String[][] stringRes = ref.passStringArray(stringArg); - assertTrue(areArraysEqual(stringArg, stringRes)); - AnnotatedStruct structArg = new AnnotatedStruct(); - structArg.stringArray = getStringArray(); - AnnotatedStruct structRes = ref.passAnnotatedStruct(structArg); - assertTrue(areArraysEqual(structArg.stringArray, structRes.stringArray)); - } catch (Exception e) { - e.printStackTrace(); - fail(); - } - } - - /** - * Tests passing unions. Tuscany acts as a client, servant object is served - * in a traditional way - */ - @Test - public void test_unionsPassing_tuscanyAsClient() { - try { - TScenarioSix ref = node.getService(TScenarioSixComponent.class, "ScenarioSix").getScenarioSix(); - TRichUnion arg = new TRichUnion(); - TInnerUnion inner = new TInnerUnion(); - inner.setY(10f); - arg.setIu(inner); - TRichUnion result = ref.passRichUnion(arg); - assertEquals(arg.getIu().getY(), result.getIu().getY(), 0.0f); - } catch (Exception e) { - e.printStackTrace(); - fail(); - } - try { - TScenarioSix ref = node.getService(TScenarioSixComponent.class, "ScenarioSix").getScenarioSix(); - TRichUnion arg = new TRichUnion(); - arg.setY(15f); - TRichUnion result = ref.passRichUnion(arg); - assertEquals(arg.getY(), result.getY(), 0.0f); - } catch (Exception e) { - e.printStackTrace(); - fail(); - } - } - - /** - * Tests passing unions. Servant object is served by Tuscany and it is - * accessed by traditional Corba client - */ - @Test - public void test_unionsPassing_tuscanyAsService() { - try { - org.omg.CORBA.Object objRef = orb.resolve_initial_references("NameService"); - NamingContext ncRef = NamingContextHelper.narrow(objRef); - NameComponent nc = new NameComponent(TUSCANY_SERVICE_NAME, ""); - NameComponent path[] = {nc}; - ScenarioSix ref = ScenarioSixHelper.narrow(ncRef.resolve(path)); - RichUnion arg = new RichUnion(); - InnerUnion inner = new InnerUnion(); - inner.y(20f); - arg.iu(inner); - RichUnion result = ref.passRichUnion(arg); - assertEquals(arg.iu().y(), result.iu().y(), 0.0f); - arg = new RichUnion(); - arg.y(15f); - result = ref.passRichUnion(arg); - assertEquals(arg.y(), result.y(), 0.0f); - } catch (Exception e) { - e.printStackTrace(); - fail(); - } - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/ScenarioThreeTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/ScenarioThreeTestCase.java deleted file mode 100644 index 0190df2d1c..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/ScenarioThreeTestCase.java +++ /dev/null @@ -1,132 +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 org.apache.tuscany.sca.test.corba; - -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.fail; -import junit.framework.Assert; - -import org.apache.tuscany.sca.host.corba.jse.DefaultCorbaHost; -import org.apache.tuscany.sca.host.corba.naming.TransientNameServer; -import org.apache.tuscany.sca.host.corba.naming.TransientNameService; -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; -import org.apache.tuscany.sca.test.corba.types.TScenarioThree; -import org.apache.tuscany.sca.test.corba.types.TScenarioThreeComponent; -import org.junit.AfterClass; -import org.junit.BeforeClass; -import org.junit.Test; - -/** - * @version $Rev$ $Date$ - * Tests various mapping scenarios. - */ -public class ScenarioThreeTestCase { - - // note that those values are also used in resources/*.composite file - private static int ORB_INITIAL_PORT = 5060; - private static Node node; - private static TransientNameServer server; - - /** - * Sets up name service, creates and registers traditional CORBA service, - * obtains SCADomain - */ - @BeforeClass - public static void setUp() { - TestCorbaHost.setCorbaHost(new DefaultCorbaHost()); - try { - try { - server = - new TransientNameServer("localhost", ORB_INITIAL_PORT, TransientNameService.DEFAULT_SERVICE_NAME); - Thread t = server.start(); - if (t == null) { - Assert.fail("The naming server cannot be started"); - } - } catch (Throwable e) { - e.printStackTrace(); - Assert.fail(e.getMessage()); - } - // obtain node - node = NodeFactory.getInstance().createNode("ScenarioThree.composite", TestCorbaHost.class.getClassLoader()).start(); - } catch (Exception e) { - e.printStackTrace(); - } - } - - /** - * Kills previously spawned name service. - */ - @AfterClass - public static void tearDown() { - server.stop(); - node.stop(); - } - - /** - * Tests mapping for getters and setters - */ - @Test - public void test_getterSetter() { - try { - TScenarioThree ref = - node.getService(TScenarioThreeComponent.class, "ScenarioThreeReference").getScenarioThree(); - ref.getIntField(); - ref.setIntField(1); - } catch (Exception e) { - e.printStackTrace(); - fail(); - } - } - - /** - * Tests mapping the same operation names but with different cases - */ - @Test - public void test_nameCase() { - try { - TScenarioThree ref = - node.getService(TScenarioThreeComponent.class, "ScenarioThreeReference").getScenarioThree(); - assertEquals(0, ref.caseDifferent()); - assertEquals(1, ref.CaseDifferent()); - } catch (Exception e) { - e.printStackTrace(); - fail(); - } - } - - /** - * Tests mappings for operations with overloaded names - */ - @Test - public void test_overloadedNames() { - try { - TScenarioThree ref = - node.getService(TScenarioThreeComponent.class, "ScenarioThreeReference").getScenarioThree(); - ref.overloadedName(); - ref.overloadedName(""); - ref.overloadedName("", 0); - } catch (Exception e) { - e.printStackTrace(); - fail(); - } - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/ScenarioTwoTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/ScenarioTwoTestCase.java deleted file mode 100644 index af2c9ea711..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/ScenarioTwoTestCase.java +++ /dev/null @@ -1,141 +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 org.apache.tuscany.sca.test.corba; - -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.fail; -import junit.framework.Assert; - -import org.apache.tuscany.sca.host.corba.jse.DefaultCorbaHost; -import org.apache.tuscany.sca.host.corba.naming.TransientNameServer; -import org.apache.tuscany.sca.host.corba.naming.TransientNameService; -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; -import org.apache.tuscany.sca.test.corba.generated.ScenarioTwo; -import org.apache.tuscany.sca.test.corba.generated.ScenarioTwoHelper; -import org.apache.tuscany.sca.test.corba.types.ScenarioTwoServant; -import org.apache.tuscany.sca.test.corba.types.TScenarioTwo; -import org.apache.tuscany.sca.test.corba.types.TScenarioTwoComponent; -import org.junit.AfterClass; -import org.junit.BeforeClass; -import org.junit.Test; -import org.omg.CORBA.ORB; -import org.omg.CosNaming.NameComponent; -import org.omg.CosNaming.NamingContext; -import org.omg.CosNaming.NamingContextHelper; - -/** - * @version $Rev$ $Date$ - * Tests attribute get/set mapping using cooperation between traditional CORBA - * and Tuscany CORBA - */ -public class ScenarioTwoTestCase { - - // note that those values are also used in resources/*.composite file - private static int ORB_INITIAL_PORT = 5060; - - private static Node node; - - private static TransientNameServer server; - private static ORB orb; - private static String TUSCANY_SERVICE_NAME = "ScenarioTwo"; - private static String GENERATED_SERVICE_NAME = "ScenarioTwoGenerated"; - - /** - * Sets up name service, creates and registers traditional CORBA service, - * obtains SCADomain - */ - @BeforeClass - public static void setUp() { - TestCorbaHost.setCorbaHost(new DefaultCorbaHost()); - try { - try { - server = - new TransientNameServer("localhost", ORB_INITIAL_PORT, TransientNameService.DEFAULT_SERVICE_NAME); - Thread t = server.start(); - if (t == null) { - Assert.fail("The naming server cannot be started"); - } - orb = server.getORB(); - org.omg.CORBA.Object objRef = orb.resolve_initial_references("NameService"); - NamingContext ncRef = NamingContextHelper.narrow(objRef); - NameComponent nc = new NameComponent(GENERATED_SERVICE_NAME, ""); - NameComponent path[] = {nc}; - ScenarioTwo scenarioTwo = new ScenarioTwoServant(); - ncRef.rebind(path, scenarioTwo); - } catch (Throwable e) { - e.printStackTrace(); - Assert.fail(e.getMessage()); - } - // obtain node - node = NodeFactory.getInstance().createNode("ScenarioTwo.composite", TestCorbaHost.class.getClassLoader()).start(); - } catch (Exception e) { - e.printStackTrace(); - } - } - - /** - * Kills previously spawned name service. - */ - @AfterClass - public static void tearDown() { - server.stop(); - node.stop(); - } - - /** - * Tests using objects attribute (which is server in traditional way) by - * Tuscany CORBA binding - */ - @Test - public void test_tuscanyGetSetAttribute() { - try { - TScenarioTwo ref = node.getService(TScenarioTwoComponent.class, "ScenarioTwo").getScenarioTwo(); - String strVal = "Whatever"; - ref.setStringField(strVal); - assertEquals(strVal, ref.getStringField()); - } catch (Exception e) { - e.printStackTrace(); - fail(); - } - } - - /** - * Tests using objects attribute (which is served by Tuscany) in traditional - * way (by idlj generated code) - */ - @Test - public void test_getneratedGetSetAttribute() { - try { - orb = server.getORB(); - org.omg.CORBA.Object objRef = orb.resolve_initial_references("NameService"); - NamingContext ncRef = NamingContextHelper.narrow(objRef); - NameComponent nc = new NameComponent(TUSCANY_SERVICE_NAME, ""); - NameComponent path[] = {nc}; - ScenarioTwo st = ScenarioTwoHelper.narrow(ncRef.resolve(path)); - st.stringField(""); - assertEquals("", st.stringField()); - } catch (Exception e) { - e.printStackTrace(); - fail(); - } - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/TestCorbaHost.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/TestCorbaHost.java deleted file mode 100644 index bd1ce8cb49..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/TestCorbaHost.java +++ /dev/null @@ -1,56 +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 org.apache.tuscany.sca.test.corba; - -import org.apache.tuscany.sca.host.corba.CorbaHost; -import org.apache.tuscany.sca.host.corba.CorbaHostException; -import org.apache.tuscany.sca.host.corba.jse.DefaultCorbaHost; -import org.omg.CORBA.Object; - -/** - * @version $Rev$ $Date$ - * Mock Corba host which proxies to configured Corba host - */ -public class TestCorbaHost implements CorbaHost { - - private static CorbaHost corbaHost = new DefaultCorbaHost(); - - /** - * Configures environment to use given Corba host - * - * @param corbaHost Corba host to use - */ - public static void setCorbaHost(CorbaHost corbaHost) { - TestCorbaHost.corbaHost = corbaHost; - } - - public Object lookup(String arg0) throws CorbaHostException { - return TestCorbaHost.corbaHost.lookup(arg0); - } - - public void registerServant(String arg0, Object arg1) throws CorbaHostException { - TestCorbaHost.corbaHost.registerServant(arg0, arg1); - } - - public void unregisterServant(String arg0) throws CorbaHostException { - TestCorbaHost.corbaHost.unregisterServant(arg0); - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/TestCorbaHostModuleActivator.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/TestCorbaHostModuleActivator.java deleted file mode 100644 index 3639ba812d..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/TestCorbaHostModuleActivator.java +++ /dev/null @@ -1,50 +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 org.apache.tuscany.sca.test.corba; - -import org.apache.tuscany.sca.core.ExtensionPointRegistry; -import org.apache.tuscany.sca.core.ModuleActivator; -import org.apache.tuscany.sca.host.corba.CorbaHostExtensionPoint; - -/** - * @version $Rev$ $Date$ - * Registers TestCorbaHost as a Corba host extension. - */ -public class TestCorbaHostModuleActivator implements ModuleActivator { - private ExtensionPointRegistry registry; - - /** - * - */ - public TestCorbaHostModuleActivator(ExtensionPointRegistry registry) { - super(); - this.registry = registry; - } - - public void start() { - CorbaHostExtensionPoint chep = registry.getExtensionPoint(CorbaHostExtensionPoint.class); - chep.getCorbaHosts().add(0, new TestCorbaHost()); - } - - public void stop() { - - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/AnnotatedStruct.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/AnnotatedStruct.java deleted file mode 100644 index abcec43d0e..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/AnnotatedStruct.java +++ /dev/null @@ -1,43 +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 org.apache.tuscany.sca.test.corba.generated; - - -/** -* org/apache/tuscany/sca/test/corba/generated/AnnotatedStruct.java . -* Generated by the IDL-to-Java compiler (portable), version "3.2" -* from itest_scenario.idl -* sobota, 16 sierpieñ 2008 15:31:35 CEST -*/ - -public final class AnnotatedStruct implements org.omg.CORBA.portable.IDLEntity -{ - public String stringArray[][] = null; - - public AnnotatedStruct () - { - } // ctor - - public AnnotatedStruct (String[][] _stringArray) - { - stringArray = _stringArray; - } // ctor - -} // class AnnotatedStruct diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/AnnotatedStructHelper.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/AnnotatedStructHelper.java deleted file mode 100644 index 171a7919a2..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/AnnotatedStructHelper.java +++ /dev/null @@ -1,97 +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 org.apache.tuscany.sca.test.corba.generated; - - -/** -* org/apache/tuscany/sca/test/corba/generated/AnnotatedStructHelper.java . -* Generated by the IDL-to-Java compiler (portable), version "3.2" -* from itest_scenario.idl -* sobota, 16 sierpieñ 2008 15:31:35 CEST -*/ - -abstract public class AnnotatedStructHelper -{ - private static String _id = "IDL:org/apache/tuscany/sca/test/corba/generated/AnnotatedStruct/AnnotatedStruct:1.0"; - - public static void insert (org.omg.CORBA.Any a, org.apache.tuscany.sca.test.corba.generated.AnnotatedStruct that) - { - org.omg.CORBA.portable.OutputStream out = a.create_output_stream (); - a.type (type ()); - write (out, that); - a.read_value (out.create_input_stream (), type ()); - } - - public static org.apache.tuscany.sca.test.corba.generated.AnnotatedStruct extract (org.omg.CORBA.Any a) - { - return read (a.create_input_stream ()); - } - - private static org.omg.CORBA.TypeCode __typeCode = null; - private static boolean __active = false; - synchronized public static org.omg.CORBA.TypeCode type () - { - if (__typeCode == null) - { - synchronized (org.omg.CORBA.TypeCode.class) - { - if (__typeCode == null) - { - if (__active) - { - return org.omg.CORBA.ORB.init().create_recursive_tc ( _id ); - } - __active = true; - org.omg.CORBA.StructMember[] _members0 = new org.omg.CORBA.StructMember [1]; - org.omg.CORBA.TypeCode _tcOf_members0 = null; - _tcOf_members0 = org.omg.CORBA.ORB.init ().create_string_tc (0); - _tcOf_members0 = org.omg.CORBA.ORB.init ().create_array_tc (2, _tcOf_members0 ); - _tcOf_members0 = org.omg.CORBA.ORB.init ().create_array_tc (2, _tcOf_members0 ); - _tcOf_members0 = org.omg.CORBA.ORB.init ().create_alias_tc (org.apache.tuscany.sca.test.corba.generated.StringArrayHelper.id (), "StringArray", _tcOf_members0); - _members0[0] = new org.omg.CORBA.StructMember ( - "stringArray", - _tcOf_members0, - null); - __typeCode = org.omg.CORBA.ORB.init ().create_struct_tc (org.apache.tuscany.sca.test.corba.generated.AnnotatedStructHelper.id (), "AnnotatedStruct", _members0); - __active = false; - } - } - } - return __typeCode; - } - - public static String id () - { - return _id; - } - - public static org.apache.tuscany.sca.test.corba.generated.AnnotatedStruct read (org.omg.CORBA.portable.InputStream istream) - { - org.apache.tuscany.sca.test.corba.generated.AnnotatedStruct value = new org.apache.tuscany.sca.test.corba.generated.AnnotatedStruct (); - value.stringArray = org.apache.tuscany.sca.test.corba.generated.StringArrayHelper.read (istream); - return value; - } - - public static void write (org.omg.CORBA.portable.OutputStream ostream, org.apache.tuscany.sca.test.corba.generated.AnnotatedStruct value) - { - org.apache.tuscany.sca.test.corba.generated.StringArrayHelper.write (ostream, value.stringArray); - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/AnnotatedStructHolder.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/AnnotatedStructHolder.java deleted file mode 100644 index 5f2dc56033..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/AnnotatedStructHolder.java +++ /dev/null @@ -1,57 +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 org.apache.tuscany.sca.test.corba.generated; - -/** -* org/apache/tuscany/sca/test/corba/generated/AnnotatedStructHolder.java . -* Generated by the IDL-to-Java compiler (portable), version "3.2" -* from itest_scenario.idl -* sobota, 16 sierpieñ 2008 15:31:35 CEST -*/ - -public final class AnnotatedStructHolder implements org.omg.CORBA.portable.Streamable -{ - public org.apache.tuscany.sca.test.corba.generated.AnnotatedStruct value = null; - - public AnnotatedStructHolder () - { - } - - public AnnotatedStructHolder (org.apache.tuscany.sca.test.corba.generated.AnnotatedStruct initialValue) - { - value = initialValue; - } - - public void _read (org.omg.CORBA.portable.InputStream i) - { - value = org.apache.tuscany.sca.test.corba.generated.AnnotatedStructHelper.read (i); - } - - public void _write (org.omg.CORBA.portable.OutputStream o) - { - org.apache.tuscany.sca.test.corba.generated.AnnotatedStructHelper.write (o, value); - } - - public org.omg.CORBA.TypeCode _type () - { - return org.apache.tuscany.sca.test.corba.generated.AnnotatedStructHelper.type (); - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/Color.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/Color.java deleted file mode 100644 index 24a628d406..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/Color.java +++ /dev/null @@ -1,61 +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 org.apache.tuscany.sca.test.corba.generated; - - -/** -* org/apache/tuscany/sca/test/corba/generated/Color.java . -* Generated by the IDL-to-Java compiler (portable), version "3.2" -* from itest_scenario.idl -* pi±tek, 27 czerwiec 2008 20:40:03 CEST -*/ - -public class Color implements org.omg.CORBA.portable.IDLEntity -{ - private int __value; - private static int __size = 3; - private static org.apache.tuscany.sca.test.corba.generated.Color[] __array = new org.apache.tuscany.sca.test.corba.generated.Color [__size]; - - public static final int _red = 0; - public static final org.apache.tuscany.sca.test.corba.generated.Color red = new org.apache.tuscany.sca.test.corba.generated.Color(_red); - public static final int _yellow = 1; - public static final org.apache.tuscany.sca.test.corba.generated.Color yellow = new org.apache.tuscany.sca.test.corba.generated.Color(_yellow); - public static final int _green = 2; - public static final org.apache.tuscany.sca.test.corba.generated.Color green = new org.apache.tuscany.sca.test.corba.generated.Color(_green); - - public int value () - { - return __value; - } - - public static org.apache.tuscany.sca.test.corba.generated.Color from_int (int value) - { - if (value >= 0 && value < __size) - return __array[value]; - else - throw new org.omg.CORBA.BAD_PARAM (); - } - - protected Color (int value) - { - __value = value; - __array[__value] = this; - } -} // class Color diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/ColorHelper.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/ColorHelper.java deleted file mode 100644 index da37f28e39..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/ColorHelper.java +++ /dev/null @@ -1,72 +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 org.apache.tuscany.sca.test.corba.generated; - - -/** -* org/apache/tuscany/sca/test/corba/generated/ColorHelper.java . -* Generated by the IDL-to-Java compiler (portable), version "3.2" -* from itest_scenario.idl -* pi±tek, 27 czerwiec 2008 20:40:03 CEST -*/ - -abstract public class ColorHelper -{ - private static String _id = "IDL:org/apache/tuscany/sca/test/corba/generated/Color:1.0"; - - public static void insert (org.omg.CORBA.Any a, org.apache.tuscany.sca.test.corba.generated.Color that) - { - org.omg.CORBA.portable.OutputStream out = a.create_output_stream (); - a.type (type ()); - write (out, that); - a.read_value (out.create_input_stream (), type ()); - } - - public static org.apache.tuscany.sca.test.corba.generated.Color extract (org.omg.CORBA.Any a) - { - return read (a.create_input_stream ()); - } - - private static org.omg.CORBA.TypeCode __typeCode = null; - synchronized public static org.omg.CORBA.TypeCode type () - { - if (__typeCode == null) - { - __typeCode = org.omg.CORBA.ORB.init ().create_enum_tc (org.apache.tuscany.sca.test.corba.generated.ColorHelper.id (), "Color", new String[] { "red", "yellow", "green"} ); - } - return __typeCode; - } - - public static String id () - { - return _id; - } - - public static org.apache.tuscany.sca.test.corba.generated.Color read (org.omg.CORBA.portable.InputStream istream) - { - return org.apache.tuscany.sca.test.corba.generated.Color.from_int (istream.read_long ()); - } - - public static void write (org.omg.CORBA.portable.OutputStream ostream, org.apache.tuscany.sca.test.corba.generated.Color value) - { - ostream.write_long (value.value ()); - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/ColorHolder.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/ColorHolder.java deleted file mode 100644 index 7b2466f791..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/ColorHolder.java +++ /dev/null @@ -1,57 +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 org.apache.tuscany.sca.test.corba.generated; - -/** -* org/apache/tuscany/sca/test/corba/generated/ColorHolder.java . -* Generated by the IDL-to-Java compiler (portable), version "3.2" -* from itest_scenario.idl -* pi±tek, 27 czerwiec 2008 20:40:03 CEST -*/ - -public final class ColorHolder implements org.omg.CORBA.portable.Streamable -{ - public org.apache.tuscany.sca.test.corba.generated.Color value = null; - - public ColorHolder () - { - } - - public ColorHolder (org.apache.tuscany.sca.test.corba.generated.Color initialValue) - { - value = initialValue; - } - - public void _read (org.omg.CORBA.portable.InputStream i) - { - value = org.apache.tuscany.sca.test.corba.generated.ColorHelper.read (i); - } - - public void _write (org.omg.CORBA.portable.OutputStream o) - { - org.apache.tuscany.sca.test.corba.generated.ColorHelper.write (o, value); - } - - public org.omg.CORBA.TypeCode _type () - { - return org.apache.tuscany.sca.test.corba.generated.ColorHelper.type (); - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/InnerStruct.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/InnerStruct.java deleted file mode 100644 index 27052a1549..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/InnerStruct.java +++ /dev/null @@ -1,47 +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 org.apache.tuscany.sca.test.corba.generated; - - -/** -* org/apache/tuscany/sca/test/corba/generated/InnerStruct.java . -* Generated by the IDL-to-Java compiler (portable), version "3.2" -* from itest_scenario.idl -* pi±tek, 27 czerwiec 2008 20:40:03 CEST -*/ - -public final class InnerStruct implements org.omg.CORBA.portable.IDLEntity -{ - public int twoDimLongSequence[][] = null; - public String stringField = null; - public org.apache.tuscany.sca.test.corba.generated.Color color = null; - - public InnerStruct () - { - } // ctor - - public InnerStruct (int[][] _twoDimLongSequence, String _stringField, org.apache.tuscany.sca.test.corba.generated.Color _color) - { - twoDimLongSequence = _twoDimLongSequence; - stringField = _stringField; - color = _color; - } // ctor - -} // class InnerStruct diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/InnerStructHelper.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/InnerStructHelper.java deleted file mode 100644 index 57daa51f42..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/InnerStructHelper.java +++ /dev/null @@ -1,112 +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 org.apache.tuscany.sca.test.corba.generated; - - -/** -* org/apache/tuscany/sca/test/corba/generated/InnerStructHelper.java . -* Generated by the IDL-to-Java compiler (portable), version "3.2" -* from itest_scenario.idl -* pi±tek, 27 czerwiec 2008 20:40:03 CEST -*/ - -abstract public class InnerStructHelper -{ - private static String _id = "IDL:org/apache/tuscany/sca/test/corba/generated/InnerStruct/InnerStruct:1.0"; - - public static void insert (org.omg.CORBA.Any a, org.apache.tuscany.sca.test.corba.generated.InnerStruct that) - { - org.omg.CORBA.portable.OutputStream out = a.create_output_stream (); - a.type (type ()); - write (out, that); - a.read_value (out.create_input_stream (), type ()); - } - - public static org.apache.tuscany.sca.test.corba.generated.InnerStruct extract (org.omg.CORBA.Any a) - { - return read (a.create_input_stream ()); - } - - private static org.omg.CORBA.TypeCode __typeCode = null; - private static boolean __active = false; - synchronized public static org.omg.CORBA.TypeCode type () - { - if (__typeCode == null) - { - synchronized (org.omg.CORBA.TypeCode.class) - { - if (__typeCode == null) - { - if (__active) - { - return org.omg.CORBA.ORB.init().create_recursive_tc ( _id ); - } - __active = true; - org.omg.CORBA.StructMember[] _members0 = new org.omg.CORBA.StructMember [3]; - org.omg.CORBA.TypeCode _tcOf_members0 = null; - _tcOf_members0 = org.omg.CORBA.ORB.init ().get_primitive_tc (org.omg.CORBA.TCKind.tk_long); - _tcOf_members0 = org.omg.CORBA.ORB.init ().create_sequence_tc (0, _tcOf_members0); - _tcOf_members0 = org.omg.CORBA.ORB.init ().create_alias_tc (org.apache.tuscany.sca.test.corba.generated.LongSequenceHelper.id (), "LongSequence", _tcOf_members0); - _tcOf_members0 = org.omg.CORBA.ORB.init ().create_sequence_tc (0, _tcOf_members0); - _tcOf_members0 = org.omg.CORBA.ORB.init ().create_alias_tc (org.apache.tuscany.sca.test.corba.generated.TwoDimLongSequenceHelper.id (), "TwoDimLongSequence", _tcOf_members0); - _members0[0] = new org.omg.CORBA.StructMember ( - "twoDimLongSequence", - _tcOf_members0, - null); - _tcOf_members0 = org.omg.CORBA.ORB.init ().create_string_tc (0); - _members0[1] = new org.omg.CORBA.StructMember ( - "stringField", - _tcOf_members0, - null); - _tcOf_members0 = org.apache.tuscany.sca.test.corba.generated.ColorHelper.type (); - _members0[2] = new org.omg.CORBA.StructMember ( - "color", - _tcOf_members0, - null); - __typeCode = org.omg.CORBA.ORB.init ().create_struct_tc (org.apache.tuscany.sca.test.corba.generated.InnerStructHelper.id (), "InnerStruct", _members0); - __active = false; - } - } - } - return __typeCode; - } - - public static String id () - { - return _id; - } - - public static org.apache.tuscany.sca.test.corba.generated.InnerStruct read (org.omg.CORBA.portable.InputStream istream) - { - org.apache.tuscany.sca.test.corba.generated.InnerStruct value = new org.apache.tuscany.sca.test.corba.generated.InnerStruct (); - value.twoDimLongSequence = org.apache.tuscany.sca.test.corba.generated.TwoDimLongSequenceHelper.read (istream); - value.stringField = istream.read_string (); - value.color = org.apache.tuscany.sca.test.corba.generated.ColorHelper.read (istream); - return value; - } - - public static void write (org.omg.CORBA.portable.OutputStream ostream, org.apache.tuscany.sca.test.corba.generated.InnerStruct value) - { - org.apache.tuscany.sca.test.corba.generated.TwoDimLongSequenceHelper.write (ostream, value.twoDimLongSequence); - ostream.write_string (value.stringField); - org.apache.tuscany.sca.test.corba.generated.ColorHelper.write (ostream, value.color); - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/InnerStructHolder.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/InnerStructHolder.java deleted file mode 100644 index 88fef0b4fb..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/InnerStructHolder.java +++ /dev/null @@ -1,57 +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 org.apache.tuscany.sca.test.corba.generated; - -/** -* org/apache/tuscany/sca/test/corba/generated/InnerStructHolder.java . -* Generated by the IDL-to-Java compiler (portable), version "3.2" -* from itest_scenario.idl -* pi±tek, 27 czerwiec 2008 20:40:03 CEST -*/ - -public final class InnerStructHolder implements org.omg.CORBA.portable.Streamable -{ - public org.apache.tuscany.sca.test.corba.generated.InnerStruct value = null; - - public InnerStructHolder () - { - } - - public InnerStructHolder (org.apache.tuscany.sca.test.corba.generated.InnerStruct initialValue) - { - value = initialValue; - } - - public void _read (org.omg.CORBA.portable.InputStream i) - { - value = org.apache.tuscany.sca.test.corba.generated.InnerStructHelper.read (i); - } - - public void _write (org.omg.CORBA.portable.OutputStream o) - { - org.apache.tuscany.sca.test.corba.generated.InnerStructHelper.write (o, value); - } - - public org.omg.CORBA.TypeCode _type () - { - return org.apache.tuscany.sca.test.corba.generated.InnerStructHelper.type (); - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/InnerUnion.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/InnerUnion.java deleted file mode 100644 index c5d2aab203..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/InnerUnion.java +++ /dev/null @@ -1,130 +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 org.apache.tuscany.sca.test.corba.generated; - - -/** -* org/apache/tuscany/sca/test/corba/generated/InnerUnion.java . -* Generated by the IDL-to-Java compiler (portable), version "3.2" -* from itest_scenario.idl -* niedziela, 17 sierpieñ 2008 19:07:14 CEST -*/ - -public final class InnerUnion implements org.omg.CORBA.portable.IDLEntity -{ - private int ___x; - private float ___y; - private int __discriminator; - private boolean __uninitialized = true; - - public InnerUnion () - { - } - - public int discriminator () - { - if (__uninitialized) - throw new org.omg.CORBA.BAD_OPERATION (); - return __discriminator; - } - - public int x () - { - if (__uninitialized) - throw new org.omg.CORBA.BAD_OPERATION (); - verifyx (__discriminator); - return ___x; - } - - public void x (int value) - { - __discriminator = 1; - ___x = value; - __uninitialized = false; - } - - public void x (int discriminator, int value) - { - verifyx (discriminator); - __discriminator = discriminator; - ___x = value; - __uninitialized = false; - } - - private void verifyx (int discriminator) - { - if (discriminator != 1) - throw new org.omg.CORBA.BAD_OPERATION (); - } - - public float y () - { - if (__uninitialized) - throw new org.omg.CORBA.BAD_OPERATION (); - verifyy (__discriminator); - return ___y; - } - - public void y (float value) - { - __discriminator = 2; - ___y = value; - __uninitialized = false; - } - - public void y (int discriminator, float value) - { - verifyy (discriminator); - __discriminator = discriminator; - ___y = value; - __uninitialized = false; - } - - private void verifyy (int discriminator) - { - if (discriminator != 2) - throw new org.omg.CORBA.BAD_OPERATION (); - } - - public void _default () - { - __discriminator = -2147483648; - __uninitialized = false; - } - - public void _default (int discriminator) - { - verifyDefault( discriminator ) ; - __discriminator = discriminator ; - __uninitialized = false; - } - - private void verifyDefault( int value ) - { - switch (value) { - case 1: - case 2: - throw new org.omg.CORBA.BAD_OPERATION() ; - - default: - return; - } - } - -} // class InnerUnion diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/InnerUnionHelper.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/InnerUnionHelper.java deleted file mode 100644 index db57fc5cba..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/InnerUnionHelper.java +++ /dev/null @@ -1,124 +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 org.apache.tuscany.sca.test.corba.generated; - - -/** -* org/apache/tuscany/sca/test/corba/generated/InnerUnionHelper.java . -* Generated by the IDL-to-Java compiler (portable), version "3.2" -* from itest_scenario.idl -* niedziela, 17 sierpieñ 2008 19:07:14 CEST -*/ - -abstract public class InnerUnionHelper -{ - private static String _id = "IDL:org/apache/tuscany/sca/test/corba/generated/InnerUnion/InnerUnion:1.0"; - - public static void insert (org.omg.CORBA.Any a, org.apache.tuscany.sca.test.corba.generated.InnerUnion that) - { - org.omg.CORBA.portable.OutputStream out = a.create_output_stream (); - a.type (type ()); - write (out, that); - a.read_value (out.create_input_stream (), type ()); - } - - public static org.apache.tuscany.sca.test.corba.generated.InnerUnion extract (org.omg.CORBA.Any a) - { - return read (a.create_input_stream ()); - } - - private static org.omg.CORBA.TypeCode __typeCode = null; - synchronized public static org.omg.CORBA.TypeCode type () - { - if (__typeCode == null) - { - org.omg.CORBA.TypeCode _disTypeCode0; - _disTypeCode0 = org.omg.CORBA.ORB.init ().get_primitive_tc (org.omg.CORBA.TCKind.tk_long); - org.omg.CORBA.UnionMember[] _members0 = new org.omg.CORBA.UnionMember [2]; - org.omg.CORBA.TypeCode _tcOf_members0; - org.omg.CORBA.Any _anyOf_members0; - - // Branch for x (case label 1) - _anyOf_members0 = org.omg.CORBA.ORB.init ().create_any (); - _anyOf_members0.insert_long ((int)1); - _tcOf_members0 = org.omg.CORBA.ORB.init ().get_primitive_tc (org.omg.CORBA.TCKind.tk_long); - _members0[0] = new org.omg.CORBA.UnionMember ( - "x", - _anyOf_members0, - _tcOf_members0, - null); - - // Branch for y (case label 2) - _anyOf_members0 = org.omg.CORBA.ORB.init ().create_any (); - _anyOf_members0.insert_long ((int)2); - _tcOf_members0 = org.omg.CORBA.ORB.init ().get_primitive_tc (org.omg.CORBA.TCKind.tk_float); - _members0[1] = new org.omg.CORBA.UnionMember ( - "y", - _anyOf_members0, - _tcOf_members0, - null); - __typeCode = org.omg.CORBA.ORB.init ().create_union_tc (org.apache.tuscany.sca.test.corba.generated.InnerUnionHelper.id (), "InnerUnion", _disTypeCode0, _members0); - } - return __typeCode; - } - - public static String id () - { - return _id; - } - - public static org.apache.tuscany.sca.test.corba.generated.InnerUnion read (org.omg.CORBA.portable.InputStream istream) - { - org.apache.tuscany.sca.test.corba.generated.InnerUnion value = new org.apache.tuscany.sca.test.corba.generated.InnerUnion (); - int _dis0 = (int)0; - _dis0 = istream.read_long (); - switch (_dis0) - { - case 1: - int _x = (int)0; - _x = istream.read_long (); - value.x (_x); - break; - case 2: - float _y = (float)0; - _y = istream.read_float (); - value.y (_y); - break; - default: - value._default( _dis0 ) ; - break; - } - return value; - } - - public static void write (org.omg.CORBA.portable.OutputStream ostream, org.apache.tuscany.sca.test.corba.generated.InnerUnion value) - { - ostream.write_long (value.discriminator ()); - switch (value.discriminator ()) - { - case 1: - ostream.write_long (value.x ()); - break; - case 2: - ostream.write_float (value.y ()); - break; - } - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/InnerUnionHolder.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/InnerUnionHolder.java deleted file mode 100644 index ec25e703c5..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/InnerUnionHolder.java +++ /dev/null @@ -1,56 +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 org.apache.tuscany.sca.test.corba.generated; - -/** -* org/apache/tuscany/sca/test/corba/generated/InnerUnionHolder.java . -* Generated by the IDL-to-Java compiler (portable), version "3.2" -* from itest_scenario.idl -* niedziela, 17 sierpieñ 2008 19:07:14 CEST -*/ - -public final class InnerUnionHolder implements org.omg.CORBA.portable.Streamable -{ - public org.apache.tuscany.sca.test.corba.generated.InnerUnion value = null; - - public InnerUnionHolder () - { - } - - public InnerUnionHolder (org.apache.tuscany.sca.test.corba.generated.InnerUnion initialValue) - { - value = initialValue; - } - - public void _read (org.omg.CORBA.portable.InputStream i) - { - value = org.apache.tuscany.sca.test.corba.generated.InnerUnionHelper.read (i); - } - - public void _write (org.omg.CORBA.portable.OutputStream o) - { - org.apache.tuscany.sca.test.corba.generated.InnerUnionHelper.write (o, value); - } - - public org.omg.CORBA.TypeCode _type () - { - return org.apache.tuscany.sca.test.corba.generated.InnerUnionHelper.type (); - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/LongSequenceHelper.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/LongSequenceHelper.java deleted file mode 100644 index 940b391499..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/LongSequenceHelper.java +++ /dev/null @@ -1,79 +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 org.apache.tuscany.sca.test.corba.generated; - - -/** -* org/apache/tuscany/sca/test/corba/generated/LongSequenceHelper.java . -* Generated by the IDL-to-Java compiler (portable), version "3.2" -* from itest_scenario.idl -* pi±tek, 27 czerwiec 2008 20:40:03 CEST -*/ - -abstract public class LongSequenceHelper -{ - private static String _id = "IDL:org/apache/tuscany/sca/test/corba/generated/LongSequence:1.0"; - - public static void insert (org.omg.CORBA.Any a, int[] that) - { - org.omg.CORBA.portable.OutputStream out = a.create_output_stream (); - a.type (type ()); - write (out, that); - a.read_value (out.create_input_stream (), type ()); - } - - public static int[] extract (org.omg.CORBA.Any a) - { - return read (a.create_input_stream ()); - } - - private static org.omg.CORBA.TypeCode __typeCode = null; - synchronized public static org.omg.CORBA.TypeCode type () - { - if (__typeCode == null) - { - __typeCode = org.omg.CORBA.ORB.init ().get_primitive_tc (org.omg.CORBA.TCKind.tk_long); - __typeCode = org.omg.CORBA.ORB.init ().create_sequence_tc (0, __typeCode); - __typeCode = org.omg.CORBA.ORB.init ().create_alias_tc (org.apache.tuscany.sca.test.corba.generated.LongSequenceHelper.id (), "LongSequence", __typeCode); - } - return __typeCode; - } - - public static String id () - { - return _id; - } - - public static int[] read (org.omg.CORBA.portable.InputStream istream) - { - int value[] = null; - int _len0 = istream.read_long (); - value = new int[_len0]; - istream.read_long_array (value, 0, _len0); - return value; - } - - public static void write (org.omg.CORBA.portable.OutputStream ostream, int[] value) - { - ostream.write_long (value.length); - ostream.write_long_array (value, 0, value.length); - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/LongSequenceHolder.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/LongSequenceHolder.java deleted file mode 100644 index 63a11dc56a..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/LongSequenceHolder.java +++ /dev/null @@ -1,58 +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 org.apache.tuscany.sca.test.corba.generated; - - -/** -* org/apache/tuscany/sca/test/corba/generated/LongSequenceHolder.java . -* Generated by the IDL-to-Java compiler (portable), version "3.2" -* from itest_scenario.idl -* pi±tek, 27 czerwiec 2008 20:40:03 CEST -*/ - -public final class LongSequenceHolder implements org.omg.CORBA.portable.Streamable -{ - public int value[] = null; - - public LongSequenceHolder () - { - } - - public LongSequenceHolder (int[] initialValue) - { - value = initialValue; - } - - public void _read (org.omg.CORBA.portable.InputStream i) - { - value = org.apache.tuscany.sca.test.corba.generated.LongSequenceHelper.read (i); - } - - public void _write (org.omg.CORBA.portable.OutputStream o) - { - org.apache.tuscany.sca.test.corba.generated.LongSequenceHelper.write (o, value); - } - - public org.omg.CORBA.TypeCode _type () - { - return org.apache.tuscany.sca.test.corba.generated.LongSequenceHelper.type (); - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/RichStruct.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/RichStruct.java deleted file mode 100644 index 8c0bfc9e39..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/RichStruct.java +++ /dev/null @@ -1,47 +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 org.apache.tuscany.sca.test.corba.generated; - - -/** -* org/apache/tuscany/sca/test/corba/generated/RichStruct.java . -* Generated by the IDL-to-Java compiler (portable), version "3.2" -* from itest_scenario.idl -* pi±tek, 27 czerwiec 2008 20:40:03 CEST -*/ - -public final class RichStruct implements org.omg.CORBA.portable.IDLEntity -{ - public org.apache.tuscany.sca.test.corba.generated.InnerStruct innerStruct = null; - public String stringSequence[] = null; - public int longField = (int)0; - - public RichStruct () - { - } // ctor - - public RichStruct (org.apache.tuscany.sca.test.corba.generated.InnerStruct _innerStruct, String[] _stringSequence, int _longField) - { - innerStruct = _innerStruct; - stringSequence = _stringSequence; - longField = _longField; - } // ctor - -} // class RichStruct diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/RichStructHelper.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/RichStructHelper.java deleted file mode 100644 index 72ff55a711..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/RichStructHelper.java +++ /dev/null @@ -1,110 +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 org.apache.tuscany.sca.test.corba.generated; - - -/** -* org/apache/tuscany/sca/test/corba/generated/RichStructHelper.java . -* Generated by the IDL-to-Java compiler (portable), version "3.2" -* from itest_scenario.idl -* pi±tek, 27 czerwiec 2008 20:40:03 CEST -*/ - -abstract public class RichStructHelper -{ - private static String _id = "IDL:org/apache/tuscany/sca/test/corba/generated/RichStruct/RichStruct:1.0"; - - public static void insert (org.omg.CORBA.Any a, org.apache.tuscany.sca.test.corba.generated.RichStruct that) - { - org.omg.CORBA.portable.OutputStream out = a.create_output_stream (); - a.type (type ()); - write (out, that); - a.read_value (out.create_input_stream (), type ()); - } - - public static org.apache.tuscany.sca.test.corba.generated.RichStruct extract (org.omg.CORBA.Any a) - { - return read (a.create_input_stream ()); - } - - private static org.omg.CORBA.TypeCode __typeCode = null; - private static boolean __active = false; - synchronized public static org.omg.CORBA.TypeCode type () - { - if (__typeCode == null) - { - synchronized (org.omg.CORBA.TypeCode.class) - { - if (__typeCode == null) - { - if (__active) - { - return org.omg.CORBA.ORB.init().create_recursive_tc ( _id ); - } - __active = true; - org.omg.CORBA.StructMember[] _members0 = new org.omg.CORBA.StructMember [3]; - org.omg.CORBA.TypeCode _tcOf_members0 = null; - _tcOf_members0 = org.apache.tuscany.sca.test.corba.generated.InnerStructHelper.type (); - _members0[0] = new org.omg.CORBA.StructMember ( - "innerStruct", - _tcOf_members0, - null); - _tcOf_members0 = org.omg.CORBA.ORB.init ().create_string_tc (0); - _tcOf_members0 = org.omg.CORBA.ORB.init ().create_sequence_tc (0, _tcOf_members0); - _tcOf_members0 = org.omg.CORBA.ORB.init ().create_alias_tc (org.apache.tuscany.sca.test.corba.generated.StringSequenceHelper.id (), "StringSequence", _tcOf_members0); - _members0[1] = new org.omg.CORBA.StructMember ( - "stringSequence", - _tcOf_members0, - null); - _tcOf_members0 = org.omg.CORBA.ORB.init ().get_primitive_tc (org.omg.CORBA.TCKind.tk_long); - _members0[2] = new org.omg.CORBA.StructMember ( - "longField", - _tcOf_members0, - null); - __typeCode = org.omg.CORBA.ORB.init ().create_struct_tc (org.apache.tuscany.sca.test.corba.generated.RichStructHelper.id (), "RichStruct", _members0); - __active = false; - } - } - } - return __typeCode; - } - - public static String id () - { - return _id; - } - - public static org.apache.tuscany.sca.test.corba.generated.RichStruct read (org.omg.CORBA.portable.InputStream istream) - { - org.apache.tuscany.sca.test.corba.generated.RichStruct value = new org.apache.tuscany.sca.test.corba.generated.RichStruct (); - value.innerStruct = org.apache.tuscany.sca.test.corba.generated.InnerStructHelper.read (istream); - value.stringSequence = org.apache.tuscany.sca.test.corba.generated.StringSequenceHelper.read (istream); - value.longField = istream.read_long (); - return value; - } - - public static void write (org.omg.CORBA.portable.OutputStream ostream, org.apache.tuscany.sca.test.corba.generated.RichStruct value) - { - org.apache.tuscany.sca.test.corba.generated.InnerStructHelper.write (ostream, value.innerStruct); - org.apache.tuscany.sca.test.corba.generated.StringSequenceHelper.write (ostream, value.stringSequence); - ostream.write_long (value.longField); - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/RichStructHolder.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/RichStructHolder.java deleted file mode 100644 index 8a063b8b9d..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/RichStructHolder.java +++ /dev/null @@ -1,57 +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 org.apache.tuscany.sca.test.corba.generated; - -/** -* org/apache/tuscany/sca/test/corba/generated/RichStructHolder.java . -* Generated by the IDL-to-Java compiler (portable), version "3.2" -* from itest_scenario.idl -* pi±tek, 27 czerwiec 2008 20:40:03 CEST -*/ - -public final class RichStructHolder implements org.omg.CORBA.portable.Streamable -{ - public org.apache.tuscany.sca.test.corba.generated.RichStruct value = null; - - public RichStructHolder () - { - } - - public RichStructHolder (org.apache.tuscany.sca.test.corba.generated.RichStruct initialValue) - { - value = initialValue; - } - - public void _read (org.omg.CORBA.portable.InputStream i) - { - value = org.apache.tuscany.sca.test.corba.generated.RichStructHelper.read (i); - } - - public void _write (org.omg.CORBA.portable.OutputStream o) - { - org.apache.tuscany.sca.test.corba.generated.RichStructHelper.write (o, value); - } - - public org.omg.CORBA.TypeCode _type () - { - return org.apache.tuscany.sca.test.corba.generated.RichStructHelper.type (); - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/RichUnion.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/RichUnion.java deleted file mode 100644 index bc42d57ac3..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/RichUnion.java +++ /dev/null @@ -1,195 +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 org.apache.tuscany.sca.test.corba.generated; - - -/** -* org/apache/tuscany/sca/test/corba/generated/RichUnion.java . -* Generated by the IDL-to-Java compiler (portable), version "3.2" -* from itest_scenario.idl -* niedziela, 17 sierpieñ 2008 19:07:14 CEST -*/ - -public final class RichUnion implements org.omg.CORBA.portable.IDLEntity -{ - private int ___x; - private float ___y; - private String ___z; - private org.apache.tuscany.sca.test.corba.generated.InnerUnion ___iu; - private boolean ___a; - private int __discriminator; - private boolean __uninitialized = true; - - public RichUnion () - { - } - - public int discriminator () - { - if (__uninitialized) - throw new org.omg.CORBA.BAD_OPERATION (); - return __discriminator; - } - - public int x () - { - if (__uninitialized) - throw new org.omg.CORBA.BAD_OPERATION (); - verifyx (__discriminator); - return ___x; - } - - public void x (int value) - { - __discriminator = 1; - ___x = value; - __uninitialized = false; - } - - public void x (int discriminator, int value) - { - verifyx (discriminator); - __discriminator = discriminator; - ___x = value; - __uninitialized = false; - } - - private void verifyx (int discriminator) - { - if (discriminator != 1) - throw new org.omg.CORBA.BAD_OPERATION (); - } - - public float y () - { - if (__uninitialized) - throw new org.omg.CORBA.BAD_OPERATION (); - verifyy (__discriminator); - return ___y; - } - - public void y (float value) - { - __discriminator = 2; - ___y = value; - __uninitialized = false; - } - - public void y (int discriminator, float value) - { - verifyy (discriminator); - __discriminator = discriminator; - ___y = value; - __uninitialized = false; - } - - private void verifyy (int discriminator) - { - if (discriminator != 2) - throw new org.omg.CORBA.BAD_OPERATION (); - } - - public String z () - { - if (__uninitialized) - throw new org.omg.CORBA.BAD_OPERATION (); - verifyz (__discriminator); - return ___z; - } - - public void z (String value) - { - __discriminator = 3; - ___z = value; - __uninitialized = false; - } - - public void z (int discriminator, String value) - { - verifyz (discriminator); - __discriminator = discriminator; - ___z = value; - __uninitialized = false; - } - - private void verifyz (int discriminator) - { - if (discriminator != 3) - throw new org.omg.CORBA.BAD_OPERATION (); - } - - public org.apache.tuscany.sca.test.corba.generated.InnerUnion iu () - { - if (__uninitialized) - throw new org.omg.CORBA.BAD_OPERATION (); - verifyiu (__discriminator); - return ___iu; - } - - public void iu (org.apache.tuscany.sca.test.corba.generated.InnerUnion value) - { - __discriminator = 4; - ___iu = value; - __uninitialized = false; - } - - public void iu (int discriminator, org.apache.tuscany.sca.test.corba.generated.InnerUnion value) - { - verifyiu (discriminator); - __discriminator = discriminator; - ___iu = value; - __uninitialized = false; - } - - private void verifyiu (int discriminator) - { - if (discriminator != 4) - throw new org.omg.CORBA.BAD_OPERATION (); - } - - public boolean a () - { - if (__uninitialized) - throw new org.omg.CORBA.BAD_OPERATION (); - verifya (__discriminator); - return ___a; - } - - public void a (boolean value) - { - __discriminator = -2147483648; - ___a = value; - __uninitialized = false; - } - - public void a (int discriminator, boolean value) - { - verifya (discriminator); - __discriminator = discriminator; - ___a = value; - __uninitialized = false; - } - - private void verifya (int discriminator) - { - if (discriminator == 1 || discriminator == 2 || discriminator == 3 || discriminator == 4) - throw new org.omg.CORBA.BAD_OPERATION (); - } - -} // class RichUnion diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/RichUnionHelper.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/RichUnionHelper.java deleted file mode 100644 index 1cb1ed295e..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/RichUnionHelper.java +++ /dev/null @@ -1,175 +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 org.apache.tuscany.sca.test.corba.generated; - - -/** -* org/apache/tuscany/sca/test/corba/generated/RichUnionHelper.java . -* Generated by the IDL-to-Java compiler (portable), version "3.2" -* from itest_scenario.idl -* niedziela, 17 sierpieñ 2008 19:07:14 CEST -*/ - -abstract public class RichUnionHelper -{ - private static String _id = "IDL:org/apache/tuscany/sca/test/corba/generated/RichUnion/RichUnion:1.0"; - - public static void insert (org.omg.CORBA.Any a, org.apache.tuscany.sca.test.corba.generated.RichUnion that) - { - org.omg.CORBA.portable.OutputStream out = a.create_output_stream (); - a.type (type ()); - write (out, that); - a.read_value (out.create_input_stream (), type ()); - } - - public static org.apache.tuscany.sca.test.corba.generated.RichUnion extract (org.omg.CORBA.Any a) - { - return read (a.create_input_stream ()); - } - - private static org.omg.CORBA.TypeCode __typeCode = null; - synchronized public static org.omg.CORBA.TypeCode type () - { - if (__typeCode == null) - { - org.omg.CORBA.TypeCode _disTypeCode0; - _disTypeCode0 = org.omg.CORBA.ORB.init ().get_primitive_tc (org.omg.CORBA.TCKind.tk_long); - org.omg.CORBA.UnionMember[] _members0 = new org.omg.CORBA.UnionMember [5]; - org.omg.CORBA.TypeCode _tcOf_members0; - org.omg.CORBA.Any _anyOf_members0; - - // Branch for x (case label 1) - _anyOf_members0 = org.omg.CORBA.ORB.init ().create_any (); - _anyOf_members0.insert_long ((int)1); - _tcOf_members0 = org.omg.CORBA.ORB.init ().get_primitive_tc (org.omg.CORBA.TCKind.tk_long); - _members0[0] = new org.omg.CORBA.UnionMember ( - "x", - _anyOf_members0, - _tcOf_members0, - null); - - // Branch for y (case label 2) - _anyOf_members0 = org.omg.CORBA.ORB.init ().create_any (); - _anyOf_members0.insert_long ((int)2); - _tcOf_members0 = org.omg.CORBA.ORB.init ().get_primitive_tc (org.omg.CORBA.TCKind.tk_float); - _members0[1] = new org.omg.CORBA.UnionMember ( - "y", - _anyOf_members0, - _tcOf_members0, - null); - - // Branch for z (case label 3) - _anyOf_members0 = org.omg.CORBA.ORB.init ().create_any (); - _anyOf_members0.insert_long ((int)3); - _tcOf_members0 = org.omg.CORBA.ORB.init ().create_string_tc (0); - _members0[2] = new org.omg.CORBA.UnionMember ( - "z", - _anyOf_members0, - _tcOf_members0, - null); - - // Branch for iu (case label 4) - _anyOf_members0 = org.omg.CORBA.ORB.init ().create_any (); - _anyOf_members0.insert_long ((int)4); - _tcOf_members0 = org.apache.tuscany.sca.test.corba.generated.InnerUnionHelper.type (); - _members0[3] = new org.omg.CORBA.UnionMember ( - "iu", - _anyOf_members0, - _tcOf_members0, - null); - - // Branch for a (Default case) - _anyOf_members0 = org.omg.CORBA.ORB.init ().create_any (); - _anyOf_members0.insert_octet ((byte)0); // default member label - _tcOf_members0 = org.omg.CORBA.ORB.init ().get_primitive_tc (org.omg.CORBA.TCKind.tk_boolean); - _members0[4] = new org.omg.CORBA.UnionMember ( - "a", - _anyOf_members0, - _tcOf_members0, - null); - __typeCode = org.omg.CORBA.ORB.init ().create_union_tc (org.apache.tuscany.sca.test.corba.generated.RichUnionHelper.id (), "RichUnion", _disTypeCode0, _members0); - } - return __typeCode; - } - - public static String id () - { - return _id; - } - - public static org.apache.tuscany.sca.test.corba.generated.RichUnion read (org.omg.CORBA.portable.InputStream istream) - { - org.apache.tuscany.sca.test.corba.generated.RichUnion value = new org.apache.tuscany.sca.test.corba.generated.RichUnion (); - int _dis0 = (int)0; - _dis0 = istream.read_long (); - switch (_dis0) - { - case 1: - int _x = (int)0; - _x = istream.read_long (); - value.x (_x); - break; - case 2: - float _y = (float)0; - _y = istream.read_float (); - value.y (_y); - break; - case 3: - String _z = null; - _z = istream.read_string (); - value.z (_z); - break; - case 4: - org.apache.tuscany.sca.test.corba.generated.InnerUnion _iu = null; - _iu = org.apache.tuscany.sca.test.corba.generated.InnerUnionHelper.read (istream); - value.iu (_iu); - break; - default: - boolean _a = false; - _a = istream.read_boolean (); - value.a (_dis0, _a); - break; - } - return value; - } - - public static void write (org.omg.CORBA.portable.OutputStream ostream, org.apache.tuscany.sca.test.corba.generated.RichUnion value) - { - ostream.write_long (value.discriminator ()); - switch (value.discriminator ()) - { - case 1: - ostream.write_long (value.x ()); - break; - case 2: - ostream.write_float (value.y ()); - break; - case 3: - ostream.write_string (value.z ()); - break; - case 4: - org.apache.tuscany.sca.test.corba.generated.InnerUnionHelper.write (ostream, value.iu ()); - break; - default: - ostream.write_boolean (value.a ()); - break; - } - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/RichUnionHolder.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/RichUnionHolder.java deleted file mode 100644 index e2221541c5..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/RichUnionHolder.java +++ /dev/null @@ -1,56 +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 org.apache.tuscany.sca.test.corba.generated; - -/** -* org/apache/tuscany/sca/test/corba/generated/RichUnionHolder.java . -* Generated by the IDL-to-Java compiler (portable), version "3.2" -* from itest_scenario.idl -* niedziela, 17 sierpieñ 2008 19:07:14 CEST -*/ - -public final class RichUnionHolder implements org.omg.CORBA.portable.Streamable -{ - public org.apache.tuscany.sca.test.corba.generated.RichUnion value = null; - - public RichUnionHolder () - { - } - - public RichUnionHolder (org.apache.tuscany.sca.test.corba.generated.RichUnion initialValue) - { - value = initialValue; - } - - public void _read (org.omg.CORBA.portable.InputStream i) - { - value = org.apache.tuscany.sca.test.corba.generated.RichUnionHelper.read (i); - } - - public void _write (org.omg.CORBA.portable.OutputStream o) - { - org.apache.tuscany.sca.test.corba.generated.RichUnionHelper.write (o, value); - } - - public org.omg.CORBA.TypeCode _type () - { - return org.apache.tuscany.sca.test.corba.generated.RichUnionHelper.type (); - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/ScenarioOne.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/ScenarioOne.java deleted file mode 100644 index 13f294b871..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/ScenarioOne.java +++ /dev/null @@ -1,32 +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 org.apache.tuscany.sca.test.corba.generated; - - -/** -* org/apache/tuscany/sca/test/corba/generated/ScenarioOne.java . -* Generated by the IDL-to-Java compiler (portable), version "3.2" -* from itest_scenario.idl -* pi±tek, 27 czerwiec 2008 20:40:03 CEST -*/ - -public interface ScenarioOne extends ScenarioOneOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity -{ -} // interface ScenarioOne diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/ScenarioOneHelper.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/ScenarioOneHelper.java deleted file mode 100644 index 66cc1d1e82..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/ScenarioOneHelper.java +++ /dev/null @@ -1,104 +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 org.apache.tuscany.sca.test.corba.generated; - - -/** -* org/apache/tuscany/sca/test/corba/generated/ScenarioOneHelper.java . -* Generated by the IDL-to-Java compiler (portable), version "3.2" -* from itest_scenario.idl -* pi±tek, 27 czerwiec 2008 20:40:03 CEST -*/ - -abstract public class ScenarioOneHelper -{ - private static String _id = "IDL:org/apache/tuscany/sca/test/corba/generated/ScenarioOne:1.0"; - - public static void insert (org.omg.CORBA.Any a, org.apache.tuscany.sca.test.corba.generated.ScenarioOne that) - { - org.omg.CORBA.portable.OutputStream out = a.create_output_stream (); - a.type (type ()); - write (out, that); - a.read_value (out.create_input_stream (), type ()); - } - - public static org.apache.tuscany.sca.test.corba.generated.ScenarioOne extract (org.omg.CORBA.Any a) - { - return read (a.create_input_stream ()); - } - - private static org.omg.CORBA.TypeCode __typeCode = null; - synchronized public static org.omg.CORBA.TypeCode type () - { - if (__typeCode == null) - { - __typeCode = org.omg.CORBA.ORB.init ().create_interface_tc (org.apache.tuscany.sca.test.corba.generated.ScenarioOneHelper.id (), "ScenarioOne"); - } - return __typeCode; - } - - public static String id () - { - return _id; - } - - public static org.apache.tuscany.sca.test.corba.generated.ScenarioOne read (org.omg.CORBA.portable.InputStream istream) - { - return narrow (istream.read_Object (_ScenarioOneStub.class)); - } - - public static void write (org.omg.CORBA.portable.OutputStream ostream, org.apache.tuscany.sca.test.corba.generated.ScenarioOne value) - { - ostream.write_Object ((org.omg.CORBA.Object) value); - } - - public static org.apache.tuscany.sca.test.corba.generated.ScenarioOne narrow (org.omg.CORBA.Object obj) - { - if (obj == null) - return null; - else if (obj instanceof org.apache.tuscany.sca.test.corba.generated.ScenarioOne) - return (org.apache.tuscany.sca.test.corba.generated.ScenarioOne)obj; - else if (!obj._is_a (id ())) - throw new org.omg.CORBA.BAD_PARAM (); - else - { - org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl)obj)._get_delegate (); - org.apache.tuscany.sca.test.corba.generated._ScenarioOneStub stub = new org.apache.tuscany.sca.test.corba.generated._ScenarioOneStub (); - stub._set_delegate(delegate); - return stub; - } - } - - public static org.apache.tuscany.sca.test.corba.generated.ScenarioOne unchecked_narrow (org.omg.CORBA.Object obj) - { - if (obj == null) - return null; - else if (obj instanceof org.apache.tuscany.sca.test.corba.generated.ScenarioOne) - return (org.apache.tuscany.sca.test.corba.generated.ScenarioOne)obj; - else - { - org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl)obj)._get_delegate (); - org.apache.tuscany.sca.test.corba.generated._ScenarioOneStub stub = new org.apache.tuscany.sca.test.corba.generated._ScenarioOneStub (); - stub._set_delegate(delegate); - return stub; - } - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/ScenarioOneHolder.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/ScenarioOneHolder.java deleted file mode 100644 index f14394b400..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/ScenarioOneHolder.java +++ /dev/null @@ -1,57 +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 org.apache.tuscany.sca.test.corba.generated; - -/** -* org/apache/tuscany/sca/test/corba/generated/ScenarioOneHolder.java . -* Generated by the IDL-to-Java compiler (portable), version "3.2" -* from itest_scenario.idl -* pi±tek, 27 czerwiec 2008 20:40:03 CEST -*/ - -public final class ScenarioOneHolder implements org.omg.CORBA.portable.Streamable -{ - public org.apache.tuscany.sca.test.corba.generated.ScenarioOne value = null; - - public ScenarioOneHolder () - { - } - - public ScenarioOneHolder (org.apache.tuscany.sca.test.corba.generated.ScenarioOne initialValue) - { - value = initialValue; - } - - public void _read (org.omg.CORBA.portable.InputStream i) - { - value = org.apache.tuscany.sca.test.corba.generated.ScenarioOneHelper.read (i); - } - - public void _write (org.omg.CORBA.portable.OutputStream o) - { - org.apache.tuscany.sca.test.corba.generated.ScenarioOneHelper.write (o, value); - } - - public org.omg.CORBA.TypeCode _type () - { - return org.apache.tuscany.sca.test.corba.generated.ScenarioOneHelper.type (); - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/ScenarioOneOperations.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/ScenarioOneOperations.java deleted file mode 100644 index 56388624d7..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/ScenarioOneOperations.java +++ /dev/null @@ -1,33 +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 org.apache.tuscany.sca.test.corba.generated; - - -/** -* org/apache/tuscany/sca/test/corba/generated/ScenarioOneOperations.java . -* Generated by the IDL-to-Java compiler (portable), version "3.2" -* from itest_scenario.idl -* pi±tek, 27 czerwiec 2008 20:40:03 CEST -*/ - -public interface ScenarioOneOperations -{ - org.apache.tuscany.sca.test.corba.generated.RichStruct setRichStruct (org.apache.tuscany.sca.test.corba.generated.RichStruct richStruct) throws org.apache.tuscany.sca.test.corba.generated.WrongColor, org.apache.tuscany.sca.test.corba.generated.UnexpectedException; -} // interface ScenarioOneOperations diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/ScenarioSix.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/ScenarioSix.java deleted file mode 100644 index 1897d0682c..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/ScenarioSix.java +++ /dev/null @@ -1,32 +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 org.apache.tuscany.sca.test.corba.generated; - - -/** -* org/apache/tuscany/sca/test/corba/generated/ScenarioSix.java . -* Generated by the IDL-to-Java compiler (portable), version "3.2" -* from itest_scenario.idl -* sobota, 16 sierpieñ 2008 15:31:35 CEST -*/ - -public interface ScenarioSix extends ScenarioSixOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity -{ -} // interface ScenarioSix diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/ScenarioSixHelper.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/ScenarioSixHelper.java deleted file mode 100644 index c8c88ef91d..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/ScenarioSixHelper.java +++ /dev/null @@ -1,104 +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 org.apache.tuscany.sca.test.corba.generated; - - -/** -* org/apache/tuscany/sca/test/corba/generated/ScenarioSixHelper.java . -* Generated by the IDL-to-Java compiler (portable), version "3.2" -* from itest_scenario.idl -* sobota, 16 sierpieñ 2008 15:31:35 CEST -*/ - -abstract public class ScenarioSixHelper -{ - private static String _id = "IDL:org/apache/tuscany/sca/test/corba/generated/ScenarioSix:1.0"; - - public static void insert (org.omg.CORBA.Any a, org.apache.tuscany.sca.test.corba.generated.ScenarioSix that) - { - org.omg.CORBA.portable.OutputStream out = a.create_output_stream (); - a.type (type ()); - write (out, that); - a.read_value (out.create_input_stream (), type ()); - } - - public static org.apache.tuscany.sca.test.corba.generated.ScenarioSix extract (org.omg.CORBA.Any a) - { - return read (a.create_input_stream ()); - } - - private static org.omg.CORBA.TypeCode __typeCode = null; - synchronized public static org.omg.CORBA.TypeCode type () - { - if (__typeCode == null) - { - __typeCode = org.omg.CORBA.ORB.init ().create_interface_tc (org.apache.tuscany.sca.test.corba.generated.ScenarioSixHelper.id (), "ScenarioSix"); - } - return __typeCode; - } - - public static String id () - { - return _id; - } - - public static org.apache.tuscany.sca.test.corba.generated.ScenarioSix read (org.omg.CORBA.portable.InputStream istream) - { - return narrow (istream.read_Object (_ScenarioSixStub.class)); - } - - public static void write (org.omg.CORBA.portable.OutputStream ostream, org.apache.tuscany.sca.test.corba.generated.ScenarioSix value) - { - ostream.write_Object ((org.omg.CORBA.Object) value); - } - - public static org.apache.tuscany.sca.test.corba.generated.ScenarioSix narrow (org.omg.CORBA.Object obj) - { - if (obj == null) - return null; - else if (obj instanceof org.apache.tuscany.sca.test.corba.generated.ScenarioSix) - return (org.apache.tuscany.sca.test.corba.generated.ScenarioSix)obj; - else if (!obj._is_a (id ())) - throw new org.omg.CORBA.BAD_PARAM (); - else - { - org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl)obj)._get_delegate (); - org.apache.tuscany.sca.test.corba.generated._ScenarioSixStub stub = new org.apache.tuscany.sca.test.corba.generated._ScenarioSixStub (); - stub._set_delegate(delegate); - return stub; - } - } - - public static org.apache.tuscany.sca.test.corba.generated.ScenarioSix unchecked_narrow (org.omg.CORBA.Object obj) - { - if (obj == null) - return null; - else if (obj instanceof org.apache.tuscany.sca.test.corba.generated.ScenarioSix) - return (org.apache.tuscany.sca.test.corba.generated.ScenarioSix)obj; - else - { - org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl)obj)._get_delegate (); - org.apache.tuscany.sca.test.corba.generated._ScenarioSixStub stub = new org.apache.tuscany.sca.test.corba.generated._ScenarioSixStub (); - stub._set_delegate(delegate); - return stub; - } - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/ScenarioSixHolder.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/ScenarioSixHolder.java deleted file mode 100644 index 5540b98c21..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/ScenarioSixHolder.java +++ /dev/null @@ -1,57 +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 org.apache.tuscany.sca.test.corba.generated; - -/** -* org/apache/tuscany/sca/test/corba/generated/ScenarioSixHolder.java . -* Generated by the IDL-to-Java compiler (portable), version "3.2" -* from itest_scenario.idl -* sobota, 16 sierpieñ 2008 15:31:35 CEST -*/ - -public final class ScenarioSixHolder implements org.omg.CORBA.portable.Streamable -{ - public org.apache.tuscany.sca.test.corba.generated.ScenarioSix value = null; - - public ScenarioSixHolder () - { - } - - public ScenarioSixHolder (org.apache.tuscany.sca.test.corba.generated.ScenarioSix initialValue) - { - value = initialValue; - } - - public void _read (org.omg.CORBA.portable.InputStream i) - { - value = org.apache.tuscany.sca.test.corba.generated.ScenarioSixHelper.read (i); - } - - public void _write (org.omg.CORBA.portable.OutputStream o) - { - org.apache.tuscany.sca.test.corba.generated.ScenarioSixHelper.write (o, value); - } - - public org.omg.CORBA.TypeCode _type () - { - return org.apache.tuscany.sca.test.corba.generated.ScenarioSixHelper.type (); - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/ScenarioSixOperations.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/ScenarioSixOperations.java deleted file mode 100644 index 648144299c..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/ScenarioSixOperations.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 org.apache.tuscany.sca.test.corba.generated; - - -/** -* org/apache/tuscany/sca/test/corba/generated/ScenarioSixOperations.java . -* Generated by the IDL-to-Java compiler (portable), version "3.2" -* from itest_scenario.idl -* niedziela, 17 sierpieñ 2008 19:07:14 CEST -*/ - -public interface ScenarioSixOperations -{ - String[][] passStringArray (String[][] arg); - org.apache.tuscany.sca.test.corba.generated.AnnotatedStruct passAnnotatedStruct (org.apache.tuscany.sca.test.corba.generated.AnnotatedStruct arg); - org.apache.tuscany.sca.test.corba.generated.RichUnion passRichUnion (org.apache.tuscany.sca.test.corba.generated.RichUnion arg); -} // interface ScenarioSixOperations diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/ScenarioTwo.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/ScenarioTwo.java deleted file mode 100644 index b57e098a56..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/ScenarioTwo.java +++ /dev/null @@ -1,34 +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 org.apache.tuscany.sca.test.corba.generated; - - -/** -* org/apache/tuscany/sca/test/corba/generated/ScenarioTwo.java . -* Generated by the IDL-to-Java compiler (portable), version "3.2" -* from itest_scenario.idl -* wtorek, 15 lipiec 2008 13:36:31 CEST -*/ - - -// objects for ScenarioTwo -public interface ScenarioTwo extends ScenarioTwoOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity -{ -} // interface ScenarioTwo diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/ScenarioTwoHelper.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/ScenarioTwoHelper.java deleted file mode 100644 index 8ddfa10575..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/ScenarioTwoHelper.java +++ /dev/null @@ -1,106 +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 org.apache.tuscany.sca.test.corba.generated; - - -/** -* org/apache/tuscany/sca/test/corba/generated/ScenarioTwoHelper.java . -* Generated by the IDL-to-Java compiler (portable), version "3.2" -* from itest_scenario.idl -* wtorek, 15 lipiec 2008 13:36:31 CEST -*/ - - -// objects for ScenarioTwo -abstract public class ScenarioTwoHelper -{ - private static String _id = "IDL:org/apache/tuscany/sca/test/corba/generated/ScenarioTwo:1.0"; - - public static void insert (org.omg.CORBA.Any a, org.apache.tuscany.sca.test.corba.generated.ScenarioTwo that) - { - org.omg.CORBA.portable.OutputStream out = a.create_output_stream (); - a.type (type ()); - write (out, that); - a.read_value (out.create_input_stream (), type ()); - } - - public static org.apache.tuscany.sca.test.corba.generated.ScenarioTwo extract (org.omg.CORBA.Any a) - { - return read (a.create_input_stream ()); - } - - private static org.omg.CORBA.TypeCode __typeCode = null; - synchronized public static org.omg.CORBA.TypeCode type () - { - if (__typeCode == null) - { - __typeCode = org.omg.CORBA.ORB.init ().create_interface_tc (org.apache.tuscany.sca.test.corba.generated.ScenarioTwoHelper.id (), "ScenarioTwo"); - } - return __typeCode; - } - - public static String id () - { - return _id; - } - - public static org.apache.tuscany.sca.test.corba.generated.ScenarioTwo read (org.omg.CORBA.portable.InputStream istream) - { - return narrow (istream.read_Object (_ScenarioTwoStub.class)); - } - - public static void write (org.omg.CORBA.portable.OutputStream ostream, org.apache.tuscany.sca.test.corba.generated.ScenarioTwo value) - { - ostream.write_Object ((org.omg.CORBA.Object) value); - } - - public static org.apache.tuscany.sca.test.corba.generated.ScenarioTwo narrow (org.omg.CORBA.Object obj) - { - if (obj == null) - return null; - else if (obj instanceof org.apache.tuscany.sca.test.corba.generated.ScenarioTwo) - return (org.apache.tuscany.sca.test.corba.generated.ScenarioTwo)obj; - else if (!obj._is_a (id ())) - throw new org.omg.CORBA.BAD_PARAM (); - else - { - org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl)obj)._get_delegate (); - org.apache.tuscany.sca.test.corba.generated._ScenarioTwoStub stub = new org.apache.tuscany.sca.test.corba.generated._ScenarioTwoStub (); - stub._set_delegate(delegate); - return stub; - } - } - - public static org.apache.tuscany.sca.test.corba.generated.ScenarioTwo unchecked_narrow (org.omg.CORBA.Object obj) - { - if (obj == null) - return null; - else if (obj instanceof org.apache.tuscany.sca.test.corba.generated.ScenarioTwo) - return (org.apache.tuscany.sca.test.corba.generated.ScenarioTwo)obj; - else - { - org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl)obj)._get_delegate (); - org.apache.tuscany.sca.test.corba.generated._ScenarioTwoStub stub = new org.apache.tuscany.sca.test.corba.generated._ScenarioTwoStub (); - stub._set_delegate(delegate); - return stub; - } - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/ScenarioTwoHolder.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/ScenarioTwoHolder.java deleted file mode 100644 index 9717629711..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/ScenarioTwoHolder.java +++ /dev/null @@ -1,59 +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 org.apache.tuscany.sca.test.corba.generated; - -/** -* org/apache/tuscany/sca/test/corba/generated/ScenarioTwoHolder.java . -* Generated by the IDL-to-Java compiler (portable), version "3.2" -* from itest_scenario.idl -* wtorek, 15 lipiec 2008 13:36:31 CEST -*/ - - -// objects for ScenarioTwo -public final class ScenarioTwoHolder implements org.omg.CORBA.portable.Streamable -{ - public org.apache.tuscany.sca.test.corba.generated.ScenarioTwo value = null; - - public ScenarioTwoHolder () - { - } - - public ScenarioTwoHolder (org.apache.tuscany.sca.test.corba.generated.ScenarioTwo initialValue) - { - value = initialValue; - } - - public void _read (org.omg.CORBA.portable.InputStream i) - { - value = org.apache.tuscany.sca.test.corba.generated.ScenarioTwoHelper.read (i); - } - - public void _write (org.omg.CORBA.portable.OutputStream o) - { - org.apache.tuscany.sca.test.corba.generated.ScenarioTwoHelper.write (o, value); - } - - public org.omg.CORBA.TypeCode _type () - { - return org.apache.tuscany.sca.test.corba.generated.ScenarioTwoHelper.type (); - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/ScenarioTwoOperations.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/ScenarioTwoOperations.java deleted file mode 100644 index 1247b4618d..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/ScenarioTwoOperations.java +++ /dev/null @@ -1,36 +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 org.apache.tuscany.sca.test.corba.generated; - - -/** -* org/apache/tuscany/sca/test/corba/generated/ScenarioTwoOperations.java . -* Generated by the IDL-to-Java compiler (portable), version "3.2" -* from itest_scenario.idl -* wtorek, 15 lipiec 2008 13:36:31 CEST -*/ - - -// objects for ScenarioTwo -public interface ScenarioTwoOperations -{ - String stringField (); - void stringField (String newStringField); -} // interface ScenarioTwoOperations diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/StringArrayHelper.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/StringArrayHelper.java deleted file mode 100644 index f2cc3adad5..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/StringArrayHelper.java +++ /dev/null @@ -1,95 +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 org.apache.tuscany.sca.test.corba.generated; - - -/** -* org/apache/tuscany/sca/test/corba/generated/StringArrayHelper.java . -* Generated by the IDL-to-Java compiler (portable), version "3.2" -* from itest_scenario.idl -* sobota, 16 sierpieñ 2008 15:31:35 CEST -*/ - -abstract public class StringArrayHelper -{ - private static String _id = "IDL:org/apache/tuscany/sca/test/corba/generated/StringArray:1.0"; - - public static void insert (org.omg.CORBA.Any a, String[][] that) - { - org.omg.CORBA.portable.OutputStream out = a.create_output_stream (); - a.type (type ()); - write (out, that); - a.read_value (out.create_input_stream (), type ()); - } - - public static String[][] extract (org.omg.CORBA.Any a) - { - return read (a.create_input_stream ()); - } - - private static org.omg.CORBA.TypeCode __typeCode = null; - synchronized public static org.omg.CORBA.TypeCode type () - { - if (__typeCode == null) - { - __typeCode = org.omg.CORBA.ORB.init ().create_string_tc (0); - __typeCode = org.omg.CORBA.ORB.init ().create_array_tc (2, __typeCode ); - __typeCode = org.omg.CORBA.ORB.init ().create_array_tc (2, __typeCode ); - __typeCode = org.omg.CORBA.ORB.init ().create_alias_tc (org.apache.tuscany.sca.test.corba.generated.StringArrayHelper.id (), "StringArray", __typeCode); - } - return __typeCode; - } - - public static String id () - { - return _id; - } - - public static String[][] read (org.omg.CORBA.portable.InputStream istream) - { - String value[][] = null; - value = new String[2][]; - for (int _o0 = 0;_o0 < (2); ++_o0) - { - value[_o0] = new String[2]; - for (int _o1 = 0;_o1 < (2); ++_o1) - { - value[_o0][_o1] = istream.read_string (); - } - } - return value; - } - - public static void write (org.omg.CORBA.portable.OutputStream ostream, String[][] value) - { - if (value.length != (2)) - throw new org.omg.CORBA.MARSHAL (0, org.omg.CORBA.CompletionStatus.COMPLETED_MAYBE); - for (int _i0 = 0;_i0 < (2); ++_i0) - { - if (value[_i0].length != (2)) - throw new org.omg.CORBA.MARSHAL (0, org.omg.CORBA.CompletionStatus.COMPLETED_MAYBE); - for (int _i1 = 0;_i1 < (2); ++_i1) - { - ostream.write_string (value[_i0][_i1]); - } - } - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/StringArrayHolder.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/StringArrayHolder.java deleted file mode 100644 index dbad550222..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/StringArrayHolder.java +++ /dev/null @@ -1,58 +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 org.apache.tuscany.sca.test.corba.generated; - - -/** -* org/apache/tuscany/sca/test/corba/generated/StringArrayHolder.java . -* Generated by the IDL-to-Java compiler (portable), version "3.2" -* from itest_scenario.idl -* sobota, 16 sierpieñ 2008 15:31:35 CEST -*/ - -public final class StringArrayHolder implements org.omg.CORBA.portable.Streamable -{ - public String value[][] = null; - - public StringArrayHolder () - { - } - - public StringArrayHolder (String[][] initialValue) - { - value = initialValue; - } - - public void _read (org.omg.CORBA.portable.InputStream i) - { - value = org.apache.tuscany.sca.test.corba.generated.StringArrayHelper.read (i); - } - - public void _write (org.omg.CORBA.portable.OutputStream o) - { - org.apache.tuscany.sca.test.corba.generated.StringArrayHelper.write (o, value); - } - - public org.omg.CORBA.TypeCode _type () - { - return org.apache.tuscany.sca.test.corba.generated.StringArrayHelper.type (); - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/StringSequenceHelper.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/StringSequenceHelper.java deleted file mode 100644 index d29129236c..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/StringSequenceHelper.java +++ /dev/null @@ -1,81 +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 org.apache.tuscany.sca.test.corba.generated; - - -/** -* org/apache/tuscany/sca/test/corba/generated/StringSequenceHelper.java . -* Generated by the IDL-to-Java compiler (portable), version "3.2" -* from itest_scenario.idl -* pi±tek, 27 czerwiec 2008 20:40:03 CEST -*/ - -abstract public class StringSequenceHelper -{ - private static String _id = "IDL:org/apache/tuscany/sca/test/corba/generated/StringSequence:1.0"; - - public static void insert (org.omg.CORBA.Any a, String[] that) - { - org.omg.CORBA.portable.OutputStream out = a.create_output_stream (); - a.type (type ()); - write (out, that); - a.read_value (out.create_input_stream (), type ()); - } - - public static String[] extract (org.omg.CORBA.Any a) - { - return read (a.create_input_stream ()); - } - - private static org.omg.CORBA.TypeCode __typeCode = null; - synchronized public static org.omg.CORBA.TypeCode type () - { - if (__typeCode == null) - { - __typeCode = org.omg.CORBA.ORB.init ().create_string_tc (0); - __typeCode = org.omg.CORBA.ORB.init ().create_sequence_tc (0, __typeCode); - __typeCode = org.omg.CORBA.ORB.init ().create_alias_tc (org.apache.tuscany.sca.test.corba.generated.StringSequenceHelper.id (), "StringSequence", __typeCode); - } - return __typeCode; - } - - public static String id () - { - return _id; - } - - public static String[] read (org.omg.CORBA.portable.InputStream istream) - { - String value[] = null; - int _len0 = istream.read_long (); - value = new String[_len0]; - for (int _o1 = 0;_o1 < value.length; ++_o1) - value[_o1] = istream.read_string (); - return value; - } - - public static void write (org.omg.CORBA.portable.OutputStream ostream, String[] value) - { - ostream.write_long (value.length); - for (int _i0 = 0;_i0 < value.length; ++_i0) - ostream.write_string (value[_i0]); - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/StringSequenceHolder.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/StringSequenceHolder.java deleted file mode 100644 index 837ba04cea..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/StringSequenceHolder.java +++ /dev/null @@ -1,58 +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 org.apache.tuscany.sca.test.corba.generated; - - -/** -* org/apache/tuscany/sca/test/corba/generated/StringSequenceHolder.java . -* Generated by the IDL-to-Java compiler (portable), version "3.2" -* from itest_scenario.idl -* pi±tek, 27 czerwiec 2008 20:40:03 CEST -*/ - -public final class StringSequenceHolder implements org.omg.CORBA.portable.Streamable -{ - public String value[] = null; - - public StringSequenceHolder () - { - } - - public StringSequenceHolder (String[] initialValue) - { - value = initialValue; - } - - public void _read (org.omg.CORBA.portable.InputStream i) - { - value = org.apache.tuscany.sca.test.corba.generated.StringSequenceHelper.read (i); - } - - public void _write (org.omg.CORBA.portable.OutputStream o) - { - org.apache.tuscany.sca.test.corba.generated.StringSequenceHelper.write (o, value); - } - - public org.omg.CORBA.TypeCode _type () - { - return org.apache.tuscany.sca.test.corba.generated.StringSequenceHelper.type (); - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/TwoDimLongSequenceHelper.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/TwoDimLongSequenceHelper.java deleted file mode 100644 index 0b24056642..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/TwoDimLongSequenceHelper.java +++ /dev/null @@ -1,83 +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 org.apache.tuscany.sca.test.corba.generated; - - -/** -* org/apache/tuscany/sca/test/corba/generated/TwoDimLongSequenceHelper.java . -* Generated by the IDL-to-Java compiler (portable), version "3.2" -* from itest_scenario.idl -* pi±tek, 27 czerwiec 2008 20:40:03 CEST -*/ - -abstract public class TwoDimLongSequenceHelper -{ - private static String _id = "IDL:org/apache/tuscany/sca/test/corba/generated/TwoDimLongSequence:1.0"; - - public static void insert (org.omg.CORBA.Any a, int[][] that) - { - org.omg.CORBA.portable.OutputStream out = a.create_output_stream (); - a.type (type ()); - write (out, that); - a.read_value (out.create_input_stream (), type ()); - } - - public static int[][] extract (org.omg.CORBA.Any a) - { - return read (a.create_input_stream ()); - } - - private static org.omg.CORBA.TypeCode __typeCode = null; - synchronized public static org.omg.CORBA.TypeCode type () - { - if (__typeCode == null) - { - __typeCode = org.omg.CORBA.ORB.init ().get_primitive_tc (org.omg.CORBA.TCKind.tk_long); - __typeCode = org.omg.CORBA.ORB.init ().create_sequence_tc (0, __typeCode); - __typeCode = org.omg.CORBA.ORB.init ().create_alias_tc (org.apache.tuscany.sca.test.corba.generated.LongSequenceHelper.id (), "LongSequence", __typeCode); - __typeCode = org.omg.CORBA.ORB.init ().create_sequence_tc (0, __typeCode); - __typeCode = org.omg.CORBA.ORB.init ().create_alias_tc (org.apache.tuscany.sca.test.corba.generated.TwoDimLongSequenceHelper.id (), "TwoDimLongSequence", __typeCode); - } - return __typeCode; - } - - public static String id () - { - return _id; - } - - public static int[][] read (org.omg.CORBA.portable.InputStream istream) - { - int value[][] = null; - int _len0 = istream.read_long (); - value = new int[_len0][]; - for (int _o1 = 0;_o1 < value.length; ++_o1) - value[_o1] = org.apache.tuscany.sca.test.corba.generated.LongSequenceHelper.read (istream); - return value; - } - - public static void write (org.omg.CORBA.portable.OutputStream ostream, int[][] value) - { - ostream.write_long (value.length); - for (int _i0 = 0;_i0 < value.length; ++_i0) - org.apache.tuscany.sca.test.corba.generated.LongSequenceHelper.write (ostream, value[_i0]); - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/TwoDimLongSequenceHolder.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/TwoDimLongSequenceHolder.java deleted file mode 100644 index e2ed1ab037..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/TwoDimLongSequenceHolder.java +++ /dev/null @@ -1,58 +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 org.apache.tuscany.sca.test.corba.generated; - - -/** -* org/apache/tuscany/sca/test/corba/generated/TwoDimLongSequenceHolder.java . -* Generated by the IDL-to-Java compiler (portable), version "3.2" -* from itest_scenario.idl -* pi±tek, 27 czerwiec 2008 20:40:03 CEST -*/ - -public final class TwoDimLongSequenceHolder implements org.omg.CORBA.portable.Streamable -{ - public int value[][] = null; - - public TwoDimLongSequenceHolder () - { - } - - public TwoDimLongSequenceHolder (int[][] initialValue) - { - value = initialValue; - } - - public void _read (org.omg.CORBA.portable.InputStream i) - { - value = org.apache.tuscany.sca.test.corba.generated.TwoDimLongSequenceHelper.read (i); - } - - public void _write (org.omg.CORBA.portable.OutputStream o) - { - org.apache.tuscany.sca.test.corba.generated.TwoDimLongSequenceHelper.write (o, value); - } - - public org.omg.CORBA.TypeCode _type () - { - return org.apache.tuscany.sca.test.corba.generated.TwoDimLongSequenceHelper.type (); - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/UnexpectedException.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/UnexpectedException.java deleted file mode 100644 index 46888399ed..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/UnexpectedException.java +++ /dev/null @@ -1,52 +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 org.apache.tuscany.sca.test.corba.generated; - - -/** -* org/apache/tuscany/sca/test/corba/generated/UnexpectedException.java . -* Generated by the IDL-to-Java compiler (portable), version "3.2" -* from itest_scenario.idl -* pi±tek, 27 czerwiec 2008 20:40:03 CEST -*/ - -public final class UnexpectedException extends org.omg.CORBA.UserException -{ - public String info = null; - - public UnexpectedException () - { - super(UnexpectedExceptionHelper.id()); - } // ctor - - public UnexpectedException (String _info) - { - super(UnexpectedExceptionHelper.id()); - info = _info; - } // ctor - - - public UnexpectedException (String $reason, String _info) - { - super(UnexpectedExceptionHelper.id() + " " + $reason); - info = _info; - } // ctor - -} // class UnexpectedException diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/UnexpectedExceptionHelper.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/UnexpectedExceptionHelper.java deleted file mode 100644 index c276038050..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/UnexpectedExceptionHelper.java +++ /dev/null @@ -1,98 +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 org.apache.tuscany.sca.test.corba.generated; - - -/** -* org/apache/tuscany/sca/test/corba/generated/UnexpectedExceptionHelper.java . -* Generated by the IDL-to-Java compiler (portable), version "3.2" -* from itest_scenario.idl -* pi±tek, 27 czerwiec 2008 20:40:03 CEST -*/ - -abstract public class UnexpectedExceptionHelper -{ - private static String _id = "IDL:org/apache/tuscany/sca/test/corba/generated/UnexpectedException:1.0"; - - public static void insert (org.omg.CORBA.Any a, org.apache.tuscany.sca.test.corba.generated.UnexpectedException that) - { - org.omg.CORBA.portable.OutputStream out = a.create_output_stream (); - a.type (type ()); - write (out, that); - a.read_value (out.create_input_stream (), type ()); - } - - public static org.apache.tuscany.sca.test.corba.generated.UnexpectedException extract (org.omg.CORBA.Any a) - { - return read (a.create_input_stream ()); - } - - private static org.omg.CORBA.TypeCode __typeCode = null; - private static boolean __active = false; - synchronized public static org.omg.CORBA.TypeCode type () - { - if (__typeCode == null) - { - synchronized (org.omg.CORBA.TypeCode.class) - { - if (__typeCode == null) - { - if (__active) - { - return org.omg.CORBA.ORB.init().create_recursive_tc ( _id ); - } - __active = true; - org.omg.CORBA.StructMember[] _members0 = new org.omg.CORBA.StructMember [1]; - org.omg.CORBA.TypeCode _tcOf_members0 = null; - _tcOf_members0 = org.omg.CORBA.ORB.init ().create_string_tc (0); - _members0[0] = new org.omg.CORBA.StructMember ( - "info", - _tcOf_members0, - null); - __typeCode = org.omg.CORBA.ORB.init ().create_exception_tc (org.apache.tuscany.sca.test.corba.generated.UnexpectedExceptionHelper.id (), "UnexpectedException", _members0); - __active = false; - } - } - } - return __typeCode; - } - - public static String id () - { - return _id; - } - - public static org.apache.tuscany.sca.test.corba.generated.UnexpectedException read (org.omg.CORBA.portable.InputStream istream) - { - org.apache.tuscany.sca.test.corba.generated.UnexpectedException value = new org.apache.tuscany.sca.test.corba.generated.UnexpectedException (); - // read and discard the repository ID - istream.read_string (); - value.info = istream.read_string (); - return value; - } - - public static void write (org.omg.CORBA.portable.OutputStream ostream, org.apache.tuscany.sca.test.corba.generated.UnexpectedException value) - { - // write the repository ID - ostream.write_string (id ()); - ostream.write_string (value.info); - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/UnexpectedExceptionHolder.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/UnexpectedExceptionHolder.java deleted file mode 100644 index 079a56b446..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/UnexpectedExceptionHolder.java +++ /dev/null @@ -1,57 +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 org.apache.tuscany.sca.test.corba.generated; - -/** -* org/apache/tuscany/sca/test/corba/generated/UnexpectedExceptionHolder.java . -* Generated by the IDL-to-Java compiler (portable), version "3.2" -* from itest_scenario.idl -* pi±tek, 27 czerwiec 2008 20:40:03 CEST -*/ - -public final class UnexpectedExceptionHolder implements org.omg.CORBA.portable.Streamable -{ - public org.apache.tuscany.sca.test.corba.generated.UnexpectedException value = null; - - public UnexpectedExceptionHolder () - { - } - - public UnexpectedExceptionHolder (org.apache.tuscany.sca.test.corba.generated.UnexpectedException initialValue) - { - value = initialValue; - } - - public void _read (org.omg.CORBA.portable.InputStream i) - { - value = org.apache.tuscany.sca.test.corba.generated.UnexpectedExceptionHelper.read (i); - } - - public void _write (org.omg.CORBA.portable.OutputStream o) - { - org.apache.tuscany.sca.test.corba.generated.UnexpectedExceptionHelper.write (o, value); - } - - public org.omg.CORBA.TypeCode _type () - { - return org.apache.tuscany.sca.test.corba.generated.UnexpectedExceptionHelper.type (); - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/WrongColor.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/WrongColor.java deleted file mode 100644 index 0407184598..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/WrongColor.java +++ /dev/null @@ -1,55 +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 org.apache.tuscany.sca.test.corba.generated; - - -/** -* org/apache/tuscany/sca/test/corba/generated/WrongColor.java . -* Generated by the IDL-to-Java compiler (portable), version "3.2" -* from itest_scenario.idl -* pi±tek, 27 czerwiec 2008 20:40:03 CEST -*/ - -public final class WrongColor extends org.omg.CORBA.UserException -{ - public org.apache.tuscany.sca.test.corba.generated.Color givenColor = null; - public org.apache.tuscany.sca.test.corba.generated.Color correctColor = null; - - public WrongColor () - { - super(WrongColorHelper.id()); - } // ctor - - public WrongColor (org.apache.tuscany.sca.test.corba.generated.Color _givenColor, org.apache.tuscany.sca.test.corba.generated.Color _correctColor) - { - super(WrongColorHelper.id()); - givenColor = _givenColor; - correctColor = _correctColor; - } // ctor - - - public WrongColor (String $reason, org.apache.tuscany.sca.test.corba.generated.Color _givenColor, org.apache.tuscany.sca.test.corba.generated.Color _correctColor) - { - super(WrongColorHelper.id() + " " + $reason); - givenColor = _givenColor; - correctColor = _correctColor; - } // ctor - -} // class WrongColor diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/WrongColorHelper.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/WrongColorHelper.java deleted file mode 100644 index 16e099cfa3..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/WrongColorHelper.java +++ /dev/null @@ -1,105 +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 org.apache.tuscany.sca.test.corba.generated; - - -/** -* org/apache/tuscany/sca/test/corba/generated/WrongColorHelper.java . -* Generated by the IDL-to-Java compiler (portable), version "3.2" -* from itest_scenario.idl -* pi±tek, 27 czerwiec 2008 20:40:03 CEST -*/ - -abstract public class WrongColorHelper -{ - private static String _id = "IDL:org/apache/tuscany/sca/test/corba/generated/WrongColor:1.0"; - - public static void insert (org.omg.CORBA.Any a, org.apache.tuscany.sca.test.corba.generated.WrongColor that) - { - org.omg.CORBA.portable.OutputStream out = a.create_output_stream (); - a.type (type ()); - write (out, that); - a.read_value (out.create_input_stream (), type ()); - } - - public static org.apache.tuscany.sca.test.corba.generated.WrongColor extract (org.omg.CORBA.Any a) - { - return read (a.create_input_stream ()); - } - - private static org.omg.CORBA.TypeCode __typeCode = null; - private static boolean __active = false; - synchronized public static org.omg.CORBA.TypeCode type () - { - if (__typeCode == null) - { - synchronized (org.omg.CORBA.TypeCode.class) - { - if (__typeCode == null) - { - if (__active) - { - return org.omg.CORBA.ORB.init().create_recursive_tc ( _id ); - } - __active = true; - org.omg.CORBA.StructMember[] _members0 = new org.omg.CORBA.StructMember [2]; - org.omg.CORBA.TypeCode _tcOf_members0 = null; - _tcOf_members0 = org.apache.tuscany.sca.test.corba.generated.ColorHelper.type (); - _members0[0] = new org.omg.CORBA.StructMember ( - "givenColor", - _tcOf_members0, - null); - _tcOf_members0 = org.apache.tuscany.sca.test.corba.generated.ColorHelper.type (); - _members0[1] = new org.omg.CORBA.StructMember ( - "correctColor", - _tcOf_members0, - null); - __typeCode = org.omg.CORBA.ORB.init ().create_exception_tc (org.apache.tuscany.sca.test.corba.generated.WrongColorHelper.id (), "WrongColor", _members0); - __active = false; - } - } - } - return __typeCode; - } - - public static String id () - { - return _id; - } - - public static org.apache.tuscany.sca.test.corba.generated.WrongColor read (org.omg.CORBA.portable.InputStream istream) - { - org.apache.tuscany.sca.test.corba.generated.WrongColor value = new org.apache.tuscany.sca.test.corba.generated.WrongColor (); - // read and discard the repository ID - istream.read_string (); - value.givenColor = org.apache.tuscany.sca.test.corba.generated.ColorHelper.read (istream); - value.correctColor = org.apache.tuscany.sca.test.corba.generated.ColorHelper.read (istream); - return value; - } - - public static void write (org.omg.CORBA.portable.OutputStream ostream, org.apache.tuscany.sca.test.corba.generated.WrongColor value) - { - // write the repository ID - ostream.write_string (id ()); - org.apache.tuscany.sca.test.corba.generated.ColorHelper.write (ostream, value.givenColor); - org.apache.tuscany.sca.test.corba.generated.ColorHelper.write (ostream, value.correctColor); - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/WrongColorHolder.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/WrongColorHolder.java deleted file mode 100644 index b4883cb35c..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/WrongColorHolder.java +++ /dev/null @@ -1,57 +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 org.apache.tuscany.sca.test.corba.generated; - -/** -* org/apache/tuscany/sca/test/corba/generated/WrongColorHolder.java . -* Generated by the IDL-to-Java compiler (portable), version "3.2" -* from itest_scenario.idl -* pi±tek, 27 czerwiec 2008 20:40:03 CEST -*/ - -public final class WrongColorHolder implements org.omg.CORBA.portable.Streamable -{ - public org.apache.tuscany.sca.test.corba.generated.WrongColor value = null; - - public WrongColorHolder () - { - } - - public WrongColorHolder (org.apache.tuscany.sca.test.corba.generated.WrongColor initialValue) - { - value = initialValue; - } - - public void _read (org.omg.CORBA.portable.InputStream i) - { - value = org.apache.tuscany.sca.test.corba.generated.WrongColorHelper.read (i); - } - - public void _write (org.omg.CORBA.portable.OutputStream o) - { - org.apache.tuscany.sca.test.corba.generated.WrongColorHelper.write (o, value); - } - - public org.omg.CORBA.TypeCode _type () - { - return org.apache.tuscany.sca.test.corba.generated.WrongColorHelper.type (); - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/_ScenarioOneImplBase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/_ScenarioOneImplBase.java deleted file mode 100644 index c96fb61204..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/_ScenarioOneImplBase.java +++ /dev/null @@ -1,91 +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 org.apache.tuscany.sca.test.corba.generated; - - -/** -* org/apache/tuscany/sca/test/corba/generated/_ScenarioOneImplBase.java . -* Generated by the IDL-to-Java compiler (portable), version "3.2" -* from itest_scenario.idl -* pi±tek, 27 czerwiec 2008 20:40:03 CEST -*/ - -public abstract class _ScenarioOneImplBase extends org.omg.CORBA.portable.ObjectImpl - implements org.apache.tuscany.sca.test.corba.generated.ScenarioOne, org.omg.CORBA.portable.InvokeHandler -{ - - // Constructors - public _ScenarioOneImplBase () - { - } - - private static java.util.Hashtable _methods = new java.util.Hashtable (); - static - { - _methods.put ("setRichStruct", new java.lang.Integer (0)); - } - - public org.omg.CORBA.portable.OutputStream _invoke (String $method, - org.omg.CORBA.portable.InputStream in, - org.omg.CORBA.portable.ResponseHandler $rh) - { - org.omg.CORBA.portable.OutputStream out = null; - java.lang.Integer __method = (java.lang.Integer)_methods.get ($method); - if (__method == null) - throw new org.omg.CORBA.BAD_OPERATION (0, org.omg.CORBA.CompletionStatus.COMPLETED_MAYBE); - - switch (__method.intValue ()) - { - case 0: // org/apache/tuscany/sca/test/corba/generated/ScenarioOne/setRichStruct - { - try { - org.apache.tuscany.sca.test.corba.generated.RichStruct richStruct = org.apache.tuscany.sca.test.corba.generated.RichStructHelper.read (in); - org.apache.tuscany.sca.test.corba.generated.RichStruct $result = null; - $result = this.setRichStruct (richStruct); - out = $rh.createReply(); - org.apache.tuscany.sca.test.corba.generated.RichStructHelper.write (out, $result); - } catch (org.apache.tuscany.sca.test.corba.generated.WrongColor $ex) { - out = $rh.createExceptionReply (); - org.apache.tuscany.sca.test.corba.generated.WrongColorHelper.write (out, $ex); - } catch (org.apache.tuscany.sca.test.corba.generated.UnexpectedException $ex) { - out = $rh.createExceptionReply (); - org.apache.tuscany.sca.test.corba.generated.UnexpectedExceptionHelper.write (out, $ex); - } - break; - } - - default: - throw new org.omg.CORBA.BAD_OPERATION (0, org.omg.CORBA.CompletionStatus.COMPLETED_MAYBE); - } - - return out; - } // _invoke - - // Type-specific CORBA::Object operations - private static String[] __ids = { - "IDL:org/apache/tuscany/sca/test/corba/generated/ScenarioOne:1.0"}; - - public String[] _ids () - { - return (String[])__ids.clone (); - } - - -} // class _ScenarioOneImplBase diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/_ScenarioOneStub.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/_ScenarioOneStub.java deleted file mode 100644 index 3427c127ec..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/_ScenarioOneStub.java +++ /dev/null @@ -1,84 +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 org.apache.tuscany.sca.test.corba.generated; - - -/** -* org/apache/tuscany/sca/test/corba/generated/_ScenarioOneStub.java . -* Generated by the IDL-to-Java compiler (portable), version "3.2" -* from itest_scenario.idl -* pi±tek, 27 czerwiec 2008 20:40:03 CEST -*/ - -public class _ScenarioOneStub extends org.omg.CORBA.portable.ObjectImpl implements org.apache.tuscany.sca.test.corba.generated.ScenarioOne -{ - - public org.apache.tuscany.sca.test.corba.generated.RichStruct setRichStruct (org.apache.tuscany.sca.test.corba.generated.RichStruct richStruct) throws org.apache.tuscany.sca.test.corba.generated.WrongColor, org.apache.tuscany.sca.test.corba.generated.UnexpectedException - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("setRichStruct", true); - org.apache.tuscany.sca.test.corba.generated.RichStructHelper.write ($out, richStruct); - $in = _invoke ($out); - org.apache.tuscany.sca.test.corba.generated.RichStruct $result = org.apache.tuscany.sca.test.corba.generated.RichStructHelper.read ($in); - return $result; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - if (_id.equals ("IDL:org/apache/tuscany/sca/test/corba/generated/WrongColor:1.0")) - throw org.apache.tuscany.sca.test.corba.generated.WrongColorHelper.read ($in); - else if (_id.equals ("IDL:org/apache/tuscany/sca/test/corba/generated/UnexpectedException:1.0")) - throw org.apache.tuscany.sca.test.corba.generated.UnexpectedExceptionHelper.read ($in); - else - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - return setRichStruct (richStruct ); - } finally { - _releaseReply ($in); - } - } // setRichStruct - - // Type-specific CORBA::Object operations - private static String[] __ids = { - "IDL:org/apache/tuscany/sca/test/corba/generated/ScenarioOne:1.0"}; - - public String[] _ids () - { - return (String[])__ids.clone (); - } - - private void readObject (java.io.ObjectInputStream s) throws java.io.IOException - { - String str = s.readUTF (); - String[] args = null; - java.util.Properties props = null; - org.omg.CORBA.Object obj = org.omg.CORBA.ORB.init (args, props).string_to_object (str); - org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl) obj)._get_delegate (); - _set_delegate (delegate); - } - - private void writeObject (java.io.ObjectOutputStream s) throws java.io.IOException - { - String[] args = null; - java.util.Properties props = null; - String str = org.omg.CORBA.ORB.init (args, props).object_to_string (this); - s.writeUTF (str); - } -} // class _ScenarioOneStub diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/_ScenarioSixImplBase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/_ScenarioSixImplBase.java deleted file mode 100644 index 78464fe40d..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/_ScenarioSixImplBase.java +++ /dev/null @@ -1,105 +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 org.apache.tuscany.sca.test.corba.generated; - - -/** -* org/apache/tuscany/sca/test/corba/generated/_ScenarioSixImplBase.java . -* Generated by the IDL-to-Java compiler (portable), version "3.2" -* from itest_scenario.idl -* niedziela, 17 sierpieñ 2008 23:35:36 CEST -*/ - -public abstract class _ScenarioSixImplBase extends org.omg.CORBA.portable.ObjectImpl - implements org.apache.tuscany.sca.test.corba.generated.ScenarioSix, org.omg.CORBA.portable.InvokeHandler -{ - - // Constructors - public _ScenarioSixImplBase () - { - } - - private static java.util.Hashtable _methods = new java.util.Hashtable (); - static - { - _methods.put ("passStringArray", new java.lang.Integer (0)); - _methods.put ("passAnnotatedStruct", new java.lang.Integer (1)); - _methods.put ("passRichUnion", new java.lang.Integer (2)); - } - - public org.omg.CORBA.portable.OutputStream _invoke (String $method, - org.omg.CORBA.portable.InputStream in, - org.omg.CORBA.portable.ResponseHandler $rh) - { - org.omg.CORBA.portable.OutputStream out = null; - java.lang.Integer __method = (java.lang.Integer)_methods.get ($method); - if (__method == null) - throw new org.omg.CORBA.BAD_OPERATION (0, org.omg.CORBA.CompletionStatus.COMPLETED_MAYBE); - - switch (__method.intValue ()) - { - case 0: // org/apache/tuscany/sca/test/corba/generated/ScenarioSix/passStringArray - { - String arg[][] = org.apache.tuscany.sca.test.corba.generated.StringArrayHelper.read (in); - String $result[][] = null; - $result = this.passStringArray (arg); - out = $rh.createReply(); - org.apache.tuscany.sca.test.corba.generated.StringArrayHelper.write (out, $result); - break; - } - - case 1: // org/apache/tuscany/sca/test/corba/generated/ScenarioSix/passAnnotatedStruct - { - org.apache.tuscany.sca.test.corba.generated.AnnotatedStruct arg = org.apache.tuscany.sca.test.corba.generated.AnnotatedStructHelper.read (in); - org.apache.tuscany.sca.test.corba.generated.AnnotatedStruct $result = null; - $result = this.passAnnotatedStruct (arg); - out = $rh.createReply(); - org.apache.tuscany.sca.test.corba.generated.AnnotatedStructHelper.write (out, $result); - break; - } - - case 2: // org/apache/tuscany/sca/test/corba/generated/ScenarioSix/passRichUnion - { - org.apache.tuscany.sca.test.corba.generated.RichUnion arg = org.apache.tuscany.sca.test.corba.generated.RichUnionHelper.read (in); - org.apache.tuscany.sca.test.corba.generated.RichUnion $result = null; - $result = this.passRichUnion (arg); - out = $rh.createReply(); - org.apache.tuscany.sca.test.corba.generated.RichUnionHelper.write (out, $result); - break; - } - - default: - throw new org.omg.CORBA.BAD_OPERATION (0, org.omg.CORBA.CompletionStatus.COMPLETED_MAYBE); - } - - return out; - } // _invoke - - // Type-specific CORBA::Object operations - private static String[] __ids = { - "IDL:org/apache/tuscany/sca/test/corba/generated/ScenarioSix:1.0"}; - - public String[] _ids () - { - return (String[])__ids.clone (); - } - - -} // class _ScenarioSixImplBase diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/_ScenarioSixStub.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/_ScenarioSixStub.java deleted file mode 100644 index faff36c2a4..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/_ScenarioSixStub.java +++ /dev/null @@ -1,119 +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 org.apache.tuscany.sca.test.corba.generated; - - -/** -* org/apache/tuscany/sca/test/corba/generated/_ScenarioSixStub.java . -* Generated by the IDL-to-Java compiler (portable), version "3.2" -* from itest_scenario.idl -* niedziela, 17 sierpieñ 2008 19:07:14 CEST -*/ - -public class _ScenarioSixStub extends org.omg.CORBA.portable.ObjectImpl implements org.apache.tuscany.sca.test.corba.generated.ScenarioSix -{ - - public String[][] passStringArray (String[][] arg) - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("passStringArray", true); - org.apache.tuscany.sca.test.corba.generated.StringArrayHelper.write ($out, arg); - $in = _invoke ($out); - String $result[][] = org.apache.tuscany.sca.test.corba.generated.StringArrayHelper.read ($in); - return $result; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - return passStringArray (arg ); - } finally { - _releaseReply ($in); - } - } // passStringArray - - public org.apache.tuscany.sca.test.corba.generated.AnnotatedStruct passAnnotatedStruct (org.apache.tuscany.sca.test.corba.generated.AnnotatedStruct arg) - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("passAnnotatedStruct", true); - org.apache.tuscany.sca.test.corba.generated.AnnotatedStructHelper.write ($out, arg); - $in = _invoke ($out); - org.apache.tuscany.sca.test.corba.generated.AnnotatedStruct $result = org.apache.tuscany.sca.test.corba.generated.AnnotatedStructHelper.read ($in); - return $result; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - return passAnnotatedStruct (arg ); - } finally { - _releaseReply ($in); - } - } // passAnnotatedStruct - - public org.apache.tuscany.sca.test.corba.generated.RichUnion passRichUnion (org.apache.tuscany.sca.test.corba.generated.RichUnion arg) - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("passRichUnion", true); - org.apache.tuscany.sca.test.corba.generated.RichUnionHelper.write ($out, arg); - $in = _invoke ($out); - org.apache.tuscany.sca.test.corba.generated.RichUnion $result = org.apache.tuscany.sca.test.corba.generated.RichUnionHelper.read ($in); - return $result; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - return passRichUnion (arg ); - } finally { - _releaseReply ($in); - } - } // passRichUnion - - // Type-specific CORBA::Object operations - private static String[] __ids = { - "IDL:org/apache/tuscany/sca/test/corba/generated/ScenarioSix:1.0"}; - - public String[] _ids () - { - return (String[])__ids.clone (); - } - - private void readObject (java.io.ObjectInputStream s) throws java.io.IOException - { - String str = s.readUTF (); - String[] args = null; - java.util.Properties props = null; - org.omg.CORBA.Object obj = org.omg.CORBA.ORB.init (args, props).string_to_object (str); - org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl) obj)._get_delegate (); - _set_delegate (delegate); - } - - private void writeObject (java.io.ObjectOutputStream s) throws java.io.IOException - { - String[] args = null; - java.util.Properties props = null; - String str = org.omg.CORBA.ORB.init (args, props).object_to_string (this); - s.writeUTF (str); - } -} // class _ScenarioSixStub diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/_ScenarioTwoImplBase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/_ScenarioTwoImplBase.java deleted file mode 100644 index 750006cec6..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/_ScenarioTwoImplBase.java +++ /dev/null @@ -1,93 +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 org.apache.tuscany.sca.test.corba.generated; - - -/** -* org/apache/tuscany/sca/test/corba/generated/_ScenarioTwoImplBase.java . -* Generated by the IDL-to-Java compiler (portable), version "3.2" -* from itest_scenario.idl -* wtorek, 15 lipiec 2008 13:36:31 CEST -*/ - - -// objects for ScenarioTwo -public abstract class _ScenarioTwoImplBase extends org.omg.CORBA.portable.ObjectImpl - implements org.apache.tuscany.sca.test.corba.generated.ScenarioTwo, org.omg.CORBA.portable.InvokeHandler -{ - - // Constructors - public _ScenarioTwoImplBase () - { - } - - private static java.util.Hashtable _methods = new java.util.Hashtable (); - static - { - _methods.put ("_get_stringField", new java.lang.Integer (0)); - _methods.put ("_set_stringField", new java.lang.Integer (1)); - } - - public org.omg.CORBA.portable.OutputStream _invoke (String $method, - org.omg.CORBA.portable.InputStream in, - org.omg.CORBA.portable.ResponseHandler $rh) - { - org.omg.CORBA.portable.OutputStream out = null; - java.lang.Integer __method = (java.lang.Integer)_methods.get ($method); - if (__method == null) - throw new org.omg.CORBA.BAD_OPERATION (0, org.omg.CORBA.CompletionStatus.COMPLETED_MAYBE); - - switch (__method.intValue ()) - { - case 0: // org/apache/tuscany/sca/test/corba/generated/ScenarioTwo/_get_stringField - { - String $result = null; - $result = this.stringField (); - out = $rh.createReply(); - out.write_string ($result); - break; - } - - case 1: // org/apache/tuscany/sca/test/corba/generated/ScenarioTwo/_set_stringField - { - String newStringField = in.read_string (); - this.stringField (newStringField); - out = $rh.createReply(); - break; - } - - default: - throw new org.omg.CORBA.BAD_OPERATION (0, org.omg.CORBA.CompletionStatus.COMPLETED_MAYBE); - } - - return out; - } // _invoke - - // Type-specific CORBA::Object operations - private static String[] __ids = { - "IDL:org/apache/tuscany/sca/test/corba/generated/ScenarioTwo:1.0"}; - - public String[] _ids () - { - return (String[])__ids.clone (); - } - - -} // class _ScenarioTwoImplBase diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/_ScenarioTwoStub.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/_ScenarioTwoStub.java deleted file mode 100644 index ef9f561d1b..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/_ScenarioTwoStub.java +++ /dev/null @@ -1,99 +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 org.apache.tuscany.sca.test.corba.generated; - - -/** -* org/apache/tuscany/sca/test/corba/generated/_ScenarioTwoStub.java . -* Generated by the IDL-to-Java compiler (portable), version "3.2" -* from itest_scenario.idl -* wtorek, 15 lipiec 2008 13:36:31 CEST -*/ - - -// objects for ScenarioTwo -public class _ScenarioTwoStub extends org.omg.CORBA.portable.ObjectImpl implements org.apache.tuscany.sca.test.corba.generated.ScenarioTwo -{ - - public String stringField () - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("_get_stringField", true); - $in = _invoke ($out); - String $result = $in.read_string (); - return $result; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - return stringField ( ); - } finally { - _releaseReply ($in); - } - } // stringField - - public void stringField (String newStringField) - { - org.omg.CORBA.portable.InputStream $in = null; - try { - org.omg.CORBA.portable.OutputStream $out = _request ("_set_stringField", true); - $out.write_string (newStringField); - $in = _invoke ($out); - return; - } catch (org.omg.CORBA.portable.ApplicationException $ex) { - $in = $ex.getInputStream (); - String _id = $ex.getId (); - throw new org.omg.CORBA.MARSHAL (_id); - } catch (org.omg.CORBA.portable.RemarshalException $rm) { - stringField (newStringField ); - } finally { - _releaseReply ($in); - } - } // stringField - - // Type-specific CORBA::Object operations - private static String[] __ids = { - "IDL:org/apache/tuscany/sca/test/corba/generated/ScenarioTwo:1.0"}; - - public String[] _ids () - { - return (String[])__ids.clone (); - } - - private void readObject (java.io.ObjectInputStream s) throws java.io.IOException - { - String str = s.readUTF (); - String[] args = null; - java.util.Properties props = null; - org.omg.CORBA.Object obj = org.omg.CORBA.ORB.init (args, props).string_to_object (str); - org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl) obj)._get_delegate (); - _set_delegate (delegate); - } - - private void writeObject (java.io.ObjectOutputStream s) throws java.io.IOException - { - String[] args = null; - java.util.Properties props = null; - String str = org.omg.CORBA.ORB.init (args, props).object_to_string (this); - s.writeUTF (str); - } -} // class _ScenarioTwoStub diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/ScenarioFive.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/ScenarioFive.java deleted file mode 100644 index 1bc2156183..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/ScenarioFive.java +++ /dev/null @@ -1,33 +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 org.apache.tuscany.sca.test.corba.types; - -import org.oasisopen.sca.annotation.Remotable; - -/** - * @version $Rev$ $Date$ - * Operations for scenario five - */ -@Remotable -public interface ScenarioFive { - - void doNothing(); - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/ScenarioFiveComponent.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/ScenarioFiveComponent.java deleted file mode 100644 index a198eaf646..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/ScenarioFiveComponent.java +++ /dev/null @@ -1,41 +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 org.apache.tuscany.sca.test.corba.types; - -import org.oasisopen.sca.annotation.Reference; - -/** - * @version $Rev$ $Date$ - * Component for obtaining ScenarioFive reference - */ -public class ScenarioFiveComponent { - - private ScenarioFive scenarioFive; - - @Reference - public void setScenarioFive(ScenarioFive scenarioFive) { - this.scenarioFive = scenarioFive; - } - - public ScenarioFive getScenarioFive() { - return scenarioFive; - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/ScenarioFiveImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/ScenarioFiveImpl.java deleted file mode 100644 index dc752a2aea..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/ScenarioFiveImpl.java +++ /dev/null @@ -1,32 +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 org.apache.tuscany.sca.test.corba.types; - -/** - * @version $Rev$ $Date$ - * Implementation of ScenarioFive service - */ -public class ScenarioFiveImpl implements ScenarioFive { - - public void doNothing() { - // does nothing - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/ScenarioFour.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/ScenarioFour.java deleted file mode 100644 index aa2f06909b..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/ScenarioFour.java +++ /dev/null @@ -1,38 +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 org.apache.tuscany.sca.test.corba.types; - -import org.apache.tuscany.sca.test.corba.scenariofour.ScenarioFourSdo; -import org.oasisopen.sca.annotation.Remotable; - -/** - * @version $Rev$ $Date$ - * Operations for ScenarioFour - */ -@Remotable -public interface ScenarioFour { - - ScenarioFourStruct setStruct(ScenarioFourStruct struct); - - void exceptionTest() throws ScenarioFourException; - - ScenarioFourSdo passScenarioFourStruct(ScenarioFourSdo scenarioFourSdo); - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/ScenarioFourComponent.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/ScenarioFourComponent.java deleted file mode 100644 index c7569720f0..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/ScenarioFourComponent.java +++ /dev/null @@ -1,41 +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 org.apache.tuscany.sca.test.corba.types; - -import org.oasisopen.sca.annotation.Reference; - -/** - * @version $Rev$ $Date$ - * Component for obtaining ScenarioFour reference - */ -public class ScenarioFourComponent { - - private ScenarioFour scenarioFour; - - @Reference - public void setScenarioFour(ScenarioFour scenarioFour) { - this.scenarioFour = scenarioFour; - } - - public ScenarioFour getScenarioFour() { - return scenarioFour; - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/ScenarioFourException.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/ScenarioFourException.java deleted file mode 100644 index bc76373633..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/ScenarioFourException.java +++ /dev/null @@ -1,41 +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 org.apache.tuscany.sca.test.corba.types; - -/** - * @version $Rev$ $Date$ - * Exception for ScenarioFour tests - */ -public class ScenarioFourException extends Exception { - - public static final String DEFAULT_CONTENT = "Test"; - - private static final long serialVersionUID = 1L; - private String content; - - public String getContent() { - return content; - } - - public void setContent(String content) { - this.content = content; - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/ScenarioFourImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/ScenarioFourImpl.java deleted file mode 100644 index 2f10177bd0..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/ScenarioFourImpl.java +++ /dev/null @@ -1,44 +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 org.apache.tuscany.sca.test.corba.types; - -import org.apache.tuscany.sca.test.corba.scenariofour.ScenarioFourSdo; - -/** - * @version $Rev$ $Date$ - * Implementation of ScenarioFour service - */ -public class ScenarioFourImpl implements ScenarioFour { - - public ScenarioFourStruct setStruct(ScenarioFourStruct struct) { - return struct; - } - - public void exceptionTest() throws ScenarioFourException { - ScenarioFourException exception = new ScenarioFourException(); - exception.setContent(ScenarioFourException.DEFAULT_CONTENT); - throw exception; - } - - public ScenarioFourSdo passScenarioFourStruct(ScenarioFourSdo scenarioFourSdo) { - return scenarioFourSdo; - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/ScenarioFourStruct.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/ScenarioFourStruct.java deleted file mode 100644 index de8624455f..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/ScenarioFourStruct.java +++ /dev/null @@ -1,40 +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 org.apache.tuscany.sca.test.corba.types; - -/** - * @version $Rev$ $Date$ - * Type for ScenarioFour test - */ -public class ScenarioFourStruct { - - public String field1; - public int field2; - public double[] field3; - - public boolean equals(ScenarioFourStruct arg) { - return (field1 != null && arg.field1 != null - && field1.equals(arg.field1) - && field2 == arg.field2 - && field3 != null - && arg.field3 != null && field3.length == arg.field3.length); - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/ScenarioOneComponent.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/ScenarioOneComponent.java deleted file mode 100644 index 1813de4e67..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/ScenarioOneComponent.java +++ /dev/null @@ -1,46 +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 org.apache.tuscany.sca.test.corba.types; - -import org.apache.tuscany.sca.test.corba.generated.RichStruct; -import org.apache.tuscany.sca.test.corba.generated.ScenarioOne; -import org.apache.tuscany.sca.test.corba.generated.ScenarioOneOperations; -import org.apache.tuscany.sca.test.corba.generated.UnexpectedException; -import org.apache.tuscany.sca.test.corba.generated.WrongColor; -import org.oasisopen.sca.annotation.Reference; - -/** - * @version $Rev$ $Date$ - * Component for reference using generated interface. - */ -public class ScenarioOneComponent implements ScenarioOneOperations { - - private ScenarioOne scenarionOne; - - @Reference - public void setScenarioOne(ScenarioOne scenarioOne) { - this.scenarionOne = scenarioOne; - } - - public RichStruct setRichStruct(RichStruct richStruct) throws WrongColor, UnexpectedException { - return scenarionOne.setRichStruct(richStruct); - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/ScenarioOneServant.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/ScenarioOneServant.java deleted file mode 100644 index 9b49adbfbb..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/ScenarioOneServant.java +++ /dev/null @@ -1,45 +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 org.apache.tuscany.sca.test.corba.types; - -import org.apache.tuscany.sca.test.corba.generated.Color; -import org.apache.tuscany.sca.test.corba.generated.RichStruct; -import org.apache.tuscany.sca.test.corba.generated.UnexpectedException; -import org.apache.tuscany.sca.test.corba.generated.WrongColor; -import org.apache.tuscany.sca.test.corba.generated._ScenarioOneImplBase; - -/** - * @version $Rev$ $Date$ - * Servant for generated interface. Uses generated classes. - */ -public class ScenarioOneServant extends _ScenarioOneImplBase { - - private static final long serialVersionUID = 1L; - - public RichStruct setRichStruct(RichStruct richStruct) throws WrongColor, UnexpectedException { - if (richStruct.innerStruct.color.value() == Color.red.value()) { - throw new WrongColor(richStruct.innerStruct.color, Color.green); - } else if (richStruct.longField == 0) { - throw new UnexpectedException("Expected richStruct.longField != 0"); - } - return richStruct; - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/ScenarioSixServant.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/ScenarioSixServant.java deleted file mode 100644 index 7889a80bf1..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/ScenarioSixServant.java +++ /dev/null @@ -1,46 +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 org.apache.tuscany.sca.test.corba.types; - -import org.apache.tuscany.sca.test.corba.generated.AnnotatedStruct; -import org.apache.tuscany.sca.test.corba.generated.RichUnion; -import org.apache.tuscany.sca.test.corba.generated._ScenarioSixImplBase; - -/** - * @version $Rev$ $Date$ - * Scenario six servant for generated interface. - */ -public class ScenarioSixServant extends _ScenarioSixImplBase { - - private static final long serialVersionUID = 1L; - - public String[][] passStringArray(String[][] arg) { - return arg; - } - - public AnnotatedStruct passAnnotatedStruct(AnnotatedStruct arg) { - return arg; - } - - public RichUnion passRichUnion(RichUnion arg) { - return arg; - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/ScenarioTwoServant.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/ScenarioTwoServant.java deleted file mode 100644 index cdd49904d3..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/ScenarioTwoServant.java +++ /dev/null @@ -1,42 +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 org.apache.tuscany.sca.test.corba.types; - -import org.apache.tuscany.sca.test.corba.generated._ScenarioTwoImplBase; - -/** - * @version $Rev$ $Date$ - * Servant for generated interface. - */ -public class ScenarioTwoServant extends _ScenarioTwoImplBase { - - private static final long serialVersionUID = 1L; - - private String stringField = ""; - - public String stringField() { - return stringField; - } - - public void stringField(String newStringField) { - this.stringField = newStringField; - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/TAnnotatedStruct.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/TAnnotatedStruct.java deleted file mode 100644 index 6f0ef584da..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/TAnnotatedStruct.java +++ /dev/null @@ -1,40 +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 org.apache.tuscany.sca.test.corba.types; - -import org.apache.tuscany.sca.binding.corba.provider.meta.CorbaArray; - -/** - * @version $Rev$ $Date$ Scenario six structure used by Tuscany. - */ -public final class TAnnotatedStruct { - - @CorbaArray( {2, 2}) - public String[][] stringArray; - - public TAnnotatedStruct() { - - } - - public TAnnotatedStruct(String[][] stringArray) { - this.stringArray = stringArray; - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/TColor.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/TColor.java deleted file mode 100644 index 71003d008f..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/TColor.java +++ /dev/null @@ -1,62 +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 org.apache.tuscany.sca.test.corba.types; - -/** - * @version $Rev$ $Date$ - * User provided enum representation for Color type. - */ -public class TColor { - - private int value; - - public static final int _red = 0; - public static final int _yellow = 1; - public static final int _green = 2; - - public static final TColor red = new TColor(_red); - public static final TColor yellow = new TColor(_yellow); - public static final TColor green = new TColor(_green); - - public int value() { - return value; - } - - public static TColor from_int(int value) { - switch (value) { - case 0: - return red; - case 1: - return yellow; - case 2: - return green; - } - return green; - } - - protected TColor(int value) { - this.value = value; - } - - public TColor() { - - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/TInnerStruct.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/TInnerStruct.java deleted file mode 100644 index 271f1e669b..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/TInnerStruct.java +++ /dev/null @@ -1,42 +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 org.apache.tuscany.sca.test.corba.types; - -/** - * @version $Rev$ $Date$ - * User provided interface representation for InnerStruct type. - */ -public final class TInnerStruct { - - public int[][] twoDimLongSequence; - public String stringField; - public TColor color; - - public TInnerStruct() { - - } - - public TInnerStruct(int[][] a1, String a2, TColor a3) { - twoDimLongSequence = a1; - stringField = a2; - color = a3; - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/TInnerUnion.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/TInnerUnion.java deleted file mode 100644 index f2baffce9a..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/TInnerUnion.java +++ /dev/null @@ -1,59 +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 org.apache.tuscany.sca.test.corba.types; - -import org.apache.tuscany.sca.binding.corba.provider.meta.CorbaUnionElement; -import org.apache.tuscany.sca.binding.corba.provider.meta.CorbaUnionElementType; - -/** - * @version $Rev$ $Date$ - * User provided interface representation for CORBA InnerUnion type. - */ -public final class TInnerUnion { - - @CorbaUnionElement(type = CorbaUnionElementType.option, optionNumber = 1) - private int x; - - @CorbaUnionElement(type = CorbaUnionElementType.option, optionNumber = 2) - private float y; - - @CorbaUnionElement(type = CorbaUnionElementType.discriminator) - @SuppressWarnings("unused") - private int discriminator; - - public int getX() { - return x; - } - - public void setX(int x) { - discriminator = 1; - this.x = x; - } - - public float getY() { - return y; - } - - public void setY(float y) { - discriminator = 2; - this.y = y; - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/TRichStruct.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/TRichStruct.java deleted file mode 100644 index 1b44da9752..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/TRichStruct.java +++ /dev/null @@ -1,42 +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 org.apache.tuscany.sca.test.corba.types; - -/** - * @version $Rev$ $Date$ - * User provided interface representation for RichStruct type. - */ -public final class TRichStruct { - - public TInnerStruct innerStruct; - public String[] stringSequence; - public int longField; - - public TRichStruct() { - - } - - public TRichStruct(TInnerStruct a1, String[] a2, int a3) { - innerStruct = a1; - stringSequence = a2; - longField = a3; - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/TRichUnion.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/TRichUnion.java deleted file mode 100644 index 8270ba1a8c..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/TRichUnion.java +++ /dev/null @@ -1,95 +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 org.apache.tuscany.sca.test.corba.types; - -import org.apache.tuscany.sca.binding.corba.provider.meta.CorbaUnionElement; -import org.apache.tuscany.sca.binding.corba.provider.meta.CorbaUnionElementType; - -/** - * @version $Rev$ $Date$ - * User provided interface representation for CORBA RichUnion type. - */ -public final class TRichUnion { - - @CorbaUnionElement(type = CorbaUnionElementType.option, optionNumber = 1) - private int x; - - @CorbaUnionElement(type = CorbaUnionElementType.option, optionNumber = 2) - private float y; - - @CorbaUnionElement(type = CorbaUnionElementType.option, optionNumber = 3) - private String z; - - @CorbaUnionElement(type = CorbaUnionElementType.option, optionNumber = 4) - private TInnerUnion iu; - - @CorbaUnionElement(type = CorbaUnionElementType.defaultOption) - private boolean def; - - @CorbaUnionElement(type = CorbaUnionElementType.discriminator) - @SuppressWarnings("unused") - private int discriminator = -1; - - public int getX() { - return x; - } - - public void setX(int x) { - this.discriminator = 1; - this.x = x; - } - - public float getY() { - return y; - } - - public void setY(float y) { - this.discriminator = 2; - this.y = y; - } - - public String getZ() { - return z; - } - - public void setZ(String z) { - this.discriminator = 3; - this.z = z; - } - - public boolean isDef() { - return def; - } - - public void setDef(boolean def) { - this.discriminator = -1; - this.def = def; - } - - public TInnerUnion getIu() { - return iu; - } - - public void setIu(TInnerUnion iu) { - this.discriminator = 4; - this.iu = iu; - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/TScenarioOne.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/TScenarioOne.java deleted file mode 100644 index 922759cd8d..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/TScenarioOne.java +++ /dev/null @@ -1,33 +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 org.apache.tuscany.sca.test.corba.types; - -import org.apache.tuscany.sca.test.corba.generated.UnexpectedException; -import org.apache.tuscany.sca.test.corba.generated.WrongColor; - -/** - * @version $Rev$ $Date$ - * User provided CORBA service interface. - */ -public interface TScenarioOne { - - TRichStruct setRichStruct(TRichStruct richStruct) throws WrongColor, UnexpectedException; - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/TScenarioOneComponent.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/TScenarioOneComponent.java deleted file mode 100644 index ac7b0af175..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/TScenarioOneComponent.java +++ /dev/null @@ -1,43 +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 org.apache.tuscany.sca.test.corba.types; - -import org.apache.tuscany.sca.test.corba.generated.UnexpectedException; -import org.apache.tuscany.sca.test.corba.generated.WrongColor; -import org.oasisopen.sca.annotation.Reference; - -/** - * @version $Rev$ $Date$ - * Component for reference using user provided interface. - */ -public class TScenarioOneComponent implements TScenarioOne { - - private TScenarioOne scenarionOne; - - @Reference - public void setScenarioOne(TScenarioOne scenarioOne) { - this.scenarionOne = scenarioOne; - } - - public TRichStruct setRichStruct(TRichStruct richStruct) throws WrongColor, UnexpectedException { - return scenarionOne.setRichStruct(richStruct); - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/TScenarioOneServant.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/TScenarioOneServant.java deleted file mode 100644 index 47f0775c16..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/TScenarioOneServant.java +++ /dev/null @@ -1,44 +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 org.apache.tuscany.sca.test.corba.types; - -import org.apache.tuscany.sca.test.corba.generated.Color; -import org.apache.tuscany.sca.test.corba.generated.UnexpectedException; -import org.apache.tuscany.sca.test.corba.generated.WrongColor; - -/** - * @version $Rev$ $Date$ - * Servant for user provided interface. Uses T* classes. - */ -public class TScenarioOneServant implements TScenarioOne { - - private static final long serialVersionUID = 1L; - - public TRichStruct setRichStruct(TRichStruct richStruct) throws WrongColor, UnexpectedException { - if (richStruct.innerStruct.color.value() == Color.red.value()) { - Color translatedColor = Color.from_int(richStruct.innerStruct.color.value()); - throw new WrongColor(translatedColor, Color.green); - } else if (richStruct.longField == 0) { - throw new UnexpectedException("Expected richStruct.longField != 0"); - } - return richStruct; - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/TScenarioSix.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/TScenarioSix.java deleted file mode 100644 index 0e894cb7ea..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/TScenarioSix.java +++ /dev/null @@ -1,37 +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 org.apache.tuscany.sca.test.corba.types; - -import org.apache.tuscany.sca.binding.corba.provider.meta.CorbaArray; - -/** - * @version $Rev$ $Date$ - * Operations for scenario six. - */ -public interface TScenarioSix { - - @CorbaArray( {2, 2}) - public String[][] passStringArray(@CorbaArray( {2, 2})String[][] arg); - - public TAnnotatedStruct passAnnotatedStruct(TAnnotatedStruct arg); - - public TRichUnion passRichUnion(TRichUnion arg); - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/TScenarioSixComponent.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/TScenarioSixComponent.java deleted file mode 100644 index 13bc1d499e..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/TScenarioSixComponent.java +++ /dev/null @@ -1,41 +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 org.apache.tuscany.sca.test.corba.types; - -import org.oasisopen.sca.annotation.Reference; - -/** - * @version $Rev$ $Date$ - * Component for obtaining ScenartioSix reference. - */ -public class TScenarioSixComponent { - - private TScenarioSix scenarioSix; - - @Reference - public void setScenarioSix(TScenarioSix scenarioSix) { - this.scenarioSix = scenarioSix; - } - - public TScenarioSix getScenarioSix() { - return scenarioSix; - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/TScenarioSixServant.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/TScenarioSixServant.java deleted file mode 100644 index 8e76958e31..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/TScenarioSixServant.java +++ /dev/null @@ -1,42 +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 org.apache.tuscany.sca.test.corba.types; - -/** - * @version $Rev$ $Date$ - * Tuscany scenario six servant. - */ -public class TScenarioSixServant implements TScenarioSix { - - private static final long serialVersionUID = 1L; - - public String[][] passStringArray(String[][] arg) { - return arg; - } - - public TAnnotatedStruct passAnnotatedStruct(TAnnotatedStruct arg) { - return arg; - } - - public TRichUnion passRichUnion(TRichUnion arg) { - return arg; - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/TScenarioThree.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/TScenarioThree.java deleted file mode 100644 index 1e4264256b..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/TScenarioThree.java +++ /dev/null @@ -1,42 +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 org.apache.tuscany.sca.test.corba.types; - -/** - * @version $Rev$ $Date$ - * Operations for ScenarioThree. - */ -public interface TScenarioThree { - - int getIntField(); - - void setIntField(int intField); - - void overloadedName(); - - void overloadedName(String arg1); - - void overloadedName(String arg1, int arg2); - - int caseDifferent(); - - int CaseDifferent(); - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/TScenarioThreeComponent.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/TScenarioThreeComponent.java deleted file mode 100644 index 12b0f404ae..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/TScenarioThreeComponent.java +++ /dev/null @@ -1,41 +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 org.apache.tuscany.sca.test.corba.types; - -import org.oasisopen.sca.annotation.Reference; - -/** - * @version $Rev$ $Date$ - * Component for obtaining ScenartioThree reference. - */ -public class TScenarioThreeComponent { - - private TScenarioThree scenarionThree; - - @Reference - public void setScenarioThree(TScenarioThree scenarioThree) { - this.scenarionThree = scenarioThree; - } - - public TScenarioThree getScenarioThree() { - return scenarionThree; - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/TScenarioThreeServant.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/TScenarioThreeServant.java deleted file mode 100644 index b679214c6c..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/TScenarioThreeServant.java +++ /dev/null @@ -1,52 +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 org.apache.tuscany.sca.test.corba.types; - -/** - * @version $Rev$ $Date$ - * Servant for user provided interface. - */ -public class TScenarioThreeServant implements TScenarioThree { - - public int getIntField() { - return 0; - } - - public void overloadedName() { - } - - public void overloadedName(String arg1) { - } - - public void overloadedName(String arg1, int arg2) { - } - - public void setIntField(int intField) { - } - - public int CaseDifferent() { - return 1; - } - - public int caseDifferent() { - return 0; - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/TScenarioTwo.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/TScenarioTwo.java deleted file mode 100644 index 415634c80f..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/TScenarioTwo.java +++ /dev/null @@ -1,32 +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 org.apache.tuscany.sca.test.corba.types; - -/** - * @version $Rev$ $Date$ - * Operations for ScenarioTwo. - */ -public interface TScenarioTwo { - - String getStringField(); - - void setStringField(String stringField); - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/TScenarioTwoComponent.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/TScenarioTwoComponent.java deleted file mode 100644 index 937d82b33e..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/TScenarioTwoComponent.java +++ /dev/null @@ -1,41 +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 org.apache.tuscany.sca.test.corba.types; - -import org.oasisopen.sca.annotation.Reference; - -/** - * @version $Rev$ $Date$ - * Component for obtaining ScenartioTwo reference. - */ -public class TScenarioTwoComponent { - - private TScenarioTwo scenarioTwo; - - @Reference - public void setScenarioTwo(TScenarioTwo scenarioTwo) { - this.scenarioTwo = scenarioTwo; - } - - public TScenarioTwo getScenarioTwo() { - return scenarioTwo; - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/TScenarioTwoServant.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/TScenarioTwoServant.java deleted file mode 100644 index cb868d18a0..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/TScenarioTwoServant.java +++ /dev/null @@ -1,38 +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 org.apache.tuscany.sca.test.corba.types; - -/** - * @version $Rev$ $Date$ - * Servant for user provided interface. - */ -public class TScenarioTwoServant implements TScenarioTwo { - - private static String stringField = ""; - - public String getStringField() { - return stringField; - } - - public void setStringField(String stringField) { - TScenarioTwoServant.stringField = stringField; - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/resources/META-INF/services/org.apache.tuscany.sca.core.ModuleActivator b/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/resources/META-INF/services/org.apache.tuscany.sca.core.ModuleActivator deleted file mode 100644 index 3e77527d73..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/resources/META-INF/services/org.apache.tuscany.sca.core.ModuleActivator +++ /dev/null @@ -1,18 +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. - -org.apache.tuscany.sca.test.corba.TestCorbaHostModuleActivator diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/resources/ScenarioFive.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/resources/ScenarioFive.composite deleted file mode 100644 index b3675a0194..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/resources/ScenarioFive.composite +++ /dev/null @@ -1,41 +0,0 @@ - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/resources/ScenarioFour.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/resources/ScenarioFour.composite deleted file mode 100644 index 50bfc02803..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/resources/ScenarioFour.composite +++ /dev/null @@ -1,56 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/resources/ScenarioOne.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/resources/ScenarioOne.composite deleted file mode 100644 index 495ca2a41f..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/resources/ScenarioOne.composite +++ /dev/null @@ -1,111 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/resources/ScenarioSix.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/resources/ScenarioSix.composite deleted file mode 100644 index 840cd076b1..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/resources/ScenarioSix.composite +++ /dev/null @@ -1,41 +0,0 @@ - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/resources/ScenarioThree.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/resources/ScenarioThree.composite deleted file mode 100644 index f02ba89496..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/resources/ScenarioThree.composite +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/resources/ScenarioTwo.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/resources/ScenarioTwo.composite deleted file mode 100644 index ed3f545f72..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/resources/ScenarioTwo.composite +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/resources/itest_scenario.idl b/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/resources/itest_scenario.idl deleted file mode 100644 index 41489a4565..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/resources/itest_scenario.idl +++ /dev/null @@ -1,110 +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. - */ - -/* - * compile by - * idlj -fall -oldImplBase itest_scenario.idl - */ - -module org { - module apache { - module tuscany { - module sca { - module test { - module corba { - module generated { - - // objects for ScenarioOne - - enum Color {red, yellow, green}; - - typedef sequence StringSequence; - typedef sequence LongSequence; - typedef sequence TwoDimLongSequence; - - struct InnerStruct { - TwoDimLongSequence twoDimLongSequence; - string stringField; - Color color; - }; - - struct RichStruct { - InnerStruct innerStruct; - StringSequence stringSequence; - long longField; - }; - - exception WrongColor { - Color givenColor; - Color correctColor; - }; - - exception UnexpectedException { - string info; - }; - - interface ScenarioOne { - - RichStruct setRichStruct(in RichStruct richStruct) raises (WrongColor, UnexpectedException); - - }; - - // objects for ScenarioTwo - - interface ScenarioTwo { - - attribute string stringField; - - }; - - typedef string StringArray[2][2]; - - struct AnnotatedStruct { - StringArray stringArray; - }; - - union InnerUnion switch (long) { - case 1: long x; - case 2: float y; - }; - - union RichUnion switch (long) { - case 1: long x; - case 2: float y; - case 3: string z; - case 4: InnerUnion iu; - default: boolean a; - }; - - interface ScenarioSix { - - StringArray passStringArray(in StringArray arg); - - AnnotatedStruct passAnnotatedStruct(in AnnotatedStruct arg); - - RichUnion passRichUnion(in RichUnion arg); - - }; - }; - }; - }; - }; - }; - }; -}; diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/resources/scenariofour.xsd b/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/resources/scenariofour.xsd deleted file mode 100644 index 2669b54be3..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/corba/src/test/resources/scenariofour.xsd +++ /dev/null @@ -1,31 +0,0 @@ - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/pom.xml deleted file mode 100644 index b9822893df..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/pom.xml +++ /dev/null @@ -1,188 +0,0 @@ - - - - - org.apache.tuscany.sca - itest-databindings - 2.0-M5 - ../pom.xml - - - 4.0.0 - - itest-databindings-jaxb-bottom-up - 2.0-M5 - Apache Tuscany SCA iTest Databinding - JAXB Bottom Up - - - - - true - - java.net - java.net Maven 1.x Repository - http://download.java.net/maven/1 - legacy - - - java.net2 - java.net Maven 2.x Repository - http://download.java.net/maven/2 - - - - - - java.net2 - java.net Maven 2.x Repository - http://download.java.net/maven/2 - - - - - - org.apache.tuscany.sca - tuscany-node-api - ${pom.version} - - - org.apache.tuscany.sca - tuscany-node-impl - ${pom.version} - - - org.apache.tuscany.sca - tuscany-binding-ws-runtime-axis2 - ${pom.version} - runtime - - - org.apache.tuscany.sca - tuscany-databinding-jaxb - ${pom.version} - runtime - - - - org.apache.tuscany.sca - tuscany-databinding-axiom - ${pom.version} - compile - - - - org.apache.tuscany.sca - tuscany-implementation-java-runtime - ${pom.version} - compile - - - org.apache.tuscany.sca - tuscany-interface-java - ${pom.version} - compile - - - org.apache.tuscany.sca - tuscany-host-jetty - ${pom.version} - runtime - - - javax.xml.bind - jaxb-api - 2.1 - compile - - - - com.sun.xml.ws - jaxws-rt - 2.1.3 - - - - commons-collections - commons-collections - 3.1 - - - log4j - log4j - 1.2.12 - provided - - - - - - - - org.apache.maven.plugins - maven-surefire-plugin - - -Djava.endorsed.dirs=target/endorsed - - - - org.apache.maven.plugins - maven-dependency-plugin - - - copy - generate-sources - - copy - - - - - javax.xml.ws - jaxws-api - 2.1 - jar - - - javax.xml.bind - jaxb-api - 2.1 - jar - - - ${project.build.directory}/endorsed - false - true - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/AClientService.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/AClientService.java deleted file mode 100644 index 5d389643cc..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/AClientService.java +++ /dev/null @@ -1,29 +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 org.apache.tuscany.sca.itest.databindings.jaxb; - -import org.oasisopen.sca.annotation.Remotable; - -/** - * The interface for AClientService. - */ -@Remotable -public interface AClientService { - public String getGreetingsForward(String name); -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/AService.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/AService.java deleted file mode 100644 index 52f1c01fd8..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/AService.java +++ /dev/null @@ -1,32 +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 org.apache.tuscany.sca.itest.databindings.jaxb; - -import javax.jws.soap.SOAPBinding; - -import org.oasisopen.sca.annotation.Remotable; - -/** - * The interface for AService. - */ -@Remotable -@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE) -public interface AService { - public String getGreetings(String name); -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/Bean1.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/Bean1.java deleted file mode 100644 index f1c948dc1c..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/Bean1.java +++ /dev/null @@ -1,66 +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 org.apache.tuscany.sca.itest.databindings.jaxb; - -import javax.xml.bind.annotation.XmlSeeAlso; - -/** - * @version $Rev$ $Date$ - */ -@XmlSeeAlso({Bean10.class, Bean11.class, Bean10[].class, Bean11[].class}) -public class Bean1 { - private T item; - - public Bean1() { - } - - public Bean1(T item) { - this.item = item; - } - - public void setItem(T item) { - this.item = item; - } - - public T getItem() { - return item; - } - - public boolean equals(Object that) { - if(that == null) { - return false; - } - if(that.getClass() != this.getClass()) { - return false; - } - - Bean1 that1 = (Bean1)that; - if(this == that1) { - return true; - } else if(this.item != null) { - return this.item.equals(that1.item); - } else { - return that1.item == null; - } - } - - public String toString() { - return this.getClass().getSimpleName()+"[item = "+item+"]"; - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/Bean10.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/Bean10.java deleted file mode 100644 index 4a4419a42b..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/Bean10.java +++ /dev/null @@ -1,25 +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 org.apache.tuscany.sca.itest.databindings.jaxb; - -/** - * @version $Rev$ $Date$ - */ -public class Bean10 extends Bean1 { -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/Bean11.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/Bean11.java deleted file mode 100644 index 65f019ec48..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/Bean11.java +++ /dev/null @@ -1,25 +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 org.apache.tuscany.sca.itest.databindings.jaxb; - -/** - * @version $Rev$ $Date$ - */ -public class Bean11 extends Bean1 { -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/Bean2.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/Bean2.java deleted file mode 100644 index 45c01dc054..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/Bean2.java +++ /dev/null @@ -1,59 +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 org.apache.tuscany.sca.itest.databindings.jaxb; - -import javax.xml.bind.annotation.XmlSeeAlso; - -/** - * @version $Rev$ $Date$ - */ -@XmlSeeAlso({Bean3.class, Bean3[].class, Bean31.class, Bean31[].class}) -public class Bean2 { - private String name; - - public void setName(String name) { - this.name = name; - } - - public String getName() { - return name; - } - - public boolean equals(Object that) { - if(that == null) { - return false; - } - - if(this.getClass() != that.getClass()) { - return false; - } - - if(this == that) { - return true; - } else if(this.name != null) { - return this.name.equals(((Bean2)that).name); - } else { - return ((Bean2)that).name == null; - } - } - - public String toString() { - return this.getClass().getSimpleName()+"[name = "+name+"]"; - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/Bean3.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/Bean3.java deleted file mode 100644 index 4e0bd38b2b..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/Bean3.java +++ /dev/null @@ -1,56 +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 org.apache.tuscany.sca.itest.databindings.jaxb; - -/** - * @version $Rev$ $Date$ - */ -public class Bean3 extends Bean2 { - private String address; - - public void setAddress(String address) { - this.address = address; - } - - public String getAddress() { - return address; - } - - public boolean equals(Object that) { - if(that == null) { - return false; - } - - if(this.getClass() != that.getClass()) { - return false; - } - - if(this == that) { - return true; - } else if(this.address != null) { - return this.address.equals(((Bean3)that).address) && super.equals(that); - } else { - return ((Bean3)that).address == null && super.equals(that); - } - } - - public String toString() { - return this.getClass().getSimpleName()+"[name = "+super.getName()+", address = "+address+"]"; - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/Bean31.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/Bean31.java deleted file mode 100644 index 40aff31297..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/Bean31.java +++ /dev/null @@ -1,56 +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 org.apache.tuscany.sca.itest.databindings.jaxb; - -/** - * @version $Rev$ $Date$ - */ -public class Bean31 extends Bean2 { - private String address; - - public void setAddress(String address) { - this.address = address; - } - - public String getAddress() { - return address; - } - - public boolean equals(Object that) { - if(that == null) { - return false; - } - - if(this.getClass() != that.getClass()) { - return false; - } - - if(this == that) { - return true; - } else if(this.address != null) { - return this.address.equals(((Bean31)that).address) && super.equals(that); - } else { - return ((Bean31)that).address == null && super.equals(that); - } - } - - public String toString() { - return this.getClass().getSimpleName()+"[name = "+super.getName()+", address = "+address+"]"; - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/GenericsLocalService.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/GenericsLocalService.java deleted file mode 100644 index ca012b967d..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/GenericsLocalService.java +++ /dev/null @@ -1,42 +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 org.apache.tuscany.sca.itest.databindings.jaxb; - -/** - * The interface for GenericsLocalService. - * - * @version $Rev$ $Date$ - */ -public interface GenericsLocalService { - Bean1 getTypeExplicit(Bean1 arg); - - Bean1 getTypeUnbound(T[] anArray); - - Bean1 getTypeExtends(T[] anArray); - - > Bean1 getRecursiveTypeBound(T[] anArray); - - Bean1 getWildcardUnbound(Bean1 arg); - - Bean1 getWildcardSuper(Bean1 arg); - - Bean1 getWildcardExtends(Bean1 arg); - - Bean2 getPolymorphic(Bean2 arg); -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/GenericsService.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/GenericsService.java deleted file mode 100644 index be446c9759..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/GenericsService.java +++ /dev/null @@ -1,30 +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 org.apache.tuscany.sca.itest.databindings.jaxb; - -import org.oasisopen.sca.annotation.Remotable; - -/** - * The interface for GenericsService. - * - * @version $Rev$ $Date$ - */ -@Remotable -public interface GenericsService extends GenericsLocalService{ -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/GenericsServiceClient.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/GenericsServiceClient.java deleted file mode 100644 index 3bae554dc7..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/GenericsServiceClient.java +++ /dev/null @@ -1,43 +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 org.apache.tuscany.sca.itest.databindings.jaxb; - -/** - * The interface for GenericsServiceClient. - * - * @version $Rev$ $Date$ - */ -public interface GenericsServiceClient { - Bean1 getTypeExplicitForward(Bean1 arg); - - Bean1 getTypeUnboundForward(T[] anArray); - - Bean1 getTypeExtendsForward(T[] anArray); - - > Bean1 getRecursiveTypeBoundForward(T[] anArray); - - Bean1 getWildcardUnboundForward(Bean1 arg); - - Bean1 getWildcardSuperForward(Bean1 arg); - - Bean1 getWildcardExtendsForward(Bean1 arg); - - Bean2 getPolymorphicForward(Bean2 arg); -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/HelloLocalServiceSimple.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/HelloLocalServiceSimple.java deleted file mode 100644 index a31cc3d45a..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/HelloLocalServiceSimple.java +++ /dev/null @@ -1,37 +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 org.apache.tuscany.sca.itest.databindings.jaxb; - -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -/** - * The interface for HelloLocalServiceSimple. - */ -public interface HelloLocalServiceSimple { - String getGreetings(String name); - String[] getGreetingsArray(String[] names); - List getGreetingsList(List names); - ArrayList getGreetingsArrayList(ArrayList names); - Map getGreetingsMap(Map namesMap); - HashMap getGreetingsHashMap(HashMap namesMap); - String getGreetingsVarArgs(String... names); -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/HelloServiceSimple.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/HelloServiceSimple.java deleted file mode 100644 index df9e6e53ec..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/HelloServiceSimple.java +++ /dev/null @@ -1,29 +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 org.apache.tuscany.sca.itest.databindings.jaxb; - -import org.oasisopen.sca.annotation.Remotable; - -/** - * The interface for HelloServiceSimple. - */ -@Remotable -public interface HelloServiceSimple extends HelloLocalServiceSimple { - // Add any methods to the local interface. -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/HelloServiceSimpleClient.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/HelloServiceSimpleClient.java deleted file mode 100644 index 779943739e..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/HelloServiceSimpleClient.java +++ /dev/null @@ -1,38 +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 org.apache.tuscany.sca.itest.databindings.jaxb; - -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -/** - * The interface for HelloServiceSimpleClient. - */ -public interface HelloServiceSimpleClient { - String getGreetingsForward(String name); - String[] getGreetingsArrayForward(String[] names); - List getGreetingsListForward(List names); - ArrayList getGreetingsArrayListForward(ArrayList names); - Map getGreetingsMapForward(Map namesMap); - HashMap getGreetingsHashMapForward(HashMap namesMap); - String getGreetingsVarArgsForward(String... names); -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/PrimitivesLocalService.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/PrimitivesLocalService.java deleted file mode 100644 index 6239c0f5f1..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/PrimitivesLocalService.java +++ /dev/null @@ -1,47 +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 org.apache.tuscany.sca.itest.databindings.jaxb; - - -/** - * The interface for PrimitivesLocalService. - */ -public interface PrimitivesLocalService { - boolean negateBoolean(boolean flag); - boolean[] negateBooleanArray(boolean[] flags); - boolean[] identityBooleanArray(boolean[] flags); - byte negateByte(byte b); - byte[] negateByteArray(byte[] ba); - byte[] identityByteArray(byte[] ba); - short negateShort(short s); - short[] negateShortArray(short[] s); - short[] identityShortArray(short[] sa); - int negateInt(int s); - int[] negateIntArray(int[] s); - int[] identityIntArray(int[] ia); - long negateLong(long l); - long[] negateLongArray(long[] la); - long[] identityLongArray(long[] la); - float negateFloat(float f); - float[] negateFloatArray(float[] fa); - float[] identityFloatArray(float[] fa); - double negateDouble(double d); - double[] negateDoubleArray(double[] da); - double[] identityDoubleArray(double[] da); -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/PrimitivesService.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/PrimitivesService.java deleted file mode 100644 index 690a2adb3d..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/PrimitivesService.java +++ /dev/null @@ -1,29 +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 org.apache.tuscany.sca.itest.databindings.jaxb; - -import org.oasisopen.sca.annotation.Remotable; - -/** - * The interface for PrimitivesService. - */ -@Remotable -public interface PrimitivesService extends PrimitivesLocalService { - // Add any methods to the local interface. -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/PrimitivesServiceClient.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/PrimitivesServiceClient.java deleted file mode 100644 index 3bdf886dfa..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/PrimitivesServiceClient.java +++ /dev/null @@ -1,48 +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 org.apache.tuscany.sca.itest.databindings.jaxb; - - -/** - * The interface for PrimitivesServiceClient. - */ -public interface PrimitivesServiceClient { - boolean negateBooleanForward(boolean flag); - boolean[] negateBooleanArrayForward(boolean[] flags); - boolean passByValueBooleanArray(); - byte negateByteForward(byte b); - byte[] negateByteArrayForward(byte[] ba); - boolean passByValueByteArray(); - short negateShortForward(short s); - short[] negateShortArrayForward(short[] sa); - boolean passByValueShortArray(); - int negateIntForward(int i); - int[] negateIntArrayForward(int[] ia); - boolean passByValueIntArray(); - long negateLongForward(long l); - long[] negateLongArrayForward(long[] la); - boolean passByValueLongArray(); - float negateFloatForward(float f); - float[] negateFloatArrayForward(float[] fa); - boolean passByValueFloatArray(); - double negateDoubleForward(double d); - double[] negateDoubleArrayForward(double[] da); - boolean passByValueDoubleArray(); -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/StandardTypesLocalService.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/StandardTypesLocalService.java deleted file mode 100644 index 0fdf69459f..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/StandardTypesLocalService.java +++ /dev/null @@ -1,78 +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 org.apache.tuscany.sca.itest.databindings.jaxb; - -import java.awt.Image; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.net.URI; -import java.util.Calendar; -import java.util.Date; -import java.util.UUID; - -import javax.activation.DataHandler; -import javax.xml.datatype.Duration; -import javax.xml.datatype.XMLGregorianCalendar; -import javax.xml.namespace.QName; -import javax.xml.transform.Source; - - -/** - * The interface for StandardTypesLocalService. - */ -public interface StandardTypesLocalService { - BigInteger getNewBigInteger(BigInteger bi); - BigInteger[] getNewBigIntegerArray(BigInteger[] bia); - - BigDecimal getNewBigDecimal(BigDecimal bd); - BigDecimal[] getNewBigDecimalArray(BigDecimal[] bda); - - Calendar getNewCalendar(Calendar c); - Calendar[] getNewCalendarArray(Calendar[] ca); - - Date getNewDate(Date d); - Date[] getNewDateArray(Date[] da); - - QName getNewQName(QName qname); - QName[] getNewQNameArray(QName[] qnames); - - URI getNewURI(URI uri); - URI[] getNewURIArray(URI[] uris); - - XMLGregorianCalendar getNewXMLGregorianCalendar(XMLGregorianCalendar xgcal); - XMLGregorianCalendar[] getNewXMLGregorianCalendarArray(XMLGregorianCalendar[] xgcal); - - Duration getNewDuration(Duration d); - Duration[] getNewDurationArray(Duration[] da); - - Object getNewObject(Object obj); - Object[] getNewObjectArray(Object[] objs); - - Image getNewImage(Image img); - Image[] getNewImageArray(Image[] imgs); - - DataHandler getNewDataHandler(DataHandler dh); - DataHandler[] getNewDataHandlerArray(DataHandler[] dha); - - Source getNewSource(Source src); - Source[] getNewSourceArray(Source[] srcs); - - UUID getNewUUID(UUID uuid); - UUID[] getNewUUIDArray(UUID[] uuids); -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/StandardTypesService.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/StandardTypesService.java deleted file mode 100644 index 3b9690b7d2..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/StandardTypesService.java +++ /dev/null @@ -1,30 +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 org.apache.tuscany.sca.itest.databindings.jaxb; - -import org.oasisopen.sca.annotation.Remotable; - - - -/** - * The interface for StandardTypesService. - */ -@Remotable -public interface StandardTypesService extends StandardTypesLocalService{ -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/StandardTypesServiceClient.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/StandardTypesServiceClient.java deleted file mode 100644 index 351d9df0cb..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/StandardTypesServiceClient.java +++ /dev/null @@ -1,79 +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 org.apache.tuscany.sca.itest.databindings.jaxb; - -import java.awt.Image; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.net.URI; -import java.util.Calendar; -import java.util.Date; -import java.util.UUID; - -import javax.activation.DataHandler; -import javax.xml.datatype.Duration; -import javax.xml.datatype.XMLGregorianCalendar; -import javax.xml.namespace.QName; -import javax.xml.transform.Source; - - -/** - * The interface for StandardTypesServiceClient. - */ -public interface StandardTypesServiceClient { - BigInteger getNewBigIntegerForward(BigInteger bi); - BigInteger[] getNewBigIntegerArrayForward(BigInteger[] bia); - - BigDecimal getNewBigDecimalForward(BigDecimal bd); - BigDecimal[] getNewBigDecimalArrayForward(BigDecimal[] bda); - - Calendar getNewCalendarForward(Calendar c); - Calendar[] getNewCalendarArrayForward(Calendar[] ca); - - Date getNewDateForward(Date d); - Date[] getNewDateArrayForward(Date[] da); - - QName getNewQNameForward(QName qname); - QName[] getNewQNameArrayForward(QName[] qnames); - - URI getNewURIForward(URI uri); - URI[] getNewURIArrayForward(URI[] uris); - - XMLGregorianCalendar getNewXMLGregorianCalendarForward(XMLGregorianCalendar xgcal); - XMLGregorianCalendar[] getNewXMLGregorianCalendarArrayForward(XMLGregorianCalendar[] xgcals); - - Duration getNewDurationForward(Duration d); - Duration[] getNewDurationArrayForward(Duration[] da); - - Object getNewObjectForward(Object obj); - Object[] getNewObjectArrayForward(Object[] objs); - - Image getNewImageForward(Image img); - Image[] getNewImageArrayForward(Image[] imgs); - - DataHandler getNewDataHandlerForward(DataHandler dh); - DataHandler[] getNewDataHandlerArrayForward(DataHandler[] dha); - - Source getNewSourceForward(Source src); - Source[] getNewSourceArrayForward(Source[] srcs); - - UUID getNewUUIDForward(UUID uuid); - UUID[] getNewUUIDArrayForward(UUID[] uuids); -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/AClientServiceImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/AClientServiceImpl.java deleted file mode 100644 index 2f3bd3f2cb..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/AClientServiceImpl.java +++ /dev/null @@ -1,38 +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 org.apache.tuscany.sca.itest.databindings.jaxb.impl; - -import org.apache.tuscany.sca.itest.databindings.jaxb.AClientService; -import org.apache.tuscany.sca.itest.databindings.jaxb.AService; -import org.oasisopen.sca.annotation.Reference; -import org.oasisopen.sca.annotation.Service; - -/** - * This class implements AService. - */ -@Service(AClientService.class) -public class AClientServiceImpl implements AClientService { - - @Reference - protected AService aService; - - public String getGreetingsForward(String name) { - return aService.getGreetings(name); - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/AServiceImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/AServiceImpl.java deleted file mode 100644 index 078be8896e..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/AServiceImpl.java +++ /dev/null @@ -1,33 +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 org.apache.tuscany.sca.itest.databindings.jaxb.impl; - -import org.apache.tuscany.sca.itest.databindings.jaxb.AService; -import org.oasisopen.sca.annotation.Service; - -/** - * This class implements AService. - */ -@Service(AService.class) -public class AServiceImpl implements AService { - - public String getGreetings(String name) { - return "Hello " + name; - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/GenericsLocalServiceClientImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/GenericsLocalServiceClientImpl.java deleted file mode 100644 index 4d451e6d32..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/GenericsLocalServiceClientImpl.java +++ /dev/null @@ -1,77 +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 org.apache.tuscany.sca.itest.databindings.jaxb.impl; - -import org.apache.tuscany.sca.itest.databindings.jaxb.Bean1; -import org.apache.tuscany.sca.itest.databindings.jaxb.Bean2; -import org.apache.tuscany.sca.itest.databindings.jaxb.Bean3; -import org.apache.tuscany.sca.itest.databindings.jaxb.GenericsLocalService; -import org.apache.tuscany.sca.itest.databindings.jaxb.GenericsServiceClient; -import org.oasisopen.sca.annotation.Reference; -import org.oasisopen.sca.annotation.Service; - -/** - * An implementation of GenericsLocalServiceClient. - * The client forwards the request to the service component and returns the response from the service component. - * - * @version $Rev$ $Date$ - */ -@Service(GenericsServiceClient.class) -public class GenericsLocalServiceClientImpl implements GenericsServiceClient { - - private GenericsLocalService service; - - @Reference(required=false) - protected void setGenericsLocalService(GenericsLocalService service) { - this.service = service; - } - - public Bean1 getTypeExplicitForward(Bean1 arg) { - return service.getTypeExplicit(arg); - } - - public Bean1 getTypeUnboundForward(T[] anArray) { - return service.getTypeUnbound(anArray); - } - - public Bean1 getTypeExtendsForward(T[] anArray) { - return service.getTypeExtends(anArray); - } - - public > Bean1 getRecursiveTypeBoundForward(T[] anArray) { - return service.getRecursiveTypeBound(anArray); - } - - public Bean1 getWildcardUnboundForward(Bean1 arg) { - return service.getWildcardUnbound(arg); - } - - public Bean1 getWildcardSuperForward(Bean1 arg) { - return service.getWildcardSuper(arg); - } - - public Bean1 getWildcardExtendsForward(Bean1 arg) { - return service.getWildcardExtends(arg); - } - - public Bean2 getPolymorphicForward(Bean2 arg) { - return service.getPolymorphic(arg); - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/GenericsServiceClientImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/GenericsServiceClientImpl.java deleted file mode 100644 index d520e64881..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/GenericsServiceClientImpl.java +++ /dev/null @@ -1,40 +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 org.apache.tuscany.sca.itest.databindings.jaxb.impl; - -import org.apache.tuscany.sca.itest.databindings.jaxb.GenericsService; -import org.apache.tuscany.sca.itest.databindings.jaxb.GenericsServiceClient; -import org.oasisopen.sca.annotation.Reference; -import org.oasisopen.sca.annotation.Service; - -/** - * An implementation of GenericsServiceClient. - * The client forwards the request to the service component and returns the response from the service component. - * - * @version $Rev$ $Date$ - */ -@Service(GenericsServiceClient.class) -public class GenericsServiceClientImpl extends GenericsLocalServiceClientImpl { - - @Reference - public void setGenericsService(GenericsService service) { - super.setGenericsLocalService(service); - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/GenericsServiceImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/GenericsServiceImpl.java deleted file mode 100644 index 460f6dd1a4..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/GenericsServiceImpl.java +++ /dev/null @@ -1,69 +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 org.apache.tuscany.sca.itest.databindings.jaxb.impl; - -import org.apache.tuscany.sca.itest.databindings.jaxb.Bean1; -import org.apache.tuscany.sca.itest.databindings.jaxb.Bean2; -import org.apache.tuscany.sca.itest.databindings.jaxb.Bean3; -import org.apache.tuscany.sca.itest.databindings.jaxb.GenericsLocalService; -import org.apache.tuscany.sca.itest.databindings.jaxb.GenericsService; -import org.oasisopen.sca.annotation.Service; - -/** - * An implementation of GenericsService. - * This implementation provides both a local and a remotable service. - * - * @version $Rev$ $Date$ - */ -@Service(value={GenericsService.class, GenericsLocalService.class}) -public class GenericsServiceImpl implements GenericsService, GenericsLocalService { - - public Bean1 getTypeExplicit(Bean1 arg) { - return GenericsTransformer.getTypeExplicit(arg); - } - - public Bean1 getTypeUnbound(T[] anArray) { - return GenericsTransformer.getTypeUnbound(anArray); - } - - public Bean1 getTypeExtends(T[] anArray) { - return GenericsTransformer.getTypeExtends(anArray); - } - - public > Bean1 getRecursiveTypeBound(T[] anArray) { - return GenericsTransformer.getRecursiveTypeBound(anArray); - } - - public Bean1 getWildcardUnbound(Bean1 arg) { - return GenericsTransformer.getWildcardUnbound(arg); - } - - public Bean1 getWildcardSuper(Bean1 arg) { - return GenericsTransformer.getWildcardSuper(arg); - } - - public Bean1 getWildcardExtends(Bean1 arg) { - return GenericsTransformer.getWildcardExtends(arg); - } - - public Bean2 getPolymorphic(Bean2 arg) { - return GenericsTransformer.getPolymorphic(arg); - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/GenericsTransformer.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/GenericsTransformer.java deleted file mode 100644 index 858b8da59a..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/GenericsTransformer.java +++ /dev/null @@ -1,125 +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 org.apache.tuscany.sca.itest.databindings.jaxb.impl; - -import org.apache.tuscany.sca.itest.databindings.jaxb.Bean1; -import org.apache.tuscany.sca.itest.databindings.jaxb.Bean10; -import org.apache.tuscany.sca.itest.databindings.jaxb.Bean11; -import org.apache.tuscany.sca.itest.databindings.jaxb.Bean2; -import org.apache.tuscany.sca.itest.databindings.jaxb.Bean3; -import org.apache.tuscany.sca.itest.databindings.jaxb.Bean31; - - -/** - * GenericsTransformer class that provide for transforming input provided to GenericsService methods. - * - * @version $Rev$ $Date$ - */ -public class GenericsTransformer { - - public static Bean1 getTypeExplicit(Bean1 arg) { - return new Bean1(arg.getItem() == null ? null : arg.getItem()+" AA"); - } - - public static Bean1 getTypeUnbound(T[] arg) { - if(arg instanceof String[]) { - return new Bean1(arg[0]); - } else if(arg instanceof Integer[]){ - return new Bean1(arg[1]); - } else { - return new Bean1(arg[2]); - } - } - - public static Bean1 getTypeExtends(T[] arg) { - if(arg instanceof Bean3[]) { - return new Bean1(arg[0]); - } else if(arg instanceof Bean31[]) { - return new Bean1(arg[1]); - } else { - return new Bean1(arg[2]); - } - } - - public static > Bean1 getRecursiveTypeBound(T[] arg) { - if(arg instanceof Bean10[]) { - return new Bean1(arg[0]); - } else if(arg instanceof Bean11[]) { - return new Bean1(arg[1]); - } else { - return new Bean1(arg[2]); - } - } - - public static Bean1 getWildcardUnbound(Bean1 arg) { - if(arg.getItem() instanceof String) { - Bean1 temp = new Bean1(); - temp.setItem("Hello "+arg.getItem()); - return temp; - } else if(arg.getItem() instanceof Integer) { - Bean1 temp = new Bean1(); - temp.setItem(10+(Integer)arg.getItem()); - return temp; - } else { - return new Bean1(arg.toString()); - } - } - - public static Bean1 getWildcardSuper(Bean1 arg) { - Object item = arg.getItem(); - if(item instanceof Bean3) { - Bean3 temp = new Bean3(); - temp.setName("Hello " + ((Bean3)item).getName()); - temp.setAddress("New "+((Bean3)item).getAddress()); - return new Bean1(temp); - } else if(item instanceof Bean2) { - Bean2 temp = new Bean2(); - temp.setName("Hello " + ((Bean3)item).getName()); - return new Bean1(temp); - } else { - Bean2 temp = new Bean2(); - temp.setName(item.toString()); - return new Bean1(temp); - } - } - - public static Bean1 getWildcardExtends(Bean1 arg) { - Bean2 item = arg.getItem(); - if(item instanceof Bean3) { - Bean3 temp = new Bean3(); - temp.setName("Hello "+item.getName()); - temp.setAddress("New "+((Bean3)item).getAddress()); - return new Bean1(temp); - } else if(item instanceof Bean31) { - Bean31 temp = new Bean31(); - temp.setName("Hello "+item.getName()); - temp.setAddress("New "+((Bean31)item).getAddress()); - return new Bean1(temp); - } else { - Bean2 temp = new Bean2(); - temp.setName("Hello "+item.getName()); - return new Bean1(temp); - } - } - - public static Bean2 getPolymorphic(Bean2 arg) { - return arg; - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/HelloLocalServiceSimpleClientImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/HelloLocalServiceSimpleClientImpl.java deleted file mode 100644 index 6c7c82a4ba..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/HelloLocalServiceSimpleClientImpl.java +++ /dev/null @@ -1,73 +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 org.apache.tuscany.sca.itest.databindings.jaxb.impl; - -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -import org.apache.tuscany.sca.itest.databindings.jaxb.HelloLocalServiceSimple; -import org.apache.tuscany.sca.itest.databindings.jaxb.HelloServiceSimpleClient; -import org.oasisopen.sca.annotation.Reference; -import org.oasisopen.sca.annotation.Service; - -/** - * An implementation of HelloServiceSimpleClient. - * The client forwards the request to the service component and returns the response from the service component. - */ -@Service(HelloServiceSimpleClient.class) -public class HelloLocalServiceSimpleClientImpl implements HelloServiceSimpleClient { - - private HelloLocalServiceSimple service; - - @Reference(required=false) - protected void setHelloLocalServiceSimple(HelloLocalServiceSimple service) { - this.service = service; - } - - public String getGreetingsForward(String name) { - return service.getGreetings(name); - } - - public String[] getGreetingsArrayForward(String[] names) { - return service.getGreetingsArray(names); - } - - public List getGreetingsListForward(List names) { - return service.getGreetingsList(names); - } - - public Map getGreetingsMapForward(Map namesMap) { - return service.getGreetingsMap(namesMap); - } - - public ArrayList getGreetingsArrayListForward(ArrayList names) { - return service.getGreetingsArrayList(names); - } - - public HashMap getGreetingsHashMapForward(HashMap namesMap) { - return service.getGreetingsHashMap(namesMap); - } - - public String getGreetingsVarArgsForward(String... names) { - return service.getGreetingsVarArgs(names[0], names[1], names[2]); - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/HelloServiceSimpleClientImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/HelloServiceSimpleClientImpl.java deleted file mode 100644 index 44b6e9d906..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/HelloServiceSimpleClientImpl.java +++ /dev/null @@ -1,38 +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 org.apache.tuscany.sca.itest.databindings.jaxb.impl; - -import org.apache.tuscany.sca.itest.databindings.jaxb.HelloServiceSimple; -import org.apache.tuscany.sca.itest.databindings.jaxb.HelloServiceSimpleClient; -import org.oasisopen.sca.annotation.Reference; -import org.oasisopen.sca.annotation.Service; - -/** - * An implementation of HelloServiceSimpleClient. - * The client forwards the request to the service component and returns the response from the service component. - */ -@Service(HelloServiceSimpleClient.class) -public class HelloServiceSimpleClientImpl extends HelloLocalServiceSimpleClientImpl { - - @Reference - public void setHelloServiceSimple(HelloServiceSimple service) { - super.setHelloLocalServiceSimple(service); - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/HelloServiceSimpleImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/HelloServiceSimpleImpl.java deleted file mode 100644 index e0b81152ad..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/HelloServiceSimpleImpl.java +++ /dev/null @@ -1,86 +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 org.apache.tuscany.sca.itest.databindings.jaxb.impl; - -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -import org.apache.tuscany.sca.itest.databindings.jaxb.HelloLocalServiceSimple; -import org.apache.tuscany.sca.itest.databindings.jaxb.HelloServiceSimple; -import org.oasisopen.sca.annotation.Service; - -/** - * An implementation of HelloServiceSimple. - * The implementation provides both a local and a remotable service. - */ -@Service(value={HelloServiceSimple.class, HelloLocalServiceSimple.class}) -public class HelloServiceSimpleImpl implements HelloServiceSimple { - public String getGreetings(String name) { - return "Hello " + name; - } - - public String[] getGreetingsArray(String[] names) { - String[] resps = new String[names.length]; - for (int i = 0; i < names.length; ++i) { - resps[i] = "Hello " + names[i]; - } - return resps; - } - - public List getGreetingsList(List names) { - List resps = new ArrayList(); - for (int i = 0; i < names.size(); ++i) { - resps.add("Hello " + names.get(i)); - } - return resps; - } - - public ArrayList getGreetingsArrayList(ArrayList names) { - ArrayList resps = new ArrayList(); - for (int i = 0; i < names.size(); ++i) { - resps.add("Hello " + names.get(i)); - } - return resps; - } - - public Map getGreetingsMap(Map namesMap) { - for (Map.Entry entry : namesMap.entrySet()) { - entry.setValue("Hello " + entry.getKey()); - } - return namesMap; - } - - public HashMap getGreetingsHashMap(HashMap namesMap) { - for (Map.Entry entry : namesMap.entrySet()) { - entry.setValue("Hello " + entry.getKey()); - } - return namesMap; - } - - public String getGreetingsVarArgs(String... names) { - String resp = "Hello"; - for(int i = 0; i < names.length; ++i) { - resp += (" "+names[i]); - } - return resp; - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/PrimitivesLocalServiceClientImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/PrimitivesLocalServiceClientImpl.java deleted file mode 100644 index eea19521c4..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/PrimitivesLocalServiceClientImpl.java +++ /dev/null @@ -1,138 +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 org.apache.tuscany.sca.itest.databindings.jaxb.impl; - -import org.apache.tuscany.sca.itest.databindings.jaxb.PrimitivesLocalService; -import org.apache.tuscany.sca.itest.databindings.jaxb.PrimitivesServiceClient; -import org.oasisopen.sca.annotation.Reference; -import org.oasisopen.sca.annotation.Service; - -/** - * An implementation of PrimitivesLocalServiceClient. - * The client forwards the request to the service component and returns the response from the service component. - */ -@Service(PrimitivesServiceClient.class) -public class PrimitivesLocalServiceClientImpl implements PrimitivesServiceClient { - - private PrimitivesLocalService service; - - @Reference(required=false) - protected void setPrimitivesLocalService(PrimitivesLocalService service) { - this.service = service; - } - - public boolean negateBooleanForward(boolean flag) { - return service.negateBoolean(flag); - } - - public boolean[] negateBooleanArrayForward(boolean[] flags) { - return service.negateBooleanArray(flags); - } - - public boolean passByValueBooleanArray() { - boolean[] req = new boolean[2]; - boolean[] resp = service.identityBooleanArray(req); - return req != resp; - } - - public byte negateByteForward(byte b) { - return service.negateByte(b); - } - - public byte[] negateByteArrayForward(byte[] ba) { - return service.negateByteArray(ba); - } - - public boolean passByValueByteArray() { - byte[] req = new byte[2]; - byte[] resp = service.identityByteArray(req); - return req != resp; - } - - public short negateShortForward(short s) { - return service.negateShort(s); - } - - public short[] negateShortArrayForward(short[] s) { - return service.negateShortArray(s); - } - - public boolean passByValueShortArray() { - short[] req = new short[2]; - short[] resp = service.identityShortArray(req); - return req != resp; - } - - public int negateIntForward(int i) { - return service.negateInt(i); - } - - public int[] negateIntArrayForward(int[] ia) { - return service.negateIntArray(ia); - } - - public boolean passByValueIntArray() { - int[] req = new int[2]; - int[] resp = service.identityIntArray(req); - return req != resp; - } - - public long negateLongForward(long l) { - return service.negateLong(l); - } - - public long[] negateLongArrayForward(long[] la) { - return service.negateLongArray(la); - } - - public boolean passByValueLongArray() { - long[] req = new long[2]; - long[] resp = service.identityLongArray(req); - return req != resp; - } - - public float negateFloatForward(float f) { - return service.negateFloat(f); - } - - public float[] negateFloatArrayForward(float[] fa) { - return service.negateFloatArray(fa); - } - - public boolean passByValueFloatArray() { - float[] req = new float[2]; - float[] resp = service.identityFloatArray(req); - return req != resp; - } - - public double negateDoubleForward(double d) { - return service.negateDouble(d); - } - - public double[] negateDoubleArrayForward(double[] da) { - return service.negateDoubleArray(da); - } - - public boolean passByValueDoubleArray() { - double[] req = new double[2]; - double[] resp = service.identityDoubleArray(req); - return req != resp; - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/PrimitivesServiceClientImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/PrimitivesServiceClientImpl.java deleted file mode 100644 index 263d1212ca..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/PrimitivesServiceClientImpl.java +++ /dev/null @@ -1,38 +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 org.apache.tuscany.sca.itest.databindings.jaxb.impl; - -import org.apache.tuscany.sca.itest.databindings.jaxb.PrimitivesService; -import org.apache.tuscany.sca.itest.databindings.jaxb.PrimitivesServiceClient; -import org.oasisopen.sca.annotation.Reference; -import org.oasisopen.sca.annotation.Service; - -/** - * An implementation of PrimitivesServiceClient. - * The client forwards the request to the service component and returns the response from the service component. - */ -@Service(PrimitivesServiceClient.class) -public class PrimitivesServiceClientImpl extends PrimitivesLocalServiceClientImpl { - - @Reference - public void setPrimitivesService(PrimitivesService service) { - super.setPrimitivesLocalService(service); - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/PrimitivesServiceImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/PrimitivesServiceImpl.java deleted file mode 100644 index 182ccf0f83..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/PrimitivesServiceImpl.java +++ /dev/null @@ -1,151 +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 org.apache.tuscany.sca.itest.databindings.jaxb.impl; - -import org.apache.tuscany.sca.itest.databindings.jaxb.PrimitivesLocalService; -import org.apache.tuscany.sca.itest.databindings.jaxb.PrimitivesService; -import org.oasisopen.sca.annotation.Service; - -/** - * An implementation of PrimitivesService. - * This implementation provides both a local and a remotable service. - */ -@Service(value={PrimitivesService.class, PrimitivesLocalService.class}) -public class PrimitivesServiceImpl implements PrimitivesService, PrimitivesLocalService { - - public boolean negateBoolean(boolean flag) { - return !flag; - } - - public boolean[] negateBooleanArray(boolean[] flags) { - boolean[] resp = new boolean[flags.length]; - - for(int i = 0; i < flags.length; ++i) { - resp[i] = !flags[i]; - } - return resp; - } - - public boolean[] identityBooleanArray(boolean[] flags) { - return flags; - } - - public byte negateByte(byte b) { - return (byte)-b; - } - - public byte[] negateByteArray(byte[] ba) { - byte[] resp = new byte[ba.length]; - - for(int i = 0; i < ba.length; ++i) { - resp[i] = (byte)-ba[i]; - } - return resp; - } - - public byte[] identityByteArray(byte[] ba) { - return ba; - } - - public short negateShort(short s) { - return (short)-s; - } - - public short[] negateShortArray(short[] s) { - short[] resp = new short[s.length]; - - for(int i = 0; i < s.length; ++i) { - resp[i] = (short)-s[i]; - } - return resp; - } - - public short[] identityShortArray(short[] sa) { - return sa; - } - - public int negateInt(int i) { - return -i; - } - - public int[] negateIntArray(int[] ia) { - int[] resp = new int[ia.length]; - - for(int i = 0; i < ia.length; ++i) { - resp[i] = -ia[i]; - } - return resp; - } - - public int[] identityIntArray(int[] ia) { - return ia; - } - - public long negateLong(long l) { - return -l; - } - - public long[] negateLongArray(long[] la) { - long[] resp = new long[la.length]; - - for(int i = 0; i < la.length; ++i) { - resp[i] = -la[i]; - } - return resp; - } - - public long[] identityLongArray(long[] la) { - return la; - } - - public float negateFloat(float f) { - return -f; - } - - public float[] negateFloatArray(float[] fa) { - float[] resp = new float[fa.length]; - - for(int i = 0; i < fa.length; ++i) { - resp[i] = -fa[i]; - } - return resp; - } - - public float[] identityFloatArray(float[] fa) { - return fa; - } - - public double negateDouble(double d) { - return -d; - } - - public double[] negateDoubleArray(double[] da) { - double[] resp = new double[da.length]; - - for(int i = 0; i < da.length; ++i) { - resp[i] = -da[i]; - } - return resp; - } - - public double[] identityDoubleArray(double[] da) { - return da; - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/StandardTypesLocalServiceClientImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/StandardTypesLocalServiceClientImpl.java deleted file mode 100644 index 3ceee3c4b1..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/StandardTypesLocalServiceClientImpl.java +++ /dev/null @@ -1,157 +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 org.apache.tuscany.sca.itest.databindings.jaxb.impl; - -import java.awt.Image; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.net.URI; -import java.util.Calendar; -import java.util.Date; -import java.util.UUID; - -import javax.activation.DataHandler; -import javax.xml.datatype.Duration; -import javax.xml.datatype.XMLGregorianCalendar; -import javax.xml.namespace.QName; -import javax.xml.transform.Source; - -import org.apache.tuscany.sca.itest.databindings.jaxb.StandardTypesLocalService; -import org.apache.tuscany.sca.itest.databindings.jaxb.StandardTypesServiceClient; -import org.oasisopen.sca.annotation.Reference; -import org.oasisopen.sca.annotation.Service; - -/** - * An implementation of StandardTypesLocalServiceClient. - * The client forwards the request to the service component and returns the response from the service component. - */ -@Service(StandardTypesServiceClient.class) -public class StandardTypesLocalServiceClientImpl implements StandardTypesServiceClient { - - private StandardTypesLocalService service; - - @Reference(required=false) - protected void setStandardTypesLocalService(StandardTypesLocalService service) { - this.service = service; - } - - public BigInteger getNewBigIntegerForward(BigInteger bi) { - return service.getNewBigInteger(bi); - } - - public BigInteger[] getNewBigIntegerArrayForward(BigInteger[] bia) { - return service.getNewBigIntegerArray(bia); - } - - public BigDecimal getNewBigDecimalForward(BigDecimal bd) { - return service.getNewBigDecimal(bd); - } - - public BigDecimal[] getNewBigDecimalArrayForward(BigDecimal[] bda) { - return service.getNewBigDecimalArray(bda); - } - public Calendar getNewCalendarForward(Calendar c) { - return service.getNewCalendar(c); - } - public Calendar[] getNewCalendarArrayForward(Calendar[] ca) { - return service.getNewCalendarArray(ca); - } - - public Date getNewDateForward(Date d) { - return service.getNewDate(d); - } - - public Date[] getNewDateArrayForward(Date[] da) { - return service.getNewDateArray(da); - } - - public QName getNewQNameForward(QName qname) { - return service.getNewQName(qname); - } - - public QName[] getNewQNameArrayForward(QName[] qnames) { - return service.getNewQNameArray(qnames); - } - - public URI getNewURIForward(URI uri) { - return service.getNewURI(uri); - } - - public URI[] getNewURIArrayForward(URI[] uris) { - return service.getNewURIArray(uris); - } - - public XMLGregorianCalendar getNewXMLGregorianCalendarForward(XMLGregorianCalendar xgcal) { - return service.getNewXMLGregorianCalendar(xgcal); - } - - public XMLGregorianCalendar[] getNewXMLGregorianCalendarArrayForward(XMLGregorianCalendar[] xgcals) { - return service.getNewXMLGregorianCalendarArray(xgcals); - } - - public Duration getNewDurationForward(Duration d) { - return service.getNewDuration(d); - } - - public Duration[] getNewDurationArrayForward(Duration[] da) { - return service.getNewDurationArray(da); - } - - public Object getNewObjectForward(Object obj) { - return service.getNewObject(obj); - } - - public Object[] getNewObjectArrayForward(Object[] objs) { - return service.getNewObjectArray(objs); - } - - public Image getNewImageForward(Image img) { - return service.getNewImage(img); - } - - public Image[] getNewImageArrayForward(Image[] imgs) { - return service.getNewImageArray(imgs); - } - - public DataHandler getNewDataHandlerForward(DataHandler dh) { - return service.getNewDataHandler(dh); - } - - public DataHandler[] getNewDataHandlerArrayForward(DataHandler[] dha) { - return service.getNewDataHandlerArray(dha); - } - - - public Source getNewSourceForward(Source src) { - return service.getNewSource(src); - } - - public Source[] getNewSourceArrayForward(Source[] srcs) { - return service.getNewSourceArray(srcs); - } - - public UUID getNewUUIDForward(UUID uuid) { - return service.getNewUUID(uuid); - } - - public UUID[] getNewUUIDArrayForward(UUID[] uuids) { - return service.getNewUUIDArray(uuids); - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/StandardTypesServiceClientImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/StandardTypesServiceClientImpl.java deleted file mode 100644 index 6aefb05c83..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/StandardTypesServiceClientImpl.java +++ /dev/null @@ -1,38 +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 org.apache.tuscany.sca.itest.databindings.jaxb.impl; - -import org.apache.tuscany.sca.itest.databindings.jaxb.StandardTypesService; -import org.apache.tuscany.sca.itest.databindings.jaxb.StandardTypesServiceClient; -import org.oasisopen.sca.annotation.Reference; -import org.oasisopen.sca.annotation.Service; - -/** - * An implementation of StandardTypesServiceClient. - * The client forwards the request to the service component and returns the response from the service component. - */ -@Service(StandardTypesServiceClient.class) -public class StandardTypesServiceClientImpl extends StandardTypesLocalServiceClientImpl { - - @Reference - public void setStandardTypesService(StandardTypesService service) { - super.setStandardTypesLocalService(service); - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/StandardTypesServiceImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/StandardTypesServiceImpl.java deleted file mode 100644 index 4e40f006d6..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/StandardTypesServiceImpl.java +++ /dev/null @@ -1,208 +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 org.apache.tuscany.sca.itest.databindings.jaxb.impl; - -import java.awt.Image; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.net.URI; -import java.util.Calendar; -import java.util.Date; -import java.util.UUID; - -import javax.activation.DataHandler; -import javax.xml.datatype.Duration; -import javax.xml.datatype.XMLGregorianCalendar; -import javax.xml.namespace.QName; -import javax.xml.transform.Source; - -import org.apache.tuscany.sca.itest.databindings.jaxb.StandardTypesLocalService; -import org.apache.tuscany.sca.itest.databindings.jaxb.StandardTypesService; -import org.oasisopen.sca.annotation.Service; - -/** - * An implementation of StandardTypesService. - * This implementation provides both a local and a remotable service. - */ -@Service(value={StandardTypesService.class, StandardTypesLocalService.class}) -public class StandardTypesServiceImpl implements StandardTypesService, StandardTypesLocalService { - - public BigInteger getNewBigInteger(BigInteger bi) { - return bi.negate(); - } - - public BigInteger[] getNewBigIntegerArray(BigInteger[] bia) { - BigInteger[] resp = new BigInteger[bia.length]; - for(int i = 0; i < bia.length; ++i) { - resp[i] = bia[i].negate(); - } - return resp; - } - - public BigDecimal getNewBigDecimal(BigDecimal bd) { - return bd.negate(); - } - - public BigDecimal[] getNewBigDecimalArray(BigDecimal[] bda) { - BigDecimal[] resp = new BigDecimal[bda.length]; - for(int i = 0; i < bda.length; ++i) { - resp[i] = bda[i].negate(); - } - return resp; - } - - public Calendar getNewCalendar(Calendar c) { - Calendar resp = (Calendar)c.clone(); - resp.add(Calendar.DAY_OF_MONTH, 5); - return resp; - } - - public Calendar[] getNewCalendarArray(Calendar[] ca) { - Calendar[] resp = new Calendar[ca.length]; - for(int i = 0; i < ca.length; ++i) { - resp[i] = getNewCalendar(ca[i]); - } - return resp; - } - - public Date getNewDate(Date d) { - return new Date(d.getTime() + 5*24*60*60*1000); - } - - public Date[] getNewDateArray(Date[] da) { - Date[] resp = new Date[da.length]; - for(int i = 0; i < da.length; ++i) { - resp[i] = getNewDate(da[i]); - } - return resp; - } - - public QName getNewQName(QName qname) { - return new QName(qname.getNamespaceURI()+"q", qname.getLocalPart()+"q", qname.getPrefix()+"q"); - - } - - public QName[] getNewQNameArray(QName[] qnames) { - QName[] resp = new QName[qnames.length]; - for(int i = 0; i < qnames.length; ++i) { - resp[i] = getNewQName(qnames[i]); - } - return resp; - } - - public URI getNewURI(URI uri) { - return uri.resolve("uri"); - } - - public URI[] getNewURIArray(URI[] uris) { - URI[] resp = new URI[uris.length]; - for(int i = 0; i < uris.length; ++i) { - resp[i] = getNewURI(uris[i]); - } - return resp; - } - - public XMLGregorianCalendar getNewXMLGregorianCalendar(XMLGregorianCalendar xgcal) { - xgcal = (XMLGregorianCalendar)xgcal.clone(); - xgcal.setDay(xgcal.getDay()+5); - return xgcal; - } - - public XMLGregorianCalendar[] getNewXMLGregorianCalendarArray(XMLGregorianCalendar[] xgcals) { - XMLGregorianCalendar[] resp = new XMLGregorianCalendar[xgcals.length]; - for(int i = 0; i < xgcals.length; ++i) { - resp[i] = getNewXMLGregorianCalendar(xgcals[i]); - } - return resp; - } - - public Duration getNewDuration(Duration d) { - return d.negate(); - } - - public Duration[] getNewDurationArray(Duration[] da) { - Duration[] resp = new Duration[da.length]; - for(int i = 0; i < da.length; ++i) { - resp[i] = da[i].negate(); - } - return resp; - } - - public Object getNewObject(Object obj) { - return StandardTypesTransformer.getNewObject(obj); - } - - public Object[] getNewObjectArray(Object[] objs) { - Object[] resp = new Object[objs.length]; - for(int i = 0; i < objs.length; ++i) { - resp[i] = getNewObject(objs[i]); - } - return resp; - } - - public Image getNewImage(Image img) { - return StandardTypesTransformer.getNewImage(img); - } - - public Image[] getNewImageArray(Image[] imgs) { - Image[] resp = new Image[imgs.length]; - for(int i = 0; i < imgs.length; ++i) { - resp[i] = getNewImage(imgs[i]); - } - return resp; - } - - public DataHandler getNewDataHandler(DataHandler dh) { - // FIXME: transform the input - return dh; - } - - public DataHandler[] getNewDataHandlerArray(DataHandler[] dha) { - DataHandler[] resp = new DataHandler[dha.length]; - for(int i = 0; i < dha.length; ++i) { - resp[i] = dha[i]; - } - return resp; - } - - public Source getNewSource(Source src) { - return StandardTypesTransformer.getNewSource(src); - } - - public Source[] getNewSourceArray(Source[] srcs) { - Source[] resp = new Source[srcs.length]; - for(int i = 0; i < srcs.length; ++i) { - resp[i] = getNewSource(srcs[i]); - } - return resp; - } - - public UUID getNewUUID(UUID uuid) { - return UUID.fromString(uuid.toString()+"AAA"); - } - - public UUID[] getNewUUIDArray(UUID[] uuids) { - UUID[] resp = new UUID[uuids.length]; - for(int i = 0; i < uuids.length; ++i) { - resp[i] = getNewUUID(uuids[i]); - } - return resp; - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/StandardTypesTransformer.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/StandardTypesTransformer.java deleted file mode 100644 index 68510b4b03..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/StandardTypesTransformer.java +++ /dev/null @@ -1,144 +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 org.apache.tuscany.sca.itest.databindings.jaxb.impl; - -import java.awt.Image; -import java.io.ByteArrayInputStream; -import java.io.ByteArrayOutputStream; -import java.io.CharArrayReader; -import java.io.CharArrayWriter; -import java.io.IOException; -import java.io.InputStream; -import java.io.Reader; - -import javax.xml.transform.Source; -import javax.xml.transform.dom.DOMSource; -import javax.xml.transform.sax.SAXSource; -import javax.xml.transform.stream.StreamSource; - -import org.xml.sax.InputSource; - - - -/** - * StandardTypesTransformer class that provide for transforming input provided to StandardTypesService methods. - * - * @version $Rev$ $Date$ - */ -public class StandardTypesTransformer { - - public static Object getNewObject(Object obj) { - if(obj instanceof String) { - return "Hello "+obj; - } else if(obj instanceof Integer) { - return new Integer(-((Integer)obj).intValue()); - } else if(obj instanceof Double) { - return new Double(-((Double)obj).doubleValue()); - } - - return obj; - } - - /** - * Returns a copy of the source object if the input is DOMSource, SAXSource or StreamSource. - * Returns the input object as is for other types. - */ - public static Source getNewSource(Source src) { - Source ret = null; - if(src instanceof DOMSource) { - DOMSource dsrc = (DOMSource)src; - ret = new DOMSource(dsrc.getNode() != null ? dsrc.getNode().cloneNode(true) : null); - } else if(src instanceof SAXSource) { - SAXSource ssrc = (SAXSource)src; - if(ssrc.getInputSource().getByteStream() != null) { - InputStream inp = ssrc.getInputSource().getByteStream(); - ByteArrayOutputStream bout = new ByteArrayOutputStream(); - int b; - try { - while((b = inp.read()) != -1) { - bout.write(b); - } - } catch (IOException ignored) { - } - try { bout.close();} catch (IOException ignored) {} - try { inp.reset();} catch (IOException ignored) {} - ret = new SAXSource(new InputSource(new ByteArrayInputStream(bout.toByteArray()))); - } else if(ssrc.getInputSource().getCharacterStream() != null) { - Reader rdr = ssrc.getInputSource().getCharacterStream(); - CharArrayWriter caw = new CharArrayWriter(); - try { - int c; - while((c = rdr.read()) != -1) { - caw.append((char)c); - } - } catch (IOException ignored) { - } - caw.close(); - try{ rdr.reset();} catch(IOException ignored) {} - ret = new SAXSource(new InputSource(new CharArrayReader(caw.toCharArray()))); - } else { - ret = new SAXSource(); - } - } else if(src instanceof StreamSource) { - StreamSource ssrc = (StreamSource)src; - if(ssrc.getInputStream() != null) { - InputStream inp = ssrc.getInputStream(); - ByteArrayOutputStream bout = new ByteArrayOutputStream(); - int b; - try { - while((b = inp.read()) != -1) { - bout.write(b); - } - } catch (IOException ignored) { - } - try { bout.close();} catch (IOException ignored) {} - try { inp.reset();} catch (IOException ignored) {} - ret = new StreamSource(new ByteArrayInputStream(bout.toByteArray())); - } else if(ssrc.getReader() != null) { - Reader rdr = ssrc.getReader(); - CharArrayWriter caw = new CharArrayWriter(); - try { - int c; - while((c = rdr.read()) != -1) { - caw.append((char)c); - } - } catch (IOException ignored) { - } - caw.close(); - try{ rdr.reset();} catch(IOException ignored) {} - ret = new StreamSource(new CharArrayReader(caw.toCharArray())); - } else { - ret = new StreamSource(); - } - } - - if(ret != null) { - ret.setSystemId(src.getSystemId()); - } else { - ret = src; - } - return ret; - } - - public static Image getNewImage(Image arg) { - arg.getGraphics().drawOval(2, 2, 7, 7); - return arg; - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/main/resources/aservice.wsdl b/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/main/resources/aservice.wsdl deleted file mode 100644 index 10a242be4d..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/main/resources/aservice.wsdl +++ /dev/null @@ -1,127 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/main/resources/doclitbarewsdl.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/main/resources/doclitbarewsdl.composite deleted file mode 100644 index 0b5dacda35..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/main/resources/doclitbarewsdl.composite +++ /dev/null @@ -1,37 +0,0 @@ - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/main/resources/generics-service.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/main/resources/generics-service.composite deleted file mode 100644 index c38ee6ee78..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/main/resources/generics-service.composite +++ /dev/null @@ -1,69 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/main/resources/helloservice.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/main/resources/helloservice.composite deleted file mode 100644 index db01ba12ba..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/main/resources/helloservice.composite +++ /dev/null @@ -1,65 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/main/resources/primitivesservice.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/main/resources/primitivesservice.composite deleted file mode 100644 index 09d42b2bdf..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/main/resources/primitivesservice.composite +++ /dev/null @@ -1,66 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/main/resources/standard-types-service.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/main/resources/standard-types-service.composite deleted file mode 100644 index 5aefe799a6..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/main/resources/standard-types-service.composite +++ /dev/null @@ -1,66 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/test/java/org/apache/tuscany/sca/itest/databindings/jaxb/DatabindingTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/test/java/org/apache/tuscany/sca/itest/databindings/jaxb/DatabindingTestCase.java deleted file mode 100644 index 8bacf13063..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/test/java/org/apache/tuscany/sca/itest/databindings/jaxb/DatabindingTestCase.java +++ /dev/null @@ -1,345 +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 org.apache.tuscany.sca.itest.databindings.jaxb; - -import java.io.File; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -import junit.framework.Assert; - -import org.apache.tuscany.sca.node.Contribution; -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; -import org.junit.AfterClass; -import org.junit.BeforeClass; -import org.junit.Test; - -/** - * @version $Rev$ $Date$ - */ -public class DatabindingTestCase { - - private static Node node; - - /** - * Runs once before running the tests - */ - @BeforeClass - public static void setUp() throws Exception { - try { - NodeFactory factory = NodeFactory.newInstance(); - node = factory.createNode(new File("src/main/resources/helloservice.composite").toURI().toURL().toString(), - new Contribution("TestContribution", new File("src/main/resources/").toURI().toURL().toString())); - node.start(); - } catch(Throwable e) { - e.printStackTrace(); - } - } - - /** - * Runs once after running the tests - */ - @AfterClass - public static void tearDown() { - node.stop(); - } - - /** - * Invokes the HelloServiceSimple service using SCA binding. - * Service method invoked is getGreetings. - */ - @Test - public void testSCA() throws Exception { - HelloServiceSimpleClient helloServiceSimpleClient = node.getService(HelloServiceSimpleClient.class, "HelloServiceSimpleClientSCAComponent"); - performTest(helloServiceSimpleClient); - } - - /** - * Invokes the HelloServiceSimple service using SCA binding. - * Service method invoked is getGreetingsArray. - */ - @Test - public void testSCAArray() throws Exception { - HelloServiceSimpleClient helloServiceSimpleClient = node.getService(HelloServiceSimpleClient.class, "HelloServiceSimpleClientSCAComponent"); - performTestArray(helloServiceSimpleClient); - } - - /** - * Invokes the HelloServiceSimple service using SCA binding. - * Service method invoked is getGreetingsList. - */ - @Test - public void testSCAList() throws Exception { - HelloServiceSimpleClient helloServiceSimpleClient = node.getService(HelloServiceSimpleClient.class, "HelloServiceSimpleClientSCAComponent"); - performTestList(helloServiceSimpleClient); - } - - /** - * Invokes the HelloServiceSimple service using SCA binding. - * Service method invoked is getGreetingsArrayList. - */ - @Test - public void testSCAArrayList() throws Exception { - HelloServiceSimpleClient helloServiceSimpleClient = node.getService(HelloServiceSimpleClient.class, "HelloServiceSimpleClientSCAComponent"); - performTestArrayList(helloServiceSimpleClient); - } - - /** - * Invokes the HelloServiceSimple service using SCA binding. - * Service method invoked is getGreetingsMap. - */ - @Test - public void testSCAMap() throws Exception { - HelloServiceSimpleClient helloServiceSimpleClient = node.getService(HelloServiceSimpleClient.class, "HelloServiceSimpleClientSCAComponent"); - performTestMap(helloServiceSimpleClient); - } - - /** - * Invokes the HelloServiceSimple service using SCA binding. - * Service method invoked is getGreetingsHashMap. - */ - @Test - public void testSCAHashMap() throws Exception { - HelloServiceSimpleClient helloServiceSimpleClient = node.getService(HelloServiceSimpleClient.class, "HelloServiceSimpleClientSCAComponent"); - performTestHashMap(helloServiceSimpleClient); - } - - /** - * Invokes the HelloServiceSimple service using SCA binding. - * Service method invoked is getGreetingsVarArgs. - */ - @Test - public void testSCAVarArgs() throws Exception { - HelloServiceSimpleClient helloServiceSimpleClient = node.getService(HelloServiceSimpleClient.class, "HelloServiceSimpleClientSCAComponent"); - performTestVarArgs(helloServiceSimpleClient); - } - - /** - * Invokes the HelloServiceSimple service using WS binding. - * Service method invoked is getGreetings. - */ - @Test - public void testWS() throws Exception { - HelloServiceSimpleClient helloServiceSimpleClient = node.getService(HelloServiceSimpleClient.class, "HelloServiceSimpleClientWSComponent"); - performTest(helloServiceSimpleClient); - } - - /** - * Invokes the HelloServiceSimple service using WS binding. - * Service method invoked is getGreetingsArray. - */ - @Test - public void testWSArray() throws Exception { - HelloServiceSimpleClient helloServiceSimpleClient = node.getService(HelloServiceSimpleClient.class, "HelloServiceSimpleClientWSComponent"); - performTestArray(helloServiceSimpleClient); - } - - /** - * Invokes the HelloServiceSimple service using WS binding. - * Service method invoked is getGreetingsList. - */ - @Test - public void testWSList() throws Exception { - HelloServiceSimpleClient helloServiceSimpleClient = node.getService(HelloServiceSimpleClient.class, "HelloServiceSimpleClientWSComponent"); - performTestList(helloServiceSimpleClient); - } - - /** - * Invokes the HelloServiceSimple service using WS binding. - * Service method invoked is getGreetingsArrayList. - */ - @Test - public void testWSArrayList() throws Exception { - HelloServiceSimpleClient helloServiceSimpleClient = node.getService(HelloServiceSimpleClient.class, "HelloServiceSimpleClientWSComponent"); - performTestArrayList(helloServiceSimpleClient); - } - - /** - * Invokes the HelloServiceSimple service using WS binding. - * Service method invoked is getGreetingsMap. - */ - @Test - public void testWSMap() throws Exception { - HelloServiceSimpleClient helloServiceSimpleClient = node.getService(HelloServiceSimpleClient.class, "HelloServiceSimpleClientWSComponent"); - performTestMap(helloServiceSimpleClient); - } - - /** - * Invokes the HelloServiceSimple service using WS binding. - * Service method invoked is getGreetingsHashMap. - */ - @Test - public void testWSHashMap() throws Exception { - HelloServiceSimpleClient helloServiceSimpleClient = node.getService(HelloServiceSimpleClient.class, "HelloServiceSimpleClientWSComponent"); - performTestHashMap(helloServiceSimpleClient); - } - - /** - * Invokes the HelloServiceSimple service using WS binding. - * Service method invoked is getGreetingsVarArgs. - */ - @Test - public void testWSVarArgs() throws Exception { - HelloServiceSimpleClient helloServiceSimpleClient = node.getService(HelloServiceSimpleClient.class, "HelloServiceSimpleClientWSComponent"); - performTestVarArgs(helloServiceSimpleClient); - } - - /** - * Invokes the HelloLocalServiceSimple service using SCA binding. - * Service method invoked is getGreetings. - */ - @Test - public void testSCALocal() throws Exception { - HelloServiceSimpleClient helloServiceSimpleClient = node.getService(HelloServiceSimpleClient.class, "HelloLocalServiceSimpleClientSCAComponent"); - performTest(helloServiceSimpleClient); - } - - /** - * Invokes the HelloLocalServiceSimple service using SCA binding. - * Service method invoked is getGreetingsArray. - */ - @Test - public void testSCALocalArray() throws Exception { - HelloServiceSimpleClient helloServiceSimpleClient = node.getService(HelloServiceSimpleClient.class, "HelloLocalServiceSimpleClientSCAComponent"); - performTestArray(helloServiceSimpleClient); - } - - /** - * Invokes the HelloLocalServiceSimple service using SCA binding. - * Service method invoked is getGreetingsList. - */ - @Test - public void testSCALocalList() throws Exception { - HelloServiceSimpleClient helloServiceSimpleClient = node.getService(HelloServiceSimpleClient.class, "HelloLocalServiceSimpleClientSCAComponent"); - performTestList(helloServiceSimpleClient); - } - - /** - * Invokes the HelloLocalServiceSimple service using SCA binding. - * Service method invoked is getGreetingsArrayList. - */ - @Test - public void testSCALocalArrayList() throws Exception { - HelloServiceSimpleClient helloServiceSimpleClient = node.getService(HelloServiceSimpleClient.class, "HelloLocalServiceSimpleClientSCAComponent"); - performTestArrayList(helloServiceSimpleClient); - } - - /** - * Invokes the HelloLocalServiceSimple service using SCA binding. - * Service method invoked is getGreetingsMap. - */ - @Test - public void testSCALocalMap() throws Exception { - HelloServiceSimpleClient helloServiceSimpleClient = node.getService(HelloServiceSimpleClient.class, "HelloLocalServiceSimpleClientSCAComponent"); - performTestMap(helloServiceSimpleClient); - } - - /** - * Invokes the HelloLocalServiceSimple service using SCA binding. - * Service method invoked is getGreetingsHashMap. - */ - @Test - public void testSCALocalHashMap() throws Exception { - HelloServiceSimpleClient helloServiceSimpleClient = node.getService(HelloServiceSimpleClient.class, "HelloLocalServiceSimpleClientSCAComponent"); - performTestHashMap(helloServiceSimpleClient); - } - - /** - * Invokes the HelloLocalServiceSimple service using SCA binding. - * Service method invoked is getGreetingsVarArgs. - */ - @Test - public void testSCALocalVarArgs() throws Exception { - HelloServiceSimpleClient helloServiceSimpleClient = node.getService(HelloServiceSimpleClient.class, "HelloLocalServiceSimpleClientSCAComponent"); - performTestVarArgs(helloServiceSimpleClient); - } - - private void performTest(HelloServiceSimpleClient helloServiceSimpleClient) { - String name = "Pandu"; - String resp = helloServiceSimpleClient.getGreetingsForward(name); - Assert.assertEquals("Hello "+name, resp); - } - - private void performTestArray(HelloServiceSimpleClient helloServiceSimpleClient) { - String[] names = {"Me", "Pandu"}; - String[] resps = helloServiceSimpleClient.getGreetingsArrayForward(names); - for(int i = 0; i < names.length; ++i) { - Assert.assertEquals("Hello "+names[i], resps[i]); - } - } - - private void performTestList(HelloServiceSimpleClient helloServiceSimpleClient) { - List namesList = new ArrayList(); - namesList.add("Me"); - namesList.add("Pandu"); - namesList.add("Chinnipandu"); - List respList = helloServiceSimpleClient.getGreetingsListForward(namesList); - Assert.assertEquals(namesList.size(), respList.size()); - for(int i = 0; i < namesList.size(); ++i) { - Assert.assertEquals("Hello "+namesList.get(i), respList.get(i)); - } - } - - private void performTestArrayList(HelloServiceSimpleClient helloServiceSimpleClient) { - ArrayList namesList = new ArrayList(); - namesList.add("Me"); - namesList.add("Pandu"); - namesList.add("Chinnipandu"); - ArrayList respList = helloServiceSimpleClient.getGreetingsArrayListForward(namesList); - Assert.assertEquals(namesList.size(), respList.size()); - for(int i = 0; i < namesList.size(); ++i) { - Assert.assertEquals("Hello "+namesList.get(i), respList.get(i)); - } - } - - private void performTestMap(HelloServiceSimpleClient helloServiceSimpleClient) { - Map namesMap = new HashMap(); - namesMap.put("Me", null); - namesMap.put("Pandu", null); - namesMap.put("Chinnipandu", null); - Map respMap = helloServiceSimpleClient.getGreetingsMapForward(namesMap); - Assert.assertEquals(namesMap.keySet().size(), respMap.keySet().size()); - for(Map.Entry entry: namesMap.entrySet()) { - Assert.assertEquals("Hello "+entry.getKey(), respMap.get(entry.getKey())); - } - } - - private void performTestHashMap(HelloServiceSimpleClient helloServiceSimpleClient) { - HashMap namesMap = new HashMap(); - namesMap.put("Me", null); - namesMap.put("Pandu", null); - namesMap.put("Chinnipandu", null); - Map respMap = helloServiceSimpleClient.getGreetingsHashMapForward(namesMap); - Assert.assertEquals(namesMap.keySet().size(), respMap.keySet().size()); - for(Map.Entry entry: namesMap.entrySet()) { - Assert.assertEquals("Hello "+entry.getKey(), respMap.get(entry.getKey())); - } - } - - private void performTestVarArgs(HelloServiceSimpleClient helloServiceSimpleClient) { - String[] names = { "Me", "You", "Pandu" }; // Do not change the array size from 3. - String expected = "Hello Me You Pandu"; - String actual = helloServiceSimpleClient.getGreetingsVarArgsForward(names[0], names[1], names[2]); - Assert.assertEquals(expected, actual); - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/test/java/org/apache/tuscany/sca/itest/databindings/jaxb/DocLitBareWsdlTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/test/java/org/apache/tuscany/sca/itest/databindings/jaxb/DocLitBareWsdlTestCase.java deleted file mode 100644 index 6aac75ae08..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/test/java/org/apache/tuscany/sca/itest/databindings/jaxb/DocLitBareWsdlTestCase.java +++ /dev/null @@ -1,75 +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 org.apache.tuscany.sca.itest.databindings.jaxb; - -import java.io.File; - -import junit.framework.Assert; - -import org.apache.tuscany.sca.node.Contribution; -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; -import org.junit.AfterClass; -import org.junit.BeforeClass; -import org.junit.Test; - - -/** - * @version $Rev$ $Date$ - */ -public class DocLitBareWsdlTestCase { - - private static Node node; - - /** - * Runs once before running the tests - */ - @BeforeClass - public static void setUp() throws Exception { - try { - NodeFactory factory = NodeFactory.newInstance(); - node = factory.createNode(new File("src/main/resources/doclitbarewsdl.composite").toURI().toURL().toString(), - new Contribution("TestContribution", new File("src/main/resources/").toURI().toURL().toString())); - node.start(); - } catch (Throwable e) { - // @Ignore("TUSCANY-2398") - e.printStackTrace(); - } - } - - /** - * Runs once after running the tests - */ - @AfterClass - public static void tearDown() { - if (node != null) { - node.stop(); - } - } - - // @Ignore("TUSCANY-2398") - @Test - public void testDocLitBareWsdl() throws Exception { - AClientService client = node.getService(AClientService.class, "AClientComponent"); - String name = "Pandu"; - String resp = client.getGreetingsForward(name); - Assert.assertEquals("Hello " + name, resp); - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/test/java/org/apache/tuscany/sca/itest/databindings/jaxb/GenericsDatabindingTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/test/java/org/apache/tuscany/sca/itest/databindings/jaxb/GenericsDatabindingTestCase.java deleted file mode 100644 index 755619908d..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/test/java/org/apache/tuscany/sca/itest/databindings/jaxb/GenericsDatabindingTestCase.java +++ /dev/null @@ -1,493 +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 org.apache.tuscany.sca.itest.databindings.jaxb; - -import java.io.File; - -import junit.framework.Assert; - -import org.apache.tuscany.sca.itest.databindings.jaxb.impl.GenericsTransformer; -import org.apache.tuscany.sca.node.Contribution; -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; -import org.junit.AfterClass; -import org.junit.BeforeClass; -import org.junit.Test; - - -/** - * Databinding tests for generics, parameterized and polymorphic types. - * - * @version $Rev$ $Date$ - */ -public class GenericsDatabindingTestCase { - - private static Node node; - - /** - * Runs before each test method - */ - @BeforeClass - public static void setUp() throws Exception { - try { - NodeFactory factory = NodeFactory.newInstance(); - node = factory.createNode(new File("src/main/resources/generics-service.composite").toURI().toURL().toString(), - new Contribution("TestContribution", new File("src/main/resources/").toURI().toURL().toString())); - node.start(); - } catch(Throwable e) { - e.printStackTrace(); - } - } - - /** - * Runs after each test method - */ - @AfterClass - public static void tearDown() { - node.stop(); - } - - /** - * Invokes the GenericsService service using SCA binding. - * Service method invoked is getTypeExplicit. - */ - @Test - public void testSCATypeExplicit() throws Exception { - GenericsServiceClient serviceClient = node.getService(GenericsServiceClient.class, "GenericsServiceClientSCAComponent"); - performTestTypeExplicit(serviceClient); - } - - /** - * Invokes the GenericsService service using SCA binding. - * Service method invoked is getTypeUnbound. - */ - @Test - public void testSCATypeUnbound() throws Exception { - GenericsServiceClient serviceClient = node.getService(GenericsServiceClient.class, "GenericsServiceClientSCAComponent"); - performTestTypeUnbound(serviceClient); - } - - /** - * Invokes the GenericsService service using SCA binding. - * Service method invoked is getTypeExtends. - */ - @Test - public void testSCATypeExtends() throws Exception { - GenericsServiceClient serviceClient = node.getService(GenericsServiceClient.class, "GenericsServiceClientSCAComponent"); - performTestTypeExtends(serviceClient); - } - - /** - * Invokes the GenericsService service using SCA binding. - * Service method invoked is getRecursiveTypeBound. - */ - @Test - public void testSCARecursiveTypeBound() throws Exception { - GenericsServiceClient serviceClient = node.getService(GenericsServiceClient.class, "GenericsServiceClientSCAComponent"); - performTestRecursiveTypeBound(serviceClient); - } - - /** - * Invokes the GenericsService service using SCA binding. - * Service method invoked is getWildcardUnbound. - */ - @Test - public void testSCAWildcardUnbound() throws Exception { - GenericsServiceClient serviceClient = node.getService(GenericsServiceClient.class, "GenericsServiceClientSCAComponent"); - performTestWildcardUnbound(serviceClient); - } - - /** - * Invokes the GenericsService service using SCA binding. - * Service method invoked is getWildcardSuper. - */ - @Test - public void testSCAWildcardSuper() throws Exception { - GenericsServiceClient serviceClient = node.getService(GenericsServiceClient.class, "GenericsServiceClientSCAComponent"); - performTestWildcardSuper(serviceClient); - } - - /** - * Invokes the GenericsService service using SCA binding. - * Service method invoked is getWildcardExtends. - */ - @Test - public void testSCAWildcardExtends() throws Exception { - GenericsServiceClient serviceClient = node.getService(GenericsServiceClient.class, "GenericsServiceClientSCAComponent"); - performTestWildcardExtends(serviceClient); - } - - /** - * Invokes the GenericsService service using SCA binding. - * Service method invoked is getPolymorphic. - */ - @Test - public void testSCAPolymorphic() throws Exception { - GenericsServiceClient serviceClient = node.getService(GenericsServiceClient.class, "GenericsServiceClientSCAComponent"); - performTestPolymorphic(serviceClient); - } - - /** - * Invokes the GenericsService service using WS binding. - * Service method invoked is getTypeExplicit. - */ - @Test - public void testWSTypeExplicit() throws Exception { - GenericsServiceClient serviceClient = node.getService(GenericsServiceClient.class, "GenericsServiceClientWSComponent"); - performTestTypeExplicit(serviceClient); - } - - /** - * Invokes the GenericsService service using WS binding. - * Service method invoked is getTypeUnbound. - */ - @Test - public void testWSTypeUnbound() throws Exception { - GenericsServiceClient serviceClient = node.getService(GenericsServiceClient.class, "GenericsServiceClientWSComponent"); - performTestTypeUnbound(serviceClient); - } - - /** - * Invokes the GenericsService service using WS binding. - * Service method invoked is getTypeExtends. - */ - @Test - public void testWSTypeExtends() throws Exception { - GenericsServiceClient serviceClient = node.getService(GenericsServiceClient.class, "GenericsServiceClientWSComponent"); - performTestTypeExtends(serviceClient); - } - - /** - * Invokes the GenericsService service using WS binding. - * Service method invoked is getRecursiveTypeBound. - */ - @Test - public void testWSRecursiveTypeBound() throws Exception { - GenericsServiceClient serviceClient = node.getService(GenericsServiceClient.class, "GenericsServiceClientWSComponent"); - performTestRecursiveTypeBound(serviceClient); - } - - /** - * Invokes the GenericsService service using WS binding. - * Service method invoked is getWildcardUnbound. - */ - @Test - public void testWSWildcardUnbound() throws Exception { - GenericsServiceClient serviceClient = node.getService(GenericsServiceClient.class, "GenericsServiceClientWSComponent"); - performTestWildcardUnbound(serviceClient); - } - - /** - * Invokes the GenericsService service using WS binding. - * Service method invoked is getWildcardSuper. - */ - @Test - public void testWSWildcardSuper() throws Exception { - GenericsServiceClient serviceClient = node.getService(GenericsServiceClient.class, "GenericsServiceClientWSComponent"); - performTestWildcardSuper(serviceClient); - } - - /** - * Invokes the GenericsService service using WS binding. - * Service method invoked is getWildcardExtends. - */ - @Test - public void testWSWildcardExtends() throws Exception { - GenericsServiceClient serviceClient = node.getService(GenericsServiceClient.class, "GenericsServiceClientWSComponent"); - performTestWildcardExtends(serviceClient); - } - - /** - * Invokes the GenericsService service using WS binding. - * Service method invoked is getPolymorphic. - */ - @Test - public void testWSPolymorphic() throws Exception { - GenericsServiceClient serviceClient = node.getService(GenericsServiceClient.class, "GenericsServiceClientWSComponent"); - performTestPolymorphic(serviceClient); - } - - /** - * Invokes the GenericsLocalService service using SCA binding. - * Service method invoked is getTypeExplicit. - */ - @Test - public void testSCALocalTypeExplicit() throws Exception { - GenericsServiceClient serviceClient = node.getService(GenericsServiceClient.class, "GenericsLocalServiceClientSCAComponent"); - performTestTypeExplicit(serviceClient); - } - - /** - * Invokes the GenericsLocalService service using SCA binding. - * Service method invoked is getTypeUnbound. - */ - @Test - public void testSCALocalTypeUnbound() throws Exception { - GenericsServiceClient serviceClient = node.getService(GenericsServiceClient.class, "GenericsLocalServiceClientSCAComponent"); - performTestTypeUnbound(serviceClient); - } - - /** - * Invokes the GenericsLocalService service using SCA binding. - * Service method invoked is getTypeExtends. - */ - @Test - public void testSCALocalTypeExtends() throws Exception { - GenericsServiceClient serviceClient = node.getService(GenericsServiceClient.class, "GenericsLocalServiceClientSCAComponent"); - performTestTypeExtends(serviceClient); - } - - /** - * Invokes the GenericsLocalService service using SCA binding. - * Service method invoked is getRecursiveTypeBound. - */ - @Test - public void testSCALocalRecursiveTypeBound() throws Exception { - GenericsServiceClient serviceClient = node.getService(GenericsServiceClient.class, "GenericsLocalServiceClientSCAComponent"); - performTestRecursiveTypeBound(serviceClient); - } - - /** - * Invokes the GenericsLocalService service using SCA binding. - * Service method invoked is getWildcardUnbound. - */ - @Test - public void testSCALocalWildcardUnbound() throws Exception { - GenericsServiceClient serviceClient = node.getService(GenericsServiceClient.class, "GenericsLocalServiceClientSCAComponent"); - performTestWildcardUnbound(serviceClient); - } - - /** - * Invokes the GenericsLocalService service using SCA binding. - * Service method invoked is getWildcardSuper. - */ - @Test - public void testSCALocalWildcardSuper() throws Exception { - GenericsServiceClient serviceClient = node.getService(GenericsServiceClient.class, "GenericsLocalServiceClientSCAComponent"); - performTestWildcardSuper(serviceClient); - } - - /** - * Invokes the GenericsLocalService service using SCA binding. - * Service method invoked is getWildcardExtends. - */ - @Test - public void testSCALocalWildcardExtends() throws Exception { - GenericsServiceClient serviceClient = node.getService(GenericsServiceClient.class, "GenericsLocalServiceClientSCAComponent"); - performTestWildcardExtends(serviceClient); - } - - /** - * Invokes the GenericsLocalService service using SCA binding. - * Service method invoked is getPolymorphic. - */ - @Test - public void testSCALocalPolymorphic() throws Exception { - GenericsServiceClient serviceClient = node.getService(GenericsServiceClient.class, "GenericsLocalServiceClientSCAComponent"); - performTestPolymorphic(serviceClient); - } - - private void performTestTypeExplicit(GenericsServiceClient serviceClient) { - Bean1 args[] = new Bean1[2]; - args[0] = new Bean1("Me"); - args[1] = new Bean1(); - for(int i = 0; i < args.length; ++i) { - Bean1 arg = args[i]; - Bean1 expected = GenericsTransformer.getTypeExplicit(arg); - Bean1 actual = serviceClient.getTypeExplicitForward(arg); - Assert.assertEquals(expected, actual); - } - } - - private void performTestTypeUnbound(GenericsServiceClient serviceClient) { - { // String - String[] args = { "Me", "You", "Him" }; - Bean1 expected = GenericsTransformer.getTypeUnbound(args); - Bean1 actual = serviceClient.getTypeUnboundForward(args); - // Assert.assertEquals(expected, actual); - } - { // Integer - Integer[] args = new Integer[3]; - args[0] = -10; - args[1] = 0; - args[2] = 10; - Bean1 expected = GenericsTransformer.getTypeUnbound(args); - Bean1 actual = serviceClient.getTypeUnboundForward(args); - // Assert.assertEquals(expected, actual); - } - { // Object - Object[] args = new Object[3]; - args[0] = "Me"; - args[1] = 10; - args[2] = "Him"; - Bean1 expected = GenericsTransformer.getTypeUnbound(args); - Bean1 actual = serviceClient.getTypeUnboundForward(args); - Assert.assertEquals(expected, actual); - } - } - - private void performTestTypeExtends(GenericsServiceClient serviceClient) { - { // Bean2 - Bean2[] args = new Bean2[3]; - for(int i = 0; i < args.length; ++i) { - args[i] = new Bean2(); - args[i].setName("Name"+i); - } - - Bean1 expected = GenericsTransformer.getTypeExtends(args); - Bean1 actual = serviceClient.getTypeExtendsForward(args); - Assert.assertEquals(expected, actual); - } - { // Bean3 extends Bean2 - Bean3[] args = new Bean3[3]; - for(int i = 0; i < args.length; ++i) { - args[i] = new Bean3(); - args[i].setName("Name"+i); - args[i].setAddress("Address"+i); - } - - Bean1 expected = GenericsTransformer.getTypeExtends(args); - Bean1 actual = serviceClient.getTypeExtendsForward(args); - // Assert.assertEquals(expected, actual); - } - { //Bean31 extends Bean2 - Bean31[] args = new Bean31[3]; - for(int i = 0; i < args.length; ++i) { - args[i] = new Bean31(); - args[i].setName("Name"+i); - args[i].setAddress("Address"+i); - } - - Bean1 expected = GenericsTransformer.getTypeExtends(args); - Bean1 actual = serviceClient.getTypeExtendsForward(args); - // Assert.assertEquals(expected, actual); - } - } - - private void performTestRecursiveTypeBound(GenericsServiceClient serviceClient) { - { // Bean1 - Bean1[] args = new Bean1[3]; - for(int i = 0; i < args.length; ++i) { - args[i] = new Bean1(); - args[i].setItem("Bean."+i); - } - Bean1> expected = GenericsTransformer.getRecursiveTypeBound(args); - Bean1> actual = serviceClient.getRecursiveTypeBoundForward(args); - Assert.assertEquals(expected, actual); - } - { // Bean10 extends Bean1 - Bean10[] args = new Bean10[3]; - for(int i = 0; i < args.length; ++i) { - args[i] = new Bean10(); - args[i].setItem("Bean10."+i); - } - Bean1 expected = GenericsTransformer.getRecursiveTypeBound(args); - Bean1 actual = serviceClient.getRecursiveTypeBoundForward(args); - // Assert.assertEquals(expected, actual); - } - { // Bean11 extends Bean1 - Bean11[] args = new Bean11[3]; - for(int i = 0; i < args.length; ++i) { - args[i] = new Bean11(); - args[i].setItem("Bean11."+i); - } - Bean1 expected = GenericsTransformer.getRecursiveTypeBound(args); - Bean1 actual = serviceClient.getRecursiveTypeBoundForward(args); - // Assert.assertEquals(expected, actual); - } - } - - private void performTestWildcardUnbound(GenericsServiceClient serviceClient) { - { - Bean1 arg = new Bean1("Me"); - Bean1 expected = GenericsTransformer.getWildcardUnbound(arg); - Bean1 actual = serviceClient.getWildcardUnboundForward(arg); - Assert.assertEquals(expected, actual); - } - { - Bean1 arg = new Bean1(1); - Bean1 expected = GenericsTransformer.getWildcardUnbound(arg); - Bean1 actual = serviceClient.getWildcardUnboundForward(arg); - Assert.assertEquals(expected, actual); - } - } - - private void performTestWildcardSuper(GenericsServiceClient serviceClient) { - Bean1 arg = new Bean1(); - Bean3 item = new Bean3(); - item.setName("Name"); - item.setAddress("Address"); - arg.setItem(item); - Bean1 expected = GenericsTransformer.getWildcardSuper(arg); - Bean1 actual = serviceClient.getWildcardSuperForward(arg); - Assert.assertEquals(expected, actual); - } - - private void performTestWildcardExtends(GenericsServiceClient serviceClient) { - { // Bean2 - Bean2 temp = new Bean2(); - temp.setName("Me"); - Bean1 arg = new Bean1(temp); - Bean1 expected = GenericsTransformer.getWildcardExtends(arg); - Bean1 actual = serviceClient.getWildcardExtendsForward(arg); - Assert.assertEquals(expected, actual); - } - { // Bean3 extends Bean2 - Bean3 temp = new Bean3(); - temp.setName("Me"); - temp.setAddress("My address"); - Bean1 arg = new Bean1(temp); - Bean1 expected = GenericsTransformer.getWildcardExtends(arg); - Bean1 actual = serviceClient.getWildcardExtendsForward(arg); - // The Bean3 will be unmarshalled into Bean2 - // Assert.assertEquals(expected, actual); - Assert.assertTrue(actual.getItem() instanceof Bean2); - } - { // Bean31 extends Bean2 - Bean31 temp = new Bean31(); - temp.setName("Me1"); - temp.setAddress("My address1"); - Bean1 arg = new Bean1(temp); - Bean1 expected = GenericsTransformer.getWildcardExtends(arg); - Bean1 actual = serviceClient.getWildcardExtendsForward(arg); - // The Bean31 will be unmarshalled into Bean2 - // Assert.assertEquals(expected, actual); - Assert.assertTrue(actual.getItem() instanceof Bean2); - } - } - - private void performTestPolymorphic(GenericsServiceClient serviceClient) { - { // Bean2 - Bean2 arg = new Bean2(); - arg.setName("Me"); - Bean2 expected = GenericsTransformer.getPolymorphic(arg); - Bean2 actual = serviceClient.getPolymorphicForward(arg); - Assert.assertEquals(expected, actual); - } - { // Bean3 extends Bean2 - Bean3 arg = new Bean3(); - arg.setName("Me"); - arg.setAddress("My address"); - Bean2 expected = GenericsTransformer.getPolymorphic(arg); - Bean2 actual = serviceClient.getPolymorphicForward(arg); - Assert.assertEquals(expected.getName(), actual.getName()); - } - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/test/java/org/apache/tuscany/sca/itest/databindings/jaxb/PrimitivesDatabindingTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/test/java/org/apache/tuscany/sca/itest/databindings/jaxb/PrimitivesDatabindingTestCase.java deleted file mode 100644 index 8ece2c3293..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/test/java/org/apache/tuscany/sca/itest/databindings/jaxb/PrimitivesDatabindingTestCase.java +++ /dev/null @@ -1,784 +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 org.apache.tuscany.sca.itest.databindings.jaxb; - -import java.io.File; - -import junit.framework.Assert; - -import org.apache.tuscany.sca.node.Contribution; -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; -import org.junit.AfterClass; -import org.junit.BeforeClass; -import org.junit.Test; - - -/** - * @version $Rev$ $Date$ - */ -public class PrimitivesDatabindingTestCase { - - private static Node node; - - /** - * Runs before each test method - */ - @BeforeClass - public static void setUp() throws Exception { - try { - NodeFactory factory = NodeFactory.newInstance(); - node = factory.createNode(new File("src/main/resources/primitivesservice.composite").toURI().toURL().toString(), - new Contribution("TestContribution", new File("src/main/resources/").toURI().toURL().toString())); - node.start(); - } catch(Throwable e) { - e.printStackTrace(); - Assert.fail(); - } - } - - /** - * Runs after each test method - */ - @AfterClass - public static void tearDown() { - node.stop(); - } - - /** - * Invokes the PrimitivesService service using SCA binding. - * Service method invoked is negateBoolean. - */ - @Test - public void testSCANegateBoolean() throws Exception { - PrimitivesServiceClient primitivesServiceClient = node.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientSCAComponent"); - performTestNegateBoolean(primitivesServiceClient); - } - - /** - * Invokes the PrimitivesService service using SCA binding. - * Service method invoked is negateBooleanArray. - */ - @Test - public void testSCANegateBooleanArray() throws Exception { - PrimitivesServiceClient primitivesServiceClient = node.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientSCAComponent"); - performTestNegateBooleanArray(primitivesServiceClient); - } - - /** - * Test the pass-by-value semantics of a remotable service with SCA binding. - * Test for boolean array. - */ - @Test - public void testSCAPassByValueBooleanArray() throws Exception { - PrimitivesServiceClient primitivesServiceClient = node.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientSCAComponent"); - Assert.assertTrue(primitivesServiceClient.passByValueBooleanArray()); - } - - /** - * Invokes the PrimitivesService service using SCA binding. - * Service method invoked is negateByte. - */ - @Test - public void testSCANegateByte() throws Exception { - PrimitivesServiceClient primitivesServiceClient = node.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientSCAComponent"); - performTestNegateByte(primitivesServiceClient); - } - - /** - * Invokes the PrimitivesService service using SCA binding. - * Service method invoked is negateByteArray. - */ - @Test - public void testSCANegateByteArray() throws Exception { - PrimitivesServiceClient primitivesServiceClient = node.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientSCAComponent"); - performTestNegateByteArray(primitivesServiceClient); - } - - /** - * Test the pass-by-value semantics of a remotable service with SCA binding. - * Test for byte array. - */ - @Test - public void testSCAPassByValueByteArray() throws Exception { - PrimitivesServiceClient primitivesServiceClient = node.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientSCAComponent"); - Assert.assertTrue(primitivesServiceClient.passByValueByteArray()); - } - - /** - * Invokes the PrimitivesService service using SCA binding. - * Service method invoked is negateShort. - */ - @Test - public void testSCANegateShort() throws Exception { - PrimitivesServiceClient primitivesServiceClient = node.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientSCAComponent"); - performTestNegateShort(primitivesServiceClient); - } - - /** - * Invokes the PrimitivesService service using SCA binding. - * Service method invoked is negateShortArray. - */ - @Test - public void testSCANegateShortArray() throws Exception { - PrimitivesServiceClient primitivesServiceClient = node.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientSCAComponent"); - performTestNegateShortArray(primitivesServiceClient); - } - - /** - * Test the pass-by-value semantics of a remotable service with SCA binding. - * Test for short array. - */ - @Test - public void testSCAPassByValueShortArray() throws Exception { - PrimitivesServiceClient primitivesServiceClient = node.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientSCAComponent"); - Assert.assertTrue(primitivesServiceClient.passByValueShortArray()); - } - - /** - * Invokes the PrimitivesService service using SCA binding. - * Service method invoked is negateInt. - */ - @Test - public void testSCANegateInt() throws Exception { - PrimitivesServiceClient primitivesServiceClient = node.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientSCAComponent"); - performTestNegateInt(primitivesServiceClient); - } - - /** - * Invokes the PrimitivesService service using SCA binding. - * Service method invoked is negateIntArray. - */ - @Test - public void testSCANegateIntArray() throws Exception { - PrimitivesServiceClient primitivesServiceClient = node.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientSCAComponent"); - performTestNegateIntArray(primitivesServiceClient); - } - - /** - * Test the pass-by-value semantics of a remotable service with SCA binding. - * Test for int array. - */ - @Test - public void testSCAPassByValueIntArray() throws Exception { - PrimitivesServiceClient primitivesServiceClient = node.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientSCAComponent"); - Assert.assertTrue(primitivesServiceClient.passByValueIntArray()); - } - - /** - * Invokes the PrimitivesService service using SCA binding. - * Service method invoked is negateLong. - */ - @Test - public void testSCANegateLong() throws Exception { - PrimitivesServiceClient primitivesServiceClient = node.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientSCAComponent"); - performTestNegateLong(primitivesServiceClient); - } - - /** - * Invokes the PrimitivesService service using SCA binding. - * Service method invoked is negateLongArray. - */ - @Test - public void testSCANegateLongArray() throws Exception { - PrimitivesServiceClient primitivesServiceClient = node.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientSCAComponent"); - performTestNegateLongArray(primitivesServiceClient); - } - - /** - * Test the pass-by-value semantics of a remotable service with SCA binding. - * Test for long array. - */ - @Test - public void testSCAPassByValueLongArray() throws Exception { - PrimitivesServiceClient primitivesServiceClient = node.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientSCAComponent"); - Assert.assertTrue(primitivesServiceClient.passByValueLongArray()); - } - - /** - * Invokes the PrimitivesService service using SCA binding. - * Service method invoked is negateFloat. - */ - @Test - public void testSCANegateFloat() throws Exception { - PrimitivesServiceClient primitivesServiceClient = node.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientSCAComponent"); - performTestNegateFloat(primitivesServiceClient); - } - - /** - * Invokes the PrimitivesService service using SCA binding. - * Service method invoked is negateFloatArray. - */ - @Test - public void testSCANegateFloatArray() throws Exception { - PrimitivesServiceClient primitivesServiceClient = node.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientSCAComponent"); - performTestNegateFloatArray(primitivesServiceClient); - } - - /** - * Test the pass-by-value semantics of a remotable service with SCA binding. - * Test for float array. - */ - @Test - public void testSCAPassByValueFloatArray() throws Exception { - PrimitivesServiceClient primitivesServiceClient = node.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientSCAComponent"); - Assert.assertTrue(primitivesServiceClient.passByValueFloatArray()); - } - - /** - * Invokes the PrimitivesService service using SCA binding. - * Service method invoked is negateDouble. - */ - @Test - public void testSCANegateDouble() throws Exception { - PrimitivesServiceClient primitivesServiceClient = node.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientSCAComponent"); - performTestNegateDouble(primitivesServiceClient); - } - - /** - * Invokes the PrimitivesService service using SCA binding. - * Service method invoked is negateDoubleArray. - */ - @Test - public void testSCANegateDoubleArray() throws Exception { - PrimitivesServiceClient primitivesServiceClient = node.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientSCAComponent"); - performTestNegateDoubleArray(primitivesServiceClient); - } - - /** - * Test the pass-by-value semantics of a remotable service with SCA binding. - * Test for double array. - */ - @Test - public void testSCAPassByValueDoubleArray() throws Exception { - PrimitivesServiceClient primitivesServiceClient = node.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientSCAComponent"); - Assert.assertTrue(primitivesServiceClient.passByValueDoubleArray()); - } - - /** - * Invokes the PrimitivesService service using WS binding. - * Service method invoked is negateBoolean. - */ - @Test - public void testWSNegateBoolean() throws Exception { - PrimitivesServiceClient primitivesServiceClient = node.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientWSComponent"); - performTestNegateBoolean(primitivesServiceClient); - } - - /** - * Invokes the PrimitivesService service using WS binding. - * Service method invoked is negateBooleanArray. - */ - @Test - public void testWSNegateBooleanArray() throws Exception { - PrimitivesServiceClient primitivesServiceClient = node.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientWSComponent"); - performTestNegateBooleanArray(primitivesServiceClient); - } - - /** - * Test the pass-by-value semantics of a remotable service with WS binding. - * Test for boolean array. - */ - @Test - public void testWSPassByValueBooleanArray() throws Exception { - PrimitivesServiceClient primitivesServiceClient = node.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientWSComponent"); - Assert.assertTrue(primitivesServiceClient.passByValueBooleanArray()); - } - - /** - * Invokes the PrimitivesService service using WS binding. - * Service method invoked is negateByte. - */ - @Test - public void testWSNegateByte() throws Exception { - PrimitivesServiceClient primitivesServiceClient = node.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientWSComponent"); - performTestNegateByte(primitivesServiceClient); - } - - /** - * Invokes the PrimitivesService service using WS binding. - * Service method invoked is negateByteArray. - */ - @Test - public void testWSNegateByteArray() throws Exception { - PrimitivesServiceClient primitivesServiceClient = node.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientWSComponent"); - performTestNegateByteArray(primitivesServiceClient); - } - - /** - * Test the pass-by-value semantics of a remotable service with WS binding. - * Test for byte array. - */ - @Test - public void testWSPassByValueByteArray() throws Exception { - PrimitivesServiceClient primitivesServiceClient = node.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientWSComponent"); - Assert.assertTrue(primitivesServiceClient.passByValueByteArray()); - } - - /** - * Invokes the PrimitivesService service using WS binding. - * Service method invoked is negateShort. - */ - @Test - public void testWSNegateShort() throws Exception { - PrimitivesServiceClient primitivesServiceClient = node.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientWSComponent"); - performTestNegateShort(primitivesServiceClient); - } - - /** - * Invokes the PrimitivesService service using WS binding. - * Service method invoked is negateShortArray. - */ - @Test - public void testWSNegateShortArray() throws Exception { - PrimitivesServiceClient primitivesServiceClient = node.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientWSComponent"); - performTestNegateShortArray(primitivesServiceClient); - } - - /** - * Test the pass-by-value semantics of a remotable service with WS binding. - * Test for short array. - */ - @Test - public void testWSPassByValueShortArray() throws Exception { - PrimitivesServiceClient primitivesServiceClient = node.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientWSComponent"); - Assert.assertTrue(primitivesServiceClient.passByValueShortArray()); - } - - /** - * Invokes the PrimitivesService service using WS binding. - * Service method invoked is negateInt. - */ - @Test - public void testWSNegateInt() throws Exception { - PrimitivesServiceClient primitivesServiceClient = node.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientWSComponent"); - performTestNegateInt(primitivesServiceClient); - } - - /** - * Invokes the PrimitivesService service using WS binding. - * Service method invoked is negateIntArray. - */ - @Test - public void testWSNegateIntArray() throws Exception { - PrimitivesServiceClient primitivesServiceClient = node.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientWSComponent"); - performTestNegateIntArray(primitivesServiceClient); - } - - /** - * Test the pass-by-value semantics of a remotable service with WS binding. - * Test for int array. - */ - @Test - public void testWSPassByValueIntArray() throws Exception { - PrimitivesServiceClient primitivesServiceClient = node.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientWSComponent"); - Assert.assertTrue(primitivesServiceClient.passByValueIntArray()); - } - - /** - * Invokes the PrimitivesService service using WS binding. - * Service method invoked is negateLong. - */ - @Test - public void testWSNegateLong() throws Exception { - PrimitivesServiceClient primitivesServiceClient = node.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientWSComponent"); - performTestNegateLong(primitivesServiceClient); - } - - /** - * Invokes the PrimitivesService service using WS binding. - * Service method invoked is negateLongArray. - */ - @Test - public void testWSNegateLongArray() throws Exception { - PrimitivesServiceClient primitivesServiceClient = node.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientWSComponent"); - performTestNegateLongArray(primitivesServiceClient); - } - - /** - * Test the pass-by-value semantics of a remotable service with WS binding. - * Test for long array. - */ - @Test - public void testWSPassByValueLongArray() throws Exception { - PrimitivesServiceClient primitivesServiceClient = node.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientWSComponent"); - Assert.assertTrue(primitivesServiceClient.passByValueLongArray()); - } - - /** - * Invokes the PrimitivesService service using WS binding. - * Service method invoked is negateFloat. - */ - @Test - public void testWSNegateFloat() throws Exception { - PrimitivesServiceClient primitivesServiceClient = node.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientWSComponent"); - performTestNegateFloat(primitivesServiceClient); - } - - /** - * Invokes the PrimitivesService service using WS binding. - * Service method invoked is negateFloatArray. - */ - @Test - public void testWSNegateFloatArray() throws Exception { - PrimitivesServiceClient primitivesServiceClient = node.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientWSComponent"); - performTestNegateFloatArray(primitivesServiceClient); - } - - /** - * Test the pass-by-value semantics of a remotable service with WS binding. - * Test for float array. - */ - @Test - public void testWSPassByValueFloatArray() throws Exception { - PrimitivesServiceClient primitivesServiceClient = node.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientWSComponent"); - Assert.assertTrue(primitivesServiceClient.passByValueFloatArray()); - } - - /** - * Invokes the PrimitivesService service using WS binding. - * Service method invoked is negateDouble. - */ - @Test - public void testWSNegateDouble() throws Exception { - PrimitivesServiceClient primitivesServiceClient = node.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientWSComponent"); - performTestNegateDouble(primitivesServiceClient); - } - - /** - * Invokes the PrimitivesService service using WS binding. - * Service method invoked is negateDoubleArray. - */ - @Test - public void testWSNegateDoubleArray() throws Exception { - PrimitivesServiceClient primitivesServiceClient = node.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientWSComponent"); - performTestNegateDoubleArray(primitivesServiceClient); - } - - /** - * Test the pass-by-value semantics of a remotable service with WS binding. - * Test for double array. - */ - @Test - public void testWSPassByValueDoubleArray() throws Exception { - PrimitivesServiceClient primitivesServiceClient = node.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientWSComponent"); - Assert.assertTrue(primitivesServiceClient.passByValueDoubleArray()); - } - - /** - * Invokes the PrimitivesLocalService service using SCA binding. - * Service method invoked is negateBoolean. - */ - @Test - public void testSCALocalNegateBoolean() throws Exception { - PrimitivesServiceClient primitivesServiceClient = node.getService(PrimitivesServiceClient.class, "PrimitivesLocalServiceClientSCAComponent"); - performTestNegateBoolean(primitivesServiceClient); - } - - /** - * Invokes the PrimitivesLocalService service using SCA binding. - * Service method invoked is negateBooleanArray. - */ - @Test - public void testSCALocalNegateBooleanArray() throws Exception { - PrimitivesServiceClient primitivesServiceClient = node.getService(PrimitivesServiceClient.class, "PrimitivesLocalServiceClientSCAComponent"); - performTestNegateBooleanArray(primitivesServiceClient); - } - - /** - * Invokes the PrimitivesLocalService service using SCA binding. - * Service method invoked is negateByte. - */ - @Test - public void testSCALocalNegateByte() throws Exception { - PrimitivesServiceClient primitivesServiceClient = node.getService(PrimitivesServiceClient.class, "PrimitivesLocalServiceClientSCAComponent"); - performTestNegateByte(primitivesServiceClient); - } - - /** - * Invokes the PrimitivesLocalService service using SCA binding. - * Service method invoked is negateByteArray. - */ - @Test - public void testSCALocalNegateByteArray() throws Exception { - PrimitivesServiceClient primitivesServiceClient = node.getService(PrimitivesServiceClient.class, "PrimitivesLocalServiceClientSCAComponent"); - performTestNegateByteArray(primitivesServiceClient); - } - - /** - * Invokes the PrimitivesLocalService service using SCA binding. - * Service method invoked is negateShort. - */ - @Test - public void testSCALocalNegateShort() throws Exception { - PrimitivesServiceClient primitivesServiceClient = node.getService(PrimitivesServiceClient.class, "PrimitivesLocalServiceClientSCAComponent"); - performTestNegateShort(primitivesServiceClient); - } - - /** - * Invokes the PrimitivesLocalService service using SCA binding. - * Service method invoked is negateShortArray. - */ - @Test - public void testSCALocalNegateShortArray() throws Exception { - PrimitivesServiceClient primitivesServiceClient = node.getService(PrimitivesServiceClient.class, "PrimitivesLocalServiceClientSCAComponent"); - performTestNegateShortArray(primitivesServiceClient); - } - - /** - * Invokes the PrimitivesLocalService service using SCA binding. - * Service method invoked is negateInt. - */ - @Test - public void testSCALocalNegateInt() throws Exception { - PrimitivesServiceClient primitivesServiceClient = node.getService(PrimitivesServiceClient.class, "PrimitivesLocalServiceClientSCAComponent"); - performTestNegateInt(primitivesServiceClient); - } - - /** - * Invokes the PrimitivesLocalService service using SCA binding. - * Service method invoked is negateIntArray. - */ - @Test - public void testSCALocalNegateIntArray() throws Exception { - PrimitivesServiceClient primitivesServiceClient = node.getService(PrimitivesServiceClient.class, "PrimitivesLocalServiceClientSCAComponent"); - performTestNegateIntArray(primitivesServiceClient); - } - - /** - * Invokes the PrimitivesLocalService service using SCA binding. - * Service method invoked is negateLong. - */ - @Test - public void testSCALocalNegateLong() throws Exception { - PrimitivesServiceClient primitivesServiceClient = node.getService(PrimitivesServiceClient.class, "PrimitivesLocalServiceClientSCAComponent"); - performTestNegateLong(primitivesServiceClient); - } - - /** - * Invokes the PrimitivesLocalService service using SCA binding. - * Service method invoked is negateLongArray. - */ - @Test - public void testSCALocalNegateLongArray() throws Exception { - PrimitivesServiceClient primitivesServiceClient = node.getService(PrimitivesServiceClient.class, "PrimitivesLocalServiceClientSCAComponent"); - performTestNegateLongArray(primitivesServiceClient); - } - - /** - * Invokes the PrimitivesLocalService service using SCA binding. - * Service method invoked is negateFloat. - */ - @Test - public void testSCALocalNegateFloat() throws Exception { - PrimitivesServiceClient primitivesServiceClient = node.getService(PrimitivesServiceClient.class, "PrimitivesLocalServiceClientSCAComponent"); - performTestNegateFloat(primitivesServiceClient); - } - - /** - * Invokes the PrimitivesService service using SCA binding. - * Service method invoked is negateFloatArray. - */ - @Test - public void testSCALocalNegateFloatArray() throws Exception { - PrimitivesServiceClient primitivesServiceClient = node.getService(PrimitivesServiceClient.class, "PrimitivesLocalServiceClientSCAComponent"); - performTestNegateFloatArray(primitivesServiceClient); - } - - /** - * Invokes the PrimitivesLocalService service using SCA binding. - * Service method invoked is negateDouble. - */ - @Test - public void testSCALocalNegateDouble() throws Exception { - PrimitivesServiceClient primitivesServiceClient = node.getService(PrimitivesServiceClient.class, "PrimitivesLocalServiceClientSCAComponent"); - performTestNegateDouble(primitivesServiceClient); - } - - /** - * Invokes the PrimitivesLocalService service using SCA binding. - * Service method invoked is negateDoubleArray. - */ - @Test - public void testSCALocalNegateDoubleArray() throws Exception { - PrimitivesServiceClient primitivesServiceClient = node.getService(PrimitivesServiceClient.class, "PrimitivesLocalServiceClientSCAComponent"); - performTestNegateDoubleArray(primitivesServiceClient); - } - - private void performTestNegateBoolean(PrimitivesServiceClient primitivesServiceClient) { - Assert.assertTrue(primitivesServiceClient.negateBooleanForward(false)); - Assert.assertFalse(primitivesServiceClient.negateBooleanForward(true)); - } - - private void performTestNegateBooleanArray(PrimitivesServiceClient primitivesServiceClient) { - boolean flags[] = new boolean[2]; - flags[0] = false; - flags[1] = true; - boolean[] respFlags = primitivesServiceClient.negateBooleanArrayForward(flags); - Assert.assertEquals(flags.length, respFlags.length); - for(int i = 0; i < flags.length; ++i) { - Assert.assertEquals(!flags[i], respFlags[i]); - } - } - - private void performTestNegateByte(PrimitivesServiceClient primitivesServiceClient) { - byte[] ba = new byte[3]; - ba[0] = -1; - ba[1] = 0; - ba[2] = 1; - - for(int i = 0; i < ba.length; ++i) { - Assert.assertEquals((byte)-ba[i], primitivesServiceClient.negateByteForward(ba[i])); - } - } - - private void performTestNegateByteArray(PrimitivesServiceClient primitivesServiceClient) { - byte[] ba = new byte[3]; - ba[0] = -1; - ba[1] = 0; - ba[2] = 1; - - byte[] r = primitivesServiceClient.negateByteArrayForward(ba); - Assert.assertEquals(ba.length, r.length); - for(int i = 0; i < ba.length; ++i) { - Assert.assertEquals((byte)-ba[i], r[i]); - } - } - - private void performTestNegateShort(PrimitivesServiceClient primitivesServiceClient) { - short[] s = new short[3]; - s[0] = -1; - s[1] = 0; - s[2] = 1; - - for(int i = 0; i < s.length; ++i) { - Assert.assertEquals((short)-s[i], primitivesServiceClient.negateShortForward(s[i])); - } - } - - private void performTestNegateShortArray(PrimitivesServiceClient primitivesServiceClient) { - short[] s = new short[3]; - s[0] = -1; - s[1] = 0; - s[2] = 1; - - short[] r = primitivesServiceClient.negateShortArrayForward(s); - Assert.assertEquals(s.length, r.length); - for(int i = 0; i < s.length; ++i) { - Assert.assertEquals((short)-s[i], r[i]); - } - } - - private void performTestNegateInt(PrimitivesServiceClient primitivesServiceClient) { - int[] ia = new int[3]; - ia[0] = -1; - ia[1] = 0; - ia[2] = 1; - - for(int i = 0; i < ia.length; ++i) { - Assert.assertEquals(-ia[i], primitivesServiceClient.negateIntForward(ia[i])); - } - } - - private void performTestNegateIntArray(PrimitivesServiceClient primitivesServiceClient) { - int[] ia = new int[3]; - ia[0] = -1; - ia[1] = 0; - ia[2] = 1; - - int[] r = primitivesServiceClient.negateIntArrayForward(ia); - Assert.assertEquals(ia.length, r.length); - for(int i = 0; i < ia.length; ++i) { - Assert.assertEquals(-ia[i], r[i]); - } - } - - private void performTestNegateLong(PrimitivesServiceClient primitivesServiceClient) { - long[] la = new long[3]; - la[0] = -1; - la[1] = 0; - la[2] = 1; - - for(int i = 0; i < la.length; ++i) { - Assert.assertEquals(-la[i], primitivesServiceClient.negateLongForward(la[i])); - } - } - - private void performTestNegateLongArray(PrimitivesServiceClient primitivesServiceClient) { - long[] la = new long[3]; - la[0] = -1; - la[1] = 0; - la[2] = 1; - - long[] r = primitivesServiceClient.negateLongArrayForward(la); - Assert.assertEquals(la.length, r.length); - for(int i = 0; i < la.length; ++i) { - Assert.assertEquals(-la[i], r[i]); - } - } - - private void performTestNegateFloat(PrimitivesServiceClient primitivesServiceClient) { - float[] fa = new float[3]; - fa[0] = -1; - fa[1] = 0; - fa[2] = 1; - - for(int i = 0; i < fa.length; ++i) { - Assert.assertEquals(-fa[i], primitivesServiceClient.negateFloatForward(fa[i])); - } - } - - private void performTestNegateFloatArray(PrimitivesServiceClient primitivesServiceClient) { - float[] ia = new float[3]; - ia[0] = -1; - ia[1] = 0; - ia[2] = 1; - - float[] r = primitivesServiceClient.negateFloatArrayForward(ia); - Assert.assertEquals(ia.length, r.length); - for(int i = 0; i < ia.length; ++i) { - Assert.assertEquals(-ia[i], r[i]); - } - } - - private void performTestNegateDouble(PrimitivesServiceClient primitivesServiceClient) { - double[] da = new double[3]; - da[0] = -1; - da[1] = 0; - da[2] = 1; - - for(int i = 0; i < da.length; ++i) { - Assert.assertEquals(-da[i], primitivesServiceClient.negateDoubleForward(da[i])); - } - } - - private void performTestNegateDoubleArray(PrimitivesServiceClient primitivesServiceClient) { - double[] da = new double[3]; - da[0] = -1; - da[1] = 0; - da[2] = 1; - - double[] r = primitivesServiceClient.negateDoubleArrayForward(da); - Assert.assertEquals(da.length, r.length); - for(int i = 0; i < da.length; ++i) { - Assert.assertEquals(-da[i], r[i]); - } - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/test/java/org/apache/tuscany/sca/itest/databindings/jaxb/StandardTypesDatabindingTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/test/java/org/apache/tuscany/sca/itest/databindings/jaxb/StandardTypesDatabindingTestCase.java deleted file mode 100644 index dd9a689353..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-bottom-up/src/test/java/org/apache/tuscany/sca/itest/databindings/jaxb/StandardTypesDatabindingTestCase.java +++ /dev/null @@ -1,1439 +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 org.apache.tuscany.sca.itest.databindings.jaxb; - -import java.awt.Image; -import java.awt.image.BufferedImage; -import java.awt.image.PixelGrabber; -import java.io.File; -import java.io.IOException; -import java.io.InputStream; -import java.io.StringWriter; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.net.URI; -import java.net.URL; -import java.util.Calendar; -import java.util.Date; -import java.util.GregorianCalendar; -import java.util.TimeZone; -import java.util.UUID; - -import javax.activation.DataHandler; -import javax.xml.datatype.DatatypeConfigurationException; -import javax.xml.datatype.DatatypeFactory; -import javax.xml.datatype.Duration; -import javax.xml.datatype.XMLGregorianCalendar; -import javax.xml.namespace.QName; -import javax.xml.transform.Result; -import javax.xml.transform.Source; -import javax.xml.transform.TransformerFactory; -import javax.xml.transform.stream.StreamResult; - -import junit.framework.Assert; - -import org.apache.axiom.attachments.ByteArrayDataSource; -import org.apache.tuscany.sca.itest.databindings.jaxb.impl.StandardTypesTransformer; -import org.apache.tuscany.sca.node.Contribution; -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; -import org.junit.AfterClass; -import org.junit.BeforeClass; -import org.junit.Test; - - -/** - * @version $Rev$ $Date$ - */ -public class StandardTypesDatabindingTestCase { - - private static Node node; - - /** - * Runs before each test method - */ - @BeforeClass - public static void setUp() throws Exception { - try { - NodeFactory factory = NodeFactory.newInstance(); - node = factory.createNode(new File("src/main/resources/standard-types-service.composite").toURI().toURL().toString(), - new Contribution("TestContribution", new File("src/main/resources/").toURI().toURL().toString())); - node.start(); - } catch (Throwable e) { - e.printStackTrace(); - } - } - - /** - * Runs after each test method - */ - @AfterClass - public static void tearDown() { - node.stop(); - } - - /** - * Invokes the StandardTypesService service using SCA binding. - * Service method invoked is getNewBigInteger. - */ - @Test - public void testSCANewBigInteger() throws Exception { - StandardTypesServiceClient serviceClient = - node.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientSCAComponent"); - performTestNewBigInteger(serviceClient); - } - - /** - * Invokes the StandardTypesService service using SCA binding. - * Service method invoked is getNewBigIntegerArray. - */ - @Test - public void testSCANewBigIntegerArray() throws Exception { - StandardTypesServiceClient serviceClient = - node.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientSCAComponent"); - performTestNewBigIntegerArray(serviceClient); - } - - /** - * Invokes the StandardTypesService service using SCA binding. - * Service method invoked is getNewBigDecimal. - */ - @Test - public void testSCANewBigDecimal() throws Exception { - StandardTypesServiceClient serviceClient = - node.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientSCAComponent"); - performTestNewBigDecimal(serviceClient); - } - - /** - * Invokes the StandardTypesService service using SCA binding. - * Service method invoked is getNewBigDecimalArray. - */ - @Test - public void testSCANewBigDecimalArray() throws Exception { - StandardTypesServiceClient serviceClient = - node.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientSCAComponent"); - performTestNewBigDecimalArray(serviceClient); - } - - /** - * Invokes the StandardTypesService service using SCA binding. - * Service method invoked is getNewCalendar. - */ - @Test - public void testSCANewCalendar() throws Exception { - StandardTypesServiceClient serviceClient = - node.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientSCAComponent"); - performTestNewCalendar(serviceClient); - } - - /** - * Invokes the StandardTypesService service using SCA binding. - * Service method invoked is getNewCalendarArray. - */ - @Test - public void testSCANewCalendarArray() throws Exception { - StandardTypesServiceClient serviceClient = - node.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientSCAComponent"); - performTestNewCalendarArray(serviceClient); - } - - /** - * Invokes the StandardTypesService service using SCA binding. - * Service method invoked is getNewDate. - */ - @Test - public void testSCANewDate() throws Exception { - StandardTypesServiceClient serviceClient = - node.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientSCAComponent"); - performTestNewDate(serviceClient); - } - - /** - * Invokes the StandardTypesService service using SCA binding. - * Service method invoked is getNewDateArray. - */ - @Test - public void testSCANewDateArray() throws Exception { - StandardTypesServiceClient serviceClient = - node.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientSCAComponent"); - performTestNewDateArray(serviceClient); - } - - /** - * Invokes the StandardTypesService service using SCA binding. - * Service method invoked is getNewQName. - */ - @Test - public void testSCANewQName() throws Exception { - StandardTypesServiceClient serviceClient = - node.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientSCAComponent"); - performTestNewQName(serviceClient); - } - - /** - * Invokes the StandardTypesService service using SCA binding. - * Service method invoked is getNewQNameArray. - */ - @Test - public void testSCANewQNameArray() throws Exception { - StandardTypesServiceClient serviceClient = - node.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientSCAComponent"); - performTestNewQNameArray(serviceClient); - } - - /** - * Invokes the StandardTypesService service using SCA binding. - * Service method invoked is getNewURI. - */ - @Test - public void testSCANewURI() throws Exception { - StandardTypesServiceClient serviceClient = - node.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientSCAComponent"); - performTestNewURI(serviceClient); - } - - /** - * Invokes the StandardTypesService service using SCA binding. - * Service method invoked is getNewURIArray. - */ - @Test - public void testSCANewURIArray() throws Exception { - StandardTypesServiceClient serviceClient = - node.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientSCAComponent"); - performTestNewURIArray(serviceClient); - } - - /** - * Invokes the StandardTypesService service using SCA binding. - * Service method invoked is getNewXMLGregorianCalendar. - */ - @Test - public void testSCANewXMLGregorianCalendar() throws Exception { - StandardTypesServiceClient serviceClient = - node.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientSCAComponent"); - performTestNewXMLGregorianCalendar(serviceClient); - } - - /** - * Invokes the StandardTypesService service using SCA binding. - * Service method invoked is getNewXMLGregorianCalendarArray. - */ - @Test - public void testSCANewXMLGregorianCalendarArray() throws Exception { - StandardTypesServiceClient serviceClient = - node.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientSCAComponent"); - performTestNewXMLGregorianCalendarArray(serviceClient); - } - - /** - * Invokes the StandardTypesService service using SCA binding. - * Service method invoked is getNewDuration. - */ - @Test - public void testSCANewDuration() throws Exception { - StandardTypesServiceClient serviceClient = - node.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientSCAComponent"); - performTestNewDuration(serviceClient); - } - - /** - * Invokes the StandardTypesService service using SCA binding. - * Service method invoked is getNewDurationArray. - */ - @Test - public void testSCANewDurationArray() throws Exception { - StandardTypesServiceClient serviceClient = - node.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientSCAComponent"); - performTestNewDurationArray(serviceClient); - } - - /** - * Invokes the StandardTypesService service using SCA binding. - * Service method invoked is getNewObject. - */ - @Test - public void testSCANewObject() throws Exception { - StandardTypesServiceClient serviceClient = - node.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientSCAComponent"); - performTestNewObject(serviceClient); - } - - /** - * Invokes the StandardTypesService service using SCA binding. - * Service method invoked is getNewObjectArray. - */ - @Test - public void testSCANewObjectArray() throws Exception { - StandardTypesServiceClient serviceClient = - node.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientSCAComponent"); - performTestNewObjectArray(serviceClient); - } - - /** - * Invokes the StandardTypesService service using SCA binding. - * Service method invoked is getNewImage. - */ - @Test - public void testSCANewImage() throws Exception { - StandardTypesServiceClient serviceClient = - node.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientSCAComponent"); - performTestNewImage(serviceClient); - } - - /** - * Invokes the StandardTypesService service using SCA binding. - * Service method invoked is getNewImageArray. - */ - @Test - public void testSCANewImageArray() throws Exception { - StandardTypesServiceClient serviceClient = - node.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientSCAComponent"); - performTestNewImageArray(serviceClient); - } - - /** - * Invokes the StandardTypesService service using SCA binding. - * Service method invoked is getNewDataHandler. - */ - @Test - public void testSCANewDataHandler() throws Exception { - StandardTypesServiceClient serviceClient = - node.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientSCAComponent"); - performTestNewDataHandler(serviceClient); - } - - /** - * Invokes the StandardTypesService service using SCA binding. - * Service method invoked is getNewDataHandlerArray. - */ - @Test - public void testSCANewDataHandlerArray() throws Exception { - StandardTypesServiceClient serviceClient = - node.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientSCAComponent"); - performTestNewDataHandlerArray(serviceClient); - } - - /** - * Invokes the StandardTypesService service using SCA binding. - * Service method invoked is getNewSource. - */ - /*@Test - public void testSCANewSource() throws Exception { - StandardTypesServiceClient serviceClient = - node.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientSCAComponent"); - performTestNewSource(serviceClient); - }*/ - - /** - * Invokes the StandardTypesService service using SCA binding. - * Service method invoked is getNewSourceArray. - */ - /*@Test - @Ignore("TUSCANY-2387") - public void testSCANewSourceArray() throws Exception { - StandardTypesServiceClient serviceClient = - node.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientSCAComponent"); - performTestNewSourceArray(serviceClient); - }*/ - - /** - * Invokes the StandardTypesService service using SCA binding. - * Service method invoked is getNewUUID. - */ - @Test - public void testSCANewUUID() throws Exception { - StandardTypesServiceClient serviceClient = - node.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientSCAComponent"); - performTestNewUUID(serviceClient); - } - - /** - * Invokes the StandardTypesService service using SCA binding. - * Service method invoked is getNewUUIDArray. - */ - @Test - public void testSCANewUUIDArray() throws Exception { - StandardTypesServiceClient serviceClient = - node.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientSCAComponent"); - performTestNewUUIDArray(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewBigInteger. - */ - @Test - public void testWSNewBigInteger() throws Exception { - StandardTypesServiceClient serviceClient = - node.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientWSComponent"); - performTestNewBigInteger(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewBigIntegerArray. - */ - @Test - public void testWSNewBigIntegerArray() throws Exception { - StandardTypesServiceClient serviceClient = - node.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientWSComponent"); - performTestNewBigIntegerArray(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewBigDecimal. - */ - @Test - public void testWSNewBigDecimal() throws Exception { - StandardTypesServiceClient serviceClient = - node.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientWSComponent"); - performTestNewBigDecimal(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewBigDecimalArray. - */ - @Test - public void testWSNewBigDecimalArray() throws Exception { - StandardTypesServiceClient serviceClient = - node.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientWSComponent"); - performTestNewBigDecimalArray(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewCalendar. - */ - @Test - public void testWSNewCalendar() throws Exception { - StandardTypesServiceClient serviceClient = - node.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientWSComponent"); - performTestNewCalendar(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewCalendarArray. - */ - @Test - public void testWSNewCalendarArray() throws Exception { - StandardTypesServiceClient serviceClient = - node.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientWSComponent"); - performTestNewCalendarArray(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewDate. - */ - @Test - public void testWSNewDate() throws Exception { - StandardTypesServiceClient serviceClient = - node.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientWSComponent"); - performTestNewDate(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewDateArray. - */ - @Test - public void testWSNewDateArray() throws Exception { - StandardTypesServiceClient serviceClient = - node.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientWSComponent"); - performTestNewDateArray(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewQName. - */ - @Test - public void testWSNewQName() throws Exception { - StandardTypesServiceClient serviceClient = - node.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientWSComponent"); - performTestNewQName(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewQNameArray. - */ - @Test - public void testWSNewQNameArray() throws Exception { - StandardTypesServiceClient serviceClient = - node.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientWSComponent"); - performTestNewQNameArray(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewURI. - */ - @Test - public void testWSNewURI() throws Exception { - StandardTypesServiceClient serviceClient = - node.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientWSComponent"); - performTestNewURI(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewURIArray. - */ - @Test - public void testWSNewURIArray() throws Exception { - StandardTypesServiceClient serviceClient = - node.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientWSComponent"); - performTestNewURIArray(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewXMLGregorianCalendar. - */ - @Test - public void testWSNewXMLGregorianCalendar() throws Exception { - StandardTypesServiceClient serviceClient = - node.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientWSComponent"); - performTestNewXMLGregorianCalendar(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewXMLGregorianCalendarArray. - */ - @Test - public void testWSNewXMLGregorianCalendarArray() throws Exception { - StandardTypesServiceClient serviceClient = - node.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientWSComponent"); - performTestNewXMLGregorianCalendarArray(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewDuration. - */ - @Test - public void testWSNewDuration() throws Exception { - StandardTypesServiceClient serviceClient = - node.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientWSComponent"); - performTestNewDuration(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewDurationArray. - */ - @Test - public void testWSNewDurationArray() throws Exception { - StandardTypesServiceClient serviceClient = - node.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientWSComponent"); - performTestNewDurationArray(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewObject. - */ - @Test - public void testWSNewObject() throws Exception { - StandardTypesServiceClient serviceClient = - node.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientWSComponent"); - performTestNewObject(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewObjectArray. - */ - @Test - public void testWSNewObjectArray() throws Exception { - StandardTypesServiceClient serviceClient = - node.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientWSComponent"); - performTestNewObjectArray(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewImage. - */ - @Test - public void testWSNewImage() throws Exception { - StandardTypesServiceClient serviceClient = - node.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientWSComponent"); - performTestNewImage(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewImageArray. - */ - @Test - public void testWSNewImageArray() throws Exception { - StandardTypesServiceClient serviceClient = - node.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientWSComponent"); - performTestNewImageArray(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewDataHandler. - */ - @Test - public void testWSNewDataHandler() throws Exception { - StandardTypesServiceClient serviceClient = - node.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientWSComponent"); - performTestNewDataHandler(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewDataHandlerArray. - */ - @Test - public void testWSNewDataHandlerArray() throws Exception { - StandardTypesServiceClient serviceClient = - node.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientWSComponent"); - performTestNewDataHandlerArray(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewSource. - */ - /*@Test - // @Ignore("junit.framework.ComparisonFailure: null expected:<... encoding=\"UTF-8\"?><[a>A> but was:<... encoding=\"UTF-8\"?><[return xmlns=\"http://jaxb.databindings.itest.sca.tuscany.apache.org/\">A>") - public void testWSNewSource() throws Exception { - StandardTypesServiceClient serviceClient = - node.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientWSComponent"); - performTestNewSource(serviceClient); - }*/ - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewSourceArray. - */ - /*@Test - @Ignore("TUSCANY-2386") - public void testWSNewSourceArray() throws Exception { - StandardTypesServiceClient serviceClient = - node.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientWSComponent"); - performTestNewSourceArray(serviceClient); - }*/ - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewUUID. - */ - @Test - public void testWSNewUUID() throws Exception { - StandardTypesServiceClient serviceClient = - node.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientWSComponent"); - performTestNewUUID(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewUUIDArray. - */ - @Test - public void testWSNewUUIDArray() throws Exception { - StandardTypesServiceClient serviceClient = - node.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientWSComponent"); - performTestNewUUIDArray(serviceClient); - } - - /** - * Invokes the StandardTypesLocalService service using SCA binding. - * Service method invoked is getNewBigInteger. - */ - @Test - public void testSCALocalNewBigInteger() throws Exception { - StandardTypesServiceClient serviceClient = - node.getService(StandardTypesServiceClient.class, "StandardTypesLocalServiceClientSCAComponent"); - performTestNewBigInteger(serviceClient); - } - - /** - * Invokes the StandardTypesLocalService service using SCA binding. - * Service method invoked is getNewBigIntegerArray. - */ - @Test - public void testSCALocalNewBigIntegerArray() throws Exception { - StandardTypesServiceClient serviceClient = - node.getService(StandardTypesServiceClient.class, "StandardTypesLocalServiceClientSCAComponent"); - performTestNewBigIntegerArray(serviceClient); - } - - /** - * Invokes the StandardTypesLocalService service using SCA binding. - * Service method invoked is getNewBigDecimal. - */ - @Test - public void testSCALocalNewBigDecimal() throws Exception { - StandardTypesServiceClient serviceClient = - node.getService(StandardTypesServiceClient.class, "StandardTypesLocalServiceClientSCAComponent"); - performTestNewBigDecimal(serviceClient); - } - - /** - * Invokes the StandardTypesLocalService service using SCA binding. - * Service method invoked is getNewBigDecimalArray. - */ - @Test - public void testSCALocalNewBigDecimalArray() throws Exception { - StandardTypesServiceClient serviceClient = - node.getService(StandardTypesServiceClient.class, "StandardTypesLocalServiceClientSCAComponent"); - performTestNewBigDecimalArray(serviceClient); - } - - /** - * Invokes the StandardTypesLocalService service using SCA binding. - * Service method invoked is getNewCalendar. - */ - @Test - public void testSCALocalNewCalendar() throws Exception { - StandardTypesServiceClient serviceClient = - node.getService(StandardTypesServiceClient.class, "StandardTypesLocalServiceClientSCAComponent"); - performTestNewCalendar(serviceClient); - } - - /** - * Invokes the StandardTypesLocalService service using SCA binding. - * Service method invoked is getNewCalendarArray. - */ - @Test - public void testSCALocalNewCalendarArray() throws Exception { - StandardTypesServiceClient serviceClient = - node.getService(StandardTypesServiceClient.class, "StandardTypesLocalServiceClientSCAComponent"); - performTestNewCalendarArray(serviceClient); - } - - /** - * Invokes the StandardTypesLocalService service using SCA binding. - * Service method invoked is getNewDate. - */ - @Test - public void testSCALocalNewDate() throws Exception { - StandardTypesServiceClient serviceClient = - node.getService(StandardTypesServiceClient.class, "StandardTypesLocalServiceClientSCAComponent"); - performTestNewDate(serviceClient); - } - - /** - * Invokes the StandardTypesLocalService service using SCA binding. - * Service method invoked is getNewDateArray. - */ - @Test - public void testSCALocalNewDateArray() throws Exception { - StandardTypesServiceClient serviceClient = - node.getService(StandardTypesServiceClient.class, "StandardTypesLocalServiceClientSCAComponent"); - performTestNewDateArray(serviceClient); - } - - /** - * Invokes the StandardTypesLocalService service using SCA binding. - * Service method invoked is getNewQName. - */ - @Test - public void testSCALocalNewQName() throws Exception { - StandardTypesServiceClient serviceClient = - node.getService(StandardTypesServiceClient.class, "StandardTypesLocalServiceClientSCAComponent"); - performTestNewQName(serviceClient); - } - - /** - * Invokes the StandardTypesLocalService service using SCA binding. - * Service method invoked is getNewQNameArray. - */ - @Test - public void testSCALocalNewQNameArray() throws Exception { - StandardTypesServiceClient serviceClient = - node.getService(StandardTypesServiceClient.class, "StandardTypesLocalServiceClientSCAComponent"); - performTestNewQNameArray(serviceClient); - } - - /** - * Invokes the StandardTypesLocalService service using SCA binding. - * Service method invoked is getNewURI. - */ - @Test - public void testSCALocalNewURI() throws Exception { - StandardTypesServiceClient serviceClient = - node.getService(StandardTypesServiceClient.class, "StandardTypesLocalServiceClientSCAComponent"); - performTestNewURI(serviceClient); - } - - /** - * Invokes the StandardTypesLocalService service using SCA binding. - * Service method invoked is getNewURIArray. - */ - @Test - public void testSCALocalNewURIArray() throws Exception { - StandardTypesServiceClient serviceClient = - node.getService(StandardTypesServiceClient.class, "StandardTypesLocalServiceClientSCAComponent"); - performTestNewURIArray(serviceClient); - } - - /** - * Invokes the StandardTypesLocalService service using SCA binding. - * Service method invoked is getNewXMLGregorianCalendar. - */ - @Test - public void testSCALocalNewXMLGregorianCalendar() throws Exception { - StandardTypesServiceClient serviceClient = - node.getService(StandardTypesServiceClient.class, "StandardTypesLocalServiceClientSCAComponent"); - performTestNewXMLGregorianCalendar(serviceClient); - } - - /** - * Invokes the StandardTypesLocalService service using SCA binding. - * Service method invoked is getNewXMLGregorianCalendarArray. - */ - @Test - public void testSCALocalNewXMLGregorianCalendarArray() throws Exception { - StandardTypesServiceClient serviceClient = - node.getService(StandardTypesServiceClient.class, "StandardTypesLocalServiceClientSCAComponent"); - performTestNewXMLGregorianCalendarArray(serviceClient); - } - - /** - * Invokes the StandardTypesLocalService service using SCA binding. - * Service method invoked is getNewDuration. - */ - @Test - public void testSCALocalNewDuration() throws Exception { - StandardTypesServiceClient serviceClient = - node.getService(StandardTypesServiceClient.class, "StandardTypesLocalServiceClientSCAComponent"); - performTestNewDuration(serviceClient); - } - - /** - * Invokes the StandardTypesLocalService service using SCA binding. - * Service method invoked is getNewDurationArray. - */ - @Test - public void testSCALocalNewDurationArray() throws Exception { - StandardTypesServiceClient serviceClient = - node.getService(StandardTypesServiceClient.class, "StandardTypesLocalServiceClientSCAComponent"); - performTestNewDurationArray(serviceClient); - } - - /** - * Invokes the StandardTypesLocalService service using SCA binding. - * Service method invoked is getNewObject. - */ - @Test - public void testSCALocalNewObject() throws Exception { - StandardTypesServiceClient serviceClient = - node.getService(StandardTypesServiceClient.class, "StandardTypesLocalServiceClientSCAComponent"); - performTestNewObject(serviceClient); - } - - /** - * Invokes the StandardTypesLocalService service using SCA binding. - * Service method invoked is getNewObjectArray. - */ - @Test - public void testSCALocalNewObjectArray() throws Exception { - StandardTypesServiceClient serviceClient = - node.getService(StandardTypesServiceClient.class, "StandardTypesLocalServiceClientSCAComponent"); - performTestNewObjectArray(serviceClient); - } - - /** - * Invokes the StandardTypesLocalService service using SCA binding. - * Service method invoked is getNewImage. - */ - @Test - public void testSCALocalNewImage() throws Exception { - StandardTypesServiceClient serviceClient = - node.getService(StandardTypesServiceClient.class, "StandardTypesLocalServiceClientSCAComponent"); - performTestNewImage(serviceClient); - } - - /** - * Invokes the StandardTypesLocalService service using SCA binding. - * Service method invoked is getNewImageArray. - */ - @Test - public void testSCALocalNewImageArray() throws Exception { - StandardTypesServiceClient serviceClient = - node.getService(StandardTypesServiceClient.class, "StandardTypesLocalServiceClientSCAComponent"); - performTestNewImageArray(serviceClient); - } - - /** - * Invokes the StandardTypesLocalLocalService service using SCA binding. - * Service method invoked is getNewDataHandler. - */ - @Test - public void testSCALocalNewDataHandler() throws Exception { - StandardTypesServiceClient serviceClient = - node.getService(StandardTypesServiceClient.class, "StandardTypesLocalServiceClientSCAComponent"); - performTestNewDataHandler(serviceClient); - } - - /** - * Invokes the StandardTypesLocalService service using SCA binding. - * Service method invoked is getNewDataHandlerArray. - */ - @Test - public void testSCALocalNewDataHandlerArray() throws Exception { - StandardTypesServiceClient serviceClient = - node.getService(StandardTypesServiceClient.class, "StandardTypesLocalServiceClientSCAComponent"); - performTestNewDataHandlerArray(serviceClient); - } - - /** - * Invokes the StandardTypesLocalService service using SCA binding. - * Service method invoked is getNewSource. - */ - /*@Test - public void testSCALocalNewSource() throws Exception { - StandardTypesServiceClient serviceClient = - node.getService(StandardTypesServiceClient.class, "StandardTypesLocalServiceClientSCAComponent"); - performTestNewSource(serviceClient); - }*/ - - /** - * Invokes the StandardTypesLocalService service using SCA binding. - * Service method invoked is getNewSourceArray. - */ - /*@Test - public void testSCALocalNewSourceArray() throws Exception { - StandardTypesServiceClient serviceClient = - node.getService(StandardTypesServiceClient.class, "StandardTypesLocalServiceClientSCAComponent"); - performTestNewSourceArray(serviceClient); - }*/ - - /** - * Invokes the StandardTypesLocalService service using SCA binding. - * Service method invoked is getNewUUID. - */ - @Test - public void testSCALocalNewUUID() throws Exception { - StandardTypesServiceClient serviceClient = - node.getService(StandardTypesServiceClient.class, "StandardTypesLocalServiceClientSCAComponent"); - performTestNewUUID(serviceClient); - } - - /** - * Invokes the StandardTypesLocalService service using SCA binding. - * Service method invoked is getNewUUIDArray. - */ - @Test - public void testSCALocalNewUUIDArray() throws Exception { - StandardTypesServiceClient serviceClient = - node.getService(StandardTypesServiceClient.class, "StandardTypesLocalServiceClientSCAComponent"); - performTestNewUUIDArray(serviceClient); - } - - private void performTestNewBigInteger(StandardTypesServiceClient serviceClient) { - BigInteger bi = new BigInteger("1234567890123456789012345678901234"); - BigInteger expected = bi.negate(); - BigInteger actual = serviceClient.getNewBigIntegerForward(bi); - Assert.assertEquals(expected, actual); - } - - private void performTestNewBigIntegerArray(StandardTypesServiceClient serviceClient) { - BigInteger[] bia = new BigInteger[2]; - bia[0] = new BigInteger("1234567890123456789012345678901234"); - bia[1] = new BigInteger("-98765432109876543210987654321"); - BigInteger[] actual = serviceClient.getNewBigIntegerArrayForward(bia); - Assert.assertEquals(bia.length, actual.length); - for (int i = 0; i < bia.length; ++i) { - Assert.assertEquals(bia[i].negate(), actual[i]); - } - } - - private void performTestNewBigDecimal(StandardTypesServiceClient serviceClient) { - BigDecimal bd = new BigDecimal("12345678901234567890.12345678901234"); - BigDecimal expected = bd.negate(); - BigDecimal actual = serviceClient.getNewBigDecimalForward(bd); - Assert.assertEquals(expected, actual); - } - - private void performTestNewBigDecimalArray(StandardTypesServiceClient serviceClient) { - BigDecimal[] bda = new BigDecimal[2]; - bda[0] = new BigDecimal("1234567890123456.789012345678901234"); - bda[1] = new BigDecimal("-987654321098765.43210987654321"); - BigDecimal[] actual = serviceClient.getNewBigDecimalArrayForward(bda); - Assert.assertEquals(bda.length, actual.length); - for (int i = 0; i < bda.length; ++i) { - Assert.assertEquals(bda[i].negate(), actual[i]); - } - } - - private void performTestNewCalendar(StandardTypesServiceClient serviceClient) { - Calendar[] ca = new Calendar[3]; - String[] tz = {"GMT+05:30", "GMT+00:00", "GMT-05:00"}; - for (int i = 0; i < ca.length; ++i) { - ca[i] = Calendar.getInstance(TimeZone.getTimeZone(tz[i])); - ca[i].set(Calendar.DAY_OF_MONTH, i + 1); - } - for (int i = 0; i < ca.length; ++i) { - Calendar actual = serviceClient.getNewCalendarForward(ca[i]); - ca[i].add(Calendar.DAY_OF_MONTH, 5); - if (actual instanceof GregorianCalendar && ca[i] instanceof GregorianCalendar) { - // FIXME: Is this a problem? - // The instance returned by service method invoked over binding.ws seems to have a gregorianCutover - // different from the instance passed. Adjust the gregorianCutover as per the input instance. - ((GregorianCalendar)actual).setGregorianChange(((GregorianCalendar)ca[i]).getGregorianChange()); - } - Assert.assertEquals(ca[i], actual); - } - } - - private void performTestNewCalendarArray(StandardTypesServiceClient serviceClient) { - Calendar[] ca = new Calendar[3]; - String[] tz = {"GMT+05:30", "GMT+00:00", "GMT-05:00"}; - for (int i = 0; i < ca.length; ++i) { - ca[i] = Calendar.getInstance(TimeZone.getTimeZone(tz[i])); - ca[i].set(Calendar.DAY_OF_MONTH, i + 1); - } - Calendar[] actual = serviceClient.getNewCalendarArrayForward(ca); - Assert.assertEquals(ca.length, actual.length); - for (int i = 0; i < ca.length; ++i) { - ca[i].add(Calendar.DAY_OF_MONTH, 5); - if (actual[i] instanceof GregorianCalendar && ca[i] instanceof GregorianCalendar) { - // FIXME: Is this a problem? - // The instance returned by service method invoked over binding.ws seems to have a gregorianCutover - // different from the instance passed. Adjust the gregorianCutover as per the input instance. - ((GregorianCalendar)actual[i]).setGregorianChange(((GregorianCalendar)ca[i]).getGregorianChange()); - } - Assert.assertEquals(ca[i], actual[i]); - } - } - - private void performTestNewDate(StandardTypesServiceClient serviceClient) { - Date d = new Date(); - Date expected = new Date(d.getTime() + 5 * 24 * 60 * 60 * 1000); - Date actual = serviceClient.getNewDateForward(d); - Assert.assertEquals(expected, actual); - } - - private void performTestNewDateArray(StandardTypesServiceClient serviceClient) { - Date[] d = new Date[2]; - Date[] expected = new Date[d.length]; - for (int i = 0; i < d.length; ++i) { - d[i] = new Date(); - d[i].setTime(d[i].getTime() + i * 24 * 60 * 60 * 1000); - expected[i] = new Date(d[i].getTime() + 5 * 24 * 60 * 60 * 1000); - } - Date[] actual = serviceClient.getNewDateArrayForward(d); - Assert.assertEquals(expected.length, actual.length); - for (int i = 0; i < expected.length; ++i) { - Assert.assertEquals(expected[i], actual[i]); - } - } - - private void performTestNewQName(StandardTypesServiceClient serviceClient) { - QName[] qnames = new QName[3]; - qnames[0] = new QName("localPart"); - qnames[1] = new QName("namespaceUri", "localPart"); - qnames[2] = new QName("namespaceUri", "localPart", "prefix"); - QName[] expected = new QName[qnames.length]; - for (int i = 0; i < qnames.length; ++i) { - expected[i] = - new QName(qnames[i].getNamespaceURI() + "q", qnames[i].getLocalPart() + "q", - qnames[i].getPrefix() + "q"); - } - for (int i = 0; i < qnames.length; ++i) { - QName actual = serviceClient.getNewQNameForward(qnames[i]); - Assert.assertEquals(expected[i], actual); - } - } - - private void performTestNewQNameArray(StandardTypesServiceClient serviceClient) { - QName[] qnames = new QName[4]; - qnames[0] = new QName("localPart"); - qnames[1] = new QName("namespaceUri", "localPart"); - qnames[2] = new QName("namespaceUri", "localPart", "prefix"); - qnames[3] = new QName("localPart2"); - QName[] expected = new QName[qnames.length]; - for (int i = 0; i < qnames.length; ++i) { - expected[i] = - new QName(qnames[i].getNamespaceURI() + "q", qnames[i].getLocalPart() + "q", - qnames[i].getPrefix() + "q"); - } - QName[] actual = serviceClient.getNewQNameArrayForward(qnames); - Assert.assertEquals(expected.length, actual.length); - for (int i = 0; i < qnames.length; ++i) { - Assert.assertEquals(expected[i], actual[i]); - } - } - - private void performTestNewURI(StandardTypesServiceClient serviceClient) { - URI[] uris = new URI[4]; - uris[0] = URI.create("a/b/c"); - uris[1] = URI.create("http://abc/"); - uris[2] = URI.create("ftp://a/b"); - uris[3] = URI.create("http://abc/").resolve("xyz"); - - for (int i = 0; i < uris.length; ++i) { - URI expected = uris[i].resolve("uri"); - URI actual = serviceClient.getNewURIForward(uris[i]); - Assert.assertEquals(expected, actual); - } - } - - private void performTestNewURIArray(StandardTypesServiceClient serviceClient) { - URI[] uris = new URI[4]; - uris[0] = URI.create("a/b/c"); - // [rfeng] We need to have a trialign / to avoid the resolving problem - // FIXME: [vamsi] This is actually a data transformation problem. The array being returned from the service method is - // not making to the caller intact. - uris[1] = URI.create("http://abc/"); - uris[2] = URI.create("ftp://a/b"); - uris[3] = URI.create("http://abc/").resolve("xyz"); - - URI[] expected = new URI[uris.length]; - for (int i = 0; i < uris.length; ++i) { - expected[i] = uris[i].resolve("uri"); - } - - URI[] actual = serviceClient.getNewURIArrayForward(uris); - Assert.assertEquals(expected.length, actual.length); - for (int i = 0; i < uris.length; ++i) { - Assert.assertEquals(expected[i], actual[i]); - } - } - - private void performTestNewXMLGregorianCalendar(StandardTypesServiceClient serviceClient) - throws DatatypeConfigurationException { - DatatypeFactory df = DatatypeFactory.newInstance(); - XMLGregorianCalendar[] xgcals = new XMLGregorianCalendar[3]; - xgcals[0] = df.newXMLGregorianCalendar(new GregorianCalendar(1974, GregorianCalendar.APRIL, 19)); - xgcals[1] = df.newXMLGregorianCalendar(new GregorianCalendar(1978, GregorianCalendar.OCTOBER, 13)); - xgcals[2] = df.newXMLGregorianCalendar(new GregorianCalendar(2006, GregorianCalendar.JUNE, 16)); - - for (int i = 0; i < xgcals.length; ++i) { - XMLGregorianCalendar actual = serviceClient.getNewXMLGregorianCalendarForward(xgcals[i]); - xgcals[i].setDay(xgcals[i].getDay() + 5); - Assert.assertEquals(xgcals[i], actual); - } - } - - private void performTestNewXMLGregorianCalendarArray(StandardTypesServiceClient serviceClient) - throws DatatypeConfigurationException { - DatatypeFactory df = DatatypeFactory.newInstance(); - XMLGregorianCalendar[] xgcals = new XMLGregorianCalendar[3]; - xgcals[0] = df.newXMLGregorianCalendar(new GregorianCalendar(1974, GregorianCalendar.APRIL, 19)); - xgcals[1] = df.newXMLGregorianCalendar(new GregorianCalendar(1978, GregorianCalendar.OCTOBER, 13)); - xgcals[2] = df.newXMLGregorianCalendar(new GregorianCalendar(2006, GregorianCalendar.JUNE, 16)); - - XMLGregorianCalendar[] actual = serviceClient.getNewXMLGregorianCalendarArrayForward(xgcals); - Assert.assertEquals(xgcals.length, actual.length); - for (int i = 0; i < xgcals.length; ++i) { - xgcals[i].setDay(xgcals[i].getDay() + 5); - Assert.assertEquals(xgcals[i], actual[i]); - } - } - - private void performTestNewDuration(StandardTypesServiceClient serviceClient) throws DatatypeConfigurationException { - DatatypeFactory df = DatatypeFactory.newInstance(); - Duration[] da = new Duration[3]; - da[0] = df.newDuration(1000000000000L); - da[1] = df.newDurationDayTime(1000000000000L); - da[2] = df.newDurationYearMonth(true, 1, 3); - - for (int i = 0; i < da.length; ++i) { - Assert.assertEquals(da[i].negate(), serviceClient.getNewDurationForward(da[i])); - } - } - - private void performTestNewObject(StandardTypesServiceClient serviceClient) { - Object[] objs = new Object[5]; - objs[0] = "Hello"; - objs[1] = 10; - objs[2] = null; - objs[3] = -1.0; - objs[4] = null; - - for (int i = 0; i < objs.length; ++i) { - Object expected = StandardTypesTransformer.getNewObject(objs[i]); - Object actual = serviceClient.getNewObjectForward(objs[i]); - Assert.assertEquals(expected, actual); - } - } - - private void performTestNewObjectArray(StandardTypesServiceClient serviceClient) { - Object[] objs = new Object[5]; - objs[0] = "Hello"; - objs[1] = 10; - objs[2] = null; - objs[3] = -1.0; - objs[4] = null; - - Object[] actual = serviceClient.getNewObjectArrayForward(objs); - Assert.assertEquals(objs.length, actual.length); - for (int i = 0; i < objs.length; ++i) { - Object expected = StandardTypesTransformer.getNewObject(objs[i]); - Assert.assertEquals(expected, actual[i]); - } - } - - private void performTestNewImage(StandardTypesServiceClient serviceClient) throws InterruptedException { - // Create some images to test with. - Image[] imgs = new Image[3]; - imgs[0] = new BufferedImage(10, 10, BufferedImage.TYPE_3BYTE_BGR); - imgs[1] = new BufferedImage(10, 10, BufferedImage.TYPE_INT_ARGB); - imgs[2] = new BufferedImage(10, 10, BufferedImage.TYPE_INT_RGB); - imgs[0].getGraphics().drawLine(1, 1, 8, 8); - imgs[1].getGraphics().drawLine(8, 1, 1, 8); - imgs[2].getGraphics().drawLine(1, 8, 8, 1); - - Image[] copy = imgs; - // Create the same images once again as the StandardTypesTransformer may manipulate the image passed. - imgs = new Image[3]; - imgs[0] = new BufferedImage(10, 10, BufferedImage.TYPE_3BYTE_BGR); - imgs[1] = new BufferedImage(10, 10, BufferedImage.TYPE_INT_ARGB); - imgs[2] = new BufferedImage(10, 10, BufferedImage.TYPE_INT_RGB); - imgs[0].getGraphics().drawLine(1, 1, 8, 8); - imgs[1].getGraphics().drawLine(8, 1, 1, 8); - imgs[2].getGraphics().drawLine(1, 8, 8, 1); - - // Make sure the images and copies are equal using ImageInfo - for(int i = 0; i < imgs.length; ++i) { - Assert.assertEquals(new ImageInfo(imgs[i]), new ImageInfo(copy[i])); - } - - for (int i = 0; i < imgs.length; ++i) { - Image actual = serviceClient.getNewImageForward(imgs[i]); - Image expected = StandardTypesTransformer.getNewImage(copy[i]); - // Compare using ImageInfo - Assert.assertEquals(new ImageInfo(expected), new ImageInfo(actual)); - } - } - - private void performTestNewImageArray(StandardTypesServiceClient serviceClient) throws InterruptedException { - // Create some images to test with. - Image[] imgs = new Image[3]; - imgs[0] = new BufferedImage(10, 10, BufferedImage.TYPE_3BYTE_BGR); - imgs[1] = new BufferedImage(10, 10, BufferedImage.TYPE_INT_ARGB); - imgs[2] = new BufferedImage(10, 10, BufferedImage.TYPE_INT_RGB); - imgs[0].getGraphics().drawLine(1, 1, 8, 8); - imgs[1].getGraphics().drawLine(8, 1, 1, 8); - imgs[2].getGraphics().drawLine(1, 8, 8, 1); - - Image[] copy = imgs; - // Create the same images once again as the StandardTypesTransformer may manipulate the image passed. - imgs = new Image[3]; - imgs[0] = new BufferedImage(10, 10, BufferedImage.TYPE_3BYTE_BGR); - imgs[1] = new BufferedImage(10, 10, BufferedImage.TYPE_INT_ARGB); - imgs[2] = new BufferedImage(10, 10, BufferedImage.TYPE_INT_RGB); - imgs[0].getGraphics().drawLine(1, 1, 8, 8); - imgs[1].getGraphics().drawLine(8, 1, 1, 8); - imgs[2].getGraphics().drawLine(1, 8, 8, 1); - - // Make sure the images and copies are equal using ImageInfo - for(int i = 0; i < imgs.length; ++i) { - Assert.assertEquals(new ImageInfo(imgs[i]), new ImageInfo(copy[i])); - } - - Image[] actual = serviceClient.getNewImageArrayForward(imgs); - Assert.assertEquals(imgs.length, actual.length); - for (int i = 0; i < imgs.length; ++i) { - Image expected = StandardTypesTransformer.getNewImage(copy[i]); - // Compare using ImageInfo - Assert.assertEquals(new ImageInfo(expected), new ImageInfo(actual[i])); - } - } - - private void performTestNewDurationArray(StandardTypesServiceClient serviceClient) - throws DatatypeConfigurationException { - DatatypeFactory df = DatatypeFactory.newInstance(); - Duration[] da = new Duration[3]; - da[0] = df.newDuration(1000000000000L); - da[1] = df.newDurationDayTime(1000000000000L); - da[2] = df.newDurationYearMonth(true, 1, 3); - - Duration[] actual = serviceClient.getNewDurationArrayForward(da); - Assert.assertEquals(da.length, actual.length); - for (int i = 0; i < da.length; ++i) { - Assert.assertEquals(da[i].negate(), actual[i]); - } - } - - private void performTestNewDataHandler(StandardTypesServiceClient serviceClient) throws IOException { - DataHandler[] dha = new DataHandler[3]; - dha[0] = new DataHandler("Some data", "text/plain"); - dha[1] = new DataHandler(new URL("http://tuscany.apache.org/home.html")); - dha[2] = new DataHandler(new ByteArrayDataSource("Some data2".getBytes())); - - for (int i = 0; i < dha.length; ++i) { - DataHandler actual = serviceClient.getNewDataHandlerForward(dha[i]); - // Note: The DataHandler returned may use a different type of DataSource. - // Compare the data content instead of using equals(). - Assert.assertTrue(compare(dha[i], actual)); - } - } - - private void performTestNewDataHandlerArray(StandardTypesServiceClient serviceClient) throws IOException { - DataHandler[] dha = new DataHandler[3]; - dha[0] = new DataHandler("Some data", "text/plain"); - dha[1] = new DataHandler(new URL("http://tuscany.apache.org/home.html")); - dha[2] = new DataHandler(new ByteArrayDataSource("Some data2".getBytes())); - - DataHandler[] actual = serviceClient.getNewDataHandlerArrayForward(dha); - Assert.assertEquals(dha.length, actual.length); - for (int i = 0; i < dha.length; ++i) { - // Note: The DataHandler returned may use a different type of DataSource. - // Compare the data content instead of using equals(). - Assert.assertTrue(compare(dha[i], actual[i])); - } - } - - /*private void performTestNewSource(StandardTypesServiceClient serviceClient) throws Exception { - String xml = "ABC"; - Source[] srcs = new Source[3]; - srcs[0] = new DOMSource(new String2Node(null).transform(xml, null)); - srcs[1] = new SAXSource(new InputSource(new StringReader(xml))); - srcs[2] = new StreamSource(new StringReader(xml)); - - for (int i = 0; i < srcs.length; ++i) { - Source expected = StandardTypesTransformer.getNewSource(srcs[i]); - Source actual = serviceClient.getNewSourceForward(srcs[i]); - // [rfeng] The data may come back as a different source - Assert.assertEquals(sourceToString(expected), sourceToString(actual)); - } - } - - private void performTestNewSourceArray(StandardTypesServiceClient serviceClient) throws Exception { - String xml = "ABC"; - Source[] srcs = new Source[3]; - srcs[0] = new DOMSource(new String2Node(null).transform(xml, null)); - srcs[1] = new SAXSource(new InputSource(new StringReader(xml))); - srcs[2] = new StreamSource(new StringReader(xml)); - - Source[] actual = serviceClient.getNewSourceArrayForward(srcs); - Source[] expected = new Source[srcs.length]; - for(int i = 0; i < srcs.length; ++i) { - expected[i] = StandardTypesTransformer.getNewSource(srcs[i]); - } - Assert.assertEquals(srcs.length, actual.length); - for (int i = 0; i < srcs.length; ++i) { - // [rfeng] The data may come back as a different source - Assert.assertEquals(sourceToString(expected[i]), sourceToString(actual[i])); - } - - }*/ - - private void performTestNewUUID(StandardTypesServiceClient serviceClient) { - UUID[] uuids = new UUID[3]; - uuids[0] = UUID.nameUUIDFromBytes("ABCDEFGHJKLMNOPQRSTUVWXYZ".getBytes()); - uuids[1] = UUID.nameUUIDFromBytes("abcdefghjklmnopqrstuvwxyz".getBytes()); - uuids[2] = UUID.randomUUID(); - - for (int i = 0; i < uuids.length; ++i) { - UUID expected = UUID.fromString(uuids[i].toString() + "AAA"); - UUID actual = serviceClient.getNewUUIDForward(uuids[i]); - Assert.assertEquals(expected, actual); - } - } - - private void performTestNewUUIDArray(StandardTypesServiceClient serviceClient) { - UUID[] uuids = new UUID[3]; - uuids[0] = UUID.nameUUIDFromBytes("ABCDEFGHJKLMNOPQRSTUVWXYZ".getBytes()); - uuids[1] = UUID.nameUUIDFromBytes("abcdefghjklmnopqrstuvwxyz".getBytes()); - uuids[2] = UUID.randomUUID(); - - UUID[] actual = serviceClient.getNewUUIDArrayForward(uuids); - for (int i = 0; i < uuids.length; ++i) { - UUID expected = UUID.fromString(uuids[i].toString() + "AAA"); - Assert.assertEquals(expected, actual[i]); - } - } - - /** - * This method compares two DataHandlers. - * @return true if the data in the two handlers is the same. - */ - private boolean compare(DataHandler dh1, DataHandler dh2) throws IOException { - InputStream inp1 = dh1.getInputStream(); - InputStream inp2 = dh2.getInputStream(); - for(;;) { - int i1 = inp1.read(); - int i2 = inp2.read(); - if(i1 == -1 && i2 == -1) { - return true; - } else if(i1 != -1 && i2 != -1) { - if(i1 != i2) { - return false; - } - } else { - return false; - } - } - } - - /** - * This method returns the content of a source object as String. - */ - private String sourceToString(Source s) throws Exception { - StringWriter sw = new StringWriter(); - Result r = new StreamResult(sw); - TransformerFactory.newInstance().newTransformer().transform(s, r); - sw.close(); - return sw.toString(); - } - - /** - * This class initializes with the width, height and pixel data of a java.awt.Image object. - */ - private static class ImageInfo { - private int h, w, pixels[]; - public ImageInfo(Image img) throws InterruptedException { - w = img.getWidth(null); - h = img.getHeight(null); - pixels = new int[w*h]; - PixelGrabber pg = new PixelGrabber(img, 0, 0, w, h, pixels, 0, w); - pg.grabPixels(); - } - - public boolean equals(Object that) { - if(that == null) { - return false; - } else if(!(that instanceof ImageInfo)) { - return false; - } - - ImageInfo that1 = (ImageInfo)that; - if(w != that1.w || h != that1.h || pixels == null || that1.pixels == null || pixels.length != that1.pixels.length) { - return false; - } - for(int i = 0; i < pixels.length; ++i) { - if(pixels[i] != that1.pixels[i]) { - return false; - } - } - return true; - } - - public String toString() { - return this.getClass().getSimpleName()+"[w = "+w+", h = "+h+", pixels = "+pixels+"]"; - } - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-top-down/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-top-down/pom.xml deleted file mode 100644 index 152b1c8f91..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-top-down/pom.xml +++ /dev/null @@ -1,189 +0,0 @@ - - - - - - - - org.apache.tuscany.sca - itest-databindings - 2.0-M5 - ../pom.xml - - 4.0.0 - itest-databindings-jaxb-top-down - 2.0-M5 - Apache Tuscany SCA iTest Databinding - JAXB Top Down - - - - - true - - java.net - java.net Maven 1.x Repository - http://download.java.net/maven/1 - legacy - - - java.net2 - java.net Maven 2.x Repository - http://download.java.net/maven/2 - - - - - - java.net2 - java.net Maven 2.x Repository - http://download.java.net/maven/2 - - - - - - org.apache.tuscany.sca - tuscany-node-api - ${pom.version} - - - org.apache.tuscany.sca - tuscany-node-impl - ${pom.version} - - - org.apache.tuscany.sca - tuscany-binding-ws-runtime-axis2 - 2.0-M5 - runtime - - - org.apache.tuscany.sca - tuscany-databinding-jaxb - 2.0-M5 - runtime - - - - org.apache.tuscany.sca - tuscany-databinding-axiom - 2.0-M5 - compile - - - - org.apache.tuscany.sca - tuscany-implementation-java-runtime - 2.0-M5 - runtime - - - org.apache.tuscany.sca - tuscany-interface-java - 2.0-M5 - compile - - - org.apache.tuscany.sca - tuscany-host-jetty - 2.0-M5 - runtime - - - javax.xml.bind - jaxb-api - 2.1 - compile - - - - com.sun.xml.ws - jaxws-rt - 2.1.3 - - - - commons-collections - commons-collections - 3.1 - - - log4j - log4j - 1.2.12 - provided - - - - - - - - org.apache.maven.plugins - maven-surefire-plugin - - -Djava.endorsed.dirs=target/endorsed - - - - org.apache.maven.plugins - maven-dependency-plugin - - - copy - generate-sources - - copy - - - - - javax.xml.ws - jaxws-api - 2.1 - jar - - - javax.xml.bind - jaxb-api - 2.1 - jar - - - ${project.build.directory}/endorsed - false - true - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-top-down/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/HelloService.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-top-down/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/HelloService.java deleted file mode 100644 index ab2d9630eb..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-top-down/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/HelloService.java +++ /dev/null @@ -1,42 +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 org.apache.tuscany.sca.itest.databindings.jaxb; - -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -import org.oasisopen.sca.annotation.Remotable; - -/** - * The interface for HelloService. - * - * @version $Rev$ $Date$ - */ -@Remotable -public interface HelloService { - String getGreetings(String name); - String[] getGreetingsArray(String[] names); - List getGreetingsList(List names); - ArrayList getGreetingsArrayList(ArrayList names); - Map getGreetingsMap(Map namesMap); - HashMap getGreetingsHashMap(HashMap namesMap); - String getGreetingsVarArgs(String... names); -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-top-down/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/HelloServiceClient.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-top-down/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/HelloServiceClient.java deleted file mode 100644 index 7bd95cec95..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-top-down/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/HelloServiceClient.java +++ /dev/null @@ -1,41 +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 org.apache.tuscany.sca.itest.databindings.jaxb; - -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - - -/** - * The interface for HelloServiceClient. - * - * @version $Rev$ $Date$ - */ -public interface HelloServiceClient { - String getGreetingsForward(String name); - String[] getGreetingsArrayForward(String[] names); - List getGreetingsListForward(List names); - ArrayList getGreetingsArrayListForward(ArrayList names); - Map getGreetingsMapForward(Map namesMap); - HashMap getGreetingsHashMapForward(HashMap namesMap); - String getGreetingsVarArgsForward(String... names); -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-top-down/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/PrimitivesService.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-top-down/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/PrimitivesService.java deleted file mode 100644 index ac6c8d5a60..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-top-down/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/PrimitivesService.java +++ /dev/null @@ -1,51 +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 org.apache.tuscany.sca.itest.databindings.jaxb; - -import org.oasisopen.sca.annotation.Remotable; - -/** - * The interface for PrimitivesService. - * - * @version $Rev$ $Date$ - */ -@Remotable -public interface PrimitivesService { - boolean negateBoolean(boolean flag); - boolean[] negateBooleanArray(boolean[] flags); - boolean[] identityBooleanArray(boolean[] flags); - byte negateByte(byte b); - byte[] negateByteArray(byte[] ba); - byte[] identityByteArray(byte[] ba); - short negateShort(short s); - short[] negateShortArray(short[] s); - short[] identityShortArray(short[] sa); - int negateInt(int s); - int[] negateIntArray(int[] s); - int[] identityIntArray(int[] ia); - long negateLong(long l); - long[] negateLongArray(long[] la); - long[] identityLongArray(long[] la); - float negateFloat(float f); - float[] negateFloatArray(float[] fa); - float[] identityFloatArray(float[] fa); - double negateDouble(double d); - double[] negateDoubleArray(double[] da); - double[] identityDoubleArray(double[] da); -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-top-down/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/PrimitivesServiceClient.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-top-down/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/PrimitivesServiceClient.java deleted file mode 100644 index 3a5a81bae4..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-top-down/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/PrimitivesServiceClient.java +++ /dev/null @@ -1,50 +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 org.apache.tuscany.sca.itest.databindings.jaxb; - - -/** - * The interface for PrimitivesServiceClient. - * - * @version $Rev$ $Date$ - */ -public interface PrimitivesServiceClient { - boolean negateBooleanForward(boolean flag); - boolean[] negateBooleanArrayForward(boolean[] flags); - boolean passByValueBooleanArray(); - byte negateByteForward(byte b); - byte[] negateByteArrayForward(byte[] ba); - boolean passByValueByteArray(); - short negateShortForward(short s); - short[] negateShortArrayForward(short[] sa); - boolean passByValueShortArray(); - int negateIntForward(int i); - int[] negateIntArrayForward(int[] ia); - boolean passByValueIntArray(); - long negateLongForward(long l); - long[] negateLongArrayForward(long[] la); - boolean passByValueLongArray(); - float negateFloatForward(float f); - float[] negateFloatArrayForward(float[] fa); - boolean passByValueFloatArray(); - double negateDoubleForward(double d); - double[] negateDoubleArrayForward(double[] da); - boolean passByValueDoubleArray(); -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-top-down/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/StandardTypesService.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-top-down/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/StandardTypesService.java deleted file mode 100644 index 1f3b7ec633..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-top-down/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/StandardTypesService.java +++ /dev/null @@ -1,84 +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 org.apache.tuscany.sca.itest.databindings.jaxb; - -import java.awt.Image; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.net.URI; -import java.util.Calendar; -import java.util.Date; -import java.util.UUID; - -import javax.activation.DataHandler; -import javax.xml.datatype.Duration; -import javax.xml.datatype.XMLGregorianCalendar; -import javax.xml.namespace.QName; -import javax.xml.transform.Source; - -import org.oasisopen.sca.annotation.Remotable; - - - -/** - * The interface for StandardTypesService. - * - * @version $Rev$ $Date$ - */ -@Remotable -public interface StandardTypesService { - BigInteger getNewBigInteger(BigInteger bi); - BigInteger[] getNewBigIntegerArray(BigInteger[] bia); - - BigDecimal getNewBigDecimal(BigDecimal bd); - BigDecimal[] getNewBigDecimalArray(BigDecimal[] bda); - - Calendar getNewCalendar(Calendar c); - Calendar[] getNewCalendarArray(Calendar[] ca); - - Date getNewDate(Date d); - Date[] getNewDateArray(Date[] da); - - QName getNewQName(QName qname); - QName[] getNewQNameArray(QName[] qnames); - - URI getNewURI(URI uri); - URI[] getNewURIArray(URI[] uris); - - XMLGregorianCalendar getNewXMLGregorianCalendar(XMLGregorianCalendar xgcal); - XMLGregorianCalendar[] getNewXMLGregorianCalendarArray(XMLGregorianCalendar[] xgcal); - - Duration getNewDuration(Duration d); - Duration[] getNewDurationArray(Duration[] da); - - Object getNewObject(Object obj); - Object[] getNewObjectArray(Object[] objs); - - Image getNewImage(Image img); - Image[] getNewImageArray(Image[] imgs); - - DataHandler getNewDataHandler(DataHandler dh); - DataHandler[] getNewDataHandlerArray(DataHandler[] dha); - - Source getNewSource(Source src); - Source[] getNewSourceArray(Source[] srcs); - - UUID getNewUUID(UUID uuid); - UUID[] getNewUUIDArray(UUID[] uuids); -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-top-down/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/StandardTypesServiceClient.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-top-down/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/StandardTypesServiceClient.java deleted file mode 100644 index 0c073cd054..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-top-down/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/StandardTypesServiceClient.java +++ /dev/null @@ -1,81 +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 org.apache.tuscany.sca.itest.databindings.jaxb; - -import java.awt.Image; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.net.URI; -import java.util.Calendar; -import java.util.Date; -import java.util.UUID; - -import javax.activation.DataHandler; -import javax.xml.datatype.Duration; -import javax.xml.datatype.XMLGregorianCalendar; -import javax.xml.namespace.QName; -import javax.xml.transform.Source; - - -/** - * The interface for StandardTypesServiceClient. - * - * @version $Rev$ $Date$ - */ -public interface StandardTypesServiceClient { - BigInteger getNewBigIntegerForward(BigInteger bi); - BigInteger[] getNewBigIntegerArrayForward(BigInteger[] bia); - - BigDecimal getNewBigDecimalForward(BigDecimal bd); - BigDecimal[] getNewBigDecimalArrayForward(BigDecimal[] bda); - - Calendar getNewCalendarForward(Calendar c); - Calendar[] getNewCalendarArrayForward(Calendar[] ca); - - Date getNewDateForward(Date d); - Date[] getNewDateArrayForward(Date[] da); - - QName getNewQNameForward(QName qname); - QName[] getNewQNameArrayForward(QName[] qnames); - - URI getNewURIForward(URI uri); - URI[] getNewURIArrayForward(URI[] uris); - - XMLGregorianCalendar getNewXMLGregorianCalendarForward(XMLGregorianCalendar xgcal); - XMLGregorianCalendar[] getNewXMLGregorianCalendarArrayForward(XMLGregorianCalendar[] xgcals); - - Duration getNewDurationForward(Duration d); - Duration[] getNewDurationArrayForward(Duration[] da); - - Object getNewObjectForward(Object obj); - Object[] getNewObjectArrayForward(Object[] objs); - - Image getNewImageForward(Image img); - Image[] getNewImageArrayForward(Image[] imgs); - - DataHandler getNewDataHandlerForward(DataHandler dh); - DataHandler[] getNewDataHandlerArrayForward(DataHandler[] dha); - - Source getNewSourceForward(Source src); - Source[] getNewSourceArrayForward(Source[] srcs); - - UUID getNewUUIDForward(UUID uuid); - UUID[] getNewUUIDArrayForward(UUID[] uuids); -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-top-down/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/HelloServiceClientImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-top-down/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/HelloServiceClientImpl.java deleted file mode 100644 index 61449c8981..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-top-down/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/HelloServiceClientImpl.java +++ /dev/null @@ -1,73 +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 org.apache.tuscany.sca.itest.databindings.jaxb.impl; - -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -import org.apache.tuscany.sca.itest.databindings.jaxb.HelloService; -import org.apache.tuscany.sca.itest.databindings.jaxb.HelloServiceClient; -import org.oasisopen.sca.annotation.Reference; -import org.oasisopen.sca.annotation.Service; - -/** - * An implementation of HelloServiceClient. - * The client forwards the request to the service component and returns the response from the service component. - */ -@Service(HelloServiceClient.class) -public class HelloServiceClientImpl { - - private HelloService service; - - @Reference - public void setHelloService(HelloService service) { - this.service = service; - } - - public String getGreetingsForward(String name) { - return service.getGreetings(name); - } - - public String[] getGreetingsArrayForward(String[] names) { - return service.getGreetingsArray(names); - } - - public List getGreetingsListForward(List names) { - return service.getGreetingsList(names); - } - - public Map getGreetingsMapForward(Map namesMap) { - return service.getGreetingsMap(namesMap); - } - - public ArrayList getGreetingsArrayListForward(ArrayList names) { - return service.getGreetingsArrayList(names); - } - - public HashMap getGreetingsHashMapForward(HashMap namesMap) { - return service.getGreetingsHashMap(namesMap); - } - - public String getGreetingsVarArgsForward(String... names) { - return service.getGreetingsVarArgs(names[0], names[1], names[2]); - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-top-down/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/HelloServiceImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-top-down/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/HelloServiceImpl.java deleted file mode 100644 index 690001bfe1..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-top-down/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/HelloServiceImpl.java +++ /dev/null @@ -1,86 +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 org.apache.tuscany.sca.itest.databindings.jaxb.impl; - -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -import org.apache.tuscany.sca.itest.databindings.jaxb.HelloService; -import org.oasisopen.sca.annotation.Service; - -/** - * An implementation of HelloService. - * - * @version $Rev$ $Date$ - */ -@Service(HelloService.class) -public class HelloServiceImpl implements HelloService { - public String getGreetings(String name) { - return "Hello " + name; - } - - public String[] getGreetingsArray(String[] names) { - String[] resps = new String[names.length]; - for (int i = 0; i < names.length; ++i) { - resps[i] = "Hello " + names[i]; - } - return resps; - } - - public List getGreetingsList(List names) { - List resps = new ArrayList(); - for (int i = 0; i < names.size(); ++i) { - resps.add("Hello " + names.get(i)); - } - return resps; - } - - public ArrayList getGreetingsArrayList(ArrayList names) { - ArrayList resps = new ArrayList(); - for (int i = 0; i < names.size(); ++i) { - resps.add("Hello " + names.get(i)); - } - return resps; - } - - public Map getGreetingsMap(Map namesMap) { - for (Map.Entry entry : namesMap.entrySet()) { - entry.setValue("Hello " + entry.getKey()); - } - return namesMap; - } - - public HashMap getGreetingsHashMap(HashMap namesMap) { - for (Map.Entry entry : namesMap.entrySet()) { - entry.setValue("Hello " + entry.getKey()); - } - return namesMap; - } - - public String getGreetingsVarArgs(String... names) { - String resp = "Hello"; - for(int i = 0; i < names.length; ++i) { - resp += (" "+names[i]); - } - return resp; - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-top-down/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/PrimitivesServiceClientImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-top-down/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/PrimitivesServiceClientImpl.java deleted file mode 100644 index e55d2527f4..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-top-down/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/PrimitivesServiceClientImpl.java +++ /dev/null @@ -1,139 +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 org.apache.tuscany.sca.itest.databindings.jaxb.impl; - -import org.apache.tuscany.sca.itest.databindings.jaxb.PrimitivesService; -import org.apache.tuscany.sca.itest.databindings.jaxb.PrimitivesServiceClient; -import org.oasisopen.sca.annotation.Reference; -import org.oasisopen.sca.annotation.Service; - -/** - * An implementation of PrimitivesServiceClient. - * The client forwards the request to the service component and returns the response from the service component. - * - * @version $Rev$ $Date$ - */ -@Service(PrimitivesServiceClient.class) -public class PrimitivesServiceClientImpl { - - private PrimitivesService service; - - @Reference - public void setPrimitivesService(PrimitivesService service) { - this.service = service; - } - public boolean negateBooleanForward(boolean flag) { - return service.negateBoolean(flag); - } - - public boolean[] negateBooleanArrayForward(boolean[] flags) { - return service.negateBooleanArray(flags); - } - - public boolean passByValueBooleanArray() { - boolean[] req = new boolean[2]; - boolean[] resp = service.identityBooleanArray(req); - return req != resp; - } - - public byte negateByteForward(byte b) { - return service.negateByte(b); - } - - public byte[] negateByteArrayForward(byte[] ba) { - return service.negateByteArray(ba); - } - - public boolean passByValueByteArray() { - byte[] req = new byte[2]; - byte[] resp = service.identityByteArray(req); - return req != resp; - } - - public short negateShortForward(short s) { - return service.negateShort(s); - } - - public short[] negateShortArrayForward(short[] s) { - return service.negateShortArray(s); - } - - public boolean passByValueShortArray() { - short[] req = new short[2]; - short[] resp = service.identityShortArray(req); - return req != resp; - } - - public int negateIntForward(int i) { - return service.negateInt(i); - } - - public int[] negateIntArrayForward(int[] ia) { - return service.negateIntArray(ia); - } - - public boolean passByValueIntArray() { - int[] req = new int[2]; - int[] resp = service.identityIntArray(req); - return req != resp; - } - - public long negateLongForward(long l) { - return service.negateLong(l); - } - - public long[] negateLongArrayForward(long[] la) { - return service.negateLongArray(la); - } - - public boolean passByValueLongArray() { - long[] req = new long[2]; - long[] resp = service.identityLongArray(req); - return req != resp; - } - - public float negateFloatForward(float f) { - return service.negateFloat(f); - } - - public float[] negateFloatArrayForward(float[] fa) { - return service.negateFloatArray(fa); - } - - public boolean passByValueFloatArray() { - float[] req = new float[2]; - float[] resp = service.identityFloatArray(req); - return req != resp; - } - - public double negateDoubleForward(double d) { - return service.negateDouble(d); - } - - public double[] negateDoubleArrayForward(double[] da) { - return service.negateDoubleArray(da); - } - - public boolean passByValueDoubleArray() { - double[] req = new double[2]; - double[] resp = service.identityDoubleArray(req); - return req != resp; - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-top-down/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/PrimitivesServiceImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-top-down/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/PrimitivesServiceImpl.java deleted file mode 100644 index 60ff4163d0..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-top-down/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/PrimitivesServiceImpl.java +++ /dev/null @@ -1,151 +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 org.apache.tuscany.sca.itest.databindings.jaxb.impl; - -import org.apache.tuscany.sca.itest.databindings.jaxb.PrimitivesService; -import org.oasisopen.sca.annotation.Service; - -/** - * An implementation of PrimitivesService. - * - * @version $Rev$ $Date$ - */ -@Service(PrimitivesService.class) -public class PrimitivesServiceImpl implements PrimitivesService { - - public boolean negateBoolean(boolean flag) { - return !flag; - } - - public boolean[] negateBooleanArray(boolean[] flags) { - boolean[] resp = new boolean[flags.length]; - - for(int i = 0; i < flags.length; ++i) { - resp[i] = !flags[i]; - } - return resp; - } - - public boolean[] identityBooleanArray(boolean[] flags) { - return flags; - } - - public byte negateByte(byte b) { - return (byte)-b; - } - - public byte[] negateByteArray(byte[] ba) { - byte[] resp = new byte[ba.length]; - - for(int i = 0; i < ba.length; ++i) { - resp[i] = (byte)-ba[i]; - } - return resp; - } - - public byte[] identityByteArray(byte[] ba) { - return ba; - } - - public short negateShort(short s) { - return (short)-s; - } - - public short[] negateShortArray(short[] s) { - short[] resp = new short[s.length]; - - for(int i = 0; i < s.length; ++i) { - resp[i] = (short)-s[i]; - } - return resp; - } - - public short[] identityShortArray(short[] sa) { - return sa; - } - - public int negateInt(int i) { - return -i; - } - - public int[] negateIntArray(int[] ia) { - int[] resp = new int[ia.length]; - - for(int i = 0; i < ia.length; ++i) { - resp[i] = -ia[i]; - } - return resp; - } - - public int[] identityIntArray(int[] ia) { - return ia; - } - - public long negateLong(long l) { - return -l; - } - - public long[] negateLongArray(long[] la) { - long[] resp = new long[la.length]; - - for(int i = 0; i < la.length; ++i) { - resp[i] = -la[i]; - } - return resp; - } - - public long[] identityLongArray(long[] la) { - return la; - } - - public float negateFloat(float f) { - return -f; - } - - public float[] negateFloatArray(float[] fa) { - float[] resp = new float[fa.length]; - - for(int i = 0; i < fa.length; ++i) { - resp[i] = -fa[i]; - } - return resp; - } - - public float[] identityFloatArray(float[] fa) { - return fa; - } - - public double negateDouble(double d) { - return -d; - } - - public double[] negateDoubleArray(double[] da) { - double[] resp = new double[da.length]; - - for(int i = 0; i < da.length; ++i) { - resp[i] = -da[i]; - } - return resp; - } - - public double[] identityDoubleArray(double[] da) { - return da; - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-top-down/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/StandardTypesServiceClientImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-top-down/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/StandardTypesServiceClientImpl.java deleted file mode 100644 index b3d3c3eb3a..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-top-down/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/StandardTypesServiceClientImpl.java +++ /dev/null @@ -1,159 +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 org.apache.tuscany.sca.itest.databindings.jaxb.impl; - -import java.awt.Image; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.net.URI; -import java.util.Calendar; -import java.util.Date; -import java.util.UUID; - -import javax.activation.DataHandler; -import javax.xml.datatype.Duration; -import javax.xml.datatype.XMLGregorianCalendar; -import javax.xml.namespace.QName; -import javax.xml.transform.Source; - -import org.apache.tuscany.sca.itest.databindings.jaxb.StandardTypesService; -import org.apache.tuscany.sca.itest.databindings.jaxb.StandardTypesServiceClient; -import org.oasisopen.sca.annotation.Reference; -import org.oasisopen.sca.annotation.Service; - -/** - * An implementation of StandardTypesServiceClient. - * The client forwards the request to the service component and returns the response from the service component. - * - * @version $Rev$ $Date$ - */ -@Service(StandardTypesServiceClient.class) -public class StandardTypesServiceClientImpl implements StandardTypesServiceClient{ - - private StandardTypesService service; - - @Reference - public void setStandardTypesService(StandardTypesService service) { - this.service = service; - } - - public BigInteger getNewBigIntegerForward(BigInteger bi) { - return service.getNewBigInteger(bi); - } - - public BigInteger[] getNewBigIntegerArrayForward(BigInteger[] bia) { - return service.getNewBigIntegerArray(bia); - } - - public BigDecimal getNewBigDecimalForward(BigDecimal bd) { - return service.getNewBigDecimal(bd); - } - - public BigDecimal[] getNewBigDecimalArrayForward(BigDecimal[] bda) { - return service.getNewBigDecimalArray(bda); - } - public Calendar getNewCalendarForward(Calendar c) { - return service.getNewCalendar(c); - } - public Calendar[] getNewCalendarArrayForward(Calendar[] ca) { - return service.getNewCalendarArray(ca); - } - - public Date getNewDateForward(Date d) { - return service.getNewDate(d); - } - - public Date[] getNewDateArrayForward(Date[] da) { - return service.getNewDateArray(da); - } - - public QName getNewQNameForward(QName qname) { - return service.getNewQName(qname); - } - - public QName[] getNewQNameArrayForward(QName[] qnames) { - return service.getNewQNameArray(qnames); - } - - public URI getNewURIForward(URI uri) { - return service.getNewURI(uri); - } - - public URI[] getNewURIArrayForward(URI[] uris) { - return service.getNewURIArray(uris); - } - - public XMLGregorianCalendar getNewXMLGregorianCalendarForward(XMLGregorianCalendar xgcal) { - return service.getNewXMLGregorianCalendar(xgcal); - } - - public XMLGregorianCalendar[] getNewXMLGregorianCalendarArrayForward(XMLGregorianCalendar[] xgcals) { - return service.getNewXMLGregorianCalendarArray(xgcals); - } - - public Duration getNewDurationForward(Duration d) { - return service.getNewDuration(d); - } - - public Duration[] getNewDurationArrayForward(Duration[] da) { - return service.getNewDurationArray(da); - } - - public Object getNewObjectForward(Object obj) { - return service.getNewObject(obj); - } - - public Object[] getNewObjectArrayForward(Object[] objs) { - return service.getNewObjectArray(objs); - } - - public Image getNewImageForward(Image img) { - return service.getNewImage(img); - } - - public Image[] getNewImageArrayForward(Image[] imgs) { - return service.getNewImageArray(imgs); - } - - public DataHandler getNewDataHandlerForward(DataHandler dh) { - return service.getNewDataHandler(dh); - } - - public DataHandler[] getNewDataHandlerArrayForward(DataHandler[] dha) { - return service.getNewDataHandlerArray(dha); - } - - - public Source getNewSourceForward(Source src) { - return service.getNewSource(src); - } - - public Source[] getNewSourceArrayForward(Source[] srcs) { - return service.getNewSourceArray(srcs); - } - - public UUID getNewUUIDForward(UUID uuid) { - return service.getNewUUID(uuid); - } - - public UUID[] getNewUUIDArrayForward(UUID[] uuids) { - return service.getNewUUIDArray(uuids); - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-top-down/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/StandardTypesServiceImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-top-down/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/StandardTypesServiceImpl.java deleted file mode 100644 index 1fa525a0ee..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-top-down/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/StandardTypesServiceImpl.java +++ /dev/null @@ -1,207 +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 org.apache.tuscany.sca.itest.databindings.jaxb.impl; - -import java.awt.Image; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.net.URI; -import java.util.Calendar; -import java.util.Date; -import java.util.UUID; - -import javax.activation.DataHandler; -import javax.xml.datatype.Duration; -import javax.xml.datatype.XMLGregorianCalendar; -import javax.xml.namespace.QName; -import javax.xml.transform.Source; - -import org.apache.tuscany.sca.itest.databindings.jaxb.StandardTypesService; -import org.oasisopen.sca.annotation.Service; - -/** - * An implementation of StandardTypesService. - * - * @version $Rev$ $Date$ - */ -@Service(StandardTypesService.class) -public class StandardTypesServiceImpl implements StandardTypesService { - public BigInteger getNewBigInteger(BigInteger bi) { - return bi.negate(); - } - - public BigInteger[] getNewBigIntegerArray(BigInteger[] bia) { - BigInteger[] resp = new BigInteger[bia.length]; - for(int i = 0; i < bia.length; ++i) { - resp[i] = bia[i].negate(); - } - return resp; - } - - public BigDecimal getNewBigDecimal(BigDecimal bd) { - return bd.negate(); - } - - public BigDecimal[] getNewBigDecimalArray(BigDecimal[] bda) { - BigDecimal[] resp = new BigDecimal[bda.length]; - for(int i = 0; i < bda.length; ++i) { - resp[i] = bda[i].negate(); - } - return resp; - } - - public Calendar getNewCalendar(Calendar c) { - Calendar resp = (Calendar)c.clone(); - resp.add(Calendar.DAY_OF_MONTH, 5); - return resp; - } - - public Calendar[] getNewCalendarArray(Calendar[] ca) { - Calendar[] resp = new Calendar[ca.length]; - for(int i = 0; i < ca.length; ++i) { - resp[i] = getNewCalendar(ca[i]); - } - return resp; - } - - public Date getNewDate(Date d) { - return new Date(d.getTime() + 5*24*60*60*1000); - } - - public Date[] getNewDateArray(Date[] da) { - Date[] resp = new Date[da.length]; - for(int i = 0; i < da.length; ++i) { - resp[i] = getNewDate(da[i]); - } - return resp; - } - - public QName getNewQName(QName qname) { - return new QName(qname.getNamespaceURI()+"q", qname.getLocalPart()+"q", qname.getPrefix()+"q"); - - } - - public QName[] getNewQNameArray(QName[] qnames) { - QName[] resp = new QName[qnames.length]; - for(int i = 0; i < qnames.length; ++i) { - resp[i] = getNewQName(qnames[i]); - } - return resp; - } - - public URI getNewURI(URI uri) { - return uri.resolve("uri"); - } - - public URI[] getNewURIArray(URI[] uris) { - URI[] resp = new URI[uris.length]; - for(int i = 0; i < uris.length; ++i) { - resp[i] = getNewURI(uris[i]); - } - return resp; - } - - public XMLGregorianCalendar getNewXMLGregorianCalendar(XMLGregorianCalendar xgcal) { - xgcal = (XMLGregorianCalendar)xgcal.clone(); - xgcal.setDay(xgcal.getDay()+5); - return xgcal; - } - - public XMLGregorianCalendar[] getNewXMLGregorianCalendarArray(XMLGregorianCalendar[] xgcals) { - XMLGregorianCalendar[] resp = new XMLGregorianCalendar[xgcals.length]; - for(int i = 0; i < xgcals.length; ++i) { - resp[i] = getNewXMLGregorianCalendar(xgcals[i]); - } - return resp; - } - - public Duration getNewDuration(Duration d) { - return d.negate(); - } - - public Duration[] getNewDurationArray(Duration[] da) { - Duration[] resp = new Duration[da.length]; - for(int i = 0; i < da.length; ++i) { - resp[i] = da[i].negate(); - } - return resp; - } - - public Object getNewObject(Object obj) { - return StandardTypesTransformer.getNewObject(obj); - } - - public Object[] getNewObjectArray(Object[] objs) { - Object[] resp = new Object[objs.length]; - for(int i = 0; i < objs.length; ++i) { - resp[i] = getNewObject(objs[i]); - } - return resp; - } - - public Image getNewImage(Image img) { - return StandardTypesTransformer.getNewImage(img); - } - - public Image[] getNewImageArray(Image[] imgs) { - Image[] resp = new Image[imgs.length]; - for(int i = 0; i < imgs.length; ++i) { - resp[i] = getNewImage(imgs[i]); - } - return resp; - } - - public DataHandler getNewDataHandler(DataHandler dh) { - // FIXME: transform the input - return dh; - } - - public DataHandler[] getNewDataHandlerArray(DataHandler[] dha) { - DataHandler[] resp = new DataHandler[dha.length]; - for(int i = 0; i < dha.length; ++i) { - resp[i] = dha[i]; - } - return resp; - } - - public Source getNewSource(Source src) { - return StandardTypesTransformer.getNewSource(src); - } - - public Source[] getNewSourceArray(Source[] srcs) { - Source[] resp = new Source[srcs.length]; - for(int i = 0; i < srcs.length; ++i) { - resp[i] = getNewSource(srcs[i]); - } - return resp; - } - - public UUID getNewUUID(UUID uuid) { - return UUID.fromString(uuid.toString()+"AAA"); - } - - public UUID[] getNewUUIDArray(UUID[] uuids) { - UUID[] resp = new UUID[uuids.length]; - for(int i = 0; i < uuids.length; ++i) { - resp[i] = getNewUUID(uuids[i]); - } - return resp; - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-top-down/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/StandardTypesTransformer.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-top-down/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/StandardTypesTransformer.java deleted file mode 100644 index 9d851455da..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-top-down/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/StandardTypesTransformer.java +++ /dev/null @@ -1,142 +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 org.apache.tuscany.sca.itest.databindings.jaxb.impl; - -import java.awt.Image; -import java.io.ByteArrayInputStream; -import java.io.ByteArrayOutputStream; -import java.io.CharArrayReader; -import java.io.CharArrayWriter; -import java.io.IOException; -import java.io.InputStream; -import java.io.Reader; - -import javax.xml.transform.Source; -import javax.xml.transform.dom.DOMSource; -import javax.xml.transform.sax.SAXSource; -import javax.xml.transform.stream.StreamSource; - -import org.xml.sax.InputSource; - -/** - * StandardTypesTransformer class that provide for transforming input provided to StandardTypesService methods. - * - * @version $Rev$ $Date$ - */ -public class StandardTypesTransformer { - - public static Object getNewObject(Object obj) { - if(obj instanceof String) { - return "Hello "+obj; - } else if(obj instanceof Integer) { - return new Integer(-((Integer)obj).intValue()); - } else if(obj instanceof Double) { - return new Double(-((Double)obj).doubleValue()); - } - - return obj; - } - - /** - * Returns a copy of the source object if the input is DOMSource, SAXSource or StreamSource. - * Returns the input object as is for other types. - */ - public static Source getNewSource(Source src) { - Source ret = null; - if(src instanceof DOMSource) { - DOMSource dsrc = (DOMSource)src; - ret = new DOMSource(dsrc.getNode() != null ? dsrc.getNode().cloneNode(true) : null); - } else if(src instanceof SAXSource) { - SAXSource ssrc = (SAXSource)src; - if(ssrc.getInputSource().getByteStream() != null) { - InputStream inp = ssrc.getInputSource().getByteStream(); - ByteArrayOutputStream bout = new ByteArrayOutputStream(); - int b; - try { - while((b = inp.read()) != -1) { - bout.write(b); - } - } catch (IOException ignored) { - } - try { bout.close();} catch (IOException ignored) {} - try { inp.reset();} catch (IOException ignored) {} - ret = new SAXSource(new InputSource(new ByteArrayInputStream(bout.toByteArray()))); - } else if(ssrc.getInputSource().getCharacterStream() != null) { - Reader rdr = ssrc.getInputSource().getCharacterStream(); - CharArrayWriter caw = new CharArrayWriter(); - try { - int c; - while((c = rdr.read()) != -1) { - caw.append((char)c); - } - } catch (IOException ignored) { - } - caw.close(); - try{ rdr.reset();} catch(IOException ignored) {} - ret = new SAXSource(new InputSource(new CharArrayReader(caw.toCharArray()))); - } else { - ret = new SAXSource(); - } - } else if(src instanceof StreamSource) { - StreamSource ssrc = (StreamSource)src; - if(ssrc.getInputStream() != null) { - InputStream inp = ssrc.getInputStream(); - ByteArrayOutputStream bout = new ByteArrayOutputStream(); - int b; - try { - while((b = inp.read()) != -1) { - bout.write(b); - } - } catch (IOException ignored) { - } - try { bout.close();} catch (IOException ignored) {} - try { inp.reset();} catch (IOException ignored) {} - ret = new StreamSource(new ByteArrayInputStream(bout.toByteArray())); - } else if(ssrc.getReader() != null) { - Reader rdr = ssrc.getReader(); - CharArrayWriter caw = new CharArrayWriter(); - try { - int c; - while((c = rdr.read()) != -1) { - caw.append((char)c); - } - } catch (IOException ignored) { - } - caw.close(); - try{ rdr.reset();} catch(IOException ignored) {} - ret = new StreamSource(new CharArrayReader(caw.toCharArray())); - } else { - ret = new StreamSource(); - } - } - - if(ret != null) { - ret.setSystemId(src.getSystemId()); - } else { - ret = src; - } - return ret; - } - - public static Image getNewImage(Image arg) { - arg.getGraphics().drawOval(2, 2, 7, 7); - return arg; - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-top-down/src/main/resources/wsdl/wrapped/hello-service.wsdl b/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-top-down/src/main/resources/wsdl/wrapped/hello-service.wsdl deleted file mode 100644 index 4041e848d1..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-top-down/src/main/resources/wsdl/wrapped/hello-service.wsdl +++ /dev/null @@ -1,371 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-top-down/src/main/resources/wsdl/wrapped/helloservice.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-top-down/src/main/resources/wsdl/wrapped/helloservice.composite deleted file mode 100644 index f62689c8b8..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-top-down/src/main/resources/wsdl/wrapped/helloservice.composite +++ /dev/null @@ -1,80 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-top-down/src/main/resources/wsdl/wrapped/primitives-service.wsdl b/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-top-down/src/main/resources/wsdl/wrapped/primitives-service.wsdl deleted file mode 100644 index 432c3115bd..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-top-down/src/main/resources/wsdl/wrapped/primitives-service.wsdl +++ /dev/null @@ -1,927 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-top-down/src/main/resources/wsdl/wrapped/primitivesservice.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-top-down/src/main/resources/wsdl/wrapped/primitivesservice.composite deleted file mode 100644 index 9b08c334cc..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-top-down/src/main/resources/wsdl/wrapped/primitivesservice.composite +++ /dev/null @@ -1,80 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-top-down/src/main/resources/wsdl/wrapped/standard-types-service.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-top-down/src/main/resources/wsdl/wrapped/standard-types-service.composite deleted file mode 100644 index f9ac98d5bc..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-top-down/src/main/resources/wsdl/wrapped/standard-types-service.composite +++ /dev/null @@ -1,80 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-top-down/src/main/resources/wsdl/wrapped/standard-types-service.wsdl b/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-top-down/src/main/resources/wsdl/wrapped/standard-types-service.wsdl deleted file mode 100644 index 219497e2c1..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-top-down/src/main/resources/wsdl/wrapped/standard-types-service.wsdl +++ /dev/null @@ -1,1155 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-top-down/src/test/java/org/apache/tuscany/sca/itest/databindings/jaxb/topdown/DatabindingTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-top-down/src/test/java/org/apache/tuscany/sca/itest/databindings/jaxb/topdown/DatabindingTestCase.java deleted file mode 100644 index 3351e9c441..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-top-down/src/test/java/org/apache/tuscany/sca/itest/databindings/jaxb/topdown/DatabindingTestCase.java +++ /dev/null @@ -1,346 +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 org.apache.tuscany.sca.itest.databindings.jaxb.topdown; - -import java.io.File; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -import junit.framework.Assert; - -import org.apache.tuscany.sca.itest.databindings.jaxb.HelloServiceClient; -import org.apache.tuscany.sca.node.Contribution; -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; -import org.junit.AfterClass; -import org.junit.BeforeClass; -import org.junit.Test; - -/** - * @version $Rev$ $Date$ - */ -public class DatabindingTestCase { - - private static Node node; - - /** - * Runs once before running the tests - */ - @BeforeClass - public static void setUp() throws Exception { - try { - NodeFactory factory = NodeFactory.newInstance(); - node = factory.createNode(new File("src/main/resources/wsdl/wrapped/helloservice.composite").toURI().toURL().toString(), - new Contribution("TestContribution", new File("src/main/resources/wsdl/wrapped/").toURI().toURL().toString())); - node.start(); - }catch(Throwable e) { - e.printStackTrace(); - } - } - - /** - * Runs once after running the tests - */ - @AfterClass - public static void tearDown() { - node.stop(); - } - - /** - * Invokes the HelloService service using WS binding. - * Service method invoked is getGreetings. - */ - @Test - public void testW2W() throws Exception { - HelloServiceClient helloServiceClient = node.getService(HelloServiceClient.class, "HelloServiceClientW2WComponent"); - performTest(helloServiceClient); - } - - /** - * Invokes the HelloService service using WS binding. - * Service method invoked is getGreetingsArray. - */ - @Test - public void testW2WArray() throws Exception { - HelloServiceClient helloServiceClient = node.getService(HelloServiceClient.class, "HelloServiceClientW2WComponent"); - performTestArray(helloServiceClient); - } - - /** - * Invokes the HelloService service using WS binding. - * Service method invoked is getGreetingsList. - */ - @Test - public void testW2WList() throws Exception { - HelloServiceClient helloServiceClient = node.getService(HelloServiceClient.class, "HelloServiceClientW2WComponent"); - performTestList(helloServiceClient); - } - - /** - * Invokes the HelloService service using WS binding. - * Service method invoked is getGreetingsArrayList. - */ - @Test - public void testW2WArrayList() throws Exception { - HelloServiceClient helloServiceClient = node.getService(HelloServiceClient.class, "HelloServiceClientW2WComponent"); - performTestArrayList(helloServiceClient); - } - - /** - * Invokes the HelloService service using WS binding. - * Service method invoked is getGreetingsMap. - */ - @Test - public void testW2WMap() throws Exception { - HelloServiceClient helloServiceClient = node.getService(HelloServiceClient.class, "HelloServiceClientW2WComponent"); - performTestMap(helloServiceClient); - } - - /** - * Invokes the HelloService service using WS binding. - * Service method invoked is getGreetingsHashMap. - */ - @Test - public void testW2WHashMap() throws Exception { - HelloServiceClient helloServiceClient = node.getService(HelloServiceClient.class, "HelloServiceClientW2WComponent"); - performTestHashMap(helloServiceClient); - } - - /** - * Invokes the HelloService service using WS binding. - * Service method invoked is getGreetingsVarArgs. - */ - @Test - public void testW2WVarArgs() throws Exception { - HelloServiceClient helloServiceClient = node.getService(HelloServiceClient.class, "HelloServiceClientW2WComponent"); - performTestVarArgs(helloServiceClient); - } - - /** - * Invokes the HelloService service using WS binding. - * Service method invoked is getGreetings. - */ - @Test - public void testJ2W() throws Exception { - HelloServiceClient helloServiceClient = node.getService(HelloServiceClient.class, "HelloServiceClientJ2WComponent"); - performTest(helloServiceClient); - } - - /** - * Invokes the HelloService service using WS binding. - * Service method invoked is getGreetingsArray. - */ - @Test - public void testJ2WArray() throws Exception { - HelloServiceClient helloServiceClient = node.getService(HelloServiceClient.class, "HelloServiceClientJ2WComponent"); - performTestArray(helloServiceClient); - } - - /** - * Invokes the HelloService service using WS binding. - * Service method invoked is getGreetingsList. - */ - @Test - public void testJ2WList() throws Exception { - HelloServiceClient helloServiceClient = node.getService(HelloServiceClient.class, "HelloServiceClientJ2WComponent"); - performTestList(helloServiceClient); - } - - /** - * Invokes the HelloService service using WS binding. - * Service method invoked is getGreetingsArrayList. - */ - @Test - public void testJ2WArrayList() throws Exception { - HelloServiceClient helloServiceClient = node.getService(HelloServiceClient.class, "HelloServiceClientJ2WComponent"); - performTestArrayList(helloServiceClient); - } - - /** - * Invokes the HelloService service using WS binding. - * Service method invoked is getGreetingsMap. - */ - @Test - public void testJ2WMap() throws Exception { - HelloServiceClient helloServiceClient = node.getService(HelloServiceClient.class, "HelloServiceClientJ2WComponent"); - performTestMap(helloServiceClient); - } - - /** - * Invokes the HelloService service using WS binding. - * Service method invoked is getGreetingsHashMap. - */ - @Test - public void testJ2WHashMap() throws Exception { - HelloServiceClient helloServiceClient = node.getService(HelloServiceClient.class, "HelloServiceClientJ2WComponent"); - performTestHashMap(helloServiceClient); - } - - /** - * Invokes the HelloService service using WS binding. - * Service method invoked is getGreetingsVarArgs. - */ - @Test - public void testJ2WVarArgs() throws Exception { - HelloServiceClient helloServiceClient = node.getService(HelloServiceClient.class, "HelloServiceClientJ2WComponent"); - performTestVarArgs(helloServiceClient); - } - - /** - * Invokes the HelloService service using WS binding. - * Service method invoked is getGreetings. - */ - @Test - public void testW2J() throws Exception { - HelloServiceClient helloServiceClient = node.getService(HelloServiceClient.class, "HelloServiceClientW2JComponent"); - performTest(helloServiceClient); - } - - /** - * Invokes the HelloService service using WS binding. - * Service method invoked is getGreetingsArray. - */ - @Test - public void testW2JArray() throws Exception { - HelloServiceClient helloServiceClient = node.getService(HelloServiceClient.class, "HelloServiceClientW2JComponent"); - performTestArray(helloServiceClient); - } - - /** - * Invokes the HelloService service using WS binding. - * Service method invoked is getGreetingsList. - */ - @Test - public void testW2JList() throws Exception { - HelloServiceClient helloServiceClient = node.getService(HelloServiceClient.class, "HelloServiceClientW2JComponent"); - performTestList(helloServiceClient); - } - - /** - * Invokes the HelloService service using WS binding. - * Service method invoked is getGreetingsArrayList. - */ - @Test - public void testW2JArrayList() throws Exception { - HelloServiceClient helloServiceClient = node.getService(HelloServiceClient.class, "HelloServiceClientW2JComponent"); - performTestArrayList(helloServiceClient); - } - - /** - * Invokes the HelloService service using WS binding. - * Service method invoked is getGreetingsMap. - */ - @Test - public void testW2JMap() throws Exception { - HelloServiceClient helloServiceClient = node.getService(HelloServiceClient.class, "HelloServiceClientW2JComponent"); - performTestMap(helloServiceClient); - } - - /** - * Invokes the HelloService service using WS binding. - * Service method invoked is getGreetingsHashMap. - */ - @Test - public void testW2JHashMap() throws Exception { - HelloServiceClient helloServiceClient = node.getService(HelloServiceClient.class, "HelloServiceClientW2JComponent"); - performTestHashMap(helloServiceClient); - } - - /** - * Invokes the HelloService service using WS binding. - * Service method invoked is getGreetingsVarArgs. - */ - @Test - public void testW2JVarArgs() throws Exception { - HelloServiceClient helloServiceClient = node.getService(HelloServiceClient.class, "HelloServiceClientW2JComponent"); - performTestVarArgs(helloServiceClient); - } - - private void performTest(HelloServiceClient helloServiceClient) { - String name = "Pandu"; - String resp = helloServiceClient.getGreetingsForward(name); - Assert.assertEquals("Hello "+name, resp); - } - - private void performTestArray(HelloServiceClient helloServiceClient) { - String[] names = {"Me", "Pandu"}; - String[] resps = helloServiceClient.getGreetingsArrayForward(names); - for(int i = 0; i < names.length; ++i) { - Assert.assertEquals("Hello "+names[i], resps[i]); - } - } - - private void performTestList(HelloServiceClient helloServiceClient) { - List namesList = new ArrayList(); - namesList.add("Me"); - namesList.add("Pandu"); - namesList.add("Chinnipandu"); - List respList = helloServiceClient.getGreetingsListForward(namesList); - Assert.assertEquals(namesList.size(), respList.size()); - for(int i = 0; i < namesList.size(); ++i) { - Assert.assertEquals("Hello "+namesList.get(i), respList.get(i)); - } - } - - private void performTestArrayList(HelloServiceClient helloServiceClient) { - ArrayList namesList = new ArrayList(); - namesList.add("Me"); - namesList.add("Pandu"); - namesList.add("Chinnipandu"); - ArrayList respList = helloServiceClient.getGreetingsArrayListForward(namesList); - Assert.assertEquals(namesList.size(), respList.size()); - for(int i = 0; i < namesList.size(); ++i) { - Assert.assertEquals("Hello "+namesList.get(i), respList.get(i)); - } - } - - private void performTestMap(HelloServiceClient helloServiceClient) { - Map namesMap = new HashMap(); - namesMap.put("Me", null); - namesMap.put("Pandu", null); - namesMap.put("Chinnipandu", null); - Map respMap = helloServiceClient.getGreetingsMapForward(namesMap); - Assert.assertEquals(namesMap.keySet().size(), respMap.keySet().size()); - for(Map.Entry entry: namesMap.entrySet()) { - Assert.assertEquals("Hello "+entry.getKey(), respMap.get(entry.getKey())); - } - } - - private void performTestHashMap(HelloServiceClient helloServiceClient) { - HashMap namesMap = new HashMap(); - namesMap.put("Me", null); - namesMap.put("Pandu", null); - namesMap.put("Chinnipandu", null); - Map respMap = helloServiceClient.getGreetingsHashMapForward(namesMap); - Assert.assertEquals(namesMap.keySet().size(), respMap.keySet().size()); - for(Map.Entry entry: namesMap.entrySet()) { - Assert.assertEquals("Hello "+entry.getKey(), respMap.get(entry.getKey())); - } - } - - private void performTestVarArgs(HelloServiceClient helloServiceClient) { - String[] names = { "Me", "You", "Pandu" }; // Do not change the array size from 3. - String expected = "Hello Me You Pandu"; - String actual = helloServiceClient.getGreetingsVarArgsForward(names[0], names[1], names[2]); - Assert.assertEquals(expected, actual); - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-top-down/src/test/java/org/apache/tuscany/sca/itest/databindings/jaxb/topdown/PrimitivesDatabindingTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-top-down/src/test/java/org/apache/tuscany/sca/itest/databindings/jaxb/topdown/PrimitivesDatabindingTestCase.java deleted file mode 100644 index 8430d5e978..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-top-down/src/test/java/org/apache/tuscany/sca/itest/databindings/jaxb/topdown/PrimitivesDatabindingTestCase.java +++ /dev/null @@ -1,849 +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 org.apache.tuscany.sca.itest.databindings.jaxb.topdown; - -import java.io.File; - -import junit.framework.Assert; - -import org.apache.tuscany.sca.itest.databindings.jaxb.PrimitivesServiceClient; -import org.apache.tuscany.sca.node.Contribution; -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; -import org.junit.AfterClass; -import org.junit.BeforeClass; -import org.junit.Test; - -/** - * @version $Rev$ $Date$ - */ -public class PrimitivesDatabindingTestCase { - - private static Node node; - - /** - * Runs before each test method - */ - @BeforeClass - public static void setUp() throws Exception { - NodeFactory factory = NodeFactory.newInstance(); - node = factory.createNode(new File("src/main/resources/wsdl/wrapped/primitivesservice.composite").toURI().toURL().toString(), - new Contribution("TestContribution", new File("src/main/resources/wsdl/wrapped/").toURI().toURL().toString())); - node.start(); - } - - /** - * Runs after each test method - */ - @AfterClass - public static void tearDown() { - node.stop(); - } - - /** - * Invokes the PrimitivesService service using WS binding. - * Service method invoked is negateBoolean. - */ - @Test - public void testW2WNegateBoolean() throws Exception { - PrimitivesServiceClient primitivesServiceClient = node.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientW2WComponent"); - performTestNegateBoolean(primitivesServiceClient); - } - - /** - * Invokes the PrimitivesService service using WS binding. - * Service method invoked is negateBooleanArray. - */ - @Test - public void testW2WNegateBooleanArray() throws Exception { - PrimitivesServiceClient primitivesServiceClient = node.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientW2WComponent"); - performTestNegateBooleanArray(primitivesServiceClient); - } - - /** - * Test the pass-by-value semantics of a remotable service with WS binding. - * Test for boolean array. - */ - @Test - public void testW2WPassByValueBooleanArray() throws Exception { - PrimitivesServiceClient primitivesServiceClient = node.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientW2WComponent"); - Assert.assertTrue(primitivesServiceClient.passByValueBooleanArray()); - } - - /** - * Invokes the PrimitivesService service using WS binding. - * Service method invoked is negateByte. - */ - @Test - public void testW2WNegateByte() throws Exception { - PrimitivesServiceClient primitivesServiceClient = node.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientW2WComponent"); - performTestNegateByte(primitivesServiceClient); - } - - /** - * Invokes the PrimitivesService service using WS binding. - * Service method invoked is negateByteArray. - */ - @Test - public void testW2WNegateByteArray() throws Exception { - PrimitivesServiceClient primitivesServiceClient = node.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientW2WComponent"); - performTestNegateByteArray(primitivesServiceClient); - } - - /** - * Test the pass-by-value semantics of a remotable service with WS binding. - * Test for byte array. - */ - @Test - public void testW2WPassByValueByteArray() throws Exception { - PrimitivesServiceClient primitivesServiceClient = node.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientW2WComponent"); - Assert.assertTrue(primitivesServiceClient.passByValueByteArray()); - } - - /** - * Invokes the PrimitivesService service using WS binding. - * Service method invoked is negateShort. - */ - @Test - public void testW2WNegateShort() throws Exception { - PrimitivesServiceClient primitivesServiceClient = node.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientW2WComponent"); - performTestNegateShort(primitivesServiceClient); - } - - /** - * Invokes the PrimitivesService service using WS binding. - * Service method invoked is negateShortArray. - */ - @Test - public void testW2WNegateShortArray() throws Exception { - PrimitivesServiceClient primitivesServiceClient = node.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientW2WComponent"); - performTestNegateShortArray(primitivesServiceClient); - } - - /** - * Test the pass-by-value semantics of a remotable service with WS binding. - * Test for short array. - */ - @Test - public void testW2WPassByValueShortArray() throws Exception { - PrimitivesServiceClient primitivesServiceClient = node.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientW2WComponent"); - Assert.assertTrue(primitivesServiceClient.passByValueShortArray()); - } - - /** - * Invokes the PrimitivesService service using WS binding. - * Service method invoked is negateInt. - */ - @Test - public void testW2WNegateInt() throws Exception { - PrimitivesServiceClient primitivesServiceClient = node.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientW2WComponent"); - performTestNegateInt(primitivesServiceClient); - } - - /** - * Invokes the PrimitivesService service using WS binding. - * Service method invoked is negateIntArray. - */ - @Test - public void testW2WNegateIntArray() throws Exception { - PrimitivesServiceClient primitivesServiceClient = node.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientW2WComponent"); - performTestNegateIntArray(primitivesServiceClient); - } - - /** - * Test the pass-by-value semantics of a remotable service with WS binding. - * Test for int array. - */ - @Test - public void testW2WPassByValueIntArray() throws Exception { - PrimitivesServiceClient primitivesServiceClient = node.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientW2WComponent"); - Assert.assertTrue(primitivesServiceClient.passByValueIntArray()); - } - - /** - * Invokes the PrimitivesService service using WS binding. - * Service method invoked is negateLong. - */ - @Test - public void testW2WNegateLong() throws Exception { - PrimitivesServiceClient primitivesServiceClient = node.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientW2WComponent"); - performTestNegateLong(primitivesServiceClient); - } - - /** - * Invokes the PrimitivesService service using WS binding. - * Service method invoked is negateLongArray. - */ - @Test - public void testW2WNegateLongArray() throws Exception { - PrimitivesServiceClient primitivesServiceClient = node.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientW2WComponent"); - performTestNegateLongArray(primitivesServiceClient); - } - - /** - * Test the pass-by-value semantics of a remotable service with WS binding. - * Test for long array. - */ - @Test - public void testW2WPassByValueLongArray() throws Exception { - PrimitivesServiceClient primitivesServiceClient = node.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientW2WComponent"); - Assert.assertTrue(primitivesServiceClient.passByValueLongArray()); - } - - /** - * Invokes the PrimitivesService service using WS binding. - * Service method invoked is negateFloat. - */ - @Test - public void testW2WNegateFloat() throws Exception { - PrimitivesServiceClient primitivesServiceClient = node.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientW2WComponent"); - performTestNegateFloat(primitivesServiceClient); - } - - /** - * Invokes the PrimitivesService service using WS binding. - * Service method invoked is negateFloatArray. - */ - @Test - public void testW2WNegateFloatArray() throws Exception { - PrimitivesServiceClient primitivesServiceClient = node.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientW2WComponent"); - performTestNegateFloatArray(primitivesServiceClient); - } - - /** - * Test the pass-by-value semantics of a remotable service with WS binding. - * Test for float array. - */ - @Test - public void testW2WPassByValueFloatArray() throws Exception { - PrimitivesServiceClient primitivesServiceClient = node.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientW2WComponent"); - Assert.assertTrue(primitivesServiceClient.passByValueFloatArray()); - } - - /** - * Invokes the PrimitivesService service using WS binding. - * Service method invoked is negateDouble. - */ - @Test - public void testW2WNegateDouble() throws Exception { - PrimitivesServiceClient primitivesServiceClient = node.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientW2WComponent"); - performTestNegateDouble(primitivesServiceClient); - } - - /** - * Invokes the PrimitivesService service using WS binding. - * Service method invoked is negateDoubleArray. - */ - @Test - public void testW2WNegateDoubleArray() throws Exception { - PrimitivesServiceClient primitivesServiceClient = node.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientW2WComponent"); - performTestNegateDoubleArray(primitivesServiceClient); - } - - /** - * Test the pass-by-value semantics of a remotable service with WS binding. - * Test for double array. - */ - @Test - public void testW2WPassByValueDoubleArray() throws Exception { - PrimitivesServiceClient primitivesServiceClient = node.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientW2WComponent"); - Assert.assertTrue(primitivesServiceClient.passByValueDoubleArray()); - } - - /** - * Invokes the PrimitivesService service using WS binding. - * Service method invoked is negateBoolean. - */ - @Test - public void testJ2WNegateBoolean() throws Exception { - PrimitivesServiceClient primitivesServiceClient = node.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientJ2WComponent"); - performTestNegateBoolean(primitivesServiceClient); - } - - /** - * Invokes the PrimitivesService service using WS binding. - * Service method invoked is negateBooleanArray. - */ - @Test - public void testJ2WNegateBooleanArray() throws Exception { - PrimitivesServiceClient primitivesServiceClient = node.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientJ2WComponent"); - performTestNegateBooleanArray(primitivesServiceClient); - } - - /** - * Test the pass-by-value semantics of a remotable service with WS binding. - * Test for boolean array. - */ - @Test - public void testJ2WPassByValueBooleanArray() throws Exception { - PrimitivesServiceClient primitivesServiceClient = node.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientJ2WComponent"); - Assert.assertTrue(primitivesServiceClient.passByValueBooleanArray()); - } - - /** - * Invokes the PrimitivesService service using WS binding. - * Service method invoked is negateByte. - */ - @Test - public void testJ2WNegateByte() throws Exception { - PrimitivesServiceClient primitivesServiceClient = node.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientJ2WComponent"); - performTestNegateByte(primitivesServiceClient); - } - - /** - * Invokes the PrimitivesService service using WS binding. - * Service method invoked is negateByteArray. - */ - @Test - public void testJ2WNegateByteArray() throws Exception { - PrimitivesServiceClient primitivesServiceClient = node.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientJ2WComponent"); - performTestNegateByteArray(primitivesServiceClient); - } - - /** - * Test the pass-by-value semantics of a remotable service with WS binding. - * Test for byte array. - */ - @Test - public void testJ2WPassByValueByteArray() throws Exception { - PrimitivesServiceClient primitivesServiceClient = node.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientJ2WComponent"); - Assert.assertTrue(primitivesServiceClient.passByValueByteArray()); - } - - /** - * Invokes the PrimitivesService service using WS binding. - * Service method invoked is negateShort. - */ - @Test - public void testJ2WNegateShort() throws Exception { - PrimitivesServiceClient primitivesServiceClient = node.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientJ2WComponent"); - performTestNegateShort(primitivesServiceClient); - } - - /** - * Invokes the PrimitivesService service using WS binding. - * Service method invoked is negateShortArray. - */ - @Test - public void testJ2WNegateShortArray() throws Exception { - PrimitivesServiceClient primitivesServiceClient = node.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientJ2WComponent"); - performTestNegateShortArray(primitivesServiceClient); - } - - /** - * Test the pass-by-value semantics of a remotable service with WS binding. - * Test for short array. - */ - @Test - public void testJ2WPassByValueShortArray() throws Exception { - PrimitivesServiceClient primitivesServiceClient = node.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientJ2WComponent"); - Assert.assertTrue(primitivesServiceClient.passByValueShortArray()); - } - - /** - * Invokes the PrimitivesService service using WS binding. - * Service method invoked is negateInt. - */ - @Test - public void testJ2WNegateInt() throws Exception { - PrimitivesServiceClient primitivesServiceClient = node.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientJ2WComponent"); - performTestNegateInt(primitivesServiceClient); - } - - /** - * Invokes the PrimitivesService service using WS binding. - * Service method invoked is negateIntArray. - */ - @Test - public void testJ2WNegateIntArray() throws Exception { - PrimitivesServiceClient primitivesServiceClient = node.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientJ2WComponent"); - performTestNegateIntArray(primitivesServiceClient); - } - - /** - * Test the pass-by-value semantics of a remotable service with WS binding. - * Test for int array. - */ - @Test - public void testJ2WPassByValueIntArray() throws Exception { - PrimitivesServiceClient primitivesServiceClient = node.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientJ2WComponent"); - Assert.assertTrue(primitivesServiceClient.passByValueIntArray()); - } - - /** - * Invokes the PrimitivesService service using WS binding. - * Service method invoked is negateLong. - */ - @Test - public void testJ2WNegateLong() throws Exception { - PrimitivesServiceClient primitivesServiceClient = node.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientJ2WComponent"); - performTestNegateLong(primitivesServiceClient); - } - - /** - * Invokes the PrimitivesService service using WS binding. - * Service method invoked is negateLongArray. - */ - @Test - public void testJ2WNegateLongArray() throws Exception { - PrimitivesServiceClient primitivesServiceClient = node.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientJ2WComponent"); - performTestNegateLongArray(primitivesServiceClient); - } - - /** - * Test the pass-by-value semantics of a remotable service with WS binding. - * Test for long array. - */ - @Test - public void testJ2WPassByValueLongArray() throws Exception { - PrimitivesServiceClient primitivesServiceClient = node.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientJ2WComponent"); - Assert.assertTrue(primitivesServiceClient.passByValueLongArray()); - } - - /** - * Invokes the PrimitivesService service using WS binding. - * Service method invoked is negateFloat. - */ - @Test - public void testJ2WNegateFloat() throws Exception { - PrimitivesServiceClient primitivesServiceClient = node.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientJ2WComponent"); - performTestNegateFloat(primitivesServiceClient); - } - - /** - * Invokes the PrimitivesService service using WS binding. - * Service method invoked is negateFloatArray. - */ - @Test - public void testJ2WNegateFloatArray() throws Exception { - PrimitivesServiceClient primitivesServiceClient = node.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientJ2WComponent"); - performTestNegateFloatArray(primitivesServiceClient); - } - - /** - * Test the pass-by-value semantics of a remotable service with WS binding. - * Test for float array. - */ - @Test - public void testJ2WPassByValueFloatArray() throws Exception { - PrimitivesServiceClient primitivesServiceClient = node.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientJ2WComponent"); - Assert.assertTrue(primitivesServiceClient.passByValueFloatArray()); - } - - /** - * Invokes the PrimitivesService service using WS binding. - * Service method invoked is negateDouble. - */ - @Test - public void testJ2WNegateDouble() throws Exception { - PrimitivesServiceClient primitivesServiceClient = node.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientJ2WComponent"); - performTestNegateDouble(primitivesServiceClient); - } - - /** - * Invokes the PrimitivesService service using WS binding. - * Service method invoked is negateDoubleArray. - */ - @Test - public void testJ2WNegateDoubleArray() throws Exception { - PrimitivesServiceClient primitivesServiceClient = node.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientJ2WComponent"); - performTestNegateDoubleArray(primitivesServiceClient); - } - - /** - * Test the pass-by-value semantics of a remotable service with WS binding. - * Test for double array. - */ - @Test - public void testJ2WPassByValueDoubleArray() throws Exception { - PrimitivesServiceClient primitivesServiceClient = node.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientJ2WComponent"); - Assert.assertTrue(primitivesServiceClient.passByValueDoubleArray()); - } - - /** - * Invokes the PrimitivesService service using WS binding. - * Service method invoked is negateBoolean. - */ - @Test - public void testW2JNegateBoolean() throws Exception { - PrimitivesServiceClient primitivesServiceClient = node.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientW2JComponent"); - performTestNegateBoolean(primitivesServiceClient); - } - - /** - * Invokes the PrimitivesService service using WS binding. - * Service method invoked is negateBooleanArray. - */ - @Test - public void testW2JNegateBooleanArray() throws Exception { - PrimitivesServiceClient primitivesServiceClient = node.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientW2JComponent"); - performTestNegateBooleanArray(primitivesServiceClient); - } - - /** - * Test the pass-by-value semantics of a remotable service with WS binding. - * Test for boolean array. - */ - @Test - public void testW2JPassByValueBooleanArray() throws Exception { - PrimitivesServiceClient primitivesServiceClient = node.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientW2JComponent"); - Assert.assertTrue(primitivesServiceClient.passByValueBooleanArray()); - } - - /** - * Invokes the PrimitivesService service using WS binding. - * Service method invoked is negateByte. - */ - @Test - public void testW2JNegateByte() throws Exception { - PrimitivesServiceClient primitivesServiceClient = node.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientW2JComponent"); - performTestNegateByte(primitivesServiceClient); - } - - /** - * Invokes the PrimitivesService service using WS binding. - * Service method invoked is negateByteArray. - */ - @Test - public void testW2JNegateByteArray() throws Exception { - PrimitivesServiceClient primitivesServiceClient = node.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientW2JComponent"); - performTestNegateByteArray(primitivesServiceClient); - } - - /** - * Test the pass-by-value semantics of a remotable service with WS binding. - * Test for byte array. - */ - @Test - public void testW2JPassByValueByteArray() throws Exception { - PrimitivesServiceClient primitivesServiceClient = node.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientW2JComponent"); - Assert.assertTrue(primitivesServiceClient.passByValueByteArray()); - } - - /** - * Invokes the PrimitivesService service using WS binding. - * Service method invoked is negateShort. - */ - @Test - public void testW2JNegateShort() throws Exception { - PrimitivesServiceClient primitivesServiceClient = node.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientW2JComponent"); - performTestNegateShort(primitivesServiceClient); - } - - /** - * Invokes the PrimitivesService service using WS binding. - * Service method invoked is negateShortArray. - */ - @Test - public void testW2JNegateShortArray() throws Exception { - PrimitivesServiceClient primitivesServiceClient = node.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientW2JComponent"); - performTestNegateShortArray(primitivesServiceClient); - } - - /** - * Test the pass-by-value semantics of a remotable service with WS binding. - * Test for short array. - */ - @Test - public void testW2JPassByValueShortArray() throws Exception { - PrimitivesServiceClient primitivesServiceClient = node.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientW2JComponent"); - Assert.assertTrue(primitivesServiceClient.passByValueShortArray()); - } - - /** - * Invokes the PrimitivesService service using WS binding. - * Service method invoked is negateInt. - */ - @Test - public void testW2JNegateInt() throws Exception { - PrimitivesServiceClient primitivesServiceClient = node.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientW2JComponent"); - performTestNegateInt(primitivesServiceClient); - } - - /** - * Invokes the PrimitivesService service using WS binding. - * Service method invoked is negateIntArray. - */ - @Test - public void testW2JNegateIntArray() throws Exception { - PrimitivesServiceClient primitivesServiceClient = node.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientW2JComponent"); - performTestNegateIntArray(primitivesServiceClient); - } - - /** - * Test the pass-by-value semantics of a remotable service with WS binding. - * Test for int array. - */ - @Test - public void testW2JPassByValueIntArray() throws Exception { - PrimitivesServiceClient primitivesServiceClient = node.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientW2JComponent"); - Assert.assertTrue(primitivesServiceClient.passByValueIntArray()); - } - - /** - * Invokes the PrimitivesService service using WS binding. - * Service method invoked is negateLong. - */ - @Test - public void testW2JNegateLong() throws Exception { - PrimitivesServiceClient primitivesServiceClient = node.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientW2JComponent"); - performTestNegateLong(primitivesServiceClient); - } - - /** - * Invokes the PrimitivesService service using WS binding. - * Service method invoked is negateLongArray. - */ - @Test - public void testW2JNegateLongArray() throws Exception { - PrimitivesServiceClient primitivesServiceClient = node.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientW2JComponent"); - performTestNegateLongArray(primitivesServiceClient); - } - - /** - * Test the pass-by-value semantics of a remotable service with WS binding. - * Test for long array. - */ - @Test - public void testW2JPassByValueLongArray() throws Exception { - PrimitivesServiceClient primitivesServiceClient = node.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientW2JComponent"); - Assert.assertTrue(primitivesServiceClient.passByValueLongArray()); - } - - /** - * Invokes the PrimitivesService service using WS binding. - * Service method invoked is negateFloat. - */ - @Test - public void testW2JNegateFloat() throws Exception { - PrimitivesServiceClient primitivesServiceClient = node.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientW2JComponent"); - performTestNegateFloat(primitivesServiceClient); - } - - /** - * Invokes the PrimitivesService service using WS binding. - * Service method invoked is negateFloatArray. - */ - @Test - public void testW2JNegateFloatArray() throws Exception { - PrimitivesServiceClient primitivesServiceClient = node.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientW2JComponent"); - performTestNegateFloatArray(primitivesServiceClient); - } - - /** - * Test the pass-by-value semantics of a remotable service with WS binding. - * Test for float array. - */ - @Test - public void testW2JPassByValueFloatArray() throws Exception { - PrimitivesServiceClient primitivesServiceClient = node.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientW2JComponent"); - Assert.assertTrue(primitivesServiceClient.passByValueFloatArray()); - } - - /** - * Invokes the PrimitivesService service using WS binding. - * Service method invoked is negateDouble. - */ - @Test - public void testW2JNegateDouble() throws Exception { - PrimitivesServiceClient primitivesServiceClient = node.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientW2JComponent"); - performTestNegateDouble(primitivesServiceClient); - } - - /** - * Invokes the PrimitivesService service using WS binding. - * Service method invoked is negateDoubleArray. - */ - @Test - public void testW2JNegateDoubleArray() throws Exception { - PrimitivesServiceClient primitivesServiceClient = node.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientW2JComponent"); - performTestNegateDoubleArray(primitivesServiceClient); - } - - /** - * Test the pass-by-value semantics of a remotable service with WS binding. - * Test for double array. - */ - @Test - public void testW2JPassByValueDoubleArray() throws Exception { - PrimitivesServiceClient primitivesServiceClient = node.getService(PrimitivesServiceClient.class, "PrimitivesServiceClientW2JComponent"); - Assert.assertTrue(primitivesServiceClient.passByValueDoubleArray()); - } - - private void performTestNegateBoolean(PrimitivesServiceClient primitivesServiceClient) { - Assert.assertTrue(primitivesServiceClient.negateBooleanForward(false)); - Assert.assertFalse(primitivesServiceClient.negateBooleanForward(true)); - } - - private void performTestNegateBooleanArray(PrimitivesServiceClient primitivesServiceClient) { - boolean flags[] = new boolean[2]; - flags[0] = false; - flags[1] = true; - boolean[] respFlags = primitivesServiceClient.negateBooleanArrayForward(flags); - Assert.assertEquals(flags.length, respFlags.length); - for(int i = 0; i < flags.length; ++i) { - Assert.assertEquals(!flags[i], respFlags[i]); - } - } - - private void performTestNegateByte(PrimitivesServiceClient primitivesServiceClient) { - byte[] ba = new byte[3]; - ba[0] = -1; - ba[1] = 0; - ba[2] = 1; - - for(int i = 0; i < ba.length; ++i) { - Assert.assertEquals((byte)-ba[i], primitivesServiceClient.negateByteForward(ba[i])); - } - } - - private void performTestNegateByteArray(PrimitivesServiceClient primitivesServiceClient) { - byte[] ba = new byte[3]; - ba[0] = -1; - ba[1] = 0; - ba[2] = 1; - - byte[] r = primitivesServiceClient.negateByteArrayForward(ba); - Assert.assertEquals(ba.length, r.length); - for(int i = 0; i < ba.length; ++i) { - Assert.assertEquals((byte)-ba[i], r[i]); - } - } - - private void performTestNegateShort(PrimitivesServiceClient primitivesServiceClient) { - short[] s = new short[3]; - s[0] = -1; - s[1] = 0; - s[2] = 1; - - for(int i = 0; i < s.length; ++i) { - Assert.assertEquals((short)-s[i], primitivesServiceClient.negateShortForward(s[i])); - } - } - - private void performTestNegateShortArray(PrimitivesServiceClient primitivesServiceClient) { - short[] s = new short[3]; - s[0] = -1; - s[1] = 0; - s[2] = 1; - - short[] r = primitivesServiceClient.negateShortArrayForward(s); - Assert.assertEquals(s.length, r.length); - for(int i = 0; i < s.length; ++i) { - Assert.assertEquals((short)-s[i], r[i]); - } - } - - private void performTestNegateInt(PrimitivesServiceClient primitivesServiceClient) { - int[] ia = new int[3]; - ia[0] = -1; - ia[1] = 0; - ia[2] = 1; - - for(int i = 0; i < ia.length; ++i) { - Assert.assertEquals(-ia[i], primitivesServiceClient.negateIntForward(ia[i])); - } - } - - private void performTestNegateIntArray(PrimitivesServiceClient primitivesServiceClient) { - int[] ia = new int[3]; - ia[0] = -1; - ia[1] = 0; - ia[2] = 1; - - int[] r = primitivesServiceClient.negateIntArrayForward(ia); - Assert.assertEquals(ia.length, r.length); - for(int i = 0; i < ia.length; ++i) { - Assert.assertEquals(-ia[i], r[i]); - } - } - - private void performTestNegateLong(PrimitivesServiceClient primitivesServiceClient) { - long[] la = new long[3]; - la[0] = -1; - la[1] = 0; - la[2] = 1; - - for(int i = 0; i < la.length; ++i) { - Assert.assertEquals(-la[i], primitivesServiceClient.negateLongForward(la[i])); - } - } - - private void performTestNegateLongArray(PrimitivesServiceClient primitivesServiceClient) { - long[] la = new long[3]; - la[0] = -1; - la[1] = 0; - la[2] = 1; - - long[] r = primitivesServiceClient.negateLongArrayForward(la); - Assert.assertEquals(la.length, r.length); - for(int i = 0; i < la.length; ++i) { - Assert.assertEquals(-la[i], r[i]); - } - } - - private void performTestNegateFloat(PrimitivesServiceClient primitivesServiceClient) { - float[] fa = new float[3]; - fa[0] = -1; - fa[1] = 0; - fa[2] = 1; - - for(int i = 0; i < fa.length; ++i) { - Assert.assertEquals(-fa[i], primitivesServiceClient.negateFloatForward(fa[i])); - } - } - - private void performTestNegateFloatArray(PrimitivesServiceClient primitivesServiceClient) { - float[] ia = new float[3]; - ia[0] = -1; - ia[1] = 0; - ia[2] = 1; - - float[] r = primitivesServiceClient.negateFloatArrayForward(ia); - Assert.assertEquals(ia.length, r.length); - for(int i = 0; i < ia.length; ++i) { - Assert.assertEquals(-ia[i], r[i]); - } - } - - private void performTestNegateDouble(PrimitivesServiceClient primitivesServiceClient) { - double[] da = new double[3]; - da[0] = -1; - da[1] = 0; - da[2] = 1; - - for(int i = 0; i < da.length; ++i) { - Assert.assertEquals(-da[i], primitivesServiceClient.negateDoubleForward(da[i])); - } - } - - private void performTestNegateDoubleArray(PrimitivesServiceClient primitivesServiceClient) { - double[] da = new double[3]; - da[0] = -1; - da[1] = 0; - da[2] = 1; - - double[] r = primitivesServiceClient.negateDoubleArrayForward(da); - Assert.assertEquals(da.length, r.length); - for(int i = 0; i < da.length; ++i) { - Assert.assertEquals(-da[i], r[i]); - } - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-top-down/src/test/java/org/apache/tuscany/sca/itest/databindings/jaxb/topdown/StandardTypesDatabindingTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-top-down/src/test/java/org/apache/tuscany/sca/itest/databindings/jaxb/topdown/StandardTypesDatabindingTestCase.java deleted file mode 100644 index 7499978c0e..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/jaxb-top-down/src/test/java/org/apache/tuscany/sca/itest/databindings/jaxb/topdown/StandardTypesDatabindingTestCase.java +++ /dev/null @@ -1,1438 +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 org.apache.tuscany.sca.itest.databindings.jaxb.topdown; - -import java.awt.Image; -import java.awt.image.BufferedImage; -import java.awt.image.PixelGrabber; -import java.io.File; -import java.io.IOException; -import java.io.InputStream; -import java.io.StringWriter; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.net.URI; -import java.net.URL; -import java.util.Calendar; -import java.util.Date; -import java.util.GregorianCalendar; -import java.util.TimeZone; -import java.util.UUID; - -import javax.activation.DataHandler; -import javax.xml.datatype.DatatypeConfigurationException; -import javax.xml.datatype.DatatypeFactory; -import javax.xml.datatype.Duration; -import javax.xml.datatype.XMLGregorianCalendar; -import javax.xml.namespace.QName; -import javax.xml.transform.Result; -import javax.xml.transform.Source; -import javax.xml.transform.TransformerFactory; -import javax.xml.transform.stream.StreamResult; - -import junit.framework.Assert; - -import org.apache.axiom.attachments.ByteArrayDataSource; -import org.apache.tuscany.sca.itest.databindings.jaxb.StandardTypesServiceClient; -import org.apache.tuscany.sca.itest.databindings.jaxb.impl.StandardTypesTransformer; -import org.apache.tuscany.sca.node.Contribution; -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; -import org.junit.AfterClass; -import org.junit.BeforeClass; -import org.junit.Test; - -/** - * @version $Rev$ $Date$ - */ -public class StandardTypesDatabindingTestCase { - - private static Node node; - - /** - * Runs once before the tests - */ - @BeforeClass - public static void setUp() throws Exception { - NodeFactory factory = NodeFactory.newInstance(); - node = factory.createNode(new File("src/main/resources/wsdl/wrapped/standard-types-service.composite").toURI().toURL().toString(), - new Contribution("TestContribution", new File("src/main/resources/wsdl/wrapped/").toURI().toURL().toString())); - node.start(); - } - - /** - * Runs once after the tests - */ - @AfterClass - public static void tearDown() { - node.stop(); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewBigInteger. - */ - @Test - public void testW2WNewBigInteger() throws Exception { - StandardTypesServiceClient serviceClient = - node.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientW2WComponent"); - performTestNewBigInteger(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewBigIntegerArray. - */ - @Test - public void testW2WNewBigIntegerArray() throws Exception { - StandardTypesServiceClient serviceClient = - node.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientW2WComponent"); - performTestNewBigIntegerArray(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewBigDecimal. - */ - @Test - public void testW2WNewBigDecimal() throws Exception { - StandardTypesServiceClient serviceClient = - node.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientW2WComponent"); - performTestNewBigDecimal(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewBigDecimalArray. - */ - @Test - public void testW2WNewBigDecimalArray() throws Exception { - StandardTypesServiceClient serviceClient = - node.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientW2WComponent"); - performTestNewBigDecimalArray(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewCalendar. - */ - @Test - public void testW2WNewCalendar() throws Exception { - StandardTypesServiceClient serviceClient = - node.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientW2WComponent"); - performTestNewCalendar(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewCalendarArray. - */ - @Test - public void testW2WNewCalendarArray() throws Exception { - StandardTypesServiceClient serviceClient = - node.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientW2WComponent"); - performTestNewCalendarArray(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewDate. - */ - @Test - public void testW2WNewDate() throws Exception { - StandardTypesServiceClient serviceClient = - node.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientW2WComponent"); - performTestNewDate(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewDateArray. - */ - @Test - public void testW2WNewDateArray() throws Exception { - StandardTypesServiceClient serviceClient = - node.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientW2WComponent"); - performTestNewDateArray(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewQName. - */ - @Test - public void testW2WNewQName() throws Exception { - StandardTypesServiceClient serviceClient = - node.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientW2WComponent"); - performTestNewQName(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewQNameArray. - */ - @Test - public void testW2WNewQNameArray() throws Exception { - StandardTypesServiceClient serviceClient = - node.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientW2WComponent"); - performTestNewQNameArray(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewURI. - */ - @Test - public void testW2WNewURI() throws Exception { - StandardTypesServiceClient serviceClient = - node.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientW2WComponent"); - performTestNewURI(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewURIArray. - */ - @Test - public void testW2WNewURIArray() throws Exception { - StandardTypesServiceClient serviceClient = - node.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientW2WComponent"); - performTestNewURIArray(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewXMLGregorianCalendar. - */ - @Test - public void testW2WNewXMLGregorianCalendar() throws Exception { - StandardTypesServiceClient serviceClient = - node.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientW2WComponent"); - performTestNewXMLGregorianCalendar(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewXMLGregorianCalendarArray. - */ - @Test - public void testW2WNewXMLGregorianCalendarArray() throws Exception { - StandardTypesServiceClient serviceClient = - node.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientW2WComponent"); - performTestNewXMLGregorianCalendarArray(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewDuration. - */ - @Test - public void testW2WNewDuration() throws Exception { - StandardTypesServiceClient serviceClient = - node.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientW2WComponent"); - performTestNewDuration(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewDurationArray. - */ - @Test - public void testW2WNewDurationArray() throws Exception { - StandardTypesServiceClient serviceClient = - node.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientW2WComponent"); - performTestNewDurationArray(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewObject. - */ - @Test - public void testW2WNewObject() throws Exception { - StandardTypesServiceClient serviceClient = - node.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientW2WComponent"); - performTestNewObject(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewObjectArray. - */ - @Test - public void testW2WNewObjectArray() throws Exception { - StandardTypesServiceClient serviceClient = - node.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientW2WComponent"); - performTestNewObjectArray(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewImage. - */ - @Test - public void testW2WNewImage() throws Exception { - StandardTypesServiceClient serviceClient = - node.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientW2WComponent"); - performTestNewImage(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewImageArray. - */ - @Test - public void testW2WNewImageArray() throws Exception { - StandardTypesServiceClient serviceClient = - node.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientW2WComponent"); - performTestNewImageArray(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewDataHandler. - */ - @Test - public void testW2WNewDataHandler() throws Exception { - StandardTypesServiceClient serviceClient = - node.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientW2WComponent"); - performTestNewDataHandler(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewDataHandlerArray. - */ - @Test - public void testW2WNewDataHandlerArray() throws Exception { - StandardTypesServiceClient serviceClient = - node.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientW2WComponent"); - performTestNewDataHandlerArray(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewSource. - */ - /*@Test - //@Ignore("junit.framework.ComparisonFailure: null expected:<... encoding=\"UTF-8\"?><[a>A> but was:<... encoding=\"UTF-8\"?><[return xmlns=\"http://jaxb.databindings.itest.sca.tuscany.apache.org/\">A>") - public void testW2WNewSource() throws Exception { - StandardTypesServiceClient serviceClient = - node.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientW2WComponent"); - performTestNewSource(serviceClient); - }*/ - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewSourceArray. - */ - /*@Test - @Ignore("TUSCANY-2452") - public void testW2WNewSourceArray() throws Exception { - StandardTypesServiceClient serviceClient = - node.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientW2WComponent"); - performTestNewSourceArray(serviceClient); - }*/ - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewUUID. - */ - @Test - public void testW2WNewUUID() throws Exception { - StandardTypesServiceClient serviceClient = - node.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientW2WComponent"); - performTestNewUUID(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewUUIDArray. - */ - @Test - public void testW2WNewUUIDArray() throws Exception { - StandardTypesServiceClient serviceClient = - node.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientW2WComponent"); - performTestNewUUIDArray(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewBigInteger. - */ - @Test - public void testJ2WNewBigInteger() throws Exception { - StandardTypesServiceClient serviceClient = - node.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientJ2WComponent"); - performTestNewBigInteger(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewBigIntegerArray. - */ - @Test - public void testJ2WNewBigIntegerArray() throws Exception { - StandardTypesServiceClient serviceClient = - node.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientJ2WComponent"); - performTestNewBigIntegerArray(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewBigDecimal. - */ - @Test - public void testJ2WNewBigDecimal() throws Exception { - StandardTypesServiceClient serviceClient = - node.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientJ2WComponent"); - performTestNewBigDecimal(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewBigDecimalArray. - */ - @Test - public void testJ2WNewBigDecimalArray() throws Exception { - StandardTypesServiceClient serviceClient = - node.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientJ2WComponent"); - performTestNewBigDecimalArray(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewCalendar. - */ - @Test - public void testJ2WNewCalendar() throws Exception { - StandardTypesServiceClient serviceClient = - node.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientJ2WComponent"); - performTestNewCalendar(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewCalendarArray. - */ - @Test - public void testJ2WNewCalendarArray() throws Exception { - StandardTypesServiceClient serviceClient = - node.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientJ2WComponent"); - performTestNewCalendarArray(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewDate. - */ - @Test - public void testJ2WNewDate() throws Exception { - StandardTypesServiceClient serviceClient = - node.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientJ2WComponent"); - performTestNewDate(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewDateArray. - */ - @Test - public void testJ2WNewDateArray() throws Exception { - StandardTypesServiceClient serviceClient = - node.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientJ2WComponent"); - performTestNewDateArray(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewQName. - */ - @Test - public void testJ2WNewQName() throws Exception { - StandardTypesServiceClient serviceClient = - node.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientJ2WComponent"); - performTestNewQName(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewQNameArray. - */ - @Test - public void testJ2WNewQNameArray() throws Exception { - StandardTypesServiceClient serviceClient = - node.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientJ2WComponent"); - performTestNewQNameArray(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewURI. - */ - @Test - public void testJ2WNewURI() throws Exception { - StandardTypesServiceClient serviceClient = - node.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientJ2WComponent"); - performTestNewURI(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewURIArray. - */ - @Test - public void testJ2WNewURIArray() throws Exception { - StandardTypesServiceClient serviceClient = - node.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientJ2WComponent"); - performTestNewURIArray(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewXMLGregorianCalendar. - */ - @Test - public void testJ2WNewXMLGregorianCalendar() throws Exception { - StandardTypesServiceClient serviceClient = - node.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientJ2WComponent"); - performTestNewXMLGregorianCalendar(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewXMLGregorianCalendarArray. - */ - @Test - public void testJ2WNewXMLGregorianCalendarArray() throws Exception { - StandardTypesServiceClient serviceClient = - node.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientJ2WComponent"); - performTestNewXMLGregorianCalendarArray(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewDuration. - */ - @Test - public void testJ2WNewDuration() throws Exception { - StandardTypesServiceClient serviceClient = - node.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientJ2WComponent"); - performTestNewDuration(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewDurationArray. - */ - @Test - public void testJ2WNewDurationArray() throws Exception { - StandardTypesServiceClient serviceClient = - node.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientJ2WComponent"); - performTestNewDurationArray(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewObject. - */ - @Test - public void testJ2WNewObject() throws Exception { - StandardTypesServiceClient serviceClient = - node.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientJ2WComponent"); - performTestNewObject(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewObjectArray. - */ - @Test - public void testJ2WNewObjectArray() throws Exception { - StandardTypesServiceClient serviceClient = - node.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientJ2WComponent"); - performTestNewObjectArray(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewImage. - */ - @Test - public void testJ2WNewImage() throws Exception { - StandardTypesServiceClient serviceClient = - node.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientJ2WComponent"); - performTestNewImage(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewImageArray. - */ - @Test - public void testJ2WNewImageArray() throws Exception { - StandardTypesServiceClient serviceClient = - node.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientJ2WComponent"); - performTestNewImageArray(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewDataHandler. - */ - @Test - public void testJ2WNewDataHandler() throws Exception { - StandardTypesServiceClient serviceClient = - node.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientJ2WComponent"); - performTestNewDataHandler(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewDataHandlerArray. - */ - @Test - public void testJ2WNewDataHandlerArray() throws Exception { - StandardTypesServiceClient serviceClient = - node.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientJ2WComponent"); - performTestNewDataHandlerArray(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewSource. - */ - /*@Test - //@Ignore("junit.framework.ComparisonFailure: null expected:<... encoding=\"UTF-8\"?><[a>A> but was:<... encoding=\"UTF-8\"?><[return xmlns=\"http://jaxb.databindings.itest.sca.tuscany.apache.org/\">A>") - public void testJ2WNewSource() throws Exception { - StandardTypesServiceClient serviceClient = - node.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientJ2WComponent"); - performTestNewSource(serviceClient); - }*/ - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewSourceArray. - */ - /*@Test - @Ignore("TUSCANY-2452") - public void testJ2WNewSourceArray() throws Exception { - StandardTypesServiceClient serviceClient = - node.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientJ2WComponent"); - performTestNewSourceArray(serviceClient); - }*/ - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewUUID. - */ - @Test - public void testJ2WNewUUID() throws Exception { - StandardTypesServiceClient serviceClient = - node.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientJ2WComponent"); - performTestNewUUID(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewUUIDArray. - */ - @Test - public void testJ2WNewUUIDArray() throws Exception { - StandardTypesServiceClient serviceClient = - node.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientJ2WComponent"); - performTestNewUUIDArray(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewBigInteger. - */ - @Test - public void testW2JNewBigInteger() throws Exception { - StandardTypesServiceClient serviceClient = - node.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientW2JComponent"); - performTestNewBigInteger(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewBigIntegerArray. - */ - @Test - public void testW2JNewBigIntegerArray() throws Exception { - StandardTypesServiceClient serviceClient = - node.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientW2JComponent"); - performTestNewBigIntegerArray(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewBigDecimal. - */ - @Test - public void testW2JNewBigDecimal() throws Exception { - StandardTypesServiceClient serviceClient = - node.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientW2JComponent"); - performTestNewBigDecimal(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewBigDecimalArray. - */ - @Test - public void testW2JNewBigDecimalArray() throws Exception { - StandardTypesServiceClient serviceClient = - node.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientW2JComponent"); - performTestNewBigDecimalArray(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewCalendar. - */ - @Test - public void testW2JNewCalendar() throws Exception { - StandardTypesServiceClient serviceClient = - node.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientW2JComponent"); - performTestNewCalendar(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewCalendarArray. - */ - @Test - public void testW2JNewCalendarArray() throws Exception { - StandardTypesServiceClient serviceClient = - node.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientW2JComponent"); - performTestNewCalendarArray(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewDate. - */ - @Test - public void testW2JNewDate() throws Exception { - StandardTypesServiceClient serviceClient = - node.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientW2JComponent"); - performTestNewDate(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewDateArray. - */ - @Test - public void testW2JNewDateArray() throws Exception { - StandardTypesServiceClient serviceClient = - node.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientW2JComponent"); - performTestNewDateArray(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewQName. - */ - @Test - public void testW2JNewQName() throws Exception { - StandardTypesServiceClient serviceClient = - node.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientW2JComponent"); - performTestNewQName(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewQNameArray. - */ - @Test - public void testW2JNewQNameArray() throws Exception { - StandardTypesServiceClient serviceClient = - node.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientW2JComponent"); - performTestNewQNameArray(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewURI. - */ - @Test - public void testW2JNewURI() throws Exception { - StandardTypesServiceClient serviceClient = - node.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientW2JComponent"); - performTestNewURI(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewURIArray. - */ - @Test - public void testW2JNewURIArray() throws Exception { - StandardTypesServiceClient serviceClient = - node.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientW2JComponent"); - performTestNewURIArray(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewXMLGregorianCalendar. - */ - @Test - public void testW2JNewXMLGregorianCalendar() throws Exception { - StandardTypesServiceClient serviceClient = - node.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientW2JComponent"); - performTestNewXMLGregorianCalendar(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewXMLGregorianCalendarArray. - */ - @Test - public void testW2JNewXMLGregorianCalendarArray() throws Exception { - StandardTypesServiceClient serviceClient = - node.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientW2JComponent"); - performTestNewXMLGregorianCalendarArray(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewDuration. - */ - @Test - public void testW2JNewDuration() throws Exception { - StandardTypesServiceClient serviceClient = - node.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientW2JComponent"); - performTestNewDuration(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewDurationArray. - */ - @Test - public void testW2JNewDurationArray() throws Exception { - StandardTypesServiceClient serviceClient = - node.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientW2JComponent"); - performTestNewDurationArray(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewObject. - */ - @Test - public void testW2JNewObject() throws Exception { - StandardTypesServiceClient serviceClient = - node.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientW2JComponent"); - performTestNewObject(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewObjectArray. - */ - @Test - public void testW2JNewObjectArray() throws Exception { - StandardTypesServiceClient serviceClient = - node.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientW2JComponent"); - performTestNewObjectArray(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewImage. - */ - @Test - public void testW2JNewImage() throws Exception { - StandardTypesServiceClient serviceClient = - node.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientW2JComponent"); - performTestNewImage(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewImageArray. - */ - @Test - public void testW2JNewImageArray() throws Exception { - StandardTypesServiceClient serviceClient = - node.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientW2JComponent"); - performTestNewImageArray(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewDataHandler. - */ - @Test - public void testW2JNewDataHandler() throws Exception { - StandardTypesServiceClient serviceClient = - node.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientW2JComponent"); - performTestNewDataHandler(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewDataHandlerArray. - */ - @Test - public void testW2JNewDataHandlerArray() throws Exception { - StandardTypesServiceClient serviceClient = - node.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientW2JComponent"); - performTestNewDataHandlerArray(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewSource. - */ - /*@Test - //@Ignore("junit.framework.ComparisonFailure: null expected:<... encoding=\"UTF-8\"?><[a>A> but was:<... encoding=\"UTF-8\"?><[return xmlns=\"http://jaxb.databindings.itest.sca.tuscany.apache.org/\">A>") - public void testW2JNewSource() throws Exception { - StandardTypesServiceClient serviceClient = - node.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientW2JComponent"); - performTestNewSource(serviceClient); - }*/ - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewSourceArray. - */ - /*@Test - @Ignore("TUSCANY-2452") - public void testW2JNewSourceArray() throws Exception { - StandardTypesServiceClient serviceClient = - node.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientW2JComponent"); - performTestNewSourceArray(serviceClient); - }*/ - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewUUID. - */ - @Test - public void testW2JNewUUID() throws Exception { - StandardTypesServiceClient serviceClient = - node.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientW2JComponent"); - performTestNewUUID(serviceClient); - } - - /** - * Invokes the StandardTypesService service using WS binding. - * Service method invoked is getNewUUIDArray. - */ - @Test - public void testW2JNewUUIDArray() throws Exception { - StandardTypesServiceClient serviceClient = - node.getService(StandardTypesServiceClient.class, "StandardTypesServiceClientW2JComponent"); - performTestNewUUIDArray(serviceClient); - } - - private void performTestNewBigInteger(StandardTypesServiceClient serviceClient) { - BigInteger bi = new BigInteger("1234567890123456789012345678901234"); - BigInteger expected = bi.negate(); - BigInteger actual = serviceClient.getNewBigIntegerForward(bi); - Assert.assertEquals(expected, actual); - } - - private void performTestNewBigIntegerArray(StandardTypesServiceClient serviceClient) { - BigInteger[] bia = new BigInteger[2]; - bia[0] = new BigInteger("1234567890123456789012345678901234"); - bia[1] = new BigInteger("-98765432109876543210987654321"); - BigInteger[] actual = serviceClient.getNewBigIntegerArrayForward(bia); - Assert.assertEquals(bia.length, actual.length); - for (int i = 0; i < bia.length; ++i) { - Assert.assertEquals(bia[i].negate(), actual[i]); - } - } - - private void performTestNewBigDecimal(StandardTypesServiceClient serviceClient) { - BigDecimal bd = new BigDecimal("12345678901234567890.12345678901234"); - BigDecimal expected = bd.negate(); - BigDecimal actual = serviceClient.getNewBigDecimalForward(bd); - Assert.assertEquals(expected, actual); - } - - private void performTestNewBigDecimalArray(StandardTypesServiceClient serviceClient) { - BigDecimal[] bda = new BigDecimal[2]; - bda[0] = new BigDecimal("1234567890123456.789012345678901234"); - bda[1] = new BigDecimal("-987654321098765.43210987654321"); - BigDecimal[] actual = serviceClient.getNewBigDecimalArrayForward(bda); - Assert.assertEquals(bda.length, actual.length); - for (int i = 0; i < bda.length; ++i) { - Assert.assertEquals(bda[i].negate(), actual[i]); - } - } - - private void performTestNewCalendar(StandardTypesServiceClient serviceClient) { - Calendar[] ca = new Calendar[3]; - String[] tz = {"GMT+05:30", "GMT+00:00", "GMT-05:00"}; - for (int i = 0; i < ca.length; ++i) { - ca[i] = Calendar.getInstance(TimeZone.getTimeZone(tz[i])); - ca[i].set(Calendar.DAY_OF_MONTH, i + 1); - } - for (int i = 0; i < ca.length; ++i) { - Calendar actual = serviceClient.getNewCalendarForward(ca[i]); - ca[i].add(Calendar.DAY_OF_MONTH, 5); - if (actual instanceof GregorianCalendar && ca[i] instanceof GregorianCalendar) { - // FIXME: Is this a problem? - // The instance returned by service method invoked over binding.ws seems to have a gregorianCutover - // different from the instance passed. Adjust the gregorianCutover as per the input instance. - ((GregorianCalendar)actual).setGregorianChange(((GregorianCalendar)ca[i]).getGregorianChange()); - } - Assert.assertEquals(ca[i], actual); - } - } - - private void performTestNewCalendarArray(StandardTypesServiceClient serviceClient) { - Calendar[] ca = new Calendar[3]; - String[] tz = {"GMT+05:30", "GMT+00:00", "GMT-05:00"}; - for (int i = 0; i < ca.length; ++i) { - ca[i] = Calendar.getInstance(TimeZone.getTimeZone(tz[i])); - ca[i].set(Calendar.DAY_OF_MONTH, i + 1); - } - Calendar[] actual = serviceClient.getNewCalendarArrayForward(ca); - Assert.assertEquals(ca.length, actual.length); - for (int i = 0; i < ca.length; ++i) { - ca[i].add(Calendar.DAY_OF_MONTH, 5); - if (actual[i] instanceof GregorianCalendar && ca[i] instanceof GregorianCalendar) { - // FIXME: Is this a problem? - // The instance returned by service method invoked over binding.ws seems to have a gregorianCutover - // different from the instance passed. Adjust the gregorianCutover as per the input instance. - ((GregorianCalendar)actual[i]).setGregorianChange(((GregorianCalendar)ca[i]).getGregorianChange()); - } - Assert.assertEquals(ca[i], actual[i]); - } - } - - private void performTestNewDate(StandardTypesServiceClient serviceClient) { - Date d = new Date(); - Date expected = new Date(d.getTime() + 5 * 24 * 60 * 60 * 1000); - Date actual = serviceClient.getNewDateForward(d); - Assert.assertEquals(expected, actual); - } - - private void performTestNewDateArray(StandardTypesServiceClient serviceClient) { - Date[] d = new Date[2]; - Date[] expected = new Date[d.length]; - for (int i = 0; i < d.length; ++i) { - d[i] = new Date(); - d[i].setTime(d[i].getTime() + i * 24 * 60 * 60 * 1000); - expected[i] = new Date(d[i].getTime() + 5 * 24 * 60 * 60 * 1000); - } - Date[] actual = serviceClient.getNewDateArrayForward(d); - Assert.assertEquals(expected.length, actual.length); - for (int i = 0; i < expected.length; ++i) { - Assert.assertEquals(expected[i], actual[i]); - } - } - - private void performTestNewQName(StandardTypesServiceClient serviceClient) { - QName[] qnames = new QName[3]; - qnames[0] = new QName("localPart"); - qnames[1] = new QName("namespaceUri", "localPart"); - qnames[2] = new QName("namespaceUri", "localPart", "prefix"); - QName[] expected = new QName[qnames.length]; - for (int i = 0; i < qnames.length; ++i) { - expected[i] = - new QName(qnames[i].getNamespaceURI() + "q", qnames[i].getLocalPart() + "q", - qnames[i].getPrefix() + "q"); - } - for (int i = 0; i < qnames.length; ++i) { - QName actual = serviceClient.getNewQNameForward(qnames[i]); - Assert.assertEquals(expected[i], actual); - } - } - - private void performTestNewQNameArray(StandardTypesServiceClient serviceClient) { - QName[] qnames = new QName[4]; - qnames[0] = new QName("localPart"); - qnames[1] = new QName("namespaceUri", "localPart"); - qnames[2] = new QName("namespaceUri", "localPart", "prefix"); - qnames[3] = new QName("localPart2"); - QName[] expected = new QName[qnames.length]; - for (int i = 0; i < qnames.length; ++i) { - expected[i] = - new QName(qnames[i].getNamespaceURI() + "q", qnames[i].getLocalPart() + "q", - qnames[i].getPrefix() + "q"); - } - QName[] actual = serviceClient.getNewQNameArrayForward(qnames); - Assert.assertEquals(expected.length, actual.length); - for (int i = 0; i < qnames.length; ++i) { - Assert.assertEquals(expected[i], actual[i]); - } - } - - private void performTestNewURI(StandardTypesServiceClient serviceClient) { - URI[] uris = new URI[4]; - uris[0] = URI.create("a/b/c"); - uris[1] = URI.create("http://abc/"); - uris[2] = URI.create("ftp://a/b"); - uris[3] = URI.create("http://abc/").resolve("xyz"); - - for (int i = 0; i < uris.length; ++i) { - URI expected = uris[i].resolve("uri"); - URI actual = serviceClient.getNewURIForward(uris[i]); - Assert.assertEquals(expected, actual); - } - } - - private void performTestNewURIArray(StandardTypesServiceClient serviceClient) { - URI[] uris = new URI[4]; - uris[0] = URI.create("a/b/c"); - // [rfeng] We need to have a trialign / to avoid the resolving problem - // FIXME: [vamsi] This is actually a data transformation problem. The array being returned from the service method is - // not making to the caller intact. - uris[1] = URI.create("http://abc/"); - uris[2] = URI.create("ftp://a/b"); - uris[3] = URI.create("http://abc/").resolve("xyz"); - - URI[] expected = new URI[uris.length]; - for (int i = 0; i < uris.length; ++i) { - expected[i] = uris[i].resolve("uri"); - } - - URI[] actual = serviceClient.getNewURIArrayForward(uris); - Assert.assertEquals(expected.length, actual.length); - for (int i = 0; i < uris.length; ++i) { - Assert.assertEquals(expected[i], actual[i]); - } - } - - private void performTestNewXMLGregorianCalendar(StandardTypesServiceClient serviceClient) - throws DatatypeConfigurationException { - DatatypeFactory df = DatatypeFactory.newInstance(); - XMLGregorianCalendar[] xgcals = new XMLGregorianCalendar[3]; - xgcals[0] = df.newXMLGregorianCalendar(new GregorianCalendar(1974, GregorianCalendar.APRIL, 19)); - xgcals[1] = df.newXMLGregorianCalendar(new GregorianCalendar(1978, GregorianCalendar.OCTOBER, 13)); - xgcals[2] = df.newXMLGregorianCalendar(new GregorianCalendar(2006, GregorianCalendar.JUNE, 16)); - - for (int i = 0; i < xgcals.length; ++i) { - XMLGregorianCalendar actual = serviceClient.getNewXMLGregorianCalendarForward(xgcals[i]); - xgcals[i].setDay(xgcals[i].getDay() + 5); - Assert.assertEquals(xgcals[i], actual); - } - } - - private void performTestNewXMLGregorianCalendarArray(StandardTypesServiceClient serviceClient) - throws DatatypeConfigurationException { - DatatypeFactory df = DatatypeFactory.newInstance(); - XMLGregorianCalendar[] xgcals = new XMLGregorianCalendar[3]; - xgcals[0] = df.newXMLGregorianCalendar(new GregorianCalendar(1974, GregorianCalendar.APRIL, 19)); - xgcals[1] = df.newXMLGregorianCalendar(new GregorianCalendar(1978, GregorianCalendar.OCTOBER, 13)); - xgcals[2] = df.newXMLGregorianCalendar(new GregorianCalendar(2006, GregorianCalendar.JUNE, 16)); - - XMLGregorianCalendar[] actual = serviceClient.getNewXMLGregorianCalendarArrayForward(xgcals); - Assert.assertEquals(xgcals.length, actual.length); - for (int i = 0; i < xgcals.length; ++i) { - xgcals[i].setDay(xgcals[i].getDay() + 5); - Assert.assertEquals(xgcals[i], actual[i]); - } - } - - private void performTestNewDuration(StandardTypesServiceClient serviceClient) throws DatatypeConfigurationException { - DatatypeFactory df = DatatypeFactory.newInstance(); - Duration[] da = new Duration[3]; - da[0] = df.newDuration(1000000000000L); - da[1] = df.newDurationDayTime(1000000000000L); - da[2] = df.newDurationYearMonth(true, 1, 3); - - for (int i = 0; i < da.length; ++i) { - Assert.assertEquals(da[i].negate(), serviceClient.getNewDurationForward(da[i])); - } - } - - private void performTestNewObject(StandardTypesServiceClient serviceClient) { - Object[] objs = new Object[5]; - objs[0] = "Hello"; - objs[1] = 10; - objs[2] = null; - objs[3] = -1.0; - objs[4] = null; - - for (int i = 0; i < objs.length; ++i) { - Object expected = StandardTypesTransformer.getNewObject(objs[i]); - Object actual = serviceClient.getNewObjectForward(objs[i]); - Assert.assertEquals(expected, actual); - } - } - - private void performTestNewObjectArray(StandardTypesServiceClient serviceClient) { - Object[] objs = new Object[5]; - objs[0] = "Hello"; - objs[1] = 10; - objs[2] = null; - objs[3] = -1.0; - objs[4] = null; - - Object[] actual = serviceClient.getNewObjectArrayForward(objs); - Assert.assertEquals(objs.length, actual.length); - for (int i = 0; i < objs.length; ++i) { - Object expected = StandardTypesTransformer.getNewObject(objs[i]); - Assert.assertEquals(expected, actual[i]); - } - } - - private void performTestNewImage(StandardTypesServiceClient serviceClient) throws InterruptedException { - // Create some images to test with. - Image[] imgs = new Image[3]; - imgs[0] = new BufferedImage(10, 10, BufferedImage.TYPE_3BYTE_BGR); - imgs[1] = new BufferedImage(10, 10, BufferedImage.TYPE_INT_ARGB); - imgs[2] = new BufferedImage(10, 10, BufferedImage.TYPE_INT_RGB); - imgs[0].getGraphics().drawLine(1, 1, 8, 8); - imgs[1].getGraphics().drawLine(8, 1, 1, 8); - imgs[2].getGraphics().drawLine(1, 8, 8, 1); - - Image[] copy = imgs; - // Create the same images once again as the StandardTypesTransformer may manipulate the image passed. - imgs = new Image[3]; - imgs[0] = new BufferedImage(10, 10, BufferedImage.TYPE_3BYTE_BGR); - imgs[1] = new BufferedImage(10, 10, BufferedImage.TYPE_INT_ARGB); - imgs[2] = new BufferedImage(10, 10, BufferedImage.TYPE_INT_RGB); - imgs[0].getGraphics().drawLine(1, 1, 8, 8); - imgs[1].getGraphics().drawLine(8, 1, 1, 8); - imgs[2].getGraphics().drawLine(1, 8, 8, 1); - - // Make sure the images and copies are equal using ImageInfo - for(int i = 0; i < imgs.length; ++i) { - Assert.assertEquals(new ImageInfo(imgs[i]), new ImageInfo(copy[i])); - } - - for (int i = 0; i < imgs.length; ++i) { - Image actual = serviceClient.getNewImageForward(imgs[i]); - Image expected = StandardTypesTransformer.getNewImage(copy[i]); - // Compare using ImageInfo - Assert.assertEquals(new ImageInfo(expected), new ImageInfo(actual)); - } - } - - private void performTestNewImageArray(StandardTypesServiceClient serviceClient) throws InterruptedException { - // Create some images to test with. - Image[] imgs = new Image[3]; - imgs[0] = new BufferedImage(10, 10, BufferedImage.TYPE_3BYTE_BGR); - imgs[1] = new BufferedImage(10, 10, BufferedImage.TYPE_INT_ARGB); - imgs[2] = new BufferedImage(10, 10, BufferedImage.TYPE_INT_RGB); - imgs[0].getGraphics().drawLine(1, 1, 8, 8); - imgs[1].getGraphics().drawLine(8, 1, 1, 8); - imgs[2].getGraphics().drawLine(1, 8, 8, 1); - - Image[] copy = imgs; - // Create the same images once again as the StandardTypesTransformer may manipulate the image passed. - imgs = new Image[3]; - imgs[0] = new BufferedImage(10, 10, BufferedImage.TYPE_3BYTE_BGR); - imgs[1] = new BufferedImage(10, 10, BufferedImage.TYPE_INT_ARGB); - imgs[2] = new BufferedImage(10, 10, BufferedImage.TYPE_INT_RGB); - imgs[0].getGraphics().drawLine(1, 1, 8, 8); - imgs[1].getGraphics().drawLine(8, 1, 1, 8); - imgs[2].getGraphics().drawLine(1, 8, 8, 1); - - // Make sure the images and copies are equal using ImageInfo - for(int i = 0; i < imgs.length; ++i) { - Assert.assertEquals(new ImageInfo(imgs[i]), new ImageInfo(copy[i])); - } - - Image[] actual = serviceClient.getNewImageArrayForward(imgs); - Assert.assertEquals(imgs.length, actual.length); - for (int i = 0; i < imgs.length; ++i) { - Image expected = StandardTypesTransformer.getNewImage(copy[i]); - // Compare using ImageInfo - Assert.assertEquals(new ImageInfo(expected), new ImageInfo(actual[i])); - } - } - - private void performTestNewDurationArray(StandardTypesServiceClient serviceClient) - throws DatatypeConfigurationException { - DatatypeFactory df = DatatypeFactory.newInstance(); - Duration[] da = new Duration[3]; - da[0] = df.newDuration(1000000000000L); - da[1] = df.newDurationDayTime(1000000000000L); - da[2] = df.newDurationYearMonth(true, 1, 3); - - Duration[] actual = serviceClient.getNewDurationArrayForward(da); - Assert.assertEquals(da.length, actual.length); - for (int i = 0; i < da.length; ++i) { - Assert.assertEquals(da[i].negate(), actual[i]); - } - } - - private void performTestNewDataHandler(StandardTypesServiceClient serviceClient) throws IOException { - DataHandler[] dha = new DataHandler[3]; - dha[0] = new DataHandler("Some data", "text/plain"); - dha[1] = new DataHandler(new URL("http://tuscany.apache.org/home.html")); - dha[2] = new DataHandler(new ByteArrayDataSource("Some data2".getBytes())); - - for (int i = 0; i < dha.length; ++i) { - DataHandler actual = serviceClient.getNewDataHandlerForward(dha[i]); - // Note: The DataHandler returned may use a different type of DataSource. - // Compare the data content instead of using equals(). - Assert.assertTrue(compare(dha[i], actual)); - } - } - - private void performTestNewDataHandlerArray(StandardTypesServiceClient serviceClient) throws IOException { - DataHandler[] dha = new DataHandler[3]; - dha[0] = new DataHandler("Some data", "text/plain"); - dha[1] = new DataHandler(new URL("http://tuscany.apache.org/home.html")); - dha[2] = new DataHandler(new ByteArrayDataSource("Some data2".getBytes())); - - DataHandler[] actual = serviceClient.getNewDataHandlerArrayForward(dha); - Assert.assertEquals(dha.length, actual.length); - for (int i = 0; i < dha.length; ++i) { - // Note: The DataHandler returned may use a different type of DataSource. - // Compare the data content instead of using equals(). - Assert.assertTrue(compare(dha[i], actual[i])); - } - } - - /*private void performTestNewSource(StandardTypesServiceClient serviceClient) throws Exception { - String xml = "ABC"; - Source[] srcs = new Source[3]; - srcs[0] = new DOMSource(new String2Node(null).transform(xml, null)); - srcs[1] = new SAXSource(new InputSource(new StringReader(xml))); - srcs[2] = new StreamSource(new StringReader(xml)); - - for (int i = 0; i < srcs.length; ++i) { - Source expected = StandardTypesTransformer.getNewSource(srcs[i]); - Source actual = serviceClient.getNewSourceForward(srcs[i]); - // [rfeng] The data may come back as a different source - Assert.assertEquals(sourceToString(expected), sourceToString(actual)); - } - } - - private void performTestNewSourceArray(StandardTypesServiceClient serviceClient) throws Exception { - String xml = "ABC"; - Source[] srcs = new Source[3]; - srcs[0] = new DOMSource(new String2Node(null).transform(xml, null)); - srcs[1] = new SAXSource(new InputSource(new StringReader(xml))); - srcs[2] = new StreamSource(new StringReader(xml)); - - Source[] actual = serviceClient.getNewSourceArrayForward(srcs); - Source[] expected = new Source[srcs.length]; - for(int i = 0; i < srcs.length; ++i) { - expected[i] = StandardTypesTransformer.getNewSource(srcs[i]); - } - Assert.assertEquals(srcs.length, actual.length); - for (int i = 0; i < srcs.length; ++i) { - // [rfeng] The data may come back as a different source - Assert.assertEquals(sourceToString(expected[i]), sourceToString(actual[i])); - } - - }*/ - - private void performTestNewUUID(StandardTypesServiceClient serviceClient) { - UUID[] uuids = new UUID[3]; - uuids[0] = UUID.nameUUIDFromBytes("ABCDEFGHJKLMNOPQRSTUVWXYZ".getBytes()); - uuids[1] = UUID.nameUUIDFromBytes("abcdefghjklmnopqrstuvwxyz".getBytes()); - uuids[2] = UUID.randomUUID(); - - for (int i = 0; i < uuids.length; ++i) { - UUID expected = UUID.fromString(uuids[i].toString() + "AAA"); - UUID actual = serviceClient.getNewUUIDForward(uuids[i]); - Assert.assertEquals(expected, actual); - } - } - - private void performTestNewUUIDArray(StandardTypesServiceClient serviceClient) { - UUID[] uuids = new UUID[3]; - uuids[0] = UUID.nameUUIDFromBytes("ABCDEFGHJKLMNOPQRSTUVWXYZ".getBytes()); - uuids[1] = UUID.nameUUIDFromBytes("abcdefghjklmnopqrstuvwxyz".getBytes()); - uuids[2] = UUID.randomUUID(); - - UUID[] actual = serviceClient.getNewUUIDArrayForward(uuids); - for (int i = 0; i < uuids.length; ++i) { - UUID expected = UUID.fromString(uuids[i].toString() + "AAA"); - Assert.assertEquals(expected, actual[i]); - } - } - - /** - * This method compares two DataHandlers. - * @return true if the data in the two handlers is the same. - */ - private boolean compare(DataHandler dh1, DataHandler dh2) throws IOException { - InputStream inp1 = dh1.getInputStream(); - InputStream inp2 = dh2.getInputStream(); - for(;;) { - int i1 = inp1.read(); - int i2 = inp2.read(); - if(i1 == -1 && i2 == -1) { - return true; - } else if(i1 != -1 && i2 != -1) { - if(i1 != i2) { - return false; - } - } else { - return false; - } - } - } - - /** - * This method returns the content of a source object as String. - */ - private String sourceToString(Source s) throws Exception { - StringWriter sw = new StringWriter(); - Result r = new StreamResult(sw); - TransformerFactory.newInstance().newTransformer().transform(s, r); - sw.close(); - return sw.toString(); - } - - /** - * This class initializes with the width, height and pixel data of a java.awt.Image object. - */ - private static class ImageInfo { - private int h, w, pixels[]; - public ImageInfo(Image img) throws InterruptedException { - w = img.getWidth(null); - h = img.getHeight(null); - pixels = new int[w*h]; - PixelGrabber pg = new PixelGrabber(img, 0, 0, w, h, pixels, 0, w); - pg.grabPixels(); - } - - public boolean equals(Object that) { - if(that == null) { - return false; - } else if(!(that instanceof ImageInfo)) { - return false; - } - - ImageInfo that1 = (ImageInfo)that; - if(w != that1.w || h != that1.h || pixels == null || that1.pixels == null || pixels.length != that1.pixels.length) { - return false; - } - for(int i = 0; i < pixels.length; ++i) { - if(pixels[i] != that1.pixels[i]) { - return false; - } - } - return true; - } - - public String toString() { - return this.getClass().getSimpleName()+"[w = "+w+", h = "+h+", pixels = "+pixels+"]"; - } - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/pom.xml deleted file mode 100644 index cd96896d71..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/databindings/pom.xml +++ /dev/null @@ -1,41 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-itest - 2.0-M5 - ../pom.xml - - org.apache.tuscany.sca - itest-databindings - Apache Tuscany SCA Databindings Integration Tests - 2.0-M5 - - pom - - install - - - jaxb-bottom-up - jaxb-top-down - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/distribution/bin-distro-unzip/build.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/distribution/bin-distro-unzip/build.xml deleted file mode 100644 index 6c4b1fdf3f..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/distribution/bin-distro-unzip/build.xml +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/distribution/bin-distro-unzip/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/distribution/bin-distro-unzip/pom.xml deleted file mode 100644 index d0d5f5fbb6..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/distribution/bin-distro-unzip/pom.xml +++ /dev/null @@ -1,128 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - itest-distribution - 2.0-M5 - ../pom.xml - - itest-bin-distro-unzip - Apache Tuscany SCA iTest Distribution Bin Distro Unzip - - - - org.apache.tuscany.sca - tuscany-distribution-all - pom - 2.0-M5 - - - - - - - - not-sun-jdk - - - ${java.home}/../lib/tools.jar - - - - - - org.apache.maven.plugins - maven-antrun-plugin - - - run-samples - verify - - run - - - - - - - - - - - - - - - - - sun-jdk - - - ${java.home}/../lib/tools.jar - - - - - - org.apache.maven.plugins - maven-antrun-plugin - 1.3 - - - - ant - ant-trax - 1.6.5 - - - - sun.jdk - tools - 1.6 - system - ${java.home}/../lib/tools.jar - - - - - - run-samples - verify - - run - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/distribution/contribution-binding-rmi-calculator/build.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/distribution/contribution-binding-rmi-calculator/build.xml deleted file mode 100644 index 86afb7a952..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/distribution/contribution-binding-rmi-calculator/build.xml +++ /dev/null @@ -1,39 +0,0 @@ - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/distribution/contribution-binding-rmi-calculator/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/distribution/contribution-binding-rmi-calculator/pom.xml deleted file mode 100644 index 800870a1e6..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/distribution/contribution-binding-rmi-calculator/pom.xml +++ /dev/null @@ -1,68 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - itest-distribution - 2.0-M5 - ../pom.xml - - itest-distribution-contribution-binding-rmi-calculator - Apache Tuscany SCA iTest Distribution Contribution binding-rmi Calculator - - - - distribution - - - org.apache.tuscany.sca - itest-bin-distro-unzip - pom - 2.0-M5 - - - - - - - - - org.apache.maven.plugins - maven-antrun-plugin - - - run-samples - verify - - run - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/distribution/contribution-binding-sca-calculator/build.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/distribution/contribution-binding-sca-calculator/build.xml deleted file mode 100644 index bd5f247a19..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/distribution/contribution-binding-sca-calculator/build.xml +++ /dev/null @@ -1,40 +0,0 @@ - - - - ${java.home} - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/distribution/contribution-binding-sca-calculator/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/distribution/contribution-binding-sca-calculator/pom.xml deleted file mode 100644 index 3fc5eca6e8..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/distribution/contribution-binding-sca-calculator/pom.xml +++ /dev/null @@ -1,87 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - itest-distribution - 2.0-M5 - ../pom.xml - - itest-distribution-contribution-binding-sca-calculator - Apache Tuscany SCA iTest Distribution Contribution binding-sca Calculator - - - - distribution - - - org.apache.tuscany.sca - itest-bin-distro-unzip - pom - 2.0-M5 - - - - - - - - - org.apache.maven.plugins - maven-antrun-plugin - 1.3 - - - - ant - ant-trax - 1.6.5 - - - - sun.jdk - tools - 1.6 - system - ${java.home}/../lib/tools.jar - - - - - - run-samples - verify - - run - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/distribution/contribution-binding-ws-calculator/build.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/distribution/contribution-binding-ws-calculator/build.xml deleted file mode 100644 index de8ea977a9..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/distribution/contribution-binding-ws-calculator/build.xml +++ /dev/null @@ -1,40 +0,0 @@ - - - - ${java.home} - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/distribution/contribution-binding-ws-calculator/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/distribution/contribution-binding-ws-calculator/pom.xml deleted file mode 100644 index fa4aedaecd..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/distribution/contribution-binding-ws-calculator/pom.xml +++ /dev/null @@ -1,69 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - itest-distribution - 2.0-M5 - ../pom.xml - - itest-distribution-contribution-binding-ws-calculator - Apache Tuscany SCA iTest Distribution Contribution binding-ws Calculator - - - - distribution - - - org.apache.tuscany.sca - itest-bin-distro-unzip - pom - 2.0-M5 - - - - - - - - - org.apache.maven.plugins - maven-antrun-plugin - - - run-samples - verify - - run - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/distribution/contribution-implementation-java-calculator/build.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/distribution/contribution-implementation-java-calculator/build.xml deleted file mode 100644 index 52704f49f1..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/distribution/contribution-implementation-java-calculator/build.xml +++ /dev/null @@ -1,40 +0,0 @@ - - - - ${java.home} - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/distribution/contribution-implementation-java-calculator/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/distribution/contribution-implementation-java-calculator/pom.xml deleted file mode 100644 index 8198c418ac..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/distribution/contribution-implementation-java-calculator/pom.xml +++ /dev/null @@ -1,87 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - itest-distribution - 2.0-M5 - ../pom.xml - - itest-distribution-contribution-implementation-java-calculator - Apache Tuscany SCA iTest Distribution contribution implementation-java Calculator - - - - distribution - - - org.apache.tuscany.sca - itest-bin-distro-unzip - pom - 2.0-M5 - - - - - - - - - org.apache.maven.plugins - maven-antrun-plugin - 1.3 - - - - ant - ant-trax - 1.6.5 - - - - sun.jdk - tools - 1.6 - system - ${java.home}/../lib/tools.jar - - - - - - run-samples - verify - - run - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/distribution/launcher-embedded-jse/build.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/distribution/launcher-embedded-jse/build.xml deleted file mode 100644 index cd569b380a..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/distribution/launcher-embedded-jse/build.xml +++ /dev/null @@ -1,41 +0,0 @@ - - - - ${java.home} - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/distribution/launcher-embedded-jse/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/distribution/launcher-embedded-jse/pom.xml deleted file mode 100644 index f44c9874da..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/distribution/launcher-embedded-jse/pom.xml +++ /dev/null @@ -1,69 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - itest-distribution - 2.0-M5 - ../pom.xml - - itest-distribution-launcher-embedded-jse - Apache Tuscany SCA iTest Distribution Launcher Embedded JSE - - - - distribution - - - org.apache.tuscany.sca - itest-bin-distro-unzip - pom - 2.0-M5 - - - - - - - - - org.apache.maven.plugins - maven-antrun-plugin - - - run-samples - verify - - run - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/distribution/launcher-embedded-osgi/build.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/distribution/launcher-embedded-osgi/build.xml deleted file mode 100644 index c6874ed86e..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/distribution/launcher-embedded-osgi/build.xml +++ /dev/null @@ -1,45 +0,0 @@ - - - - ${java.home} - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/distribution/launcher-embedded-osgi/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/distribution/launcher-embedded-osgi/pom.xml deleted file mode 100644 index 2ed873ecf9..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/distribution/launcher-embedded-osgi/pom.xml +++ /dev/null @@ -1,69 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - itest-distribution - 2.0-M5 - ../pom.xml - - itest-distribution-launcher-embedded-osgi - Apache Tuscany SCA iTest Distribution Launcher Embedded OSGi - - - - distribution - - - org.apache.tuscany.sca - itest-bin-distro-unzip - pom - 2.0-M5 - - - - - - - - - org.apache.maven.plugins - maven-antrun-plugin - - - run-samples - verify - - run - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/distribution/legal-checks/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/distribution/legal-checks/pom.xml deleted file mode 100644 index daed6ea382..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/distribution/legal-checks/pom.xml +++ /dev/null @@ -1,47 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - itest-distribution - 2.0-M5 - ../pom.xml - - itest-distribution-legal-checks - Apache Tuscany SCA iTest Distribution Legal Checks - - - - distribution - - - org.apache.tuscany.sca - itest-bin-distro-unzip - pom - 2.0-M5 - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/distribution/legal-checks/src/test/java/itest/JarsInLICENSETestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/distribution/legal-checks/src/test/java/itest/JarsInLICENSETestCase.java deleted file mode 100644 index 3564128c8d..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/distribution/legal-checks/src/test/java/itest/JarsInLICENSETestCase.java +++ /dev/null @@ -1,162 +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 itest; - -import java.io.BufferedReader; -import java.io.File; -import java.io.FileReader; -import java.io.IOException; -import java.util.ArrayList; -import java.util.List; -import java.util.StringTokenizer; - -import org.junit.Test; - -/** - * Checks that all jar files included in the distribution are mentioned in the LICENSE file - * and that all jars mentioned in the LICENSE are in the distribution. - */ -public class JarsInLICENSETestCase { - - @Test - public void testJars() throws Exception { - File distroRoot = getUnzipedDistroRoot(); - - File licenseFile = new File(distroRoot, "LICENSE"); - if (!licenseFile.exists()) { - throw new IllegalStateException("can't find LICENSE file at: " + licenseFile.getAbsoluteFile().toString()); - } - - File libDirectory = new File(distroRoot, "modules"); - if (!libDirectory.exists()) { - throw new IllegalStateException("can't find modules folder at: " + libDirectory.getAbsoluteFile().toString()); - } - - List jars = getJarsInDistro(libDirectory); - - List bad2 = getLICENSEJarsNotInDistro(licenseFile, jars); - if (bad2.size() > 0) { - System.err.println("Jars in LICENSE but not in Distribution: " + bad2); - } - - List bad1 = getJarsNotInLICENSE(jars, licenseFile); - if (bad1.size() > 0) { - System.err.println("Jars in distribution but not in LICENSE: " + bad1); - } - - if (bad1.size() > 0 || bad2.size() > 0) { - throw new IllegalStateException("LICENSE problems, check log"); - } - } - - private List getLICENSEJarsNotInDistro(File licenseFile, List jars) throws IOException { - List badJars = new ArrayList(); - BufferedReader reader = new BufferedReader(new FileReader(licenseFile)); - String line = null; - while ((line = reader.readLine()) != null) { - line = line.trim(); - if (line.contains(".jar")) { - StringTokenizer st = new StringTokenizer(line); - while (st.hasMoreTokens()) { - String s = st.nextToken(); - if (s.contains(".jar")) { - if (s.startsWith("(")) { - s = s.substring(1); - } - if (s.endsWith(",") || s.endsWith(":")) { - s = s.substring(0, s.length()-1); - } - if (s.endsWith(")")) { - s = s.substring(0, s.length()-1); - } - if (!jars.contains(s) && !s.startsWith("tuscany-")) { - badJars.add(s); - } - } - } - } - } - return badJars; - } - - private List getJarsNotInLICENSE(List jars, File licenseFile) throws IOException { - List badJars = new ArrayList(); - String licenseText = readLICENSE(licenseFile); - for (String jar : jars) { - if (!licenseText.contains(jar)) { - if (jar.startsWith("tuscany-")) { - // ignore tuscany jars as they're not mentioned in the LICENSE file - } else { - badJars.add(jar); - } - } - } - return badJars; - } - - private List getJarsInDistro(File directory) { - List jars = new ArrayList(); - for (String fn : directory.list()){ - if (fn.endsWith(".jar")) { - jars.add(fn); - } else { - File f = new File(directory, fn); - if (f.isDirectory()) { - jars.addAll(getJarsInDistro(f)); - } - } - } - return jars; - } - - private File getUnzipedDistroRoot() { - File distroTarget = new File("../../../distribution/all/target"); - File root = null; - for (String f : distroTarget.list()) { - if (f.endsWith(".dir")) { - root = new File(distroTarget, f); - break; - } - } - if (root == null) { - throw new IllegalStateException("can't find distro root"); - } - if (root.list().length != 1) { - throw new IllegalStateException("expecting one directory in distro root"); - } - root = new File(root, root.list()[0]); - return root; - } - - private static String readLICENSE(File licenseFile) throws java.io.IOException { - StringBuffer fileData = new StringBuffer(); - BufferedReader reader = new BufferedReader(new FileReader(licenseFile)); - char[] buf = new char[1024]; - int numRead = 0; - while ((numRead = reader.read(buf)) != -1) { - String readData = String.valueOf(buf, 0, numRead); - fileData.append(readData); - buf = new char[1024]; - } - reader.close(); - return fileData.toString(); - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/distribution/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/distribution/pom.xml deleted file mode 100644 index 45caa91173..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/distribution/pom.xml +++ /dev/null @@ -1,71 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-itest - 2.0-M5 - ../pom.xml - - pom - itest-distribution - Apache Tuscany SCA iTest Distribution - - - - org.apache.tuscany.sca - tuscany-distribution-all - pom - 2.0-M5 - - - - - - default - - true - - - - - distribution - - bin-distro-unzip - - - - - - legal-checks - contribution-binding-sca-calculator - contribution-binding-ws-calculator - contribution-binding-rmi-calculator - contribution-implementation-java-calculator - launcher-embedded-jse - launcher-embedded-osgi - - - - install - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/domains/distributed/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/domains/distributed/pom.xml deleted file mode 100644 index eacfda616f..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/domains/distributed/pom.xml +++ /dev/null @@ -1,51 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-sca - 2.0-M5 - ../../pom.xml - - itest-domains-distributed - Apache Tuscany SCA itest domain distributed - - - - org.apache.tuscany.sca.shades - tuscany-base-nodep - 2.0-M5 - - - - junit - junit - 4.8.1 - test - - - - - - ${artifactId} - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/domains/distributed/src/test/java/itest/Helloworld.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/domains/distributed/src/test/java/itest/Helloworld.java deleted file mode 100644 index f764bc8358..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/domains/distributed/src/test/java/itest/Helloworld.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 itest; - -import org.oasisopen.sca.annotation.Remotable; - -@Remotable -public interface Helloworld { - - String sayHello(String name); - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/domains/distributed/src/test/java/itest/StandaloneTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/domains/distributed/src/test/java/itest/StandaloneTestCase.java deleted file mode 100644 index 222b3e8c3a..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/domains/distributed/src/test/java/itest/StandaloneTestCase.java +++ /dev/null @@ -1,46 +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 itest; - -import static org.junit.Assert.assertEquals; - -import java.net.URI; - -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; -import org.junit.Test; -import org.oasisopen.sca.client.SCAClientFactory; - -/** - * This shows how to test the Calculator service component. - */ -public class StandaloneTestCase{ - - @Test - public void test1() throws Exception { - Node node = NodeFactory.newInstance().createNode(URI.create("tuscany:foo"),"../helloworld/target/itest-domains-helloworld.zip"); - node.start(); - assertEquals(1, node.getServiceNames().size()); - assertEquals("HelloworldComponent/Helloworld", node.getServiceNames().get(0)); - Helloworld helloworld = SCAClientFactory.newInstance(URI.create("tuscany:foo")).getService(Helloworld.class, "HelloworldComponent"); - assertEquals("Hello petra", helloworld.sayHello("petra")); - } - -} - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/domains/helloworld/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/domains/helloworld/pom.xml deleted file mode 100644 index 12c084f1ed..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/domains/helloworld/pom.xml +++ /dev/null @@ -1,83 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-itest - 2.0-M5 - ../pom.xml - - itest-domains-helloworld - Apache Tuscany SCA itest domain helloworld - - - - org.apache.tuscany.sca - tuscany-sca-api - 2.0-M5 - provided - - - org.apache.tuscany.sca - itest-domains-interfaces - 2.0-M5 - - - junit - junit - 4.8.1 - test - - - - - ${artifactId} - - - maven-assembly-plugin - 2.2-beta-3 - - - org.apache.tuscany.sca - tuscany-zip-contribution-descriptor - 2.0-M5 - - - - - make-assembly - package - - single - - - false - - tuscany-zip-contribution.xml - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/domains/helloworld/src/main/java/itest/HelloworldImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/domains/helloworld/src/main/java/itest/HelloworldImpl.java deleted file mode 100644 index 2a10b3fb77..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/domains/helloworld/src/main/java/itest/HelloworldImpl.java +++ /dev/null @@ -1,38 +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 itest; - -import itest.Helloworld; - -import org.oasisopen.sca.annotation.EagerInit; -import org.oasisopen.sca.annotation.Init; -import org.oasisopen.sca.annotation.Scope; - -@Scope("COMPOSITE") @EagerInit -public class HelloworldImpl implements Helloworld { - - public String sayHello(String name) { - return "Hello " + name; - } - - @Init - public void init() { - System.out.println(sayHello("world")); - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/domains/helloworld/src/main/resources/META-INF/sca-contribution.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/domains/helloworld/src/main/resources/META-INF/sca-contribution.xml deleted file mode 100644 index 8939a73d01..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/domains/helloworld/src/main/resources/META-INF/sca-contribution.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/domains/helloworld/src/main/resources/helloworld.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/domains/helloworld/src/main/resources/helloworld.composite deleted file mode 100644 index 18d064c588..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/domains/helloworld/src/main/resources/helloworld.composite +++ /dev/null @@ -1,29 +0,0 @@ - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/domains/interfaces/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/domains/interfaces/pom.xml deleted file mode 100644 index 15f181b057..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/domains/interfaces/pom.xml +++ /dev/null @@ -1,51 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-itest - 2.0-M5 - ../pom.xml - - itest-domains-interfaces - Apache Tuscany SCA itest domain interfaces - - - - org.apache.tuscany.sca - tuscany-sca-api - 2.0-M5 - provided - - - - junit - junit - 4.8.1 - test - - - - - - ${artifactId} - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/domains/interfaces/src/main/java/itest/Helloworld.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/domains/interfaces/src/main/java/itest/Helloworld.java deleted file mode 100644 index f764bc8358..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/domains/interfaces/src/main/java/itest/Helloworld.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 itest; - -import org.oasisopen.sca.annotation.Remotable; - -@Remotable -public interface Helloworld { - - String sayHello(String name); - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/domains/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/domains/pom.xml deleted file mode 100644 index 32495e680f..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/domains/pom.xml +++ /dev/null @@ -1,38 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-itest - 2.0-M5 - ../pom.xml - - itest-domains - pom - Apache Tuscany SCA Domians Integration Tests - - - interfaces - helloworld - standalone - distributed - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/domains/standalone/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/domains/standalone/pom.xml deleted file mode 100644 index c40b530bc2..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/domains/standalone/pom.xml +++ /dev/null @@ -1,57 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-sca - 2.0-M5 - ../../pom.xml - - itest-domains-standalone - Apache Tuscany SCA itest domain standalone - - - - org.apache.tuscany.sca - tuscany-domain-node - 2.0-M5 - - - - - org.apache.tuscany.sca - tuscany-sca-client-impl - 2.0-M5 - - - junit - junit - 4.8.1 - test - - - - - - ${artifactId} - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/domains/standalone/src/test/java/itest/StandaloneTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/domains/standalone/src/test/java/itest/StandaloneTestCase.java deleted file mode 100644 index 0fbcc98a96..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/domains/standalone/src/test/java/itest/StandaloneTestCase.java +++ /dev/null @@ -1,66 +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 itest; - -import static org.junit.Assert.assertEquals; - -import org.apache.tuscany.sca.domain.node.DomainNode; -import org.junit.AfterClass; -import org.junit.BeforeClass; -import org.junit.Test; - -/** - * This shows how to test the Calculator service component. - */ -public class StandaloneTestCase{ - - private static DomainNode node; - - @BeforeClass - public static void setUpBeforeClass() throws Exception { - node = new DomainNode(); - node.addContribution("../helloworld/target/itest-domains-helloworld.zip"); - } - - @AfterClass - public static void tearDownAfterClass() throws Exception { - node.stop(); - } - - @Test - public void testServices() throws Exception { - assertEquals(1, node.getServiceNames().size()); - assertEquals("HelloworldComponent/Helloworld", node.getServiceNames().get(0)); - } - - @Test - public void testDuplicateComponents() throws Exception { - try { - node.addContribution("../helloworld/target/itest-domains-helloworld.zip", "dup"); - } catch (Exception e) { - e.printStackTrace(); - } - - // verify the old one is still there - // TODO: doesn't work correctly yet -// assertEquals(1, node.getServiceNames().size()); -// assertEquals("HelloworldComponent/Helloworld", node.getServiceNames().get(0)); - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/endpoints/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/endpoints/pom.xml deleted file mode 100644 index 2f987f9812..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/endpoints/pom.xml +++ /dev/null @@ -1,68 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-itest - 2.0-M5 - ../pom.xml - - itest-endpoints - Apache Tuscany SCA iTest Endpoints - - - - - org.apache.tuscany.sca - tuscany-binding-jsonp-runtime - 2.0-M5 - - - org.apache.tuscany.sca - tuscany-binding-rmi-runtime - 2.0-M5 - - - org.apache.tuscany.sca - tuscany-binding-ws-runtime-axis2 - 2.0-M5 - - - - org.apache.tuscany.sca - tuscany-node-impl - 2.0-M5 - - - org.apache.tuscany.sca - tuscany-host-jetty - 2.0-M5 - - - - org.apache.tuscany.sca - tuscany-implementation-java-runtime - 2.0-M5 - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/endpoints/src/test/java/helloworld/HelloWorldImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/endpoints/src/test/java/helloworld/HelloWorldImpl.java deleted file mode 100644 index c307547f56..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/endpoints/src/test/java/helloworld/HelloWorldImpl.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 helloworld; - - -public class HelloWorldImpl implements HelloWorldService { - - public String sayHello(String name) { - return "Hello " + name; - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/endpoints/src/test/java/helloworld/HelloWorldService.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/endpoints/src/test/java/helloworld/HelloWorldService.java deleted file mode 100644 index 064d615c45..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/endpoints/src/test/java/helloworld/HelloWorldService.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 helloworld; - -import org.oasisopen.sca.annotation.Remotable; - -@Remotable -public interface HelloWorldService { - - String sayHello(String name); - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/endpoints/src/test/java/test/EndpointsTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/endpoints/src/test/java/test/EndpointsTestCase.java deleted file mode 100644 index 7802848c3b..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/endpoints/src/test/java/test/EndpointsTestCase.java +++ /dev/null @@ -1,110 +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 test; - -import java.io.IOException; -import java.net.MalformedURLException; - -import org.apache.tuscany.sca.http.jetty.JettyServer; -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; -import org.junit.AfterClass; -import org.junit.BeforeClass; -import org.junit.Test; - -public class EndpointsTestCase { - - private static Node node; - - @Test - public void testJSONP1() throws MalformedURLException, IOException { - // - Utils.invokeJSONPEndpoint("http://localhost:8085/JSONPComponent1/HelloWorldService/sayHello?name=petra&callback=foo"); - } - @Test - public void testJSONP2() throws MalformedURLException, IOException { - // - Utils.invokeJSONPEndpoint("http://localhost:8085/JSONPComponent2/HelloWorldService/jsonp2/sayHello?name=petra&callback=foo"); - } - @Test - public void testJSONP3() throws MalformedURLException, IOException { - // - Utils.invokeJSONPEndpoint("http://localhost:8085/JSONPComponent3/HelloWorldService/jsonp3/sayHello?name=petra&callback=foo"); - } - @Test - public void testJSONP4() throws MalformedURLException, IOException { - // - Utils.invokeJSONPEndpoint("http://localhost:8085/jsonp4/sayHello?name=petra&callback=foo"); - } - @Test - public void testJSONP5() throws MalformedURLException, IOException { - // - Utils.invokeJSONPEndpoint("http://localhost:8085/jsonp5b/sayHello?name=petra&callback=foo"); - } - @Test - public void testJSONP6() throws MalformedURLException, IOException { - // - Utils.invokeJSONPEndpoint("http://localhost:8085/JSONPComponent6/HelloWorldService/jsonp6a/jsonp6b/sayHello?name=petra&callback=foo"); - } - - @Test - public void testWS1() throws MalformedURLException, Exception { - // - Utils.invokeWSEndpoint("http://localhost:8085/WSComponent1/HelloWorldService"); - } - @Test - public void testWS2() throws MalformedURLException, Exception { - // - Utils.invokeWSEndpoint("http://localhost:8085/WSComponent2/HelloWorldService/ws2"); - } - @Test - public void testWS3() throws MalformedURLException, Exception { - // - Utils.invokeWSEndpoint("http://localhost:8085/WSComponent3/HelloWorldService/ws3"); - } - @Test - public void testWS4() throws MalformedURLException, Exception { - // - Utils.invokeWSEndpoint("http://localhost:8085/ws4"); - } - @Test - public void testWS5() throws MalformedURLException, Exception { - // - Utils.invokeWSEndpoint("http://localhost:8085/ws5b"); - } - @Test - public void testWS6() throws Exception { - // - Utils.invokeWSEndpoint("http://localhost:8085/WSComponent6/HelloWorldService/ws6a/ws6b"); - } - - @BeforeClass - public static void init() throws Exception { - JettyServer.portDefault = 8085; - node = NodeFactory.newInstance().createNode("helloworld.composite").start(); - } - - @AfterClass - public static void destroy() throws Exception { - if (node != null) { - node.stop(); - } - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/endpoints/src/test/java/test/NestedEndpointsTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/endpoints/src/test/java/test/NestedEndpointsTestCase.java deleted file mode 100644 index f3b6c15bf1..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/endpoints/src/test/java/test/NestedEndpointsTestCase.java +++ /dev/null @@ -1,110 +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 test; - -import java.io.IOException; -import java.net.MalformedURLException; - -import org.apache.tuscany.sca.http.jetty.JettyServer; -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; -import org.junit.AfterClass; -import org.junit.BeforeClass; -import org.junit.Test; - -public class NestedEndpointsTestCase { - - private static Node node; - - @Test - public void testJSONP1() throws MalformedURLException, IOException { - // - Utils.invokeJSONPEndpoint("http://localhost:8085/NestedComponent1/JSONPComponent1/HelloWorldService/sayHello?name=petra&callback=foo"); - } - @Test - public void testJSONP2() throws MalformedURLException, IOException { - // - Utils.invokeJSONPEndpoint("http://localhost:8085/NestedComponent1/JSONPComponent2/HelloWorldService/jsonp2/sayHello?name=petra&callback=foo"); - } - @Test - public void testJSONP3() throws MalformedURLException, IOException { - // - Utils.invokeJSONPEndpoint("http://localhost:8085/NestedComponent1/JSONPComponent3/HelloWorldService/jsonp3/sayHello?name=petra&callback=foo"); - } - @Test - public void testJSONP4() throws MalformedURLException, IOException { - // - Utils.invokeJSONPEndpoint("http://localhost:8085/jsonp4/sayHello?name=petra&callback=foo"); - } - @Test - public void testJSONP5() throws MalformedURLException, IOException { - // - Utils.invokeJSONPEndpoint("http://localhost:8085/jsonp5b/sayHello?name=petra&callback=foo"); - } - @Test - public void testJSONP6() throws MalformedURLException, IOException { - // - Utils.invokeJSONPEndpoint("http://localhost:8085/NestedComponent1/JSONPComponent6/HelloWorldService/jsonp6a/jsonp6b/sayHello?name=petra&callback=foo"); - } - - @Test - public void testWS1() throws MalformedURLException, Exception { - // - Utils.invokeWSEndpoint("http://localhost:8085/NestedComponent1/WSComponent1/HelloWorldService"); - } - @Test - public void testWS2() throws MalformedURLException, Exception { - // - Utils.invokeWSEndpoint("http://localhost:8085/NestedComponent1/WSComponent2/HelloWorldService/ws2"); - } - @Test - public void testWS3() throws MalformedURLException, Exception { - // - Utils.invokeWSEndpoint("http://localhost:8085/NestedComponent1/WSComponent3/HelloWorldService/ws3"); - } - @Test - public void testWS4() throws MalformedURLException, Exception { - // - Utils.invokeWSEndpoint("http://localhost:8085/ws4"); - } - @Test - public void testWS5() throws MalformedURLException, Exception { - // - Utils.invokeWSEndpoint("http://localhost:8085/ws5b"); - } - @Test - public void testWS6() throws Exception { - // - Utils.invokeWSEndpoint("http://localhost:8085/NestedComponent1/WSComponent6/HelloWorldService/ws6a/ws6b"); - } - - @BeforeClass - public static void init() throws Exception { - JettyServer.portDefault = 8085; - node = NodeFactory.newInstance().createNode("nested.composite").start(); - } - - @AfterClass - public static void destroy() throws Exception { - if (node != null) { - node.stop(); - } - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/endpoints/src/test/java/test/Utils.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/endpoints/src/test/java/test/Utils.java deleted file mode 100644 index 5107d8f660..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/endpoints/src/test/java/test/Utils.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 test; - -import java.io.BufferedReader; -import java.io.IOException; -import java.io.InputStreamReader; -import java.net.MalformedURLException; -import java.net.URL; -import java.util.List; - -import javax.wsdl.Definition; -import javax.wsdl.Port; -import javax.wsdl.Service; -import javax.wsdl.extensions.soap.SOAPAddress; -import javax.wsdl.factory.WSDLFactory; -import javax.wsdl.xml.WSDLReader; - -import junit.framework.Assert; - -public class Utils { - - public static void invokeJSONPEndpoint(String s) throws MalformedURLException, IOException { - URL url = new URL(s); - BufferedReader br = new BufferedReader(new InputStreamReader(url.openStream())); - String response = br.readLine(); - Assert.assertEquals("foo(\"Hello petra\");", response); - } - - public static void invokeWSEndpoint(String endpoint) throws Exception { - WSDLReader wsdlReader = WSDLFactory.newInstance().newWSDLReader(); - wsdlReader.setFeature("javax.wsdl.verbose",false); - wsdlReader.setFeature("javax.wsdl.importDocuments",true); - - Definition definition = wsdlReader.readWSDL(endpoint + "?wsdl"); - Assert.assertNotNull(definition); - Service service = (Service)definition.getServices().values().iterator().next(); - Port port = (Port)service.getPorts().values().iterator().next(); - - Assert.assertEquals(new URL(endpoint).getPath(), new URL(getEndpoint(port)).getPath()); - } - - private static String getEndpoint(Port port) { - List wsdlPortExtensions = port.getExtensibilityElements(); - for (final Object extension : wsdlPortExtensions) { - if (extension instanceof SOAPAddress) { - return ((SOAPAddress) extension).getLocationURI(); - } - } - throw new RuntimeException("no SOAPAddress"); - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/endpoints/src/test/resources/helloworld.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/endpoints/src/test/resources/helloworld.composite deleted file mode 100644 index 1f56c3d73b..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/endpoints/src/test/resources/helloworld.composite +++ /dev/null @@ -1,116 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/endpoints/src/test/resources/nested.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/endpoints/src/test/resources/nested.composite deleted file mode 100644 index 138020eab0..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/endpoints/src/test/resources/nested.composite +++ /dev/null @@ -1,30 +0,0 @@ - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/exceptions/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/exceptions/pom.xml deleted file mode 100644 index 30ba5c0562..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/exceptions/pom.xml +++ /dev/null @@ -1,53 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-itest - 2.0-M5 - ../pom.xml - - itest-exceptions - Apache Tuscany SCA iTest Exceptions - - - - org.apache.tuscany.sca - tuscany-node-api - 2.0-M5 - - - - org.apache.tuscany.sca - tuscany-node-impl - 2.0-M5 - test - - - - org.apache.tuscany.sca - tuscany-implementation-java-runtime - 2.0-M5 - test - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/exceptions/src/main/java/org/apache/tuscany/sca/test/exceptions/Checked.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/exceptions/src/main/java/org/apache/tuscany/sca/test/exceptions/Checked.java deleted file mode 100644 index 1f57116bac..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/exceptions/src/main/java/org/apache/tuscany/sca/test/exceptions/Checked.java +++ /dev/null @@ -1,57 +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 org.apache.tuscany.sca.test.exceptions; - -public class Checked extends Exception { - private static final long serialVersionUID = -129752837478357452L; - - /** - * - */ - public Checked() { - - } - - /** - * @param message - */ - public Checked(String message) { - super(message); - - } - - /** - * @param cause - */ - public Checked(Throwable cause) { - super(cause); - - } - - /** - * @param message - * @param cause - */ - public Checked(String message, Throwable cause) { - super(message, cause); - - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/exceptions/src/main/java/org/apache/tuscany/sca/test/exceptions/ExceptionHandler.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/exceptions/src/main/java/org/apache/tuscany/sca/test/exceptions/ExceptionHandler.java deleted file mode 100644 index 112aefc747..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/exceptions/src/main/java/org/apache/tuscany/sca/test/exceptions/ExceptionHandler.java +++ /dev/null @@ -1,32 +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 org.apache.tuscany.sca.test.exceptions; - -public interface ExceptionHandler { - - void testing(); - - Checked getTheBad(); - - String getTheGood(); - - UnChecked getTheUgly(); - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/exceptions/src/main/java/org/apache/tuscany/sca/test/exceptions/ExceptionRemoteThrower.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/exceptions/src/main/java/org/apache/tuscany/sca/test/exceptions/ExceptionRemoteThrower.java deleted file mode 100644 index 53a6c70b57..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/exceptions/src/main/java/org/apache/tuscany/sca/test/exceptions/ExceptionRemoteThrower.java +++ /dev/null @@ -1,30 +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 org.apache.tuscany.sca.test.exceptions; - -import org.oasisopen.sca.annotation.Remotable; - -/** - * Remote exception thrower - * @version $Rev$ $Date$ - */ -@Remotable -public interface ExceptionRemoteThrower extends ExceptionThrower { -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/exceptions/src/main/java/org/apache/tuscany/sca/test/exceptions/ExceptionThrower.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/exceptions/src/main/java/org/apache/tuscany/sca/test/exceptions/ExceptionThrower.java deleted file mode 100644 index ace219991b..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/exceptions/src/main/java/org/apache/tuscany/sca/test/exceptions/ExceptionThrower.java +++ /dev/null @@ -1,37 +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 org.apache.tuscany.sca.test.exceptions; - -/** - * Local exception thrower - * @version $Rev$ $Date$ - */ -public interface ExceptionThrower { - Checked BAD = new Checked("theBad"); - UnChecked UGLY = new UnChecked("theUgly"); - String SO_THEY_SAY = "All is good that ends good."; - - String theGood() throws Checked; - - String theBad() throws Checked; - - String theUgly() throws Checked; - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/exceptions/src/main/java/org/apache/tuscany/sca/test/exceptions/UnChecked.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/exceptions/src/main/java/org/apache/tuscany/sca/test/exceptions/UnChecked.java deleted file mode 100644 index 453528444d..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/exceptions/src/main/java/org/apache/tuscany/sca/test/exceptions/UnChecked.java +++ /dev/null @@ -1,57 +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 org.apache.tuscany.sca.test.exceptions; - -public class UnChecked extends RuntimeException { - private static final long serialVersionUID = -1318118082838092244L; - - /** - * - */ - public UnChecked() { - - } - - /** - * @param message - */ - public UnChecked(String message) { - super(message); - - } - - /** - * @param cause - */ - public UnChecked(Throwable cause) { - super(cause); - - } - - /** - * @param message - * @param cause - */ - public UnChecked(String message, Throwable cause) { - super(message, cause); - - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/exceptions/src/main/java/org/apache/tuscany/sca/test/exceptions/impl/ExceptionHandlerImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/exceptions/src/main/java/org/apache/tuscany/sca/test/exceptions/impl/ExceptionHandlerImpl.java deleted file mode 100644 index 26b9f0a383..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/exceptions/src/main/java/org/apache/tuscany/sca/test/exceptions/impl/ExceptionHandlerImpl.java +++ /dev/null @@ -1,115 +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 org.apache.tuscany.sca.test.exceptions.impl; - -import org.apache.tuscany.sca.test.exceptions.Checked; -import org.apache.tuscany.sca.test.exceptions.ExceptionHandler; -import org.apache.tuscany.sca.test.exceptions.ExceptionThrower; -import org.apache.tuscany.sca.test.exceptions.UnChecked; -import org.oasisopen.sca.annotation.Reference; -import org.oasisopen.sca.annotation.Scope; - -@Scope("COMPOSITE") -public class ExceptionHandlerImpl implements ExceptionHandler { - static final String INIT = "INIT"; - - private ExceptionThrower exceptionThrower; - - private String theGood; - - private Checked theBad; - - private UnChecked theUgly; - - public void testing() { - - assert exceptionThrower != null : "'exceptionThrower' never wired"; - String result = INIT; - try { - theGood = result = exceptionThrower.theGood(); - assert result == ExceptionThrower.SO_THEY_SAY; - } catch (Throwable e) { - assert result == INIT; - assert false; - e.printStackTrace(); - } - - result = INIT; - try { - result = exceptionThrower.theBad(); - // incredible - assert false : "Expected 'Check' Exception"; - - } catch (Checked e) { - // This is good... - assert result == INIT; - theBad = e; - } catch (Throwable t) { - // This is not so good. - t.printStackTrace(); - assert result == INIT; - assert false : "Got wrong exception '" + t.getClass().getName(); - } - - result = INIT; - try { - result = exceptionThrower.theUgly(); - // incredible - assert false : "Expected 'UnCheck' Exception"; - - } catch (Checked e) { - // This is not so good... - assert false : "Got wrong exception '" + e.getClass().getName(); - assert result == INIT; - } catch (UnChecked e) { - theUgly = e; - - } catch (Throwable t) { - // This is not good. - assert false; - assert result == INIT; - - System.out.println(ExceptionThrower.SO_THEY_SAY + " " + INIT); - } - - } - - @Reference - public void setExceptionThrower(ExceptionThrower exceptionThrower) { - this.exceptionThrower = exceptionThrower; - } - - public String getTheGood() { - return theGood; - } - - public Checked getTheBad() { - return theBad; - } - - public UnChecked getTheUgly() { - return theUgly; - } - - public ExceptionThrower getExceptionThrower() { - return exceptionThrower; - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/exceptions/src/main/java/org/apache/tuscany/sca/test/exceptions/impl/ExceptionRemoteThrowerImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/exceptions/src/main/java/org/apache/tuscany/sca/test/exceptions/impl/ExceptionRemoteThrowerImpl.java deleted file mode 100644 index cd62338841..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/exceptions/src/main/java/org/apache/tuscany/sca/test/exceptions/impl/ExceptionRemoteThrowerImpl.java +++ /dev/null @@ -1,44 +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 org.apache.tuscany.sca.test.exceptions.impl; - -import org.apache.tuscany.sca.test.exceptions.Checked; -import org.apache.tuscany.sca.test.exceptions.ExceptionRemoteThrower; -import org.oasisopen.sca.annotation.Service; - -/** - * - * @version $Rev$ $Date$ - */ -@Service(ExceptionRemoteThrower.class) -public class ExceptionRemoteThrowerImpl implements ExceptionRemoteThrower { - public String theBad() throws Checked { - throw BAD; - } - - public String theGood() throws Checked { - return SO_THEY_SAY; - } - - public String theUgly() throws Checked { - throw UGLY; - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/exceptions/src/main/java/org/apache/tuscany/sca/test/exceptions/impl/ExceptionThrowerImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/exceptions/src/main/java/org/apache/tuscany/sca/test/exceptions/impl/ExceptionThrowerImpl.java deleted file mode 100644 index 56b9fc6f5b..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/exceptions/src/main/java/org/apache/tuscany/sca/test/exceptions/impl/ExceptionThrowerImpl.java +++ /dev/null @@ -1,45 +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 org.apache.tuscany.sca.test.exceptions.impl; - -import org.apache.tuscany.sca.test.exceptions.Checked; -import org.apache.tuscany.sca.test.exceptions.ExceptionThrower; -import org.oasisopen.sca.annotation.Service; - -/** - * - * @version $Rev$ $Date$ - */ -@Service(ExceptionThrower.class) -public class ExceptionThrowerImpl implements ExceptionThrower { - - public String theBad() throws Checked { - throw BAD; - } - - public String theGood() throws Checked { - return SO_THEY_SAY; - } - - public String theUgly() throws Checked { - throw UGLY; - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/exceptions/src/main/java/org/apache/tuscany/sca/test/exceptions/impl/RemoteExceptionHandlerImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/exceptions/src/main/java/org/apache/tuscany/sca/test/exceptions/impl/RemoteExceptionHandlerImpl.java deleted file mode 100644 index c5b54ff902..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/exceptions/src/main/java/org/apache/tuscany/sca/test/exceptions/impl/RemoteExceptionHandlerImpl.java +++ /dev/null @@ -1,116 +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 org.apache.tuscany.sca.test.exceptions.impl; - -import org.apache.tuscany.sca.test.exceptions.Checked; -import org.apache.tuscany.sca.test.exceptions.ExceptionHandler; -import org.apache.tuscany.sca.test.exceptions.ExceptionRemoteThrower; -import org.apache.tuscany.sca.test.exceptions.ExceptionThrower; -import org.apache.tuscany.sca.test.exceptions.UnChecked; -import org.oasisopen.sca.annotation.Reference; -import org.oasisopen.sca.annotation.Scope; - -@Scope("COMPOSITE") -public class RemoteExceptionHandlerImpl implements ExceptionHandler { - static final String INIT = "INIT"; - - private ExceptionRemoteThrower exceptionThrower; - - private String theGood; - - private Checked theBad; - - private UnChecked theUgly; - - public void testing() { - - assert exceptionThrower != null : "'exceptionThrower' never wired"; - String result = INIT; - try { - theGood = result = exceptionThrower.theGood(); - assert result == ExceptionThrower.SO_THEY_SAY; - } catch (Throwable e) { - assert result == INIT; - assert false; - e.printStackTrace(); - } - - result = INIT; - try { - result = exceptionThrower.theBad(); - // incredible - assert false : "Expected 'Check' Exception"; - - } catch (Checked e) { - // This is good... - assert result == INIT; - theBad = e; - } catch (Throwable t) { - // This is not so good. - t.printStackTrace(); - assert result == INIT; - assert false : "Got wrong exception '" + t.getClass().getName(); - } - - result = INIT; - try { - result = exceptionThrower.theUgly(); - // incredible - assert false : "Expected 'UnCheck' Exception"; - - } catch (Checked e) { - // This is not so good... - assert false : "Got wrong exception '" + e.getClass().getName(); - assert result == INIT; - } catch (UnChecked e) { - theUgly = e; - - } catch (Throwable t) { - // This is not good. - assert false; - assert result == INIT; - - System.out.println(ExceptionThrower.SO_THEY_SAY + " " + INIT); - } - - } - - @Reference - public void setExceptionThrower(ExceptionRemoteThrower exceptionThrower) { - this.exceptionThrower = exceptionThrower; - } - - public String getTheGood() { - return theGood; - } - - public Checked getTheBad() { - return theBad; - } - - public UnChecked getTheUgly() { - return theUgly; - } - - public ExceptionRemoteThrower getExceptionThrower() { - return exceptionThrower; - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/exceptions/src/main/resources/ExceptionTest.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/exceptions/src/main/resources/ExceptionTest.composite deleted file mode 100644 index b8a8b01e8b..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/exceptions/src/main/resources/ExceptionTest.composite +++ /dev/null @@ -1,41 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/exceptions/src/test/java/org/apache/tuscany/sca/test/exceptions/ExceptionsTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/exceptions/src/test/java/org/apache/tuscany/sca/test/exceptions/ExceptionsTestCase.java deleted file mode 100644 index 7794348476..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/exceptions/src/test/java/org/apache/tuscany/sca/test/exceptions/ExceptionsTestCase.java +++ /dev/null @@ -1,85 +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 org.apache.tuscany.sca.test.exceptions; - -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertNotNull; -import static org.junit.Assert.assertNotSame; -import static org.junit.Assert.assertSame; - -import org.apache.tuscany.sca.node.Contribution; -import org.apache.tuscany.sca.node.ContributionLocationHelper; -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; -import org.junit.AfterClass; -import org.junit.BeforeClass; -import org.junit.Test; - -public class ExceptionsTestCase { - - private static Node node; - - /** - * Test exception handling over a local interface - */ - @Test - public void testLocal() { - ExceptionHandler exceptionHandler = node.getService(ExceptionHandler.class, "main"); - exceptionHandler.testing(); - assertEquals(ExceptionThrower.SO_THEY_SAY, exceptionHandler.getTheGood()); - assertNotNull(exceptionHandler.getTheBad()); - assertEquals(Checked.class, exceptionHandler.getTheBad().getClass()); - assertSame(ExceptionThrower.BAD, exceptionHandler.getTheBad()); - assertNotNull(exceptionHandler.getTheUgly()); - assertEquals(UnChecked.class, exceptionHandler.getTheUgly().getClass()); - assertSame(ExceptionThrower.UGLY, exceptionHandler.getTheUgly()); - } - - /** - * Test exception handling over a remotable interface - */ - @Test - public void testRemote() { - ExceptionHandler exceptionHandler = node.getService(ExceptionHandler.class, "mainRemote"); - exceptionHandler.testing(); - assertEquals(ExceptionThrower.SO_THEY_SAY, exceptionHandler.getTheGood()); - assertNotNull(exceptionHandler.getTheBad()); - assertEquals(Checked.class, exceptionHandler.getTheBad().getClass()); - assertNotSame(ExceptionThrower.BAD, exceptionHandler.getTheBad()); - assertNotNull(exceptionHandler.getTheUgly()); - assertEquals(UnChecked.class, exceptionHandler.getTheUgly().getClass()); - - // [rfeng] We're not in a position to copy non business exceptions - // assertNotSame(ExceptionThrower.UGLY, exceptionHandler.getTheUgly()); - - } - - @BeforeClass - public static void setUp() throws Exception { - String location = ContributionLocationHelper.getContributionLocation("ExceptionTest.composite"); - node = NodeFactory.newInstance().createNode("ExceptionTest.composite", new Contribution("c1", location)); - node.start(); - } - - @AfterClass - public static void tearDown() throws Exception { - node.stop(); - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/pom.xml deleted file mode 100644 index 779a1142f6..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/pom.xml +++ /dev/null @@ -1,92 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-itest - 2.0-M5 - ../pom.xml - - itest-implementation-spring - Apache Tuscany SCA iTest Spring Implementation - - - - org.apache.tuscany.sca - tuscany-node-api - 2.0-M5 - - - - org.apache.tuscany.sca - tuscany-node-impl - 2.0-M5 - - - - org.apache.tuscany.sca - tuscany-implementation-spring - 2.0-M5 - - - org.apache.tuscany.sca - tuscany-implementation-spring-sca - 2.0-M5 - - - - org.apache.tuscany.sca - tuscany-binding-ws-runtime-axis2 - 2.0-M5 - - - - org.apache.tuscany.sca - tuscany-host-jetty - 2.0-M5 - - - - org.apache.tuscany.sca - tuscany-policy-security - 2.0-M5 - - - - - org.springframework - spring-core - 2.5.5 - - - - org.springframework - spring-beans - 2.5.5 - - - - org.springframework - spring-context - 2.5.5 - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/java/bigbank/stockquote/StockQuoteImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/java/bigbank/stockquote/StockQuoteImpl.java deleted file mode 100644 index bd7770ca7d..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/java/bigbank/stockquote/StockQuoteImpl.java +++ /dev/null @@ -1,38 +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 bigbank.stockquote; - -import org.oasisopen.sca.annotation.Service; - -/** - * This class implements the StockQuote service. - */ -@Service(StockQuoteService.class) -public class StockQuoteImpl implements StockQuoteService { - - public double getQuote(String symbol) { - double price = 104.0 + Math.random(); - price = ((int)(price * 100)) / 100.0; - - System.out.println("Getting stock quote for: " + symbol + ", value: "+ price); - - return price; - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/java/bigbank/stockquote/StockQuoteService.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/java/bigbank/stockquote/StockQuoteService.java deleted file mode 100644 index 747433a9e7..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/java/bigbank/stockquote/StockQuoteService.java +++ /dev/null @@ -1,30 +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 bigbank.stockquote; - -import org.oasisopen.sca.annotation.Remotable; - -/** - * This is the business interface of the StockQuote service. - */ -@Remotable -public interface StockQuoteService { - - public double getQuote(String symbol); -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/java/calculator/AddService.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/java/calculator/AddService.java deleted file mode 100644 index 188451ebac..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/java/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/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/java/calculator/AddServiceImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/java/calculator/AddServiceImpl.java deleted file mode 100644 index eae607a7ca..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/java/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; - } - -} \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/java/calculator/CalculatorService.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/java/calculator/CalculatorService.java deleted file mode 100644 index ce1cdaae5a..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/java/calculator/CalculatorService.java +++ /dev/null @@ -1,37 +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.oasisopen.sca.annotation.Remotable; - -/** - * The Calculator service interface. - */ -@Remotable -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/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/java/calculator/CalculatorServiceImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/java/calculator/CalculatorServiceImpl.java deleted file mode 100644 index b033516c1b..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/java/calculator/CalculatorServiceImpl.java +++ /dev/null @@ -1,79 +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; - -/** - * An implementation of the Calculator service. - */ -public class CalculatorServiceImpl implements CalculatorService { - - private AddService addService; - private SubtractService subtractService; - private MultiplyService multiplyService; - private DivideService divideService; - - public void setAddService(AddService addService) { - this.addService = addService; - } - - public AddService getAddService() { - return addService; - } - - public void setSubtractService(SubtractService subtractService) { - this.subtractService = subtractService; - } - - public SubtractService getSubtractService() { - return subtractService; - } - - public void setDivideService(DivideService divideService) { - this.divideService = divideService; - } - - public DivideService getDivideService() { - return divideService; - } - - public void setMultiplyService(MultiplyService multiplyService) { - this.multiplyService = multiplyService; - } - - public MultiplyService getMultiplyService() { - return 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/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/java/calculator/DivideService.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/java/calculator/DivideService.java deleted file mode 100644 index 30d248208b..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/java/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/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/java/calculator/DivideServiceImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/java/calculator/DivideServiceImpl.java deleted file mode 100644 index 1323edf55a..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/java/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/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/java/calculator/MultiplyService.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/java/calculator/MultiplyService.java deleted file mode 100644 index 5290605938..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/java/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/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/java/calculator/MultiplyServiceImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/java/calculator/MultiplyServiceImpl.java deleted file mode 100644 index 91b803bc9e..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/java/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/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/java/calculator/SubtractService.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/java/calculator/SubtractService.java deleted file mode 100644 index bf0d1882b6..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/java/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/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/java/calculator/SubtractServiceImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/java/calculator/SubtractServiceImpl.java deleted file mode 100644 index 58cc4a3547..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/java/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/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/java/calculator/security/CalculatorCallbackHandler.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/java/calculator/security/CalculatorCallbackHandler.java deleted file mode 100644 index 4f063993a3..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/java/calculator/security/CalculatorCallbackHandler.java +++ /dev/null @@ -1,50 +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.security; - -import java.io.IOException; - -import javax.security.auth.callback.Callback; -import javax.security.auth.callback.CallbackHandler; -import javax.security.auth.callback.NameCallback; -import javax.security.auth.callback.PasswordCallback; -import javax.security.auth.callback.UnsupportedCallbackException; - -/** - * @version $Rev$ $Date$ - */ -public class CalculatorCallbackHandler implements CallbackHandler { - - public void handle(Callback[] callbacks) throws IOException, UnsupportedCallbackException { - for (int i = 0; i < callbacks.length; i++) { - if (callbacks[i] instanceof NameCallback) { - NameCallback nc = (NameCallback)callbacks[i]; - nc.setName("CalculatorUser"); - } else if (callbacks[i] instanceof PasswordCallback) { - PasswordCallback pc = (PasswordCallback)callbacks[i]; - pc.setPassword("CalculatorUserPasswd".toCharArray()); - } else { - throw new UnsupportedCallbackException - (callbacks[i], "Unsupported Callback!"); - } - } - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/java/calculator/security/JaasLoginModule.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/java/calculator/security/JaasLoginModule.java deleted file mode 100644 index b3ef6e7312..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/java/calculator/security/JaasLoginModule.java +++ /dev/null @@ -1,178 +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.security; - -import java.security.Principal; -import java.util.Map; - -import javax.security.auth.Subject; -import javax.security.auth.callback.Callback; -import javax.security.auth.callback.CallbackHandler; -import javax.security.auth.callback.NameCallback; -import javax.security.auth.callback.PasswordCallback; -import javax.security.auth.login.LoginException; -import javax.security.auth.spi.LoginModule; - -/** - * @version $Rev$ $Date$ - */ -public class JaasLoginModule implements LoginModule { - - private CallbackHandler callbackHandler; - private Subject subject; - private Principal userPrincipal; - private String userId; - private String password; - private boolean succeeded; - private boolean commitSucceeded; - - public void initialize(Subject subject, - CallbackHandler callbackHandler, - Map sharedState, - Map options) { - this.callbackHandler = callbackHandler; - this.subject = subject; - } - - public boolean login() throws LoginException { - Callback[] callbacks = new Callback[2]; - callbacks[0] = new NameCallback("UserId:"); - callbacks[1] = new PasswordCallback("Password:", false); - - try { - callbackHandler.handle(callbacks); - userId = ((NameCallback)callbacks[0]).getName(); - password = new String(((PasswordCallback)callbacks[1]).getPassword()); - - if (userId.equals("CalculatorUser") && password.equals("CalculatorUserPasswd")) { - System.out.println("Successfully AUTHENTICATED!!"); - succeeded = true; - return true; - } else { - System.out.println("Incorrect userId / password! AUTHENTICATION FAILED!!"); - return false; - } - } catch (Exception e) { - e.printStackTrace(); - return false; - } - } - - /** - *

This method is called if the LoginContext's - * overall authentication succeeded - * (the relevant REQUIRED, REQUISITE, SUFFICIENT and OPTIONAL LoginModules - * succeeded). - * - *

If this LoginModule's own authentication attempt - * succeeded (checked by retrieving the private state saved by the - * login method), then this method associates a - * UserPrincipal - * with the Subject located in the - * LoginModule. If this LoginModule's own - * authentication attempted failed, then this method removes - * any state that was originally saved. - * - *

- * - * @exception LoginException if the commit fails. - * - * @return true if this LoginModule's own login and commit - * attempts succeeded, or false otherwise. - */ - public boolean commit() throws LoginException { - if (succeeded == false) { - return false; - } else { - // add a Principal (authenticated identity) to the Subject - - // assume the user we authenticated is the UserPrincipal - userPrincipal = new UserPrincipal(userId); - if (!subject.getPrincipals().contains(userPrincipal)) - subject.getPrincipals().add(userPrincipal); - - // in any case, clean out state - userId = null; - password = null; - commitSucceeded = true; - return true; - } - } - - /** - *

This method is called if the LoginContext's - * overall authentication failed. - * (the relevant REQUIRED, REQUISITE, SUFFICIENT and OPTIONAL LoginModules - * did not succeed). - * - *

If this LoginModule's own authentication attempt - * succeeded (checked by retrieving the private state saved by the - * login and commit methods), - * then this method cleans up any state that was originally saved. - * - *

- * - * @exception LoginException if the abort fails. - * - * @return false if this LoginModule's own login and/or commit attempts - * failed, and true otherwise. - */ - public boolean abort() throws LoginException { - if (succeeded == false) { - return false; - } else if (succeeded == true && commitSucceeded == false) { - // login succeeded but overall authentication failed - succeeded = false; - userId = null; - password = null; - userPrincipal = null; - } else { - // overall authentication succeeded and commit succeeded, - // but someone else's commit failed - logout(); - } - return true; - } - - /** - * Logout the user. - * - *

This method removes the SimplePrincipal - * that was added by the commit method. - * - *

- * - * @exception LoginException if the logout fails. - * - * @return true in all cases since this LoginModule - * should not be ignored. - */ - public boolean logout() throws LoginException { - subject.getPrincipals().remove(userPrincipal); - succeeded = false; - succeeded = commitSucceeded; - userId = null; - if (password != null) - password = null; - userPrincipal = null; - return true; - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/java/calculator/security/UserPrincipal.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/java/calculator/security/UserPrincipal.java deleted file mode 100644 index 595626e672..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/java/calculator/security/UserPrincipal.java +++ /dev/null @@ -1,66 +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.security; - -import java.security.Principal; - -/** - * @version $Rev$ $Date$ - */ -public class UserPrincipal implements Principal { - - private final String name; - - public UserPrincipal(String name) { - if (name == null) - throw new IllegalArgumentException("name cannot be null"); - this.name = name; - } - - public String getName() { - return name; - } - - public String toString() { - return name; - } - - @Override - public int hashCode() { - final int prime = 31; - int result = 1; - result = prime * result + ((name == null) ? 0 : name.hashCode()); - return result; - } - - @Override - public boolean equals(Object obj) { - if (this == obj) - return true; - if (obj == null) - return false; - if (getClass() != obj.getClass()) - return false; - final UserPrincipal other = (UserPrincipal)obj; - if (name == null) { - if (other.name != null) - return false; - } else if (!name.equals(other.name)) - return false; - return true; - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/java/context/access/SCAApplicationContextProvider.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/java/context/access/SCAApplicationContextProvider.java deleted file mode 100644 index 968d420fc8..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/java/context/access/SCAApplicationContextProvider.java +++ /dev/null @@ -1,37 +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 context.access; - -import org.springframework.beans.BeansException; -import org.springframework.context.ApplicationContext; -import org.springframework.context.ApplicationContextAware; - -public class SCAApplicationContextProvider implements ApplicationContextAware { - - private static ApplicationContext ctx; - - public void setApplicationContext(ApplicationContext appContext) throws BeansException { - // Wiring the ApplicationContext into a static method - ctx = appContext; - } - - public static ApplicationContext getApplicationContext() { - return ctx; - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/java/helloworld/HelloWorld.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/java/helloworld/HelloWorld.java deleted file mode 100644 index 8bb3006d12..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/java/helloworld/HelloWorld.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 helloworld; - -import org.oasisopen.sca.annotation.Remotable; - -/** - * Interface for the "hello world" service - predictably simple with a single operation - * "sayHello" - * - * @version $Rev$ $Date$ - */ -@Remotable -public interface HelloWorld { - - String sayHello(String s); - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/java/helloworld/HelloWorldImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/java/helloworld/HelloWorldImpl.java deleted file mode 100644 index f68134702b..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/java/helloworld/HelloWorldImpl.java +++ /dev/null @@ -1,38 +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 helloworld; - -/** - * A simple proxy Java class which implements the HelloWorld interface but which uses - * a reference "delegate" to actually provide the HelloWorld service - * - * @version $Rev$ $Date$ - */ -public class HelloWorldImpl implements HelloWorld { - - static String hello = "Hello "; - - public String sayHello(String s) { - // Simply call the reference to satisfy the service request... - System.out.println("HelloWorldImpl - sayHello called"); - return (hello + s); - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/java/helloworld/HelloWorldProxy.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/java/helloworld/HelloWorldProxy.java deleted file mode 100644 index 78b3649b5b..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/java/helloworld/HelloWorldProxy.java +++ /dev/null @@ -1,42 +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 helloworld; - -import org.oasisopen.sca.annotation.Reference; - -/** - * A simple proxy Java class which implements the HelloWorld interface but which uses - * a reference "delegate" to actually provide the HelloWorld service - * - * @version $Rev$ $Date$ - */ -public class HelloWorldProxy implements HelloWorld { - - // Here is the reference "delegate" - it implements the HelloWorld interface... - @Reference - public HelloWorld delegate; - - public String sayHello(String s) { - // Simply call the reference to satisfy the service request... - System.out.println("HelloWorldProxy - calling sayHello"); - return delegate.sayHello(s); - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/java/mock/TestBean.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/java/mock/TestBean.java deleted file mode 100644 index 1a0abd7f8f..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/java/mock/TestBean.java +++ /dev/null @@ -1,31 +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 mock; - -/** - * @version $Rev$ $Date$ - */ -public interface TestBean { - String echo(String msg); - - TestBean getBean(); - - void setBean(TestBean bean); - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/java/mock/TestBeanImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/java/mock/TestBeanImpl.java deleted file mode 100644 index e3d9a36bb8..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/java/mock/TestBeanImpl.java +++ /dev/null @@ -1,42 +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 mock; - -/** - * @version $Rev$ $Date$ - */ -public class TestBeanImpl implements TestBean { - - private TestBean bean; - - public TestBeanImpl() { - } - - public String echo(String msg) { - return msg; - } - - public TestBean getBean() { - return bean; - } - - public void setBean(TestBean bean) { - this.bean = bean; - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/java/mock/TestHelloWorldBean.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/java/mock/TestHelloWorldBean.java deleted file mode 100644 index 47342fded8..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/java/mock/TestHelloWorldBean.java +++ /dev/null @@ -1,39 +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 mock; - -/** - * A simple test Spring bean which provides the HelloWorld service - * - * @version $Rev$ $Date$ - */ - -import helloworld.HelloWorld; - -public class TestHelloWorldBean implements HelloWorld { - - static String hello = "Hello "; - - // Classic "Hello xxx" response to any input message - public String sayHello(String message) { - System.out.println("TestHelloWorldBean - sayHello called"); - return (hello + message); - } - -} // end class TestHelloWorldBean diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/java/mock/TestReference.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/java/mock/TestReference.java deleted file mode 100644 index 6f5b280f31..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/java/mock/TestReference.java +++ /dev/null @@ -1,27 +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 mock; - -/** - * @version $Rev$ $Date$ - */ -public interface TestReference { - String echo(String msg); -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/java/mock/TestReferenceBean.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/java/mock/TestReferenceBean.java deleted file mode 100644 index dea7933e1a..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/java/mock/TestReferenceBean.java +++ /dev/null @@ -1,57 +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 mock; - -/** - * A test Spring bean which provides the HelloWorld service by calling a reference - * to provide the content of the response - * - * @version $Rev$ $Date$ - */ - -import helloworld.HelloWorld; - -public class TestReferenceBean implements HelloWorld { - - // The reference - private HelloWorld bean; - - // Classic "Hello xxx" response to any input message - public String sayHello(String message) { - System.out.println("TestReferenceBean - sayHello called"); - return (bean.sayHello(message)); - } - - /** - * Setter for the bean reference - * @param theBean - */ - public void setBean(HelloWorld theBean) { - this.bean = theBean; - } - - /** - * Getter for the reference - * @return - */ - public HelloWorld getBean() { - return this.bean; - } - -} // end class TestReferenceBean diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/java/mock/TestSCAPropertyBean.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/java/mock/TestSCAPropertyBean.java deleted file mode 100644 index b80b05dc08..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/java/mock/TestSCAPropertyBean.java +++ /dev/null @@ -1,55 +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 mock; - -/** - * A test Spring bean which provides the HelloWorld service. - * This bean has a single String property called "hello" which must be set through - * external configuration to give the correct response message, otherwise an (incorrect) - * default message is generated - * - * @version $Rev$ $Date$ - */ - -import helloworld.HelloWorld; - -public class TestSCAPropertyBean implements HelloWorld { - - private String hello = "Go away"; - - /** - * Provides the operation of the "HelloWorld" interface - a simple string response - * to a string input message, where the response is a greeting followed by the original - * input message. - */ - public String sayHello(String message) { - System.out.println("TestHelloWorldBean - sayHello called"); - return (hello + " " + message); - } - - /** - * Public setter for the (unannotated) field "hello" which constitutes an SCA - * property - * @param message - the message to use for the response to "sayHello" - */ - public void setHello(String message) { - hello = message; - } - -} // end class TestSCAPropertyBean diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/java/spring/annotations/CalculatorServiceImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/java/spring/annotations/CalculatorServiceImpl.java deleted file mode 100644 index 544b39ad58..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/java/spring/annotations/CalculatorServiceImpl.java +++ /dev/null @@ -1,131 +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 spring.annotations; - -import org.oasisopen.sca.annotation.ComponentName; -import org.oasisopen.sca.annotation.Destroy; -import org.oasisopen.sca.annotation.Init; -import org.oasisopen.sca.annotation.Property; -import org.oasisopen.sca.annotation.Reference; -import org.oasisopen.sca.annotation.Service; - -import calculator.AddService; -import calculator.CalculatorService; -import calculator.DivideService; -import calculator.MultiplyService; -import calculator.SubtractService; - -/** - * An implementation of the Calculator service. - */ -@Service(CalculatorService.class) -public class CalculatorServiceImpl implements AddService, SubtractService, MultiplyService, DivideService { - - public AddService addService; // setter injection - - @Reference - public SubtractService subtractService; // field injection - - @Reference(name="multiplyService", required=false) - public MultiplyService multiply; // field injection (different reference and field name) - - public DivideService divide; // setter injection (different reference and field name) - - public String message; // setter injection - - @Property(name="message", required=false) - public String message2; // field injection - - public String componentName; - - @Init - public void initMethod () { - System.out.println("Init method is sucessfully called....."); - // Property value should be null here. - System.out.println("Property Value message is...." + message); - } - - @Destroy - public void destroyMethod () { - System.out.println("Component Name is...." + componentName); - System.out.println("Property Value message is...." + message); - System.out.println("Property Value message2 is...." + message2); - System.out.println("Destroy method is sucessfully called....."); - } - - @Reference - public void setAddService(AddService addService) { - this.addService = addService; - } - - public AddService getAddService() { - return addService; - } - - /*public void setSubtractService(SubtractService subtractService) { - this.subtractService = subtractService; - } - - public SubtractService getSubtractService() { - return subtractService; - }*/ - - @Reference(name="divideService", required=false) - public void setDivideService(DivideService divide) { - this.divide = divide; - } - - public DivideService getDivideService() { - return divide; - } - - /*public void setMultiplyService(MultiplyService multiplyService) { - this.multiplyService = multiplyService; - } - - public MultiplyService getMultiplyService() { - return multiplyService; - }*/ - - @ComponentName - public void setComponentName(String componentName) { - this.componentName = componentName; - } - - @Property - public void setMessage(String message) { - this.message = message; - } - - 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 multiply.multiply(n1, n2); - } - - public double divide(double n1, double n2) { - return divide.divide(n1, n2); - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/resources/context/access/CalculatorService-context.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/resources/context/access/CalculatorService-context.xml deleted file mode 100644 index 81d59432b8..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/resources/context/access/CalculatorService-context.xml +++ /dev/null @@ -1,45 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/resources/context/access/ContextAccess.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/resources/context/access/ContextAccess.composite deleted file mode 100644 index f5514bad0a..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/resources/context/access/ContextAccess.composite +++ /dev/null @@ -1,49 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/resources/context/imports/ContextImports.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/resources/context/imports/ContextImports.composite deleted file mode 100644 index 27df510da8..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/resources/context/imports/ContextImports.composite +++ /dev/null @@ -1,49 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/resources/context/imports/META-INF/spring/CalculatorService-context.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/resources/context/imports/META-INF/spring/CalculatorService-context.xml deleted file mode 100644 index c50f0ef4d9..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/resources/context/imports/META-INF/spring/CalculatorService-context.xml +++ /dev/null @@ -1,39 +0,0 @@ - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/resources/context/imports/META-INF/spring/SpringImport-context.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/resources/context/imports/META-INF/spring/SpringImport-context.xml deleted file mode 100644 index a0bb10e8dd..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/resources/context/imports/META-INF/spring/SpringImport-context.xml +++ /dev/null @@ -1,29 +0,0 @@ - - - - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/resources/context/multiple/MultipleContext.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/resources/context/multiple/MultipleContext.composite deleted file mode 100644 index 5973484f6e..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/resources/context/multiple/MultipleContext.composite +++ /dev/null @@ -1,30 +0,0 @@ - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/resources/context/multiple/springapp/META-INF/MANIFEST.MF b/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/resources/context/multiple/springapp/META-INF/MANIFEST.MF deleted file mode 100644 index 9267f28e83..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/resources/context/multiple/springapp/META-INF/MANIFEST.MF +++ /dev/null @@ -1,3 +0,0 @@ -Manifest-Version: 1.0 -Spring-Context: META-INF/spring/beanRefContext.xml; META-INF/spring/StockQuoteService-context.xml - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/resources/context/multiple/springapp/META-INF/spring/SpringHelloWorld-context.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/resources/context/multiple/springapp/META-INF/spring/SpringHelloWorld-context.xml deleted file mode 100644 index 62e4e077b6..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/resources/context/multiple/springapp/META-INF/spring/SpringHelloWorld-context.xml +++ /dev/null @@ -1,31 +0,0 @@ - - - - - - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/resources/context/multiple/springapp/META-INF/spring/StockQuoteService-context.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/resources/context/multiple/springapp/META-INF/spring/StockQuoteService-context.xml deleted file mode 100644 index 5b1885d6b3..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/resources/context/multiple/springapp/META-INF/spring/StockQuoteService-context.xml +++ /dev/null @@ -1,36 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/resources/context/multiple/springapp/META-INF/spring/beanRefContext.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/resources/context/multiple/springapp/META-INF/spring/beanRefContext.xml deleted file mode 100644 index dcc88f6770..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/resources/context/multiple/springapp/META-INF/spring/beanRefContext.xml +++ /dev/null @@ -1,34 +0,0 @@ - - - - - - - - context/multiple/springapp/META-INF/spring/SpringHelloWorld-context.xml - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/resources/implementation/policies/CalculatorJass.config b/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/resources/implementation/policies/CalculatorJass.config deleted file mode 100644 index 0e7cb86633..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/resources/implementation/policies/CalculatorJass.config +++ /dev/null @@ -1,3 +0,0 @@ -Calculator { - calculator.security.JaasLoginModule required debug=true; -}; diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/resources/implementation/policies/CalculatorLogMessages.properties b/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/resources/implementation/policies/CalculatorLogMessages.properties deleted file mode 100644 index 0238f0b013..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/resources/implementation/policies/CalculatorLogMessages.properties +++ /dev/null @@ -1,18 +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. -CALLING_OPERATION=Inovoking operation {0} with arguments {1} -OPERATION_RETURNED=Returning from operation {0} with return value {1} \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/resources/implementation/policies/ImplementationPolicies.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/resources/implementation/policies/ImplementationPolicies.composite deleted file mode 100644 index 5ffeda11df..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/resources/implementation/policies/ImplementationPolicies.composite +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/resources/implementation/policies/META-INF/definitions.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/resources/implementation/policies/META-INF/definitions.xml deleted file mode 100644 index 5c44e023dd..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/resources/implementation/policies/META-INF/definitions.xml +++ /dev/null @@ -1,51 +0,0 @@ - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/resources/implementation/policies/META-INF/spring/CalculatorService-context.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/resources/implementation/policies/META-INF/spring/CalculatorService-context.xml deleted file mode 100644 index c50f0ef4d9..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/resources/implementation/policies/META-INF/spring/CalculatorService-context.xml +++ /dev/null @@ -1,39 +0,0 @@ - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/resources/location/folder/SpringFolderLocation.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/resources/location/folder/SpringFolderLocation.composite deleted file mode 100644 index e889d84544..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/resources/location/folder/SpringFolderLocation.composite +++ /dev/null @@ -1,40 +0,0 @@ - - - - - - - - - - - - - Hello - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/resources/location/folder/springapp/META-INF/MANIFEST.MF b/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/resources/location/folder/springapp/META-INF/MANIFEST.MF deleted file mode 100644 index 950dbeba4c..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/resources/location/folder/springapp/META-INF/MANIFEST.MF +++ /dev/null @@ -1,3 +0,0 @@ -Manifest-Version: 1.0 -Spring-Context: META-INF/spring/SpringSCAProperty-context.xml - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/resources/location/folder/springapp/META-INF/spring/SpringSCAProperty-context.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/resources/location/folder/springapp/META-INF/spring/SpringSCAProperty-context.xml deleted file mode 100644 index 8613e6c82a..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/resources/location/folder/springapp/META-INF/spring/SpringSCAProperty-context.xml +++ /dev/null @@ -1,34 +0,0 @@ - - - - - - - - - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/resources/location/jar/SpringJarLocation.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/resources/location/jar/SpringJarLocation.composite deleted file mode 100644 index b7281272da..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/resources/location/jar/SpringJarLocation.composite +++ /dev/null @@ -1,40 +0,0 @@ - - - - - - - - - - - - - Hello - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/resources/location/jar/spring-context.jar b/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/resources/location/jar/spring-context.jar deleted file mode 100644 index 504d59e5ff..0000000000 Binary files a/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/resources/location/jar/spring-context.jar and /dev/null differ diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/resources/org/apache/tuscany/sca/itest/spring/META-INF/spring/SpringDelegationHelloWorld-context.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/resources/org/apache/tuscany/sca/itest/spring/META-INF/spring/SpringDelegationHelloWorld-context.xml deleted file mode 100644 index 9912624870..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/resources/org/apache/tuscany/sca/itest/spring/META-INF/spring/SpringDelegationHelloWorld-context.xml +++ /dev/null @@ -1,39 +0,0 @@ - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/resources/org/apache/tuscany/sca/itest/spring/META-INF/spring/SpringHelloWorld-context.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/resources/org/apache/tuscany/sca/itest/spring/META-INF/spring/SpringHelloWorld-context.xml deleted file mode 100644 index 62e4e077b6..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/resources/org/apache/tuscany/sca/itest/spring/META-INF/spring/SpringHelloWorld-context.xml +++ /dev/null @@ -1,31 +0,0 @@ - - - - - - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/resources/org/apache/tuscany/sca/itest/spring/SpringDelegationHelloWorld.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/resources/org/apache/tuscany/sca/itest/spring/SpringDelegationHelloWorld.composite deleted file mode 100644 index e9f8bb888b..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/resources/org/apache/tuscany/sca/itest/spring/SpringDelegationHelloWorld.composite +++ /dev/null @@ -1,33 +0,0 @@ - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/resources/org/apache/tuscany/sca/itest/spring/SpringHelloWorld.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/resources/org/apache/tuscany/sca/itest/spring/SpringHelloWorld.composite deleted file mode 100644 index 30719684a9..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/resources/org/apache/tuscany/sca/itest/spring/SpringHelloWorld.composite +++ /dev/null @@ -1,33 +0,0 @@ - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/resources/sca/references/META-INF/spring/SpringExplicitReference-context.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/resources/sca/references/META-INF/spring/SpringExplicitReference-context.xml deleted file mode 100644 index 1705164104..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/resources/sca/references/META-INF/spring/SpringExplicitReference-context.xml +++ /dev/null @@ -1,33 +0,0 @@ - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/resources/sca/references/META-INF/spring/SpringImplicitReference-context.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/resources/sca/references/META-INF/spring/SpringImplicitReference-context.xml deleted file mode 100644 index 539dfa6e32..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/resources/sca/references/META-INF/spring/SpringImplicitReference-context.xml +++ /dev/null @@ -1,34 +0,0 @@ - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/resources/sca/references/SpringExplicitReference.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/resources/sca/references/SpringExplicitReference.composite deleted file mode 100644 index fcbafad27d..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/resources/sca/references/SpringExplicitReference.composite +++ /dev/null @@ -1,33 +0,0 @@ - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/resources/sca/references/SpringImplicitReference.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/resources/sca/references/SpringImplicitReference.composite deleted file mode 100644 index 4204b75b48..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/resources/sca/references/SpringImplicitReference.composite +++ /dev/null @@ -1,40 +0,0 @@ - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/resources/sca/services/META-INF/spring/SpringExplicitService-context.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/resources/sca/services/META-INF/spring/SpringExplicitService-context.xml deleted file mode 100644 index 42e0cdbd23..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/resources/sca/services/META-INF/spring/SpringExplicitService-context.xml +++ /dev/null @@ -1,39 +0,0 @@ - - - - - - - - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/resources/sca/services/META-INF/spring/SpringImplicitService-context.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/resources/sca/services/META-INF/spring/SpringImplicitService-context.xml deleted file mode 100644 index 83558e8abc..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/resources/sca/services/META-INF/spring/SpringImplicitService-context.xml +++ /dev/null @@ -1,31 +0,0 @@ - - - - - - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/resources/sca/services/SpringExplicitService.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/resources/sca/services/SpringExplicitService.composite deleted file mode 100644 index c9bb5b9e3e..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/resources/sca/services/SpringExplicitService.composite +++ /dev/null @@ -1,34 +0,0 @@ - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/resources/sca/services/SpringImplicitService.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/resources/sca/services/SpringImplicitService.composite deleted file mode 100644 index 856b41f897..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/resources/sca/services/SpringImplicitService.composite +++ /dev/null @@ -1,33 +0,0 @@ - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/resources/spring/annotations/Calculator.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/resources/spring/annotations/Calculator.composite deleted file mode 100644 index b59114bd31..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/resources/spring/annotations/Calculator.composite +++ /dev/null @@ -1,60 +0,0 @@ - - - - - - - HelloWorld - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/resources/spring/annotations/CalculatorService-context.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/resources/spring/annotations/CalculatorService-context.xml deleted file mode 100644 index 4a873f2424..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/main/resources/spring/annotations/CalculatorService-context.xml +++ /dev/null @@ -1,41 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/test/java/context/access/CalculatorClient.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/test/java/context/access/CalculatorClient.java deleted file mode 100644 index a346e290b9..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/test/java/context/access/CalculatorClient.java +++ /dev/null @@ -1,59 +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 context.access; - -import java.io.File; - -import org.apache.tuscany.sca.node.Contribution; -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; -import org.springframework.context.ApplicationContext; - -import calculator.CalculatorService; - -/** - * 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 { - - NodeFactory factory = NodeFactory.newInstance(); - Node node = factory.createNode(new File("src/main/resources/context/access/ContextAccess.composite").toURI().toURL().toString(), - new Contribution("TestContribution", new File("src/main/resources/context/access/").toURI().toURL().toString())); - node.start(); - - // Code: To access the Spring Application Context instance - ApplicationContext ctx = SCAApplicationContextProvider.getApplicationContext(); - if (ctx.containsBean("CalculatorServiceBean")) - System.out.println("CalculatorServiceBean is now available for use..."); - - CalculatorService calculatorService = - node.getService(CalculatorService.class, "CalculatorServiceComponent"); - - 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)); - - node.stop(); - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/test/java/context/access/ContextAccessTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/test/java/context/access/ContextAccessTestCase.java deleted file mode 100644 index 2602839d1d..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/test/java/context/access/ContextAccessTestCase.java +++ /dev/null @@ -1,32 +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 context.access; - -import junit.framework.TestCase; - -/** - * Tests out the big bank service - * - */ -public class ContextAccessTestCase extends TestCase { - - public void testServer() throws Exception { - CalculatorClient.main(new String[] {""}); - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/test/java/context/imports/CalculatorClient.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/test/java/context/imports/CalculatorClient.java deleted file mode 100644 index c029b06a8c..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/test/java/context/imports/CalculatorClient.java +++ /dev/null @@ -1,53 +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 context.imports; - -import java.io.File; - -import org.apache.tuscany.sca.node.Contribution; -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; - -import calculator.CalculatorService; - -/** - * 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 { - - NodeFactory factory = NodeFactory.newInstance(); - Node node = factory.createNode(new File("src/main/resources/context/imports/ContextImports.composite").toURI().toURL().toString(), - new Contribution("TestContribution", new File("src/main/resources/context/imports/").toURI().toURL().toString())); - node.start(); - - CalculatorService calculatorService = - node.getService(CalculatorService.class, "CalculatorServiceComponent"); - - 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)); - - node.stop(); - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/test/java/context/imports/ContextImportsTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/test/java/context/imports/ContextImportsTestCase.java deleted file mode 100644 index 8df60c5bab..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/test/java/context/imports/ContextImportsTestCase.java +++ /dev/null @@ -1,32 +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 context.imports; - -import junit.framework.TestCase; - -/** - * Tests out the big bank service - * - */ -public class ContextImportsTestCase extends TestCase { - - public void testServer() throws Exception { - CalculatorClient.main(new String[] {""}); - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/test/java/context/multiple/MultipleContextTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/test/java/context/multiple/MultipleContextTestCase.java deleted file mode 100644 index f5261c85bb..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/test/java/context/multiple/MultipleContextTestCase.java +++ /dev/null @@ -1,32 +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 context.multiple; - -import junit.framework.TestCase; - -/** - * Tests out the big bank service - * - */ -public class MultipleContextTestCase extends TestCase { - - public void testServer() throws Exception { - StockQuoteServer.main(new String[] {"1000"}); - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/test/java/context/multiple/StockQuoteServer.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/test/java/context/multiple/StockQuoteServer.java deleted file mode 100644 index 83875e0b0a..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/test/java/context/multiple/StockQuoteServer.java +++ /dev/null @@ -1,54 +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 context.multiple; - -import java.io.File; - -import org.apache.tuscany.sca.node.Contribution; -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; -import org.springframework.context.ApplicationContext; - -import context.access.SCAApplicationContextProvider; - -/** - * This server program shows how to bootstrap SCA from a simple J2SE program - * and start it which activates the StockQuote Web service endpoint. - */ -public class StockQuoteServer { - - public static void main(String[] args) throws Exception { - - NodeFactory factory = NodeFactory.newInstance(); - Node node = factory.createNode(new File("src/main/resources/context/multiple/MultipleContext.composite").toURI().toURL().toString(), - new Contribution("TestContribution", new File("src/main/resources/context/multiple/").toURI().toURL().toString())); - node.start(); - - // Method 1: To access the Spring Application Context instance - ApplicationContext ctx = SCAApplicationContextProvider.getApplicationContext(); - if (ctx.containsBean("StockQuoteServiceBean")) - System.out.println("StockQuoteServiceBean is now available for use..."); - - System.out.println("Press Enter to Exit..."); - Thread.sleep(1000); - - node.stop(); - System.out.println("Bye"); - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/test/java/implementation/policies/CalculatorClient.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/test/java/implementation/policies/CalculatorClient.java deleted file mode 100644 index 19892597c1..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/test/java/implementation/policies/CalculatorClient.java +++ /dev/null @@ -1,77 +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 implementation.policies; - -import java.io.File; - -import javax.security.auth.login.Configuration; - -import org.apache.tuscany.sca.node.Contribution; -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; - -import calculator.CalculatorService; - - -/** - * 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 { - try { - Configuration secConf = Configuration.getConfiguration(); - } catch (java.lang.SecurityException e) { - System.setProperty("java.security.auth.login.config", CalculatorClient.class.getClassLoader() - .getResource("implementation/policies/CalculatorJass.config").toString()); - } - - NodeFactory factory = NodeFactory.newInstance(); - Node node = factory.createNode(new File("src/main/resources/implementation/policies/ImplementationPolicies.composite").toURI().toURL().toString(), - new Contribution("TestContribution", new File("src/main/resources/implementation/policies/").toURI().toURL().toString())); - node.start(); - - CalculatorService calculatorService = - node.getService(CalculatorService.class, "CalculatorServiceComponent"); - - // Calculate - System.out.println("Calling CalculatorServiceComponent configured with 'logging' " + - "policy for subtract and divide operations..."); - 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)); - - calculatorService = - node.getService(CalculatorService.class, "AnotherCalculatorServiceComponent"); - - // Calculate - System.out.println("Calling CalculatorServiceComponent configured with 'logging' " + - "for all operations in the implementation..."); - 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)); - - node.stop(); - System.out.println("Bye"); - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/test/java/implementation/policies/ImplementationPoliciesTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/test/java/implementation/policies/ImplementationPoliciesTestCase.java deleted file mode 100644 index a44ae38d24..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/test/java/implementation/policies/ImplementationPoliciesTestCase.java +++ /dev/null @@ -1,32 +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 implementation.policies; - -import junit.framework.TestCase; - -/** - * Tests out the big bank service - * - */ -public class ImplementationPoliciesTestCase extends TestCase { - - public void testServer() throws Exception { - CalculatorClient.main(new String[] {""}); - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/test/java/location/folder/SpringFolderLocationTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/test/java/location/folder/SpringFolderLocationTestCase.java deleted file mode 100644 index d54f0544d8..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/test/java/location/folder/SpringFolderLocationTestCase.java +++ /dev/null @@ -1,45 +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 location.folder; - -import org.apache.tuscany.sca.itest.spring.AbstractHelloWorldTestCase; - -/** - * A test case designed to test the implementation of Properties from a Spring application - * context, where the properties are explicit, through the presence of an sca:property - * element within the Spring application context - * - * The artifacts involved in this test are: - * - * 1) A composite containing a component with a Spring implementation - * 2) The element references an application context that - * uses an explicit sca:property element which is used to compute the response to an invocation - * of the service of the implementation - * - * @version $Rev$ $Date$ - */ -public class SpringFolderLocationTestCase extends AbstractHelloWorldTestCase { - // super class does it all getting composite based on this class name - - public SpringFolderLocationTestCase() { - super("SpringFolderLocation.composite", "location/folder/"); - } -} - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/test/java/location/jar/SpringJarLocationTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/test/java/location/jar/SpringJarLocationTestCase.java deleted file mode 100644 index 71768f5a7b..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/test/java/location/jar/SpringJarLocationTestCase.java +++ /dev/null @@ -1,45 +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 location.jar; - -import org.apache.tuscany.sca.itest.spring.AbstractHelloWorldTestCase; - -/** - * A test case designed to test the implementation of Properties from a Spring application - * context, where the properties are explicit, through the presence of an sca:property - * element within the Spring application context - * - * The artifacts involved in this test are: - * - * 1) A composite containing a component with a Spring implementation - * 2) The element references an application context that - * uses an explicit sca:property element which is used to compute the response to an invocation - * of the service of the implementation - * - * @version $Rev$ $Date$ - */ -public class SpringJarLocationTestCase extends AbstractHelloWorldTestCase { - // super class does it all getting composite based on this class name - - public SpringJarLocationTestCase() { - super("SpringJarLocation.composite", "location/jar/"); - } -} - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/test/java/org/apache/tuscany/sca/itest/spring/AbstractHelloWorldTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/test/java/org/apache/tuscany/sca/itest/spring/AbstractHelloWorldTestCase.java deleted file mode 100644 index 0c6f8d2e84..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/test/java/org/apache/tuscany/sca/itest/spring/AbstractHelloWorldTestCase.java +++ /dev/null @@ -1,44 +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 org.apache.tuscany.sca.itest.spring; - - -/** - * Basic "hello world" style test case for testing Spring component implementation - * - */ -public abstract class AbstractHelloWorldTestCase extends AbstractSCATestCase { - - /** - * Calls the hello world service and checks that it gives the right response... - */ - public AbstractHelloWorldTestCase(String compositeName, String contributionLocation) { - super(compositeName, contributionLocation); - } - - public void testHello() throws Exception { - assertEquals("Hello petra", service.sayHello("petra")); - } - - @Override - protected Class getServiceClass() { - return HelloWorld.class; - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/test/java/org/apache/tuscany/sca/itest/spring/AbstractSCATestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/test/java/org/apache/tuscany/sca/itest/spring/AbstractSCATestCase.java deleted file mode 100644 index 53cc094aca..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/test/java/org/apache/tuscany/sca/itest/spring/AbstractSCATestCase.java +++ /dev/null @@ -1,58 +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 org.apache.tuscany.sca.itest.spring; - -import java.io.File; - -import junit.framework.TestCase; - -import org.apache.tuscany.sca.node.Contribution; -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; - -public abstract class AbstractSCATestCase extends TestCase { - - protected Node node; - protected T service; - protected String compositeName; - protected String contributionLocation; - - public AbstractSCATestCase(String compositeName, String contributionLocation) { - super(); - this.compositeName = compositeName; - this.contributionLocation = contributionLocation; - } - - @Override - protected void setUp() throws Exception { - NodeFactory factory = NodeFactory.newInstance(); - node = factory.createNode(new File("src/main/resources/" + contributionLocation + compositeName).toURI().toURL().toString(), - new Contribution("TestContribution", new File("src/main/resources/" + contributionLocation).toURI().toURL().toString())); - node.start(); - service = node.getService(getServiceClass(), "ClientComponent"); - } - - abstract protected Class getServiceClass(); - - @Override - protected void tearDown() throws Exception { - node.stop(); - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/test/java/org/apache/tuscany/sca/itest/spring/HelloWorld.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/test/java/org/apache/tuscany/sca/itest/spring/HelloWorld.java deleted file mode 100644 index 5869d344f6..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/test/java/org/apache/tuscany/sca/itest/spring/HelloWorld.java +++ /dev/null @@ -1,34 +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 org.apache.tuscany.sca.itest.spring; - -import org.oasisopen.sca.annotation.Remotable; - -/** - * Interface for the "hello world" service - predictably simple with a single operation - * "sayHello" - * - */ -@Remotable -public interface HelloWorld { - - public String sayHello(String s); - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/test/java/org/apache/tuscany/sca/itest/spring/HelloWorldProxy.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/test/java/org/apache/tuscany/sca/itest/spring/HelloWorldProxy.java deleted file mode 100644 index 90d26dd89f..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/test/java/org/apache/tuscany/sca/itest/spring/HelloWorldProxy.java +++ /dev/null @@ -1,41 +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 org.apache.tuscany.sca.itest.spring; - -import org.oasisopen.sca.annotation.Reference; - -/** - * A simple proxy Java class which implements the HelloWorld interface but which uses - * a reference "delegate" to actually provide the HelloWorld service - * - */ -public class HelloWorldProxy implements HelloWorld { - - // Here is the reference "delegate" - it implements the HelloWorld interface... - @Reference - public HelloWorld delegate; - - public String sayHello(String s) { - // Simply call the reference to satisfy the service request... - System.out.println("HelloWorldProxy - calling sayHello"); - return delegate.sayHello(s); - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/test/java/org/apache/tuscany/sca/itest/spring/SpringDelegationHelloWorldTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/test/java/org/apache/tuscany/sca/itest/spring/SpringDelegationHelloWorldTestCase.java deleted file mode 100644 index f28dace31a..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/test/java/org/apache/tuscany/sca/itest/spring/SpringDelegationHelloWorldTestCase.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 org.apache.tuscany.sca.itest.spring; - -/** - * A basic test case of: - * 1) A composite containing a component with a Spring implementation - * 2) The composite has a component with a Java POJO implementation which uses the - * Spring implementation to satisfy a reference - * - */ -public class SpringDelegationHelloWorldTestCase extends AbstractHelloWorldTestCase { - // super class does it all getting composite based on this class name - - public SpringDelegationHelloWorldTestCase() { - super("SpringDelegationHelloWorld.composite", "org/apache/tuscany/sca/itest/spring/"); - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/test/java/org/apache/tuscany/sca/itest/spring/SpringHelloWorldTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/test/java/org/apache/tuscany/sca/itest/spring/SpringHelloWorldTestCase.java deleted file mode 100644 index def30b3ea0..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/test/java/org/apache/tuscany/sca/itest/spring/SpringHelloWorldTestCase.java +++ /dev/null @@ -1,36 +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 org.apache.tuscany.sca.itest.spring; - -/** - * A basic test case of: - * 1) A composite containing a component with a Spring implementation - * 2) The composite has a component with a Java POJO implementation which uses the - * Spring implementation to satisfy a reference - * 3) The Spring component delegates function to a second spring bean - * - */ -public class SpringHelloWorldTestCase extends AbstractHelloWorldTestCase { - - // super class does it all getting composite based on this class name - public SpringHelloWorldTestCase() { - super("SpringHelloWorld.composite", "org/apache/tuscany/sca/itest/spring/"); - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/test/java/org/apache/tuscany/sca/itest/spring/TestHelloWorldBean.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/test/java/org/apache/tuscany/sca/itest/spring/TestHelloWorldBean.java deleted file mode 100644 index fa7967c964..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/test/java/org/apache/tuscany/sca/itest/spring/TestHelloWorldBean.java +++ /dev/null @@ -1,36 +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 org.apache.tuscany.sca.itest.spring; - -/** - * A simple test Spring bean which provides the HelloWorld service - * - */ - -public class TestHelloWorldBean implements HelloWorld { - - static String hello = "Hello "; - - // Classic "Hello xxx" response to any input message - public String sayHello(String message) { - System.out.println("TestHelloWorldBean - sayHello called"); - return (hello + message); - } - -} // end class TestHelloWorldBean diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/test/java/org/apache/tuscany/sca/itest/spring/TestHelloWorldDelegatorBean.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/test/java/org/apache/tuscany/sca/itest/spring/TestHelloWorldDelegatorBean.java deleted file mode 100644 index b57cc7f366..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/test/java/org/apache/tuscany/sca/itest/spring/TestHelloWorldDelegatorBean.java +++ /dev/null @@ -1,40 +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 org.apache.tuscany.sca.itest.spring; - -/** - * A simple test Spring bean which delgates to another bean - * - */ - -public class TestHelloWorldDelegatorBean implements HelloWorld { - - HelloWorld delegate; - - public void setDelegate(HelloWorld delegate) { - this.delegate = delegate; - } - - // Classic "Hello xxx" response to any input message - public String sayHello(String message) { - System.out.println("TestHelloWorldDelegatorBean - sayHello called"); - return delegate.sayHello(message); - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/test/java/sca/references/SpringExplicitReferenceTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/test/java/sca/references/SpringExplicitReferenceTestCase.java deleted file mode 100644 index 0c2e1daa81..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/test/java/sca/references/SpringExplicitReferenceTestCase.java +++ /dev/null @@ -1,45 +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 sca.references; - -import org.apache.tuscany.sca.itest.spring.AbstractHelloWorldTestCase; - -/** - * A test case designed to test the implementation of References from a Spring application - * context, where the references are explicit, through the presence of an sca:reference - * element within the Spring application context - * - * The artifacts involved in this test are: - * - * 1) A composite containing a component with a Spring implementation which makes - * a reference to a second component - * 2) The composite has a component with a Java POJO implementation which satisfies the reference - * 3) The element references an application context that - * uses an explicit sca:reference element to identify the reference made by the Spring application - * - * @version $Rev$ $Date$ - */ -public class SpringExplicitReferenceTestCase extends AbstractHelloWorldTestCase { - // super class does it all getting composite based on this class name - - public SpringExplicitReferenceTestCase() { - super("SpringExplicitReference.composite", "sca/references/"); - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/test/java/sca/references/SpringImplicitReferenceTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/test/java/sca/references/SpringImplicitReferenceTestCase.java deleted file mode 100644 index 8d0c548899..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/test/java/sca/references/SpringImplicitReferenceTestCase.java +++ /dev/null @@ -1,48 +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 sca.references; - -import org.apache.tuscany.sca.itest.spring.AbstractHelloWorldTestCase; - -/** - * A test case designed to test the implementation of References from a Spring application - * context, where the references are implicit, through the presence of Bean properties with a - * ref attribute which is not satisfied by a Bean within the application context. - * - * The artifacts involved in this test are: - * - * 1) A composite containing a component with a Spring implementation which makes - * a reference to a second component - * 2) The composite has a component with a Java POJO implementation which satisfies the reference - * 3) The element references an application context that - * does not use an explicit sca:reference element to identify the reference made by the - * Spring application, but relies on an unsatisfied Bean property with a ref attribute. - * - * @version $Rev$ $Date$ - */ -public class SpringImplicitReferenceTestCase extends AbstractHelloWorldTestCase { - // super class does it all getting composite based on this class name - - public SpringImplicitReferenceTestCase() { - super("SpringImplicitReference.composite", "sca/references/"); - } -} - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/test/java/sca/services/SpringExplicitServiceTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/test/java/sca/services/SpringExplicitServiceTestCase.java deleted file mode 100644 index f4bd53876c..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/test/java/sca/services/SpringExplicitServiceTestCase.java +++ /dev/null @@ -1,40 +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 sca.services; - -import org.apache.tuscany.sca.itest.spring.AbstractHelloWorldTestCase; - -/** - * A basic test case of: - * 1) A composite containing a component with a Spring implementation - * 2) The composite has a component with a Java POJO implementation which uses the - * Spring implementation to satisfy a reference - * 3) The element references an application context that - * uses an explicit sca: element to identify the service offered by the Spring application - * - * @version $Rev$ $Date$ - */ -public class SpringExplicitServiceTestCase extends AbstractHelloWorldTestCase { - // super class does it all getting composite based on this class name - - public SpringExplicitServiceTestCase() { - super("SpringExplicitService.composite", "sca/services/"); - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/test/java/sca/services/SpringImplicitServiceTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/test/java/sca/services/SpringImplicitServiceTestCase.java deleted file mode 100644 index 0907985d7f..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/test/java/sca/services/SpringImplicitServiceTestCase.java +++ /dev/null @@ -1,38 +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 sca.services; - -import org.apache.tuscany.sca.itest.spring.AbstractHelloWorldTestCase; - -/** - * A basic test case of: - * 1) A composite containing a component with a Spring implementation - * 2) The composite has a component with a Java POJO implementation which uses the - * Spring implementation to satisfy a reference - * - * @version $Rev$ $Date$ - */ -public class SpringImplicitServiceTestCase extends AbstractHelloWorldTestCase { - // super class does it all getting composite based on this class name - - public SpringImplicitServiceTestCase() { - super("SpringImplicitService.composite", "sca/services/"); - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/test/java/spring/annotations/CalculatorClient.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/test/java/spring/annotations/CalculatorClient.java deleted file mode 100644 index c2dfbf247f..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/test/java/spring/annotations/CalculatorClient.java +++ /dev/null @@ -1,55 +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 spring.annotations; - -import java.io.File; - -import org.apache.tuscany.sca.node.Contribution; -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; - -import calculator.CalculatorService; - - -/** - * 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 { - - NodeFactory factory = NodeFactory.newInstance(); - Node node = factory.createNode(new File("src/main/resources/spring/annotations/Calculator.composite").toURI().toURL().toString(), - new Contribution("TestContribution", new File("src/main/resources/spring/annotations/").toURI().toURL().toString())); - node.start(); - - CalculatorService calculatorService = - node.getService(CalculatorService.class, "CalculatorServiceComponent"); - - 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)); - - node.stop(); - System.out.println("Bye"); - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/test/java/spring/annotations/SpringAnnotationsTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/test/java/spring/annotations/SpringAnnotationsTestCase.java deleted file mode 100644 index 5db9c84c00..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/implementation-spring/src/test/java/spring/annotations/SpringAnnotationsTestCase.java +++ /dev/null @@ -1,32 +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 spring.annotations; - -import junit.framework.TestCase; - -/** - * Tests out the big bank service - * - */ -public class SpringAnnotationsTestCase extends TestCase { - - public void testServer() throws Exception { - CalculatorClient.main(new String[] {""}); - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/import-export/exports/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/import-export/exports/pom.xml deleted file mode 100644 index 7a5e2b342a..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/import-export/exports/pom.xml +++ /dev/null @@ -1,40 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-itest - 2.0-M5 - ../pom.xml - - - itest-import-export-export - Apache Tuscany SCA iTest Import Export Exports - - - - org.apache.tuscany.sca - tuscany-sca-api - 2.0-M5 - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/import-export/exports/src/main/java/org/apache/tuscany/sca/itest/exports/Helloworld.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/import-export/exports/src/main/java/org/apache/tuscany/sca/itest/exports/Helloworld.java deleted file mode 100644 index 186e42da39..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/import-export/exports/src/main/java/org/apache/tuscany/sca/itest/exports/Helloworld.java +++ /dev/null @@ -1,27 +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 org.apache.tuscany.sca.itest.exports; - -import org.oasisopen.sca.annotation.Remotable; - -@Remotable -public interface Helloworld { - String sayHello(String s); -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/import-export/exports/src/main/resources/META-INF/sca-contribution.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/import-export/exports/src/main/resources/META-INF/sca-contribution.xml deleted file mode 100644 index 9a0edcba68..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/import-export/exports/src/main/resources/META-INF/sca-contribution.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/import-export/imports/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/import-export/imports/pom.xml deleted file mode 100644 index 384f57f425..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/import-export/imports/pom.xml +++ /dev/null @@ -1,46 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-itest - 2.0-M5 - ../pom.xml - - - itest-import-export-imports - Apache Tuscany SCA iTest Import Export Imports - - - - org.apache.tuscany.sca - tuscany-sca-api - 2.0-M5 - - - org.apache.tuscany.sca - itest-import-export-export - 2.0-M5 - provided - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/import-export/imports/src/main/java/org/apache/tuscany/sca/itest/imports/HelloworldImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/import-export/imports/src/main/java/org/apache/tuscany/sca/itest/imports/HelloworldImpl.java deleted file mode 100644 index 4c7bc92b4f..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/import-export/imports/src/main/java/org/apache/tuscany/sca/itest/imports/HelloworldImpl.java +++ /dev/null @@ -1,30 +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 org.apache.tuscany.sca.itest.imports; - -import org.apache.tuscany.sca.itest.exports.Helloworld; - -public class HelloworldImpl implements Helloworld { - - public String sayHello(String name) { - return "Hello " + name; - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/import-export/imports/src/main/resources/Helloworld.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/import-export/imports/src/main/resources/Helloworld.composite deleted file mode 100644 index b4e2ff8868..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/import-export/imports/src/main/resources/Helloworld.composite +++ /dev/null @@ -1,29 +0,0 @@ - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/import-export/imports/src/main/resources/META-INF/sca-contribution.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/import-export/imports/src/main/resources/META-INF/sca-contribution.xml deleted file mode 100644 index c136923ab4..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/import-export/imports/src/main/resources/META-INF/sca-contribution.xml +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/import-export/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/import-export/pom.xml deleted file mode 100644 index 4ecea99ba2..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/import-export/pom.xml +++ /dev/null @@ -1,38 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-itest - 2.0-M5 - ../pom.xml - - pom - itest-import-export - Apache Tuscany SCA iTest Import Export - - - imports - exports - tests - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/import-export/tests/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/import-export/tests/pom.xml deleted file mode 100644 index b2bf2c84de..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/import-export/tests/pom.xml +++ /dev/null @@ -1,40 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-itest - 2.0-M5 - ../pom.xml - - - itest-import-export-tests - Apache Tuscany SCA iTest Import Export Tests - - - - org.apache.tuscany.sca.shades - tuscany-base - 2.0-M5 - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/import-export/tests/src/test/java/org/apache/tuscany/sca/itests/TestTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/import-export/tests/src/test/java/org/apache/tuscany/sca/itests/TestTestCase.java deleted file mode 100644 index f55edb6077..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/import-export/tests/src/test/java/org/apache/tuscany/sca/itests/TestTestCase.java +++ /dev/null @@ -1,60 +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 org.apache.tuscany.sca.itests; - -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; -import org.junit.After; -import org.junit.Test; - -public class TestTestCase { - - private Node node; - private Node node2; - - // @Test - public void testOneNode() throws Exception { - - node = NodeFactory.newInstance().createNode((String)null, new String[] {"../exports/target/classes", "../imports/target/classes"}); - node.start(); - - } - - @Test - public void testSeparateNodes() throws Exception { - - node = NodeFactory.newInstance().createNode((String)null, new String[] {"../exports/target/classes"}); - node.start(); - - node2 = NodeFactory.newInstance().createNode((String)null, new String[] {"../imports/target/classes"}); - node2.start(); - } - - @After - public void tearDown() throws Exception { - if (node != null) { - node.stop(); - } - if (node2 != null) { - node2.stop(); - } - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/interfaces/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/interfaces/pom.xml deleted file mode 100644 index d25c6aa044..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/interfaces/pom.xml +++ /dev/null @@ -1,53 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-itest - 2.0-M5 - ../pom.xml - - itest-interfaces - Apache Tuscany SCA iTest Interface - - - - org.apache.tuscany.sca - tuscany-node-api - 2.0-M5 - - - - org.apache.tuscany.sca - tuscany-node-impl - 2.0-M5 - test - - - - org.apache.tuscany.sca - tuscany-implementation-java-runtime - 2.0-M5 - test - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/interfaces/src/main/java/org/apache/tuscany/sca/itest/interfaces/LocalCallbackInterface.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/interfaces/src/main/java/org/apache/tuscany/sca/itest/interfaces/LocalCallbackInterface.java deleted file mode 100644 index f4131593d5..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/interfaces/src/main/java/org/apache/tuscany/sca/itest/interfaces/LocalCallbackInterface.java +++ /dev/null @@ -1,30 +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 org.apache.tuscany.sca.itest.interfaces; - -/** - * only for callBack - */ -public interface LocalCallbackInterface { - - void callbackMethod(String str); - - void modifyParameter(ParameterObject po); - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/interfaces/src/main/java/org/apache/tuscany/sca/itest/interfaces/LocalClientComponent.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/interfaces/src/main/java/org/apache/tuscany/sca/itest/interfaces/LocalClientComponent.java deleted file mode 100644 index 5fc9ed51b3..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/interfaces/src/main/java/org/apache/tuscany/sca/itest/interfaces/LocalClientComponent.java +++ /dev/null @@ -1,47 +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 org.apache.tuscany.sca.itest.interfaces; - -import org.oasisopen.sca.annotation.OneWay; - -/* - * itest for interface: local,method-overloading - */ -public interface LocalClientComponent { - - String foo1(ParameterObject po); - - String foo1(String str) throws Exception; - - String foo2(String str, int i); - - String foo2(int i, String str) throws Exception; - - void callback(String str); - - void callModifyParameter(); - - @OneWay - void onewayMethod(String str); - - String getCallbackValue(); - - String getOnewayValue(); -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/interfaces/src/main/java/org/apache/tuscany/sca/itest/interfaces/LocalClientComponentImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/interfaces/src/main/java/org/apache/tuscany/sca/itest/interfaces/LocalClientComponentImpl.java deleted file mode 100644 index 6cd937af12..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/interfaces/src/main/java/org/apache/tuscany/sca/itest/interfaces/LocalClientComponentImpl.java +++ /dev/null @@ -1,83 +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 org.apache.tuscany.sca.itest.interfaces; - -import org.oasisopen.sca.annotation.Reference; -import org.oasisopen.sca.annotation.Service; - -@Service(LocalClientComponent.class) -public class LocalClientComponentImpl implements LocalClientComponent, LocalCallbackInterface { - - @Reference - protected LocalServiceComponent aCallBackService; - private static String callbackValue; - private static String onewayValue; - - public String foo1(ParameterObject po) { - po.field1 = "AComponent"; - return "AComponent"; - } - - public String foo1(String str) throws Exception { - return str + "AComponent"; - } - - public String foo2(String str, int i) { - return str + "AComponent" + i; - } - - public String foo2(int i, String str) throws Exception { - return str + "AComponent" + i; - } - - public void callback(String str) { - aCallBackService.callback(str); - } - - public void callbackMethod(String str) { - callbackValue = str; - } - - public void callModifyParameter() { - this.aCallBackService.modifyParameter(); - } - - public String getCallbackValue() { - return callbackValue; - } - - public void onewayMethod(String str) { - onewayValue = str; - try { - Thread.sleep(200); - } catch (Exception e) { - //do nothing - } - } - - public String getOnewayValue() { - return onewayValue; - } - - public void modifyParameter(ParameterObject po) { - po.field1 = "AComponent"; - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/interfaces/src/main/java/org/apache/tuscany/sca/itest/interfaces/LocalServiceComponent.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/interfaces/src/main/java/org/apache/tuscany/sca/itest/interfaces/LocalServiceComponent.java deleted file mode 100644 index 05a9d09bdd..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/interfaces/src/main/java/org/apache/tuscany/sca/itest/interfaces/LocalServiceComponent.java +++ /dev/null @@ -1,37 +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 org.apache.tuscany.sca.itest.interfaces; - -import org.oasisopen.sca.annotation.Callback; - -/** - * Local be-directional callBackService - */ -@Callback(LocalCallbackInterface.class) -public interface LocalServiceComponent { - - String foo(String str); - - void callback(String str); - - void modifyParameter(); - - ParameterObject getPO(); - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/interfaces/src/main/java/org/apache/tuscany/sca/itest/interfaces/LocalServiceComponentImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/interfaces/src/main/java/org/apache/tuscany/sca/itest/interfaces/LocalServiceComponentImpl.java deleted file mode 100644 index ab0b18191c..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/interfaces/src/main/java/org/apache/tuscany/sca/itest/interfaces/LocalServiceComponentImpl.java +++ /dev/null @@ -1,49 +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 org.apache.tuscany.sca.itest.interfaces; - -import org.oasisopen.sca.annotation.Callback; -import org.oasisopen.sca.annotation.Service; - -@Service(LocalServiceComponent.class) -public class LocalServiceComponentImpl implements LocalServiceComponent { - - @Callback - protected LocalCallbackInterface callback; - - private static ParameterObject po; - - public void callback(String str) { - callback.callbackMethod(str); - } - - public void modifyParameter() { - po = new ParameterObject("CallBack"); - callback.modifyParameter(po); - } - - public String foo(String str) { - return str; - } - - public ParameterObject getPO() { - return po; - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/interfaces/src/main/java/org/apache/tuscany/sca/itest/interfaces/ParameterObject.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/interfaces/src/main/java/org/apache/tuscany/sca/itest/interfaces/ParameterObject.java deleted file mode 100644 index 724d94dffb..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/interfaces/src/main/java/org/apache/tuscany/sca/itest/interfaces/ParameterObject.java +++ /dev/null @@ -1,48 +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 org.apache.tuscany.sca.itest.interfaces; - -import java.io.Serializable; - -public class ParameterObject implements Serializable { - private static final long serialVersionUID = 1L; - public String field1; - - public ParameterObject() { - this.field1 = null; - } - - public ParameterObject(String field1) { - this.field1 = field1; - } - - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (o instanceof ParameterObject) { - ParameterObject other = (ParameterObject)o; - if (field1 != null) { - return field1.equals(other.field1); - } - } - return false; - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/interfaces/src/main/java/org/apache/tuscany/sca/itest/interfaces/RemoteCallbackInterface.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/interfaces/src/main/java/org/apache/tuscany/sca/itest/interfaces/RemoteCallbackInterface.java deleted file mode 100644 index be3fa4c15a..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/interfaces/src/main/java/org/apache/tuscany/sca/itest/interfaces/RemoteCallbackInterface.java +++ /dev/null @@ -1,33 +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 org.apache.tuscany.sca.itest.interfaces; - -import org.oasisopen.sca.annotation.Remotable; - -/** - * only for callBack - */ -@Remotable -public interface RemoteCallbackInterface { - - void callbackMethod(String str); - - void modifyParameter(ParameterObject po); -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/interfaces/src/main/java/org/apache/tuscany/sca/itest/interfaces/RemoteClientComponent.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/interfaces/src/main/java/org/apache/tuscany/sca/itest/interfaces/RemoteClientComponent.java deleted file mode 100644 index 9f34dfd274..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/interfaces/src/main/java/org/apache/tuscany/sca/itest/interfaces/RemoteClientComponent.java +++ /dev/null @@ -1,64 +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. - */ -/* - * 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 org.apache.tuscany.sca.itest.interfaces; - -import org.oasisopen.sca.annotation.Remotable; - -/* - * different signatures - */ - -@Remotable -public interface RemoteClientComponent { - - String foo1(ParameterObject po); - - String foo3(ParameterObject po); - - String foo2(int i, String str1) throws Exception; - - void callback(String str); - - void callModifyParameter(); - - String getCallbackValue(); - - void onewayMethod(String str); - - String getOnewayValue(); -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/interfaces/src/main/java/org/apache/tuscany/sca/itest/interfaces/RemoteClientComponentImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/interfaces/src/main/java/org/apache/tuscany/sca/itest/interfaces/RemoteClientComponentImpl.java deleted file mode 100644 index 541b1f1508..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/interfaces/src/main/java/org/apache/tuscany/sca/itest/interfaces/RemoteClientComponentImpl.java +++ /dev/null @@ -1,81 +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 org.apache.tuscany.sca.itest.interfaces; - -import org.oasisopen.sca.annotation.AllowsPassByReference; -import org.oasisopen.sca.annotation.Reference; -import org.oasisopen.sca.annotation.Service; - -@Service(RemoteClientComponent.class) -public class RemoteClientComponentImpl implements RemoteClientComponent, RemoteCallbackInterface { - - @Reference - protected RemoteServiceComponent aCallBackService; - private static String callbackValue; - private static String onewayValue; - - public String foo1(ParameterObject po) { - po.field1 = "BComponent"; - return "BComponent"; - } - - @AllowsPassByReference - public String foo3(ParameterObject po) { - po.field1 = "BComponent"; - return "BComponent"; - } - - public String foo2(int i, String str) throws Exception { - return str + "BComponent" + i; - } - - public void callback(String str) { - aCallBackService.callback(str); - } - - public void callModifyParameter() { - this.aCallBackService.modifyParameter(); - } - - public void callbackMethod(String str) { - callbackValue = str; - } - - public String getCallbackValue() { - return callbackValue; - } - - public void onewayMethod(String str) { - onewayValue = str; - try { - Thread.sleep(200); - } catch (Exception e) { - //do nothing - } - } - - public String getOnewayValue() { - return onewayValue; - } - - public void modifyParameter(ParameterObject po) { - po.field1 = "BComponent"; - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/interfaces/src/main/java/org/apache/tuscany/sca/itest/interfaces/RemoteServiceComponent.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/interfaces/src/main/java/org/apache/tuscany/sca/itest/interfaces/RemoteServiceComponent.java deleted file mode 100644 index b29b298ab6..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/interfaces/src/main/java/org/apache/tuscany/sca/itest/interfaces/RemoteServiceComponent.java +++ /dev/null @@ -1,38 +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 org.apache.tuscany.sca.itest.interfaces; - -import org.oasisopen.sca.annotation.Callback; -import org.oasisopen.sca.annotation.Remotable; - -@Remotable -@Callback(RemoteCallbackInterface.class) -public interface RemoteServiceComponent { - - String foo(String str); - - void callback(String str); - - void modifyParameter(); - - ParameterObject getPO(); - - String[] bar(int[][] intArray); -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/interfaces/src/main/java/org/apache/tuscany/sca/itest/interfaces/RemoteServiceComponentImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/interfaces/src/main/java/org/apache/tuscany/sca/itest/interfaces/RemoteServiceComponentImpl.java deleted file mode 100644 index 00a0f5645b..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/interfaces/src/main/java/org/apache/tuscany/sca/itest/interfaces/RemoteServiceComponentImpl.java +++ /dev/null @@ -1,54 +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 org.apache.tuscany.sca.itest.interfaces; - -import org.oasisopen.sca.annotation.Callback; -import org.oasisopen.sca.annotation.Service; - -@Service(RemoteServiceComponent.class) -public class RemoteServiceComponentImpl implements RemoteServiceComponent { - - @Callback - protected RemoteCallbackInterface callback; - - private static ParameterObject po; - - public void callback(String str) { - callback.callbackMethod(str); - } - - public void modifyParameter() { - po = new ParameterObject("CallBack"); - callback.modifyParameter(po); - } - - public String foo(String str) { - return str; - } - - public ParameterObject getPO() { - return po; - } - - public String[] bar(int[][] intArray) { - return new String[] {"int"}; - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/interfaces/src/main/resources/org/apache/tuscany/sca/itest/interfaces/invalid/InvalidRemoteAttribute.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/interfaces/src/main/resources/org/apache/tuscany/sca/itest/interfaces/invalid/InvalidRemoteAttribute.composite deleted file mode 100644 index da5700aa35..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/interfaces/src/main/resources/org/apache/tuscany/sca/itest/interfaces/invalid/InvalidRemoteAttribute.composite +++ /dev/null @@ -1,28 +0,0 @@ - - - - - - - - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/interfaces/src/main/resources/org/apache/tuscany/sca/itest/interfaces/valid/InterfacesTest.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/interfaces/src/main/resources/org/apache/tuscany/sca/itest/interfaces/valid/InterfacesTest.composite deleted file mode 100644 index e9267b75d3..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/interfaces/src/main/resources/org/apache/tuscany/sca/itest/interfaces/valid/InterfacesTest.composite +++ /dev/null @@ -1,40 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/interfaces/src/test/java/org/apache/tuscany/sca/itest/interfaces/InterfacesTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/interfaces/src/test/java/org/apache/tuscany/sca/itest/interfaces/InterfacesTestCase.java deleted file mode 100644 index d7ceeda6b6..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/interfaces/src/test/java/org/apache/tuscany/sca/itest/interfaces/InterfacesTestCase.java +++ /dev/null @@ -1,137 +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 org.apache.tuscany.sca.itest.interfaces; - -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.fail; - -import java.io.File; - -import org.apache.tuscany.sca.node.Contribution; -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; -import org.junit.AfterClass; -import org.junit.BeforeClass; -import org.junit.Test; - -// @Ignore("TUSCANY-3138") -public class InterfacesTestCase { - private static final String PKG = "org/apache/tuscany/sca/itest/interfaces/valid"; - private static String ROOT = new File("target/classes/" + PKG).toURI().toString(); - - private static Node node; - - @BeforeClass - public static void init() throws Exception { - String location = ROOT; - node = NodeFactory.newInstance().createNode("InterfacesTest.composite", new Contribution("c1", location)); - node.start(); - } - - @AfterClass - public static void destroy() throws Exception { - node.stop(); - } - - @Test - public void testLocalClient() { - LocalServiceComponent service = node.getService(LocalServiceComponent.class, "LocalServiceComponent"); - LocalClientComponent local = node.getService(LocalClientComponent.class, "LocalClientComponent"); - - try { - ParameterObject po = new ParameterObject(); - assertEquals("AComponent", local.foo1(po)); - assertEquals("AComponent", po.field1); - - assertEquals("AAComponent", local.foo1("A")); - - assertEquals("AAComponent1", local.foo2("A", 1)); - assertEquals("AAComponent1", local.foo2(1, "A")); - } catch (Exception e) { - fail(); - } - - try { - // test local callback - local.callback("CallBack"); - Thread.sleep(100); - assertEquals("CallBack", local.getCallbackValue()); - - local.callModifyParameter(); - Thread.sleep(100); - assertEquals("AComponent", service.getPO().field1); - } catch (Exception e) { - e.printStackTrace(); - fail("CallBack failed"); - } - - try { - local.onewayMethod("OneWay"); - Thread.sleep(100); - assertEquals("OneWay", local.getOnewayValue()); - } catch (Exception e) { - fail("OneWay failed"); - } - } - - @Test - public void testRemoteClient() { - RemoteServiceComponent service = node.getService(RemoteServiceComponent.class, "RemoteServiceComponent"); - RemoteClientComponent remote = node.getService(RemoteClientComponent.class, "RemoteClientComponent"); - - try { - // Test Pass By Value - ParameterObject po = new ParameterObject("NotBComponent"); - assertEquals("BComponent", remote.foo1(po)); - assertEquals("NotBComponent", po.field1); - - assertEquals("BBComponent1", remote.foo2(1, "B")); - -// TODO: TUSCANY-3479, investigate Node/SCAClient pass by reference -// // Test allowsPassByReference -// assertEquals("BComponent", remote.foo3(po)); -// assertEquals("BComponent", po.field1); - } catch (Exception e) { - e.printStackTrace(); - fail(); - } - - try { - remote.callback("CallBack"); - Thread.sleep(100); - assertEquals("CallBack", remote.getCallbackValue()); - - remote.callModifyParameter(); - Thread.sleep(100); - assertEquals("CallBack", service.getPO().field1); - } catch (Exception e) { - fail("CallBack failed"); - } - - try { - remote.onewayMethod("OneWay"); - Thread.sleep(100); - assertEquals("OneWay", remote.getOnewayValue()); - } catch (Exception e) { - fail("OneWay failed"); - } - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/interfaces/src/test/java/org/apache/tuscany/sca/itest/interfaces/InvalidRemoteAttributeTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/interfaces/src/test/java/org/apache/tuscany/sca/itest/interfaces/InvalidRemoteAttributeTestCase.java deleted file mode 100644 index 5aa8be2f04..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/interfaces/src/test/java/org/apache/tuscany/sca/itest/interfaces/InvalidRemoteAttributeTestCase.java +++ /dev/null @@ -1,52 +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 org.apache.tuscany.sca.itest.interfaces; - -import java.io.File; - -import org.apache.tuscany.sca.interfacedef.InvalidAnnotationException; -import org.apache.tuscany.sca.node.Contribution; -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; -import org.junit.Test; - -public class InvalidRemoteAttributeTestCase { - private static final String PKG = "org/apache/tuscany/sca/itest/interfaces/invalid"; - private static String ROOT = new File("target/classes/" + PKG).toURI().toString(); - - @Test - public void testInvalidRemoteAttribute() throws Exception { - Node node = null; - - try { - String location = ROOT; - node = NodeFactory.newInstance().createNode("InvalidRemoteAttribute.composite", new Contribution("c1", location)); - node.start(); - } catch (Exception e) { - if (! e.getCause().getClass().equals(InvalidAnnotationException.class)) { - throw e; - } - } finally { - if (node != null) { - node.stop(); - } - } - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jaxws-asyncclient/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/jaxws-asyncclient/pom.xml deleted file mode 100644 index 9aeb91c174..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jaxws-asyncclient/pom.xml +++ /dev/null @@ -1,53 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-itest - 2.0-M5 - ../pom.xml - - - itest-jaxws-asyncclient - Apache Tuscany JAX-WS Integration Tests - - - - org.apache.tuscany.sca - tuscany-node-impl - 2.0-M5 - - - - org.apache.tuscany.sca - tuscany-implementation-java-runtime - 2.0-M5 - runtime - - - - junit - junit - 4.8.1 - test - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jaxws-asyncclient/src/main/java/stock/StockQuote.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jaxws-asyncclient/src/main/java/stock/StockQuote.java deleted file mode 100644 index 4e55bae98d..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jaxws-asyncclient/src/main/java/stock/StockQuote.java +++ /dev/null @@ -1,36 +0,0 @@ -package stock; -/* - * 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. - */ - - - -import javax.jws.WebService; - -/** - * JAX-WS Async style Stock quote interface - * - * @version $Rev: 828277 $ $Date: 2009-10-22 02:40:52 +0100 (Thu, 22 Oct 2009) $ - */ - -@WebService -public interface StockQuote { - - float getPrice(String ticker); - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jaxws-asyncclient/src/main/java/stock/StockQuoteClient.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jaxws-asyncclient/src/main/java/stock/StockQuoteClient.java deleted file mode 100644 index 0bf3328c31..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jaxws-asyncclient/src/main/java/stock/StockQuoteClient.java +++ /dev/null @@ -1,69 +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 stock; - -import java.util.concurrent.ExecutionException; - -import javax.xml.ws.AsyncHandler; -import javax.xml.ws.Response; - -import org.oasisopen.sca.annotation.Reference; - -public class StockQuoteClient { - - @Reference public StockQuoteRef stockQuote; - - public float getPrice(String ticker) { - return stockQuote.getPrice(ticker); - } - - public float getPriceAsyncPoll(String ticker) throws InterruptedException, ExecutionException { - Response response = stockQuote.getPriceAsync("foo"); - return response.get(); - } - - float price = 0f; - Object mutex = new Object(); - Exception exception; - - public float getPriceAsyncCallback(String ticker) throws Exception { - AsyncHandler callback = new AsyncHandler() { - public void handleResponse(Response arg) { - synchronized (mutex) { - try { - price = arg.get(); - } catch (Exception e) { - exception = e; - } - mutex.notify(); - } - } - }; - stockQuote.getPriceAsync("foo", callback); - synchronized (mutex) { - if (price == 0f) - mutex.wait(5000); // wait for up to 5 seconds - } - - if (exception != null) throw exception; - return price; - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jaxws-asyncclient/src/main/java/stock/StockQuoteImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jaxws-asyncclient/src/main/java/stock/StockQuoteImpl.java deleted file mode 100644 index a43b85361b..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jaxws-asyncclient/src/main/java/stock/StockQuoteImpl.java +++ /dev/null @@ -1,34 +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 stock; - - -/** - * Stock quote impl - * - * @version $Rev: 828277 $ $Date: 2009-10-22 02:40:52 +0100 (Thu, 22 Oct 2009) $ - */ -public class StockQuoteImpl implements StockQuote { - - public float getPrice(String ticker) { - return 10; - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jaxws-asyncclient/src/main/java/stock/StockQuoteRef.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jaxws-asyncclient/src/main/java/stock/StockQuoteRef.java deleted file mode 100644 index b15ab6be08..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jaxws-asyncclient/src/main/java/stock/StockQuoteRef.java +++ /dev/null @@ -1,39 +0,0 @@ -package stock; -/* - * 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. - */ - - - -import java.util.concurrent.Future; - -import javax.xml.ws.AsyncHandler; -import javax.xml.ws.Response; - -import org.oasisopen.sca.annotation.Remotable; - -/** - * JAX-WS Async style Stock quote interface - */ -@Remotable -public interface StockQuoteRef extends StockQuote { - - Response getPriceAsync(String ticker); - - Future getPriceAsync(String ticker, AsyncHandler callback); -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jaxws-asyncclient/src/main/resources/META-INF/sca-contribution.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/jaxws-asyncclient/src/main/resources/META-INF/sca-contribution.xml deleted file mode 100644 index b30367319d..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jaxws-asyncclient/src/main/resources/META-INF/sca-contribution.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jaxws-asyncclient/src/main/resources/StockQuote.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/jaxws-asyncclient/src/main/resources/StockQuote.composite deleted file mode 100644 index 548b7a9da5..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jaxws-asyncclient/src/main/resources/StockQuote.composite +++ /dev/null @@ -1,33 +0,0 @@ - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jaxws-asyncclient/src/test/java/itest/AsyncServiceTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jaxws-asyncclient/src/test/java/itest/AsyncServiceTestCase.java deleted file mode 100644 index eb72924093..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jaxws-asyncclient/src/test/java/itest/AsyncServiceTestCase.java +++ /dev/null @@ -1,67 +0,0 @@ -package itest; -import java.util.concurrent.ExecutionException; - -import junit.framework.Assert; - -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; -import org.junit.After; -import org.junit.Before; -import org.junit.Test; - -import stock.StockQuoteClient; - -/* - * 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. - */ - -public class AsyncServiceTestCase { - - private Node node; - - @Before - public void init() { - node = NodeFactory.newInstance().createNode().start(); - } - - @After - public void end() { - if (node != null) { - node.stop(); - } - } - - @Test - public void invokeRPC() { - StockQuoteClient sc = node.getService(StockQuoteClient.class, "StockQuoteClient"); - Assert.assertEquals(10.0f, sc.getPrice("foo")); - } - - @Test - public void invokeAsyncPoll() throws InterruptedException, ExecutionException { - StockQuoteClient sc = node.getService(StockQuoteClient.class, "StockQuoteClient"); - Assert.assertEquals(10.0f, sc.getPriceAsyncPoll("foo")); - } - - @Test - public void invokeAsyncCallback() throws Exception { - StockQuoteClient sc = node.getService(StockQuoteClient.class, "StockQuoteClient"); - Assert.assertEquals(10.0f, sc.getPriceAsyncCallback("foo")); - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jaxws/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/jaxws/pom.xml deleted file mode 100644 index d94b756783..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jaxws/pom.xml +++ /dev/null @@ -1,53 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-itest - 2.0-M5 - ../pom.xml - - - itest-jaxws - Apache Tuscany SCA iTest JAX-WS Integration Tests - - - - org.apache.tuscany.sca - tuscany-node-impl - 2.0-M5 - - - - org.apache.tuscany.sca - tuscany-implementation-java-runtime - 2.0-M5 - runtime - - - - junit - junit - 4.8.1 - test - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jaxws/src/test/java/stock/AsyncServiceTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jaxws/src/test/java/stock/AsyncServiceTestCase.java deleted file mode 100644 index e1c2bedea3..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jaxws/src/test/java/stock/AsyncServiceTestCase.java +++ /dev/null @@ -1,42 +0,0 @@ -package stock; -import junit.framework.Assert; - -import org.apache.tuscany.sca.node.Contribution; -import org.apache.tuscany.sca.node.ContributionLocationHelper; -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; -import org.junit.Test; - -/* - * 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. - */ - -public class AsyncServiceTestCase { - - @Test - public void init() throws Exception { - try{ - String location = ContributionLocationHelper.getContributionLocation("StockQuote.composite"); - Node node = NodeFactory.newInstance().createNode("StockQuote.composite", new Contribution("c1", location)); - node.start(); - node.stop(); - } catch (Exception e) { - Assert.assertTrue(e.getMessage().contains("[JCA100006]")); - } - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jaxws/src/test/java/stock/StockQuote.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jaxws/src/test/java/stock/StockQuote.java deleted file mode 100644 index 74e25bb3bd..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jaxws/src/test/java/stock/StockQuote.java +++ /dev/null @@ -1,45 +0,0 @@ -package stock; -/* - * 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. - */ - - - -import java.util.concurrent.Future; - -import javax.jws.WebService; -import javax.xml.ws.AsyncHandler; -import javax.xml.ws.Response; - -/** - * JAX-WS Async style Stock quote interface - * - * @version $Rev$ $Date$ - */ - -@WebService -public interface StockQuote { - - float getPrice(String ticker); - - Response getPriceAsync(String ticker); - - Future getPriceAsync(String ticker, AsyncHandler callback); - - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jaxws/src/test/java/stock/StockQuoteImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jaxws/src/test/java/stock/StockQuoteImpl.java deleted file mode 100644 index 516c63d864..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jaxws/src/test/java/stock/StockQuoteImpl.java +++ /dev/null @@ -1,46 +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 stock; - -import java.util.concurrent.Future; - -import javax.xml.ws.AsyncHandler; -import javax.xml.ws.Response; - -/** - * Stock quote impl - * - * @version $Rev$ $Date$ - */ -public class StockQuoteImpl implements StockQuote { - - public float getPrice(String ticker) { - return 10; - } - - public Response getPriceAsync(String ticker) { - return null; - } - - public Future getPriceAsync(String ticker, AsyncHandler callback) { - return null; - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jaxws/src/test/resources/StockQuote.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/jaxws/src/test/resources/StockQuote.composite deleted file mode 100644 index c8c7719dfa..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jaxws/src/test/resources/StockQuote.composite +++ /dev/null @@ -1,31 +0,0 @@ - - - - - - - - - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/DynamicReplyQ/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/DynamicReplyQ/pom.xml deleted file mode 100644 index 69f957af88..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/DynamicReplyQ/pom.xml +++ /dev/null @@ -1,83 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-itest - 2.0-M5 - ../pom.xml - - - itest-jms-dynamic-replyq - Apache Tuscany SCA iTest JMS with dynamic replyq - - - - - org.apache.tuscany.sca - tuscany-sca-api - 2.0-M5 - - - - org.apache.tuscany.sca - tuscany-node-impl - 2.0-M5 - - - - org.apache.tuscany.sca - tuscany-implementation-java-runtime - 2.0-M5 - runtime - - - - org.apache.tuscany.sca - tuscany-binding-jms-runtime - 2.0-M5 - - - - org.apache.activemq - activemq-core - 5.2.0 - runtime - - - org.apache.geronimo.specs - geronimo-jms_1.1_spec - 1.1 - provided - - - org.apache.geronimo.specs - geronimo-jms_1.1_spec - - - - - - - - ${artifactId} - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/DynamicReplyQ/src/main/java/org/apache/tuscany/sca/binding/jms/HelloWorldClientImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/DynamicReplyQ/src/main/java/org/apache/tuscany/sca/binding/jms/HelloWorldClientImpl.java deleted file mode 100644 index 9aef6ba1a3..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/DynamicReplyQ/src/main/java/org/apache/tuscany/sca/binding/jms/HelloWorldClientImpl.java +++ /dev/null @@ -1,41 +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 org.apache.tuscany.sca.binding.jms; - -import org.oasisopen.sca.annotation.Reference; -import org.oasisopen.sca.annotation.Service; - -/** - * This class implements the HelloWorld service. - */ -@Service(HelloWorldService.class) -public class HelloWorldClientImpl implements HelloWorldService { - - private HelloWorldService serviceA; - - @Reference - public void setServiceA(HelloWorldService service) { - this.serviceA = service; - } - - public String sayHello(String name) { - return serviceA.sayHello(name); - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/DynamicReplyQ/src/main/java/org/apache/tuscany/sca/binding/jms/HelloWorldService.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/DynamicReplyQ/src/main/java/org/apache/tuscany/sca/binding/jms/HelloWorldService.java deleted file mode 100644 index 430c71aaef..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/DynamicReplyQ/src/main/java/org/apache/tuscany/sca/binding/jms/HelloWorldService.java +++ /dev/null @@ -1,26 +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 org.apache.tuscany.sca.binding.jms; - -import org.oasisopen.sca.annotation.Remotable; - -@Remotable -public interface HelloWorldService { - String sayHello(String name); -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/DynamicReplyQ/src/main/java/org/apache/tuscany/sca/binding/jms/HelloWorldServiceImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/DynamicReplyQ/src/main/java/org/apache/tuscany/sca/binding/jms/HelloWorldServiceImpl.java deleted file mode 100644 index 2c6d9d0d17..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/DynamicReplyQ/src/main/java/org/apache/tuscany/sca/binding/jms/HelloWorldServiceImpl.java +++ /dev/null @@ -1,30 +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 org.apache.tuscany.sca.binding.jms; - -public class HelloWorldServiceImpl implements HelloWorldService { - - public String sayHello(String name) { - if ("bang".equals(name)) { - throw new RuntimeException("blem wit"); - } - return "jmsHello " + name; - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/DynamicReplyQ/src/main/resources/META-INF/sca-contribution.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/DynamicReplyQ/src/main/resources/META-INF/sca-contribution.xml deleted file mode 100644 index ce6a9514af..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/DynamicReplyQ/src/main/resources/META-INF/sca-contribution.xml +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/DynamicReplyQ/src/main/resources/dynamic/client.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/DynamicReplyQ/src/main/resources/dynamic/client.composite deleted file mode 100644 index 7f9ed9612f..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/DynamicReplyQ/src/main/resources/dynamic/client.composite +++ /dev/null @@ -1,34 +0,0 @@ - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/DynamicReplyQ/src/main/resources/jndi.properties b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/DynamicReplyQ/src/main/resources/jndi.properties deleted file mode 100644 index 4d6acc037b..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/DynamicReplyQ/src/main/resources/jndi.properties +++ /dev/null @@ -1,39 +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. -## --------------------------------------------------------------------------- - -# START SNIPPET: jndi - -java.naming.factory.initial = org.apache.activemq.jndi.ActiveMQInitialContextFactory - -# use the following property to configure the default connector -java.naming.provider.url = vm://localhost?broker.persistent=false - -# use the following property to specify the JNDI name the connection factory -# should appear as. -#connectionFactoryNames = connectionFactory, queueConnectionFactory, topicConnectionFactry -connectionFactoryNames = ConnectionFactory - -# register some queues in JNDI using the form -# queue.[jndiName] = [physicalName] -queue.RequestQueue = RequestQueue -queue.ResponseQueue = ResponseQueue - -# register some topics in JNDI using the form -# topic.[jndiName] = [physicalName] -#topic.MyTopic = example.MyTopic - -# END SNIPPET: jndi diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/DynamicReplyQ/src/main/resources/simple/service.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/DynamicReplyQ/src/main/resources/simple/service.composite deleted file mode 100644 index 33364f61c0..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/DynamicReplyQ/src/main/resources/simple/service.composite +++ /dev/null @@ -1,37 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/DynamicReplyQ/src/test/java/org/apache/tuscany/sca/binding/jms/DynamicReplyQTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/DynamicReplyQ/src/test/java/org/apache/tuscany/sca/binding/jms/DynamicReplyQTestCase.java deleted file mode 100644 index 3bf4e0bc30..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/DynamicReplyQ/src/test/java/org/apache/tuscany/sca/binding/jms/DynamicReplyQTestCase.java +++ /dev/null @@ -1,53 +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 org.apache.tuscany.sca.binding.jms; - -import static org.junit.Assert.assertEquals; - -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; -import org.junit.After; -import org.junit.Before; -import org.junit.Test; - -/** - * This shows how to test the JMS binding using a simple HelloWorld application. - */ -public class DynamicReplyQTestCase { - - private static Node node; - - @Before - public void init() { - node = NodeFactory.newInstance().createNode().start(); - } - - @Test - public void testHelloWorldCreate() throws Exception { - HelloWorldService helloWorldService = node.getService(HelloWorldService.class, "HelloWorldClient"); - assertEquals("jmsHello Beate", helloWorldService.sayHello("Beate")); - } - - @After - public void end() { - if (node != null) { - node.stop(); - } - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/args/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/args/pom.xml deleted file mode 100644 index 6d2fa12331..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/args/pom.xml +++ /dev/null @@ -1,70 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-itest - 2.0-M5 - ../pom.xml - - - itest-jms-args - Apache Tuscany SCA iTest JMS Args - - - - - org.apache.tuscany.sca - tuscany-sca-api - 2.0-M5 - - - - org.apache.tuscany.sca - tuscany-binding-jms-runtime - 2.0-M5 - - - - - org.apache.activemq - activemq-core - 5.2.0 - - - - org.apache.tuscany.sca - tuscany-implementation-java-runtime - 2.0-M5 - runtime - - - - org.apache.tuscany.sca - tuscany-node-impl - 2.0-M5 - test - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/args/src/main/java/org/apache/tuscany/sca/binding/jms/ClientImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/args/src/main/java/org/apache/tuscany/sca/binding/jms/ClientImpl.java deleted file mode 100644 index 68506b857b..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/args/src/main/java/org/apache/tuscany/sca/binding/jms/ClientImpl.java +++ /dev/null @@ -1,41 +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 org.apache.tuscany.sca.binding.jms; - -import org.oasisopen.sca.annotation.Reference; -import org.oasisopen.sca.annotation.Service; - -/** - * This class implements the OneWay service. - */ -@Service(MyService.class) -public class ClientImpl implements MyService { - - private MyService serviceA; - - @Reference - public void setServiceA(MyService service) { - this.serviceA = service; - } - - public void sayHello(String name, String n2) { - serviceA.sayHello(name, n2); - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/args/src/main/java/org/apache/tuscany/sca/binding/jms/MyService.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/args/src/main/java/org/apache/tuscany/sca/binding/jms/MyService.java deleted file mode 100644 index 5f19aa1fa5..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/args/src/main/java/org/apache/tuscany/sca/binding/jms/MyService.java +++ /dev/null @@ -1,29 +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 org.apache.tuscany.sca.binding.jms; - -import org.oasisopen.sca.annotation.OneWay; -import org.oasisopen.sca.annotation.Remotable; - -@Remotable -public interface MyService { - - @OneWay - void sayHello(String name, String n2); -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/args/src/main/java/org/apache/tuscany/sca/binding/jms/ServiceImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/args/src/main/java/org/apache/tuscany/sca/binding/jms/ServiceImpl.java deleted file mode 100644 index 18324d5d1d..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/args/src/main/java/org/apache/tuscany/sca/binding/jms/ServiceImpl.java +++ /dev/null @@ -1,38 +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 org.apache.tuscany.sca.binding.jms; - - -public class ServiceImpl implements MyService { - - public static Object lock = new Object(); - public static String name; - public static String n2; - - public void sayHello(String name, String n2) { - System.out.println("SelectorServiceImpl1 " + name + n2); - ServiceImpl.name = name; - ServiceImpl.n2 = n2; - synchronized (ServiceImpl.lock) { - ServiceImpl.lock.notify(); - } - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/args/src/main/resources/META-INF/sca-contribution.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/args/src/main/resources/META-INF/sca-contribution.xml deleted file mode 100644 index ac6e94ca21..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/args/src/main/resources/META-INF/sca-contribution.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/args/src/main/resources/jndi.properties b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/args/src/main/resources/jndi.properties deleted file mode 100644 index 7ce468aa0f..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/args/src/main/resources/jndi.properties +++ /dev/null @@ -1,38 +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. -## --------------------------------------------------------------------------- - -# START SNIPPET: jndi - -java.naming.factory.initial = org.apache.activemq.jndi.ActiveMQInitialContextFactory - -# use the following property to configure the default connector -java.naming.provider.url = vm://localhost?broker.persistent=false&broker.useJmx=false&broker.useShutdownHook=false - -# use the following property to specify the JNDI name the connection factory -# should appear as. -#connectionFactoryNames = connectionFactory, queueConnectionFactory, topicConnectionFactry -connectionFactoryNames = ConnectionFactory, ConnectionFactory2 - -# register some queues in JNDI using the form -# queue.[jndiName] = [physicalName] - -# register some topics in JNDI using the form -# topic.[jndiName] = [physicalName] -#topic.MyTopic = example.MyTopic -topic.ServiceTopic = ServiceTopic - -# END SNIPPET: jndi diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/args/src/main/resources/selectors/selectors.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/args/src/main/resources/selectors/selectors.composite deleted file mode 100644 index 827d3a7dc8..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/args/src/main/resources/selectors/selectors.composite +++ /dev/null @@ -1,38 +0,0 @@ - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/args/src/test/java/org/apache/tuscany/sca/binding/jms/ArgsTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/args/src/test/java/org/apache/tuscany/sca/binding/jms/ArgsTestCase.java deleted file mode 100644 index 28e0b530c1..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/args/src/test/java/org/apache/tuscany/sca/binding/jms/ArgsTestCase.java +++ /dev/null @@ -1,62 +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 org.apache.tuscany.sca.binding.jms; - -import static org.junit.Assert.assertEquals; - -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; -import org.junit.After; -import org.junit.Before; -import org.junit.Test; - -/** - */ -public class ArgsTestCase { - - private Node node; - - @Before - public void init() { - node = NodeFactory.newInstance().createNode().start(); - } - - @Test - public void testSayHello() throws Exception { - MyService client1 = node.getService(MyService.class, "Client1"); - - client1.sayHello("petra", "beate"); - - synchronized(ServiceImpl.lock) { - if (ServiceImpl.name == null) { - ServiceImpl.lock.wait(5000); - } - } - - assertEquals("petra", ServiceImpl.name); - assertEquals("beate", ServiceImpl.n2); - } - - @After - public void end() { - if (node != null) { - node.stop(); - } - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/callbacks/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/callbacks/pom.xml deleted file mode 100644 index a9d100f9b8..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/callbacks/pom.xml +++ /dev/null @@ -1,73 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-itest - 2.0-M5 - ../pom.xml - - itest-jms-callbacks - Apache Tuscany SCA iTest JMS Tests For Callbacks - - - - - org.apache.tuscany.sca - tuscany-sca-api - 2.0-M5 - - - - org.apache.tuscany.sca - tuscany-implementation-java-runtime - 2.0-M5 - runtime - - - - org.apache.tuscany.sca - tuscany-binding-jms-runtime - 2.0-M5 - - - - org.apache.tuscany.sca - tuscany-node-impl - 2.0-M5 - test - - - - - org.apache.activemq - activemq-core - 5.2.0 - test - - - - - - ${artifactId} - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/callbacks/src/main/java/org/apache/tuscany/sca/binding/jms/JMSClient.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/callbacks/src/main/java/org/apache/tuscany/sca/binding/jms/JMSClient.java deleted file mode 100644 index d4cd5df431..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/callbacks/src/main/java/org/apache/tuscany/sca/binding/jms/JMSClient.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 org.apache.tuscany.sca.binding.jms; - - -/** - * The client interface - */ -public interface JMSClient { - - void aClientMethod(); -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/callbacks/src/main/java/org/apache/tuscany/sca/binding/jms/JMSClientImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/callbacks/src/main/java/org/apache/tuscany/sca/binding/jms/JMSClientImpl.java deleted file mode 100644 index f90db55dda..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/callbacks/src/main/java/org/apache/tuscany/sca/binding/jms/JMSClientImpl.java +++ /dev/null @@ -1,50 +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 org.apache.tuscany.sca.binding.jms; - -import org.oasisopen.sca.annotation.Reference; -import org.oasisopen.sca.annotation.Service; - -/** - * Remote Web service client with callback interface - */ -@Service(JMSClient.class) -public class JMSClientImpl implements JMSClient, JMSServiceCallback { - - @Reference protected JMSService myService; - - public static String result; - public static Object lock = new Object(); - - public void aClientMethod() { - System.out.println("aClientMethod " + this + " on thread " + Thread.currentThread()); - myService.someMethod("-> someMethod"); // calls the server - System.out.println("aClientMethod return from someMethod on thread " + Thread.currentThread()); - } - - public void receiveResult(String result) { - System.out.println("receiveResult " + this + " '" + result + "' on thread " + Thread.currentThread()); - JMSClientImpl.result = result; - - // wakeup the waiting testcase - synchronized (lock) { - lock.notifyAll(); - } - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/callbacks/src/main/java/org/apache/tuscany/sca/binding/jms/JMSService.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/callbacks/src/main/java/org/apache/tuscany/sca/binding/jms/JMSService.java deleted file mode 100644 index b78feab413..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/callbacks/src/main/java/org/apache/tuscany/sca/binding/jms/JMSService.java +++ /dev/null @@ -1,34 +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 org.apache.tuscany.sca.binding.jms; - -import org.oasisopen.sca.annotation.Callback; -import org.oasisopen.sca.annotation.OneWay; -import org.oasisopen.sca.annotation.Remotable; - -/** - * The remote service that will be invoked by the client - */ -@Remotable -@Callback(JMSServiceCallback.class) -public interface JMSService { - - @OneWay - void someMethod(String arg); -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/callbacks/src/main/java/org/apache/tuscany/sca/binding/jms/JMSServiceCallback.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/callbacks/src/main/java/org/apache/tuscany/sca/binding/jms/JMSServiceCallback.java deleted file mode 100644 index 20b74ccc1a..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/callbacks/src/main/java/org/apache/tuscany/sca/binding/jms/JMSServiceCallback.java +++ /dev/null @@ -1,32 +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 org.apache.tuscany.sca.binding.jms; - -import org.oasisopen.sca.annotation.OneWay; -import org.oasisopen.sca.annotation.Remotable; - -/** - * The callback interface for {@link JMSService}. - */ -@Remotable -public interface JMSServiceCallback { - - @OneWay - void receiveResult(String result); -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/callbacks/src/main/java/org/apache/tuscany/sca/binding/jms/JMSServiceImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/callbacks/src/main/java/org/apache/tuscany/sca/binding/jms/JMSServiceImpl.java deleted file mode 100644 index cec4e6fa6d..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/callbacks/src/main/java/org/apache/tuscany/sca/binding/jms/JMSServiceImpl.java +++ /dev/null @@ -1,47 +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 org.apache.tuscany.sca.binding.jms; - -import org.oasisopen.sca.annotation.Callback; -import org.oasisopen.sca.annotation.Service; - -/** - * This class implements MyService and uses a callback. - */ -@Service(JMSService.class) -public class JMSServiceImpl implements JMSService { - - private JMSServiceCallback myServiceCallback; - - @Callback - public void setMyServiceCallback(JMSServiceCallback myServiceCallback) { - System.out.println("setMyServiceCallback on thread " + Thread.currentThread() + " cb: " + myServiceCallback); - this.myServiceCallback = myServiceCallback; - } - - public void someMethod(String arg) { - System.out.println("someMethod '" + arg + "' on thread " + Thread.currentThread()); - try { - myServiceCallback.receiveResult(arg + "-> receiveResult"); - } catch(Exception e) { - System.out.println("RuntimeException invoking receiveResult: " + e.toString()); - e.printStackTrace(); - } - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/callbacks/src/main/resources/META-INF/sca-contribution.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/callbacks/src/main/resources/META-INF/sca-contribution.xml deleted file mode 100644 index 68c3bfa4e0..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/callbacks/src/main/resources/META-INF/sca-contribution.xml +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/callbacks/src/main/resources/jndi.properties b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/callbacks/src/main/resources/jndi.properties deleted file mode 100644 index be362c51cc..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/callbacks/src/main/resources/jndi.properties +++ /dev/null @@ -1,40 +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. -## --------------------------------------------------------------------------- - -# START SNIPPET: jndi - -java.naming.factory.initial = org.apache.activemq.jndi.ActiveMQInitialContextFactory - -# use the following property to configure the default connector -java.naming.provider.url = vm://localhost?broker.persistent=false&broker.useJmx=false&broker.useShutdownHook=false - -# use the following property to specify the JNDI name the connection factory -# should appear as. -#connectionFactoryNames = connectionFactory, queueConnectionFactory, topicConnectionFactry -connectionFactoryNames = ConnectionFactory - -# register some queues in JNDI using the form -# queue.[jndiName] = [physicalName] -queue.ServiceQueue = ServiceQueue -queue.ServiceQueue = TQServiceQueue -queue.CallbackQueue = CallbackQueue - -# register some topics in JNDI using the form -# topic.[jndiName] = [physicalName] -#topic.MyTopic = example.MyTopic - -# END SNIPPET: jndi diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/callbacks/src/main/resources/simple/client.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/callbacks/src/main/resources/simple/client.composite deleted file mode 100644 index 671fddaa34..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/callbacks/src/main/resources/simple/client.composite +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/callbacks/src/main/resources/simple/tempq.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/callbacks/src/main/resources/simple/tempq.composite deleted file mode 100644 index e140bdf9b7..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/callbacks/src/main/resources/simple/tempq.composite +++ /dev/null @@ -1,50 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/callbacks/src/test/java/org/apache/tuscany/sca/binding/jms/CallbackTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/callbacks/src/test/java/org/apache/tuscany/sca/binding/jms/CallbackTestCase.java deleted file mode 100644 index 1661a4614c..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/callbacks/src/test/java/org/apache/tuscany/sca/binding/jms/CallbackTestCase.java +++ /dev/null @@ -1,61 +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 org.apache.tuscany.sca.binding.jms; - -import static org.junit.Assert.assertEquals; - -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; -import org.junit.After; -import org.junit.Before; -import org.junit.Test; - -/** - * This shows how to test the JMS binding using a simple HelloWorld application. - */ -public class CallbackTestCase { - - private Node node; - - @Before - public void init() { - node = NodeFactory.newInstance().createNode().start(); - } - - @Test - public void testHelloWorldCreate() throws Exception { - JMSClient client = node.getService(JMSClient.class, "ClientComponent"); - - client.aClientMethod(); - - // wait for up to 5 seconds but should wake up as soon as done - synchronized(JMSClientImpl.lock) { - JMSClientImpl.lock.wait(5000); - } - - assertEquals("-> someMethod-> receiveResult", JMSClientImpl.result); - } - - @After - public void end() { - if (node != null) { - node.stop(); - } - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/callbacks/src/test/java/org/apache/tuscany/sca/binding/jms/TempCallbackQTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/callbacks/src/test/java/org/apache/tuscany/sca/binding/jms/TempCallbackQTestCase.java deleted file mode 100644 index 5897df6784..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/callbacks/src/test/java/org/apache/tuscany/sca/binding/jms/TempCallbackQTestCase.java +++ /dev/null @@ -1,64 +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 org.apache.tuscany.sca.binding.jms; - -import static org.junit.Assert.assertEquals; - -import java.net.MalformedURLException; - -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; -import org.junit.After; -import org.junit.Before; -import org.junit.Test; - -/** - * This shows how to test the JMS binding using a simple HelloWorld application. - */ -public class TempCallbackQTestCase { - - private Node node; - - @Before - public void init() throws MalformedURLException { - node = NodeFactory.newInstance().createNode().start(); - } - - @Test - public void testHelloWorldCreate() throws Exception { - JMSClient client = node.getService(JMSClient.class, "ClientComponent"); - - client.aClientMethod(); - - // wait for up to 5 seconds but should wake up as soon as done - synchronized (JMSClientImpl.lock) { - JMSClientImpl.lock.wait(5000); - } - - assertEquals("-> someMethod-> receiveResult", JMSClientImpl.result); - } - - @After - public void end() { - if (node != null) { - node.stop(); - } - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/defaults/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/defaults/pom.xml deleted file mode 100644 index dae4d680a5..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/defaults/pom.xml +++ /dev/null @@ -1,83 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-itest - 2.0-M5 - ../pom.xml - - - itest-jms-defaults - Apache Tuscany SCA iTest JMS with Defaults - - - - - org.apache.tuscany.sca - tuscany-sca-api - 2.0-M5 - - - - org.apache.tuscany.sca - tuscany-node-impl - 2.0-M5 - - - - org.apache.tuscany.sca - tuscany-implementation-java-runtime - 2.0-M5 - runtime - - - - org.apache.tuscany.sca - tuscany-binding-jms-runtime - 2.0-M5 - - - - org.apache.activemq - activemq-core - 5.2.0 - runtime - - - org.apache.geronimo.specs - geronimo-jms_1.1_spec - 1.1 - provided - - - org.apache.geronimo.specs - geronimo-jms_1.1_spec - - - - - - - - ${artifactId} - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/defaults/src/main/java/org/apache/tuscany/sca/binding/jms/HelloWorldClientImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/defaults/src/main/java/org/apache/tuscany/sca/binding/jms/HelloWorldClientImpl.java deleted file mode 100644 index 9aef6ba1a3..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/defaults/src/main/java/org/apache/tuscany/sca/binding/jms/HelloWorldClientImpl.java +++ /dev/null @@ -1,41 +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 org.apache.tuscany.sca.binding.jms; - -import org.oasisopen.sca.annotation.Reference; -import org.oasisopen.sca.annotation.Service; - -/** - * This class implements the HelloWorld service. - */ -@Service(HelloWorldService.class) -public class HelloWorldClientImpl implements HelloWorldService { - - private HelloWorldService serviceA; - - @Reference - public void setServiceA(HelloWorldService service) { - this.serviceA = service; - } - - public String sayHello(String name) { - return serviceA.sayHello(name); - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/defaults/src/main/java/org/apache/tuscany/sca/binding/jms/HelloWorldService.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/defaults/src/main/java/org/apache/tuscany/sca/binding/jms/HelloWorldService.java deleted file mode 100644 index 430c71aaef..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/defaults/src/main/java/org/apache/tuscany/sca/binding/jms/HelloWorldService.java +++ /dev/null @@ -1,26 +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 org.apache.tuscany.sca.binding.jms; - -import org.oasisopen.sca.annotation.Remotable; - -@Remotable -public interface HelloWorldService { - String sayHello(String name); -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/defaults/src/main/java/org/apache/tuscany/sca/binding/jms/HelloWorldServiceImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/defaults/src/main/java/org/apache/tuscany/sca/binding/jms/HelloWorldServiceImpl.java deleted file mode 100644 index 2c6d9d0d17..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/defaults/src/main/java/org/apache/tuscany/sca/binding/jms/HelloWorldServiceImpl.java +++ /dev/null @@ -1,30 +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 org.apache.tuscany.sca.binding.jms; - -public class HelloWorldServiceImpl implements HelloWorldService { - - public String sayHello(String name) { - if ("bang".equals(name)) { - throw new RuntimeException("blem wit"); - } - return "jmsHello " + name; - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/defaults/src/main/resources/META-INF/sca-contribution.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/defaults/src/main/resources/META-INF/sca-contribution.xml deleted file mode 100644 index f4da034c55..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/defaults/src/main/resources/META-INF/sca-contribution.xml +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/defaults/src/main/resources/defaults/client.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/defaults/src/main/resources/defaults/client.composite deleted file mode 100644 index 06010956aa..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/defaults/src/main/resources/defaults/client.composite +++ /dev/null @@ -1,31 +0,0 @@ - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/defaults/src/main/resources/defaults/service.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/defaults/src/main/resources/defaults/service.composite deleted file mode 100644 index 5354afb130..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/defaults/src/main/resources/defaults/service.composite +++ /dev/null @@ -1,31 +0,0 @@ - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/defaults/src/main/resources/jndi.properties b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/defaults/src/main/resources/jndi.properties deleted file mode 100644 index 4d6acc037b..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/defaults/src/main/resources/jndi.properties +++ /dev/null @@ -1,39 +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. -## --------------------------------------------------------------------------- - -# START SNIPPET: jndi - -java.naming.factory.initial = org.apache.activemq.jndi.ActiveMQInitialContextFactory - -# use the following property to configure the default connector -java.naming.provider.url = vm://localhost?broker.persistent=false - -# use the following property to specify the JNDI name the connection factory -# should appear as. -#connectionFactoryNames = connectionFactory, queueConnectionFactory, topicConnectionFactry -connectionFactoryNames = ConnectionFactory - -# register some queues in JNDI using the form -# queue.[jndiName] = [physicalName] -queue.RequestQueue = RequestQueue -queue.ResponseQueue = ResponseQueue - -# register some topics in JNDI using the form -# topic.[jndiName] = [physicalName] -#topic.MyTopic = example.MyTopic - -# END SNIPPET: jndi diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/defaults/src/test/java/org/apache/tuscany/sca/binding/jms/DefaultsTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/defaults/src/test/java/org/apache/tuscany/sca/binding/jms/DefaultsTestCase.java deleted file mode 100644 index d2b1a5fe59..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/defaults/src/test/java/org/apache/tuscany/sca/binding/jms/DefaultsTestCase.java +++ /dev/null @@ -1,54 +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 org.apache.tuscany.sca.binding.jms; - -import static org.junit.Assert.assertEquals; - -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; - -import org.junit.After; -import org.junit.Before; -import org.junit.Test; - -/** - * This shows how to test the JMS binding using a simple HelloWorld application. - */ -public class DefaultsTestCase { - - private Node node; - - @Before - public void init() { - node = NodeFactory.newInstance().createNode().start(); - } - - @Test - public void testHelloWorldCreate() throws Exception { - HelloWorldService helloWorldService = node.getService(HelloWorldService.class, "HelloWorldClient"); - assertEquals("jmsHello Petra", helloWorldService.sayHello("Petra")); - } - - @After - public void end() { - if (node != null) { - node.stop(); - } - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/definitions/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/definitions/pom.xml deleted file mode 100644 index adbf6c6c3b..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/definitions/pom.xml +++ /dev/null @@ -1,73 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-itest - 2.0-M5 - ../pom.xml - - - itest-jms-definitions - Apache Tuscany SCA iTest JMS Tests For Properties - - - - - org.apache.tuscany.sca - tuscany-sca-api - 2.0-M5 - - - - org.apache.tuscany.sca - tuscany-implementation-java-runtime - 2.0-M5 - runtime - - - - org.apache.tuscany.sca - tuscany-binding-jms-runtime - 2.0-M5 - - - - org.apache.tuscany.sca - tuscany-node-impl - 2.0-M5 - test - - - - - org.apache.activemq - activemq-core - 5.2.0 - - - - - - ${artifactId} - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/definitions/src/main/java/org/apache/tuscany/sca/binding/jms/OneWayClientImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/definitions/src/main/java/org/apache/tuscany/sca/binding/jms/OneWayClientImpl.java deleted file mode 100644 index b572b1012a..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/definitions/src/main/java/org/apache/tuscany/sca/binding/jms/OneWayClientImpl.java +++ /dev/null @@ -1,41 +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 org.apache.tuscany.sca.binding.jms; - -import org.oasisopen.sca.annotation.Reference; -import org.oasisopen.sca.annotation.Service; - -/** - * This class implements the OneWay service. - */ -@Service(OneWayService.class) -public class OneWayClientImpl implements OneWayService { - - private OneWayService serviceA; - - @Reference - public void setServiceA(OneWayService service) { - this.serviceA = service; - } - - public void sayHello(String name) { - serviceA.sayHello(name); - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/definitions/src/main/java/org/apache/tuscany/sca/binding/jms/OneWayService.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/definitions/src/main/java/org/apache/tuscany/sca/binding/jms/OneWayService.java deleted file mode 100644 index 9cec2d9b3e..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/definitions/src/main/java/org/apache/tuscany/sca/binding/jms/OneWayService.java +++ /dev/null @@ -1,29 +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 org.apache.tuscany.sca.binding.jms; - -import org.oasisopen.sca.annotation.OneWay; -import org.oasisopen.sca.annotation.Remotable; - -@Remotable -public interface OneWayService { - - @OneWay - void sayHello(String name); -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/definitions/src/main/java/org/apache/tuscany/sca/binding/jms/OneWayServiceImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/definitions/src/main/java/org/apache/tuscany/sca/binding/jms/OneWayServiceImpl.java deleted file mode 100644 index 6b763874df..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/definitions/src/main/java/org/apache/tuscany/sca/binding/jms/OneWayServiceImpl.java +++ /dev/null @@ -1,34 +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 org.apache.tuscany.sca.binding.jms; - -public class OneWayServiceImpl implements OneWayService { - - public static Object lock = new Object(); - public static String name; - - public void sayHello(String name) { - OneWayServiceImpl.name = name; - synchronized (OneWayServiceImpl.lock) { - OneWayServiceImpl.lock.notify(); - } - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/definitions/src/main/resources/META-INF/sca-contribution.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/definitions/src/main/resources/META-INF/sca-contribution.xml deleted file mode 100644 index a57e5befe2..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/definitions/src/main/resources/META-INF/sca-contribution.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/definitions/src/main/resources/definitions.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/definitions/src/main/resources/definitions.xml deleted file mode 100644 index 07b9f4aaa8..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/definitions/src/main/resources/definitions.xml +++ /dev/null @@ -1,28 +0,0 @@ - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/definitions/src/main/resources/definitions/definitions.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/definitions/src/main/resources/definitions/definitions.composite deleted file mode 100644 index 6e478e067d..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/definitions/src/main/resources/definitions/definitions.composite +++ /dev/null @@ -1,39 +0,0 @@ - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/definitions/src/main/resources/jndi.properties b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/definitions/src/main/resources/jndi.properties deleted file mode 100644 index d7f64fda62..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/definitions/src/main/resources/jndi.properties +++ /dev/null @@ -1,38 +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. -## --------------------------------------------------------------------------- - -# START SNIPPET: jndi - -java.naming.factory.initial = org.apache.activemq.jndi.ActiveMQInitialContextFactory - -# use the following property to configure the default connector -java.naming.provider.url = vm://localhost?broker.persistent=false&broker.useJmx=false&broker.useShutdownHook=false - -# use the following property to specify the JNDI name the connection factory -# should appear as. -#connectionFactoryNames = connectionFactory, queueConnectionFactory, topicConnectionFactry -connectionFactoryNames = MyConnectionFactory - -# register some queues in JNDI using the form -# queue.[jndiName] = [physicalName] -queue.MyServiceQueue= MyServiceQueue - -# register some topics in JNDI using the form -# topic.[jndiName] = [physicalName] -#topic.MyTopic = example.MyTopic - -# END SNIPPET: jndi diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/definitions/src/test/java/org/apache/tuscany/sca/binding/jms/DefinitionsTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/definitions/src/test/java/org/apache/tuscany/sca/binding/jms/DefinitionsTestCase.java deleted file mode 100644 index 729ad072b7..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/definitions/src/test/java/org/apache/tuscany/sca/binding/jms/DefinitionsTestCase.java +++ /dev/null @@ -1,62 +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 org.apache.tuscany.sca.binding.jms; - -import static org.junit.Assert.assertEquals; - -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; -import org.junit.After; -import org.junit.Before; -import org.junit.Test; - -/** - */ -public class DefinitionsTestCase { - - private Node node; - - @Before - public void init() { - node = NodeFactory.newInstance().createNode().start(); - } - - @Test - public void testSayHello() throws Exception { - OneWayService client = node.getService(OneWayService.class, "OneWayClient"); - - client.sayHello("petra"); - - // wait for up to 5 seconds but should wake up as soon as done - synchronized(OneWayServiceImpl.lock) { - if (OneWayServiceImpl.name == null) { - OneWayServiceImpl.lock.wait(5000); - } - } - - assertEquals("petra", OneWayServiceImpl.name); - } - - @After - public void end() { - if (node != null) { - node.stop(); - } - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/exceptions/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/exceptions/pom.xml deleted file mode 100644 index d2d2e885ea..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/exceptions/pom.xml +++ /dev/null @@ -1,90 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-itest - 2.0-M5 - ../pom.xml - - - itest-jms-nonscaclient-exceptions - Apache Tuscany SCA iTest JMS NonSCA Client Exceptions - - - - - org.apache.tuscany.sca - tuscany-sca-api - 2.0-M5 - - - - org.apache.tuscany.sca - tuscany-node-impl - 2.0-M5 - - - - org.apache.tuscany.sca - tuscany-implementation-java-runtime - 2.0-M5 - runtime - - - - org.apache.tuscany.sca - tuscany-binding-jms-runtime - 2.0-M5 - - - - xmlunit - xmlunit - 1.2 - test - - - - org.apache.activemq - activemq-core - 5.2.0 - runtime - - - org.apache.geronimo.specs - geronimo-jms_1.1_spec - 1.1 - provided - - - org.apache.geronimo.specs - geronimo-jms_1.1_spec - - - - - - - - ${artifactId} - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/exceptions/src/main/java/org/apache/tuscany/sca/binding/jms/CheckedExcpetion.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/exceptions/src/main/java/org/apache/tuscany/sca/binding/jms/CheckedExcpetion.java deleted file mode 100644 index 469882f3b3..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/exceptions/src/main/java/org/apache/tuscany/sca/binding/jms/CheckedExcpetion.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 org.apache.tuscany.sca.binding.jms; - -public class CheckedExcpetion extends Exception { - private static final long serialVersionUID = 1L; - - public CheckedExcpetion(String s) { - super(s); - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/exceptions/src/main/java/org/apache/tuscany/sca/binding/jms/CheckedExcpetion2Args.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/exceptions/src/main/java/org/apache/tuscany/sca/binding/jms/CheckedExcpetion2Args.java deleted file mode 100644 index 19b584950a..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/exceptions/src/main/java/org/apache/tuscany/sca/binding/jms/CheckedExcpetion2Args.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 org.apache.tuscany.sca.binding.jms; - -public class CheckedExcpetion2Args extends Exception { - private static final long serialVersionUID = 1L; - - public CheckedExcpetion2Args(String s, Throwable e) { - super(s, e); - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/exceptions/src/main/java/org/apache/tuscany/sca/binding/jms/CheckedExcpetionChained.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/exceptions/src/main/java/org/apache/tuscany/sca/binding/jms/CheckedExcpetionChained.java deleted file mode 100644 index b12e3a562e..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/exceptions/src/main/java/org/apache/tuscany/sca/binding/jms/CheckedExcpetionChained.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 org.apache.tuscany.sca.binding.jms; - -public class CheckedExcpetionChained extends Exception { - private static final long serialVersionUID = 1L; - - public CheckedExcpetionChained(Throwable e) { - super(e); - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/exceptions/src/main/java/org/apache/tuscany/sca/binding/jms/CheckedExcpetionNoArgs.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/exceptions/src/main/java/org/apache/tuscany/sca/binding/jms/CheckedExcpetionNoArgs.java deleted file mode 100644 index b23db73c01..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/exceptions/src/main/java/org/apache/tuscany/sca/binding/jms/CheckedExcpetionNoArgs.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 org.apache.tuscany.sca.binding.jms; - -public class CheckedExcpetionNoArgs extends Exception { - private static final long serialVersionUID = 1L; - - public CheckedExcpetionNoArgs() { - super(); - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/exceptions/src/main/java/org/apache/tuscany/sca/binding/jms/ExceptionService.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/exceptions/src/main/java/org/apache/tuscany/sca/binding/jms/ExceptionService.java deleted file mode 100644 index 9e4c4c46d4..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/exceptions/src/main/java/org/apache/tuscany/sca/binding/jms/ExceptionService.java +++ /dev/null @@ -1,33 +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 org.apache.tuscany.sca.binding.jms; - -import org.oasisopen.sca.annotation.Remotable; - -@Remotable -public interface ExceptionService { - - public void throwChecked() throws CheckedExcpetion; - public void throwCheckedNoArgs() throws CheckedExcpetionNoArgs; - public void throwChecked2Args() throws CheckedExcpetion2Args; - public void throwCheckedChained() throws CheckedExcpetionChained; - - public void throwUnChecked(); -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/exceptions/src/main/java/org/apache/tuscany/sca/binding/jms/ExceptionServiceImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/exceptions/src/main/java/org/apache/tuscany/sca/binding/jms/ExceptionServiceImpl.java deleted file mode 100644 index 866acf1ce1..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/exceptions/src/main/java/org/apache/tuscany/sca/binding/jms/ExceptionServiceImpl.java +++ /dev/null @@ -1,44 +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 org.apache.tuscany.sca.binding.jms; - -public class ExceptionServiceImpl implements ExceptionService { - - public void throwChecked() throws CheckedExcpetion { - throw new CheckedExcpetion("foo"); - } - - public void throwChecked2Args() throws CheckedExcpetion2Args { - throw new CheckedExcpetion2Args("foo", new Exception("bla")); - } - - public void throwCheckedChained() throws CheckedExcpetionChained { - throw new CheckedExcpetionChained(new Exception("bla")); - } - - public void throwCheckedNoArgs() throws CheckedExcpetionNoArgs { - throw new CheckedExcpetionNoArgs(); - } - - public void throwUnChecked() { - throw new RuntimeException("bla"); - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/exceptions/src/main/resources/META-INF/sca-contribution.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/exceptions/src/main/resources/META-INF/sca-contribution.xml deleted file mode 100644 index 865bb39b4c..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/exceptions/src/main/resources/META-INF/sca-contribution.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/exceptions/src/main/resources/exceptions/service.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/exceptions/src/main/resources/exceptions/service.composite deleted file mode 100644 index 42e33330d7..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/exceptions/src/main/resources/exceptions/service.composite +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/exceptions/src/main/resources/jndi.properties b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/exceptions/src/main/resources/jndi.properties deleted file mode 100644 index 72d5457faf..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/exceptions/src/main/resources/jndi.properties +++ /dev/null @@ -1,40 +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. -## --------------------------------------------------------------------------- - -# START SNIPPET: jndi - -java.naming.factory.initial = org.apache.activemq.jndi.ActiveMQInitialContextFactory - -# use the following property to configure the default connector -java.naming.provider.url = vm://localhost?broker.persistent=false - -# use the following property to specify the JNDI name the connection factory -# should appear as. -#connectionFactoryNames = connectionFactory, queueConnectionFactory, topicConnectionFactry -connectionFactoryNames = ConnectionFactory - -# register some queues in JNDI using the form -# queue.[jndiName] = [physicalName] -queue.TextExceptionService = TextRequestQueue -queue.ObjectExceptionService = ObjectRequestQueue -queue.ResponseQueue = ResponseQueue - -# register some topics in JNDI using the form -# topic.[jndiName] = [physicalName] -#topic.MyTopic = example.MyTopic - -# END SNIPPET: jndi diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/exceptions/src/test/java/org/apache/tuscany/sca/binding/jms/ExceptionsTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/exceptions/src/test/java/org/apache/tuscany/sca/binding/jms/ExceptionsTestCase.java deleted file mode 100644 index a1a6c4aae0..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/exceptions/src/test/java/org/apache/tuscany/sca/binding/jms/ExceptionsTestCase.java +++ /dev/null @@ -1,212 +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 org.apache.tuscany.sca.binding.jms; - -import static org.custommonkey.xmlunit.XMLAssert.assertXMLEqual; -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertTrue; - -import java.io.IOException; -import java.util.Properties; - -import javax.jms.Connection; -import javax.jms.ConnectionFactory; -import javax.jms.Destination; -import javax.jms.JMSException; -import javax.jms.Message; -import javax.jms.MessageConsumer; -import javax.jms.MessageProducer; -import javax.jms.ObjectMessage; -import javax.jms.Session; -import javax.jms.TextMessage; -import javax.naming.InitialContext; -import javax.naming.NamingException; - -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; -import org.junit.After; -import org.junit.Before; -import org.junit.Test; -import org.xml.sax.SAXException; - -/** - * This shows how to test the JMS binding using a simple HelloWorld application. - */ -public class ExceptionsTestCase { - - private Node node; - private Session session; - private InitialContext context; - private Connection connection; - - private static final String CHECKED_XML = - "foo"; - private static final String CHECKED_NOARGS_XML = ""; - private static final String CHECKED_2ARGS_XML = - "foo"; - private static final String CHECKED_CHAINED_XML = - "java.lang.Exception: bla"; - - @Before - public void init() { - node = NodeFactory.newInstance().createNode().start(); - } - - @Test - public void testTextChecked() throws NamingException, JMSException, SAXException, IOException { - sendJMSTextRequest("throwChecked"); - Message m = receiveJMSResponse(); - assertXMLEqual(CHECKED_XML, ((TextMessage)m).getText()); - } - - @Test - public void testTextCheckedNoArgs() throws NamingException, JMSException, SAXException, IOException { - sendJMSTextRequest("throwCheckedNoArgs"); - Message m = receiveJMSResponse(); - assertXMLEqual(CHECKED_NOARGS_XML, ((TextMessage)m).getText()); - } - - @Test - public void testTextChecked2Args() throws NamingException, JMSException, SAXException, IOException { - sendJMSTextRequest("throwChecked2Args"); - Message m = receiveJMSResponse(); - assertXMLEqual(CHECKED_2ARGS_XML, ((TextMessage)m).getText()); - } - - @Test - public void testTextCheckedChained() throws NamingException, JMSException, SAXException, IOException { - sendJMSTextRequest("throwCheckedChained"); - Message m = receiveJMSResponse(); - assertXMLEqual(CHECKED_CHAINED_XML, ((TextMessage)m).getText()); - } - - @Test - public void testTextUnChecked() throws NamingException, JMSException, SAXException, IOException { - sendJMSTextRequest("throwUnChecked"); - Message m = receiveJMSResponse(); - - // FIXME: what should the response message be for unchecked exceptions with wireFormat.textXML??? - Object o = ((ObjectMessage)m).getObject(); - assertTrue(o instanceof RuntimeException); - assertTrue("java.lang.RuntimeException".equals(o.getClass().getName())); - assertEquals("bla", ((RuntimeException)o).getMessage()); - } - - @Test - public void testObjectChecked() throws NamingException, JMSException { - sendJMSObjectRequest("throwChecked"); - Message m = receiveJMSResponse(); - Object o = ((ObjectMessage)m).getObject(); - assertTrue(o instanceof CheckedExcpetion); - assertEquals("foo", ((CheckedExcpetion)o).getMessage()); - } - - @Test - public void testObjectCheckedNoArgs() throws NamingException, JMSException { - sendJMSObjectRequest("throwCheckedNoArgs"); - Message m = receiveJMSResponse(); - Object o = ((ObjectMessage)m).getObject(); - assertTrue(o instanceof CheckedExcpetionNoArgs); - } - - @Test - public void testObjectChecked2Args() throws NamingException, JMSException { - sendJMSObjectRequest("throwChecked2Args"); - Message m = receiveJMSResponse(); - Object o = ((ObjectMessage)m).getObject(); - assertTrue(o instanceof CheckedExcpetion2Args); - assertEquals("foo", ((CheckedExcpetion2Args)o).getMessage()); - assertEquals("bla", ((CheckedExcpetion2Args)o).getCause().getMessage()); - } - - @Test - public void testObjectCheckedChained() throws NamingException, JMSException { - sendJMSObjectRequest("throwCheckedChained"); - Message m = receiveJMSResponse(); - Object o = ((ObjectMessage)m).getObject(); - assertTrue(o instanceof CheckedExcpetionChained); - assertEquals("bla", ((CheckedExcpetionChained)o).getCause().getMessage()); - } - - @Test - public void testObjectUnChecked() throws NamingException, JMSException { - sendJMSObjectRequest("throwUnChecked"); - Message m = receiveJMSResponse(); - Object o = ((ObjectMessage)m).getObject(); - assertTrue(o instanceof RuntimeException); - assertTrue("java.lang.RuntimeException".equals(o.getClass().getName())); - assertEquals("bla", ((RuntimeException)o).getMessage()); - } - - @After - public void end() throws JMSException { - if (node != null) { - node.stop(); - } - if (connection != null) { - connection.close(); - } - } - - private void sendJMSTextRequest(String operationName) throws NamingException, JMSException { - context = new InitialContext(new Properties()); - ConnectionFactory cf = (ConnectionFactory)context.lookup("ConnectionFactory"); - connection = cf.createConnection(); - connection.start(); - - session = connection.createSession(false, Session.AUTO_ACKNOWLEDGE); - Destination toDest = (Destination)context.lookup("TextExceptionService"); - - TextMessage m = session.createTextMessage(); - m.setStringProperty("scaOperationName", operationName); - m.setJMSReplyTo((Destination)context.lookup("ResponseQueue")); - m.setText("<_ns_:" + operationName + " xmlns:_ns_=\"http://jms.binding.sca.tuscany.apache.org/\" />"); - - MessageProducer producer = session.createProducer(toDest); - producer.send(m); - } - - private void sendJMSObjectRequest(String operationName) throws NamingException, JMSException { - context = new InitialContext(new Properties()); - ConnectionFactory cf = (ConnectionFactory)context.lookup("ConnectionFactory"); - connection = cf.createConnection(); - connection.start(); - - session = connection.createSession(false, Session.AUTO_ACKNOWLEDGE); - Destination toDest = (Destination)context.lookup("ObjectExceptionService"); - - ObjectMessage m = session.createObjectMessage(); - m.setStringProperty("scaOperationName", operationName); - m.setJMSReplyTo((Destination)context.lookup("ResponseQueue")); - m.setObject(new Object[0]); - - MessageProducer producer = session.createProducer(toDest); - producer.send(m); - } - - private Message receiveJMSResponse() throws NamingException, JMSException { - Destination replyDest = (Destination)context.lookup("ResponseQueue"); - MessageConsumer consumer = session.createConsumer(replyDest); - Message m = consumer.receive(5000); - if (m == null) { - throw new RuntimeException("No reply message received"); - } - return m; - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/exceptions1/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/exceptions1/pom.xml deleted file mode 100644 index c2505295c2..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/exceptions1/pom.xml +++ /dev/null @@ -1,83 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-itest - 2.0-M5 - ../pom.xml - - - itest-jms-exceptions1 - Apache Tuscany SCA iTest JMS with Exceptions1 - - - - - org.apache.tuscany.sca - tuscany-sca-api - 2.0-M5 - - - - org.apache.tuscany.sca - tuscany-node-impl - 2.0-M5 - - - - org.apache.tuscany.sca - tuscany-implementation-java-runtime - 2.0-M5 - runtime - - - - org.apache.tuscany.sca - tuscany-binding-jms-runtime - 2.0-M5 - - - - org.apache.activemq - activemq-core - 5.2.0 - runtime - - - org.apache.geronimo.specs - geronimo-jms_1.1_spec - 1.1 - provided - - - org.apache.geronimo.specs - geronimo-jms_1.1_spec - - - - - - - - ${artifactId} - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/exceptions1/src/main/java/org/apache/tuscany/sca/binding/jms/CheckedExcpetion.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/exceptions1/src/main/java/org/apache/tuscany/sca/binding/jms/CheckedExcpetion.java deleted file mode 100644 index 469882f3b3..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/exceptions1/src/main/java/org/apache/tuscany/sca/binding/jms/CheckedExcpetion.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 org.apache.tuscany.sca.binding.jms; - -public class CheckedExcpetion extends Exception { - private static final long serialVersionUID = 1L; - - public CheckedExcpetion(String s) { - super(s); - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/exceptions1/src/main/java/org/apache/tuscany/sca/binding/jms/CheckedExcpetion2Args.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/exceptions1/src/main/java/org/apache/tuscany/sca/binding/jms/CheckedExcpetion2Args.java deleted file mode 100644 index 19b584950a..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/exceptions1/src/main/java/org/apache/tuscany/sca/binding/jms/CheckedExcpetion2Args.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 org.apache.tuscany.sca.binding.jms; - -public class CheckedExcpetion2Args extends Exception { - private static final long serialVersionUID = 1L; - - public CheckedExcpetion2Args(String s, Throwable e) { - super(s, e); - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/exceptions1/src/main/java/org/apache/tuscany/sca/binding/jms/CheckedExcpetionChained.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/exceptions1/src/main/java/org/apache/tuscany/sca/binding/jms/CheckedExcpetionChained.java deleted file mode 100644 index b12e3a562e..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/exceptions1/src/main/java/org/apache/tuscany/sca/binding/jms/CheckedExcpetionChained.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 org.apache.tuscany.sca.binding.jms; - -public class CheckedExcpetionChained extends Exception { - private static final long serialVersionUID = 1L; - - public CheckedExcpetionChained(Throwable e) { - super(e); - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/exceptions1/src/main/java/org/apache/tuscany/sca/binding/jms/CheckedExcpetionNoArgs.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/exceptions1/src/main/java/org/apache/tuscany/sca/binding/jms/CheckedExcpetionNoArgs.java deleted file mode 100644 index b23db73c01..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/exceptions1/src/main/java/org/apache/tuscany/sca/binding/jms/CheckedExcpetionNoArgs.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 org.apache.tuscany.sca.binding.jms; - -public class CheckedExcpetionNoArgs extends Exception { - private static final long serialVersionUID = 1L; - - public CheckedExcpetionNoArgs() { - super(); - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/exceptions1/src/main/java/org/apache/tuscany/sca/binding/jms/ExceptionService.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/exceptions1/src/main/java/org/apache/tuscany/sca/binding/jms/ExceptionService.java deleted file mode 100644 index 9e4c4c46d4..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/exceptions1/src/main/java/org/apache/tuscany/sca/binding/jms/ExceptionService.java +++ /dev/null @@ -1,33 +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 org.apache.tuscany.sca.binding.jms; - -import org.oasisopen.sca.annotation.Remotable; - -@Remotable -public interface ExceptionService { - - public void throwChecked() throws CheckedExcpetion; - public void throwCheckedNoArgs() throws CheckedExcpetionNoArgs; - public void throwChecked2Args() throws CheckedExcpetion2Args; - public void throwCheckedChained() throws CheckedExcpetionChained; - - public void throwUnChecked(); -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/exceptions1/src/main/java/org/apache/tuscany/sca/binding/jms/ExceptionServiceClient.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/exceptions1/src/main/java/org/apache/tuscany/sca/binding/jms/ExceptionServiceClient.java deleted file mode 100644 index 02426936d2..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/exceptions1/src/main/java/org/apache/tuscany/sca/binding/jms/ExceptionServiceClient.java +++ /dev/null @@ -1,57 +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 org.apache.tuscany.sca.binding.jms; - -import org.oasisopen.sca.annotation.Reference; -import org.oasisopen.sca.annotation.Service; - -/** - * This class implements the HelloWorld service. - */ -@Service(ExceptionService.class) -public class ExceptionServiceClient implements ExceptionService { - - private ExceptionService service; - - @Reference - public void setService(ExceptionService service) { - this.service = service; - } - - public void throwChecked() throws CheckedExcpetion { - service.throwChecked(); - } - - public void throwChecked2Args() throws CheckedExcpetion2Args { - service.throwChecked2Args(); - } - - public void throwCheckedChained() throws CheckedExcpetionChained { - service.throwCheckedChained(); - } - - public void throwCheckedNoArgs() throws CheckedExcpetionNoArgs { - service.throwCheckedNoArgs(); - } - - public void throwUnChecked() { - service.throwUnChecked(); - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/exceptions1/src/main/java/org/apache/tuscany/sca/binding/jms/ExceptionServiceImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/exceptions1/src/main/java/org/apache/tuscany/sca/binding/jms/ExceptionServiceImpl.java deleted file mode 100644 index 866acf1ce1..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/exceptions1/src/main/java/org/apache/tuscany/sca/binding/jms/ExceptionServiceImpl.java +++ /dev/null @@ -1,44 +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 org.apache.tuscany.sca.binding.jms; - -public class ExceptionServiceImpl implements ExceptionService { - - public void throwChecked() throws CheckedExcpetion { - throw new CheckedExcpetion("foo"); - } - - public void throwChecked2Args() throws CheckedExcpetion2Args { - throw new CheckedExcpetion2Args("foo", new Exception("bla")); - } - - public void throwCheckedChained() throws CheckedExcpetionChained { - throw new CheckedExcpetionChained(new Exception("bla")); - } - - public void throwCheckedNoArgs() throws CheckedExcpetionNoArgs { - throw new CheckedExcpetionNoArgs(); - } - - public void throwUnChecked() { - throw new RuntimeException("bla"); - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/exceptions1/src/main/resources/META-INF/sca-contribution.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/exceptions1/src/main/resources/META-INF/sca-contribution.xml deleted file mode 100644 index 53504398bf..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/exceptions1/src/main/resources/META-INF/sca-contribution.xml +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/exceptions1/src/main/resources/exceptions/client.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/exceptions1/src/main/resources/exceptions/client.composite deleted file mode 100644 index 162d7d68b8..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/exceptions1/src/main/resources/exceptions/client.composite +++ /dev/null @@ -1,31 +0,0 @@ - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/exceptions1/src/main/resources/exceptions/service.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/exceptions1/src/main/resources/exceptions/service.composite deleted file mode 100644 index dce41b86ac..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/exceptions1/src/main/resources/exceptions/service.composite +++ /dev/null @@ -1,31 +0,0 @@ - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/exceptions1/src/main/resources/jndi.properties b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/exceptions1/src/main/resources/jndi.properties deleted file mode 100644 index 4d6acc037b..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/exceptions1/src/main/resources/jndi.properties +++ /dev/null @@ -1,39 +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. -## --------------------------------------------------------------------------- - -# START SNIPPET: jndi - -java.naming.factory.initial = org.apache.activemq.jndi.ActiveMQInitialContextFactory - -# use the following property to configure the default connector -java.naming.provider.url = vm://localhost?broker.persistent=false - -# use the following property to specify the JNDI name the connection factory -# should appear as. -#connectionFactoryNames = connectionFactory, queueConnectionFactory, topicConnectionFactry -connectionFactoryNames = ConnectionFactory - -# register some queues in JNDI using the form -# queue.[jndiName] = [physicalName] -queue.RequestQueue = RequestQueue -queue.ResponseQueue = ResponseQueue - -# register some topics in JNDI using the form -# topic.[jndiName] = [physicalName] -#topic.MyTopic = example.MyTopic - -# END SNIPPET: jndi diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/exceptions1/src/test/java/org/apache/tuscany/sca/binding/jms/ExceptionsTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/exceptions1/src/test/java/org/apache/tuscany/sca/binding/jms/ExceptionsTestCase.java deleted file mode 100644 index 0d897d8703..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/exceptions1/src/test/java/org/apache/tuscany/sca/binding/jms/ExceptionsTestCase.java +++ /dev/null @@ -1,110 +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 org.apache.tuscany.sca.binding.jms; - -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.fail; - -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; -import org.junit.After; -import org.junit.Before; -import org.junit.Test; - -/** - * This shows how to test the JMS binding using a simple HelloWorld application. - */ -public class ExceptionsTestCase { - - private static Node node; - - @Before - public void init() { - node = NodeFactory.newInstance().createNode().start(); - } - - @Test - public void testChecked() { - ExceptionService service = node.getService(ExceptionService.class, "ExceptionServiceClient"); - try { - service.throwChecked(); - fail(); - } catch (CheckedExcpetion e) { - assertEquals("foo", e.getMessage()); - } catch (Throwable e) { - fail(); - } - } - - @Test - public void testCheckedNoArgs() { - ExceptionService service = node.getService(ExceptionService.class, "ExceptionServiceClient"); - try { - service.throwCheckedNoArgs(); - fail(); - } catch (CheckedExcpetionNoArgs e) { - // ok - } - } - - @Test - public void testChecked2Args() { - ExceptionService service = node.getService(ExceptionService.class, "ExceptionServiceClient"); - try { - service.throwChecked2Args(); - fail(); - } catch (CheckedExcpetion2Args e) { - assertEquals("foo", e.getMessage()); -// FIXME: TUSCANY-2848: lost the cause! -// assertNotNull(e.getCause()); -// assertEquals("bla", e.getCause().getMessage()); - } - } - - @Test - public void testCheckedChained() { - ExceptionService service = node.getService(ExceptionService.class, "ExceptionServiceClient"); - try { - service.throwCheckedChained(); - fail(); - } catch (CheckedExcpetionChained e) { - // FIXME: TUSCANY-2848: lost the cause! -// assertNotNull(e.getCause()); -// assertEquals("bla", e.getCause().getMessage()); - } - } - - @Test - public void testUnChecked() { - ExceptionService service = node.getService(ExceptionService.class, "ExceptionServiceClient"); - try { - service.throwUnChecked(); - fail(); - } catch (Exception e) { - assertEquals("bla", e.getCause().getMessage()); - } - } - - @After - public void end() { - if (node != null) { - node.stop(); - } - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/externalBroker/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/externalBroker/pom.xml deleted file mode 100644 index 1cd3835868..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/externalBroker/pom.xml +++ /dev/null @@ -1,83 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-itest - 2.0-M5 - ../pom.xml - - - itest-jms-external-broker - Apache Tuscany SCA iTest JMS with External JMS Broker - - - - - org.apache.tuscany.sca - tuscany-sca-api - 2.0-M5 - - - - org.apache.tuscany.sca - tuscany-node-impl - 2.0-M5 - - - - org.apache.tuscany.sca - tuscany-implementation-java-runtime - 2.0-M5 - runtime - - - - org.apache.tuscany.sca - tuscany-binding-jms-runtime - 2.0-M5 - - - - org.apache.activemq - activemq-core - 5.2.0 - runtime - - - org.apache.geronimo.specs - geronimo-jms_1.1_spec - 1.1 - provided - - - org.apache.geronimo.specs - geronimo-jms_1.1_spec - - - - - - - - ${artifactId} - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/externalBroker/src/main/java/org/apache/tuscany/sca/binding/jms/HelloWorldClientImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/externalBroker/src/main/java/org/apache/tuscany/sca/binding/jms/HelloWorldClientImpl.java deleted file mode 100644 index 9aef6ba1a3..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/externalBroker/src/main/java/org/apache/tuscany/sca/binding/jms/HelloWorldClientImpl.java +++ /dev/null @@ -1,41 +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 org.apache.tuscany.sca.binding.jms; - -import org.oasisopen.sca.annotation.Reference; -import org.oasisopen.sca.annotation.Service; - -/** - * This class implements the HelloWorld service. - */ -@Service(HelloWorldService.class) -public class HelloWorldClientImpl implements HelloWorldService { - - private HelloWorldService serviceA; - - @Reference - public void setServiceA(HelloWorldService service) { - this.serviceA = service; - } - - public String sayHello(String name) { - return serviceA.sayHello(name); - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/externalBroker/src/main/java/org/apache/tuscany/sca/binding/jms/HelloWorldService.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/externalBroker/src/main/java/org/apache/tuscany/sca/binding/jms/HelloWorldService.java deleted file mode 100644 index 430c71aaef..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/externalBroker/src/main/java/org/apache/tuscany/sca/binding/jms/HelloWorldService.java +++ /dev/null @@ -1,26 +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 org.apache.tuscany.sca.binding.jms; - -import org.oasisopen.sca.annotation.Remotable; - -@Remotable -public interface HelloWorldService { - String sayHello(String name); -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/externalBroker/src/main/java/org/apache/tuscany/sca/binding/jms/HelloWorldServiceImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/externalBroker/src/main/java/org/apache/tuscany/sca/binding/jms/HelloWorldServiceImpl.java deleted file mode 100644 index 2c6d9d0d17..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/externalBroker/src/main/java/org/apache/tuscany/sca/binding/jms/HelloWorldServiceImpl.java +++ /dev/null @@ -1,30 +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 org.apache.tuscany.sca.binding.jms; - -public class HelloWorldServiceImpl implements HelloWorldService { - - public String sayHello(String name) { - if ("bang".equals(name)) { - throw new RuntimeException("blem wit"); - } - return "jmsHello " + name; - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/externalBroker/src/main/resources/META-INF/sca-contribution.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/externalBroker/src/main/resources/META-INF/sca-contribution.xml deleted file mode 100644 index 5883e9a2d8..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/externalBroker/src/main/resources/META-INF/sca-contribution.xml +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/externalBroker/src/main/resources/external/client.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/externalBroker/src/main/resources/external/client.composite deleted file mode 100644 index a872a75160..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/externalBroker/src/main/resources/external/client.composite +++ /dev/null @@ -1,36 +0,0 @@ - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/externalBroker/src/main/resources/external/service.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/externalBroker/src/main/resources/external/service.composite deleted file mode 100644 index a22b04ec86..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/externalBroker/src/main/resources/external/service.composite +++ /dev/null @@ -1,36 +0,0 @@ - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/externalBroker/src/main/resources/jndi.properties b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/externalBroker/src/main/resources/jndi.properties deleted file mode 100644 index 4d6acc037b..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/externalBroker/src/main/resources/jndi.properties +++ /dev/null @@ -1,39 +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. -## --------------------------------------------------------------------------- - -# START SNIPPET: jndi - -java.naming.factory.initial = org.apache.activemq.jndi.ActiveMQInitialContextFactory - -# use the following property to configure the default connector -java.naming.provider.url = vm://localhost?broker.persistent=false - -# use the following property to specify the JNDI name the connection factory -# should appear as. -#connectionFactoryNames = connectionFactory, queueConnectionFactory, topicConnectionFactry -connectionFactoryNames = ConnectionFactory - -# register some queues in JNDI using the form -# queue.[jndiName] = [physicalName] -queue.RequestQueue = RequestQueue -queue.ResponseQueue = ResponseQueue - -# register some topics in JNDI using the form -# topic.[jndiName] = [physicalName] -#topic.MyTopic = example.MyTopic - -# END SNIPPET: jndi diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/externalBroker/src/test/java/org/apache/tuscany/sca/binding/jms/ExternalBrokerTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/externalBroker/src/test/java/org/apache/tuscany/sca/binding/jms/ExternalBrokerTestCase.java deleted file mode 100644 index b8cbde7b26..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/externalBroker/src/test/java/org/apache/tuscany/sca/binding/jms/ExternalBrokerTestCase.java +++ /dev/null @@ -1,71 +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 org.apache.tuscany.sca.binding.jms; - -import static org.junit.Assert.assertEquals; - -import org.apache.activemq.broker.BrokerService; -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; -import org.junit.After; -import org.junit.Before; -import org.junit.Test; - -/** - * Tests using the JMS binding with an external JMS broker - */ -public class ExternalBrokerTestCase { - - private static Node node; - private BrokerService broker; - - @Before - public void init() throws Exception { - startBroker(); - node = NodeFactory.newInstance().createNode().start(); - } - - @Test - public void testHelloWorldCreate() throws Exception { - HelloWorldService helloWorldService = node.getService(HelloWorldService.class, "HelloWorldClient"); - assertEquals("jmsHello Petra", helloWorldService.sayHello("Petra")); - } - - @After - public void end() throws Exception { - if (node != null) { - node.stop(); - } - stopBroker(); - } - - protected void startBroker() throws Exception { - broker = new BrokerService(); - broker.setPersistent(false); - broker.setUseJmx(false); - broker.addConnector("tcp://localhost:61616"); - broker.start(); - } - protected void stopBroker() throws Exception { - if (broker != null) { - broker.stop(); - } - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsbytes/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsbytes/pom.xml deleted file mode 100644 index bba3ed864d..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsbytes/pom.xml +++ /dev/null @@ -1,83 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-itest - 2.0-M5 - ../pom.xml - - - itest-jms-format-jmsbytes - Apache Tuscany SCA iTest JMS Message Format jmsbytes - - - - - org.apache.tuscany.sca - tuscany-sca-api - 2.0-M5 - - - - org.apache.tuscany.sca - tuscany-node-impl - 2.0-M5 - - - - org.apache.tuscany.sca - tuscany-implementation-java-runtime - 2.0-M5 - runtime - - - - org.apache.tuscany.sca - tuscany-binding-jms-runtime - 2.0-M5 - - - - org.apache.activemq - activemq-core - 5.2.0 - runtime - - - org.apache.geronimo.specs - geronimo-jms_1.1_spec - 1.1 - provided - - - org.apache.geronimo.specs - geronimo-jms_1.1_spec - - - - - - - - ${artifactId} - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsbytes/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/CheckedException.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsbytes/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/CheckedException.java deleted file mode 100644 index 1acbfbd5ae..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsbytes/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/CheckedException.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 org.apache.tuscany.sca.binding.jms.format.jmsbytes.helloworld; - -public class CheckedException extends Exception { - private static final long serialVersionUID = 1L; - - public CheckedException(String s) { - super(s); - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsbytes/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/HelloWorldReference.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsbytes/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/HelloWorldReference.java deleted file mode 100644 index 2d19d4bd82..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsbytes/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/HelloWorldReference.java +++ /dev/null @@ -1,32 +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 org.apache.tuscany.sca.binding.jms.format.jmsbytes.helloworld; - -import org.oasisopen.sca.annotation.Remotable; - -/** - * This is the business interface of the HelloWorld greetings service. - */ -@Remotable -public interface HelloWorldReference { - - public String getGreetings(String message); - -} - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsbytes/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/HelloWorldReferenceImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsbytes/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/HelloWorldReferenceImpl.java deleted file mode 100644 index 3ccd54e9bd..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsbytes/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/HelloWorldReferenceImpl.java +++ /dev/null @@ -1,50 +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 org.apache.tuscany.sca.binding.jms.format.jmsbytes.helloworld; - -import org.oasisopen.sca.annotation.Reference; - - -public class HelloWorldReferenceImpl implements HelloWorldReference { - - @Reference - protected HelloWorldServiceReference helloWorldService1; - - public String getGreetings(String name){ - byte[] bytesValue = helloWorldService1.getByteArrayGreetings(name.getBytes()); - String stringValue = new String(bytesValue); - - try { - helloWorldService1.throwChecked(name.getBytes()); - } catch (Exception e) { - // Test to see what happens if we talk to a service - // that declares a checked exception through an - // interface that doesn't - stringValue += " " + e.getCause().getMessage(); - } - - try { - helloWorldService1.throwUnChecked(name.getBytes()); - } catch (Exception e) { - stringValue += " " + e.getMessage(); - } - return stringValue; - } -} - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsbytes/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/HelloWorldService.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsbytes/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/HelloWorldService.java deleted file mode 100644 index b9a1ffd5ef..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsbytes/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/HelloWorldService.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 org.apache.tuscany.sca.binding.jms.format.jmsbytes.helloworld; - -import org.oasisopen.sca.annotation.Remotable; - -/** - * This is the business interface of the HelloWorld greetings service. - */ -@Remotable -public interface HelloWorldService { - - public byte[] getByteArrayGreetings(byte[] msg); - - public void throwChecked(byte[] msg) throws CheckedException; - public void throwUnChecked(byte[] msg); - -} - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsbytes/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/HelloWorldServiceImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsbytes/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/HelloWorldServiceImpl.java deleted file mode 100644 index b92959cfd3..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsbytes/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/HelloWorldServiceImpl.java +++ /dev/null @@ -1,40 +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 org.apache.tuscany.sca.binding.jms.format.jmsbytes.helloworld; - - -public class HelloWorldServiceImpl implements HelloWorldService { - - public byte[] getByteArrayGreetings(byte[] msg){ - - String name = new String(msg); - name = "Hello " + name; - - return name.getBytes(); - } - - public void throwChecked(byte[] msg) throws CheckedException { - throw new CheckedException("foo"); - } - - public void throwUnChecked(byte[] msg) { - throw new RuntimeException("bla"); - } -} - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsbytes/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/HelloWorldServiceReference.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsbytes/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/HelloWorldServiceReference.java deleted file mode 100644 index ff5cf617f2..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsbytes/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/HelloWorldServiceReference.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 org.apache.tuscany.sca.binding.jms.format.jmsbytes.helloworld; - -import org.oasisopen.sca.annotation.Remotable; - -/** - * This is the business interface of the HelloWorld greetings service. - */ -@Remotable -public interface HelloWorldServiceReference { - - public byte[] getByteArrayGreetings(byte[] msg); - - public void throwChecked(byte[] msg) ; - public void throwUnChecked(byte[] msg); - -} - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsbytes/src/main/resources/META-INF/sca-contribution.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsbytes/src/main/resources/META-INF/sca-contribution.xml deleted file mode 100644 index ced023ecdd..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsbytes/src/main/resources/META-INF/sca-contribution.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsbytes/src/main/resources/jmsbytes/helloworld.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsbytes/src/main/resources/jmsbytes/helloworld.composite deleted file mode 100644 index cdd079810e..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsbytes/src/main/resources/jmsbytes/helloworld.composite +++ /dev/null @@ -1,45 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsbytes/src/main/resources/jndi.properties b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsbytes/src/main/resources/jndi.properties deleted file mode 100644 index 4d6acc037b..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsbytes/src/main/resources/jndi.properties +++ /dev/null @@ -1,39 +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. -## --------------------------------------------------------------------------- - -# START SNIPPET: jndi - -java.naming.factory.initial = org.apache.activemq.jndi.ActiveMQInitialContextFactory - -# use the following property to configure the default connector -java.naming.provider.url = vm://localhost?broker.persistent=false - -# use the following property to specify the JNDI name the connection factory -# should appear as. -#connectionFactoryNames = connectionFactory, queueConnectionFactory, topicConnectionFactry -connectionFactoryNames = ConnectionFactory - -# register some queues in JNDI using the form -# queue.[jndiName] = [physicalName] -queue.RequestQueue = RequestQueue -queue.ResponseQueue = ResponseQueue - -# register some topics in JNDI using the form -# topic.[jndiName] = [physicalName] -#topic.MyTopic = example.MyTopic - -# END SNIPPET: jndi diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsbytes/src/test/java/org/apache/tuscany/sca/binding/jms/format/FormatJMSBytesTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsbytes/src/test/java/org/apache/tuscany/sca/binding/jms/format/FormatJMSBytesTestCase.java deleted file mode 100644 index 49cb0a69ab..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsbytes/src/test/java/org/apache/tuscany/sca/binding/jms/format/FormatJMSBytesTestCase.java +++ /dev/null @@ -1,69 +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 org.apache.tuscany.sca.binding.jms.format; - -import static org.junit.Assert.assertEquals; - -import org.apache.tuscany.sca.binding.jms.format.jmsbytes.helloworld.HelloWorldReference; -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; -import org.junit.After; -import org.junit.Before; -import org.junit.Test; - - -/** - * This shows how to test the JMS binding using a simple HelloWorld application. - */ -public class FormatJMSBytesTestCase { - - private Node node; - - @Before - public void init() { - node = NodeFactory.newInstance().createNode().start(); - } - - @Test - public void testHelloWorldCreate() throws Exception { - HelloWorldReference helloWorldService = node.getService(HelloWorldReference.class, "HelloWorldReferenceComponent"); - - System.out.println(helloWorldService.getGreetings("Fred Bloggs")); -/* TUSCANY-2967 - disable this change while we decide what to do and - * return faults as JMSObject messages to be consistent - * again with other wire formats - assertEquals("Hello Fred Bloggs " + - "org.apache.tuscany.sca.binding.jms.format.jmsbytes.helloworld.CheckedException: foo " + - "org.osoa.sca.ServiceRuntimeException: java.lang.RuntimeException: bla", - helloWorldService.getGreetings("Fred Bloggs")); -*/ - assertEquals("Hello Fred Bloggs " + - "foo " + - "remote service exception, see nested exception" , - helloWorldService.getGreetings("Fred Bloggs")); - - } - - @After - public void end() { - if (node != null) { - node.stop(); - } - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsbytesxml/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsbytesxml/pom.xml deleted file mode 100644 index 05c97db5b7..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsbytesxml/pom.xml +++ /dev/null @@ -1,83 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-itest - 2.0-M5 - ../pom.xml - - - itest-jms-format-jmsbytesxml - Apache Tuscany SCA iTest JMS Message Format jmsbytesxml - - - - - org.apache.tuscany.sca - tuscany-sca-api - 2.0-M5 - - - - org.apache.tuscany.sca - tuscany-node-impl - 2.0-M5 - - - - org.apache.tuscany.sca - tuscany-implementation-java-runtime - 2.0-M5 - runtime - - - - org.apache.tuscany.sca - tuscany-binding-jms-runtime - 2.0-M5 - - - - org.apache.activemq - activemq-core - 5.2.0 - runtime - - - org.apache.geronimo.specs - geronimo-jms_1.1_spec - 1.1 - provided - - - org.apache.geronimo.specs - geronimo-jms_1.1_spec - - - - - - - - ${artifactId} - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsbytesxml/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytesxml/helloworld/CheckedException.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsbytesxml/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytesxml/helloworld/CheckedException.java deleted file mode 100644 index 1684c19c50..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsbytesxml/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytesxml/helloworld/CheckedException.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 org.apache.tuscany.sca.binding.jms.format.jmsbytesxml.helloworld; - -public class CheckedException extends Exception { - private static final long serialVersionUID = 1L; - - public CheckedException(String s) { - super(s); - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsbytesxml/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytesxml/helloworld/HelloWorldReference.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsbytesxml/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytesxml/helloworld/HelloWorldReference.java deleted file mode 100644 index cc7b7b11e4..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsbytesxml/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytesxml/helloworld/HelloWorldReference.java +++ /dev/null @@ -1,32 +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 org.apache.tuscany.sca.binding.jms.format.jmsbytesxml.helloworld; - -import org.oasisopen.sca.annotation.Remotable; - -/** - * This is the business interface of the HelloWorld greetings service. - */ -@Remotable -public interface HelloWorldReference { - - public String getGreetings(String message); - -} - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsbytesxml/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytesxml/helloworld/HelloWorldReferenceImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsbytesxml/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytesxml/helloworld/HelloWorldReferenceImpl.java deleted file mode 100644 index 3742bd6ac6..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsbytesxml/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytesxml/helloworld/HelloWorldReferenceImpl.java +++ /dev/null @@ -1,46 +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 org.apache.tuscany.sca.binding.jms.format.jmsbytesxml.helloworld; - -import org.oasisopen.sca.annotation.Reference; - -public class HelloWorldReferenceImpl implements HelloWorldReference { - - @Reference - protected HelloWorldService helloWorldService1; - - public String getGreetings(String name){ - byte[] bytesValue = helloWorldService1.getByteArrayGreetings(name.getBytes()); - String stringValue = new String(bytesValue); - - try { - helloWorldService1.throwChecked(name.getBytes()); - } catch (CheckedException e) { - stringValue += " " + e.getMessage(); - } - - try { - helloWorldService1.throwUnChecked(name.getBytes()); - } catch (Exception e) { - stringValue += " " + e.getMessage(); - } - return stringValue; - } -} - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsbytesxml/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytesxml/helloworld/HelloWorldService.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsbytesxml/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytesxml/helloworld/HelloWorldService.java deleted file mode 100644 index eae95b4201..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsbytesxml/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytesxml/helloworld/HelloWorldService.java +++ /dev/null @@ -1,34 +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 org.apache.tuscany.sca.binding.jms.format.jmsbytesxml.helloworld; - -import org.oasisopen.sca.annotation.Remotable; - -/** - * This is the business interface of the HelloWorld greetings service. - */ -@Remotable -public interface HelloWorldService { - - public byte[] getByteArrayGreetings(byte[] msg); - - public void throwChecked(byte[] msg) throws CheckedException; - public void throwUnChecked(byte[] msg); -} - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsbytesxml/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytesxml/helloworld/HelloWorldServiceImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsbytesxml/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytesxml/helloworld/HelloWorldServiceImpl.java deleted file mode 100644 index a37a03d994..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsbytesxml/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytesxml/helloworld/HelloWorldServiceImpl.java +++ /dev/null @@ -1,39 +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 org.apache.tuscany.sca.binding.jms.format.jmsbytesxml.helloworld; - -public class HelloWorldServiceImpl implements HelloWorldService { - - public byte[] getByteArrayGreetings(byte[] msg){ - - String name = new String(msg); - name = "Hello " + name; - - return name.getBytes(); - } - - public void throwChecked(byte[] msg) throws CheckedException { - throw new CheckedException("foo"); - } - - public void throwUnChecked(byte[] msg) { - throw new RuntimeException("bla"); - } -} - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsbytesxml/src/main/resources/META-INF/sca-contribution.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsbytesxml/src/main/resources/META-INF/sca-contribution.xml deleted file mode 100644 index ced023ecdd..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsbytesxml/src/main/resources/META-INF/sca-contribution.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsbytesxml/src/main/resources/jmsbytesxml/helloworld.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsbytesxml/src/main/resources/jmsbytesxml/helloworld.composite deleted file mode 100644 index f74ab86a14..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsbytesxml/src/main/resources/jmsbytesxml/helloworld.composite +++ /dev/null @@ -1,45 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsbytesxml/src/main/resources/jndi.properties b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsbytesxml/src/main/resources/jndi.properties deleted file mode 100644 index 4d6acc037b..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsbytesxml/src/main/resources/jndi.properties +++ /dev/null @@ -1,39 +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. -## --------------------------------------------------------------------------- - -# START SNIPPET: jndi - -java.naming.factory.initial = org.apache.activemq.jndi.ActiveMQInitialContextFactory - -# use the following property to configure the default connector -java.naming.provider.url = vm://localhost?broker.persistent=false - -# use the following property to specify the JNDI name the connection factory -# should appear as. -#connectionFactoryNames = connectionFactory, queueConnectionFactory, topicConnectionFactry -connectionFactoryNames = ConnectionFactory - -# register some queues in JNDI using the form -# queue.[jndiName] = [physicalName] -queue.RequestQueue = RequestQueue -queue.ResponseQueue = ResponseQueue - -# register some topics in JNDI using the form -# topic.[jndiName] = [physicalName] -#topic.MyTopic = example.MyTopic - -# END SNIPPET: jndi diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsbytesxml/src/test/java/org/apache/tuscany/sca/binding/jms/format/FormatJMSBytesXMLTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsbytesxml/src/test/java/org/apache/tuscany/sca/binding/jms/format/FormatJMSBytesXMLTestCase.java deleted file mode 100644 index 53498ce44d..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsbytesxml/src/test/java/org/apache/tuscany/sca/binding/jms/format/FormatJMSBytesXMLTestCase.java +++ /dev/null @@ -1,58 +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 org.apache.tuscany.sca.binding.jms.format; - -import static org.junit.Assert.assertEquals; - -import org.apache.tuscany.sca.binding.jms.format.jmsbytes.helloworld.HelloWorldReference; -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; -import org.junit.After; -import org.junit.Before; -import org.junit.Test; - - -/** - * This shows how to test the JMS binding using a simple HelloWorld application. - */ -public class FormatJMSBytesXMLTestCase { - - private static Node node; - - @Before - public void init() { - node = NodeFactory.newInstance().createNode().start(); - } - - @Test - public void testHelloWorldCreate() throws Exception { - HelloWorldReference helloWorldService = node.getService(HelloWorldReference.class, "HelloWorldReferenceComponent"); - - System.out.println(helloWorldService.getGreetings("Fred Bloggs")); - assertEquals("Hello Fred Bloggs foo remote service exception, see nested exception", helloWorldService.getGreetings("Fred Bloggs")); - - } - - @After - public void end() { - if (node != null) { - node.stop(); - } - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsbytesxml/src/test/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/CheckedException.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsbytesxml/src/test/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/CheckedException.java deleted file mode 100644 index 1acbfbd5ae..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsbytesxml/src/test/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/CheckedException.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 org.apache.tuscany.sca.binding.jms.format.jmsbytes.helloworld; - -public class CheckedException extends Exception { - private static final long serialVersionUID = 1L; - - public CheckedException(String s) { - super(s); - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsbytesxml/src/test/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/HelloWorldReference.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsbytesxml/src/test/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/HelloWorldReference.java deleted file mode 100644 index 2d19d4bd82..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsbytesxml/src/test/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/HelloWorldReference.java +++ /dev/null @@ -1,32 +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 org.apache.tuscany.sca.binding.jms.format.jmsbytes.helloworld; - -import org.oasisopen.sca.annotation.Remotable; - -/** - * This is the business interface of the HelloWorld greetings service. - */ -@Remotable -public interface HelloWorldReference { - - public String getGreetings(String message); - -} - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsbytesxml/src/test/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/HelloWorldReferenceImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsbytesxml/src/test/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/HelloWorldReferenceImpl.java deleted file mode 100644 index 3ccd54e9bd..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsbytesxml/src/test/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/HelloWorldReferenceImpl.java +++ /dev/null @@ -1,50 +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 org.apache.tuscany.sca.binding.jms.format.jmsbytes.helloworld; - -import org.oasisopen.sca.annotation.Reference; - - -public class HelloWorldReferenceImpl implements HelloWorldReference { - - @Reference - protected HelloWorldServiceReference helloWorldService1; - - public String getGreetings(String name){ - byte[] bytesValue = helloWorldService1.getByteArrayGreetings(name.getBytes()); - String stringValue = new String(bytesValue); - - try { - helloWorldService1.throwChecked(name.getBytes()); - } catch (Exception e) { - // Test to see what happens if we talk to a service - // that declares a checked exception through an - // interface that doesn't - stringValue += " " + e.getCause().getMessage(); - } - - try { - helloWorldService1.throwUnChecked(name.getBytes()); - } catch (Exception e) { - stringValue += " " + e.getMessage(); - } - return stringValue; - } -} - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsbytesxml/src/test/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/HelloWorldService.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsbytesxml/src/test/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/HelloWorldService.java deleted file mode 100644 index b9a1ffd5ef..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsbytesxml/src/test/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/HelloWorldService.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 org.apache.tuscany.sca.binding.jms.format.jmsbytes.helloworld; - -import org.oasisopen.sca.annotation.Remotable; - -/** - * This is the business interface of the HelloWorld greetings service. - */ -@Remotable -public interface HelloWorldService { - - public byte[] getByteArrayGreetings(byte[] msg); - - public void throwChecked(byte[] msg) throws CheckedException; - public void throwUnChecked(byte[] msg); - -} - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsbytesxml/src/test/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/HelloWorldServiceImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsbytesxml/src/test/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/HelloWorldServiceImpl.java deleted file mode 100644 index b92959cfd3..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsbytesxml/src/test/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/HelloWorldServiceImpl.java +++ /dev/null @@ -1,40 +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 org.apache.tuscany.sca.binding.jms.format.jmsbytes.helloworld; - - -public class HelloWorldServiceImpl implements HelloWorldService { - - public byte[] getByteArrayGreetings(byte[] msg){ - - String name = new String(msg); - name = "Hello " + name; - - return name.getBytes(); - } - - public void throwChecked(byte[] msg) throws CheckedException { - throw new CheckedException("foo"); - } - - public void throwUnChecked(byte[] msg) { - throw new RuntimeException("bla"); - } -} - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsbytesxml/src/test/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/HelloWorldServiceReference.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsbytesxml/src/test/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/HelloWorldServiceReference.java deleted file mode 100644 index ff5cf617f2..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsbytesxml/src/test/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/HelloWorldServiceReference.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 org.apache.tuscany.sca.binding.jms.format.jmsbytes.helloworld; - -import org.oasisopen.sca.annotation.Remotable; - -/** - * This is the business interface of the HelloWorld greetings service. - */ -@Remotable -public interface HelloWorldServiceReference { - - public byte[] getByteArrayGreetings(byte[] msg); - - public void throwChecked(byte[] msg) ; - public void throwUnChecked(byte[] msg); - -} - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsdefault/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsdefault/pom.xml deleted file mode 100644 index 683eaec806..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsdefault/pom.xml +++ /dev/null @@ -1,83 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-itest - 2.0-M5 - ../pom.xml - - - itest-jms-format-jmsdefault - Apache Tuscany SCA iTest JMS Message Format jmsdefault - - - - - org.apache.tuscany.sca - tuscany-sca-api - 2.0-M5 - - - - org.apache.tuscany.sca - tuscany-node-impl - 2.0-M5 - - - - org.apache.tuscany.sca - tuscany-implementation-java-runtime - 2.0-M5 - runtime - - - - org.apache.tuscany.sca - tuscany-binding-jms-runtime - 2.0-M5 - - - - org.apache.activemq - activemq-core - 5.2.0 - runtime - - - org.apache.geronimo.specs - geronimo-jms_1.1_spec - 1.1 - provided - - - org.apache.geronimo.specs - geronimo-jms_1.1_spec - - - - - - - - ${artifactId} - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsdefault/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/CheckedException.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsdefault/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/CheckedException.java deleted file mode 100644 index 1acbfbd5ae..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsdefault/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/CheckedException.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 org.apache.tuscany.sca.binding.jms.format.jmsbytes.helloworld; - -public class CheckedException extends Exception { - private static final long serialVersionUID = 1L; - - public CheckedException(String s) { - super(s); - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsdefault/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/HelloWorldReference.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsdefault/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/HelloWorldReference.java deleted file mode 100644 index 2d19d4bd82..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsdefault/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/HelloWorldReference.java +++ /dev/null @@ -1,32 +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 org.apache.tuscany.sca.binding.jms.format.jmsbytes.helloworld; - -import org.oasisopen.sca.annotation.Remotable; - -/** - * This is the business interface of the HelloWorld greetings service. - */ -@Remotable -public interface HelloWorldReference { - - public String getGreetings(String message); - -} - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsdefault/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/HelloWorldReferenceImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsdefault/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/HelloWorldReferenceImpl.java deleted file mode 100644 index 3ccd54e9bd..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsdefault/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/HelloWorldReferenceImpl.java +++ /dev/null @@ -1,50 +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 org.apache.tuscany.sca.binding.jms.format.jmsbytes.helloworld; - -import org.oasisopen.sca.annotation.Reference; - - -public class HelloWorldReferenceImpl implements HelloWorldReference { - - @Reference - protected HelloWorldServiceReference helloWorldService1; - - public String getGreetings(String name){ - byte[] bytesValue = helloWorldService1.getByteArrayGreetings(name.getBytes()); - String stringValue = new String(bytesValue); - - try { - helloWorldService1.throwChecked(name.getBytes()); - } catch (Exception e) { - // Test to see what happens if we talk to a service - // that declares a checked exception through an - // interface that doesn't - stringValue += " " + e.getCause().getMessage(); - } - - try { - helloWorldService1.throwUnChecked(name.getBytes()); - } catch (Exception e) { - stringValue += " " + e.getMessage(); - } - return stringValue; - } -} - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsdefault/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/HelloWorldService.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsdefault/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/HelloWorldService.java deleted file mode 100644 index b9a1ffd5ef..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsdefault/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/HelloWorldService.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 org.apache.tuscany.sca.binding.jms.format.jmsbytes.helloworld; - -import org.oasisopen.sca.annotation.Remotable; - -/** - * This is the business interface of the HelloWorld greetings service. - */ -@Remotable -public interface HelloWorldService { - - public byte[] getByteArrayGreetings(byte[] msg); - - public void throwChecked(byte[] msg) throws CheckedException; - public void throwUnChecked(byte[] msg); - -} - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsdefault/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/HelloWorldServiceImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsdefault/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/HelloWorldServiceImpl.java deleted file mode 100644 index b92959cfd3..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsdefault/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/HelloWorldServiceImpl.java +++ /dev/null @@ -1,40 +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 org.apache.tuscany.sca.binding.jms.format.jmsbytes.helloworld; - - -public class HelloWorldServiceImpl implements HelloWorldService { - - public byte[] getByteArrayGreetings(byte[] msg){ - - String name = new String(msg); - name = "Hello " + name; - - return name.getBytes(); - } - - public void throwChecked(byte[] msg) throws CheckedException { - throw new CheckedException("foo"); - } - - public void throwUnChecked(byte[] msg) { - throw new RuntimeException("bla"); - } -} - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsdefault/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/HelloWorldServiceReference.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsdefault/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/HelloWorldServiceReference.java deleted file mode 100644 index ff5cf617f2..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsdefault/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/HelloWorldServiceReference.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 org.apache.tuscany.sca.binding.jms.format.jmsbytes.helloworld; - -import org.oasisopen.sca.annotation.Remotable; - -/** - * This is the business interface of the HelloWorld greetings service. - */ -@Remotable -public interface HelloWorldServiceReference { - - public byte[] getByteArrayGreetings(byte[] msg); - - public void throwChecked(byte[] msg) ; - public void throwUnChecked(byte[] msg); - -} - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsdefault/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsdefault/helloworld/CheckedException.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsdefault/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsdefault/helloworld/CheckedException.java deleted file mode 100644 index 530eac3d00..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsdefault/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsdefault/helloworld/CheckedException.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 org.apache.tuscany.sca.binding.jms.format.jmsdefault.helloworld; - -public class CheckedException extends Exception { - private static final long serialVersionUID = 1L; - - public CheckedException(String s) { - super(s); - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsdefault/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsdefault/helloworld/HelloWorldReference.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsdefault/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsdefault/helloworld/HelloWorldReference.java deleted file mode 100644 index 1768816247..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsdefault/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsdefault/helloworld/HelloWorldReference.java +++ /dev/null @@ -1,36 +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 org.apache.tuscany.sca.binding.jms.format.jmsdefault.helloworld; - -import org.oasisopen.sca.annotation.Remotable; - -/** - * This is the business interface of the HelloWorld greetings service. - */ -@Remotable -public interface HelloWorldReference { - - public String getGreetings(String name); - - public String getPersonGreetings(Person person); - - public void nullInVoidOut(); - -} - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsdefault/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsdefault/helloworld/HelloWorldReferenceImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsdefault/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsdefault/helloworld/HelloWorldReferenceImpl.java deleted file mode 100644 index d0a5faaef7..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsdefault/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsdefault/helloworld/HelloWorldReferenceImpl.java +++ /dev/null @@ -1,85 +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 org.apache.tuscany.sca.binding.jms.format.jmsdefault.helloworld; - -import org.oasisopen.sca.annotation.Reference; - -public class HelloWorldReferenceImpl implements HelloWorldReference { - - @Reference - protected HelloWorldService helloWorldService1; - - @Reference - protected HelloWorldService helloWorldService2; - - @Reference - protected HelloWorldService helloWorldService3; - - @Reference - protected HelloWorldService helloWorldService4; - - public String getGreetings(String name){ - String stringValue = helloWorldService1.getGreetings(name) + " " + - helloWorldService2.getGreetings(name) + " " + - helloWorldService3.getGreetings(name) + " " + - helloWorldService4.getGreetings(name); - - try { - helloWorldService3.throwChecked(name); - } catch (CheckedException e) { - stringValue += " " + e.getMessage(); - } - - try { - helloWorldService3.throwUnChecked(name); - } catch (Exception e) { - stringValue += " " + e.getMessage(); - } - - try { - helloWorldService4.throwChecked(name); - } catch (CheckedException e) { - stringValue += " " + e.getMessage(); - } - - try { - helloWorldService4.throwUnChecked(name); - } catch (Exception e) { - stringValue += " " + e.getMessage(); - } - - return stringValue; - } - - public String getPersonGreetings(Person person){ - return helloWorldService1.getPersonGreetings(person) + " " + - helloWorldService2.getPersonGreetings(person) + " " + - helloWorldService3.getPersonGreetings(person) + " " + - helloWorldService4.getPersonGreetings(person); - } - - public void nullInVoidOut() { - helloWorldService1.nullInVoidOut(); - helloWorldService2.nullInVoidOut(); - helloWorldService3.nullInVoidOut(); - helloWorldService4.nullInVoidOut(); - - } -} - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsdefault/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsdefault/helloworld/HelloWorldService.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsdefault/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsdefault/helloworld/HelloWorldService.java deleted file mode 100644 index 204863423d..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsdefault/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsdefault/helloworld/HelloWorldService.java +++ /dev/null @@ -1,38 +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 org.apache.tuscany.sca.binding.jms.format.jmsdefault.helloworld; - -import org.oasisopen.sca.annotation.Remotable; - -/** - * This is the business interface of the HelloWorld greetings service. - */ -@Remotable -public interface HelloWorldService { - - public String getGreetings(String name); - - public String getPersonGreetings(Person person); - - public void nullInVoidOut(); - - public void throwChecked(String msg) throws CheckedException; - public void throwUnChecked(String msg); -} - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsdefault/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsdefault/helloworld/HelloWorldServiceImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsdefault/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsdefault/helloworld/HelloWorldServiceImpl.java deleted file mode 100644 index b143079fe3..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsdefault/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsdefault/helloworld/HelloWorldServiceImpl.java +++ /dev/null @@ -1,51 +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 org.apache.tuscany.sca.binding.jms.format.jmsdefault.helloworld; - - -public class HelloWorldServiceImpl implements HelloWorldService { - - public static int nullInVoidOutCalled = 0; - - public String getGreetings(String name){ - String response = "Hello " + name; - System.out.println("getGreetings: " + response); - return response; - } - - public String getPersonGreetings(Person person){ - String response = "Hello " + person.getFirstName() + " " + person.getLastName(); - System.out.println("getPersonGreetings: " + response); - return response; - } - - public void nullInVoidOut() { - System.out.println("nullInVoidOut"); - nullInVoidOutCalled++; - } - - public void throwChecked(String msg) throws CheckedException { - throw new CheckedException("foo"); - } - - public void throwUnChecked(String msg) { - throw new RuntimeException("bla"); - } -} - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsdefault/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsdefault/helloworld/Person.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsdefault/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsdefault/helloworld/Person.java deleted file mode 100644 index b62d1b1f1d..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsdefault/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsdefault/helloworld/Person.java +++ /dev/null @@ -1,42 +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 org.apache.tuscany.sca.binding.jms.format.jmsdefault.helloworld; - -public class Person { - String firstName; - String lastName; - - public String getFirstName() { - return firstName; - } - - public void setFirstName(String firstName) { - this.firstName = firstName; - } - - public String getLastName() { - return lastName; - } - - public void setLastName(String lastName) { - this.lastName = lastName; - } - -} - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsdefault/src/main/resources/META-INF/sca-contribution.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsdefault/src/main/resources/META-INF/sca-contribution.xml deleted file mode 100644 index ced023ecdd..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsdefault/src/main/resources/META-INF/sca-contribution.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsdefault/src/main/resources/jmsdefault/helloworld.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsdefault/src/main/resources/jmsdefault/helloworld.composite deleted file mode 100644 index 96fa9abce5..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsdefault/src/main/resources/jmsdefault/helloworld.composite +++ /dev/null @@ -1,94 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsdefault/src/main/resources/jmsdefault/helloworld.wsdl b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsdefault/src/main/resources/jmsdefault/helloworld.wsdl deleted file mode 100644 index 935a2e73c5..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsdefault/src/main/resources/jmsdefault/helloworld.wsdl +++ /dev/null @@ -1,139 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsdefault/src/main/resources/jndi.properties b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsdefault/src/main/resources/jndi.properties deleted file mode 100644 index 4d6acc037b..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsdefault/src/main/resources/jndi.properties +++ /dev/null @@ -1,39 +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. -## --------------------------------------------------------------------------- - -# START SNIPPET: jndi - -java.naming.factory.initial = org.apache.activemq.jndi.ActiveMQInitialContextFactory - -# use the following property to configure the default connector -java.naming.provider.url = vm://localhost?broker.persistent=false - -# use the following property to specify the JNDI name the connection factory -# should appear as. -#connectionFactoryNames = connectionFactory, queueConnectionFactory, topicConnectionFactry -connectionFactoryNames = ConnectionFactory - -# register some queues in JNDI using the form -# queue.[jndiName] = [physicalName] -queue.RequestQueue = RequestQueue -queue.ResponseQueue = ResponseQueue - -# register some topics in JNDI using the form -# topic.[jndiName] = [physicalName] -#topic.MyTopic = example.MyTopic - -# END SNIPPET: jndi diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsdefault/src/test/java/org/apache/tuscany/sca/binding/jms/format/FormatJMSDefaultTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsdefault/src/test/java/org/apache/tuscany/sca/binding/jms/format/FormatJMSDefaultTestCase.java deleted file mode 100644 index 78c0239f0d..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsdefault/src/test/java/org/apache/tuscany/sca/binding/jms/format/FormatJMSDefaultTestCase.java +++ /dev/null @@ -1,68 +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 org.apache.tuscany.sca.binding.jms.format; - -import static org.junit.Assert.assertEquals; - -import org.apache.tuscany.sca.binding.jms.format.jmsdefault.helloworld.HelloWorldReference; -import org.apache.tuscany.sca.binding.jms.format.jmsdefault.helloworld.HelloWorldServiceImpl; -import org.apache.tuscany.sca.binding.jms.format.jmsdefault.helloworld.Person; -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; -import org.junit.After; -import org.junit.Assert; -import org.junit.Before; -import org.junit.Test; - - -/** - * This shows how to test the JMS binding using a simple HelloWorld application. - */ -public class FormatJMSDefaultTestCase { - - private static Node node; - - @Before - public void init() { - node = NodeFactory.newInstance().createNode().start(); - } - - @Test - public void testHelloWorldCreate() throws Exception { - HelloWorldReference helloWorldService = node.getService(HelloWorldReference.class, "HelloWorldReferenceComponent"); - - assertEquals("Hello Fred Bloggs Hello Fred Bloggs Hello Fred Bloggs Hello Fred Bloggs foo remote service exception, see nested exception foo remote service exception, see nested exception", helloWorldService.getGreetings("Fred Bloggs")); - - Person person = new Person(); - person.setFirstName("Fred"); - person.setLastName("Bloggs"); - assertEquals("Hello Fred Bloggs Hello Fred Bloggs Hello Fred Bloggs Hello Fred Bloggs", helloWorldService.getPersonGreetings(person)); - - // this just makes sure that there are no exceptions thrown for this case - helloWorldService.nullInVoidOut(); - Assert.assertEquals(4, HelloWorldServiceImpl.nullInVoidOutCalled); - } - - @After - public void end() { - if (node != null) { - node.stop(); - } - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsmessage/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsmessage/pom.xml deleted file mode 100644 index 2bbdc161c6..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsmessage/pom.xml +++ /dev/null @@ -1,83 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-itest - 2.0-M5 - ../pom.xml - - - itest-jms-format-jmsmessage - Apache Tuscany SCA iTest JMS Message Format jmsmessage - - - - - org.apache.tuscany.sca - tuscany-sca-api - 2.0-M5 - - - - org.apache.tuscany.sca - tuscany-node-impl - 2.0-M5 - - - - org.apache.tuscany.sca - tuscany-implementation-java-runtime - 2.0-M5 - runtime - - - - org.apache.tuscany.sca - tuscany-binding-jms-runtime - 2.0-M5 - - - - org.apache.activemq - activemq-core - 5.2.0 - runtime - - - org.apache.geronimo.specs - geronimo-jms_1.1_spec - 1.1 - provided - - - org.apache.geronimo.specs - geronimo-jms_1.1_spec - - - - - - - - ${artifactId} - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsmessage/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/CheckedException.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsmessage/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/CheckedException.java deleted file mode 100644 index 1acbfbd5ae..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsmessage/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/CheckedException.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 org.apache.tuscany.sca.binding.jms.format.jmsbytes.helloworld; - -public class CheckedException extends Exception { - private static final long serialVersionUID = 1L; - - public CheckedException(String s) { - super(s); - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsmessage/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/HelloWorldReference.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsmessage/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/HelloWorldReference.java deleted file mode 100644 index 2d19d4bd82..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsmessage/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/HelloWorldReference.java +++ /dev/null @@ -1,32 +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 org.apache.tuscany.sca.binding.jms.format.jmsbytes.helloworld; - -import org.oasisopen.sca.annotation.Remotable; - -/** - * This is the business interface of the HelloWorld greetings service. - */ -@Remotable -public interface HelloWorldReference { - - public String getGreetings(String message); - -} - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsmessage/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/HelloWorldReferenceImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsmessage/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/HelloWorldReferenceImpl.java deleted file mode 100644 index 3ccd54e9bd..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsmessage/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/HelloWorldReferenceImpl.java +++ /dev/null @@ -1,50 +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 org.apache.tuscany.sca.binding.jms.format.jmsbytes.helloworld; - -import org.oasisopen.sca.annotation.Reference; - - -public class HelloWorldReferenceImpl implements HelloWorldReference { - - @Reference - protected HelloWorldServiceReference helloWorldService1; - - public String getGreetings(String name){ - byte[] bytesValue = helloWorldService1.getByteArrayGreetings(name.getBytes()); - String stringValue = new String(bytesValue); - - try { - helloWorldService1.throwChecked(name.getBytes()); - } catch (Exception e) { - // Test to see what happens if we talk to a service - // that declares a checked exception through an - // interface that doesn't - stringValue += " " + e.getCause().getMessage(); - } - - try { - helloWorldService1.throwUnChecked(name.getBytes()); - } catch (Exception e) { - stringValue += " " + e.getMessage(); - } - return stringValue; - } -} - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsmessage/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/HelloWorldService.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsmessage/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/HelloWorldService.java deleted file mode 100644 index b9a1ffd5ef..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsmessage/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/HelloWorldService.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 org.apache.tuscany.sca.binding.jms.format.jmsbytes.helloworld; - -import org.oasisopen.sca.annotation.Remotable; - -/** - * This is the business interface of the HelloWorld greetings service. - */ -@Remotable -public interface HelloWorldService { - - public byte[] getByteArrayGreetings(byte[] msg); - - public void throwChecked(byte[] msg) throws CheckedException; - public void throwUnChecked(byte[] msg); - -} - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsmessage/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/HelloWorldServiceImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsmessage/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/HelloWorldServiceImpl.java deleted file mode 100644 index b92959cfd3..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsmessage/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/HelloWorldServiceImpl.java +++ /dev/null @@ -1,40 +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 org.apache.tuscany.sca.binding.jms.format.jmsbytes.helloworld; - - -public class HelloWorldServiceImpl implements HelloWorldService { - - public byte[] getByteArrayGreetings(byte[] msg){ - - String name = new String(msg); - name = "Hello " + name; - - return name.getBytes(); - } - - public void throwChecked(byte[] msg) throws CheckedException { - throw new CheckedException("foo"); - } - - public void throwUnChecked(byte[] msg) { - throw new RuntimeException("bla"); - } -} - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsmessage/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/HelloWorldServiceReference.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsmessage/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/HelloWorldServiceReference.java deleted file mode 100644 index ff5cf617f2..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsmessage/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/HelloWorldServiceReference.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 org.apache.tuscany.sca.binding.jms.format.jmsbytes.helloworld; - -import org.oasisopen.sca.annotation.Remotable; - -/** - * This is the business interface of the HelloWorld greetings service. - */ -@Remotable -public interface HelloWorldServiceReference { - - public byte[] getByteArrayGreetings(byte[] msg); - - public void throwChecked(byte[] msg) ; - public void throwUnChecked(byte[] msg); - -} - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsmessage/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsmessage/helloworld/HelloWorldReference.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsmessage/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsmessage/helloworld/HelloWorldReference.java deleted file mode 100644 index 490bd5d4a3..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsmessage/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsmessage/helloworld/HelloWorldReference.java +++ /dev/null @@ -1,32 +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 org.apache.tuscany.sca.binding.jms.format.jmsmessage.helloworld; - -import org.oasisopen.sca.annotation.Remotable; - -/** - * This is the business interface of the HelloWorld greetings service. - */ -@Remotable -public interface HelloWorldReference { - - public String getGreetings(String message); - -} - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsmessage/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsmessage/helloworld/HelloWorldReferenceImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsmessage/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsmessage/helloworld/HelloWorldReferenceImpl.java deleted file mode 100644 index 5aed6b12d7..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsmessage/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsmessage/helloworld/HelloWorldReferenceImpl.java +++ /dev/null @@ -1,41 +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 org.apache.tuscany.sca.binding.jms.format.jmsmessage.helloworld; - -import org.oasisopen.sca.annotation.Reference; - - -public class HelloWorldReferenceImpl implements HelloWorldReference { - - @Reference - protected HelloWorldServiceReferenceSide helloWorldService1; - - public String getGreetings(String name){ - helloWorldService1.getGreetings(name); - - try { - Thread.sleep(2000); - } catch (Exception ex) { - // do nothing - } - - return HelloWorldServiceImpl.getGreetings(); - } -} - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsmessage/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsmessage/helloworld/HelloWorldService.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsmessage/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsmessage/helloworld/HelloWorldService.java deleted file mode 100644 index efe2f1a4dc..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsmessage/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsmessage/helloworld/HelloWorldService.java +++ /dev/null @@ -1,34 +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 org.apache.tuscany.sca.binding.jms.format.jmsmessage.helloworld; - -import org.oasisopen.sca.annotation.OneWay; -import org.oasisopen.sca.annotation.Remotable; - -/** - * This is the business interface of the HelloWorld greetings service. - */ -@Remotable -public interface HelloWorldService { - - @OneWay - public void onMessage(javax.jms.Message message); - -} - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsmessage/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsmessage/helloworld/HelloWorldServiceImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsmessage/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsmessage/helloworld/HelloWorldServiceImpl.java deleted file mode 100644 index c1011ce6fb..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsmessage/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsmessage/helloworld/HelloWorldServiceImpl.java +++ /dev/null @@ -1,51 +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 org.apache.tuscany.sca.binding.jms.format.jmsmessage.helloworld; - -import javax.jms.TextMessage; - -public class HelloWorldServiceImpl implements HelloWorldService { - - private static String greetings = "not set"; - - public void onMessage(javax.jms.Message message){ - - String name = null; - - try { - name = ((TextMessage)message).getText(); - } catch (Exception ex) { - name = "EXCEPTION"; - } - greetings = "Hello " + name; - } - - public static String getGreetings(){ - return greetings; - } - - // javax.jms.BytesMessage - // javax.jms.MapMessage - // javax.jms.ObjectMessage - // javax.jms.StreamMessage - // javax.jms.TextMessage - - -} - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsmessage/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsmessage/helloworld/HelloWorldServiceReferenceSide.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsmessage/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsmessage/helloworld/HelloWorldServiceReferenceSide.java deleted file mode 100644 index d863b3a0a3..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsmessage/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsmessage/helloworld/HelloWorldServiceReferenceSide.java +++ /dev/null @@ -1,37 +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 org.apache.tuscany.sca.binding.jms.format.jmsmessage.helloworld; - -import javax.jws.soap.SOAPBinding; - -import org.oasisopen.sca.annotation.OneWay; -import org.oasisopen.sca.annotation.Remotable; - -/** - * This is the business interface of the HelloWorld greetings service. - */ -@Remotable -public interface HelloWorldServiceReferenceSide { - - @OneWay - @SOAPBinding(parameterStyle=SOAPBinding.ParameterStyle.BARE) - public void getGreetings(String message); - -} - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsmessage/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsmessage/helloworld/README b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsmessage/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsmessage/helloworld/README deleted file mode 100644 index 0f7a730b91..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsmessage/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsmessage/helloworld/README +++ /dev/null @@ -1,3 +0,0 @@ -This test uses an SCA composite to fake a scenario where the reference is an SCA reference but the -service is a non-SCA JMS endpoint. This gives us the opportunity to play about with the interface -configuration at the reference to see how the contents of the JMS message can be controlled. \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsmessage/src/main/resources/META-INF/sca-contribution.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsmessage/src/main/resources/META-INF/sca-contribution.xml deleted file mode 100644 index ced023ecdd..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsmessage/src/main/resources/META-INF/sca-contribution.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsmessage/src/main/resources/jmsmessage/helloworld.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsmessage/src/main/resources/jmsmessage/helloworld.composite deleted file mode 100644 index 48608ba9b3..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsmessage/src/main/resources/jmsmessage/helloworld.composite +++ /dev/null @@ -1,46 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsmessage/src/main/resources/jmsmessage/helloworld.wsdl b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsmessage/src/main/resources/jmsmessage/helloworld.wsdl deleted file mode 100644 index f72ce434fa..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsmessage/src/main/resources/jmsmessage/helloworld.wsdl +++ /dev/null @@ -1,129 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsmessage/src/main/resources/jndi.properties b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsmessage/src/main/resources/jndi.properties deleted file mode 100644 index 4d6acc037b..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsmessage/src/main/resources/jndi.properties +++ /dev/null @@ -1,39 +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. -## --------------------------------------------------------------------------- - -# START SNIPPET: jndi - -java.naming.factory.initial = org.apache.activemq.jndi.ActiveMQInitialContextFactory - -# use the following property to configure the default connector -java.naming.provider.url = vm://localhost?broker.persistent=false - -# use the following property to specify the JNDI name the connection factory -# should appear as. -#connectionFactoryNames = connectionFactory, queueConnectionFactory, topicConnectionFactry -connectionFactoryNames = ConnectionFactory - -# register some queues in JNDI using the form -# queue.[jndiName] = [physicalName] -queue.RequestQueue = RequestQueue -queue.ResponseQueue = ResponseQueue - -# register some topics in JNDI using the form -# topic.[jndiName] = [physicalName] -#topic.MyTopic = example.MyTopic - -# END SNIPPET: jndi diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsmessage/src/test/java/org/apache/tuscany/sca/binding/jms/format/FormatJMSMessageTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsmessage/src/test/java/org/apache/tuscany/sca/binding/jms/format/FormatJMSMessageTestCase.java deleted file mode 100644 index f47031da10..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsmessage/src/test/java/org/apache/tuscany/sca/binding/jms/format/FormatJMSMessageTestCase.java +++ /dev/null @@ -1,58 +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 org.apache.tuscany.sca.binding.jms.format; - -import static org.junit.Assert.assertEquals; - -import org.apache.tuscany.sca.binding.jms.format.jmsmessage.helloworld.HelloWorldReference; -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; -import org.junit.After; -import org.junit.Before; -import org.junit.Test; - - -/** - * This shows how to test the JMS binding using a simple HelloWorld application. - */ -public class FormatJMSMessageTestCase { - - private static Node node; - - @Before - public void init() { - node = NodeFactory.newInstance().createNode().start(); - } - - @Test - public void testHelloWorldCreate() throws Exception { - HelloWorldReference helloWorldService = node.getService(HelloWorldReference.class, "HelloWorldReferenceComponent"); - - System.out.println(helloWorldService.getGreetings("Fred Bloggs")); - assertEquals("Hello Fred Bloggs", helloWorldService.getGreetings("Fred Bloggs")); - - } - - @After - public void end() { - if (node != null) { - node.stop(); - } - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsobject/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsobject/pom.xml deleted file mode 100644 index 424ac6f024..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsobject/pom.xml +++ /dev/null @@ -1,83 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-itest - 2.0-M5 - ../pom.xml - - - itest-jms-format-jmsobject - Apache Tuscany SCA iTest JMS Message Format jmsobject - - - - - org.apache.tuscany.sca - tuscany-sca-api - 2.0-M5 - - - - org.apache.tuscany.sca - tuscany-node-impl - 2.0-M5 - - - - org.apache.tuscany.sca - tuscany-implementation-java-runtime - 2.0-M5 - runtime - - - - org.apache.tuscany.sca - tuscany-binding-jms-runtime - 2.0-M5 - - - - org.apache.activemq - activemq-core - 5.2.0 - runtime - - - org.apache.geronimo.specs - geronimo-jms_1.1_spec - 1.1 - provided - - - org.apache.geronimo.specs - geronimo-jms_1.1_spec - - - - - - - - ${artifactId} - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsobject/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/CheckedException.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsobject/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/CheckedException.java deleted file mode 100644 index 1acbfbd5ae..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsobject/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/CheckedException.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 org.apache.tuscany.sca.binding.jms.format.jmsbytes.helloworld; - -public class CheckedException extends Exception { - private static final long serialVersionUID = 1L; - - public CheckedException(String s) { - super(s); - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsobject/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/HelloWorldReference.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsobject/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/HelloWorldReference.java deleted file mode 100644 index 2d19d4bd82..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsobject/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/HelloWorldReference.java +++ /dev/null @@ -1,32 +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 org.apache.tuscany.sca.binding.jms.format.jmsbytes.helloworld; - -import org.oasisopen.sca.annotation.Remotable; - -/** - * This is the business interface of the HelloWorld greetings service. - */ -@Remotable -public interface HelloWorldReference { - - public String getGreetings(String message); - -} - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsobject/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/HelloWorldReferenceImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsobject/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/HelloWorldReferenceImpl.java deleted file mode 100644 index 3ccd54e9bd..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsobject/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/HelloWorldReferenceImpl.java +++ /dev/null @@ -1,50 +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 org.apache.tuscany.sca.binding.jms.format.jmsbytes.helloworld; - -import org.oasisopen.sca.annotation.Reference; - - -public class HelloWorldReferenceImpl implements HelloWorldReference { - - @Reference - protected HelloWorldServiceReference helloWorldService1; - - public String getGreetings(String name){ - byte[] bytesValue = helloWorldService1.getByteArrayGreetings(name.getBytes()); - String stringValue = new String(bytesValue); - - try { - helloWorldService1.throwChecked(name.getBytes()); - } catch (Exception e) { - // Test to see what happens if we talk to a service - // that declares a checked exception through an - // interface that doesn't - stringValue += " " + e.getCause().getMessage(); - } - - try { - helloWorldService1.throwUnChecked(name.getBytes()); - } catch (Exception e) { - stringValue += " " + e.getMessage(); - } - return stringValue; - } -} - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsobject/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/HelloWorldService.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsobject/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/HelloWorldService.java deleted file mode 100644 index b9a1ffd5ef..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsobject/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/HelloWorldService.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 org.apache.tuscany.sca.binding.jms.format.jmsbytes.helloworld; - -import org.oasisopen.sca.annotation.Remotable; - -/** - * This is the business interface of the HelloWorld greetings service. - */ -@Remotable -public interface HelloWorldService { - - public byte[] getByteArrayGreetings(byte[] msg); - - public void throwChecked(byte[] msg) throws CheckedException; - public void throwUnChecked(byte[] msg); - -} - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsobject/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/HelloWorldServiceImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsobject/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/HelloWorldServiceImpl.java deleted file mode 100644 index b92959cfd3..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsobject/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/HelloWorldServiceImpl.java +++ /dev/null @@ -1,40 +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 org.apache.tuscany.sca.binding.jms.format.jmsbytes.helloworld; - - -public class HelloWorldServiceImpl implements HelloWorldService { - - public byte[] getByteArrayGreetings(byte[] msg){ - - String name = new String(msg); - name = "Hello " + name; - - return name.getBytes(); - } - - public void throwChecked(byte[] msg) throws CheckedException { - throw new CheckedException("foo"); - } - - public void throwUnChecked(byte[] msg) { - throw new RuntimeException("bla"); - } -} - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsobject/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/HelloWorldServiceReference.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsobject/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/HelloWorldServiceReference.java deleted file mode 100644 index ff5cf617f2..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsobject/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/HelloWorldServiceReference.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 org.apache.tuscany.sca.binding.jms.format.jmsbytes.helloworld; - -import org.oasisopen.sca.annotation.Remotable; - -/** - * This is the business interface of the HelloWorld greetings service. - */ -@Remotable -public interface HelloWorldServiceReference { - - public byte[] getByteArrayGreetings(byte[] msg); - - public void throwChecked(byte[] msg) ; - public void throwUnChecked(byte[] msg); - -} - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsobject/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsobject/helloworld/CheckedException.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsobject/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsobject/helloworld/CheckedException.java deleted file mode 100644 index a1c38f7295..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsobject/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsobject/helloworld/CheckedException.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 org.apache.tuscany.sca.binding.jms.format.jmsobject.helloworld; - -public class CheckedException extends Exception { - private static final long serialVersionUID = 1L; - - public CheckedException(String s) { - super(s); - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsobject/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsobject/helloworld/HelloWorldReference.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsobject/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsobject/helloworld/HelloWorldReference.java deleted file mode 100644 index 3b34dbae85..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsobject/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsobject/helloworld/HelloWorldReference.java +++ /dev/null @@ -1,32 +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 org.apache.tuscany.sca.binding.jms.format.jmsobject.helloworld; - -import org.oasisopen.sca.annotation.Remotable; - -/** - * This is the business interface of the HelloWorld greetings service. - */ -@Remotable -public interface HelloWorldReference { - - public String getGreetingsWrapSingle(String firstName, String lastName); - public String getGreetingsDontWrapSingle(String firstName, String lastName); -} - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsobject/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsobject/helloworld/HelloWorldReferenceImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsobject/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsobject/helloworld/HelloWorldReferenceImpl.java deleted file mode 100644 index 443d2aa746..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsobject/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsobject/helloworld/HelloWorldReferenceImpl.java +++ /dev/null @@ -1,112 +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 org.apache.tuscany.sca.binding.jms.format.jmsobject.helloworld; - -import org.oasisopen.sca.annotation.Reference; - - -public class HelloWorldReferenceImpl implements HelloWorldReference { - - @Reference - protected HelloWorldService helloWorldServiceWrapSingle; - - @Reference - protected HelloWorldService helloWorldServiceDontWrapSingle; - - public String getGreetingsWrapSingle(String firstName, String lastName){ - Person person = new Person(); - person.setFirstName(firstName); - person.setLastName(lastName); - - String returnString = ""; - - Person returnPerson = helloWorldServiceWrapSingle.getPersonGreetings(person); - returnString = returnPerson.getFirstName() + " " + returnPerson.getLastName(); - - Person returnNullPerson = helloWorldServiceWrapSingle.getNullReturnGreetings(person); - - if (returnNullPerson == null){ - returnString += " Hello2 null"; - } - - String returnGreeting = helloWorldServiceWrapSingle.getArrayGreeting(new String[]{firstName, lastName}); - returnString += " " + returnGreeting; - - returnGreeting = helloWorldServiceWrapSingle.getMultiArrayGreetings(new String[]{firstName, firstName},new String[]{lastName, lastName}); - returnString += " " + returnGreeting; - - returnGreeting = helloWorldServiceWrapSingle.getMultiGreetings(firstName, lastName); - returnString += " " + returnGreeting; - - returnGreeting = helloWorldServiceWrapSingle.getObjectGreeting(person); - returnString += " " + returnGreeting; - - returnGreeting = helloWorldServiceWrapSingle.getObjectArrayGreeting(new Object[]{person}); - returnString += " " + returnGreeting; - - return returnString; - } - - public String getGreetingsDontWrapSingle(String firstName, String lastName){ - Person person = new Person(); - person.setFirstName(firstName); - person.setLastName(lastName); - - String returnString = ""; - - Person returnPerson = helloWorldServiceDontWrapSingle.getPersonGreetings(person); - returnString = returnPerson.getFirstName() + " " + returnPerson.getLastName(); - - Person returnNullPerson = helloWorldServiceDontWrapSingle.getNullReturnGreetings(person); - - if (returnNullPerson == null){ - returnString += " Hello2 null"; - } - - String returnGreeting = helloWorldServiceDontWrapSingle.getArrayGreeting(new String[]{firstName, lastName}); - returnString += " " + returnGreeting; - - returnGreeting = helloWorldServiceDontWrapSingle.getMultiArrayGreetings(new String[]{firstName, firstName},new String[]{lastName, lastName}); - returnString += " " + returnGreeting; - - returnGreeting = helloWorldServiceDontWrapSingle.getMultiGreetings(firstName, lastName); - returnString += " " + returnGreeting; - - returnGreeting = helloWorldServiceDontWrapSingle.getObjectGreeting(person); - returnString += " " + returnGreeting; - - returnGreeting = helloWorldServiceDontWrapSingle.getObjectArrayGreeting(new Object[]{person}); - returnString += " " + returnGreeting; - - try { - helloWorldServiceDontWrapSingle.throwChecked(person); - } catch (CheckedException e) { - returnString += " " + e.getMessage(); - } - - try { - helloWorldServiceDontWrapSingle.throwUnChecked(person); - } catch (Exception e) { - returnString += " " + e.getCause().getMessage(); - } - - return returnString; - } -} - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsobject/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsobject/helloworld/HelloWorldService.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsobject/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsobject/helloworld/HelloWorldService.java deleted file mode 100644 index b179a86f52..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsobject/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsobject/helloworld/HelloWorldService.java +++ /dev/null @@ -1,41 +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 org.apache.tuscany.sca.binding.jms.format.jmsobject.helloworld; - -import org.oasisopen.sca.annotation.Remotable; - -/** - * This is the business interface of the HelloWorld greetings service. - */ -@Remotable -public interface HelloWorldService { - - public Person getPersonGreetings(Person person); - public Person getNullReturnGreetings(Person person); - public String getArrayGreeting(String[] names); - public String getMultiArrayGreetings(String[] firstName, String[] lastName); - public String getMultiGreetings(String firstName, String lastName); - public String getObjectGreeting(Object person); - public String getObjectArrayGreeting(Object[] pearson); - - public void throwChecked(Person person) throws CheckedException; - public void throwUnChecked(Person person); - -} - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsobject/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsobject/helloworld/HelloWorldServiceImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsobject/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsobject/helloworld/HelloWorldServiceImpl.java deleted file mode 100644 index fa9e9eb1cb..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsobject/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsobject/helloworld/HelloWorldServiceImpl.java +++ /dev/null @@ -1,63 +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 org.apache.tuscany.sca.binding.jms.format.jmsobject.helloworld; - -public class HelloWorldServiceImpl implements HelloWorldService { - - public Person getPersonGreetings(Person person){ - - person.setFirstName("Hello1 " + person.getFirstName()); - person.setLastName("Hello1 " + person.getLastName()); - - return person; - } - - public Person getNullReturnGreetings(Person person){ - return null; - } - - public String getArrayGreeting(String[] names) { - return "Hello3 " + names[0]; - } - - public String getMultiArrayGreetings(String[] firstName, String[] lastName) { - return "Hello4 " + firstName[0] + " " + lastName[0]; - } - - public String getMultiGreetings(String firstName, String lastName) { - return "Hello5 " + firstName + " " + lastName; - } - - public String getObjectGreeting(Object person) { - return "Hello6 " + ((Person)person).getFirstName() + " " + ((Person)person).getLastName(); - } - - public String getObjectArrayGreeting(Object[] person) { - return "Hello7 " + ((Person)person[0]).getFirstName() + " " + ((Person)person[0]).getLastName(); - } - - public void throwChecked(Person person) throws CheckedException { - throw new CheckedException("foo"); - } - - public void throwUnChecked(Person person) { - throw new RuntimeException("bla"); - } -} - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsobject/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsobject/helloworld/Person.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsobject/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsobject/helloworld/Person.java deleted file mode 100644 index 29233d74a9..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsobject/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsobject/helloworld/Person.java +++ /dev/null @@ -1,47 +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 org.apache.tuscany.sca.binding.jms.format.jmsobject.helloworld; - -import java.io.Serializable; - -public class Person implements Serializable { - - private static final long serialVersionUID = -6842761353978551779L; - - String firstName; - String lastName; - - public String getFirstName() { - return firstName; - } - - public void setFirstName(String firstName) { - this.firstName = firstName; - } - - public String getLastName() { - return lastName; - } - - public void setLastName(String lastName) { - this.lastName = lastName; - } - -} - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsobject/src/main/resources/META-INF/sca-contribution.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsobject/src/main/resources/META-INF/sca-contribution.xml deleted file mode 100644 index ced023ecdd..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsobject/src/main/resources/META-INF/sca-contribution.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsobject/src/main/resources/jmsobject/helloworld.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsobject/src/main/resources/jmsobject/helloworld.composite deleted file mode 100644 index aa81e59b52..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsobject/src/main/resources/jmsobject/helloworld.composite +++ /dev/null @@ -1,62 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsobject/src/main/resources/jmsobject/helloworld.wsdl b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsobject/src/main/resources/jmsobject/helloworld.wsdl deleted file mode 100644 index 4625f46578..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsobject/src/main/resources/jmsobject/helloworld.wsdl +++ /dev/null @@ -1,368 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsobject/src/main/resources/jndi.properties b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsobject/src/main/resources/jndi.properties deleted file mode 100644 index 4d6acc037b..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsobject/src/main/resources/jndi.properties +++ /dev/null @@ -1,39 +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. -## --------------------------------------------------------------------------- - -# START SNIPPET: jndi - -java.naming.factory.initial = org.apache.activemq.jndi.ActiveMQInitialContextFactory - -# use the following property to configure the default connector -java.naming.provider.url = vm://localhost?broker.persistent=false - -# use the following property to specify the JNDI name the connection factory -# should appear as. -#connectionFactoryNames = connectionFactory, queueConnectionFactory, topicConnectionFactry -connectionFactoryNames = ConnectionFactory - -# register some queues in JNDI using the form -# queue.[jndiName] = [physicalName] -queue.RequestQueue = RequestQueue -queue.ResponseQueue = ResponseQueue - -# register some topics in JNDI using the form -# topic.[jndiName] = [physicalName] -#topic.MyTopic = example.MyTopic - -# END SNIPPET: jndi diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsobject/src/test/java/org/apache/tuscany/sca/binding/jms/format/FormatJMSObjectTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsobject/src/test/java/org/apache/tuscany/sca/binding/jms/format/FormatJMSObjectTestCase.java deleted file mode 100644 index a2bfc0ca8a..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmsobject/src/test/java/org/apache/tuscany/sca/binding/jms/format/FormatJMSObjectTestCase.java +++ /dev/null @@ -1,73 +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 org.apache.tuscany.sca.binding.jms.format; - -import static org.junit.Assert.assertEquals; - -import org.apache.tuscany.sca.binding.jms.format.jmsobject.helloworld.HelloWorldReference; -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; -import org.junit.After; -import org.junit.Before; -import org.junit.Ignore; -import org.junit.Test; - - -/** - * This shows how to test the JMS binding using a simple HelloWorld application. - */ -public class FormatJMSObjectTestCase { - - private static Node node; - - @Before - public void init() { - node = NodeFactory.newInstance().createNode().start(); - } - - @Test - public void testHelloWorldCreate() throws Exception { - HelloWorldReference helloWorldService = node.getService(HelloWorldReference.class, "HelloWorldReferenceComponent"); - - assertEquals("Hello1 Fred Hello1 Bloggs Hello2 null Hello3 Fred Hello4 Fred Bloggs Hello5 Fred Bloggs Hello6 Fred Bloggs Hello7 Fred Bloggs", - helloWorldService.getGreetingsWrapSingle("Fred", "Bloggs")); - - assertEquals("Hello1 Fred Hello1 Bloggs Hello2 null Hello3 Fred Hello4 Fred Bloggs Hello5 Fred Bloggs Hello6 Fred Bloggs Hello7 Fred Bloggs foo bla", - helloWorldService.getGreetingsDontWrapSingle("Fred", "Bloggs")); - - } - - @Ignore - @Test - public void testWaitForInput() { - System.out.println("Press a key to end"); - try { - System.in.read(); - } catch (Exception ex) { - } - System.out.println("Shutting down"); - } - - @After - public void end() { - if (node != null) { - node.stop(); - } - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstext/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstext/pom.xml deleted file mode 100644 index 55a922212a..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstext/pom.xml +++ /dev/null @@ -1,83 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-itest - 2.0-M5 - ../pom.xml - - - itest-jms-format-jmstext - Apache Tuscany SCA iTest JMS Message Format jmstext - - - - - org.apache.tuscany.sca - tuscany-sca-api - 2.0-M5 - - - - org.apache.tuscany.sca - tuscany-node-impl - 2.0-M5 - - - - org.apache.tuscany.sca - tuscany-implementation-java-runtime - 2.0-M5 - runtime - - - - org.apache.tuscany.sca - tuscany-binding-jms-runtime - 2.0-M5 - - - - org.apache.activemq - activemq-core - 5.2.0 - runtime - - - org.apache.geronimo.specs - geronimo-jms_1.1_spec - 1.1 - provided - - - org.apache.geronimo.specs - geronimo-jms_1.1_spec - - - - - - - - ${artifactId} - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstext/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/CheckedException.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstext/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/CheckedException.java deleted file mode 100644 index 1acbfbd5ae..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstext/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/CheckedException.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 org.apache.tuscany.sca.binding.jms.format.jmsbytes.helloworld; - -public class CheckedException extends Exception { - private static final long serialVersionUID = 1L; - - public CheckedException(String s) { - super(s); - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstext/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/HelloWorldReference.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstext/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/HelloWorldReference.java deleted file mode 100644 index 2d19d4bd82..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstext/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/HelloWorldReference.java +++ /dev/null @@ -1,32 +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 org.apache.tuscany.sca.binding.jms.format.jmsbytes.helloworld; - -import org.oasisopen.sca.annotation.Remotable; - -/** - * This is the business interface of the HelloWorld greetings service. - */ -@Remotable -public interface HelloWorldReference { - - public String getGreetings(String message); - -} - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstext/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/HelloWorldReferenceImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstext/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/HelloWorldReferenceImpl.java deleted file mode 100644 index 3ccd54e9bd..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstext/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/HelloWorldReferenceImpl.java +++ /dev/null @@ -1,50 +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 org.apache.tuscany.sca.binding.jms.format.jmsbytes.helloworld; - -import org.oasisopen.sca.annotation.Reference; - - -public class HelloWorldReferenceImpl implements HelloWorldReference { - - @Reference - protected HelloWorldServiceReference helloWorldService1; - - public String getGreetings(String name){ - byte[] bytesValue = helloWorldService1.getByteArrayGreetings(name.getBytes()); - String stringValue = new String(bytesValue); - - try { - helloWorldService1.throwChecked(name.getBytes()); - } catch (Exception e) { - // Test to see what happens if we talk to a service - // that declares a checked exception through an - // interface that doesn't - stringValue += " " + e.getCause().getMessage(); - } - - try { - helloWorldService1.throwUnChecked(name.getBytes()); - } catch (Exception e) { - stringValue += " " + e.getMessage(); - } - return stringValue; - } -} - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstext/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/HelloWorldService.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstext/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/HelloWorldService.java deleted file mode 100644 index b9a1ffd5ef..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstext/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/HelloWorldService.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 org.apache.tuscany.sca.binding.jms.format.jmsbytes.helloworld; - -import org.oasisopen.sca.annotation.Remotable; - -/** - * This is the business interface of the HelloWorld greetings service. - */ -@Remotable -public interface HelloWorldService { - - public byte[] getByteArrayGreetings(byte[] msg); - - public void throwChecked(byte[] msg) throws CheckedException; - public void throwUnChecked(byte[] msg); - -} - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstext/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/HelloWorldServiceImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstext/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/HelloWorldServiceImpl.java deleted file mode 100644 index b92959cfd3..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstext/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/HelloWorldServiceImpl.java +++ /dev/null @@ -1,40 +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 org.apache.tuscany.sca.binding.jms.format.jmsbytes.helloworld; - - -public class HelloWorldServiceImpl implements HelloWorldService { - - public byte[] getByteArrayGreetings(byte[] msg){ - - String name = new String(msg); - name = "Hello " + name; - - return name.getBytes(); - } - - public void throwChecked(byte[] msg) throws CheckedException { - throw new CheckedException("foo"); - } - - public void throwUnChecked(byte[] msg) { - throw new RuntimeException("bla"); - } -} - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstext/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/HelloWorldServiceReference.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstext/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/HelloWorldServiceReference.java deleted file mode 100644 index ff5cf617f2..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstext/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/HelloWorldServiceReference.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 org.apache.tuscany.sca.binding.jms.format.jmsbytes.helloworld; - -import org.oasisopen.sca.annotation.Remotable; - -/** - * This is the business interface of the HelloWorld greetings service. - */ -@Remotable -public interface HelloWorldServiceReference { - - public byte[] getByteArrayGreetings(byte[] msg); - - public void throwChecked(byte[] msg) ; - public void throwUnChecked(byte[] msg); - -} - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstext/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmstext/helloworld/CheckedException.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstext/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmstext/helloworld/CheckedException.java deleted file mode 100644 index 57ad23e064..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstext/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmstext/helloworld/CheckedException.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 org.apache.tuscany.sca.binding.jms.format.jmstext.helloworld; - -public class CheckedException extends Exception { - private static final long serialVersionUID = 1L; - - public CheckedException(String s) { - super(s); - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstext/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmstext/helloworld/HelloWorldReference.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstext/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmstext/helloworld/HelloWorldReference.java deleted file mode 100644 index ea8d5ffd28..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstext/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmstext/helloworld/HelloWorldReference.java +++ /dev/null @@ -1,32 +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 org.apache.tuscany.sca.binding.jms.format.jmstext.helloworld; - -import org.oasisopen.sca.annotation.Remotable; - -/** - * This is the business interface of the HelloWorld greetings service. - */ -@Remotable -public interface HelloWorldReference { - - public String getGreetings(String message); - -} - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstext/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmstext/helloworld/HelloWorldReferenceImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstext/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmstext/helloworld/HelloWorldReferenceImpl.java deleted file mode 100644 index afcd391009..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstext/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmstext/helloworld/HelloWorldReferenceImpl.java +++ /dev/null @@ -1,46 +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 org.apache.tuscany.sca.binding.jms.format.jmstext.helloworld; - -import org.oasisopen.sca.annotation.Reference; - - -public class HelloWorldReferenceImpl implements HelloWorldReference { - - @Reference - protected HelloWorldService helloWorldService1; - - public String getGreetings(String name){ - String stringValue = helloWorldService1.getStringGreetings(name); - - try { - helloWorldService1.throwChecked(name); - } catch (Exception e) { - stringValue += " " + e.getMessage(); - } - - try { - helloWorldService1.throwUnChecked(name); - } catch (Exception e) { - stringValue += " " + e.getMessage(); - } - return stringValue; - } -} - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstext/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmstext/helloworld/HelloWorldService.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstext/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmstext/helloworld/HelloWorldService.java deleted file mode 100644 index 8af585c13c..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstext/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmstext/helloworld/HelloWorldService.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 org.apache.tuscany.sca.binding.jms.format.jmstext.helloworld; - -import org.oasisopen.sca.annotation.Remotable; - -/** - * This is the business interface of the HelloWorld greetings service. - */ -@Remotable -public interface HelloWorldService { - - public String getStringGreetings(String msg); - - public void throwChecked(String msg) throws CheckedException; - public void throwUnChecked(String msg); - -} - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstext/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmstext/helloworld/HelloWorldServiceImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstext/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmstext/helloworld/HelloWorldServiceImpl.java deleted file mode 100644 index 4f0a6fe4c5..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstext/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmstext/helloworld/HelloWorldServiceImpl.java +++ /dev/null @@ -1,38 +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 org.apache.tuscany.sca.binding.jms.format.jmstext.helloworld; - - -public class HelloWorldServiceImpl implements HelloWorldService { - - public String getStringGreetings(String msg){ - - msg = "Hello " + msg; - return msg; - } - - public void throwChecked(String msg) throws CheckedException { - throw new CheckedException("foo"); - } - - public void throwUnChecked(String msg) { - throw new RuntimeException("bla"); - } -} - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstext/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmstext/helloworld/HelloWorldServiceReference.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstext/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmstext/helloworld/HelloWorldServiceReference.java deleted file mode 100644 index a8dd686725..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstext/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmstext/helloworld/HelloWorldServiceReference.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 org.apache.tuscany.sca.binding.jms.format.jmstext.helloworld; - -import org.oasisopen.sca.annotation.Remotable; - -/** - * This is the business interface of the HelloWorld greetings service. - */ -@Remotable -public interface HelloWorldServiceReference { - - public String getStringGreetings(String msg); - - public void throwChecked(String msg) ; - public void throwUnChecked(String msg); - -} - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstext/src/main/resources/META-INF/sca-contribution.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstext/src/main/resources/META-INF/sca-contribution.xml deleted file mode 100644 index ced023ecdd..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstext/src/main/resources/META-INF/sca-contribution.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstext/src/main/resources/jmstext/helloworld.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstext/src/main/resources/jmstext/helloworld.composite deleted file mode 100644 index a9e8782f94..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstext/src/main/resources/jmstext/helloworld.composite +++ /dev/null @@ -1,45 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstext/src/main/resources/jndi.properties b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstext/src/main/resources/jndi.properties deleted file mode 100644 index 4d6acc037b..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstext/src/main/resources/jndi.properties +++ /dev/null @@ -1,39 +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. -## --------------------------------------------------------------------------- - -# START SNIPPET: jndi - -java.naming.factory.initial = org.apache.activemq.jndi.ActiveMQInitialContextFactory - -# use the following property to configure the default connector -java.naming.provider.url = vm://localhost?broker.persistent=false - -# use the following property to specify the JNDI name the connection factory -# should appear as. -#connectionFactoryNames = connectionFactory, queueConnectionFactory, topicConnectionFactry -connectionFactoryNames = ConnectionFactory - -# register some queues in JNDI using the form -# queue.[jndiName] = [physicalName] -queue.RequestQueue = RequestQueue -queue.ResponseQueue = ResponseQueue - -# register some topics in JNDI using the form -# topic.[jndiName] = [physicalName] -#topic.MyTopic = example.MyTopic - -# END SNIPPET: jndi diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstext/src/test/java/org/apache/tuscany/sca/binding/jms/format/FormatJMSTextTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstext/src/test/java/org/apache/tuscany/sca/binding/jms/format/FormatJMSTextTestCase.java deleted file mode 100644 index b887aa18fd..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstext/src/test/java/org/apache/tuscany/sca/binding/jms/format/FormatJMSTextTestCase.java +++ /dev/null @@ -1,60 +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 org.apache.tuscany.sca.binding.jms.format; - -import static org.junit.Assert.assertEquals; - -import org.apache.tuscany.sca.binding.jms.format.jmsbytes.helloworld.HelloWorldReference; -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; -import org.junit.After; -import org.junit.Before; -import org.junit.Test; - - -/** - * This shows how to test the JMS binding using a simple HelloWorld application. - */ -public class FormatJMSTextTestCase { - - private static Node node; - - @Before - public void init() { - node = NodeFactory.newInstance().createNode().start(); - } - - @Test - public void testHelloWorldCreate() throws Exception { - HelloWorldReference helloWorldService = node.getService(HelloWorldReference.class, "HelloWorldReferenceComponent"); - - System.out.println(helloWorldService.getGreetings("Fred Bloggs")); - assertEquals("Hello Fred Bloggs " + - "foo remote service exception, see nested exception", - helloWorldService.getGreetings("Fred Bloggs")); - - } - - @After - public void end() { - if (node != null) { - node.stop(); - } - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxml/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxml/pom.xml deleted file mode 100644 index 778144c220..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxml/pom.xml +++ /dev/null @@ -1,83 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-itest - 2.0-M5 - ../pom.xml - - - itest-jms-format-jmstextxml - Apache Tuscany SCA iTest JMS Message Format jmstextxml - - - - - org.apache.tuscany.sca - tuscany-sca-api - 2.0-M5 - - - - org.apache.tuscany.sca - tuscany-node-impl - 2.0-M5 - - - - org.apache.tuscany.sca - tuscany-implementation-java-runtime - 2.0-M5 - runtime - - - - org.apache.tuscany.sca - tuscany-binding-jms-runtime - 2.0-M5 - - - - org.apache.activemq - activemq-core - 5.2.0 - runtime - - - org.apache.geronimo.specs - geronimo-jms_1.1_spec - 1.1 - provided - - - org.apache.geronimo.specs - geronimo-jms_1.1_spec - - - - - - - - ${artifactId} - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxml/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/CheckedException.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxml/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/CheckedException.java deleted file mode 100644 index 1acbfbd5ae..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxml/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/CheckedException.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 org.apache.tuscany.sca.binding.jms.format.jmsbytes.helloworld; - -public class CheckedException extends Exception { - private static final long serialVersionUID = 1L; - - public CheckedException(String s) { - super(s); - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxml/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/HelloWorldReference.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxml/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/HelloWorldReference.java deleted file mode 100644 index 2d19d4bd82..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxml/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/HelloWorldReference.java +++ /dev/null @@ -1,32 +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 org.apache.tuscany.sca.binding.jms.format.jmsbytes.helloworld; - -import org.oasisopen.sca.annotation.Remotable; - -/** - * This is the business interface of the HelloWorld greetings service. - */ -@Remotable -public interface HelloWorldReference { - - public String getGreetings(String message); - -} - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxml/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/HelloWorldReferenceImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxml/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/HelloWorldReferenceImpl.java deleted file mode 100644 index 3ccd54e9bd..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxml/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/HelloWorldReferenceImpl.java +++ /dev/null @@ -1,50 +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 org.apache.tuscany.sca.binding.jms.format.jmsbytes.helloworld; - -import org.oasisopen.sca.annotation.Reference; - - -public class HelloWorldReferenceImpl implements HelloWorldReference { - - @Reference - protected HelloWorldServiceReference helloWorldService1; - - public String getGreetings(String name){ - byte[] bytesValue = helloWorldService1.getByteArrayGreetings(name.getBytes()); - String stringValue = new String(bytesValue); - - try { - helloWorldService1.throwChecked(name.getBytes()); - } catch (Exception e) { - // Test to see what happens if we talk to a service - // that declares a checked exception through an - // interface that doesn't - stringValue += " " + e.getCause().getMessage(); - } - - try { - helloWorldService1.throwUnChecked(name.getBytes()); - } catch (Exception e) { - stringValue += " " + e.getMessage(); - } - return stringValue; - } -} - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxml/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/HelloWorldService.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxml/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/HelloWorldService.java deleted file mode 100644 index b9a1ffd5ef..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxml/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/HelloWorldService.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 org.apache.tuscany.sca.binding.jms.format.jmsbytes.helloworld; - -import org.oasisopen.sca.annotation.Remotable; - -/** - * This is the business interface of the HelloWorld greetings service. - */ -@Remotable -public interface HelloWorldService { - - public byte[] getByteArrayGreetings(byte[] msg); - - public void throwChecked(byte[] msg) throws CheckedException; - public void throwUnChecked(byte[] msg); - -} - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxml/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/HelloWorldServiceImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxml/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/HelloWorldServiceImpl.java deleted file mode 100644 index b92959cfd3..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxml/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/HelloWorldServiceImpl.java +++ /dev/null @@ -1,40 +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 org.apache.tuscany.sca.binding.jms.format.jmsbytes.helloworld; - - -public class HelloWorldServiceImpl implements HelloWorldService { - - public byte[] getByteArrayGreetings(byte[] msg){ - - String name = new String(msg); - name = "Hello " + name; - - return name.getBytes(); - } - - public void throwChecked(byte[] msg) throws CheckedException { - throw new CheckedException("foo"); - } - - public void throwUnChecked(byte[] msg) { - throw new RuntimeException("bla"); - } -} - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxml/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/HelloWorldServiceReference.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxml/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/HelloWorldServiceReference.java deleted file mode 100644 index ff5cf617f2..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxml/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/HelloWorldServiceReference.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 org.apache.tuscany.sca.binding.jms.format.jmsbytes.helloworld; - -import org.oasisopen.sca.annotation.Remotable; - -/** - * This is the business interface of the HelloWorld greetings service. - */ -@Remotable -public interface HelloWorldServiceReference { - - public byte[] getByteArrayGreetings(byte[] msg); - - public void throwChecked(byte[] msg) ; - public void throwUnChecked(byte[] msg); - -} - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxml/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmstextxml/helloworld/CheckedException.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxml/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmstextxml/helloworld/CheckedException.java deleted file mode 100644 index 5e9a7a316e..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxml/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmstextxml/helloworld/CheckedException.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 org.apache.tuscany.sca.binding.jms.format.jmstextxml.helloworld; - -public class CheckedException extends Exception { - private static final long serialVersionUID = 1L; - - public CheckedException(String s) { - super(s); - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxml/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmstextxml/helloworld/HelloWorldReference.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxml/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmstextxml/helloworld/HelloWorldReference.java deleted file mode 100644 index 768b293380..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxml/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmstextxml/helloworld/HelloWorldReference.java +++ /dev/null @@ -1,33 +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 org.apache.tuscany.sca.binding.jms.format.jmstextxml.helloworld; - -import org.oasisopen.sca.annotation.Remotable; - -/** - * This is the business interface of the HelloWorld greetings service. - */ -@Remotable -public interface HelloWorldReference { - - public String getGreetings(String name); - public String getPersonGreetings(Person person); - -} - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxml/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmstextxml/helloworld/HelloWorldReferenceImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxml/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmstextxml/helloworld/HelloWorldReferenceImpl.java deleted file mode 100644 index 2bac5db5ab..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxml/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmstextxml/helloworld/HelloWorldReferenceImpl.java +++ /dev/null @@ -1,62 +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 org.apache.tuscany.sca.binding.jms.format.jmstextxml.helloworld; - -import org.oasisopen.sca.annotation.Reference; - -public class HelloWorldReferenceImpl implements HelloWorldReference { - - @Reference - protected HelloWorldService helloWorldService1; - - @Reference - protected HelloWorldService helloWorldService2; - - @Reference - protected HelloWorldService helloWorldService3; - - public String getGreetings(String name){ - String stringValue = helloWorldService1.getGreetings(name) + " " + - helloWorldService2.getGreetings(name) + " " + - helloWorldService3.getGreetings(name); - - return stringValue; - } - - public String getPersonGreetings(Person person){ - String stringValue = helloWorldService1.getPersonGreetings(person) + " " + - helloWorldService2.getPersonGreetings(person) + " " + - helloWorldService3.getPersonGreetings(person); - - try { - helloWorldService1.throwChecked(person.getLastName()); - } catch (CheckedException e) { - stringValue += " " + e.getMessage(); - } - - try { - helloWorldService1.throwUnChecked(person.getLastName()); - } catch (Exception e) { - stringValue += " " + e.getMessage(); - } - - return stringValue; - } -} - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxml/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmstextxml/helloworld/HelloWorldService.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxml/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmstextxml/helloworld/HelloWorldService.java deleted file mode 100644 index be2af78958..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxml/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmstextxml/helloworld/HelloWorldService.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 org.apache.tuscany.sca.binding.jms.format.jmstextxml.helloworld; - -import org.oasisopen.sca.annotation.Remotable; - -/** - * This is the business interface of the HelloWorld greetings service. - */ -@Remotable -public interface HelloWorldService { - - public String getGreetings(String name); - public String getPersonGreetings(Person person); - - public void throwChecked(String msg) throws CheckedException; - public void throwUnChecked(String msg); -} - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxml/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmstextxml/helloworld/HelloWorldServiceImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxml/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmstextxml/helloworld/HelloWorldServiceImpl.java deleted file mode 100644 index e85d4ca5a4..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxml/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmstextxml/helloworld/HelloWorldServiceImpl.java +++ /dev/null @@ -1,44 +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 org.apache.tuscany.sca.binding.jms.format.jmstextxml.helloworld; - - -public class HelloWorldServiceImpl implements HelloWorldService { - - public String getGreetings(String name){ - String response = "Hello " + name; - System.out.println("getGreetings: " + response); - return response; - } - - public String getPersonGreetings(Person person){ - String response = "Hello " + person.getFirstName() + " " + person.getLastName(); - System.out.println("getPersonGreetings: " + response); - return response; - } - - public void throwChecked(String msg) throws CheckedException { - throw new CheckedException("foo"); - } - - public void throwUnChecked(String msg) { - throw new RuntimeException("bla"); - } -} - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxml/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmstextxml/helloworld/Person.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxml/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmstextxml/helloworld/Person.java deleted file mode 100644 index 175b482c81..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxml/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmstextxml/helloworld/Person.java +++ /dev/null @@ -1,42 +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 org.apache.tuscany.sca.binding.jms.format.jmstextxml.helloworld; - -public class Person { - String firstName; - String lastName; - - public String getFirstName() { - return firstName; - } - - public void setFirstName(String firstName) { - this.firstName = firstName; - } - - public String getLastName() { - return lastName; - } - - public void setLastName(String lastName) { - this.lastName = lastName; - } - -} - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxml/src/main/resources/META-INF/sca-contribution.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxml/src/main/resources/META-INF/sca-contribution.xml deleted file mode 100644 index ced023ecdd..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxml/src/main/resources/META-INF/sca-contribution.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxml/src/main/resources/jmstextxml/helloworld.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxml/src/main/resources/jmstextxml/helloworld.composite deleted file mode 100644 index c15d99550e..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxml/src/main/resources/jmstextxml/helloworld.composite +++ /dev/null @@ -1,80 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxml/src/main/resources/jmstextxml/helloworld.wsdl b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxml/src/main/resources/jmstextxml/helloworld.wsdl deleted file mode 100644 index 53db66ea7e..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxml/src/main/resources/jmstextxml/helloworld.wsdl +++ /dev/null @@ -1,153 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxml/src/main/resources/jndi.properties b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxml/src/main/resources/jndi.properties deleted file mode 100644 index 4d6acc037b..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxml/src/main/resources/jndi.properties +++ /dev/null @@ -1,39 +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. -## --------------------------------------------------------------------------- - -# START SNIPPET: jndi - -java.naming.factory.initial = org.apache.activemq.jndi.ActiveMQInitialContextFactory - -# use the following property to configure the default connector -java.naming.provider.url = vm://localhost?broker.persistent=false - -# use the following property to specify the JNDI name the connection factory -# should appear as. -#connectionFactoryNames = connectionFactory, queueConnectionFactory, topicConnectionFactry -connectionFactoryNames = ConnectionFactory - -# register some queues in JNDI using the form -# queue.[jndiName] = [physicalName] -queue.RequestQueue = RequestQueue -queue.ResponseQueue = ResponseQueue - -# register some topics in JNDI using the form -# topic.[jndiName] = [physicalName] -#topic.MyTopic = example.MyTopic - -# END SNIPPET: jndi diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxml/src/test/java/org/apache/tuscany/sca/binding/jms/format/FormatJMSTextXMLTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxml/src/test/java/org/apache/tuscany/sca/binding/jms/format/FormatJMSTextXMLTestCase.java deleted file mode 100644 index 6054050a5d..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxml/src/test/java/org/apache/tuscany/sca/binding/jms/format/FormatJMSTextXMLTestCase.java +++ /dev/null @@ -1,62 +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 org.apache.tuscany.sca.binding.jms.format; - -import static org.junit.Assert.assertEquals; - -import org.apache.tuscany.sca.binding.jms.format.jmstextxml.helloworld.HelloWorldReference; -import org.apache.tuscany.sca.binding.jms.format.jmstextxml.helloworld.Person; -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; -import org.junit.After; -import org.junit.Before; -import org.junit.Test; - - -/** - * This shows how to test the JMS binding using a simple HelloWorld application. - */ -public class FormatJMSTextXMLTestCase { - - private static Node node; - - @Before - public void init() { - node = NodeFactory.newInstance().createNode().start(); - } - - @Test - public void testHelloWorldCreate() throws Exception { - HelloWorldReference helloWorldService = node.getService(HelloWorldReference.class, "HelloWorldReferenceComponent"); - - assertEquals("Hello Fred Bloggs Hello Fred Bloggs Hello Fred Bloggs", helloWorldService.getGreetings("Fred Bloggs")); - - Person person = new Person(); - person.setFirstName("Fred"); - person.setLastName("Bloggs"); - assertEquals("Hello Fred Bloggs Hello Fred Bloggs Hello Fred Bloggs foo remote service exception, see nested exception", helloWorldService.getPersonGreetings(person)); - } - - @After - public void end() { - if (node != null) { - node.stop(); - } - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/pom.xml deleted file mode 100644 index 122def3275..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/pom.xml +++ /dev/null @@ -1,83 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-itest - 2.0-M5 - ../pom.xml - - - itest-jms-format-jmstextxmlinjmsobjectout - Apache Tuscany SCA iTest JMS Message Format jmstextxmlinjmsobjectout - - - - - org.apache.tuscany.sca - tuscany-sca-api - 2.0-M5 - - - - org.apache.tuscany.sca - tuscany-node-impl - 2.0-M5 - - - - org.apache.tuscany.sca - tuscany-implementation-java-runtime - 2.0-M5 - runtime - - - - org.apache.tuscany.sca - tuscany-binding-jms-runtime - 2.0-M5 - - - - org.apache.activemq - activemq-core - 5.2.0 - runtime - - - org.apache.geronimo.specs - geronimo-jms_1.1_spec - 1.1 - provided - - - org.apache.geronimo.specs - geronimo-jms_1.1_spec - - - - - - - - ${artifactId} - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/CheckedException.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/CheckedException.java deleted file mode 100644 index 1acbfbd5ae..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/CheckedException.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 org.apache.tuscany.sca.binding.jms.format.jmsbytes.helloworld; - -public class CheckedException extends Exception { - private static final long serialVersionUID = 1L; - - public CheckedException(String s) { - super(s); - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/HelloWorldReference.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/HelloWorldReference.java deleted file mode 100644 index 2d19d4bd82..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/HelloWorldReference.java +++ /dev/null @@ -1,32 +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 org.apache.tuscany.sca.binding.jms.format.jmsbytes.helloworld; - -import org.oasisopen.sca.annotation.Remotable; - -/** - * This is the business interface of the HelloWorld greetings service. - */ -@Remotable -public interface HelloWorldReference { - - public String getGreetings(String message); - -} - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/HelloWorldReferenceImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/HelloWorldReferenceImpl.java deleted file mode 100644 index 3ccd54e9bd..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/HelloWorldReferenceImpl.java +++ /dev/null @@ -1,50 +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 org.apache.tuscany.sca.binding.jms.format.jmsbytes.helloworld; - -import org.oasisopen.sca.annotation.Reference; - - -public class HelloWorldReferenceImpl implements HelloWorldReference { - - @Reference - protected HelloWorldServiceReference helloWorldService1; - - public String getGreetings(String name){ - byte[] bytesValue = helloWorldService1.getByteArrayGreetings(name.getBytes()); - String stringValue = new String(bytesValue); - - try { - helloWorldService1.throwChecked(name.getBytes()); - } catch (Exception e) { - // Test to see what happens if we talk to a service - // that declares a checked exception through an - // interface that doesn't - stringValue += " " + e.getCause().getMessage(); - } - - try { - helloWorldService1.throwUnChecked(name.getBytes()); - } catch (Exception e) { - stringValue += " " + e.getMessage(); - } - return stringValue; - } -} - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/HelloWorldService.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/HelloWorldService.java deleted file mode 100644 index b9a1ffd5ef..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/HelloWorldService.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 org.apache.tuscany.sca.binding.jms.format.jmsbytes.helloworld; - -import org.oasisopen.sca.annotation.Remotable; - -/** - * This is the business interface of the HelloWorld greetings service. - */ -@Remotable -public interface HelloWorldService { - - public byte[] getByteArrayGreetings(byte[] msg); - - public void throwChecked(byte[] msg) throws CheckedException; - public void throwUnChecked(byte[] msg); - -} - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/HelloWorldServiceImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/HelloWorldServiceImpl.java deleted file mode 100644 index b92959cfd3..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/HelloWorldServiceImpl.java +++ /dev/null @@ -1,40 +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 org.apache.tuscany.sca.binding.jms.format.jmsbytes.helloworld; - - -public class HelloWorldServiceImpl implements HelloWorldService { - - public byte[] getByteArrayGreetings(byte[] msg){ - - String name = new String(msg); - name = "Hello " + name; - - return name.getBytes(); - } - - public void throwChecked(byte[] msg) throws CheckedException { - throw new CheckedException("foo"); - } - - public void throwUnChecked(byte[] msg) { - throw new RuntimeException("bla"); - } -} - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/HelloWorldServiceReference.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/HelloWorldServiceReference.java deleted file mode 100644 index ff5cf617f2..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/HelloWorldServiceReference.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 org.apache.tuscany.sca.binding.jms.format.jmsbytes.helloworld; - -import org.oasisopen.sca.annotation.Remotable; - -/** - * This is the business interface of the HelloWorld greetings service. - */ -@Remotable -public interface HelloWorldServiceReference { - - public byte[] getByteArrayGreetings(byte[] msg); - - public void throwChecked(byte[] msg) ; - public void throwUnChecked(byte[] msg); - -} - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytesxml/helloworld/CheckedException.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytesxml/helloworld/CheckedException.java deleted file mode 100644 index 1684c19c50..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytesxml/helloworld/CheckedException.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 org.apache.tuscany.sca.binding.jms.format.jmsbytesxml.helloworld; - -public class CheckedException extends Exception { - private static final long serialVersionUID = 1L; - - public CheckedException(String s) { - super(s); - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytesxml/helloworld/HelloWorldReference.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytesxml/helloworld/HelloWorldReference.java deleted file mode 100644 index cc7b7b11e4..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytesxml/helloworld/HelloWorldReference.java +++ /dev/null @@ -1,32 +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 org.apache.tuscany.sca.binding.jms.format.jmsbytesxml.helloworld; - -import org.oasisopen.sca.annotation.Remotable; - -/** - * This is the business interface of the HelloWorld greetings service. - */ -@Remotable -public interface HelloWorldReference { - - public String getGreetings(String message); - -} - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytesxml/helloworld/HelloWorldReferenceImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytesxml/helloworld/HelloWorldReferenceImpl.java deleted file mode 100644 index 3742bd6ac6..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytesxml/helloworld/HelloWorldReferenceImpl.java +++ /dev/null @@ -1,46 +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 org.apache.tuscany.sca.binding.jms.format.jmsbytesxml.helloworld; - -import org.oasisopen.sca.annotation.Reference; - -public class HelloWorldReferenceImpl implements HelloWorldReference { - - @Reference - protected HelloWorldService helloWorldService1; - - public String getGreetings(String name){ - byte[] bytesValue = helloWorldService1.getByteArrayGreetings(name.getBytes()); - String stringValue = new String(bytesValue); - - try { - helloWorldService1.throwChecked(name.getBytes()); - } catch (CheckedException e) { - stringValue += " " + e.getMessage(); - } - - try { - helloWorldService1.throwUnChecked(name.getBytes()); - } catch (Exception e) { - stringValue += " " + e.getMessage(); - } - return stringValue; - } -} - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytesxml/helloworld/HelloWorldService.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytesxml/helloworld/HelloWorldService.java deleted file mode 100644 index eae95b4201..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytesxml/helloworld/HelloWorldService.java +++ /dev/null @@ -1,34 +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 org.apache.tuscany.sca.binding.jms.format.jmsbytesxml.helloworld; - -import org.oasisopen.sca.annotation.Remotable; - -/** - * This is the business interface of the HelloWorld greetings service. - */ -@Remotable -public interface HelloWorldService { - - public byte[] getByteArrayGreetings(byte[] msg); - - public void throwChecked(byte[] msg) throws CheckedException; - public void throwUnChecked(byte[] msg); -} - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytesxml/helloworld/HelloWorldServiceImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytesxml/helloworld/HelloWorldServiceImpl.java deleted file mode 100644 index a37a03d994..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytesxml/helloworld/HelloWorldServiceImpl.java +++ /dev/null @@ -1,39 +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 org.apache.tuscany.sca.binding.jms.format.jmsbytesxml.helloworld; - -public class HelloWorldServiceImpl implements HelloWorldService { - - public byte[] getByteArrayGreetings(byte[] msg){ - - String name = new String(msg); - name = "Hello " + name; - - return name.getBytes(); - } - - public void throwChecked(byte[] msg) throws CheckedException { - throw new CheckedException("foo"); - } - - public void throwUnChecked(byte[] msg) { - throw new RuntimeException("bla"); - } -} - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsdefault/helloworld/CheckedException.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsdefault/helloworld/CheckedException.java deleted file mode 100644 index 530eac3d00..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsdefault/helloworld/CheckedException.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 org.apache.tuscany.sca.binding.jms.format.jmsdefault.helloworld; - -public class CheckedException extends Exception { - private static final long serialVersionUID = 1L; - - public CheckedException(String s) { - super(s); - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsdefault/helloworld/HelloWorldReference.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsdefault/helloworld/HelloWorldReference.java deleted file mode 100644 index 1768816247..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsdefault/helloworld/HelloWorldReference.java +++ /dev/null @@ -1,36 +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 org.apache.tuscany.sca.binding.jms.format.jmsdefault.helloworld; - -import org.oasisopen.sca.annotation.Remotable; - -/** - * This is the business interface of the HelloWorld greetings service. - */ -@Remotable -public interface HelloWorldReference { - - public String getGreetings(String name); - - public String getPersonGreetings(Person person); - - public void nullInVoidOut(); - -} - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsdefault/helloworld/HelloWorldReferenceImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsdefault/helloworld/HelloWorldReferenceImpl.java deleted file mode 100644 index d0a5faaef7..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsdefault/helloworld/HelloWorldReferenceImpl.java +++ /dev/null @@ -1,85 +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 org.apache.tuscany.sca.binding.jms.format.jmsdefault.helloworld; - -import org.oasisopen.sca.annotation.Reference; - -public class HelloWorldReferenceImpl implements HelloWorldReference { - - @Reference - protected HelloWorldService helloWorldService1; - - @Reference - protected HelloWorldService helloWorldService2; - - @Reference - protected HelloWorldService helloWorldService3; - - @Reference - protected HelloWorldService helloWorldService4; - - public String getGreetings(String name){ - String stringValue = helloWorldService1.getGreetings(name) + " " + - helloWorldService2.getGreetings(name) + " " + - helloWorldService3.getGreetings(name) + " " + - helloWorldService4.getGreetings(name); - - try { - helloWorldService3.throwChecked(name); - } catch (CheckedException e) { - stringValue += " " + e.getMessage(); - } - - try { - helloWorldService3.throwUnChecked(name); - } catch (Exception e) { - stringValue += " " + e.getMessage(); - } - - try { - helloWorldService4.throwChecked(name); - } catch (CheckedException e) { - stringValue += " " + e.getMessage(); - } - - try { - helloWorldService4.throwUnChecked(name); - } catch (Exception e) { - stringValue += " " + e.getMessage(); - } - - return stringValue; - } - - public String getPersonGreetings(Person person){ - return helloWorldService1.getPersonGreetings(person) + " " + - helloWorldService2.getPersonGreetings(person) + " " + - helloWorldService3.getPersonGreetings(person) + " " + - helloWorldService4.getPersonGreetings(person); - } - - public void nullInVoidOut() { - helloWorldService1.nullInVoidOut(); - helloWorldService2.nullInVoidOut(); - helloWorldService3.nullInVoidOut(); - helloWorldService4.nullInVoidOut(); - - } -} - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsdefault/helloworld/HelloWorldService.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsdefault/helloworld/HelloWorldService.java deleted file mode 100644 index 204863423d..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsdefault/helloworld/HelloWorldService.java +++ /dev/null @@ -1,38 +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 org.apache.tuscany.sca.binding.jms.format.jmsdefault.helloworld; - -import org.oasisopen.sca.annotation.Remotable; - -/** - * This is the business interface of the HelloWorld greetings service. - */ -@Remotable -public interface HelloWorldService { - - public String getGreetings(String name); - - public String getPersonGreetings(Person person); - - public void nullInVoidOut(); - - public void throwChecked(String msg) throws CheckedException; - public void throwUnChecked(String msg); -} - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsdefault/helloworld/HelloWorldServiceImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsdefault/helloworld/HelloWorldServiceImpl.java deleted file mode 100644 index b143079fe3..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsdefault/helloworld/HelloWorldServiceImpl.java +++ /dev/null @@ -1,51 +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 org.apache.tuscany.sca.binding.jms.format.jmsdefault.helloworld; - - -public class HelloWorldServiceImpl implements HelloWorldService { - - public static int nullInVoidOutCalled = 0; - - public String getGreetings(String name){ - String response = "Hello " + name; - System.out.println("getGreetings: " + response); - return response; - } - - public String getPersonGreetings(Person person){ - String response = "Hello " + person.getFirstName() + " " + person.getLastName(); - System.out.println("getPersonGreetings: " + response); - return response; - } - - public void nullInVoidOut() { - System.out.println("nullInVoidOut"); - nullInVoidOutCalled++; - } - - public void throwChecked(String msg) throws CheckedException { - throw new CheckedException("foo"); - } - - public void throwUnChecked(String msg) { - throw new RuntimeException("bla"); - } -} - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsdefault/helloworld/Person.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsdefault/helloworld/Person.java deleted file mode 100644 index b62d1b1f1d..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsdefault/helloworld/Person.java +++ /dev/null @@ -1,42 +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 org.apache.tuscany.sca.binding.jms.format.jmsdefault.helloworld; - -public class Person { - String firstName; - String lastName; - - public String getFirstName() { - return firstName; - } - - public void setFirstName(String firstName) { - this.firstName = firstName; - } - - public String getLastName() { - return lastName; - } - - public void setLastName(String lastName) { - this.lastName = lastName; - } - -} - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsmessage/helloworld/HelloWorldReference.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsmessage/helloworld/HelloWorldReference.java deleted file mode 100644 index 490bd5d4a3..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsmessage/helloworld/HelloWorldReference.java +++ /dev/null @@ -1,32 +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 org.apache.tuscany.sca.binding.jms.format.jmsmessage.helloworld; - -import org.oasisopen.sca.annotation.Remotable; - -/** - * This is the business interface of the HelloWorld greetings service. - */ -@Remotable -public interface HelloWorldReference { - - public String getGreetings(String message); - -} - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsmessage/helloworld/HelloWorldReferenceImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsmessage/helloworld/HelloWorldReferenceImpl.java deleted file mode 100644 index 5aed6b12d7..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsmessage/helloworld/HelloWorldReferenceImpl.java +++ /dev/null @@ -1,41 +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 org.apache.tuscany.sca.binding.jms.format.jmsmessage.helloworld; - -import org.oasisopen.sca.annotation.Reference; - - -public class HelloWorldReferenceImpl implements HelloWorldReference { - - @Reference - protected HelloWorldServiceReferenceSide helloWorldService1; - - public String getGreetings(String name){ - helloWorldService1.getGreetings(name); - - try { - Thread.sleep(2000); - } catch (Exception ex) { - // do nothing - } - - return HelloWorldServiceImpl.getGreetings(); - } -} - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsmessage/helloworld/HelloWorldService.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsmessage/helloworld/HelloWorldService.java deleted file mode 100644 index efe2f1a4dc..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsmessage/helloworld/HelloWorldService.java +++ /dev/null @@ -1,34 +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 org.apache.tuscany.sca.binding.jms.format.jmsmessage.helloworld; - -import org.oasisopen.sca.annotation.OneWay; -import org.oasisopen.sca.annotation.Remotable; - -/** - * This is the business interface of the HelloWorld greetings service. - */ -@Remotable -public interface HelloWorldService { - - @OneWay - public void onMessage(javax.jms.Message message); - -} - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsmessage/helloworld/HelloWorldServiceImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsmessage/helloworld/HelloWorldServiceImpl.java deleted file mode 100644 index c1011ce6fb..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsmessage/helloworld/HelloWorldServiceImpl.java +++ /dev/null @@ -1,51 +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 org.apache.tuscany.sca.binding.jms.format.jmsmessage.helloworld; - -import javax.jms.TextMessage; - -public class HelloWorldServiceImpl implements HelloWorldService { - - private static String greetings = "not set"; - - public void onMessage(javax.jms.Message message){ - - String name = null; - - try { - name = ((TextMessage)message).getText(); - } catch (Exception ex) { - name = "EXCEPTION"; - } - greetings = "Hello " + name; - } - - public static String getGreetings(){ - return greetings; - } - - // javax.jms.BytesMessage - // javax.jms.MapMessage - // javax.jms.ObjectMessage - // javax.jms.StreamMessage - // javax.jms.TextMessage - - -} - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsmessage/helloworld/HelloWorldServiceReferenceSide.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsmessage/helloworld/HelloWorldServiceReferenceSide.java deleted file mode 100644 index d863b3a0a3..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsmessage/helloworld/HelloWorldServiceReferenceSide.java +++ /dev/null @@ -1,37 +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 org.apache.tuscany.sca.binding.jms.format.jmsmessage.helloworld; - -import javax.jws.soap.SOAPBinding; - -import org.oasisopen.sca.annotation.OneWay; -import org.oasisopen.sca.annotation.Remotable; - -/** - * This is the business interface of the HelloWorld greetings service. - */ -@Remotable -public interface HelloWorldServiceReferenceSide { - - @OneWay - @SOAPBinding(parameterStyle=SOAPBinding.ParameterStyle.BARE) - public void getGreetings(String message); - -} - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsmessage/helloworld/README b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsmessage/helloworld/README deleted file mode 100644 index 0f7a730b91..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsmessage/helloworld/README +++ /dev/null @@ -1,3 +0,0 @@ -This test uses an SCA composite to fake a scenario where the reference is an SCA reference but the -service is a non-SCA JMS endpoint. This gives us the opportunity to play about with the interface -configuration at the reference to see how the contents of the JMS message can be controlled. \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsobject/helloworld/CheckedException.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsobject/helloworld/CheckedException.java deleted file mode 100644 index a1c38f7295..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsobject/helloworld/CheckedException.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 org.apache.tuscany.sca.binding.jms.format.jmsobject.helloworld; - -public class CheckedException extends Exception { - private static final long serialVersionUID = 1L; - - public CheckedException(String s) { - super(s); - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsobject/helloworld/HelloWorldReference.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsobject/helloworld/HelloWorldReference.java deleted file mode 100644 index 3b34dbae85..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsobject/helloworld/HelloWorldReference.java +++ /dev/null @@ -1,32 +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 org.apache.tuscany.sca.binding.jms.format.jmsobject.helloworld; - -import org.oasisopen.sca.annotation.Remotable; - -/** - * This is the business interface of the HelloWorld greetings service. - */ -@Remotable -public interface HelloWorldReference { - - public String getGreetingsWrapSingle(String firstName, String lastName); - public String getGreetingsDontWrapSingle(String firstName, String lastName); -} - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsobject/helloworld/HelloWorldReferenceImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsobject/helloworld/HelloWorldReferenceImpl.java deleted file mode 100644 index 443d2aa746..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsobject/helloworld/HelloWorldReferenceImpl.java +++ /dev/null @@ -1,112 +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 org.apache.tuscany.sca.binding.jms.format.jmsobject.helloworld; - -import org.oasisopen.sca.annotation.Reference; - - -public class HelloWorldReferenceImpl implements HelloWorldReference { - - @Reference - protected HelloWorldService helloWorldServiceWrapSingle; - - @Reference - protected HelloWorldService helloWorldServiceDontWrapSingle; - - public String getGreetingsWrapSingle(String firstName, String lastName){ - Person person = new Person(); - person.setFirstName(firstName); - person.setLastName(lastName); - - String returnString = ""; - - Person returnPerson = helloWorldServiceWrapSingle.getPersonGreetings(person); - returnString = returnPerson.getFirstName() + " " + returnPerson.getLastName(); - - Person returnNullPerson = helloWorldServiceWrapSingle.getNullReturnGreetings(person); - - if (returnNullPerson == null){ - returnString += " Hello2 null"; - } - - String returnGreeting = helloWorldServiceWrapSingle.getArrayGreeting(new String[]{firstName, lastName}); - returnString += " " + returnGreeting; - - returnGreeting = helloWorldServiceWrapSingle.getMultiArrayGreetings(new String[]{firstName, firstName},new String[]{lastName, lastName}); - returnString += " " + returnGreeting; - - returnGreeting = helloWorldServiceWrapSingle.getMultiGreetings(firstName, lastName); - returnString += " " + returnGreeting; - - returnGreeting = helloWorldServiceWrapSingle.getObjectGreeting(person); - returnString += " " + returnGreeting; - - returnGreeting = helloWorldServiceWrapSingle.getObjectArrayGreeting(new Object[]{person}); - returnString += " " + returnGreeting; - - return returnString; - } - - public String getGreetingsDontWrapSingle(String firstName, String lastName){ - Person person = new Person(); - person.setFirstName(firstName); - person.setLastName(lastName); - - String returnString = ""; - - Person returnPerson = helloWorldServiceDontWrapSingle.getPersonGreetings(person); - returnString = returnPerson.getFirstName() + " " + returnPerson.getLastName(); - - Person returnNullPerson = helloWorldServiceDontWrapSingle.getNullReturnGreetings(person); - - if (returnNullPerson == null){ - returnString += " Hello2 null"; - } - - String returnGreeting = helloWorldServiceDontWrapSingle.getArrayGreeting(new String[]{firstName, lastName}); - returnString += " " + returnGreeting; - - returnGreeting = helloWorldServiceDontWrapSingle.getMultiArrayGreetings(new String[]{firstName, firstName},new String[]{lastName, lastName}); - returnString += " " + returnGreeting; - - returnGreeting = helloWorldServiceDontWrapSingle.getMultiGreetings(firstName, lastName); - returnString += " " + returnGreeting; - - returnGreeting = helloWorldServiceDontWrapSingle.getObjectGreeting(person); - returnString += " " + returnGreeting; - - returnGreeting = helloWorldServiceDontWrapSingle.getObjectArrayGreeting(new Object[]{person}); - returnString += " " + returnGreeting; - - try { - helloWorldServiceDontWrapSingle.throwChecked(person); - } catch (CheckedException e) { - returnString += " " + e.getMessage(); - } - - try { - helloWorldServiceDontWrapSingle.throwUnChecked(person); - } catch (Exception e) { - returnString += " " + e.getCause().getMessage(); - } - - return returnString; - } -} - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsobject/helloworld/HelloWorldService.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsobject/helloworld/HelloWorldService.java deleted file mode 100644 index b179a86f52..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsobject/helloworld/HelloWorldService.java +++ /dev/null @@ -1,41 +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 org.apache.tuscany.sca.binding.jms.format.jmsobject.helloworld; - -import org.oasisopen.sca.annotation.Remotable; - -/** - * This is the business interface of the HelloWorld greetings service. - */ -@Remotable -public interface HelloWorldService { - - public Person getPersonGreetings(Person person); - public Person getNullReturnGreetings(Person person); - public String getArrayGreeting(String[] names); - public String getMultiArrayGreetings(String[] firstName, String[] lastName); - public String getMultiGreetings(String firstName, String lastName); - public String getObjectGreeting(Object person); - public String getObjectArrayGreeting(Object[] pearson); - - public void throwChecked(Person person) throws CheckedException; - public void throwUnChecked(Person person); - -} - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsobject/helloworld/HelloWorldServiceImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsobject/helloworld/HelloWorldServiceImpl.java deleted file mode 100644 index fa9e9eb1cb..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsobject/helloworld/HelloWorldServiceImpl.java +++ /dev/null @@ -1,63 +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 org.apache.tuscany.sca.binding.jms.format.jmsobject.helloworld; - -public class HelloWorldServiceImpl implements HelloWorldService { - - public Person getPersonGreetings(Person person){ - - person.setFirstName("Hello1 " + person.getFirstName()); - person.setLastName("Hello1 " + person.getLastName()); - - return person; - } - - public Person getNullReturnGreetings(Person person){ - return null; - } - - public String getArrayGreeting(String[] names) { - return "Hello3 " + names[0]; - } - - public String getMultiArrayGreetings(String[] firstName, String[] lastName) { - return "Hello4 " + firstName[0] + " " + lastName[0]; - } - - public String getMultiGreetings(String firstName, String lastName) { - return "Hello5 " + firstName + " " + lastName; - } - - public String getObjectGreeting(Object person) { - return "Hello6 " + ((Person)person).getFirstName() + " " + ((Person)person).getLastName(); - } - - public String getObjectArrayGreeting(Object[] person) { - return "Hello7 " + ((Person)person[0]).getFirstName() + " " + ((Person)person[0]).getLastName(); - } - - public void throwChecked(Person person) throws CheckedException { - throw new CheckedException("foo"); - } - - public void throwUnChecked(Person person) { - throw new RuntimeException("bla"); - } -} - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsobject/helloworld/Person.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsobject/helloworld/Person.java deleted file mode 100644 index 29233d74a9..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsobject/helloworld/Person.java +++ /dev/null @@ -1,47 +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 org.apache.tuscany.sca.binding.jms.format.jmsobject.helloworld; - -import java.io.Serializable; - -public class Person implements Serializable { - - private static final long serialVersionUID = -6842761353978551779L; - - String firstName; - String lastName; - - public String getFirstName() { - return firstName; - } - - public void setFirstName(String firstName) { - this.firstName = firstName; - } - - public String getLastName() { - return lastName; - } - - public void setLastName(String lastName) { - this.lastName = lastName; - } - -} - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmstext/helloworld/CheckedException.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmstext/helloworld/CheckedException.java deleted file mode 100644 index 57ad23e064..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmstext/helloworld/CheckedException.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 org.apache.tuscany.sca.binding.jms.format.jmstext.helloworld; - -public class CheckedException extends Exception { - private static final long serialVersionUID = 1L; - - public CheckedException(String s) { - super(s); - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmstext/helloworld/HelloWorldReference.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmstext/helloworld/HelloWorldReference.java deleted file mode 100644 index ea8d5ffd28..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmstext/helloworld/HelloWorldReference.java +++ /dev/null @@ -1,32 +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 org.apache.tuscany.sca.binding.jms.format.jmstext.helloworld; - -import org.oasisopen.sca.annotation.Remotable; - -/** - * This is the business interface of the HelloWorld greetings service. - */ -@Remotable -public interface HelloWorldReference { - - public String getGreetings(String message); - -} - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmstext/helloworld/HelloWorldReferenceImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmstext/helloworld/HelloWorldReferenceImpl.java deleted file mode 100644 index afcd391009..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmstext/helloworld/HelloWorldReferenceImpl.java +++ /dev/null @@ -1,46 +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 org.apache.tuscany.sca.binding.jms.format.jmstext.helloworld; - -import org.oasisopen.sca.annotation.Reference; - - -public class HelloWorldReferenceImpl implements HelloWorldReference { - - @Reference - protected HelloWorldService helloWorldService1; - - public String getGreetings(String name){ - String stringValue = helloWorldService1.getStringGreetings(name); - - try { - helloWorldService1.throwChecked(name); - } catch (Exception e) { - stringValue += " " + e.getMessage(); - } - - try { - helloWorldService1.throwUnChecked(name); - } catch (Exception e) { - stringValue += " " + e.getMessage(); - } - return stringValue; - } -} - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmstext/helloworld/HelloWorldService.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmstext/helloworld/HelloWorldService.java deleted file mode 100644 index 8af585c13c..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmstext/helloworld/HelloWorldService.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 org.apache.tuscany.sca.binding.jms.format.jmstext.helloworld; - -import org.oasisopen.sca.annotation.Remotable; - -/** - * This is the business interface of the HelloWorld greetings service. - */ -@Remotable -public interface HelloWorldService { - - public String getStringGreetings(String msg); - - public void throwChecked(String msg) throws CheckedException; - public void throwUnChecked(String msg); - -} - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmstext/helloworld/HelloWorldServiceImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmstext/helloworld/HelloWorldServiceImpl.java deleted file mode 100644 index 4f0a6fe4c5..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmstext/helloworld/HelloWorldServiceImpl.java +++ /dev/null @@ -1,38 +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 org.apache.tuscany.sca.binding.jms.format.jmstext.helloworld; - - -public class HelloWorldServiceImpl implements HelloWorldService { - - public String getStringGreetings(String msg){ - - msg = "Hello " + msg; - return msg; - } - - public void throwChecked(String msg) throws CheckedException { - throw new CheckedException("foo"); - } - - public void throwUnChecked(String msg) { - throw new RuntimeException("bla"); - } -} - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmstext/helloworld/HelloWorldServiceReference.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmstext/helloworld/HelloWorldServiceReference.java deleted file mode 100644 index a8dd686725..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmstext/helloworld/HelloWorldServiceReference.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 org.apache.tuscany.sca.binding.jms.format.jmstext.helloworld; - -import org.oasisopen.sca.annotation.Remotable; - -/** - * This is the business interface of the HelloWorld greetings service. - */ -@Remotable -public interface HelloWorldServiceReference { - - public String getStringGreetings(String msg); - - public void throwChecked(String msg) ; - public void throwUnChecked(String msg); - -} - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmstextxml/helloworld/CheckedException.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmstextxml/helloworld/CheckedException.java deleted file mode 100644 index 5e9a7a316e..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmstextxml/helloworld/CheckedException.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 org.apache.tuscany.sca.binding.jms.format.jmstextxml.helloworld; - -public class CheckedException extends Exception { - private static final long serialVersionUID = 1L; - - public CheckedException(String s) { - super(s); - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmstextxml/helloworld/HelloWorldReference.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmstextxml/helloworld/HelloWorldReference.java deleted file mode 100644 index 768b293380..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmstextxml/helloworld/HelloWorldReference.java +++ /dev/null @@ -1,33 +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 org.apache.tuscany.sca.binding.jms.format.jmstextxml.helloworld; - -import org.oasisopen.sca.annotation.Remotable; - -/** - * This is the business interface of the HelloWorld greetings service. - */ -@Remotable -public interface HelloWorldReference { - - public String getGreetings(String name); - public String getPersonGreetings(Person person); - -} - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmstextxml/helloworld/HelloWorldReferenceImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmstextxml/helloworld/HelloWorldReferenceImpl.java deleted file mode 100644 index 2bac5db5ab..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmstextxml/helloworld/HelloWorldReferenceImpl.java +++ /dev/null @@ -1,62 +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 org.apache.tuscany.sca.binding.jms.format.jmstextxml.helloworld; - -import org.oasisopen.sca.annotation.Reference; - -public class HelloWorldReferenceImpl implements HelloWorldReference { - - @Reference - protected HelloWorldService helloWorldService1; - - @Reference - protected HelloWorldService helloWorldService2; - - @Reference - protected HelloWorldService helloWorldService3; - - public String getGreetings(String name){ - String stringValue = helloWorldService1.getGreetings(name) + " " + - helloWorldService2.getGreetings(name) + " " + - helloWorldService3.getGreetings(name); - - return stringValue; - } - - public String getPersonGreetings(Person person){ - String stringValue = helloWorldService1.getPersonGreetings(person) + " " + - helloWorldService2.getPersonGreetings(person) + " " + - helloWorldService3.getPersonGreetings(person); - - try { - helloWorldService1.throwChecked(person.getLastName()); - } catch (CheckedException e) { - stringValue += " " + e.getMessage(); - } - - try { - helloWorldService1.throwUnChecked(person.getLastName()); - } catch (Exception e) { - stringValue += " " + e.getMessage(); - } - - return stringValue; - } -} - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmstextxml/helloworld/HelloWorldService.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmstextxml/helloworld/HelloWorldService.java deleted file mode 100644 index be2af78958..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmstextxml/helloworld/HelloWorldService.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 org.apache.tuscany.sca.binding.jms.format.jmstextxml.helloworld; - -import org.oasisopen.sca.annotation.Remotable; - -/** - * This is the business interface of the HelloWorld greetings service. - */ -@Remotable -public interface HelloWorldService { - - public String getGreetings(String name); - public String getPersonGreetings(Person person); - - public void throwChecked(String msg) throws CheckedException; - public void throwUnChecked(String msg); -} - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmstextxml/helloworld/HelloWorldServiceImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmstextxml/helloworld/HelloWorldServiceImpl.java deleted file mode 100644 index e85d4ca5a4..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmstextxml/helloworld/HelloWorldServiceImpl.java +++ /dev/null @@ -1,44 +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 org.apache.tuscany.sca.binding.jms.format.jmstextxml.helloworld; - - -public class HelloWorldServiceImpl implements HelloWorldService { - - public String getGreetings(String name){ - String response = "Hello " + name; - System.out.println("getGreetings: " + response); - return response; - } - - public String getPersonGreetings(Person person){ - String response = "Hello " + person.getFirstName() + " " + person.getLastName(); - System.out.println("getPersonGreetings: " + response); - return response; - } - - public void throwChecked(String msg) throws CheckedException { - throw new CheckedException("foo"); - } - - public void throwUnChecked(String msg) { - throw new RuntimeException("bla"); - } -} - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmstextxml/helloworld/Person.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmstextxml/helloworld/Person.java deleted file mode 100644 index 175b482c81..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmstextxml/helloworld/Person.java +++ /dev/null @@ -1,42 +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 org.apache.tuscany.sca.binding.jms.format.jmstextxml.helloworld; - -public class Person { - String firstName; - String lastName; - - public String getFirstName() { - return firstName; - } - - public void setFirstName(String firstName) { - this.firstName = firstName; - } - - public String getLastName() { - return lastName; - } - - public void setLastName(String lastName) { - this.lastName = lastName; - } - -} - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmstextxmlinjmsobjectout/helloworld/HelloWorldReferenceImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmstextxmlinjmsobjectout/helloworld/HelloWorldReferenceImpl.java deleted file mode 100644 index 7bb33ae270..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmstextxmlinjmsobjectout/helloworld/HelloWorldReferenceImpl.java +++ /dev/null @@ -1,38 +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 org.apache.tuscany.sca.binding.jms.format.jmstextxmlinjmsobjectout.helloworld; - -import org.oasisopen.sca.annotation.Reference; - - -public class HelloWorldReferenceImpl implements HelloWorldService { - - @Reference - protected HelloWorldService helloWorldService1; - - public String getGreetings(String name){ - return helloWorldService1.getGreetings(name).toString(); - } - - public String getPersonGreetings(Person person){ - return helloWorldService1.getPersonGreetings(person).toString(); - } - -} - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmstextxmlinjmsobjectout/helloworld/HelloWorldService.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmstextxmlinjmsobjectout/helloworld/HelloWorldService.java deleted file mode 100644 index 9f955c278a..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmstextxmlinjmsobjectout/helloworld/HelloWorldService.java +++ /dev/null @@ -1,33 +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 org.apache.tuscany.sca.binding.jms.format.jmstextxmlinjmsobjectout.helloworld; - -import org.oasisopen.sca.annotation.Remotable; - -/** - * This is the business interface of the HelloWorld greetings service. - */ -@Remotable -public interface HelloWorldService { - - public String getGreetings(String name); - - public String getPersonGreetings(Person person); -} - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmstextxmlinjmsobjectout/helloworld/HelloWorldServiceImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmstextxmlinjmsobjectout/helloworld/HelloWorldServiceImpl.java deleted file mode 100644 index 7c1cce6087..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmstextxmlinjmsobjectout/helloworld/HelloWorldServiceImpl.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 org.apache.tuscany.sca.binding.jms.format.jmstextxmlinjmsobjectout.helloworld; - -public class HelloWorldServiceImpl implements HelloWorldService { - - public String getGreetings(String name){ - String response = "Hello " + name; - System.out.println("getGreetings: " + response); - return response; - } - - public String getPersonGreetings(Person person){ - String response = "Hello " + person.getFirstName() + " " + person.getLastName(); - System.out.println("getPersonGreetings: " + response); - return response; - } -} - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmstextxmlinjmsobjectout/helloworld/Person.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmstextxmlinjmsobjectout/helloworld/Person.java deleted file mode 100644 index 3d41f656f9..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmstextxmlinjmsobjectout/helloworld/Person.java +++ /dev/null @@ -1,42 +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 org.apache.tuscany.sca.binding.jms.format.jmstextxmlinjmsobjectout.helloworld; - -public class Person { - String firstName; - String lastName; - - public String getFirstName() { - return firstName; - } - - public void setFirstName(String firstName) { - this.firstName = firstName; - } - - public String getLastName() { - return lastName; - } - - public void setLastName(String lastName) { - this.lastName = lastName; - } - -} - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/resources/META-INF/sca-contribution.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/resources/META-INF/sca-contribution.xml deleted file mode 100644 index ced023ecdd..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/resources/META-INF/sca-contribution.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/resources/jmstextxmlinjmsobjectout/helloworld.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/resources/jmstextxmlinjmsobjectout/helloworld.composite deleted file mode 100644 index 79dd18b027..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/resources/jmstextxmlinjmsobjectout/helloworld.composite +++ /dev/null @@ -1,52 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/resources/jmstextxmlinjmsobjectout/helloworld.wsdl b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/resources/jmstextxmlinjmsobjectout/helloworld.wsdl deleted file mode 100644 index 935a2e73c5..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/resources/jmstextxmlinjmsobjectout/helloworld.wsdl +++ /dev/null @@ -1,139 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/resources/jndi.properties b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/resources/jndi.properties deleted file mode 100644 index 4d6acc037b..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/main/resources/jndi.properties +++ /dev/null @@ -1,39 +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. -## --------------------------------------------------------------------------- - -# START SNIPPET: jndi - -java.naming.factory.initial = org.apache.activemq.jndi.ActiveMQInitialContextFactory - -# use the following property to configure the default connector -java.naming.provider.url = vm://localhost?broker.persistent=false - -# use the following property to specify the JNDI name the connection factory -# should appear as. -#connectionFactoryNames = connectionFactory, queueConnectionFactory, topicConnectionFactry -connectionFactoryNames = ConnectionFactory - -# register some queues in JNDI using the form -# queue.[jndiName] = [physicalName] -queue.RequestQueue = RequestQueue -queue.ResponseQueue = ResponseQueue - -# register some topics in JNDI using the form -# topic.[jndiName] = [physicalName] -#topic.MyTopic = example.MyTopic - -# END SNIPPET: jndi diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/test/java/org/apache/tuscany/sca/binding/jms/format/FormatJMSTextXMLInJMSObjectOutTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/test/java/org/apache/tuscany/sca/binding/jms/format/FormatJMSTextXMLInJMSObjectOutTestCase.java deleted file mode 100644 index 8fc3d77cb3..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/format-jmstextxmlinjmsobjectout/src/test/java/org/apache/tuscany/sca/binding/jms/format/FormatJMSTextXMLInJMSObjectOutTestCase.java +++ /dev/null @@ -1,62 +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 org.apache.tuscany.sca.binding.jms.format; - -import static org.junit.Assert.assertEquals; - -import org.apache.tuscany.sca.binding.jms.format.jmstextxmlinjmsobjectout.helloworld.HelloWorldService; -import org.apache.tuscany.sca.binding.jms.format.jmstextxmlinjmsobjectout.helloworld.Person; -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; -import org.junit.After; -import org.junit.Before; -import org.junit.Test; - - -/** - * This shows how to test the JMS binding using a simple HelloWorld application. - */ -public class FormatJMSTextXMLInJMSObjectOutTestCase { - - private static Node node; - - @Before - public void init() { - node = NodeFactory.newInstance().createNode().start(); - } - - @Test - public void testHelloWorldCreate() throws Exception { - HelloWorldService helloWorldService = node.getService(HelloWorldService.class, "HelloWorldReferenceComponent"); - - assertEquals("Hello Fred Bloggs", helloWorldService.getGreetings("Fred Bloggs")); - - Person person = new Person(); - person.setFirstName("Fred"); - person.setLastName("Bloggs"); - assertEquals("Hello Fred Bloggs", helloWorldService.getPersonGreetings(person)); - } - - @After - public void end() { - if (node != null) { - node.stop(); - } - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/non-sca-client/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/non-sca-client/pom.xml deleted file mode 100644 index a6a7e0fc27..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/non-sca-client/pom.xml +++ /dev/null @@ -1,83 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-itest - 2.0-M5 - ../pom.xml - - - itest-jms-non-sca-client-broker - Apache Tuscany SCA iTest JMS with Non SCA Client - - - - - org.apache.tuscany.sca - tuscany-sca-api - 2.0-M5 - - - - org.apache.tuscany.sca - tuscany-node-impl - 2.0-M5 - - - - org.apache.tuscany.sca - tuscany-implementation-java-runtime - 2.0-M5 - runtime - - - - org.apache.tuscany.sca - tuscany-binding-jms-runtime - 2.0-M5 - - - - org.apache.activemq - activemq-core - 5.2.0 - runtime - - - org.apache.geronimo.specs - geronimo-jms_1.1_spec - 1.1 - provided - - - org.apache.geronimo.specs - geronimo-jms_1.1_spec - - - - - - - - ${artifactId} - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/non-sca-client/src/main/java/org/apache/tuscany/sca/binding/jms/OneWayObjectService.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/non-sca-client/src/main/java/org/apache/tuscany/sca/binding/jms/OneWayObjectService.java deleted file mode 100644 index 9083ba1d9c..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/non-sca-client/src/main/java/org/apache/tuscany/sca/binding/jms/OneWayObjectService.java +++ /dev/null @@ -1,29 +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 org.apache.tuscany.sca.binding.jms; - -import org.oasisopen.sca.annotation.OneWay; -import org.oasisopen.sca.annotation.Remotable; - -@Remotable -public interface OneWayObjectService { - - @OneWay - void sayHello(Object name); -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/non-sca-client/src/main/java/org/apache/tuscany/sca/binding/jms/OneWayObjectServiceImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/non-sca-client/src/main/java/org/apache/tuscany/sca/binding/jms/OneWayObjectServiceImpl.java deleted file mode 100644 index 3149f99a25..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/non-sca-client/src/main/java/org/apache/tuscany/sca/binding/jms/OneWayObjectServiceImpl.java +++ /dev/null @@ -1,34 +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 org.apache.tuscany.sca.binding.jms; - -public class OneWayObjectServiceImpl implements OneWayObjectService { - - public static Object mutex = new Object(); - public static Object name; - - public void sayHello(Object name) { - OneWayObjectServiceImpl.name = name; - synchronized (OneWayObjectServiceImpl.mutex) { - OneWayObjectServiceImpl.mutex.notify(); - } - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/non-sca-client/src/main/java/org/apache/tuscany/sca/binding/jms/OneWayService.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/non-sca-client/src/main/java/org/apache/tuscany/sca/binding/jms/OneWayService.java deleted file mode 100644 index 9cec2d9b3e..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/non-sca-client/src/main/java/org/apache/tuscany/sca/binding/jms/OneWayService.java +++ /dev/null @@ -1,29 +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 org.apache.tuscany.sca.binding.jms; - -import org.oasisopen.sca.annotation.OneWay; -import org.oasisopen.sca.annotation.Remotable; - -@Remotable -public interface OneWayService { - - @OneWay - void sayHello(String name); -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/non-sca-client/src/main/java/org/apache/tuscany/sca/binding/jms/OneWayServiceImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/non-sca-client/src/main/java/org/apache/tuscany/sca/binding/jms/OneWayServiceImpl.java deleted file mode 100644 index 0036391696..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/non-sca-client/src/main/java/org/apache/tuscany/sca/binding/jms/OneWayServiceImpl.java +++ /dev/null @@ -1,34 +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 org.apache.tuscany.sca.binding.jms; - -public class OneWayServiceImpl implements OneWayService { - - public static Object mutex = new Object(); - public static String name; - - public void sayHello(String name) { - OneWayServiceImpl.name = name; - synchronized (OneWayServiceImpl.mutex) { - OneWayServiceImpl.mutex.notify(); - } - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/non-sca-client/src/main/resources/META-INF/sca-contribution.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/non-sca-client/src/main/resources/META-INF/sca-contribution.xml deleted file mode 100644 index decff8708f..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/non-sca-client/src/main/resources/META-INF/sca-contribution.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/non-sca-client/src/main/resources/jndi.properties b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/non-sca-client/src/main/resources/jndi.properties deleted file mode 100644 index 4d6acc037b..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/non-sca-client/src/main/resources/jndi.properties +++ /dev/null @@ -1,39 +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. -## --------------------------------------------------------------------------- - -# START SNIPPET: jndi - -java.naming.factory.initial = org.apache.activemq.jndi.ActiveMQInitialContextFactory - -# use the following property to configure the default connector -java.naming.provider.url = vm://localhost?broker.persistent=false - -# use the following property to specify the JNDI name the connection factory -# should appear as. -#connectionFactoryNames = connectionFactory, queueConnectionFactory, topicConnectionFactry -connectionFactoryNames = ConnectionFactory - -# register some queues in JNDI using the form -# queue.[jndiName] = [physicalName] -queue.RequestQueue = RequestQueue -queue.ResponseQueue = ResponseQueue - -# register some topics in JNDI using the form -# topic.[jndiName] = [physicalName] -#topic.MyTopic = example.MyTopic - -# END SNIPPET: jndi diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/non-sca-client/src/main/resources/nonSCAclient/service.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/non-sca-client/src/main/resources/nonSCAclient/service.composite deleted file mode 100644 index 16474865ce..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/non-sca-client/src/main/resources/nonSCAclient/service.composite +++ /dev/null @@ -1,54 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/non-sca-client/src/test/java/org/apache/tuscany/sca/binding/jms/NonSCAClientTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/non-sca-client/src/test/java/org/apache/tuscany/sca/binding/jms/NonSCAClientTestCase.java deleted file mode 100644 index 54cfdeb273..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/non-sca-client/src/test/java/org/apache/tuscany/sca/binding/jms/NonSCAClientTestCase.java +++ /dev/null @@ -1,144 +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 org.apache.tuscany.sca.binding.jms; - -import static org.junit.Assert.assertEquals; - -import java.io.Serializable; -import java.util.HashSet; -import java.util.Set; - -import javax.jms.JMSException; -import javax.jms.MessageProducer; -import javax.jms.Session; -import javax.naming.NamingException; - -import org.apache.activemq.broker.BrokerService; -import org.apache.tuscany.sca.binding.jms.provider.JMSResourceFactory; -import org.apache.tuscany.sca.binding.jms.provider.JMSResourceFactoryImpl; -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; -import org.junit.After; -import org.junit.Before; -import org.junit.Test; - -/** - * This shows how to test the JMS binding using a simple HelloWorld application. - */ -public class NonSCAClientTestCase { - - private static Node node; - - @Before - public void init() throws Exception { - startBroker(); - node = NodeFactory.newInstance().createNode().start(); - } - - @After - public void end() throws Exception { - if (node != null) { - node.stop(); - } - stopBroker(); - } - - - @Test - public void testXMLText() throws Exception { - - synchronized (OneWayServiceImpl.mutex) { - - sendTextMessage("dynamicQueues/OneWayService", "Petra"); - - // wait up to 10 seconds but it will likely be a lot less - // as the service invocation will wake this up earlier - if (OneWayServiceImpl.name == null) { - OneWayServiceImpl.mutex.wait(10000); - } - } - assertEquals("Petra", OneWayServiceImpl.name); - } - - @Test - public void testText() throws Exception { - - synchronized (OneWayServiceImpl.mutex) { - - sendTextMessage("dynamicQueues/TextDest", "Petra"); - - // wait up to 10 seconds but it will likely be a lot less - // as the service invocation will wake this up earlier - OneWayServiceImpl.mutex.wait(10000); - } - assertEquals("Petra", OneWayServiceImpl.name); - } - - @Test - public void testObject() throws Exception { - - Set arg = new HashSet(); - arg.add(new Integer(3)); - - synchronized (OneWayObjectServiceImpl.mutex) { - - sendObjectMessage("dynamicQueues/ObjectDest", arg); - - // wait up to 10 seconds but it will likely be a lot less - // as the service invocation will wake this up earlier - OneWayObjectServiceImpl.mutex.wait(10000); - } - assertEquals(arg, OneWayObjectServiceImpl.name); - } - - private static BrokerService broker; - protected static void startBroker() throws Exception { - broker = new BrokerService(); - broker.setPersistent(false); - broker.setUseJmx(false); - broker.addConnector("tcp://localhost:61623"); - broker.start(); - } - - protected static void stopBroker() throws Exception { - if (broker != null) { - broker.stop(); - } - } - - protected static void sendTextMessage(String destName, String payload) throws JMSException, NamingException { - JMSResourceFactory rf = new JMSResourceFactoryImpl(null, null, null, "tcp://localhost:61623"); - Session session = rf.getConnection().createSession(false, Session.AUTO_ACKNOWLEDGE); - MessageProducer p = session.createProducer(rf.lookupDestination(destName)); - rf.getConnection().start(); - session.run(); - p.send(session.createTextMessage(payload)); - rf.closeConnection(); - } - - protected static void sendObjectMessage(String destName, Object payload) throws JMSException, NamingException { - JMSResourceFactory rf = new JMSResourceFactoryImpl(null, null, null, "tcp://localhost:61623"); - Session session = rf.getConnection().createSession(false, Session.AUTO_ACKNOWLEDGE); - MessageProducer p = session.createProducer(rf.lookupDestination(destName)); - rf.getConnection().start(); - session.run(); - p.send(session.createObjectMessage((Serializable)payload)); - rf.closeConnection(); - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/noreplyto/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/noreplyto/pom.xml deleted file mode 100644 index dfef2076c3..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/noreplyto/pom.xml +++ /dev/null @@ -1,83 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-itest - 2.0-M5 - ../pom.xml - - - itest-jms-noreplyto - Apache Tuscany SCA iTest JMS No replyTo - - - - - org.apache.tuscany.sca - tuscany-sca-api - 2.0-M5 - - - - org.apache.tuscany.sca - tuscany-node-impl - 2.0-M5 - - - - org.apache.tuscany.sca - tuscany-implementation-java-runtime - 2.0-M5 - runtime - - - - org.apache.tuscany.sca - tuscany-binding-jms-runtime - 2.0-M5 - - - - org.apache.activemq - activemq-core - 5.2.0 - runtime - - - org.apache.geronimo.specs - geronimo-jms_1.1_spec - 1.1 - provided - - - org.apache.geronimo.specs - geronimo-jms_1.1_spec - - - - - - - - ${artifactId} - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/noreplyto/src/main/java/org/apache/tuscany/sca/binding/jms/HelloWorldService.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/noreplyto/src/main/java/org/apache/tuscany/sca/binding/jms/HelloWorldService.java deleted file mode 100644 index 430c71aaef..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/noreplyto/src/main/java/org/apache/tuscany/sca/binding/jms/HelloWorldService.java +++ /dev/null @@ -1,26 +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 org.apache.tuscany.sca.binding.jms; - -import org.oasisopen.sca.annotation.Remotable; - -@Remotable -public interface HelloWorldService { - String sayHello(String name); -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/noreplyto/src/main/java/org/apache/tuscany/sca/binding/jms/HelloWorldServiceImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/noreplyto/src/main/java/org/apache/tuscany/sca/binding/jms/HelloWorldServiceImpl.java deleted file mode 100644 index 2c6d9d0d17..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/noreplyto/src/main/java/org/apache/tuscany/sca/binding/jms/HelloWorldServiceImpl.java +++ /dev/null @@ -1,30 +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 org.apache.tuscany.sca.binding.jms; - -public class HelloWorldServiceImpl implements HelloWorldService { - - public String sayHello(String name) { - if ("bang".equals(name)) { - throw new RuntimeException("blem wit"); - } - return "jmsHello " + name; - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/noreplyto/src/main/resources/META-INF/sca-contribution.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/noreplyto/src/main/resources/META-INF/sca-contribution.xml deleted file mode 100644 index 16825fe48f..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/noreplyto/src/main/resources/META-INF/sca-contribution.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/noreplyto/src/main/resources/jndi.properties b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/noreplyto/src/main/resources/jndi.properties deleted file mode 100644 index 4d6acc037b..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/noreplyto/src/main/resources/jndi.properties +++ /dev/null @@ -1,39 +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. -## --------------------------------------------------------------------------- - -# START SNIPPET: jndi - -java.naming.factory.initial = org.apache.activemq.jndi.ActiveMQInitialContextFactory - -# use the following property to configure the default connector -java.naming.provider.url = vm://localhost?broker.persistent=false - -# use the following property to specify the JNDI name the connection factory -# should appear as. -#connectionFactoryNames = connectionFactory, queueConnectionFactory, topicConnectionFactry -connectionFactoryNames = ConnectionFactory - -# register some queues in JNDI using the form -# queue.[jndiName] = [physicalName] -queue.RequestQueue = RequestQueue -queue.ResponseQueue = ResponseQueue - -# register some topics in JNDI using the form -# topic.[jndiName] = [physicalName] -#topic.MyTopic = example.MyTopic - -# END SNIPPET: jndi diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/noreplyto/src/main/resources/service.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/noreplyto/src/main/resources/service.composite deleted file mode 100644 index a712990a9b..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/noreplyto/src/main/resources/service.composite +++ /dev/null @@ -1,38 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/noreplyto/src/test/java/org/apache/tuscany/sca/binding/jms/NoReplyToTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/noreplyto/src/test/java/org/apache/tuscany/sca/binding/jms/NoReplyToTestCase.java deleted file mode 100644 index 848e340181..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/noreplyto/src/test/java/org/apache/tuscany/sca/binding/jms/NoReplyToTestCase.java +++ /dev/null @@ -1,100 +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 org.apache.tuscany.sca.binding.jms; - -import static org.junit.Assert.assertEquals; - -import java.util.Properties; - -import javax.jms.Connection; -import javax.jms.ConnectionFactory; -import javax.jms.Destination; -import javax.jms.JMSException; -import javax.jms.Message; -import javax.jms.MessageConsumer; -import javax.jms.MessageProducer; -import javax.jms.ObjectMessage; -import javax.jms.Session; -import javax.naming.InitialContext; -import javax.naming.NamingException; - -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; -import org.junit.After; -import org.junit.Before; -import org.junit.Test; - -/** - * Uses a non-Tuscany JMS client to send/receive a JMS request to a Tuscany/SCA JMS service - */ -public class NoReplyToTestCase { - - private Node node; - private Session session; - private InitialContext context; - private Connection connection; - - @Before - public void init() { - node = NodeFactory.newInstance().createNode().start(); - } - - @Test - public void testHelloWorldCreate() throws Exception { - sendJMSRequest(); - String response = receiveJMSResponse(); - assertEquals("jmsHello Petra", response); - } - - private void sendJMSRequest() throws NamingException, JMSException { - context = new InitialContext(new Properties()); - ConnectionFactory cf = (ConnectionFactory)context.lookup("ConnectionFactory"); - connection = cf.createConnection(); - connection.start(); - - session = connection.createSession(false, Session.AUTO_ACKNOWLEDGE); - Destination toDest = (Destination)context.lookup("RequestQueue"); - - ObjectMessage m = session.createObjectMessage(); - m.setObject("Petra"); - - MessageProducer producer = session.createProducer(toDest); - producer.send(m); - } - - private String receiveJMSResponse() throws NamingException, JMSException { - Destination replyDest = (Destination)context.lookup("ResponseQueue"); - MessageConsumer consumer = session.createConsumer(replyDest); - Message m = consumer.receive(5000); - if (m == null) { - throw new RuntimeException("No reply message received"); - } - return ((ObjectMessage)m).getObject().toString(); - } - - @After - public void end() throws JMSException { - if (node != null) { - node.stop(); - } - if (connection != null) { - connection.close(); - } - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/nulls/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/nulls/pom.xml deleted file mode 100644 index 208dc8909a..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/nulls/pom.xml +++ /dev/null @@ -1,71 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-itest - 2.0-M5 - ../pom.xml - - - itest-jms-nulls - Apache Tuscany SCA iTest JMS Nulls - - - - - org.apache.tuscany.sca - tuscany-sca-api - 2.0-M5 - - - - org.apache.tuscany.sca - tuscany-implementation-java-runtime - 2.0-M5 - runtime - - - - org.apache.tuscany.sca - tuscany-binding-jms-runtime - 2.0-M5 - - - - org.apache.tuscany.sca - tuscany-node-impl - 2.0-M5 - test - - - - org.apache.activemq - activemq-core - 5.2.0 - - - - - - ${artifactId} - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/nulls/src/main/java/org/apache/tuscany/sca/binding/jms/ClientImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/nulls/src/main/java/org/apache/tuscany/sca/binding/jms/ClientImpl.java deleted file mode 100644 index 7fed36fa77..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/nulls/src/main/java/org/apache/tuscany/sca/binding/jms/ClientImpl.java +++ /dev/null @@ -1,41 +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 org.apache.tuscany.sca.binding.jms; - -import org.oasisopen.sca.annotation.Reference; -import org.oasisopen.sca.annotation.Service; - -/** - * This class implements the OneWay service. - */ -@Service(MyService.class) -public class ClientImpl implements MyService { - - private MyService serviceA; - - @Reference - public void setServiceA(MyService service) { - this.serviceA = service; - } - - public void sayHello() { - serviceA.sayHello(); - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/nulls/src/main/java/org/apache/tuscany/sca/binding/jms/MyService.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/nulls/src/main/java/org/apache/tuscany/sca/binding/jms/MyService.java deleted file mode 100644 index 7ab6019fd5..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/nulls/src/main/java/org/apache/tuscany/sca/binding/jms/MyService.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 org.apache.tuscany.sca.binding.jms; - -import org.oasisopen.sca.annotation.Remotable; - -@Remotable -public interface MyService { - - void sayHello(); - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/nulls/src/main/java/org/apache/tuscany/sca/binding/jms/ServiceImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/nulls/src/main/java/org/apache/tuscany/sca/binding/jms/ServiceImpl.java deleted file mode 100644 index 89758becff..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/nulls/src/main/java/org/apache/tuscany/sca/binding/jms/ServiceImpl.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 org.apache.tuscany.sca.binding.jms; - - -public class ServiceImpl implements MyService { - - public void sayHello() { - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/nulls/src/main/resources/META-INF/sca-contribution.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/nulls/src/main/resources/META-INF/sca-contribution.xml deleted file mode 100644 index ccb52c8702..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/nulls/src/main/resources/META-INF/sca-contribution.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/nulls/src/main/resources/jndi.properties b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/nulls/src/main/resources/jndi.properties deleted file mode 100644 index 7ce468aa0f..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/nulls/src/main/resources/jndi.properties +++ /dev/null @@ -1,38 +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. -## --------------------------------------------------------------------------- - -# START SNIPPET: jndi - -java.naming.factory.initial = org.apache.activemq.jndi.ActiveMQInitialContextFactory - -# use the following property to configure the default connector -java.naming.provider.url = vm://localhost?broker.persistent=false&broker.useJmx=false&broker.useShutdownHook=false - -# use the following property to specify the JNDI name the connection factory -# should appear as. -#connectionFactoryNames = connectionFactory, queueConnectionFactory, topicConnectionFactry -connectionFactoryNames = ConnectionFactory, ConnectionFactory2 - -# register some queues in JNDI using the form -# queue.[jndiName] = [physicalName] - -# register some topics in JNDI using the form -# topic.[jndiName] = [physicalName] -#topic.MyTopic = example.MyTopic -topic.ServiceTopic = ServiceTopic - -# END SNIPPET: jndi diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/nulls/src/main/resources/nulls.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/nulls/src/main/resources/nulls.composite deleted file mode 100644 index 64fc9f9345..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/nulls/src/main/resources/nulls.composite +++ /dev/null @@ -1,57 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/nulls/src/test/java/org/apache/tuscany/sca/binding/jms/NullsTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/nulls/src/test/java/org/apache/tuscany/sca/binding/jms/NullsTestCase.java deleted file mode 100644 index ac872f46a6..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/nulls/src/test/java/org/apache/tuscany/sca/binding/jms/NullsTestCase.java +++ /dev/null @@ -1,60 +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 org.apache.tuscany.sca.binding.jms; - -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; -import org.junit.After; -import org.junit.Before; -import org.junit.Test; - -/** - */ -public class NullsTestCase { - - private Node node; - - @Before - public void init() { - node = NodeFactory.newInstance().createNode().start(); - } - - @Test - public void testSayHello() throws Exception { - MyService client1 = node.getService(MyService.class, "Client1"); - - client1.sayHello(); - - } - - @Test - public void testSayHelloObjectFormat() throws Exception { - MyService client1 = node.getService(MyService.class, "Client2"); - - client1.sayHello(); - - } - - @After - public void end() { - if (node != null) { - node.stop(); - } - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/oneway-nocf/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/oneway-nocf/pom.xml deleted file mode 100644 index 00e8a436ff..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/oneway-nocf/pom.xml +++ /dev/null @@ -1,83 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-itest - 2.0-M5 - ../pom.xml - - itest-jms-oneway-nocf - Apache Tuscany SCA iTest JMS for a oneway service - - - - - org.apache.tuscany.sca - tuscany-sca-api - 2.0-M5 - - - - org.apache.tuscany.sca - tuscany-node-impl - 2.0-M5 - runtime - - - - org.apache.tuscany.sca - tuscany-implementation-java-runtime - 2.0-M5 - runtime - - - - org.apache.tuscany.sca - tuscany-binding-jms-runtime - 2.0-M5 - - - - org.apache.activemq - activemq-core - 5.2.0 - runtime - - - org.apache.geronimo.specs - geronimo-jms_1.1_spec - 1.1 - provided - - - org.apache.geronimo.specs - geronimo-jms_1.1_spec - - - - - - - - ${artifactId} - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/oneway-nocf/src/main/java/org/apache/tuscany/sca/binding/jms/OneWayClientImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/oneway-nocf/src/main/java/org/apache/tuscany/sca/binding/jms/OneWayClientImpl.java deleted file mode 100644 index b572b1012a..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/oneway-nocf/src/main/java/org/apache/tuscany/sca/binding/jms/OneWayClientImpl.java +++ /dev/null @@ -1,41 +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 org.apache.tuscany.sca.binding.jms; - -import org.oasisopen.sca.annotation.Reference; -import org.oasisopen.sca.annotation.Service; - -/** - * This class implements the OneWay service. - */ -@Service(OneWayService.class) -public class OneWayClientImpl implements OneWayService { - - private OneWayService serviceA; - - @Reference - public void setServiceA(OneWayService service) { - this.serviceA = service; - } - - public void sayHello(String name) { - serviceA.sayHello(name); - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/oneway-nocf/src/main/java/org/apache/tuscany/sca/binding/jms/OneWayService.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/oneway-nocf/src/main/java/org/apache/tuscany/sca/binding/jms/OneWayService.java deleted file mode 100644 index 9cec2d9b3e..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/oneway-nocf/src/main/java/org/apache/tuscany/sca/binding/jms/OneWayService.java +++ /dev/null @@ -1,29 +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 org.apache.tuscany.sca.binding.jms; - -import org.oasisopen.sca.annotation.OneWay; -import org.oasisopen.sca.annotation.Remotable; - -@Remotable -public interface OneWayService { - - @OneWay - void sayHello(String name); -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/oneway-nocf/src/main/java/org/apache/tuscany/sca/binding/jms/OneWayServiceImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/oneway-nocf/src/main/java/org/apache/tuscany/sca/binding/jms/OneWayServiceImpl.java deleted file mode 100644 index 0036391696..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/oneway-nocf/src/main/java/org/apache/tuscany/sca/binding/jms/OneWayServiceImpl.java +++ /dev/null @@ -1,34 +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 org.apache.tuscany.sca.binding.jms; - -public class OneWayServiceImpl implements OneWayService { - - public static Object mutex = new Object(); - public static String name; - - public void sayHello(String name) { - OneWayServiceImpl.name = name; - synchronized (OneWayServiceImpl.mutex) { - OneWayServiceImpl.mutex.notify(); - } - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/oneway-nocf/src/main/resources/META-INF/sca-contribution.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/oneway-nocf/src/main/resources/META-INF/sca-contribution.xml deleted file mode 100644 index edd6d508f7..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/oneway-nocf/src/main/resources/META-INF/sca-contribution.xml +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/oneway-nocf/src/main/resources/jndi.properties b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/oneway-nocf/src/main/resources/jndi.properties deleted file mode 100644 index 8934614a8a..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/oneway-nocf/src/main/resources/jndi.properties +++ /dev/null @@ -1,38 +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. -## --------------------------------------------------------------------------- - -# START SNIPPET: jndi - -java.naming.factory.initial = org.apache.activemq.jndi.ActiveMQInitialContextFactory - -# use the following property to configure the default connector -java.naming.provider.url = vm://localhost?broker.persistent=false - -# use the following property to specify the JNDI name the connection factory -# should appear as. -#connectionFactoryNames = connectionFactory, queueConnectionFactory, topicConnectionFactry -connectionFactoryNames = SomeConnectionFactory - -# register some queues in JNDI using the form -# queue.[jndiName] = [physicalName] -queue.SomeQueue = RequestQueue - -# register some topics in JNDI using the form -# topic.[jndiName] = [physicalName] -#topic.MyTopic = example.MyTopic - -# END SNIPPET: jndi diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/oneway-nocf/src/main/resources/oneway/OneWayClient.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/oneway-nocf/src/main/resources/oneway/OneWayClient.composite deleted file mode 100644 index bf709776df..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/oneway-nocf/src/main/resources/oneway/OneWayClient.composite +++ /dev/null @@ -1,35 +0,0 @@ - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/oneway-nocf/src/main/resources/oneway/OneWayService.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/oneway-nocf/src/main/resources/oneway/OneWayService.composite deleted file mode 100644 index da2e6a2264..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/oneway-nocf/src/main/resources/oneway/OneWayService.composite +++ /dev/null @@ -1,34 +0,0 @@ - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/oneway-nocf/src/test/java/org/apache/tuscany/sca/binding/jms/OneWayTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/oneway-nocf/src/test/java/org/apache/tuscany/sca/binding/jms/OneWayTestCase.java deleted file mode 100644 index 5d1f764382..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/oneway-nocf/src/test/java/org/apache/tuscany/sca/binding/jms/OneWayTestCase.java +++ /dev/null @@ -1,59 +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 org.apache.tuscany.sca.binding.jms; - -import static org.junit.Assert.assertEquals; - -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; -import org.junit.After; -import org.junit.Before; -import org.junit.Test; - -/** - * This shows how to test the JMS binding using a simple HelloWorld application. - */ -public class OneWayTestCase { - - private Node node; - - @Before - public void init() { - node = NodeFactory.newInstance().createNode().start(); - } - - @Test - public void testOneWayInvoked() throws Exception { - OneWayService oneWayService = node.getService(OneWayService.class, "OneWayClient"); - oneWayService.sayHello("Petra"); - synchronized (OneWayServiceImpl.mutex) { - // wait up to 10 seconds but it will likely be a lot less - // as the service invocation will wake this up earlier - OneWayServiceImpl.mutex.wait(10000); - } - assertEquals("Petra", OneWayServiceImpl.name); - } - - @After - public void end() { - if (node != null) { - node.stop(); - } - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/oneway/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/oneway/pom.xml deleted file mode 100644 index f2e447c4ba..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/oneway/pom.xml +++ /dev/null @@ -1,83 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-itest - 2.0-M5 - ../pom.xml - - - itest-jms-oneway - Apache Tuscany SCA iTest JMS with Oneway - - - - - org.apache.tuscany.sca - tuscany-sca-api - 2.0-M5 - - - - org.apache.tuscany.sca - tuscany-node-impl - 2.0-M5 - - - - org.apache.tuscany.sca - tuscany-implementation-java-runtime - 2.0-M5 - runtime - - - - org.apache.tuscany.sca - tuscany-binding-jms-runtime - 2.0-M5 - - - - org.apache.activemq - activemq-core - 5.2.0 - runtime - - - org.apache.geronimo.specs - geronimo-jms_1.1_spec - 1.1 - provided - - - org.apache.geronimo.specs - geronimo-jms_1.1_spec - - - - - - - - ${artifactId} - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/oneway/src/main/java/org/apache/tuscany/sca/binding/jms/OneWayClientImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/oneway/src/main/java/org/apache/tuscany/sca/binding/jms/OneWayClientImpl.java deleted file mode 100644 index b572b1012a..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/oneway/src/main/java/org/apache/tuscany/sca/binding/jms/OneWayClientImpl.java +++ /dev/null @@ -1,41 +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 org.apache.tuscany.sca.binding.jms; - -import org.oasisopen.sca.annotation.Reference; -import org.oasisopen.sca.annotation.Service; - -/** - * This class implements the OneWay service. - */ -@Service(OneWayService.class) -public class OneWayClientImpl implements OneWayService { - - private OneWayService serviceA; - - @Reference - public void setServiceA(OneWayService service) { - this.serviceA = service; - } - - public void sayHello(String name) { - serviceA.sayHello(name); - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/oneway/src/main/java/org/apache/tuscany/sca/binding/jms/OneWayObjectService.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/oneway/src/main/java/org/apache/tuscany/sca/binding/jms/OneWayObjectService.java deleted file mode 100644 index 9083ba1d9c..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/oneway/src/main/java/org/apache/tuscany/sca/binding/jms/OneWayObjectService.java +++ /dev/null @@ -1,29 +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 org.apache.tuscany.sca.binding.jms; - -import org.oasisopen.sca.annotation.OneWay; -import org.oasisopen.sca.annotation.Remotable; - -@Remotable -public interface OneWayObjectService { - - @OneWay - void sayHello(Object name); -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/oneway/src/main/java/org/apache/tuscany/sca/binding/jms/OneWayObjectServiceImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/oneway/src/main/java/org/apache/tuscany/sca/binding/jms/OneWayObjectServiceImpl.java deleted file mode 100644 index 3149f99a25..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/oneway/src/main/java/org/apache/tuscany/sca/binding/jms/OneWayObjectServiceImpl.java +++ /dev/null @@ -1,34 +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 org.apache.tuscany.sca.binding.jms; - -public class OneWayObjectServiceImpl implements OneWayObjectService { - - public static Object mutex = new Object(); - public static Object name; - - public void sayHello(Object name) { - OneWayObjectServiceImpl.name = name; - synchronized (OneWayObjectServiceImpl.mutex) { - OneWayObjectServiceImpl.mutex.notify(); - } - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/oneway/src/main/java/org/apache/tuscany/sca/binding/jms/OneWayService.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/oneway/src/main/java/org/apache/tuscany/sca/binding/jms/OneWayService.java deleted file mode 100644 index 9cec2d9b3e..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/oneway/src/main/java/org/apache/tuscany/sca/binding/jms/OneWayService.java +++ /dev/null @@ -1,29 +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 org.apache.tuscany.sca.binding.jms; - -import org.oasisopen.sca.annotation.OneWay; -import org.oasisopen.sca.annotation.Remotable; - -@Remotable -public interface OneWayService { - - @OneWay - void sayHello(String name); -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/oneway/src/main/java/org/apache/tuscany/sca/binding/jms/OneWayServiceImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/oneway/src/main/java/org/apache/tuscany/sca/binding/jms/OneWayServiceImpl.java deleted file mode 100644 index 0036391696..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/oneway/src/main/java/org/apache/tuscany/sca/binding/jms/OneWayServiceImpl.java +++ /dev/null @@ -1,34 +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 org.apache.tuscany.sca.binding.jms; - -public class OneWayServiceImpl implements OneWayService { - - public static Object mutex = new Object(); - public static String name; - - public void sayHello(String name) { - OneWayServiceImpl.name = name; - synchronized (OneWayServiceImpl.mutex) { - OneWayServiceImpl.mutex.notify(); - } - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/oneway/src/main/resources/META-INF/sca-contribution.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/oneway/src/main/resources/META-INF/sca-contribution.xml deleted file mode 100644 index edd6d508f7..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/oneway/src/main/resources/META-INF/sca-contribution.xml +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/oneway/src/main/resources/jndi.properties b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/oneway/src/main/resources/jndi.properties deleted file mode 100644 index 4d6acc037b..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/oneway/src/main/resources/jndi.properties +++ /dev/null @@ -1,39 +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. -## --------------------------------------------------------------------------- - -# START SNIPPET: jndi - -java.naming.factory.initial = org.apache.activemq.jndi.ActiveMQInitialContextFactory - -# use the following property to configure the default connector -java.naming.provider.url = vm://localhost?broker.persistent=false - -# use the following property to specify the JNDI name the connection factory -# should appear as. -#connectionFactoryNames = connectionFactory, queueConnectionFactory, topicConnectionFactry -connectionFactoryNames = ConnectionFactory - -# register some queues in JNDI using the form -# queue.[jndiName] = [physicalName] -queue.RequestQueue = RequestQueue -queue.ResponseQueue = ResponseQueue - -# register some topics in JNDI using the form -# topic.[jndiName] = [physicalName] -#topic.MyTopic = example.MyTopic - -# END SNIPPET: jndi diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/oneway/src/main/resources/oneway/OneWayClient.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/oneway/src/main/resources/oneway/OneWayClient.composite deleted file mode 100644 index 8bccf22bea..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/oneway/src/main/resources/oneway/OneWayClient.composite +++ /dev/null @@ -1,33 +0,0 @@ - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/oneway/src/main/resources/oneway/OneWayService.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/oneway/src/main/resources/oneway/OneWayService.composite deleted file mode 100644 index 0014b88050..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/oneway/src/main/resources/oneway/OneWayService.composite +++ /dev/null @@ -1,33 +0,0 @@ - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/oneway/src/test/java/org/apache/tuscany/sca/binding/jms/OneWayTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/oneway/src/test/java/org/apache/tuscany/sca/binding/jms/OneWayTestCase.java deleted file mode 100644 index 14bbf238e1..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/oneway/src/test/java/org/apache/tuscany/sca/binding/jms/OneWayTestCase.java +++ /dev/null @@ -1,60 +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 org.apache.tuscany.sca.binding.jms; - -import static org.junit.Assert.assertEquals; - -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; - -import org.junit.After; -import org.junit.Before; -import org.junit.Test; - -/** - * This shows how to test the JMS binding using a simple HelloWorld application. - */ -public class OneWayTestCase { - - private Node node; - - @Before - public void init() { - node = NodeFactory.newInstance().createNode().start(); - } - - @Test - public void testOneWayInvoked() throws Exception { - OneWayService oneWayService = node.getService(OneWayService.class, "OneWayClient"); - oneWayService.sayHello("Petra"); - synchronized (OneWayServiceImpl.mutex) { - // wait up to 10 seconds but it will likely be a lot less - // as the service invocation will wake this up earlier - OneWayServiceImpl.mutex.wait(10000); - } - assertEquals("Petra", OneWayServiceImpl.name); - } - - @After - public void end() { - if (node != null) { - node.stop(); - } - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/policy-headers/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/policy-headers/pom.xml deleted file mode 100644 index bb74405010..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/policy-headers/pom.xml +++ /dev/null @@ -1,83 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-itest - 2.0-M5 - ../pom.xml - - - itest-jms-policy-headers - Apache Tuscany SCA iTest JMS with Policy Headers - - - - - org.apache.tuscany.sca - tuscany-sca-api - 2.0-M5 - - - - org.apache.tuscany.sca - tuscany-node-impl - 2.0-M5 - - - - org.apache.tuscany.sca - tuscany-implementation-java-runtime - 2.0-M5 - runtime - - - - org.apache.tuscany.sca - tuscany-binding-jms-runtime - 2.0-M5 - - - - org.apache.activemq - activemq-core - 5.2.0 - runtime - - - org.apache.geronimo.specs - geronimo-jms_1.1_spec - 1.1 - provided - - - org.apache.geronimo.specs - geronimo-jms_1.1_spec - - - - - - - - ${artifactId} - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/policy-headers/src/main/java/org/apache/tuscany/sca/binding/jms/JMSClient.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/policy-headers/src/main/java/org/apache/tuscany/sca/binding/jms/JMSClient.java deleted file mode 100644 index d4cd5df431..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/policy-headers/src/main/java/org/apache/tuscany/sca/binding/jms/JMSClient.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 org.apache.tuscany.sca.binding.jms; - - -/** - * The client interface - */ -public interface JMSClient { - - void aClientMethod(); -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/policy-headers/src/main/java/org/apache/tuscany/sca/binding/jms/MsgClient.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/policy-headers/src/main/java/org/apache/tuscany/sca/binding/jms/MsgClient.java deleted file mode 100644 index 464072b42d..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/policy-headers/src/main/java/org/apache/tuscany/sca/binding/jms/MsgClient.java +++ /dev/null @@ -1,29 +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 org.apache.tuscany.sca.binding.jms; - - -/** - * The client interface - */ -public interface MsgClient { - - void aClientMethod(); - void op2(); -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/policy-headers/src/main/java/org/apache/tuscany/sca/binding/jms/MsgClientImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/policy-headers/src/main/java/org/apache/tuscany/sca/binding/jms/MsgClientImpl.java deleted file mode 100644 index 4140fa0b89..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/policy-headers/src/main/java/org/apache/tuscany/sca/binding/jms/MsgClientImpl.java +++ /dev/null @@ -1,38 +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 org.apache.tuscany.sca.binding.jms; - -import org.oasisopen.sca.annotation.Reference; -import org.oasisopen.sca.annotation.Service; - -@Service(MsgClient.class) -public class MsgClientImpl implements MsgClient { - - @Reference protected MsgClientService myService; - - public void aClientMethod() { - myService.aClientMethod(); - } - - public void op2() { - myService.op2(); - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/policy-headers/src/main/java/org/apache/tuscany/sca/binding/jms/MsgClientService.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/policy-headers/src/main/java/org/apache/tuscany/sca/binding/jms/MsgClientService.java deleted file mode 100644 index 2be4f2ad3e..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/policy-headers/src/main/java/org/apache/tuscany/sca/binding/jms/MsgClientService.java +++ /dev/null @@ -1,33 +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 org.apache.tuscany.sca.binding.jms; - -import org.oasisopen.sca.annotation.Remotable; - - -/** - * The client interface - */ -@Remotable -public interface MsgClientService { - - void aClientMethod(); - - void op2(); -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/policy-headers/src/main/java/org/apache/tuscany/sca/binding/jms/MsgService.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/policy-headers/src/main/java/org/apache/tuscany/sca/binding/jms/MsgService.java deleted file mode 100644 index d5684ca56c..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/policy-headers/src/main/java/org/apache/tuscany/sca/binding/jms/MsgService.java +++ /dev/null @@ -1,32 +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 org.apache.tuscany.sca.binding.jms; - -import org.oasisopen.sca.annotation.AllowsPassByReference; -import org.oasisopen.sca.annotation.Remotable; - - -@Remotable -@AllowsPassByReference -public interface MsgService { - - void onMessage(javax.jms.Message msg); - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/policy-headers/src/main/java/org/apache/tuscany/sca/binding/jms/MsgServiceImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/policy-headers/src/main/java/org/apache/tuscany/sca/binding/jms/MsgServiceImpl.java deleted file mode 100644 index e18de0456c..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/policy-headers/src/main/java/org/apache/tuscany/sca/binding/jms/MsgServiceImpl.java +++ /dev/null @@ -1,39 +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 org.apache.tuscany.sca.binding.jms; - -import javax.jms.Message; - -import org.oasisopen.sca.annotation.Service; - -@Service(MsgService.class) -public class MsgServiceImpl implements MsgService { - - public static Object lock = new Object(); - public static Message msg; - - public void onMessage(Message msg) { - MsgServiceImpl.msg = msg; - synchronized(lock) { - lock.notifyAll(); - } - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/policy-headers/src/main/resources/META-INF/definitions.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/policy-headers/src/main/resources/META-INF/definitions.xml deleted file mode 100644 index 7e417723f2..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/policy-headers/src/main/resources/META-INF/definitions.xml +++ /dev/null @@ -1,65 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/policy-headers/src/main/resources/META-INF/sca-contribution.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/policy-headers/src/main/resources/META-INF/sca-contribution.xml deleted file mode 100644 index 12c7313bb4..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/policy-headers/src/main/resources/META-INF/sca-contribution.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/policy-headers/src/main/resources/jndi.properties b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/policy-headers/src/main/resources/jndi.properties deleted file mode 100644 index 4d6acc037b..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/policy-headers/src/main/resources/jndi.properties +++ /dev/null @@ -1,39 +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. -## --------------------------------------------------------------------------- - -# START SNIPPET: jndi - -java.naming.factory.initial = org.apache.activemq.jndi.ActiveMQInitialContextFactory - -# use the following property to configure the default connector -java.naming.provider.url = vm://localhost?broker.persistent=false - -# use the following property to specify the JNDI name the connection factory -# should appear as. -#connectionFactoryNames = connectionFactory, queueConnectionFactory, topicConnectionFactry -connectionFactoryNames = ConnectionFactory - -# register some queues in JNDI using the form -# queue.[jndiName] = [physicalName] -queue.RequestQueue = RequestQueue -queue.ResponseQueue = ResponseQueue - -# register some topics in JNDI using the form -# topic.[jndiName] = [physicalName] -#topic.MyTopic = example.MyTopic - -# END SNIPPET: jndi diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/policy-headers/src/main/resources/policyHeaders/policyHeaders.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/policy-headers/src/main/resources/policyHeaders/policyHeaders.composite deleted file mode 100644 index c6ea015d85..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/policy-headers/src/main/resources/policyHeaders/policyHeaders.composite +++ /dev/null @@ -1,45 +0,0 @@ - - - - - - - - - - myHeadP1 - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/policy-headers/src/test/java/org/apache/tuscany/sca/binding/jms/PolicyHeadersTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/policy-headers/src/test/java/org/apache/tuscany/sca/binding/jms/PolicyHeadersTestCase.java deleted file mode 100644 index ebffbc4bc4..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/policy-headers/src/test/java/org/apache/tuscany/sca/binding/jms/PolicyHeadersTestCase.java +++ /dev/null @@ -1,94 +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 org.apache.tuscany.sca.binding.jms; - -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertNotNull; - -import javax.jms.DeliveryMode; - -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; - -import org.junit.After; -import org.junit.Before; -import org.junit.Ignore; -import org.junit.Test; - -/** - */ -public class PolicyHeadersTestCase { - - private Node node; - - @Before - public void init() { - node = NodeFactory.newInstance().createNode().start(); - } - - @Test - public void testProps1() throws Exception { - JMSClient client = node.getService(JMSClient.class, "ClientComponent"); - - client.aClientMethod(); - - // wait for up to 5 seconds but should wake up as soon as done - synchronized(MsgServiceImpl.lock) { - if (MsgServiceImpl.msg == null) { - MsgServiceImpl.lock.wait(5000); // For debugging set higher. - } - } - assertNotNull(MsgServiceImpl.msg); - - assertEquals("myType", MsgServiceImpl.msg.getJMSType()); - assertEquals(DeliveryMode.PERSISTENT, MsgServiceImpl.msg.getJMSDeliveryMode()); - assertEquals(7, MsgServiceImpl.msg.getJMSPriority()); - assertEquals("myHeadP1", MsgServiceImpl.msg.getStringProperty("headP1")); - } - - @Test - @Ignore - public void testOp2() throws Exception { - MsgClient client = node.getService(MsgClient.class, "ClientComponent"); - - client.op2(); - - // wait for up to 5 seconds but should wake up as soon as done - synchronized(MsgServiceImpl.lock) { - if (MsgServiceImpl.msg == null) { - MsgServiceImpl.lock.wait(5000); - } - } - assertNotNull(MsgServiceImpl.msg); - - assertEquals("op2Type", MsgServiceImpl.msg.getJMSType()); - assertEquals(DeliveryMode.NON_PERSISTENT, MsgServiceImpl.msg.getJMSDeliveryMode()); - assertEquals(3, MsgServiceImpl.msg.getJMSPriority()); - assertEquals("myHeadP1", MsgServiceImpl.msg.getStringProperty("headP1")); - assertEquals("foo", MsgServiceImpl.msg.getStringProperty("op2P2")); - assertEquals("nativeOp2", MsgServiceImpl.msg.getStringProperty("scaOperationName")); - } - - @After - public void end() { - if (node != null) { - node.stop(); - } - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/pom.xml deleted file mode 100644 index ba415d3bfc..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/pom.xml +++ /dev/null @@ -1,68 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-itest - 2.0-M5 - ../pom.xml - - pom - itest-jms - Apache Tuscany SCA iTest JMS - - - args - callbacks - defaults - DynamicReplyQ - exceptions - exceptions1 - externalBroker - format-jmsbytes - format-jmsbytesxml - format-jmsdefault - format-jmsmessage - format-jmsobject - format-jmstext - format-jmstextxml - format-jmstextxmlinjmsobjectout - non-sca-client - noreplyto - nulls - oneway - oneway-nocf - policy-headers - properties - responsecf - rpc - selectors - topics - ttl - uri-rpc - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/properties/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/properties/pom.xml deleted file mode 100644 index 67c0fc454a..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/properties/pom.xml +++ /dev/null @@ -1,83 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-itest - 2.0-M5 - ../pom.xml - - - itest-jms-properties - Apache Tuscany SCA iTest JMS with Properties - - - - - org.apache.tuscany.sca - tuscany-sca-api - 2.0-M5 - - - - org.apache.tuscany.sca - tuscany-node-impl - 2.0-M5 - - - - org.apache.tuscany.sca - tuscany-implementation-java-runtime - 2.0-M5 - runtime - - - - org.apache.tuscany.sca - tuscany-binding-jms-runtime - 2.0-M5 - - - - org.apache.activemq - activemq-core - 5.2.0 - runtime - - - org.apache.geronimo.specs - geronimo-jms_1.1_spec - 1.1 - provided - - - org.apache.geronimo.specs - geronimo-jms_1.1_spec - - - - - - - - ${artifactId} - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/properties/src/main/java/org/apache/tuscany/sca/binding/jms/JMSClient.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/properties/src/main/java/org/apache/tuscany/sca/binding/jms/JMSClient.java deleted file mode 100644 index d4cd5df431..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/properties/src/main/java/org/apache/tuscany/sca/binding/jms/JMSClient.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 org.apache.tuscany.sca.binding.jms; - - -/** - * The client interface - */ -public interface JMSClient { - - void aClientMethod(); -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/properties/src/main/java/org/apache/tuscany/sca/binding/jms/MsgClient.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/properties/src/main/java/org/apache/tuscany/sca/binding/jms/MsgClient.java deleted file mode 100644 index 464072b42d..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/properties/src/main/java/org/apache/tuscany/sca/binding/jms/MsgClient.java +++ /dev/null @@ -1,29 +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 org.apache.tuscany.sca.binding.jms; - - -/** - * The client interface - */ -public interface MsgClient { - - void aClientMethod(); - void op2(); -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/properties/src/main/java/org/apache/tuscany/sca/binding/jms/MsgClientImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/properties/src/main/java/org/apache/tuscany/sca/binding/jms/MsgClientImpl.java deleted file mode 100644 index 4140fa0b89..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/properties/src/main/java/org/apache/tuscany/sca/binding/jms/MsgClientImpl.java +++ /dev/null @@ -1,38 +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 org.apache.tuscany.sca.binding.jms; - -import org.oasisopen.sca.annotation.Reference; -import org.oasisopen.sca.annotation.Service; - -@Service(MsgClient.class) -public class MsgClientImpl implements MsgClient { - - @Reference protected MsgClientService myService; - - public void aClientMethod() { - myService.aClientMethod(); - } - - public void op2() { - myService.op2(); - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/properties/src/main/java/org/apache/tuscany/sca/binding/jms/MsgClientService.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/properties/src/main/java/org/apache/tuscany/sca/binding/jms/MsgClientService.java deleted file mode 100644 index 2be4f2ad3e..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/properties/src/main/java/org/apache/tuscany/sca/binding/jms/MsgClientService.java +++ /dev/null @@ -1,33 +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 org.apache.tuscany.sca.binding.jms; - -import org.oasisopen.sca.annotation.Remotable; - - -/** - * The client interface - */ -@Remotable -public interface MsgClientService { - - void aClientMethod(); - - void op2(); -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/properties/src/main/java/org/apache/tuscany/sca/binding/jms/MsgService.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/properties/src/main/java/org/apache/tuscany/sca/binding/jms/MsgService.java deleted file mode 100644 index d5684ca56c..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/properties/src/main/java/org/apache/tuscany/sca/binding/jms/MsgService.java +++ /dev/null @@ -1,32 +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 org.apache.tuscany.sca.binding.jms; - -import org.oasisopen.sca.annotation.AllowsPassByReference; -import org.oasisopen.sca.annotation.Remotable; - - -@Remotable -@AllowsPassByReference -public interface MsgService { - - void onMessage(javax.jms.Message msg); - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/properties/src/main/java/org/apache/tuscany/sca/binding/jms/MsgServiceImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/properties/src/main/java/org/apache/tuscany/sca/binding/jms/MsgServiceImpl.java deleted file mode 100644 index e18de0456c..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/properties/src/main/java/org/apache/tuscany/sca/binding/jms/MsgServiceImpl.java +++ /dev/null @@ -1,39 +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 org.apache.tuscany.sca.binding.jms; - -import javax.jms.Message; - -import org.oasisopen.sca.annotation.Service; - -@Service(MsgService.class) -public class MsgServiceImpl implements MsgService { - - public static Object lock = new Object(); - public static Message msg; - - public void onMessage(Message msg) { - MsgServiceImpl.msg = msg; - synchronized(lock) { - lock.notifyAll(); - } - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/properties/src/main/resources/META-INF/sca-contribution.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/properties/src/main/resources/META-INF/sca-contribution.xml deleted file mode 100644 index 12c7313bb4..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/properties/src/main/resources/META-INF/sca-contribution.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/properties/src/main/resources/jndi.properties b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/properties/src/main/resources/jndi.properties deleted file mode 100644 index 4d6acc037b..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/properties/src/main/resources/jndi.properties +++ /dev/null @@ -1,39 +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. -## --------------------------------------------------------------------------- - -# START SNIPPET: jndi - -java.naming.factory.initial = org.apache.activemq.jndi.ActiveMQInitialContextFactory - -# use the following property to configure the default connector -java.naming.provider.url = vm://localhost?broker.persistent=false - -# use the following property to specify the JNDI name the connection factory -# should appear as. -#connectionFactoryNames = connectionFactory, queueConnectionFactory, topicConnectionFactry -connectionFactoryNames = ConnectionFactory - -# register some queues in JNDI using the form -# queue.[jndiName] = [physicalName] -queue.RequestQueue = RequestQueue -queue.ResponseQueue = ResponseQueue - -# register some topics in JNDI using the form -# topic.[jndiName] = [physicalName] -#topic.MyTopic = example.MyTopic - -# END SNIPPET: jndi diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/properties/src/main/resources/properties/properties.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/properties/src/main/resources/properties/properties.composite deleted file mode 100644 index 12c26132a2..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/properties/src/main/resources/properties/properties.composite +++ /dev/null @@ -1,53 +0,0 @@ - - - - - - - - - - myHeadP1 - - - - foo - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/properties/src/test/java/org/apache/tuscany/sca/binding/jms/PropertiesTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/properties/src/test/java/org/apache/tuscany/sca/binding/jms/PropertiesTestCase.java deleted file mode 100644 index e8d748bb19..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/properties/src/test/java/org/apache/tuscany/sca/binding/jms/PropertiesTestCase.java +++ /dev/null @@ -1,93 +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 org.apache.tuscany.sca.binding.jms; - -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertNotNull; - -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; - -import javax.jms.DeliveryMode; - -import org.junit.After; -import org.junit.Before; -import org.junit.Test; - -/** - */ -public class PropertiesTestCase { - - private static Node node; - - @Before - public void init() { - node = NodeFactory.newInstance().createNode().start(); - } - - @Test - public void testProps1() throws Exception { - JMSClient client = node.getService(JMSClient.class, "ClientComponent"); - - client.aClientMethod(); - - // wait for up to 5 seconds but should wake up as soon as done - synchronized(MsgServiceImpl.lock) { - if (MsgServiceImpl.msg == null) { - MsgServiceImpl.lock.wait(5000); - } - } - assertNotNull(MsgServiceImpl.msg); - - assertEquals("myType", MsgServiceImpl.msg.getJMSType()); - assertEquals(DeliveryMode.PERSISTENT, MsgServiceImpl.msg.getJMSDeliveryMode()); - // assertEquals(3, MsgServiceImpl.msg.getJMSPriority()); // Doesn't seem to work with ActiveMQ - assertEquals("myHeadP1", MsgServiceImpl.msg.getStringProperty("headP1")); - } - - @Test - public void testOp2() throws Exception { - MsgClient client = node.getService(MsgClient.class, "ClientComponent"); - - client.op2(); - - // wait for up to 5 seconds but should wake up as soon as done - synchronized(MsgServiceImpl.lock) { - if (MsgServiceImpl.msg == null) { - MsgServiceImpl.lock.wait(15000); - } - } - assertNotNull(MsgServiceImpl.msg); - - assertEquals("op2Type", MsgServiceImpl.msg.getJMSType()); - // assertEquals(DeliveryMode.NON_PERSISTENT, MsgServiceImpl.msg.getJMSDeliveryMode()); // Doesn't seem to work with ActiveMQ - // assertEquals(3, MsgServiceImpl.msg.getJMSPriority()); // Doesn't seem to work with ActiveMQ - assertEquals("myHeadP1", MsgServiceImpl.msg.getStringProperty("headP1")); - assertEquals("foo", MsgServiceImpl.msg.getStringProperty("op2P2")); - //operation properties are a service side thing - //assertEquals("nativeOp2", MsgServiceImpl.msg.getStringProperty("scaOperationName")); - } - - @After - public void end() { - if (node != null) { - node.stop(); - } - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/responsecf/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/responsecf/pom.xml deleted file mode 100644 index 7f6ba1bff3..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/responsecf/pom.xml +++ /dev/null @@ -1,83 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-itest - 2.0-M5 - ../pom.xml - - - itest-jms-responsecf - Apache Tuscany SCA iTest JMS Response ConnectionFactory - - - - - org.apache.tuscany.sca - tuscany-sca-api - 2.0-M5 - - - - org.apache.tuscany.sca - tuscany-node-impl - 2.0-M5 - - - - org.apache.tuscany.sca - tuscany-implementation-java-runtime - 2.0-M5 - runtime - - - - org.apache.tuscany.sca - tuscany-binding-jms-runtime - 2.0-M5 - - - - org.apache.activemq - activemq-core - 5.2.0 - runtime - - - org.apache.geronimo.specs - geronimo-jms_1.1_spec - 1.1 - provided - - - org.apache.geronimo.specs - geronimo-jms_1.1_spec - - - - - - - - ${artifactId} - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/responsecf/src/main/java/org/apache/tuscany/sca/binding/jms/HelloWorldClientImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/responsecf/src/main/java/org/apache/tuscany/sca/binding/jms/HelloWorldClientImpl.java deleted file mode 100644 index 9aef6ba1a3..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/responsecf/src/main/java/org/apache/tuscany/sca/binding/jms/HelloWorldClientImpl.java +++ /dev/null @@ -1,41 +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 org.apache.tuscany.sca.binding.jms; - -import org.oasisopen.sca.annotation.Reference; -import org.oasisopen.sca.annotation.Service; - -/** - * This class implements the HelloWorld service. - */ -@Service(HelloWorldService.class) -public class HelloWorldClientImpl implements HelloWorldService { - - private HelloWorldService serviceA; - - @Reference - public void setServiceA(HelloWorldService service) { - this.serviceA = service; - } - - public String sayHello(String name) { - return serviceA.sayHello(name); - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/responsecf/src/main/java/org/apache/tuscany/sca/binding/jms/HelloWorldService.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/responsecf/src/main/java/org/apache/tuscany/sca/binding/jms/HelloWorldService.java deleted file mode 100644 index 430c71aaef..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/responsecf/src/main/java/org/apache/tuscany/sca/binding/jms/HelloWorldService.java +++ /dev/null @@ -1,26 +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 org.apache.tuscany.sca.binding.jms; - -import org.oasisopen.sca.annotation.Remotable; - -@Remotable -public interface HelloWorldService { - String sayHello(String name); -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/responsecf/src/main/java/org/apache/tuscany/sca/binding/jms/HelloWorldServiceImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/responsecf/src/main/java/org/apache/tuscany/sca/binding/jms/HelloWorldServiceImpl.java deleted file mode 100644 index 2c6d9d0d17..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/responsecf/src/main/java/org/apache/tuscany/sca/binding/jms/HelloWorldServiceImpl.java +++ /dev/null @@ -1,30 +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 org.apache.tuscany.sca.binding.jms; - -public class HelloWorldServiceImpl implements HelloWorldService { - - public String sayHello(String name) { - if ("bang".equals(name)) { - throw new RuntimeException("blem wit"); - } - return "jmsHello " + name; - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/responsecf/src/main/resources/META-INF/sca-contribution.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/responsecf/src/main/resources/META-INF/sca-contribution.xml deleted file mode 100644 index 23c5979291..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/responsecf/src/main/resources/META-INF/sca-contribution.xml +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/responsecf/src/main/resources/cf/client.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/responsecf/src/main/resources/cf/client.composite deleted file mode 100644 index a3e5403432..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/responsecf/src/main/resources/cf/client.composite +++ /dev/null @@ -1,36 +0,0 @@ - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/responsecf/src/main/resources/cf/service.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/responsecf/src/main/resources/cf/service.composite deleted file mode 100644 index cd04ae7836..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/responsecf/src/main/resources/cf/service.composite +++ /dev/null @@ -1,36 +0,0 @@ - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/responsecf/src/main/resources/jndi.properties b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/responsecf/src/main/resources/jndi.properties deleted file mode 100644 index a41e42950e..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/responsecf/src/main/resources/jndi.properties +++ /dev/null @@ -1,39 +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. -## --------------------------------------------------------------------------- - -# START SNIPPET: jndi - -java.naming.factory.initial = org.apache.activemq.jndi.ActiveMQInitialContextFactory - -# use the following property to configure the default connector -java.naming.provider.url = vm://localhost?broker.persistent=false - -# use the following property to specify the JNDI name the connection factory -# should appear as. -#connectionFactoryNames = connectionFactory, queueConnectionFactory, topicConnectionFactry -connectionFactoryNames = ConnectionFactory, ResponseCF - -# register some queues in JNDI using the form -# queue.[jndiName] = [physicalName] -queue.DestQueueA = RequestQueue -queue.RespQueueA = ResponseQueue - -# register some topics in JNDI using the form -# topic.[jndiName] = [physicalName] -#topic.MyTopic = example.MyTopic - -# END SNIPPET: jndi diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/responsecf/src/test/java/org/apache/tuscany/sca/binding/jms/ResponseCFTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/responsecf/src/test/java/org/apache/tuscany/sca/binding/jms/ResponseCFTestCase.java deleted file mode 100644 index 03b834ce7d..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/responsecf/src/test/java/org/apache/tuscany/sca/binding/jms/ResponseCFTestCase.java +++ /dev/null @@ -1,53 +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 org.apache.tuscany.sca.binding.jms; - -import static org.junit.Assert.assertEquals; - -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; -import org.junit.After; -import org.junit.Before; -import org.junit.Test; - -/** - * This shows how to test the JMS binding using a response ConnectionFactory - */ -public class ResponseCFTestCase { - - private Node node; - - @Before - public void init() { - node = NodeFactory.newInstance().createNode().start(); - } - - @Test - public void testHelloWorldCreate() throws Exception { - HelloWorldService helloWorldService = node.getService(HelloWorldService.class, "HelloWorldClient"); - assertEquals("jmsHello Petra", helloWorldService.sayHello("Petra")); - } - - @After - public void end() { - if (node != null) { - node.stop(); - } - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/rpc/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/rpc/pom.xml deleted file mode 100644 index 187cf66d23..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/rpc/pom.xml +++ /dev/null @@ -1,83 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-itest - 2.0-M5 - ../pom.xml - - - itest-jms-rpc - Apache Tuscany SCA iTest JMS with RPC - - - - - org.apache.tuscany.sca - tuscany-sca-api - 2.0-M5 - - - - org.apache.tuscany.sca - tuscany-node-impl - 2.0-M5 - - - - org.apache.tuscany.sca - tuscany-implementation-java-runtime - 2.0-M5 - runtime - - - - org.apache.tuscany.sca - tuscany-binding-jms-runtime - 2.0-M5 - - - - org.apache.activemq - activemq-core - 5.2.0 - runtime - - - org.apache.geronimo.specs - geronimo-jms_1.1_spec - 1.1 - provided - - - org.apache.geronimo.specs - geronimo-jms_1.1_spec - - - - - - - - ${artifactId} - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/rpc/src/main/java/org/apache/tuscany/sca/binding/jms/HelloWorldClientImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/rpc/src/main/java/org/apache/tuscany/sca/binding/jms/HelloWorldClientImpl.java deleted file mode 100644 index 9aef6ba1a3..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/rpc/src/main/java/org/apache/tuscany/sca/binding/jms/HelloWorldClientImpl.java +++ /dev/null @@ -1,41 +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 org.apache.tuscany.sca.binding.jms; - -import org.oasisopen.sca.annotation.Reference; -import org.oasisopen.sca.annotation.Service; - -/** - * This class implements the HelloWorld service. - */ -@Service(HelloWorldService.class) -public class HelloWorldClientImpl implements HelloWorldService { - - private HelloWorldService serviceA; - - @Reference - public void setServiceA(HelloWorldService service) { - this.serviceA = service; - } - - public String sayHello(String name) { - return serviceA.sayHello(name); - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/rpc/src/main/java/org/apache/tuscany/sca/binding/jms/HelloWorldService.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/rpc/src/main/java/org/apache/tuscany/sca/binding/jms/HelloWorldService.java deleted file mode 100644 index 430c71aaef..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/rpc/src/main/java/org/apache/tuscany/sca/binding/jms/HelloWorldService.java +++ /dev/null @@ -1,26 +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 org.apache.tuscany.sca.binding.jms; - -import org.oasisopen.sca.annotation.Remotable; - -@Remotable -public interface HelloWorldService { - String sayHello(String name); -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/rpc/src/main/java/org/apache/tuscany/sca/binding/jms/HelloWorldServiceImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/rpc/src/main/java/org/apache/tuscany/sca/binding/jms/HelloWorldServiceImpl.java deleted file mode 100644 index 2c6d9d0d17..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/rpc/src/main/java/org/apache/tuscany/sca/binding/jms/HelloWorldServiceImpl.java +++ /dev/null @@ -1,30 +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 org.apache.tuscany.sca.binding.jms; - -public class HelloWorldServiceImpl implements HelloWorldService { - - public String sayHello(String name) { - if ("bang".equals(name)) { - throw new RuntimeException("blem wit"); - } - return "jmsHello " + name; - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/rpc/src/main/resources/META-INF/sca-contribution.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/rpc/src/main/resources/META-INF/sca-contribution.xml deleted file mode 100644 index 23c5979291..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/rpc/src/main/resources/META-INF/sca-contribution.xml +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/rpc/src/main/resources/jndi.properties b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/rpc/src/main/resources/jndi.properties deleted file mode 100644 index 4d6acc037b..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/rpc/src/main/resources/jndi.properties +++ /dev/null @@ -1,39 +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. -## --------------------------------------------------------------------------- - -# START SNIPPET: jndi - -java.naming.factory.initial = org.apache.activemq.jndi.ActiveMQInitialContextFactory - -# use the following property to configure the default connector -java.naming.provider.url = vm://localhost?broker.persistent=false - -# use the following property to specify the JNDI name the connection factory -# should appear as. -#connectionFactoryNames = connectionFactory, queueConnectionFactory, topicConnectionFactry -connectionFactoryNames = ConnectionFactory - -# register some queues in JNDI using the form -# queue.[jndiName] = [physicalName] -queue.RequestQueue = RequestQueue -queue.ResponseQueue = ResponseQueue - -# register some topics in JNDI using the form -# topic.[jndiName] = [physicalName] -#topic.MyTopic = example.MyTopic - -# END SNIPPET: jndi diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/rpc/src/main/resources/simple/client.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/rpc/src/main/resources/simple/client.composite deleted file mode 100644 index a758389e89..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/rpc/src/main/resources/simple/client.composite +++ /dev/null @@ -1,37 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/rpc/src/main/resources/simple/service.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/rpc/src/main/resources/simple/service.composite deleted file mode 100644 index 33364f61c0..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/rpc/src/main/resources/simple/service.composite +++ /dev/null @@ -1,37 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/rpc/src/test/java/org/apache/tuscany/sca/binding/jms/RPCTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/rpc/src/test/java/org/apache/tuscany/sca/binding/jms/RPCTestCase.java deleted file mode 100644 index 3c0eb0791b..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/rpc/src/test/java/org/apache/tuscany/sca/binding/jms/RPCTestCase.java +++ /dev/null @@ -1,53 +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 org.apache.tuscany.sca.binding.jms; - -import static org.junit.Assert.assertEquals; - -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; -import org.junit.After; -import org.junit.Before; -import org.junit.Test; - -/** - * This shows how to test the JMS binding using a simple HelloWorld application. - */ -public class RPCTestCase { - - private Node node; - - @Before - public void init() { - node = NodeFactory.newInstance().createNode().start(); - } - - @Test - public void testHelloWorldCreate() throws Exception { - HelloWorldService helloWorldService = node.getService(HelloWorldService.class, "HelloWorldClient"); - assertEquals("jmsHello Petra", helloWorldService.sayHello("Petra")); - } - - @After - public void end() { - if (node != null) { - node.stop(); - } - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/selectors/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/selectors/pom.xml deleted file mode 100644 index f2cd27968a..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/selectors/pom.xml +++ /dev/null @@ -1,70 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-itest - 2.0-M5 - ../pom.xml - - - itest-jms-selectors - Apache Tuscany SCA iTest JMS Tests For Selectors - - - - - org.apache.tuscany.sca - tuscany-sca-api - 2.0-M5 - - - - org.apache.tuscany.sca - tuscany-node-impl - 2.0-M5 - - - - org.apache.tuscany.sca - tuscany-implementation-java-runtime - 2.0-M5 - runtime - - - - org.apache.tuscany.sca - tuscany-binding-jms-runtime - 2.0-M5 - - - - org.apache.activemq - activemq-core - 5.2.0 - - - - - - ${artifactId} - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/selectors/src/main/java/org/apache/tuscany/sca/binding/jms/ClientImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/selectors/src/main/java/org/apache/tuscany/sca/binding/jms/ClientImpl.java deleted file mode 100644 index b589d5e8bc..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/selectors/src/main/java/org/apache/tuscany/sca/binding/jms/ClientImpl.java +++ /dev/null @@ -1,41 +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 org.apache.tuscany.sca.binding.jms; - -import org.oasisopen.sca.annotation.Reference; -import org.oasisopen.sca.annotation.Service; - -/** - * This class implements the OneWay service. - */ -@Service(SelectorService.class) -public class ClientImpl implements SelectorService { - - private SelectorService serviceA; - - @Reference - public void setServiceA(SelectorService service) { - this.serviceA = service; - } - - public void sayHello(String name) { - serviceA.sayHello(name); - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/selectors/src/main/java/org/apache/tuscany/sca/binding/jms/SelectorService.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/selectors/src/main/java/org/apache/tuscany/sca/binding/jms/SelectorService.java deleted file mode 100644 index 1aff0d454e..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/selectors/src/main/java/org/apache/tuscany/sca/binding/jms/SelectorService.java +++ /dev/null @@ -1,29 +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 org.apache.tuscany.sca.binding.jms; - -import org.oasisopen.sca.annotation.OneWay; -import org.oasisopen.sca.annotation.Remotable; - -@Remotable -public interface SelectorService { - - @OneWay - void sayHello(String name); -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/selectors/src/main/java/org/apache/tuscany/sca/binding/jms/SelectorServiceImpl1.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/selectors/src/main/java/org/apache/tuscany/sca/binding/jms/SelectorServiceImpl1.java deleted file mode 100644 index fb53c877e6..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/selectors/src/main/java/org/apache/tuscany/sca/binding/jms/SelectorServiceImpl1.java +++ /dev/null @@ -1,40 +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 org.apache.tuscany.sca.binding.jms; - -import java.util.ArrayList; -import java.util.List; - -public class SelectorServiceImpl1 implements SelectorService { - - public static Object lock = new Object(); - public static List names = new ArrayList(); - - public void sayHello(String name) { - System.out.println("SelectorServiceImpl1 " + name); - SelectorServiceImpl1.names.add(name); - if (names.size() == 2) { - synchronized (SelectorServiceImpl1.lock) { - SelectorServiceImpl1.lock.notify(); - } - } - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/selectors/src/main/java/org/apache/tuscany/sca/binding/jms/SelectorServiceImpl2.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/selectors/src/main/java/org/apache/tuscany/sca/binding/jms/SelectorServiceImpl2.java deleted file mode 100644 index 1bbaf5d6f4..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/selectors/src/main/java/org/apache/tuscany/sca/binding/jms/SelectorServiceImpl2.java +++ /dev/null @@ -1,38 +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 org.apache.tuscany.sca.binding.jms; - -public class SelectorServiceImpl2 implements SelectorService { - - public static Object lock = new Object(); - public static String name; - - public void sayHello(String name) { - if (SelectorServiceImpl2.name != null) { - throw new IllegalStateException("name already set"); - } - System.out.println("SelectorServiceImpl2 " + name); - SelectorServiceImpl2.name = name; - synchronized (SelectorServiceImpl2.lock) { - SelectorServiceImpl2.lock.notify(); - } - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/selectors/src/main/java/org/apache/tuscany/sca/binding/jms/SelectorServiceImpl3.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/selectors/src/main/java/org/apache/tuscany/sca/binding/jms/SelectorServiceImpl3.java deleted file mode 100644 index 4bdc4edcb5..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/selectors/src/main/java/org/apache/tuscany/sca/binding/jms/SelectorServiceImpl3.java +++ /dev/null @@ -1,38 +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 org.apache.tuscany.sca.binding.jms; - -public class SelectorServiceImpl3 implements SelectorService { - - public static Object lock = new Object(); - public static String name; - - public void sayHello(String name) { - if (SelectorServiceImpl3.name != null) { - throw new IllegalStateException("name already set"); - } - System.out.println("SelectorServiceImpl3 " + name); - SelectorServiceImpl3.name = name; - synchronized (SelectorServiceImpl3.lock) { - SelectorServiceImpl3.lock.notify(); - } - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/selectors/src/main/java/org/apache/tuscany/sca/binding/jms/operationselector/jmsdefault/HelloWorldReference.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/selectors/src/main/java/org/apache/tuscany/sca/binding/jms/operationselector/jmsdefault/HelloWorldReference.java deleted file mode 100644 index 0592194b21..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/selectors/src/main/java/org/apache/tuscany/sca/binding/jms/operationselector/jmsdefault/HelloWorldReference.java +++ /dev/null @@ -1,32 +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 org.apache.tuscany.sca.binding.jms.operationselector.jmsdefault; - -import org.oasisopen.sca.annotation.Remotable; - -/** - * This is the business interface of the HelloWorld greetings service. - */ -@Remotable -public interface HelloWorldReference { - - public String getGreetings(String name); - -} - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/selectors/src/main/java/org/apache/tuscany/sca/binding/jms/operationselector/jmsdefault/HelloWorldReferenceImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/selectors/src/main/java/org/apache/tuscany/sca/binding/jms/operationselector/jmsdefault/HelloWorldReferenceImpl.java deleted file mode 100644 index 2d4ff0192b..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/selectors/src/main/java/org/apache/tuscany/sca/binding/jms/operationselector/jmsdefault/HelloWorldReferenceImpl.java +++ /dev/null @@ -1,39 +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 org.apache.tuscany.sca.binding.jms.operationselector.jmsdefault; - -import org.oasisopen.sca.annotation.Reference; - - -public class HelloWorldReferenceImpl implements HelloWorldReference { - - @Reference - protected HelloWorldService helloWorldService1; - - @Reference - protected HelloWorldService helloWorldService2; - - public String getGreetings(String name){ - return helloWorldService1.getGreetingsOne(name) + " " + - helloWorldService1.getGreetingsTwo(name) + " " + - helloWorldService2.getGreetingsOne(name) + " " + - helloWorldService1.getGreetingsThree(name); - } -} - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/selectors/src/main/java/org/apache/tuscany/sca/binding/jms/operationselector/jmsdefault/HelloWorldService.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/selectors/src/main/java/org/apache/tuscany/sca/binding/jms/operationselector/jmsdefault/HelloWorldService.java deleted file mode 100644 index b632b3f60f..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/selectors/src/main/java/org/apache/tuscany/sca/binding/jms/operationselector/jmsdefault/HelloWorldService.java +++ /dev/null @@ -1,38 +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 org.apache.tuscany.sca.binding.jms.operationselector.jmsdefault; - -import org.oasisopen.sca.annotation.Remotable; - -/** - * This is the business interface of the HelloWorld greetings service. - */ -@Remotable -public interface HelloWorldService { - - public String getGreetingsOne(String name); - - public String getGreetingsTwo(String name); - - public String getGreetingsThree(String name); - - public String getGreetingsFour(String name); - -} - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/selectors/src/main/java/org/apache/tuscany/sca/binding/jms/operationselector/jmsdefault/HelloWorldServiceImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/selectors/src/main/java/org/apache/tuscany/sca/binding/jms/operationselector/jmsdefault/HelloWorldServiceImpl.java deleted file mode 100644 index b2df9137c8..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/selectors/src/main/java/org/apache/tuscany/sca/binding/jms/operationselector/jmsdefault/HelloWorldServiceImpl.java +++ /dev/null @@ -1,47 +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 org.apache.tuscany.sca.binding.jms.operationselector.jmsdefault; - -public class HelloWorldServiceImpl implements HelloWorldService { - - public String getGreetingsOne(String name){ - String response = "Hello One " + name; - System.out.println("getGreetingsOne: " + response); - return response; - } - - public String getGreetingsTwo(String name){ - String response = "Hello Two " + name; - System.out.println("getGreetingsTwo: " + response); - return response; - } - - public String getGreetingsThree(String name){ - String response = "Hello Three " + name; - System.out.println("getGreetingsThree: " + response); - return response; - } - - public String getGreetingsFour(String name){ - String response = "Hello Four " + name; - System.out.println("getGreetingsFour: " + response); - return response; - } -} - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/selectors/src/main/java/org/apache/tuscany/sca/binding/jms/operationselector/jmsuserprop/HelloWorldReference.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/selectors/src/main/java/org/apache/tuscany/sca/binding/jms/operationselector/jmsuserprop/HelloWorldReference.java deleted file mode 100644 index 0b24678543..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/selectors/src/main/java/org/apache/tuscany/sca/binding/jms/operationselector/jmsuserprop/HelloWorldReference.java +++ /dev/null @@ -1,32 +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 org.apache.tuscany.sca.binding.jms.operationselector.jmsuserprop; - -import org.oasisopen.sca.annotation.Remotable; - -/** - * This is the business interface of the HelloWorld greetings service. - */ -@Remotable -public interface HelloWorldReference { - - public String getGreetings(String name); - -} - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/selectors/src/main/java/org/apache/tuscany/sca/binding/jms/operationselector/jmsuserprop/HelloWorldReferenceImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/selectors/src/main/java/org/apache/tuscany/sca/binding/jms/operationselector/jmsuserprop/HelloWorldReferenceImpl.java deleted file mode 100644 index 0ce66005fc..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/selectors/src/main/java/org/apache/tuscany/sca/binding/jms/operationselector/jmsuserprop/HelloWorldReferenceImpl.java +++ /dev/null @@ -1,36 +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 org.apache.tuscany.sca.binding.jms.operationselector.jmsuserprop; - -import org.oasisopen.sca.annotation.Reference; - - -public class HelloWorldReferenceImpl implements HelloWorldReference { - - @Reference - protected HelloWorldService helloWorldService1; - - - public String getGreetings(String name){ - return helloWorldService1.getGreetingsOne(name) + " " + - helloWorldService1.getGreetingsTwo(name) + " " + - helloWorldService1.getGreetingsThree(name); - } -} - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/selectors/src/main/java/org/apache/tuscany/sca/binding/jms/operationselector/jmsuserprop/HelloWorldService.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/selectors/src/main/java/org/apache/tuscany/sca/binding/jms/operationselector/jmsuserprop/HelloWorldService.java deleted file mode 100644 index 7e42113da4..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/selectors/src/main/java/org/apache/tuscany/sca/binding/jms/operationselector/jmsuserprop/HelloWorldService.java +++ /dev/null @@ -1,38 +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 org.apache.tuscany.sca.binding.jms.operationselector.jmsuserprop; - -import org.oasisopen.sca.annotation.Remotable; - -/** - * This is the business interface of the HelloWorld greetings service. - */ -@Remotable -public interface HelloWorldService { - - public String getGreetingsOne(String name); - - public String getGreetingsTwo(String name); - - public String getGreetingsThree(String name); - - public String getGreetingsFour(String name); - -} - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/selectors/src/main/java/org/apache/tuscany/sca/binding/jms/operationselector/jmsuserprop/HelloWorldServiceImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/selectors/src/main/java/org/apache/tuscany/sca/binding/jms/operationselector/jmsuserprop/HelloWorldServiceImpl.java deleted file mode 100644 index 724de6ff7c..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/selectors/src/main/java/org/apache/tuscany/sca/binding/jms/operationselector/jmsuserprop/HelloWorldServiceImpl.java +++ /dev/null @@ -1,47 +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 org.apache.tuscany.sca.binding.jms.operationselector.jmsuserprop; - -public class HelloWorldServiceImpl implements HelloWorldService { - - public String getGreetingsOne(String name){ - String response = "Hello One " + name; - System.out.println("getGreetingsOne: " + response); - return response; - } - - public String getGreetingsTwo(String name){ - String response = "Hello Two " + name; - System.out.println("getGreetingsTwo: " + response); - return response; - } - - public String getGreetingsThree(String name){ - String response = "Hello Three " + name; - System.out.println("getGreetingsThree: " + response); - return response; - } - - public String getGreetingsFour(String name){ - String response = "Hello Four " + name; - System.out.println("getGreetingsFour: " + response); - return response; - } -} - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/selectors/src/main/resources/META-INF/sca-contribution.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/selectors/src/main/resources/META-INF/sca-contribution.xml deleted file mode 100644 index 3527e98032..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/selectors/src/main/resources/META-INF/sca-contribution.xml +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/selectors/src/main/resources/jmsdefault/helloworld.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/selectors/src/main/resources/jmsdefault/helloworld.composite deleted file mode 100644 index c18534c128..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/selectors/src/main/resources/jmsdefault/helloworld.composite +++ /dev/null @@ -1,69 +0,0 @@ - - - - - - - - - - - - - - - - - getGreetingsThree - - - - - - - - - - - - - - getGreetingsThree - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/selectors/src/main/resources/jmsuserprop/helloworld.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/selectors/src/main/resources/jmsuserprop/helloworld.composite deleted file mode 100644 index 6b86764820..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/selectors/src/main/resources/jmsuserprop/helloworld.composite +++ /dev/null @@ -1,65 +0,0 @@ - - - - - - - - - - - - getGreetingsOne - - - - - getGreetingsThree - - - - - getGreetingsTwo - - - - - - - - - - - - - - - getGreetingsThree - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/selectors/src/main/resources/jndi.properties b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/selectors/src/main/resources/jndi.properties deleted file mode 100644 index 7ce468aa0f..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/selectors/src/main/resources/jndi.properties +++ /dev/null @@ -1,38 +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. -## --------------------------------------------------------------------------- - -# START SNIPPET: jndi - -java.naming.factory.initial = org.apache.activemq.jndi.ActiveMQInitialContextFactory - -# use the following property to configure the default connector -java.naming.provider.url = vm://localhost?broker.persistent=false&broker.useJmx=false&broker.useShutdownHook=false - -# use the following property to specify the JNDI name the connection factory -# should appear as. -#connectionFactoryNames = connectionFactory, queueConnectionFactory, topicConnectionFactry -connectionFactoryNames = ConnectionFactory, ConnectionFactory2 - -# register some queues in JNDI using the form -# queue.[jndiName] = [physicalName] - -# register some topics in JNDI using the form -# topic.[jndiName] = [physicalName] -#topic.MyTopic = example.MyTopic -topic.ServiceTopic = ServiceTopic - -# END SNIPPET: jndi diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/selectors/src/main/resources/selectors/selectors.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/selectors/src/main/resources/selectors/selectors.composite deleted file mode 100644 index 651cbe81a4..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/selectors/src/main/resources/selectors/selectors.composite +++ /dev/null @@ -1,68 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/selectors/src/test/java/org/apache/tuscany/sca/binding/jms/OperationselectorJMSDefaultTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/selectors/src/test/java/org/apache/tuscany/sca/binding/jms/OperationselectorJMSDefaultTestCase.java deleted file mode 100644 index bee0c549bd..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/selectors/src/test/java/org/apache/tuscany/sca/binding/jms/OperationselectorJMSDefaultTestCase.java +++ /dev/null @@ -1,57 +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 org.apache.tuscany.sca.binding.jms; - -import static org.junit.Assert.assertEquals; - -import org.apache.tuscany.sca.binding.jms.operationselector.jmsdefault.HelloWorldReference; -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; -import org.junit.After; -import org.junit.Before; -import org.junit.Test; - - -/** - * This shows how to test the JMS binding using a simple HelloWorld application. - */ -public class OperationselectorJMSDefaultTestCase { - - private Node node; - - @Before - public void init() { - node = NodeFactory.newInstance().createNode().start(); - } - - @Test - public void testHelloWorldCreate() throws Exception { - HelloWorldReference helloWorldReference = node.getService(HelloWorldReference.class, "HelloWorldReferenceComponent"); - - assertEquals("Hello One Fred Bloggs Hello Two Fred Bloggs Hello Three Fred Bloggs Hello Four Fred Bloggs", helloWorldReference.getGreetings("Fred Bloggs")); - - } - - @After - public void end() { - if (node != null) { - node.stop(); - } - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/selectors/src/test/java/org/apache/tuscany/sca/binding/jms/OperationselectorJMSUserPropTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/selectors/src/test/java/org/apache/tuscany/sca/binding/jms/OperationselectorJMSUserPropTestCase.java deleted file mode 100644 index 33e047ae18..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/selectors/src/test/java/org/apache/tuscany/sca/binding/jms/OperationselectorJMSUserPropTestCase.java +++ /dev/null @@ -1,57 +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 org.apache.tuscany.sca.binding.jms; - -import static org.junit.Assert.assertEquals; - -import org.apache.tuscany.sca.binding.jms.operationselector.jmsdefault.HelloWorldReference; -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; -import org.junit.After; -import org.junit.Before; -import org.junit.Test; - - -/** - * This shows how to test the JMS binding using a simple HelloWorld application. - */ -public class OperationselectorJMSUserPropTestCase { - - private Node node; - - @Before - public void init() { - node = NodeFactory.newInstance().createNode().start(); - } - - @Test - public void testHelloWorldCreate() throws Exception { - HelloWorldReference helloWorldReference = node.getService(HelloWorldReference.class, "HelloWorldReferenceComponent1"); - - assertEquals("Hello One Fred Bloggs Hello Four Fred Bloggs Hello Two Fred Bloggs", helloWorldReference.getGreetings("Fred Bloggs")); - - } - - @After - public void end() { - if (node != null) { - node.stop(); - } - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/selectors/src/test/java/org/apache/tuscany/sca/binding/jms/SelectorsTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/selectors/src/test/java/org/apache/tuscany/sca/binding/jms/SelectorsTestCase.java deleted file mode 100644 index e7254005be..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/selectors/src/test/java/org/apache/tuscany/sca/binding/jms/SelectorsTestCase.java +++ /dev/null @@ -1,76 +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 org.apache.tuscany.sca.binding.jms; - -import static org.junit.Assert.assertEquals; - -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; -import org.junit.After; -import org.junit.Before; -import org.junit.Test; - -/** - */ -public class SelectorsTestCase { - - private Node node; - - @Before - public void init() { - node = NodeFactory.newInstance().createNode().start(); - } - - @Test - public void testSayHello() throws Exception { - SelectorService client1 = node.getService(SelectorService.class, "Client1"); - SelectorService client2 = node.getService(SelectorService.class, "Client2"); - - client1.sayHello("petra"); - client2.sayHello("beate"); - - // wait for up to 5 seconds but should wake up as soon as done - synchronized(SelectorServiceImpl2.lock) { - if (SelectorServiceImpl2.name == null) { - SelectorServiceImpl2.lock.wait(5000); - } - } - synchronized(SelectorServiceImpl3.lock) { - if (SelectorServiceImpl3.name == null) { - SelectorServiceImpl3.lock.wait(5000); - } - } - synchronized(SelectorServiceImpl1.lock) { - if (SelectorServiceImpl1.names.size() != 2) { - SelectorServiceImpl1.lock.wait(5000); - } - } - - assertEquals("petra", SelectorServiceImpl2.name); - assertEquals("beate", SelectorServiceImpl3.name); - assertEquals(2, SelectorServiceImpl1.names.size()); - } - - @After - public void end() { - if (node != null) { - node.stop(); - } - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/topics/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/topics/pom.xml deleted file mode 100644 index 6da0d80e7e..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/topics/pom.xml +++ /dev/null @@ -1,71 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-itest - 2.0-M5 - ../pom.xml - - - itest-jms-topics - Apache Tuscany SCA iTest JMS Tests for topics - - - - - org.apache.tuscany.sca - tuscany-sca-api - 2.0-M5 - - - - org.apache.tuscany.sca - tuscany-node-impl - 2.0-M5 - - - - org.apache.tuscany.sca - tuscany-implementation-java-runtime - 2.0-M5 - runtime - - - - org.apache.tuscany.sca - tuscany-binding-jms-runtime - 2.0-M5 - - - - org.apache.activemq - activemq-core - 5.2.0 - test - - - - - - ${artifactId} - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/topics/src/main/java/org/apache/tuscany/sca/binding/jms/OneWayClientImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/topics/src/main/java/org/apache/tuscany/sca/binding/jms/OneWayClientImpl.java deleted file mode 100644 index b572b1012a..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/topics/src/main/java/org/apache/tuscany/sca/binding/jms/OneWayClientImpl.java +++ /dev/null @@ -1,41 +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 org.apache.tuscany.sca.binding.jms; - -import org.oasisopen.sca.annotation.Reference; -import org.oasisopen.sca.annotation.Service; - -/** - * This class implements the OneWay service. - */ -@Service(OneWayService.class) -public class OneWayClientImpl implements OneWayService { - - private OneWayService serviceA; - - @Reference - public void setServiceA(OneWayService service) { - this.serviceA = service; - } - - public void sayHello(String name) { - serviceA.sayHello(name); - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/topics/src/main/java/org/apache/tuscany/sca/binding/jms/OneWayService.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/topics/src/main/java/org/apache/tuscany/sca/binding/jms/OneWayService.java deleted file mode 100644 index 9cec2d9b3e..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/topics/src/main/java/org/apache/tuscany/sca/binding/jms/OneWayService.java +++ /dev/null @@ -1,29 +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 org.apache.tuscany.sca.binding.jms; - -import org.oasisopen.sca.annotation.OneWay; -import org.oasisopen.sca.annotation.Remotable; - -@Remotable -public interface OneWayService { - - @OneWay - void sayHello(String name); -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/topics/src/main/java/org/apache/tuscany/sca/binding/jms/OneWayServiceImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/topics/src/main/java/org/apache/tuscany/sca/binding/jms/OneWayServiceImpl.java deleted file mode 100644 index 0036391696..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/topics/src/main/java/org/apache/tuscany/sca/binding/jms/OneWayServiceImpl.java +++ /dev/null @@ -1,34 +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 org.apache.tuscany.sca.binding.jms; - -public class OneWayServiceImpl implements OneWayService { - - public static Object mutex = new Object(); - public static String name; - - public void sayHello(String name) { - OneWayServiceImpl.name = name; - synchronized (OneWayServiceImpl.mutex) { - OneWayServiceImpl.mutex.notify(); - } - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/topics/src/main/resources/META-INF/sca-contribution.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/topics/src/main/resources/META-INF/sca-contribution.xml deleted file mode 100644 index c1156b35e6..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/topics/src/main/resources/META-INF/sca-contribution.xml +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/topics/src/main/resources/jndi.properties b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/topics/src/main/resources/jndi.properties deleted file mode 100644 index d7988ee60d..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/topics/src/main/resources/jndi.properties +++ /dev/null @@ -1,38 +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. -## --------------------------------------------------------------------------- - -# START SNIPPET: jndi - -java.naming.factory.initial = org.apache.activemq.jndi.ActiveMQInitialContextFactory - -# use the following property to configure the default connector -java.naming.provider.url = vm://localhost?broker.persistent=false&broker.useJmx=false&broker.useShutdownHook=false - -# use the following property to specify the JNDI name the connection factory -# should appear as. -#connectionFactoryNames = connectionFactory, queueConnectionFactory, topicConnectionFactry -connectionFactoryNames = ConnectionFactory - -# register some queues in JNDI using the form -# queue.[jndiName] = [physicalName] - -# register some topics in JNDI using the form -# topic.[jndiName] = [physicalName] -#topic.MyTopic = example.MyTopic -topic.MyTopic = example.MyTopic - -# END SNIPPET: jndi diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/topics/src/main/resources/topics/TopicsClient.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/topics/src/main/resources/topics/TopicsClient.composite deleted file mode 100644 index d4027ff60d..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/topics/src/main/resources/topics/TopicsClient.composite +++ /dev/null @@ -1,33 +0,0 @@ - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/topics/src/main/resources/topics/TopicsService.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/topics/src/main/resources/topics/TopicsService.composite deleted file mode 100644 index 8726543253..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/topics/src/main/resources/topics/TopicsService.composite +++ /dev/null @@ -1,33 +0,0 @@ - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/topics/src/test/java/org/apache/tuscany/sca/binding/jms/TopicsTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/topics/src/test/java/org/apache/tuscany/sca/binding/jms/TopicsTestCase.java deleted file mode 100644 index 35fe96b81a..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/topics/src/test/java/org/apache/tuscany/sca/binding/jms/TopicsTestCase.java +++ /dev/null @@ -1,59 +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 org.apache.tuscany.sca.binding.jms; - -import static org.junit.Assert.assertEquals; - -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; -import org.junit.After; -import org.junit.Before; -import org.junit.Test; - -/** - * This shows how to test the JMS binding using a simple HelloWorld application. - */ -public class TopicsTestCase { - - private Node node; - - @Before - public void init() { - node = NodeFactory.newInstance().createNode().start(); - } - - @Test - public void testOneWayInvoked() throws Exception { - OneWayService oneWayService = node.getService(OneWayService.class, "OneWayClient"); - oneWayService.sayHello("Petra"); - synchronized (OneWayServiceImpl.mutex) { - // wait up to 10 seconds but it will likely be a lot less - // as the service invocation will wake this up earlier - OneWayServiceImpl.mutex.wait(10000); - } - assertEquals("Petra", OneWayServiceImpl.name); - } - - @After - public void end() { - if (node != null) { - node.stop(); - } - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/ttl/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/ttl/pom.xml deleted file mode 100644 index d0b91b687f..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/ttl/pom.xml +++ /dev/null @@ -1,71 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-itest - 2.0-M5 - ../pom.xml - - - itest-jms-ttl - Apache Tuscany SCA iTest JMS Time To Live - - - - - org.apache.tuscany.sca - tuscany-sca-api - 2.0-M5 - - - - org.apache.tuscany.sca - tuscany-implementation-java-runtime - 2.0-M5 - runtime - - - - org.apache.tuscany.sca - tuscany-binding-jms-runtime - 2.0-M5 - - - - org.apache.tuscany.sca - tuscany-node-impl - 2.0-M5 - test - - - - org.apache.activemq - activemq-core - 5.2.0 - - - - - - ${artifactId} - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/ttl/src/main/java/itest/MockInitialContextFactory.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/ttl/src/main/java/itest/MockInitialContextFactory.java deleted file mode 100644 index 336fecf67b..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/ttl/src/main/java/itest/MockInitialContextFactory.java +++ /dev/null @@ -1,904 +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 itest; - -import java.io.Serializable; -import java.util.Enumeration; -import java.util.Hashtable; - -import javax.jms.BytesMessage; -import javax.jms.Connection; -import javax.jms.ConnectionConsumer; -import javax.jms.ConnectionFactory; -import javax.jms.ConnectionMetaData; -import javax.jms.Destination; -import javax.jms.ExceptionListener; -import javax.jms.JMSException; -import javax.jms.MapMessage; -import javax.jms.Message; -import javax.jms.MessageConsumer; -import javax.jms.MessageListener; -import javax.jms.MessageProducer; -import javax.jms.ObjectMessage; -import javax.jms.Queue; -import javax.jms.QueueBrowser; -import javax.jms.ServerSessionPool; -import javax.jms.Session; -import javax.jms.StreamMessage; -import javax.jms.TemporaryQueue; -import javax.jms.TemporaryTopic; -import javax.jms.TextMessage; -import javax.jms.Topic; -import javax.jms.TopicSubscriber; -import javax.naming.Binding; -import javax.naming.Context; -import javax.naming.Name; -import javax.naming.NameClassPair; -import javax.naming.NameParser; -import javax.naming.NamingEnumeration; -import javax.naming.NamingException; - -/** - * Some classes that mock up various JMS interfaces with the end result - * of having the Time-To-Live value set on the static timeToLive - * - * This class is referenced from the AMQ jndi.properties file - */ -public class MockInitialContextFactory extends org.apache.activemq.jndi.ActiveMQInitialContextFactory{ - - public static Object lock = new Object(); - public static Long timeToLive; - - public Context getInitialContext(Hashtable environment) throws NamingException { - return new Context() { - - public Object addToEnvironment(String propName, Object propVal) throws NamingException { - // TODO Auto-generated method stub - return null; - } - - public void bind(Name name, Object obj) throws NamingException { - // TODO Auto-generated method stub - - } - - public void bind(String name, Object obj) throws NamingException { - // TODO Auto-generated method stub - - } - - public void close() throws NamingException { - // TODO Auto-generated method stub - - } - - public Name composeName(Name name, Name prefix) throws NamingException { - // TODO Auto-generated method stub - return null; - } - - public String composeName(String name, String prefix) throws NamingException { - // TODO Auto-generated method stub - return null; - } - - public Context createSubcontext(Name name) throws NamingException { - // TODO Auto-generated method stub - return null; - } - - public Context createSubcontext(String name) throws NamingException { - // TODO Auto-generated method stub - return null; - } - - public void destroySubcontext(Name name) throws NamingException { - // TODO Auto-generated method stub - - } - - public void destroySubcontext(String name) throws NamingException { - // TODO Auto-generated method stub - - } - - public Hashtable getEnvironment() throws NamingException { - // TODO Auto-generated method stub - return null; - } - - public String getNameInNamespace() throws NamingException { - // TODO Auto-generated method stub - return null; - } - - public NameParser getNameParser(Name name) throws NamingException { - // TODO Auto-generated method stub - return null; - } - - public NameParser getNameParser(String name) throws NamingException { - // TODO Auto-generated method stub - return null; - } - - public NamingEnumeration list(Name name) throws NamingException { - // TODO Auto-generated method stub - return null; - } - - public NamingEnumeration list(String name) throws NamingException { - // TODO Auto-generated method stub - return null; - } - - public NamingEnumeration listBindings(Name name) throws NamingException { - // TODO Auto-generated method stub - return null; - } - - public NamingEnumeration listBindings(String name) throws NamingException { - // TODO Auto-generated method stub - return null; - } - - public Object lookup(Name name) throws NamingException { - // TODO Auto-generated method stub - return null; - } - - public Object lookup(String name) throws NamingException { - if (name.endsWith("ConnectionFactory")) { - return new ConnectionFactory() { - public Connection createConnection() throws JMSException { - return new Connection(){ - - public void close() throws JMSException { - // TODO Auto-generated method stub - - } - - public ConnectionConsumer createConnectionConsumer(Destination arg0, - String arg1, - ServerSessionPool arg2, - int arg3) throws JMSException { - // TODO Auto-generated method stub - return null; - } - - public ConnectionConsumer createDurableConnectionConsumer(Topic arg0, - String arg1, - String arg2, - ServerSessionPool arg3, - int arg4) throws JMSException { - // TODO Auto-generated method stub - return null; - } - - public Session createSession(boolean arg0, int arg1) throws JMSException { - // TODO Auto-generated method stub - return new Session() { - - public void close() throws JMSException { - // TODO Auto-generated method stub - - } - - public void commit() throws JMSException { - // TODO Auto-generated method stub - - } - - public QueueBrowser createBrowser(Queue arg0) throws JMSException { - // TODO Auto-generated method stub - return null; - } - - public QueueBrowser createBrowser(Queue arg0, String arg1) throws JMSException { - // TODO Auto-generated method stub - return null; - } - - public BytesMessage createBytesMessage() throws JMSException { - // TODO Auto-generated method stub - return new BytesMessage() { - - public long getBodyLength() throws JMSException { - // TODO Auto-generated method stub - return 0; - } - - public boolean readBoolean() throws JMSException { - // TODO Auto-generated method stub - return false; - } - - public byte readByte() throws JMSException { - // TODO Auto-generated method stub - return 0; - } - - public int readBytes(byte[] arg0) throws JMSException { - // TODO Auto-generated method stub - return 0; - } - - public int readBytes(byte[] arg0, int arg1) throws JMSException { - // TODO Auto-generated method stub - return 0; - } - - public char readChar() throws JMSException { - // TODO Auto-generated method stub - return 0; - } - - public double readDouble() throws JMSException { - // TODO Auto-generated method stub - return 0; - } - - public float readFloat() throws JMSException { - // TODO Auto-generated method stub - return 0; - } - - public int readInt() throws JMSException { - // TODO Auto-generated method stub - return 0; - } - - public long readLong() throws JMSException { - // TODO Auto-generated method stub - return 0; - } - - public short readShort() throws JMSException { - // TODO Auto-generated method stub - return 0; - } - - public String readUTF() throws JMSException { - // TODO Auto-generated method stub - return null; - } - - public int readUnsignedByte() throws JMSException { - // TODO Auto-generated method stub - return 0; - } - - public int readUnsignedShort() throws JMSException { - // TODO Auto-generated method stub - return 0; - } - - public void reset() throws JMSException { - // TODO Auto-generated method stub - - } - - public void writeBoolean(boolean arg0) throws JMSException { - // TODO Auto-generated method stub - - } - - public void writeByte(byte arg0) throws JMSException { - // TODO Auto-generated method stub - - } - - public void writeBytes(byte[] arg0) throws JMSException { - // TODO Auto-generated method stub - - } - - public void writeBytes(byte[] arg0, int arg1, int arg2) - throws JMSException { - // TODO Auto-generated method stub - - } - - public void writeChar(char arg0) throws JMSException { - // TODO Auto-generated method stub - - } - - public void writeDouble(double arg0) throws JMSException { - // TODO Auto-generated method stub - - } - - public void writeFloat(float arg0) throws JMSException { - // TODO Auto-generated method stub - - } - - public void writeInt(int arg0) throws JMSException { - // TODO Auto-generated method stub - - } - - public void writeLong(long arg0) throws JMSException { - // TODO Auto-generated method stub - - } - - public void writeObject(Object arg0) throws JMSException { - // TODO Auto-generated method stub - - } - - public void writeShort(short arg0) throws JMSException { - // TODO Auto-generated method stub - - } - - public void writeUTF(String arg0) throws JMSException { - // TODO Auto-generated method stub - - } - - public void acknowledge() throws JMSException { - // TODO Auto-generated method stub - - } - - public void clearBody() throws JMSException { - // TODO Auto-generated method stub - - } - - public void clearProperties() throws JMSException { - // TODO Auto-generated method stub - - } - - public boolean getBooleanProperty(String arg0) throws JMSException { - // TODO Auto-generated method stub - return false; - } - - public byte getByteProperty(String arg0) throws JMSException { - // TODO Auto-generated method stub - return 0; - } - - public double getDoubleProperty(String arg0) throws JMSException { - // TODO Auto-generated method stub - return 0; - } - - public float getFloatProperty(String arg0) throws JMSException { - // TODO Auto-generated method stub - return 0; - } - - public int getIntProperty(String arg0) throws JMSException { - // TODO Auto-generated method stub - return 0; - } - - public String getJMSCorrelationID() throws JMSException { - // TODO Auto-generated method stub - return null; - } - - public byte[] getJMSCorrelationIDAsBytes() throws JMSException { - // TODO Auto-generated method stub - return null; - } - - public int getJMSDeliveryMode() throws JMSException { - // TODO Auto-generated method stub - return 0; - } - - public Destination getJMSDestination() throws JMSException { - // TODO Auto-generated method stub - return null; - } - - public long getJMSExpiration() throws JMSException { - // TODO Auto-generated method stub - return 0; - } - - public String getJMSMessageID() throws JMSException { - // TODO Auto-generated method stub - return null; - } - - public int getJMSPriority() throws JMSException { - // TODO Auto-generated method stub - return 0; - } - - public boolean getJMSRedelivered() throws JMSException { - // TODO Auto-generated method stub - return false; - } - - public Destination getJMSReplyTo() throws JMSException { - // TODO Auto-generated method stub - return null; - } - - public long getJMSTimestamp() throws JMSException { - // TODO Auto-generated method stub - return 0; - } - - public String getJMSType() throws JMSException { - // TODO Auto-generated method stub - return null; - } - - public long getLongProperty(String arg0) throws JMSException { - // TODO Auto-generated method stub - return 0; - } - - public Object getObjectProperty(String arg0) throws JMSException { - // TODO Auto-generated method stub - return null; - } - - public Enumeration getPropertyNames() throws JMSException { - // TODO Auto-generated method stub - return null; - } - - public short getShortProperty(String arg0) throws JMSException { - // TODO Auto-generated method stub - return 0; - } - - public String getStringProperty(String arg0) throws JMSException { - // TODO Auto-generated method stub - return null; - } - - public boolean propertyExists(String arg0) throws JMSException { - // TODO Auto-generated method stub - return false; - } - - public void setBooleanProperty(String arg0, boolean arg1) - throws JMSException { - // TODO Auto-generated method stub - - } - - public void setByteProperty(String arg0, byte arg1) throws JMSException { - // TODO Auto-generated method stub - - } - - public void setDoubleProperty(String arg0, double arg1) - throws JMSException { - // TODO Auto-generated method stub - - } - - public void setFloatProperty(String arg0, float arg1) - throws JMSException { - // TODO Auto-generated method stub - - } - - public void setIntProperty(String arg0, int arg1) throws JMSException { - // TODO Auto-generated method stub - - } - - public void setJMSCorrelationID(String arg0) throws JMSException { - // TODO Auto-generated method stub - - } - - public void setJMSCorrelationIDAsBytes(byte[] arg0) throws JMSException { - // TODO Auto-generated method stub - - } - - public void setJMSDeliveryMode(int arg0) throws JMSException { - // TODO Auto-generated method stub - - } - - public void setJMSDestination(Destination arg0) throws JMSException { - // TODO Auto-generated method stub - - } - - public void setJMSExpiration(long arg0) throws JMSException { - // TODO Auto-generated method stub - - } - - public void setJMSMessageID(String arg0) throws JMSException { - // TODO Auto-generated method stub - - } - - public void setJMSPriority(int arg0) throws JMSException { - // TODO Auto-generated method stub - - } - - public void setJMSRedelivered(boolean arg0) throws JMSException { - // TODO Auto-generated method stub - - } - - public void setJMSReplyTo(Destination arg0) throws JMSException { - // TODO Auto-generated method stub - - } - - public void setJMSTimestamp(long arg0) throws JMSException { - // TODO Auto-generated method stub - - } - - public void setJMSType(String arg0) throws JMSException { - // TODO Auto-generated method stub - - } - - public void setLongProperty(String arg0, long arg1) throws JMSException { - // TODO Auto-generated method stub - - } - - public void setObjectProperty(String arg0, Object arg1) - throws JMSException { - // TODO Auto-generated method stub - - } - - public void setShortProperty(String arg0, short arg1) - throws JMSException { - // TODO Auto-generated method stub - - } - - public void setStringProperty(String arg0, String arg1) - throws JMSException { - // TODO Auto-generated method stub - - }}; - } - - public MessageConsumer createConsumer(Destination arg0) throws JMSException { - // TODO Auto-generated method stub - return null; - } - - public MessageConsumer createConsumer(Destination arg0, String arg1) - throws JMSException { - // TODO Auto-generated method stub - return null; - } - - public MessageConsumer createConsumer(Destination arg0, - String arg1, - boolean arg2) throws JMSException { - // TODO Auto-generated method stub - return null; - } - - public TopicSubscriber createDurableSubscriber(Topic arg0, String arg1) - throws JMSException { - // TODO Auto-generated method stub - return null; - } - - public TopicSubscriber createDurableSubscriber(Topic arg0, - String arg1, - String arg2, - boolean arg3) - throws JMSException { - // TODO Auto-generated method stub - return null; - } - - public MapMessage createMapMessage() throws JMSException { - // TODO Auto-generated method stub - return null; - } - - public Message createMessage() throws JMSException { - // TODO Auto-generated method stub - return null; - } - - public ObjectMessage createObjectMessage() throws JMSException { - // TODO Auto-generated method stub - return null; - } - - public ObjectMessage createObjectMessage(Serializable arg0) throws JMSException { - // TODO Auto-generated method stub - return null; - } - - public MessageProducer createProducer(Destination arg0) throws JMSException { - return new MessageProducer() { - - public void close() throws JMSException { - // TODO Auto-generated method stub - - } - - public int getDeliveryMode() throws JMSException { - // TODO Auto-generated method stub - return 0; - } - - public Destination getDestination() throws JMSException { - // TODO Auto-generated method stub - return null; - } - - public boolean getDisableMessageID() throws JMSException { - // TODO Auto-generated method stub - return false; - } - - public boolean getDisableMessageTimestamp() throws JMSException { - // TODO Auto-generated method stub - return false; - } - - public int getPriority() throws JMSException { - // TODO Auto-generated method stub - return 0; - } - - public long getTimeToLive() throws JMSException { - // TODO Auto-generated method stub - return 0; - } - - public void send(Message arg0) throws JMSException { - // TODO Auto-generated method stub - - } - - public void send(Destination arg0, Message arg1) throws JMSException { - // TODO Auto-generated method stub - - } - - public void send(Message arg0, int arg1, int arg2, long arg3) - throws JMSException { - // TODO Auto-generated method stub - - } - - public void send(Destination arg0, - Message arg1, - int arg2, - int arg3, - long arg4) throws JMSException { - // TODO Auto-generated method stub - - } - - public void setDeliveryMode(int arg0) throws JMSException { - // TODO Auto-generated method stub - - } - - public void setDisableMessageID(boolean arg0) throws JMSException { - // TODO Auto-generated method stub - - } - - public void setDisableMessageTimestamp(boolean arg0) - throws JMSException { - // TODO Auto-generated method stub - - } - - public void setPriority(int arg0) throws JMSException { - // TODO Auto-generated method stub - - } - - public void setTimeToLive(long arg0) throws JMSException { - MockInitialContextFactory.timeToLive = Long.valueOf(arg0); - synchronized(MockInitialContextFactory.lock) { - MockInitialContextFactory.lock.notifyAll(); - } - }}; - } - - public Queue createQueue(String arg0) throws JMSException { - // TODO Auto-generated method stub - return null; - } - - public StreamMessage createStreamMessage() throws JMSException { - // TODO Auto-generated method stub - return null; - } - - public TemporaryQueue createTemporaryQueue() throws JMSException { - // TODO Auto-generated method stub - return null; - } - - public TemporaryTopic createTemporaryTopic() throws JMSException { - // TODO Auto-generated method stub - return null; - } - - public TextMessage createTextMessage() throws JMSException { - // TODO Auto-generated method stub - return null; - } - - public TextMessage createTextMessage(String arg0) throws JMSException { - // TODO Auto-generated method stub - return null; - } - - public Topic createTopic(String arg0) throws JMSException { - // TODO Auto-generated method stub - return null; - } - - public int getAcknowledgeMode() throws JMSException { - // TODO Auto-generated method stub - return 0; - } - - public MessageListener getMessageListener() throws JMSException { - // TODO Auto-generated method stub - return null; - } - - public boolean getTransacted() throws JMSException { - // TODO Auto-generated method stub - return false; - } - - public void recover() throws JMSException { - // TODO Auto-generated method stub - - } - - public void rollback() throws JMSException { - // TODO Auto-generated method stub - - } - - public void run() { - // TODO Auto-generated method stub - - } - - public void setMessageListener(MessageListener arg0) throws JMSException { - // TODO Auto-generated method stub - - } - - public void unsubscribe(String arg0) throws JMSException { - // TODO Auto-generated method stub - - }}; - } - - public String getClientID() throws JMSException { - // TODO Auto-generated method stub - return null; - } - - public ExceptionListener getExceptionListener() throws JMSException { - // TODO Auto-generated method stub - return null; - } - - public ConnectionMetaData getMetaData() throws JMSException { - // TODO Auto-generated method stub - return null; - } - - public void setClientID(String arg0) throws JMSException { - // TODO Auto-generated method stub - - } - - public void setExceptionListener(ExceptionListener arg0) throws JMSException { - // TODO Auto-generated method stub - - } - - public void start() throws JMSException { - // TODO Auto-generated method stub - - } - - public void stop() throws JMSException { - // TODO Auto-generated method stub - - }}; - } - public Connection createConnection(String arg0, String arg1) throws JMSException { - return null; - }}; - } else { - return new Queue(){ - public String getQueueName() throws JMSException { - return null; - }}; - } - } - - public Object lookupLink(Name name) throws NamingException { - // TODO Auto-generated method stub - return null; - } - - public Object lookupLink(String name) throws NamingException { - // TODO Auto-generated method stub - return null; - } - - public void rebind(Name name, Object obj) throws NamingException { - // TODO Auto-generated method stub - - } - - public void rebind(String name, Object obj) throws NamingException { - // TODO Auto-generated method stub - - } - - public Object removeFromEnvironment(String propName) throws NamingException { - // TODO Auto-generated method stub - return null; - } - - public void rename(Name oldName, Name newName) throws NamingException { - // TODO Auto-generated method stub - - } - - public void rename(String oldName, String newName) throws NamingException { - // TODO Auto-generated method stub - - } - - public void unbind(Name name) throws NamingException { - // TODO Auto-generated method stub - - } - - public void unbind(String name) throws NamingException { - // TODO Auto-generated method stub - - }}; - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/ttl/src/main/java/org/apache/tuscany/sca/binding/jms/ClientIface.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/ttl/src/main/java/org/apache/tuscany/sca/binding/jms/ClientIface.java deleted file mode 100644 index dc6577b7e1..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/ttl/src/main/java/org/apache/tuscany/sca/binding/jms/ClientIface.java +++ /dev/null @@ -1,30 +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 org.apache.tuscany.sca.binding.jms; - -import org.oasisopen.sca.annotation.OneWay; -import org.oasisopen.sca.annotation.Remotable; - -@Remotable -public interface ClientIface { - - @OneWay - void sayHello(String s); -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/ttl/src/main/java/org/apache/tuscany/sca/binding/jms/ClientImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/ttl/src/main/java/org/apache/tuscany/sca/binding/jms/ClientImpl.java deleted file mode 100644 index 4f9908f062..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/ttl/src/main/java/org/apache/tuscany/sca/binding/jms/ClientImpl.java +++ /dev/null @@ -1,39 +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 org.apache.tuscany.sca.binding.jms; - -import org.oasisopen.sca.annotation.Reference; - -/** - * This class implements the OneWay service. - */ -public class ClientImpl implements ClientIface { - - private ClientIface serviceA; - - @Reference - public void setServiceA(ClientIface service) { - this.serviceA = service; - } - - public void sayHello(String name) { - serviceA.sayHello(name); - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/ttl/src/main/resources/META-INF/sca-contribution.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/ttl/src/main/resources/META-INF/sca-contribution.xml deleted file mode 100644 index ff50ad2daa..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/ttl/src/main/resources/META-INF/sca-contribution.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/ttl/src/main/resources/jndi.properties b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/ttl/src/main/resources/jndi.properties deleted file mode 100644 index 7ac9aa559c..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/ttl/src/main/resources/jndi.properties +++ /dev/null @@ -1,38 +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. -## --------------------------------------------------------------------------- - -# START SNIPPET: jndi - -java.naming.factory.initial = itest.MockInitialContextFactory - -# use the following property to configure the default connector -java.naming.provider.url = vm://localhost?broker.persistent=false&broker.useJmx=false&broker.useShutdownHook=false - -# use the following property to specify the JNDI name the connection factory -# should appear as. -#connectionFactoryNames = connectionFactory, queueConnectionFactory, topicConnectionFactry -connectionFactoryNames = ConnectionFactory, ConnectionFactory2 - -# register some queues in JNDI using the form -# queue.[jndiName] = [physicalName] - -# register some topics in JNDI using the form -# topic.[jndiName] = [physicalName] -#topic.MyTopic = example.MyTopic -topic.ServiceTopic = ServiceTopic - -# END SNIPPET: jndi diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/ttl/src/main/resources/ttl.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/ttl/src/main/resources/ttl.composite deleted file mode 100644 index 8b06a9fc7c..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/ttl/src/main/resources/ttl.composite +++ /dev/null @@ -1,35 +0,0 @@ - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/ttl/src/test/java/org/apache/tuscany/sca/binding/jms/TTLTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/ttl/src/test/java/org/apache/tuscany/sca/binding/jms/TTLTestCase.java deleted file mode 100644 index b5839f4c4f..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/ttl/src/test/java/org/apache/tuscany/sca/binding/jms/TTLTestCase.java +++ /dev/null @@ -1,64 +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 org.apache.tuscany.sca.binding.jms; - -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertNotNull; -import itest.MockInitialContextFactory; - -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; -import org.junit.After; -import org.junit.Before; -import org.junit.Test; - -/** - */ -public class TTLTestCase { - - private Node node; - - @Before - public void init() { - node = NodeFactory.newInstance().createNode().start(); - } - - @Test - public void testSayHello() throws Exception { - ClientIface client1 = node.getService(ClientIface.class, "Client1"); - - client1.sayHello("petra"); - - synchronized(MockInitialContextFactory.lock) { - if (MockInitialContextFactory.timeToLive == null) { - MockInitialContextFactory.lock.wait(10000); - } - } - - assertNotNull(MockInitialContextFactory.timeToLive); - assertEquals(123, MockInitialContextFactory.timeToLive.longValue()); - } - - @After - public void end() { - if (node != null) { - node.stop(); - } - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/uri-rpc/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/uri-rpc/pom.xml deleted file mode 100644 index c251306f3f..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/uri-rpc/pom.xml +++ /dev/null @@ -1,83 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-itest - 2.0-M5 - ../pom.xml - - - itest-jms-uri-rpc - Apache Tuscany SCA iTest JMS with URI RPC - - - - - org.apache.tuscany.sca - tuscany-sca-api - 2.0-M5 - - - - org.apache.tuscany.sca - tuscany-node-impl - 2.0-M5 - - - - org.apache.tuscany.sca - tuscany-implementation-java-runtime - 2.0-M5 - runtime - - - - org.apache.tuscany.sca - tuscany-binding-jms-runtime - 2.0-M5 - - - - org.apache.activemq - activemq-core - 5.2.0 - runtime - - - org.apache.geronimo.specs - geronimo-jms_1.1_spec - 1.1 - provided - - - org.apache.geronimo.specs - geronimo-jms_1.1_spec - - - - - - - - ${artifactId} - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/uri-rpc/src/main/java/org/apache/tuscany/sca/binding/jms/HelloWorldClientImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/uri-rpc/src/main/java/org/apache/tuscany/sca/binding/jms/HelloWorldClientImpl.java deleted file mode 100644 index 9aef6ba1a3..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/uri-rpc/src/main/java/org/apache/tuscany/sca/binding/jms/HelloWorldClientImpl.java +++ /dev/null @@ -1,41 +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 org.apache.tuscany.sca.binding.jms; - -import org.oasisopen.sca.annotation.Reference; -import org.oasisopen.sca.annotation.Service; - -/** - * This class implements the HelloWorld service. - */ -@Service(HelloWorldService.class) -public class HelloWorldClientImpl implements HelloWorldService { - - private HelloWorldService serviceA; - - @Reference - public void setServiceA(HelloWorldService service) { - this.serviceA = service; - } - - public String sayHello(String name) { - return serviceA.sayHello(name); - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/uri-rpc/src/main/java/org/apache/tuscany/sca/binding/jms/HelloWorldService.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/uri-rpc/src/main/java/org/apache/tuscany/sca/binding/jms/HelloWorldService.java deleted file mode 100644 index 430c71aaef..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/uri-rpc/src/main/java/org/apache/tuscany/sca/binding/jms/HelloWorldService.java +++ /dev/null @@ -1,26 +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 org.apache.tuscany.sca.binding.jms; - -import org.oasisopen.sca.annotation.Remotable; - -@Remotable -public interface HelloWorldService { - String sayHello(String name); -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/uri-rpc/src/main/java/org/apache/tuscany/sca/binding/jms/HelloWorldServiceImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/uri-rpc/src/main/java/org/apache/tuscany/sca/binding/jms/HelloWorldServiceImpl.java deleted file mode 100644 index 2c6d9d0d17..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/uri-rpc/src/main/java/org/apache/tuscany/sca/binding/jms/HelloWorldServiceImpl.java +++ /dev/null @@ -1,30 +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 org.apache.tuscany.sca.binding.jms; - -public class HelloWorldServiceImpl implements HelloWorldService { - - public String sayHello(String name) { - if ("bang".equals(name)) { - throw new RuntimeException("blem wit"); - } - return "jmsHello " + name; - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/uri-rpc/src/main/resources/META-INF/sca-contribution.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/uri-rpc/src/main/resources/META-INF/sca-contribution.xml deleted file mode 100644 index 655372580c..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/uri-rpc/src/main/resources/META-INF/sca-contribution.xml +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/uri-rpc/src/main/resources/jndi.properties b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/uri-rpc/src/main/resources/jndi.properties deleted file mode 100644 index 4d6acc037b..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/uri-rpc/src/main/resources/jndi.properties +++ /dev/null @@ -1,39 +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. -## --------------------------------------------------------------------------- - -# START SNIPPET: jndi - -java.naming.factory.initial = org.apache.activemq.jndi.ActiveMQInitialContextFactory - -# use the following property to configure the default connector -java.naming.provider.url = vm://localhost?broker.persistent=false - -# use the following property to specify the JNDI name the connection factory -# should appear as. -#connectionFactoryNames = connectionFactory, queueConnectionFactory, topicConnectionFactry -connectionFactoryNames = ConnectionFactory - -# register some queues in JNDI using the form -# queue.[jndiName] = [physicalName] -queue.RequestQueue = RequestQueue -queue.ResponseQueue = ResponseQueue - -# register some topics in JNDI using the form -# topic.[jndiName] = [physicalName] -#topic.MyTopic = example.MyTopic - -# END SNIPPET: jndi diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/uri-rpc/src/main/resources/simple/service.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/uri-rpc/src/main/resources/simple/service.composite deleted file mode 100644 index 33364f61c0..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/uri-rpc/src/main/resources/simple/service.composite +++ /dev/null @@ -1,37 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/uri-rpc/src/main/resources/simple/uriclient.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/uri-rpc/src/main/resources/simple/uriclient.composite deleted file mode 100644 index 2e47288c04..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/uri-rpc/src/main/resources/simple/uriclient.composite +++ /dev/null @@ -1,31 +0,0 @@ - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/uri-rpc/src/test/java/org/apache/tuscany/sca/binding/jms/URIRPCTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/uri-rpc/src/test/java/org/apache/tuscany/sca/binding/jms/URIRPCTestCase.java deleted file mode 100644 index 60b0f0a1a3..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/jms/uri-rpc/src/test/java/org/apache/tuscany/sca/binding/jms/URIRPCTestCase.java +++ /dev/null @@ -1,54 +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 org.apache.tuscany.sca.binding.jms; - -import static org.junit.Assert.assertEquals; - -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; -import org.junit.After; -import org.junit.Before; -import org.junit.Test; - -/** - * This shows how to test the JMS binding using a simple HelloWorld application. - */ -public class URIRPCTestCase { - - private static Node node; - - @Before - public void init() { - node = NodeFactory.newInstance().createNode().start(); - } - - @After - public void end() { - if (node != null) { - node.stop(); - } - } - - @Test - public void testHelloWorldCreate() throws Exception { - HelloWorldService helloWorldService = node.getService(HelloWorldService.class, "HelloWorldClient"); - assertEquals("jmsHello Petra", helloWorldService.sayHello("Petra")); - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/node-launcher-equinox/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/node-launcher-equinox/pom.xml deleted file mode 100644 index 9af8508147..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/node-launcher-equinox/pom.xml +++ /dev/null @@ -1,76 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-itest - 2.0-M5 - ../pom.xml - - itest-node-launcher-equinox - Apache Tuscany SCA iTest Node Launcher Exuinox - - - - org.apache.tuscany.sca - tuscany-node-launcher-equinox - 2.0-M5 - test - - - - org.apache.tuscany.sca - tuscany-node-api - 2.0-M5 - test - - - org.apache.tuscany.sca - tuscany-node-impl - 2.0-M5 - test - - - org.apache.tuscany.sca - tuscany-extensibility-equinox - 2.0-M5 - test - - - - - - org.apache.tuscany.sca - tuscany-implementation-java-runtime - 2.0-M5 - test - - - - - ${artifactId} - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/node-launcher-equinox/src/test/java/hello/HelloWorld.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/node-launcher-equinox/src/test/java/hello/HelloWorld.java deleted file mode 100644 index e3fcdfd25f..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/node-launcher-equinox/src/test/java/hello/HelloWorld.java +++ /dev/null @@ -1,30 +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 hello; - -import org.oasisopen.sca.annotation.Remotable; - -/** - * HelloWorld interface - */ -@Remotable -public interface HelloWorld { - String hello(String name); -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/node-launcher-equinox/src/test/java/hello/HelloWorldClient.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/node-launcher-equinox/src/test/java/hello/HelloWorldClient.java deleted file mode 100644 index 8232acb658..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/node-launcher-equinox/src/test/java/hello/HelloWorldClient.java +++ /dev/null @@ -1,50 +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 hello; - -import org.oasisopen.sca.annotation.EagerInit; -import org.oasisopen.sca.annotation.Init; -import org.oasisopen.sca.annotation.Reference; -import org.oasisopen.sca.annotation.Scope; - -/** - * This client program shows how to create an SCA runtime, start it, - * and locate and invoke a SCA component - */ -@Scope("COMPOSITE") -@EagerInit -public class HelloWorldClient { - - private HelloWorld hw; - - @Reference - public void setHelloWorld(HelloWorld hw) { - this.hw = hw; - } - - @Init - public void hello() { - // Say hello - System.out.println("Contribution ClassLoader: " + getClass().getClassLoader()); - System.out.println("SCA API ClassLoader: " + Reference.class.getClassLoader()); - System.out.println(hw.hello("Equinox")); - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/node-launcher-equinox/src/test/java/hello/HelloWorldImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/node-launcher-equinox/src/test/java/hello/HelloWorldImpl.java deleted file mode 100644 index e51d3c79d9..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/node-launcher-equinox/src/test/java/hello/HelloWorldImpl.java +++ /dev/null @@ -1,30 +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 hello; - -/** - * HelloWorldImpl - */ -public class HelloWorldImpl implements HelloWorld { - public String hello(String name) { - System.out.println("Name: " + name); - return "Hello, " + name; - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/node-launcher-equinox/src/test/java/org/apache/tuscany/sca/node/equinox/launcher/EquinoxOSGiHostTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/node-launcher-equinox/src/test/java/org/apache/tuscany/sca/node/equinox/launcher/EquinoxOSGiHostTestCase.java deleted file mode 100644 index 5728ad2e07..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/node-launcher-equinox/src/test/java/org/apache/tuscany/sca/node/equinox/launcher/EquinoxOSGiHostTestCase.java +++ /dev/null @@ -1,100 +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 org.apache.tuscany.sca.node.equinox.launcher; - -import java.util.Dictionary; -import java.util.Enumeration; - -import org.junit.Assert; -import org.junit.Test; -import org.osgi.framework.Bundle; -import org.osgi.framework.BundleContext; - - -/** - * Test case for equinox host - */ -public class EquinoxOSGiHostTestCase { - - @Test - public void testStartThenStop() { - EquinoxHost host = new EquinoxHost(); - BundleContext context = host.start(); - Assert.assertNotNull(context); - for (Bundle b : context.getBundles()) { - System.out.println(toString(b, false)); - } - host.stop(); - } - - @Test - public void testStartThenStopTwice() { - EquinoxHost host = new EquinoxHost(); - BundleContext context = host.start(); - Assert.assertNotNull(context); - for (Bundle b : context.getBundles()) { - System.out.println(toString(b, false)); - } - host.stop(); - - host = new EquinoxHost(); - context = host.start(); - Assert.assertNotNull(context); - for (Bundle b : context.getBundles()) { - System.out.println(toString(b, false)); - } - host.stop(); - } - - public static String toString(Bundle b, boolean verbose) { - StringBuffer sb = new StringBuffer(); - sb.append(b.getBundleId()).append(" ").append(b.getSymbolicName()); - int s = b.getState(); - if ((s & Bundle.UNINSTALLED) != 0) { - sb.append(" UNINSTALLED"); - } - if ((s & Bundle.INSTALLED) != 0) { - sb.append(" INSTALLED"); - } - if ((s & Bundle.RESOLVED) != 0) { - sb.append(" RESOLVED"); - } - if ((s & Bundle.STARTING) != 0) { - sb.append(" STARTING"); - } - if ((s & Bundle.STOPPING) != 0) { - sb.append(" STOPPING"); - } - if ((s & Bundle.ACTIVE) != 0) { - sb.append(" ACTIVE"); - } - - sb.append(" ").append(b.getLocation()); - if (verbose) { - Dictionary dict = b.getHeaders(); - Enumeration keys = dict.keys(); - while (keys.hasMoreElements()) { - Object key = keys.nextElement(); - sb.append(" ").append(key).append("=").append(dict.get(key)); - } - } - return sb.toString(); - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/node-launcher-equinox/src/test/java/org/apache/tuscany/sca/node/equinox/launcher/NodeLauncherTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/node-launcher-equinox/src/test/java/org/apache/tuscany/sca/node/equinox/launcher/NodeLauncherTestCase.java deleted file mode 100644 index 5cc40ca77f..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/node-launcher-equinox/src/test/java/org/apache/tuscany/sca/node/equinox/launcher/NodeLauncherTestCase.java +++ /dev/null @@ -1,67 +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 org.apache.tuscany.sca.node.equinox.launcher; - -import org.apache.tuscany.sca.node.Node; -import org.junit.AfterClass; -import org.junit.BeforeClass; -import org.junit.Ignore; -import org.junit.Test; - -/** - * - */ -public class NodeLauncherTestCase { - private static NodeLauncher launcher; - - @BeforeClass - public static void setUp() { - System.setProperty("osgi.configuration.area", "target/equinox/configuration"); - try { - launcher = NodeLauncher.newInstance(); - } catch (Exception e) { - e.printStackTrace(); - } - } - - @AfterClass - public static void tearDown() { - System.clearProperty("osgi.configuration.area"); - if (launcher != null) { - launcher.destroy(); - } - - } - - @Test - public void testLaunch() throws Exception { - String location = ContributionLocationHelper.getContributionLocation(getClass()); - Node node = launcher.createNode("HelloWorld.composite", new Contribution("test", location)); - node.start(); - node.stop(); - } - - @Test - @Ignore("contribution-osgi issue") - public void testLaunchDomain() throws Exception { - DomainManagerLauncher.main(new String[] {}); - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/node-launcher-equinox/src/test/resources/HelloWorld.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/node-launcher-equinox/src/test/resources/HelloWorld.composite deleted file mode 100644 index 32ec5f0e2f..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/node-launcher-equinox/src/test/resources/HelloWorld.composite +++ /dev/null @@ -1,34 +0,0 @@ - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/pom.xml deleted file mode 100644 index eef6c0c14c..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/pom.xml +++ /dev/null @@ -1,94 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-itest - 2.0-M5 - ../pom.xml - - itest-nodes-binding-sca-hazelcast - Apache Tuscany SCA iTest Nodes binding.sca Using Hazelcast Registry - - - - org.apache.tuscany.sca - tuscany-sca-client-impl - 2.0-M5 - - - org.apache.tuscany.sca - tuscany-endpoint-hazelcast - 2.0-M5 - - - org.apache.tuscany.sca - tuscany-endpoint-hazelcast-client - 2.0-M5 - - - org.apache.tuscany.sca - tuscany-binding-ws-runtime-axis2 - 2.0-M5 - - - org.apache.tuscany.sca - tuscany-binding-hazelcast-runtime - 2.0-M5 - - - - org.apache.tuscany.sca - tuscany-host-jetty - 2.0-M5 - runtime - - - org.apache.tuscany.sca - tuscany-node-impl - 2.0-M5 - - - org.apache.tuscany.sca - tuscany-implementation-java-runtime - 2.0-M5 - - - - - - org.apache.maven.plugins - maven-surefire-plugin - 2.5 - - - **/*TestCase.java - - brief - true - once - -ea -Xmx256m - off - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/main/java/org/apache/tuscany/sca/itest/bindingsca/Client.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/main/java/org/apache/tuscany/sca/itest/bindingsca/Client.java deleted file mode 100644 index ef2565b750..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/main/java/org/apache/tuscany/sca/itest/bindingsca/Client.java +++ /dev/null @@ -1,29 +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 org.apache.tuscany.sca.itest.bindingsca; - -/** - * - */ -public interface Client { - String getName(String id); - - String create(String name); -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/main/java/org/apache/tuscany/sca/itest/bindingsca/ClientImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/main/java/org/apache/tuscany/sca/itest/bindingsca/ClientImpl.java deleted file mode 100644 index 96a0f2dadd..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/main/java/org/apache/tuscany/sca/itest/bindingsca/ClientImpl.java +++ /dev/null @@ -1,53 +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 org.apache.tuscany.sca.itest.bindingsca; - -import org.oasisopen.sca.annotation.Reference; -import org.oasisopen.sca.annotation.Service; - -/** - * - */ -@Service(Client.class) -public class ClientImpl implements Client { - @Reference - protected Local local; - - @Reference - protected Remote remote; - - public String getName(String id) { - Customer customer = null; - try { - customer = remote.getCustomer(id); - } catch (CustomerNotFoundException e) { - return null; - } - customer.dump("Client.getName()"); - return local.getName(customer); - } - - public String create(String name) { - String id = remote.generateId(); - Customer customer = remote.createCustomer(id, name); - customer.dump("Client.create()"); - return remote.getId(customer); - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/main/java/org/apache/tuscany/sca/itest/bindingsca/Customer.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/main/java/org/apache/tuscany/sca/itest/bindingsca/Customer.java deleted file mode 100644 index f2b7b1e41d..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/main/java/org/apache/tuscany/sca/itest/bindingsca/Customer.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 org.apache.tuscany.sca.itest.bindingsca; - -/** - * - */ -public class Customer { - private String id; - private String name; - - public Customer() { - } - - /** - * @param id - * @param name - */ - public Customer(String id, String name) { - super(); - this.id = id; - this.name = name; - } - - public String getId() { - return id; - } - - public void setId(String id) { - this.id = id; - } - - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - @Override - public String toString() { - return "Customer [id=" + id + ", name=" + name + "]"; - } - - public void dump(String prefix) { - System.out.print(prefix); - System.out.print(": "); - System.out.print(toString()); - System.out.println(" @" + System.identityHashCode(this)); - System.out.println(getClass().getClassLoader()); - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/main/java/org/apache/tuscany/sca/itest/bindingsca/CustomerNotFoundException.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/main/java/org/apache/tuscany/sca/itest/bindingsca/CustomerNotFoundException.java deleted file mode 100644 index a6e80c9eca..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/main/java/org/apache/tuscany/sca/itest/bindingsca/CustomerNotFoundException.java +++ /dev/null @@ -1,64 +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 org.apache.tuscany.sca.itest.bindingsca; - -/** - * - */ -public class CustomerNotFoundException extends Exception { - private String customerId; - - /** - * - */ - public CustomerNotFoundException() { - } - - /** - * @param message - */ - public CustomerNotFoundException(String message) { - super(message); - } - - /** - * @param cause - */ - public CustomerNotFoundException(Throwable cause) { - super(cause); - } - - /** - * @param message - * @param cause - */ - public CustomerNotFoundException(String message, Throwable cause) { - super(message, cause); - } - - public String getCustomerId() { - return customerId; - } - - public void setCustomerId(String customerId) { - this.customerId = customerId; - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/main/java/org/apache/tuscany/sca/itest/bindingsca/Local.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/main/java/org/apache/tuscany/sca/itest/bindingsca/Local.java deleted file mode 100644 index 0fe30c9d53..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/main/java/org/apache/tuscany/sca/itest/bindingsca/Local.java +++ /dev/null @@ -1,27 +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 org.apache.tuscany.sca.itest.bindingsca; - -/** - * - */ -public interface Local { - String getName(Customer customer); -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/main/java/org/apache/tuscany/sca/itest/bindingsca/LocalServiceImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/main/java/org/apache/tuscany/sca/itest/bindingsca/LocalServiceImpl.java deleted file mode 100644 index 8783808334..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/main/java/org/apache/tuscany/sca/itest/bindingsca/LocalServiceImpl.java +++ /dev/null @@ -1,38 +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 org.apache.tuscany.sca.itest.bindingsca; - -import org.oasisopen.sca.annotation.Service; - -/** - * - */ -@Service(Local.class) -public class LocalServiceImpl implements Local { - - public String getName(Customer customer) { - if (customer == null) { - return null; - } - customer.dump("Local.getName()"); - return customer.getName(); - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/main/java/org/apache/tuscany/sca/itest/bindingsca/Remote.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/main/java/org/apache/tuscany/sca/itest/bindingsca/Remote.java deleted file mode 100644 index 050d35007b..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/main/java/org/apache/tuscany/sca/itest/bindingsca/Remote.java +++ /dev/null @@ -1,36 +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 org.apache.tuscany.sca.itest.bindingsca; - -import org.oasisopen.sca.annotation.Remotable; - -/** - * - */ -@Remotable -public interface Remote { - String generateId(); - - String getId(Customer customer); - - Customer getCustomer(String id) throws CustomerNotFoundException; - - Customer createCustomer(String id, String name); -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/main/java/org/apache/tuscany/sca/itest/bindingsca/RemoteServiceImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/main/java/org/apache/tuscany/sca/itest/bindingsca/RemoteServiceImpl.java deleted file mode 100644 index 6c432a500a..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/main/java/org/apache/tuscany/sca/itest/bindingsca/RemoteServiceImpl.java +++ /dev/null @@ -1,66 +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 org.apache.tuscany.sca.itest.bindingsca; - -import java.util.HashMap; -import java.util.Map; -import java.util.UUID; - -import org.oasisopen.sca.annotation.AllowsPassByReference; -import org.oasisopen.sca.annotation.Scope; -import org.oasisopen.sca.annotation.Service; - -/** - * - */ -@Service(Remote.class) -@Scope("COMPOSITE") -public class RemoteServiceImpl implements Remote { - private Map customers = new HashMap(); - - public String generateId() { - return UUID.randomUUID().toString(); - } - - @AllowsPassByReference - public String getId(Customer customer) { - customer.dump("Remote.getId()"); - return customer.getId(); - } - - public Customer getCustomer(String id) throws CustomerNotFoundException { - Customer customer = customers.get(id); - if (customer == null) { - CustomerNotFoundException ex = new CustomerNotFoundException("Customer not found"); - ex.setCustomerId(id); - throw ex; - } - customer.dump("Remote.getCustomer()"); - return customer; - } - - public Customer createCustomer(String id, String name) { - Customer customer = new Customer(id, name); - customer.dump("Remote.createCustomer()"); - customers.put(id, customer); - return customer; - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/main/java/org/apache/tuscany/sca/itest/bindingsca/SCAClientImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/main/java/org/apache/tuscany/sca/itest/bindingsca/SCAClientImpl.java deleted file mode 100644 index 3573eea978..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/main/java/org/apache/tuscany/sca/itest/bindingsca/SCAClientImpl.java +++ /dev/null @@ -1,57 +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 org.apache.tuscany.sca.itest.bindingsca; - -import java.net.URI; - -import org.oasisopen.sca.client.SCAClientFactory; - -/** - * - */ -public class SCAClientImpl implements Client { - private Local local; - private Remote remote; - - public SCAClientImpl(String domainURI) throws Exception { - SCAClientFactory factory = SCAClientFactory.newInstance(URI.create(domainURI)); - local = factory.getService(Local.class, "LocalComponent/Local"); - remote = factory.getService(Remote.class, "RemoteComponent/Remote"); - } - - public String getName(String id) { - Customer customer = null; - try { - customer = remote.getCustomer(id); - } catch (CustomerNotFoundException e) { - return null; - } - customer.dump("Client.getName()"); - return local.getName(customer); - } - - public String create(String name) { - String id = remote.generateId(); - Customer customer = remote.createCustomer(id, name); - customer.dump("Client.create()"); - return remote.getId(customer); - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/main/resources/org/apache/tuscany/sca/itest/bindingsca/Client.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/main/resources/org/apache/tuscany/sca/itest/bindingsca/Client.composite deleted file mode 100644 index b04cc33023..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/main/resources/org/apache/tuscany/sca/itest/bindingsca/Client.composite +++ /dev/null @@ -1,30 +0,0 @@ - - - - - - - - - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/main/resources/org/apache/tuscany/sca/itest/bindingsca/Service.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/main/resources/org/apache/tuscany/sca/itest/bindingsca/Service.composite deleted file mode 100644 index fe282d291c..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/main/resources/org/apache/tuscany/sca/itest/bindingsca/Service.composite +++ /dev/null @@ -1,31 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/AsynchTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/AsynchTestCase.java deleted file mode 100644 index 9efa1a99ec..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/AsynchTestCase.java +++ /dev/null @@ -1,79 +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 org.apache.tuscany.sca.binding.sca.axis2; - - -import junit.framework.Assert; - -import org.apache.tuscany.sca.binding.sca.axis2.helloworld.HelloWorldClient; -import org.apache.tuscany.sca.binding.sca.axis2.helloworld.impl.HelloWorldClientCallbackOnewayRemoteImpl; -import org.apache.tuscany.sca.node.Contribution; -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; -import org.junit.AfterClass; -import org.junit.BeforeClass; -import org.junit.Test; - -// @Ignore("TUSCANY-3138") -public class AsynchTestCase { - - public static Node nodeA; - public static Node nodeB; - - @BeforeClass - public static void init() throws Exception { - System.out.println("Setting up nodes"); - - try { - // create and start nodes - Contribution contrib = new Contribution("asynch", "./target/test-classes/ws/asynchReference"); - nodeA = NodeFactory.getInstance().createNode("HelloWorld.composite", contrib); - nodeA.start(); - - contrib = new Contribution("asynch", "./target/test-classes/ws/asynchService"); - nodeB = NodeFactory.getInstance().createNode("HelloWorld.composite", contrib); - nodeB.start(); - - } catch (Exception ex) { - System.err.println("Exception when creating domain " + ex.getMessage()); - ex.printStackTrace(System.err); - throw ex; - } - } - - @AfterClass - public static void destroy() throws Exception { - nodeA.stop(); - nodeB.stop(); - } - - @Test - public void testHelloWorldAsynch() throws Exception { - HelloWorldClient helloWorldClientB; - helloWorldClientB = nodeA.getService(HelloWorldClient.class, "AHelloWorldClientCallbackRemote"); - helloWorldClientB.getGreetings("fred"); - System.out.println("Sleeping ..."); - Thread.sleep(2000); - System.out.println("... Done"); - Assert.assertEquals("callback fred", HelloWorldClientCallbackOnewayRemoteImpl.result ); - - } - - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/CallbackTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/CallbackTestCase.java deleted file mode 100644 index efa84e92a5..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/CallbackTestCase.java +++ /dev/null @@ -1,83 +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 org.apache.tuscany.sca.binding.sca.axis2; - -import junit.framework.Assert; - -import org.apache.tuscany.sca.binding.sca.axis2.helloworld.HelloWorldClient; -import org.apache.tuscany.sca.node.Contribution; -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; -import org.junit.AfterClass; -import org.junit.BeforeClass; -import org.junit.Test; - -// @Ignore("TUSCANY-3138") -public class CallbackTestCase { - - public static Node nodeA; - public static Node nodeB; - - @BeforeClass - public static void init() throws Exception { - System.out.println("Setting up nodes"); - - try { - // create and start nodes - Contribution contrib = new Contribution("reference", "./target/test-classes/ws/callbackReference"); - nodeA = NodeFactory.getInstance().createNode("HelloWorld.composite", contrib); - nodeA.start(); - - contrib = new Contribution("service", "./target/test-classes/ws/callbackService"); - nodeB = NodeFactory.getInstance().createNode("HelloWorld.composite", contrib); - nodeB.start(); - - } catch (Exception ex) { - System.err.println("Exception when creating domain " + ex.getMessage()); - ex.printStackTrace(System.err); - throw ex; - } - } - - @AfterClass - public static void destroy() throws Exception { - nodeA.stop(); - nodeB.stop(); - } - - //@Test - public void testKeepServerRunning() throws Exception { - System.out.println("press enter to continue"); - System.in.read(); - } - - @Test - public void testHelloWorldCallbackLocal() throws Exception { - HelloWorldClient helloWorldClientB; - helloWorldClientB = nodeB.getService(HelloWorldClient.class, "BHelloWorldClientCallbackLocal"); - Assert.assertEquals("Hello callback fred", helloWorldClientB.getGreetings("fred")); - } - - @Test - public void testHelloWorldCallbackRemote() throws Exception { - HelloWorldClient helloWorldClientA; - helloWorldClientA = nodeA.getService(HelloWorldClient.class, "AHelloWorldClientCallbackRemote"); - Assert.assertEquals("Hello callback fred", helloWorldClientA.getGreetings("fred")); - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/PromotionTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/PromotionTestCase.java deleted file mode 100644 index 45d28140b4..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/PromotionTestCase.java +++ /dev/null @@ -1,74 +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 org.apache.tuscany.sca.binding.sca.axis2; - -import junit.framework.Assert; - -import org.apache.tuscany.sca.binding.sca.axis2.helloworld.HelloWorldClient; -import org.apache.tuscany.sca.node.Contribution; -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; -import org.junit.AfterClass; -import org.junit.BeforeClass; -import org.junit.Ignore; -import org.junit.Test; - -public class PromotionTestCase { - - - public static Node nodeA; - public static Node nodeB; - - @BeforeClass - public static void init() throws Exception { - System.out.println("Setting up nodes"); - - try { - // create and start nodes - Contribution contrib = new Contribution("reference", "./target/test-classes/ws/promotionReference"); - nodeA = NodeFactory.getInstance().createNode("HelloWorld.composite", contrib); - nodeA.start(); - - contrib = new Contribution("service", "./target/test-classes/ws/promotionService"); - nodeB = NodeFactory.getInstance().createNode("HelloWorld.composite", contrib); - nodeB.start(); - - } catch (Exception ex) { - System.err.println("Exception when creating domain " + ex.getMessage()); - ex.printStackTrace(System.err); - throw ex; - } - } - - @AfterClass - public static void destroy() throws Exception { - nodeA.stop(); - nodeB.stop(); - } - - @Test - @Ignore - public void testHelloWorldPromotion() throws Exception { - HelloWorldClient helloWorldClientA; - helloWorldClientA = nodeA.getService(HelloWorldClient.class, "AHelloWorldClientRemotePromotion"); - Assert.assertEquals(helloWorldClientA.getGreetings("fred"), "Hello fred"); - - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/SimpleTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/SimpleTestCase.java deleted file mode 100644 index a5d6529895..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/SimpleTestCase.java +++ /dev/null @@ -1,110 +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 org.apache.tuscany.sca.binding.sca.axis2; - -import junit.framework.Assert; - -import org.apache.tuscany.sca.binding.sca.axis2.helloworld.HelloWorldClient; -import org.apache.tuscany.sca.node.Contribution; -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; -import org.junit.AfterClass; -import org.junit.BeforeClass; -import org.junit.Test; -import org.oasisopen.sca.ServiceUnavailableException; - -public class SimpleTestCase { - - public static Node nodeA; - public static Node nodeB; - - @BeforeClass - public static void init() throws Exception { - System.out.println("Setting up nodes"); - - try { - // create and start nodes - Contribution contrib = new Contribution("reference", "./target/test-classes/ws/simpleReference"); - nodeA = NodeFactory.getInstance().createNode("HelloWorld.composite", contrib); - nodeA.start(); - - contrib = new Contribution("service", "./target/test-classes/ws/simpleService"); - nodeB = NodeFactory.getInstance().createNode("HelloWorld.composite", contrib); - nodeB.start(); - - } catch (Exception ex) { - System.err.println("Exception when creating domain " + ex.getMessage()); - ex.printStackTrace(System.err); - throw ex; - } - } - - @AfterClass - public static void destroy() throws Exception { - nodeA.stop(); - nodeB.stop(); - } - - @Test - public void testHelloWorldLocal() throws Exception { - HelloWorldClient helloWorldClientA = nodeA.getService(HelloWorldClient.class, "AHelloWorldClientLocal"); - Assert.assertEquals(helloWorldClientA.getGreetings("fred"), "Hello fred"); - - } - - @Test - public void testHelloWorldRemote() throws Exception { - - HelloWorldClient helloWorldClientA; - helloWorldClientA = nodeA.getService(HelloWorldClient.class, "AHelloWorldClientRemote"); - - try { - helloWorldClientA.getGreetings("fred"); - } catch (ServiceUnavailableException ex){ - Assert.fail(); - } - } - - @Test - public void testHelloWorldLocalAndRemote() throws Exception { - HelloWorldClient helloWorldClientA = nodeA.getService(HelloWorldClient.class, "AHelloWorldClientLocalAndRemote"); - HelloWorldClient helloWorldClientB = nodeB.getService(HelloWorldClient.class, "BHelloWorldClientLocalAndRemote"); - Assert.assertEquals(helloWorldClientA.getGreetings("fred"), "Hello fred"); - Assert.assertEquals(helloWorldClientB.getGreetings("fred"), "Hello fred"); - } - - @Test - public void testHelloWorldMultipleServices() throws Exception { - HelloWorldClient helloWorldClientA = nodeA.getService(HelloWorldClient.class, "AHelloWorldClientMultipleServices"); - HelloWorldClient helloWorldClientA2 = nodeA.getService(HelloWorldClient.class, "AHelloWorldClientMultipleServices2"); - HelloWorldClient helloWorldClientB = nodeB.getService(HelloWorldClient.class, "BHelloWorldClientMultipleServices"); - Assert.assertEquals(helloWorldClientA.getGreetings("fred"), "Hello fred"); - Assert.assertEquals(helloWorldClientA2.getGreetings("fred"), "Hello fred"); - Assert.assertEquals(helloWorldClientB.getGreetings("fred"), "Hello fred"); - } - - @Test - public void testHelloWorldMultipleBindings() throws Exception { - HelloWorldClient helloWorldClientA; - helloWorldClientA = nodeA.getService(HelloWorldClient.class, "AHelloWorldClientMultipleBindings"); - Assert.assertEquals(helloWorldClientA.getGreetings("fred"), "Hello fred"); - - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/helloworld/HelloWorldCallbackRemote.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/helloworld/HelloWorldCallbackRemote.java deleted file mode 100644 index f7ab3dfe98..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/helloworld/HelloWorldCallbackRemote.java +++ /dev/null @@ -1,30 +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 org.apache.tuscany.sca.binding.sca.axis2.helloworld; - -import org.oasisopen.sca.annotation.Remotable; - - -@Remotable -public interface HelloWorldCallbackRemote { - - String getGreetingsCallbackRemote(String s); - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/helloworld/HelloWorldClient.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/helloworld/HelloWorldClient.java deleted file mode 100644 index 3d25d37708..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/helloworld/HelloWorldClient.java +++ /dev/null @@ -1,27 +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 org.apache.tuscany.sca.binding.sca.axis2.helloworld; - - -public interface HelloWorldClient { - - String getGreetings(String s); - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/helloworld/HelloWorldServiceCallbackOnewayRemote.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/helloworld/HelloWorldServiceCallbackOnewayRemote.java deleted file mode 100644 index a469d197d6..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/helloworld/HelloWorldServiceCallbackOnewayRemote.java +++ /dev/null @@ -1,33 +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 org.apache.tuscany.sca.binding.sca.axis2.helloworld; - -import org.oasisopen.sca.annotation.Callback; -import org.oasisopen.sca.annotation.OneWay; -import org.oasisopen.sca.annotation.Remotable; - -@Remotable -@Callback(HelloWorldCallbackRemote.class) -public interface HelloWorldServiceCallbackOnewayRemote { - - @OneWay - void getGreetingsRemote(String s); - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/helloworld/HelloWorldServiceCallbackRemote.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/helloworld/HelloWorldServiceCallbackRemote.java deleted file mode 100644 index 3f5a21fddd..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/helloworld/HelloWorldServiceCallbackRemote.java +++ /dev/null @@ -1,31 +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 org.apache.tuscany.sca.binding.sca.axis2.helloworld; - -import org.oasisopen.sca.annotation.Callback; -import org.oasisopen.sca.annotation.Remotable; - -@Remotable -@Callback(HelloWorldCallbackRemote.class) -public interface HelloWorldServiceCallbackRemote { - - String getGreetingsRemote(String s); - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/helloworld/HelloWorldServiceLocal.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/helloworld/HelloWorldServiceLocal.java deleted file mode 100644 index 49e5232b31..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/helloworld/HelloWorldServiceLocal.java +++ /dev/null @@ -1,27 +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 org.apache.tuscany.sca.binding.sca.axis2.helloworld; - - -public interface HelloWorldServiceLocal { - - String getGreetingsLocal(String s); - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/helloworld/HelloWorldServiceRemote.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/helloworld/HelloWorldServiceRemote.java deleted file mode 100644 index ccc77c142b..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/helloworld/HelloWorldServiceRemote.java +++ /dev/null @@ -1,29 +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 org.apache.tuscany.sca.binding.sca.axis2.helloworld; - -import org.oasisopen.sca.annotation.Remotable; - -@Remotable -public interface HelloWorldServiceRemote { - - String getGreetingsRemote(String s); - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/helloworld/HelloWorldServiceRemote2.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/helloworld/HelloWorldServiceRemote2.java deleted file mode 100644 index c2be798d1a..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/helloworld/HelloWorldServiceRemote2.java +++ /dev/null @@ -1,29 +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 org.apache.tuscany.sca.binding.sca.axis2.helloworld; - -import org.oasisopen.sca.annotation.Remotable; - -@Remotable -public interface HelloWorldServiceRemote2 { - - String getGreetingsRemote2(String s); - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/helloworld/impl/HelloWorldClientCallbackOnewayRemoteImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/helloworld/impl/HelloWorldClientCallbackOnewayRemoteImpl.java deleted file mode 100644 index 9355aece1f..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/helloworld/impl/HelloWorldClientCallbackOnewayRemoteImpl.java +++ /dev/null @@ -1,43 +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 org.apache.tuscany.sca.binding.sca.axis2.helloworld.impl; - -import org.apache.tuscany.sca.binding.sca.axis2.helloworld.HelloWorldClient; -import org.apache.tuscany.sca.binding.sca.axis2.helloworld.HelloWorldServiceCallbackOnewayRemote; -import org.oasisopen.sca.annotation.Reference; - -public class HelloWorldClientCallbackOnewayRemoteImpl implements HelloWorldClient { - - public static String result; - - @Reference - public HelloWorldServiceCallbackOnewayRemote helloWorldService; - - public String getGreetings(String s) { - helloWorldService.getGreetingsRemote(s); - return null; - } - - public String getGreetingsCallbackRemote(String s) { - result = "callback " + s; - return result; - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/helloworld/impl/HelloWorldClientCallbackRemoteImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/helloworld/impl/HelloWorldClientCallbackRemoteImpl.java deleted file mode 100644 index efc47aa94d..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/helloworld/impl/HelloWorldClientCallbackRemoteImpl.java +++ /dev/null @@ -1,42 +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 org.apache.tuscany.sca.binding.sca.axis2.helloworld.impl; - -import org.apache.tuscany.sca.binding.sca.axis2.helloworld.HelloWorldClient; -import org.apache.tuscany.sca.binding.sca.axis2.helloworld.HelloWorldServiceCallbackRemote; -import org.oasisopen.sca.annotation.Reference; - -public class HelloWorldClientCallbackRemoteImpl implements HelloWorldClient { - - public static String result; - - @Reference - public HelloWorldServiceCallbackRemote helloWorldService; - - public String getGreetings(String s) { - return helloWorldService.getGreetingsRemote(s); - } - - public String getGreetingsCallbackRemote(String s) { - result = "callback " + s; - return result; - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/helloworld/impl/HelloWorldClientLocalImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/helloworld/impl/HelloWorldClientLocalImpl.java deleted file mode 100644 index 6ed813ff0a..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/helloworld/impl/HelloWorldClientLocalImpl.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 org.apache.tuscany.sca.binding.sca.axis2.helloworld.impl; - -import org.apache.tuscany.sca.binding.sca.axis2.helloworld.HelloWorldClient; -import org.apache.tuscany.sca.binding.sca.axis2.helloworld.HelloWorldServiceLocal; -import org.oasisopen.sca.annotation.Reference; - -public class HelloWorldClientLocalImpl implements HelloWorldClient { - - @Reference - public HelloWorldServiceLocal helloWorldService; - - public String getGreetings(String s) { - return helloWorldService.getGreetingsLocal(s); - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/helloworld/impl/HelloWorldClientRemote2Impl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/helloworld/impl/HelloWorldClientRemote2Impl.java deleted file mode 100644 index ba70573efb..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/helloworld/impl/HelloWorldClientRemote2Impl.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 org.apache.tuscany.sca.binding.sca.axis2.helloworld.impl; - -import org.apache.tuscany.sca.binding.sca.axis2.helloworld.HelloWorldClient; -import org.apache.tuscany.sca.binding.sca.axis2.helloworld.HelloWorldServiceRemote2; -import org.oasisopen.sca.annotation.Reference; - -public class HelloWorldClientRemote2Impl implements HelloWorldClient { - - @Reference - public HelloWorldServiceRemote2 helloWorldService; - - public String getGreetings(String s) { - return helloWorldService.getGreetingsRemote2(s); - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/helloworld/impl/HelloWorldClientRemoteImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/helloworld/impl/HelloWorldClientRemoteImpl.java deleted file mode 100644 index a87d6eb49a..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/helloworld/impl/HelloWorldClientRemoteImpl.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 org.apache.tuscany.sca.binding.sca.axis2.helloworld.impl; - -import org.apache.tuscany.sca.binding.sca.axis2.helloworld.HelloWorldClient; -import org.apache.tuscany.sca.binding.sca.axis2.helloworld.HelloWorldServiceRemote; -import org.oasisopen.sca.annotation.Reference; - -public class HelloWorldClientRemoteImpl implements HelloWorldClient { - - @Reference - public HelloWorldServiceRemote helloWorldService; - - public String getGreetings(String s) { - return helloWorldService.getGreetingsRemote(s); - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/helloworld/impl/HelloWorldServiceCallbackOnewayRemoteImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/helloworld/impl/HelloWorldServiceCallbackOnewayRemoteImpl.java deleted file mode 100644 index 3dc0b12b82..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/helloworld/impl/HelloWorldServiceCallbackOnewayRemoteImpl.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 org.apache.tuscany.sca.binding.sca.axis2.helloworld.impl; - -import org.apache.tuscany.sca.binding.sca.axis2.helloworld.HelloWorldCallbackRemote; -import org.apache.tuscany.sca.binding.sca.axis2.helloworld.HelloWorldServiceCallbackOnewayRemote; -import org.oasisopen.sca.annotation.Callback; - -public class HelloWorldServiceCallbackOnewayRemoteImpl implements HelloWorldServiceCallbackOnewayRemote { - - @Callback - protected HelloWorldCallbackRemote theCallback; - - public void getGreetingsRemote(String s) { - theCallback.getGreetingsCallbackRemote(s); - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/helloworld/impl/HelloWorldServiceCallbackRemoteImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/helloworld/impl/HelloWorldServiceCallbackRemoteImpl.java deleted file mode 100644 index b15d6dea80..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/helloworld/impl/HelloWorldServiceCallbackRemoteImpl.java +++ /dev/null @@ -1,39 +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 org.apache.tuscany.sca.binding.sca.axis2.helloworld.impl; - -import org.apache.tuscany.sca.binding.sca.axis2.helloworld.HelloWorldCallbackRemote; -import org.apache.tuscany.sca.binding.sca.axis2.helloworld.HelloWorldServiceCallbackRemote; -import org.oasisopen.sca.annotation.Callback; - -public class HelloWorldServiceCallbackRemoteImpl implements HelloWorldServiceCallbackRemote { - - @Callback - protected HelloWorldCallbackRemote theCallback; - - public HelloWorldServiceCallbackRemoteImpl() { - System.out.println("Constructor"); - } - - public String getGreetingsRemote(String s) { - return "Hello " + theCallback.getGreetingsCallbackRemote(s); - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/helloworld/impl/HelloWorldServiceLocalImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/helloworld/impl/HelloWorldServiceLocalImpl.java deleted file mode 100644 index c4347b084a..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/helloworld/impl/HelloWorldServiceLocalImpl.java +++ /dev/null @@ -1,30 +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 org.apache.tuscany.sca.binding.sca.axis2.helloworld.impl; - -import org.apache.tuscany.sca.binding.sca.axis2.helloworld.HelloWorldServiceLocal; - -public class HelloWorldServiceLocalImpl implements HelloWorldServiceLocal { - - public String getGreetingsLocal(String s) { - return "Hello " + s; - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/helloworld/impl/HelloWorldServiceMultipleServicesImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/helloworld/impl/HelloWorldServiceMultipleServicesImpl.java deleted file mode 100644 index 846bff02e1..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/helloworld/impl/HelloWorldServiceMultipleServicesImpl.java +++ /dev/null @@ -1,41 +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 org.apache.tuscany.sca.binding.sca.axis2.helloworld.impl; - -import org.apache.tuscany.sca.binding.sca.axis2.helloworld.HelloWorldServiceLocal; -import org.apache.tuscany.sca.binding.sca.axis2.helloworld.HelloWorldServiceRemote; -import org.apache.tuscany.sca.binding.sca.axis2.helloworld.HelloWorldServiceRemote2; -import org.oasisopen.sca.annotation.Service; - -@Service({HelloWorldServiceRemote.class, HelloWorldServiceRemote2.class, HelloWorldServiceLocal.class} ) -public class HelloWorldServiceMultipleServicesImpl implements HelloWorldServiceLocal, HelloWorldServiceRemote, HelloWorldServiceRemote2 { - - public String getGreetingsLocal(String s) { - return "Hello " + s; - } - - public String getGreetingsRemote(String s) { - return "Hello " + s; - } - - public String getGreetingsRemote2(String s) { - return "Hello " + s; - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/helloworld/impl/HelloWorldServiceRemoteImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/helloworld/impl/HelloWorldServiceRemoteImpl.java deleted file mode 100644 index d69f442879..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/helloworld/impl/HelloWorldServiceRemoteImpl.java +++ /dev/null @@ -1,30 +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 org.apache.tuscany.sca.binding.sca.axis2.helloworld.impl; - -import org.apache.tuscany.sca.binding.sca.axis2.helloworld.HelloWorldServiceRemote; - -public class HelloWorldServiceRemoteImpl implements HelloWorldServiceRemote { - - public String getGreetingsRemote(String s) { - return "Hello " + s; - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/binding/sca/rmi/AsynchTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/binding/sca/rmi/AsynchTestCase.java deleted file mode 100644 index cbcc06056a..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/binding/sca/rmi/AsynchTestCase.java +++ /dev/null @@ -1,79 +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 org.apache.tuscany.sca.binding.sca.rmi; - - -import junit.framework.Assert; - -import org.apache.tuscany.sca.binding.sca.rmi.helloworld.HelloWorldClient; -import org.apache.tuscany.sca.binding.sca.rmi.helloworld.impl.HelloWorldClientCallbackOnewayRemoteImpl; -import org.apache.tuscany.sca.node.Contribution; -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; -import org.junit.AfterClass; -import org.junit.BeforeClass; -import org.junit.Test; - -public class AsynchTestCase { - - public static Node nodeA; - public static Node nodeB; - - @BeforeClass - public static void init() throws Exception { - System.out.println("Setting up nodes"); - // System.setProperty("org.apache.tuscany.sca.binding.sca.provider.SCABindingMapper.mappedBinding", RMIBinding.TYPE.toString()); - try { - // create and start nodes - Contribution contrib = new Contribution("asynch", "./target/test-classes/rmi/asynchReference"); - nodeA = NodeFactory.getInstance().createNode("HelloWorld.composite", contrib); - nodeA.start(); - - contrib = new Contribution("asynch", "./target/test-classes/rmi/asynchService"); - nodeB = NodeFactory.getInstance().createNode("HelloWorld.composite", contrib); - nodeB.start(); - - } catch (Exception ex) { - System.err.println("Exception when creating domain " + ex.getMessage()); - ex.printStackTrace(System.err); - throw ex; - } - } - - @AfterClass - public static void destroy() throws Exception { - nodeA.stop(); - nodeB.stop(); - // System.clearProperty("org.apache.tuscany.sca.binding.sca.provider.SCABindingMapper.mappedBinding"); - } - - @Test - public void testHelloWorldAsynch() throws Exception { - HelloWorldClient helloWorldClientB; - helloWorldClientB = nodeA.getService(HelloWorldClient.class, "AHelloWorldClientCallbackRemote"); - helloWorldClientB.getGreetings("fred"); - System.out.println("Sleeping ..."); - Thread.sleep(2000); - System.out.println("... Done"); - Assert.assertEquals("callback fred", HelloWorldClientCallbackOnewayRemoteImpl.result ); - - } - - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/binding/sca/rmi/CallbackTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/binding/sca/rmi/CallbackTestCase.java deleted file mode 100644 index dccd2dace8..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/binding/sca/rmi/CallbackTestCase.java +++ /dev/null @@ -1,84 +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 org.apache.tuscany.sca.binding.sca.rmi; - -import junit.framework.Assert; - -import org.apache.tuscany.sca.binding.sca.rmi.helloworld.HelloWorldClient; -import org.apache.tuscany.sca.node.Contribution; -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; -import org.junit.AfterClass; -import org.junit.BeforeClass; -import org.junit.Test; - -public class CallbackTestCase { - - public static Node nodeA; - public static Node nodeB; - - @BeforeClass - public static void init() throws Exception { - System.out.println("Setting up nodes"); - // System.setProperty("org.apache.tuscany.sca.binding.sca.provider.SCABindingMapper.mappedBinding", RMIBinding.TYPE.toString()); - - try { - // create and start nodes - Contribution contrib = new Contribution("reference", "./target/test-classes/rmi/callbackReference"); - nodeA = NodeFactory.getInstance().createNode("HelloWorld.composite", contrib); - nodeA.start(); - - contrib = new Contribution("service", "./target/test-classes/rmi/callbackService"); - nodeB = NodeFactory.getInstance().createNode("HelloWorld.composite", contrib); - nodeB.start(); - - } catch (Exception ex) { - System.err.println("Exception when creating domain " + ex.getMessage()); - ex.printStackTrace(System.err); - throw ex; - } - } - - @AfterClass - public static void destroy() throws Exception { - nodeA.stop(); - nodeB.stop(); - // System.clearProperty("org.apache.tuscany.sca.binding.sca.provider.SCABindingMapper.mappedBinding"); - } - - //@Test - public void testKeepServerRunning() throws Exception { - System.out.println("press enter to continue"); - System.in.read(); - } - - @Test - public void testHelloWorldCallbackLocal() throws Exception { - HelloWorldClient helloWorldClientB; - helloWorldClientB = nodeB.getService(HelloWorldClient.class, "BHelloWorldClientCallbackLocal"); - Assert.assertEquals("Hello callback fred", helloWorldClientB.getGreetings("fred")); - } - - @Test - public void testHelloWorldCallbackRemote() throws Exception { - HelloWorldClient helloWorldClientA; - helloWorldClientA = nodeA.getService(HelloWorldClient.class, "AHelloWorldClientCallbackRemote"); - Assert.assertEquals("Hello callback fred", helloWorldClientA.getGreetings("fred")); - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/binding/sca/rmi/PromotionTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/binding/sca/rmi/PromotionTestCase.java deleted file mode 100644 index 7aac95a8ff..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/binding/sca/rmi/PromotionTestCase.java +++ /dev/null @@ -1,76 +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 org.apache.tuscany.sca.binding.sca.rmi; - -import junit.framework.Assert; - -import org.apache.tuscany.sca.binding.sca.rmi.helloworld.HelloWorldClient; -import org.apache.tuscany.sca.node.Contribution; -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; -import org.junit.AfterClass; -import org.junit.BeforeClass; -import org.junit.Test; - -public class PromotionTestCase { - - - public static Node nodeA; - public static Node nodeB; - - @BeforeClass - public static void init() throws Exception { - System.out.println("Setting up nodes"); - System.setProperty("org.apache.tuscany.sca.binding.sca.provider.SCABindingMapper.mappedBinding", - "{http://tuscany.apache.org/xmlns/sca/1.1}binding.rmi"); - - try { - // create and start nodes - Contribution contrib = new Contribution("reference", "./target/test-classes/rmi/promotionReference"); - nodeA = NodeFactory.getInstance().createNode("HelloWorld.composite", contrib); - nodeA.start(); - - contrib = new Contribution("service", "./target/test-classes/rmi/promotionService"); - nodeB = NodeFactory.getInstance().createNode("HelloWorld.composite", contrib); - nodeB.start(); - - } catch (Exception ex) { - System.err.println("Exception when creating domain " + ex.getMessage()); - ex.printStackTrace(System.err); - throw ex; - } - } - - @AfterClass - public static void destroy() throws Exception { - nodeA.stop(); - nodeB.stop(); - System.clearProperty("org.apache.tuscany.sca.binding.sca.provider.SCABindingMapper.mappedBinding"); - - } - - @Test - public void testHelloWorldPromotion() throws Exception { - HelloWorldClient helloWorldClientA; - helloWorldClientA = nodeA.getService(HelloWorldClient.class, "AHelloWorldClientRemotePromotion"); - Assert.assertEquals(helloWorldClientA.getGreetings("fred"), "Hello fred"); - - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/binding/sca/rmi/SimpleTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/binding/sca/rmi/SimpleTestCase.java deleted file mode 100644 index f748beb6cb..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/binding/sca/rmi/SimpleTestCase.java +++ /dev/null @@ -1,116 +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 org.apache.tuscany.sca.binding.sca.rmi; - -import junit.framework.Assert; - -import org.apache.tuscany.sca.binding.sca.rmi.helloworld.HelloWorldClient; -import org.apache.tuscany.sca.node.Contribution; -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; -import org.junit.AfterClass; -import org.junit.BeforeClass; -import org.junit.Test; -import org.oasisopen.sca.ServiceUnavailableException; - -public class SimpleTestCase { - - private static NodeFactory factory; - public static Node nodeA; - public static Node nodeB; - - @BeforeClass - public static void init() throws Exception { - System.out.println("Setting up nodes"); - System.setProperty("org.apache.tuscany.sca.binding.sca.provider.SCABindingMapper.mappedBinding", - "{http://tuscany.apache.org/xmlns/sca/1.1}binding.rmi"); - - try { - factory = NodeFactory.getInstance(); - // create and start nodes - Contribution contrib = new Contribution("reference", "./target/test-classes/rmi/simpleReference"); - nodeA = factory.createNode("HelloWorld.composite", contrib); - nodeA.start(); - - contrib = new Contribution("service", "./target/test-classes/rmi/simpleService"); - nodeB = factory.createNode("HelloWorld.composite", contrib); - nodeB.start(); - - } catch (Exception ex) { - System.err.println("Exception when creating domain " + ex.getMessage()); - ex.printStackTrace(System.err); - throw ex; - } - } - - @AfterClass - public static void destroy() throws Exception { - nodeA.stop(); - nodeB.stop(); - factory.destroy(); - System.clearProperty("org.apache.tuscany.sca.binding.sca.provider.SCABindingMapper.mappedBinding"); - } - - @Test - public void testHelloWorldLocal() throws Exception { - HelloWorldClient helloWorldClientA = nodeA.getService(HelloWorldClient.class, "AHelloWorldClientLocal"); - Assert.assertEquals(helloWorldClientA.getGreetings("fred"), "Hello fred"); - - } - - @Test - public void testHelloWorldRemote() throws Exception { - - HelloWorldClient helloWorldClientA; - helloWorldClientA = nodeA.getService(HelloWorldClient.class, "AHelloWorldClientRemote"); - - try { - helloWorldClientA.getGreetings("fred"); - } catch (ServiceUnavailableException ex){ - Assert.fail(); - } - } - - @Test - public void testHelloWorldLocalAndRemote() throws Exception { - HelloWorldClient helloWorldClientA = nodeA.getService(HelloWorldClient.class, "AHelloWorldClientLocalAndRemote"); - HelloWorldClient helloWorldClientB = nodeB.getService(HelloWorldClient.class, "BHelloWorldClientLocalAndRemote"); - Assert.assertEquals(helloWorldClientA.getGreetings("fred"), "Hello fred"); - Assert.assertEquals(helloWorldClientB.getGreetings("fred"), "Hello fred"); - } - - @Test - public void testHelloWorldMultipleServices() throws Exception { - HelloWorldClient helloWorldClientA = nodeA.getService(HelloWorldClient.class, "AHelloWorldClientMultipleServices"); - HelloWorldClient helloWorldClientA2 = nodeA.getService(HelloWorldClient.class, "AHelloWorldClientMultipleServices2"); - HelloWorldClient helloWorldClientB = nodeB.getService(HelloWorldClient.class, "BHelloWorldClientMultipleServices"); - Assert.assertEquals(helloWorldClientA.getGreetings("fred"), "Hello fred"); - Assert.assertEquals(helloWorldClientA2.getGreetings("fred"), "Hello fred"); - Assert.assertEquals(helloWorldClientB.getGreetings("fred"), "Hello fred"); - } - - @Test - public void testHelloWorldMultipleBindings() throws Exception { - HelloWorldClient helloWorldClientA; - helloWorldClientA = nodeA.getService(HelloWorldClient.class, "AHelloWorldClientMultipleBindings"); - Assert.assertEquals(helloWorldClientA.getGreetings("fred"), "Hello fred"); - - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/binding/sca/rmi/helloworld/HelloWorldCallbackRemote.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/binding/sca/rmi/helloworld/HelloWorldCallbackRemote.java deleted file mode 100644 index 7c4cf4b0b7..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/binding/sca/rmi/helloworld/HelloWorldCallbackRemote.java +++ /dev/null @@ -1,30 +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 org.apache.tuscany.sca.binding.sca.rmi.helloworld; - -import org.oasisopen.sca.annotation.Remotable; - - -@Remotable -public interface HelloWorldCallbackRemote { - - String getGreetingsCallbackRemote(String s); - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/binding/sca/rmi/helloworld/HelloWorldClient.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/binding/sca/rmi/helloworld/HelloWorldClient.java deleted file mode 100644 index 017acee582..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/binding/sca/rmi/helloworld/HelloWorldClient.java +++ /dev/null @@ -1,27 +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 org.apache.tuscany.sca.binding.sca.rmi.helloworld; - - -public interface HelloWorldClient { - - String getGreetings(String s); - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/binding/sca/rmi/helloworld/HelloWorldServiceCallbackOnewayRemote.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/binding/sca/rmi/helloworld/HelloWorldServiceCallbackOnewayRemote.java deleted file mode 100644 index 86f984e61a..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/binding/sca/rmi/helloworld/HelloWorldServiceCallbackOnewayRemote.java +++ /dev/null @@ -1,33 +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 org.apache.tuscany.sca.binding.sca.rmi.helloworld; - -import org.oasisopen.sca.annotation.Callback; -import org.oasisopen.sca.annotation.OneWay; -import org.oasisopen.sca.annotation.Remotable; - -@Remotable -@Callback(HelloWorldCallbackRemote.class) -public interface HelloWorldServiceCallbackOnewayRemote { - - @OneWay - void getGreetingsRemote(String s); - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/binding/sca/rmi/helloworld/HelloWorldServiceCallbackRemote.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/binding/sca/rmi/helloworld/HelloWorldServiceCallbackRemote.java deleted file mode 100644 index 8e19fd7382..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/binding/sca/rmi/helloworld/HelloWorldServiceCallbackRemote.java +++ /dev/null @@ -1,31 +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 org.apache.tuscany.sca.binding.sca.rmi.helloworld; - -import org.oasisopen.sca.annotation.Callback; -import org.oasisopen.sca.annotation.Remotable; - -@Remotable -@Callback(HelloWorldCallbackRemote.class) -public interface HelloWorldServiceCallbackRemote { - - String getGreetingsRemote(String s); - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/binding/sca/rmi/helloworld/HelloWorldServiceLocal.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/binding/sca/rmi/helloworld/HelloWorldServiceLocal.java deleted file mode 100644 index b0d623e2e4..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/binding/sca/rmi/helloworld/HelloWorldServiceLocal.java +++ /dev/null @@ -1,27 +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 org.apache.tuscany.sca.binding.sca.rmi.helloworld; - - -public interface HelloWorldServiceLocal { - - String getGreetingsLocal(String s); - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/binding/sca/rmi/helloworld/HelloWorldServiceRemote.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/binding/sca/rmi/helloworld/HelloWorldServiceRemote.java deleted file mode 100644 index ccb44694d9..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/binding/sca/rmi/helloworld/HelloWorldServiceRemote.java +++ /dev/null @@ -1,29 +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 org.apache.tuscany.sca.binding.sca.rmi.helloworld; - -import org.oasisopen.sca.annotation.Remotable; - -@Remotable -public interface HelloWorldServiceRemote { - - String getGreetingsRemote(String s); - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/binding/sca/rmi/helloworld/HelloWorldServiceRemote2.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/binding/sca/rmi/helloworld/HelloWorldServiceRemote2.java deleted file mode 100644 index 5c8bb13f43..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/binding/sca/rmi/helloworld/HelloWorldServiceRemote2.java +++ /dev/null @@ -1,29 +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 org.apache.tuscany.sca.binding.sca.rmi.helloworld; - -import org.oasisopen.sca.annotation.Remotable; - -@Remotable -public interface HelloWorldServiceRemote2 { - - String getGreetingsRemote2(String s); - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/binding/sca/rmi/helloworld/impl/HelloWorldClientCallbackOnewayRemoteImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/binding/sca/rmi/helloworld/impl/HelloWorldClientCallbackOnewayRemoteImpl.java deleted file mode 100644 index 1ff1792bb7..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/binding/sca/rmi/helloworld/impl/HelloWorldClientCallbackOnewayRemoteImpl.java +++ /dev/null @@ -1,43 +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 org.apache.tuscany.sca.binding.sca.rmi.helloworld.impl; - -import org.apache.tuscany.sca.binding.sca.rmi.helloworld.HelloWorldClient; -import org.apache.tuscany.sca.binding.sca.rmi.helloworld.HelloWorldServiceCallbackOnewayRemote; -import org.oasisopen.sca.annotation.Reference; - -public class HelloWorldClientCallbackOnewayRemoteImpl implements HelloWorldClient { - - public static String result; - - @Reference - public HelloWorldServiceCallbackOnewayRemote helloWorldService; - - public String getGreetings(String s) { - helloWorldService.getGreetingsRemote(s); - return null; - } - - public String getGreetingsCallbackRemote(String s) { - result = "callback " + s; - return result; - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/binding/sca/rmi/helloworld/impl/HelloWorldClientCallbackRemoteImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/binding/sca/rmi/helloworld/impl/HelloWorldClientCallbackRemoteImpl.java deleted file mode 100644 index b17d8e2016..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/binding/sca/rmi/helloworld/impl/HelloWorldClientCallbackRemoteImpl.java +++ /dev/null @@ -1,42 +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 org.apache.tuscany.sca.binding.sca.rmi.helloworld.impl; - -import org.apache.tuscany.sca.binding.sca.rmi.helloworld.HelloWorldClient; -import org.apache.tuscany.sca.binding.sca.rmi.helloworld.HelloWorldServiceCallbackRemote; -import org.oasisopen.sca.annotation.Reference; - -public class HelloWorldClientCallbackRemoteImpl implements HelloWorldClient { - - public static String result; - - @Reference - public HelloWorldServiceCallbackRemote helloWorldService; - - public String getGreetings(String s) { - return helloWorldService.getGreetingsRemote(s); - } - - public String getGreetingsCallbackRemote(String s) { - result = "callback " + s; - return result; - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/binding/sca/rmi/helloworld/impl/HelloWorldClientLocalImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/binding/sca/rmi/helloworld/impl/HelloWorldClientLocalImpl.java deleted file mode 100644 index e230326f5f..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/binding/sca/rmi/helloworld/impl/HelloWorldClientLocalImpl.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 org.apache.tuscany.sca.binding.sca.rmi.helloworld.impl; - -import org.apache.tuscany.sca.binding.sca.rmi.helloworld.HelloWorldClient; -import org.apache.tuscany.sca.binding.sca.rmi.helloworld.HelloWorldServiceLocal; -import org.oasisopen.sca.annotation.Reference; - -public class HelloWorldClientLocalImpl implements HelloWorldClient { - - @Reference - public HelloWorldServiceLocal helloWorldService; - - public String getGreetings(String s) { - return helloWorldService.getGreetingsLocal(s); - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/binding/sca/rmi/helloworld/impl/HelloWorldClientRemote2Impl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/binding/sca/rmi/helloworld/impl/HelloWorldClientRemote2Impl.java deleted file mode 100644 index 77df8c2c39..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/binding/sca/rmi/helloworld/impl/HelloWorldClientRemote2Impl.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 org.apache.tuscany.sca.binding.sca.rmi.helloworld.impl; - -import org.apache.tuscany.sca.binding.sca.rmi.helloworld.HelloWorldClient; -import org.apache.tuscany.sca.binding.sca.rmi.helloworld.HelloWorldServiceRemote2; -import org.oasisopen.sca.annotation.Reference; - -public class HelloWorldClientRemote2Impl implements HelloWorldClient { - - @Reference - public HelloWorldServiceRemote2 helloWorldService; - - public String getGreetings(String s) { - return helloWorldService.getGreetingsRemote2(s); - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/binding/sca/rmi/helloworld/impl/HelloWorldClientRemoteImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/binding/sca/rmi/helloworld/impl/HelloWorldClientRemoteImpl.java deleted file mode 100644 index 8effa3ac36..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/binding/sca/rmi/helloworld/impl/HelloWorldClientRemoteImpl.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 org.apache.tuscany.sca.binding.sca.rmi.helloworld.impl; - -import org.apache.tuscany.sca.binding.sca.rmi.helloworld.HelloWorldClient; -import org.apache.tuscany.sca.binding.sca.rmi.helloworld.HelloWorldServiceRemote; -import org.oasisopen.sca.annotation.Reference; - -public class HelloWorldClientRemoteImpl implements HelloWorldClient { - - @Reference - public HelloWorldServiceRemote helloWorldService; - - public String getGreetings(String s) { - return helloWorldService.getGreetingsRemote(s); - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/binding/sca/rmi/helloworld/impl/HelloWorldServiceCallbackOnewayRemoteImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/binding/sca/rmi/helloworld/impl/HelloWorldServiceCallbackOnewayRemoteImpl.java deleted file mode 100644 index 2467ddab88..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/binding/sca/rmi/helloworld/impl/HelloWorldServiceCallbackOnewayRemoteImpl.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 org.apache.tuscany.sca.binding.sca.rmi.helloworld.impl; - -import org.apache.tuscany.sca.binding.sca.rmi.helloworld.HelloWorldCallbackRemote; -import org.apache.tuscany.sca.binding.sca.rmi.helloworld.HelloWorldServiceCallbackOnewayRemote; -import org.oasisopen.sca.annotation.Callback; - -public class HelloWorldServiceCallbackOnewayRemoteImpl implements HelloWorldServiceCallbackOnewayRemote { - - @Callback - protected HelloWorldCallbackRemote theCallback; - - public void getGreetingsRemote(String s) { - theCallback.getGreetingsCallbackRemote(s); - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/binding/sca/rmi/helloworld/impl/HelloWorldServiceCallbackRemoteImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/binding/sca/rmi/helloworld/impl/HelloWorldServiceCallbackRemoteImpl.java deleted file mode 100644 index d1b75d0a2c..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/binding/sca/rmi/helloworld/impl/HelloWorldServiceCallbackRemoteImpl.java +++ /dev/null @@ -1,39 +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 org.apache.tuscany.sca.binding.sca.rmi.helloworld.impl; - -import org.apache.tuscany.sca.binding.sca.rmi.helloworld.HelloWorldCallbackRemote; -import org.apache.tuscany.sca.binding.sca.rmi.helloworld.HelloWorldServiceCallbackRemote; -import org.oasisopen.sca.annotation.Callback; - -public class HelloWorldServiceCallbackRemoteImpl implements HelloWorldServiceCallbackRemote { - - @Callback - protected HelloWorldCallbackRemote theCallback; - - public HelloWorldServiceCallbackRemoteImpl() { - System.out.println("Constructor"); - } - - public String getGreetingsRemote(String s) { - return "Hello " + theCallback.getGreetingsCallbackRemote(s); - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/binding/sca/rmi/helloworld/impl/HelloWorldServiceLocalImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/binding/sca/rmi/helloworld/impl/HelloWorldServiceLocalImpl.java deleted file mode 100644 index 44e7efc668..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/binding/sca/rmi/helloworld/impl/HelloWorldServiceLocalImpl.java +++ /dev/null @@ -1,30 +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 org.apache.tuscany.sca.binding.sca.rmi.helloworld.impl; - -import org.apache.tuscany.sca.binding.sca.rmi.helloworld.HelloWorldServiceLocal; - -public class HelloWorldServiceLocalImpl implements HelloWorldServiceLocal { - - public String getGreetingsLocal(String s) { - return "Hello " + s; - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/binding/sca/rmi/helloworld/impl/HelloWorldServiceMultipleServicesImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/binding/sca/rmi/helloworld/impl/HelloWorldServiceMultipleServicesImpl.java deleted file mode 100644 index 88440de023..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/binding/sca/rmi/helloworld/impl/HelloWorldServiceMultipleServicesImpl.java +++ /dev/null @@ -1,41 +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 org.apache.tuscany.sca.binding.sca.rmi.helloworld.impl; - -import org.apache.tuscany.sca.binding.sca.rmi.helloworld.HelloWorldServiceLocal; -import org.apache.tuscany.sca.binding.sca.rmi.helloworld.HelloWorldServiceRemote; -import org.apache.tuscany.sca.binding.sca.rmi.helloworld.HelloWorldServiceRemote2; -import org.oasisopen.sca.annotation.Service; - -@Service({HelloWorldServiceRemote.class, HelloWorldServiceRemote2.class, HelloWorldServiceLocal.class} ) -public class HelloWorldServiceMultipleServicesImpl implements HelloWorldServiceLocal, HelloWorldServiceRemote, HelloWorldServiceRemote2 { - - public String getGreetingsLocal(String s) { - return "Hello " + s; - } - - public String getGreetingsRemote(String s) { - return "Hello " + s; - } - - public String getGreetingsRemote2(String s) { - return "Hello " + s; - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/binding/sca/rmi/helloworld/impl/HelloWorldServiceRemoteImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/binding/sca/rmi/helloworld/impl/HelloWorldServiceRemoteImpl.java deleted file mode 100644 index 06dc2c3f79..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/binding/sca/rmi/helloworld/impl/HelloWorldServiceRemoteImpl.java +++ /dev/null @@ -1,30 +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 org.apache.tuscany.sca.binding.sca.rmi.helloworld.impl; - -import org.apache.tuscany.sca.binding.sca.rmi.helloworld.HelloWorldServiceRemote; - -public class HelloWorldServiceRemoteImpl implements HelloWorldServiceRemote { - - public String getGreetingsRemote(String s) { - return "Hello " + s; - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/itest/bindingsca/BindingSCATestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/itest/bindingsca/BindingSCATestCase.java deleted file mode 100644 index fcd0d39162..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/itest/bindingsca/BindingSCATestCase.java +++ /dev/null @@ -1,170 +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 org.apache.tuscany.sca.itest.bindingsca; - -import java.io.File; - -import org.apache.tuscany.sca.assembly.SCABinding; -import org.apache.tuscany.sca.binding.ws.WebServiceBinding; -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; -import org.apache.tuscany.sca.node.configuration.NodeConfiguration; -import org.junit.Assert; -import org.junit.Test; -import org.oasisopen.sca.ServiceRuntimeException; - -/** - * Test binding.sca in the same classloader - */ -public class BindingSCATestCase { - static final String DOMAIN_URI = "my-domain"; - private static final String REGISTRY_URI = "tuscany:bindingScaTestDomain"; - private static final String PKG = "org/apache/tuscany/sca/itest/bindingsca/"; - private static final String CLIENT = "Client.composite"; - private static final String SERVICE = "Service.composite"; - private static final String ROOT = new File("target/classes/" + PKG).toURI().toString(); - - /** - * One NodeFactory and two nodes - */ - @Test - public void testOneFactoryTwoNodes() { - NodeFactory factory1 = NodeFactory.getInstance(); - Node node1 = createClientNode(factory1); - Node node2 = createServiceNode(factory1); - node1.start(); - node2.start(); - try { - runClient(node1); - } finally { - node2.stop(); - node1.stop(); - factory1.destroy(); - } - } - - /** - * Create the service node - * @param factory - * @return - */ - static Node createServiceNode(NodeFactory factory) { - NodeConfiguration config2 = - factory.createNodeConfiguration().setDomainURI(DOMAIN_URI).setURI("node2").addContribution("c2", ROOT) - .addDeploymentComposite("c2", SERVICE).setDomainRegistryURI(REGISTRY_URI) - .addBinding(WebServiceBinding.TYPE, "http://localhost:8085/").addBinding(SCABinding.TYPE, - "http://localhost:8085/"); - - Node node2 = factory.createNode(config2); - return node2; - } - - /** - * Create the client node - * @param factory - * @return - */ - static Node createClientNode(NodeFactory factory) { - NodeConfiguration config1 = - factory.createNodeConfiguration().setDomainURI(DOMAIN_URI).setURI("node1").addContribution("c1", ROOT) - .addDeploymentComposite("c1", CLIENT).setDomainRegistryURI(REGISTRY_URI) - .addBinding(WebServiceBinding.TYPE, "http://localhost:8085/").addBinding(SCABinding.TYPE, - "http://localhost:8085/"); - Node node1 = factory.createNode(config1); - return node1; - } - - /** - * Two node factories and two nodes - */ - @Test - public void testTwoFactoriesTwoNodes() throws Exception { - NodeFactory factory1 = NodeFactory.newInstance(); - Node node1 = createClientNode(factory1); - NodeFactory factory2 = NodeFactory.newInstance(); - Node node2 = createServiceNode(factory2); - node1.start(); - node2.start(); - Thread.sleep(1000); - try { - // This call doesn't require the Local service, it should be successful - createCustomer(node1); - try { - runClient(node1); - // We cannot make local call to remote endpoints - Assert.fail("ServiceRuntimeException should have been thrown."); - } catch (ServiceRuntimeException e) { - // ignore - } - } finally { - node2.stop(); - node1.stop(); - factory2.destroy(); - factory1.destroy(); - } - } - - /** - * Run the client - * @param node - */ - static void runClient(Node node) { - Client client = node.getService(Client.class, "ClientComponent/Client"); - runClient(client); - } - - static void runClient(Client client) { - String id = client.create("Ray"); - Assert.assertEquals("Ray", client.getName(id)); - } - - static void runClientNotFound(Client client) { - String id = "not-there"; - Assert.assertNull(client.getName(id)); - } - - static String createCustomer(Node node) { - Client client = node.getService(Client.class, "ClientComponent/Client"); - String id = client.create("John"); - Assert.assertNotNull(id); - return id; - } - - /** - * One node factory and one node for both composites - */ - @Test - public void testOneFactoryOneNode() { - NodeFactory factory = NodeFactory.getInstance(); - NodeConfiguration config1 = - factory.createNodeConfiguration().setDomainURI(DOMAIN_URI).setURI("node1").addContribution("c1", ROOT) - .addDeploymentComposite("c1", CLIENT).addDeploymentComposite("c1", SERVICE); - - Node node1 = factory.createNode(config1); - node1.start(); - try { - runClient(node1); - } finally { - node1.stop(); - factory.destroy(); - } - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/itest/bindingsca/ClientNodeSharedCustomerTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/itest/bindingsca/ClientNodeSharedCustomerTestCase.java deleted file mode 100644 index 7255697d4b..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/itest/bindingsca/ClientNodeSharedCustomerTestCase.java +++ /dev/null @@ -1,62 +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 org.apache.tuscany.sca.itest.bindingsca; - -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; -import org.junit.AfterClass; -import org.junit.BeforeClass; -import org.junit.Test; - -/** - * Running the client node and service node with two different classloaders that share the Customer class - */ -public class ClientNodeSharedCustomerTestCase { - private static Node clientNode; - private static TestCaseRunner runner; - private static NodeFactory factory; - - @BeforeClass - public static void setUpBeforeClass() throws Exception { - runner = new TestCaseRunner(ServiceNode.class, Remote.class.getName(), RemoteServiceImpl.class.getName()); - runner.beforeClass(); - factory = NodeFactory.getInstance(); - clientNode = BindingSCATestCase.createClientNode(factory).start(); - Thread.sleep(1000); - } - - @Test - public void testClient() throws Exception { - BindingSCATestCase.runClient(clientNode); - } - - @AfterClass - public static void tearDownAfterClass() throws Exception { - if (clientNode != null) { - clientNode.stop(); - } - if (runner != null) { - runner.afterClass(); - } - if (factory != null) { - factory.destroy(); - } - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/itest/bindingsca/ClientNodeSharedLocalTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/itest/bindingsca/ClientNodeSharedLocalTestCase.java deleted file mode 100644 index 51fafae32c..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/itest/bindingsca/ClientNodeSharedLocalTestCase.java +++ /dev/null @@ -1,62 +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 org.apache.tuscany.sca.itest.bindingsca; - -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; -import org.junit.AfterClass; -import org.junit.BeforeClass; -import org.junit.Test; - -/** - * Running the client node and service node with two different classloaders that share the Local class - * (but not Customer) - */ -public class ClientNodeSharedLocalTestCase { - private static Node clientNode; - private static TestCaseRunner runner; - - @BeforeClass - public static void setUpBeforeClass() throws Exception { - runner = - new TestCaseRunner(ServiceNode.class, Remote.class.getName(), RemoteServiceImpl.class.getName(), - Customer.class.getName()); - runner.beforeClass(); - NodeFactory factory = NodeFactory.getInstance(); - clientNode = BindingSCATestCase.createClientNode(factory).start(); - Thread.sleep(1000); - } - - @Test - public void testClient() throws Exception { - BindingSCATestCase.runClient(clientNode); - } - - @AfterClass - public static void tearDownAfterClass() throws Exception { - if (clientNode != null) { - clientNode.stop(); - } - if (runner != null) { - runner.afterClass(); - } - NodeFactory.getInstance().destroy(); - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/itest/bindingsca/ClientSharedCustomerTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/itest/bindingsca/ClientSharedCustomerTestCase.java deleted file mode 100644 index b8ff0c58ba..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/itest/bindingsca/ClientSharedCustomerTestCase.java +++ /dev/null @@ -1,54 +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 org.apache.tuscany.sca.itest.bindingsca; - -import org.apache.tuscany.sca.node.NodeFactory; -import org.junit.AfterClass; -import org.junit.BeforeClass; -import org.junit.Test; - -/** - * Running the client api and service node with two different classloaders that share the Customer class - */ -public class ClientSharedCustomerTestCase { - private static Client client; - private static TestCaseRunner runner; - - @BeforeClass - public static void setUpBeforeClass() throws Exception { - runner = new TestCaseRunner(ServiceNode.class, Remote.class.getName(), RemoteServiceImpl.class.getName()); - runner.beforeClass(); - client = new SCAClientImpl(BindingSCATestCase.DOMAIN_URI); - Thread.sleep(1000); - } - - @Test - public void testClient() throws Exception { - BindingSCATestCase.runClient(client); - } - - @AfterClass - public static void tearDownAfterClass() throws Exception { - if (runner != null) { - runner.afterClass(); - } - NodeFactory.getInstance().destroy(); - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/itest/bindingsca/ClientSharedLocalTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/itest/bindingsca/ClientSharedLocalTestCase.java deleted file mode 100644 index 633e1a767c..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/itest/bindingsca/ClientSharedLocalTestCase.java +++ /dev/null @@ -1,63 +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 org.apache.tuscany.sca.itest.bindingsca; - -import org.apache.tuscany.sca.node.NodeFactory; -import org.junit.AfterClass; -import org.junit.BeforeClass; -import org.junit.Test; - -/** - * Running the client api and service node with two different classloaders that share the Local class - * (but not Customer) - */ -public class ClientSharedLocalTestCase { - private static Client client; - private static TestCaseRunner runner; - - @BeforeClass - public static void setUpBeforeClass() throws Exception { - runner = - new TestCaseRunner(ServiceNode.class, Remote.class.getName(), RemoteServiceImpl.class.getName(), - Customer.class.getName(), CustomerNotFoundException.class.getName()); - runner.beforeClass(); - client = new SCAClientImpl(BindingSCATestCase.DOMAIN_URI); - Thread.sleep(1000); - } - - @Test - public void testClient() throws Exception { - BindingSCATestCase.runClient(client); - } - - @Test - public void testClientNotFound() throws Exception { - BindingSCATestCase.runClientNotFound(client); - } - - - @AfterClass - public static void tearDownAfterClass() throws Exception { - if (runner != null) { - runner.afterClass(); - } - NodeFactory.getInstance().destroy(); - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/itest/bindingsca/ServiceNode.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/itest/bindingsca/ServiceNode.java deleted file mode 100644 index 1cba2b57c2..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/itest/bindingsca/ServiceNode.java +++ /dev/null @@ -1,48 +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 org.apache.tuscany.sca.itest.bindingsca; - -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; -import org.junit.AfterClass; -import org.junit.BeforeClass; - -/** - * This shows how to test the Calculator service component. - */ -public class ServiceNode { - private static Node serviceNode; - - @BeforeClass - public static void setUpBeforeClass() throws Exception { - /* System.setProperty("org.apache.tuscany.sca.contribution.processor.ValidationSchemaExtensionPoint.enabled", - "false"); - */ - NodeFactory factory = NodeFactory.getInstance(); - serviceNode = BindingSCATestCase.createServiceNode(factory).start(); - } - - @AfterClass - public static void tearDownAfterClass() throws Exception { - if (serviceNode != null) { - serviceNode.stop(); - } - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/itest/bindingsca/TestCaseRunner.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/itest/bindingsca/TestCaseRunner.java deleted file mode 100644 index c0960ffe95..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/java/org/apache/tuscany/sca/itest/bindingsca/TestCaseRunner.java +++ /dev/null @@ -1,329 +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 org.apache.tuscany.sca.itest.bindingsca; - -import java.lang.annotation.Annotation; -import java.lang.reflect.Constructor; -import java.lang.reflect.Method; -import java.net.URL; -import java.net.URLClassLoader; -import java.security.AccessController; -import java.security.PrivilegedAction; -import java.util.Arrays; -import java.util.HashSet; -import java.util.Set; - -/** - * A helper class that can be used to run an SCA JUnit test case. The test case will run in an isolated class loader. - * - * @version $Rev$ $Date$ - */ -public class TestCaseRunner { - - private ClassLoader classLoader; - private Class testSuiteClass; - private Object testSuite; - private Class testResultClass; - private Class testCaseClass; - private Object testCase; - - private Class beforeAnnotation; - private Class beforeClassAnnotation; - private Class afterAnnotation; - private Class afterClassAnnotation; - private Class junit4AdapterClass; - private Class junit3TestCaseClass; - - /** - * Constructs a new TestCase runner. - * - * @param testClass - */ - public TestCaseRunner(Class testClass, String... isolatedClasses) { - try { - ClassLoader tccl = setupClassLoader(testClass, isolatedClasses); - - try { - // Thread.currentThread().setContextClassLoader(classLoader); - // Allow privileged access to set class loader. Requires RuntimePermission - // setContextClassLoader in security policy. - final ClassLoader finalClassLoader = classLoader; - AccessController.doPrivileged(new PrivilegedAction() { - public Object run() { - Thread.currentThread().setContextClassLoader(finalClassLoader); - return null; - } - }); - - testCaseClass = Class.forName(testClass.getName(), true, classLoader); - testCase = testCaseClass.newInstance(); - ClassLoader testClassLoader = testCaseClass.getClassLoader(); - - junit3TestCaseClass = Class.forName("junit.framework.TestCase", true, testClassLoader); - - testSuiteClass = Class.forName("junit.framework.TestSuite", true, testClassLoader); - Constructor testSuiteConstructor = testSuiteClass.getConstructor(Class.class); - testSuite = testSuiteConstructor.newInstance(testCaseClass); - - testResultClass = Class.forName("junit.framework.TestResult", true, testClassLoader); - - try { - beforeAnnotation = Class.forName("org.junit.Before", true, testClassLoader); - afterAnnotation = Class.forName("org.junit.After", true, testClassLoader); - beforeClassAnnotation = Class.forName("org.junit.BeforeClass", true, testClassLoader); - afterClassAnnotation = Class.forName("org.junit.AfterClass", true, testClassLoader); - junit4AdapterClass = Class.forName("junit.framework.JUnit4TestAdapter", true, testClassLoader); - } catch (Exception e) { - // Unexpected - throw new AssertionError(e); - } - } catch (Throwable e) { - e.printStackTrace(); - } finally { - // Thread.currentThread().setContextClassLoader(tccl); - // Allow privileged access to set class loader. Requires RuntimePermission - // setContextClassLoader in security policy. - final ClassLoader finaltccl = tccl; - AccessController.doPrivileged(new PrivilegedAction() { - public Object run() { - Thread.currentThread().setContextClassLoader(finaltccl); - return null; - } - }); - } - } catch (Exception e) { - throw new RuntimeException(e); - } - } - - private ClassLoader setupClassLoader(Class testClass, String... isolatedClasses) { - ClassLoader tccl = Thread.currentThread().getContextClassLoader(); - classLoader = testClass.getClassLoader(); - if (classLoader instanceof URLClassLoader) { - URL[] urls = ((URLClassLoader)classLoader).getURLs(); - classLoader = new ClassLoaderImpl(urls, classLoader, isolatedClasses); - } else if (classLoader == tccl || classLoader.getParent() == tccl) { - classLoader = new URLClassLoader(new URL[0], classLoader); - } else { - classLoader = tccl; - } - return tccl; - } - - /** - * Run the test case - */ - public void run() { - ClassLoader tccl = Thread.currentThread().getContextClassLoader(); - try { - // Thread.currentThread().setContextClassLoader(classLoader); - // Allow privileged access to set class loader. Requires RuntimePermission - // setContextClassLoader in security policy. - final ClassLoader finalClassLoader = classLoader; - AccessController.doPrivileged(new PrivilegedAction() { - public Object run() { - Thread.currentThread().setContextClassLoader(finalClassLoader); - return null; - } - }); - - if (junit3TestCaseClass.isAssignableFrom(testCaseClass)) { - Object testResult = testResultClass.newInstance(); - Method runMethod = testSuiteClass.getMethod("run", testResultClass); - runMethod.invoke(testSuite, testResult); - } else { - Object junit4Adapter = junit4AdapterClass.getConstructor(Class.class).newInstance(testCaseClass); - Object testResult = testResultClass.newInstance(); - Method runMethod = junit4AdapterClass.getMethod("run", testResultClass); - runMethod.invoke(junit4Adapter, testResult); - } - } catch (Exception e) { - throw new RuntimeException(e); - } finally { - // Thread.currentThread().setContextClassLoader(tccl); - // Allow privileged access to set class loader. Requires RuntimePermission - // setContextClassLoader in security policy. - final ClassLoader finaltccl = tccl; - AccessController.doPrivileged(new PrivilegedAction() { - public Object run() { - Thread.currentThread().setContextClassLoader(finaltccl); - return null; - } - }); - } - } - - /** - * Invoke the setUp method - */ - public void setUp() { - execute("setUp"); - } - - /** - * Invoke the before methods - */ - public void before() { - execute(beforeAnnotation); - } - - /** - * Invoke the beforeClass methods - */ - public void beforeClass() { - execute(beforeClassAnnotation); - } - - /** - * Invoke the tearDown method - */ - public void tearDown() { - execute("tearDown"); - } - - /** - * Invoke the after methods - */ - public void after() { - execute(afterAnnotation); - } - - /** - * Invoke the afterClass methods - */ - public void afterClass() { - execute(afterClassAnnotation); - } - - /** - * Invoke the specified test method. - */ - public void run(String methodName) { - execute(methodName); - } - - /** - * Invoke the methods annotated with the specified annotation. - */ - private void execute(Class annotationClass) { - if (annotationClass == null) { - throw new RuntimeException(new NoSuchMethodException()); - } - ClassLoader tccl = Thread.currentThread().getContextClassLoader(); - try { - // Thread.currentThread().setContextClassLoader(classLoader); - // Allow privileged access to set class loader. Requires RuntimePermission - // setContextClassLoader in security policy. - final ClassLoader finalClassLoader = classLoader; - AccessController.doPrivileged(new PrivilegedAction() { - public Object run() { - Thread.currentThread().setContextClassLoader(finalClassLoader); - return null; - } - }); - - for (Method method : testCaseClass.getDeclaredMethods()) { - for (Annotation annotation : method.getAnnotations()) { - if (annotation.annotationType() == annotationClass) { - method.invoke(testCase); - } - } - } - } catch (Exception e) { - throw new RuntimeException(e); - } finally { - // Thread.currentThread().setContextClassLoader(tccl); - // Allow privileged access to set class loader. Requires RuntimePermission - // setContextClassLoader in security policy. - final ClassLoader finaltccl = tccl; - AccessController.doPrivileged(new PrivilegedAction() { - public Object run() { - Thread.currentThread().setContextClassLoader(finaltccl); - return null; - } - }); - } - } - - /** - * Invoke the specified method - */ - private void execute(String methodName) { - ClassLoader tccl = Thread.currentThread().getContextClassLoader(); - try { - // Thread.currentThread().setContextClassLoader(classLoader); - // Allow privileged access to set class loader. Requires RuntimePermission - // setContextClassLoader in security policy. - final ClassLoader finalClassLoader = classLoader; - AccessController.doPrivileged(new PrivilegedAction() { - public Object run() { - Thread.currentThread().setContextClassLoader(finalClassLoader); - return null; - } - }); - Method setUpMethod = testCaseClass.getDeclaredMethod(methodName); - setUpMethod.setAccessible(true); - setUpMethod.invoke(testCase); - } catch (Exception e) { - throw new RuntimeException(e); - } finally { - // Thread.currentThread().setContextClassLoader(tccl); - // Allow privileged access to set class loader. Requires RuntimePermission - // setContextClassLoader in security policy. - final ClassLoader finaltccl = tccl; - AccessController.doPrivileged(new PrivilegedAction() { - public Object run() { - Thread.currentThread().setContextClassLoader(finaltccl); - return null; - } - }); - } - } - - public static class ClassLoaderImpl extends URLClassLoader { - private Set isolatedClasses = new HashSet(); - - /** - * @param urls - * @param parent - */ - public ClassLoaderImpl(URL[] urls, ClassLoader parent, String... sharedClasses) { - super(urls, parent); - this.isolatedClasses.addAll(Arrays.asList(sharedClasses)); - } - - @Override - protected synchronized Class loadClass(String name, boolean resolve) throws ClassNotFoundException { - if (!isolatedClasses.contains(name)) { - return super.loadClass(name, resolve); - } else { - Class cls = findLoadedClass(name); - if (cls == null) { - cls = findClass(name); - } - if (resolve) { - resolveClass(cls); - } - return cls; - } - } - - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/resources/rmi/asynchReference/HelloWorld.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/resources/rmi/asynchReference/HelloWorld.composite deleted file mode 100644 index 8c825ca805..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/resources/rmi/asynchReference/HelloWorld.composite +++ /dev/null @@ -1,36 +0,0 @@ - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/resources/rmi/asynchReference/META-INF/sca-contribution.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/resources/rmi/asynchReference/META-INF/sca-contribution.xml deleted file mode 100644 index ab75f7d225..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/resources/rmi/asynchReference/META-INF/sca-contribution.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/resources/rmi/asynchService/HelloWorld.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/resources/rmi/asynchService/HelloWorld.composite deleted file mode 100644 index 79b1a5d794..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/resources/rmi/asynchService/HelloWorld.composite +++ /dev/null @@ -1,38 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/resources/rmi/asynchService/META-INF/sca-contribution.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/resources/rmi/asynchService/META-INF/sca-contribution.xml deleted file mode 100644 index ab75f7d225..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/resources/rmi/asynchService/META-INF/sca-contribution.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/resources/rmi/callbackReference/HelloWorld.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/resources/rmi/callbackReference/HelloWorld.composite deleted file mode 100644 index e8924d2728..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/resources/rmi/callbackReference/HelloWorld.composite +++ /dev/null @@ -1,36 +0,0 @@ - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/resources/rmi/callbackReference/META-INF/sca-contribution.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/resources/rmi/callbackReference/META-INF/sca-contribution.xml deleted file mode 100644 index ab75f7d225..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/resources/rmi/callbackReference/META-INF/sca-contribution.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/resources/rmi/callbackService/HelloWorld.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/resources/rmi/callbackService/HelloWorld.composite deleted file mode 100644 index 4edc8df5cd..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/resources/rmi/callbackService/HelloWorld.composite +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/resources/rmi/callbackService/META-INF/sca-contribution.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/resources/rmi/callbackService/META-INF/sca-contribution.xml deleted file mode 100644 index ab75f7d225..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/resources/rmi/callbackService/META-INF/sca-contribution.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/resources/rmi/promotionReference/HelloWorld.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/resources/rmi/promotionReference/HelloWorld.composite deleted file mode 100644 index 823cab4f56..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/resources/rmi/promotionReference/HelloWorld.composite +++ /dev/null @@ -1,33 +0,0 @@ - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/resources/rmi/promotionReference/HelloWorldComponent.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/resources/rmi/promotionReference/HelloWorldComponent.composite deleted file mode 100644 index 088fd616f4..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/resources/rmi/promotionReference/HelloWorldComponent.composite +++ /dev/null @@ -1,37 +0,0 @@ - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/resources/rmi/promotionReference/META-INF/sca-contribution.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/resources/rmi/promotionReference/META-INF/sca-contribution.xml deleted file mode 100644 index ab75f7d225..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/resources/rmi/promotionReference/META-INF/sca-contribution.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/resources/rmi/promotionService/HelloWorld.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/resources/rmi/promotionService/HelloWorld.composite deleted file mode 100644 index 454e9c55cf..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/resources/rmi/promotionService/HelloWorld.composite +++ /dev/null @@ -1,35 +0,0 @@ - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/resources/rmi/promotionService/HelloWorldComponent.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/resources/rmi/promotionService/HelloWorldComponent.composite deleted file mode 100644 index a313fb8f68..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/resources/rmi/promotionService/HelloWorldComponent.composite +++ /dev/null @@ -1,37 +0,0 @@ - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/resources/rmi/promotionService/META-INF/sca-contribution.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/resources/rmi/promotionService/META-INF/sca-contribution.xml deleted file mode 100644 index ab75f7d225..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/resources/rmi/promotionService/META-INF/sca-contribution.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/resources/rmi/simpleReference/HelloWorld.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/resources/rmi/simpleReference/HelloWorld.composite deleted file mode 100644 index 4151749523..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/resources/rmi/simpleReference/HelloWorld.composite +++ /dev/null @@ -1,67 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/resources/rmi/simpleReference/META-INF/sca-contribution.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/resources/rmi/simpleReference/META-INF/sca-contribution.xml deleted file mode 100644 index ab75f7d225..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/resources/rmi/simpleReference/META-INF/sca-contribution.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/resources/rmi/simpleService/HelloWorld.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/resources/rmi/simpleService/HelloWorld.composite deleted file mode 100644 index 37af7625ff..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/resources/rmi/simpleService/HelloWorld.composite +++ /dev/null @@ -1,85 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/resources/rmi/simpleService/META-INF/sca-contribution.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/resources/rmi/simpleService/META-INF/sca-contribution.xml deleted file mode 100644 index ab75f7d225..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/resources/rmi/simpleService/META-INF/sca-contribution.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/resources/ws/asynchReference/HelloWorld.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/resources/ws/asynchReference/HelloWorld.composite deleted file mode 100644 index e797a0aa9c..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/resources/ws/asynchReference/HelloWorld.composite +++ /dev/null @@ -1,36 +0,0 @@ - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/resources/ws/asynchReference/META-INF/sca-contribution.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/resources/ws/asynchReference/META-INF/sca-contribution.xml deleted file mode 100644 index e6ccae5c73..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/resources/ws/asynchReference/META-INF/sca-contribution.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/resources/ws/asynchService/HelloWorld.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/resources/ws/asynchService/HelloWorld.composite deleted file mode 100644 index 079ee49380..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/resources/ws/asynchService/HelloWorld.composite +++ /dev/null @@ -1,38 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/resources/ws/asynchService/META-INF/sca-contribution.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/resources/ws/asynchService/META-INF/sca-contribution.xml deleted file mode 100644 index e6ccae5c73..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/resources/ws/asynchService/META-INF/sca-contribution.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/resources/ws/callbackReference/HelloWorld.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/resources/ws/callbackReference/HelloWorld.composite deleted file mode 100644 index 1d5630f3d0..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/resources/ws/callbackReference/HelloWorld.composite +++ /dev/null @@ -1,36 +0,0 @@ - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/resources/ws/callbackReference/META-INF/sca-contribution.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/resources/ws/callbackReference/META-INF/sca-contribution.xml deleted file mode 100644 index e6ccae5c73..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/resources/ws/callbackReference/META-INF/sca-contribution.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/resources/ws/callbackService/HelloWorld.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/resources/ws/callbackService/HelloWorld.composite deleted file mode 100644 index ded3766d49..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/resources/ws/callbackService/HelloWorld.composite +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/resources/ws/callbackService/META-INF/sca-contribution.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/resources/ws/callbackService/META-INF/sca-contribution.xml deleted file mode 100644 index e6ccae5c73..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/resources/ws/callbackService/META-INF/sca-contribution.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/resources/ws/promotionReference/HelloWorld.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/resources/ws/promotionReference/HelloWorld.composite deleted file mode 100644 index 4513f21acf..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/resources/ws/promotionReference/HelloWorld.composite +++ /dev/null @@ -1,33 +0,0 @@ - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/resources/ws/promotionReference/HelloWorldComponent.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/resources/ws/promotionReference/HelloWorldComponent.composite deleted file mode 100644 index 22c20ff94a..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/resources/ws/promotionReference/HelloWorldComponent.composite +++ /dev/null @@ -1,37 +0,0 @@ - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/resources/ws/promotionReference/META-INF/sca-contribution.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/resources/ws/promotionReference/META-INF/sca-contribution.xml deleted file mode 100644 index e6ccae5c73..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/resources/ws/promotionReference/META-INF/sca-contribution.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/resources/ws/promotionService/HelloWorld.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/resources/ws/promotionService/HelloWorld.composite deleted file mode 100644 index e6a7d776c9..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/resources/ws/promotionService/HelloWorld.composite +++ /dev/null @@ -1,35 +0,0 @@ - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/resources/ws/promotionService/HelloWorldComponent.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/resources/ws/promotionService/HelloWorldComponent.composite deleted file mode 100644 index 0393280625..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/resources/ws/promotionService/HelloWorldComponent.composite +++ /dev/null @@ -1,37 +0,0 @@ - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/resources/ws/promotionService/META-INF/sca-contribution.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/resources/ws/promotionService/META-INF/sca-contribution.xml deleted file mode 100644 index e6ccae5c73..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/resources/ws/promotionService/META-INF/sca-contribution.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/resources/ws/simpleReference/HelloWorld.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/resources/ws/simpleReference/HelloWorld.composite deleted file mode 100644 index f4d2789ff7..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/resources/ws/simpleReference/HelloWorld.composite +++ /dev/null @@ -1,67 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/resources/ws/simpleReference/META-INF/sca-contribution.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/resources/ws/simpleReference/META-INF/sca-contribution.xml deleted file mode 100644 index e6ccae5c73..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/resources/ws/simpleReference/META-INF/sca-contribution.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/resources/ws/simpleService/HelloWorld.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/resources/ws/simpleService/HelloWorld.composite deleted file mode 100644 index 7e6311a22d..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/resources/ws/simpleService/HelloWorld.composite +++ /dev/null @@ -1,84 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/resources/ws/simpleService/META-INF/sca-contribution.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/resources/ws/simpleService/META-INF/sca-contribution.xml deleted file mode 100644 index e6ccae5c73..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-hazelcast/src/test/resources/ws/simpleService/META-INF/sca-contribution.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/pom.xml deleted file mode 100644 index 9317a386c2..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/pom.xml +++ /dev/null @@ -1,74 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-itest - 2.0-M5 - ../pom.xml - - itest-nodes-binding-sca-tribes - Apache Tuscany SCA iTest Nodes binding.sca Using Tribes Registry - - - - org.apache.tuscany.sca - tuscany-sca-client-impl - 2.0-M5 - - - org.apache.tuscany.sca - tuscany-endpoint-tribes - 2.0-M5 - - - org.apache.tuscany.sca - tuscany-binding-ws-runtime-axis2 - 2.0-M5 - - - org.apache.tuscany.sca - tuscany-binding-rmi-runtime - 2.0-M5 - - - - org.apache.tuscany.sca - tuscany-host-jetty - 2.0-M5 - runtime - - - org.apache.tuscany.sca - tuscany-node-impl - 2.0-M5 - - - org.apache.tuscany.sca - tuscany-implementation-java-runtime - 2.0-M5 - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/main/java/org/apache/tuscany/sca/itest/bindingsca/Client.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/main/java/org/apache/tuscany/sca/itest/bindingsca/Client.java deleted file mode 100644 index ef2565b750..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/main/java/org/apache/tuscany/sca/itest/bindingsca/Client.java +++ /dev/null @@ -1,29 +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 org.apache.tuscany.sca.itest.bindingsca; - -/** - * - */ -public interface Client { - String getName(String id); - - String create(String name); -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/main/java/org/apache/tuscany/sca/itest/bindingsca/ClientImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/main/java/org/apache/tuscany/sca/itest/bindingsca/ClientImpl.java deleted file mode 100644 index 96a0f2dadd..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/main/java/org/apache/tuscany/sca/itest/bindingsca/ClientImpl.java +++ /dev/null @@ -1,53 +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 org.apache.tuscany.sca.itest.bindingsca; - -import org.oasisopen.sca.annotation.Reference; -import org.oasisopen.sca.annotation.Service; - -/** - * - */ -@Service(Client.class) -public class ClientImpl implements Client { - @Reference - protected Local local; - - @Reference - protected Remote remote; - - public String getName(String id) { - Customer customer = null; - try { - customer = remote.getCustomer(id); - } catch (CustomerNotFoundException e) { - return null; - } - customer.dump("Client.getName()"); - return local.getName(customer); - } - - public String create(String name) { - String id = remote.generateId(); - Customer customer = remote.createCustomer(id, name); - customer.dump("Client.create()"); - return remote.getId(customer); - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/main/java/org/apache/tuscany/sca/itest/bindingsca/Customer.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/main/java/org/apache/tuscany/sca/itest/bindingsca/Customer.java deleted file mode 100644 index f2b7b1e41d..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/main/java/org/apache/tuscany/sca/itest/bindingsca/Customer.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 org.apache.tuscany.sca.itest.bindingsca; - -/** - * - */ -public class Customer { - private String id; - private String name; - - public Customer() { - } - - /** - * @param id - * @param name - */ - public Customer(String id, String name) { - super(); - this.id = id; - this.name = name; - } - - public String getId() { - return id; - } - - public void setId(String id) { - this.id = id; - } - - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - @Override - public String toString() { - return "Customer [id=" + id + ", name=" + name + "]"; - } - - public void dump(String prefix) { - System.out.print(prefix); - System.out.print(": "); - System.out.print(toString()); - System.out.println(" @" + System.identityHashCode(this)); - System.out.println(getClass().getClassLoader()); - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/main/java/org/apache/tuscany/sca/itest/bindingsca/CustomerNotFoundException.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/main/java/org/apache/tuscany/sca/itest/bindingsca/CustomerNotFoundException.java deleted file mode 100644 index a6e80c9eca..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/main/java/org/apache/tuscany/sca/itest/bindingsca/CustomerNotFoundException.java +++ /dev/null @@ -1,64 +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 org.apache.tuscany.sca.itest.bindingsca; - -/** - * - */ -public class CustomerNotFoundException extends Exception { - private String customerId; - - /** - * - */ - public CustomerNotFoundException() { - } - - /** - * @param message - */ - public CustomerNotFoundException(String message) { - super(message); - } - - /** - * @param cause - */ - public CustomerNotFoundException(Throwable cause) { - super(cause); - } - - /** - * @param message - * @param cause - */ - public CustomerNotFoundException(String message, Throwable cause) { - super(message, cause); - } - - public String getCustomerId() { - return customerId; - } - - public void setCustomerId(String customerId) { - this.customerId = customerId; - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/main/java/org/apache/tuscany/sca/itest/bindingsca/Local.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/main/java/org/apache/tuscany/sca/itest/bindingsca/Local.java deleted file mode 100644 index 0fe30c9d53..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/main/java/org/apache/tuscany/sca/itest/bindingsca/Local.java +++ /dev/null @@ -1,27 +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 org.apache.tuscany.sca.itest.bindingsca; - -/** - * - */ -public interface Local { - String getName(Customer customer); -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/main/java/org/apache/tuscany/sca/itest/bindingsca/LocalServiceImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/main/java/org/apache/tuscany/sca/itest/bindingsca/LocalServiceImpl.java deleted file mode 100644 index 8783808334..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/main/java/org/apache/tuscany/sca/itest/bindingsca/LocalServiceImpl.java +++ /dev/null @@ -1,38 +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 org.apache.tuscany.sca.itest.bindingsca; - -import org.oasisopen.sca.annotation.Service; - -/** - * - */ -@Service(Local.class) -public class LocalServiceImpl implements Local { - - public String getName(Customer customer) { - if (customer == null) { - return null; - } - customer.dump("Local.getName()"); - return customer.getName(); - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/main/java/org/apache/tuscany/sca/itest/bindingsca/Remote.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/main/java/org/apache/tuscany/sca/itest/bindingsca/Remote.java deleted file mode 100644 index 050d35007b..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/main/java/org/apache/tuscany/sca/itest/bindingsca/Remote.java +++ /dev/null @@ -1,36 +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 org.apache.tuscany.sca.itest.bindingsca; - -import org.oasisopen.sca.annotation.Remotable; - -/** - * - */ -@Remotable -public interface Remote { - String generateId(); - - String getId(Customer customer); - - Customer getCustomer(String id) throws CustomerNotFoundException; - - Customer createCustomer(String id, String name); -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/main/java/org/apache/tuscany/sca/itest/bindingsca/RemoteServiceImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/main/java/org/apache/tuscany/sca/itest/bindingsca/RemoteServiceImpl.java deleted file mode 100644 index 6c432a500a..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/main/java/org/apache/tuscany/sca/itest/bindingsca/RemoteServiceImpl.java +++ /dev/null @@ -1,66 +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 org.apache.tuscany.sca.itest.bindingsca; - -import java.util.HashMap; -import java.util.Map; -import java.util.UUID; - -import org.oasisopen.sca.annotation.AllowsPassByReference; -import org.oasisopen.sca.annotation.Scope; -import org.oasisopen.sca.annotation.Service; - -/** - * - */ -@Service(Remote.class) -@Scope("COMPOSITE") -public class RemoteServiceImpl implements Remote { - private Map customers = new HashMap(); - - public String generateId() { - return UUID.randomUUID().toString(); - } - - @AllowsPassByReference - public String getId(Customer customer) { - customer.dump("Remote.getId()"); - return customer.getId(); - } - - public Customer getCustomer(String id) throws CustomerNotFoundException { - Customer customer = customers.get(id); - if (customer == null) { - CustomerNotFoundException ex = new CustomerNotFoundException("Customer not found"); - ex.setCustomerId(id); - throw ex; - } - customer.dump("Remote.getCustomer()"); - return customer; - } - - public Customer createCustomer(String id, String name) { - Customer customer = new Customer(id, name); - customer.dump("Remote.createCustomer()"); - customers.put(id, customer); - return customer; - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/main/java/org/apache/tuscany/sca/itest/bindingsca/SCAClientImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/main/java/org/apache/tuscany/sca/itest/bindingsca/SCAClientImpl.java deleted file mode 100644 index 3573eea978..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/main/java/org/apache/tuscany/sca/itest/bindingsca/SCAClientImpl.java +++ /dev/null @@ -1,57 +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 org.apache.tuscany.sca.itest.bindingsca; - -import java.net.URI; - -import org.oasisopen.sca.client.SCAClientFactory; - -/** - * - */ -public class SCAClientImpl implements Client { - private Local local; - private Remote remote; - - public SCAClientImpl(String domainURI) throws Exception { - SCAClientFactory factory = SCAClientFactory.newInstance(URI.create(domainURI)); - local = factory.getService(Local.class, "LocalComponent/Local"); - remote = factory.getService(Remote.class, "RemoteComponent/Remote"); - } - - public String getName(String id) { - Customer customer = null; - try { - customer = remote.getCustomer(id); - } catch (CustomerNotFoundException e) { - return null; - } - customer.dump("Client.getName()"); - return local.getName(customer); - } - - public String create(String name) { - String id = remote.generateId(); - Customer customer = remote.createCustomer(id, name); - customer.dump("Client.create()"); - return remote.getId(customer); - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/main/resources/org/apache/tuscany/sca/itest/bindingsca/Client.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/main/resources/org/apache/tuscany/sca/itest/bindingsca/Client.composite deleted file mode 100644 index b04cc33023..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/main/resources/org/apache/tuscany/sca/itest/bindingsca/Client.composite +++ /dev/null @@ -1,30 +0,0 @@ - - - - - - - - - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/main/resources/org/apache/tuscany/sca/itest/bindingsca/Service.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/main/resources/org/apache/tuscany/sca/itest/bindingsca/Service.composite deleted file mode 100644 index fe282d291c..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/main/resources/org/apache/tuscany/sca/itest/bindingsca/Service.composite +++ /dev/null @@ -1,31 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/AsynchTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/AsynchTestCase.java deleted file mode 100644 index 9efa1a99ec..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/AsynchTestCase.java +++ /dev/null @@ -1,79 +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 org.apache.tuscany.sca.binding.sca.axis2; - - -import junit.framework.Assert; - -import org.apache.tuscany.sca.binding.sca.axis2.helloworld.HelloWorldClient; -import org.apache.tuscany.sca.binding.sca.axis2.helloworld.impl.HelloWorldClientCallbackOnewayRemoteImpl; -import org.apache.tuscany.sca.node.Contribution; -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; -import org.junit.AfterClass; -import org.junit.BeforeClass; -import org.junit.Test; - -// @Ignore("TUSCANY-3138") -public class AsynchTestCase { - - public static Node nodeA; - public static Node nodeB; - - @BeforeClass - public static void init() throws Exception { - System.out.println("Setting up nodes"); - - try { - // create and start nodes - Contribution contrib = new Contribution("asynch", "./target/test-classes/ws/asynchReference"); - nodeA = NodeFactory.getInstance().createNode("HelloWorld.composite", contrib); - nodeA.start(); - - contrib = new Contribution("asynch", "./target/test-classes/ws/asynchService"); - nodeB = NodeFactory.getInstance().createNode("HelloWorld.composite", contrib); - nodeB.start(); - - } catch (Exception ex) { - System.err.println("Exception when creating domain " + ex.getMessage()); - ex.printStackTrace(System.err); - throw ex; - } - } - - @AfterClass - public static void destroy() throws Exception { - nodeA.stop(); - nodeB.stop(); - } - - @Test - public void testHelloWorldAsynch() throws Exception { - HelloWorldClient helloWorldClientB; - helloWorldClientB = nodeA.getService(HelloWorldClient.class, "AHelloWorldClientCallbackRemote"); - helloWorldClientB.getGreetings("fred"); - System.out.println("Sleeping ..."); - Thread.sleep(2000); - System.out.println("... Done"); - Assert.assertEquals("callback fred", HelloWorldClientCallbackOnewayRemoteImpl.result ); - - } - - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/CallbackTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/CallbackTestCase.java deleted file mode 100644 index efa84e92a5..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/CallbackTestCase.java +++ /dev/null @@ -1,83 +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 org.apache.tuscany.sca.binding.sca.axis2; - -import junit.framework.Assert; - -import org.apache.tuscany.sca.binding.sca.axis2.helloworld.HelloWorldClient; -import org.apache.tuscany.sca.node.Contribution; -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; -import org.junit.AfterClass; -import org.junit.BeforeClass; -import org.junit.Test; - -// @Ignore("TUSCANY-3138") -public class CallbackTestCase { - - public static Node nodeA; - public static Node nodeB; - - @BeforeClass - public static void init() throws Exception { - System.out.println("Setting up nodes"); - - try { - // create and start nodes - Contribution contrib = new Contribution("reference", "./target/test-classes/ws/callbackReference"); - nodeA = NodeFactory.getInstance().createNode("HelloWorld.composite", contrib); - nodeA.start(); - - contrib = new Contribution("service", "./target/test-classes/ws/callbackService"); - nodeB = NodeFactory.getInstance().createNode("HelloWorld.composite", contrib); - nodeB.start(); - - } catch (Exception ex) { - System.err.println("Exception when creating domain " + ex.getMessage()); - ex.printStackTrace(System.err); - throw ex; - } - } - - @AfterClass - public static void destroy() throws Exception { - nodeA.stop(); - nodeB.stop(); - } - - //@Test - public void testKeepServerRunning() throws Exception { - System.out.println("press enter to continue"); - System.in.read(); - } - - @Test - public void testHelloWorldCallbackLocal() throws Exception { - HelloWorldClient helloWorldClientB; - helloWorldClientB = nodeB.getService(HelloWorldClient.class, "BHelloWorldClientCallbackLocal"); - Assert.assertEquals("Hello callback fred", helloWorldClientB.getGreetings("fred")); - } - - @Test - public void testHelloWorldCallbackRemote() throws Exception { - HelloWorldClient helloWorldClientA; - helloWorldClientA = nodeA.getService(HelloWorldClient.class, "AHelloWorldClientCallbackRemote"); - Assert.assertEquals("Hello callback fred", helloWorldClientA.getGreetings("fred")); - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/PromotionTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/PromotionTestCase.java deleted file mode 100644 index 45d28140b4..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/PromotionTestCase.java +++ /dev/null @@ -1,74 +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 org.apache.tuscany.sca.binding.sca.axis2; - -import junit.framework.Assert; - -import org.apache.tuscany.sca.binding.sca.axis2.helloworld.HelloWorldClient; -import org.apache.tuscany.sca.node.Contribution; -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; -import org.junit.AfterClass; -import org.junit.BeforeClass; -import org.junit.Ignore; -import org.junit.Test; - -public class PromotionTestCase { - - - public static Node nodeA; - public static Node nodeB; - - @BeforeClass - public static void init() throws Exception { - System.out.println("Setting up nodes"); - - try { - // create and start nodes - Contribution contrib = new Contribution("reference", "./target/test-classes/ws/promotionReference"); - nodeA = NodeFactory.getInstance().createNode("HelloWorld.composite", contrib); - nodeA.start(); - - contrib = new Contribution("service", "./target/test-classes/ws/promotionService"); - nodeB = NodeFactory.getInstance().createNode("HelloWorld.composite", contrib); - nodeB.start(); - - } catch (Exception ex) { - System.err.println("Exception when creating domain " + ex.getMessage()); - ex.printStackTrace(System.err); - throw ex; - } - } - - @AfterClass - public static void destroy() throws Exception { - nodeA.stop(); - nodeB.stop(); - } - - @Test - @Ignore - public void testHelloWorldPromotion() throws Exception { - HelloWorldClient helloWorldClientA; - helloWorldClientA = nodeA.getService(HelloWorldClient.class, "AHelloWorldClientRemotePromotion"); - Assert.assertEquals(helloWorldClientA.getGreetings("fred"), "Hello fred"); - - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/SimpleTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/SimpleTestCase.java deleted file mode 100644 index a5d6529895..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/SimpleTestCase.java +++ /dev/null @@ -1,110 +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 org.apache.tuscany.sca.binding.sca.axis2; - -import junit.framework.Assert; - -import org.apache.tuscany.sca.binding.sca.axis2.helloworld.HelloWorldClient; -import org.apache.tuscany.sca.node.Contribution; -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; -import org.junit.AfterClass; -import org.junit.BeforeClass; -import org.junit.Test; -import org.oasisopen.sca.ServiceUnavailableException; - -public class SimpleTestCase { - - public static Node nodeA; - public static Node nodeB; - - @BeforeClass - public static void init() throws Exception { - System.out.println("Setting up nodes"); - - try { - // create and start nodes - Contribution contrib = new Contribution("reference", "./target/test-classes/ws/simpleReference"); - nodeA = NodeFactory.getInstance().createNode("HelloWorld.composite", contrib); - nodeA.start(); - - contrib = new Contribution("service", "./target/test-classes/ws/simpleService"); - nodeB = NodeFactory.getInstance().createNode("HelloWorld.composite", contrib); - nodeB.start(); - - } catch (Exception ex) { - System.err.println("Exception when creating domain " + ex.getMessage()); - ex.printStackTrace(System.err); - throw ex; - } - } - - @AfterClass - public static void destroy() throws Exception { - nodeA.stop(); - nodeB.stop(); - } - - @Test - public void testHelloWorldLocal() throws Exception { - HelloWorldClient helloWorldClientA = nodeA.getService(HelloWorldClient.class, "AHelloWorldClientLocal"); - Assert.assertEquals(helloWorldClientA.getGreetings("fred"), "Hello fred"); - - } - - @Test - public void testHelloWorldRemote() throws Exception { - - HelloWorldClient helloWorldClientA; - helloWorldClientA = nodeA.getService(HelloWorldClient.class, "AHelloWorldClientRemote"); - - try { - helloWorldClientA.getGreetings("fred"); - } catch (ServiceUnavailableException ex){ - Assert.fail(); - } - } - - @Test - public void testHelloWorldLocalAndRemote() throws Exception { - HelloWorldClient helloWorldClientA = nodeA.getService(HelloWorldClient.class, "AHelloWorldClientLocalAndRemote"); - HelloWorldClient helloWorldClientB = nodeB.getService(HelloWorldClient.class, "BHelloWorldClientLocalAndRemote"); - Assert.assertEquals(helloWorldClientA.getGreetings("fred"), "Hello fred"); - Assert.assertEquals(helloWorldClientB.getGreetings("fred"), "Hello fred"); - } - - @Test - public void testHelloWorldMultipleServices() throws Exception { - HelloWorldClient helloWorldClientA = nodeA.getService(HelloWorldClient.class, "AHelloWorldClientMultipleServices"); - HelloWorldClient helloWorldClientA2 = nodeA.getService(HelloWorldClient.class, "AHelloWorldClientMultipleServices2"); - HelloWorldClient helloWorldClientB = nodeB.getService(HelloWorldClient.class, "BHelloWorldClientMultipleServices"); - Assert.assertEquals(helloWorldClientA.getGreetings("fred"), "Hello fred"); - Assert.assertEquals(helloWorldClientA2.getGreetings("fred"), "Hello fred"); - Assert.assertEquals(helloWorldClientB.getGreetings("fred"), "Hello fred"); - } - - @Test - public void testHelloWorldMultipleBindings() throws Exception { - HelloWorldClient helloWorldClientA; - helloWorldClientA = nodeA.getService(HelloWorldClient.class, "AHelloWorldClientMultipleBindings"); - Assert.assertEquals(helloWorldClientA.getGreetings("fred"), "Hello fred"); - - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/helloworld/HelloWorldCallbackRemote.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/helloworld/HelloWorldCallbackRemote.java deleted file mode 100644 index f7ab3dfe98..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/helloworld/HelloWorldCallbackRemote.java +++ /dev/null @@ -1,30 +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 org.apache.tuscany.sca.binding.sca.axis2.helloworld; - -import org.oasisopen.sca.annotation.Remotable; - - -@Remotable -public interface HelloWorldCallbackRemote { - - String getGreetingsCallbackRemote(String s); - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/helloworld/HelloWorldClient.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/helloworld/HelloWorldClient.java deleted file mode 100644 index 3d25d37708..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/helloworld/HelloWorldClient.java +++ /dev/null @@ -1,27 +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 org.apache.tuscany.sca.binding.sca.axis2.helloworld; - - -public interface HelloWorldClient { - - String getGreetings(String s); - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/helloworld/HelloWorldServiceCallbackOnewayRemote.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/helloworld/HelloWorldServiceCallbackOnewayRemote.java deleted file mode 100644 index a469d197d6..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/helloworld/HelloWorldServiceCallbackOnewayRemote.java +++ /dev/null @@ -1,33 +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 org.apache.tuscany.sca.binding.sca.axis2.helloworld; - -import org.oasisopen.sca.annotation.Callback; -import org.oasisopen.sca.annotation.OneWay; -import org.oasisopen.sca.annotation.Remotable; - -@Remotable -@Callback(HelloWorldCallbackRemote.class) -public interface HelloWorldServiceCallbackOnewayRemote { - - @OneWay - void getGreetingsRemote(String s); - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/helloworld/HelloWorldServiceCallbackRemote.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/helloworld/HelloWorldServiceCallbackRemote.java deleted file mode 100644 index 3f5a21fddd..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/helloworld/HelloWorldServiceCallbackRemote.java +++ /dev/null @@ -1,31 +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 org.apache.tuscany.sca.binding.sca.axis2.helloworld; - -import org.oasisopen.sca.annotation.Callback; -import org.oasisopen.sca.annotation.Remotable; - -@Remotable -@Callback(HelloWorldCallbackRemote.class) -public interface HelloWorldServiceCallbackRemote { - - String getGreetingsRemote(String s); - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/helloworld/HelloWorldServiceLocal.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/helloworld/HelloWorldServiceLocal.java deleted file mode 100644 index 49e5232b31..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/helloworld/HelloWorldServiceLocal.java +++ /dev/null @@ -1,27 +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 org.apache.tuscany.sca.binding.sca.axis2.helloworld; - - -public interface HelloWorldServiceLocal { - - String getGreetingsLocal(String s); - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/helloworld/HelloWorldServiceRemote.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/helloworld/HelloWorldServiceRemote.java deleted file mode 100644 index ccc77c142b..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/helloworld/HelloWorldServiceRemote.java +++ /dev/null @@ -1,29 +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 org.apache.tuscany.sca.binding.sca.axis2.helloworld; - -import org.oasisopen.sca.annotation.Remotable; - -@Remotable -public interface HelloWorldServiceRemote { - - String getGreetingsRemote(String s); - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/helloworld/HelloWorldServiceRemote2.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/helloworld/HelloWorldServiceRemote2.java deleted file mode 100644 index c2be798d1a..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/helloworld/HelloWorldServiceRemote2.java +++ /dev/null @@ -1,29 +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 org.apache.tuscany.sca.binding.sca.axis2.helloworld; - -import org.oasisopen.sca.annotation.Remotable; - -@Remotable -public interface HelloWorldServiceRemote2 { - - String getGreetingsRemote2(String s); - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/helloworld/impl/HelloWorldClientCallbackOnewayRemoteImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/helloworld/impl/HelloWorldClientCallbackOnewayRemoteImpl.java deleted file mode 100644 index 9355aece1f..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/helloworld/impl/HelloWorldClientCallbackOnewayRemoteImpl.java +++ /dev/null @@ -1,43 +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 org.apache.tuscany.sca.binding.sca.axis2.helloworld.impl; - -import org.apache.tuscany.sca.binding.sca.axis2.helloworld.HelloWorldClient; -import org.apache.tuscany.sca.binding.sca.axis2.helloworld.HelloWorldServiceCallbackOnewayRemote; -import org.oasisopen.sca.annotation.Reference; - -public class HelloWorldClientCallbackOnewayRemoteImpl implements HelloWorldClient { - - public static String result; - - @Reference - public HelloWorldServiceCallbackOnewayRemote helloWorldService; - - public String getGreetings(String s) { - helloWorldService.getGreetingsRemote(s); - return null; - } - - public String getGreetingsCallbackRemote(String s) { - result = "callback " + s; - return result; - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/helloworld/impl/HelloWorldClientCallbackRemoteImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/helloworld/impl/HelloWorldClientCallbackRemoteImpl.java deleted file mode 100644 index efc47aa94d..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/helloworld/impl/HelloWorldClientCallbackRemoteImpl.java +++ /dev/null @@ -1,42 +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 org.apache.tuscany.sca.binding.sca.axis2.helloworld.impl; - -import org.apache.tuscany.sca.binding.sca.axis2.helloworld.HelloWorldClient; -import org.apache.tuscany.sca.binding.sca.axis2.helloworld.HelloWorldServiceCallbackRemote; -import org.oasisopen.sca.annotation.Reference; - -public class HelloWorldClientCallbackRemoteImpl implements HelloWorldClient { - - public static String result; - - @Reference - public HelloWorldServiceCallbackRemote helloWorldService; - - public String getGreetings(String s) { - return helloWorldService.getGreetingsRemote(s); - } - - public String getGreetingsCallbackRemote(String s) { - result = "callback " + s; - return result; - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/helloworld/impl/HelloWorldClientLocalImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/helloworld/impl/HelloWorldClientLocalImpl.java deleted file mode 100644 index 6ed813ff0a..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/helloworld/impl/HelloWorldClientLocalImpl.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 org.apache.tuscany.sca.binding.sca.axis2.helloworld.impl; - -import org.apache.tuscany.sca.binding.sca.axis2.helloworld.HelloWorldClient; -import org.apache.tuscany.sca.binding.sca.axis2.helloworld.HelloWorldServiceLocal; -import org.oasisopen.sca.annotation.Reference; - -public class HelloWorldClientLocalImpl implements HelloWorldClient { - - @Reference - public HelloWorldServiceLocal helloWorldService; - - public String getGreetings(String s) { - return helloWorldService.getGreetingsLocal(s); - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/helloworld/impl/HelloWorldClientRemote2Impl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/helloworld/impl/HelloWorldClientRemote2Impl.java deleted file mode 100644 index ba70573efb..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/helloworld/impl/HelloWorldClientRemote2Impl.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 org.apache.tuscany.sca.binding.sca.axis2.helloworld.impl; - -import org.apache.tuscany.sca.binding.sca.axis2.helloworld.HelloWorldClient; -import org.apache.tuscany.sca.binding.sca.axis2.helloworld.HelloWorldServiceRemote2; -import org.oasisopen.sca.annotation.Reference; - -public class HelloWorldClientRemote2Impl implements HelloWorldClient { - - @Reference - public HelloWorldServiceRemote2 helloWorldService; - - public String getGreetings(String s) { - return helloWorldService.getGreetingsRemote2(s); - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/helloworld/impl/HelloWorldClientRemoteImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/helloworld/impl/HelloWorldClientRemoteImpl.java deleted file mode 100644 index a87d6eb49a..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/helloworld/impl/HelloWorldClientRemoteImpl.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 org.apache.tuscany.sca.binding.sca.axis2.helloworld.impl; - -import org.apache.tuscany.sca.binding.sca.axis2.helloworld.HelloWorldClient; -import org.apache.tuscany.sca.binding.sca.axis2.helloworld.HelloWorldServiceRemote; -import org.oasisopen.sca.annotation.Reference; - -public class HelloWorldClientRemoteImpl implements HelloWorldClient { - - @Reference - public HelloWorldServiceRemote helloWorldService; - - public String getGreetings(String s) { - return helloWorldService.getGreetingsRemote(s); - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/helloworld/impl/HelloWorldServiceCallbackOnewayRemoteImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/helloworld/impl/HelloWorldServiceCallbackOnewayRemoteImpl.java deleted file mode 100644 index 3dc0b12b82..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/helloworld/impl/HelloWorldServiceCallbackOnewayRemoteImpl.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 org.apache.tuscany.sca.binding.sca.axis2.helloworld.impl; - -import org.apache.tuscany.sca.binding.sca.axis2.helloworld.HelloWorldCallbackRemote; -import org.apache.tuscany.sca.binding.sca.axis2.helloworld.HelloWorldServiceCallbackOnewayRemote; -import org.oasisopen.sca.annotation.Callback; - -public class HelloWorldServiceCallbackOnewayRemoteImpl implements HelloWorldServiceCallbackOnewayRemote { - - @Callback - protected HelloWorldCallbackRemote theCallback; - - public void getGreetingsRemote(String s) { - theCallback.getGreetingsCallbackRemote(s); - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/helloworld/impl/HelloWorldServiceCallbackRemoteImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/helloworld/impl/HelloWorldServiceCallbackRemoteImpl.java deleted file mode 100644 index b15d6dea80..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/helloworld/impl/HelloWorldServiceCallbackRemoteImpl.java +++ /dev/null @@ -1,39 +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 org.apache.tuscany.sca.binding.sca.axis2.helloworld.impl; - -import org.apache.tuscany.sca.binding.sca.axis2.helloworld.HelloWorldCallbackRemote; -import org.apache.tuscany.sca.binding.sca.axis2.helloworld.HelloWorldServiceCallbackRemote; -import org.oasisopen.sca.annotation.Callback; - -public class HelloWorldServiceCallbackRemoteImpl implements HelloWorldServiceCallbackRemote { - - @Callback - protected HelloWorldCallbackRemote theCallback; - - public HelloWorldServiceCallbackRemoteImpl() { - System.out.println("Constructor"); - } - - public String getGreetingsRemote(String s) { - return "Hello " + theCallback.getGreetingsCallbackRemote(s); - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/helloworld/impl/HelloWorldServiceLocalImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/helloworld/impl/HelloWorldServiceLocalImpl.java deleted file mode 100644 index c4347b084a..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/helloworld/impl/HelloWorldServiceLocalImpl.java +++ /dev/null @@ -1,30 +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 org.apache.tuscany.sca.binding.sca.axis2.helloworld.impl; - -import org.apache.tuscany.sca.binding.sca.axis2.helloworld.HelloWorldServiceLocal; - -public class HelloWorldServiceLocalImpl implements HelloWorldServiceLocal { - - public String getGreetingsLocal(String s) { - return "Hello " + s; - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/helloworld/impl/HelloWorldServiceMultipleServicesImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/helloworld/impl/HelloWorldServiceMultipleServicesImpl.java deleted file mode 100644 index 846bff02e1..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/helloworld/impl/HelloWorldServiceMultipleServicesImpl.java +++ /dev/null @@ -1,41 +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 org.apache.tuscany.sca.binding.sca.axis2.helloworld.impl; - -import org.apache.tuscany.sca.binding.sca.axis2.helloworld.HelloWorldServiceLocal; -import org.apache.tuscany.sca.binding.sca.axis2.helloworld.HelloWorldServiceRemote; -import org.apache.tuscany.sca.binding.sca.axis2.helloworld.HelloWorldServiceRemote2; -import org.oasisopen.sca.annotation.Service; - -@Service({HelloWorldServiceRemote.class, HelloWorldServiceRemote2.class, HelloWorldServiceLocal.class} ) -public class HelloWorldServiceMultipleServicesImpl implements HelloWorldServiceLocal, HelloWorldServiceRemote, HelloWorldServiceRemote2 { - - public String getGreetingsLocal(String s) { - return "Hello " + s; - } - - public String getGreetingsRemote(String s) { - return "Hello " + s; - } - - public String getGreetingsRemote2(String s) { - return "Hello " + s; - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/helloworld/impl/HelloWorldServiceRemoteImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/helloworld/impl/HelloWorldServiceRemoteImpl.java deleted file mode 100644 index d69f442879..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/helloworld/impl/HelloWorldServiceRemoteImpl.java +++ /dev/null @@ -1,30 +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 org.apache.tuscany.sca.binding.sca.axis2.helloworld.impl; - -import org.apache.tuscany.sca.binding.sca.axis2.helloworld.HelloWorldServiceRemote; - -public class HelloWorldServiceRemoteImpl implements HelloWorldServiceRemote { - - public String getGreetingsRemote(String s) { - return "Hello " + s; - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/binding/sca/rmi/AsynchTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/binding/sca/rmi/AsynchTestCase.java deleted file mode 100644 index cbcc06056a..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/binding/sca/rmi/AsynchTestCase.java +++ /dev/null @@ -1,79 +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 org.apache.tuscany.sca.binding.sca.rmi; - - -import junit.framework.Assert; - -import org.apache.tuscany.sca.binding.sca.rmi.helloworld.HelloWorldClient; -import org.apache.tuscany.sca.binding.sca.rmi.helloworld.impl.HelloWorldClientCallbackOnewayRemoteImpl; -import org.apache.tuscany.sca.node.Contribution; -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; -import org.junit.AfterClass; -import org.junit.BeforeClass; -import org.junit.Test; - -public class AsynchTestCase { - - public static Node nodeA; - public static Node nodeB; - - @BeforeClass - public static void init() throws Exception { - System.out.println("Setting up nodes"); - // System.setProperty("org.apache.tuscany.sca.binding.sca.provider.SCABindingMapper.mappedBinding", RMIBinding.TYPE.toString()); - try { - // create and start nodes - Contribution contrib = new Contribution("asynch", "./target/test-classes/rmi/asynchReference"); - nodeA = NodeFactory.getInstance().createNode("HelloWorld.composite", contrib); - nodeA.start(); - - contrib = new Contribution("asynch", "./target/test-classes/rmi/asynchService"); - nodeB = NodeFactory.getInstance().createNode("HelloWorld.composite", contrib); - nodeB.start(); - - } catch (Exception ex) { - System.err.println("Exception when creating domain " + ex.getMessage()); - ex.printStackTrace(System.err); - throw ex; - } - } - - @AfterClass - public static void destroy() throws Exception { - nodeA.stop(); - nodeB.stop(); - // System.clearProperty("org.apache.tuscany.sca.binding.sca.provider.SCABindingMapper.mappedBinding"); - } - - @Test - public void testHelloWorldAsynch() throws Exception { - HelloWorldClient helloWorldClientB; - helloWorldClientB = nodeA.getService(HelloWorldClient.class, "AHelloWorldClientCallbackRemote"); - helloWorldClientB.getGreetings("fred"); - System.out.println("Sleeping ..."); - Thread.sleep(2000); - System.out.println("... Done"); - Assert.assertEquals("callback fred", HelloWorldClientCallbackOnewayRemoteImpl.result ); - - } - - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/binding/sca/rmi/CallbackTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/binding/sca/rmi/CallbackTestCase.java deleted file mode 100644 index dccd2dace8..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/binding/sca/rmi/CallbackTestCase.java +++ /dev/null @@ -1,84 +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 org.apache.tuscany.sca.binding.sca.rmi; - -import junit.framework.Assert; - -import org.apache.tuscany.sca.binding.sca.rmi.helloworld.HelloWorldClient; -import org.apache.tuscany.sca.node.Contribution; -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; -import org.junit.AfterClass; -import org.junit.BeforeClass; -import org.junit.Test; - -public class CallbackTestCase { - - public static Node nodeA; - public static Node nodeB; - - @BeforeClass - public static void init() throws Exception { - System.out.println("Setting up nodes"); - // System.setProperty("org.apache.tuscany.sca.binding.sca.provider.SCABindingMapper.mappedBinding", RMIBinding.TYPE.toString()); - - try { - // create and start nodes - Contribution contrib = new Contribution("reference", "./target/test-classes/rmi/callbackReference"); - nodeA = NodeFactory.getInstance().createNode("HelloWorld.composite", contrib); - nodeA.start(); - - contrib = new Contribution("service", "./target/test-classes/rmi/callbackService"); - nodeB = NodeFactory.getInstance().createNode("HelloWorld.composite", contrib); - nodeB.start(); - - } catch (Exception ex) { - System.err.println("Exception when creating domain " + ex.getMessage()); - ex.printStackTrace(System.err); - throw ex; - } - } - - @AfterClass - public static void destroy() throws Exception { - nodeA.stop(); - nodeB.stop(); - // System.clearProperty("org.apache.tuscany.sca.binding.sca.provider.SCABindingMapper.mappedBinding"); - } - - //@Test - public void testKeepServerRunning() throws Exception { - System.out.println("press enter to continue"); - System.in.read(); - } - - @Test - public void testHelloWorldCallbackLocal() throws Exception { - HelloWorldClient helloWorldClientB; - helloWorldClientB = nodeB.getService(HelloWorldClient.class, "BHelloWorldClientCallbackLocal"); - Assert.assertEquals("Hello callback fred", helloWorldClientB.getGreetings("fred")); - } - - @Test - public void testHelloWorldCallbackRemote() throws Exception { - HelloWorldClient helloWorldClientA; - helloWorldClientA = nodeA.getService(HelloWorldClient.class, "AHelloWorldClientCallbackRemote"); - Assert.assertEquals("Hello callback fred", helloWorldClientA.getGreetings("fred")); - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/binding/sca/rmi/PromotionTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/binding/sca/rmi/PromotionTestCase.java deleted file mode 100644 index 7aac95a8ff..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/binding/sca/rmi/PromotionTestCase.java +++ /dev/null @@ -1,76 +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 org.apache.tuscany.sca.binding.sca.rmi; - -import junit.framework.Assert; - -import org.apache.tuscany.sca.binding.sca.rmi.helloworld.HelloWorldClient; -import org.apache.tuscany.sca.node.Contribution; -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; -import org.junit.AfterClass; -import org.junit.BeforeClass; -import org.junit.Test; - -public class PromotionTestCase { - - - public static Node nodeA; - public static Node nodeB; - - @BeforeClass - public static void init() throws Exception { - System.out.println("Setting up nodes"); - System.setProperty("org.apache.tuscany.sca.binding.sca.provider.SCABindingMapper.mappedBinding", - "{http://tuscany.apache.org/xmlns/sca/1.1}binding.rmi"); - - try { - // create and start nodes - Contribution contrib = new Contribution("reference", "./target/test-classes/rmi/promotionReference"); - nodeA = NodeFactory.getInstance().createNode("HelloWorld.composite", contrib); - nodeA.start(); - - contrib = new Contribution("service", "./target/test-classes/rmi/promotionService"); - nodeB = NodeFactory.getInstance().createNode("HelloWorld.composite", contrib); - nodeB.start(); - - } catch (Exception ex) { - System.err.println("Exception when creating domain " + ex.getMessage()); - ex.printStackTrace(System.err); - throw ex; - } - } - - @AfterClass - public static void destroy() throws Exception { - nodeA.stop(); - nodeB.stop(); - System.clearProperty("org.apache.tuscany.sca.binding.sca.provider.SCABindingMapper.mappedBinding"); - - } - - @Test - public void testHelloWorldPromotion() throws Exception { - HelloWorldClient helloWorldClientA; - helloWorldClientA = nodeA.getService(HelloWorldClient.class, "AHelloWorldClientRemotePromotion"); - Assert.assertEquals(helloWorldClientA.getGreetings("fred"), "Hello fred"); - - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/binding/sca/rmi/SimpleTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/binding/sca/rmi/SimpleTestCase.java deleted file mode 100644 index f748beb6cb..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/binding/sca/rmi/SimpleTestCase.java +++ /dev/null @@ -1,116 +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 org.apache.tuscany.sca.binding.sca.rmi; - -import junit.framework.Assert; - -import org.apache.tuscany.sca.binding.sca.rmi.helloworld.HelloWorldClient; -import org.apache.tuscany.sca.node.Contribution; -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; -import org.junit.AfterClass; -import org.junit.BeforeClass; -import org.junit.Test; -import org.oasisopen.sca.ServiceUnavailableException; - -public class SimpleTestCase { - - private static NodeFactory factory; - public static Node nodeA; - public static Node nodeB; - - @BeforeClass - public static void init() throws Exception { - System.out.println("Setting up nodes"); - System.setProperty("org.apache.tuscany.sca.binding.sca.provider.SCABindingMapper.mappedBinding", - "{http://tuscany.apache.org/xmlns/sca/1.1}binding.rmi"); - - try { - factory = NodeFactory.getInstance(); - // create and start nodes - Contribution contrib = new Contribution("reference", "./target/test-classes/rmi/simpleReference"); - nodeA = factory.createNode("HelloWorld.composite", contrib); - nodeA.start(); - - contrib = new Contribution("service", "./target/test-classes/rmi/simpleService"); - nodeB = factory.createNode("HelloWorld.composite", contrib); - nodeB.start(); - - } catch (Exception ex) { - System.err.println("Exception when creating domain " + ex.getMessage()); - ex.printStackTrace(System.err); - throw ex; - } - } - - @AfterClass - public static void destroy() throws Exception { - nodeA.stop(); - nodeB.stop(); - factory.destroy(); - System.clearProperty("org.apache.tuscany.sca.binding.sca.provider.SCABindingMapper.mappedBinding"); - } - - @Test - public void testHelloWorldLocal() throws Exception { - HelloWorldClient helloWorldClientA = nodeA.getService(HelloWorldClient.class, "AHelloWorldClientLocal"); - Assert.assertEquals(helloWorldClientA.getGreetings("fred"), "Hello fred"); - - } - - @Test - public void testHelloWorldRemote() throws Exception { - - HelloWorldClient helloWorldClientA; - helloWorldClientA = nodeA.getService(HelloWorldClient.class, "AHelloWorldClientRemote"); - - try { - helloWorldClientA.getGreetings("fred"); - } catch (ServiceUnavailableException ex){ - Assert.fail(); - } - } - - @Test - public void testHelloWorldLocalAndRemote() throws Exception { - HelloWorldClient helloWorldClientA = nodeA.getService(HelloWorldClient.class, "AHelloWorldClientLocalAndRemote"); - HelloWorldClient helloWorldClientB = nodeB.getService(HelloWorldClient.class, "BHelloWorldClientLocalAndRemote"); - Assert.assertEquals(helloWorldClientA.getGreetings("fred"), "Hello fred"); - Assert.assertEquals(helloWorldClientB.getGreetings("fred"), "Hello fred"); - } - - @Test - public void testHelloWorldMultipleServices() throws Exception { - HelloWorldClient helloWorldClientA = nodeA.getService(HelloWorldClient.class, "AHelloWorldClientMultipleServices"); - HelloWorldClient helloWorldClientA2 = nodeA.getService(HelloWorldClient.class, "AHelloWorldClientMultipleServices2"); - HelloWorldClient helloWorldClientB = nodeB.getService(HelloWorldClient.class, "BHelloWorldClientMultipleServices"); - Assert.assertEquals(helloWorldClientA.getGreetings("fred"), "Hello fred"); - Assert.assertEquals(helloWorldClientA2.getGreetings("fred"), "Hello fred"); - Assert.assertEquals(helloWorldClientB.getGreetings("fred"), "Hello fred"); - } - - @Test - public void testHelloWorldMultipleBindings() throws Exception { - HelloWorldClient helloWorldClientA; - helloWorldClientA = nodeA.getService(HelloWorldClient.class, "AHelloWorldClientMultipleBindings"); - Assert.assertEquals(helloWorldClientA.getGreetings("fred"), "Hello fred"); - - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/binding/sca/rmi/helloworld/HelloWorldCallbackRemote.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/binding/sca/rmi/helloworld/HelloWorldCallbackRemote.java deleted file mode 100644 index 7c4cf4b0b7..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/binding/sca/rmi/helloworld/HelloWorldCallbackRemote.java +++ /dev/null @@ -1,30 +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 org.apache.tuscany.sca.binding.sca.rmi.helloworld; - -import org.oasisopen.sca.annotation.Remotable; - - -@Remotable -public interface HelloWorldCallbackRemote { - - String getGreetingsCallbackRemote(String s); - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/binding/sca/rmi/helloworld/HelloWorldClient.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/binding/sca/rmi/helloworld/HelloWorldClient.java deleted file mode 100644 index 017acee582..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/binding/sca/rmi/helloworld/HelloWorldClient.java +++ /dev/null @@ -1,27 +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 org.apache.tuscany.sca.binding.sca.rmi.helloworld; - - -public interface HelloWorldClient { - - String getGreetings(String s); - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/binding/sca/rmi/helloworld/HelloWorldServiceCallbackOnewayRemote.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/binding/sca/rmi/helloworld/HelloWorldServiceCallbackOnewayRemote.java deleted file mode 100644 index 86f984e61a..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/binding/sca/rmi/helloworld/HelloWorldServiceCallbackOnewayRemote.java +++ /dev/null @@ -1,33 +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 org.apache.tuscany.sca.binding.sca.rmi.helloworld; - -import org.oasisopen.sca.annotation.Callback; -import org.oasisopen.sca.annotation.OneWay; -import org.oasisopen.sca.annotation.Remotable; - -@Remotable -@Callback(HelloWorldCallbackRemote.class) -public interface HelloWorldServiceCallbackOnewayRemote { - - @OneWay - void getGreetingsRemote(String s); - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/binding/sca/rmi/helloworld/HelloWorldServiceCallbackRemote.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/binding/sca/rmi/helloworld/HelloWorldServiceCallbackRemote.java deleted file mode 100644 index 8e19fd7382..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/binding/sca/rmi/helloworld/HelloWorldServiceCallbackRemote.java +++ /dev/null @@ -1,31 +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 org.apache.tuscany.sca.binding.sca.rmi.helloworld; - -import org.oasisopen.sca.annotation.Callback; -import org.oasisopen.sca.annotation.Remotable; - -@Remotable -@Callback(HelloWorldCallbackRemote.class) -public interface HelloWorldServiceCallbackRemote { - - String getGreetingsRemote(String s); - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/binding/sca/rmi/helloworld/HelloWorldServiceLocal.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/binding/sca/rmi/helloworld/HelloWorldServiceLocal.java deleted file mode 100644 index b0d623e2e4..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/binding/sca/rmi/helloworld/HelloWorldServiceLocal.java +++ /dev/null @@ -1,27 +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 org.apache.tuscany.sca.binding.sca.rmi.helloworld; - - -public interface HelloWorldServiceLocal { - - String getGreetingsLocal(String s); - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/binding/sca/rmi/helloworld/HelloWorldServiceRemote.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/binding/sca/rmi/helloworld/HelloWorldServiceRemote.java deleted file mode 100644 index ccb44694d9..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/binding/sca/rmi/helloworld/HelloWorldServiceRemote.java +++ /dev/null @@ -1,29 +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 org.apache.tuscany.sca.binding.sca.rmi.helloworld; - -import org.oasisopen.sca.annotation.Remotable; - -@Remotable -public interface HelloWorldServiceRemote { - - String getGreetingsRemote(String s); - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/binding/sca/rmi/helloworld/HelloWorldServiceRemote2.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/binding/sca/rmi/helloworld/HelloWorldServiceRemote2.java deleted file mode 100644 index 5c8bb13f43..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/binding/sca/rmi/helloworld/HelloWorldServiceRemote2.java +++ /dev/null @@ -1,29 +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 org.apache.tuscany.sca.binding.sca.rmi.helloworld; - -import org.oasisopen.sca.annotation.Remotable; - -@Remotable -public interface HelloWorldServiceRemote2 { - - String getGreetingsRemote2(String s); - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/binding/sca/rmi/helloworld/impl/HelloWorldClientCallbackOnewayRemoteImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/binding/sca/rmi/helloworld/impl/HelloWorldClientCallbackOnewayRemoteImpl.java deleted file mode 100644 index 1ff1792bb7..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/binding/sca/rmi/helloworld/impl/HelloWorldClientCallbackOnewayRemoteImpl.java +++ /dev/null @@ -1,43 +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 org.apache.tuscany.sca.binding.sca.rmi.helloworld.impl; - -import org.apache.tuscany.sca.binding.sca.rmi.helloworld.HelloWorldClient; -import org.apache.tuscany.sca.binding.sca.rmi.helloworld.HelloWorldServiceCallbackOnewayRemote; -import org.oasisopen.sca.annotation.Reference; - -public class HelloWorldClientCallbackOnewayRemoteImpl implements HelloWorldClient { - - public static String result; - - @Reference - public HelloWorldServiceCallbackOnewayRemote helloWorldService; - - public String getGreetings(String s) { - helloWorldService.getGreetingsRemote(s); - return null; - } - - public String getGreetingsCallbackRemote(String s) { - result = "callback " + s; - return result; - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/binding/sca/rmi/helloworld/impl/HelloWorldClientCallbackRemoteImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/binding/sca/rmi/helloworld/impl/HelloWorldClientCallbackRemoteImpl.java deleted file mode 100644 index b17d8e2016..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/binding/sca/rmi/helloworld/impl/HelloWorldClientCallbackRemoteImpl.java +++ /dev/null @@ -1,42 +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 org.apache.tuscany.sca.binding.sca.rmi.helloworld.impl; - -import org.apache.tuscany.sca.binding.sca.rmi.helloworld.HelloWorldClient; -import org.apache.tuscany.sca.binding.sca.rmi.helloworld.HelloWorldServiceCallbackRemote; -import org.oasisopen.sca.annotation.Reference; - -public class HelloWorldClientCallbackRemoteImpl implements HelloWorldClient { - - public static String result; - - @Reference - public HelloWorldServiceCallbackRemote helloWorldService; - - public String getGreetings(String s) { - return helloWorldService.getGreetingsRemote(s); - } - - public String getGreetingsCallbackRemote(String s) { - result = "callback " + s; - return result; - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/binding/sca/rmi/helloworld/impl/HelloWorldClientLocalImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/binding/sca/rmi/helloworld/impl/HelloWorldClientLocalImpl.java deleted file mode 100644 index e230326f5f..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/binding/sca/rmi/helloworld/impl/HelloWorldClientLocalImpl.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 org.apache.tuscany.sca.binding.sca.rmi.helloworld.impl; - -import org.apache.tuscany.sca.binding.sca.rmi.helloworld.HelloWorldClient; -import org.apache.tuscany.sca.binding.sca.rmi.helloworld.HelloWorldServiceLocal; -import org.oasisopen.sca.annotation.Reference; - -public class HelloWorldClientLocalImpl implements HelloWorldClient { - - @Reference - public HelloWorldServiceLocal helloWorldService; - - public String getGreetings(String s) { - return helloWorldService.getGreetingsLocal(s); - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/binding/sca/rmi/helloworld/impl/HelloWorldClientRemote2Impl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/binding/sca/rmi/helloworld/impl/HelloWorldClientRemote2Impl.java deleted file mode 100644 index 77df8c2c39..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/binding/sca/rmi/helloworld/impl/HelloWorldClientRemote2Impl.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 org.apache.tuscany.sca.binding.sca.rmi.helloworld.impl; - -import org.apache.tuscany.sca.binding.sca.rmi.helloworld.HelloWorldClient; -import org.apache.tuscany.sca.binding.sca.rmi.helloworld.HelloWorldServiceRemote2; -import org.oasisopen.sca.annotation.Reference; - -public class HelloWorldClientRemote2Impl implements HelloWorldClient { - - @Reference - public HelloWorldServiceRemote2 helloWorldService; - - public String getGreetings(String s) { - return helloWorldService.getGreetingsRemote2(s); - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/binding/sca/rmi/helloworld/impl/HelloWorldClientRemoteImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/binding/sca/rmi/helloworld/impl/HelloWorldClientRemoteImpl.java deleted file mode 100644 index 8effa3ac36..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/binding/sca/rmi/helloworld/impl/HelloWorldClientRemoteImpl.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 org.apache.tuscany.sca.binding.sca.rmi.helloworld.impl; - -import org.apache.tuscany.sca.binding.sca.rmi.helloworld.HelloWorldClient; -import org.apache.tuscany.sca.binding.sca.rmi.helloworld.HelloWorldServiceRemote; -import org.oasisopen.sca.annotation.Reference; - -public class HelloWorldClientRemoteImpl implements HelloWorldClient { - - @Reference - public HelloWorldServiceRemote helloWorldService; - - public String getGreetings(String s) { - return helloWorldService.getGreetingsRemote(s); - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/binding/sca/rmi/helloworld/impl/HelloWorldServiceCallbackOnewayRemoteImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/binding/sca/rmi/helloworld/impl/HelloWorldServiceCallbackOnewayRemoteImpl.java deleted file mode 100644 index 2467ddab88..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/binding/sca/rmi/helloworld/impl/HelloWorldServiceCallbackOnewayRemoteImpl.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 org.apache.tuscany.sca.binding.sca.rmi.helloworld.impl; - -import org.apache.tuscany.sca.binding.sca.rmi.helloworld.HelloWorldCallbackRemote; -import org.apache.tuscany.sca.binding.sca.rmi.helloworld.HelloWorldServiceCallbackOnewayRemote; -import org.oasisopen.sca.annotation.Callback; - -public class HelloWorldServiceCallbackOnewayRemoteImpl implements HelloWorldServiceCallbackOnewayRemote { - - @Callback - protected HelloWorldCallbackRemote theCallback; - - public void getGreetingsRemote(String s) { - theCallback.getGreetingsCallbackRemote(s); - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/binding/sca/rmi/helloworld/impl/HelloWorldServiceCallbackRemoteImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/binding/sca/rmi/helloworld/impl/HelloWorldServiceCallbackRemoteImpl.java deleted file mode 100644 index d1b75d0a2c..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/binding/sca/rmi/helloworld/impl/HelloWorldServiceCallbackRemoteImpl.java +++ /dev/null @@ -1,39 +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 org.apache.tuscany.sca.binding.sca.rmi.helloworld.impl; - -import org.apache.tuscany.sca.binding.sca.rmi.helloworld.HelloWorldCallbackRemote; -import org.apache.tuscany.sca.binding.sca.rmi.helloworld.HelloWorldServiceCallbackRemote; -import org.oasisopen.sca.annotation.Callback; - -public class HelloWorldServiceCallbackRemoteImpl implements HelloWorldServiceCallbackRemote { - - @Callback - protected HelloWorldCallbackRemote theCallback; - - public HelloWorldServiceCallbackRemoteImpl() { - System.out.println("Constructor"); - } - - public String getGreetingsRemote(String s) { - return "Hello " + theCallback.getGreetingsCallbackRemote(s); - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/binding/sca/rmi/helloworld/impl/HelloWorldServiceLocalImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/binding/sca/rmi/helloworld/impl/HelloWorldServiceLocalImpl.java deleted file mode 100644 index 44e7efc668..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/binding/sca/rmi/helloworld/impl/HelloWorldServiceLocalImpl.java +++ /dev/null @@ -1,30 +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 org.apache.tuscany.sca.binding.sca.rmi.helloworld.impl; - -import org.apache.tuscany.sca.binding.sca.rmi.helloworld.HelloWorldServiceLocal; - -public class HelloWorldServiceLocalImpl implements HelloWorldServiceLocal { - - public String getGreetingsLocal(String s) { - return "Hello " + s; - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/binding/sca/rmi/helloworld/impl/HelloWorldServiceMultipleServicesImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/binding/sca/rmi/helloworld/impl/HelloWorldServiceMultipleServicesImpl.java deleted file mode 100644 index 88440de023..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/binding/sca/rmi/helloworld/impl/HelloWorldServiceMultipleServicesImpl.java +++ /dev/null @@ -1,41 +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 org.apache.tuscany.sca.binding.sca.rmi.helloworld.impl; - -import org.apache.tuscany.sca.binding.sca.rmi.helloworld.HelloWorldServiceLocal; -import org.apache.tuscany.sca.binding.sca.rmi.helloworld.HelloWorldServiceRemote; -import org.apache.tuscany.sca.binding.sca.rmi.helloworld.HelloWorldServiceRemote2; -import org.oasisopen.sca.annotation.Service; - -@Service({HelloWorldServiceRemote.class, HelloWorldServiceRemote2.class, HelloWorldServiceLocal.class} ) -public class HelloWorldServiceMultipleServicesImpl implements HelloWorldServiceLocal, HelloWorldServiceRemote, HelloWorldServiceRemote2 { - - public String getGreetingsLocal(String s) { - return "Hello " + s; - } - - public String getGreetingsRemote(String s) { - return "Hello " + s; - } - - public String getGreetingsRemote2(String s) { - return "Hello " + s; - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/binding/sca/rmi/helloworld/impl/HelloWorldServiceRemoteImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/binding/sca/rmi/helloworld/impl/HelloWorldServiceRemoteImpl.java deleted file mode 100644 index 06dc2c3f79..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/binding/sca/rmi/helloworld/impl/HelloWorldServiceRemoteImpl.java +++ /dev/null @@ -1,30 +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 org.apache.tuscany.sca.binding.sca.rmi.helloworld.impl; - -import org.apache.tuscany.sca.binding.sca.rmi.helloworld.HelloWorldServiceRemote; - -public class HelloWorldServiceRemoteImpl implements HelloWorldServiceRemote { - - public String getGreetingsRemote(String s) { - return "Hello " + s; - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/itest/bindingsca/BindingSCATestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/itest/bindingsca/BindingSCATestCase.java deleted file mode 100644 index 05a8c3455c..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/itest/bindingsca/BindingSCATestCase.java +++ /dev/null @@ -1,170 +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 org.apache.tuscany.sca.itest.bindingsca; - -import java.io.File; - -import org.apache.tuscany.sca.assembly.SCABinding; -import org.apache.tuscany.sca.binding.ws.WebServiceBinding; -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; -import org.apache.tuscany.sca.node.configuration.NodeConfiguration; -import org.junit.Assert; -import org.junit.Test; -import org.oasisopen.sca.ServiceRuntimeException; - -/** - * Test binding.sca in the same classloader - */ -public class BindingSCATestCase { - static final String DOMAIN_URI = "my-domain"; - private static final String REGISTRY_URI = "tribes://228.0.0.100:50000"; - private static final String PKG = "org/apache/tuscany/sca/itest/bindingsca/"; - private static final String CLIENT = "Client.composite"; - private static final String SERVICE = "Service.composite"; - private static final String ROOT = new File("target/classes/" + PKG).toURI().toString(); - - /** - * One NodeFactory and two nodes - */ - @Test - public void testOneFactoryTwoNodes() { - NodeFactory factory1 = NodeFactory.getInstance(); - Node node1 = createClientNode(factory1); - Node node2 = createServiceNode(factory1); - node1.start(); - node2.start(); - try { - runClient(node1); - } finally { - node2.stop(); - node1.stop(); - factory1.destroy(); - } - } - - /** - * Create the service node - * @param factory - * @return - */ - static Node createServiceNode(NodeFactory factory) { - NodeConfiguration config2 = - factory.createNodeConfiguration().setDomainURI(DOMAIN_URI).setURI("node2").addContribution("c2", ROOT) - .addDeploymentComposite("c2", SERVICE).setDomainRegistryURI(REGISTRY_URI) - .addBinding(WebServiceBinding.TYPE, "http://localhost:8085/").addBinding(SCABinding.TYPE, - "http://localhost:8085/"); - - Node node2 = factory.createNode(config2); - return node2; - } - - /** - * Create the client node - * @param factory - * @return - */ - static Node createClientNode(NodeFactory factory) { - NodeConfiguration config1 = - factory.createNodeConfiguration().setDomainURI(DOMAIN_URI).setURI("node1").addContribution("c1", ROOT) - .addDeploymentComposite("c1", CLIENT).setDomainRegistryURI(REGISTRY_URI) - .addBinding(WebServiceBinding.TYPE, "http://localhost:8085/").addBinding(SCABinding.TYPE, - "http://localhost:8085/"); - Node node1 = factory.createNode(config1); - return node1; - } - - /** - * Two node factories and two nodes - */ - @Test - public void testTwoFactoriesTwoNodes() throws Exception { - NodeFactory factory1 = NodeFactory.newInstance(); - Node node1 = createClientNode(factory1); - NodeFactory factory2 = NodeFactory.newInstance(); - Node node2 = createServiceNode(factory2); - node1.start(); - node2.start(); - Thread.sleep(1000); - try { - // This call doesn't require the Local service, it should be successful - createCustomer(node1); - try { - runClient(node1); - // We cannot make local call to remote endpoints - Assert.fail("ServiceRuntimeException should have been thrown."); - } catch (ServiceRuntimeException e) { - // ignore - } - } finally { - node2.stop(); - node1.stop(); - factory2.destroy(); - factory1.destroy(); - } - } - - /** - * Run the client - * @param node - */ - static void runClient(Node node) { - Client client = node.getService(Client.class, "ClientComponent/Client"); - runClient(client); - } - - static void runClient(Client client) { - String id = client.create("Ray"); - Assert.assertEquals("Ray", client.getName(id)); - } - - static void runClientNotFound(Client client) { - String id = "not-there"; - Assert.assertNull(client.getName(id)); - } - - static String createCustomer(Node node) { - Client client = node.getService(Client.class, "ClientComponent/Client"); - String id = client.create("John"); - Assert.assertNotNull(id); - return id; - } - - /** - * One node factory and one node for both composites - */ - @Test - public void testOneFactoryOneNode() { - NodeFactory factory = NodeFactory.getInstance(); - NodeConfiguration config1 = - factory.createNodeConfiguration().setDomainURI(DOMAIN_URI).setURI("node1").addContribution("c1", ROOT) - .addDeploymentComposite("c1", CLIENT).addDeploymentComposite("c1", SERVICE); - - Node node1 = factory.createNode(config1); - node1.start(); - try { - runClient(node1); - } finally { - node1.stop(); - factory.destroy(); - } - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/itest/bindingsca/ClientNodeSharedCustomerTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/itest/bindingsca/ClientNodeSharedCustomerTestCase.java deleted file mode 100644 index 7255697d4b..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/itest/bindingsca/ClientNodeSharedCustomerTestCase.java +++ /dev/null @@ -1,62 +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 org.apache.tuscany.sca.itest.bindingsca; - -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; -import org.junit.AfterClass; -import org.junit.BeforeClass; -import org.junit.Test; - -/** - * Running the client node and service node with two different classloaders that share the Customer class - */ -public class ClientNodeSharedCustomerTestCase { - private static Node clientNode; - private static TestCaseRunner runner; - private static NodeFactory factory; - - @BeforeClass - public static void setUpBeforeClass() throws Exception { - runner = new TestCaseRunner(ServiceNode.class, Remote.class.getName(), RemoteServiceImpl.class.getName()); - runner.beforeClass(); - factory = NodeFactory.getInstance(); - clientNode = BindingSCATestCase.createClientNode(factory).start(); - Thread.sleep(1000); - } - - @Test - public void testClient() throws Exception { - BindingSCATestCase.runClient(clientNode); - } - - @AfterClass - public static void tearDownAfterClass() throws Exception { - if (clientNode != null) { - clientNode.stop(); - } - if (runner != null) { - runner.afterClass(); - } - if (factory != null) { - factory.destroy(); - } - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/itest/bindingsca/ClientNodeSharedLocalTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/itest/bindingsca/ClientNodeSharedLocalTestCase.java deleted file mode 100644 index 51fafae32c..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/itest/bindingsca/ClientNodeSharedLocalTestCase.java +++ /dev/null @@ -1,62 +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 org.apache.tuscany.sca.itest.bindingsca; - -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; -import org.junit.AfterClass; -import org.junit.BeforeClass; -import org.junit.Test; - -/** - * Running the client node and service node with two different classloaders that share the Local class - * (but not Customer) - */ -public class ClientNodeSharedLocalTestCase { - private static Node clientNode; - private static TestCaseRunner runner; - - @BeforeClass - public static void setUpBeforeClass() throws Exception { - runner = - new TestCaseRunner(ServiceNode.class, Remote.class.getName(), RemoteServiceImpl.class.getName(), - Customer.class.getName()); - runner.beforeClass(); - NodeFactory factory = NodeFactory.getInstance(); - clientNode = BindingSCATestCase.createClientNode(factory).start(); - Thread.sleep(1000); - } - - @Test - public void testClient() throws Exception { - BindingSCATestCase.runClient(clientNode); - } - - @AfterClass - public static void tearDownAfterClass() throws Exception { - if (clientNode != null) { - clientNode.stop(); - } - if (runner != null) { - runner.afterClass(); - } - NodeFactory.getInstance().destroy(); - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/itest/bindingsca/ClientSharedCustomerTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/itest/bindingsca/ClientSharedCustomerTestCase.java deleted file mode 100644 index b8ff0c58ba..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/itest/bindingsca/ClientSharedCustomerTestCase.java +++ /dev/null @@ -1,54 +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 org.apache.tuscany.sca.itest.bindingsca; - -import org.apache.tuscany.sca.node.NodeFactory; -import org.junit.AfterClass; -import org.junit.BeforeClass; -import org.junit.Test; - -/** - * Running the client api and service node with two different classloaders that share the Customer class - */ -public class ClientSharedCustomerTestCase { - private static Client client; - private static TestCaseRunner runner; - - @BeforeClass - public static void setUpBeforeClass() throws Exception { - runner = new TestCaseRunner(ServiceNode.class, Remote.class.getName(), RemoteServiceImpl.class.getName()); - runner.beforeClass(); - client = new SCAClientImpl(BindingSCATestCase.DOMAIN_URI); - Thread.sleep(1000); - } - - @Test - public void testClient() throws Exception { - BindingSCATestCase.runClient(client); - } - - @AfterClass - public static void tearDownAfterClass() throws Exception { - if (runner != null) { - runner.afterClass(); - } - NodeFactory.getInstance().destroy(); - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/itest/bindingsca/ClientSharedLocalTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/itest/bindingsca/ClientSharedLocalTestCase.java deleted file mode 100644 index 633e1a767c..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/itest/bindingsca/ClientSharedLocalTestCase.java +++ /dev/null @@ -1,63 +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 org.apache.tuscany.sca.itest.bindingsca; - -import org.apache.tuscany.sca.node.NodeFactory; -import org.junit.AfterClass; -import org.junit.BeforeClass; -import org.junit.Test; - -/** - * Running the client api and service node with two different classloaders that share the Local class - * (but not Customer) - */ -public class ClientSharedLocalTestCase { - private static Client client; - private static TestCaseRunner runner; - - @BeforeClass - public static void setUpBeforeClass() throws Exception { - runner = - new TestCaseRunner(ServiceNode.class, Remote.class.getName(), RemoteServiceImpl.class.getName(), - Customer.class.getName(), CustomerNotFoundException.class.getName()); - runner.beforeClass(); - client = new SCAClientImpl(BindingSCATestCase.DOMAIN_URI); - Thread.sleep(1000); - } - - @Test - public void testClient() throws Exception { - BindingSCATestCase.runClient(client); - } - - @Test - public void testClientNotFound() throws Exception { - BindingSCATestCase.runClientNotFound(client); - } - - - @AfterClass - public static void tearDownAfterClass() throws Exception { - if (runner != null) { - runner.afterClass(); - } - NodeFactory.getInstance().destroy(); - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/itest/bindingsca/ServiceNode.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/itest/bindingsca/ServiceNode.java deleted file mode 100644 index 1cba2b57c2..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/itest/bindingsca/ServiceNode.java +++ /dev/null @@ -1,48 +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 org.apache.tuscany.sca.itest.bindingsca; - -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; -import org.junit.AfterClass; -import org.junit.BeforeClass; - -/** - * This shows how to test the Calculator service component. - */ -public class ServiceNode { - private static Node serviceNode; - - @BeforeClass - public static void setUpBeforeClass() throws Exception { - /* System.setProperty("org.apache.tuscany.sca.contribution.processor.ValidationSchemaExtensionPoint.enabled", - "false"); - */ - NodeFactory factory = NodeFactory.getInstance(); - serviceNode = BindingSCATestCase.createServiceNode(factory).start(); - } - - @AfterClass - public static void tearDownAfterClass() throws Exception { - if (serviceNode != null) { - serviceNode.stop(); - } - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/itest/bindingsca/TestCaseRunner.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/itest/bindingsca/TestCaseRunner.java deleted file mode 100644 index c0960ffe95..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/java/org/apache/tuscany/sca/itest/bindingsca/TestCaseRunner.java +++ /dev/null @@ -1,329 +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 org.apache.tuscany.sca.itest.bindingsca; - -import java.lang.annotation.Annotation; -import java.lang.reflect.Constructor; -import java.lang.reflect.Method; -import java.net.URL; -import java.net.URLClassLoader; -import java.security.AccessController; -import java.security.PrivilegedAction; -import java.util.Arrays; -import java.util.HashSet; -import java.util.Set; - -/** - * A helper class that can be used to run an SCA JUnit test case. The test case will run in an isolated class loader. - * - * @version $Rev$ $Date$ - */ -public class TestCaseRunner { - - private ClassLoader classLoader; - private Class testSuiteClass; - private Object testSuite; - private Class testResultClass; - private Class testCaseClass; - private Object testCase; - - private Class beforeAnnotation; - private Class beforeClassAnnotation; - private Class afterAnnotation; - private Class afterClassAnnotation; - private Class junit4AdapterClass; - private Class junit3TestCaseClass; - - /** - * Constructs a new TestCase runner. - * - * @param testClass - */ - public TestCaseRunner(Class testClass, String... isolatedClasses) { - try { - ClassLoader tccl = setupClassLoader(testClass, isolatedClasses); - - try { - // Thread.currentThread().setContextClassLoader(classLoader); - // Allow privileged access to set class loader. Requires RuntimePermission - // setContextClassLoader in security policy. - final ClassLoader finalClassLoader = classLoader; - AccessController.doPrivileged(new PrivilegedAction() { - public Object run() { - Thread.currentThread().setContextClassLoader(finalClassLoader); - return null; - } - }); - - testCaseClass = Class.forName(testClass.getName(), true, classLoader); - testCase = testCaseClass.newInstance(); - ClassLoader testClassLoader = testCaseClass.getClassLoader(); - - junit3TestCaseClass = Class.forName("junit.framework.TestCase", true, testClassLoader); - - testSuiteClass = Class.forName("junit.framework.TestSuite", true, testClassLoader); - Constructor testSuiteConstructor = testSuiteClass.getConstructor(Class.class); - testSuite = testSuiteConstructor.newInstance(testCaseClass); - - testResultClass = Class.forName("junit.framework.TestResult", true, testClassLoader); - - try { - beforeAnnotation = Class.forName("org.junit.Before", true, testClassLoader); - afterAnnotation = Class.forName("org.junit.After", true, testClassLoader); - beforeClassAnnotation = Class.forName("org.junit.BeforeClass", true, testClassLoader); - afterClassAnnotation = Class.forName("org.junit.AfterClass", true, testClassLoader); - junit4AdapterClass = Class.forName("junit.framework.JUnit4TestAdapter", true, testClassLoader); - } catch (Exception e) { - // Unexpected - throw new AssertionError(e); - } - } catch (Throwable e) { - e.printStackTrace(); - } finally { - // Thread.currentThread().setContextClassLoader(tccl); - // Allow privileged access to set class loader. Requires RuntimePermission - // setContextClassLoader in security policy. - final ClassLoader finaltccl = tccl; - AccessController.doPrivileged(new PrivilegedAction() { - public Object run() { - Thread.currentThread().setContextClassLoader(finaltccl); - return null; - } - }); - } - } catch (Exception e) { - throw new RuntimeException(e); - } - } - - private ClassLoader setupClassLoader(Class testClass, String... isolatedClasses) { - ClassLoader tccl = Thread.currentThread().getContextClassLoader(); - classLoader = testClass.getClassLoader(); - if (classLoader instanceof URLClassLoader) { - URL[] urls = ((URLClassLoader)classLoader).getURLs(); - classLoader = new ClassLoaderImpl(urls, classLoader, isolatedClasses); - } else if (classLoader == tccl || classLoader.getParent() == tccl) { - classLoader = new URLClassLoader(new URL[0], classLoader); - } else { - classLoader = tccl; - } - return tccl; - } - - /** - * Run the test case - */ - public void run() { - ClassLoader tccl = Thread.currentThread().getContextClassLoader(); - try { - // Thread.currentThread().setContextClassLoader(classLoader); - // Allow privileged access to set class loader. Requires RuntimePermission - // setContextClassLoader in security policy. - final ClassLoader finalClassLoader = classLoader; - AccessController.doPrivileged(new PrivilegedAction() { - public Object run() { - Thread.currentThread().setContextClassLoader(finalClassLoader); - return null; - } - }); - - if (junit3TestCaseClass.isAssignableFrom(testCaseClass)) { - Object testResult = testResultClass.newInstance(); - Method runMethod = testSuiteClass.getMethod("run", testResultClass); - runMethod.invoke(testSuite, testResult); - } else { - Object junit4Adapter = junit4AdapterClass.getConstructor(Class.class).newInstance(testCaseClass); - Object testResult = testResultClass.newInstance(); - Method runMethod = junit4AdapterClass.getMethod("run", testResultClass); - runMethod.invoke(junit4Adapter, testResult); - } - } catch (Exception e) { - throw new RuntimeException(e); - } finally { - // Thread.currentThread().setContextClassLoader(tccl); - // Allow privileged access to set class loader. Requires RuntimePermission - // setContextClassLoader in security policy. - final ClassLoader finaltccl = tccl; - AccessController.doPrivileged(new PrivilegedAction() { - public Object run() { - Thread.currentThread().setContextClassLoader(finaltccl); - return null; - } - }); - } - } - - /** - * Invoke the setUp method - */ - public void setUp() { - execute("setUp"); - } - - /** - * Invoke the before methods - */ - public void before() { - execute(beforeAnnotation); - } - - /** - * Invoke the beforeClass methods - */ - public void beforeClass() { - execute(beforeClassAnnotation); - } - - /** - * Invoke the tearDown method - */ - public void tearDown() { - execute("tearDown"); - } - - /** - * Invoke the after methods - */ - public void after() { - execute(afterAnnotation); - } - - /** - * Invoke the afterClass methods - */ - public void afterClass() { - execute(afterClassAnnotation); - } - - /** - * Invoke the specified test method. - */ - public void run(String methodName) { - execute(methodName); - } - - /** - * Invoke the methods annotated with the specified annotation. - */ - private void execute(Class annotationClass) { - if (annotationClass == null) { - throw new RuntimeException(new NoSuchMethodException()); - } - ClassLoader tccl = Thread.currentThread().getContextClassLoader(); - try { - // Thread.currentThread().setContextClassLoader(classLoader); - // Allow privileged access to set class loader. Requires RuntimePermission - // setContextClassLoader in security policy. - final ClassLoader finalClassLoader = classLoader; - AccessController.doPrivileged(new PrivilegedAction() { - public Object run() { - Thread.currentThread().setContextClassLoader(finalClassLoader); - return null; - } - }); - - for (Method method : testCaseClass.getDeclaredMethods()) { - for (Annotation annotation : method.getAnnotations()) { - if (annotation.annotationType() == annotationClass) { - method.invoke(testCase); - } - } - } - } catch (Exception e) { - throw new RuntimeException(e); - } finally { - // Thread.currentThread().setContextClassLoader(tccl); - // Allow privileged access to set class loader. Requires RuntimePermission - // setContextClassLoader in security policy. - final ClassLoader finaltccl = tccl; - AccessController.doPrivileged(new PrivilegedAction() { - public Object run() { - Thread.currentThread().setContextClassLoader(finaltccl); - return null; - } - }); - } - } - - /** - * Invoke the specified method - */ - private void execute(String methodName) { - ClassLoader tccl = Thread.currentThread().getContextClassLoader(); - try { - // Thread.currentThread().setContextClassLoader(classLoader); - // Allow privileged access to set class loader. Requires RuntimePermission - // setContextClassLoader in security policy. - final ClassLoader finalClassLoader = classLoader; - AccessController.doPrivileged(new PrivilegedAction() { - public Object run() { - Thread.currentThread().setContextClassLoader(finalClassLoader); - return null; - } - }); - Method setUpMethod = testCaseClass.getDeclaredMethod(methodName); - setUpMethod.setAccessible(true); - setUpMethod.invoke(testCase); - } catch (Exception e) { - throw new RuntimeException(e); - } finally { - // Thread.currentThread().setContextClassLoader(tccl); - // Allow privileged access to set class loader. Requires RuntimePermission - // setContextClassLoader in security policy. - final ClassLoader finaltccl = tccl; - AccessController.doPrivileged(new PrivilegedAction() { - public Object run() { - Thread.currentThread().setContextClassLoader(finaltccl); - return null; - } - }); - } - } - - public static class ClassLoaderImpl extends URLClassLoader { - private Set isolatedClasses = new HashSet(); - - /** - * @param urls - * @param parent - */ - public ClassLoaderImpl(URL[] urls, ClassLoader parent, String... sharedClasses) { - super(urls, parent); - this.isolatedClasses.addAll(Arrays.asList(sharedClasses)); - } - - @Override - protected synchronized Class loadClass(String name, boolean resolve) throws ClassNotFoundException { - if (!isolatedClasses.contains(name)) { - return super.loadClass(name, resolve); - } else { - Class cls = findLoadedClass(name); - if (cls == null) { - cls = findClass(name); - } - if (resolve) { - resolveClass(cls); - } - return cls; - } - } - - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/resources/rmi/asynchReference/HelloWorld.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/resources/rmi/asynchReference/HelloWorld.composite deleted file mode 100644 index 8c825ca805..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/resources/rmi/asynchReference/HelloWorld.composite +++ /dev/null @@ -1,36 +0,0 @@ - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/resources/rmi/asynchReference/META-INF/sca-contribution.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/resources/rmi/asynchReference/META-INF/sca-contribution.xml deleted file mode 100644 index ab75f7d225..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/resources/rmi/asynchReference/META-INF/sca-contribution.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/resources/rmi/asynchService/HelloWorld.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/resources/rmi/asynchService/HelloWorld.composite deleted file mode 100644 index 79b1a5d794..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/resources/rmi/asynchService/HelloWorld.composite +++ /dev/null @@ -1,38 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/resources/rmi/asynchService/META-INF/sca-contribution.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/resources/rmi/asynchService/META-INF/sca-contribution.xml deleted file mode 100644 index ab75f7d225..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/resources/rmi/asynchService/META-INF/sca-contribution.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/resources/rmi/callbackReference/HelloWorld.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/resources/rmi/callbackReference/HelloWorld.composite deleted file mode 100644 index e8924d2728..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/resources/rmi/callbackReference/HelloWorld.composite +++ /dev/null @@ -1,36 +0,0 @@ - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/resources/rmi/callbackReference/META-INF/sca-contribution.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/resources/rmi/callbackReference/META-INF/sca-contribution.xml deleted file mode 100644 index ab75f7d225..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/resources/rmi/callbackReference/META-INF/sca-contribution.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/resources/rmi/callbackService/HelloWorld.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/resources/rmi/callbackService/HelloWorld.composite deleted file mode 100644 index 4edc8df5cd..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/resources/rmi/callbackService/HelloWorld.composite +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/resources/rmi/callbackService/META-INF/sca-contribution.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/resources/rmi/callbackService/META-INF/sca-contribution.xml deleted file mode 100644 index ab75f7d225..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/resources/rmi/callbackService/META-INF/sca-contribution.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/resources/rmi/promotionReference/HelloWorld.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/resources/rmi/promotionReference/HelloWorld.composite deleted file mode 100644 index 823cab4f56..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/resources/rmi/promotionReference/HelloWorld.composite +++ /dev/null @@ -1,33 +0,0 @@ - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/resources/rmi/promotionReference/HelloWorldComponent.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/resources/rmi/promotionReference/HelloWorldComponent.composite deleted file mode 100644 index 54fb359ba0..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/resources/rmi/promotionReference/HelloWorldComponent.composite +++ /dev/null @@ -1,37 +0,0 @@ - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/resources/rmi/promotionReference/META-INF/sca-contribution.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/resources/rmi/promotionReference/META-INF/sca-contribution.xml deleted file mode 100644 index ab75f7d225..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/resources/rmi/promotionReference/META-INF/sca-contribution.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/resources/rmi/promotionService/HelloWorld.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/resources/rmi/promotionService/HelloWorld.composite deleted file mode 100644 index 454e9c55cf..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/resources/rmi/promotionService/HelloWorld.composite +++ /dev/null @@ -1,35 +0,0 @@ - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/resources/rmi/promotionService/HelloWorldComponent.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/resources/rmi/promotionService/HelloWorldComponent.composite deleted file mode 100644 index a313fb8f68..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/resources/rmi/promotionService/HelloWorldComponent.composite +++ /dev/null @@ -1,37 +0,0 @@ - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/resources/rmi/promotionService/META-INF/sca-contribution.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/resources/rmi/promotionService/META-INF/sca-contribution.xml deleted file mode 100644 index ab75f7d225..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/resources/rmi/promotionService/META-INF/sca-contribution.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/resources/rmi/simpleReference/HelloWorld.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/resources/rmi/simpleReference/HelloWorld.composite deleted file mode 100644 index 4151749523..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/resources/rmi/simpleReference/HelloWorld.composite +++ /dev/null @@ -1,67 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/resources/rmi/simpleReference/META-INF/sca-contribution.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/resources/rmi/simpleReference/META-INF/sca-contribution.xml deleted file mode 100644 index ab75f7d225..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/resources/rmi/simpleReference/META-INF/sca-contribution.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/resources/rmi/simpleService/HelloWorld.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/resources/rmi/simpleService/HelloWorld.composite deleted file mode 100644 index 37af7625ff..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/resources/rmi/simpleService/HelloWorld.composite +++ /dev/null @@ -1,85 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/resources/rmi/simpleService/META-INF/sca-contribution.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/resources/rmi/simpleService/META-INF/sca-contribution.xml deleted file mode 100644 index ab75f7d225..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/resources/rmi/simpleService/META-INF/sca-contribution.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/resources/ws/asynchReference/HelloWorld.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/resources/ws/asynchReference/HelloWorld.composite deleted file mode 100644 index e797a0aa9c..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/resources/ws/asynchReference/HelloWorld.composite +++ /dev/null @@ -1,36 +0,0 @@ - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/resources/ws/asynchReference/META-INF/sca-contribution.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/resources/ws/asynchReference/META-INF/sca-contribution.xml deleted file mode 100644 index e6ccae5c73..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/resources/ws/asynchReference/META-INF/sca-contribution.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/resources/ws/asynchService/HelloWorld.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/resources/ws/asynchService/HelloWorld.composite deleted file mode 100644 index 079ee49380..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/resources/ws/asynchService/HelloWorld.composite +++ /dev/null @@ -1,38 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/resources/ws/asynchService/META-INF/sca-contribution.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/resources/ws/asynchService/META-INF/sca-contribution.xml deleted file mode 100644 index e6ccae5c73..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/resources/ws/asynchService/META-INF/sca-contribution.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/resources/ws/callbackReference/HelloWorld.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/resources/ws/callbackReference/HelloWorld.composite deleted file mode 100644 index 1d5630f3d0..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/resources/ws/callbackReference/HelloWorld.composite +++ /dev/null @@ -1,36 +0,0 @@ - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/resources/ws/callbackReference/META-INF/sca-contribution.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/resources/ws/callbackReference/META-INF/sca-contribution.xml deleted file mode 100644 index e6ccae5c73..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/resources/ws/callbackReference/META-INF/sca-contribution.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/resources/ws/callbackService/HelloWorld.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/resources/ws/callbackService/HelloWorld.composite deleted file mode 100644 index ded3766d49..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/resources/ws/callbackService/HelloWorld.composite +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/resources/ws/callbackService/META-INF/sca-contribution.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/resources/ws/callbackService/META-INF/sca-contribution.xml deleted file mode 100644 index e6ccae5c73..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/resources/ws/callbackService/META-INF/sca-contribution.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/resources/ws/promotionReference/HelloWorld.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/resources/ws/promotionReference/HelloWorld.composite deleted file mode 100644 index 4513f21acf..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/resources/ws/promotionReference/HelloWorld.composite +++ /dev/null @@ -1,33 +0,0 @@ - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/resources/ws/promotionReference/HelloWorldComponent.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/resources/ws/promotionReference/HelloWorldComponent.composite deleted file mode 100644 index 22c20ff94a..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/resources/ws/promotionReference/HelloWorldComponent.composite +++ /dev/null @@ -1,37 +0,0 @@ - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/resources/ws/promotionReference/META-INF/sca-contribution.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/resources/ws/promotionReference/META-INF/sca-contribution.xml deleted file mode 100644 index e6ccae5c73..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/resources/ws/promotionReference/META-INF/sca-contribution.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/resources/ws/promotionService/HelloWorld.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/resources/ws/promotionService/HelloWorld.composite deleted file mode 100644 index e6a7d776c9..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/resources/ws/promotionService/HelloWorld.composite +++ /dev/null @@ -1,35 +0,0 @@ - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/resources/ws/promotionService/HelloWorldComponent.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/resources/ws/promotionService/HelloWorldComponent.composite deleted file mode 100644 index 0393280625..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/resources/ws/promotionService/HelloWorldComponent.composite +++ /dev/null @@ -1,37 +0,0 @@ - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/resources/ws/promotionService/META-INF/sca-contribution.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/resources/ws/promotionService/META-INF/sca-contribution.xml deleted file mode 100644 index e6ccae5c73..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/resources/ws/promotionService/META-INF/sca-contribution.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/resources/ws/simpleReference/HelloWorld.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/resources/ws/simpleReference/HelloWorld.composite deleted file mode 100644 index f4d2789ff7..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/resources/ws/simpleReference/HelloWorld.composite +++ /dev/null @@ -1,67 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/resources/ws/simpleReference/META-INF/sca-contribution.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/resources/ws/simpleReference/META-INF/sca-contribution.xml deleted file mode 100644 index e6ccae5c73..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/resources/ws/simpleReference/META-INF/sca-contribution.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/resources/ws/simpleService/HelloWorld.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/resources/ws/simpleService/HelloWorld.composite deleted file mode 100644 index 7e6311a22d..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/resources/ws/simpleService/HelloWorld.composite +++ /dev/null @@ -1,84 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/resources/ws/simpleService/META-INF/sca-contribution.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/resources/ws/simpleService/META-INF/sca-contribution.xml deleted file mode 100644 index e6ccae5c73..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/binding-sca-tribes/src/test/resources/ws/simpleService/META-INF/sca-contribution.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/helloworld-client/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/helloworld-client/pom.xml deleted file mode 100644 index 69fe1d7a8b..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/helloworld-client/pom.xml +++ /dev/null @@ -1,44 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-itest - 2.0-M5 - ../pom.xml - - itest-nodes-helloworld-client - Apache Tuscany SCA iTest Nodes Helloworld Client - - - - org.apache.tuscany.sca - itest-nodes-helloworld-iface - 2.0-M5 - - - org.apache.tuscany.sca - tuscany-sca-api - 2.0-M5 - provided - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/helloworld-client/src/main/java/itest/nodes/HelloworldImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/helloworld-client/src/main/java/itest/nodes/HelloworldImpl.java deleted file mode 100644 index 2619dc269b..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/helloworld-client/src/main/java/itest/nodes/HelloworldImpl.java +++ /dev/null @@ -1,43 +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 itest.nodes; - -import org.oasisopen.sca.annotation.EagerInit; -import org.oasisopen.sca.annotation.Init; -import org.oasisopen.sca.annotation.Reference; -import org.oasisopen.sca.annotation.Scope; - -@EagerInit -@Scope("COMPOSITE") -public class HelloworldImpl implements Helloworld { - - @Reference - public Helloworld service; - - @Init - public void initialize() throws Exception{ - System.out.println(">>>>>> " + sayHello("init")); - } - - public String sayHello(String name) throws Exception { - return "Hi " + service.sayHello(name); - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/helloworld-client/src/main/resources/META-INF/sca-contribution.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/helloworld-client/src/main/resources/META-INF/sca-contribution.xml deleted file mode 100644 index 7e062cc14e..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/helloworld-client/src/main/resources/META-INF/sca-contribution.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/helloworld-client/src/main/resources/helloworld-client.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/helloworld-client/src/main/resources/helloworld-client.composite deleted file mode 100644 index 3c4ed03448..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/helloworld-client/src/main/resources/helloworld-client.composite +++ /dev/null @@ -1,29 +0,0 @@ - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/helloworld-iface/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/helloworld-iface/pom.xml deleted file mode 100644 index d5d23bcc56..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/helloworld-iface/pom.xml +++ /dev/null @@ -1,39 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-itest - 2.0-M5 - ../pom.xml - - itest-nodes-helloworld-iface - Apache Tuscany SCA iTest Nodes Helloworld IFaces - - - - org.apache.tuscany.sca - tuscany-sca-api - 2.0-M5 - provided - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/helloworld-iface/src/main/java/itest/nodes/Helloworld.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/helloworld-iface/src/main/java/itest/nodes/Helloworld.java deleted file mode 100644 index a0710281c9..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/helloworld-iface/src/main/java/itest/nodes/Helloworld.java +++ /dev/null @@ -1,29 +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 itest.nodes; - -import org.oasisopen.sca.annotation.Remotable; - -@Remotable -public interface Helloworld { - - String sayHello(String name) throws Exception; - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/helloworld-service-a/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/helloworld-service-a/pom.xml deleted file mode 100644 index 3ef7ebafa1..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/helloworld-service-a/pom.xml +++ /dev/null @@ -1,44 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-itest - 2.0-M5 - ../pom.xml - - itest-nodes-helloworld-service-a - Apache Tuscany SCA iTest Nodes Helloworld Service A - - - - org.apache.tuscany.sca - itest-nodes-helloworld-iface - 2.0-M5 - - - org.apache.tuscany.sca - tuscany-sca-api - 2.0-M5 - provided - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/helloworld-service-a/src/main/java/itest/nodes/HelloworldImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/helloworld-service-a/src/main/java/itest/nodes/HelloworldImpl.java deleted file mode 100644 index 2619dc269b..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/helloworld-service-a/src/main/java/itest/nodes/HelloworldImpl.java +++ /dev/null @@ -1,43 +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 itest.nodes; - -import org.oasisopen.sca.annotation.EagerInit; -import org.oasisopen.sca.annotation.Init; -import org.oasisopen.sca.annotation.Reference; -import org.oasisopen.sca.annotation.Scope; - -@EagerInit -@Scope("COMPOSITE") -public class HelloworldImpl implements Helloworld { - - @Reference - public Helloworld service; - - @Init - public void initialize() throws Exception{ - System.out.println(">>>>>> " + sayHello("init")); - } - - public String sayHello(String name) throws Exception { - return "Hi " + service.sayHello(name); - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/helloworld-service-a/src/main/resources/META-INF/sca-contribution.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/helloworld-service-a/src/main/resources/META-INF/sca-contribution.xml deleted file mode 100644 index bba92e6ca3..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/helloworld-service-a/src/main/resources/META-INF/sca-contribution.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/helloworld-service-a/src/main/resources/service-a.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/helloworld-service-a/src/main/resources/service-a.composite deleted file mode 100644 index 55122d2d6c..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/helloworld-service-a/src/main/resources/service-a.composite +++ /dev/null @@ -1,29 +0,0 @@ - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/helloworld-service-and-client/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/helloworld-service-and-client/pom.xml deleted file mode 100644 index 8ba48c1e07..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/helloworld-service-and-client/pom.xml +++ /dev/null @@ -1,39 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-itest - 2.0-M5 - ../pom.xml - - itest-nodes-helloworld-service-and-client - Apache Tuscany SCA iTest Nodes Helloworld Service and Client - - - - org.apache.tuscany.sca - tuscany-sca-api - 2.0-M5 - provided - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/helloworld-service-and-client/src/main/java/itest/nodes/sac/Helloworld.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/helloworld-service-and-client/src/main/java/itest/nodes/sac/Helloworld.java deleted file mode 100644 index 1cb9b813f2..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/helloworld-service-and-client/src/main/java/itest/nodes/sac/Helloworld.java +++ /dev/null @@ -1,26 +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 itest.nodes.sac; - -public interface Helloworld { - - String sayHello(String name) throws Exception; - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/helloworld-service-and-client/src/main/java/itest/nodes/sac/HelloworldClientImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/helloworld-service-and-client/src/main/java/itest/nodes/sac/HelloworldClientImpl.java deleted file mode 100644 index d64536a998..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/helloworld-service-and-client/src/main/java/itest/nodes/sac/HelloworldClientImpl.java +++ /dev/null @@ -1,34 +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 itest.nodes.sac; - -import org.oasisopen.sca.annotation.Reference; - -public class HelloworldClientImpl implements Helloworld { - - @Reference - public Helloworld service; - - - public String sayHello(String name) throws Exception { - return "Hi " + service.sayHello(name); - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/helloworld-service-and-client/src/main/java/itest/nodes/sac/HelloworldServiceImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/helloworld-service-and-client/src/main/java/itest/nodes/sac/HelloworldServiceImpl.java deleted file mode 100644 index 728804b08c..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/helloworld-service-and-client/src/main/java/itest/nodes/sac/HelloworldServiceImpl.java +++ /dev/null @@ -1,30 +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 itest.nodes.sac; - -public class HelloworldServiceImpl implements Helloworld { - - public String sayHello(String name) { - String response = "Hello " + name; - System.out.println("At service - " + response); - return response; - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/helloworld-service-and-client/src/main/resources/META-INF/sca-contribution.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/helloworld-service-and-client/src/main/resources/META-INF/sca-contribution.xml deleted file mode 100644 index 555824a94e..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/helloworld-service-and-client/src/main/resources/META-INF/sca-contribution.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/helloworld-service-and-client/src/main/resources/helloworld-service.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/helloworld-service-and-client/src/main/resources/helloworld-service.composite deleted file mode 100644 index 38ac479275..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/helloworld-service-and-client/src/main/resources/helloworld-service.composite +++ /dev/null @@ -1,33 +0,0 @@ - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/helloworld-service-b/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/helloworld-service-b/pom.xml deleted file mode 100644 index 15f575607d..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/helloworld-service-b/pom.xml +++ /dev/null @@ -1,49 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-itest - 2.0-M5 - ../pom.xml - - itest-nodes-helloworld-service-b - Apache Tuscany SCA iTest Nodes Helloworld Service B - - - - org.apache.tuscany.sca - itest-nodes-helloworld-iface - 2.0-M5 - - - org.apache.tuscany.sca - tuscany-sca-api - 2.0-M5 - provided - - - org.apache.tuscany.sca - tuscany-sca-api - 2.0-M5 - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/helloworld-service-b/src/main/java/itest/nodes/HelloworldImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/helloworld-service-b/src/main/java/itest/nodes/HelloworldImpl.java deleted file mode 100644 index b1d5a8235a..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/helloworld-service-b/src/main/java/itest/nodes/HelloworldImpl.java +++ /dev/null @@ -1,33 +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 itest.nodes; - -import org.oasisopen.sca.annotation.Reference; - -public class HelloworldImpl implements Helloworld { - - @Reference - protected Helloworld service; - - public String sayHello(String name) throws Exception { - return service.sayHello(name); - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/helloworld-service-b/src/main/resources/META-INF/sca-contribution.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/helloworld-service-b/src/main/resources/META-INF/sca-contribution.xml deleted file mode 100644 index 4405cca18e..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/helloworld-service-b/src/main/resources/META-INF/sca-contribution.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/helloworld-service-b/src/main/resources/service-b.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/helloworld-service-b/src/main/resources/service-b.composite deleted file mode 100644 index 02cff882a7..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/helloworld-service-b/src/main/resources/service-b.composite +++ /dev/null @@ -1,29 +0,0 @@ - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/helloworld-service-c/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/helloworld-service-c/pom.xml deleted file mode 100644 index ea21aaffe8..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/helloworld-service-c/pom.xml +++ /dev/null @@ -1,49 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-itest - 2.0-M5 - ../pom.xml - - itest-nodes-helloworld-Serivce-c - Apache Tuscany SCA iTest Nodes Helloworld Service C - - - - org.apache.tuscany.sca - itest-nodes-helloworld-iface - 2.0-M5 - - - org.apache.tuscany.sca - tuscany-sca-api - 2.0-M5 - provided - - - org.apache.tuscany.sca - tuscany-sca-api - 2.0-M5 - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/helloworld-service-c/src/main/java/itest/nodes/HelloworldImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/helloworld-service-c/src/main/java/itest/nodes/HelloworldImpl.java deleted file mode 100644 index 81f7e1747d..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/helloworld-service-c/src/main/java/itest/nodes/HelloworldImpl.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 itest.nodes; - -public class HelloworldImpl implements Helloworld { - - public String sayHello(String name) { - return "Hello " + name; - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/helloworld-service-c/src/main/resources/META-INF/sca-contribution.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/helloworld-service-c/src/main/resources/META-INF/sca-contribution.xml deleted file mode 100644 index 3ff86f946b..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/helloworld-service-c/src/main/resources/META-INF/sca-contribution.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/helloworld-service-c/src/main/resources/service-c.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/helloworld-service-c/src/main/resources/service-c.composite deleted file mode 100644 index d88db09b43..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/helloworld-service-c/src/main/resources/service-c.composite +++ /dev/null @@ -1,28 +0,0 @@ - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/helloworld-service/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/helloworld-service/pom.xml deleted file mode 100644 index 7478d5b2b3..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/helloworld-service/pom.xml +++ /dev/null @@ -1,43 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-itest - 2.0-M5 - ../pom.xml - - itest-nodes-helloworld-service - Apache Tuscany SCA iTest Nodes Helloworld Service - - - - org.apache.tuscany.sca - itest-nodes-helloworld-iface - 2.0-M5 - - - org.apache.tuscany.sca - tuscany-sca-api - 2.0-M5 - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/helloworld-service/src/main/java/itest/nodes/HelloworldImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/helloworld-service/src/main/java/itest/nodes/HelloworldImpl.java deleted file mode 100644 index a27e752fd7..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/helloworld-service/src/main/java/itest/nodes/HelloworldImpl.java +++ /dev/null @@ -1,30 +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 itest.nodes; - -public class HelloworldImpl implements Helloworld { - - public String sayHello(String name) { - String response = "Hello " + name; - System.out.println("At service - " + response); - return response; - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/helloworld-service/src/main/resources/META-INF/sca-contribution.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/helloworld-service/src/main/resources/META-INF/sca-contribution.xml deleted file mode 100644 index 829ece9f7c..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/helloworld-service/src/main/resources/META-INF/sca-contribution.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/helloworld-service/src/main/resources/helloworld-service.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/helloworld-service/src/main/resources/helloworld-service.composite deleted file mode 100644 index 5334caeb55..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/helloworld-service/src/main/resources/helloworld-service.composite +++ /dev/null @@ -1,28 +0,0 @@ - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/one-jvm-hazelcast-client/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/one-jvm-hazelcast-client/pom.xml deleted file mode 100644 index 3cf55b037d..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/one-jvm-hazelcast-client/pom.xml +++ /dev/null @@ -1,70 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-itest - 2.0-M5 - ../pom.xml - - itest-nodes-one-jvm-hazelcast-client - Apache Tuscany SCA iTest Nodes One JVM Using Hazelcast and client - - - - org.apache.tuscany.sca - itest-nodes-helloworld-iface - 2.0-M5 - - - org.apache.tuscany.sca - tuscany-sca-client-impl - 2.0-M5 - - - org.apache.tuscany.sca - tuscany-endpoint-hazelcast - 2.0-M5 - - - org.apache.tuscany.sca - tuscany-binding-hazelcast-runtime - 2.0-M5 - - - org.apache.tuscany.sca - tuscany-node-impl - 2.0-M5 - - - org.apache.tuscany.sca - tuscany-implementation-java-runtime - 2.0-M5 - - - com.hazelcast - hazelcast-client - 1.8.3 - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/one-jvm-hazelcast-client/src/test/java/itest/ClientTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/one-jvm-hazelcast-client/src/test/java/itest/ClientTestCase.java deleted file mode 100644 index cf99c970db..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/one-jvm-hazelcast-client/src/test/java/itest/ClientTestCase.java +++ /dev/null @@ -1,110 +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 itest; - -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertNotNull; -import static org.junit.Assert.assertTrue; -import static org.junit.Assert.fail; - -import java.net.URI; - -import org.apache.tuscany.sca.core.assembly.impl.RuntimeEndpointImpl; -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; -import org.junit.AfterClass; -import org.junit.BeforeClass; -import org.junit.Test; - -import com.hazelcast.client.HazelcastClient; -import com.hazelcast.core.IMap; - -/** - */ -public class ClientTestCase{ - - private static String domainURI = "uri:OneNodeTestCase?bind=127.0.0.1:14829"; - private static Node node; - private static HazelcastClient client; - - @BeforeClass - public static void setUpBeforeClass() throws Exception { - node = NodeFactory.newInstance(domainURI).createNode((String)null, new String[]{"../helloworld-service/target/classes", "../helloworld-client/target/classes"}); - node.start(); - } - - @Test - public void testNode() throws Exception { - - client = HazelcastClient.newHazelcastClient("OneNodeTestCase", "tuscany", "127.0.0.1:14829"); - IMap map = client.getMap("OneNodeTestCase/Endpoints"); - - assertNotNull(map); - assertEquals(2, map.size()); - Object ep1 = map.get("HelloworldService#service-binding(Helloworld/Helloworld)"); -// System.out.println((RuntimeEndpointImpl)ep1); - assertNotNull(ep1); - assertTrue(ep1 instanceof RuntimeEndpointImpl); - Object ep2 = map.get("HelloworldClient#service-binding(Helloworld/Helloworld)"); - assertNotNull(ep2); - } - - //@Test - public void testTime() throws Exception { - long start = System.currentTimeMillis(); - long count = 100; - for (int i=0; i - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-itest - 2.0-M5 - ../pom.xml - - itest-nodes-one-jvm-hazelcast - Apache Tuscany SCA iTest Nodes One JVM Using Hazelcast Registry - - - - org.apache.tuscany.sca - itest-nodes-helloworld-service-and-client - 2.0-M5 - - - org.apache.tuscany.sca - itest-nodes-helloworld-iface - 2.0-M5 - - - org.apache.tuscany.sca - tuscany-sca-client-impl - 2.0-M5 - - - org.apache.tuscany.sca - tuscany-endpoint-hazelcast - 2.0-M5 - - - org.apache.tuscany.sca - tuscany-binding-hazelcast-runtime - 2.0-M5 - - - org.apache.tuscany.sca - tuscany-node-impl - 2.0-M5 - - - org.apache.tuscany.sca - tuscany-implementation-java-runtime - 2.0-M5 - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/one-jvm-hazelcast/src/test/java/itest/OneNodeOneContributionTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/one-jvm-hazelcast/src/test/java/itest/OneNodeOneContributionTestCase.java deleted file mode 100644 index 3755d0b365..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/one-jvm-hazelcast/src/test/java/itest/OneNodeOneContributionTestCase.java +++ /dev/null @@ -1,64 +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 itest; - -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertNotNull; -import itest.nodes.sac.Helloworld; - -import java.net.URI; - -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; -import org.junit.AfterClass; -import org.junit.BeforeClass; -import org.junit.Test; -import org.oasisopen.sca.client.SCAClientFactory; - -/** - * This shows how to test the Calculator service component. - */ -public class OneNodeOneContributionTestCase{ - - private static URI domainURI = URI.create("tuscany:OneNodeTestCase"); - private static Node node; - - @BeforeClass - public static void setUpBeforeClass() throws Exception { - node = NodeFactory.getInstance().createNode(domainURI, "../helloworld-service-and-client/target/classes"); - node.start(); - } - - @Test - public void testNode() throws Exception { - - Helloworld client = node.getService(Helloworld.class, "HelloworldClient"); - assertNotNull(client); - assertEquals("Hi Hello Petra", client.sayHello("Petra")); - - } - - @AfterClass - public static void tearDownAfterClass() throws Exception { - if (node != null) { - node.stop(); - } - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/one-jvm-hazelcast/src/test/java/itest/OneNodeTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/one-jvm-hazelcast/src/test/java/itest/OneNodeTestCase.java deleted file mode 100644 index 1c6b2ce754..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/one-jvm-hazelcast/src/test/java/itest/OneNodeTestCase.java +++ /dev/null @@ -1,76 +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 itest; - -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertNotNull; -import itest.nodes.Helloworld; - -import java.net.URI; - -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; -import org.junit.AfterClass; -import org.junit.BeforeClass; -import org.junit.Test; -import org.oasisopen.sca.client.SCAClientFactory; - -/** - * This shows how to test the Calculator service component. - */ -public class OneNodeTestCase{ - - private static URI domainURI = URI.create("OneNodeTestCase"); - private static Node node; - - @BeforeClass - public static void setUpBeforeClass() throws Exception { - node = NodeFactory.getInstance().createNode(domainURI, "../helloworld-service/target/classes", "../helloworld-client/target/classes"); - node.start(); - } - - @Test - public void testNode() throws Exception { - - Helloworld service = node.getService(Helloworld.class, "HelloworldService"); - assertNotNull(service); - assertEquals("Hello Petra", service.sayHello("Petra")); - - Helloworld client = node.getService(Helloworld.class, "HelloworldClient"); - assertNotNull(client); - assertEquals("Hi Hello Petra", client.sayHello("Petra")); - - Helloworld scaClientService = SCAClientFactory.newInstance(domainURI).getService(Helloworld.class, "HelloworldService"); - assertNotNull(scaClientService); - assertEquals("Hello Petra", scaClientService.sayHello("Petra")); - - Helloworld scaClientClient = SCAClientFactory.newInstance(domainURI).getService(Helloworld.class, "HelloworldClient"); - assertNotNull(scaClientClient); - assertEquals("Hi Hello Petra", scaClientClient.sayHello("Petra")); - - } - - @AfterClass - public static void tearDownAfterClass() throws Exception { - if (node != null) { - node.stop(); - } - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/one-jvm-hazelcast/src/test/java/itest/TwoNodeTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/one-jvm-hazelcast/src/test/java/itest/TwoNodeTestCase.java deleted file mode 100644 index 558afda077..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/one-jvm-hazelcast/src/test/java/itest/TwoNodeTestCase.java +++ /dev/null @@ -1,82 +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 itest; - -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertNotNull; -import itest.nodes.Helloworld; - -import java.net.URI; - -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; -import org.junit.AfterClass; -import org.junit.BeforeClass; -import org.junit.Test; -import org.oasisopen.sca.client.SCAClientFactory; - -/** - * This shows how to test the Calculator service component. - */ -public class TwoNodeTestCase{ - - private static URI domainURI = URI.create("TwoNodeTestCase"); - private static Node serviceNode; - private static Node clientNode; - - @BeforeClass - public static void setUpBeforeClass() throws Exception { - serviceNode = NodeFactory.getInstance().createNode(domainURI, "../helloworld-service/target/classes"); - serviceNode.start(); - clientNode = NodeFactory.getInstance().createNode(domainURI, "../helloworld-client/target/classes"); - clientNode.start(); - } - - @Test - public void testNode() throws Exception { - - Helloworld service = serviceNode.getService(Helloworld.class, "HelloworldService"); - assertNotNull(service); - assertEquals("Hello Petra", service.sayHello("Petra")); - - Helloworld client = clientNode.getService(Helloworld.class, "HelloworldClient"); - assertNotNull(client); - assertEquals("Hi Hello Petra", client.sayHello("Petra")); - - Helloworld scaClientService = SCAClientFactory.newInstance(domainURI).getService(Helloworld.class, "HelloworldService"); - assertNotNull(scaClientService); - assertEquals("Hello Petra", scaClientService.sayHello("Petra")); - - Helloworld scaClientClient = SCAClientFactory.newInstance(domainURI).getService(Helloworld.class, "HelloworldClient"); - assertNotNull(scaClientClient); - assertEquals("Hi Hello Petra", scaClientClient.sayHello("Petra")); - - } - - @AfterClass - public static void tearDownAfterClass() throws Exception { - if (serviceNode != null) { - serviceNode.stop(); - } - if (clientNode != null) { - clientNode.stop(); - } - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/one-jvm-hazelcast/src/test/java/itest/TwoRemoteNodesTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/one-jvm-hazelcast/src/test/java/itest/TwoRemoteNodesTestCase.java deleted file mode 100644 index 841621964f..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/one-jvm-hazelcast/src/test/java/itest/TwoRemoteNodesTestCase.java +++ /dev/null @@ -1,82 +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 itest; - -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertNotNull; -import itest.nodes.Helloworld; - -import java.net.URI; - -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; -import org.junit.AfterClass; -import org.junit.BeforeClass; -import org.junit.Test; -import org.oasisopen.sca.client.SCAClientFactory; - -/** - * This shows how to test the Calculator service component. - */ -public class TwoRemoteNodesTestCase{ - - private static Node serviceNode; - private static Node clientNode; - - @BeforeClass - public static void setUpBeforeClass() throws Exception { - serviceNode = NodeFactory.newInstance().createNode(URI.create("tuscany:TwoRemoteNodesTestCase"), "../helloworld-service/target/classes"); - serviceNode.start(); - - clientNode = NodeFactory.getInstance().createNode(URI.create("tuscany:TwoRemoteNodesTestCase"), "../helloworld-client/target/classes"); - clientNode.start(); - } - - @Test - public void testNode() throws Exception { - - Helloworld service = serviceNode.getService(Helloworld.class, "HelloworldService"); - assertNotNull(service); - assertEquals("Hello Petra", service.sayHello("Petra")); - - Helloworld client = clientNode.getService(Helloworld.class, "HelloworldClient"); - assertNotNull(client); - assertEquals("Hi Hello Petra", client.sayHello("Petra")); - - Helloworld scaClientService = SCAClientFactory.newInstance(URI.create("TwoRemoteNodesTestCase")).getService(Helloworld.class, "HelloworldService"); - assertNotNull(scaClientService); - assertEquals("Hello Petra", scaClientService.sayHello("Petra")); - - Helloworld scaClientClient = SCAClientFactory.newInstance(URI.create("TwoRemoteNodesTestCase")).getService(Helloworld.class, "HelloworldClient"); - assertNotNull(scaClientClient); - assertEquals("Hi Hello Petra", scaClientClient.sayHello("Petra")); - - } - - @AfterClass - public static void tearDownAfterClass() throws Exception { - if (serviceNode != null) { - serviceNode.stop(); - } - if (clientNode != null) { - clientNode.stop(); - } - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/one-jvm-tribes/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/one-jvm-tribes/pom.xml deleted file mode 100644 index 3cbb74c4e2..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/one-jvm-tribes/pom.xml +++ /dev/null @@ -1,82 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-itest - 2.0-M5 - ../pom.xml - - itest-nodes-one-jvm-tribes - Apache Tuscany SCA iTest Nodes One JVM Using Tribes Registry - - - - org.apache.tuscany.sca - itest-nodes-helloworld-iface - 2.0-M5 - - - org.apache.tuscany.sca - tuscany-sca-client-impl - 2.0-M5 - - - org.apache.tuscany.sca - tuscany-endpoint-tribes - 2.0-M5 - - - org.apache.tuscany.sca - tuscany-binding-rmi-runtime - 2.0-M5 - - - org.apache.tuscany.sca - tuscany-node-impl - 2.0-M5 - - - org.apache.tuscany.sca - tuscany-implementation-java-runtime - 2.0-M5 - - - - - - org.apache.maven.plugins - maven-surefire-plugin - 2.5 - - - **/*TestCase.java - - brief - false - once - -ea -Xmx256m - off - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/one-jvm-tribes/src/test/java/itest/OneNodeTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/one-jvm-tribes/src/test/java/itest/OneNodeTestCase.java deleted file mode 100644 index e55e8f63e4..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/one-jvm-tribes/src/test/java/itest/OneNodeTestCase.java +++ /dev/null @@ -1,76 +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 itest; - -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertNotNull; -import itest.nodes.Helloworld; - -import java.net.URI; - -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; -import org.junit.AfterClass; -import org.junit.BeforeClass; -import org.junit.Test; -import org.oasisopen.sca.client.SCAClientFactory; - -/** - * This shows how to test the Calculator service component. - */ -public class OneNodeTestCase{ - - private static URI domainURI = URI.create("OneNodeTestCase"); - private static Node node; - - @BeforeClass - public static void setUpBeforeClass() throws Exception { - node = NodeFactory.getInstance().createNode(domainURI, "../helloworld-service/target/classes", "../helloworld-client/target/classes"); - node.start(); - } - - @Test - public void testNode() throws Exception { - - Helloworld service = node.getService(Helloworld.class, "HelloworldService"); - assertNotNull(service); - assertEquals("Hello Petra", service.sayHello("Petra")); - - Helloworld client = node.getService(Helloworld.class, "HelloworldClient"); - assertNotNull(client); - assertEquals("Hi Hello Petra", client.sayHello("Petra")); - - Helloworld scaClientService = SCAClientFactory.newInstance(domainURI).getService(Helloworld.class, "HelloworldService"); - assertNotNull(scaClientService); - assertEquals("Hello Petra", scaClientService.sayHello("Petra")); - - Helloworld scaClientClient = SCAClientFactory.newInstance(domainURI).getService(Helloworld.class, "HelloworldClient"); - assertNotNull(scaClientClient); - assertEquals("Hi Hello Petra", scaClientClient.sayHello("Petra")); - - } - - @AfterClass - public static void tearDownAfterClass() throws Exception { - if (node != null) { - node.stop(); - } - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/one-jvm-tribes/src/test/java/itest/TwoNodeTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/one-jvm-tribes/src/test/java/itest/TwoNodeTestCase.java deleted file mode 100644 index 2d920c340a..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/one-jvm-tribes/src/test/java/itest/TwoNodeTestCase.java +++ /dev/null @@ -1,82 +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 itest; - -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertNotNull; -import itest.nodes.Helloworld; - -import java.net.URI; - -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; -import org.junit.AfterClass; -import org.junit.BeforeClass; -import org.junit.Test; -import org.oasisopen.sca.client.SCAClientFactory; - -/** - * This shows how to test the Calculator service component. - */ -public class TwoNodeTestCase{ - - private static URI domainURI = URI.create("TwoNodeTestCase"); - private static Node serviceNode; - private static Node clientNode; - - @BeforeClass - public static void setUpBeforeClass() throws Exception { - serviceNode = NodeFactory.getInstance().createNode(domainURI, "../helloworld-service/target/classes"); - serviceNode.start(); - clientNode = NodeFactory.getInstance().createNode(domainURI, "../helloworld-client/target/classes"); - clientNode.start(); - } - - @Test - public void testNode() throws Exception { - - Helloworld service = serviceNode.getService(Helloworld.class, "HelloworldService"); - assertNotNull(service); - assertEquals("Hello Petra", service.sayHello("Petra")); - - Helloworld client = clientNode.getService(Helloworld.class, "HelloworldClient"); - assertNotNull(client); - assertEquals("Hi Hello Petra", client.sayHello("Petra")); - - Helloworld scaClientService = SCAClientFactory.newInstance(domainURI).getService(Helloworld.class, "HelloworldService"); - assertNotNull(scaClientService); - assertEquals("Hello Petra", scaClientService.sayHello("Petra")); - - Helloworld scaClientClient = SCAClientFactory.newInstance(domainURI).getService(Helloworld.class, "HelloworldClient"); - assertNotNull(scaClientClient); - assertEquals("Hi Hello Petra", scaClientClient.sayHello("Petra")); - - } - - @AfterClass - public static void tearDownAfterClass() throws Exception { - if (serviceNode != null) { - serviceNode.stop(); - } - if (clientNode != null) { - clientNode.stop(); - } - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/one-jvm-tribes/src/test/java/itest/TwoRemoteNodesTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/one-jvm-tribes/src/test/java/itest/TwoRemoteNodesTestCase.java deleted file mode 100644 index 888b4df156..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/one-jvm-tribes/src/test/java/itest/TwoRemoteNodesTestCase.java +++ /dev/null @@ -1,83 +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 itest; - -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertNotNull; -import itest.nodes.Helloworld; - -import java.net.URI; - -import org.apache.tuscany.sca.binding.rmi.RMIBinding; -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; -import org.junit.AfterClass; -import org.junit.BeforeClass; -import org.junit.Test; -import org.oasisopen.sca.client.SCAClientFactory; - -/** - * This shows how to test the Calculator service component. - */ -public class TwoRemoteNodesTestCase{ - - private static Node serviceNode; - private static Node clientNode; - - @BeforeClass - public static void setUpBeforeClass() throws Exception { - serviceNode = NodeFactory.newInstance().createNode(URI.create("tuscany:TwoRemoteNodesTestCase"), "../helloworld-service/target/classes"); - serviceNode.start(); - - clientNode = NodeFactory.getInstance().createNode(URI.create("tuscany:TwoRemoteNodesTestCase"), "../helloworld-client/target/classes"); - clientNode.start(); - } - - @Test - public void testNode() throws Exception { - - Helloworld service = serviceNode.getService(Helloworld.class, "HelloworldService"); - assertNotNull(service); - assertEquals("Hello Petra", service.sayHello("Petra")); - - Helloworld client = clientNode.getService(Helloworld.class, "HelloworldClient"); - assertNotNull(client); - assertEquals("Hi Hello Petra", client.sayHello("Petra")); - -// Helloworld scaClientService = SCAClientFactory.newInstance(URI.create("TwoRemoteNodesTestCase")).getService(Helloworld.class, "HelloworldService"); -// assertNotNull(scaClientService); -// assertEquals("Hello Petra", scaClientService.sayHello("Petra")); - - Helloworld scaClientClient = SCAClientFactory.newInstance(URI.create("TwoRemoteNodesTestCase")).getService(Helloworld.class, "HelloworldClient"); - assertNotNull(scaClientClient); - assertEquals("Hi Hello Petra", scaClientClient.sayHello("Petra")); - - } - - @AfterClass - public static void tearDownAfterClass() throws Exception { - if (serviceNode != null) { - serviceNode.stop(); - } - if (clientNode != null) { - clientNode.stop(); - } - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/one-jvm/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/one-jvm/pom.xml deleted file mode 100644 index 691baa419c..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/one-jvm/pom.xml +++ /dev/null @@ -1,55 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-itest - 2.0-M5 - ../pom.xml - - itest-nodes-one-jvm - Apache Tuscany SCA iTest Nodes One JVM - - - - org.apache.tuscany.sca - itest-nodes-helloworld-iface - 2.0-M5 - - - org.apache.tuscany.sca - tuscany-sca-client-impl - 2.0-M5 - - - org.apache.tuscany.sca - tuscany-node-impl - 2.0-M5 - - - org.apache.tuscany.sca - tuscany-implementation-java-runtime - 2.0-M5 - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/one-jvm/src/test/java/itest/OneNodeTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/one-jvm/src/test/java/itest/OneNodeTestCase.java deleted file mode 100644 index 1c6b2ce754..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/one-jvm/src/test/java/itest/OneNodeTestCase.java +++ /dev/null @@ -1,76 +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 itest; - -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertNotNull; -import itest.nodes.Helloworld; - -import java.net.URI; - -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; -import org.junit.AfterClass; -import org.junit.BeforeClass; -import org.junit.Test; -import org.oasisopen.sca.client.SCAClientFactory; - -/** - * This shows how to test the Calculator service component. - */ -public class OneNodeTestCase{ - - private static URI domainURI = URI.create("OneNodeTestCase"); - private static Node node; - - @BeforeClass - public static void setUpBeforeClass() throws Exception { - node = NodeFactory.getInstance().createNode(domainURI, "../helloworld-service/target/classes", "../helloworld-client/target/classes"); - node.start(); - } - - @Test - public void testNode() throws Exception { - - Helloworld service = node.getService(Helloworld.class, "HelloworldService"); - assertNotNull(service); - assertEquals("Hello Petra", service.sayHello("Petra")); - - Helloworld client = node.getService(Helloworld.class, "HelloworldClient"); - assertNotNull(client); - assertEquals("Hi Hello Petra", client.sayHello("Petra")); - - Helloworld scaClientService = SCAClientFactory.newInstance(domainURI).getService(Helloworld.class, "HelloworldService"); - assertNotNull(scaClientService); - assertEquals("Hello Petra", scaClientService.sayHello("Petra")); - - Helloworld scaClientClient = SCAClientFactory.newInstance(domainURI).getService(Helloworld.class, "HelloworldClient"); - assertNotNull(scaClientClient); - assertEquals("Hi Hello Petra", scaClientClient.sayHello("Petra")); - - } - - @AfterClass - public static void tearDownAfterClass() throws Exception { - if (node != null) { - node.stop(); - } - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/one-jvm/src/test/java/itest/TwoNodeTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/one-jvm/src/test/java/itest/TwoNodeTestCase.java deleted file mode 100644 index 558afda077..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/one-jvm/src/test/java/itest/TwoNodeTestCase.java +++ /dev/null @@ -1,82 +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 itest; - -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertNotNull; -import itest.nodes.Helloworld; - -import java.net.URI; - -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; -import org.junit.AfterClass; -import org.junit.BeforeClass; -import org.junit.Test; -import org.oasisopen.sca.client.SCAClientFactory; - -/** - * This shows how to test the Calculator service component. - */ -public class TwoNodeTestCase{ - - private static URI domainURI = URI.create("TwoNodeTestCase"); - private static Node serviceNode; - private static Node clientNode; - - @BeforeClass - public static void setUpBeforeClass() throws Exception { - serviceNode = NodeFactory.getInstance().createNode(domainURI, "../helloworld-service/target/classes"); - serviceNode.start(); - clientNode = NodeFactory.getInstance().createNode(domainURI, "../helloworld-client/target/classes"); - clientNode.start(); - } - - @Test - public void testNode() throws Exception { - - Helloworld service = serviceNode.getService(Helloworld.class, "HelloworldService"); - assertNotNull(service); - assertEquals("Hello Petra", service.sayHello("Petra")); - - Helloworld client = clientNode.getService(Helloworld.class, "HelloworldClient"); - assertNotNull(client); - assertEquals("Hi Hello Petra", client.sayHello("Petra")); - - Helloworld scaClientService = SCAClientFactory.newInstance(domainURI).getService(Helloworld.class, "HelloworldService"); - assertNotNull(scaClientService); - assertEquals("Hello Petra", scaClientService.sayHello("Petra")); - - Helloworld scaClientClient = SCAClientFactory.newInstance(domainURI).getService(Helloworld.class, "HelloworldClient"); - assertNotNull(scaClientClient); - assertEquals("Hi Hello Petra", scaClientClient.sayHello("Petra")); - - } - - @AfterClass - public static void tearDownAfterClass() throws Exception { - if (serviceNode != null) { - serviceNode.stop(); - } - if (clientNode != null) { - clientNode.stop(); - } - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/one-node-test/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/one-node-test/pom.xml deleted file mode 100644 index 945770c97b..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/one-node-test/pom.xml +++ /dev/null @@ -1,48 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-itest - 2.0-M5 - ../pom.xml - - itest-nodes-one-node-test - Apache Tuscany SCA iTest Nodes One Node Test - - - - org.apache.tuscany.sca - itest-nodes-helloworld-iface - 2.0-M5 - - - org.apache.tuscany.sca - tuscany-node-impl - 2.0-M5 - - - org.apache.tuscany.sca - tuscany-implementation-java-runtime - 2.0-M5 - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/one-node-test/src/test/java/itest/OneNodeTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/one-node-test/src/test/java/itest/OneNodeTestCase.java deleted file mode 100644 index 6d49b718ef..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/one-node-test/src/test/java/itest/OneNodeTestCase.java +++ /dev/null @@ -1,87 +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 itest; - -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertNotNull; - -import java.io.File; - -import itest.nodes.Helloworld; - -import org.apache.tuscany.sca.node.Contribution; -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; -import org.junit.AfterClass; -import org.junit.BeforeClass; -import org.junit.Test; - -/** - * This shows how to test the Calculator service component. - */ -public class OneNodeTestCase{ - - private static Node node; - - @BeforeClass - public static void setUpBeforeClass() throws Exception { - System.setProperty("org.apache.tuscany.sca.contribution.processor.ValidationSchemaExtensionPoint.enabled", "false"); - NodeFactory factory = NodeFactory.newInstance(); - node = factory.createNode( - new Contribution("service", getJar("../helloworld-service/target")), - new Contribution("client", getJar("../helloworld-client/target"))); - node.start(); - } - - /** - * Get the jar in the target folder without being dependent on the version name to - * make tuscany releases easier - */ - private static String getJar(String targetDirectory) { - File f = new File(targetDirectory); - for (File file : f.listFiles()) { - if (file.getName().endsWith(".jar")) { - return file.toURI().toString(); - } - } - throw new IllegalStateException("Can't find jar in: " + targetDirectory); - } - - @Test - public void testCalculator() throws Exception { - - // Ideally this would use the SCAClient API but leaving that tillwe have the basics working - - Helloworld service = node.getService(Helloworld.class, "HelloworldService"); - assertNotNull(service); - assertEquals("Hello Petra", service.sayHello("Petra")); - - Helloworld client = node.getService(Helloworld.class, "HelloworldClient"); - assertNotNull(client); - assertEquals("Hi Hello Petra", client.sayHello("Petra")); - } - - @AfterClass - public static void tearDownAfterClass() throws Exception { - if (node != null) { - node.stop(); - } - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/pom.xml deleted file mode 100644 index d9cdf7d707..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/pom.xml +++ /dev/null @@ -1,63 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-itest - 2.0-M5 - ../pom.xml - - pom - itest-nodes - Apache Tuscany SCA iTest Nodes - - - install - - - - helloworld-iface - helloworld-service - helloworld-client - helloworld-service-and-client - - one-jvm - one-jvm-hazelcast - one-jvm-hazelcast-client - one-jvm-tribes - binding-sca-hazelcast - - one-node-test - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/three-nodes-three-vms-test/build.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/three-nodes-three-vms-test/build.xml deleted file mode 100644 index 3d77230541..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/three-nodes-three-vms-test/build.xml +++ /dev/null @@ -1,38 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/three-nodes-three-vms-test/client.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/three-nodes-three-vms-test/client.xml deleted file mode 100644 index 8e7c744940..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/three-nodes-three-vms-test/client.xml +++ /dev/null @@ -1,31 +0,0 @@ - - - - - - - - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/three-nodes-three-vms-test/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/three-nodes-three-vms-test/pom.xml deleted file mode 100644 index c601600369..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/three-nodes-three-vms-test/pom.xml +++ /dev/null @@ -1,104 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-itest - 2.0-M5 - ../pom.xml - - itest-nodes-three-nodes-three-vms-test - Apache Tuscany SCA iTest Nodes Three Nodes Three VMs Test - - - - org.apache.tuscany.sca - tuscany-domain-node - 2.0-M5 - - - org.apache.tuscany.sca - tuscany-endpoint-tribes - 2.0-M5 - - - org.apache.tuscany.sca - itest-nodes-helloworld-iface - 2.0-M5 - - - org.apache.tuscany.sca - tuscany-node-impl - 2.0-M5 - - - org.apache.tuscany.sca - tuscany-node-launcher - 2.0-M5 - - - org.apache.tuscany.sca - tuscany-sca-client-impl - 2.0-M5 - - - org.apache.tuscany.sca - tuscany-implementation-java-runtime - 2.0-M5 - - - org.apache.tuscany.sca - tuscany-binding-sca-runtime-rmi - 2.0-M5 - - - org.apache.tuscany.sca - tuscany-host-jetty - 2.0-M5 - - - - - - - - org.apache.maven.plugins - maven-antrun-plugin - - - run-samples - test - - run - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/three-nodes-three-vms-test/server.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/three-nodes-three-vms-test/server.xml deleted file mode 100644 index dc18cc8ce0..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/three-nodes-three-vms-test/server.xml +++ /dev/null @@ -1,30 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/three-nodes-three-vms-test/service-a-config.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/three-nodes-three-vms-test/service-a-config.xml deleted file mode 100644 index 006cf455cb..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/three-nodes-three-vms-test/service-a-config.xml +++ /dev/null @@ -1,39 +0,0 @@ - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/three-nodes-three-vms-test/service-b-config.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/three-nodes-three-vms-test/service-b-config.xml deleted file mode 100644 index d557a31b64..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/three-nodes-three-vms-test/service-b-config.xml +++ /dev/null @@ -1,39 +0,0 @@ - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/three-nodes-three-vms-test/service-c-config.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/three-nodes-three-vms-test/service-c-config.xml deleted file mode 100644 index ba642c5ed0..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/three-nodes-three-vms-test/service-c-config.xml +++ /dev/null @@ -1,39 +0,0 @@ - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/three-nodes-three-vms-test/src/test/java/itest/ServiceA.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/three-nodes-three-vms-test/src/test/java/itest/ServiceA.java deleted file mode 100644 index 6ef30fe43f..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/three-nodes-three-vms-test/src/test/java/itest/ServiceA.java +++ /dev/null @@ -1,65 +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 itest; - -import java.io.File; - -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; -import org.junit.AfterClass; -import org.junit.BeforeClass; -import org.junit.Test; - - -public class ServiceA { - - private static Node sericeNode; - - @BeforeClass - public static void setUpBeforeClass() throws Exception { - NodeFactory factory = NodeFactory.newInstance(); - - sericeNode = factory.createNode(new File("service-a-config.xml").toURI().toURL()); - - try { - sericeNode.start(); - } catch (Exception ex){ - ex.printStackTrace(); - throw ex; - } - } - - @Test - public void testNothing() throws Exception { - - } - - @AfterClass - public static void tearDownAfterClass() throws Exception { - if (sericeNode != null) { - sericeNode.stop(); - } - } - - public static void main(String[] args) throws Exception { - ServiceA.setUpBeforeClass(); - ServiceA.tearDownAfterClass(); - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/three-nodes-three-vms-test/src/test/java/itest/ServiceB.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/three-nodes-three-vms-test/src/test/java/itest/ServiceB.java deleted file mode 100644 index 67a8e5d92e..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/three-nodes-three-vms-test/src/test/java/itest/ServiceB.java +++ /dev/null @@ -1,55 +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 itest; - -import java.io.File; - -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; -import org.junit.AfterClass; -import org.junit.BeforeClass; -import org.junit.Test; - -public class ServiceB { - - private static Node serviceNode; - - @BeforeClass - public static void setUpBeforeClass() throws Exception { - NodeFactory factory = NodeFactory.newInstance(); - - serviceNode = factory.createNode(new File("service-b-config.xml").toURI().toURL()); - serviceNode.start(); - } - - @Test - public void testNothing() throws Exception { - synchronized (this) { - this.wait(); - } - } - - @AfterClass - public static void tearDownAfterClass() throws Exception { - if (serviceNode != null) { - serviceNode.stop(); - } - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/three-nodes-three-vms-test/src/test/java/itest/ServiceC.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/three-nodes-three-vms-test/src/test/java/itest/ServiceC.java deleted file mode 100644 index d716b5cd98..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/three-nodes-three-vms-test/src/test/java/itest/ServiceC.java +++ /dev/null @@ -1,55 +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 itest; - -import java.io.File; - -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; -import org.junit.AfterClass; -import org.junit.BeforeClass; -import org.junit.Test; - -public class ServiceC { - - private static Node serviceNode; - - @BeforeClass - public static void setUpBeforeClass() throws Exception { - NodeFactory factory = NodeFactory.newInstance(); - - serviceNode = factory.createNode(new File("service-c-config.xml").toURI().toURL()); - serviceNode.start(); - } - - @Test - public void testNothing() throws Exception { - synchronized (this) { - this.wait(); - } - } - - @AfterClass - public static void tearDownAfterClass() throws Exception { - if (serviceNode != null) { - serviceNode.stop(); - } - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/two-nodes-test/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/two-nodes-test/pom.xml deleted file mode 100644 index db42c07190..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/two-nodes-test/pom.xml +++ /dev/null @@ -1,59 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-itest - 2.0-M5 - ../pom.xml - - itest-nodes-two-nodes-test - Apache Tuscany SCA iTest Nodes Two Nodes Test - - - - org.apache.tuscany.sca - itest-nodes-helloworld-iface - 2.0-M5 - - - org.apache.tuscany.sca - tuscany-node-impl - 2.0-M5 - - - org.apache.tuscany.sca - tuscany-sca-client-impl - 2.0-M5 - - - org.apache.tuscany.sca - tuscany-implementation-java-runtime - 2.0-M5 - - - org.apache.tuscany.sca - tuscany-binding-ws-runtime-axis2 - 2.0-M5 - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/two-nodes-test/src/test/java/itest/ClientNode.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/two-nodes-test/src/test/java/itest/ClientNode.java deleted file mode 100644 index 6da4c1f7e1..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/two-nodes-test/src/test/java/itest/ClientNode.java +++ /dev/null @@ -1,93 +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 itest; - -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertNotNull; -import itest.nodes.Helloworld; - -import java.io.File; -import java.net.URI; - -import javax.xml.namespace.QName; - -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; -import org.apache.tuscany.sca.node.configuration.NodeConfiguration; -import org.junit.AfterClass; -import org.junit.BeforeClass; -import org.junit.Ignore; -import org.junit.Test; -import org.oasisopen.sca.client.SCAClientFactory; - -/** - * This shows how to test the Calculator service component. - */ -public class ClientNode { - private final static String SCA11_NS = "http://docs.oasis-open.org/ns/opencsa/sca/200912"; - private static Node clientNode; - private static TestCaseRunner runner; - - @BeforeClass - public static void setUpBeforeClass() throws Exception { - runner = new TestCaseRunner(ServiceNode.class); - runner.beforeClass(); - System.setProperty("org.apache.tuscany.sca.contribution.processor.ValidationSchemaExtensionPoint.enabled", - "false"); - NodeFactory factory = NodeFactory.newInstance(); - NodeConfiguration conf = - factory.createNodeConfiguration().setURI("clientNode"). - addBinding(new QName(SCA11_NS, "binding.sca"), "http://localhost:8085/sca https://localhost:9085/sca") - .addBinding(new QName(SCA11_NS, "binding.ws"), "http://localhost:8086/ws") - .addContribution("client", new File("../helloworld-client/target/classes").toURI().toString()); - clientNode = factory.createNode(conf).start(); - Thread.sleep(1000); - } - - @Test - public void testCalculator() throws Exception { - - Helloworld client = clientNode.getService(Helloworld.class, "HelloworldClient"); - assertNotNull(client); - assertEquals("Hi Hello Petra", client.sayHello("Petra")); - } - - @Test - @Ignore("SCAClient needs to leverage the EndpointRegistry to invoke services that are not hosted on the local node") - public void testCalculatorClientAPI() throws Exception { - Helloworld service = SCAClientFactory.newInstance(URI.create("default")).getService(Helloworld.class, "HelloworldService"); - assertNotNull(service); - assertEquals("Hello Petra", service.sayHello("Petra")); - - Helloworld client = SCAClientFactory.newInstance(URI.create("default")).getService(Helloworld.class, "HelloworldClient"); - assertNotNull(client); - assertEquals("Hi Hello Petra", client.sayHello("Petra")); - } - - @AfterClass - public static void tearDownAfterClass() throws Exception { - if (clientNode != null) { - clientNode.stop(); - } - if (runner != null) { - runner.afterClass(); - } - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/two-nodes-test/src/test/java/itest/ServiceNode.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/two-nodes-test/src/test/java/itest/ServiceNode.java deleted file mode 100644 index 4b034d89e0..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/two-nodes-test/src/test/java/itest/ServiceNode.java +++ /dev/null @@ -1,58 +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 itest; - -import java.io.File; - -import javax.xml.namespace.QName; - -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; -import org.apache.tuscany.sca.node.configuration.NodeConfiguration; -import org.junit.AfterClass; -import org.junit.BeforeClass; - -/** - * This shows how to test the Calculator service component. - */ -public class ServiceNode { - private final static String SCA11_NS = "http://docs.oasis-open.org/ns/opencsa/sca/200912"; - private static Node serviceNode; - - @BeforeClass - public static void setUpBeforeClass() throws Exception { - System.setProperty("org.apache.tuscany.sca.contribution.processor.ValidationSchemaExtensionPoint.enabled", - "false"); - NodeFactory factory = NodeFactory.newInstance(); - NodeConfiguration conf = - factory.createNodeConfiguration().setURI("serviceNode") - .addBinding(new QName(SCA11_NS, "binding.sca"), "http://localhost:8087/sca") - .addBinding(new QName(SCA11_NS, "binding.ws"), "http://localhost:8088/ws") - .addContribution("service", new File("../helloworld-service/target/classes").toURI().toString()); - serviceNode = factory.createNode(conf).start(); - } - - @AfterClass - public static void tearDownAfterClass() throws Exception { - if (serviceNode != null) { - serviceNode.stop(); - } - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/two-nodes-test/src/test/java/itest/StopStartNodesTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/two-nodes-test/src/test/java/itest/StopStartNodesTestCase.java deleted file mode 100644 index 998492734b..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/two-nodes-test/src/test/java/itest/StopStartNodesTestCase.java +++ /dev/null @@ -1,103 +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 itest; - -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertNotNull; -import static org.junit.Assert.fail; -import itest.nodes.Helloworld; - -import java.io.File; - -import org.apache.tuscany.sca.node.Contribution; -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; -import org.junit.AfterClass; -import org.junit.Test; - -/** - * Tests using two nodes and stopping and restarting a service node. - */ -public class StopStartNodesTestCase { - - private static Node serviceNode; - private static Node clientNode; - - @Test - public void testCalculator() throws Exception { - NodeFactory factory = NodeFactory.newInstance(); - serviceNode = factory.createNode(new Contribution("service", getJar("../helloworld-service/target"))); - serviceNode.start(); - clientNode = factory.createNode(new Contribution("client", getJar("../helloworld-client/target"))); - clientNode.start(); - - Helloworld service = serviceNode.getService(Helloworld.class, "HelloworldService"); - assertNotNull(service); - assertEquals("Hello Petra", service.sayHello("Petra")); - - Helloworld client = clientNode.getService(Helloworld.class, "HelloworldClient"); - assertNotNull(client); - assertEquals("Hi Hello Petra", client.sayHello("Petra")); - - serviceNode.stop(); - - client = clientNode.getService(Helloworld.class, "HelloworldClient"); - assertNotNull(client); - - try { - client.sayHello("Petra"); - fail(); - } catch (Exception e) { - // expected - // TODO: better exception than NPE - } - - serviceNode = factory.createNode(new Contribution("service", getJar("../helloworld-service/target"))); - serviceNode.start(); - - client = clientNode.getService(Helloworld.class, "HelloworldClient"); - assertNotNull(client); - assertEquals("Hi Hello Petra", client.sayHello("Petra")); - } - - /** - * Get the jar in the target folder without being dependent on the version name to - * make tuscany releases easier - */ - private static String getJar(String targetDirectory) { - File f = new File(targetDirectory); - for (File file : f.listFiles()) { - if (file.getName().endsWith(".jar")) { - return file.toURI().toString(); - } - } - throw new IllegalStateException("Can't find jar in: " + targetDirectory); - } - - @AfterClass - public static void tearDownAfterClass() throws Exception { - if (serviceNode != null) { - serviceNode.stop(); - } - if (clientNode != null) { - clientNode.stop(); - } - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/two-nodes-test/src/test/java/itest/TestCaseRunner.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/two-nodes-test/src/test/java/itest/TestCaseRunner.java deleted file mode 100644 index 7dfa6e66cc..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/two-nodes-test/src/test/java/itest/TestCaseRunner.java +++ /dev/null @@ -1,292 +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 itest; - -import java.lang.annotation.Annotation; -import java.lang.reflect.Constructor; -import java.lang.reflect.Method; -import java.net.URL; -import java.net.URLClassLoader; -import java.security.AccessController; -import java.security.PrivilegedAction; - -/** - * A helper class that can be used to run an SCA JUnit test case. The test case will run in an isolated class loader. - * - * @version $Rev$ $Date$ - */ -public class TestCaseRunner { - - private ClassLoader classLoader; - private Class testSuiteClass; - private Object testSuite; - private Class testResultClass; - private Class testCaseClass; - private Object testCase; - - private Class beforeAnnotation; - private Class beforeClassAnnotation; - private Class afterAnnotation; - private Class afterClassAnnotation; - private Class junit4AdapterClass; - private Class junit3TestCaseClass; - - /** - * Constructs a new TestCase runner. - * - * @param testClass - */ - public TestCaseRunner(Class testClass) { - try { - ClassLoader tccl = Thread.currentThread().getContextClassLoader(); - classLoader = testClass.getClassLoader(); - if (classLoader instanceof URLClassLoader) { - URL[] urls = ((URLClassLoader)classLoader).getURLs(); - classLoader = new URLClassLoader(urls, classLoader.getParent()); - } else if (classLoader == tccl || classLoader.getParent() == tccl) { - classLoader = new URLClassLoader(new URL[0], classLoader); - } else { - classLoader = tccl; - } - - try { - // Thread.currentThread().setContextClassLoader(classLoader); - // Allow privileged access to set class loader. Requires RuntimePermission - // setContextClassLoader in security policy. - final ClassLoader finalClassLoader = classLoader; - AccessController.doPrivileged(new PrivilegedAction() { - public Object run() { - Thread.currentThread().setContextClassLoader(finalClassLoader); - return null; - } - }); - - testCaseClass = Class.forName(testClass.getName(), true, classLoader); - testCase = testCaseClass.newInstance(); - ClassLoader testClassLoader = testCaseClass.getClassLoader(); - - junit3TestCaseClass = Class.forName("junit.framework.TestCase", true, testClassLoader); - - testSuiteClass = Class.forName("junit.framework.TestSuite", true, testClassLoader); - Constructor testSuiteConstructor = testSuiteClass.getConstructor(Class.class); - testSuite = testSuiteConstructor.newInstance(testCaseClass); - - testResultClass = Class.forName("junit.framework.TestResult", true, testClassLoader); - - try { - beforeAnnotation = Class.forName("org.junit.Before", true, testClassLoader); - afterAnnotation = Class.forName("org.junit.After", true, testClassLoader); - beforeClassAnnotation = Class.forName("org.junit.BeforeClass", true, testClassLoader); - afterClassAnnotation = Class.forName("org.junit.AfterClass", true, testClassLoader); - junit4AdapterClass = Class.forName("junit.framework.JUnit4TestAdapter", true, testClassLoader); - } catch (Exception e) { - // Unexpected - throw new AssertionError(e); - } - } catch (Throwable e) { - e.printStackTrace(); - } finally { - // Thread.currentThread().setContextClassLoader(tccl); - // Allow privileged access to set class loader. Requires RuntimePermission - // setContextClassLoader in security policy. - final ClassLoader finaltccl = tccl; - AccessController.doPrivileged(new PrivilegedAction() { - public Object run() { - Thread.currentThread().setContextClassLoader(finaltccl); - return null; - } - }); - } - } catch (Exception e) { - throw new RuntimeException(e); - } - } - - /** - * Run the test case - */ - public void run() { - ClassLoader tccl = Thread.currentThread().getContextClassLoader(); - try { - // Thread.currentThread().setContextClassLoader(classLoader); - // Allow privileged access to set class loader. Requires RuntimePermission - // setContextClassLoader in security policy. - final ClassLoader finalClassLoader = classLoader; - AccessController.doPrivileged(new PrivilegedAction() { - public Object run() { - Thread.currentThread().setContextClassLoader(finalClassLoader); - return null; - } - }); - - if (junit3TestCaseClass.isAssignableFrom(testCaseClass)) { - Object testResult = testResultClass.newInstance(); - Method runMethod = testSuiteClass.getMethod("run", testResultClass); - runMethod.invoke(testSuite, testResult); - } else { - Object junit4Adapter = junit4AdapterClass.getConstructor(Class.class).newInstance(testCaseClass); - Object testResult = testResultClass.newInstance(); - Method runMethod = junit4AdapterClass.getMethod("run", testResultClass); - runMethod.invoke(junit4Adapter, testResult); - } - } catch (Exception e) { - throw new RuntimeException(e); - } finally { - // Thread.currentThread().setContextClassLoader(tccl); - // Allow privileged access to set class loader. Requires RuntimePermission - // setContextClassLoader in security policy. - final ClassLoader finaltccl = tccl; - AccessController.doPrivileged(new PrivilegedAction() { - public Object run() { - Thread.currentThread().setContextClassLoader(finaltccl); - return null; - } - }); - } - } - - /** - * Invoke the setUp method - */ - public void setUp() { - execute("setUp"); - } - - /** - * Invoke the before methods - */ - public void before() { - execute(beforeAnnotation); - } - - /** - * Invoke the beforeClass methods - */ - public void beforeClass() { - execute(beforeClassAnnotation); - } - - /** - * Invoke the tearDown method - */ - public void tearDown() { - execute("tearDown"); - } - - /** - * Invoke the after methods - */ - public void after() { - execute(afterAnnotation); - } - - /** - * Invoke the afterClass methods - */ - public void afterClass() { - execute(afterClassAnnotation); - } - - /** - * Invoke the specified test method. - */ - public void run(String methodName) { - execute(methodName); - } - - /** - * Invoke the methods annotated with the specified annotation. - */ - private void execute(Class annotationClass) { - if (annotationClass == null) { - throw new RuntimeException(new NoSuchMethodException()); - } - ClassLoader tccl = Thread.currentThread().getContextClassLoader(); - try { - // Thread.currentThread().setContextClassLoader(classLoader); - // Allow privileged access to set class loader. Requires RuntimePermission - // setContextClassLoader in security policy. - final ClassLoader finalClassLoader = classLoader; - AccessController.doPrivileged(new PrivilegedAction() { - public Object run() { - Thread.currentThread().setContextClassLoader(finalClassLoader); - return null; - } - }); - - for (Method method : testCaseClass.getDeclaredMethods()) { - for (Annotation annotation : method.getAnnotations()) { - if (annotation.annotationType() == annotationClass) { - method.invoke(testCase); - } - } - } - } catch (Exception e) { - throw new RuntimeException(e); - } finally { - // Thread.currentThread().setContextClassLoader(tccl); - // Allow privileged access to set class loader. Requires RuntimePermission - // setContextClassLoader in security policy. - final ClassLoader finaltccl = tccl; - AccessController.doPrivileged(new PrivilegedAction() { - public Object run() { - Thread.currentThread().setContextClassLoader(finaltccl); - return null; - } - }); - } - } - - /** - * Invoke the specified method - */ - private void execute(String methodName) { - ClassLoader tccl = Thread.currentThread().getContextClassLoader(); - try { - // Thread.currentThread().setContextClassLoader(classLoader); - // Allow privileged access to set class loader. Requires RuntimePermission - // setContextClassLoader in security policy. - final ClassLoader finalClassLoader = classLoader; - AccessController.doPrivileged(new PrivilegedAction() { - public Object run() { - Thread.currentThread().setContextClassLoader(finalClassLoader); - return null; - } - }); - Method setUpMethod = testCaseClass.getDeclaredMethod(methodName); - setUpMethod.setAccessible(true); - setUpMethod.invoke(testCase); - } catch (Exception e) { - throw new RuntimeException(e); - } finally { - // Thread.currentThread().setContextClassLoader(tccl); - // Allow privileged access to set class loader. Requires RuntimePermission - // setContextClassLoader in security policy. - final ClassLoader finaltccl = tccl; - AccessController.doPrivileged(new PrivilegedAction() { - public Object run() { - Thread.currentThread().setContextClassLoader(finaltccl); - return null; - } - }); - } - } - -} - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/two-nodes-test/src/test/java/itest/TwoNodesTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/two-nodes-test/src/test/java/itest/TwoNodesTestCase.java deleted file mode 100644 index 80c36e5ee9..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/two-nodes-test/src/test/java/itest/TwoNodesTestCase.java +++ /dev/null @@ -1,106 +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 itest; - -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertNotNull; -import itest.nodes.Helloworld; - -import java.io.File; -import java.net.URI; - -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; -import org.apache.tuscany.sca.node.configuration.NodeConfiguration; -import org.junit.AfterClass; -import org.junit.BeforeClass; -import org.junit.Test; -import org.oasisopen.sca.client.SCAClientFactory; - -/** - * This shows how to test the Calculator service component. - */ -public class TwoNodesTestCase { - - private static Node serviceNode; - private static Node clientNode; - - @BeforeClass - public static void setUpBeforeClass() throws Exception { - System.setProperty("org.apache.tuscany.sca.contribution.processor.ValidationSchemaExtensionPoint.enabled", - "false"); - NodeFactory factory = NodeFactory.getInstance(); - NodeConfiguration configuration1 = - factory.createNodeConfiguration().setURI("serviceNode") - .addContribution("service", getJar("../helloworld-service/target")); - serviceNode = factory.createNode(configuration1).start(); - - NodeConfiguration configuration2 = - factory.createNodeConfiguration().setURI("clientNode") - .addContribution("client", getJar("../helloworld-client/target")); - clientNode = factory.createNode(configuration2).start(); - } - - /** - * Get the jar in the target folder without being dependent on the version name to - * make tuscany releases easier - */ - private static String getJar(String targetDirectory) { - File f = new File(targetDirectory); - for (File file : f.listFiles()) { - if (file.getName().endsWith(".jar")) { - return file.toURI().toString(); - } - } - throw new IllegalStateException("Can't find jar in: " + targetDirectory); - } - - @Test - public void testCalculator() throws Exception { - Helloworld service = serviceNode.getService(Helloworld.class, "HelloworldService"); - assertNotNull(service); - assertEquals("Hello Petra", service.sayHello("Petra")); - - Helloworld client = clientNode.getService(Helloworld.class, "HelloworldClient"); - assertNotNull(client); - assertEquals("Hi Hello Petra", client.sayHello("Petra")); - } - - @Test - public void testCalculatorClientAPI() throws Exception { - Helloworld service = SCAClientFactory.newInstance(URI.create("default")).getService(Helloworld.class, "HelloworldService"); - assertNotNull(service); - assertEquals("Hello Petra", service.sayHello("Petra")); - - Helloworld client = SCAClientFactory.newInstance(URI.create("default")).getService(Helloworld.class, "HelloworldClient"); - assertNotNull(client); - assertEquals("Hi Hello Petra", client.sayHello("Petra")); - } - - @AfterClass - public static void tearDownAfterClass() throws Exception { - if (serviceNode != null) { - serviceNode.stop(); - } - if (clientNode != null) { - clientNode.stop(); - } - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/two-nodes-two-vms-hazelcast/build.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/two-nodes-two-vms-hazelcast/build.xml deleted file mode 100644 index ad0476c6d1..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/two-nodes-two-vms-hazelcast/build.xml +++ /dev/null @@ -1,39 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/two-nodes-two-vms-hazelcast/client-config.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/two-nodes-two-vms-hazelcast/client-config.xml deleted file mode 100644 index 4f6cfd90f7..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/two-nodes-two-vms-hazelcast/client-config.xml +++ /dev/null @@ -1,39 +0,0 @@ - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/two-nodes-two-vms-hazelcast/client.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/two-nodes-two-vms-hazelcast/client.xml deleted file mode 100644 index 683071792b..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/two-nodes-two-vms-hazelcast/client.xml +++ /dev/null @@ -1,55 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/two-nodes-two-vms-hazelcast/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/two-nodes-two-vms-hazelcast/pom.xml deleted file mode 100644 index b48e0b3c2f..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/two-nodes-two-vms-hazelcast/pom.xml +++ /dev/null @@ -1,114 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-itest - 2.0-M5 - ../pom.xml - - itest-nodes-two-nodes-two-vms-hazelcast - Apache Tuscany SCA iTest Nodes Two Nodes Two VMs Test using Hazelcast registry - - - - - org.apache.tuscany.sca - tuscany-endpoint-hazelcast - 2.0-M5 - - - org.apache.tuscany.sca - tuscany-endpoint-hazelcast-client - 2.0-M5 - - - org.apache.tuscany.sca - itest-nodes-helloworld-iface - 2.0-M5 - - - org.apache.tuscany.sca - tuscany-node-impl - 2.0-M5 - - - org.apache.tuscany.sca - tuscany-node-launcher - 2.0-M5 - - - org.apache.tuscany.sca - tuscany-sca-client-impl - 2.0-M5 - - - org.apache.tuscany.sca - tuscany-implementation-java-runtime - 2.0-M5 - - - org.apache.tuscany.sca - tuscany-binding-sca-runtime - 2.0-M5 - - - org.apache.tuscany.sca - tuscany-binding-rmi-runtime - 2.0-M5 - - - org.apache.tuscany.sca - tuscany-host-jetty - 2.0-M5 - - - - - - - - org.apache.maven.plugins - maven-antrun-plugin - - - run-samples - test - - run - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/two-nodes-two-vms-hazelcast/scaclient.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/two-nodes-two-vms-hazelcast/scaclient.xml deleted file mode 100644 index 11ade828c5..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/two-nodes-two-vms-hazelcast/scaclient.xml +++ /dev/null @@ -1,54 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/two-nodes-two-vms-hazelcast/server-config.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/two-nodes-two-vms-hazelcast/server-config.xml deleted file mode 100644 index 841471f95f..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/two-nodes-two-vms-hazelcast/server-config.xml +++ /dev/null @@ -1,39 +0,0 @@ - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/two-nodes-two-vms-hazelcast/server.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/two-nodes-two-vms-hazelcast/server.xml deleted file mode 100644 index 1f0494ceb9..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/two-nodes-two-vms-hazelcast/server.xml +++ /dev/null @@ -1,42 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/two-nodes-two-vms-hazelcast/src/test/java/itest/Client.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/two-nodes-two-vms-hazelcast/src/test/java/itest/Client.java deleted file mode 100644 index 5d884921fd..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/two-nodes-two-vms-hazelcast/src/test/java/itest/Client.java +++ /dev/null @@ -1,56 +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 itest; - -import java.net.URI; - -import org.apache.tuscany.sca.binding.rmi.RMIBinding; -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; -import org.junit.AfterClass; -import org.junit.BeforeClass; -import org.junit.Test; - -public class Client { - - private static Node clientNode; - - @BeforeClass - public static void setUpBeforeClass() throws Exception { - clientNode = NodeFactory.newInstance().createNode(URI.create("tuscany:default?listen=127.0.0.1:14821"), "../helloworld-client/target//classes"); - clientNode.start(); - } - - @Test - public void testNothing() throws Exception { - } - - @AfterClass - public static void tearDownAfterClass() throws Exception { - if (clientNode != null) { - clientNode.stop(); - } - } - - public static void main(String[] args) throws Exception { - Client.setUpBeforeClass(); - Client.tearDownAfterClass(); - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/two-nodes-two-vms-hazelcast/src/test/java/itest/SCAClient.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/two-nodes-two-vms-hazelcast/src/test/java/itest/SCAClient.java deleted file mode 100644 index 81af1c6b5b..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/two-nodes-two-vms-hazelcast/src/test/java/itest/SCAClient.java +++ /dev/null @@ -1,66 +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 itest; - -import itest.nodes.Helloworld; - -import java.net.URI; - -import org.apache.tuscany.sca.binding.rmi.RMIBinding; -import org.apache.tuscany.sca.node.NodeFactory; -import org.oasisopen.sca.client.SCAClientFactory; - -public class SCAClient { - - public void testSCAClient() throws Exception { - // The configuration required when running with sca-client-rmi and endpoint-hazelcast-rmi - SCAClientFactory factory = SCAClientFactory.newInstance(URI.create("tuscanyclient:default?remotes=127.0.0.1:14820")); - - // The configuration required when running with sca-client-impl and endpoint-hazelcast - //SCAClientFactory factory = SCAClientFactory.newInstance(URI.create("tuscany:default")); - - // Sleep 3 seconds so that the endpoint is populated into the EndpointRegistry - //Thread.sleep(3000); - - Helloworld service = factory.getService(Helloworld.class, "HelloworldService"); - - String response = service.sayHello("test"); - if (response == null || !response.equals("Hello test")){ - throw new Exception("Test failed - expecting 'Hello test' got " + response); - } else { - System.out.println("Test success - " + response); - } - - //TODO - When using the hazelcast registry (or client) it causes the - // JVM to hang on shutdown as it created non-daemon threads - // So destroy the node factory here which should bring down - // the runtime and hence hazelcast. - // There's currently no interface on the client factory - // for doing this so we may need to talk to OASIS about adding one - // or just rely on the runtime hosting the classes using the SCAClient - // when it's on its way down - //NodeFactory.getInstance().destroy(); - } - - public static void main(String[] args) throws Exception { - SCAClient client = new SCAClient(); - client.testSCAClient(); - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/two-nodes-two-vms-hazelcast/src/test/java/itest/Service.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/two-nodes-two-vms-hazelcast/src/test/java/itest/Service.java deleted file mode 100644 index 0c9659b0ef..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/two-nodes-two-vms-hazelcast/src/test/java/itest/Service.java +++ /dev/null @@ -1,59 +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 itest; - -import java.net.URI; - -import org.apache.tuscany.sca.binding.rmi.RMIBinding; -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; -import org.junit.AfterClass; -import org.junit.BeforeClass; -import org.junit.Test; - -public class Service { - - private static Node serviceNode; - - @BeforeClass - public static void setUpBeforeClass() throws Exception { - serviceNode = NodeFactory.newInstance().createNode(URI.create("tuscany:default"), "../helloworld-service/target/classes"); - serviceNode.start(); - } - - @Test - public void testNothing() throws Exception { - // Stay for 1 min - Thread.sleep(60000); - } - - @AfterClass - public static void tearDownAfterClass() throws Exception { - if (serviceNode != null) { - serviceNode.stop(); - } - } - - public static void main(String[] args) throws Exception { - Service.setUpBeforeClass(); - new Service().testNothing(); - Service.tearDownAfterClass(); - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/two-nodes-two-vms-test/build.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/two-nodes-two-vms-test/build.xml deleted file mode 100644 index fa7e963e87..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/two-nodes-two-vms-test/build.xml +++ /dev/null @@ -1,38 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/two-nodes-two-vms-test/client-config.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/two-nodes-two-vms-test/client-config.xml deleted file mode 100644 index 7be4d58190..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/two-nodes-two-vms-test/client-config.xml +++ /dev/null @@ -1,39 +0,0 @@ - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/two-nodes-two-vms-test/client.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/two-nodes-two-vms-test/client.xml deleted file mode 100644 index 8e7c744940..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/two-nodes-two-vms-test/client.xml +++ /dev/null @@ -1,31 +0,0 @@ - - - - - - - - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/two-nodes-two-vms-test/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/two-nodes-two-vms-test/pom.xml deleted file mode 100644 index 805a74da84..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/two-nodes-two-vms-test/pom.xml +++ /dev/null @@ -1,104 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-itest - 2.0-M5 - ../pom.xml - - itest-nodes-two-nodes-two-vms-test - Apache Tuscany SCA iTest Nodes Two Nodes Two VMs Test - - - - org.apache.tuscany.sca - tuscany-domain-node - 2.0-M5 - - - org.apache.tuscany.sca - tuscany-endpoint-tribes - 2.0-M5 - - - org.apache.tuscany.sca - itest-nodes-helloworld-iface - 2.0-M5 - - - org.apache.tuscany.sca - tuscany-node-impl - 2.0-M5 - - - org.apache.tuscany.sca - tuscany-node-launcher - 2.0-M5 - - - org.apache.tuscany.sca - tuscany-sca-client-impl - 2.0-M5 - - - org.apache.tuscany.sca - tuscany-implementation-java-runtime - 2.0-M5 - - - org.apache.tuscany.sca - tuscany-binding-rmi-runtime - 2.0-M5 - - - org.apache.tuscany.sca - tuscany-host-jetty - 2.0-M5 - - - - - - - - org.apache.maven.plugins - maven-antrun-plugin - - - run-samples - test - - run - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/two-nodes-two-vms-test/server-config.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/two-nodes-two-vms-test/server-config.xml deleted file mode 100644 index 590cf3bddb..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/two-nodes-two-vms-test/server-config.xml +++ /dev/null @@ -1,39 +0,0 @@ - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/two-nodes-two-vms-test/server.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/two-nodes-two-vms-test/server.xml deleted file mode 100644 index 05a5aa16e9..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/two-nodes-two-vms-test/server.xml +++ /dev/null @@ -1,33 +0,0 @@ - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/two-nodes-two-vms-test/src/test/java/itest/Client.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/two-nodes-two-vms-test/src/test/java/itest/Client.java deleted file mode 100644 index 1d4520d57c..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/two-nodes-two-vms-test/src/test/java/itest/Client.java +++ /dev/null @@ -1,69 +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 itest; - -import java.io.File; - -import org.apache.tuscany.sca.binding.rmi.RMIBinding; -import org.apache.tuscany.sca.domain.node.DomainNode; -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; -import org.junit.AfterClass; -import org.junit.BeforeClass; -import org.junit.Test; - -public class Client { - - private static Node clientNode; -// private static DomainNode clientNode; - - @BeforeClass - public static void setUpBeforeClass() throws Exception { - NodeFactory factory = NodeFactory.newInstance(); - - clientNode = factory.createNode(new File("client-config.xml").toURI().toURL()); - - try { - clientNode.start(); - } catch (Exception ex){ - ex.printStackTrace(); - throw ex; - } - -// clientNode = new DomainNode("tribes:default", new String []{"../helloworld-client/target/itest-nodes-helloworld-client-2.0-M5.jar"}); - } - - @Test - public void testNothing() throws Exception { - - } - - @AfterClass - public static void tearDownAfterClass() throws Exception { - if (clientNode != null) { - clientNode.stop(); - } - } - - public static void main(String[] args) throws Exception { - Client.setUpBeforeClass(); - Client.tearDownAfterClass(); - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/two-nodes-two-vms-test/src/test/java/itest/Service.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/two-nodes-two-vms-test/src/test/java/itest/Service.java deleted file mode 100644 index 7323c2c122..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/nodes/two-nodes-two-vms-test/src/test/java/itest/Service.java +++ /dev/null @@ -1,61 +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 itest; - -import java.io.File; - -import org.apache.tuscany.sca.binding.rmi.RMIBinding; -import org.apache.tuscany.sca.domain.node.DomainNode; -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; -import org.junit.AfterClass; -import org.junit.BeforeClass; -import org.junit.Test; - -public class Service { - - private static Node serviceNode; -// private static DomainNode serviceNode; - - @BeforeClass - public static void setUpBeforeClass() throws Exception { - NodeFactory factory = NodeFactory.newInstance(); - - serviceNode = factory.createNode(new File("server-config.xml").toURI().toURL()); - serviceNode.start(); - -// serviceNode = new DomainNode("tribes:default", new String[]{"../helloworld-service/target/classes"}); - - } - - @Test - public void testNothing() throws Exception { - synchronized (this) { - this.wait(); - } - } - - @AfterClass - public static void tearDownAfterClass() throws Exception { - if (serviceNode != null) { - serviceNode.stop(); - } - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/oneway/build.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/oneway/build.xml deleted file mode 100644 index 34eaf810b3..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/oneway/build.xml +++ /dev/null @@ -1,127 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/oneway/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/oneway/pom.xml deleted file mode 100644 index 80f088a7fc..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/oneway/pom.xml +++ /dev/null @@ -1,64 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-itest - 2.0-M5 - ../pom.xml - - itest-oneway - Apache Tuscany SCA iTest OneWay - 2.0-M5 - - - - org.apache.tuscany.sca - tuscany-node-api - ${pom.version} - - - - org.apache.tuscany.sca - tuscany-node-impl - ${pom.version} - - - - org.apache.tuscany.sca - tuscany-binding-ws-runtime-axis2 - ${pom.version} - - - - org.apache.tuscany.sca - tuscany-host-jetty - ${pom.version} - - - - org.apache.tuscany.sca - tuscany-implementation-java-runtime - ${pom.version} - runtime - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/oneway/src/main/java/org/apache/tuscany/sca/itest/oneway/OneWayClient.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/oneway/src/main/java/org/apache/tuscany/sca/itest/oneway/OneWayClient.java deleted file mode 100644 index ecd239d5fb..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/oneway/src/main/java/org/apache/tuscany/sca/itest/oneway/OneWayClient.java +++ /dev/null @@ -1,40 +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 org.apache.tuscany.sca.itest.oneway; - -/** - * The client for the oneway itest. - * - * @version $Rev$ $Date$ - */ -public interface OneWayClient { - - /** - * This method will invoke the doSomething() @OneWay method on the OneWayService - * the specified number of times. - * - * @param count The number of times to invoke doSomething() on the OneWayService - */ - void doSomething(int count); - - /** - * This method will invoke a @OneWay method that throws an exception. - */ - void doSomethingWhichThrowsException(); -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/oneway/src/main/java/org/apache/tuscany/sca/itest/oneway/OneWayService.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/oneway/src/main/java/org/apache/tuscany/sca/itest/oneway/OneWayService.java deleted file mode 100644 index ba74b67d31..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/oneway/src/main/java/org/apache/tuscany/sca/itest/oneway/OneWayService.java +++ /dev/null @@ -1,47 +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 org.apache.tuscany.sca.itest.oneway; - - -import org.oasisopen.sca.annotation.OneWay; -import org.oasisopen.sca.annotation.Remotable; - - -/** - * The service interface used when testing @OneWay interactions. - * - * @version $Rev$ $Date$ - */ -@Remotable -public interface OneWayService { - - /** - * This OneWay method will increment the callCount by 1. - * - * @param count Not used - */ - @OneWay - void doSomething(int count); - - /** - * This one way method will throw a NullPointerException. - */ - @OneWay - void doSomethingWhichThrowsException(); -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/oneway/src/main/java/org/apache/tuscany/sca/itest/oneway/impl/OneWayClientImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/oneway/src/main/java/org/apache/tuscany/sca/itest/oneway/impl/OneWayClientImpl.java deleted file mode 100644 index 8ed3c3d638..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/oneway/src/main/java/org/apache/tuscany/sca/itest/oneway/impl/OneWayClientImpl.java +++ /dev/null @@ -1,64 +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 org.apache.tuscany.sca.itest.oneway.impl; - -import org.apache.tuscany.sca.itest.oneway.OneWayClient; -import org.apache.tuscany.sca.itest.oneway.OneWayService; -import org.junit.Assert; -import org.oasisopen.sca.annotation.Reference; - - -/** - * The client for the oneway itest. - * - * @version $Rev$ $Date$ - */ -public class OneWayClientImpl implements OneWayClient { - /** - * Injected reference to the OneWayService. - */ - @Reference - protected OneWayService oneWayService; - - /** - * Tracks the number of calls of the doSomething() method on the OneWayService. - */ - public static int callCount = 0; - - /** - * {@inheritDoc} - */ - public void doSomething(int count) { - callCount = callCount + count; - - for (int loopCount = 0; loopCount < count; loopCount++) { - //System.out.println("Client: doSomething " + loopCount); - //System.out.flush(); - oneWayService.doSomething(loopCount); - } - } - - /** - * {@inheritDoc} - */ - public void doSomethingWhichThrowsException() { - Assert.assertNotNull(oneWayService); - oneWayService.doSomethingWhichThrowsException(); - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/oneway/src/main/java/org/apache/tuscany/sca/itest/oneway/impl/OneWayServiceImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/oneway/src/main/java/org/apache/tuscany/sca/itest/oneway/impl/OneWayServiceImpl.java deleted file mode 100644 index ef88c22baa..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/oneway/src/main/java/org/apache/tuscany/sca/itest/oneway/impl/OneWayServiceImpl.java +++ /dev/null @@ -1,68 +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 org.apache.tuscany.sca.itest.oneway.impl; - -import org.apache.tuscany.sca.itest.oneway.OneWayService; - -import edu.emory.mathcs.backport.java.util.concurrent.atomic.AtomicInteger; - -/** - * The service for the oneway itest. - * - * @version $Rev$ $Date$ - */ - - -public class OneWayServiceImpl implements OneWayService { - - /** - * This is the error message that will be in the Exception thrown by - * the doSomethingWhichThrowsException() method. - */ - public static final String EXCEPTION_MESSAGE = "Sample RuntimeException from a @OneWay method"; - - /** - * Counts the number of invocations to doSomething(). - */ - public static final AtomicInteger CALL_COUNT = new AtomicInteger(); - - /** - * Counts the number of invocations of the doSomethingWhichThrowsException() method. - */ - public static final AtomicInteger CALL_COUNT_FOR_THROWS_EXCEPTION_METHOD = new AtomicInteger(); - - /** - * {@inheritDoc} - */ - public void doSomething(int count) { - CALL_COUNT.incrementAndGet(); - - // System.out.println("Service: doSomething " + count + " callCount = " + callCount); - // System.out.flush(); - } - - /** - * {@inheritDoc} - */ - public void doSomethingWhichThrowsException() { - System.out.println("OneWay invoked. About to throw an Exception"); - CALL_COUNT_FOR_THROWS_EXCEPTION_METHOD.incrementAndGet(); - throw new NullPointerException(EXCEPTION_MESSAGE); - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/oneway/src/main/resources/OneWayContribution/META-INF/sca-deployables/oneWay.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/oneway/src/main/resources/OneWayContribution/META-INF/sca-deployables/oneWay.composite deleted file mode 100644 index b375944bbd..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/oneway/src/main/resources/OneWayContribution/META-INF/sca-deployables/oneWay.composite +++ /dev/null @@ -1,57 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/oneway/src/test/java/org/apache/tuscany/sca/itest/oneway/OneWayTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/oneway/src/test/java/org/apache/tuscany/sca/itest/oneway/OneWayTestCase.java deleted file mode 100644 index 1f771ea4ce..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/oneway/src/test/java/org/apache/tuscany/sca/itest/oneway/OneWayTestCase.java +++ /dev/null @@ -1,235 +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 org.apache.tuscany.sca.itest.oneway; - -import java.io.File; -import java.util.concurrent.atomic.AtomicBoolean; -import java.util.logging.Handler; -import java.util.logging.Level; -import java.util.logging.LogRecord; -import java.util.logging.Logger; - -import junit.framework.Assert; - -import org.apache.tuscany.sca.core.invocation.NonBlockingInterceptor; -import org.apache.tuscany.sca.itest.oneway.impl.OneWayClientImpl; -import org.apache.tuscany.sca.itest.oneway.impl.OneWayServiceImpl; -import org.apache.tuscany.sca.node.Contribution; -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; -import org.junit.After; -import org.junit.Before; -import org.junit.Test; - -/** - * This test case will test invoking @OneWay operations. - * - * @version $Date$ $Revision$ - */ -public class OneWayTestCase { - /** - * Maximum period of time that we are prepared to wait for all the @OneWay - * method calls to complete in milliseconds. - */ - private static final int MAX_SLEEP_TIME = 10000; - - private Node node; - - /** - * Initialise the SCADomain. - * - * @throws Exception Failed to initialise the SCADomain - */ - @Before - public void setUp() throws Exception { - - NodeFactory factory = NodeFactory.newInstance(); - node = factory.createNode(new File("src/main/resources/OneWayContribution/META-INF/sca-deployables/oneWay.composite").toURI().toURL().toString(), - new Contribution("TestContribution", new File("src/main/resources/OneWayContribution/META-INF/sca-deployables/").toURI().toURL().toString())); - node.start(); - - } - - /** - * This method will ensure that the SCADomain is shutdown. - * - * @throws Exception Failed to shutdown the SCADomain - */ - @After - public void tearDown() throws Exception { - node.stop(); - } - - /** - * This test will test repeatedly calling a @OneWay operation and ensure that the correct - * number of @OneWay operations are run. - * - * @throws Exception Test failed - */ - @Test - public void testOneWay() throws Exception { - OneWayClient client = - node.getService(OneWayClient.class, "OneWayClientComponent"); - - int count = 100; - - for (int i = 0; i < 10; i++) { - // System.out.println("Test: doSomething " + count); - // System.out.flush(); - client.doSomething(count); - - // TUSCANY-2192 - We need to sleep to allow the @OneWay method calls to complete. - // Note: This can take different periods depending on the speed and load - // on the computer where the test is being run. - // This loop will wait for the required number of @OneWay method calls to - // have taken place or MAX_SLEEP_TIME to have passed. - long startSleep = System.currentTimeMillis(); - while (OneWayClientImpl.callCount != OneWayServiceImpl.CALL_COUNT.get() - && System.currentTimeMillis() - startSleep < MAX_SLEEP_TIME) { - Thread.sleep(100); - // System.out.println("" + OneWayClientImpl.callCount + "," + OneWayServiceImpl.callCount); - } - - System.out.println("Finished callCount = " + OneWayServiceImpl.CALL_COUNT); - - Assert.assertEquals(OneWayClientImpl.callCount, OneWayServiceImpl.CALL_COUNT.get()); - } - } - - /** - * This method will invoke a @OneWay method that throws an exception - * when invoked over a SCA Binding which uses the NonBlockingInterceptor and - * ensure that the Exception is logged. - * See TUSCANY-2225 - */ - @Test - public void testOneWayUsingNonBlockingInterceptorThrowsAnException() { - OneWayClient client = - node.getService(OneWayClient.class, "OneWayClientComponentSCABinding"); - - // We need to modify the JDK Logger for the NonBlockingInterceptor so we - // can check that it logs a message for the @OneWay invocation that throws - // an Exception - Logger nbiLogger = Logger.getLogger(NonBlockingInterceptor.class.getName()); - DummyJDKHandler handler = new DummyJDKHandler(); - nbiLogger.addHandler(handler); - - // Add a message on the console to explain the stack dump that is going to be - // displayed and state that this is not a problem but expected behaviour - System.out.println(); - System.out.println("-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-"); - System.out.println("IMPORTANT: The error message that appears on the console"); - System.out.println("below is an expected error if it is a NullPointerException"); - System.out.println(" with the message of:"); - System.out.println(" \"" + OneWayServiceImpl.EXCEPTION_MESSAGE + "\""); - System.out.println("-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-"); - System.out.println(); - System.out.flush(); - - // Invoke the @OneWay method that throws an exception - client.doSomethingWhichThrowsException(); - - // The logging is done asynchronously so we will need to wait a bit before - // the log message appears. - long start = System.currentTimeMillis(); - boolean logged = false; - while (System.currentTimeMillis() - start < MAX_SLEEP_TIME && !logged) { - // Has the log message been logged? - if (handler.exceptionLogged.get()) { - logged = true; - } else { - try { - Thread.sleep(25); - } catch (InterruptedException ex) { - Assert.fail("Unexpected exception " + ex); - } - } - } - - // Add a message explaining that errors beyond this point should be reported - System.out.println(); - System.out.println("-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-"); - System.out.println("End of expected exceptions. Any errors beyond this point are errors!"); - System.out.println("-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-"); - System.out.println(); - System.out.flush(); - - // Remove the handler - nbiLogger.removeHandler(handler); - - // Make sure that the exception was logged - Assert.assertTrue(handler.exceptionLogged.get()); - } - - /** - * A handler that is added to the JDK Logging system to examine the log messages - * generated to ensure that a @OneWay method that throws an Exception will - * generate a log message. - */ - private class DummyJDKHandler extends Handler { - - /** - * Used to track whether the exception has been logged. - */ - private AtomicBoolean exceptionLogged = new AtomicBoolean(false); - - /** - * Constructor. - */ - private DummyJDKHandler() { - super.setLevel(Level.ALL); - } - - /** - * {@inheritDoc} - */ - @Override - public void close() throws SecurityException { - // Nothing to do - } - - /** - * {@inheritDoc} - */ - @Override - public void flush() { - // Nothing to do - } - - /** - * Examines the LogRecord and checks whether it matches the one we are looking for. - * If it matches, it will set exceptionLogged to True. - * - * @param record The Log Record that is being published - */ - @Override - public void publish(LogRecord record) { - // The log message we are looking for is Severe - if (record.getLevel() == Level.SEVERE) { - if (record.getThrown() != null - && record.getThrown().toString().indexOf( - OneWayServiceImpl.EXCEPTION_MESSAGE) != -1) { - // We have found our Exception. - exceptionLogged.set(true); - } - } - } - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/operation-overloading/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/operation-overloading/pom.xml deleted file mode 100644 index 8475567ace..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/operation-overloading/pom.xml +++ /dev/null @@ -1,53 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-itest - 2.0-M5 - ../pom.xml - - itest-operation-overloading - Apache Tuscany SCA iTest Operation Overloading - - - - org.apache.tuscany.sca - tuscany-node-api - 2.0-M5 - - - - org.apache.tuscany.sca - tuscany-node-impl - 2.0-M5 - test - - - - org.apache.tuscany.sca - tuscany-implementation-java-runtime - 2.0-M5 - test - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/operation-overloading/src/main/java/org/apache/tuscany/sca/test/opoverload/OverloadASourceTarget.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/operation-overloading/src/main/java/org/apache/tuscany/sca/test/opoverload/OverloadASourceTarget.java deleted file mode 100644 index 1f589b44f4..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/operation-overloading/src/main/java/org/apache/tuscany/sca/test/opoverload/OverloadASourceTarget.java +++ /dev/null @@ -1,61 +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 org.apache.tuscany.sca.test.opoverload; - -/** - * This is an Interface which has methods declared but not implemented, These methods will be implemented in - * OverloadATarget Class and OverloadASource This class has methods with overloaded parameters. - */ - -//@AllowsPassByReference -public interface OverloadASourceTarget { - String opName = "operationA:"; - - /** - * Method with no parameters - */ - String operationA(); - - /** - * Method with one integer parameter - */ - String operationA(int parm1); - - /** - * Method with one integer parameter and one string parameter - */ - String operationA(int parm1, String parm2); - - /** - * Method with one one string parameter and one integer parameter - */ - String operationA(String parm1, int parm2); - - /** - * Method with one string parameter - */ - String operationA(String string); - - /** - * Method which throws an illegal argument exception in case of any exceptions. - */ - String[] operationAall(); - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/operation-overloading/src/main/java/org/apache/tuscany/sca/test/opoverload/impl/OverloadASource.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/operation-overloading/src/main/java/org/apache/tuscany/sca/test/opoverload/impl/OverloadASource.java deleted file mode 100644 index a30d3611fb..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/operation-overloading/src/main/java/org/apache/tuscany/sca/test/opoverload/impl/OverloadASource.java +++ /dev/null @@ -1,113 +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 org.apache.tuscany.sca.test.opoverload.impl; - -import java.util.ArrayList; - -import org.apache.tuscany.sca.test.opoverload.OverloadASourceTarget; -import org.oasisopen.sca.annotation.Reference; -import org.oasisopen.sca.annotation.Service; - -/** - * This class Implements the interface OverloadASourceTarget, and gives implementation for all methods which are - * declared in the OverloadASourceTarget interface. - */ -@Service(OverloadASourceTarget.class) -public class OverloadASource implements OverloadASourceTarget { - public OverloadASourceTarget overloadASourceTarget; - - /** - * This is a default constructor - */ - public OverloadASource() { - - } - - /** - * @return - * @see org.apache.tuscany.sca.test.opoverload.OverloadASourceTarget#operationA() - */ - public String[] operationAall() { - assert overloadASourceTarget != null : "reference overloadASourceTarget is null"; - ArrayList ret = new ArrayList(); - ret.add(overloadASourceTarget.operationA()); - ret.add(overloadASourceTarget.operationA(11)); - ret.add(overloadASourceTarget.operationA("eleven")); - ret.add(overloadASourceTarget.operationA(3, "three")); - ret.add(overloadASourceTarget.operationA("four", 4)); - return (String[])ret.toArray(new String[ret.size()]); - } - - /** - * @return - * @see org.apache.tuscany.sca.test.opoverload.OverloadASourceTarget#operationA() - */ - public String operationA() { - assert overloadASourceTarget != null : "reference overloadASourceTarget is null"; - return overloadASourceTarget.operationA(); - } - - /** - * @param parm1 - * @return - * @see org.apache.tuscany.sca.test.opoverload.OverloadASourceTarget#operationA(int) - */ - public String operationA(int parm1) { - assert overloadASourceTarget != null : "reference overloadASourceTarget is null"; - return overloadASourceTarget.operationA(parm1); - } - - /** - * @param parm1 - * @param parm2 - * @return - * @see org.apache.tuscany.sca.test.opoverload.OverloadASourceTarget#operationA(int, java.lang.String) - */ - public String operationA(int parm1, String parm2) { - assert overloadASourceTarget != null : "reference overloadASourceTarget is null"; - return overloadASourceTarget.operationA(parm1, parm2); - } - - public String operationA(String string) { - assert overloadASourceTarget != null : "reference overloadASourceTarget is null"; - return overloadASourceTarget.operationA(string); - } - - /** - * @param parm1 - * @param parm2 - * @return - * @see org.apache.tuscany.sca.test.opoverload.OverloadASourceTarget#operationA(java.lang.String, int) - */ - public String operationA(String parm1, int parm2) { - assert overloadASourceTarget != null : "reference overloadASourceTarget is null"; - return overloadASourceTarget.operationA(parm1, parm2); - } - - /** - * This method which is used by all the overloaded functions to set the source target - */ - @Reference - public void setOverloadASourceTarget(OverloadASourceTarget overloadASourceTarget) { - assert overloadASourceTarget != null : "reference overloadASourceTarget is set tonull"; - this.overloadASourceTarget = overloadASourceTarget; - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/operation-overloading/src/main/java/org/apache/tuscany/sca/test/opoverload/impl/OverloadATarget.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/operation-overloading/src/main/java/org/apache/tuscany/sca/test/opoverload/impl/OverloadATarget.java deleted file mode 100644 index 9ec60eb78f..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/operation-overloading/src/main/java/org/apache/tuscany/sca/test/opoverload/impl/OverloadATarget.java +++ /dev/null @@ -1,99 +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 org.apache.tuscany.sca.test.opoverload.impl; - -import org.apache.tuscany.sca.test.opoverload.OverloadASourceTarget; -import org.oasisopen.sca.annotation.Service; - -/** - * This class Implements the interface OverloadASourceTarget, and gives implementation for all methods which are - * declared in the OverloadASourceTarget interface. - */ -@Service(OverloadASourceTarget.class) -public class OverloadATarget implements OverloadASourceTarget { - - /** - * This is a default Constructor - */ - public OverloadATarget() { - - } - - /* - * (non-Javadoc) - * - * @see org.apache.tuscany.sca.test.opoverload.OverloadASourceTarget#operationA(int) - */ - public String operationA(int parm1) { - final String ret = opName + parm1; - out(ret); - return ret; - - } - - /* - * (non-Javadoc) - * - * @see org.apache.tuscany.sca.test.opoverload.OverloadASourceTarget#operationA(int, java.lang.String) - */ - public String operationA(int parm1, String parm2) { - final String ret = opName + parm1 + parm2; - out(ret); - return ret; - - } - - /* - * (non-Javadoc) - * - * @see org.apache.tuscany.sca.test.opoverload.OverloadASourceTarget#operationA() - */ - public String operationA() { - out(opName); - return opName; - - } - - public String operationA(String parm1, int parm2) { - final String ret = opName + parm1 + parm2; - out(ret); - return ret; - } - - public String operationA(String parm1) { - final String ret = opName + parm1; - out(ret); - return ret; - } - - /** - * This method is used to print the message returned by all the overloaded functions - */ - private void out(String msg) { - - java.lang.System.out.println(msg); - } - - public String[] operationAall() { - throw new IllegalArgumentException("not supported"); - - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/operation-overloading/src/main/resources/OperationOverload.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/operation-overloading/src/main/resources/OperationOverload.composite deleted file mode 100644 index cbf5aa2078..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/operation-overloading/src/main/resources/OperationOverload.composite +++ /dev/null @@ -1,34 +0,0 @@ - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/operation-overloading/src/test/java/org/apache/tuscany/sca/test/opoverload/impl/OverloadATestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/operation-overloading/src/test/java/org/apache/tuscany/sca/test/opoverload/impl/OverloadATestCase.java deleted file mode 100644 index 62e5c14ce2..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/operation-overloading/src/test/java/org/apache/tuscany/sca/test/opoverload/impl/OverloadATestCase.java +++ /dev/null @@ -1,98 +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 org.apache.tuscany.sca.test.opoverload.impl; - -import static org.junit.Assert.assertEquals; - -import org.apache.tuscany.sca.node.Contribution; -import org.apache.tuscany.sca.node.ContributionLocationHelper; -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; -import org.apache.tuscany.sca.test.opoverload.OverloadASourceTarget; -import org.junit.AfterClass; -import org.junit.BeforeClass; -import org.junit.Test; -public class OverloadATestCase { - - private static Node node; - private static OverloadASourceTarget overloadA; - - /** - * Method prefixed with 'test' is a test method where testing logic is written using various assert methods. This - * test verifies the values compared are same as the values retrieved from the SCA runtime. - */ - @Test - public void testOperationAall() { - String[] result = overloadA.operationAall(); - assertEquals(5, result.length); - assertEquals(OverloadASourceTarget.opName, result[0]); - assertEquals(OverloadASourceTarget.opName + 11, result[1]); - assertEquals(OverloadASourceTarget.opName + "eleven", result[2]); - assertEquals(OverloadASourceTarget.opName + 3 + "three", result[3]); - assertEquals(OverloadASourceTarget.opName + "four" + 4, result[4]); - } - - @Test - public void testOperationAInt() { - String result = overloadA.operationA(29); - assertEquals(OverloadASourceTarget.opName + 29, result); - } - - @Test - public void testOperationAString() { - String result = overloadA.operationA("rick:-)"); - assertEquals(OverloadASourceTarget.opName + "rick:-)", result); - } - - @Test - public void testOperationAIntString() { - String result = overloadA.operationA(123, "Tuscany"); - assertEquals(OverloadASourceTarget.opName + 123 + "Tuscany", result); - } - - @Test - public void testOperationStringInt() { - String result = overloadA.operationA("StringInt", 77); - assertEquals(OverloadASourceTarget.opName + "StringInt" + 77, result); - } - - /** - * setUp() is a method in JUnit Frame Work which is executed before all others methods in the class extending - * unit.framework.TestCase. So this method is used to create a test Embedded SCA node, to start the SCA node and - * to get a reference to the contribution service - */ - - @BeforeClass - public static void setUp() throws Exception { - String location = ContributionLocationHelper.getContributionLocation("OperationOverload.composite"); - node = NodeFactory.newInstance().createNode("OperationOverload.composite", new Contribution("c1", location)); - node.start(); - overloadA = node.getService(OverloadASourceTarget.class, "OverloadASourceComponent"); - } - - /** - * tearDown() is a method in JUnit Frame Work which is executed after all other methods in the class extending - * unit.framework.TestCase. So this method is used to close the SCA node. - */ - - @AfterClass - public static void tearDown() throws Exception { - node.stop(); - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/policies/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/policies/pom.xml deleted file mode 100644 index efa73351e6..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/policies/pom.xml +++ /dev/null @@ -1,59 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-itest - 2.0-M5 - ../pom.xml - - itest-policies - Apache Tuscany SCA iTest Policies - - - - org.apache.tuscany.sca - tuscany-node-api - 2.0-M5 - - - - org.apache.tuscany.sca - tuscany-policy-logging - 2.0-M5 - - - - org.apache.tuscany.sca - tuscany-node-impl - 2.0-M5 - test - - - - org.apache.tuscany.sca - tuscany-implementation-java-runtime - 2.0-M5 - test - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/policies/src/main/java/org/apache/tuscany/sca/itest/policies/CreditCard.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/policies/src/main/java/org/apache/tuscany/sca/itest/policies/CreditCard.java deleted file mode 100644 index fd33be01d6..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/policies/src/main/java/org/apache/tuscany/sca/itest/policies/CreditCard.java +++ /dev/null @@ -1,65 +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 org.apache.tuscany.sca.itest.policies; - -import java.io.Serializable; - -/** - * Credit Card - */ -public class CreditCard implements Serializable { - private static final long serialVersionUID = -6107293191546007197L; - private String type; - private String number; - private String owner; - private int expMonth; - private int expYear; - - public String getType() { - return type; - } - public void setType(String type) { - this.type = type; - } - public String getNumber() { - return number; - } - public void setNumber(String number) { - this.number = number; - } - public String getOwner() { - return owner; - } - public void setOwner(String owner) { - this.owner = owner; - } - public int getExpMonth() { - return expMonth; - } - public void setExpMonth(int expMonth) { - this.expMonth = expMonth; - } - public int getExpYear() { - return expYear; - } - public void setExpYear(int expYear) { - this.expYear = expYear; - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/policies/src/main/java/org/apache/tuscany/sca/itest/policies/CreditCardPayment.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/policies/src/main/java/org/apache/tuscany/sca/itest/policies/CreditCardPayment.java deleted file mode 100644 index 368179dc29..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/policies/src/main/java/org/apache/tuscany/sca/itest/policies/CreditCardPayment.java +++ /dev/null @@ -1,37 +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 org.apache.tuscany.sca.itest.policies; - -import org.oasisopen.sca.annotation.Authentication; -import org.oasisopen.sca.annotation.Confidentiality; -import org.oasisopen.sca.annotation.Remotable; - -/** - * - */ -@Remotable -@Authentication -public interface CreditCardPayment { - String COMPLETED = "Completed"; - String REJECTED = "Rejected"; - - @Confidentiality - String authorize(CreditCard creditCard, float amount); -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/policies/src/main/java/org/apache/tuscany/sca/itest/policies/Customer.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/policies/src/main/java/org/apache/tuscany/sca/itest/policies/Customer.java deleted file mode 100644 index 05ea341466..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/policies/src/main/java/org/apache/tuscany/sca/itest/policies/Customer.java +++ /dev/null @@ -1,51 +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 org.apache.tuscany.sca.itest.policies; - -import java.io.Serializable; - -/** - * Customer - */ -public class Customer implements Serializable { - private static final long serialVersionUID = 680227659536711695L; - private String id; - private String name; - private CreditCard creditCard; - - public String getId() { - return id; - } - public void setId(String id) { - this.id = id; - } - public String getName() { - return name; - } - public void setName(String name) { - this.name = name; - } - public CreditCard getCreditCard() { - return creditCard; - } - public void setCreditCard(CreditCard creditCard) { - this.creditCard = creditCard; - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/policies/src/main/java/org/apache/tuscany/sca/itest/policies/CustomerRegistry.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/policies/src/main/java/org/apache/tuscany/sca/itest/policies/CustomerRegistry.java deleted file mode 100644 index c9f50d08ee..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/policies/src/main/java/org/apache/tuscany/sca/itest/policies/CustomerRegistry.java +++ /dev/null @@ -1,27 +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 org.apache.tuscany.sca.itest.policies; - -/** - * - */ -public interface CustomerRegistry { - Customer find(String id); -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/policies/src/main/java/org/apache/tuscany/sca/itest/policies/Payment.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/policies/src/main/java/org/apache/tuscany/sca/itest/policies/Payment.java deleted file mode 100644 index cc7c555aff..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/policies/src/main/java/org/apache/tuscany/sca/itest/policies/Payment.java +++ /dev/null @@ -1,30 +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 org.apache.tuscany.sca.itest.policies; - -import org.oasisopen.sca.annotation.Remotable; - -/** - * - */ -@Remotable -public interface Payment { - String charge(String customerID, float amount); -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/policies/src/main/java/org/apache/tuscany/sca/itest/policies/impl/CreditCardPaymentImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/policies/src/main/java/org/apache/tuscany/sca/itest/policies/impl/CreditCardPaymentImpl.java deleted file mode 100644 index 01cc8ac636..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/policies/src/main/java/org/apache/tuscany/sca/itest/policies/impl/CreditCardPaymentImpl.java +++ /dev/null @@ -1,40 +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 org.apache.tuscany.sca.itest.policies.impl; - -import org.apache.tuscany.sca.itest.policies.CreditCard; -import org.apache.tuscany.sca.itest.policies.CreditCardPayment; - -/** - * - */ -public class CreditCardPaymentImpl implements CreditCardPayment { - - public String authorize(CreditCard creditCard, float amount) { - System.out.println(creditCard.getType() + " " + creditCard.getNumber()); - System.out.println(amount); - if (amount < 200f) { - return COMPLETED; - } else { - return REJECTED; - } - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/policies/src/main/java/org/apache/tuscany/sca/itest/policies/impl/CustomerRegistryImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/policies/src/main/java/org/apache/tuscany/sca/itest/policies/impl/CustomerRegistryImpl.java deleted file mode 100644 index 943720451f..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/policies/src/main/java/org/apache/tuscany/sca/itest/policies/impl/CustomerRegistryImpl.java +++ /dev/null @@ -1,78 +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 org.apache.tuscany.sca.itest.policies.impl; - -import java.util.HashMap; -import java.util.Map; - -import org.apache.tuscany.sca.itest.policies.CreditCard; -import org.apache.tuscany.sca.itest.policies.Customer; -import org.apache.tuscany.sca.itest.policies.CustomerRegistry; -import org.oasisopen.sca.annotation.Destroy; -import org.oasisopen.sca.annotation.Init; -import org.oasisopen.sca.annotation.Scope; -import org.oasisopen.sca.annotation.Service; - -/** - * - */ -@Service(CustomerRegistry.class) -@Scope("COMPOSITE") -public class CustomerRegistryImpl implements CustomerRegistry { - private Map customers = new HashMap(); - - - @Init - public void init() { - Customer c1 = new Customer(); - c1.setId("001"); - c1.setName("John Smith"); - CreditCard creditCard = new CreditCard(); - creditCard.setNumber("1234-5678-1234"); - creditCard.setType("Visa"); - creditCard.setOwner("John Smith"); - creditCard.setExpMonth(6); - creditCard.setExpYear(2015); - c1.setCreditCard(creditCard); - customers.put(c1.getId(), c1); - - Customer c2 = new Customer(); - c2.setId("002"); - c2.setName("Jane Smith"); - creditCard = new CreditCard(); - creditCard.setNumber("1234-5678-5678"); - creditCard.setType("MasterCard"); - creditCard.setOwner("Jane Smith"); - creditCard.setExpMonth(9); - creditCard.setExpYear(2012); - c2.setCreditCard(creditCard); - customers.put(c2.getId(), c2); - } - - public Customer find(String id) { - return customers.get(id); - } - - @Destroy - public void destroy() { - customers.clear(); - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/policies/src/main/java/org/apache/tuscany/sca/itest/policies/impl/PaymentImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/policies/src/main/java/org/apache/tuscany/sca/itest/policies/impl/PaymentImpl.java deleted file mode 100644 index b712b99388..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/policies/src/main/java/org/apache/tuscany/sca/itest/policies/impl/PaymentImpl.java +++ /dev/null @@ -1,54 +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 org.apache.tuscany.sca.itest.policies.impl; - -import org.apache.tuscany.sca.itest.policies.CreditCard; -import org.apache.tuscany.sca.itest.policies.CreditCardPayment; -import org.apache.tuscany.sca.itest.policies.Customer; -import org.apache.tuscany.sca.itest.policies.CustomerRegistry; -import org.apache.tuscany.sca.itest.policies.Payment; -import org.apache.tuscany.sca.policy.logging.Logging; -import org.oasisopen.sca.annotation.Authentication; -import org.oasisopen.sca.annotation.Confidentiality; -import org.oasisopen.sca.annotation.Reference; -import org.oasisopen.sca.annotation.Requires; - -/** - * - */ -@Logging -public class PaymentImpl implements Payment { - - @Reference - protected CustomerRegistry customerRegistry; - - @Reference - @Authentication - @Requires({Confidentiality.CONFIDENTIALITY_MESSAGE, Confidentiality.CONFIDENTIALITY_TRANSPORT}) - protected CreditCardPayment creditCardPayment; - - public String charge(String customerID, float amount) { - Customer customer = customerRegistry.find(customerID); - CreditCard creditCard = customer.getCreditCard(); - String status = creditCardPayment.authorize(creditCard, amount); - return status; - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/policies/src/main/resources/Customer.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/policies/src/main/resources/Customer.composite deleted file mode 100644 index 7c66c741f6..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/policies/src/main/resources/Customer.composite +++ /dev/null @@ -1,34 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/policies/src/main/resources/LoggingMessages.properties b/sca-java-2.x/tags/2.0-M5-RC3/itest/policies/src/main/resources/LoggingMessages.properties deleted file mode 100644 index ada808be0e..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/policies/src/main/resources/LoggingMessages.properties +++ /dev/null @@ -1,16 +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. diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/policies/src/main/resources/META-INF/definitions.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/policies/src/main/resources/META-INF/definitions.xml deleted file mode 100644 index f64f10ca62..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/policies/src/main/resources/META-INF/definitions.xml +++ /dev/null @@ -1,71 +0,0 @@ - - - - - - - FINE - LoggingMessages.properties - - - - - - - INFO - LoggingMessages.properties - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/policies/src/main/resources/META-INF/sca-contribution.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/policies/src/main/resources/META-INF/sca-contribution.xml deleted file mode 100644 index d5d1840754..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/policies/src/main/resources/META-INF/sca-contribution.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/policies/src/main/resources/Payment.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/policies/src/main/resources/Payment.composite deleted file mode 100644 index 20124467b0..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/policies/src/main/resources/Payment.composite +++ /dev/null @@ -1,57 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/policies/src/test/java/org/apache/tuscany/sca/itest/policies/PaymentTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/policies/src/test/java/org/apache/tuscany/sca/itest/policies/PaymentTestCase.java deleted file mode 100644 index 3385ee9071..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/policies/src/test/java/org/apache/tuscany/sca/itest/policies/PaymentTestCase.java +++ /dev/null @@ -1,69 +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 org.apache.tuscany.sca.itest.policies; - -import org.apache.tuscany.sca.node.Contribution; -import org.apache.tuscany.sca.node.ContributionLocationHelper; -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; -import org.junit.AfterClass; -import org.junit.Assert; -import org.junit.BeforeClass; -import org.junit.Test; - -public class PaymentTestCase { - private static Node node; - - @BeforeClass - public static void init() throws Exception { - try { - String location = ContributionLocationHelper.getContributionLocation("Payment.composite"); - node = NodeFactory.newInstance().createNode(new Contribution("c1", location)); - node.start(); - } catch (Exception e) { - e.printStackTrace(); - throw e; - } - } - - @AfterClass - public static void destroy() throws Exception { - if (node != null) { - node.stop(); - } - } - - @Test - public void testPayment() { - Payment payment = node.getService(Payment.class, "Payment"); - String status = payment.charge("001", 100f); - Assert.assertEquals(CreditCardPayment.COMPLETED, status); - - status = payment.charge("002", 300f); - Assert.assertEquals(CreditCardPayment.REJECTED, status); - } - - public static void main(String[] args) throws Exception { - PaymentTestCase.init(); - PaymentTestCase tester = new PaymentTestCase(); - tester.testPayment(); - PaymentTestCase.destroy(); - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/policy-transaction/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/policy-transaction/pom.xml deleted file mode 100644 index f965a75e25..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/policy-transaction/pom.xml +++ /dev/null @@ -1,72 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-itest - 2.0-M5 - ../pom.xml - - itest-policy-transaction - Apache Tuscany SCA iTest Policy Transaction - - - - org.apache.tuscany.sca - tuscany-node-api - 2.0-M5 - - - - org.apache.tuscany.sca - tuscany-policy-transaction-runtime-geronimo - 2.0-M5 - - - - org.apache.tuscany.sca - tuscany-node-impl - 2.0-M5 - test - - - - org.apache.tuscany.sca - tuscany-implementation-java-runtime - 2.0-M5 - test - - - - org.slf4j - slf4j-api - 1.5.3 - test - - - - org.slf4j - slf4j-simple - 1.5.3 - test - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/policy-transaction/src/main/java/customer/Customer.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/policy-transaction/src/main/java/customer/Customer.java deleted file mode 100644 index b58547bf47..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/policy-transaction/src/main/java/customer/Customer.java +++ /dev/null @@ -1,44 +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 customer; - -import java.io.Serializable; - -/** - * Customer - */ -public class Customer implements Serializable { - private static final long serialVersionUID = 680227659536711695L; - private String id; - private String name; - - public String getId() { - return id; - } - public void setId(String id) { - this.id = id; - } - public String getName() { - return name; - } - public void setName(String name) { - this.name = name; - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/policy-transaction/src/main/java/customer/CustomerRegistry.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/policy-transaction/src/main/java/customer/CustomerRegistry.java deleted file mode 100644 index 4a05f0d0a8..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/policy-transaction/src/main/java/customer/CustomerRegistry.java +++ /dev/null @@ -1,30 +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 customer; - -import org.oasisopen.sca.annotation.Remotable; - -/** - * - */ -@Remotable -public interface CustomerRegistry { - Customer find(String id); -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/policy-transaction/src/main/java/customer/impl/CustomerRegistryImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/policy-transaction/src/main/java/customer/impl/CustomerRegistryImpl.java deleted file mode 100644 index d2d6aa1f44..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/policy-transaction/src/main/java/customer/impl/CustomerRegistryImpl.java +++ /dev/null @@ -1,63 +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 customer.impl; - -import java.util.HashMap; -import java.util.Map; - -import org.oasisopen.sca.annotation.Destroy; -import org.oasisopen.sca.annotation.Init; -import org.oasisopen.sca.annotation.Scope; -import org.oasisopen.sca.annotation.Service; - -import customer.Customer; -import customer.CustomerRegistry; - -/** - * - */ -@Scope("COMPOSITE") -@Service(CustomerRegistry.class) -public class CustomerRegistryImpl implements CustomerRegistry { - private Map customers = new HashMap(); - - @Init - public void init() { - Customer c1 = new Customer(); - c1.setId("001"); - c1.setName("John Smith"); - customers.put(c1.getId(), c1); - - Customer c2 = new Customer(); - c2.setId("002"); - c2.setName("Jane Smith"); - customers.put(c2.getId(), c2); - } - - public Customer find(String id) { - return customers.get(id); - } - - @Destroy - public void destroy() { - customers.clear(); - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/policy-transaction/src/main/resources/Customer.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/policy-transaction/src/main/resources/Customer.composite deleted file mode 100644 index 7047de3663..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/policy-transaction/src/main/resources/Customer.composite +++ /dev/null @@ -1,30 +0,0 @@ - - - - - - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/policy-transaction/src/test/java/org/apache/tuscany/sca/itest/policy/transaction/CustomerTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/policy-transaction/src/test/java/org/apache/tuscany/sca/itest/policy/transaction/CustomerTestCase.java deleted file mode 100644 index 2d83cd0ee5..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/policy-transaction/src/test/java/org/apache/tuscany/sca/itest/policy/transaction/CustomerTestCase.java +++ /dev/null @@ -1,69 +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 org.apache.tuscany.sca.itest.policy.transaction; - -import org.apache.tuscany.sca.node.Contribution; -import org.apache.tuscany.sca.node.ContributionLocationHelper; -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; -import org.junit.AfterClass; -import org.junit.Assert; -import org.junit.BeforeClass; -import org.junit.Test; - -import customer.Customer; -import customer.CustomerRegistry; - -public class CustomerTestCase { - private static Node node; - - @BeforeClass - public static void init() throws Exception { - try { - String location = ContributionLocationHelper.getContributionLocation("Customer.composite"); - node = NodeFactory.newInstance().createNode("Customer.composite",new Contribution("c1", location)); - node.start(); - } catch (Exception e) { - e.printStackTrace(); - throw e; - } - } - - @AfterClass - public static void destroy() throws Exception { - if (node != null) { - node.stop(); - } - } - - @Test - public void testCustomer() { - CustomerRegistry customerRegistry = node.getService(CustomerRegistry.class, "CustomerRegistryComponent"); - Customer customer = customerRegistry.find("001"); - Assert.assertEquals(customer.getName(), "John Smith"); - } - - public static void main(String[] args) throws Exception { - CustomerTestCase.init(); - CustomerTestCase tester = new CustomerTestCase(); - tester.testCustomer(); - CustomerTestCase.destroy(); - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/policy/matching/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/policy/matching/pom.xml deleted file mode 100644 index ac8e38f59c..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/policy/matching/pom.xml +++ /dev/null @@ -1,58 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-itest - 2.0-M5 - ../pom.xml - - - itest-policy-matching - Apache Tuscany SCA iTest Policy Matching - - - - - org.apache.tuscany.sca - tuscany-feature-webservice - 2.0-M5 - pom - - - - org.apache.tuscany.sca - tuscany-policy-wspolicy - 2.0-M5 - - - - org.apache.tuscany.sca - tuscany-policy-logging - 2.0-M5 - - - - - - ${artifactId} - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/policy/matching/src/main/java/org/apache/tuscany/sca/policy/matching/helloworld/HelloWorld.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/policy/matching/src/main/java/org/apache/tuscany/sca/policy/matching/helloworld/HelloWorld.java deleted file mode 100644 index 16db3fd9fc..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/policy/matching/src/main/java/org/apache/tuscany/sca/policy/matching/helloworld/HelloWorld.java +++ /dev/null @@ -1,29 +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 org.apache.tuscany.sca.policy.matching.helloworld; - -import org.oasisopen.sca.annotation.Remotable; - -@Remotable -public interface HelloWorld { - - String getGreetings(String s); - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/policy/matching/src/main/java/org/apache/tuscany/sca/policy/matching/helloworld/HelloWorldClient.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/policy/matching/src/main/java/org/apache/tuscany/sca/policy/matching/helloworld/HelloWorldClient.java deleted file mode 100644 index d34591713b..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/policy/matching/src/main/java/org/apache/tuscany/sca/policy/matching/helloworld/HelloWorldClient.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 org.apache.tuscany.sca.policy.matching.helloworld; - -import org.oasisopen.sca.annotation.Reference; - -public class HelloWorldClient implements HelloWorld { - - @Reference - public HelloWorld helloWorld; - - public String getGreetings(String s) { - String response = helloWorld.getGreetings(s); - System.out.println("At client: " + response); - return response; - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/policy/matching/src/main/java/org/apache/tuscany/sca/policy/matching/helloworld/HelloWorldService.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/policy/matching/src/main/java/org/apache/tuscany/sca/policy/matching/helloworld/HelloWorldService.java deleted file mode 100644 index 31a2d2cb89..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/policy/matching/src/main/java/org/apache/tuscany/sca/policy/matching/helloworld/HelloWorldService.java +++ /dev/null @@ -1,30 +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 org.apache.tuscany.sca.policy.matching.helloworld; - -public class HelloWorldService implements HelloWorld { - - public String getGreetings(String s) { - String response = "Hello " + s; - System.out.println("At service: " + response); - return response; - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/policy/matching/src/main/resources/META-INF/sca-contribution.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/policy/matching/src/main/resources/META-INF/sca-contribution.xml deleted file mode 100644 index 6ae1c88c42..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/policy/matching/src/main/resources/META-INF/sca-contribution.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/policy/matching/src/main/resources/META-INF/services/org.apache.tuscany.sca.definitions.xml.Definitions b/sca-java-2.x/tags/2.0-M5-RC3/itest/policy/matching/src/main/resources/META-INF/services/org.apache.tuscany.sca.definitions.xml.Definitions deleted file mode 100644 index 45b6be47b7..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/policy/matching/src/main/resources/META-INF/services/org.apache.tuscany.sca.definitions.xml.Definitions +++ /dev/null @@ -1,17 +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. -org/apache/tuscany/sca/policy/matching/helloworld/definitions.xml \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/policy/matching/src/main/resources/org/apache/tuscany/sca/policy/matching/helloworld/definitions.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/policy/matching/src/main/resources/org/apache/tuscany/sca/policy/matching/helloworld/definitions.xml deleted file mode 100644 index 1d1f2131bb..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/policy/matching/src/main/resources/org/apache/tuscany/sca/policy/matching/helloworld/definitions.xml +++ /dev/null @@ -1,65 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - FINE - LoggingMessages.properties - - - - - - - - FINE - LoggingMessages.properties - - - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/policy/matching/src/main/resources/org/apache/tuscany/sca/policy/matching/helloworld/helloworld.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/policy/matching/src/main/resources/org/apache/tuscany/sca/policy/matching/helloworld/helloworld.composite deleted file mode 100644 index f5c05c2de6..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/policy/matching/src/main/resources/org/apache/tuscany/sca/policy/matching/helloworld/helloworld.composite +++ /dev/null @@ -1,86 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/policy/matching/src/main/resources/org/apache/tuscany/sca/policy/matching/helloworld/helloworld.wsdl b/sca-java-2.x/tags/2.0-M5-RC3/itest/policy/matching/src/main/resources/org/apache/tuscany/sca/policy/matching/helloworld/helloworld.wsdl deleted file mode 100644 index a352696b8e..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/policy/matching/src/main/resources/org/apache/tuscany/sca/policy/matching/helloworld/helloworld.wsdl +++ /dev/null @@ -1,90 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/policy/matching/src/test/java/org/apache/tuscany/sca/policy/matching/MatchingTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/policy/matching/src/test/java/org/apache/tuscany/sca/policy/matching/MatchingTestCase.java deleted file mode 100644 index 762194afbf..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/policy/matching/src/test/java/org/apache/tuscany/sca/policy/matching/MatchingTestCase.java +++ /dev/null @@ -1,135 +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 org.apache.tuscany.sca.policy.matching; - -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertTrue; -import static org.junit.Assert.fail; - -import org.apache.tuscany.sca.node.Contribution; -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; -import org.apache.tuscany.sca.policy.matching.helloworld.HelloWorld; -import org.junit.AfterClass; -import org.junit.BeforeClass; -import org.junit.Test; - -/* - * Test the various conditions in the matching algorithm - * 1 - FAIL if there are intents that are mutually exclusive between reference and service - * 2 - PASS if there are no intents or policies present at reference and service - * 3 - FAIL if there are unresolved intents (intents with no policy set) at the reference (service should have been checked previously) - * 4 - PASS if there are no policies at reference and service (now we know all intents are resolved) - * 5 - FAIL if there are some policies on one side but not on the other - * 6 - PASS if the QName of the policy sets on each side match - * 7 - FAIL if the policy languages on both sides are different - * 8 - Perform policy specific match - */ -public class MatchingTestCase { - - private static Node node; - - - @BeforeClass - public static void setUp() throws Exception { - try { - node = NodeFactory.newInstance().createNode(new Contribution("test", "target/classes")); - node.start(); - } catch (Exception ex) { - ex.printStackTrace(); - } - } - - @Test - public void testMutuallyExclusiveIntents() throws Exception { - HelloWorld helloWorld = node.getService(HelloWorld.class, "HelloWorldClientMutuallyExclusiveIntents"); - try { - helloWorld.getGreetings("petra"); - fail("Exception expected"); - } catch (Exception ex) { - assertTrue(ex.getMessage().indexOf("No match because the following intents are mutually exclusive {http://tuscany.apache.org/xmlns/sca/1.1}testIntent3 {http://tuscany.apache.org/xmlns/sca/1.1}testIntent1") > -1); - } - } - - @Test - public void testNoIntentsOrPolicies() throws Exception { - HelloWorld helloWorld = node.getService(HelloWorld.class, "HelloWorldClientNoIntentsOrPolicies"); - assertEquals("Hello petra", helloWorld.getGreetings("petra")); - } - - @Test - public void testUnresolvedIntentsOnReference() throws Exception { - HelloWorld helloWorld = node.getService(HelloWorld.class, "HelloUnresolvedIntentsOnReference"); - try { - helloWorld.getGreetings("petra"); - fail("Exception expected"); - } catch (Exception ex) { - assertTrue(ex.getMessage().indexOf("No match because there are unresolved intents [{http://tuscany.apache.org/xmlns/sca/1.1}testIntent2]") > -1); - } - } - - @Test - public void testIntentsButNoPolicies() throws Exception { - HelloWorld helloWorld = node.getService(HelloWorld.class, "HelloWorldClientIntentsButNoPolicies1"); - assertEquals("Hello petra", helloWorld.getGreetings("petra")); - - helloWorld = node.getService(HelloWorld.class, "HelloWorldClientIntentsButNoPolicies2"); - assertEquals("Hello petra", helloWorld.getGreetings("petra")); - } - - @Test - public void testSomePoliciesOnOneSideButNoneOnTheOther() throws Exception { - try { - HelloWorld helloWorld = node.getService(HelloWorld.class, "HelloWorldClientSomePoliciesOnOneSideButNoneOnTheOther"); - helloWorld.getGreetings("petra"); - fail("Exception expected"); - } catch (Exception ex) { - assertTrue(ex.getMessage().indexOf("No match because there are policy sets at the endpoint but not at the endpoint reference") > -1); - } - } - - @Test - public void testPolicySetQNameMatch() throws Exception { - HelloWorld helloWorld = node.getService(HelloWorld.class, "HelloWorldClientPolicySetQNameMatch"); - assertEquals("Hello petra", helloWorld.getGreetings("petra")); - } - - @Test - public void testDifferentPolicyLanguage() throws Exception { - try { - HelloWorld helloWorld = node.getService(HelloWorld.class, "HelloWorldClientDifferentPolicyLanguage"); - helloWorld.getGreetings("petra"); - fail("Exception expected"); - } catch (Exception ex) { - assertTrue(ex.getMessage().indexOf("No match because the policy sets on either side have policies in differnt languages {http://www.w3.org/ns/ws-policy}ExactlyOne and {http://tuscany.apache.org/xmlns/sca/1.1}jdkLogger") > -1); - } - } - - @Test - public void testPolicySpecificMatch() throws Exception { - // TODO - } - - @AfterClass - public static void tearDown() throws Exception { - node.stop(); - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/policy/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/policy/pom.xml deleted file mode 100644 index 2fd217c5bb..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/policy/pom.xml +++ /dev/null @@ -1,37 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-itest - 2.0-M5 - ../pom.xml - - pom - itest-policy - Apache Tuscany SCA iTest Policy - - - matching - wspolicy - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/policy/wspolicy/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/policy/wspolicy/pom.xml deleted file mode 100644 index c80b05f42f..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/policy/wspolicy/pom.xml +++ /dev/null @@ -1,58 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-itest - 2.0-M5 - ../pom.xml - - - itest-policy-wspolicy - Apache Tuscany SCA iTest Policy WS-Policy - - - - - org.apache.tuscany.sca - tuscany-feature-webservice - 2.0-M5 - pom - - - - org.apache.tuscany.sca - tuscany-policy-wspolicy - 2.0-M5 - - - - org.apache.tuscany.sca - tuscany-policy-logging - 2.0-M5 - - - - - - ${artifactId} - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/policy/wspolicy/src/main/java/org/apache/tuscany/sca/policy/wspolicy/helloworld/HelloWorld.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/policy/wspolicy/src/main/java/org/apache/tuscany/sca/policy/wspolicy/helloworld/HelloWorld.java deleted file mode 100644 index a9835199d0..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/policy/wspolicy/src/main/java/org/apache/tuscany/sca/policy/wspolicy/helloworld/HelloWorld.java +++ /dev/null @@ -1,29 +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 org.apache.tuscany.sca.policy.wspolicy.helloworld; - -import org.oasisopen.sca.annotation.Remotable; - -@Remotable -public interface HelloWorld { - - String getGreetings(String s); - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/policy/wspolicy/src/main/java/org/apache/tuscany/sca/policy/wspolicy/helloworld/HelloWorldClient.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/policy/wspolicy/src/main/java/org/apache/tuscany/sca/policy/wspolicy/helloworld/HelloWorldClient.java deleted file mode 100644 index 620adad638..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/policy/wspolicy/src/main/java/org/apache/tuscany/sca/policy/wspolicy/helloworld/HelloWorldClient.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 org.apache.tuscany.sca.policy.wspolicy.helloworld; - -import org.oasisopen.sca.annotation.Reference; - -public class HelloWorldClient implements HelloWorld { - - @Reference - public HelloWorld helloWorldWS; - - public String getGreetings(String s) { - String response = helloWorldWS.getGreetings(s); - System.out.println("At client: " + response); - return response; - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/policy/wspolicy/src/main/java/org/apache/tuscany/sca/policy/wspolicy/helloworld/HelloWorldService.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/policy/wspolicy/src/main/java/org/apache/tuscany/sca/policy/wspolicy/helloworld/HelloWorldService.java deleted file mode 100644 index b7955522f8..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/policy/wspolicy/src/main/java/org/apache/tuscany/sca/policy/wspolicy/helloworld/HelloWorldService.java +++ /dev/null @@ -1,30 +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 org.apache.tuscany.sca.policy.wspolicy.helloworld; - -public class HelloWorldService implements HelloWorld { - - public String getGreetings(String s) { - String response = "Hello " + s; - System.out.println("At service: " + response); - return response; - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/policy/wspolicy/src/main/resources/LoggingMessages.properties b/sca-java-2.x/tags/2.0-M5-RC3/itest/policy/wspolicy/src/main/resources/LoggingMessages.properties deleted file mode 100644 index ada808be0e..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/policy/wspolicy/src/main/resources/LoggingMessages.properties +++ /dev/null @@ -1,16 +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. diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/policy/wspolicy/src/main/resources/META-INF/sca-contribution.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/policy/wspolicy/src/main/resources/META-INF/sca-contribution.xml deleted file mode 100644 index 7e71dd465f..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/policy/wspolicy/src/main/resources/META-INF/sca-contribution.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/policy/wspolicy/src/main/resources/META-INF/services/org.apache.tuscany.sca.definitions.xml.Definitions b/sca-java-2.x/tags/2.0-M5-RC3/itest/policy/wspolicy/src/main/resources/META-INF/services/org.apache.tuscany.sca.definitions.xml.Definitions deleted file mode 100644 index 961fdeb602..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/policy/wspolicy/src/main/resources/META-INF/services/org.apache.tuscany.sca.definitions.xml.Definitions +++ /dev/null @@ -1,17 +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. -org/apache/tuscany/sca/policy/wspolicy/helloworld/definitions.xml \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/policy/wspolicy/src/main/resources/org/apache/tuscany/sca/policy/wspolicy/helloworld/definitions.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/policy/wspolicy/src/main/resources/org/apache/tuscany/sca/policy/wspolicy/helloworld/definitions.xml deleted file mode 100644 index 425f511273..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/policy/wspolicy/src/main/resources/org/apache/tuscany/sca/policy/wspolicy/helloworld/definitions.xml +++ /dev/null @@ -1,42 +0,0 @@ - - - - - - - - - - FINE - LoggingMessages.properties - - - - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/policy/wspolicy/src/main/resources/org/apache/tuscany/sca/policy/wspolicy/helloworld/helloworld.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/policy/wspolicy/src/main/resources/org/apache/tuscany/sca/policy/wspolicy/helloworld/helloworld.composite deleted file mode 100644 index 5a3a8f09a8..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/policy/wspolicy/src/main/resources/org/apache/tuscany/sca/policy/wspolicy/helloworld/helloworld.composite +++ /dev/null @@ -1,38 +0,0 @@ - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/policy/wspolicy/src/main/resources/org/apache/tuscany/sca/policy/wspolicy/helloworld/helloworld.wsdl b/sca-java-2.x/tags/2.0-M5-RC3/itest/policy/wspolicy/src/main/resources/org/apache/tuscany/sca/policy/wspolicy/helloworld/helloworld.wsdl deleted file mode 100644 index a352696b8e..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/policy/wspolicy/src/main/resources/org/apache/tuscany/sca/policy/wspolicy/helloworld/helloworld.wsdl +++ /dev/null @@ -1,90 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/policy/wspolicy/src/test/java/org/apache/tuscany/sca/policy/wspolicy/WSPolicyTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/policy/wspolicy/src/test/java/org/apache/tuscany/sca/policy/wspolicy/WSPolicyTestCase.java deleted file mode 100644 index 4d6921f8a1..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/policy/wspolicy/src/test/java/org/apache/tuscany/sca/policy/wspolicy/WSPolicyTestCase.java +++ /dev/null @@ -1,50 +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 org.apache.tuscany.sca.policy.wspolicy; - -import junit.framework.TestCase; - -import org.apache.tuscany.sca.node.Contribution; -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; -import org.apache.tuscany.sca.policy.wspolicy.helloworld.HelloWorld; - -public class WSPolicyTestCase extends TestCase { - - private Node node; - private HelloWorld helloWorld; - - public void testCalculator() throws Exception { - assertEquals("Hello petra", helloWorld.getGreetings("petra")); - } - - @Override - protected void setUp() throws Exception { - node = NodeFactory.newInstance().createNode(new Contribution("test", "target/classes")); - node.start(); - helloWorld = node.getService(HelloWorld.class, "HelloWorldClient"); - } - - @Override - protected void tearDown() throws Exception { - node.stop(); - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/pom.xml deleted file mode 100644 index 64de2c7e32..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/pom.xml +++ /dev/null @@ -1,111 +0,0 @@ - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-sca - 2.0-M5 - ../pom.xml - - tuscany-itest - pom - Apache Tuscany SCA Integration Tests - - - - junit - junit - 4.8.1 - compile - - - - - base - builder - bpel - callback-api - callback-basic - callback-basic-ws - callback-complex-type - callback-multiple-wires - callback-separatethread - callback-two-composites - callback-two-nodes - component-type - contribution-folder - contribution-zip - - databindings - distribution - exceptions - implementation-spring - import-export - interfaces - jms - nodes - node-launcher-equinox - oneway - - policy - policies - policy-transaction - - recursive-multi-level - references - scaclient-api - - scaclient-api-osgi - scaclient-api-remote - scopes - scdl - services - service-reference - wires - ws - ws-jaxws - - - - - true - - - - - - org.apache.maven.plugins - maven-deploy-plugin - - true - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/properties/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/properties/pom.xml deleted file mode 100644 index 4802d2ff9a..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/properties/pom.xml +++ /dev/null @@ -1,74 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-itest - 2.0-M5 - ../pom.xml - - itest-properties - Apache Tuscany SCA iTest Properties - - - - org.apache.tuscany.sca - tuscany-node-api - 2.0-M5 - - - - org.apache.tuscany.sca - tuscany-node-impl - 2.0-M5 - test - - - - org.apache.tuscany.sca - tuscany-implementation-java-runtime - 2.0-M5 - test - - - - - xalan - xalan - 2.7.1 - test - - - - org.apache.tuscany.sca - tuscany-core-databinding - 2.0-M5 - runtime - - - - org.apache.tuscany.sca - tuscany-databinding-jaxb - 2.0-M5 - compile - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/properties/src/main/java/mysca/test/myservice/impl/MyService.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/properties/src/main/java/mysca/test/myservice/impl/MyService.java deleted file mode 100644 index b0fd64c9da..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/properties/src/main/java/mysca/test/myservice/impl/MyService.java +++ /dev/null @@ -1,34 +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 mysca.test.myservice.impl; - -public interface MyService { - /** - * This is a method to get the location property value from the sca runtime environment. It is implemented in the - * class MyServiceImpl - */ - String getLocation(); - - /** - * This is a method to get the year property value from the sca runtime environment. It is implemented in the class - * MyServiceImpl - */ - String getYear(); -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/properties/src/main/java/mysca/test/myservice/impl/MyServiceImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/properties/src/main/java/mysca/test/myservice/impl/MyServiceImpl.java deleted file mode 100644 index 7b44ef02e4..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/properties/src/main/java/mysca/test/myservice/impl/MyServiceImpl.java +++ /dev/null @@ -1,88 +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 mysca.test.myservice.impl; - -import java.util.logging.Logger; - -import org.oasisopen.sca.annotation.ComponentName; -import org.oasisopen.sca.annotation.Destroy; -import org.oasisopen.sca.annotation.Init; -import org.oasisopen.sca.annotation.Property; -import org.oasisopen.sca.annotation.Service; - -/** - * This class Implements the interface MyService and gives implementation for all methods which are declared in that - * interface. scope is specified as Composite using - * - * @scope annotation. - */ - -@Service(MyService.class) -public class MyServiceImpl implements MyService { - - @Property(name = "location") - protected String location = "RTP"; - - @Property(name = "year") - protected String year = "2006"; - - @ComponentName - protected String componentName; - - private Logger logger; - - /** - * @ to print the message in the log - */ - public MyServiceImpl() { - logger = Logger.getAnonymousLogger(); - logger.info("creating service instance..."); - } - - /** - * @Init annotation to Start the service. Which is executed all the time - */ - @Init - public void start() { - logger.info("Start service.."); - } - - /** - * @Destroy annotation to stop the service. Which is executed in the end - */ - @Destroy - public void stop() { - logger.info("Stop service.."); - - } - - public String getComponentName() { - return componentName; - } - - public String getLocation() { - return location; - } - - public String getYear() { - return year; - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/properties/src/main/java/mysca/test/myservice/impl/MyTotalServiceImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/properties/src/main/java/mysca/test/myservice/impl/MyTotalServiceImpl.java deleted file mode 100644 index e8c4341cf2..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/properties/src/main/java/mysca/test/myservice/impl/MyTotalServiceImpl.java +++ /dev/null @@ -1,46 +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 mysca.test.myservice.impl; - -import org.oasisopen.sca.annotation.Reference; -import org.oasisopen.sca.annotation.Service; - -/** - * This class Implements the interface MyService and gives implementation for all methods which are declared in that - * interface. scope is specified as Composite using - * - * @scope annotation. - */ - -@Service(MyService.class) -public class MyTotalServiceImpl implements MyService { - - // default required==true so it is 1:1 - @Reference - public MyService myService; - - public String getLocation() { - return myService.getLocation(); - } - - public String getYear() { - return myService.getYear(); - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/properties/src/main/java/org/apache/tuscany/sca/itest/ABCDComponent.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/properties/src/main/java/org/apache/tuscany/sca/itest/ABCDComponent.java deleted file mode 100644 index 68ce5a3cb6..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/properties/src/main/java/org/apache/tuscany/sca/itest/ABCDComponent.java +++ /dev/null @@ -1,50 +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 org.apache.tuscany.sca.itest; - -/** - * It is an Interface which has method declarations. Methods which are to be accessed as a service are declared in this - * interface. Implementation for these methods is provided in ABCDComponentImpl Class - */ -public interface ABCDComponent { - - /** - * This is a method to get a string property value from the SCA runtime environment. It is implemented in the class - * ABCDComponentImpl - */ - String getA(); - - /** - * This is a method to get a string property value from the SCA runtime environment. It is implemented in the class - * ABCDComponentImpl - */ - String getB(); - - /** - * This is a method to get a string property value from the SCA runtime environment. It is implemented in the class - * ABCDComponentImpl - */ - String getC(); - - /** - * This is a method to get a string property value from the SCA runtime environment. It is implemented in the class - * ABCDComponentImpl - */ - String getD(); -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/properties/src/main/java/org/apache/tuscany/sca/itest/ABCDComponentImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/properties/src/main/java/org/apache/tuscany/sca/itest/ABCDComponentImpl.java deleted file mode 100644 index c8d0d4cae4..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/properties/src/main/java/org/apache/tuscany/sca/itest/ABCDComponentImpl.java +++ /dev/null @@ -1,73 +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 org.apache.tuscany.sca.itest; - -import org.oasisopen.sca.annotation.Reference; -import org.oasisopen.sca.annotation.Scope; - -/** - * This class Implements the interface ABCDComponent and gives implementation for all methods which are declared in that - * interface. scope is specified as Composite using - * - * @scope annotation. - */ -@Scope("COMPOSITE") -public class ABCDComponentImpl implements ABCDComponent { - private ABComponent abComponent; - private CDComponent cdComponent; - - /** - * It is a method which injects the property value to the variable 'abComponent' from the SCA runtime environment - * using - * - * @Property Annotations. - */ - @Reference - public void setAb(ABComponent component) { - this.abComponent = component; - } - - /** - * It is a method which injects the property value to the variable 'cdComponent' from the SCA runtime environment - * using - * - * @Property Annotations. - */ - @Reference - public void setCd(CDComponent component) { - this.cdComponent = component; - } - - public String getA() { - return this.abComponent.getA(); - } - - public String getB() { - return this.abComponent.getB(); - } - - public String getC() { - return this.cdComponent.getC(); - } - - public String getD() { - return this.cdComponent.getD(); - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/properties/src/main/java/org/apache/tuscany/sca/itest/ABComponent.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/properties/src/main/java/org/apache/tuscany/sca/itest/ABComponent.java deleted file mode 100644 index b727935bc1..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/properties/src/main/java/org/apache/tuscany/sca/itest/ABComponent.java +++ /dev/null @@ -1,75 +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 org.apache.tuscany.sca.itest; - -import java.util.Collection; - -import org.oasisopen.sca.annotation.Remotable; - -/** - * It is an Interface which has method declarations. Methods which are to be accessed as a service are declared in this - * interface. Implementation for these methods is provided in ABComponentImpl Class - */ -@Remotable -public interface ABComponent { - - /** - * This is a method to get a string property value from the SCA runtime environment. It is implemented in the class - * ABComponentImpl - */ - - String getA(); - - /** - * This is a method to get a string property value from the SCA runtime environment. It is implemented in the class - * ABComponentImpl - */ - String getB(); - - /** - * This is a method to get a string property value from the SCA runtime environment. It is implemented in the class - * ABComponentImpl - */ - String getZ(); - - /** - * This is a method to get an integer property value from the SCA runtime environment. It is implemented in the - * class ABComponentImpl - */ - int getIntValue(); - - /** - * This is a method to get a string property value from the SCA runtime environment. It is implemented in the class - * ABComponentImpl - */ - String getF(); - - /** - * This is a method to get collection of property values from the SCA runtime environment. It is implemented in the - * class ABComponentImpl - */ - Collection getManyStringValues(); - - /** - * This is a method to get collection of property value from the SCA runtime environment. It is implemented in the - * class ABComponentImpl - */ - Collection getManyIntegers(); -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/properties/src/main/java/org/apache/tuscany/sca/itest/ABComponentImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/properties/src/main/java/org/apache/tuscany/sca/itest/ABComponentImpl.java deleted file mode 100644 index e402131ce2..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/properties/src/main/java/org/apache/tuscany/sca/itest/ABComponentImpl.java +++ /dev/null @@ -1,131 +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 org.apache.tuscany.sca.itest; - -import java.util.Collection; - -import org.oasisopen.sca.annotation.Property; - -/** - * This class Implements the interface ABComponent and gives implementation for all methods which are declared in that - * interface. - */ - -public class ABComponentImpl implements ABComponent { - - private String aProperty; - private String bProperty; - private int intValue; - private Collection manyStringValues; - private Collection manyIntegerValues; - private String zProperty; - private String fProperty; - - /** - * It is a method which injects the property value to the variable 'zProperty' from the SCA runtime environment - * using Annotations. - */ - @Property(name = "xpath") - public void setZProperty(final String value) { - this.zProperty = value; - } - - /** - * It is a method which injects collection of property values to the variable 'manyStringValues' from the SCA - * runtime environment using Annotations. - */ - @Property(name = "foobar") - public void setManyStringValues(final Collection value) { - this.manyStringValues = value; - } - - /** - * It is a method which injects collection of integer property values to the variable 'manyIntegerValues' from the - * SCA runtime environment using Annotations. - */ - @Property(name = "fooInts") - public void setManyIntegers(final Collection value) { - this.manyIntegerValues = value; - } - - /** - * It is a method which injects the property value to the variable 'aProperty' from the SCA runtime environment - * using Annotations. - */ - @Property - public void setA(final String A) { - this.aProperty = A; - } - - /** - * It is a method which injects the property value to the variable 'bProperty' from the SCA runtime environment - * using Annotations. - */ - @Property - public void setB(final String B) { - this.bProperty = B; - } - - /** - * It is a method which injects the property value to the variable 'fProperty' from the SCA runtime environment - * using Annotations. - */ - @Property - public void setF(final String F) { - this.fProperty = F; - } - - /** - * It is a method which injects integer property value to the variable 'intValue' from the SCA runtime environment - * using Annotations. - */ - @Property - public void setOne(final int value) { - this.intValue = value; - } - - public String getA() { - return this.aProperty; - } - - public String getB() { - return this.bProperty; - } - - public int getIntValue() { - return this.intValue; - } - - public String getZ() { - return this.zProperty; - } - - public String getF() { - return this.fProperty; - } - - public Collection getManyStringValues() { - return manyStringValues; - } - - public Collection getManyIntegers() { - return manyIntegerValues; - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/properties/src/main/java/org/apache/tuscany/sca/itest/CDComponent.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/properties/src/main/java/org/apache/tuscany/sca/itest/CDComponent.java deleted file mode 100644 index 52f9871d1b..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/properties/src/main/java/org/apache/tuscany/sca/itest/CDComponent.java +++ /dev/null @@ -1,71 +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 org.apache.tuscany.sca.itest; - -import java.util.Collection; - -/** - * It is an Interface which has method declarations. Methods which are to be accessed as a service are declared in this - * interface. Implementation for these methods is provided in CDComponentImpl Class - */ -public interface CDComponent { - - /** - * This is a method to get a property value from the SCA runtime environment. It is implemented in the class - * CDComponentImpl Class - */ - String getC(); - - /** - * This is a method to get a property value from the SCA runtime environment. It is implemented in the class - * CDComponentImpl Class - */ - String getC2(); - - /** - * This is a method to get a property value from the SCA runtime environment. It is implemented in the class - * CDComponentImpl Class - */ - String getD(); - - /** - * This is a method to get a property value from the SCA runtime environment. It is implemented in the class - * CDComponentImpl Class - */ - String getNoSource(); - - /** - * This is a method to get a property value from the SCA runtime environment. It is implemented in the class - * CDComponentImpl Class - */ - String getFileProperty(); - - /** - * This is a method to get a property value from the SCA runtime environment. It is implemented in the class - * CDComponentImpl Class - */ - Collection getManyValuesFileProperty(); - - /** - * This is a method to get a property value from the SCA runtime environment. It is implemented in the class - * CDComponentImpl Class - */ - int getOverrideValue(); -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/properties/src/main/java/org/apache/tuscany/sca/itest/CDComponentImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/properties/src/main/java/org/apache/tuscany/sca/itest/CDComponentImpl.java deleted file mode 100644 index fceda9d9ae..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/properties/src/main/java/org/apache/tuscany/sca/itest/CDComponentImpl.java +++ /dev/null @@ -1,143 +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 org.apache.tuscany.sca.itest; - -import java.util.Collection; - -import org.oasisopen.sca.annotation.Property; - -/** - * This class Implements the interface CDComponent and gives implementation for all methods which are declared in that - * interface. - */ -public class CDComponentImpl implements CDComponent { - - private String cProperty; - private String dProperty; - private String nosource; - private String fileProperty; - private Collection manyValuesFileProperty; - private int overrideNumber; - private String cProperty2; - - /** - * It is a method which injects the property value to the variable 'cProperty2' from the SCA runtime environment - * using - * - * @Property Annotations. - */ - @Property(name = "nonFileProperty") - public void setC2(final String value) { - this.cProperty2 = value; - } - - /** - * It is a method which injects the property value to the variable 'overrideNumber' from the SCA runtime environment - * using - * - * @Property Annotations. - */ - @Property(name = "two") - public void setOverrideNumber(final int value) { - this.overrideNumber = value; - } - - /** - * It is a method which injects the property value to the variable 'fileProperty' from the SCA runtime environment - * using - * - * @Property Annotations. - */ - @Property(name = "fileProperty") - public void setFileProp(final String value) { - this.fileProperty = value; - } - - /** - * It is a method which injects the property value to the variable 'manyValuesFileProperty' from the SCA runtime - * environment using - * - * @Property Annotations. - */ - @Property(name = "manyValuesFileProperty") - public void setFileManyValueProp(final Collection values) { - this.manyValuesFileProperty = values; - } - - /** - * It is a method which injects the property value to the variable 'cProperty' from the SCA runtime environment - * using - * - * @Property Annotations. - */ - @Property - public void setC(final String C) { - this.cProperty = C; - } - - /** - * It is a method which injects the property value to the variable 'dProperty' from the SCA runtime environment - * using - * - * @Property Annotations. - */ - @Property - public void setD(final String D) { - this.dProperty = D; - } - - /** - * It is a method which injects the property value to the variable 'nosource' from the SCA runtime environment using - * - * @Property Annotations. - */ - @Property - public void setNosource(final String value) { - this.nosource = value; - } - - public String getFileProperty() { - return this.fileProperty; - } - - public String getC() { - return this.cProperty; - } - - public String getC2() { - return this.cProperty2; - } - - public String getD() { - return this.dProperty; - } - - public String getNoSource() { - return this.nosource; - } - - public int getOverrideValue() { - return this.overrideNumber; - } - - public Collection getManyValuesFileProperty() { - return this.manyValuesFileProperty; - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/properties/src/main/java/org/apache/tuscany/sca/itest/ComplexPropertyBean.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/properties/src/main/java/org/apache/tuscany/sca/itest/ComplexPropertyBean.java deleted file mode 100644 index 1642ab55f5..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/properties/src/main/java/org/apache/tuscany/sca/itest/ComplexPropertyBean.java +++ /dev/null @@ -1,151 +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 org.apache.tuscany.sca.itest; - -/** - * This is a Java Bean which has setter and getter methods for for the variables used in the property tests. - */ -public class ComplexPropertyBean { - - /** - * Variable declarations - */ - protected int integerNumber = 25; - protected float floatNumber = 50; - protected double doubleNumber = 75; - protected int[] intArray = null; - protected double[] doubleArray = null; - protected String[] stringArray = null; - - ComplexPropertyBean numberSet; - protected ComplexPropertyBean[] numberSetArray = null; - - public ComplexPropertyBean() { - - } - - public double getDoubleNumber() { - return doubleNumber; - } - - /** - * It is a setter method to set a value for the variable doubleNumber - */ - public void setDoubleNumber(double doubleNumber) { - this.doubleNumber = doubleNumber; - } - - /** - * It is a getter method to get a value for the variable floatNumber - */ - public float getFloatNumber() { - return floatNumber; - } - - /** - * It is a setter method to set a value for the variable floatNumber - */ - public void setFloatNumber(float floatNumber) { - this.floatNumber = floatNumber; - } - - /** - * It is a getter method to get a value for the variable floatNumber - */ - public int getIntegerNumber() { - return integerNumber; - } - - /** - * It is a getter method to get a value for the variable integerNumber - */ - public void setIntegerNumber(int integerNumber) { - this.integerNumber = integerNumber; - } - - /** - * It is a getter method to set a value for the variable numberSet - */ - public ComplexPropertyBean getNumberSet() { - return numberSet; - } - - /** - * It is a setter method to set a value for the variable numberSet - */ - public void setNumberSet(ComplexPropertyBean numberSet) { - this.numberSet = numberSet; - } - - /** - * It is a method which implements toString() function - */ - - public String toString() { - return Double.toString(integerNumber) + " - " - + Double.toString(floatNumber) - + " - " - + Double.toString(doubleNumber) - + " \n" - + ((intArray == null) ? "" : intArray[0] + " - " + intArray[1] + " \n ") - + ((doubleArray == null) ? "" : doubleArray[0] + " - " + doubleArray[1] + " \n ") - + ((stringArray == null) ? "" : stringArray[0] + " - " + stringArray[1] + " \n ") - + ((numberSetArray == null) ? "" : numberSetArray[0] + " - " + numberSetArray[1] + " \n ") - + ((numberSet == null) ? "" : numberSet.toString()); - } - - /** - * It is a setter method to set values for the variable stringArray - */ - public String[] getStringArray() { - return stringArray; - } - - /** - * It is a setter method to set values for the variable stringArray - */ - public void setStringArray(String[] stringArray) { - this.stringArray = stringArray; - } - - public int[] getIntArray() { - return intArray; - } - - public void setIntArray(int[] intArray) { - this.intArray = intArray; - } - - public double[] getDoubleArray() { - return doubleArray; - } - - public void setDoubleArray(double[] doubleArray) { - this.doubleArray = doubleArray; - } - - public ComplexPropertyBean[] getNumberSetArray() { - return numberSetArray; - } - - public void setNumberSetArray(ComplexPropertyBean[] numberSetArray) { - this.numberSetArray = numberSetArray; - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/properties/src/main/java/org/apache/tuscany/sca/itest/OverrideService.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/properties/src/main/java/org/apache/tuscany/sca/itest/OverrideService.java deleted file mode 100644 index acd1f26670..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/properties/src/main/java/org/apache/tuscany/sca/itest/OverrideService.java +++ /dev/null @@ -1,27 +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 org.apache.tuscany.sca.itest; - -/** - * This is an Interface for the services - */ -public interface OverrideService { - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/properties/src/main/java/org/apache/tuscany/sca/itest/OverrideServiceImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/properties/src/main/java/org/apache/tuscany/sca/itest/OverrideServiceImpl.java deleted file mode 100644 index 71dce41efc..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/properties/src/main/java/org/apache/tuscany/sca/itest/OverrideServiceImpl.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 org.apache.tuscany.sca.itest; - -/** - * An implementation for the interface OverrideService. - */ - -public class OverrideServiceImpl implements OverrideService { - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/properties/src/main/java/org/apache/tuscany/sca/itest/PropertyComponent.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/properties/src/main/java/org/apache/tuscany/sca/itest/PropertyComponent.java deleted file mode 100644 index 9c7e8c3447..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/properties/src/main/java/org/apache/tuscany/sca/itest/PropertyComponent.java +++ /dev/null @@ -1,114 +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 org.apache.tuscany.sca.itest; - -import java.util.Collection; - -import test.jaxb.props.ReturnCodeProperties; - -/** - * It is an Interface which has method declarations. Methods which are to be accessed as a service are declared in this - * interface. Implementation for these methods is provided in PropertyComponentImpl Class - */ -public interface PropertyComponent { - - /** - * This is a method to get a value for a property name 'location' from the SCA runtime environment. It is - * implemented in the class PropertyComponentImpl - */ - public String getLocation(); - - /** - * This is a method to get a value for a property name 'year' from the SCA runtime environment. It is implemented in - * the class PropertyComponentImpl - */ - public String getYear(); - - /** - * This method is used to test injecting a primitive String Array - * - * @return The injected array - */ - public String[] getDaysOfTheWeek(); - - /** - * This method is used to test injecting an Object Integer Array - * - * @return The injected array - */ - public Integer[] getIntegerNumbers(); - - /** - * This method is used to test injecting an int Array - * - * @return The injected array - */ - public int[] getIntNumbers(); - - /** - * This is a method to get a property value from the SCA runtime environment. It is implemented in the class - * PropertyComponentImpl - */ - - public ComplexPropertyBean getComplexPropertyOne(); - - /** - * This is a method to get a property value from the SCA runtime environment. It is implemented in the class - * PropertyComponentImpl - */ - public ComplexPropertyBean getComplexPropertyTwo(); - - /** - * This is a method to get a property value from the SCA runtime environment. It is implemented in the class - * PropertyComponentImpl - */ - public ComplexPropertyBean getComplexPropertyThree(); - - /** - * This is a method to get a property value from the SCA runtime environment. It is implemented in the class - * PropertyComponentImpl - */ - public Collection getComplexPropertyFour(); - - /** - * This is a method to get a property value from the SCA runtime environment. It is implemented in the class - * PropertyComponentImpl - */ - - public ComplexPropertyBean getComplexPropertyFive(); - - /** - * This is a method to get a property value from the SCA runtime environment. It is implemented in the class - * PropertyComponentImpl - */ - public ReturnCodeProperties getComplexJAXBPropertyOne(); - - /** - * This is a method to get a property value from the SCA runtime environment. It is implemented in the class - * PropertyComponentImpl - */ - public ReturnCodeProperties getComplexJAXBPropertyTwo(); - - /** - * @return - */ - public String getLocationFromComponentContext(); - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/properties/src/main/java/org/apache/tuscany/sca/itest/PropertyComponentImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/properties/src/main/java/org/apache/tuscany/sca/itest/PropertyComponentImpl.java deleted file mode 100644 index 64ca749e9f..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/properties/src/main/java/org/apache/tuscany/sca/itest/PropertyComponentImpl.java +++ /dev/null @@ -1,144 +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 org.apache.tuscany.sca.itest; - -import java.util.Collection; - -import org.oasisopen.sca.ComponentContext; -import org.oasisopen.sca.annotation.Context; -import org.oasisopen.sca.annotation.Property; - -import test.jaxb.props.ReturnCodeProperties; - -/** - * This class Implements the interface PropertyComponent and gives implementation for all methods which are declared in - * that interface. - */ -public class PropertyComponentImpl implements PropertyComponent { - @Context - protected ComponentContext context; - - @Property - protected ComplexPropertyBean complexPropertyOne; - - @Property - protected ComplexPropertyBean complexPropertyTwo; - - @Property - protected ComplexPropertyBean complexPropertyThree; - - @Property - protected Collection complexPropertyFour; - - @Property - protected ComplexPropertyBean complexPropertyFive; - - @Property(name = "location") - protected String location; - - @Property(name = "year") - protected String year; - - @Property(name = "daysOfTheWeek") - protected String[] daysOfTheWeek; - - @Property(name = "integerNumbers") - protected Integer[] integerNumbers; - - @Property(name = "intNumbers") - protected int[] intNumbers; - - @Property - protected ReturnCodeProperties complexJAXBPropertyOne; - - @Property - protected ReturnCodeProperties complexJAXBPropertyTwo; - - public String getLocation() { - return location; - } - - public String getYear() { - return year; - } - - public ComplexPropertyBean getComplexPropertyOne() { - //System.out.println(complexPropertyOne); - return complexPropertyOne; - } - - public ComplexPropertyBean getComplexPropertyTwo() { - //System.out.println(complexPropertyTwo); - return complexPropertyTwo; - } - - public ComplexPropertyBean getComplexPropertyThree() { - //System.out.println(complexPropertyThree); - return complexPropertyThree; - } - - public Collection getComplexPropertyFour() { - //System.out.println(complexPropertyThree); - return complexPropertyFour; - } - - public ComplexPropertyBean getComplexPropertyFive() { - return complexPropertyFive; - } - - /** - * This method is used to test injecting an Array - * - * @return The injected array - */ - public String[] getDaysOfTheWeek() { - return daysOfTheWeek; - } - - /** - * This method is used to test injecting an Object Integer Array - * - * @return The injected array - */ - public Integer[] getIntegerNumbers() { - return integerNumbers; - } - - /** - * This method is used to test injecting an int Array - * - * @return The injected array - */ - public int[] getIntNumbers() { - return intNumbers; - } - - public String getLocationFromComponentContext() { - return context.getProperty(String.class, "location"); - } - - public ReturnCodeProperties getComplexJAXBPropertyOne() { - return complexJAXBPropertyOne; - } - - public ReturnCodeProperties getComplexJAXBPropertyTwo() { - return complexJAXBPropertyTwo; - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/properties/src/main/java/org/apache/tuscany/sca/itest/PropertyService.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/properties/src/main/java/org/apache/tuscany/sca/itest/PropertyService.java deleted file mode 100644 index a57ccd90c8..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/properties/src/main/java/org/apache/tuscany/sca/itest/PropertyService.java +++ /dev/null @@ -1,27 +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 org.apache.tuscany.sca.itest; - -/** - * This is an Interface for the services. - */ -public interface PropertyService { - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/properties/src/main/java/org/apache/tuscany/sca/itest/cdi/Bar.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/properties/src/main/java/org/apache/tuscany/sca/itest/cdi/Bar.java deleted file mode 100644 index c147a2affe..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/properties/src/main/java/org/apache/tuscany/sca/itest/cdi/Bar.java +++ /dev/null @@ -1,23 +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 org.apache.tuscany.sca.itest.cdi; - -public interface Bar { - public String getBar(); -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/properties/src/main/java/org/apache/tuscany/sca/itest/cdi/Foo1.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/properties/src/main/java/org/apache/tuscany/sca/itest/cdi/Foo1.java deleted file mode 100644 index f44fed7389..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/properties/src/main/java/org/apache/tuscany/sca/itest/cdi/Foo1.java +++ /dev/null @@ -1,38 +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 org.apache.tuscany.sca.itest.cdi; - -import org.oasisopen.sca.annotation.Constructor; -import org.oasisopen.sca.annotation.Property; -import org.oasisopen.sca.annotation.Service; - -@Service(Bar.class) -public class Foo1 implements Bar { - - protected String bar; - - @Constructor - public Foo1(@Property(name="bar") String b) { - this.bar = b; - } - - public String getBar() { - return this.bar; - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/properties/src/main/java/org/apache/tuscany/sca/itest/cdi/Foo2.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/properties/src/main/java/org/apache/tuscany/sca/itest/cdi/Foo2.java deleted file mode 100644 index 1d2e563095..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/properties/src/main/java/org/apache/tuscany/sca/itest/cdi/Foo2.java +++ /dev/null @@ -1,39 +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 org.apache.tuscany.sca.itest.cdi; - -import org.oasisopen.sca.annotation.Constructor; -import org.oasisopen.sca.annotation.Property; -import org.oasisopen.sca.annotation.Service; - -@Service(Bar.class) -public class Foo2 implements Bar { - - protected String bar; - - @Constructor - public Foo2(@Property(name = "bar") String b) { - this.bar = b; - } - - public String getBar() { - return this.bar; - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/properties/src/main/java/org/apache/tuscany/sca/itest/cdi/Foo3.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/properties/src/main/java/org/apache/tuscany/sca/itest/cdi/Foo3.java deleted file mode 100644 index 54082e297a..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/properties/src/main/java/org/apache/tuscany/sca/itest/cdi/Foo3.java +++ /dev/null @@ -1,44 +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 org.apache.tuscany.sca.itest.cdi; - -import org.oasisopen.sca.annotation.Constructor; -import org.oasisopen.sca.annotation.Property; -import org.oasisopen.sca.annotation.Service; - -@Service(Bar.class) -public class Foo3 implements Bar { - - protected String bar; - - @Constructor - public Foo3() { - this.bar = "bar"; - } - - public String getBar() { - return this.bar; - } - - @Property(name = "bar") - public void setBar(String b) { - this.bar = b; - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/properties/src/main/java/test/jaxb/props/ObjectFactory.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/properties/src/main/java/test/jaxb/props/ObjectFactory.java deleted file mode 100644 index 15fb49ea4e..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/properties/src/main/java/test/jaxb/props/ObjectFactory.java +++ /dev/null @@ -1,75 +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. - */ -// -// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.3 in JDK 1.6 -// See http://java.sun.com/xml/jaxb -// Any modifications to this file will be lost upon recompilation of the source schema. -// Generated on: 2008.06.07 at 03:30:47 PM EDT -// -package test.jaxb.props; - -import javax.xml.bind.JAXBElement; -import javax.xml.bind.annotation.XmlElementDecl; -import javax.xml.bind.annotation.XmlRegistry; -import javax.xml.namespace.QName; - -/** - * This object contains factory methods for each - * Java content interface and Java element interface - * generated in the test.jaxb.props package. - *

An ObjectFactory allows you to programatically - * construct new instances of the Java representation - * for XML content. The Java representation of XML - * content can consist of schema derived interfaces - * and classes representing the binding of schema - * type definitions, element declarations and model - * groups. Factory methods for each of these are - * provided in this class. - * - */ -@XmlRegistry -public class ObjectFactory { - - private final static QName _MyRCProps_QNAME = new QName("http://test.sca.jaxb/rcprops", "MyRCProps"); - - /** - * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: test.jaxb.props - * - */ - public ObjectFactory() { - } - - /** - * Create an instance of {@link ReturnCodeProperties } - * - */ - public ReturnCodeProperties createReturnCodeProperties() { - return new ReturnCodeProperties(); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link ReturnCodeProperties }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://test.sca.jaxb/rcprops", name = "MyRCProps") - public JAXBElement createMyRCProps(ReturnCodeProperties value) { - return new JAXBElement(_MyRCProps_QNAME, ReturnCodeProperties.class, null, value); - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/properties/src/main/java/test/jaxb/props/ReturnCodeProperties.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/properties/src/main/java/test/jaxb/props/ReturnCodeProperties.java deleted file mode 100644 index 0a1d4a34a3..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/properties/src/main/java/test/jaxb/props/ReturnCodeProperties.java +++ /dev/null @@ -1,103 +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. - */ -// -// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.3 in JDK 1.6 -// See http://java.sun.com/xml/jaxb -// Any modifications to this file will be lost upon recompilation of the source schema. -// Generated on: 2008.06.07 at 03:30:47 PM EDT -// -package test.jaxb.props; - -import java.math.BigInteger; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlType; - -/** - *

Java class for ReturnCodeProperties complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="ReturnCodeProperties">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="AInt" type="{http://www.w3.org/2001/XMLSchema}int"/>
- *         <element name="BInteger" type="{http://www.w3.org/2001/XMLSchema}integer"/>
- *       </sequence>
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "ReturnCodeProperties", namespace = "http://test.sca.jaxb/rcprops", propOrder = {"a", "b"}) -public class ReturnCodeProperties { - - @XmlElement(name = "AInt") - protected int a; - @XmlElement(name = "BInteger", required = true) - protected BigInteger b; - - /** - * Gets the value of the a property. - * - */ - public int getA() { - return a; - } - - /** - * Sets the value of the a property. - * - */ - public void setA(int value) { - this.a = value; - } - - /** - * Gets the value of the b property. - * - * @return - * possible object is - * {@link BigInteger } - * - */ - public BigInteger getB() { - return b; - } - - /** - * Sets the value of the b property. - * - * @param value - * allowed object is - * {@link BigInteger } - * - */ - public void setB(BigInteger value) { - this.b = value; - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/properties/src/main/java/test/jaxb/props/package-info.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/properties/src/main/java/test/jaxb/props/package-info.java deleted file mode 100644 index 6a6fdd00cc..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/properties/src/main/java/test/jaxb/props/package-info.java +++ /dev/null @@ -1,27 +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. - */ -// -// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.3 in JDK 1.6 -// See http://java.sun.com/xml/jaxb -// Any modifications to this file will be lost upon recompilation of the source schema. -// Generated on: 2008.06.07 at 03:30:47 PM EDT -// -@javax.xml.bind.annotation.XmlSchema(namespace = "http://test.sca.jaxb/rcprops", elementFormDefault = javax.xml.bind.annotation.XmlNsForm.QUALIFIED) -package test.jaxb.props; - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/properties/src/main/resources/ConstructorPropertyInjection.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/properties/src/main/resources/ConstructorPropertyInjection.composite deleted file mode 100644 index e697cedd62..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/properties/src/main/resources/ConstructorPropertyInjection.composite +++ /dev/null @@ -1,39 +0,0 @@ - - - - - - - - - - - - fubar - - - - - - fubar - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/properties/src/main/resources/Outer.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/properties/src/main/resources/Outer.composite deleted file mode 100644 index 93f164a1e7..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/properties/src/main/resources/Outer.composite +++ /dev/null @@ -1,43 +0,0 @@ - - - - - Raleigh - 2008 - - - - - - - - - - - - - - - Durham - 2009 - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/properties/src/main/resources/OuterPropertyTest.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/properties/src/main/resources/OuterPropertyTest.composite deleted file mode 100644 index 0c8714cbe1..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/properties/src/main/resources/OuterPropertyTest.composite +++ /dev/null @@ -1,42 +0,0 @@ - - - - - - - 125 - - - Overriden A - Overriden B - Overriden C - Overriden D - - Overriden Y - Overriden Z - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/properties/src/main/resources/PropertyTest.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/properties/src/main/resources/PropertyTest.composite deleted file mode 100644 index 7c834d5e0b..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/properties/src/main/resources/PropertyTest.composite +++ /dev/null @@ -1,260 +0,0 @@ - - - - - - - - - 1 - - - a - b - c - d - - y - z - - - - - - - - 1 - 11 - 111 - - - 2 - 22 - 222 - - TestString_1 - TestString_2 - 10 - 20 - 27 - 79.34 - 184.52 - 50.05 - 25.52 - - 54 - 158.68 - 369.04 - - - - - - - TestString_3 - TestString_4 - 100 - 200 - - - - - - - - - - - - - - f - - - - Apache - Tuscany - Java SCA - - - 123 - 456 - 789 - - - - - - - - - aValue - - - - 25 - - - - - - - - TestString_1 - TestString_2 - 10 - 27 - 79.34 - 25.52 - 184.52 - 50.05 - 20 - - 1 - 11 - 111 - - - 2 - 22 - 222 - - - 54 - 158.68 - 369.04 - - - - - - TestElementString_1 - TestElementString_2 - 10 - 27 - 79.34 - 25.52 - 184.52 - 50.05 - 20 - - 1 - 11 - 111 - - - 2 - 22 - 222 - - - 54 - 158.68 - 369.04 - - - - - - 1 - 11.11 - 111.111 - - 11 - 1111.1111 - 11111.11111 - - - - 2 - 22.22 - 222.222 - - 22 - 2222.2222 - 22222.22222 - - - - 3 - 33.33 - 333.333 - - 33 - 3333.3333 - 33333.33333 - - - - - RTP - 2006 - - Monday - Tuesday - Wednesday - Thursday - Friday - Saturday - Sunday - - - 1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 - 10 - - - 10 - 9 - 8 - 7 - 6 - 5 - 4 - 3 - 2 - 1 - 0 - - - - - 10 - 10 - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/properties/src/main/resources/customer.xsd b/sca-java-2.x/tags/2.0-M5-RC3/itest/properties/src/main/resources/customer.xsd deleted file mode 100644 index 7421750f1b..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/properties/src/main/resources/customer.xsd +++ /dev/null @@ -1,30 +0,0 @@ - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/properties/src/main/resources/fileProperty.txt b/sca-java-2.x/tags/2.0-M5-RC3/itest/properties/src/main/resources/fileProperty.txt deleted file mode 100644 index 7e932622ce..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/properties/src/main/resources/fileProperty.txt +++ /dev/null @@ -1,21 +0,0 @@ - - - -fileValue \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/properties/src/main/resources/foo.xsd b/sca-java-2.x/tags/2.0-M5-RC3/itest/properties/src/main/resources/foo.xsd deleted file mode 100644 index 6831f66cec..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/properties/src/main/resources/foo.xsd +++ /dev/null @@ -1,40 +0,0 @@ - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/properties/src/main/resources/manyValuesFileProperty.txt b/sca-java-2.x/tags/2.0-M5-RC3/itest/properties/src/main/resources/manyValuesFileProperty.txt deleted file mode 100644 index e037537d7d..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/properties/src/main/resources/manyValuesFileProperty.txt +++ /dev/null @@ -1,25 +0,0 @@ - - - - fileValueOne - fileValueTwo - fileValueThree - fileValueFour - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/properties/src/main/resources/mySimpleService.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/properties/src/main/resources/mySimpleService.composite deleted file mode 100644 index 347990cca8..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/properties/src/main/resources/mySimpleService.composite +++ /dev/null @@ -1,40 +0,0 @@ - - - - - - - - - - Raleigh - 2008 - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/properties/src/main/resources/rcProps.txt b/sca-java-2.x/tags/2.0-M5-RC3/itest/properties/src/main/resources/rcProps.txt deleted file mode 100644 index 052c291fd0..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/properties/src/main/resources/rcProps.txt +++ /dev/null @@ -1,22 +0,0 @@ - - - - 20 - 20 - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/properties/src/main/resources/rcprops.xsd b/sca-java-2.x/tags/2.0-M5-RC3/itest/properties/src/main/resources/rcprops.xsd deleted file mode 100644 index 21289fa7b2..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/properties/src/main/resources/rcprops.xsd +++ /dev/null @@ -1,55 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/properties/src/test/java/org/apache/tuscany/sca/itest/MyTotalServiceTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/properties/src/test/java/org/apache/tuscany/sca/itest/MyTotalServiceTestCase.java deleted file mode 100644 index efc635c72b..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/properties/src/test/java/org/apache/tuscany/sca/itest/MyTotalServiceTestCase.java +++ /dev/null @@ -1,104 +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 org.apache.tuscany.sca.itest; - -import static org.junit.Assert.assertEquals; -import mysca.test.myservice.impl.MyService; - -import org.apache.tuscany.sca.node.Contribution; -import org.apache.tuscany.sca.node.ContributionLocationHelper; -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; -import org.junit.AfterClass; -import org.junit.BeforeClass; -import org.junit.Test; - -public class MyTotalServiceTestCase { - private static MyService service1; - private static MyService service2; - private static MyService service3; - - private static Node node; - - /** - * Method annotated with - * - * @Test is a test method where testing logic is written using various assert methods. This test verifies the local - * property variables defined in the implementation file with the expected values 'RTP' and '2006' - */ - @Test - public void testPropertyDefault() { - assertEquals("RTP", service1.getLocation()); - assertEquals("2006", service1.getYear()); - } - - /** - * Method annotated with - * - * @Test is a test method where testing logic is written using various assert methods. This test verifies the - * property value obtained using service2 from the SCA runtime environment with the expected values 'Raleigh' - * and '2008'. This overrides the local property values - */ - @Test - public void testPropertyOverride() { - assertEquals("Raleigh", service2.getLocation()); - assertEquals("2008", service2.getYear()); - } - - /** - * Method annotated with - * - * @Test is a test method where testing logic is written using various assert methods. This test verifies the - * property value obtained using service3 from the SCA runtime environment with the expected values 'Durham' - * and '2009' - */ - @Test - public void testPropertyNestedOverride() { - assertEquals("Durham", service3.getLocation()); - assertEquals("2009", service3.getYear()); - } - - /** - * Method annotated with - * - * @BeforeClass is used for one time set Up, it executes before every tests. This method is used to create a test - * Embedded SCA node, to start the SCA node and to get a reference to the 'outerABService' service - */ - @BeforeClass - public static void setUp() throws Exception { - - String location = ContributionLocationHelper.getContributionLocation("Outer.composite"); - node = NodeFactory.newInstance().createNode("Outer.composite", new Contribution("c1", location)); - node.start(); - service1 = node.getService(MyService.class, "MyServiceComponent/MyService"); - service2 = node.getService(MyService.class, "MyServiceComponentNew/MyService"); - service3 = node.getService(MyService.class, "MySimpleServiceInRecursiveAnother"); - } - - /** - * Method annotated with - * - * @AfterClass is used for one time Tear Down, it executes after every tests. This method is used to close the - * node, close any previously opened connections etc - */ - @AfterClass - public static void tearDown() { - node.stop(); - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/properties/src/test/java/org/apache/tuscany/sca/itest/OuterPropertyTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/properties/src/test/java/org/apache/tuscany/sca/itest/OuterPropertyTestCase.java deleted file mode 100644 index 0906a45ab3..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/properties/src/test/java/org/apache/tuscany/sca/itest/OuterPropertyTestCase.java +++ /dev/null @@ -1,169 +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 org.apache.tuscany.sca.itest; - -import static org.junit.Assert.assertEquals; - -import java.util.Iterator; - -import org.apache.tuscany.sca.node.Contribution; -import org.apache.tuscany.sca.node.ContributionLocationHelper; -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; -import org.junit.AfterClass; -import org.junit.BeforeClass; -import org.junit.Test; - -/** - * This is a class which makes user of JUnit Framework, all tests are written using JUnit notation. These tests are used - * to test different property values returned from the SCA Runtime Environment which is initialized with the composite - * 'OuterPropertyTest.composite'. It basically tests the Simple type of property and Complex type of property from the - * SCA Runtime Environment. - */ -public class OuterPropertyTestCase { - - private static Node node; - private static ABComponent outerABService; - - /** - * Method annotated with - * - * @BeforeClass is used for one time set Up, it executes before every tests. This method is used to create a test - * Embedded SCA node, to start the SCA node and to get a reference to the 'outerABService' service - */ - @BeforeClass - public static void init() throws Exception { - String location = ContributionLocationHelper.getContributionLocation("OuterPropertyTest.composite"); - node = NodeFactory.newInstance().createNode("OuterPropertyTest.composite", new Contribution("c1", location)); - node.start(); - outerABService = node.getService(ABComponent.class, "OuterComponent"); - } - - /** - * Method annotated with - * - * @AfterClass is used for one time Tear Down, it executes after every tests. This method is used to close the - * node, close any previously opened connections etc - */ - @AfterClass - public static void destroy() throws Exception { - node.stop(); - } - - /** - * Method annotated with - * - * @Test is a test method where testing logic is written using various assert methods. This test verifies the - * property value obtained using a service from the SCA runtime environment with the expected value 'Overriden - * A' - */ - @Test - public void testOverridenA() { - assertEquals("Overriden A", outerABService.getA()); - } - - /** - * Method annotated with - * - * @Test is a test method where testing logic is written using various assert methods. This test verifies the - * property value obtained using a service from the SCA runtime environment with the expected value 'Overriden - * B' - */ - @Test - public void testOverridenB() { - assertEquals("Overriden B", outerABService.getB()); - } - - /** - * Method annotated with - * - * @Test is a test method where testing logic is written using various assert methods. This test verifies the - * property value obtained using a service from the SCA runtime environment with the expected value 'Overriden - * A' - */ - @Test - public void testOverridenF() { - assertEquals("Overriden A", outerABService.getF()); - } - - /** - * Method annotated with - * - * @Test is a test method where testing logic is written using various assert methods. This test verifies the - * property value obtained using a service from the SCA runtime environment with the expected value 'Overriden - * Z' - */ - @Test - public void testOverridenZ() { - assertEquals("Overriden Z", outerABService.getZ()); - } - - /** - * Method annotated with - * - * @Test is a test method where testing logic is written using various assert methods. This test verifies the - * property value obtained using a service from the SCA runtime environment with the expected value 125 - */ - @Test - public void testOverridenIntValue() { - assertEquals(125, outerABService.getIntValue()); - } - - /** - * Method annotated with - * - * @Test is a test method where testing logic is written using various assert methods. This test verifies the - * property value obtained using a service from the SCA runtime environment with the expected value 125 - */ - @Test - public void testDefaultValue() { - assertEquals(125, outerABService.getIntValue()); - } - - /** - * Method annotated with - * - * @Test is a test method where testing logic is written using various assert methods. This test verifies the - * property values obtained using a service from the SCA runtime environment with the expected values 'Apache' , - * 'Tuscany' and 'Java SCA' respectively . - */ - @Test - public void testManySimpleStringValues() { - Iterator iterator = outerABService.getManyStringValues().iterator(); - assertEquals("Apache", iterator.next()); - assertEquals("Tuscany", iterator.next()); - assertEquals("Java SCA", iterator.next()); - } - - /** - * Method annotated with - * - * @Test is a test method where testing logic is written using various assert methods. This test verifies the - * property values obtained using a service from the SCA runtime environment with the expected values 123, 456 - * and 789 - */ - @Test - public void testManySimpleIntegerValues() { - Iterator iterator = outerABService.getManyIntegers().iterator(); - assertEquals(123, iterator.next().intValue()); - assertEquals(456, iterator.next().intValue()); - assertEquals(789, iterator.next().intValue()); - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/properties/src/test/java/org/apache/tuscany/sca/itest/PropertyTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/properties/src/test/java/org/apache/tuscany/sca/itest/PropertyTestCase.java deleted file mode 100644 index eb217600db..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/properties/src/test/java/org/apache/tuscany/sca/itest/PropertyTestCase.java +++ /dev/null @@ -1,422 +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 org.apache.tuscany.sca.itest; - -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertNotNull; - -import java.math.BigInteger; -import java.util.Arrays; -import java.util.Iterator; - -import org.apache.tuscany.sca.node.Contribution; -import org.apache.tuscany.sca.node.ContributionLocationHelper; -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; -import org.junit.AfterClass; -import org.junit.Assert; -import org.junit.BeforeClass; -import org.junit.Test; - -import test.jaxb.props.ReturnCodeProperties; - -/** - * This is a class which makes user of JUnit Framework, all tests are written using JUnit notation. These tests are used - * to test different property values returned from the SCA Runtime Environment which is initialized with the composite - * 'PropertyTest.composite'. It basically tests all types of property values returned from SCA runtime environment. - */ -public class PropertyTestCase { - private static Node node; - private static ABComponent abService; - private static CDComponent cdService; - private static ABCDComponent abcdService; - private static PropertyComponent propertyService; - - /** - * Method annotated with - * - * @Test is a test method where testing logic is written using various assert methods. This test verifies the - * property value obtained using a service from the SCA runtime environment with the expected value 'a' - */ - @Test - public void testA() { - assertEquals("a", abService.getA()); - } - - /** - * Method annotated with - * - * @Test is a test method where testing logic is written using various assert methods. This test verifies the - * property value obtained using a service from the SCA runtime environment with the expected value 'b' - */ - @Test - public void testB() { - assertEquals("b", abService.getB()); - } - - /** - * Method annotated with - * - * @Test is a test method where testing logic is written using various assert methods. This test verifies the - * property value obtained using a service from the SCA runtime environment with the expected value 'c' - */ - @Test - public void testC() { - assertEquals("c", cdService.getC()); - } - - /** - * Method annotated with - * - * @Test is a test method where testing logic is written using various assert methods. This test verifies the - * property value obtained using a service from the SCA runtime environment with the expected value 'c' - */ - @Test - public void testC2() { - assertEquals("c", cdService.getC2()); - } - - /** - * Method annotated with - * - * @Test is a test method where testing logic is written using various assert methods. This test verifies the - * property value obtained using a service from the SCA runtime environment with the expected value 'd' - */ - @Test - public void testD() { - assertEquals("d", cdService.getD()); - } - - /** - * Method annotated with - * - * @Test is a test method where testing logic is written using various assert methods. This test verifies the - * property value obtained using a service from the SCA runtime environment with the expected value 'a' - */ - @Test - public void testF() { - assertEquals("a", abService.getF()); - } - - /** - * Method annotated with - * - * @Test is a test method where testing logic is written using various assert methods. This test verifies the - * property value obtained using a service from the SCA runtime environment with the expected value 'z' - */ - @Test - public void testZ() { - assertEquals("z", abService.getZ()); - } - - /** - * Method annotated with - * - * @Test is a test method where testing logic is written using various assert methods. This test verifies the - * property value obtained using a service from the SCA runtime environment with the expected value 1. - */ - @Test - public void testIntValue() { - assertEquals(1, abService.getIntValue()); - } - - /** - * Method annotated with - * - * @Test is a test method where testing logic is written using various assert methods. This test verifies the - * property value obtained using a service from the SCA runtime environment with the expected value 1. - */ - @Test - public void testDefaultValue() { - assertEquals(1, abService.getIntValue()); - } - - /** - * Method annotated with - * - * @Test is a test method where testing logic is written using various assert methods. This test verifies the - * property value obtained using a service from the SCA runtime environment with the expected value 1. - */ - @Test - public void testDefaultValueOverride() { - assertEquals(1, cdService.getOverrideValue()); - } - - /** - * Method annotated with - * - * @Test is a test method where testing logic is written using various assert methods. This test verifies the - * property value obtained using a service from the SCA runtime environment with the expected value 'aValue' - */ - @Test - public void testNoSource() { - assertEquals("aValue", cdService.getNoSource()); - } - - /** - * Method annotated with - * - * @Test is a test method where testing logic is written using various assert methods. This test verifies the - * property value obtained using a service from the SCA runtime environment with the expected value - * 'fileValue' - */ - @Test - public void testFileProperty() { - assertEquals("fileValue", cdService.getFileProperty()); - } - - /** - * Method annotated with - * - * @Test is a test method where testing logic is written using various assert methods. This test verifies the - * property values obtained using a service from the SCA runtime environment with the expected values 4 and - * 'fileValueTwo' respectively. - */ - @Test - public void testManyValuesFileProperty() { - Iterator iterator = cdService.getManyValuesFileProperty().iterator(); - iterator.next(); - String secondValue = iterator.next(); - assertEquals(4, cdService.getManyValuesFileProperty().size()); - assertEquals("fileValueTwo", secondValue); - } - - /** - * Method annotated with - * - * @Test is a test method where testing logic is written using various assert methods. This test verifies the - * property values obtained using a service from the SCA runtime environment with the expected values 'a' , - * 'b', 'c' and 'd' respectively. - */ - @Test - public void testABCD() { - assertEquals("a", abcdService.getA()); - assertEquals("b", abcdService.getB()); - assertEquals("c", abcdService.getC()); - assertEquals("d", abcdService.getD()); - } - - /** - * Method annotated with - * - * @Test is a test method where testing logic is written using various assert methods. This test verifies the - * property values obtained using a service from the SCA runtime environment with the expected values 'RTP' - * and '2006' respectively - */ - @Test - public void testDefaultProperty() { - assertEquals("RTP", propertyService.getLocation()); - assertEquals("2006", propertyService.getYear()); - - } - - /** - * Method annotated with - * - * @Test is a test method where testing logic is written using various assert methods. This test verifies the - * property values obtained using a service from the SCA runtime environment with the expected values 'Apache' , - * 'Tuscany' and 'Java SCA' respectively . - */ - @Test - public void testManySimpleStringValues() { - Iterator iterator = abService.getManyStringValues().iterator(); - assertEquals("Apache", iterator.next()); - assertEquals("Tuscany", iterator.next()); - assertEquals("Java SCA", iterator.next()); - } - - /** - * Method annotated with - * - * @Test is a test method where testing logic is written using various assert methods. This test verifies the - * property values obtained using a service from the SCA runtime environment with the expected values 123, 456 - * and 789 respectively. - */ - @Test - public void testManySimpleIntegerValues() { - Iterator iterator = abService.getManyIntegers().iterator(); - assertEquals(123, iterator.next().intValue()); - assertEquals(456, iterator.next().intValue()); - assertEquals(789, iterator.next().intValue()); - } - - /** - * Method annotated with - * - * @Test is a test method where testing logic is written using various assert methods. This test verifies the - * property values obtained using a service from the SCA runtime environment with the expected values - * 'TestString_1' and 2 respectively. - */ - @Test - public void testComplexPropertyOne() { - ComplexPropertyBean propBean = propertyService.getComplexPropertyOne(); - assertNotNull(propBean); - assertEquals("TestString_1", propBean.getStringArray()[0]); - assertEquals(2, propBean.numberSetArray[1].integerNumber); - } - - /** - * Method annotated with - * - * @Test is a test method where testing logic is written using various assert methods. This test verifies the - * property values obtained using a service from the SCA runtime environment with the expected integer number - * and a float number - */ - @Test - public void testComplexPropertyTwo() { - ComplexPropertyBean propBean = propertyService.getComplexPropertyTwo(); - assertNotNull(propBean); - assertEquals(10, propBean.intArray[0]); - assertEquals((float)22, propBean.numberSetArray[1].floatNumber); - } - - /** - * Method annotated with - * - * @Test is a test method where testing logic is written using various assert methods. This test verifies the - * property values obtained using a service from the SCA runtime environment with the expected value first - * element in the string array and the float number - */ - @Test - public void testComplexPropertyThree() { - ComplexPropertyBean propBean = propertyService.getComplexPropertyThree(); - assertNotNull(propBean); - assertEquals("TestElementString_1", propBean.stringArray[0]); - assertEquals((float)22, propBean.numberSetArray[1].floatNumber); - } - - /** - * Method annotated with - * - * @Test is a test method where testing logic is written using various assert methods. This test verifies the - * complex property value obtained using a service from the SCA runtime environment with the expected values - * 1, 222.222 and 33 respectively. - */ - @Test - public void testComplexPropertyFour() { - Object[] propBeanCollection = propertyService.getComplexPropertyFour().toArray(); - assertNotNull(propBeanCollection); - assertEquals(1, ((ComplexPropertyBean)propBeanCollection[0]).getIntegerNumber()); - assertEquals(222.222, ((ComplexPropertyBean)propBeanCollection[1]).getDoubleNumber()); - assertEquals(33, ((ComplexPropertyBean)propBeanCollection[2]).getNumberSet().getIntegerNumber()); - } - - /** - * Method annotated with - * - * @Test is a test method where testing logic is written using various assert methods. This test verifies the - * property values obtained using a service from the SCA runtime environment with the expected values - * 'TestString_3', 'TestString_4', 100 and 200. - */ - @Test - public void testComplexPropertyFive() { - ComplexPropertyBean propBean = propertyService.getComplexPropertyFive(); - assertNotNull(propBean); - assertEquals("TestString_3", propBean.getStringArray()[0]); - assertEquals("TestString_4", propBean.getStringArray()[1]); - assertEquals(100, propBean.getIntArray()[0]); - assertEquals(200, propBean.getIntArray()[1]); - } - - @Test - public void testGetLocationFromComponentContext() { - String location = propertyService.getLocation(); - assertNotNull(location); - String locationFromCC = propertyService.getLocationFromComponentContext(); - assertNotNull(locationFromCC); - assertEquals(location, locationFromCC); - } - - @Test - public void testGetInjectedStringArrayProperty() { - String[] daysOfWeek = propertyService.getDaysOfTheWeek(); - assertNotNull(daysOfWeek); - - String[] expected = {"Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"}; - Assert.assertTrue(Arrays.equals(expected, daysOfWeek)); - } - - @Test - public void testGetInjectedIntegerArrayProperty() { - Integer[] numbers = propertyService.getIntegerNumbers(); - assertNotNull(numbers); - - Integer[] expected = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10}; - Assert.assertTrue(Arrays.equals(expected, numbers)); - } - - @Test - public void testGetInjectedIntArrayProperty() { - int[] numbers = propertyService.getIntNumbers(); - assertNotNull(numbers); - - int[] expected = {10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0}; - Assert.assertTrue(Arrays.equals(expected, numbers)); - } - - @Test - public void testComplexJAXBProperty() { - ReturnCodeProperties rc = propertyService.getComplexJAXBPropertyOne(); - assertEquals(10, rc.getA()); - assertEquals(new BigInteger("10"), rc.getB()); - } - - @Test - public void testComplexJAXBPropertyFromFile() { - ReturnCodeProperties rc = propertyService.getComplexJAXBPropertyTwo(); - System.out.println("SKSK: a =" + rc.getA()); - System.out.println("SKSK: b =" + rc.getB()); - assertEquals(20, rc.getA()); - assertEquals(new BigInteger("20"), rc.getB()); - } - - /** - * Method annotated with - * - * @BeforeClass is used for one time set Up, it executes before every tests. This method is used to create a test - * Embedded SCA node, to start the SCA node and to get a reference to 4 services namely 'abService' - * service, 'cdService' service, 'abcdService' service and 'propertyService' service - */ - @BeforeClass - public static void init() throws Exception { - try { - String location = ContributionLocationHelper.getContributionLocation("PropertyTest.composite"); - node = NodeFactory.newInstance().createNode("PropertyTest.composite", new Contribution("c1", location)); - node.start(); - } catch (Exception e) { - e.printStackTrace(); - } - abService = node.getService(ABComponent.class, "ABComponent"); - cdService = node.getService(CDComponent.class, "CDComponent"); - abcdService = node.getService(ABCDComponent.class, "ABCDComponent"); - propertyService = node.getService(PropertyComponent.class, "PropertyComponent"); - } - - /** - * Method annotated with - * - * @AfterClass is used for one time Tear Down, it executes after every tests. This method is used to close the - * node, close any previously opened connections etc - */ - @AfterClass - public static void destroy() throws Exception { - node.stop(); - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/properties/src/test/java/org/apache/tuscany/sca/itest/cdi/ConstructorPropertyInjectionTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/properties/src/test/java/org/apache/tuscany/sca/itest/cdi/ConstructorPropertyInjectionTestCase.java deleted file mode 100644 index a0213ced46..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/properties/src/test/java/org/apache/tuscany/sca/itest/cdi/ConstructorPropertyInjectionTestCase.java +++ /dev/null @@ -1,72 +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 org.apache.tuscany.sca.itest.cdi; - -import static org.junit.Assert.assertEquals; - -import org.apache.tuscany.sca.node.Contribution; -import org.apache.tuscany.sca.node.ContributionLocationHelper; -import org.apache.tuscany.sca.node.NodeFactory; -import org.junit.AfterClass; -import org.junit.BeforeClass; -import org.junit.Test; - -public class ConstructorPropertyInjectionTestCase { - private static org.apache.tuscany.sca.node.Node node; - - @BeforeClass - public static void init() throws Exception { - try { - String location = ContributionLocationHelper.getContributionLocation("ConstructorPropertyInjection.composite"); - node = NodeFactory.newInstance().createNode("ConstructorPropertyInjection.composite", new Contribution("c1", location)); - node.start(); - } catch (Exception e) { - e.printStackTrace(); - } - } - - /** - * Method annotated with - * - * @AfterClass is used for one time Tear Down, it executes after every tests. This method is used to close the - * node, close any previously opened connections etc - */ - @AfterClass - public static void destroy() throws Exception { - node.stop(); - } - - @Test - public void testFoo1() throws Exception { - Bar foo = node.getService(Bar.class, "Foo1Component"); - assertEquals("fubar", foo.getBar()); - } - - @Test - public void testFoo2() throws Exception { - Bar foo = node.getService(Bar.class, "Foo2Component"); - assertEquals("fubar", foo.getBar()); - } - - @Test - public void testFoo3() throws Exception { - Bar foo = node.getService(Bar.class, "Foo3Component"); - assertEquals("fubar", foo.getBar()); - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/recursive-multi-level/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/recursive-multi-level/pom.xml deleted file mode 100644 index 432254c7af..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/recursive-multi-level/pom.xml +++ /dev/null @@ -1,61 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-itest - 2.0-M5 - - - itest-recursive-multi-level - Apache Tuscany SCA iTest Builder Recusive Multi-Level - - - - org.apache.tuscany.sca - tuscany-node-api - 2.0-M5 - - - - org.apache.tuscany.sca - tuscany-node-impl - 2.0-M5 - test - - - - org.apache.tuscany.sca - tuscany-implementation-java-runtime - 2.0-M5 - test - - - - - xalan - xalan - 2.7.1 - test - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/recursive-multi-level/src/main/java/mysca/test/myservice/MyService.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/recursive-multi-level/src/main/java/mysca/test/myservice/MyService.java deleted file mode 100644 index 986c8305dd..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/recursive-multi-level/src/main/java/mysca/test/myservice/MyService.java +++ /dev/null @@ -1,26 +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 mysca.test.myservice; - -public interface MyService { - String getLocation(); - - String getYear(); -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/recursive-multi-level/src/main/java/mysca/test/myservice/MyServiceImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/recursive-multi-level/src/main/java/mysca/test/myservice/MyServiceImpl.java deleted file mode 100644 index 6cad998042..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/recursive-multi-level/src/main/java/mysca/test/myservice/MyServiceImpl.java +++ /dev/null @@ -1,42 +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 mysca.test.myservice; - -import org.oasisopen.sca.annotation.Property; -import org.oasisopen.sca.annotation.Service; - -@Service(MyService.class) -public class MyServiceImpl implements MyService { - - @Property(name = "location") - protected String location = "ABC"; - - @Property(name = "year") - protected String year = "2006"; - - public String getLocation() { - return location; - } - - public String getYear() { - return year; - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/recursive-multi-level/src/main/java/mysca/test/myservice/MySimpleTotalService.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/recursive-multi-level/src/main/java/mysca/test/myservice/MySimpleTotalService.java deleted file mode 100644 index 261eff2584..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/recursive-multi-level/src/main/java/mysca/test/myservice/MySimpleTotalService.java +++ /dev/null @@ -1,26 +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 mysca.test.myservice; - -public interface MySimpleTotalService { - String getLocation(); - - String getYear(); -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/recursive-multi-level/src/main/java/mysca/test/myservice/MySimpleTotalServiceImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/recursive-multi-level/src/main/java/mysca/test/myservice/MySimpleTotalServiceImpl.java deleted file mode 100644 index f3c9280f96..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/recursive-multi-level/src/main/java/mysca/test/myservice/MySimpleTotalServiceImpl.java +++ /dev/null @@ -1,39 +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 mysca.test.myservice; - -import org.oasisopen.sca.annotation.Reference; -import org.oasisopen.sca.annotation.Service; - -@Service(MySimpleTotalService.class) -public class MySimpleTotalServiceImpl implements MySimpleTotalService { - // default required==true so it is 1:1 - @Reference - public MyService myService; - - public String getLocation() { - return myService.getLocation(); - } - - public String getYear() { - return myService.getYear(); - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/recursive-multi-level/src/main/resources/TotalService1Auto.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/recursive-multi-level/src/main/resources/TotalService1Auto.composite deleted file mode 100644 index 146b8b4543..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/recursive-multi-level/src/main/resources/TotalService1Auto.composite +++ /dev/null @@ -1,52 +0,0 @@ - - - - - Level 1 - 2001 - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/recursive-multi-level/src/main/resources/TotalService2Auto.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/recursive-multi-level/src/main/resources/TotalService2Auto.composite deleted file mode 100644 index cf8506b4e7..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/recursive-multi-level/src/main/resources/TotalService2Auto.composite +++ /dev/null @@ -1,49 +0,0 @@ - - - - - Level 2 - 2002 - - - - Default 2 - 1992 - - - - - - - - - - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/recursive-multi-level/src/main/resources/TotalService3Auto.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/recursive-multi-level/src/main/resources/TotalService3Auto.composite deleted file mode 100644 index 7386404e71..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/recursive-multi-level/src/main/resources/TotalService3Auto.composite +++ /dev/null @@ -1,52 +0,0 @@ - - - - - Level 3 - 2003 - - - - Default 3 - 1993 - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/recursive-multi-level/src/test/java/test/sca/tests/MultiLevelTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/recursive-multi-level/src/test/java/test/sca/tests/MultiLevelTestCase.java deleted file mode 100644 index b9b4e3ba7c..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/recursive-multi-level/src/test/java/test/sca/tests/MultiLevelTestCase.java +++ /dev/null @@ -1,90 +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 test.sca.tests; - -import static org.junit.Assert.assertEquals; -import mysca.test.myservice.MySimpleTotalService; - -import org.apache.tuscany.sca.node.Contribution; -import org.apache.tuscany.sca.node.ContributionLocationHelper; -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; -import org.junit.AfterClass; -import org.junit.BeforeClass; -import org.junit.Ignore; -import org.junit.Test; - -/** - * Tests to make sure that autowiring and recusive composite work together - * - */ -public class MultiLevelTestCase { - private static Node node1; - private static Node node2; - private static Node node3; - private static MySimpleTotalService myService1; - private static MySimpleTotalService myService2; - private static MySimpleTotalService myService3; - - @BeforeClass - public static void setUp() throws Exception { - String location = ContributionLocationHelper.getContributionLocation("TotalService1Auto.composite"); - Contribution contribution = new Contribution("c1", location); - try { - node1 = NodeFactory.newInstance().createNode("TotalService1Auto.composite", contribution); - } catch (Exception e) { - e.printStackTrace(); - } - node2 = NodeFactory.newInstance().createNode("TotalService2Auto.composite", contribution); - node3 = NodeFactory.newInstance().createNode("TotalService3Auto.composite", contribution); - - node1.start(); - node2.start(); - node3.start(); - - myService1 = node1.getService(MySimpleTotalService.class, "TotalServiceComponentLevel1Auto"); - myService2 = node2.getService(MySimpleTotalService.class, "TotalServiceInRecursive2Auto/MyServiceLevel1Auto"); - myService3 = node3.getService(MySimpleTotalService.class, "TotalServiceInRecursive3Auto/MyServiceLevel2Auto"); - } - - @Test - public void testLevel1() { - assertEquals("Level 1", myService1.getLocation()); - assertEquals("2001", myService1.getYear()); - } - - @Test - public void testLevel2() { - assertEquals("Default 2", myService2.getLocation()); - assertEquals("1992", myService2.getYear()); - } - - @Test - public void testLevel3() { - assertEquals("Default 3", myService3.getLocation()); - assertEquals("1993", myService3.getYear()); - } - - @AfterClass - public static void tearDown() { - node1.stop(); - node2.stop(); - node3.stop(); - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/recursive-ws/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/recursive-ws/pom.xml deleted file mode 100644 index 63e2773f09..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/recursive-ws/pom.xml +++ /dev/null @@ -1,92 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-itest - 2.0-M5 - ../pom.xml - - itest-recursive-ws - Apache Tuscany SCA iTest Recursive WS - 2.0-M5 - - - - org.apache.tuscany.sca - tuscany-node-api - ${pom.version} - - - - org.apache.tuscany.sca - tuscany-node-impl - ${pom.version} - - - - org.apache.tuscany.sca - tuscany-implementation-java-runtime - ${pom.version} - runtime - - - - org.apache.tuscany.sca - tuscany-interface-wsdl - ${pom.version} - runtime - - - - org.apache.tuscany.sca - tuscany-binding-ws-axis2 - ${pom.version} - runtime - - - - org.apache.tuscany.sca - tuscany-databinding-axiom - ${pom.version} - runtime - - - - - - - default - - true - - - - org.apache.tuscany.sca - tuscany-host-jetty - 2.0-M5 - runtime - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/recursive-ws/src/main/java/policy/Target.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/recursive-ws/src/main/java/policy/Target.java deleted file mode 100644 index 2366f6542a..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/recursive-ws/src/main/java/policy/Target.java +++ /dev/null @@ -1,26 +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 policy; - -import org.oasisopen.sca.annotation.Remotable; - -@Remotable -public interface Target { - String hello(String arg); -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/recursive-ws/src/main/java/policy/TargetClientImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/recursive-ws/src/main/java/policy/TargetClientImpl.java deleted file mode 100644 index b2d59e925c..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/recursive-ws/src/main/java/policy/TargetClientImpl.java +++ /dev/null @@ -1,33 +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 policy; - -import org.oasisopen.sca.annotation.Reference; -import org.oasisopen.sca.annotation.Service; - -@Service(Target.class) -public class TargetClientImpl implements Target { - - @Reference - protected Target targetService; - - public String hello(String arg) { - return "Target: Hello " + targetService.hello(arg) + "!"; - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/recursive-ws/src/main/java/policy/TargetServiceImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/recursive-ws/src/main/java/policy/TargetServiceImpl.java deleted file mode 100644 index 6f52dfb26e..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/recursive-ws/src/main/java/policy/TargetServiceImpl.java +++ /dev/null @@ -1,29 +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 policy; - -import org.oasisopen.sca.annotation.Service; - -@Service(Target.class) -public class TargetServiceImpl implements Target { - - public String hello(String arg) { - return "Target: Hello " + arg + "!"; - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/recursive-ws/src/main/java/recursive/Composer.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/recursive-ws/src/main/java/recursive/Composer.java deleted file mode 100644 index 18486115ae..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/recursive-ws/src/main/java/recursive/Composer.java +++ /dev/null @@ -1,26 +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 recursive; - -import org.oasisopen.sca.annotation.Remotable; - -@Remotable -public interface Composer { - public String Compose(String s); -} \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/recursive-ws/src/main/java/recursive/ComposerClient.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/recursive-ws/src/main/java/recursive/ComposerClient.java deleted file mode 100644 index 13c306d9b1..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/recursive-ws/src/main/java/recursive/ComposerClient.java +++ /dev/null @@ -1,43 +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 recursive; - -import java.io.File; - -import org.apache.tuscany.sca.node.Client; -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; -import org.apache.tuscany.sca.node.Contribution; - -/** - * For testing purpose - */ -public class ComposerClient { - - public final static void main(String[] args) throws Exception { - NodeFactory factory = NodeFactory.newInstance(); - Node node = factory.createNode(new File("src/main/resources/Client.composite").toURI().toURL().toString(), - new Contribution("TestContribution", new File("src/main/resources/").toURI().toURL().toString())); - node.start(); - Composer composer = ((Client)node).getService(Composer.class, "ClientComponent/Composer"); - System.out.println(composer.Compose("ABC")); - node.stop(); - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/recursive-ws/src/main/java/recursive/ComposerClientImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/recursive-ws/src/main/java/recursive/ComposerClientImpl.java deleted file mode 100644 index 3c432bc26a..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/recursive-ws/src/main/java/recursive/ComposerClientImpl.java +++ /dev/null @@ -1,38 +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 recursive; - -import org.oasisopen.sca.annotation.Reference; - -/** - * @version $Rev$ $Date$ - */ -public class ComposerClientImpl implements Composer { - @Reference - protected Composer composerWS; - - /** - * @see recursive.Composer#Compose(java.lang.String) - */ - public String Compose(String s) { - return composerWS.Compose(s); - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/recursive-ws/src/main/java/recursive/ComposerImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/recursive-ws/src/main/java/recursive/ComposerImpl.java deleted file mode 100644 index 8b77484922..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/recursive-ws/src/main/java/recursive/ComposerImpl.java +++ /dev/null @@ -1,34 +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 recursive; - -/** - * Composer Component Implementation - * - */ - -public class ComposerImpl implements Composer { - - public String Compose(String s) { - System.out.println("Composing " + s + "..."); - return "Composed: " + s; - - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/recursive-ws/src/main/java/recursive/ComposerServer.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/recursive-ws/src/main/java/recursive/ComposerServer.java deleted file mode 100644 index a123160d85..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/recursive-ws/src/main/java/recursive/ComposerServer.java +++ /dev/null @@ -1,42 +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 recursive; - -import java.io.File; - -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; -import org.apache.tuscany.sca.node.Contribution; - -/** - * For testing purpose - */ -public class ComposerServer { - - public final static void main(String[] args) throws Exception { - NodeFactory factory = NodeFactory.newInstance(); - Node node = factory.createNode(new File("src/main/resources/Outer.composite").toURI().toURL().toString(), - new Contribution("TestContribution", new File("src/main/resources/").toURI().toURL().toString())); - node.start(); - System.out.println("Press Enter to exit..."); - System.in.read(); - node.stop(); - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/recursive-ws/src/main/resources/Client.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/recursive-ws/src/main/resources/Client.composite deleted file mode 100644 index 50cbaa5086..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/recursive-ws/src/main/resources/Client.composite +++ /dev/null @@ -1,29 +0,0 @@ - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/recursive-ws/src/main/resources/Inner.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/recursive-ws/src/main/resources/Inner.composite deleted file mode 100644 index df7130ba99..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/recursive-ws/src/main/resources/Inner.composite +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/recursive-ws/src/main/resources/Outer.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/recursive-ws/src/main/resources/Outer.composite deleted file mode 100644 index 1c7d49f1c0..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/recursive-ws/src/main/resources/Outer.composite +++ /dev/null @@ -1,32 +0,0 @@ - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/recursive-ws/src/main/resources/bindingoverride/InnerComposite.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/recursive-ws/src/main/resources/bindingoverride/InnerComposite.composite deleted file mode 100644 index cb6e0cc358..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/recursive-ws/src/main/resources/bindingoverride/InnerComposite.composite +++ /dev/null @@ -1,36 +0,0 @@ - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/recursive-ws/src/main/resources/bindingoverride/OuterComposite.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/recursive-ws/src/main/resources/bindingoverride/OuterComposite.composite deleted file mode 100644 index 3f76efb11b..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/recursive-ws/src/main/resources/bindingoverride/OuterComposite.composite +++ /dev/null @@ -1,38 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/recursive-ws/src/main/resources/policy/PolicyInnerComposite.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/recursive-ws/src/main/resources/policy/PolicyInnerComposite.composite deleted file mode 100644 index 3e78eb4533..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/recursive-ws/src/main/resources/policy/PolicyInnerComposite.composite +++ /dev/null @@ -1,37 +0,0 @@ - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/recursive-ws/src/main/resources/policy/PolicyOuterComposite.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/recursive-ws/src/main/resources/policy/PolicyOuterComposite.composite deleted file mode 100644 index 6e686a579f..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/recursive-ws/src/main/resources/policy/PolicyOuterComposite.composite +++ /dev/null @@ -1,39 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/recursive-ws/src/main/resources/policy/definitions.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/recursive-ws/src/main/resources/policy/definitions.xml deleted file mode 100644 index 923e1ad5f6..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/recursive-ws/src/main/resources/policy/definitions.xml +++ /dev/null @@ -1,39 +0,0 @@ - - - - - - - Test Intent One - - - - - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/recursive-ws/src/test/java/bindingoverride/BindingOverrideTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/recursive-ws/src/test/java/bindingoverride/BindingOverrideTestCase.java deleted file mode 100644 index a1b3eb3afa..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/recursive-ws/src/test/java/bindingoverride/BindingOverrideTestCase.java +++ /dev/null @@ -1,65 +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 bindingoverride; - -import java.io.File; - -import junit.framework.Assert; - -import org.apache.tuscany.sca.node.Client; -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; -import org.apache.tuscany.sca.node.Contribution; - -import org.junit.After; -import org.junit.Before; -import org.junit.Ignore; -import org.junit.Test; - -import policy.Target; - -public class BindingOverrideTestCase{ - - private Node node; - private Target targetClient; - - @Before - public void setUp() throws Exception { - try { - NodeFactory factory = NodeFactory.newInstance(); - node = factory.createNode(new File("src/main/resources/bindingoverride/OuterComposite.composite").toURI().toURL().toString(), - new Contribution("TestContribution", new File("src/main/resources/bindingoverride/").toURI().toURL().toString())); - node.start(); - targetClient = ((Client)node).getService(Target.class, "OuterClientComponent"); - } catch(Exception ex) { - System.out.println(ex.toString()); - } - } - - @After - public void tearDown() throws Exception { - node.stop(); - } - - @Test - //@Ignore("TUSCANY-2352") - public void test() throws Exception { - Assert.assertEquals("Target: Hello Target: Hello Fred!!", targetClient.hello("Fred")); - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/recursive-ws/src/test/java/policy/PolicyTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/recursive-ws/src/test/java/policy/PolicyTestCase.java deleted file mode 100644 index 821a437d12..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/recursive-ws/src/test/java/policy/PolicyTestCase.java +++ /dev/null @@ -1,81 +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 policy; - -import java.io.File; - -import junit.framework.Assert; - -import org.apache.tuscany.sca.assembly.Component; -import org.apache.tuscany.sca.assembly.impl.CompositeImpl; -import org.apache.tuscany.sca.node.Client; -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.impl.NodeImpl; -import org.apache.tuscany.sca.node.NodeFactory; -import org.apache.tuscany.sca.node.Contribution; -import org.apache.tuscany.sca.policy.PolicySet; -import org.junit.After; -import org.junit.Before; -import org.junit.Test; - -public class PolicyTestCase{ - - private Node node; - private Target targetClient; - - @Before - public void setUp() throws Exception { - try { - NodeFactory factory = NodeFactory.newInstance(); - node = factory.createNode(new File("src/main/resources/policy/PolicyOuterComposite.composite").toURI().toURL().toString(), - new Contribution("TestContribution", new File("src/main/resources/policy/").toURI().toURL().toString())); - node.start(); - targetClient = ((Client)node).getService(Target.class, "TargetClientComponent"); - } catch(Exception ex) { - System.out.println(ex.toString()); - } - } - - @After - public void tearDown() throws Exception { - node.stop(); - } - - @Test - public void test() throws Exception { - //Check that the binding policy sets do flow down to the component but not down to the - //component inside implementation.composite - Component outerComponent = ((NodeImpl)node).getDomainComposite().getComponent("OuterTargetServiceComponent"); - - // The outer component service bindings should have policy sets attached - Assert.assertEquals(1, outerComponent.getServices().get(0).getPolicySets().size()); - - Component component = ((CompositeImpl)outerComponent.getImplementation()).getComponents().get(0); - - // The original inner component service binding should not have policy sets attached - Assert.assertEquals(0, ((PolicySet)component.getServices().get(0).getBindings().get(0)).getReferencedPolicySets().size()); - - // The promoted inner component service binding should have policy sets attached - Assert.assertEquals(1, ((PolicySet)component.getServices().get(1).getBindings().get(0)).getReferencedPolicySets().size()); - - String result = targetClient.hello("Fred"); - - System.out.println(result); - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/recursive-ws/src/test/java/recursive/ComposerClientTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/recursive-ws/src/test/java/recursive/ComposerClientTestCase.java deleted file mode 100644 index 3852947223..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/recursive-ws/src/test/java/recursive/ComposerClientTestCase.java +++ /dev/null @@ -1,76 +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 recursive; - -import java.io.File; - -import junit.framework.Assert; - -import org.apache.tuscany.sca.node.Client; -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; -import org.apache.tuscany.sca.node.Contribution; -//import org.apache.tuscany.sca.host.embedded.SCATestCaseRunner; -import org.junit.After; -import org.junit.Before; -import org.junit.Test; - -import recursive.Composer; - -/** - * Test case for helloworld web service client - */ -public class ComposerClientTestCase { - - private Composer composer; - private Node node; - - //private SCATestCaseRunner server; - - @Before - public void startClient() throws Exception { - try { - NodeFactory factory = NodeFactory.newInstance(); - node = factory.createNode(new File("src/main/resources/Client.composite").toURI().toURL().toString(), - new Contribution("TestContribution", new File("src/main/resources/").toURI().toURL().toString())); - node.start(); - composer = ((Client)node).getService(Composer.class, "ClientComponent/Composer"); - - //server = new SCATestCaseRunner(ComposerTestServer.class); - //server.before(); - - } catch (Throwable e) { - e.printStackTrace(); - } - } - - @Test - public void testWSClient() throws Exception { - String msg = composer.Compose("ABC"); - Assert.assertEquals("Composed: ABC", msg); - } - - @After - public void stopClient() throws Exception { - //server.after(); - node.stop(); - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/recursive-ws/src/test/java/recursive/ComposerTestServer.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/recursive-ws/src/test/java/recursive/ComposerTestServer.java deleted file mode 100644 index 6ceeb3e3eb..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/recursive-ws/src/test/java/recursive/ComposerTestServer.java +++ /dev/null @@ -1,61 +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 recursive; - -import java.io.File; -import java.io.IOException; -import java.net.Socket; - -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; -import org.apache.tuscany.sca.node.Contribution; -import org.junit.After; -import org.junit.Before; -import org.junit.Test; - -/** - * Starts up the SCA runtime which starts listening for service requests - */ -public class ComposerTestServer { - - private Node node; - - @Before - public void startServer() throws Exception { - try { - NodeFactory factory = NodeFactory.newInstance(); - node = factory.createNode(new File("src/main/resources/Outer.composite").toURI().toURL().toString(), - new Contribution("TestContribution", new File("src/main/resources/").toURI().toURL().toString())); - node.start(); - } catch (Exception e) { - e.printStackTrace(); - } - } - - @Test - public void testPing() throws IOException { - new Socket("127.0.0.1", 8085); - } - - @After - public void stopServer() throws Exception { - node.stop(); - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/references/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/references/pom.xml deleted file mode 100644 index e57f81b341..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/references/pom.xml +++ /dev/null @@ -1,52 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-itest - 2.0-M5 - ../pom.xml - - itest-references - Apache Tuscany SCA iTest References - - - - org.apache.tuscany.sca - tuscany-node-api - 2.0-M5 - - - - org.apache.tuscany.sca - tuscany-node-impl - 2.0-M5 - test - - - - org.apache.tuscany.sca - tuscany-implementation-java-runtime - 2.0-M5 - test - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/references/src/main/java/org/apache/tuscany/sca/itest/references/AComponent.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/references/src/main/java/org/apache/tuscany/sca/itest/references/AComponent.java deleted file mode 100644 index f8c0850118..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/references/src/main/java/org/apache/tuscany/sca/itest/references/AComponent.java +++ /dev/null @@ -1,40 +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 org.apache.tuscany.sca.itest.references; - -public interface AComponent { - - String fooB(); - - String fooC(); - - String fooBC(); - - String fooD1(); - - String fooD2(); - - String fooMultipleD(); - - String fooMultipleDArray(); - - String fooMultipleDServiceRef(); - - DComponent getDReference(); -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/references/src/main/java/org/apache/tuscany/sca/itest/references/AComponentImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/references/src/main/java/org/apache/tuscany/sca/itest/references/AComponentImpl.java deleted file mode 100644 index cd0aad3eea..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/references/src/main/java/org/apache/tuscany/sca/itest/references/AComponentImpl.java +++ /dev/null @@ -1,125 +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 org.apache.tuscany.sca.itest.references; - -import java.util.Collection; -import java.util.List; - -import org.oasisopen.sca.ServiceReference; -import org.oasisopen.sca.annotation.Reference; - -public class AComponentImpl implements AComponent { - - @Reference(name = "bReference") - protected BComponent b; - - @Reference - private CComponent cReference; - - @Reference(required = false) - protected DComponent dReference; - - @Reference(name = "dReferences") - public Collection dReferences; - - @Reference(name = "dReferenceArray") - public DComponent[] dReferenceArray; - - @Reference(name = "dServiceReferences") - public List> dServiceReferences; - - private DComponent dReference1; - - private DComponent dReference2; - - @Reference(name = "dReference1", required = false) - public void setDReference(DComponent dReference) { - this.dReference1 = dReference; - } - - @Reference - public void setDReference2(DComponent dReference2) { - this.dReference2 = dReference2; - } - - public String fooB() { - return b.bFoo(); - } - - public String fooC() { - return cReference.cFoo(); - } - - public String fooBC() { - return b.fooC(); - } - - public String fooD() { - return dReference1.dFoo(); - } - - public String fooD1() { - return dReference1.dFoo(); - } - - public String fooD2() { - return dReference2.dFoo(); - } - - public String fooMultipleDArray() { - StringBuffer str = new StringBuffer(); - for (DComponent d : dReferenceArray) { - str.append(d.getComponentName()); - str.append(','); - } - if (str.length() > 0) { - str.deleteCharAt(str.length() - 1); - } - return str.toString(); - } - - public String fooMultipleD() { - StringBuffer str = new StringBuffer(); - for (DComponent d : dReferences) { - str.append(d.getComponentName()); - str.append(','); - } - if (str.length() > 0) { - str.deleteCharAt(str.length() - 1); - } - return str.toString(); - } - - public String fooMultipleDServiceRef() { - StringBuffer str = new StringBuffer(); - for (ServiceReference d : dServiceReferences) { - str.append(d.getService().getComponentName()); - str.append(','); - } - if (str.length() > 0) { - str.deleteCharAt(str.length() - 1); - } - return str.toString(); - } - - public DComponent getDReference() { - return dReference; - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/references/src/main/java/org/apache/tuscany/sca/itest/references/BComponent.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/references/src/main/java/org/apache/tuscany/sca/itest/references/BComponent.java deleted file mode 100644 index 785920bb2d..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/references/src/main/java/org/apache/tuscany/sca/itest/references/BComponent.java +++ /dev/null @@ -1,26 +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 org.apache.tuscany.sca.itest.references; - -public interface BComponent { - - String bFoo(); - - String fooC(); -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/references/src/main/java/org/apache/tuscany/sca/itest/references/BComponentImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/references/src/main/java/org/apache/tuscany/sca/itest/references/BComponentImpl.java deleted file mode 100644 index 211e6160f6..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/references/src/main/java/org/apache/tuscany/sca/itest/references/BComponentImpl.java +++ /dev/null @@ -1,39 +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 org.apache.tuscany.sca.itest.references; - -import org.oasisopen.sca.annotation.Reference; - -public class BComponentImpl implements BComponent { - - protected CComponent cReference; - - public BComponentImpl(@Reference(name = "cReference") CComponent cReference) { - this.cReference = cReference; - } - - public String bFoo() { - return "BComponent"; - } - - public String fooC() { - return "B" + cReference.cFoo(); - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/references/src/main/java/org/apache/tuscany/sca/itest/references/BComponentWrongTargetImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/references/src/main/java/org/apache/tuscany/sca/itest/references/BComponentWrongTargetImpl.java deleted file mode 100644 index 47a1f9bde8..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/references/src/main/java/org/apache/tuscany/sca/itest/references/BComponentWrongTargetImpl.java +++ /dev/null @@ -1,39 +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 org.apache.tuscany.sca.itest.references; - -import org.oasisopen.sca.annotation.Reference; - -public class BComponentWrongTargetImpl implements BComponent { - - protected CComponent cReference; - - public BComponentWrongTargetImpl(@Reference(name = "cReference") CComponent cReference) { - this.cReference = cReference; - } - - public String bFoo() { - return "BComponentWrongTarget"; - } - - public String fooC() { - return "B" + cReference.cFoo(); - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/references/src/main/java/org/apache/tuscany/sca/itest/references/CComponent.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/references/src/main/java/org/apache/tuscany/sca/itest/references/CComponent.java deleted file mode 100644 index d436c28adc..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/references/src/main/java/org/apache/tuscany/sca/itest/references/CComponent.java +++ /dev/null @@ -1,24 +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 org.apache.tuscany.sca.itest.references; - -public interface CComponent { - - String cFoo(); -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/references/src/main/java/org/apache/tuscany/sca/itest/references/CComponentImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/references/src/main/java/org/apache/tuscany/sca/itest/references/CComponentImpl.java deleted file mode 100644 index a1823e1cdc..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/references/src/main/java/org/apache/tuscany/sca/itest/references/CComponentImpl.java +++ /dev/null @@ -1,27 +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 org.apache.tuscany.sca.itest.references; - -public class CComponentImpl implements CComponent { - - public String cFoo() { - return "CComponent"; - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/references/src/main/java/org/apache/tuscany/sca/itest/references/DComponent.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/references/src/main/java/org/apache/tuscany/sca/itest/references/DComponent.java deleted file mode 100644 index 80617bdec2..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/references/src/main/java/org/apache/tuscany/sca/itest/references/DComponent.java +++ /dev/null @@ -1,26 +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 org.apache.tuscany.sca.itest.references; - -public interface DComponent { - - String dFoo(); - - String getComponentName(); -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/references/src/main/java/org/apache/tuscany/sca/itest/references/DComponentImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/references/src/main/java/org/apache/tuscany/sca/itest/references/DComponentImpl.java deleted file mode 100644 index d181ac96ca..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/references/src/main/java/org/apache/tuscany/sca/itest/references/DComponentImpl.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 org.apache.tuscany.sca.itest.references; - -import org.oasisopen.sca.annotation.ComponentName; - -public class DComponentImpl implements DComponent { - @ComponentName - public String name; - - public String dFoo() { - return "DComponent"; - } - - public String getComponentName() { - return name; - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/references/src/main/resources/AutoWiredReferencesTest.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/references/src/main/resources/AutoWiredReferencesTest.composite deleted file mode 100644 index 14899fce62..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/references/src/main/resources/AutoWiredReferencesTest.composite +++ /dev/null @@ -1,61 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/references/src/main/resources/InnerReferencesTest.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/references/src/main/resources/InnerReferencesTest.composite deleted file mode 100644 index 7048eaf371..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/references/src/main/resources/InnerReferencesTest.composite +++ /dev/null @@ -1,51 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/references/src/main/resources/ManualWiredReferencesTest.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/references/src/main/resources/ManualWiredReferencesTest.composite deleted file mode 100644 index dbf72f67b6..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/references/src/main/resources/ManualWiredReferencesTest.composite +++ /dev/null @@ -1,59 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/references/src/test/java/org/apache/tuscany/sca/itest/references/AutoWiredReferenceTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/references/src/test/java/org/apache/tuscany/sca/itest/references/AutoWiredReferenceTestCase.java deleted file mode 100644 index 76264d308f..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/references/src/test/java/org/apache/tuscany/sca/itest/references/AutoWiredReferenceTestCase.java +++ /dev/null @@ -1,114 +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 org.apache.tuscany.sca.itest.references; - -import static org.junit.Assert.assertEquals; - -import org.apache.tuscany.sca.node.Contribution; -import org.apache.tuscany.sca.node.ContributionLocationHelper; -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; -import org.junit.AfterClass; -import org.junit.Assert; -import org.junit.BeforeClass; -import org.junit.Test; -import org.oasisopen.sca.ServiceUnavailableException; - -public class AutoWiredReferenceTestCase { - private static Node node; - private static AComponent acomponent; - private static AComponent acomponentAutowire; - - @BeforeClass - public static void init() throws Exception { - try { - String location = ContributionLocationHelper.getContributionLocation("AutoWiredReferencesTest.composite"); - node = - NodeFactory.newInstance().createNode("AutoWiredReferencesTest.composite", - new Contribution("c1", location)); - node.start(); - acomponent = node.getService(AComponent.class, "AComponent"); - acomponentAutowire = node.getService(AComponent.class, "AComponentAutowire"); - } catch (Throwable e) { - e.printStackTrace(); - } - } - - @AfterClass - public static void destroy() throws Exception { - node.stop(); - } - - @Test - public void testBReference() { - assertEquals("BComponent", acomponent.fooB()); - } - - @Test - public void testCReference() { - assertEquals("CComponent", acomponent.fooC()); - } - - @Test - public void testBCReference() { - assertEquals("BCComponent", acomponent.fooBC()); - } - - @Test(expected = Exception.class) - public void testD1Reference() { - acomponent.fooD1(); - } - - @Test - public void testD2Reference() { - assertEquals("DComponent", acomponent.fooD2()); - } - - @Test - public void testMultiDReferenceArray() { - String components = acomponent.fooMultipleDArray(); - Assert.assertTrue(components.contains("DComponent1")); - } - - @Test - public void testMultiDServiceReference() { - String components = acomponent.fooMultipleDServiceRef(); - Assert.assertTrue(components.contains("DComponent")); - Assert.assertTrue(components.contains("DComponent1")); - } - - @Test - public void testRequiredFalseReference() { - try { - acomponent.getDReference().dFoo(); - } catch (Exception e) { - Assert.assertTrue(true); - } - } - - @Test - public void testTargetPrecendence() { - try { - assertEquals("BComponent", acomponentAutowire.fooB()); - } catch (Exception e) { - Assert.assertTrue(true); - } - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/references/src/test/java/org/apache/tuscany/sca/itest/references/InnerReferenceTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/references/src/test/java/org/apache/tuscany/sca/itest/references/InnerReferenceTestCase.java deleted file mode 100644 index 6e4212fd9a..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/references/src/test/java/org/apache/tuscany/sca/itest/references/InnerReferenceTestCase.java +++ /dev/null @@ -1,99 +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 org.apache.tuscany.sca.itest.references; - -import static org.junit.Assert.assertEquals; - -import org.apache.tuscany.sca.node.Contribution; -import org.apache.tuscany.sca.node.ContributionLocationHelper; -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; -import org.junit.AfterClass; -import org.junit.Assert; -import org.junit.BeforeClass; -import org.junit.Test; - -public class InnerReferenceTestCase { - private static Node node; - private static AComponent acomponent; - - @BeforeClass - public static void init() throws Exception { - String location = ContributionLocationHelper.getContributionLocation("InnerReferencesTest.composite"); - node = NodeFactory.newInstance().createNode("InnerReferencesTest.composite", new Contribution("c1", location)); - node.start(); - acomponent = node.getService(AComponent.class, "AComponent"); - } - - @AfterClass - public static void destroy() throws Exception { - node.stop(); - } - - @Test - public void testBReference() { - assertEquals("BComponent", acomponent.fooB()); - } - - @Test - public void testCReference() { - assertEquals("CComponent", acomponent.fooC()); - } - - @Test - public void testBCReference() { - assertEquals("BCComponent", acomponent.fooBC()); - } - - @Test - public void testD1Reference() { - assertEquals("DComponent", acomponent.fooD1()); - } - - @Test - public void testD2Reference() { - assertEquals("DComponent", acomponent.fooD2()); - } - - @Test - public void testMultiDReference() { - String components = acomponent.fooMultipleD(); - Assert.assertTrue(components.contains("DComponent")); - Assert.assertTrue(components.contains("DComponent1")); - } - - @Test - public void testMultiDReferenceArray() { - String components = acomponent.fooMultipleDArray(); - Assert.assertTrue(components.equals("DComponent1")); - } - - @Test - public void testMultiDServiceReference() { - String components = acomponent.fooMultipleDServiceRef(); - Assert.assertTrue(components.contains("DComponent")); - Assert.assertTrue(components.contains("DComponent1")); - } - - @Test(expected = Exception.class) - public void testRequiredFalseReference() { - acomponent.getDReference().dFoo(); - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/references/src/test/java/org/apache/tuscany/sca/itest/references/ManualWiredReferenceTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/references/src/test/java/org/apache/tuscany/sca/itest/references/ManualWiredReferenceTestCase.java deleted file mode 100644 index 2fce95401e..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/references/src/test/java/org/apache/tuscany/sca/itest/references/ManualWiredReferenceTestCase.java +++ /dev/null @@ -1,97 +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 org.apache.tuscany.sca.itest.references; - -import static org.junit.Assert.assertEquals; - -import org.apache.tuscany.sca.node.Contribution; -import org.apache.tuscany.sca.node.ContributionLocationHelper; -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; -import org.junit.AfterClass; -import org.junit.Assert; -import org.junit.BeforeClass; -import org.junit.Ignore; -import org.junit.Test; - -public class ManualWiredReferenceTestCase { - private static Node node; - private static AComponent acomponent; - - @BeforeClass - public static void init() throws Exception { - String location = ContributionLocationHelper.getContributionLocation("ManualWiredReferencesTest.composite"); - node = NodeFactory.newInstance().createNode("ManualWiredReferencesTest.composite", new Contribution("c1", location)); - node.start(); - acomponent = node.getService(AComponent.class, "AComponent"); - } - - @AfterClass - public static void destroy() throws Exception { - node.stop(); - } - - @Test - public void testBReference() { - assertEquals("BComponent", acomponent.fooB()); - } - - @Test - public void testCReference() { - assertEquals("CComponent", acomponent.fooC()); - } - - @Test - public void testBCReference() { - assertEquals("BCComponent", acomponent.fooBC()); - } - - @Test - public void testD1Reference() { - acomponent.fooD1(); - } - - @Test - public void testD2Reference() { - assertEquals("DComponent", acomponent.fooD2()); - } - - @Test - public void testMultiDReferenceArray() { - String components = acomponent.fooMultipleDArray(); - Assert.assertTrue(components.contains("DComponent1")); - } - - @Test - public void testMultiDServiceReference() { - String components = acomponent.fooMultipleDServiceRef(); - Assert.assertTrue(components.contains("DComponent")); - Assert.assertTrue(components.contains("DComponent1")); - } - - @Test - public void testRequiredFalseReference() { - try { - acomponent.getDReference().dFoo(); - } catch (Exception e) { - Assert.assertTrue(true); - } - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/samples/helloworld/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/samples/helloworld/pom.xml deleted file mode 100644 index 917ad1848b..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/samples/helloworld/pom.xml +++ /dev/null @@ -1,38 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-itest - 2.0-M5 - ../../pom.xml - - itest-samples-helloworld - Apache Tuscany SCA iTest Samples Helloworld - - - - org.apache.tuscany.sca - tuscany-domain-node - 2.0-M5 - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/samples/helloworld/src/test/java/itest/helloworld/Helloworld.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/samples/helloworld/src/test/java/itest/helloworld/Helloworld.java deleted file mode 100644 index 38dc80bed3..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/samples/helloworld/src/test/java/itest/helloworld/Helloworld.java +++ /dev/null @@ -1,27 +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 itest.helloworld; - -import org.oasisopen.sca.annotation.Remotable; - -@Remotable -public interface Helloworld { - String sayHello(String name); -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/samples/helloworld/src/test/java/itest/helloworld/HelloworldDomainNodeTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/samples/helloworld/src/test/java/itest/helloworld/HelloworldDomainNodeTestCase.java deleted file mode 100644 index dd46d68547..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/samples/helloworld/src/test/java/itest/helloworld/HelloworldDomainNodeTestCase.java +++ /dev/null @@ -1,51 +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 itest.helloworld; - - -import static org.junit.Assert.assertEquals; - -import org.apache.tuscany.sca.domain.node.DomainNode; -import org.junit.After; -import org.junit.Before; -import org.junit.Test; -import org.oasisopen.sca.NoSuchServiceException; - -public class HelloworldDomainNodeTestCase { - - DomainNode node; - - @Before - public void setUp() throws Exception { - node = new DomainNode("../../../samples/helloworld/target/sample-helloworld.zip"); - } - - @Test - public void testHelloworld() throws NoSuchServiceException { - assertEquals(1, node.getServiceNames().size()); - assertEquals("HelloworldComponent/Helloworld", node.getServiceNames().get(0)); - Helloworld service = node.getService(Helloworld.class, "HelloworldComponent"); - assertEquals("Hello petra", service.sayHello("petra")); - } - - @After - public void stop() { - node.stop(); - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/samples/helloworld/src/test/java/itest/helloworld/HelloworldNodeTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/samples/helloworld/src/test/java/itest/helloworld/HelloworldNodeTestCase.java deleted file mode 100644 index 37950f1276..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/samples/helloworld/src/test/java/itest/helloworld/HelloworldNodeTestCase.java +++ /dev/null @@ -1,49 +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 itest.helloworld; - - -import static org.junit.Assert.assertEquals; - -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; -import org.junit.After; -import org.junit.Before; -import org.junit.Test; - -public class HelloworldNodeTestCase { - - Node node; - - @Before - public void setUp() throws Exception { - node = NodeFactory.newInstance().createNode(null, new String[]{"../../../samples/helloworld/target/sample-helloworld.zip"}).start(); - } - - @Test - public void testHelloworld() { - Helloworld service = node.getService(Helloworld.class, "HelloworldComponent"); - assertEquals("Hello petra", service.sayHello("petra")); - } - - @After - public void stop() { - node.stop(); - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/scaclient-api-jse-osgi/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/scaclient-api-jse-osgi/pom.xml deleted file mode 100644 index 0c5fa8ef77..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/scaclient-api-jse-osgi/pom.xml +++ /dev/null @@ -1,57 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-itest - 2.0-M5 - ../pom.xml - - itest-scaclient-api-jse-osgi - Apache Tuscany SCA iTest SCAClient API JSE and OSGI - - - - org.apache.tuscany.sca - tuscany-sca-api - 2.0-M5 - - - - org.apache.tuscany.sca - tuscany-node-launcher-equinox - 2.0-M5 - - - - org.apache.tuscany.sca - tuscany-node-api - 2.0-M5 - - - - junit - junit - 4.8.1 - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/scaclient-api-jse-osgi/src/main/java/itest/HelloworldService.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/scaclient-api-jse-osgi/src/main/java/itest/HelloworldService.java deleted file mode 100644 index 1c7edaefb6..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/scaclient-api-jse-osgi/src/main/java/itest/HelloworldService.java +++ /dev/null @@ -1,25 +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 itest; - -public interface HelloworldService { - - String sayHello(String name); - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/scaclient-api-jse-osgi/src/main/java/itest/HelloworldServiceImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/scaclient-api-jse-osgi/src/main/java/itest/HelloworldServiceImpl.java deleted file mode 100644 index 7793bdd544..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/scaclient-api-jse-osgi/src/main/java/itest/HelloworldServiceImpl.java +++ /dev/null @@ -1,38 +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 itest; - -import org.oasisopen.sca.annotation.EagerInit; -import org.oasisopen.sca.annotation.Init; -import org.oasisopen.sca.annotation.Scope; - -@EagerInit -@Scope("COMPOSITE") -public class HelloworldServiceImpl implements HelloworldService { - - public String sayHello(String name) { - return "Hello " + name; - } - - @Init - public void init() { - System.out.println("Init - " + sayHello("world")); - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/scaclient-api-jse-osgi/src/main/resources/Helloworld.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/scaclient-api-jse-osgi/src/main/resources/Helloworld.composite deleted file mode 100644 index 2d5ae6a57c..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/scaclient-api-jse-osgi/src/main/resources/Helloworld.composite +++ /dev/null @@ -1,29 +0,0 @@ - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/scaclient-api-jse-osgi/src/main/resources/META-INF/sca-contribution.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/scaclient-api-jse-osgi/src/main/resources/META-INF/sca-contribution.xml deleted file mode 100644 index 56e127b539..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/scaclient-api-jse-osgi/src/main/resources/META-INF/sca-contribution.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/scaclient-api-jse-osgi/src/test/java/test/scaclient/SCAClientTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/scaclient-api-jse-osgi/src/test/java/test/scaclient/SCAClientTestCase.java deleted file mode 100644 index 8bf162dfd9..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/scaclient-api-jse-osgi/src/test/java/test/scaclient/SCAClientTestCase.java +++ /dev/null @@ -1,63 +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 test.scaclient; - -import java.net.URI; - -import itest.HelloworldService; -import junit.framework.TestCase; - -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.equinox.launcher.Contribution; -import org.apache.tuscany.sca.node.equinox.launcher.NodeLauncher; -import org.oasisopen.sca.client.SCAClientFactory; - -/** - * Test SCADomain.newInstance and invocation of a service. - * - * @version $Rev$ $Date$ - */ -public class SCAClientTestCase extends TestCase { - - private static NodeLauncher launcher; - private static Node node; - - @Override - protected void setUp() throws Exception { - launcher = NodeLauncher.newInstance(); - node = launcher.createNode(null, new Contribution("test", "./target/classes")); - System.out.println("SCA Node API ClassLoader: " + node.getClass().getClassLoader()); - node.start(); - } - - public void testInvoke() throws Exception { - // At the moment the SCAClientFactory assumes that only one domain is active - // in a JVM. So we pass in null for the domain name and get what we're given - HelloworldService service = - SCAClientFactory.newInstance(URI.create("default")).getService(HelloworldService.class, "HelloworldComponent"); - assertEquals("Hello petra", service.sayHello("petra")); - } - - @Override - protected void tearDown() throws Exception { - node.stop(); - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/scaclient-api-osgi/META-INF/MANIFEST.MF b/sca-java-2.x/tags/2.0-M5-RC3/itest/scaclient-api-osgi/META-INF/MANIFEST.MF deleted file mode 100644 index ae6704f97d..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/scaclient-api-osgi/META-INF/MANIFEST.MF +++ /dev/null @@ -1,20 +0,0 @@ -Manifest-Version: 1.0 -Private-Package: helloworld;version="2.0.0" -Tool: Bnd-0.0.255 -Bundle-Name: Apache Tuscany SCA SCAClient API OSGi itest -Created-By: 1.6.0_07 (Sun Microsystems Inc.) -Bundle-Vendor: The Apache Software Foundation -Eclipse-LazyStart: false -Bundle-Version: 2.0.0 -Bnd-LastModified: 1223949424781 -Bundle-ManifestVersion: 2 -Bundle-License: http://www.apache.org/licenses/LICENSE-2.0.txt -Bundle-Description: Apache Tuscany SCA SCAClient API OSGi itest -Import-Package: org.apache.tuscany.sca.node;version="2.0.0", - org.oasisopen.sca;version="2.0.0", - org.oasisopen.sca.annotation;version="2.0.0", - org.oasisopen.sca.client;version="2.0.0", - org.osgi.framework;version="1.4" -Bundle-SymbolicName: itest-scaclient-apo-osgi -Bundle-DocURL: http://www.apache.org/ -Bundle-RequiredExecutionEnvironment: J2SE-1.5,JavaSE-1.6 diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/scaclient-api-osgi/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/scaclient-api-osgi/pom.xml deleted file mode 100644 index 564955401b..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/scaclient-api-osgi/pom.xml +++ /dev/null @@ -1,109 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-itest - 2.0-M5 - ../pom.xml - - itest-scaclient-api-osgi - Apache Tuscany SCA iTest SCAClient API OSGi - - - - org.apache.tuscany.sca - tuscany-feature-api - 2.0-M5 - pom - - - - org.apache.tuscany.sca - tuscany-feature-core - 2.0-M5 - pom - - - - junit - junit - 4.8.1 - - - - - - ${artifactId} - - - maven-eclipse-plugin - 2.5.1 - - - org.eclipse.pde.ManifestBuilder - org.eclipse.jdt.core.javabuilder - - - org.eclipse.jdt.core.javanature - org.eclipse.pde.PluginNature - - - org.eclipse.jdt.launching.JRE_CONTAINER - - - - - - - maven-jar-plugin - - - ${basedir}/META-INF/MANIFEST.MF - - - - - - org.apache.tuscany.maven.plugins - maven-osgi-junit-plugin - 1.0 - - - org.apache.tuscany.sca - tuscany-node-launcher-equinox - ${pom.version} - - - - - osgi-test - test - - test - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/scaclient-api-osgi/src/main/java/itest/HelloworldService.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/scaclient-api-osgi/src/main/java/itest/HelloworldService.java deleted file mode 100644 index 1c7edaefb6..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/scaclient-api-osgi/src/main/java/itest/HelloworldService.java +++ /dev/null @@ -1,25 +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 itest; - -public interface HelloworldService { - - String sayHello(String name); - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/scaclient-api-osgi/src/main/java/itest/HelloworldServiceImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/scaclient-api-osgi/src/main/java/itest/HelloworldServiceImpl.java deleted file mode 100644 index 3eecc59439..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/scaclient-api-osgi/src/main/java/itest/HelloworldServiceImpl.java +++ /dev/null @@ -1,38 +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 itest; - -import org.oasisopen.sca.annotation.EagerInit; -import org.oasisopen.sca.annotation.Init; -import org.oasisopen.sca.annotation.Scope; - -@EagerInit -@Scope("COMPOSITE") -public class HelloworldServiceImpl implements HelloworldService { - - public String sayHello(String name) { - return "Hello " + name; - } - - @Init - public void init() { - System.out.println("Result from Init = " + sayHello("world")); - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/scaclient-api-osgi/src/main/resources/Helloworld.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/scaclient-api-osgi/src/main/resources/Helloworld.composite deleted file mode 100644 index 2d5ae6a57c..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/scaclient-api-osgi/src/main/resources/Helloworld.composite +++ /dev/null @@ -1,29 +0,0 @@ - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/scaclient-api-osgi/src/main/resources/META-INF/sca-contribution.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/scaclient-api-osgi/src/main/resources/META-INF/sca-contribution.xml deleted file mode 100644 index 56e127b539..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/scaclient-api-osgi/src/main/resources/META-INF/sca-contribution.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/scaclient-api-osgi/src/test/java/test/scaclient/SCAClientTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/scaclient-api-osgi/src/test/java/test/scaclient/SCAClientTestCase.java deleted file mode 100644 index 431b2995aa..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/scaclient-api-osgi/src/test/java/test/scaclient/SCAClientTestCase.java +++ /dev/null @@ -1,65 +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 test.scaclient; - -import java.net.URI; - -import itest.HelloworldService; -import junit.framework.TestCase; - -import org.apache.tuscany.sca.node.Contribution; -import org.apache.tuscany.sca.node.ContributionLocationHelper; -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; -import org.oasisopen.sca.NoSuchDomainException; -import org.oasisopen.sca.NoSuchServiceException; -import org.oasisopen.sca.client.SCAClientFactory; - -/** - * Test SCADomain.newInstance and invocation of a service. - * - * @version $Rev$ $Date$ - */ -public class SCAClientTestCase extends TestCase { - - private static Node node; - - @Override - protected void setUp() throws Exception { - String location = ContributionLocationHelper.getContributionLocation(HelloworldService.class); - node = NodeFactory.getInstance().createNode("Helloworld.composite", new Contribution("test", "./target/classes")); - System.out.println("SCA Node API ClassLoader: " + node.getClass().getClassLoader()); - node.start(); - } - - public void testInvoke() throws NoSuchServiceException, NoSuchDomainException { - HelloworldService service = - SCAClientFactory.newInstance(URI.create("default")).getService(HelloworldService.class, "HelloworldComponent"); - String result = service.sayHello("petra"); - assertEquals("Hello petra", result); - System.out.println("Result from SCAClient call = " + result); - } - - @Override - protected void tearDown() throws Exception { - node.stop(); - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/scaclient-api-remote/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/scaclient-api-remote/pom.xml deleted file mode 100644 index 1902467614..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/scaclient-api-remote/pom.xml +++ /dev/null @@ -1,64 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-itest - 2.0-M5 - ../pom.xml - - itest-scaclient-api-remote - Apache Tuscany SCA iTest SCAClient API with Hazelcast client - - - - org.apache.tuscany.sca - tuscany-sca-client-impl - 2.0-M5 - - - - org.apache.tuscany.sca - tuscany-binding-hazelcast-runtime - 2.0-M5 - - - - org.apache.tuscany.sca - tuscany-endpoint-hazelcast - 2.0-M5 - - - org.apache.tuscany.sca - tuscany-endpoint-hazelcast-client - 2.0-M5 - - - - - org.apache.tuscany.sca - tuscany-implementation-java-runtime - 2.0-M5 - runtime - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/scaclient-api-remote/src/main/java/itest/HelloworldService.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/scaclient-api-remote/src/main/java/itest/HelloworldService.java deleted file mode 100644 index f97d2c3a83..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/scaclient-api-remote/src/main/java/itest/HelloworldService.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 itest; - -import org.oasisopen.sca.annotation.Remotable; - -@Remotable -public interface HelloworldService { - - String sayHello(String name); - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/scaclient-api-remote/src/main/java/itest/HelloworldServiceImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/scaclient-api-remote/src/main/java/itest/HelloworldServiceImpl.java deleted file mode 100644 index a04b40279f..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/scaclient-api-remote/src/main/java/itest/HelloworldServiceImpl.java +++ /dev/null @@ -1,38 +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 itest; - -import org.oasisopen.sca.annotation.EagerInit; -import org.oasisopen.sca.annotation.Init; -import org.oasisopen.sca.annotation.Scope; - -@EagerInit -@Scope("COMPOSITE") -public class HelloworldServiceImpl implements HelloworldService { - - public String sayHello(String name) { - return "Hello " + name; - } - - @Init - public void init() { - System.out.println(sayHello("world")); - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/scaclient-api-remote/src/main/resources/Helloworld.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/scaclient-api-remote/src/main/resources/Helloworld.composite deleted file mode 100644 index d37c93857d..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/scaclient-api-remote/src/main/resources/Helloworld.composite +++ /dev/null @@ -1,29 +0,0 @@ - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/scaclient-api-remote/src/main/resources/META-INF/sca-contribution.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/scaclient-api-remote/src/main/resources/META-INF/sca-contribution.xml deleted file mode 100644 index e178823296..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/scaclient-api-remote/src/main/resources/META-INF/sca-contribution.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/scaclient-api-remote/src/test/java/test/scaclient/SCAClientTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/scaclient-api-remote/src/test/java/test/scaclient/SCAClientTestCase.java deleted file mode 100644 index 0ae70d6c3f..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/scaclient-api-remote/src/test/java/test/scaclient/SCAClientTestCase.java +++ /dev/null @@ -1,115 +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 test.scaclient; - -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.fail; -import itest.HelloworldService; - -import java.net.URI; - -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; -import org.junit.After; -import org.junit.AfterClass; -import org.junit.BeforeClass; -import org.junit.Test; -import org.oasisopen.sca.NoSuchDomainException; -import org.oasisopen.sca.client.SCAClientFactory; - -/** - * Test SCADomain.newInstance and invocation of a service. - * - * @version $Rev: 904064 $ $Date: 2010-01-28 12:31:36 +0000 (Thu, 28 Jan 2010) $ - */ -public class SCAClientTestCase { - - private Node node; - - @BeforeClass - public static void setUpBeforeClass() throws Exception { - } - - @AfterClass - public static void tearDownAfterClass() throws Exception { - } - - @Test - public void testDefault() throws Exception { - - node = NodeFactory.newInstance().createNode((String)null, new String[] {"target/classes"}); - node.start(); - - HelloworldService service = SCAClientFactory.newInstance(URI.create("default")).getService(HelloworldService.class, "HelloworldComponent"); - assertEquals("Hello petra", service.sayHello("petra")); - } - - @Test - public void testURIconfig() throws Exception { - - node = NodeFactory.newInstance("uri:somedomain").createNode((String)null, new String[] {"target/classes"}); - node.start(); - - HelloworldService service = SCAClientFactory.newInstance(URI.create("somedomain")).getService(HelloworldService.class, "HelloworldComponent"); - assertEquals("Hello petra", service.sayHello("petra")); - try { - service = SCAClientFactory.newInstance(URI.create("nosuchdomain")).getService(HelloworldService.class, "HelloworldComponent"); - service.sayHello("petra"); - fail(); - } catch (Exception e) { - if (!(e.getCause() instanceof NoSuchDomainException)) { - throw e; - } - } - } - - @Test - public void testExplicit() throws Exception { - node = NodeFactory.newInstance().createNode(URI.create("myFooDomain"), new String[] {"target/classes"}); - node.start(); - - HelloworldService service = SCAClientFactory.newInstance(URI.create("myFooDomain")).getService(HelloworldService.class, "HelloworldComponent"); - assertEquals("Hello petra", service.sayHello("petra")); - } - - @Test - public void testExplicitRemote() throws Exception { - node = NodeFactory.newInstance("uri:myFooDomain?bind=127.0.0.1:14821").createNode((String)null, new String[] {"target/classes"}); - node.start(); - - HelloworldService service = SCAClientFactory.newInstance(URI.create("uri:myFooDomain?wka=127.0.0.1:14821")).getService(HelloworldService.class, "HelloworldComponent"); - assertEquals("Hello petra", service.sayHello("petra")); - } - - @Test - public void testExplicitRemote2() throws Exception { - node = NodeFactory.newInstance("uri:myFooDomain?bind=127.0.0.1:14821").createNode((String)null, new String[] {"target/classes"}); - node.start(); - - HelloworldService service = SCAClientFactory.newInstance(URI.create("uri:myFooDomain?wka=127.0.0.1:14821")).getService(HelloworldService.class, "HelloworldComponent"); - assertEquals("Hello petra", service.sayHello("petra")); - } - - @After - public void tearDown() throws Exception { - node.stop(); - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/scaclient-api/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/scaclient-api/pom.xml deleted file mode 100644 index 3d7e8d600e..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/scaclient-api/pom.xml +++ /dev/null @@ -1,46 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-itest - 2.0-M5 - ../pom.xml - - itest-scaclient-api - Apache Tuscany SCA iTest SCAClient API - - - - org.apache.tuscany.sca - tuscany-sca-client-impl - 2.0-M5 - - - - org.apache.tuscany.sca - tuscany-implementation-java-runtime - 2.0-M5 - runtime - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/scaclient-api/src/main/java/itest/HelloworldService.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/scaclient-api/src/main/java/itest/HelloworldService.java deleted file mode 100644 index 1c7edaefb6..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/scaclient-api/src/main/java/itest/HelloworldService.java +++ /dev/null @@ -1,25 +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 itest; - -public interface HelloworldService { - - String sayHello(String name); - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/scaclient-api/src/main/java/itest/HelloworldServiceImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/scaclient-api/src/main/java/itest/HelloworldServiceImpl.java deleted file mode 100644 index 5af221313e..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/scaclient-api/src/main/java/itest/HelloworldServiceImpl.java +++ /dev/null @@ -1,44 +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 itest; - -import org.oasisopen.sca.annotation.EagerInit; -import org.oasisopen.sca.annotation.Init; -import org.oasisopen.sca.annotation.Scope; -import org.oasisopen.sca.annotation.Service; - -@EagerInit -@Scope("COMPOSITE") -@Service({HelloworldService.class, RemoteHelloworldService.class}) -public class HelloworldServiceImpl implements HelloworldService, RemoteHelloworldService { - - public String sayHello(String name) { - return "Hello " + name; - } - - public String sayHelloRemote(String name) { - return "Hello " + name; - } - - @Init - public void init() { - System.out.println(sayHello("world")); - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/scaclient-api/src/main/java/itest/RemoteHelloworldService.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/scaclient-api/src/main/java/itest/RemoteHelloworldService.java deleted file mode 100644 index a8640bf484..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/scaclient-api/src/main/java/itest/RemoteHelloworldService.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 itest; - -import org.oasisopen.sca.annotation.Remotable; - -@Remotable -public interface RemoteHelloworldService { - - String sayHelloRemote(String name); - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/scaclient-api/src/main/resources/Helloworld.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/scaclient-api/src/main/resources/Helloworld.composite deleted file mode 100644 index 2d5ae6a57c..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/scaclient-api/src/main/resources/Helloworld.composite +++ /dev/null @@ -1,29 +0,0 @@ - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/scaclient-api/src/main/resources/META-INF/sca-contribution.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/scaclient-api/src/main/resources/META-INF/sca-contribution.xml deleted file mode 100644 index 56e127b539..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/scaclient-api/src/main/resources/META-INF/sca-contribution.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/scaclient-api/src/test/java/test/scaclient/SCAClientTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/scaclient-api/src/test/java/test/scaclient/SCAClientTestCase.java deleted file mode 100644 index 6a639661cf..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/scaclient-api/src/test/java/test/scaclient/SCAClientTestCase.java +++ /dev/null @@ -1,129 +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 test.scaclient; - -import itest.HelloworldService; -import itest.RemoteHelloworldService; - -import java.net.URI; - -import junit.framework.TestCase; - -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; -import org.junit.Test; -import org.oasisopen.sca.NoSuchDomainException; -import org.oasisopen.sca.NoSuchServiceException; -import org.oasisopen.sca.client.SCAClientFactory; - -/** - * Test SCADomain.newInstance and invocation of a service. - * - * @version $Rev$ $Date$ - */ -public class SCAClientTestCase extends TestCase { - - private Node node; - - @Test - public void testDefault() throws Exception { - - node = NodeFactory.getInstance().createNode((String)null, new String[] {"target/classes"}); - node.start(); - - SCAClientFactory clientFactory = SCAClientFactory.newInstance(URI.create("default")); - HelloworldService service = clientFactory.getService(HelloworldService.class, "HelloworldComponent/HelloworldService"); - assertEquals("Hello petra", service.sayHello("petra")); - - RemoteHelloworldService remoteService = clientFactory.getService(RemoteHelloworldService.class, "HelloworldComponent/RemoteHelloworldService"); - assertEquals("Hello petra", remoteService.sayHelloRemote("petra")); - - } - - @Test - public void testExplicit() throws Exception { - node = NodeFactory.getInstance().createNode(URI.create("myFooDomain"), new String[] {"target/classes"}); - node.start(); - - SCAClientFactory clientFactory = SCAClientFactory.newInstance(URI.create("myFooDomain")); - HelloworldService service = clientFactory.getService(HelloworldService.class, "HelloworldComponent/HelloworldService"); - assertEquals("Hello petra", service.sayHello("petra")); - - RemoteHelloworldService remoteService = clientFactory.getService(RemoteHelloworldService.class, "HelloworldComponent/RemoteHelloworldService"); - assertEquals("Hello petra", remoteService.sayHelloRemote("petra")); - assertEquals("Hello petra", service.sayHello("petra")); - } - -// @Test -// public void testWithoutServiceName() throws Exception { -// node = NodeFactory.getInstance().createNode(URI.create("myFooDomain"), new String[] {"target/classes"}); -// node.start(); -// -// SCAClientFactory clientFactory = SCAClientFactory.newInstance(URI.create("myFooDomain")); -// HelloworldService service = clientFactory.getService(HelloworldService.class, "HelloworldComponent"); -// assertEquals("Hello petra", service.sayHello("petra")); -// } - - @Test - public void testWithBadServiceName() throws Exception { - node = NodeFactory.getInstance().createNode(URI.create("myFooDomain"), new String[] {"target/classes"}); - node.start(); - - SCAClientFactory clientFactory = SCAClientFactory.newInstance(URI.create("myFooDomain")); - try { - clientFactory.getService(HelloworldService.class, "HelloworldComponent/foo"); - fail(); - } catch (NoSuchServiceException e) { - // expected - } - } - - @Test - public void testWithBadDomainName() throws Exception { - node = NodeFactory.getInstance().createNode(URI.create("myFooDomain"), new String[] {"target/classes"}); - node.start(); - - SCAClientFactory clientFactory = SCAClientFactory.newInstance(URI.create("someBadDomainName")); - try { - HelloworldService service = clientFactory.getService(HelloworldService.class, "HelloworldComponent/foo"); - service.sayHello("petra"); - fail(); - } catch (Exception e) { - if (!(e.getCause() instanceof NoSuchDomainException)) { - throw e; - } - } - } - - // @Test @Ignore -// public void testHTTPURI() throws Exception { -// node = NodeFactory.getInstance().createNode(URI.create("http://defaultDomain"), new String[] {"target/classes"}); -// node.start(); -// -// HelloworldService service = SCAClientFactory.newInstance(URI.create("http://defaultDomain")).getService(HelloworldService.class, "HelloworldComponent"); -// assertEquals("Hello petra", service.sayHello("petra")); -// } - - @Override - protected void tearDown() throws Exception { - node.stop(); - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/scdl/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/scdl/pom.xml deleted file mode 100644 index 2e4b4e508e..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/scdl/pom.xml +++ /dev/null @@ -1,79 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-itest - 2.0-M5 - ../pom.xml - - - itest-scdl - Apache Tuscany SCA iTest SCDL - - - - org.apache.tuscany.sca - tuscany-deployment - 2.0-M5 - - - org.apache.tuscany.sca - tuscany-implementation-java - 2.0-M5 - - - org.apache.tuscany.sca - tuscany-binding-jsonp - 2.0-M5 - - - org.apache.tuscany.sca - tuscany-binding-rmi - 2.0-M5 - - - org.apache.tuscany.sca - tuscany-binding-jms - 2.0-M5 - - - - - - - - org.apache.maven.plugins - maven-dependency-plugin - - - copy - compile - - copy-dependencies - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/scdl/src/test/java/org/apache/tuscany/sca/itest/scdl/ContributionTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/scdl/src/test/java/org/apache/tuscany/sca/itest/scdl/ContributionTestCase.java deleted file mode 100644 index 97fdb53d6c..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/scdl/src/test/java/org/apache/tuscany/sca/itest/scdl/ContributionTestCase.java +++ /dev/null @@ -1,80 +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 org.apache.tuscany.sca.itest.scdl; - -import java.io.File; -import java.net.URL; -import java.util.Arrays; -import java.util.List; - -import junit.framework.Assert; - -import org.apache.tuscany.sca.assembly.Component; -import org.apache.tuscany.sca.assembly.Composite; -import org.apache.tuscany.sca.assembly.Implementation; -import org.apache.tuscany.sca.assembly.Reference; -import org.apache.tuscany.sca.contribution.Contribution; -import org.apache.tuscany.sca.deployment.DefaultDeployer; -import org.apache.tuscany.sca.deployment.Deployer; -import org.apache.tuscany.sca.implementation.java.JavaImplementation; -import org.apache.tuscany.sca.monitor.Monitor; -import org.junit.After; -import org.junit.Before; -import org.junit.Test; - -/** - * Test case for reading and writing SCDL - */ -public class ContributionTestCase { - - @Test - public void testRead() throws Exception { - Deployer deployer = new DefaultDeployer(); - File file = new File("../../samples/binding-sca/contribution-calculator/target/sample-contribution-binding-sca-calculator.jar"); - URL url = file.toURI().toURL(); - Monitor monitor = deployer.createMonitor(); - Contribution contribution = deployer.loadContribution(url.toURI(), url, monitor); - deployer.build(Arrays.asList(contribution), Arrays.asList(contribution), null, monitor); - - // Ferkle around in the contribution verifying it looks as expected - Assert.assertNotNull(contribution); - List deployables = contribution.getDeployables(); - Assert.assertEquals(2, deployables.size()); - Composite calculatorComposte = deployables.get(0); - Assert.assertEquals("Calculator", calculatorComposte.getName().getLocalPart()); - Assert.assertEquals(5, calculatorComposte.getComponents().size()); - Component calcComp = calculatorComposte.getComponent("CalculatorServiceComponent"); - Assert.assertNotNull(calcComp); - Assert.assertEquals(4, calcComp.getReferences().size()); - Reference ref = calcComp.getReference("addService"); - Assert.assertEquals("AddServiceComponent", ref.getTargets().get(0).getName()); - Implementation impl = calcComp.getImplementation(); - Assert.assertTrue(impl instanceof JavaImplementation); - Assert.assertEquals("calculator.CalculatorServiceImpl", ((JavaImplementation)impl).getJavaClass().getName()); - } - - @Before - public void setUp() throws Exception { - } - - @After - public void tearDown() throws Exception { - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/scdl/src/test/java/org/apache/tuscany/sca/itest/scdl/SCDLTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/scdl/src/test/java/org/apache/tuscany/sca/itest/scdl/SCDLTestCase.java deleted file mode 100644 index 7dd52c5942..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/scdl/src/test/java/org/apache/tuscany/sca/itest/scdl/SCDLTestCase.java +++ /dev/null @@ -1,109 +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 org.apache.tuscany.sca.itest.scdl; - -import java.net.URI; -import java.net.URL; -import java.util.Arrays; - -import javax.xml.stream.XMLStreamException; - -import junit.framework.Assert; - -import org.apache.tuscany.sca.assembly.Component; -import org.apache.tuscany.sca.assembly.Composite; -import org.apache.tuscany.sca.assembly.Service; -import org.apache.tuscany.sca.binding.jms.JMSBinding; -import org.apache.tuscany.sca.binding.jsonp.JSONPBinding; -import org.apache.tuscany.sca.binding.rmi.RMIBinding; -import org.apache.tuscany.sca.contribution.Contribution; -import org.apache.tuscany.sca.contribution.processor.ContributionReadException; -import org.apache.tuscany.sca.core.DefaultExtensionPointRegistry; -import org.apache.tuscany.sca.core.ExtensionPointRegistry; -import org.apache.tuscany.sca.core.UtilityExtensionPoint; -import org.apache.tuscany.sca.deployment.Deployer; -import org.apache.tuscany.sca.monitor.Monitor; -import org.apache.tuscany.sca.monitor.Problem; -import org.junit.Test; - -/** - * Test case for reading and writing a composite - */ -public class SCDLTestCase { - - @Test - public void testRead() throws ContributionReadException, XMLStreamException { - ExtensionPointRegistry registry = new DefaultExtensionPointRegistry(); - Deployer deployer = registry.getExtensionPoint(UtilityExtensionPoint.class).getUtility(Deployer.class); - - URL r = getClass().getResource("/test.composite"); - Composite composite = deployer.loadXMLDocument(r, null); - Assert.assertNotNull(composite); - - Component JavaComp = composite.getComponent("JavaComponent"); - Assert.assertNotNull(JavaComp); - - Component bpelComp = composite.getComponent("BPELComponent"); - Assert.assertNotNull(bpelComp); - - Service jsonpService = composite.getService("JSONPService"); - Assert.assertNotNull(jsonpService); - Assert.assertEquals(1, jsonpService.getBindings().size()); - JSONPBinding jsonpBinding = jsonpService.getBinding(JSONPBinding.class); - Assert.assertNotNull(jsonpBinding); - - Service jmsService = composite.getService("JMSService"); - Assert.assertNotNull(jmsService); - Assert.assertEquals(1, jmsService.getBindings().size()); - JMSBinding jmsBinding = jmsService.getBinding(JMSBinding.class); - Assert.assertNotNull(jmsBinding); - - Service rmiService = composite.getService("RMIService"); - Assert.assertNotNull(rmiService); - Assert.assertEquals(1, rmiService.getBindings().size()); - RMIBinding rmiBinding = rmiService.getBinding(RMIBinding.class); - Assert.assertNotNull(rmiBinding); - -// TODO: WS binding drags in entire runtime -// Service wsService = composite.getService("WSService"); -// Assert.assertNotNull(wsService); -// Assert.assertEquals(1, wsService.getBindings().size()); -// WSBinding wsBinding = wsService.getBinding(WSBinding.class); -// Assert.assertNotNull(wsBinding); - } - - @Test - public void testBuild() throws Exception { - ExtensionPointRegistry registry = new DefaultExtensionPointRegistry(); - Deployer deployer = registry.getExtensionPoint(UtilityExtensionPoint.class).getUtility(Deployer.class); - URL r = getClass().getResource("/test.composite"); - r = new URL(r, "../"); - Monitor monitor = deployer.createMonitor(); - Contribution contribution = deployer.loadContribution(URI.create("c1"), r, monitor); - deployer.build(Arrays.asList(contribution), Arrays.asList(contribution), null, monitor); - int i = 0; - for (Problem p : monitor.getProblems()) { - System.err.println(i + ": " + p); - i++; - } - Assert.assertTrue(i > 0); - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/scdl/src/test/java/org/apache/tuscany/sca/itest/scdl/ValidateDependenciesTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/scdl/src/test/java/org/apache/tuscany/sca/itest/scdl/ValidateDependenciesTestCase.java deleted file mode 100644 index 44239c9cbe..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/scdl/src/test/java/org/apache/tuscany/sca/itest/scdl/ValidateDependenciesTestCase.java +++ /dev/null @@ -1,68 +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 org.apache.tuscany.sca.itest.scdl; - -import java.io.File; - -import junit.framework.Assert; - -import org.junit.Test; - -/** - * Test case for verifying only SCDL jars are needed - * - * Uses maven-dependency-plugin config in the pom.xml - * - * Current required jars are: - * geronimo-stax-api_1.0_spec-1.0.1.jar - * jsr181-api-1.0-MR1.jar - * junit-4.8.1.jar - * tuscany-assembly-2.0-M5.jar - * tuscany-assembly-xml-2.0-M5.jar - * tuscany-assembly-xsd-2.0-M5.jar - * tuscany-binding-jms-2.0-M5.jar - * tuscany-binding-jsonp-2.0-M5.jar - * tuscany-binding-rmi-2.0-M5.jar - * tuscany-builder-2.0-M5.jar - * tuscany-common-java-2.0-M5.jar - * tuscany-common-xml-2.0-M5.jar - * tuscany-contribution-2.0-M5.jar - * tuscany-deployment-2.0-M5.jar - * tuscany-extensibility-2.0-M5.jar - * tuscany-implementation-java-2.0-M5.jar - * tuscany-interface-java-2.0-M5.jar - * tuscany-monitor-2.0-M5.jar - * tuscany-sca-api-2.0-M5.jar - * wstx-asl-3.2.4.jar - * - * TODO: WS binding drags in all runtime - */ -public class ValidateDependenciesTestCase { - - @Test - public void countDependencies() { - - File dependenciesDir = new File("target/dependency"); - Assert.assertTrue(dependenciesDir.exists()); - - File[] dependencyFiles = dependenciesDir.listFiles(); - Assert.assertEquals(28, dependencyFiles.length); - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/scdl/src/test/resources/test.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/scdl/src/test/resources/test.composite deleted file mode 100644 index c0bb2bbc40..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/scdl/src/test/resources/test.composite +++ /dev/null @@ -1,51 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/scopes/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/scopes/pom.xml deleted file mode 100644 index 7e8a10b811..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/scopes/pom.xml +++ /dev/null @@ -1,54 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-itest - 2.0-M5 - ../pom.xml - - Apache Tuscany SCA iTest Scopes - itest-scopes - - - - org.apache.tuscany.sca - tuscany-node-api - 2.0-M5 - - - - org.apache.tuscany.sca - tuscany-node-impl - 2.0-M5 - test - - - - org.apache.tuscany.sca - tuscany-implementation-java-runtime - 2.0-M5 - test - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/scopes/src/main/java/org/apache/tuscany/sca/itest/scopes/CompositeScopeStateVerifierImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/scopes/src/main/java/org/apache/tuscany/sca/itest/scopes/CompositeScopeStateVerifierImpl.java deleted file mode 100644 index 208ac3ba44..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/scopes/src/main/java/org/apache/tuscany/sca/itest/scopes/CompositeScopeStateVerifierImpl.java +++ /dev/null @@ -1,46 +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 org.apache.tuscany.sca.itest.scopes; - -import org.oasisopen.sca.annotation.Scope; - -/** - * Test Composite scope - */ -@Scope("COMPOSITE") -public class CompositeScopeStateVerifierImpl implements StateVerifier { - - // State data for this module (composite). - // In order to support thread-based state verification, - // the module state needs to be a ThreadLocal. - ThreadLocal moduleState; - - public CompositeScopeStateVerifierImpl() { - moduleState = new ThreadLocal(); - } - - public void setState(int i) { - moduleState.set(i); - } - - public boolean checkState(int i) { - return (moduleState.get() == i); - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/scopes/src/main/java/org/apache/tuscany/sca/itest/scopes/StateVerifier.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/scopes/src/main/java/org/apache/tuscany/sca/itest/scopes/StateVerifier.java deleted file mode 100644 index e6bf08ccf2..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/scopes/src/main/java/org/apache/tuscany/sca/itest/scopes/StateVerifier.java +++ /dev/null @@ -1,25 +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 org.apache.tuscany.sca.itest.scopes; - -public interface StateVerifier { - void setState(int i); - - boolean checkState(int i); -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/scopes/src/main/resources/scopes.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/scopes/src/main/resources/scopes.composite deleted file mode 100644 index ed67bf5953..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/scopes/src/main/resources/scopes.composite +++ /dev/null @@ -1,29 +0,0 @@ - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/scopes/src/test/java/org/apache/tuscany/sca/test/ScopeTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/scopes/src/test/java/org/apache/tuscany/sca/test/ScopeTestCase.java deleted file mode 100644 index 594bdd5038..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/scopes/src/test/java/org/apache/tuscany/sca/test/ScopeTestCase.java +++ /dev/null @@ -1,89 +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 org.apache.tuscany.sca.test; - -import static org.junit.Assert.fail; - -import org.apache.tuscany.sca.itest.scopes.StateVerifier; -import org.apache.tuscany.sca.node.Contribution; -import org.apache.tuscany.sca.node.ContributionLocationHelper; -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; -import org.junit.After; -import org.junit.Before; -import org.junit.Test; - -public class ScopeTestCase { - - /** - * Number of threads to drive each scope container. - */ - private static final int NUM_THREADS = 4; - - /** - * Number of iterations per thread. - */ - private static final int ITERATIONS = 200; - - private Node node; - - @Before - public void setUp() throws Exception { - String location = ContributionLocationHelper.getContributionLocation("scopes.composite"); - node = NodeFactory.newInstance().createNode("scopes.composite", new Contribution("c1", location)); - node.start(); - } - - @After - public void tearDown() throws Exception { - node.stop(); - } - - @Test - public void testScopes() throws InterruptedException { - - Thread[] moduleScopeThreadTable = new Thread[NUM_THREADS]; - - for (int i = 0; i < NUM_THREADS; i++) { - moduleScopeThreadTable[i] = new ModuleScopeTestThread(); - } - for (int j = 0; j < NUM_THREADS; j++) { - moduleScopeThreadTable[j].start(); - } - for (int k = 0; k < NUM_THREADS; k++) { - moduleScopeThreadTable[k].join(); - } - } - - private class ModuleScopeTestThread extends Thread { - - public void run() { - StateVerifier moduleScopeService = node.getService(StateVerifier.class, "ModuleScopeComponent"); - for (int i = 1; i <= ITERATIONS; i++) { - moduleScopeService.setState(i); - if (!moduleScopeService.checkState(i)) { - fail("The module scope service lost its state on iteration " + i); - } - } - } - } - - - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/service-reference/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/service-reference/pom.xml deleted file mode 100644 index e82107c45e..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/service-reference/pom.xml +++ /dev/null @@ -1,66 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-itest - 2.0-M5 - ../pom.xml - - itest-service-reference - Apache Tuscany SCA iTest ServiceReference - - - - org.apache.tuscany.sca - tuscany-node-api - 2.0-M5 - - - - org.apache.tuscany.sca - tuscany-node-impl - 2.0-M5 - test - - - - org.apache.tuscany.sca - tuscany-implementation-java-runtime - 2.0-M5 - test - - - - org.apache.tuscany.sca - tuscany-binding-ws-runtime-axis2 - 2.0-M5 - test - - - - org.apache.tuscany.sca - tuscany-host-jetty - 2.0-M5 - test - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/service-reference/src/main/java/org/apache/tuscany/sca/itest/serviceref/AComponent.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/service-reference/src/main/java/org/apache/tuscany/sca/itest/serviceref/AComponent.java deleted file mode 100644 index 8b5cf4d29a..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/service-reference/src/main/java/org/apache/tuscany/sca/itest/serviceref/AComponent.java +++ /dev/null @@ -1,39 +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 org.apache.tuscany.sca.itest.serviceref; - -import org.oasisopen.sca.annotation.Remotable; - -@Remotable -public interface AComponent { - String foo(); - - String fooB(); - String fooB1(); - - String fooC(); - String fooC1(); - - String fooStringD(); - String fooD(); - - String fooBC(); - - String invokeDReference(); -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/service-reference/src/main/java/org/apache/tuscany/sca/itest/serviceref/AComponentImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/service-reference/src/main/java/org/apache/tuscany/sca/itest/serviceref/AComponentImpl.java deleted file mode 100644 index 3f68ac828a..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/service-reference/src/main/java/org/apache/tuscany/sca/itest/serviceref/AComponentImpl.java +++ /dev/null @@ -1,112 +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 org.apache.tuscany.sca.itest.serviceref; - -import java.io.ByteArrayOutputStream; -import java.io.ObjectOutputStream; - -import org.oasisopen.sca.ComponentContext; -import org.oasisopen.sca.ServiceReference; -import org.oasisopen.sca.annotation.Context; -import org.oasisopen.sca.annotation.Reference; -import org.oasisopen.sca.annotation.Service; - -@Service(AComponent.class) -public class AComponentImpl implements AComponent { - - @Context - protected ComponentContext componentContext; - - @Reference(name = "bReference") - protected BComponent b; - - @Reference - protected CComponent cReference; - - @Reference - protected ServiceReference cServiceReference; - - @Reference(required=false) - protected DComponent dReference; - - protected DComponent dReference1; - - @Reference(name = "dReference1") - public void setDReference(DComponent dReference) { - this.dReference1 = dReference; - } - - public String foo() { - return "AComponent"; - } - - public String fooB() { - return b.foo(); - } - - public String fooB1() { - ServiceReference bRef = componentContext.cast(b); - return bRef.getService().foo(); - } - - public String fooC() { - return cReference.foo(); - } - - public String fooC1() { - return cServiceReference.getService().foo(); - } - - public String fooBC() { - ServiceReference cReference = componentContext.getServiceReference(CComponent.class, "cReference"); - return b.fooC(cReference); - } - - public String fooD() { - ServiceReference aReference = componentContext.createSelfReference(AComponent.class); - return dReference1.foo(aReference); - } - - /** - * A test case to work out what needs to be done in a transformer to get the - * CallableReference across the wire. Left here for interest in case anyone - * is looking for how to get at the innards of CallableReferences - */ - public String fooStringD() { - ServiceReference aReference = componentContext.createSelfReference(AComponent.class); - ByteArrayOutputStream bos = null; - - try { - bos = new ByteArrayOutputStream(); - ObjectOutputStream oos = new ObjectOutputStream(bos); - oos.writeObject(aReference); - } catch (Exception ex) { - System.out.println(ex.toString()); - return null; - } - - String aReferenceString = Base64Binary.encode(bos.toByteArray()); - return dReference1.fooString(aReferenceString); - } - - public String invokeDReference() { - return dReference.foo(null); - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/service-reference/src/main/java/org/apache/tuscany/sca/itest/serviceref/BComponent.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/service-reference/src/main/java/org/apache/tuscany/sca/itest/serviceref/BComponent.java deleted file mode 100644 index 18242cd594..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/service-reference/src/main/java/org/apache/tuscany/sca/itest/serviceref/BComponent.java +++ /dev/null @@ -1,31 +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 org.apache.tuscany.sca.itest.serviceref; - -import org.oasisopen.sca.ServiceReference; -import org.oasisopen.sca.annotation.Remotable; - - -@Remotable -public interface BComponent { - - String foo(); - - String fooC(ServiceReference cComponent); -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/service-reference/src/main/java/org/apache/tuscany/sca/itest/serviceref/BComponentImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/service-reference/src/main/java/org/apache/tuscany/sca/itest/serviceref/BComponentImpl.java deleted file mode 100644 index dd143df036..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/service-reference/src/main/java/org/apache/tuscany/sca/itest/serviceref/BComponentImpl.java +++ /dev/null @@ -1,38 +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 org.apache.tuscany.sca.itest.serviceref; - -import org.oasisopen.sca.ServiceReference; -import org.oasisopen.sca.annotation.Service; - -@Service(BComponent.class) -public class BComponentImpl implements BComponent { - - public BComponentImpl() { - } - - public String foo() { - return "BComponent"; - } - - public String fooC(ServiceReference cReference) { - return "B" + cReference.getService().foo(); - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/service-reference/src/main/java/org/apache/tuscany/sca/itest/serviceref/Base64Binary.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/service-reference/src/main/java/org/apache/tuscany/sca/itest/serviceref/Base64Binary.java deleted file mode 100644 index fb436ae10c..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/service-reference/src/main/java/org/apache/tuscany/sca/itest/serviceref/Base64Binary.java +++ /dev/null @@ -1,297 +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 org.apache.tuscany.sca.itest.serviceref; - -import java.io.IOException; -import java.io.OutputStream; -import java.io.Writer; - -/** - * - */ - -public final class Base64Binary { - private static final char[] S_BASE64CHAR = - {'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', - 'W', 'X', 'Y', 'Z', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', - 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '+', '/'}; - - private static final char S_BASE64PAD = '='; - - private static final byte[] S_DECODETABLE = new byte[128]; - - static { - for (int i = 0; i < S_DECODETABLE.length; i++) { - S_DECODETABLE[i] = Byte.MAX_VALUE; // 127 - } - for (int i = 0; i < S_BASE64CHAR.length; i++) { - // 0 to 63 - S_DECODETABLE[S_BASE64CHAR[i]] = (byte)i; - } - } - - private Base64Binary() { - } - - /** - * - */ - public static byte[] decode(char[] data, int off, int len) { - char[] ibuf = new char[4]; - int ibufcount = 0; - byte[] obuf = new byte[len / 4 * 3 + 3]; - int obufcount = 0; - for (int i = off; i < off + len; i++) { - char ch = data[i]; - if (ch == S_BASE64PAD || ch < S_DECODETABLE.length && S_DECODETABLE[ch] != Byte.MAX_VALUE) { - ibuf[ibufcount++] = ch; - if (ibufcount == ibuf.length) { - ibufcount = 0; - obufcount += decode0(ibuf, obuf, obufcount); - } - } - } - if (obufcount == obuf.length) { - return obuf; - } - byte[] ret = new byte[obufcount]; - System.arraycopy(obuf, 0, ret, 0, obufcount); - return ret; - } - - /** - * - */ - public static void decode(char[] data, int off, int len, OutputStream ostream) throws IOException { - char[] ibuf = new char[4]; - int ibufcount = 0; - byte[] obuf = new byte[3]; - for (int i = off; i < off + len; i++) { - char ch = data[i]; - if (ch == S_BASE64PAD || ch < S_DECODETABLE.length && S_DECODETABLE[ch] != Byte.MAX_VALUE) { - ibuf[ibufcount++] = ch; - if (ibufcount == ibuf.length) { - ibufcount = 0; - int obufcount = decode0(ibuf, obuf, 0); - ostream.write(obuf, 0, obufcount); - } - } - } - } - - /** - * - */ - public static byte[] decode(String data) { - char[] ibuf = new char[4]; - int ibufcount = 0; - byte[] obuf = new byte[data.length() / 4 * 3 + 3]; - int obufcount = 0; - for (int i = 0; i < data.length(); i++) { - char ch = data.charAt(i); - if (ch == S_BASE64PAD || ch < S_DECODETABLE.length && S_DECODETABLE[ch] != Byte.MAX_VALUE) { - ibuf[ibufcount++] = ch; - if (ibufcount == ibuf.length) { - ibufcount = 0; - obufcount += decode0(ibuf, obuf, obufcount); - } - } - } - if (obufcount == obuf.length) { - return obuf; - } - byte[] ret = new byte[obufcount]; - System.arraycopy(obuf, 0, ret, 0, obufcount); - return ret; - } - - /** - * - */ - public static void decode(String data, OutputStream ostream) throws IOException { - char[] ibuf = new char[4]; - int ibufcount = 0; - byte[] obuf = new byte[3]; - for (int i = 0; i < data.length(); i++) { - char ch = data.charAt(i); - if (ch == S_BASE64PAD || ch < S_DECODETABLE.length && S_DECODETABLE[ch] != Byte.MAX_VALUE) { - ibuf[ibufcount++] = ch; - if (ibufcount == ibuf.length) { - ibufcount = 0; - int obufcount = decode0(ibuf, obuf, 0); - ostream.write(obuf, 0, obufcount); - } - } - } - } - - private static int decode0(char[] ibuf, byte[] obuf, int index) { - int wp = index; - int outlen = 3; - if (ibuf[3] == S_BASE64PAD) { - outlen = 2; - } - if (ibuf[2] == S_BASE64PAD) { - outlen = 1; - } - int b0 = S_DECODETABLE[ibuf[0]]; - int b1 = S_DECODETABLE[ibuf[1]]; - int b2 = S_DECODETABLE[ibuf[2]]; - int b3 = S_DECODETABLE[ibuf[3]]; - switch (outlen) { - case 1: - obuf[wp] = (byte)(b0 << 2 & 0xfc | b1 >> 4 & 0x3); - return 1; - case 2: - obuf[wp++] = (byte)(b0 << 2 & 0xfc | b1 >> 4 & 0x3); - obuf[wp] = (byte)(b1 << 4 & 0xf0 | b2 >> 2 & 0xf); - return 2; - case 3: - obuf[wp++] = (byte)(b0 << 2 & 0xfc | b1 >> 4 & 0x3); - obuf[wp++] = (byte)(b1 << 4 & 0xf0 | b2 >> 2 & 0xf); - obuf[wp] = (byte)(b2 << 6 & 0xc0 | b3 & 0x3f); - return 3; - default: - throw new IllegalArgumentException("The character sequence is not base64 encoded."); - } - } - - /** - * Returns base64 representation of specified byte array. - */ - public static String encode(byte[] data) { - return encode(data, 0, data.length); - } - - /** - * Returns base64 representation of specified byte array. - */ - public static String encode(byte[] data, int off, int len) { - if (len <= 0) { - return ""; - } - char[] out = new char[len / 3 * 4 + 4]; - int rindex = off; - int windex = 0; - int rest = len - off; - while (rest >= 3) { - int i = ((data[rindex] & 0xff) << 16) + ((data[rindex + 1] & 0xff) << 8) + (data[rindex + 2] & 0xff); - out[windex++] = S_BASE64CHAR[i >> 18]; - out[windex++] = S_BASE64CHAR[(i >> 12) & 0x3f]; - out[windex++] = S_BASE64CHAR[(i >> 6) & 0x3f]; - out[windex++] = S_BASE64CHAR[i & 0x3f]; - rindex += 3; - rest -= 3; - } - if (rest == 1) { - int i = data[rindex] & 0xff; - out[windex++] = S_BASE64CHAR[i >> 2]; - out[windex++] = S_BASE64CHAR[(i << 4) & 0x3f]; - out[windex++] = S_BASE64PAD; - out[windex++] = S_BASE64PAD; - } else if (rest == 2) { - int i = ((data[rindex] & 0xff) << 8) + (data[rindex + 1] & 0xff); - out[windex++] = S_BASE64CHAR[i >> 10]; - out[windex++] = S_BASE64CHAR[(i >> 4) & 0x3f]; - out[windex++] = S_BASE64CHAR[(i << 2) & 0x3f]; - out[windex++] = S_BASE64PAD; - } - return new String(out, 0, windex); - } - - /** - * Outputs base64 representation of the specified byte array to a byte stream. - */ - public static void encode(byte[] data, int off, int len, OutputStream ostream) throws IOException { - if (len <= 0) { - return; - } - byte[] out = new byte[4]; - int rindex = off; - int rest = len - off; - while (rest >= 3) { - int i = ((data[rindex] & 0xff) << 16) + ((data[rindex + 1] & 0xff) << 8) + (data[rindex + 2] & 0xff); - out[0] = (byte)S_BASE64CHAR[i >> 18]; - out[1] = (byte)S_BASE64CHAR[(i >> 12) & 0x3f]; - out[2] = (byte)S_BASE64CHAR[(i >> 6) & 0x3f]; - out[3] = (byte)S_BASE64CHAR[i & 0x3f]; - ostream.write(out, 0, 4); - rindex += 3; - rest -= 3; - } - if (rest == 1) { - int i = data[rindex] & 0xff; - out[0] = (byte)S_BASE64CHAR[i >> 2]; - out[1] = (byte)S_BASE64CHAR[(i << 4) & 0x3f]; - out[2] = (byte)S_BASE64PAD; - out[3] = (byte)S_BASE64PAD; - ostream.write(out, 0, 4); - } else if (rest == 2) { - int i = ((data[rindex] & 0xff) << 8) + (data[rindex + 1] & 0xff); - out[0] = (byte)S_BASE64CHAR[i >> 10]; - out[1] = (byte)S_BASE64CHAR[(i >> 4) & 0x3f]; - out[2] = (byte)S_BASE64CHAR[(i << 2) & 0x3f]; - out[3] = (byte)S_BASE64PAD; - ostream.write(out, 0, 4); - } - } - - /** - * Outputs base64 representation of the specified byte array to a character stream. - */ - public static void encode(byte[] data, int off, int len, Writer writer) throws IOException { - if (len <= 0) { - return; - } - char[] out = new char[4]; - int rindex = off; - int rest = len - off; - int output = 0; - while (rest >= 3) { - int i = ((data[rindex] & 0xff) << 16) + ((data[rindex + 1] & 0xff) << 8) + (data[rindex + 2] & 0xff); - out[0] = S_BASE64CHAR[i >> 18]; - out[1] = S_BASE64CHAR[(i >> 12) & 0x3f]; - out[2] = S_BASE64CHAR[(i >> 6) & 0x3f]; - out[3] = S_BASE64CHAR[i & 0x3f]; - writer.write(out, 0, 4); - rindex += 3; - rest -= 3; - output += 4; - if (output % 76 == 0) { - writer.write("\n"); - } - } - if (rest == 1) { - int i = data[rindex] & 0xff; - out[0] = S_BASE64CHAR[i >> 2]; - out[1] = S_BASE64CHAR[(i << 4) & 0x3f]; - out[2] = S_BASE64PAD; - out[3] = S_BASE64PAD; - writer.write(out, 0, 4); - } else if (rest == 2) { - int i = ((data[rindex] & 0xff) << 8) + (data[rindex + 1] & 0xff); - out[0] = S_BASE64CHAR[i >> 10]; - out[1] = S_BASE64CHAR[(i >> 4) & 0x3f]; - out[2] = S_BASE64CHAR[(i << 2) & 0x3f]; - out[3] = S_BASE64PAD; - writer.write(out, 0, 4); - } - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/service-reference/src/main/java/org/apache/tuscany/sca/itest/serviceref/CComponent.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/service-reference/src/main/java/org/apache/tuscany/sca/itest/serviceref/CComponent.java deleted file mode 100644 index fc15b632d2..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/service-reference/src/main/java/org/apache/tuscany/sca/itest/serviceref/CComponent.java +++ /dev/null @@ -1,27 +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 org.apache.tuscany.sca.itest.serviceref; - -import org.oasisopen.sca.annotation.Remotable; - -@Remotable -public interface CComponent { - - String foo(); -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/service-reference/src/main/java/org/apache/tuscany/sca/itest/serviceref/CComponentImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/service-reference/src/main/java/org/apache/tuscany/sca/itest/serviceref/CComponentImpl.java deleted file mode 100644 index 276093b69f..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/service-reference/src/main/java/org/apache/tuscany/sca/itest/serviceref/CComponentImpl.java +++ /dev/null @@ -1,30 +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 org.apache.tuscany.sca.itest.serviceref; - -import org.oasisopen.sca.annotation.Service; - -@Service(CComponent.class) -public class CComponentImpl implements CComponent { - - public String foo() { - return "CComponent"; - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/service-reference/src/main/java/org/apache/tuscany/sca/itest/serviceref/DComponent.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/service-reference/src/main/java/org/apache/tuscany/sca/itest/serviceref/DComponent.java deleted file mode 100644 index 84e15b5eb2..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/service-reference/src/main/java/org/apache/tuscany/sca/itest/serviceref/DComponent.java +++ /dev/null @@ -1,30 +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 org.apache.tuscany.sca.itest.serviceref; - -import org.oasisopen.sca.ServiceReference; -import org.oasisopen.sca.annotation.Remotable; - -@Remotable -public interface DComponent { - - String foo(ServiceReference aReference); - - String fooString(String aReferenceString); -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/service-reference/src/main/java/org/apache/tuscany/sca/itest/serviceref/DComponentImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/service-reference/src/main/java/org/apache/tuscany/sca/itest/serviceref/DComponentImpl.java deleted file mode 100644 index db99472385..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/service-reference/src/main/java/org/apache/tuscany/sca/itest/serviceref/DComponentImpl.java +++ /dev/null @@ -1,64 +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 org.apache.tuscany.sca.itest.serviceref; - -import java.io.ByteArrayInputStream; -import java.io.ByteArrayOutputStream; -import java.io.ObjectInputStream; -import java.io.ObjectOutputStream; - -import org.oasisopen.sca.RequestContext; -import org.oasisopen.sca.ServiceReference; -import org.oasisopen.sca.annotation.Context; -import org.oasisopen.sca.annotation.Service; - -@Service(DComponent.class) -public class DComponentImpl implements DComponent { - - @Context - protected RequestContext requestContext; - - public String foo(ServiceReference aReference) { - try { - ByteArrayOutputStream bos = new ByteArrayOutputStream(); - ObjectOutputStream oos = new ObjectOutputStream(bos); - oos.writeObject(aReference); - ObjectInputStream ois = new ObjectInputStream(new ByteArrayInputStream(bos.toByteArray())); - Object obj = ois.readObject(); - aReference = (ServiceReference) obj; - } catch (Exception e) { - e.printStackTrace(); - } - System.out.println("Invoking service: " + requestContext.getServiceName()); - return "D" + aReference.getService().foo(); - } - - public String fooString(String aReferenceString) { - ServiceReference aReference = null; - try { - ObjectInputStream ois = new ObjectInputStream(new ByteArrayInputStream(Base64Binary.decode(aReferenceString))); - Object obj = ois.readObject(); - aReference = (ServiceReference) obj; - } catch (Exception e) { - e.printStackTrace(); - } - System.out.println("Invoking service: " + requestContext.getServiceName()); - return "D" + aReference.getService().foo(); - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/service-reference/src/main/resources/nodeA/CompositeA.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/service-reference/src/main/resources/nodeA/CompositeA.composite deleted file mode 100644 index 9a1fa0a7f7..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/service-reference/src/main/resources/nodeA/CompositeA.composite +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/service-reference/src/main/resources/nodeB/CompositeB.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/service-reference/src/main/resources/nodeB/CompositeB.composite deleted file mode 100644 index a72f5949ed..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/service-reference/src/main/resources/nodeB/CompositeB.composite +++ /dev/null @@ -1,46 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/service-reference/src/main/resources/servicereference/ServiceReferenceTest.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/service-reference/src/main/resources/servicereference/ServiceReferenceTest.composite deleted file mode 100644 index bc5ede7605..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/service-reference/src/main/resources/servicereference/ServiceReferenceTest.composite +++ /dev/null @@ -1,48 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/service-reference/src/test/java/org/apache/tuscany/sca/itest/serviceref/CallableReferenceRemoteTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/service-reference/src/test/java/org/apache/tuscany/sca/itest/serviceref/CallableReferenceRemoteTestCase.java deleted file mode 100644 index 843afe207c..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/service-reference/src/test/java/org/apache/tuscany/sca/itest/serviceref/CallableReferenceRemoteTestCase.java +++ /dev/null @@ -1,139 +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 org.apache.tuscany.sca.itest.serviceref; - -import static junit.framework.Assert.assertEquals; - -import junit.framework.Assert; - -import org.apache.tuscany.sca.itest.serviceref.AComponent; -import org.apache.tuscany.sca.node.Contribution; -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; -import org.junit.AfterClass; -import org.junit.BeforeClass; -import org.junit.Ignore; -import org.junit.Test; - - -/** - * Runs a distributed domain in a single VM by using and in memory - * implementation of the distributed domain - */ -public class CallableReferenceRemoteTestCase { - - private static Node nodeA; - private static Node nodeB; - - private static AComponent acomponent; - - @BeforeClass - public static void init() throws Exception { - - try { - - System.out.println("Setting up nodes"); - - NodeFactory nodeFactory = NodeFactory.newInstance(); - - nodeA = nodeFactory.createNode("nodeA/CompositeA.composite", new Contribution("contrib","target/classes")); - nodeA.start(); - - nodeB = nodeFactory.createNode("nodeB/CompositeB.composite", new Contribution("contrib","target/classes")); - nodeB.start(); - - acomponent = nodeA.getService(AComponent.class, "AComponent/AComponent"); - - } catch (Throwable ex) { - System.out.println(ex.toString()); - // Print detailed cause information. - ex.printStackTrace(); - StringBuffer sb = new StringBuffer(); - Throwable cause = ex.getCause(); - while ( cause != null ) { - sb.append( " " ); - System.out.println( sb.toString() + "Cause: " + cause ); - if (cause instanceof java.lang.reflect.InvocationTargetException) - System.out.println( sb.toString() + "Target Exception: " + ((java.lang.reflect.InvocationTargetException)cause).getTargetException() ); - cause = cause.getCause(); - } - } - } - - @AfterClass - public static void destroy() throws Exception { - // stop the nodes and hence the domains they contain - nodeA.stop(); - nodeB.stop(); - } - - //@Test - public void testKeepServerRunning1() throws Exception { - System.out.println("press enter to continue"); - System.in.read(); - } - - @Test - public void testBReference() { - assertEquals("BComponent", acomponent.fooB()); - } - - @Test - public void testBCast() { - assertEquals("BComponent", acomponent.fooB1()); - } - - @Test - public void testCReference() { - assertEquals("CComponent", acomponent.fooC()); - } - - @Test - public void testCServiceReference() { - assertEquals("CComponent", acomponent.fooC1()); - } - - @Test - public void testDReferenceString() { - assertEquals("DAComponent", acomponent.fooStringD()); - } - - @Test - @Ignore - public void testDReference() { - assertEquals("DAComponent", acomponent.fooD()); - } - - - @Test - @Ignore - public void testBCReference() { - assertEquals("BCComponent", acomponent.fooBC()); - } - - @Test - public void testRequiredFalseReference() { - try { - acomponent.invokeDReference(); - } catch (Exception e) { - Assert.assertTrue(true); - } - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/service-reference/src/test/java/org/apache/tuscany/sca/itest/serviceref/ServiceReferenceTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/service-reference/src/test/java/org/apache/tuscany/sca/itest/serviceref/ServiceReferenceTestCase.java deleted file mode 100644 index 1a454c939a..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/service-reference/src/test/java/org/apache/tuscany/sca/itest/serviceref/ServiceReferenceTestCase.java +++ /dev/null @@ -1,88 +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 org.apache.tuscany.sca.itest.serviceref; - -import static junit.framework.Assert.assertEquals; -import junit.framework.Assert; - -import org.apache.tuscany.sca.itest.serviceref.AComponent; -import org.apache.tuscany.sca.node.Contribution; -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; -import org.junit.AfterClass; -import org.junit.BeforeClass; -import org.junit.Test; - -public class ServiceReferenceTestCase { - private static Node node; - private static AComponent acomponent; - - @BeforeClass - public static void init() throws Exception { - node = NodeFactory.newInstance().createNode("ServiceReferenceTest.composite", - new Contribution("contrib","src/main/resources/servicereference")); - node.start(); - acomponent = node.getService(AComponent.class, "AComponent"); - } - - @AfterClass - public static void destroy() throws Exception { - node.stop(); - } - - @Test - public void testBReference() { - assertEquals("BComponent", acomponent.fooB()); - } - - @Test - public void testBCast() { - assertEquals("BComponent", acomponent.fooB1()); - } - - @Test - public void testCReference() { - assertEquals("CComponent", acomponent.fooC()); - } - - @Test - public void testCServiceReference() { - assertEquals("CComponent", acomponent.fooC1()); - } - - @Test - public void testDReference() { - assertEquals("DAComponent", acomponent.fooD()); - } - - @Test - public void testBCReference() { - assertEquals("BCComponent", acomponent.fooBC()); - } - - @Test - public void testRequiredFalseReference() { - try { - acomponent.invokeDReference(); - } catch (Exception e) { - Assert.assertTrue(true); - } - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/services/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/services/pom.xml deleted file mode 100644 index 829775d016..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/services/pom.xml +++ /dev/null @@ -1,53 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-itest - 2.0-M5 - ../pom.xml - - itest-services - Apache Tuscany SCA iTest Services - - - - org.apache.tuscany.sca - tuscany-node-api - 2.0-M5 - - - - org.apache.tuscany.sca - tuscany-node-impl - 2.0-M5 - test - - - - org.apache.tuscany.sca - tuscany-implementation-java-runtime - 2.0-M5 - test - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/services/src/main/java/org/apache/tuscany/sca/itest/services/AComponent.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/services/src/main/java/org/apache/tuscany/sca/itest/services/AComponent.java deleted file mode 100644 index 26e58dc530..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/services/src/main/java/org/apache/tuscany/sca/itest/services/AComponent.java +++ /dev/null @@ -1,27 +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 org.apache.tuscany.sca.itest.services; - -import org.oasisopen.sca.annotation.Remotable; - -@Remotable -public interface AComponent { - String foo(); -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/services/src/main/java/org/apache/tuscany/sca/itest/services/AComponentImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/services/src/main/java/org/apache/tuscany/sca/itest/services/AComponentImpl.java deleted file mode 100644 index 627ff4976f..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/services/src/main/java/org/apache/tuscany/sca/itest/services/AComponentImpl.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 org.apache.tuscany.sca.itest.services; - -public class AComponentImpl implements AComponent { - - public String foo() { - return "AComponent"; - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/services/src/main/java/org/apache/tuscany/sca/itest/services/BComponent.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/services/src/main/java/org/apache/tuscany/sca/itest/services/BComponent.java deleted file mode 100644 index d04bd1b985..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/services/src/main/java/org/apache/tuscany/sca/itest/services/BComponent.java +++ /dev/null @@ -1,25 +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 org.apache.tuscany.sca.itest.services; - -public interface BComponent { - - String foo(); -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/services/src/main/java/org/apache/tuscany/sca/itest/services/BComponentImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/services/src/main/java/org/apache/tuscany/sca/itest/services/BComponentImpl.java deleted file mode 100644 index 01df89a8fa..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/services/src/main/java/org/apache/tuscany/sca/itest/services/BComponentImpl.java +++ /dev/null @@ -1,31 +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 org.apache.tuscany.sca.itest.services; - -import org.oasisopen.sca.annotation.Service; - -@Service(BComponent.class) -public class BComponentImpl implements BComponent { - - public String foo() { - return "BComponent"; - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/services/src/main/java/org/apache/tuscany/sca/itest/services/CComponent.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/services/src/main/java/org/apache/tuscany/sca/itest/services/CComponent.java deleted file mode 100644 index 07397e4502..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/services/src/main/java/org/apache/tuscany/sca/itest/services/CComponent.java +++ /dev/null @@ -1,27 +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 org.apache.tuscany.sca.itest.services; - -import org.oasisopen.sca.annotation.Remotable; - -@Remotable -public interface CComponent { - String foo(); -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/services/src/main/java/org/apache/tuscany/sca/itest/services/CComponentImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/services/src/main/java/org/apache/tuscany/sca/itest/services/CComponentImpl.java deleted file mode 100644 index 8713e5ab22..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/services/src/main/java/org/apache/tuscany/sca/itest/services/CComponentImpl.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 org.apache.tuscany.sca.itest.services; - -public class CComponentImpl implements CComponent { - - public String foo() { - return "CComponent"; - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/services/src/main/java/org/apache/tuscany/sca/itest/services/D1Component.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/services/src/main/java/org/apache/tuscany/sca/itest/services/D1Component.java deleted file mode 100644 index 842a85e000..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/services/src/main/java/org/apache/tuscany/sca/itest/services/D1Component.java +++ /dev/null @@ -1,24 +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 org.apache.tuscany.sca.itest.services; - -public interface D1Component { - String foo1(); -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/services/src/main/java/org/apache/tuscany/sca/itest/services/DComponent.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/services/src/main/java/org/apache/tuscany/sca/itest/services/DComponent.java deleted file mode 100644 index 8a3923b351..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/services/src/main/java/org/apache/tuscany/sca/itest/services/DComponent.java +++ /dev/null @@ -1,24 +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 org.apache.tuscany.sca.itest.services; - -public interface DComponent { - String foo(); -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/services/src/main/java/org/apache/tuscany/sca/itest/services/DComponentImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/services/src/main/java/org/apache/tuscany/sca/itest/services/DComponentImpl.java deleted file mode 100644 index e52692fbf4..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/services/src/main/java/org/apache/tuscany/sca/itest/services/DComponentImpl.java +++ /dev/null @@ -1,34 +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 org.apache.tuscany.sca.itest.services; - -import org.oasisopen.sca.annotation.Service; - -@Service({DComponent.class, D1Component.class}) -public class DComponentImpl implements DComponent, D1Component { - - public String foo() { - return "DComponent"; - } - - public String foo1() { - return "DComponent"; - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/services/src/main/resources/META-INF/sca-contribution.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/services/src/main/resources/META-INF/sca-contribution.xml deleted file mode 100644 index a687b3481a..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/services/src/main/resources/META-INF/sca-contribution.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/services/src/main/resources/ServicesTest.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/services/src/main/resources/ServicesTest.composite deleted file mode 100644 index 49fdf02f4b..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/services/src/main/resources/ServicesTest.composite +++ /dev/null @@ -1,70 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/services/src/test/java/org/apache/tuscany/sca/itest/services/ServicesTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/services/src/test/java/org/apache/tuscany/sca/itest/services/ServicesTestCase.java deleted file mode 100644 index da779b2c54..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/services/src/test/java/org/apache/tuscany/sca/itest/services/ServicesTestCase.java +++ /dev/null @@ -1,108 +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 org.apache.tuscany.sca.itest.services; - -import static org.junit.Assert.assertEquals; - -import org.apache.tuscany.sca.node.Contribution; -import org.apache.tuscany.sca.node.ContributionLocationHelper; -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; -import org.junit.AfterClass; -import org.junit.Assert; -import org.junit.BeforeClass; -import org.junit.Test; -import org.oasisopen.sca.ServiceRuntimeException; - -public class ServicesTestCase { - private static Node node; - - @BeforeClass - public static void init() throws Exception { - String location = ContributionLocationHelper.getContributionLocation("ServicesTest.composite"); - node = NodeFactory.newInstance().createNode("ServicesTest.composite", new Contribution("c1", location)); - node.start(); - } - - @AfterClass - public static void destroy() throws Exception { - node.stop(); - } - - @Test - public void testAService() { - AComponent a1 = node.getService(AComponent.class, "AComponent1"); - assertEquals("AComponent", a1.foo()); - - AComponent a2 = node.getService(AComponent.class, "AComponent2/AComponent"); - assertEquals("AComponent", a2.foo()); - } - - @Test - public void testBService() { - BComponent a1 = node.getService(BComponent.class, "BComponent1"); - assertEquals("BComponent", a1.foo()); - - BComponent a2 = node.getService(BComponent.class, "BComponent2/BComponent"); - assertEquals("BComponent", a2.foo()); - } - - @Test - public void testCService() { - CComponent a1 = node.getService(CComponent.class, "CComponent1"); - assertEquals("CComponent", a1.foo()); - - CComponent a2 = node.getService(CComponent.class, "CComponent2/CComponent"); - assertEquals("CComponent", a2.foo()); - } - - @Test - public void testDService() { - DComponent a1 = node.getService(DComponent.class, "DComponent1/DComponent"); - assertEquals("DComponent", a1.foo()); - - D1Component a2 = node.getService(D1Component.class, "DComponent1/D1Component"); - assertEquals("DComponent", a2.foo1()); - - try { - node.getService(DComponent.class, "DComponent1"); - Assert.fail("The service name is required"); - } catch (ServiceRuntimeException e) { - Assert.assertTrue("The service name is required", true); - } - - DComponent a3 = node.getService(DComponent.class, "DComponent2/DComponent"); - assertEquals("DComponent", a3.foo()); - - D1Component a4 = node.getService(D1Component.class, "DComponent2/D1Component"); - assertEquals("DComponent", a4.foo1()); - - } - - public static void main(String[] args) throws Exception { - ServicesTestCase.init(); - ServicesTestCase tester = new ServicesTestCase(); - tester.testAService(); - tester.testBService(); - tester.testCService(); - tester.testDService(); - ServicesTestCase.destroy(); - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/wires/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/wires/pom.xml deleted file mode 100644 index 6395794a6d..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/wires/pom.xml +++ /dev/null @@ -1,53 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-itest - 2.0-M5 - ../pom.xml - - itest-wires - Apache Tuscany SCA iTest Wires Basic - - - - org.apache.tuscany.sca - tuscany-node-api - 2.0-M5 - - - - org.apache.tuscany.sca - tuscany-node-impl - 2.0-M5 - test - - - - org.apache.tuscany.sca - tuscany-implementation-java-runtime - 2.0-M5 - test - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/wires/src/main/java/org/apache/tuscany/sca/itest/WireClient.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/wires/src/main/java/org/apache/tuscany/sca/itest/WireClient.java deleted file mode 100644 index f5a4337254..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/wires/src/main/java/org/apache/tuscany/sca/itest/WireClient.java +++ /dev/null @@ -1,34 +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 org.apache.tuscany.sca.itest; - -import org.oasisopen.sca.annotation.Remotable; - -/** - * This is the client interface for the wires tests - */ -@Remotable -public interface WireClient { - - /** - * This tests the wires. - */ - void runTests(); -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/wires/src/main/java/org/apache/tuscany/sca/itest/WireClientImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/wires/src/main/java/org/apache/tuscany/sca/itest/WireClientImpl.java deleted file mode 100644 index 82f0e26d58..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/wires/src/main/java/org/apache/tuscany/sca/itest/WireClientImpl.java +++ /dev/null @@ -1,51 +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 org.apache.tuscany.sca.itest; - -import org.junit.Assert; -import org.oasisopen.sca.annotation.Reference; -import org.oasisopen.sca.annotation.Service; - -/** - * This is the client implementation for the wires tests - */ -@Service(WireClient.class) -public class WireClientImpl implements WireClient { - /** - * This is our injected reference to the WireService - */ - @Reference - protected WireService aWireService; - - /** - * This tests the wire reference - */ - public void runTests() { - // Make sure the wire has injected a reference - Assert.assertNotNull(aWireService); - - // Test the injected reference - String msg = aWireService.sayHello("MCC"); - - // Validate the response - Assert.assertNotNull(msg); - Assert.assertEquals("Hello MCC", msg); - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/wires/src/main/java/org/apache/tuscany/sca/itest/WireService.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/wires/src/main/java/org/apache/tuscany/sca/itest/WireService.java deleted file mode 100644 index 67df1e3a52..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/wires/src/main/java/org/apache/tuscany/sca/itest/WireService.java +++ /dev/null @@ -1,36 +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 org.apache.tuscany.sca.itest; - -import org.oasisopen.sca.annotation.Remotable; - -/** - * Sample Wire Service - */ -@Remotable -public interface WireService { - /** - * Returns "Hello " + aName - * - * @param aName The name to say hello - * @return "Hello " + aName - */ - String sayHello(String aName); -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/wires/src/main/java/org/apache/tuscany/sca/itest/WireServiceImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/wires/src/main/java/org/apache/tuscany/sca/itest/WireServiceImpl.java deleted file mode 100644 index f0308252ba..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/wires/src/main/java/org/apache/tuscany/sca/itest/WireServiceImpl.java +++ /dev/null @@ -1,39 +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 org.apache.tuscany.sca.itest; - -import org.oasisopen.sca.annotation.Service; - -/** - * Sample WireService Implementation - */ -@Service(WireService.class) -public class WireServiceImpl implements WireService { - - /** - * Returns "Hello " + aName - * - * @param aName The name to say hello - * @return "Hello " + aName - */ - public String sayHello(String aName) { - return "Hello " + aName; - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/wires/src/main/resources/WireTest.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/wires/src/main/resources/WireTest.composite deleted file mode 100644 index e697726a73..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/wires/src/main/resources/WireTest.composite +++ /dev/null @@ -1,39 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/wires/src/test/java/org/apache/tuscany/sca/itest/WireTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/wires/src/test/java/org/apache/tuscany/sca/itest/WireTestCase.java deleted file mode 100644 index 2a0095cabc..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/wires/src/test/java/org/apache/tuscany/sca/itest/WireTestCase.java +++ /dev/null @@ -1,78 +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 org.apache.tuscany.sca.itest; - -import org.apache.tuscany.sca.node.Contribution; -import org.apache.tuscany.sca.node.ContributionLocationHelper; -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; -import org.junit.After; -import org.junit.Assert; -import org.junit.Before; -import org.junit.Test; - -/** - * This test case will attempt to use a wire - */ -public class WireTestCase { - - /** - * The Node we are using - */ - private Node node; - - /** - * The client the tests should use - */ - private WireClient aWireClient; - - /** - * Run the wire tests - */ - @Test - public void testWire() { - aWireClient.runTests(); - } - - /** - * Load the Wire composite and look up the client. - */ - - @Before - public void setUp() throws Exception { - String location = ContributionLocationHelper.getContributionLocation("WireTest.composite"); - node = NodeFactory.newInstance().createNode("WireTest.composite", new Contribution("c1", location)); - node.start(); - aWireClient = node.getService(WireClient.class, "WireClient"); - Assert.assertNotNull(aWireClient); - - aWireClient = node.getService(WireClient.class, "AnotherWireClient"); - Assert.assertNotNull(aWireClient); - } - - /** - * Shutdown the SCA node - */ - - @After - public void tearDown() throws Exception { - node.stop(); - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws-jaxws/README b/sca-java-2.x/tags/2.0-M5-RC3/itest/ws-jaxws/README deleted file mode 100644 index cf635e78d0..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws-jaxws/README +++ /dev/null @@ -1,83 +0,0 @@ - -Scenarios -========= - -General Patterns ----------------- - -For simple synchronous tests: - -Jaxws client -> (b.ws service) SCA Component (b.ws reference) -> Jaxws Service - -For callback or asynchronous tests - -JUnit client -> SCA Component (b.ws reference) -> (b.ws service) SCA component - -Java First ----------- -scratch java component impl -interface jaave (simple + JAXB + SDO ) -?wsdl - gens wsdl - -Java First with JAX-WS annotations ----------------------------------- -WSDL -> wsimport -> Java component impl -interface java -?wsdl - re-gens wsdl - -WSDL first ----------- -Java component impl -> wsgen -> wsdl -interface wsdl -?wsld - provided wsdl - -Policy ------- -ws-policy (aac) - -Java First - WSpolicy from Policy set in definitions.xml - ?wsdl - gens wsdl + policy -WSDL first - WSpolicy from WSDL - ?wsld - uses wsdl + policy - Policy signing - -alternative bindings --------------------- -SOAP/HTTP -SOAP/HTTPS -SOAP/JMS - How to retrieve WSDL for non-http bindings (a SHOULD in the spec) - -asynchInvocation Intent ------------------------ - Service - Client - -noListener Intent ------------------ - ws-makeconnetion? - - -SOAP1.1 intent --------------- - - -SOAP1.2 intent --------------- - -MTOM intent --------------- - -callback --------- -new OASIS protocol -WSCallback ws policy - -JAXWS Asynch APIs ------------------ - -Streaming ---------- -Do we need to support? diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws-jaxws/contribution-java-first/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/ws-jaxws/contribution-java-first/pom.xml deleted file mode 100644 index 1bdacc87c9..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws-jaxws/contribution-java-first/pom.xml +++ /dev/null @@ -1,123 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-itest - 2.0-M5 - ../pom.xml - - - itest-ws-jaxws-contribution-java-first - Apache Tuscany SCA iTest WS JAXWS Contribution Java First - - - - - org.apache.tuscany.sca - tuscany-feature-core - pom - 2.0-M5 - - - - - - ${artifactId} - - - org.codehaus.mojo - build-helper-maven-plugin - 1.0 - - - add-source - generate-sources - - add-test-source - - - - target/jaxws-source - - - - - - - org.codehaus.mojo - jaxws-maven-plugin - 1.12 - - - - javax.jws - jsr181-api - 1.0-MR1 - - - javax.annotation - jsr250-api - 1.0 - - - - - wsgen1 - process-classes - - wsgen - - - org.apache.tuscany.sca.binding.ws.jaxws.HelloWorldImpl - true - ${project.build.directory}/jaxws/stale/.wsgen1StaleFlag - - - - wsimport1 - process-resources - - wsimport - - - org.apache.tuscany.sca.binding.ws.jaxws.external.service.jaxws - ${basedir}/target/classes - - helloworld-external-service.wsdl - - ${project.build.directory}/jaxws/stale/.wsimport1StaleFlag - - - - - 2.1 - ${project.build.directory}/jaxws-source - ${project.build.directory}/jaxws-source - true - true - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws-jaxws/contribution-java-first/src/main/java/org/apache/tuscany/sca/binding/ws/jaxws/Bar.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/ws-jaxws/contribution-java-first/src/main/java/org/apache/tuscany/sca/binding/ws/jaxws/Bar.java deleted file mode 100644 index e712ec8b53..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws-jaxws/contribution-java-first/src/main/java/org/apache/tuscany/sca/binding/ws/jaxws/Bar.java +++ /dev/null @@ -1,58 +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 org.apache.tuscany.sca.binding.ws.jaxws; - -import java.io.Serializable; - -public class Bar implements Serializable { - private static final long serialVersionUID = 1249963611910502668L; - - private String s; - private int x; - private Integer y; - - private Boolean b; - - public Boolean getB() { - return b; - } - public void setB(Boolean b) { - this.b = b; - } - public String getS() { - return s; - } - public void setS(String s) { - this.s = s; - } - public int getX() { - return x; - } - public void setX(int x) { - this.x = x; - } - public Integer getY() { - return y; - } - public void setY(Integer y) { - this.y = y; - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws-jaxws/contribution-java-first/src/main/java/org/apache/tuscany/sca/binding/ws/jaxws/Foo.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/ws-jaxws/contribution-java-first/src/main/java/org/apache/tuscany/sca/binding/ws/jaxws/Foo.java deleted file mode 100644 index d09b2af230..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws-jaxws/contribution-java-first/src/main/java/org/apache/tuscany/sca/binding/ws/jaxws/Foo.java +++ /dev/null @@ -1,36 +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 org.apache.tuscany.sca.binding.ws.jaxws; - -import java.io.Serializable; - -public class Foo implements Serializable { - private static final long serialVersionUID = 4879476066850018458L; - - private Bar[] bars; - - public Bar[] getBars() { - return bars; - } - - public void setBars(Bar[] bars) { - this.bars = bars; - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws-jaxws/contribution-java-first/src/main/java/org/apache/tuscany/sca/binding/ws/jaxws/HelloWorld.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/ws-jaxws/contribution-java-first/src/main/java/org/apache/tuscany/sca/binding/ws/jaxws/HelloWorld.java deleted file mode 100644 index 652f7b53c4..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws-jaxws/contribution-java-first/src/main/java/org/apache/tuscany/sca/binding/ws/jaxws/HelloWorld.java +++ /dev/null @@ -1,31 +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 org.apache.tuscany.sca.binding.ws.jaxws; - -import org.oasisopen.sca.ServiceRuntimeException; -import org.oasisopen.sca.annotation.Remotable; - -@Remotable -public interface HelloWorld { - - String getGreetings(String s); - String getGreetingsException(String s) throws ServiceRuntimeException; - Foo getGreetingsComplex(Foo foo); -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws-jaxws/contribution-java-first/src/main/java/org/apache/tuscany/sca/binding/ws/jaxws/HelloWorldImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/ws-jaxws/contribution-java-first/src/main/java/org/apache/tuscany/sca/binding/ws/jaxws/HelloWorldImpl.java deleted file mode 100644 index 85e55888c6..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws-jaxws/contribution-java-first/src/main/java/org/apache/tuscany/sca/binding/ws/jaxws/HelloWorldImpl.java +++ /dev/null @@ -1,53 +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 org.apache.tuscany.sca.binding.ws.jaxws; - -import javax.jws.WebService; - -import org.apache.tuscany.sca.binding.ws.jaxws.external.service.jaxws.HelloWorldService; -import org.oasisopen.sca.ServiceRuntimeException; -import org.oasisopen.sca.annotation.Reference; - -@WebService -public class HelloWorldImpl implements HelloWorld { - - @Reference - public HelloWorldService helloWorldExternal; - - public String getGreetings(String s) { - System.out.println("Entering SCA HelloWorld.getGreetings: " + s); - String response = helloWorldExternal.getGreetings(s); - System.out.println("Leaving SCA HelloWorld.getGreetings: " + response); - return response; - } - - public String getGreetingsException(String s) throws ServiceRuntimeException { - System.out.println("Entering SCA HelloWorld.getGreetingsException: " + s); - String response = helloWorldExternal.getGreetings(s); - System.out.println("Leaving SCA HelloWorld.getGreetings: " + response); - throw new ServiceRuntimeException(response); - } - - public Foo getGreetingsComplex(Foo foo){ - Foo response = null;//helloWorldExternal.getGreetingsComplex(foo); - System.out.println("At client: " + response.getBars()[0].getS()); - return response; - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws-jaxws/contribution-java-first/src/main/resources/HelloWorldServiceService_schema1.xsd b/sca-java-2.x/tags/2.0-M5-RC3/itest/ws-jaxws/contribution-java-first/src/main/resources/HelloWorldServiceService_schema1.xsd deleted file mode 100644 index 51f6dd4d51..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws-jaxws/contribution-java-first/src/main/resources/HelloWorldServiceService_schema1.xsd +++ /dev/null @@ -1,38 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws-jaxws/contribution-java-first/src/main/resources/META-INF/sca-contribution.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/ws-jaxws/contribution-java-first/src/main/resources/META-INF/sca-contribution.xml deleted file mode 100644 index 7e71dd465f..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws-jaxws/contribution-java-first/src/main/resources/META-INF/sca-contribution.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws-jaxws/contribution-java-first/src/main/resources/helloworld-external-service.wsdl b/sca-java-2.x/tags/2.0-M5-RC3/itest/ws-jaxws/contribution-java-first/src/main/resources/helloworld-external-service.wsdl deleted file mode 100644 index 67236a5f98..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws-jaxws/contribution-java-first/src/main/resources/helloworld-external-service.wsdl +++ /dev/null @@ -1,57 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws-jaxws/contribution-java-first/src/main/resources/helloworld.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/ws-jaxws/contribution-java-first/src/main/resources/helloworld.composite deleted file mode 100644 index 0188dc0d41..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws-jaxws/contribution-java-first/src/main/resources/helloworld.composite +++ /dev/null @@ -1,35 +0,0 @@ - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws-jaxws/contribution-wsdl-first/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/ws-jaxws/contribution-wsdl-first/pom.xml deleted file mode 100644 index da805a31fb..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws-jaxws/contribution-wsdl-first/pom.xml +++ /dev/null @@ -1,125 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-itest - 2.0-M5 - ../pom.xml - - - itest-ws-jaxws-contribution-wsdl-first - Apache Tuscany SCA iTest WS JAXWS Contribution WSDL First - - - - - org.apache.tuscany.sca - tuscany-feature-core - pom - 2.0-M5 - - - - - - ${artifactId} - - - org.codehaus.mojo - build-helper-maven-plugin - 1.0 - - - add-source - generate-sources - - add-test-source - - - - target/jaxws-source - - - - - - - org.codehaus.mojo - jaxws-maven-plugin - 1.12 - - - - javax.jws - jsr181-api - 1.0-MR1 - - - javax.annotation - jsr250-api - 1.0 - - - - - wsimport1 - process-resources - - wsimport - - - org.apache.tuscany.sca.binding.ws.jaxws - ${basedir}/target/classes - - helloworld-sca.wsdl - - ${project.build.directory}/jaxws/stale/.wsimport1StaleFlag - - - - wsimport2 - process-resources - - wsimport - - - org.apache.tuscany.sca.binding.ws.jaxws.external.service - ${basedir}/target/classes - - helloworld-external.wsdl - - ${project.build.directory}/jaxws/stale/.wsimport2StaleFlag - - - - - 2.1 - ${project.build.directory}/jaxws-source - true - true - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws-jaxws/contribution-wsdl-first/src/main/java/org/apache/tuscany/sca/binding/ws/jaxws/impl/HelloWorldImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/ws-jaxws/contribution-wsdl-first/src/main/java/org/apache/tuscany/sca/binding/ws/jaxws/impl/HelloWorldImpl.java deleted file mode 100644 index 7c63fd5ba9..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws-jaxws/contribution-wsdl-first/src/main/java/org/apache/tuscany/sca/binding/ws/jaxws/impl/HelloWorldImpl.java +++ /dev/null @@ -1,43 +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 org.apache.tuscany.sca.binding.ws.jaxws.impl; - -import org.apache.tuscany.sca.binding.ws.jaxws.HelloWorld; -import org.oasisopen.sca.annotation.Reference; - -public class HelloWorldImpl implements HelloWorld { - - @Reference - public org.apache.tuscany.sca.binding.ws.jaxws.external.service.HelloWorld helloWorldExternal; - - public String getGreetings(String s) { - System.out.println("Entering SCA HelloWorld.getGreetings: " + s); - String response = helloWorldExternal.getGreetings(s); - System.out.println("Leaving SCA HelloWorld.getGreetings: " + response); - return response; - } -/* - public Foo getGreetingsComplex(Foo foo){ - Foo response = null;//helloWorldExternal.getGreetingsComplex(foo); - System.out.println("At client: " + response.getBars()[0].getS()); - return response; - } -*/ -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws-jaxws/contribution-wsdl-first/src/main/resources/META-INF/sca-contribution.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/ws-jaxws/contribution-wsdl-first/src/main/resources/META-INF/sca-contribution.xml deleted file mode 100644 index 7e71dd465f..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws-jaxws/contribution-wsdl-first/src/main/resources/META-INF/sca-contribution.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws-jaxws/contribution-wsdl-first/src/main/resources/helloworld-external.wsdl b/sca-java-2.x/tags/2.0-M5-RC3/itest/ws-jaxws/contribution-wsdl-first/src/main/resources/helloworld-external.wsdl deleted file mode 100644 index 78d8077bcd..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws-jaxws/contribution-wsdl-first/src/main/resources/helloworld-external.wsdl +++ /dev/null @@ -1,84 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws-jaxws/contribution-wsdl-first/src/main/resources/helloworld-sca.wsdl b/sca-java-2.x/tags/2.0-M5-RC3/itest/ws-jaxws/contribution-wsdl-first/src/main/resources/helloworld-sca.wsdl deleted file mode 100644 index 0e6a10cc62..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws-jaxws/contribution-wsdl-first/src/main/resources/helloworld-sca.wsdl +++ /dev/null @@ -1,84 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws-jaxws/contribution-wsdl-first/src/main/resources/helloworld.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/ws-jaxws/contribution-wsdl-first/src/main/resources/helloworld.composite deleted file mode 100644 index 0cd2b4419d..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws-jaxws/contribution-wsdl-first/src/main/resources/helloworld.composite +++ /dev/null @@ -1,35 +0,0 @@ - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws-jaxws/external-client/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/ws-jaxws/external-client/pom.xml deleted file mode 100644 index 3299ef0017..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws-jaxws/external-client/pom.xml +++ /dev/null @@ -1,122 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-itest - 2.0-M5 - ../pom.xml - - - itest-ws-jaxws-external-client - Apache Tuscany SCA iTest WS JAXWS External Client - - - - - - org.apache.tuscany.sca - tuscany-feature-core - pom - 2.0-M5 - - - - - org.apache.tuscany.sca - tuscany-binding-ws-runtime-jaxws-ri - 2.0-M5 - - - - - - - ${artifactId} - - - - org.codehaus.mojo - build-helper-maven-plugin - 1.0 - - - add-source - generate-sources - - add-test-source - - - - target/jaxws-source - - - - - - - org.codehaus.mojo - jaxws-maven-plugin - 1.12 - - - - javax.jws - jsr181-api - 1.0-MR1 - - - javax.annotation - jsr250-api - 1.0 - - - - - wsimport1 - process-resources - - wsimport - - - org.apache.tuscany.sca.binding.ws.jaxws.sca - ${basedir}/target/classes - - HelloWorldImplService.wsdl - - ${project.build.directory}/jaxws/stale/.wsimport1StaleFlag - - - - - 2.1 - ${project.build.directory}/jaxws-source - ${project.build.directory}/jaxws-source - true - true - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws-jaxws/external-client/src/main/java/org/apache/tuscany/sca/binding/ws/jaxws/external/client/HelloWorldClientLauncher.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/ws-jaxws/external-client/src/main/java/org/apache/tuscany/sca/binding/ws/jaxws/external/client/HelloWorldClientLauncher.java deleted file mode 100644 index da40a7f442..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws-jaxws/external-client/src/main/java/org/apache/tuscany/sca/binding/ws/jaxws/external/client/HelloWorldClientLauncher.java +++ /dev/null @@ -1,73 +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 org.apache.tuscany.sca.binding.ws.jaxws.external.client; - -import java.io.File; -import java.net.URL; - -import javax.xml.namespace.QName; -import javax.xml.ws.Service; - -import org.apache.tuscany.sca.binding.ws.jaxws.sca.Exception_Exception; -import org.apache.tuscany.sca.binding.ws.jaxws.sca.HelloWorldImpl; - -public class HelloWorldClientLauncher { - - public HelloWorldImpl wsProxy; - - public HelloWorldClientLauncher(){ - } - - public void createClient() throws Exception{ - System.out.println(">>> Starting external JAXWS client "); - - // default JVM JAXWS support - QName serviceName = new QName("http://jaxws.ws.binding.sca.tuscany.apache.org/", "HelloWorldImplService"); - QName portName = new QName("http://jaxws.ws.binding.sca.tuscany.apache.org/", "HelloWorldImplPort"); - //URL wsdlLocation = new File("../external-client/target/classes/helloworld-sca.wsdl").toURL(); - URL wsdlLocation = new File("../external-client/target/classes/HelloWorldImplService.wsdl").toURL(); - javax.xml.ws.Service webService = Service.create(wsdlLocation, serviceName); - wsProxy = (HelloWorldImpl) webService.getPort(portName, HelloWorldImpl.class); - } - - public void destroyClient(){ - System.out.println(">>> Stopping external JAXWS client: "); - // TODO - } - - public String getGreetings(String name){ - System.out.println("Entering External Client HelloWorld.getGreetings: " + name); - String response = wsProxy.getGreetings(name); - System.out.println("Leaving External Client HelloWorld.getGreetings: " + response); - return response; - } - - public String getGreetingsException(String name) throws Exception_Exception { - return wsProxy.getGreetingsException(name); - } - - public static void main(String[] args) throws Exception { - HelloWorldClientLauncher launcher = new HelloWorldClientLauncher(); - launcher.createClient(); - launcher.getGreetings("Fred"); - launcher.destroyClient(); - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws-jaxws/external-client/src/main/resources/HelloWorldImplService.wsdl b/sca-java-2.x/tags/2.0-M5-RC3/itest/ws-jaxws/external-client/src/main/resources/HelloWorldImplService.wsdl deleted file mode 100644 index 11ed0a3353..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws-jaxws/external-client/src/main/resources/HelloWorldImplService.wsdl +++ /dev/null @@ -1,104 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws-jaxws/external-client/src/main/resources/HelloWorldImplService_schema1.xsd b/sca-java-2.x/tags/2.0-M5-RC3/itest/ws-jaxws/external-client/src/main/resources/HelloWorldImplService_schema1.xsd deleted file mode 100644 index 3c347570a0..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws-jaxws/external-client/src/main/resources/HelloWorldImplService_schema1.xsd +++ /dev/null @@ -1,93 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws-jaxws/external-service/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/ws-jaxws/external-service/pom.xml deleted file mode 100644 index 32d66767fe..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws-jaxws/external-service/pom.xml +++ /dev/null @@ -1,104 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-itest - 2.0-M5 - ../pom.xml - - - itest-ws-jaxws-external-service - Apache Tuscany SCA iTest WS JAXWS External Service - - - - - - - - ${artifactId} - - - - org.codehaus.mojo - build-helper-maven-plugin - 1.0 - - - add-source - generate-sources - - add-test-source - - - - target/jaxws-source - - - - - - - org.codehaus.mojo - jaxws-maven-plugin - 1.12 - - - - javax.jws - jsr181-api - 1.0-MR1 - - - javax.annotation - jsr250-api - 1.0 - - - - - wsgen1 - process-classes - - wsgen - - - org.apache.tuscany.sca.binding.ws.jaxws.external.service.HelloWorldService - true - ${project.build.directory}/jaxws/stale/.wsgen1StaleFlag - - - - - 2.1 - ${project.build.directory}/jaxws-source - ${project.build.directory}/jaxws-source - true - true - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws-jaxws/external-service/src/main/java/org/apache/tuscany/sca/binding/ws/jaxws/external/service/HelloWorldService.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/ws-jaxws/external-service/src/main/java/org/apache/tuscany/sca/binding/ws/jaxws/external/service/HelloWorldService.java deleted file mode 100644 index 796ef82792..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws-jaxws/external-service/src/main/java/org/apache/tuscany/sca/binding/ws/jaxws/external/service/HelloWorldService.java +++ /dev/null @@ -1,57 +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 org.apache.tuscany.sca.binding.ws.jaxws.external.service; - -import javax.jws.WebMethod; -import javax.jws.WebParam; -import javax.jws.WebResult; -import javax.jws.WebService; -import javax.xml.ws.RequestWrapper; -import javax.xml.ws.ResponseWrapper; - -@WebService(name = "HelloWorldService", targetNamespace = "http://helloworld/external") -public class HelloWorldService { - - @WebMethod - @WebResult(name = "getGreetingsReturn", targetNamespace = "http://helloworld/external") - @RequestWrapper(localName = "getGreetings", targetNamespace = "http://helloworld/external", className = "org.apache.tuscany.sca.binding.ws.jaxws.external.service.GetGreetings") - @ResponseWrapper(localName = "getGreetingsResponse", targetNamespace = "http://helloworld/external", className = "org.apache.tuscany.sca.binding.ws.jaxws.external.service.GetGreetingsResponse") - public String getGreetings( @WebParam(name = "name", targetNamespace = "http://helloworld/external") - String name) { - System.out.println("Entering External Service HelloWorld.getGreetings: " + name); - String response = "Hello " + name; - System.out.println("Leaving External Service HelloWorld.getGreetings: " + response); - return response; - } - -/* - public Foo getGreetingsComplex(Foo foo){ - Foo response = foo; - Bar b3 = new Bar(); - b3.setS("simon"); - b3.setX(4); - b3.setY(new Integer(5)); - b3.setB(Boolean.TRUE); - response.getBars()[1] = b3; - System.out.println("At sevice: " + response.getBars()[0].getS()); - return response; - } -*/ -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws-jaxws/external-service/src/main/java/org/apache/tuscany/sca/binding/ws/jaxws/external/service/HelloWorldServiceLauncher.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/ws-jaxws/external-service/src/main/java/org/apache/tuscany/sca/binding/ws/jaxws/external/service/HelloWorldServiceLauncher.java deleted file mode 100644 index ba7e033f63..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws-jaxws/external-service/src/main/java/org/apache/tuscany/sca/binding/ws/jaxws/external/service/HelloWorldServiceLauncher.java +++ /dev/null @@ -1,49 +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 org.apache.tuscany.sca.binding.ws.jaxws.external.service; - -import javax.xml.ws.Endpoint; - -public class HelloWorldServiceLauncher { - - public Endpoint endpoint; - - public HelloWorldServiceLauncher(){ - - } - - public void createService(){ - System.out.println(">>> Starting external JAXWS service at http://localhost:8086/External/HelloWorld"); - - // default JVM JAXWS support. - endpoint= Endpoint.publish("http://localhost:8086/External/HelloWorld", - new HelloWorldService()); - } - - public void destoryService(){ - System.out.println(">>> Stopping external JAXWS service at http://localhost:8086/External/HelloWorld"); - endpoint.stop(); - } - - public static void main(String[] args) throws Exception { - HelloWorldServiceLauncher launcher = new HelloWorldServiceLauncher(); - launcher.createService(); - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws-jaxws/launcher-ri/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/ws-jaxws/launcher-ri/pom.xml deleted file mode 100644 index 57b54e0671..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws-jaxws/launcher-ri/pom.xml +++ /dev/null @@ -1,114 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-itest - 2.0-M5 - ../pom.xml - - - itest-ws-jaxws-launcher-ri - Apache Tuscany SCA iTest WS JAXWS Launcher RI - - - - - - - org.apache.tuscany.sca - tuscany-feature-core - pom - 2.0-M5 - - - - - org.apache.tuscany.sca - tuscany-binding-ws-runtime-jaxws-ri - 2.0-M5 - - - org.apache.tuscany.sca - tuscany-binding-ws-wsdlgen - 2.0-M5 - - - - - org.apache.tuscany.sca - tuscany-databinding-axiom - 2.0-M5 - - - org.apache.tuscany.sca - tuscany-databinding-jaxb-axiom - 2.0-M5 - - - - - - org.apache.tuscany.sca - tuscany-host-jetty - 2.0-M5 - - - - - org.apache.tuscany.sca - itest-ws-jaxws-external-client - 2.0-M5 - - - - org.apache.tuscany.sca - itest-ws-jaxws-external-service - 2.0-M5 - - - - - - ${artifactId} - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws-jaxws/launcher-ri/src/test/java/org/apache/tuscany/sca/binding/ws/jaxws/launcher/JavaFirstTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/ws-jaxws/launcher-ri/src/test/java/org/apache/tuscany/sca/binding/ws/jaxws/launcher/JavaFirstTestCase.java deleted file mode 100644 index 3c14218118..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws-jaxws/launcher-ri/src/test/java/org/apache/tuscany/sca/binding/ws/jaxws/launcher/JavaFirstTestCase.java +++ /dev/null @@ -1,119 +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 org.apache.tuscany.sca.binding.ws.jaxws.launcher; - -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.fail; - -import org.apache.tuscany.sca.binding.ws.jaxws.external.client.HelloWorldClientLauncher; -import org.apache.tuscany.sca.binding.ws.jaxws.external.service.HelloWorldServiceLauncher; -import org.apache.tuscany.sca.node.Contribution; -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; -import org.junit.After; -import org.junit.Before; -import org.junit.Test; - -public class JavaFirstTestCase { - - private Node node; - private HelloWorldServiceLauncher externalService; - private HelloWorldClientLauncher externalClient; - - @Before - public void setUp() throws Exception { - // Start the external service - externalService = new HelloWorldServiceLauncher(); - externalService.createService(); - - // Start the SCA contribution - node = NodeFactory.newInstance().createNode(new Contribution("java-first", "../contribution-java-first/target/classes")); - node.start(); - - // start the external client - try { - externalClient = new HelloWorldClientLauncher(); - externalClient.createClient(); - } catch (Exception ex) { - ex.printStackTrace(); - throw ex; - } - } - -/* - public void testWait() throws Exception { - System.out.println("Press a key"); - System.in.read(); - } -*/ - - @Test - public void testGetGreetings() throws Exception { - assertEquals("Hello Fred", externalClient.getGreetings("Fred")); - } - - @Test - public void testGetGreetingsException() throws Exception { - try { - externalClient.getGreetingsException("Fred"); - } catch (Exception ex) { - return; - } - - fail("expecting exception"); - } - - public void testGetGreetingsComplex() throws Exception { - -/* - Foo f = new Foo(); - Bar b1 = new Bar(); - b1.setS("petra"); - b1.setX(1); - b1.setY(new Integer(2)); - b1.setB(Boolean.TRUE); - Bar b2 = new Bar(); - b2.setS("beate"); - b2.setX(3); - b2.setY(new Integer(4)); - b2.setB(Boolean.FALSE); - f.setBars(new Bar[] { b1, b2} ); - - Foo f2 = helloWorld.getGreetingsComplex(f); - - assertEquals("petra", f2.getBars()[0].getS()); - assertEquals(1, f2.getBars()[0].getX()); - assertEquals(2, f2.getBars()[0].getY().intValue()); - assertTrue(f2.getBars()[0].getB().booleanValue()); - assertEquals("simon", f2.getBars()[1].getS()); - assertEquals(4, f2.getBars()[1].getX()); - assertEquals(5, f2.getBars()[1].getY().intValue()); - assertTrue(f2.getBars()[1].getB().booleanValue()); -*/ - } - - @After - public void tearDown() throws Exception { - node.stop(); - externalClient.destroyClient(); - externalService.destoryService(); - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws-jaxws/launcher-ri/src/test/java/org/apache/tuscany/sca/binding/ws/jaxws/launcher/WSDLFirstTestCaseOFF.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/ws-jaxws/launcher-ri/src/test/java/org/apache/tuscany/sca/binding/ws/jaxws/launcher/WSDLFirstTestCaseOFF.java deleted file mode 100644 index a69fe483bf..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws-jaxws/launcher-ri/src/test/java/org/apache/tuscany/sca/binding/ws/jaxws/launcher/WSDLFirstTestCaseOFF.java +++ /dev/null @@ -1,143 +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 org.apache.tuscany.sca.binding.ws.jaxws.launcher; - -import junit.framework.TestCase; - -import org.apache.tuscany.sca.binding.ws.jaxws.external.client.HelloWorldClientLauncher; -import org.apache.tuscany.sca.binding.ws.jaxws.external.service.HelloWorldServiceLauncher; -import org.apache.tuscany.sca.node.Contribution; -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; - -public class WSDLFirstTestCaseOFF extends TestCase { - - private Node node; - - @Override - protected void setUp() throws Exception { - // Start the external service - HelloWorldServiceLauncher.main(null); - - // Start the SCA contribution - node = NodeFactory.newInstance().createNode(new Contribution("common", "../common-contribution/target/classes"), - new Contribution("wsdl-first", "../wsdl-first-contribution/target/classes")); - node.start(); - } - - public void testCalculator() throws Exception { - HelloWorldClientLauncher.main(null); - } - -/* - public void testWait1() throws Exception { - System.out.println("Press a key"); - System.in.read(); - } - - public void testCalculator1() throws Exception { - HelloWorldClientLauncher.main(null); - } - - public void testCalculator2() throws Exception { - HelloWorldClientLauncher.main(null); - } - - public void testCalculator3() throws Exception { - HelloWorldClientLauncher.main(null); - } - - public void testCalculator4() throws Exception { - HelloWorldClientLauncher.main(null); - } - - public void testCalculator5() throws Exception { - HelloWorldClientLauncher.main(null); - } - - public void testCalculator6() throws Exception { - HelloWorldClientLauncher.main(null); - } - - public void testCalculator7() throws Exception { - HelloWorldClientLauncher.main(null); - } - - public void testCalculator8() throws Exception { - HelloWorldClientLauncher.main(null); - } - - public void testCalculator9() throws Exception { - HelloWorldClientLauncher.main(null); - } - - public void testCalculator10() throws Exception { - HelloWorldClientLauncher.main(null); - } - - public void testCalculator11() throws Exception { - HelloWorldClientLauncher.main(null); - } - - public void testCalculator12() throws Exception { - HelloWorldClientLauncher.main(null); - } - - public void testCalculator13() throws Exception { - HelloWorldClientLauncher.main(null); - } - - public void testCalculator14() throws Exception { - HelloWorldClientLauncher.main(null); - } - - public void testCalculator15() throws Exception { - HelloWorldClientLauncher.main(null); - } - - public void testCalculator16() throws Exception { - HelloWorldClientLauncher.main(null); - } - - public void testCalculator17() throws Exception { - HelloWorldClientLauncher.main(null); - } - - public void testCalculator18() throws Exception { - HelloWorldClientLauncher.main(null); - } - - public void testCalculator19() throws Exception { - HelloWorldClientLauncher.main(null); - } - - public void testCalculator20() throws Exception { - HelloWorldClientLauncher.main(null); - } -*/ - - - @Override - protected void tearDown() throws Exception { - node.stop(); - node = null; - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws-jaxws/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/ws-jaxws/pom.xml deleted file mode 100644 index 286835957c..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws-jaxws/pom.xml +++ /dev/null @@ -1,41 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-itest - 2.0-M5 - ../pom.xml - - pom - itest-ws-jaxws - Apache Tuscany SCA iTest WS JAXWS - - - contribution-java-first - contribution-wsdl-first - external-client - external-service - launcher-ri - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/authentication-basic/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/authentication-basic/pom.xml deleted file mode 100644 index a9576a47a0..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/authentication-basic/pom.xml +++ /dev/null @@ -1,47 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-itest - 2.0-M5 - ../pom.xml - - - itest-ws-authentication-basic - Apache Tuscany SCA iTest WS with Authentication Basic - - - - - org.apache.tuscany.sca - tuscany-feature-webservice - 2.0-M5 - pom - - - - - - - ${artifactId} - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/authentication-basic/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/helloworld/HelloWorld.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/authentication-basic/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/helloworld/HelloWorld.java deleted file mode 100644 index 98eb6e361b..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/authentication-basic/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/helloworld/HelloWorld.java +++ /dev/null @@ -1,29 +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 org.apache.tuscany.sca.binding.ws.axis2.helloworld; - -import org.oasisopen.sca.annotation.Remotable; - -@Remotable -public interface HelloWorld { - - String getGreetings(String s); - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/authentication-basic/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/helloworld/HelloWorldClient.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/authentication-basic/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/helloworld/HelloWorldClient.java deleted file mode 100644 index 2c6c4fc92c..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/authentication-basic/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/helloworld/HelloWorldClient.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 org.apache.tuscany.sca.binding.ws.axis2.helloworld; - -import org.oasisopen.sca.annotation.Reference; - -public class HelloWorldClient implements HelloWorld { - - @Reference - public HelloWorld helloWorldWS; - - public String getGreetings(String s) { - String response = helloWorldWS.getGreetings(s); - System.out.println("At client: " + response); - return response; - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/authentication-basic/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/helloworld/HelloWorldService.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/authentication-basic/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/helloworld/HelloWorldService.java deleted file mode 100644 index 885844260a..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/authentication-basic/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/helloworld/HelloWorldService.java +++ /dev/null @@ -1,45 +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 org.apache.tuscany.sca.binding.ws.axis2.helloworld; - -import javax.security.auth.Subject; - -import org.oasisopen.sca.RequestContext; -import org.oasisopen.sca.annotation.Context; - -public class HelloWorldService implements HelloWorld { - - @Context - protected RequestContext requestContext; - - public String getGreetings(String name) { - Subject subject = requestContext.getSecuritySubject(); - String response = "Hello " + name + " "; - - if (subject == null){ - response += "null subject"; - } else { - response += subject.getPrincipals().iterator().next().getName(); - } - - System.out.println("At service: " + response); - return response; - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/authentication-basic/src/main/resources/META-INF/sca-contribution.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/authentication-basic/src/main/resources/META-INF/sca-contribution.xml deleted file mode 100644 index 7e71dd465f..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/authentication-basic/src/main/resources/META-INF/sca-contribution.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/authentication-basic/src/main/resources/META-INF/services/org.apache.tuscany.sca.definitions.xml.Definitions b/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/authentication-basic/src/main/resources/META-INF/services/org.apache.tuscany.sca.definitions.xml.Definitions deleted file mode 100644 index 04fe620be4..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/authentication-basic/src/main/resources/META-INF/services/org.apache.tuscany.sca.definitions.xml.Definitions +++ /dev/null @@ -1,17 +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. -org/apache/tuscany/sca/binding/ws/axis2/helloworld/definitions.xml \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/authentication-basic/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/helloworld/definitions.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/authentication-basic/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/helloworld/definitions.xml deleted file mode 100644 index d4e651b271..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/authentication-basic/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/helloworld/definitions.xml +++ /dev/null @@ -1,46 +0,0 @@ - - - - - - - - myname - mypassword - - - - - - - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/authentication-basic/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/helloworld/helloworld.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/authentication-basic/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/helloworld/helloworld.composite deleted file mode 100644 index 166565baa0..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/authentication-basic/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/helloworld/helloworld.composite +++ /dev/null @@ -1,45 +0,0 @@ - - - - - - - - - - - - - - - - - - - http://localhost:8085/services/HelloWorldWebService1 - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/authentication-basic/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/helloworld/helloworld.wsdl b/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/authentication-basic/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/helloworld/helloworld.wsdl deleted file mode 100644 index a352696b8e..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/authentication-basic/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/helloworld/helloworld.wsdl +++ /dev/null @@ -1,90 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/authentication-basic/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/HelloworldTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/authentication-basic/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/HelloworldTestCase.java deleted file mode 100644 index ef307f58bb..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/authentication-basic/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/HelloworldTestCase.java +++ /dev/null @@ -1,50 +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 org.apache.tuscany.sca.binding.ws.axis2; - -import junit.framework.TestCase; - -import org.apache.tuscany.sca.binding.ws.axis2.helloworld.HelloWorld; -import org.apache.tuscany.sca.node.Contribution; -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; - -public class HelloworldTestCase extends TestCase { - - private Node node; - private HelloWorld helloWorld; - - public void testCalculator() throws Exception { - assertEquals("Hello fred myname", helloWorld.getGreetings("fred")); - } - - @Override - protected void setUp() throws Exception { - node = NodeFactory.newInstance().createNode(new Contribution("test", "target/classes")); - node.start(); - helloWorld = node.getService(HelloWorld.class, "HelloWorldClient"); - } - - @Override - protected void tearDown() throws Exception { - node.stop(); - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/defaults/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/defaults/pom.xml deleted file mode 100644 index a1fc35ac0f..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/defaults/pom.xml +++ /dev/null @@ -1,47 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-itest - 2.0-M5 - ../pom.xml - - - itest-ws-defaults - Apache Tuscany SCA iTest WS with Defaults - - - - - org.apache.tuscany.sca - tuscany-feature-webservice - 2.0-M5 - pom - - - - - - - ${artifactId} - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/defaults/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/Bar.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/defaults/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/Bar.java deleted file mode 100644 index a1233f6d25..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/defaults/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/Bar.java +++ /dev/null @@ -1,58 +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 org.apache.tuscany.sca.binding.ws.axis2; - -import java.io.Serializable; - -public class Bar implements Serializable { - private static final long serialVersionUID = 1249963611910502668L; - - private String s; - private int x; - private Integer y; - - private Boolean b; - - public Boolean getB() { - return b; - } - public void setB(Boolean b) { - this.b = b; - } - public String getS() { - return s; - } - public void setS(String s) { - this.s = s; - } - public int getX() { - return x; - } - public void setX(int x) { - this.x = x; - } - public Integer getY() { - return y; - } - public void setY(Integer y) { - this.y = y; - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/defaults/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/Foo.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/defaults/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/Foo.java deleted file mode 100644 index 0695ace7f4..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/defaults/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/Foo.java +++ /dev/null @@ -1,36 +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 org.apache.tuscany.sca.binding.ws.axis2; - -import java.io.Serializable; - -public class Foo implements Serializable { - private static final long serialVersionUID = 4879476066850018458L; - - private Bar[] bars; - - public Bar[] getBars() { - return bars; - } - - public void setBars(Bar[] bars) { - this.bars = bars; - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/defaults/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/HelloWorld.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/defaults/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/HelloWorld.java deleted file mode 100644 index f39566ccbf..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/defaults/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/HelloWorld.java +++ /dev/null @@ -1,29 +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 org.apache.tuscany.sca.binding.ws.axis2; - -import org.oasisopen.sca.annotation.Remotable; - -@Remotable -public interface HelloWorld { - - String getGreetings(String s); - Foo getGreetingsComplex(Foo foo); -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/defaults/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/HelloWorldClient.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/defaults/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/HelloWorldClient.java deleted file mode 100644 index 332f825a51..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/defaults/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/HelloWorldClient.java +++ /dev/null @@ -1,40 +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 org.apache.tuscany.sca.binding.ws.axis2; - -import org.oasisopen.sca.annotation.Reference; - -public class HelloWorldClient implements HelloWorld { - - @Reference - public HelloWorld helloWorldWS; - - public String getGreetings(String s) { - String response = helloWorldWS.getGreetings(s); - System.out.println("At client: " + response); - return response; - } - - public Foo getGreetingsComplex(Foo foo){ - Foo response = helloWorldWS.getGreetingsComplex(foo); - System.out.println("At client: " + response.getBars()[0].getS()); - return response; - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/defaults/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/HelloWorldService.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/defaults/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/HelloWorldService.java deleted file mode 100644 index 3bbf50a728..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/defaults/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/HelloWorldService.java +++ /dev/null @@ -1,42 +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 org.apache.tuscany.sca.binding.ws.axis2; - -public class HelloWorldService implements HelloWorld { - - public String getGreetings(String s) { - String response = "Hello " + s; - System.out.println("At service: " + response); - return response; - } - - public Foo getGreetingsComplex(Foo foo){ - Foo response = foo; - Bar b3 = new Bar(); - b3.setS("simon"); - b3.setX(4); - b3.setY(new Integer(5)); - b3.setB(Boolean.TRUE); - response.getBars()[1] = b3; - System.out.println("At sevice: " + response.getBars()[0].getS()); - return response; - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/defaults/src/main/resources/META-INF/sca-contribution.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/defaults/src/main/resources/META-INF/sca-contribution.xml deleted file mode 100644 index 7e71dd465f..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/defaults/src/main/resources/META-INF/sca-contribution.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/defaults/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/helloworld.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/defaults/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/helloworld.composite deleted file mode 100644 index cae74697f1..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/defaults/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/helloworld.composite +++ /dev/null @@ -1,41 +0,0 @@ - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/defaults/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/helloworld.wsdl b/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/defaults/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/helloworld.wsdl deleted file mode 100644 index a352696b8e..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/defaults/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/helloworld.wsdl +++ /dev/null @@ -1,90 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/defaults/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/DefaultsTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/defaults/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/DefaultsTestCase.java deleted file mode 100644 index 1e4c1fcbff..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/defaults/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/DefaultsTestCase.java +++ /dev/null @@ -1,74 +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 org.apache.tuscany.sca.binding.ws.axis2; - -import junit.framework.TestCase; - -import org.apache.tuscany.sca.binding.ws.axis2.HelloWorld; -import org.apache.tuscany.sca.node.Contribution; -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; - -public class DefaultsTestCase extends TestCase { - - private Node node; - private HelloWorld helloWorld; - - @Override - protected void setUp() throws Exception { - node = NodeFactory.newInstance().createNode(new Contribution("test", "target/classes")); - node.start(); - helloWorld = node.getService(HelloWorld.class, "HelloWorldClient"); - } - - public void testCalculator() throws Exception { - assertEquals("Hello petra", helloWorld.getGreetings("petra")); - - Foo f = new Foo(); - Bar b1 = new Bar(); - b1.setS("petra"); - b1.setX(1); - b1.setY(new Integer(2)); - b1.setB(Boolean.TRUE); - Bar b2 = new Bar(); - b2.setS("beate"); - b2.setX(3); - b2.setY(new Integer(4)); - b2.setB(Boolean.FALSE); - f.setBars(new Bar[] { b1, b2} ); - - Foo f2 = helloWorld.getGreetingsComplex(f); - - assertEquals("petra", f2.getBars()[0].getS()); - assertEquals(1, f2.getBars()[0].getX()); - assertEquals(2, f2.getBars()[0].getY().intValue()); - assertTrue(f2.getBars()[0].getB().booleanValue()); - assertEquals("simon", f2.getBars()[1].getS()); - assertEquals(4, f2.getBars()[1].getX()); - assertEquals(5, f2.getBars()[1].getY().intValue()); - assertTrue(f2.getBars()[1].getB().booleanValue()); - } - - @Override - protected void tearDown() throws Exception { - node.stop(); - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/endpoint-references/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/endpoint-references/pom.xml deleted file mode 100644 index d03edecca9..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/endpoint-references/pom.xml +++ /dev/null @@ -1,47 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-itest - 2.0-M5 - ../pom.xml - - - itest-ws-endpoint-references - Apache Tuscany SCA iTest WS Endpoint References - - - - - org.apache.tuscany.sca - tuscany-feature-webservice - 2.0-M5 - pom - - - - - - - ${artifactId} - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/endpoint-references/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/HelloWorld.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/endpoint-references/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/HelloWorld.java deleted file mode 100644 index d6db1c2d0b..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/endpoint-references/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/HelloWorld.java +++ /dev/null @@ -1,29 +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 org.apache.tuscany.sca.binding.ws.axis2; - -import org.oasisopen.sca.annotation.Remotable; - -@Remotable -public interface HelloWorld { - - String getGreetings(String s); - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/endpoint-references/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/HelloWorldComponent.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/endpoint-references/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/HelloWorldComponent.java deleted file mode 100644 index 4ba7e67de2..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/endpoint-references/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/HelloWorldComponent.java +++ /dev/null @@ -1,33 +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 org.apache.tuscany.sca.binding.ws.axis2; - -import org.oasisopen.sca.annotation.Reference; - -public class HelloWorldComponent implements HelloWorld { - - @Reference - public HelloWorld helloWorldWS; - - public String getGreetings(String s) { - return helloWorldWS.getGreetings(s); - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/endpoint-references/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/HelloWorldService.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/endpoint-references/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/HelloWorldService.java deleted file mode 100644 index 052b49ff55..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/endpoint-references/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/HelloWorldService.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 org.apache.tuscany.sca.binding.ws.axis2; - -public class HelloWorldService implements HelloWorld { - - public String getGreetings(String s) { - return "Hello " + s; - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/endpoint-references/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/HelloWorld.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/endpoint-references/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/HelloWorld.composite deleted file mode 100644 index 1b0af55874..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/endpoint-references/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/HelloWorld.composite +++ /dev/null @@ -1,48 +0,0 @@ - - - - - - - - - - - http://localhost:8085/myService - - - - - - - - - - - http://localhost:8085/myService - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/endpoint-references/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/helloworld.wsdl b/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/endpoint-references/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/helloworld.wsdl deleted file mode 100644 index 1a2272d7ee..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/endpoint-references/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/helloworld.wsdl +++ /dev/null @@ -1,86 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/endpoint-references/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/HelloWorldTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/endpoint-references/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/HelloWorldTestCase.java deleted file mode 100644 index f1cfe30475..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/endpoint-references/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/HelloWorldTestCase.java +++ /dev/null @@ -1,52 +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 org.apache.tuscany.sca.binding.ws.axis2; - -import junit.framework.TestCase; - -import org.apache.tuscany.sca.binding.ws.axis2.HelloWorld; -import org.apache.tuscany.sca.node.Contribution; -import org.apache.tuscany.sca.node.ContributionLocationHelper; -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; - -public class HelloWorldTestCase extends TestCase { - - private Node node; - private HelloWorld helloWorld; - - public void testCalculator() throws Exception { - assertEquals("Hello petra", helloWorld.getGreetings("petra")); - } - - @Override - protected void setUp() throws Exception { - String contribution = "target/classes"; - node = NodeFactory.newInstance().createNode("org/apache/tuscany/sca/binding/ws/axis2/HelloWorld.composite", new Contribution("test", contribution)); - node.start(); - helloWorld = node.getService(HelloWorld.class, "HelloWorldComponent"); - } - - @Override - protected void tearDown() throws Exception { - node.stop(); - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/endpoints/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/endpoints/pom.xml deleted file mode 100644 index 5373f3d33f..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/endpoints/pom.xml +++ /dev/null @@ -1,47 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-itest - 2.0-M5 - ../pom.xml - - - itest-ws-endpoints - Apache Tuscany SCA iTest WS Endpoints - - - - - org.apache.tuscany.sca - tuscany-feature-webservice - 2.0-M5 - pom - - - - - - - ${artifactId} - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/endpoints/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/HelloWorldMultiService.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/endpoints/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/HelloWorldMultiService.java deleted file mode 100644 index 8f77c63213..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/endpoints/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/HelloWorldMultiService.java +++ /dev/null @@ -1,51 +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 org.apache.tuscany.sca.binding.ws.axis2; - -import org.apache.axiom.om.OMAbstractFactory; -import org.apache.axiom.om.OMElement; -import org.apache.axiom.om.OMFactory; - -public class HelloWorldMultiService implements HelloWorldOM, HelloWorldOM2 { - - public OMElement getGreetings(OMElement requestOM) { - String name = requestOM.getFirstElement().getText(); - - OMFactory omFactory = OMAbstractFactory.getOMFactory(); - OMElement responseOM = omFactory.createOMElement("getGreetingsResponse", "http://helloworld-om", "helloworld"); - OMElement param = omFactory.createOMElement("getGreetingsReturn", "http://helloworld-om", "helloworld"); - responseOM.addChild(param); - param.addChild(omFactory.createOMText("Hello " + name)); - - return responseOM; - } - - public OMElement getGreetings2(OMElement requestOM) { - String name = requestOM.getFirstElement().getText(); - - OMFactory omFactory = OMAbstractFactory.getOMFactory(); - OMElement responseOM = omFactory.createOMElement("getGreetingsResponse", "http://helloworld-om", "helloworld"); - OMElement param = omFactory.createOMElement("getGreetingsReturn", "http://helloworld-om", "helloworld"); - responseOM.addChild(param); - param.addChild(omFactory.createOMText("Hello2 " + name)); - - return responseOM; - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/endpoints/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/HelloWorldOM.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/endpoints/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/HelloWorldOM.java deleted file mode 100644 index e248815805..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/endpoints/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/HelloWorldOM.java +++ /dev/null @@ -1,30 +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 org.apache.tuscany.sca.binding.ws.axis2; - -import org.apache.axiom.om.OMElement; -import org.oasisopen.sca.annotation.Remotable; - -@Remotable -public interface HelloWorldOM { - - OMElement getGreetings(OMElement parmE); - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/endpoints/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/HelloWorldOM2.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/endpoints/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/HelloWorldOM2.java deleted file mode 100644 index 9d0a4ce5b4..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/endpoints/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/HelloWorldOM2.java +++ /dev/null @@ -1,30 +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 org.apache.tuscany.sca.binding.ws.axis2; - -import org.apache.axiom.om.OMElement; -import org.oasisopen.sca.annotation.Remotable; - -@Remotable -public interface HelloWorldOM2 { - - OMElement getGreetings2(OMElement parmE); - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/endpoints/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/HelloWorldOMComponent.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/endpoints/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/HelloWorldOMComponent.java deleted file mode 100644 index 8439696fa8..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/endpoints/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/HelloWorldOMComponent.java +++ /dev/null @@ -1,34 +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 org.apache.tuscany.sca.binding.ws.axis2; - -import org.apache.axiom.om.OMElement; -import org.oasisopen.sca.annotation.Reference; - -public class HelloWorldOMComponent implements HelloWorldOM { - - @Reference - public HelloWorldOM helloWorldWS; - - public OMElement getGreetings(OMElement om) { - return helloWorldWS.getGreetings(om); - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/endpoints/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/HelloWorldOMService.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/endpoints/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/HelloWorldOMService.java deleted file mode 100644 index 5b8578c816..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/endpoints/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/HelloWorldOMService.java +++ /dev/null @@ -1,41 +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 org.apache.tuscany.sca.binding.ws.axis2; - -import org.apache.axiom.om.OMAbstractFactory; -import org.apache.axiom.om.OMElement; -import org.apache.axiom.om.OMFactory; - -public class HelloWorldOMService implements HelloWorldOM { - - public OMElement getGreetings(OMElement requestOM) { - System.out.println(" **** getGreetings **** "); - String name = requestOM.getFirstElement().getText(); - - OMFactory omFactory = OMAbstractFactory.getOMFactory(); - OMElement responseOM = omFactory.createOMElement("getGreetingsResponse", "http://helloworld-om", "helloworld"); - OMElement param = omFactory.createOMElement("getGreetingsReturn", "http://helloworld-om", "helloworld"); - responseOM.addChild(param); - param.addChild(omFactory.createOMText("Hello " + name)); - - return responseOM; - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/endpoints/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/DefaultMultiService.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/endpoints/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/DefaultMultiService.composite deleted file mode 100644 index c7863a5ff8..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/endpoints/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/DefaultMultiService.composite +++ /dev/null @@ -1,53 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/endpoints/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/DefaultSingleService.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/endpoints/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/DefaultSingleService.composite deleted file mode 100644 index 63c6a89cfb..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/endpoints/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/DefaultSingleService.composite +++ /dev/null @@ -1,51 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/endpoints/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/WSDLExplicitURI.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/endpoints/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/WSDLExplicitURI.composite deleted file mode 100644 index 9991a415f9..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/endpoints/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/WSDLExplicitURI.composite +++ /dev/null @@ -1,50 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/endpoints/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/WSDLRelativeURI.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/endpoints/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/WSDLRelativeURI.composite deleted file mode 100644 index 1ea7ab5a36..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/endpoints/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/WSDLRelativeURI.composite +++ /dev/null @@ -1,51 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/endpoints/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/helloworld-om-relative-uri.wsdl b/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/endpoints/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/helloworld-om-relative-uri.wsdl deleted file mode 100644 index fe68755c47..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/endpoints/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/helloworld-om-relative-uri.wsdl +++ /dev/null @@ -1,78 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/endpoints/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/helloworld-om-uri.wsdl b/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/endpoints/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/helloworld-om-uri.wsdl deleted file mode 100644 index baa223f41c..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/endpoints/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/helloworld-om-uri.wsdl +++ /dev/null @@ -1,78 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/endpoints/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/helloworld-om.wsdl b/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/endpoints/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/helloworld-om.wsdl deleted file mode 100644 index 73ca02246d..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/endpoints/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/helloworld-om.wsdl +++ /dev/null @@ -1,78 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/endpoints/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/AbstractHelloWorldOMTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/endpoints/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/AbstractHelloWorldOMTestCase.java deleted file mode 100644 index bad94bbbc3..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/endpoints/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/AbstractHelloWorldOMTestCase.java +++ /dev/null @@ -1,68 +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 org.apache.tuscany.sca.binding.ws.axis2; - -import junit.framework.Assert; -import junit.framework.TestCase; - -import org.apache.axiom.om.OMAbstractFactory; -import org.apache.axiom.om.OMElement; -import org.apache.axiom.om.OMFactory; -import org.apache.axiom.om.OMText; -import org.apache.tuscany.sca.binding.ws.axis2.HelloWorldOM; -import org.apache.tuscany.sca.node.Contribution; -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; - -public abstract class AbstractHelloWorldOMTestCase extends TestCase { - - private Node node; - private HelloWorldOM helloWorld; - - @Override - protected void setUp() throws Exception { - String contribution = "target/classes"; - node = NodeFactory.newInstance().createNode(getCompositeName(), new Contribution("test", contribution)); - node.start(); - helloWorld = node.getService(HelloWorldOM.class, "HelloWorldComponent"); - } - - public void testCalculator() throws Exception { - OMFactory fac = OMAbstractFactory.getOMFactory(); - OMElement requestOM = fac.createOMElement("getGreetings", "http://helloworld-om", "helloworld"); - OMElement parmE = fac.createOMElement("name", "http://helloworld-om", "helloworld"); - requestOM.addChild(parmE); - parmE.addChild(fac.createOMText("petra")); - OMElement responseOM = helloWorld.getGreetings(requestOM); - OMElement child = (OMElement)responseOM.getFirstElement(); - Assert.assertEquals("Hello petra", ((OMText)child.getFirstOMChild()).getText()); - } - - @Override - protected void tearDown() throws Exception { - node.stop(); - } - - protected String getCompositeName() { - String className = this.getClass().getName(); - return className.substring(0, className.length() - 8).replace('.', '/') + ".composite"; - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/endpoints/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/DefaultMultiServiceTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/endpoints/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/DefaultMultiServiceTestCase.java deleted file mode 100644 index 4ecf016e5a..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/endpoints/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/DefaultMultiServiceTestCase.java +++ /dev/null @@ -1,24 +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 org.apache.tuscany.sca.binding.ws.axis2; - -public class DefaultMultiServiceTestCase extends AbstractHelloWorldOMTestCase { - // super class does it all getting composite based on this class name -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/endpoints/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/DefaultSingleServiceTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/endpoints/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/DefaultSingleServiceTestCase.java deleted file mode 100644 index 13163d62ab..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/endpoints/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/DefaultSingleServiceTestCase.java +++ /dev/null @@ -1,24 +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 org.apache.tuscany.sca.binding.ws.axis2; - -public class DefaultSingleServiceTestCase extends AbstractHelloWorldOMTestCase { - // super class does it all getting composite based on this class name -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/endpoints/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/WSDLExplicitURITestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/endpoints/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/WSDLExplicitURITestCase.java deleted file mode 100644 index bb492557d4..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/endpoints/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/WSDLExplicitURITestCase.java +++ /dev/null @@ -1,24 +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 org.apache.tuscany.sca.binding.ws.axis2; - -public class WSDLExplicitURITestCase extends AbstractHelloWorldOMTestCase { - // super class does it all getting composite based on this class name -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/endpoints/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/WSDLRelativeURITestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/endpoints/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/WSDLRelativeURITestCase.java deleted file mode 100644 index e038cc3116..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/endpoints/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/WSDLRelativeURITestCase.java +++ /dev/null @@ -1,24 +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 org.apache.tuscany.sca.binding.ws.axis2; - -public class WSDLRelativeURITestCase extends AbstractHelloWorldOMTestCase { - // super class does it all getting composite based on this class name -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/http-ssl/README b/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/http-ssl/README deleted file mode 100644 index 41dcb8680b..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/http-ssl/README +++ /dev/null @@ -1,68 +0,0 @@ -The module tests web service communications running over HTTPS. HTTPS is configured -in this embedded test environment by adding the confidentiality intent to both -reference and service and by configuring reference and service side policy sets -to configure the web service binding appropriately to enable SSL. - -When running the web service binding in a container that itself is configured -to provide SSL support these policy sets are not required. TODO can they themselves -detect that they are not required. - -The SSL configuration depends on public/private key pairs and a keystore. This is how -they are organized and generated - - -Generate Private/Public keys into a keystore for use at the server ------------------------------------------------------------------- - -keytool -genkey -keyalg RSA -sigalg MD5withRSA -keysize 1024 -alias TuscanyUser -dname "CN=Tuscany Service, OU=Tuscany, O=Apache, L=Hursley, S=Hampshire, C=UK" -storetype JKS -keystore tuscany.jks -validity 9999 -keypass tuscany -storepass tuscany - -View the contents of the key store that result ----------------------------------------------- - -keytool -list -v -keystore tuscany.jks -storepass tuscany - -Keystore type: JKS -Keystore provider: SUN - -Your keystore contains 1 entry - -Alias name: tuscanyuser -Creation date: 26-Feb-2010 -Entry type: PrivateKeyEntry -Certificate chain length: 1 -Certificate[1]: -Owner: CN=Tuscany Service, OU=Tuscany, O=Apache, L=Hursley, ST=Hampshire, C=UK -Issuer: CN=Tuscany Service, OU=Tuscany, O=Apache, L=Hursley, ST=Hampshire, C=UK -Serial number: 4b87b4d7 -Valid from: Fri Feb 26 11:47:35 GMT 2010 until: Mon Jul 13 12:47:35 BST 2037 -Certificate fingerprints: - MD5: C3:0C:D6:DF:F6:27:26:47:AD:41:44:CA:D7:98:FA:41 - SHA1: 2E:82:AD:F6:54:E0:C6:A5:47:5C:8C:9F:3B:5A:65:8E:F9:5A:40:07 - Signature algorithm name: MD5withRSA - Version: 3 - - -IN THIS EMBEDDED TEST THE FOLLOWING ARE NOT REQUIRED AS BOTH REFERENCE AND SERVICES -ARE RUNNING IN THE SAME JVM AND HAVE ACCESS TO THE SERVICE SIDE KEY STORE - -Generate the client side certificate ------------------------------------- - -keytool -export -alias TuscanyUser -file tuscany.cer -keystore tuscany.jks -storepass tuscany - -Print the contents of the generated certificate file ----------------------------------------------------- - -keytool -printcert -v -file tuscany.cer - -Owner: CN=Tuscany Service, OU=Tuscany, O=Apache, L=Hursley, ST=Hampshire, C=UK -Issuer: CN=Tuscany Service, OU=Tuscany, O=Apache, L=Hursley, ST=Hampshire, C=UK -Serial number: 4b87b4d7 -Valid from: Fri Feb 26 11:47:35 GMT 2010 until: Mon Jul 13 12:47:35 BST 2037 -Certificate fingerprints: - MD5: C3:0C:D6:DF:F6:27:26:47:AD:41:44:CA:D7:98:FA:41 - SHA1: 2E:82:AD:F6:54:E0:C6:A5:47:5C:8C:9F:3B:5A:65:8E:F9:5A:40:07 - Signature algorithm name: MD5withRSA - Version: 3 - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/http-ssl/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/http-ssl/pom.xml deleted file mode 100644 index 0a917b0e19..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/http-ssl/pom.xml +++ /dev/null @@ -1,52 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-itest - 2.0-M5 - ../pom.xml - - - itest-ws-http-ssl - Apache Tuscany SCA iTest WS HTTP SSL - - - - - org.apache.tuscany.sca - tuscany-feature-webservice - 2.0-M5 - pom - - - - org.apache.tuscany.sca - tuscany-policy-security - 2.0-M5 - - - - - - ${artifactId} - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/http-ssl/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/helloworld/HelloWorld.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/http-ssl/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/helloworld/HelloWorld.java deleted file mode 100644 index 98eb6e361b..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/http-ssl/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/helloworld/HelloWorld.java +++ /dev/null @@ -1,29 +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 org.apache.tuscany.sca.binding.ws.axis2.helloworld; - -import org.oasisopen.sca.annotation.Remotable; - -@Remotable -public interface HelloWorld { - - String getGreetings(String s); - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/http-ssl/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/helloworld/HelloWorldClient.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/http-ssl/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/helloworld/HelloWorldClient.java deleted file mode 100644 index 2c6c4fc92c..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/http-ssl/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/helloworld/HelloWorldClient.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 org.apache.tuscany.sca.binding.ws.axis2.helloworld; - -import org.oasisopen.sca.annotation.Reference; - -public class HelloWorldClient implements HelloWorld { - - @Reference - public HelloWorld helloWorldWS; - - public String getGreetings(String s) { - String response = helloWorldWS.getGreetings(s); - System.out.println("At client: " + response); - return response; - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/http-ssl/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/helloworld/HelloWorldService.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/http-ssl/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/helloworld/HelloWorldService.java deleted file mode 100644 index 3662007984..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/http-ssl/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/helloworld/HelloWorldService.java +++ /dev/null @@ -1,30 +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 org.apache.tuscany.sca.binding.ws.axis2.helloworld; - -public class HelloWorldService implements HelloWorld { - - public String getGreetings(String s) { - String response = "Hello " + s; - System.out.println("At service: " + response); - return response; - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/http-ssl/src/main/resources/META-INF/sca-contribution.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/http-ssl/src/main/resources/META-INF/sca-contribution.xml deleted file mode 100644 index 7e71dd465f..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/http-ssl/src/main/resources/META-INF/sca-contribution.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/http-ssl/src/main/resources/META-INF/services/org.apache.tuscany.sca.definitions.xml.Definitions b/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/http-ssl/src/main/resources/META-INF/services/org.apache.tuscany.sca.definitions.xml.Definitions deleted file mode 100644 index 04fe620be4..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/http-ssl/src/main/resources/META-INF/services/org.apache.tuscany.sca.definitions.xml.Definitions +++ /dev/null @@ -1,17 +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. -org/apache/tuscany/sca/binding/ws/axis2/helloworld/definitions.xml \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/http-ssl/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/helloworld/definitions.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/http-ssl/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/helloworld/definitions.xml deleted file mode 100644 index d7251590ba..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/http-ssl/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/helloworld/definitions.xml +++ /dev/null @@ -1,35 +0,0 @@ - - - - - - - - - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/http-ssl/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/helloworld/helloworld.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/http-ssl/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/helloworld/helloworld.composite deleted file mode 100644 index aa21221b30..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/http-ssl/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/helloworld/helloworld.composite +++ /dev/null @@ -1,59 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/http-ssl/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/helloworld/helloworld.wsdl b/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/http-ssl/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/helloworld/helloworld.wsdl deleted file mode 100644 index a352696b8e..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/http-ssl/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/helloworld/helloworld.wsdl +++ /dev/null @@ -1,90 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/http-ssl/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/helloworld/tuscany.jks b/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/http-ssl/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/helloworld/tuscany.jks deleted file mode 100644 index d67bccdf8b..0000000000 Binary files a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/http-ssl/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/helloworld/tuscany.jks and /dev/null differ diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/http-ssl/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/HTTPSTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/http-ssl/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/HTTPSTestCase.java deleted file mode 100644 index 2fc448aacc..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/http-ssl/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/HTTPSTestCase.java +++ /dev/null @@ -1,57 +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 org.apache.tuscany.sca.binding.ws.axis2; - -import junit.framework.TestCase; - -import org.apache.tuscany.sca.binding.ws.axis2.helloworld.HelloWorld; -import org.apache.tuscany.sca.node.Contribution; -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; - -public class HTTPSTestCase extends TestCase { - - private Node node; - private HelloWorld helloWorld; - private HelloWorld helloWorld2; - private HelloWorld helloWorld3; - - @Override - protected void setUp() throws Exception { - node = NodeFactory.newInstance().createNode(new Contribution("test", "target/classes")); - node.start(); - helloWorld = node.getService(HelloWorld.class, "HelloWorldClient"); - helloWorld2 = node.getService(HelloWorld.class, "HelloWorldClient2"); - helloWorld3 = node.getService(HelloWorld.class, "HelloWorldClient3"); - } - - public void testCalculator() throws Exception { - assertEquals("Hello petra", helloWorld.getGreetings("petra")); - assertEquals("Hello petra", helloWorld2.getGreetings("petra")); - // TODO - check policy matching for unconfigure reference - //assertEquals("Hello petra", helloWorld3.getGreetings("petra")); - } - - @Override - protected void tearDown() throws Exception { - node.stop(); - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/pom.xml deleted file mode 100644 index d44710c1f3..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/pom.xml +++ /dev/null @@ -1,48 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-itest - 2.0-M5 - ../pom.xml - - pom - itest-ws - Apache Tuscany SCA iTest WS - - - defaults - authentication-basic - http-ssl - wsdl - endpoints - endpoint-references - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/wsdl/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/wsdl/pom.xml deleted file mode 100644 index 662052e30c..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/wsdl/pom.xml +++ /dev/null @@ -1,47 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-itest - 2.0-M5 - ../pom.xml - - - itest-ws-wsdl - Apache Tuscany SCA iTest WS WSDL - - - - - org.apache.tuscany.sca - tuscany-feature-webservice - 2.0-M5 - pom - - - - - - - ${artifactId} - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/wsdl/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/Account.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/wsdl/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/Account.java deleted file mode 100644 index 963712c0c2..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/wsdl/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/Account.java +++ /dev/null @@ -1,34 +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 org.apache.tuscany.sca.binding.ws.axis2; - -import org.oasisopen.sca.annotation.Remotable; - -/** - * Test ?wsdl works and that the returned WSDL has the correct endpoint - * - * @version $Rev$ $Date$ - */ -@Remotable -public interface Account { - - CustomerProfileData getCustomerProfile(String loginID); - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/wsdl/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/AccountService.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/wsdl/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/AccountService.java deleted file mode 100644 index ab5fc0f873..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/wsdl/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/AccountService.java +++ /dev/null @@ -1,33 +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 org.apache.tuscany.sca.binding.ws.axis2; - -/** - * Test ?wsdl works and that the returned WSDL has the correct endpoint - * - * @version $Rev$ $Date$ - */ -public class AccountService implements Account { - - public CustomerProfileData getCustomerProfile(String loginID) { - return new CustomerProfileData(loginID); - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/wsdl/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/CustomerProfileData.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/wsdl/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/CustomerProfileData.java deleted file mode 100644 index 2574788dfa..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/wsdl/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/CustomerProfileData.java +++ /dev/null @@ -1,103 +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 org.apache.tuscany.sca.binding.ws.axis2; - -/** - * Test ?wsdl works and that the returned WSDL has the correct endpoint - * - * @version $Rev$ $Date$ - */ -public class CustomerProfileData { - - private String firstName; - private String lastName; - private String address; - private String email; - private String loginID; - private String password; - private int id; - - public CustomerProfileData(String loginID) { - firstName = "John"; - lastName = "Doe"; - address = "345 Main Street"; - email = "john@doe.org"; - this.loginID = loginID; - password = "hello"; - id = 1234; - } - - public String getFirstName() { - return firstName; - } - - public void setFirstName(String firstName) { - this.firstName = firstName; - } - - public String getLastName() { - return lastName; - } - - public void setLastName(String lastName) { - this.lastName = lastName; - } - - public String getAddress() { - return address; - } - - public void setAddress(String address) { - this.address = address; - } - - public String getEmail() { - return email; - } - - public void setEmail(String email) { - this.email = email; - } - - public String getLoginID() { - return loginID; - } - - public void setLoginID(String loginID) { - this.loginID = loginID; - } - - public String getPassword() { - return password; - } - - public void setPassword(String password) { - this.password = password; - } - - public int getId() { - return id; - } - - public void setId(int id) { - this.id = id; - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/wsdl/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/HelloWorld.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/wsdl/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/HelloWorld.java deleted file mode 100644 index d6db1c2d0b..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/wsdl/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/HelloWorld.java +++ /dev/null @@ -1,29 +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 org.apache.tuscany.sca.binding.ws.axis2; - -import org.oasisopen.sca.annotation.Remotable; - -@Remotable -public interface HelloWorld { - - String getGreetings(String s); - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/wsdl/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/HelloWorldOM.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/wsdl/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/HelloWorldOM.java deleted file mode 100644 index e248815805..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/wsdl/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/HelloWorldOM.java +++ /dev/null @@ -1,30 +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 org.apache.tuscany.sca.binding.ws.axis2; - -import org.apache.axiom.om.OMElement; -import org.oasisopen.sca.annotation.Remotable; - -@Remotable -public interface HelloWorldOM { - - OMElement getGreetings(OMElement parmE); - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/wsdl/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/HelloWorldOMComponent.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/wsdl/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/HelloWorldOMComponent.java deleted file mode 100644 index 8439696fa8..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/wsdl/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/HelloWorldOMComponent.java +++ /dev/null @@ -1,34 +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 org.apache.tuscany.sca.binding.ws.axis2; - -import org.apache.axiom.om.OMElement; -import org.oasisopen.sca.annotation.Reference; - -public class HelloWorldOMComponent implements HelloWorldOM { - - @Reference - public HelloWorldOM helloWorldWS; - - public OMElement getGreetings(OMElement om) { - return helloWorldWS.getGreetings(om); - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/wsdl/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/HelloWorldOMService.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/wsdl/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/HelloWorldOMService.java deleted file mode 100644 index 5b8578c816..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/wsdl/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/HelloWorldOMService.java +++ /dev/null @@ -1,41 +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 org.apache.tuscany.sca.binding.ws.axis2; - -import org.apache.axiom.om.OMAbstractFactory; -import org.apache.axiom.om.OMElement; -import org.apache.axiom.om.OMFactory; - -public class HelloWorldOMService implements HelloWorldOM { - - public OMElement getGreetings(OMElement requestOM) { - System.out.println(" **** getGreetings **** "); - String name = requestOM.getFirstElement().getText(); - - OMFactory omFactory = OMAbstractFactory.getOMFactory(); - OMElement responseOM = omFactory.createOMElement("getGreetingsResponse", "http://helloworld-om", "helloworld"); - OMElement param = omFactory.createOMElement("getGreetingsReturn", "http://helloworld-om", "helloworld"); - responseOM.addChild(param); - param.addChild(omFactory.createOMText("Hello " + name)); - - return responseOM; - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/wsdl/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/HelloWorldService.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/wsdl/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/HelloWorldService.java deleted file mode 100644 index 052b49ff55..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/wsdl/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/HelloWorldService.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 org.apache.tuscany.sca.binding.ws.axis2; - -public class HelloWorldService implements HelloWorld { - - public String getGreetings(String s) { - return "Hello " + s; - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/wsdl/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/customerdata.xsd b/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/wsdl/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/customerdata.xsd deleted file mode 100644 index 421d5d6166..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/wsdl/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/customerdata.xsd +++ /dev/null @@ -1,36 +0,0 @@ - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/wsdl/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/customerdefs.xsd b/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/wsdl/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/customerdefs.xsd deleted file mode 100644 index 24cf3eebad..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/wsdl/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/customerdefs.xsd +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/wsdl/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/customerinfo.xsd b/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/wsdl/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/customerinfo.xsd deleted file mode 100644 index b78909142f..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/wsdl/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/customerinfo.xsd +++ /dev/null @@ -1,31 +0,0 @@ - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/wsdl/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/helloworld-om-merged.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/wsdl/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/helloworld-om-merged.composite deleted file mode 100644 index c520d2e3b2..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/wsdl/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/helloworld-om-merged.composite +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/wsdl/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/helloworld-om-merged.wsdl b/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/wsdl/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/helloworld-om-merged.wsdl deleted file mode 100644 index 29be66fb71..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/wsdl/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/helloworld-om-merged.wsdl +++ /dev/null @@ -1,59 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/wsdl/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/helloworld-prec.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/wsdl/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/helloworld-prec.composite deleted file mode 100644 index affe6addbe..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/wsdl/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/helloworld-prec.composite +++ /dev/null @@ -1,46 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/wsdl/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/helloworld-prec.wsdl b/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/wsdl/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/helloworld-prec.wsdl deleted file mode 100644 index 5908c43e7d..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/wsdl/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/helloworld-prec.wsdl +++ /dev/null @@ -1,81 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/wsdl/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/helloworld.wsdl b/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/wsdl/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/helloworld.wsdl deleted file mode 100644 index 1a2272d7ee..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/wsdl/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/helloworld.wsdl +++ /dev/null @@ -1,86 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/wsdl/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/questionmark-import-nested.wsdl b/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/wsdl/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/questionmark-import-nested.wsdl deleted file mode 100644 index 686b08a1d4..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/wsdl/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/questionmark-import-nested.wsdl +++ /dev/null @@ -1,70 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/wsdl/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/questionmark-import.wsdl b/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/wsdl/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/questionmark-import.wsdl deleted file mode 100644 index 105c82a411..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/wsdl/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/questionmark-import.wsdl +++ /dev/null @@ -1,49 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/wsdl/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/questionmark-include.wsdl b/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/wsdl/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/questionmark-include.wsdl deleted file mode 100644 index 4b6f982c26..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/wsdl/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/questionmark-include.wsdl +++ /dev/null @@ -1,94 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/wsdl/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/questionmark-wsdl-import.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/wsdl/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/questionmark-wsdl-import.composite deleted file mode 100644 index aca50f466a..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/wsdl/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/questionmark-wsdl-import.composite +++ /dev/null @@ -1,31 +0,0 @@ - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/wsdl/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/questionmark-wsdl-include.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/wsdl/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/questionmark-wsdl-include.composite deleted file mode 100644 index 9f84fab262..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/wsdl/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/questionmark-wsdl-include.composite +++ /dev/null @@ -1,31 +0,0 @@ - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/wsdl/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/questionmark-wsdl.composite b/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/wsdl/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/questionmark-wsdl.composite deleted file mode 100644 index b57d5f5b54..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/wsdl/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/questionmark-wsdl.composite +++ /dev/null @@ -1,33 +0,0 @@ - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/wsdl/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/HelloWorldWSDLMergedTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/wsdl/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/HelloWorldWSDLMergedTestCase.java deleted file mode 100644 index b79ee7d254..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/wsdl/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/HelloWorldWSDLMergedTestCase.java +++ /dev/null @@ -1,62 +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 org.apache.tuscany.sca.binding.ws.axis2; - -import junit.framework.Assert; -import junit.framework.TestCase; - -import org.apache.axiom.om.OMAbstractFactory; -import org.apache.axiom.om.OMElement; -import org.apache.axiom.om.OMFactory; -import org.apache.axiom.om.OMText; -import org.apache.tuscany.sca.node.Contribution; -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; - -public class HelloWorldWSDLMergedTestCase extends TestCase { - - private Node node; - private HelloWorldOM helloWorld; - - @Override - protected void setUp() throws Exception { - String contribution = "target/classes"; - node = NodeFactory.newInstance().createNode("org/apache/tuscany/sca/binding/ws/axis2/helloworld-om-merged.composite", new Contribution("test", contribution)); - node.start(); - helloWorld = node.getService(HelloWorldOM.class, "HelloWorldWSDLMergedComponent"); - } - - public void testHelloWorld() throws Exception { - OMFactory fac = OMAbstractFactory.getOMFactory(); - OMElement requestOM = fac.createOMElement("getGreetings", "http://helloworld-om", "helloworld"); - OMElement parmE = fac.createOMElement("name", "http://helloworld-om", "helloworld"); - requestOM.addChild(parmE); - parmE.addChild(fac.createOMText("petra")); - OMElement responseOM = helloWorld.getGreetings(requestOM); - OMElement child = (OMElement)responseOM.getFirstElement(); - Assert.assertEquals("Hello petra", ((OMText)child.getFirstOMChild()).getText()); - } - - @Override - protected void tearDown() throws Exception { - node.stop(); - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/wsdl/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/QuestionMarkWSDLImportTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/wsdl/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/QuestionMarkWSDLImportTestCase.java deleted file mode 100644 index 1814e2cc7f..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/wsdl/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/QuestionMarkWSDLImportTestCase.java +++ /dev/null @@ -1,99 +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 org.apache.tuscany.sca.binding.ws.axis2; - -import java.io.BufferedReader; -import java.io.InputStream; -import java.io.InputStreamReader; -import java.net.URL; -import java.util.List; - -import javax.wsdl.Definition; -import javax.wsdl.Port; -import javax.wsdl.Service; -import javax.wsdl.extensions.soap.SOAPAddress; -import javax.wsdl.factory.WSDLFactory; -import javax.wsdl.xml.WSDLReader; -import javax.xml.namespace.QName; - -import junit.framework.TestCase; - -import org.apache.tuscany.sca.node.Contribution; -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; - -/** - * Test ?wsdl works and that the returned WSDL has the correct endpoint - * - * @version $Rev$ $Date$ - */ -public class QuestionMarkWSDLImportTestCase extends TestCase { - - private Node node; - - /** - * Tests ?wsdl works and returns the correct port endpoint from the WSDL - */ - public void testWSDLImportPortEndpoint() throws Exception { - InputStream inp = new URL("http://localhost:8086/AccountService?wsdl").openStream(); - BufferedReader br = new BufferedReader(new InputStreamReader(inp)); - String line; - while((line = br.readLine()) != null) { - System.out.println(line); - } - br.close(); - - WSDLReader wsdlReader = WSDLFactory.newInstance().newWSDLReader(); - wsdlReader.setFeature("javax.wsdl.verbose", false); - wsdlReader.setFeature("javax.wsdl.importDocuments", true); - - Definition definition = wsdlReader.readWSDL("http://localhost:8086/AccountService?wsdl"); - assertNotNull(definition); - Service service = definition.getService(new QName("http://account2/AccountService/Account", "AccountService")); - Port port = service.getPort("AccountSoapPort"); - - String endpoint = getEndpoint(port); - // String ip = HttpUtils.getIpAddress(); - assertEquals("http://localhost:8086/AccountService", endpoint); - } - - private String getEndpoint(Port port) { - List wsdlPortExtensions = port.getExtensibilityElements(); - for (final Object extension : wsdlPortExtensions) { - if (extension instanceof SOAPAddress) { - return ((SOAPAddress) extension).getLocationURI(); - } - } - throw new RuntimeException("no SOAPAddress"); - } - - @Override - protected void setUp() throws Exception { - String contribution = "target/classes"; - node = NodeFactory.newInstance().createNode("org/apache/tuscany/sca/binding/ws/axis2/questionmark-wsdl-import.composite", new Contribution("test", contribution)); - node.start(); - } - - @Override - protected void tearDown() throws Exception { - node.stop(); - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/wsdl/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/QuestionMarkWSDLIncludeTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/wsdl/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/QuestionMarkWSDLIncludeTestCase.java deleted file mode 100644 index fb2ba66e6c..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/wsdl/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/QuestionMarkWSDLIncludeTestCase.java +++ /dev/null @@ -1,98 +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 org.apache.tuscany.sca.binding.ws.axis2; - -import java.io.BufferedReader; -import java.io.InputStream; -import java.io.InputStreamReader; -import java.net.URL; -import java.util.List; - -import javax.wsdl.Definition; -import javax.wsdl.Port; -import javax.wsdl.Service; -import javax.wsdl.extensions.soap.SOAPAddress; -import javax.wsdl.factory.WSDLFactory; -import javax.wsdl.xml.WSDLReader; -import javax.xml.namespace.QName; - -import junit.framework.TestCase; - -import org.apache.tuscany.sca.node.Contribution; -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; - -/** - * Test ?wsdl works and that the returned WSDL has the correct endpoint - * - * @version $Rev$ $Date$ - */ -public class QuestionMarkWSDLIncludeTestCase extends TestCase { - - private Node node; - - /** - * Tests ?wsdl works and returns the correct port endpoint from the WSDL - */ - public void testWSDLIncludePortEndpoint() throws Exception { - InputStream inp = new URL("http://localhost:8085/AccountService?wsdl").openStream(); - BufferedReader br = new BufferedReader(new InputStreamReader(inp)); - String line; - while((line = br.readLine()) != null) { - System.out.println(line); - } - br.close(); - - WSDLReader wsdlReader = WSDLFactory.newInstance().newWSDLReader(); - wsdlReader.setFeature("javax.wsdl.verbose", false); - wsdlReader.setFeature("javax.wsdl.importDocuments", true); - - Definition definition = wsdlReader.readWSDL("http://localhost:8085/AccountService?wsdl"); - assertNotNull(definition); - Service service = definition.getService(new QName("http://accounts/AccountService/Account", "AccountService")); - Port port = service.getPort("AccountSoapPort"); - - String endpoint = getEndpoint(port); - assertEquals("http://localhost:8085/AccountService", endpoint); - } - - private String getEndpoint(Port port) { - List wsdlPortExtensions = port.getExtensibilityElements(); - for (final Object extension : wsdlPortExtensions) { - if (extension instanceof SOAPAddress) { - return ((SOAPAddress) extension).getLocationURI(); - } - } - throw new RuntimeException("no SOAPAddress"); - } - - @Override - protected void setUp() throws Exception { - String contribution = "target/classes"; - node = NodeFactory.newInstance().createNode("org/apache/tuscany/sca/binding/ws/axis2/questionmark-wsdl-include.composite", new Contribution("test", contribution)); - node.start(); - } - - @Override - protected void tearDown() throws Exception { - node.stop(); - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/wsdl/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/QuestionMarkWSDLTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/wsdl/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/QuestionMarkWSDLTestCase.java deleted file mode 100644 index 55c2a4822d..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/wsdl/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/QuestionMarkWSDLTestCase.java +++ /dev/null @@ -1,126 +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 org.apache.tuscany.sca.binding.ws.axis2; - -import java.io.BufferedReader; -import java.io.InputStream; -import java.io.InputStreamReader; -import java.net.URL; -import java.util.List; - -import javax.wsdl.Definition; -import javax.wsdl.Port; -import javax.wsdl.Service; -import javax.wsdl.extensions.soap.SOAPAddress; -import javax.wsdl.factory.WSDLFactory; -import javax.wsdl.xml.WSDLReader; -import javax.xml.namespace.QName; - -import junit.framework.TestCase; - -import org.apache.tuscany.sca.node.Contribution; -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; - -/** - * Test ?wsdl works and that the returned WSDL has the correct endpoint - * - * @version $Rev$ $Date$ - */ -public class QuestionMarkWSDLTestCase extends TestCase { - - private Node node; - - /** - * Tests ?wsdl works and returns the correct port endpoint from the WSDL - */ - public void testWSDLPortEndpoint() throws Exception { - InputStream inp = new URL("http://localhost:8085/services/HelloWorldWebService2?wsdl").openStream(); - BufferedReader br = new BufferedReader(new InputStreamReader(inp)); - String line; - while((line = br.readLine()) != null) { - System.out.println(line); - } - br.close(); - - WSDLReader wsdlReader = WSDLFactory.newInstance().newWSDLReader(); - wsdlReader.setFeature("javax.wsdl.verbose",false); - wsdlReader.setFeature("javax.wsdl.importDocuments",true); - - Definition definition = wsdlReader.readWSDL("http://localhost:8085/services/HelloWorldWebService2?wsdl"); - assertNotNull(definition); - Service service = definition.getService(new QName("http://helloworld/HelloWorldService/HelloWorld", - "HelloWorldService")); - Port port = service.getPort("HelloWorldSoapPort"); - - String endpoint = getEndpoint(port); - assertEquals("http://localhost:8085/services/HelloWorldWebService", endpoint); - } - - /** - * Tests ?wsdl works and returns the correct port endpoint from binding.ws with a custom URI - */ - public void testCustomEndpoint() throws Exception { - InputStream inp = new URL("http://localhost:8085/foo/bar?wsdl").openStream(); - BufferedReader br = new BufferedReader(new InputStreamReader(inp)); - String line; - while((line = br.readLine()) != null) { - System.out.println(line); - } - br.close(); - - WSDLReader wsdlReader = WSDLFactory.newInstance().newWSDLReader(); - wsdlReader.setFeature("javax.wsdl.verbose",false); - wsdlReader.setFeature("javax.wsdl.importDocuments",true); - - Definition definition = wsdlReader.readWSDL("http://localhost:8085/foo/bar?wsdl"); - assertNotNull(definition); - Service service = definition.getService(new QName("http://axis2.ws.binding.sca.tuscany.apache.org/", - "HelloWorldService")); - Port port = service.getPort("HelloWorldPort"); - - String endpoint = getEndpoint(port); - // TODO - used to get the real host here but WSDL seems to have localhost in it atm? - assertEquals("http://localhost:8085/foo/bar", endpoint); - } - - protected String getEndpoint(Port port) { - List wsdlPortExtensions = port.getExtensibilityElements(); - for (final Object extension : wsdlPortExtensions) { - if (extension instanceof SOAPAddress) { - return ((SOAPAddress) extension).getLocationURI(); - } - } - throw new RuntimeException("no SOAPAddress"); - } - - @Override - protected void setUp() throws Exception { - String contribution = "target/classes"; - node = NodeFactory.newInstance().createNode("org/apache/tuscany/sca/binding/ws/axis2/questionmark-wsdl.composite", new Contribution("test", contribution)); - node.start(); - } - - @Override - protected void tearDown() throws Exception { - node.stop(); - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/wsdl/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/UriPrecedenceTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/wsdl/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/UriPrecedenceTestCase.java deleted file mode 100644 index 910f1fa9ef..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/itest/ws/wsdl/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/UriPrecedenceTestCase.java +++ /dev/null @@ -1,73 +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 org.apache.tuscany.sca.binding.ws.axis2; - -import junit.framework.Assert; -import junit.framework.TestCase; - -import org.apache.axiom.om.OMAbstractFactory; -import org.apache.axiom.om.OMElement; -import org.apache.axiom.om.OMFactory; -import org.apache.axiom.om.OMText; -import org.apache.tuscany.sca.node.Contribution; -import org.apache.tuscany.sca.node.ContributionLocationHelper; -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; -import org.oasisopen.sca.ServiceRuntimeException; - -/** - * This test verifies that the Endpoint URI specified in the wsdl takes precedence over the URI specified - * in binding. Ref: WS Binding Specification V1.00 - Section 2.1.1 - * - * @version $Rev$ $Date$ - */ -public class UriPrecedenceTestCase extends TestCase { - - private Node node; - private HelloWorldOM helloWorld; - - public void testUriPrecedence() throws Exception { - OMFactory fac = OMAbstractFactory.getOMFactory(); - OMElement requestOM = fac.createOMElement("getGreetings", "http://helloworld-prec", "helloworld"); - OMElement parmE = fac.createOMElement("name", "http://helloworld-prec", "helloworld"); - requestOM.addChild(parmE); - parmE.addChild(fac.createOMText("petra")); - try { - OMElement responseOM = helloWorld.getGreetings(requestOM); - OMElement child = (OMElement)responseOM.getFirstElement(); - Assert.assertEquals("Hello petra", ((OMText)child.getFirstOMChild()).getText()); - } catch (ServiceRuntimeException e) { - fail("Endpoint URI from wsdl did not take precedence over URI in binding."); - } - } - - @Override - protected void setUp() throws Exception { - String contribution = "target/classes"; - node = NodeFactory.newInstance().createNode("org/apache/tuscany/sca/binding/ws/axis2/helloworld-prec.composite", new Contribution("test", contribution)); - node.start(); - helloWorld = node.getService(HelloWorldOM.class, "HelloWorldComponent"); - } - - @Override - protected void tearDown() throws Exception { - node.stop(); - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/maven/maven-tuscany-plugin/LICENSE b/sca-java-2.x/tags/2.0-M5-RC3/maven/maven-tuscany-plugin/LICENSE deleted file mode 100644 index 6e529a25c4..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/maven/maven-tuscany-plugin/LICENSE +++ /dev/null @@ -1,205 +0,0 @@ - - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright [yyyy] [name of copyright owner] - - Licensed 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. - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/maven/maven-tuscany-plugin/NOTICE b/sca-java-2.x/tags/2.0-M5-RC3/maven/maven-tuscany-plugin/NOTICE deleted file mode 100644 index 9ddba06a32..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/maven/maven-tuscany-plugin/NOTICE +++ /dev/null @@ -1,6 +0,0 @@ -${pom.name} -Copyright (c) 2005 - 2010 The Apache Software Foundation - -This product includes software developed by -The Apache Software Foundation (http://www.apache.org/). - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/maven/maven-tuscany-plugin/README b/sca-java-2.x/tags/2.0-M5-RC3/maven/maven-tuscany-plugin/README deleted file mode 100644 index 8754eeae6e..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/maven/maven-tuscany-plugin/README +++ /dev/null @@ -1,21 +0,0 @@ -This module is a Maven plugin for starting a Tuscany runtime which runs the project as an SCA contribution. - -To configure the project add the following to the SCA contribution's pom.xml: - - - ... - - - org.apache.tuscany.maven.plugins - maven-tuscany-plugin - - ... - - - -To run the contribution in Tuscany use "mvn tuscany:run" - -Optional parameters are: - config - uri string to configure the Tuscany runtime - contributions - additional SCA contributions to install along with the project contribution - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/maven/maven-tuscany-plugin/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/maven/maven-tuscany-plugin/pom.xml deleted file mode 100644 index 8d82971f6b..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/maven/maven-tuscany-plugin/pom.xml +++ /dev/null @@ -1,60 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-sca - ../../pom.xml - 2.0-M5 - - - org.apache.tuscany.maven.plugins - maven-tuscany-plugin - maven-plugin - Apache Tuscany Maven Tuscany Plugin - 2.0-M5 - - - - org.apache.maven - maven-project - 2.0.3 - - - org.apache.maven - maven-plugin-api - 2.0.3 - - - org.apache.maven - maven-artifact - 2.0.3 - - - - org.apache.tuscany.sca.shades - tuscany-base - 2.0-M5 - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/maven/maven-tuscany-plugin/src/main/java/org/apache/tuscany/maven/plugin/TuscanyLaunchMojo.java b/sca-java-2.x/tags/2.0-M5-RC3/maven/maven-tuscany-plugin/src/main/java/org/apache/tuscany/maven/plugin/TuscanyLaunchMojo.java deleted file mode 100644 index 55b0a51b7f..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/maven/maven-tuscany-plugin/src/main/java/org/apache/tuscany/maven/plugin/TuscanyLaunchMojo.java +++ /dev/null @@ -1,108 +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 org.apache.tuscany.maven.plugin; - -import java.util.ArrayList; -import java.util.List; -import java.util.StringTokenizer; - -import org.apache.maven.plugin.AbstractMojo; -import org.apache.maven.plugin.MojoExecutionException; -import org.apache.maven.plugin.MojoFailureException; -import org.apache.maven.plugin.logging.Log; -import org.apache.tuscany.sca.domain.node.DomainNode; - -/** - * Maven Mojo to launch a Tuscany runtime - * Invoked with mvn org.apache.tuscany.maven.plugin:maven-tuscany-plugin:launch [-Ddomain=tribes:myDomain] -Dcontributions=path\to\scacontribution - * - * @goal launch - * @requiresProject false - * @requiresDependencyResolution runtime - */ -public class TuscanyLaunchMojo extends AbstractMojo { - - /** - * @parameter expression="${domain}" default-value="vm:default" - */ - private String domain; - - /** - * @parameter expression="${contributions}" - */ - private String contributions; - - public void execute() throws MojoExecutionException, MojoFailureException { - - if (contributions == null) { - getLog().info("Missing contributions parameter"); - getLog().info(" use -Dcontributions="); - return; - } - - getLog().info("Launching Tuscany Runtime..."); - - List cs = new ArrayList(); - StringTokenizer st = new StringTokenizer(contributions, ","); - while (st.hasMoreTokens()) { - cs.add(st.nextToken()); - } - - DomainNode domainNode = new DomainNode(domain, cs.toArray(new String[cs.size()])); - - waitForShutdown(domainNode, getLog()); - - } - - protected void waitForShutdown(DomainNode domainNode, Log log) { - Runtime.getRuntime().addShutdownHook(new ShutdownThread(domainNode, log)); - synchronized (this) { - try { - log.info("Ctrl-C to end..."); - this.wait(); - } catch (InterruptedException e) { - log.error(e); - } - } - } - - protected static class ShutdownThread extends Thread { - - private DomainNode domainNode; - private Log log; - - public ShutdownThread(DomainNode domainNode, Log log) { - super(); - this.domainNode = domainNode; - this.log = log; - } - - @Override - public void run() { - try { - - log.info("Stopping Tuscany Runtime..."); - domainNode.stop(); - - } catch (Exception e) { - log.error(e); - } - } - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/maven/maven-tuscany-plugin/src/main/java/org/apache/tuscany/maven/plugin/TuscanyRunMojo.java b/sca-java-2.x/tags/2.0-M5-RC3/maven/maven-tuscany-plugin/src/main/java/org/apache/tuscany/maven/plugin/TuscanyRunMojo.java deleted file mode 100644 index edb7e0f0de..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/maven/maven-tuscany-plugin/src/main/java/org/apache/tuscany/maven/plugin/TuscanyRunMojo.java +++ /dev/null @@ -1,188 +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 org.apache.tuscany.maven.plugin; - -import java.io.File; -import java.net.MalformedURLException; -import java.util.ArrayList; -import java.util.List; - -import org.apache.maven.artifact.Artifact; -import org.apache.maven.plugin.AbstractMojo; -import org.apache.maven.plugin.MojoExecutionException; -import org.apache.maven.plugin.MojoFailureException; -import org.apache.maven.plugin.logging.Log; -import org.apache.maven.project.MavenProject; -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; - -/** - * Maven Mojo to run the SCA contribution project in Tuscany. - * Invoked with "mvn tuscany:run" - * - * @goal run - * @requiresDependencyResolution runtime - * @execute phase="package" - * @description Runs Tuscany directly from a SCA conribution maven project - */ -public class TuscanyRunMojo extends AbstractMojo { - - /** - * The maven project. - * - * @parameter expression="${project}" - * @required - * @readonly - */ - private MavenProject project; - - /** - * The project artifactId. - * - * @parameter expression="${project.artifactId}" - * @required - */ - protected String artifactId; - - /** - * The project packaging. - * - * @parameter expression=".${project.packaging}" - * @required - */ - protected String packaging; - - /** - * The project build output directory - * - * @parameter expression="${project.build.outputDirectory}" - * @required - */ - protected File buildDirectory; - - /** - * The project build output directory - * - * @parameter expression="${project.build.finalName}" - * @required - */ - protected File finalName; - - /** - * @parameter expression="${config}" default-value="uri:default" - */ - private String config; - /** - * @parameter expression="${contributions}" - */ - private String[] contributions; - - public void execute() throws MojoExecutionException, MojoFailureException { - getLog().info("Starting Tuscany Runtime..."); - - List contributionList = new ArrayList(); - - addProjectContribution(contributionList); - - addAdditionalContributions(contributionList); - - Node node = NodeFactory.newInstance(config).createNode((String)null, contributionList.toArray(new String[contributionList.size()])).start(); - - waitForShutdown(node, getLog()); - } - - private void addAdditionalContributions(List contributionList) throws MojoExecutionException { - if (contributions != null) { - for (String s : contributions) { - if (new File(s).exists()) { - contributionList.add(s); - } else { - boolean found = false; - for (Object o : project.getDependencyArtifacts()) { - Artifact a = (Artifact) o; - if (a.getId().startsWith(s)) { - try { - contributionList.add(a.getFile().toURI().toURL().toString()); - } catch (MalformedURLException e) { - throw new MojoExecutionException("", e); - } - found = true; - break; - } - } - if (!found) { - throw new IllegalArgumentException("Contribution not found as file or dependency: " + s); - } - } - } - } - } - - protected void addProjectContribution(List cs) throws MojoExecutionException { - try { - - File contributionFile = new File(buildDirectory.getParent(), finalName.getName()); - if (!contributionFile.exists()) { - contributionFile = new File(buildDirectory.getParent(), finalName.getName() + packaging); - } - String contribution = contributionFile.toURI().toURL().toString(); - getLog().info("Project contribution: " + contribution); - cs.add(contribution); - - } catch (MalformedURLException e) { - throw new MojoExecutionException("", e); - } - } - - protected void waitForShutdown(Node node, Log log) { - Runtime.getRuntime().addShutdownHook(new ShutdownThread(node, log)); - synchronized (this) { - try { - log.info("Ctrl-C to end..."); - this.wait(); - } catch (InterruptedException e) { - log.error(e); - } - } - } - - protected static class ShutdownThread extends Thread { - - private Node node; - private Log log; - - public ShutdownThread(Node node, Log log) { - super(); - this.node = node; - this.log = log; - } - - @Override - public void run() { - try { - - log.info("Stopping Tuscany Runtime..."); - node.stop(); - - } catch (Exception e) { - log.error(e); - } - } - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/LICENSE b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/LICENSE deleted file mode 100644 index 8aa906c321..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/LICENSE +++ /dev/null @@ -1,205 +0,0 @@ - - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright [yyyy] [name of copyright owner] - - Licensed 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. - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/META-INF/MANIFEST.MF b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/META-INF/MANIFEST.MF deleted file mode 100644 index 57e693005b..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/META-INF/MANIFEST.MF +++ /dev/null @@ -1,70 +0,0 @@ -Manifest-Version: 1.0 -Export-Package: org.apache.tuscany.sca.assembly.xml;version="2.0.0"; - uses:="org.apache.tuscany.sca.assembly, - javax.xml.parsers, - org.apache.tuscany.sca.core, - org.apache.tuscany.sca.contribution, - org.apache.tuscany.sca.monitor, - org.apache.tuscany.sca.policy, - org.apache.tuscany.sca.interfacedef, - org.w3c.dom, - javax.xml.namespace, - javax.xml.stream, - org.apache.tuscany.sca.contribution.resolver, - org.apache.tuscany.sca.contribution.processor", - org.apache.tuscany.sca.definitions.xml;version="2.0.0"; - uses:="javax.xml.stream, - org.apache.tuscany.sca.contribution.resolver, - org.apache.tuscany.sca.definitions, - org.apache.tuscany.sca.contribution.processor, - org.apache.tuscany.sca.core, - org.apache.tuscany.sca.monitor, - javax.xml.namespace", - org.apache.tuscany.sca.policy.xml;version="2.0.0"; - uses:="javax.xml.xpath, - javax.xml.stream, - org.apache.tuscany.sca.contribution.resolver, - org.apache.tuscany.sca.contribution.processor, - org.apache.tuscany.sca.core, - org.apache.tuscany.sca.policy, - org.apache.tuscany.sca.monitor, - javax.xml.namespace" -SCA-Version: 1.1 -Bundle-Name: Apache Tuscany SCA XML Assembly Model -Bundle-Vendor: The Apache Software Foundation -Bundle-Version: 2.0.0 -Bundle-ManifestVersion: 2 -Bundle-License: http://www.apache.org/licenses/LICENSE-2.0.txt -Bundle-Description: Apache Tuscany SCA XML Assembly Model -Import-Package: javax.xml.namespace, - javax.xml.parsers, - javax.xml.stream, - javax.xml.transform, - javax.xml.transform.dom, - javax.xml.transform.stream, - javax.xml.validation;resolution:=optional, - javax.xml.xpath, - org.apache.tuscany.sca.assembly;version="2.0.0", - org.apache.tuscany.sca.assembly.xml;version="2.0.0", - org.apache.tuscany.sca.common.java.io;version="2.0.0", - org.apache.tuscany.sca.common.xml.xpath;version="2.0.0", - org.apache.tuscany.sca.contribution;version="2.0.0", - org.apache.tuscany.sca.contribution.java;version="2.0.0", - org.apache.tuscany.sca.contribution.namespace;version="2.0.0", - org.apache.tuscany.sca.contribution.processor;version="2.0.0", - org.apache.tuscany.sca.contribution.resolver;version="2.0.0", - org.apache.tuscany.sca.core;version="2.0.0", - org.apache.tuscany.sca.definitions;version="2.0.0", - org.apache.tuscany.sca.definitions.util;version="2.0.0", - org.apache.tuscany.sca.definitions.xml;version="2.0.0", - org.apache.tuscany.sca.extensibility;version="2.0.0", - org.apache.tuscany.sca.interfacedef;version="2.0.0", - org.apache.tuscany.sca.interfacedef.impl;version="2.0.0", - org.apache.tuscany.sca.monitor;version="2.0.0", - org.apache.tuscany.sca.policy;version="2.0.0", - org.apache.tuscany.sca.xsd;version="2.0.0", - org.w3c.dom, - org.xml.sax;resolution:=optional -Bundle-SymbolicName: org.apache.tuscany.sca.assembly.xml -Bundle-DocURL: http://www.apache.org/ -Bundle-RequiredExecutionEnvironment: J2SE-1.5,JavaSE-1.6 diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/NOTICE b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/NOTICE deleted file mode 100644 index ad2ba40961..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/NOTICE +++ /dev/null @@ -1,6 +0,0 @@ -${pom.name} -Copyright (c) 2005 - 2010 The Apache Software Foundation - -This product includes software developed by -The Apache Software Foundation (http://www.apache.org/). - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/pom.xml deleted file mode 100644 index 897f90d1b0..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/pom.xml +++ /dev/null @@ -1,88 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-modules - 2.0-M5 - ../pom.xml - - tuscany-assembly-xml - Apache Tuscany SCA Assembly XML Model - - - - org.apache.tuscany.sca - tuscany-assembly - 2.0-M5 - - - - org.apache.tuscany.sca - tuscany-contribution - 2.0-M5 - - - - org.apache.tuscany.sca - tuscany-xsd - 2.0-M5 - - - - - - org.apache.geronimo.specs - geronimo-stax-api_1.0_spec - 1.0.1 - compile - - - - org.codehaus.woodstox - wstx-asl - 3.2.4 - runtime - - - stax - stax-api - - - - - - org.apache.tuscany.sca - tuscany-assembly-xsd - 2.0-M5 - runtime - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/assembly/xml/BaseAssemblyProcessor.java b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/assembly/xml/BaseAssemblyProcessor.java deleted file mode 100644 index 1b64c9aa33..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/assembly/xml/BaseAssemblyProcessor.java +++ /dev/null @@ -1,782 +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 org.apache.tuscany.sca.assembly.xml; - -import static javax.xml.XMLConstants.W3C_XML_SCHEMA_INSTANCE_NS_URI; -import static javax.xml.XMLConstants.XMLNS_ATTRIBUTE_NS_URI; -import static javax.xml.stream.XMLStreamConstants.CDATA; -import static javax.xml.stream.XMLStreamConstants.CHARACTERS; -import static javax.xml.stream.XMLStreamConstants.COMMENT; -import static javax.xml.stream.XMLStreamConstants.END_ELEMENT; -import static javax.xml.stream.XMLStreamConstants.START_ELEMENT; -import static org.apache.tuscany.sca.assembly.xml.Constants.ELEMENT; -import static org.apache.tuscany.sca.assembly.xml.Constants.MANY; -import static org.apache.tuscany.sca.assembly.xml.Constants.MULTIPLICITY; -import static org.apache.tuscany.sca.assembly.xml.Constants.MUST_SUPPLY; -import static org.apache.tuscany.sca.assembly.xml.Constants.NAME; -import static org.apache.tuscany.sca.assembly.xml.Constants.ONE_N; -import static org.apache.tuscany.sca.assembly.xml.Constants.ONE_ONE; -import static org.apache.tuscany.sca.assembly.xml.Constants.PROPERTY; -import static org.apache.tuscany.sca.assembly.xml.Constants.PROPERTY_QNAME; -import static org.apache.tuscany.sca.assembly.xml.Constants.SCA11_NS; -import static org.apache.tuscany.sca.assembly.xml.Constants.TARGET; -import static org.apache.tuscany.sca.assembly.xml.Constants.TYPE; -import static org.apache.tuscany.sca.assembly.xml.Constants.VALUE; -import static org.apache.tuscany.sca.assembly.xml.Constants.VALUE_QNAME; -import static org.apache.tuscany.sca.assembly.xml.Constants.ZERO_N; -import static org.apache.tuscany.sca.assembly.xml.Constants.ZERO_ONE; - -import java.util.ArrayList; -import java.util.List; -import java.util.StringTokenizer; - -import javax.xml.namespace.QName; -import javax.xml.parsers.DocumentBuilderFactory; -import javax.xml.parsers.ParserConfigurationException; -import javax.xml.stream.XMLInputFactory; -import javax.xml.stream.XMLStreamConstants; -import javax.xml.stream.XMLStreamException; -import javax.xml.stream.XMLStreamReader; -import javax.xml.stream.XMLStreamWriter; -import javax.xml.transform.dom.DOMSource; - -import org.apache.tuscany.sca.assembly.AbstractContract; -import org.apache.tuscany.sca.assembly.AbstractProperty; -import org.apache.tuscany.sca.assembly.AbstractReference; -import org.apache.tuscany.sca.assembly.AssemblyFactory; -import org.apache.tuscany.sca.assembly.Base; -import org.apache.tuscany.sca.assembly.Binding; -import org.apache.tuscany.sca.assembly.Component; -import org.apache.tuscany.sca.assembly.ComponentService; -import org.apache.tuscany.sca.assembly.Composite; -import org.apache.tuscany.sca.assembly.Contract; -import org.apache.tuscany.sca.assembly.Extensible; -import org.apache.tuscany.sca.assembly.Implementation; -import org.apache.tuscany.sca.assembly.Multiplicity; -import org.apache.tuscany.sca.assembly.Reference; -import org.apache.tuscany.sca.assembly.Service; -import org.apache.tuscany.sca.contribution.processor.BaseStAXArtifactProcessor; -import org.apache.tuscany.sca.contribution.processor.ContributionReadException; -import org.apache.tuscany.sca.contribution.processor.ContributionResolveException; -import org.apache.tuscany.sca.contribution.processor.ProcessorContext; -import org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessor; -import org.apache.tuscany.sca.contribution.processor.StAXAttributeProcessor; -import org.apache.tuscany.sca.contribution.resolver.ModelResolver; -import org.apache.tuscany.sca.core.FactoryExtensionPoint; -import org.apache.tuscany.sca.interfacedef.InterfaceContract; -import org.apache.tuscany.sca.monitor.Monitor; -import org.apache.tuscany.sca.monitor.Problem; -import org.apache.tuscany.sca.monitor.Problem.Severity; -import org.apache.tuscany.sca.policy.Intent; -import org.apache.tuscany.sca.policy.PolicyFactory; -import org.apache.tuscany.sca.policy.PolicySet; -import org.w3c.dom.Document; -import org.w3c.dom.Element; -import org.w3c.dom.NamedNodeMap; -import org.w3c.dom.Node; -import org.w3c.dom.NodeList; - -/** - * A base class with utility methods for the other artifact processors in this module. - * - * @version $Rev$ $Date$ - */ -abstract class BaseAssemblyProcessor extends BaseStAXArtifactProcessor { - - protected AssemblyFactory assemblyFactory; - protected PolicyFactory policyFactory; - protected StAXArtifactProcessor extensionProcessor; - protected PolicySubjectProcessor policyProcessor; - private DocumentBuilderFactory documentBuilderFactory; - - - /** - * Constructs a new BaseArtifactProcessor. - * @param assemblyFactory - * @param policyFactory - */ - @SuppressWarnings("unchecked") - protected BaseAssemblyProcessor(AssemblyFactory assemblyFactory, - PolicyFactory policyFactory, - DocumentBuilderFactory documentBuilderFactory, - StAXArtifactProcessor extensionProcessor) { - this.assemblyFactory = assemblyFactory; - this.policyFactory = policyFactory; - this.documentBuilderFactory = documentBuilderFactory; - this.extensionProcessor = (StAXArtifactProcessor)extensionProcessor; - this.policyProcessor = new PolicySubjectProcessor(policyFactory); - } - - /** - * @param modelFactories - * @param staxProcessor - * @param monitor - */ - protected BaseAssemblyProcessor(FactoryExtensionPoint modelFactories, - StAXArtifactProcessor staxProcessor) { - this.assemblyFactory = modelFactories.getFactory(AssemblyFactory.class); - this.policyFactory = modelFactories.getFactory(PolicyFactory.class); - this.documentBuilderFactory = modelFactories.getFactory(DocumentBuilderFactory.class); - this.extensionProcessor = (StAXArtifactProcessor)staxProcessor; - this.policyProcessor = new PolicySubjectProcessor(policyFactory); - } - - /** - * Marshals warnings into the monitor - * - * @param message - * @param model - * @param messageParameters - */ - protected void warning(Monitor monitor, String message, Object model, Object... messageParameters) { - if (monitor != null) { - Problem problem = - monitor.createProblem(this.getClass().getName(), - Messages.RESOURCE_BUNDLE, - Severity.WARNING, - model, - message, - (Object[])messageParameters); - monitor.problem(problem); - } - } - - /** - * Marshals errors into the monitor - * - * @param problems - * @param message - * @param model - */ - protected void error(Monitor monitor, String message, Object model, Object... messageParameters) { - if (monitor != null) { - Problem problem = - monitor.createProblem(this.getClass().getName(), - Messages.RESOURCE_BUNDLE, - Severity.ERROR, - model, - message, - (Object[])messageParameters); - monitor.problem(problem); - } - } - - /** - * Marshals exceptions into the monitor - * - * @param problems - * @param message - * @param model - */ - protected void error(Monitor monitor, String message, Object model, Exception ex) { - if (monitor != null) { - Problem problem = - monitor.createProblem(this.getClass().getName(), - Messages.RESOURCE_BUNDLE, - Severity.ERROR, - model, - message, - ex); - monitor.problem(problem); - } - } - - /** - * Start an element. - * @param writer - * @param name - * @param attrs - * @throws XMLStreamException - */ - protected void writeStart(XMLStreamWriter writer, String name, XAttr... attrs) throws XMLStreamException { - super.writeStart(writer, SCA11_NS, name, attrs); - } - - /** - * Start a document. - * @param writer - * @throws XMLStreamException - */ - protected void writeStartDocument(XMLStreamWriter writer, String name, XAttr... attrs) throws XMLStreamException { - super.writeStartDocument(writer, SCA11_NS, name, attrs); - } - - /** - * Read list of reference targets - * @param reference - * @param reader - */ - protected void readTargets(Reference reference, XMLStreamReader reader) { - String value = getString(reader, TARGET); - ComponentService target = null; - if (value != null) { - for (StringTokenizer tokens = new StringTokenizer(value); tokens.hasMoreTokens();) { - target = assemblyFactory.createComponentService(); - target.setUnresolved(true); - target.setName(tokens.nextToken()); - reference.getTargets().add(target); - } - } - } - - /** - * Write a list of targets into an attribute - * @param reference - * @return - */ - protected XAttr writeTargets(Reference reference) { - List targets = new ArrayList(); - for (Service target : reference.getTargets()) { - targets.add(target.getName()); - } - return new XAttr(TARGET, targets); - } - - /** - * Read a multiplicity attribute. - * @param reference - * @param reader - */ - protected void readMultiplicity(AbstractReference reference, XMLStreamReader reader) { - String value = reader.getAttributeValue(null, MULTIPLICITY); - if (ZERO_ONE.equals(value)) { - reference.setMultiplicity(Multiplicity.ZERO_ONE); - } else if (ONE_N.equals(value)) { - reference.setMultiplicity(Multiplicity.ONE_N); - } else if (ZERO_N.equals(value)) { - reference.setMultiplicity(Multiplicity.ZERO_N); - } else if (ONE_ONE.equals(value)) { - reference.setMultiplicity(Multiplicity.ONE_ONE); - } - } - - protected XAttr writeMultiplicity(AbstractReference reference) { - Multiplicity multiplicity = reference.getMultiplicity(); - if (multiplicity != null) { - String value = null; - if (Multiplicity.ZERO_ONE.equals(multiplicity)) { - value = ZERO_ONE; - } else if (Multiplicity.ONE_N.equals(multiplicity)) { - value = ONE_N; - } else if (Multiplicity.ZERO_N.equals(multiplicity)) { - value = ZERO_N; - } else if (Multiplicity.ONE_ONE.equals(multiplicity)) { - value = ONE_ONE; - return null; - } - return new XAttr(MULTIPLICITY, value); - } - return null; - } - - - /** - * Reads an abstract property element. - * @param property - * @param reader - * @param context TODO - * @throws XMLStreamException - * @throws ContributionReadException - */ - protected void readAbstractProperty(AbstractProperty property, XMLStreamReader reader, ProcessorContext context) throws XMLStreamException, - ContributionReadException { - - property.setName(getString(reader, NAME)); - property.setMany(getBoolean(reader, MANY)); - property.setMustSupply(getBoolean(reader, MUST_SUPPLY)); - property.setXSDElement(getQName(reader, ELEMENT)); - property.setXSDType(getQName(reader, TYPE)); - // MJE added 14/05/2009 - check for both @element and @type being present - disallowed by OASIS Assembly spec - if( property.getXSDElement() != null && property.getXSDType() != null ) { - ContributionReadException ce = new ContributionReadException("[ASM40010,ASM60040] Error: property has both @type and @element attribute values - " + - property.getName()); - error(context.getMonitor(), "ContributionReadException", property, ce); - } // end if - - } - - /** - * Resolve an implementation. - * @param implementation - * @param resolver - * @param context - * @return - * @throws ContributionResolveException - */ - protected Implementation resolveImplementation(Implementation implementation, ModelResolver resolver, ProcessorContext context) - throws ContributionResolveException { - if (implementation != null) { - if (implementation.isUnresolved()) { - implementation = resolver.resolveModel(Implementation.class, implementation, context); - - // Lazily resolve implementations - if (implementation.isUnresolved()) { - extensionProcessor.resolve(implementation, resolver, context); - if (!implementation.isUnresolved()) { - resolver.addModel(implementation, context); - } - } - } - } - return implementation; - } - - /** - * Resolve interface, callback interface and bindings on a list of contracts. - * @param contracts the list of contracts - * @param resolver the resolver to use to resolve models - * @param context TODO - */ - protected void resolveContracts(List contracts, ModelResolver resolver, ProcessorContext context) - throws ContributionResolveException { - resolveContracts(null, contracts, resolver, context); - } - - /** - * Resolve interface, callback interface and bindings on a list of contracts. - * @param parent element for the contracts - * @param contracts the list of contracts - * @param resolver the resolver to use to resolve models - * @param context TODO - */ - protected void resolveContracts(Base parent, List contracts, ModelResolver resolver, ProcessorContext context) - throws ContributionResolveException { - - String parentName = - (parent instanceof Composite) ? ((Composite)parent).getName().toString() : (parent instanceof Component) - ? ((Component)parent).getName() : "UNKNOWN"; - - for (Contract contract : contracts) { - // Resolve the interface contract - InterfaceContract interfaceContract = contract.getInterfaceContract(); - if (interfaceContract != null) { - extensionProcessor.resolve(interfaceContract, resolver, context); - } - - // Resolve bindings - for (int i = 0, n = contract.getBindings().size(); i < n; i++) { - Binding binding = contract.getBindings().get(i); - extensionProcessor.resolve(binding, resolver, context); - - } - - // Resolve callback bindings - if (contract.getCallback() != null) { - - for (int i = 0, n = contract.getCallback().getBindings().size(); i < n; i++) { - Binding binding = contract.getCallback().getBindings().get(i); - extensionProcessor.resolve(binding, resolver, context); - } - } - } - } - - /** - * Resolve interface and callback interface on a list of abstract contracts. - * @param contracts the list of contracts - * @param resolver the resolver to use to resolve models - * @param context TODO - */ - protected void resolveAbstractContracts(List contracts, ModelResolver resolver, ProcessorContext context) - throws ContributionResolveException { - for (AbstractContract contract : contracts) { - - // Resolve the interface contract - InterfaceContract interfaceContract = contract.getInterfaceContract(); - if (interfaceContract != null) { - extensionProcessor.resolve(interfaceContract, resolver, context); - } - } - } - - /** - * Read a property value into a DOM document. - * @param element - * @param type - * @param reader - * @param context TODO - * @return - * @throws XMLStreamException - * @throws ContributionReadException - * @throws ParserConfigurationException - */ - protected Document readPropertyValue(QName element, QName type, boolean isMany, XMLStreamReader reader, ProcessorContext context) throws XMLStreamException, - ContributionReadException { - Document document; - try { - if (documentBuilderFactory == null) { - documentBuilderFactory = DocumentBuilderFactory.newInstance(); - documentBuilderFactory.setNamespaceAware(true); - } - document = documentBuilderFactory.newDocumentBuilder().newDocument(); - } catch (ParserConfigurationException e) { - ContributionReadException ce = new ContributionReadException(e); - error(context.getMonitor(), "ContributionReadException", documentBuilderFactory, ce); - throw ce; - } - - // Collect the property values as elements under the - Element root = document.createElementNS(SCA11_NS, "sca:" + PROPERTY); - String nameAttr = getString(reader, NAME); - if (nameAttr != null) { - root.setAttributeNS(SCA11_NS, "sca:" + NAME, nameAttr); - } - declareNamespace(root, "sca", SCA11_NS); - if (type != null) { - org.w3c.dom.Attr xsi = document.createAttributeNS(XMLNS_ATTRIBUTE_NS_URI, "xmlns:xsi"); - xsi.setValue(W3C_XML_SCHEMA_INSTANCE_NS_URI); - root.setAttributeNodeNS(xsi); - - String prefix = type.getPrefix(); - if (prefix == null || prefix.length() == 0) { - prefix = "ns"; - } - - declareNamespace(root, prefix, type.getNamespaceURI()); - - org.w3c.dom.Attr xsiType = document.createAttributeNS(W3C_XML_SCHEMA_INSTANCE_NS_URI, "xsi:type"); - xsiType.setValue(prefix + ":" + type.getLocalPart()); - root.setAttributeNodeNS(xsiType); - } - document.appendChild(root); - - // Start to parse the property - QName name = reader.getName(); // Should be sca:property - - // SCA 1.1 supports the @value for simple types - String valueAttr = getString(reader, VALUE); - if (valueAttr != null) { - Element valueElement = document.createElementNS(SCA11_NS, VALUE); - root.appendChild(valueElement); - valueElement.setTextContent(valueAttr); - } - - boolean gotOneValue = false; - boolean isTextForProperty = true; - StringBuffer text = new StringBuffer(); - - int event = reader.getEventType(); - while (true) { - switch (event) { - case START_ELEMENT: - name = reader.getName(); - if (PROPERTY_QNAME.equals(name)) { - isTextForProperty = true; - break; - } - isTextForProperty = false; - - // CONFORMANCE: ASM50033 - // A property subelement MUST NOT be used when the @value attribute is used - // to specify the value for that property. - if (valueAttr != null) { - error(context.getMonitor(), "ASM50033: value attribute exists for the property element", name, name); - } - // Read - if (VALUE_QNAME.equals(name)) { - if (gotOneValue && !isMany) { - // TODO: TUSCANY-3231 this should be error not warning but that breaks OASIS tests - warning(context.getMonitor(), "ASM50032: multiple value elements for single-valued property", name, name); - } - loadElement(reader, root); - gotOneValue = true; - } else { - // Global elements - loadElement(reader, root); - } - break; - case XMLStreamConstants.CHARACTERS: - case XMLStreamConstants.CDATA: - if (isTextForProperty) { - text.append(reader.getText()); - } - break; - case END_ELEMENT: - name = reader.getName(); - if (PROPERTY_QNAME.equals(name)) { - - if (root.getChildNodes().getLength() == 0) { - // Add an text as an - if (isTextForProperty){ - if (text.length() > 0) { - Element valueElement = document.createElementNS(SCA11_NS, VALUE); - root.appendChild(valueElement); - valueElement.setTextContent(text.toString()); - } - } - } - return document; - } - break; - } - if (reader.hasNext()) { - event = reader.next(); - } else { - break; - } - } - return document; - } - - /** - * Create a DOM element - * @param document - * @param name - * @return - */ - private Element createElement(Document document, QName name) { - String prefix = name.getPrefix(); - String qname = - (prefix != null && prefix.length() > 0) ? prefix + ":" + name.getLocalPart() : name.getLocalPart(); - return document.createElementNS(name.getNamespaceURI(), qname); - } - - /** - * Declare a namespace. - * @param element - * @param prefix - * @param ns - */ - private void declareNamespace(Element element, String prefix, String ns) { - if (ns == null) { - ns = ""; - } - if (prefix == null) { - prefix = ""; - } - String qname = null; - if ("".equals(prefix)) { - qname = "xmlns"; - } else { - qname = "xmlns:" + prefix; - } - Node node = element; - boolean declared = false; - while (node != null && node.getNodeType() == Node.ELEMENT_NODE) { - NamedNodeMap attrs = node.getAttributes(); - if (attrs == null) { - break; - } - Node attr = attrs.getNamedItem(qname); - if (attr != null) { - declared = ns.equals(attr.getNodeValue()); - break; - } - node = node.getParentNode(); - } - if (!declared) { - org.w3c.dom.Attr attr = element.getOwnerDocument().createAttributeNS(XMLNS_ATTRIBUTE_NS_URI, qname); - attr.setValue(ns); - element.setAttributeNodeNS(attr); - } - } - - /** - * Load a property value specification from an StAX stream into a DOM - * Document. Only elements, text and attributes are processed; all comments - * and other whitespace are ignored. - * - * @param reader the stream to read from - * @param root the DOM node to load - * @throws javax.xml.stream.XMLStreamException - */ - private void loadElement(XMLStreamReader reader, Element root) throws XMLStreamException { - Document document = root.getOwnerDocument(); - Node current = root; - while (true) { - switch (reader.getEventType()) { - case START_ELEMENT: - QName name = reader.getName(); - Element child = createElement(document, name); - - // push the new element and make it the current one - current.appendChild(child); - current = child; - - int count = reader.getNamespaceCount(); - for (int i = 0; i < count; i++) { - String prefix = reader.getNamespacePrefix(i); - String ns = reader.getNamespaceURI(i); - declareNamespace(child, prefix, ns); - } - - if (!"".equals(name.getNamespaceURI())) { - declareNamespace(child, name.getPrefix(), name.getNamespaceURI()); - } - - // add the attributes for this element - count = reader.getAttributeCount(); - for (int i = 0; i < count; i++) { - String ns = reader.getAttributeNamespace(i); - String prefix = reader.getAttributePrefix(i); - String qname = reader.getAttributeLocalName(i); - String value = reader.getAttributeValue(i); - if (prefix != null && prefix.length() != 0) { - qname = prefix + ":" + qname; - } - child.setAttributeNS(ns, qname, value); - if (ns != null) { - declareNamespace(child, prefix, ns); - } - } - - break; - case CDATA: - current.appendChild(document.createCDATASection(reader.getText())); - break; - case CHARACTERS: - current.appendChild(document.createTextNode(reader.getText())); - break; - case COMMENT: - current.appendChild(document.createComment(reader.getText())); - break; - case END_ELEMENT: - // pop the element off the stack - current = current.getParentNode(); - // if we are back at the root then we are done - if (current == root) { - return; - } - - } - if (reader.hasNext()) { - reader.next(); - } else { - return; - } - } - } - - /** - * Write the value of a property - * @param document - * @param element - * @param type - * @param writer - * @throws XMLStreamException - */ - protected void writePropertyValue(Object propertyValue, QName element, QName type, XMLStreamWriter writer) - throws XMLStreamException { - - if (propertyValue instanceof Document) { - Document document = (Document)propertyValue; - NodeList nodeList = document.getDocumentElement().getChildNodes(); - - for (int item = 0; item < nodeList.getLength(); ++item) { - Node node = nodeList.item(item); - int nodeType = node.getNodeType(); - if (nodeType == Node.ELEMENT_NODE) { - XMLStreamReader reader = XMLInputFactory.newInstance().createXMLStreamReader(new DOMSource(node)); - - while (reader.hasNext()) { - switch (reader.next()) { - case XMLStreamConstants.START_ELEMENT: - QName name = reader.getName(); - writer.writeStartElement(name.getPrefix(), name.getLocalPart(), name.getNamespaceURI()); - - int namespaces = reader.getNamespaceCount(); - for (int i = 0; i < namespaces; i++) { - String prefix = reader.getNamespacePrefix(i); - String ns = reader.getNamespaceURI(i); - writer.writeNamespace(prefix, ns); - } - - if (!"".equals(name.getNamespaceURI())) { - writer.writeNamespace(name.getPrefix(), name.getNamespaceURI()); - } - - // add the attributes for this element - namespaces = reader.getAttributeCount(); - for (int i = 0; i < namespaces; i++) { - String ns = reader.getAttributeNamespace(i); - String prefix = reader.getAttributePrefix(i); - String qname = reader.getAttributeLocalName(i); - String value = reader.getAttributeValue(i); - - writer.writeAttribute(prefix, ns, qname, value); - } - - break; - case XMLStreamConstants.CDATA: - writer.writeCData(reader.getText()); - break; - case XMLStreamConstants.CHARACTERS: - writer.writeCharacters(reader.getText()); - break; - case XMLStreamConstants.END_ELEMENT: - writer.writeEndElement(); - break; - } - } - } else { - writer.writeCharacters(node.getTextContent()); - } - } - } - } - - /** - * - * @param reader - * @param elementName - * @param extensionAttributeProcessor - * @param context TODO - * @param estensibleElement - * @throws ContributionReadException - * @throws XMLStreamException - */ - protected void readExtendedAttributes(XMLStreamReader reader, - QName elementName, - Extensible extensible, - StAXAttributeProcessor extensionAttributeProcessor, - ProcessorContext context) throws ContributionReadException, - XMLStreamException { - super.readExtendedAttributes(reader, extensible, extensionAttributeProcessor, assemblyFactory, context); - } - - - /*protected void validatePolicySets(PolicySubject policySetAttachPoint) - throws ContributionResolveException { - validatePolicySets(policySetAttachPoint, policySetAttachPoint.getApplicablePolicySets()); - } - - - protected void validatePolicySets(PolicySubject policySetAttachPoint, - List applicablePolicySets) throws ContributionResolveException { - //Since the applicablePolicySets in a policySetAttachPoint will already have the - //list of policysets that might ever be applicable to this attachPoint, just check - //if the defined policysets feature in the list of applicable policysets - ExtensionType attachPointType = policySetAttachPoint.getType(); - for ( PolicySet definedPolicySet : policySetAttachPoint.getPolicySets() ) { - if ( !definedPolicySet.isUnresolved() ) { - if ( !applicablePolicySets.contains(definedPolicySet)) { - throw new ContributionResolveException("Policy Set '" + definedPolicySet.getName() - + "' does not apply to binding type " - + attachPointType.getName()); - } - } else { - throw new ContributionResolveException("Policy Set '" + definedPolicySet.getName() - + "' is not defined in this domain "); - - - } - } - }*/ -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/assembly/xml/ComponentTypeDocumentProcessor.java b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/assembly/xml/ComponentTypeDocumentProcessor.java deleted file mode 100644 index b5fe005812..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/assembly/xml/ComponentTypeDocumentProcessor.java +++ /dev/null @@ -1,129 +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 org.apache.tuscany.sca.assembly.xml; - -import java.io.IOException; -import java.io.InputStream; -import java.net.URI; -import java.net.URL; - -import javax.xml.stream.XMLStreamException; -import javax.xml.stream.XMLStreamReader; - -import org.apache.tuscany.sca.assembly.ComponentType; -import org.apache.tuscany.sca.common.java.io.IOHelper; -import org.apache.tuscany.sca.contribution.processor.ContributionReadException; -import org.apache.tuscany.sca.contribution.processor.ContributionResolveException; -import org.apache.tuscany.sca.contribution.processor.ProcessorContext; -import org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessor; -import org.apache.tuscany.sca.contribution.processor.URLArtifactProcessor; -import org.apache.tuscany.sca.contribution.processor.ValidatingXMLInputFactory; -import org.apache.tuscany.sca.contribution.resolver.ModelResolver; -import org.apache.tuscany.sca.core.FactoryExtensionPoint; -import org.apache.tuscany.sca.monitor.Monitor; - -/** - * A componentType processor. - * - * @version $Rev$ $Date$ - */ -public class ComponentTypeDocumentProcessor extends BaseAssemblyProcessor implements URLArtifactProcessor { - private ValidatingXMLInputFactory inputFactory; - - /** - * Constructs a new componentType processor. - * @param modelFactories - * @param staxProcessor - */ - public ComponentTypeDocumentProcessor(FactoryExtensionPoint modelFactories, - StAXArtifactProcessor staxProcessor) { - super(modelFactories, staxProcessor); - this.inputFactory = modelFactories.getFactory(ValidatingXMLInputFactory.class); - } - - public ComponentType read(URL contributionURL, URI uri, URL url, ProcessorContext context) throws ContributionReadException { - InputStream urlStream = null; - Monitor monitor = context.getMonitor(); - try { - - // Create a stream reader - urlStream = IOHelper.openStream(url); - XMLStreamReader reader = inputFactory.createXMLStreamReader(url.toString(), urlStream); - ValidatingXMLInputFactory.setMonitor(reader, monitor); - reader.nextTag(); - - // Reader the componentType model - ComponentType componentType = (ComponentType)extensionProcessor.read(reader, context); - if (componentType != null) { - componentType.setURI(uri.toString()); - } - - // For debugging purposes, write it back to XML -// if (componentType != null) { -// try { -// ByteArrayOutputStream bos = new ByteArrayOutputStream(); -// XMLOutputFactory outputFactory = XMLOutputFactory.newInstance(); -// outputFactory.setProperty(XMLOutputFactory.IS_REPAIRING_NAMESPACES, Boolean.TRUE); -// extensionProcessor.write(componentType, outputFactory.createXMLStreamWriter(bos)); -// Document document = DocumentBuilderFactory.newInstance().newDocumentBuilder().parse(new ByteArrayInputStream(bos.toByteArray())); -// OutputFormat format = new OutputFormat(); -// format.setIndenting(true); -// format.setIndent(2); -// XMLSerializer serializer = new XMLSerializer(System.out, format); -// serializer.serialize(document); -// } catch (Exception e) { -// e.printStackTrace(); -// } -// } - - return componentType; - - } catch (XMLStreamException e) { - ContributionReadException ce = new ContributionReadException(e); - error(monitor, "ContributionReadException", inputFactory, ce); - throw ce; - } catch (IOException e) { - ContributionReadException ce = new ContributionReadException(e); - error(monitor, "ContributionReadException", inputFactory, ce); - throw ce; - } finally { - try { - if (urlStream != null) { - urlStream.close(); - urlStream = null; - } - } catch (IOException ioe) { - //ignore - } - } - } - - public void resolve(ComponentType componentType, ModelResolver resolver, ProcessorContext context) throws ContributionResolveException { - extensionProcessor.resolve(componentType, resolver, context); - } - - public String getArtifactType() { - return ".componentType"; - } - - public Class getModelType() { - return ComponentType.class; - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/assembly/xml/ComponentTypeModelResolver.java b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/assembly/xml/ComponentTypeModelResolver.java deleted file mode 100644 index 9a4a0dc035..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/assembly/xml/ComponentTypeModelResolver.java +++ /dev/null @@ -1,96 +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 org.apache.tuscany.sca.assembly.xml; - -import java.util.HashMap; -import java.util.Map; - -import org.apache.tuscany.sca.assembly.ComponentType; -import org.apache.tuscany.sca.contribution.Contribution; -import org.apache.tuscany.sca.contribution.Import; -import org.apache.tuscany.sca.contribution.java.JavaImport; -import org.apache.tuscany.sca.contribution.processor.ProcessorContext; -import org.apache.tuscany.sca.contribution.resolver.ModelResolver; -import org.apache.tuscany.sca.core.FactoryExtensionPoint; - -/** - * A Model Resolver for ComponentType models. - * - * @version $Rev$ $Date$ - */ -public class ComponentTypeModelResolver implements ModelResolver { - private Contribution contribution; - private Map map = new HashMap(); - - public ComponentTypeModelResolver(Contribution contribution, FactoryExtensionPoint modelFactories) { - this.contribution = contribution; - } - - public void addModel(Object resolved, ProcessorContext context) { - ComponentType componentType = (ComponentType)resolved; - map.put(componentType.getURI(), componentType); - } - - public Object removeModel(Object resolved, ProcessorContext context) { - return map.remove(((ComponentType)resolved).getURI()); - } - - public T resolveModel(Class modelClass, T unresolved, ProcessorContext context) { - - //get componentType artifact URI - String uri = ((ComponentType)unresolved).getURI(); - if (uri == null) { - return (T)unresolved; - } - - //lookup the componentType - ComponentType resolved = (ComponentType) map.get(uri); - if (resolved != null) { - return modelClass.cast(resolved); - } - - //If not found, delegate the resolution to the imports (in this case based on the java imports) - //compute the package name from the componentType URI - if (unresolved instanceof ComponentType) { - //FIXME The core assembly model now depends on java imports to - // resolve componentTypes of all kinds, this is not right at all!!! - int s = uri.lastIndexOf('/'); - if (s != -1) { - String packageName = uri.substring(0, uri.lastIndexOf("/")); - for (Import import_ : this.contribution.getImports()) { - if (import_ instanceof JavaImport) { - JavaImport javaImport = (JavaImport)import_; - //check the import location against the computed package name from the componentType URI - if (javaImport.getPackage().equals(packageName)) { - // Delegate the resolution to the import resolver - resolved = javaImport.getModelResolver().resolveModel(ComponentType.class, (ComponentType)unresolved, context); - if (!resolved.isUnresolved()) { - return modelClass.cast(resolved); - } - } - } - } - } - } - - return (T)unresolved; - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/assembly/xml/ComponentTypeProcessor.java b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/assembly/xml/ComponentTypeProcessor.java deleted file mode 100644 index b402b6e3a3..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/assembly/xml/ComponentTypeProcessor.java +++ /dev/null @@ -1,381 +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 org.apache.tuscany.sca.assembly.xml; - -import static javax.xml.stream.XMLStreamConstants.END_ELEMENT; -import static javax.xml.stream.XMLStreamConstants.START_ELEMENT; -import static org.apache.tuscany.sca.assembly.xml.Constants.CALLBACK; -import static org.apache.tuscany.sca.assembly.xml.Constants.CALLBACK_QNAME; -import static org.apache.tuscany.sca.assembly.xml.Constants.COMPONENT_TYPE; -import static org.apache.tuscany.sca.assembly.xml.Constants.COMPONENT_TYPE_QNAME; -import static org.apache.tuscany.sca.assembly.xml.Constants.ELEMENT; -import static org.apache.tuscany.sca.assembly.xml.Constants.IMPLEMENTATION; -import static org.apache.tuscany.sca.assembly.xml.Constants.MANY; -import static org.apache.tuscany.sca.assembly.xml.Constants.MUST_SUPPLY; -import static org.apache.tuscany.sca.assembly.xml.Constants.NAME; -import static org.apache.tuscany.sca.assembly.xml.Constants.OPERATION_QNAME; -import static org.apache.tuscany.sca.assembly.xml.Constants.PROPERTY; -import static org.apache.tuscany.sca.assembly.xml.Constants.PROPERTY_QNAME; -import static org.apache.tuscany.sca.assembly.xml.Constants.REFERENCE; -import static org.apache.tuscany.sca.assembly.xml.Constants.REFERENCE_QNAME; -import static org.apache.tuscany.sca.assembly.xml.Constants.SERVICE; -import static org.apache.tuscany.sca.assembly.xml.Constants.SERVICE_QNAME; -import static org.apache.tuscany.sca.assembly.xml.Constants.TYPE; -import static org.apache.tuscany.sca.assembly.xml.Constants.EXTENSION; -import static org.apache.tuscany.sca.assembly.xml.Constants.EXTENSION_QNAME; - -import javax.xml.namespace.QName; -import javax.xml.stream.XMLStreamException; -import javax.xml.stream.XMLStreamReader; -import javax.xml.stream.XMLStreamWriter; - -import org.apache.tuscany.sca.assembly.Binding; -import org.apache.tuscany.sca.assembly.Callback; -import org.apache.tuscany.sca.assembly.ComponentType; -import org.apache.tuscany.sca.assembly.Contract; -import org.apache.tuscany.sca.assembly.Extensible; -import org.apache.tuscany.sca.assembly.Property; -import org.apache.tuscany.sca.assembly.Reference; -import org.apache.tuscany.sca.assembly.Service; -import org.apache.tuscany.sca.contribution.processor.ContributionReadException; -import org.apache.tuscany.sca.contribution.processor.ContributionResolveException; -import org.apache.tuscany.sca.contribution.processor.ContributionWriteException; -import org.apache.tuscany.sca.contribution.processor.ProcessorContext; -import org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessor; -import org.apache.tuscany.sca.contribution.processor.StAXAttributeProcessor; -import org.apache.tuscany.sca.contribution.resolver.ModelResolver; -import org.apache.tuscany.sca.core.FactoryExtensionPoint; -import org.apache.tuscany.sca.interfacedef.InterfaceContract; -import org.apache.tuscany.sca.interfacedef.Operation; -import org.apache.tuscany.sca.interfacedef.impl.OperationImpl; -import org.apache.tuscany.sca.policy.PolicySubject; -import org.w3c.dom.Document; - -/** - * A componentType processor. - * - * @version $Rev$ $Date$ - */ -public class ComponentTypeProcessor extends BaseAssemblyProcessor implements StAXArtifactProcessor { - - /** - * Constructs a new componentType processor. - * - * @param modelFactories - * @param extensionProcessor - * @param extensionAttributeProcessor - * @param monitor - */ - public ComponentTypeProcessor(FactoryExtensionPoint modelFactories, - StAXArtifactProcessor extensionProcessor, - StAXAttributeProcessor extensionAttributeProcessor) { - super(modelFactories, extensionProcessor); - } - - public ComponentType read(XMLStreamReader reader, ProcessorContext context) throws ContributionReadException { - ComponentType componentType = null; - Service service = null; - Reference reference = null; - Contract contract = null; - Property property = null; - Callback callback = null; - QName name = null; - - try { - // Read the componentType document - while (reader.hasNext()) { - int event = reader.getEventType(); - switch (event) { - case START_ELEMENT: - name = reader.getName(); - - if (Constants.COMPONENT_TYPE_QNAME.equals(name)) { - - // Read a - componentType = assemblyFactory.createComponentType(); - - } else if (Constants.SERVICE_QNAME.equals(name)) { - - // Read a - service = assemblyFactory.createService(); - contract = service; - service.setName(getString(reader, Constants.NAME)); - componentType.getServices().add(service); - policyProcessor.readPolicies(service, reader); - - } else if (Constants.REFERENCE_QNAME.equals(name)) { - - // Read a - reference = assemblyFactory.createReference(); - contract = reference; - reference.setName(getString(reader, Constants.NAME)); - reference.setWiredByImpl(getBoolean(reader, Constants.WIRED_BY_IMPL)); - readMultiplicity(reference, reader); - readTargets(reference, reader); - componentType.getReferences().add(reference); - policyProcessor.readPolicies(reference, reader); - - } else if (Constants.PROPERTY_QNAME.equals(name)) { - - // Read a - property = assemblyFactory.createProperty(); - readAbstractProperty(property, reader, context); - policyProcessor.readPolicies(property, reader); - - // Read the property value - Document value = readPropertyValue(property.getXSDElement(), property.getXSDType(), property.isMany(), reader, context); - property.setValue(value); - - componentType.getProperties().add(property); - - } else if (Constants.IMPLEMENTATION_QNAME.equals(name)) { - - // Read an element - policyProcessor.readPolicies(componentType, reader); - - } else if (Constants.CALLBACK_QNAME.equals(name)) { - - // Read a - callback = assemblyFactory.createCallback(); - contract.setCallback(callback); - policyProcessor.readPolicies(callback, reader); - - } else if (OPERATION_QNAME.equals(name)) { - - // Read an - Operation operation = new OperationImpl(); - operation.setName(getString(reader, NAME)); - operation.setUnresolved(true); - if (callback != null) { - policyProcessor.readPolicies(callback, operation, reader); - } else { - policyProcessor.readPolicies(contract, operation, reader); - } - } else if(EXTENSION_QNAME.equals(name)) { - // Handle - //ignore element as this is a wrapper for extensibility - break; - } else { - - - // Read an extension element - Object extension = extensionProcessor.read(reader, context); - if (extension != null) { - if (extension instanceof InterfaceContract) { - - // and - contract.setInterfaceContract((InterfaceContract)extension); - - } else if (extension instanceof Binding) { - - // and - if (callback != null) { - callback.getBindings().add((Binding)extension); - } else { - contract.getBindings().add((Binding)extension); - } - } else { - - // Add the extension element to the current element - if (callback != null) { - callback.getExtensions().add(extension); - } else if (contract != null) { - contract.getExtensions().add(extension); - } else if (property != null) { - property.getExtensions().add(extension); - } else { - if (componentType instanceof Extensible) { - ((Extensible)componentType).getExtensions().add(extension); - } - } - } - } - } - break; - - case END_ELEMENT: - name = reader.getName(); - - // Clear current state when reading reaching end element - if (SERVICE_QNAME.equals(name)) { - service = null; - contract = null; - } else if (REFERENCE_QNAME.equals(name)) { - reference = null; - contract = null; - } else if (PROPERTY_QNAME.equals(name)) { - property = null; - } else if (CALLBACK_QNAME.equals(name)) { - callback = null; - } - break; - } - - // Read the next element - if (reader.hasNext()) { - reader.next(); - } - } - } - catch (XMLStreamException e) { - ContributionReadException ex = new ContributionReadException(e); - error(context.getMonitor(), "XMLStreamException", reader, ex); - } - - return componentType; - } - - public void write(ComponentType componentType, XMLStreamWriter writer, ProcessorContext context) throws ContributionWriteException, XMLStreamException { - - // Write element - writeStartDocument(writer, COMPONENT_TYPE); - - // Write elements - for (Service service : componentType.getServices()) { - writeStart(writer, SERVICE, new XAttr(NAME, service.getName()), - policyProcessor.writePolicies(service)); - - if (service.getInterfaceContract() != null) { - extensionProcessor.write(service.getInterfaceContract(), writer, context); - } - - for (Binding binding: service.getBindings()) { - extensionProcessor.write(binding, writer, context); - } - - if (service.getCallback() != null) { - Callback callback = service.getCallback(); - writeStart(writer, CALLBACK, policyProcessor.writePolicies(callback)); - - for (Binding binding: callback.getBindings()) { - extensionProcessor.write(binding, writer, context); - } - for (Object extension: callback.getExtensions()) { - extensionProcessor.write(extension, writer, context); - } - - writeEnd(writer); - } - - this.writeExtendedElements(writer, service, extensionProcessor, context); - - writeEnd(writer); - } - - // Write elements - for (Reference reference : componentType.getReferences()) { - - writeStart(writer, REFERENCE, - new XAttr(NAME, reference.getName()), - writeMultiplicity(reference), - writeTargets(reference), - policyProcessor.writePolicies(reference)); - - extensionProcessor.write(reference.getInterfaceContract(), writer, context); - - for (Binding binding: reference.getBindings()) { - extensionProcessor.write(binding, writer, context); - } - - if (reference.getCallback() != null) { - Callback callback = reference.getCallback(); - writeStart(writer, CALLBACK, - policyProcessor.writePolicies(callback)); - - for (Binding binding: callback.getBindings()) { - extensionProcessor.write(binding, writer, context); - } - for (Object extension: callback.getExtensions()) { - extensionProcessor.write(extension, writer, context); - } - - writeEnd(writer); - } - - this.writeExtendedElements(writer, reference, extensionProcessor, context); - - writeEnd(writer); - } - - // Write elements - for (Property property : componentType.getProperties()) { - writeStart(writer, - PROPERTY, - new XAttr(NAME, property.getName()), - new XAttr(MUST_SUPPLY, property.isMustSupply()), - new XAttr(MANY, property.isMany()), - new XAttr(TYPE, property.getXSDType()), - new XAttr(ELEMENT, property.getXSDElement()), - policyProcessor.writePolicies(property)); - - // Write property value - writePropertyValue(property.getValue(), property.getXSDElement(), property.getXSDType(), writer); - - // Write extensions - for (Object extension : property.getExtensions()) { - extensionProcessor.write(extension, writer, context); - } - - writeEnd(writer); - } - - // Write extension elements - if (componentType instanceof Extensible) { - for (Object extension: ((Extensible)componentType).getExtensions()) { - extensionProcessor.write(extension, writer, context); - } - } - - // Write elements if the componentType has - // any intents or policySets - boolean writeImplementation = false; - if (componentType instanceof PolicySubject) { - if (!((PolicySubject)componentType).getRequiredIntents().isEmpty()) { - writeImplementation = true; - } - } - if (componentType instanceof PolicySubject) { - if (!((PolicySubject)componentType).getPolicySets().isEmpty()) { - writeImplementation = true; - } - } - if (writeImplementation) { - writeStart(writer, IMPLEMENTATION, - policyProcessor.writePolicies(componentType)); - } - - writeEndDocument(writer); - } - - public void resolve(ComponentType componentType, ModelResolver resolver, ProcessorContext context) throws ContributionResolveException { - - // Resolve component type services and references - resolveContracts(componentType.getServices(), resolver, context); - resolveContracts(componentType.getReferences(), resolver, context); - } - - public QName getArtifactType() { - return COMPONENT_TYPE_QNAME; - } - - public Class getModelType() { - return ComponentType.class; - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/assembly/xml/CompositeDocumentProcessor.java b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/assembly/xml/CompositeDocumentProcessor.java deleted file mode 100644 index 5ba42a0dec..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/assembly/xml/CompositeDocumentProcessor.java +++ /dev/null @@ -1,185 +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 org.apache.tuscany.sca.assembly.xml; - -import java.io.IOException; -import java.io.InputStream; -import java.net.URI; -import java.net.URL; - -import javax.xml.stream.XMLStreamException; -import javax.xml.stream.XMLStreamReader; -import javax.xml.stream.XMLStreamConstants; -import javax.xml.transform.stream.StreamSource; - -import org.apache.tuscany.sca.assembly.Composite; -import org.apache.tuscany.sca.common.java.io.IOHelper; -import org.apache.tuscany.sca.contribution.processor.ContributionReadException; -import org.apache.tuscany.sca.contribution.processor.ContributionResolveException; -import org.apache.tuscany.sca.contribution.processor.ProcessorContext; -import org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessor; -import org.apache.tuscany.sca.contribution.processor.URLArtifactProcessor; -import org.apache.tuscany.sca.contribution.processor.ValidatingXMLInputFactory; -import org.apache.tuscany.sca.contribution.resolver.ModelResolver; -import org.apache.tuscany.sca.core.FactoryExtensionPoint; -import org.apache.tuscany.sca.monitor.Monitor; -import org.xml.sax.SAXException; - -/** - * A composite processor. - * - * @version $Rev$ $Date$ - */ -public class CompositeDocumentProcessor extends BaseAssemblyProcessor implements URLArtifactProcessor, - XMLStreamConstants { - private ValidatingXMLInputFactory inputFactory; - - - /** - * Constructs a composite document processor - * @param modelFactories - * @param staxProcessor - * @param monitor - */ - public CompositeDocumentProcessor(FactoryExtensionPoint modelFactories, - StAXArtifactProcessor staxProcessor) { - super(modelFactories, staxProcessor); - this.inputFactory = modelFactories.getFactory(ValidatingXMLInputFactory.class); - } - - /** - * Reads the contents of a Composite document and returns a Composite object - * @param contributionURL - the URL of the contribution containing the Composite - can be null - * @param uri - the URI of the composite document - * @param url - the URL of the composite document - * @return a Composite object built from the supplied Composite document - */ - public Composite read(URL contributionURL, URI uri, URL url, ProcessorContext context) throws ContributionReadException { - if( uri == null || url == null ) { - throw new ContributionReadException("Request to read composite with uri or url NULL"); - } // end if - InputStream scdlStream = null; - - try { - scdlStream = IOHelper.openStream(url); - } catch (IOException e) { - ContributionReadException ce = new ContributionReadException("Exception reading " + uri, e); - error(context.getMonitor(), "ContributionReadException", url, ce); - throw ce; - } - return read(uri, url, scdlStream, context); - } - - public Composite read(URI uri, URL url, InputStream scdlStream, ProcessorContext context) throws ContributionReadException { - try { - - Composite composite = null; - Monitor monitor = context.getMonitor(); - // Tag the monitor with the name of the composite artifact - if( monitor != null ) { - monitor.setArtifactName(uri.toString()); - } //end if - - // Set up a StreamSource for the composite file, since this has an associated URL that - // can be used by the parser to find references to other files such as DTDs - StreamSource scdlSource = new StreamSource( scdlStream, url.toString() ); - XMLStreamReader reader = inputFactory.createXMLStreamReader(scdlSource); - - // set the monitor on the input factory as the standard XMLInputFactory - // methods used for creating readers don't allow for the context to - // be passed in - ValidatingXMLInputFactory.setMonitor(reader, context.getMonitor()); - - // Read the header (i.e. text before the element, if any - readCompositeFileHeader( reader ); - - // Read the composite model - composite = (Composite)extensionProcessor.read(reader, context); - if (composite != null) { - composite.setURI(uri.toString()); - } - - return composite; - - } catch (XMLStreamException e) { - ContributionReadException ce = new ContributionReadException("Exception reading " + uri, e); - error(context.getMonitor(), "ContributionReadException", inputFactory, ce); - throw ce; - } finally { - try { - if (scdlStream != null) { - scdlStream.close(); - scdlStream = null; - } - } catch (IOException ioe) { - //ignore - } - } - } - - /** - * Reads the header portion of a composite file - i.e. the section of the file before the - * start tag - * In particular handle any DTD declarations - * @param reader - an XMLStreamReader which is reading the composite file - * @throws XMLStreamException - */ - private void readCompositeFileHeader( XMLStreamReader reader ) throws XMLStreamException { - - while (true) { - int event = reader.next(); - - if ( event == CHARACTERS - || event == CDATA - || event == SPACE - || event == PROCESSING_INSTRUCTION - || event == COMMENT - || event == DTD - || event == ENTITY_DECLARATION ) { - continue; - } // end if - - // The first start (or end) element terminates the header scan - if (event == START_ELEMENT || event == END_ELEMENT) { - return; - } // end if - } // end while - } // end method readCompositeFileHeader - - public void resolve(Composite composite, ModelResolver resolver, ProcessorContext context) throws ContributionResolveException { - try { - if (composite != null) - extensionProcessor.resolve(composite, resolver, context); - } catch (Throwable e ) { - // Add information about which composite was being processed when the exception occurred - String newMessage = "Processing composite " + composite.getName() + ": " + e.getMessage(); - throw new ContributionResolveException( newMessage, e ); - } // end try - } - - public String getArtifactType() { - return ".composite"; - } - - public Class getModelType() { - return Composite.class; - } - -} // end class diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/assembly/xml/CompositeModelResolver.java b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/assembly/xml/CompositeModelResolver.java deleted file mode 100644 index 7a396fe100..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/assembly/xml/CompositeModelResolver.java +++ /dev/null @@ -1,96 +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 org.apache.tuscany.sca.assembly.xml; - -import java.util.HashMap; -import java.util.Map; - -import javax.xml.namespace.QName; - -import org.apache.tuscany.sca.assembly.Composite; -import org.apache.tuscany.sca.contribution.Contribution; -import org.apache.tuscany.sca.contribution.Import; -import org.apache.tuscany.sca.contribution.namespace.NamespaceImport; -import org.apache.tuscany.sca.contribution.processor.ProcessorContext; -import org.apache.tuscany.sca.contribution.resolver.ModelResolver; -import org.apache.tuscany.sca.core.FactoryExtensionPoint; -import org.apache.tuscany.sca.monitor.Monitor; - -/** - * A Model Resolver for Composite models. - * - * @version $Rev$ $Date$ - */ -public class CompositeModelResolver implements ModelResolver { - - private Contribution contribution; - private Map map = new HashMap(); - - public CompositeModelResolver(Contribution contribution, FactoryExtensionPoint modelFactories) { - this.contribution = contribution; - } - - public void addModel(Object resolved, ProcessorContext context) { - Composite composite = (Composite)resolved; - Composite old = map.put(composite.getName(), composite); - if (old != null) { - Monitor.error(context.getMonitor(), - this, - Messages.RESOURCE_BUNDLE, - "DuplicateCompositeName", - composite.getName().toString(), - contribution.getLocation()); - } - } - - public Object removeModel(Object resolved, ProcessorContext context) { - return map.remove(((Composite)resolved).getName()); - } - - public T resolveModel(Class modelClass, T unresolved, ProcessorContext context) { - - // Lookup a definition for the given namespace - QName qname = ((Composite)unresolved).getName(); - Composite resolved = null; - - // Delegate the resolution to the imports - for (Import import_ : this.contribution.getImports()) { - if (import_ instanceof NamespaceImport) { - NamespaceImport namespaceImport = (NamespaceImport)import_; - if (namespaceImport.getNamespace().equals(qname.getNamespaceURI())) { - - // Delegate the resolution to the import resolver - resolved = namespaceImport.getModelResolver().resolveModel(Composite.class, (Composite)unresolved, context); - if (!resolved.isUnresolved()) { - return modelClass.cast(resolved); - } - } - } - } - - // No definition found, search within the current contribution - resolved = (Composite) map.get(qname); - if (resolved != null) { - return modelClass.cast(resolved); - } - - return (T)unresolved; - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/assembly/xml/CompositeProcessor.java b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/assembly/xml/CompositeProcessor.java deleted file mode 100644 index 2cace7d68d..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/assembly/xml/CompositeProcessor.java +++ /dev/null @@ -1,1118 +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 org.apache.tuscany.sca.assembly.xml; - -import static javax.xml.stream.XMLStreamConstants.END_ELEMENT; -import static javax.xml.stream.XMLStreamConstants.START_ELEMENT; -import static org.apache.tuscany.sca.assembly.xml.Constants.AUTOWIRE; -import static org.apache.tuscany.sca.assembly.xml.Constants.CALLBACK; -import static org.apache.tuscany.sca.assembly.xml.Constants.CALLBACK_QNAME; -import static org.apache.tuscany.sca.assembly.xml.Constants.COMPONENT; -import static org.apache.tuscany.sca.assembly.xml.Constants.COMPONENT_QNAME; -import static org.apache.tuscany.sca.assembly.xml.Constants.COMPOSITE; -import static org.apache.tuscany.sca.assembly.xml.Constants.COMPOSITE_QNAME; -import static org.apache.tuscany.sca.assembly.xml.Constants.ELEMENT; -import static org.apache.tuscany.sca.assembly.xml.Constants.FILE; -import static org.apache.tuscany.sca.assembly.xml.Constants.IMPLEMENTATION_COMPOSITE; -import static org.apache.tuscany.sca.assembly.xml.Constants.IMPLEMENTATION_COMPOSITE_QNAME; -import static org.apache.tuscany.sca.assembly.xml.Constants.INCLUDE; -import static org.apache.tuscany.sca.assembly.xml.Constants.INCLUDE_QNAME; -import static org.apache.tuscany.sca.assembly.xml.Constants.INTENTS; -import static org.apache.tuscany.sca.assembly.xml.Constants.LOCAL; -import static org.apache.tuscany.sca.assembly.xml.Constants.MANY; -import static org.apache.tuscany.sca.assembly.xml.Constants.MUST_SUPPLY; -import static org.apache.tuscany.sca.assembly.xml.Constants.NAME; -import static org.apache.tuscany.sca.assembly.xml.Constants.NONOVERRIDABLE; -import static org.apache.tuscany.sca.assembly.xml.Constants.POLICY_SET_ATTACHMENT_QNAME; -import static org.apache.tuscany.sca.assembly.xml.Constants.PROMOTE; -import static org.apache.tuscany.sca.assembly.xml.Constants.PROPERTY; -import static org.apache.tuscany.sca.assembly.xml.Constants.PROPERTY_QNAME; -import static org.apache.tuscany.sca.assembly.xml.Constants.REFERENCE; -import static org.apache.tuscany.sca.assembly.xml.Constants.REFERENCE_QNAME; -import static org.apache.tuscany.sca.assembly.xml.Constants.REPLACE; -import static org.apache.tuscany.sca.assembly.xml.Constants.REQUIRES_QNAME; -import static org.apache.tuscany.sca.assembly.xml.Constants.SCA11_NS; -import static org.apache.tuscany.sca.assembly.xml.Constants.SERVICE; -import static org.apache.tuscany.sca.assembly.xml.Constants.SERVICE_QNAME; -import static org.apache.tuscany.sca.assembly.xml.Constants.SOURCE; -import static org.apache.tuscany.sca.assembly.xml.Constants.TARGET; -import static org.apache.tuscany.sca.assembly.xml.Constants.TARGET_NAMESPACE; -import static org.apache.tuscany.sca.assembly.xml.Constants.TYPE; -import static org.apache.tuscany.sca.assembly.xml.Constants.URI; -import static org.apache.tuscany.sca.assembly.xml.Constants.WIRE; -import static org.apache.tuscany.sca.assembly.xml.Constants.WIRED_BY_IMPL; -import static org.apache.tuscany.sca.assembly.xml.Constants.WIRE_QNAME; -import static org.apache.tuscany.sca.assembly.xml.Constants.EXTENSION_QNAME; - -import java.util.ArrayList; -import java.util.List; -import java.util.StringTokenizer; - -import javax.xml.namespace.QName; -import javax.xml.stream.XMLStreamConstants; -import javax.xml.stream.XMLStreamException; -import javax.xml.stream.XMLStreamReader; -import javax.xml.stream.XMLStreamWriter; -import javax.xml.xpath.XPathExpressionException; - -import org.apache.tuscany.sca.assembly.Binding; -import org.apache.tuscany.sca.assembly.Callback; -import org.apache.tuscany.sca.assembly.Component; -import org.apache.tuscany.sca.assembly.ComponentProperty; -import org.apache.tuscany.sca.assembly.ComponentReference; -import org.apache.tuscany.sca.assembly.ComponentService; -import org.apache.tuscany.sca.assembly.Composite; -import org.apache.tuscany.sca.assembly.CompositeReference; -import org.apache.tuscany.sca.assembly.CompositeService; -import org.apache.tuscany.sca.assembly.Contract; -import org.apache.tuscany.sca.assembly.Implementation; -import org.apache.tuscany.sca.assembly.Property; -import org.apache.tuscany.sca.assembly.Reference; -import org.apache.tuscany.sca.assembly.Service; -import org.apache.tuscany.sca.assembly.Wire; -import org.apache.tuscany.sca.common.xml.xpath.XPathHelper; -import org.apache.tuscany.sca.contribution.Artifact; -import org.apache.tuscany.sca.contribution.Contribution; -import org.apache.tuscany.sca.contribution.ContributionFactory; -import org.apache.tuscany.sca.contribution.processor.ContributionReadException; -import org.apache.tuscany.sca.contribution.processor.ContributionResolveException; -import org.apache.tuscany.sca.contribution.processor.ContributionWriteException; -import org.apache.tuscany.sca.contribution.processor.ProcessorContext; -import org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessor; -import org.apache.tuscany.sca.contribution.processor.StAXAttributeProcessor; -import org.apache.tuscany.sca.contribution.resolver.ModelResolver; -import org.apache.tuscany.sca.contribution.resolver.ResolverExtension; -import org.apache.tuscany.sca.core.ExtensionPointRegistry; -import org.apache.tuscany.sca.core.FactoryExtensionPoint; -import org.apache.tuscany.sca.interfacedef.InterfaceContract; -import org.apache.tuscany.sca.monitor.Monitor; -import org.apache.tuscany.sca.policy.ExtensionType; -import org.apache.tuscany.sca.policy.Intent; -import org.apache.tuscany.sca.policy.PolicyFactory; -import org.apache.tuscany.sca.policy.PolicySet; -import org.apache.tuscany.sca.policy.PolicySubject; -import org.apache.tuscany.sca.xsd.XSDFactory; -import org.apache.tuscany.sca.xsd.XSDefinition; -import org.w3c.dom.Document; - -/** - * A composite processor. - * - * @version $Rev$ $Date$ - */ -public class CompositeProcessor extends BaseAssemblyProcessor implements StAXArtifactProcessor { - private XPathHelper xpathHelper; - private PolicyFactory intentAttachPointTypeFactory; - private StAXAttributeProcessor extensionAttributeProcessor; - private ContributionFactory contributionFactory; - private XSDFactory xsdFactory; - - /** - * Construct a new composite processor - * - * @param extensionPoints - * @param extensionProcessor - */ - public CompositeProcessor(ExtensionPointRegistry extensionPoints, - StAXArtifactProcessor extensionProcessor, - StAXAttributeProcessor extensionAttributeProcessor) { - - this(modelFactories(extensionPoints), extensionProcessor, extensionAttributeProcessor); - - this.xpathHelper = XPathHelper.getInstance(extensionPoints); - this.extensionAttributeProcessor = extensionAttributeProcessor; - - this.xsdFactory = extensionPoints.getExtensionPoint(XSDFactory.class); - } - - /** - * Constructs a new composite processor - * - * @param modelFactories - * @param extensionProcessor - * @param monitor - */ - private CompositeProcessor(FactoryExtensionPoint modelFactories, - StAXArtifactProcessor extensionProcessor, - StAXAttributeProcessor extensionAttributeProcessor) { - - super(modelFactories, extensionProcessor); - this.intentAttachPointTypeFactory = modelFactories.getFactory(PolicyFactory.class); - this.contributionFactory = modelFactories.getFactory(ContributionFactory.class); - this.extensionAttributeProcessor = extensionAttributeProcessor; - - this.xsdFactory = modelFactories.getFactory(XSDFactory.class); - } - - public Composite read(XMLStreamReader reader, ProcessorContext context) throws ContributionReadException { - Composite composite = null; - Composite include = null; - Component component = null; - Property property = null; - ComponentService componentService = null; - ComponentReference componentReference = null; - ComponentProperty componentProperty = null; - CompositeService compositeService = null; - CompositeReference compositeReference = null; - Contract contract = null; - Wire wire = null; - Callback callback = null; - QName name = null; - Monitor monitor = context.getMonitor(); - try { - // Read the composite document - while (reader.hasNext()) { - int event = reader.getEventType(); - switch (event) { - case START_ELEMENT: - name = reader.getName(); - - if (COMPOSITE_QNAME.equals(name)) { - - // Read a - composite = assemblyFactory.createComposite(); - composite.setSpecVersion(Constants.SCA11_NS); - - composite.setName(new QName(getURIString(reader, TARGET_NAMESPACE), getString(reader, NAME))); - - if (!isSet(reader, TARGET_NAMESPACE)) { - // spec says that a composite must have a namespace - warning(monitor, "NoCompositeNamespace", composite, composite.getName().toString()); - } - - if (isSet(reader, AUTOWIRE)) { - composite.setAutowire(getBoolean(reader, AUTOWIRE)); - } - - //handle extension attributes - this.readExtendedAttributes(reader, name, composite, extensionAttributeProcessor, context); - - composite.setLocal(getBoolean(reader, LOCAL)); - policyProcessor.readPolicies(composite, reader); - - } else if (INCLUDE_QNAME.equals(name)) { - - // Read an - include = assemblyFactory.createComposite(); - include.setName(getQName(reader, NAME)); - include.setURI(getURIString(reader, URI)); - include.setUnresolved(true); - composite.getIncludes().add(include); - - } else if (SERVICE_QNAME.equals(name)) { - if (component != null) { - - // Read a - componentService = assemblyFactory.createComponentService(); - contract = componentService; - componentService.setName(getString(reader, NAME)); - - //handle extension attributes - this.readExtendedAttributes(reader, name, componentService, extensionAttributeProcessor, context); - - component.getServices().add(componentService); - policyProcessor.readPolicies(contract, reader); - } else { - - // Read a - compositeService = assemblyFactory.createCompositeService(); - contract = compositeService; - compositeService.setName(getString(reader, NAME)); - - String promoted = getURIString(reader, PROMOTE); - if (promoted != null) { - String promotedComponentName; - String promotedServiceName; - int s = promoted.indexOf('/'); - if (s == -1) { - promotedComponentName = promoted; - promotedServiceName = null; - } else { - promotedComponentName = promoted.substring(0, s); - promotedServiceName = promoted.substring(s + 1); - } - - Component promotedComponent = assemblyFactory.createComponent(); - promotedComponent.setUnresolved(true); - promotedComponent.setName(promotedComponentName); - compositeService.setPromotedComponent(promotedComponent); - - ComponentService promotedService = assemblyFactory.createComponentService(); - promotedService.setUnresolved(true); - promotedService.setName(promotedServiceName); - compositeService.setPromotedService(promotedService); - } - - //handle extension attributes - this.readExtendedAttributes(reader, name, compositeService, extensionAttributeProcessor, context); - - composite.getServices().add(compositeService); - policyProcessor.readPolicies(contract, reader); - } - - } else if (REFERENCE_QNAME.equals(name)) { - if (component != null) { - // Read a - componentReference = assemblyFactory.createComponentReference(); - contract = componentReference; - componentReference.setName(getString(reader, NAME)); - readMultiplicity(componentReference, reader); - if (isSet(reader, AUTOWIRE)) { - componentReference.setAutowire(getBoolean(reader, AUTOWIRE)); - } - // Read @nonOverridable - String nonOverridable = reader.getAttributeValue(null, NONOVERRIDABLE); - if (nonOverridable != null) { - componentReference.setNonOverridable(Boolean.parseBoolean(nonOverridable)); - } - readTargets(componentReference, reader); - componentReference.setWiredByImpl(getBoolean(reader, WIRED_BY_IMPL)); - - //handle extension attributes - this.readExtendedAttributes(reader, - name, - componentReference, - extensionAttributeProcessor, context); - - component.getReferences().add(componentReference); - policyProcessor.readPolicies(contract, reader); - } else { - // Read a - compositeReference = assemblyFactory.createCompositeReference(); - contract = compositeReference; - compositeReference.setName(getString(reader, NAME)); - readMultiplicity(compositeReference, reader); - readTargets(compositeReference, reader); - String promote = getString(reader, Constants.PROMOTE); - if (promote != null) { - for (StringTokenizer tokens = new StringTokenizer(promote); tokens.hasMoreTokens();) { - String refName = tokens.nextToken(); - Component promotedComponent = assemblyFactory.createComponent(); - int index = refName.indexOf('/'); - if (index == -1) { - error(monitor, "Invalid reference name", compositeReference, refName); - } - String promotedComponentName = refName.substring(0, index); - promotedComponent.setName(promotedComponentName); - promotedComponent.setUnresolved(true); - compositeReference.getPromotedComponents().add(promotedComponent); - ComponentReference promotedReference = - assemblyFactory.createComponentReference(); - promotedReference.setUnresolved(true); - promotedReference.setName(refName); - compositeReference.getPromotedReferences().add(promotedReference); - } - } - compositeReference.setWiredByImpl(getBoolean(reader, WIRED_BY_IMPL)); - - //handle extension attributes - this.readExtendedAttributes(reader, - name, - compositeReference, - extensionAttributeProcessor, context); - - composite.getReferences().add(compositeReference); - policyProcessor.readPolicies(contract, reader); - } - - } else if (PROPERTY_QNAME.equals(name)) { - if (component != null) { - - // Read a - componentProperty = assemblyFactory.createComponentProperty(); - property = componentProperty; - String source = getURIString(reader, SOURCE); - if (source != null) { - source = source.trim(); - } - componentProperty.setSource(source); - if (source != null) { - // $/... - if (source.charAt(0) == '$') { - int index = source.indexOf('/'); - if (index == -1) { - // Tolerating $prop - source = ""; - } else { - source = source.substring(index + 1); - } - if ("".equals(source)) { - source = "."; - } - } - - try { - componentProperty.setSourceXPathExpression(xpathHelper.compile(reader - .getNamespaceContext(), source)); - } catch (XPathExpressionException e) { - ContributionReadException ce = new ContributionReadException(e); - error(monitor, "ContributionReadException", source, ce); - //throw ce; - } - } - componentProperty.setFile(getURIString(reader, FILE)); - - //handle extension attributes - this.readExtendedAttributes(reader, - name, - componentProperty, - extensionAttributeProcessor, context); - - policyProcessor.readPolicies(property, reader); - readAbstractProperty(componentProperty, reader, context); - - // Read the property value - Document value = - readPropertyValue(property.getXSDElement(), property.getXSDType(), property - .isMany(), reader, context); - property.setValue(value); - - component.getProperties().add(componentProperty); - } else { - - // Read a - property = assemblyFactory.createProperty(); - policyProcessor.readPolicies(property, reader); - readAbstractProperty(property, reader, context); - - // Read the property value - Document value = - readPropertyValue(property.getXSDElement(), property.getXSDType(), property - .isMany(), reader, context); - property.setValue(value); - - composite.getProperties().add(property); - } - - // TUSCANY-1949 - // If the property doesn't have a value, the END_ELEMENT event is read by the readPropertyValue - if (reader.getEventType() == END_ELEMENT && PROPERTY_QNAME.equals(reader.getName())) { - property = null; - componentProperty = null; - } - - } else if (COMPONENT_QNAME.equals(name)) { - - // Read a - component = assemblyFactory.createComponent(); - component.setName(getString(reader, NAME)); - if (isSet(reader, AUTOWIRE)) { - component.setAutowire(getBoolean(reader, AUTOWIRE)); - } - if (isSet(reader, URI)) { - component.setURI(getURIString(reader, URI)); - } - - //handle extension attributes - this.readExtendedAttributes(reader, name, component, extensionAttributeProcessor, context); - - composite.getComponents().add(component); - policyProcessor.readPolicies(component, reader); - - } else if (WIRE_QNAME.equals(name)) { - - // Read a - wire = assemblyFactory.createWire(); - ComponentReference source = assemblyFactory.createComponentReference(); - source.setUnresolved(true); - source.setName(getURIString(reader, SOURCE)); - wire.setSource(source); - - ComponentService target = assemblyFactory.createComponentService(); - target.setUnresolved(true); - target.setName(getURIString(reader, TARGET)); - wire.setTarget(target); - - // Read @replace - String replace = reader.getAttributeValue(null, REPLACE); - if (replace != null) { - wire.setReplace(Boolean.parseBoolean(replace)); - } - - //handle extension attributes - this.readExtendedAttributes(reader, name, wire, extensionAttributeProcessor, context); - - composite.getWires().add(wire); - policyProcessor.readPolicies(wire, reader); - - } else if (CALLBACK_QNAME.equals(name)) { - - // Read a - callback = assemblyFactory.createCallback(); - contract.setCallback(callback); - - //handle extension attributes - this.readExtendedAttributes(reader, name, callback, extensionAttributeProcessor, context); - - policyProcessor.readPolicies(callback, reader); - - } else if (IMPLEMENTATION_COMPOSITE_QNAME.equals(name)) { - - // Read an implementation.composite - Composite implementation = assemblyFactory.createComposite(); - implementation.setName(getQName(reader, NAME)); - implementation.setUnresolved(true); - - //handle extension attributes - this.readExtendedAttributes(reader, name, implementation, extensionAttributeProcessor, context); - - component.setImplementation(implementation); - policyProcessor.readPolicies(implementation, reader); - } else if (REQUIRES_QNAME.equals(name)) { - List intents = getQNames(reader, INTENTS); - for (QName i : intents) { - Intent intent = policyFactory.createIntent(); - intent.setName(i); - if (composite != null) { - composite.getRequiredIntents().add(intent); - } else if (component != null) { - component.getRequiredIntents().add(intent); - } else if (contract != null) { - contract.getRequiredIntents().add(intent); - } else if (callback != null) { - callback.getRequiredIntents().add(intent); - } - } - } else if (POLICY_SET_ATTACHMENT_QNAME.equals(name)) { - QName ps = getQName(reader, NAME); - if (ps != null) { - PolicySet policySet = policyFactory.createPolicySet(); - policySet.setName(ps); - if (composite != null) { - composite.getPolicySets().add(policySet); - } else if (component != null) { - component.getPolicySets().add(policySet); - } else if (contract != null) { - contract.getPolicySets().add(policySet); - } else if (callback != null) { - callback.getPolicySets().add(policySet); - } - } - } else if(EXTENSION_QNAME.equals(name)) { - // Handle - //ignore element as this is a wrapper for extensibility - break; - } else { - - // Read an extension element - Object extension = extensionProcessor.read(reader, context); - if (extension != null) { - if (extension instanceof InterfaceContract) { - - // and - // - if (contract != null) { - contract.setInterfaceContract((InterfaceContract)extension); - } else { - if (name.getNamespaceURI().equals(SCA11_NS)) { - error(monitor, "UnexpectedInterfaceElement", extension); - //throw new ContributionReadException("Unexpected element found. It should appear inside a or element"); - } else { - composite.getExtensions().add(extension); - } - } - } else if (extension instanceof Binding) { - if (extension instanceof PolicySubject) { - ExtensionType bindingType = intentAttachPointTypeFactory.createBindingType(); - bindingType.setType(name); - bindingType.setUnresolved(true); - ((PolicySubject)extension).setExtensionType(bindingType); - } - // and - // - if (callback != null) { - callback.getBindings().add((Binding)extension); - } else { - if (contract != null) { - contract.getBindings().add((Binding)extension); - } else { - if (name.getNamespaceURI().equals(SCA11_NS)) { - error(monitor, "UnexpectedBindingElement", extension); - //throw new ContributionReadException("Unexpected element found. It should appear inside a or element"); - } else { - composite.getExtensions().add(extension); - } - } - } - - } else if (extension instanceof Implementation) { - if (extension instanceof PolicySubject) { - ExtensionType implType = - intentAttachPointTypeFactory.createImplementationType(); - implType.setType(name); - implType.setUnresolved(true); - ((PolicySubject)extension).setExtensionType(implType); - } - // - if (component != null) { - component.setImplementation((Implementation)extension); - } else { - if (name.getNamespaceURI().equals(SCA11_NS)) { - error(monitor, "UnexpectedImplementationElement", extension); - //throw new ContributionReadException("Unexpected element found. It should appear inside a element"); - } else { - composite.getExtensions().add(extension); - } - } - } else { - - // Add the extension element to the current - // element - if (callback != null) { - callback.getExtensions().add(extension); - } else if (contract != null) { - contract.getExtensions().add(extension); - } else if (property != null) { - property.getExtensions().add(extension); - } else if (component != null) { - component.getExtensions().add(extension); - } else { - composite.getExtensions().add(extension); - } - } - } - } - break; - - case XMLStreamConstants.CHARACTERS: - break; - - case END_ELEMENT: - name = reader.getName(); - - // Clear current state when reading reaching end element - if (SERVICE_QNAME.equals(name)) { - componentService = null; - compositeService = null; - contract = null; - } else if (INCLUDE_QNAME.equals(name)) { - include = null; - } else if (REFERENCE_QNAME.equals(name)) { - componentReference = null; - compositeReference = null; - contract = null; - } else if (PROPERTY_QNAME.equals(name)) { - componentProperty = null; - property = null; - } else if (COMPONENT_QNAME.equals(name)) { - component = null; - } else if (WIRE_QNAME.equals(name)) { - wire = null; - } else if (CALLBACK_QNAME.equals(name)) { - callback = null; - } - break; - } - - // Read the next element - if (reader.hasNext()) { - reader.next(); - } - } - } catch (XMLStreamException e) { - ContributionReadException ex = new ContributionReadException(e); - error(monitor, "XMLStreamException", reader, ex); - } - - return composite; - } - - public void write(Composite composite, XMLStreamWriter writer, ProcessorContext context) throws ContributionWriteException, - XMLStreamException { - - // Write element - writeStartDocument(writer, - COMPOSITE, - new XAttr(TARGET_NAMESPACE, composite.getName().getNamespaceURI()), - new XAttr(NAME, composite.getName().getLocalPart()), - new XAttr(LOCAL, composite.isLocal() ? Boolean.TRUE : null), - new XAttr(AUTOWIRE, composite.getAutowire()), - policyProcessor.writePolicies(composite)); - - //write extended attributes - this.writeExtendedAttributes(writer, composite, extensionAttributeProcessor, context); - - // Write elements - for (Composite include : composite.getIncludes()) { - String uri = include.isUnresolved() ? include.getURI() : null; - writeStart(writer, INCLUDE, new XAttr(NAME, include.getName()), new XAttr(URI, uri)); - - //write extended attributes - this.writeExtendedAttributes(writer, include, extensionAttributeProcessor, context); - - writeEnd(writer); - } - - // Write elements - for (Service service : composite.getServices()) { - CompositeService compositeService = (CompositeService)service; - Component promotedComponent = compositeService.getPromotedComponent(); - ComponentService promotedService = compositeService.getPromotedService(); - String promote; - if (promotedService != null) { - if (promotedService.getName() != null) { - promote = promotedComponent.getName() + '/' + promotedService.getName(); - } else { - promote = promotedComponent.getName(); - } - } else { - promote = null; - } - writeStart(writer, - SERVICE, - new XAttr(NAME, service.getName()), - new XAttr(PROMOTE, promote), - policyProcessor.writePolicies(service)); - - //write extended attributes - this.writeExtendedAttributes(writer, service, extensionAttributeProcessor, context); - - // Write service interface - extensionProcessor.write(service.getInterfaceContract(), writer, context); - - // Write bindings - for (Binding binding : service.getBindings()) { - extensionProcessor.write(binding, writer, context); - } - - // Write element - if (service.getCallback() != null) { - Callback callback = service.getCallback(); - writeStart(writer, CALLBACK, policyProcessor.writePolicies(callback)); - - //write extended attributes - this.writeExtendedAttributes(writer, callback, extensionAttributeProcessor, context); - - // Write callback bindings - for (Binding binding : callback.getBindings()) { - extensionProcessor.write(binding, writer, context); - } - - // Write extensions - this.writeExtendedElements(writer, service, extensionProcessor, context); - - writeEnd(writer); - } - - // Write extensions - this.writeExtendedElements(writer, service, extensionProcessor, context); - - writeEnd(writer); - } - - // Write elements - for (Component component : composite.getComponents()) { - writeStart(writer, - COMPONENT, - new XAttr(NAME, component.getName()), - new XAttr(URI, component.getURI()), - new XAttr(AUTOWIRE, component.getAutowire()), - policyProcessor.writePolicies(component)); - - //write extended attributes - this.writeExtendedAttributes(writer, component, extensionAttributeProcessor, context); - - // Write the component implementation - Implementation implementation = component.getImplementation(); - if (implementation instanceof Composite) { - writeStart(writer, IMPLEMENTATION_COMPOSITE, new XAttr(NAME, ((Composite)implementation).getName())); - - //write extended attributes - this.writeExtendedAttributes(writer, (Composite)implementation, extensionAttributeProcessor, context); - - writeEnd(writer); - } else { - extensionProcessor.write(component.getImplementation(), writer, context); - } - - for (Object extension : component.getExtensions()) { - extensionProcessor.write(extension, writer, context); - } - - // Write elements - for (ComponentService service : component.getServices()) { - writeStart(writer, SERVICE, new XAttr(NAME, service.getName()), policyProcessor.writePolicies(service)); - - //write extended attributes - this.writeExtendedAttributes(writer, service, extensionAttributeProcessor, context); - - // Write service interface - extensionProcessor.write(service.getInterfaceContract(), writer, context); - - // Write bindings - for (Binding binding : service.getBindings()) { - extensionProcessor.write(binding, writer, context); - } - - // Write element - if (service.getCallback() != null) { - Callback callback = service.getCallback(); - writeStart(writer, CALLBACK, policyProcessor.writePolicies(callback)); - - //write extended attributes - this.writeExtendedAttributes(writer, callback, extensionAttributeProcessor, context); - - // Write bindings - for (Binding binding : callback.getBindings()) { - extensionProcessor.write(binding, writer, context); - } - - // Write extensions - this.writeExtendedElements(writer, callback, extensionProcessor, context); - - writeEnd(writer); - } - - // Write extensions - this.writeExtendedElements(writer, service, extensionProcessor, context); - - writeEnd(writer); - } - - // Write elements - for (ComponentReference reference : component.getReferences()) { - writeStart(writer, - REFERENCE, - new XAttr(NAME, reference.getName()), - new XAttr(AUTOWIRE, reference.getAutowire()), - (reference.isNonOverridable() ? new XAttr(NONOVERRIDABLE, true) : null), - writeMultiplicity(reference), - writeTargets(reference), - policyProcessor.writePolicies(reference)); - - //write extended attributes - this.writeExtendedAttributes(writer, reference, extensionAttributeProcessor, context); - - // Write reference interface - extensionProcessor.write(reference.getInterfaceContract(), writer, context); - - // Write bindings - for (Binding binding : reference.getBindings()) { - extensionProcessor.write(binding, writer, context); - } - - // Write callback - if (reference.getCallback() != null) { - Callback callback = reference.getCallback(); - writeStart(writer, CALLBACK, policyProcessor.writePolicies(callback)); - - //write extended attributes - this.writeExtendedAttributes(writer, callback, extensionAttributeProcessor, context); - - // Write callback bindings - for (Binding binding : callback.getBindings()) { - extensionProcessor.write(binding, writer, context); - } - - // Write extensions - this.writeExtendedElements(writer, callback, extensionProcessor, context); - - writeEnd(writer); - } - - // Write extensions - this.writeExtendedElements(writer, reference, extensionProcessor, context); - - writeEnd(writer); - } - - // Write elements - for (ComponentProperty property : component.getProperties()) { - writeStart(writer, - PROPERTY, - new XAttr(NAME, property.getName()), - new XAttr(MUST_SUPPLY, property.isMustSupply()), - new XAttr(MANY, property.isMany()), - new XAttr(TYPE, property.getXSDType()), - new XAttr(ELEMENT, property.getXSDElement()), - new XAttr(SOURCE, property.getSource()), - new XAttr(FILE, property.getFile()), - policyProcessor.writePolicies(property)); - - //write extended attributes - this.writeExtendedAttributes(writer, property, extensionAttributeProcessor, context); - - // Write property value - writePropertyValue(property.getValue(), property.getXSDElement(), property.getXSDType(), writer); - - // Write extensions - for (Object extension : property.getExtensions()) { - extensionProcessor.write(extension, writer, context); - } - - writeEnd(writer); - } - - writeEnd(writer); - } - - // Write elements - for (Reference reference : composite.getReferences()) { - CompositeReference compositeReference = (CompositeReference)reference; - - // Write list of promoted references - List promote = new ArrayList(); - for (ComponentReference promoted : compositeReference.getPromotedReferences()) { - promote.add(promoted.getName()); - } - - // Write element - writeStart(writer, - REFERENCE, - new XAttr(NAME, reference.getName()), - new XAttr(PROMOTE, promote), - writeMultiplicity(reference), - policyProcessor.writePolicies(reference)); - - //write extended attributes - this.writeExtendedAttributes(writer, reference, extensionAttributeProcessor, context); - - // Write reference interface - extensionProcessor.write(reference.getInterfaceContract(), writer, context); - - // Write bindings - for (Binding binding : reference.getBindings()) { - extensionProcessor.write(binding, writer, context); - } - - // Write element - if (reference.getCallback() != null) { - Callback callback = reference.getCallback(); - writeStart(writer, CALLBACK); - - //write extended attributes - this.writeExtendedAttributes(writer, callback, extensionAttributeProcessor, context); - - // Write callback bindings - for (Binding binding : callback.getBindings()) { - extensionProcessor.write(binding, writer, context); - } - - // Write extensions - this.writeExtendedElements(writer, callback, extensionProcessor, context); - - writeEnd(writer); - } - - // Write extensions - this.writeExtendedElements(writer, reference, extensionProcessor, context); - - writeEnd(writer); - } - - // Write elements - for (Property property : composite.getProperties()) { - writeStart(writer, - PROPERTY, - new XAttr(NAME, property.getName()), - new XAttr(MUST_SUPPLY, property.isMustSupply()), - new XAttr(MANY, property.isMany()), - new XAttr(TYPE, property.getXSDType()), - new XAttr(ELEMENT, property.getXSDElement()), - policyProcessor.writePolicies(property)); - - //write extended attributes - this.writeExtendedAttributes(writer, property, extensionAttributeProcessor, context); - - // Write property value - writePropertyValue(property.getValue(), property.getXSDElement(), property.getXSDType(), writer); - - // Write extensions - for (Object extension : property.getExtensions()) { - extensionProcessor.write(extension, writer, context); - } - - writeEnd(writer); - } - - // Write elements - for (Wire wire : composite.getWires()) { - writeStart(writer, WIRE, new XAttr(SOURCE, wire.getSource().getName()), new XAttr(TARGET, wire.getTarget() - .getName()), wire.isReplace() ? new XAttr(Constants.REPLACE, true) : null); - - //write extended attributes - this.writeExtendedAttributes(writer, wire, extensionAttributeProcessor, context); - - // Write extensions - for (Object extension : wire.getExtensions()) { - extensionProcessor.write(extension, writer, context); - } - writeEnd(writer); - } - - for (Object extension : composite.getExtensions()) { - extensionProcessor.write(extension, writer, context); - } - - writeEndDocument(writer); - } - - public void resolve(Composite composite, ModelResolver resolver, ProcessorContext context) throws ContributionResolveException { - - Monitor monitor = context.getMonitor(); - try { - monitor.pushContext("Composite: " + composite.getName()); - - // Resolve includes in the composite - for (int i = 0, n = composite.getIncludes().size(); i < n; i++) { - Composite include = composite.getIncludes().get(i); - if (include != null) { - Composite resolved = resolver.resolveModel(Composite.class, include, context); - if (!resolved.isUnresolved()) { - if ((composite.isLocal() && resolved.isLocal()) || (!composite.isLocal() && !resolved.isLocal())) { - composite.getIncludes().set(i, resolved); - } else { - ContributionResolveException ce = - new ContributionResolveException("[ASM60041] Error: Composite " + composite.getName() - + " can only include another composite with the identical @local attribute value"); - error(monitor, "ContributionResolveException", include, ce); - } - } else { - ContributionResolveException ce = - new ContributionResolveException("[ASM60042] Error: Composite " + include.getName() - + " is not a valid composite within the domain"); - error(monitor, "ContributionResolveException", include, ce); - } - } - } - - // Resolve extensions - for (Object extension : composite.getExtensions()) { - if (extension != null) { - extensionProcessor.resolve(extension, resolver, context); - } - } - - //Resolve composite services and references - resolveContracts(composite, composite.getServices(), resolver, context); - resolveContracts(composite, composite.getReferences(), resolver, context); - - for (Property property : composite.getProperties()){ - resolvePropertyType("composite " + composite.getName().toString(), - property, - context.getContribution(), context); - } - - // Resolve component implementations, services and references - for (Component component : composite.getComponents()) { - - //resolve component services and references - resolveContracts(component, component.getServices(), resolver, context); - resolveContracts(component, component.getReferences(), resolver, context); - - for (ComponentProperty componentProperty : component.getProperties()) { - // resolve a reference to a property file - if (componentProperty.getFile() != null) { - Artifact artifact = contributionFactory.createArtifact(); - artifact.setURI(componentProperty.getFile()); - artifact = resolver.resolveModel(Artifact.class, artifact, context); - if (artifact.getLocation() != null) { - componentProperty.setFile(artifact.getLocation()); - } - } - - // resolve the reference to a complex property - resolvePropertyType("component " + component.getName(), - componentProperty, - context.getContribution(), context); - } - - //resolve component implementation - Implementation implementation = component.getImplementation(); - if (implementation != null) { - //now resolve the implementation so that even if there is a shared instance - //for this that is resolved, the specified intents and policysets are safe in the - //component and not lost - implementation = resolveImplementation(implementation, resolver, context); - - component.setImplementation(implementation); - } - - //add model resolver to component - if (component instanceof ResolverExtension) { - ((ResolverExtension)component).setModelResolver(resolver); - } - } - - // Add model resolver to promoted components - for (Service service : composite.getServices()) { - CompositeService compositeService = (CompositeService)service; - Component promotedComponent = compositeService.getPromotedComponent(); - if (promotedComponent instanceof ResolverExtension) { - ((ResolverExtension)promotedComponent).setModelResolver(resolver); - } - } // end for - - } finally { - // Pop context - monitor.popContext(); - } // end try - } - - public QName getArtifactType() { - return COMPOSITE_QNAME; - } - - public Class getModelType() { - return Composite.class; - } - - /** - * Returns the model factory extension point to use. - * - * @param extensionPoints - * @return - */ - private static FactoryExtensionPoint modelFactories(ExtensionPointRegistry extensionPoints) { - return extensionPoints.getExtensionPoint(FactoryExtensionPoint.class); - } - - /** - * Property elements can have XSD types attributes so, in the case of a complex type, we need to find - * the XSD definition that defines that type in the contribution while we still have access to the - * contribution. Later, in the builder, we use this XSD definition to ensure that the property value - * is of the correct type - * - * @param property - * @param contribution - */ - private void resolvePropertyType(String parentName, Property property, Contribution contribution, ProcessorContext context){ - // resolve the reference to a complex property - // we ignore any types in the schema namespace - if (property.getXSDType() != null && - property.getXSDType().getNamespaceURI().equals("http://www.w3.org/2001/XMLSchema") != true){ - XSDefinition xsdDefinition = xsdFactory.createXSDefinition(); - xsdDefinition.setUnresolved(true); - xsdDefinition.setNamespace(property.getXSDType().getNamespaceURI()); - // some unit tests don't set up contribution and model resolvers properly - if (contribution != null && contribution.getModelResolver() != null) { - XSDefinition resolved = contribution.getModelResolver().resolveModel(XSDefinition.class, xsdDefinition, context); - if (resolved == null || resolved.isUnresolved()){ - // raise an error - error(context.getMonitor(), "PropertyTypeNotFound", property, property.getXSDType().toString(), property.getName(), parentName); - } else { - // store the schema in the property - property.setXSDDefinition(resolved); - } - } - } - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/assembly/xml/ConfiguredOperationProcessor.java b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/assembly/xml/ConfiguredOperationProcessor.java deleted file mode 100644 index 9930096a26..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/assembly/xml/ConfiguredOperationProcessor.java +++ /dev/null @@ -1,108 +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 org.apache.tuscany.sca.assembly.xml; - -import static javax.xml.stream.XMLStreamConstants.END_ELEMENT; - -import javax.xml.namespace.QName; -import javax.xml.stream.XMLStreamException; -import javax.xml.stream.XMLStreamReader; -import javax.xml.stream.XMLStreamWriter; - -import org.apache.tuscany.sca.assembly.AssemblyFactory; -import org.apache.tuscany.sca.assembly.ConfiguredOperation; -import org.apache.tuscany.sca.contribution.processor.ContributionReadException; -import org.apache.tuscany.sca.contribution.processor.ContributionResolveException; -import org.apache.tuscany.sca.contribution.processor.ContributionWriteException; -import org.apache.tuscany.sca.contribution.processor.ProcessorContext; -import org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessor; -import org.apache.tuscany.sca.contribution.resolver.ModelResolver; -import org.apache.tuscany.sca.core.FactoryExtensionPoint; -import org.apache.tuscany.sca.policy.PolicyFactory; - -/** - * Processor for dealing with 'operation' elements from composite definitions - * - * @version $Rev$ $Date$ - * @tuscany.spi.extension.asclient - */ -public class ConfiguredOperationProcessor implements StAXArtifactProcessor, Constants{ - - private AssemblyFactory assemblyFactory; - private PolicySubjectProcessor policyProcessor; - private PolicyFactory policyFactory; - - - public ConfiguredOperationProcessor(FactoryExtensionPoint modelFactories) { - this.assemblyFactory = modelFactories.getFactory(AssemblyFactory.class); - this.policyFactory = modelFactories.getFactory(PolicyFactory.class); - this.policyProcessor = new PolicySubjectProcessor(policyFactory); - } - - public ConfiguredOperation read(XMLStreamReader reader, ProcessorContext context) throws ContributionReadException, XMLStreamException { - ConfiguredOperation configuredOp = assemblyFactory.createConfiguredOperation(); - - //Read an - configuredOp.setName(reader.getAttributeValue(null, NAME)); - configuredOp.setContractName(reader.getAttributeValue(null, SERVICE)); - configuredOp.setUnresolved(true); - - // Read policies - policyProcessor.readPolicies(configuredOp, reader); - - //Skip to end element - while (reader.hasNext()) { - if (reader.next() == END_ELEMENT && OPERATION_QNAME.equals(reader.getName())) { - break; - } - } - - return configuredOp; - } - - public void write(ConfiguredOperation configuredOperation, XMLStreamWriter writer, ProcessorContext context) - throws ContributionWriteException, XMLStreamException { - - // Write an - writer.writeStartElement(Constants.SCA11_NS, OPERATION); - policyProcessor.writePolicyAttributes(configuredOperation, writer); - - writer.writeAttribute(NAME, configuredOperation.getName()); - if ( configuredOperation.getContractName() != null ) { - writer.writeAttribute(SERVICE, configuredOperation.getContractName()); - } - writer.writeEndElement(); - } - - public void resolve(ConfiguredOperation configuredOperation, ModelResolver resolver, ProcessorContext context) - throws ContributionResolveException { - } - - public QName getArtifactType() { - return OPERATION_QNAME; - } - - public Class getModelType() { - return ConfiguredOperation.class; - } - -} - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/assembly/xml/Constants.java b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/assembly/xml/Constants.java deleted file mode 100644 index 9fd8aeb803..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/assembly/xml/Constants.java +++ /dev/null @@ -1,156 +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 org.apache.tuscany.sca.assembly.xml; - -import javax.xml.namespace.QName; - -/** - * Constants used in SCA assembly XML files. - * - * @version $Rev$ $Date$ - * @tuscany.spi.extension - */ -public interface Constants { - String SCA11_NS = "http://docs.oasis-open.org/ns/opencsa/sca/200912"; - String SCA11_TUSCANY_NS = "http://tuscany.apache.org/xmlns/sca/1.1"; - - String COMPONENT_TYPE = "componentType"; - QName COMPONENT_TYPE_QNAME = new QName(SCA11_NS, COMPONENT_TYPE); - - String SERVICE = "service"; - QName SERVICE_QNAME = new QName(SCA11_NS, SERVICE); - - String REFERENCE = "reference"; - QName REFERENCE_QNAME = new QName(SCA11_NS, REFERENCE); - - String PROPERTY = "property"; - QName PROPERTY_QNAME = new QName(SCA11_NS, PROPERTY); - - String COMPOSITE = "composite"; - QName COMPOSITE_QNAME = new QName(SCA11_NS, COMPOSITE); - - String INCLUDE = "include"; - QName INCLUDE_QNAME = new QName(SCA11_NS, INCLUDE); - - String COMPONENT = "component"; - QName COMPONENT_QNAME = new QName(SCA11_NS, COMPONENT); - - String WIRE = "wire"; - QName WIRE_QNAME = new QName(SCA11_NS, WIRE); - - String OPERATION = "operation"; - QName OPERATION_QNAME = new QName(SCA11_NS, OPERATION); - - String CALLBACK = "callback"; - QName CALLBACK_QNAME = new QName(SCA11_NS, CALLBACK); - - String IMPLEMENTATION_COMPOSITE = "implementation.composite"; - QName IMPLEMENTATION_COMPOSITE_QNAME = new QName(SCA11_NS, IMPLEMENTATION_COMPOSITE); - - String IMPLEMENTATION = "implementation"; - QName IMPLEMENTATION_QNAME = new QName(SCA11_NS, IMPLEMENTATION); - - String BINDING_SCA = "binding.sca"; - QName BINDING_SCA_QNAME = new QName(Constants.SCA11_NS, BINDING_SCA); - - String EXTENSION = "extensions"; - QName EXTENSION_QNAME = new QName(Constants.SCA11_NS, EXTENSION); - - String NAME = "name"; - String VALUE = "value"; - QName VALUE_QNAME = new QName(SCA11_NS, VALUE); - - String POLICY_SET_ATTACHMENT = "policySetAttachment"; - QName POLICY_SET_ATTACHMENT_QNAME = new QName(SCA11_NS, POLICY_SET_ATTACHMENT); - - String TARGET_NAMESPACE = "targetNamespace"; - String LOCAL = "local"; - String AUTOWIRE = "autowire"; - String NONOVERRIDABLE = "nonOverridable"; - String REPLACE = "replace"; - String REQUIRES = "requires"; - QName REQUIRES_QNAME = new QName(SCA11_NS, REQUIRES); - String INTENTS = "intents"; - - String POLICY_SETS = "policySets"; - String PROMOTE = "promote"; - String TARGET = "target"; - String WIRED_BY_IMPL = "wiredByImpl"; - String MULTIPLICITY = "multiplicity"; - String TYPE = "type"; - String ELEMENT = "element"; - String MANY = "many"; - String MUST_SUPPLY = "mustSupply"; - String SOURCE = "source"; - String FILE = "file"; - String URI = "uri"; - String ZERO_ONE = "0..1"; - String ZERO_N = "0..n"; - String ONE_ONE = "1..1"; - String ONE_N = "1..n"; - - String SERVER_AUTHENTICATION = "serverAuthentication"; - QName SERVER_AUTHENTICATION_INTENT = new QName(SCA11_NS, SERVER_AUTHENTICATION); - String SERVER_AUTHENTICATION_TRANSPORT = "serverAuthentication.transport"; - QName SERVER_AUTHENTICATION_TRANSPORT_INTENT = new QName(SCA11_NS, SERVER_AUTHENTICATION_TRANSPORT); - String SERVER_AUTHENTICATION_MESSAGE = "serverAuthentication.message"; - QName SERVER_AUTHENTICATION_MESSAGE_INTENT = new QName(SCA11_NS, SERVER_AUTHENTICATION_MESSAGE); - - String CLIENT_AUTHENTICATION = "clientAuthentication"; - QName CLIENT_AUTHENTICATION_INTENT = new QName(SCA11_NS, CLIENT_AUTHENTICATION); - String CLIENT_AUTHENTICATION_TRANSPORT = "clientAuthentication.transport"; - QName CLIENT_AUTHENTICATION_TRANSPORT_INTENT = new QName(SCA11_NS, CLIENT_AUTHENTICATION_TRANSPORT); - String CLIENT_AUTHENTICATION_MESSAGE = "clientAuthentication.message"; - QName CLIENT_AUTHENTICATION_MESSAGE_INTENT = new QName(SCA11_NS, CLIENT_AUTHENTICATION_MESSAGE); - - String AUTHENTICATION = "authentication"; - QName AUTHENTICATION_INTENT = new QName(SCA11_NS, AUTHENTICATION); - - String MUTUAL_AUTHENTICATION = "mutualAuthentication"; - QName MUTUAL_AUTHENTICATION_INTENT = new QName(SCA11_NS, MUTUAL_AUTHENTICATION); - - String CONFIDENTIALITY = "confidentiality"; - QName CONFIDENTIALITY_INTENT = new QName(SCA11_NS, CONFIDENTIALITY); - String CONFIDENTIALITY_TRANSPORT = "confidentiality.transport"; - QName CONFIDENTIALITY_TRANSPORT_INTENT = new QName(SCA11_NS, CONFIDENTIALITY_TRANSPORT); - String CONFIDENTIALITY_MESSAGE = "confidentiality.message"; - QName CONFIDENTIALITY_MESSAGE_INTENT = new QName(SCA11_NS, CONFIDENTIALITY_MESSAGE); - - String INTEGRITY = "integrity"; - QName INTEGRITY_INTENT = new QName(SCA11_NS, "INTEGRITY"); - String INTEGRITY_TRANSPORT = "integrity.transport"; - QName INTEGRITY_TRANSPORT_INTENT = new QName(SCA11_NS, INTEGRITY_TRANSPORT); - String INTEGRITY_MESSAGE = "integrity.message"; - QName INTEGRITY_MESSAGE_INTENT = new QName(SCA11_NS, INTEGRITY_MESSAGE); - - String AUTHORIZATION = "authorization"; - QName AUTHORIZATION_INTENT = new QName(SCA11_NS, "INTEGRITY"); - String AUTHORIZATION_FINE_GRAIN = "authorization.fineGrain"; - QName AUTHORIZATION_FINE_GRAIN_INTENT = new QName(SCA11_NS, AUTHORIZATION_FINE_GRAIN); - - // TODO - add transaction intent constants - - String SOAP = "SOAP"; - QName SOAP_INTENT = new QName(SCA11_NS, SOAP); - String SOAP11 = "SOAP.v1_1"; - QName SOAP11_INTENT = new QName(SCA11_NS, SOAP11); - String SOAP12 = "SOAP.v1_2"; - QName SOAP12_INTENT = new QName(SCA11_NS, SOAP12); -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/assembly/xml/DefaultBeanModelProcessor.java b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/assembly/xml/DefaultBeanModelProcessor.java deleted file mode 100644 index e6e172a44b..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/assembly/xml/DefaultBeanModelProcessor.java +++ /dev/null @@ -1,257 +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 org.apache.tuscany.sca.assembly.xml; - -import static javax.xml.stream.XMLStreamConstants.END_ELEMENT; - -import java.lang.reflect.Method; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -import javax.xml.namespace.QName; -import javax.xml.stream.XMLStreamException; -import javax.xml.stream.XMLStreamReader; -import javax.xml.stream.XMLStreamWriter; - -import org.apache.tuscany.sca.assembly.Base; -import org.apache.tuscany.sca.assembly.ComponentType; -import org.apache.tuscany.sca.assembly.Implementation; -import org.apache.tuscany.sca.contribution.processor.ContributionReadException; -import org.apache.tuscany.sca.contribution.processor.ContributionResolveException; -import org.apache.tuscany.sca.contribution.processor.ContributionWriteException; -import org.apache.tuscany.sca.contribution.processor.ProcessorContext; -import org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessor; -import org.apache.tuscany.sca.contribution.resolver.ModelResolver; -import org.apache.tuscany.sca.core.FactoryExtensionPoint; -import org.apache.tuscany.sca.policy.PolicySubject; - -/** - * Default Model Processor for beans. - * - * @version $Rev$ $Date$ - */ -public class DefaultBeanModelProcessor extends BaseAssemblyProcessor implements StAXArtifactProcessor { - - private QName artifactType; - private Class modelClass; - private Object modelFactory; - private Method factoryMethod; - private Map setterMethods = new HashMap(); - private Map getterMethods = new HashMap(); - - public DefaultBeanModelProcessor(FactoryExtensionPoint modeFactories, - QName artifactType, - Class modelClass, - Object modelFactory) { - super(modeFactories, null); - this.artifactType = artifactType; - this.modelClass = modelClass; - this.modelFactory = modelFactory; - - // Introspect the factory class and bean model class - if (modelFactory != null) { - - // Find the model create method - for (Method method: modelFactory.getClass().getMethods()) { - if (method.getName().startsWith("create") && method.getReturnType() == modelClass) { - factoryMethod = method; - break; - } - } - } - - // Index the bean's setter methods - for (Method method: modelClass.getMethods()) { - Method getter; - String name = method.getName(); - if (name.startsWith("set") && name.length() > 3) { - - // Get the corresponding getter method - try { - getter = modelClass.getMethod("get" + name.substring(3)); - } catch (Exception e) { - getter = null; - continue; - } - - // Get the property name - name = name.substring(3); - if (name.length() > 1) { - if (!name.toUpperCase().equals(name)) { - name = name.substring(0, 1).toLowerCase() + name.substring(1); - } - } - } else { - continue; - } - - // Map an uppercase property name to a lowercase attribute name - if (name.toUpperCase().equals(name)) { - name = name.toLowerCase(); - } - - // Trim trailing _ from property names - if (name.endsWith("_")) { - name = name.substring(0, name.length()-1); - } - setterMethods.put(name, method); - getterMethods.put(name, getter); - } - } - - public T read(XMLStreamReader reader, ProcessorContext context) throws ContributionReadException, XMLStreamException { - - // Read an element - try { - - // Create a new instance of the model - Object model; - if (modelFactory != null) { - // Invoke the factory create method - model = factoryMethod.invoke(modelFactory); - } else { - // Invoke the model bean class default constructor - model = modelClass.newInstance(); - } - - // Initialize the bean properties with the attributes found in the - // XML element - for (int i = 0, n = reader.getAttributeCount(); i < n; i++) { - String attributeName = reader.getAttributeLocalName(i); - Method setter = setterMethods.get(attributeName); - if (setter != null) { - String value = null; - if (attributeName.equals("uri")){ - value = getURIString(reader, "uri"); - } else { - value = reader.getAttributeValue(i); - } - setter.invoke(model, value); - } - } - - // Read policies - policyProcessor.readPolicies(model, reader); - - // FIXME read extension elements - - // By default mark the model object unresolved - if (model instanceof Base) { - ((Base)model).setUnresolved(true); - } - - // Skip to end element - while (reader.hasNext()) { - if (reader.next() == END_ELEMENT && artifactType.equals(reader.getName())) { - break; - } - } - return (T) model; - - } catch (Exception e) { - ContributionReadException ce = new ContributionReadException(e); - error(context.getMonitor(), "ContributionReadException", reader, ce); - throw ce; - } - } - - public void write(T bean, XMLStreamWriter writer, ProcessorContext context) throws ContributionWriteException, XMLStreamException { - try { - // Write the bean properties as attributes - List attrs = new ArrayList(); - for (Map.Entry entry: getterMethods.entrySet()) { - if (entry.getValue().getReturnType() == String.class) { - String value = (String)entry.getValue().invoke(bean); - attrs.add(new XAttr(entry.getKey(), value)); - } - } - - // Write element - writeStart(writer, artifactType.getNamespaceURI(), artifactType.getLocalPart(), - policyProcessor.writePolicies(bean), new XAttr(null, attrs)); - - writeEnd(writer); - - } catch (Exception e) { - ContributionWriteException ce = new ContributionWriteException(e); - error(context.getMonitor(), "ContributionWriteException", writer, ce); - throw ce; - } - } - - public void resolve(T bean, ModelResolver resolver, ProcessorContext context) throws ContributionResolveException { - - // Resolve and merge the component type associated with an - // implementation model - if (bean instanceof Implementation) { - Implementation implementation = (Implementation)bean; - String uri = implementation.getURI(); - if (uri != null) { - int d = uri.lastIndexOf('.'); - if (d != -1) { - uri = uri.substring(0, d) + ".componentType"; - - // Resolve the component type - ComponentType componentType = assemblyFactory.createComponentType(); - componentType.setURI(uri); - componentType.setUnresolved(true); - - componentType = resolver.resolveModel(ComponentType.class, componentType, context); - if (componentType != null && !componentType.isUnresolved()) { - - // We found a component type, merge it into the implementation model - implementation.getServices().addAll(componentType.getServices()); - implementation.getReferences().addAll(componentType.getReferences()); - implementation.getProperties().addAll(componentType.getProperties()); - - if (implementation instanceof PolicySubject && - componentType instanceof PolicySubject ) { - PolicySubject policiedImpl = (PolicySubject)implementation; - PolicySubject policiedCompType = (PolicySubject)componentType; - - if ( policiedImpl.getPolicySets() != null) { - policiedImpl.getPolicySets().addAll(policiedCompType.getPolicySets()); - } - if (policiedImpl.getRequiredIntents() != null) { - policiedImpl.getRequiredIntents().addAll(policiedCompType.getRequiredIntents()); - } - } - } - } - } - } - - // Mark the model resolved - if (bean instanceof Base) { - ((Base)bean).setUnresolved(false); - } - } - - public QName getArtifactType() { - return artifactType; - } - - public Class getModelType() { - return modelClass; - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/assembly/xml/EndpointProcessor.java b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/assembly/xml/EndpointProcessor.java deleted file mode 100644 index 9b2b1cca6c..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/assembly/xml/EndpointProcessor.java +++ /dev/null @@ -1,126 +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 org.apache.tuscany.sca.assembly.xml; - -import javax.xml.namespace.QName; -import javax.xml.stream.XMLStreamConstants; -import javax.xml.stream.XMLStreamException; -import javax.xml.stream.XMLStreamReader; -import javax.xml.stream.XMLStreamWriter; - -import org.apache.tuscany.sca.assembly.Binding; -import org.apache.tuscany.sca.assembly.Component; -import org.apache.tuscany.sca.assembly.ComponentService; -import org.apache.tuscany.sca.assembly.Composite; -import org.apache.tuscany.sca.assembly.Endpoint; -import org.apache.tuscany.sca.contribution.processor.ContributionReadException; -import org.apache.tuscany.sca.contribution.processor.ContributionResolveException; -import org.apache.tuscany.sca.contribution.processor.ContributionWriteException; -import org.apache.tuscany.sca.contribution.processor.ProcessorContext; -import org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessor; -import org.apache.tuscany.sca.contribution.processor.StAXAttributeProcessor; -import org.apache.tuscany.sca.contribution.resolver.ModelResolver; -import org.apache.tuscany.sca.core.ExtensionPointRegistry; -import org.apache.tuscany.sca.core.FactoryExtensionPoint; - -/** - * - */ -public class EndpointProcessor extends BaseAssemblyProcessor implements StAXArtifactProcessor { - private final static String ENDPOINT = "endpoint"; - private final static QName ENDPOINT_QNAME = new QName(Constants.SCA11_TUSCANY_NS, ENDPOINT); - - private ExtensionPointRegistry registry; - - public EndpointProcessor(ExtensionPointRegistry registry, - StAXArtifactProcessor extensionProcessor, - StAXAttributeProcessor extensionAttributeProcessor) { - - super(modelFactories(registry), extensionProcessor); - this.registry = registry; - } - - /** - * Returns the model factory extension point to use. - * - * @param extensionPoints - * @return - */ - private static FactoryExtensionPoint modelFactories(ExtensionPointRegistry extensionPoints) { - return extensionPoints.getExtensionPoint(FactoryExtensionPoint.class); - } - - public QName getArtifactType() { - return ENDPOINT_QNAME; - } - - public Endpoint read(XMLStreamReader reader, ProcessorContext context) throws ContributionReadException, XMLStreamException { - Endpoint endpoint = assemblyFactory.createEndpoint(); - if (reader.getEventType() == XMLStreamConstants.START_DOCUMENT) { - reader.nextTag(); - } - Object model = extensionProcessor.read(reader, context); - if (model instanceof Composite) { - Composite composite = (Composite)model; - Component component = composite.getComponents().get(0); - ComponentService service = component.getServices().get(0); - Binding binding = service.getBindings().get(0); - endpoint.setComponent(component); - endpoint.setService(service); - endpoint.setBinding(binding); - } - return endpoint; - } - - public void write(Endpoint model, XMLStreamWriter writer, ProcessorContext context) throws ContributionWriteException, XMLStreamException { - // writeStart(writer, ENDPOINT_QNAME); - extensionProcessor.write(wrap(model), writer, context); - // writeEnd(writer); - } - - private Composite wrap(Endpoint endpoint) { - try { - Composite composite = assemblyFactory.createComposite(); - composite.setName(ENDPOINT_QNAME); - composite.setLocal(false); - Component component = (Component)endpoint.getComponent().clone(); - component.setImplementation(null); - composite.getComponents().add(component); - component.getReferences().clear(); - component.getServices().clear(); - ComponentService service = (ComponentService)endpoint.getService().clone(); - component.getServices().add(service); - service.getBindings().clear(); - service.setInterfaceContract(endpoint.getComponentServiceInterfaceContract()); - Binding binding = (Binding)endpoint.getBinding().clone(); - service.getBindings().add(binding); - return composite; - } catch (CloneNotSupportedException e) { - return null; - } - } - - public Class getModelType() { - return Endpoint.class; - } - - public void resolve(Endpoint model, ModelResolver resolver, ProcessorContext context) throws ContributionResolveException { - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/assembly/xml/EndpointReferenceProcessor.java b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/assembly/xml/EndpointReferenceProcessor.java deleted file mode 100644 index eda90c9d44..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/assembly/xml/EndpointReferenceProcessor.java +++ /dev/null @@ -1,151 +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 org.apache.tuscany.sca.assembly.xml; - -import javax.xml.namespace.QName; -import javax.xml.stream.XMLStreamConstants; -import javax.xml.stream.XMLStreamException; -import javax.xml.stream.XMLStreamReader; -import javax.xml.stream.XMLStreamWriter; - -import org.apache.tuscany.sca.assembly.Binding; -import org.apache.tuscany.sca.assembly.Component; -import org.apache.tuscany.sca.assembly.ComponentReference; -import org.apache.tuscany.sca.assembly.ComponentService; -import org.apache.tuscany.sca.assembly.Composite; -import org.apache.tuscany.sca.assembly.Endpoint; -import org.apache.tuscany.sca.assembly.EndpointReference; -import org.apache.tuscany.sca.contribution.processor.ContributionReadException; -import org.apache.tuscany.sca.contribution.processor.ContributionResolveException; -import org.apache.tuscany.sca.contribution.processor.ContributionWriteException; -import org.apache.tuscany.sca.contribution.processor.ProcessorContext; -import org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessor; -import org.apache.tuscany.sca.contribution.processor.StAXAttributeProcessor; -import org.apache.tuscany.sca.contribution.resolver.ModelResolver; -import org.apache.tuscany.sca.core.ExtensionPointRegistry; -import org.apache.tuscany.sca.core.FactoryExtensionPoint; - -/** - * - */ -public class EndpointReferenceProcessor extends BaseAssemblyProcessor implements StAXArtifactProcessor { - private final static String ENDPOINT_REFERENCE = "endpointReference"; - private final static QName ENDPOINT_REFERENCE_QNAME = new QName(Constants.SCA11_TUSCANY_NS, ENDPOINT_REFERENCE); - - private ExtensionPointRegistry registry; - - public EndpointReferenceProcessor(ExtensionPointRegistry registry, - StAXArtifactProcessor extensionProcessor, - StAXAttributeProcessor extensionAttributeProcessor) { - - super(modelFactories(registry), extensionProcessor); - this.registry = registry; - } - - /** - * Returns the model factory extension point to use. - * - * @param extensionPoints - * @return - */ - private static FactoryExtensionPoint modelFactories(ExtensionPointRegistry extensionPoints) { - return extensionPoints.getExtensionPoint(FactoryExtensionPoint.class); - } - - public QName getArtifactType() { - return ENDPOINT_REFERENCE_QNAME; - } - - public EndpointReference read(XMLStreamReader reader, ProcessorContext context) throws ContributionReadException, XMLStreamException { - EndpointReference endpointReference = assemblyFactory.createEndpointReference(); - if (reader.getEventType() == XMLStreamConstants.START_DOCUMENT) { - reader.nextTag(); - } - Object model = extensionProcessor.read(reader, context); - if (model instanceof Composite) { - Composite composite = (Composite)model; - Component component = composite.getComponents().get(0); - ComponentReference reference = component.getReferences().get(0); - Binding binding = reference.getBindings().get(0); - endpointReference.setComponent(component); - endpointReference.setReference(reference); - reference.getEndpointReferences().add(endpointReference); - endpointReference.setBinding(binding); - - // set up the EPR so that resolution will happen - // at wire creation time if needs be - Endpoint endpoint = assemblyFactory.createEndpoint(); - endpointReference.setTargetEndpoint(endpoint); - - if (reference.getTargets().size() > 0){ - // create a dummy endpoint with the URI set so that - // the endpoint registry will be consulted - endpoint.setUnresolved(true); - endpoint.setURI(reference.getTargets().get(0).getName()); - endpointReference.setStatus(EndpointReference.Status.WIRED_TARGET_NOT_FOUND); - endpointReference.setUnresolved(true); - } else { - endpoint.setUnresolved(false); - endpoint.setBinding(reference.getBindings().get(0)); - endpointReference.setStatus(EndpointReference.Status.RESOLVED_BINDING); - endpointReference.setUnresolved(false); - } - } - return endpointReference; - } - - public void write(EndpointReference model, XMLStreamWriter writer, ProcessorContext context) throws ContributionWriteException, XMLStreamException { - extensionProcessor.write(wrap(model), writer, context); - } - - private Composite wrap(EndpointReference endpointReference) { - try { - Composite composite = assemblyFactory.createComposite(); - composite.setName(ENDPOINT_REFERENCE_QNAME); - composite.setLocal(false); - Component component = (Component)endpointReference.getComponent().clone(); - composite.getComponents().add(component); - component.getReferences().clear(); - component.getServices().clear(); - ComponentReference reference = (ComponentReference)endpointReference.getReference().clone(); - component.getReferences().add(reference); - reference.getBindings().clear(); - Binding binding = (Binding)endpointReference.getBinding().clone(); - reference.getBindings().add(binding); - //reference.setInterfaceContract(endpointReference.getInterfaceContract()); - if (endpointReference.getStatus() != EndpointReference.Status.RESOLVED_BINDING){ - ComponentService service = assemblyFactory.createComponentService(); - service.setName(endpointReference.getTargetEndpoint().getURI()); - reference.getTargets().clear(); - reference.getTargets().add(service); - } - return composite; - } catch (CloneNotSupportedException e) { - return null; - } - } - - public Class getModelType() { - return EndpointReference.class; - } - - public void resolve(EndpointReference model, ModelResolver resolver, ProcessorContext context) throws ContributionResolveException { - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/assembly/xml/Messages.java b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/assembly/xml/Messages.java deleted file mode 100644 index 0391acc676..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/assembly/xml/Messages.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 org.apache.tuscany.sca.assembly.xml; - -/** - * Constants for resource bundle names - * @tuscany.spi.extension - */ -public interface Messages { - String RESOURCE_BUNDLE = "org.apache.tuscany.sca.assembly.xml.assembly-xml-validation-messages"; -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/assembly/xml/PolicySubjectProcessor.java b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/assembly/xml/PolicySubjectProcessor.java deleted file mode 100644 index 286f109f44..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/assembly/xml/PolicySubjectProcessor.java +++ /dev/null @@ -1,242 +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 org.apache.tuscany.sca.assembly.xml; - -import static org.apache.tuscany.sca.assembly.xml.Constants.POLICY_SETS; -import static org.apache.tuscany.sca.assembly.xml.Constants.REQUIRES; - -import java.util.ArrayList; -import java.util.List; -import java.util.StringTokenizer; - -import javax.xml.namespace.QName; -import javax.xml.stream.XMLStreamException; -import javax.xml.stream.XMLStreamReader; -import javax.xml.stream.XMLStreamWriter; - -import org.apache.tuscany.sca.contribution.processor.BaseStAXArtifactProcessor; -import org.apache.tuscany.sca.contribution.processor.ProcessorContext; -import org.apache.tuscany.sca.contribution.resolver.ModelResolver; -import org.apache.tuscany.sca.core.ExtensionPointRegistry; -import org.apache.tuscany.sca.core.FactoryExtensionPoint; -import org.apache.tuscany.sca.interfacedef.Operation; -import org.apache.tuscany.sca.policy.Intent; -import org.apache.tuscany.sca.policy.PolicyFactory; -import org.apache.tuscany.sca.policy.PolicySet; -import org.apache.tuscany.sca.policy.PolicySubject; - -/** - * A Policy Attach Point processor. - * - * @version $Rev$ $Date$ - * @tuscany.spi.extension.asclient - */ -public class PolicySubjectProcessor extends BaseStAXArtifactProcessor { - - private PolicyFactory policyFactory; - - public PolicySubjectProcessor(PolicyFactory policyFactory) { - this.policyFactory = policyFactory; - } - - public PolicySubjectProcessor(ExtensionPointRegistry registry) { - FactoryExtensionPoint factories = registry.getExtensionPoint(FactoryExtensionPoint.class); - this.policyFactory = factories.getFactory(PolicyFactory.class); - } - - /** - * Read policy intents associated with an operation. - * @param subject - * @param operation - * @param reader - */ - private void readIntents(Object subject, Operation operation, XMLStreamReader reader) { - if (!(subject instanceof PolicySubject)) - return; - PolicySubject intentAttachPoint = (PolicySubject)subject; - String value = reader.getAttributeValue(null, REQUIRES); - if (value != null) { - List requiredIntents = intentAttachPoint.getRequiredIntents(); - for (StringTokenizer tokens = new StringTokenizer(value); tokens.hasMoreTokens();) { - QName qname = getQNameValue(reader, tokens.nextToken()); - Intent intent = policyFactory.createIntent(); - intent.setName(qname); - if (operation != null) { - //FIXME Don't we need to handle intent specification - // on an operation basis? - //intent.getOperations().add(operation); - } - requiredIntents.add(intent); - } - } - } - - /** - * Reads policy intents and policy sets associated with an operation. - * @param subject - * @param operation - * @param reader - */ - public void readPolicies(Object subject, Operation operation, XMLStreamReader reader) { - readIntents(subject, operation, reader); - readPolicySets(subject, operation, reader); - } - - /** - * Reads policy intents and policy sets. - * @param subject - * @param reader - */ - public void readPolicies(Object subject, XMLStreamReader reader) { - readPolicies(subject, null, reader); - } - - /** - * Reads policy sets associated with an operation. - * @param subject - * @param operation - * @param reader - */ - private void readPolicySets(Object subject, Operation operation, XMLStreamReader reader) { - if (!(subject instanceof PolicySubject)) { - return; - } - PolicySubject policySubject = (PolicySubject)subject; - String value = reader.getAttributeValue(null, POLICY_SETS); - if (value != null) { - List policySets = policySubject.getPolicySets(); - for (StringTokenizer tokens = new StringTokenizer(value); tokens.hasMoreTokens();) { - QName qname = getQNameValue(reader, tokens.nextToken()); - PolicySet policySet = policyFactory.createPolicySet(); - policySet.setName(qname); - if (operation != null) { - //FIXME Don't we need to handle policySet specification - // on an operation basis? - //policySet.getOperations().add(operation); - } - policySets.add(policySet); - } - } - } - - /** - * Write policies - * @param subject - * @return - */ - XAttr writePolicies(Object subject) throws XMLStreamException { - return writePolicies(subject, (Operation)null); - } - - /** - * Write policies - * @param subject - * @return - */ - public void writePolicyAttributes(Object subject, XMLStreamWriter writer) throws XMLStreamException { - writePolicyAttributes(subject, (Operation)null, writer); - } - - /** - * Write policies associated with an operation - * @param subject - * @param operation - * @return - */ - XAttr writePolicies(Object subject, Operation operation) { - List attrs =new ArrayList(); - attrs.add(writeIntents(subject, operation)); - attrs.add(writePolicySets(subject, operation)); - return new XAttr(null, attrs); - } - - /** - * Write policies - * @param subject - * @return - */ - public void writePolicyAttributes(Object subject, Operation operation, XMLStreamWriter writer) throws XMLStreamException { - XAttr attr = writePolicies(subject, operation); - attr.write(writer); - } - - /** - * Write policy intents associated with an operation. - * @param subject - * @param operation - */ - private XAttr writeIntents(Object subject, Operation operation) { - if (!(subject instanceof PolicySubject)) { - return null; - } - PolicySubject intentAttachPoint = (PolicySubject)subject; - List qnames = new ArrayList(); - for (Intent intent: intentAttachPoint.getRequiredIntents()) { - qnames.add(intent.getName()); - } - return new XAttr(Constants.REQUIRES, qnames); - } - - /** - * Write policy sets associated with an operation. - * @param subject - * @param operation - */ - private XAttr writePolicySets(Object subject, Operation operation) { - if (!(subject instanceof PolicySubject)) { - return null; - } - PolicySubject policySetAttachPoint = (PolicySubject)subject; - List qnames = new ArrayList(); - for (PolicySet policySet: policySetAttachPoint.getPolicySets()) { - qnames.add(policySet.getName()); - } - return new XAttr(Constants.POLICY_SETS, qnames); - } - - public void resolvePolicies(Object subject, ModelResolver resolver, ProcessorContext context) { - if ( subject instanceof PolicySubject ) { - PolicySubject policySetAttachPoint = (PolicySubject)subject; - - List requiredIntents = new ArrayList(); - Intent resolvedIntent = null; - - if ( policySetAttachPoint.getRequiredIntents() != null && policySetAttachPoint.getRequiredIntents().size() > 0 ) { - for ( Intent intent : policySetAttachPoint.getRequiredIntents() ) { - resolvedIntent = resolver.resolveModel(Intent.class, intent, context); - requiredIntents.add(resolvedIntent); - } - policySetAttachPoint.getRequiredIntents().clear(); - policySetAttachPoint.getRequiredIntents().addAll(requiredIntents); - } - - if ( policySetAttachPoint.getPolicySets() != null && policySetAttachPoint.getPolicySets().size() > 0 ) { - List resolvedPolicySets = new ArrayList(); - PolicySet resolvedPolicySet = null; - for ( PolicySet policySet : policySetAttachPoint.getPolicySets() ) { - resolvedPolicySet = resolver.resolveModel(PolicySet.class, policySet, context); - resolvedPolicySets.add(resolvedPolicySet); - } - policySetAttachPoint.getPolicySets().clear(); - policySetAttachPoint.getPolicySets().addAll(resolvedPolicySets); - } - } - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/assembly/xml/SCABindingProcessor.java b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/assembly/xml/SCABindingProcessor.java deleted file mode 100644 index 28f4f9fb25..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/assembly/xml/SCABindingProcessor.java +++ /dev/null @@ -1,132 +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 org.apache.tuscany.sca.assembly.xml; - -import static javax.xml.stream.XMLStreamConstants.END_ELEMENT; - -import javax.xml.namespace.QName; -import javax.xml.stream.XMLStreamException; -import javax.xml.stream.XMLStreamReader; -import javax.xml.stream.XMLStreamWriter; - -import org.apache.tuscany.sca.assembly.SCABinding; -import org.apache.tuscany.sca.assembly.SCABindingFactory; -import org.apache.tuscany.sca.contribution.processor.BaseStAXArtifactProcessor; -import org.apache.tuscany.sca.contribution.processor.ContributionReadException; -import org.apache.tuscany.sca.contribution.processor.ContributionResolveException; -import org.apache.tuscany.sca.contribution.processor.ContributionWriteException; -import org.apache.tuscany.sca.contribution.processor.ProcessorContext; -import org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessor; -import org.apache.tuscany.sca.contribution.resolver.ModelResolver; -import org.apache.tuscany.sca.core.FactoryExtensionPoint; -import org.apache.tuscany.sca.policy.ExtensionType; -import org.apache.tuscany.sca.policy.PolicyFactory; -import org.apache.tuscany.sca.policy.PolicySubject; - -/** - * A processor to read the XML that describes the SCA binding. - * - * @version $Rev$ $Date$ - */ - -public class SCABindingProcessor extends BaseStAXArtifactProcessor implements StAXArtifactProcessor { - private static final String NAME = "name"; - private static final String URI = "uri"; - - private static final String SCA11_NS = "http://docs.oasis-open.org/ns/opencsa/sca/200912"; - private static final String BINDING_SCA = "binding.sca"; - private static final QName BINDING_SCA_QNAME = new QName(SCA11_NS, BINDING_SCA); - - private PolicyFactory policyFactory; - private SCABindingFactory scaBindingFactory; - private PolicySubjectProcessor policyProcessor; - private PolicyFactory intentAttachPointTypeFactory; - - - public SCABindingProcessor(FactoryExtensionPoint modelFactories) { - this.policyFactory = modelFactories.getFactory(PolicyFactory.class); - this.scaBindingFactory = modelFactories.getFactory(SCABindingFactory.class); - policyProcessor = new PolicySubjectProcessor(policyFactory); - this.intentAttachPointTypeFactory = modelFactories.getFactory(PolicyFactory.class); - } - - public QName getArtifactType() { - return BINDING_SCA_QNAME; - } - - public Class getModelType() { - return SCABinding.class; - } - - public SCABinding read(XMLStreamReader reader, ProcessorContext context) throws ContributionReadException, XMLStreamException { - SCABinding scaBinding = scaBindingFactory.createSCABinding(); - ExtensionType bindingType = intentAttachPointTypeFactory.createBindingType(); - bindingType.setType(getArtifactType()); - bindingType.setUnresolved(true); - ((PolicySubject)scaBinding).setExtensionType(bindingType); - - // Read policies - policyProcessor.readPolicies(scaBinding, reader); - - // Read binding name - String name = reader.getAttributeValue(null, NAME); - if (name != null) { - scaBinding.setName(name); - } - - // Read binding URI - String uri = getURIString(reader, URI); - if (uri != null) { - scaBinding.setURI(uri); - } - - // Skip to end element - while (reader.hasNext()) { - if (reader.next() == END_ELEMENT && BINDING_SCA_QNAME.equals(reader.getName())) { - break; - } - } - return scaBinding; - } - - public void resolve(SCABinding model, ModelResolver resolver, ProcessorContext context) throws ContributionResolveException { - policyProcessor.resolvePolicies(model, resolver, context); - } - - public void write(SCABinding scaBinding, XMLStreamWriter writer, ProcessorContext context) throws ContributionWriteException, XMLStreamException { - - // Write - writer.writeStartElement(SCA11_NS, BINDING_SCA); - policyProcessor.writePolicyAttributes(scaBinding, writer); - - // Write binding name - if (scaBinding.getName() != null) { - writer.writeAttribute(NAME, scaBinding.getName()); - } - - // Write binding URI - if (scaBinding.getURI() != null) { - writer.writeAttribute(URI, scaBinding.getURI()); - } - - writer.writeEndElement(); - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/definitions/xml/DefaultDefinitionsExtensionPoint.java b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/definitions/xml/DefaultDefinitionsExtensionPoint.java deleted file mode 100644 index af59324c7c..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/definitions/xml/DefaultDefinitionsExtensionPoint.java +++ /dev/null @@ -1,128 +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 org.apache.tuscany.sca.definitions.xml; - -import java.io.IOException; -import java.net.URI; -import java.net.URL; -import java.util.ArrayList; -import java.util.Collection; -import java.util.HashSet; -import java.util.List; -import java.util.Set; -import java.util.logging.Level; -import java.util.logging.Logger; - -import org.apache.tuscany.sca.contribution.processor.ContributionReadException; -import org.apache.tuscany.sca.contribution.processor.ProcessorContext; -import org.apache.tuscany.sca.contribution.processor.URLArtifactProcessor; -import org.apache.tuscany.sca.contribution.processor.URLArtifactProcessorExtensionPoint; -import org.apache.tuscany.sca.core.ExtensionPointRegistry; -import org.apache.tuscany.sca.core.UtilityExtensionPoint; -import org.apache.tuscany.sca.definitions.Definitions; -import org.apache.tuscany.sca.extensibility.ServiceDeclaration; -import org.apache.tuscany.sca.extensibility.ServiceDiscovery; -import org.apache.tuscany.sca.monitor.MonitorFactory; - -/** - * Default implementation of an extension point for XML definitionss. - * - * @version $Rev$ $Date$ - */ -public class DefaultDefinitionsExtensionPoint implements DefinitionsExtensionPoint { - private static final Logger logger = Logger.getLogger(DefaultDefinitionsExtensionPoint.class.getName()); - private static final URI DEFINITIONS_URI = URI.create("META-INF/definitions.xml"); - private ExtensionPointRegistry registry; - private MonitorFactory monitorFactory; - private Set documents = new HashSet(); - private List definitions = new ArrayList(); - private boolean documentsLoaded; - private boolean loaded; - - public DefaultDefinitionsExtensionPoint(ExtensionPointRegistry registry) { - this.registry = registry; - this.monitorFactory = registry.getExtensionPoint(UtilityExtensionPoint.class).getUtility(MonitorFactory.class); - } - - public void addDefinitionsDocument(URL url) { - documents.add(url); - } - - public void removeDefinitionsDocument(URL url) { - documents.remove(url); - } - - /** - * Load definitions declarations from META-INF/services/ - * org.apache.tuscany.sca.contribution.processor.Definitions files - */ - private synchronized void loadDefinitionsDocuments() { - if (documentsLoaded) - return; - - // Get the definitions declarations - Collection definitionsDeclarations; - try { - definitionsDeclarations = registry.getServiceDiscovery().getServiceDeclarations(DEFINITIONS_FILE); - } catch (IOException e) { - throw new IllegalStateException(e); - } - - // Find each definitions - for (ServiceDeclaration definitionsDeclaration : definitionsDeclarations) { - URL url = definitionsDeclaration.getResource(definitionsDeclaration.getClassName()); - if (url == null) { - throw new IllegalArgumentException(definitionsDeclaration.getClassName() + " cannot be found"); - } - documents.add(url); - } - - documentsLoaded = true; - } - - public synchronized List getDefinitions() { - if (!loaded) { - loadDefinitionsDocuments(); - URLArtifactProcessorExtensionPoint processors = - registry.getExtensionPoint(URLArtifactProcessorExtensionPoint.class); - URLArtifactProcessor processor = processors.getProcessor(Definitions.class); - ProcessorContext context = new ProcessorContext(monitorFactory.createMonitor()); - for (URL url : documents) { - Definitions def; - try { - def = processor.read(null, DEFINITIONS_URI, url, context); - definitions.add(def); - } catch (ContributionReadException e) { - logger.log(Level.SEVERE, e.getMessage(), e); - } - } - loaded = true; - } - return definitions; - } - - public void addDefinitions(Definitions def) { - this.definitions.add(def); - } - - public void removeDefinitions(Definitions def) { - this.definitions.remove(def); - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/definitions/xml/DefinitionsDocumentProcessor.java b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/definitions/xml/DefinitionsDocumentProcessor.java deleted file mode 100644 index d0a42be34e..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/definitions/xml/DefinitionsDocumentProcessor.java +++ /dev/null @@ -1,171 +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 org.apache.tuscany.sca.definitions.xml; - -import java.io.IOException; -import java.io.InputStream; -import java.net.URI; -import java.net.URL; -import java.security.AccessController; -import java.security.PrivilegedActionException; -import java.security.PrivilegedExceptionAction; - -import javax.xml.stream.XMLInputFactory; -import javax.xml.stream.XMLStreamConstants; -import javax.xml.stream.XMLStreamException; -import javax.xml.stream.XMLStreamReader; - -import org.apache.tuscany.sca.common.java.io.IOHelper; -import org.apache.tuscany.sca.contribution.processor.ContributionReadException; -import org.apache.tuscany.sca.contribution.processor.ContributionResolveException; -import org.apache.tuscany.sca.contribution.processor.ProcessorContext; -import org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessor; -import org.apache.tuscany.sca.contribution.processor.URLArtifactProcessor; -import org.apache.tuscany.sca.contribution.processor.ValidatingXMLInputFactory; -import org.apache.tuscany.sca.contribution.resolver.ModelResolver; -import org.apache.tuscany.sca.core.FactoryExtensionPoint; -import org.apache.tuscany.sca.definitions.Definitions; -import org.apache.tuscany.sca.definitions.DefinitionsFactory; -import org.apache.tuscany.sca.definitions.util.DefinitionsUtil; -import org.apache.tuscany.sca.monitor.Monitor; -import org.apache.tuscany.sca.monitor.Problem; -import org.apache.tuscany.sca.monitor.Problem.Severity; - -/** - * A SCA Definitions Document processor. - * - * @version $Rev$ $Date$ - */ -public class DefinitionsDocumentProcessor implements URLArtifactProcessor { - private StAXArtifactProcessor extensionProcessor; - private XMLInputFactory inputFactory; - private DefinitionsFactory definitionsFactory; - - - - /** - * Constructs a new SCADefinitions processor. - * - * @param modelFactories - * @param staxProcessor - */ - public DefinitionsDocumentProcessor(FactoryExtensionPoint modelFactories, - StAXArtifactProcessor staxProcessor) { - this.extensionProcessor = (StAXArtifactProcessor)staxProcessor; - this.inputFactory = modelFactories.getFactory(ValidatingXMLInputFactory.class); - this.definitionsFactory = modelFactories.getFactory(DefinitionsFactory.class); - } - - /** - * Report a exception. - * - * @param problems - * @param message - * @param model - */ - private void error(Monitor monitor, String message, Object model, Exception ex) { - if (monitor != null) { - Problem problem = - monitor.createProblem(this.getClass().getName(), - Messages.RESOURCE_BUNDLE, - Severity.ERROR, - model, - message, - ex); - monitor.problem(problem); - } - } - - public Definitions read(URL contributionURL, final URI uri, final URL url, ProcessorContext context) throws ContributionReadException { - InputStream urlStream = null; - Monitor monitor = context.getMonitor(); - monitor.pushContext("Definitions: " + url); - try { - // Allow privileged access to open URL stream. Add FilePermission to added to security - // policy file. - try { - urlStream = AccessController.doPrivileged(new PrivilegedExceptionAction() { - public InputStream run() throws IOException { - return IOHelper.openStream(url); - } - }); - } catch (PrivilegedActionException e) { - error(monitor, "PrivilegedActionException", url, (IOException)e.getException()); - throw (IOException)e.getException(); - } - - //urlStream = createInputStream(url); - XMLStreamReader reader = inputFactory.createXMLStreamReader(url.toString(), urlStream); - ValidatingXMLInputFactory.setMonitor(reader, context.getMonitor()); - Definitions definitions = definitionsFactory.createDefinitions(); - int event = reader.getEventType(); - while (reader.hasNext()) { - event = reader.next(); - - // We only deal with the root element - if (event == XMLStreamConstants.START_ELEMENT) { - // QName name = reader.getName(); - Object model = extensionProcessor.read(reader, context); - if (model instanceof Definitions) { - DefinitionsUtil.aggregate((Definitions)model, definitions, monitor); - return definitions; - } else { - error(monitor, "ContributionReadException", model, null); - } - } - } - - return definitions; - } catch (XMLStreamException e) { - ContributionReadException ce = new ContributionReadException(e); - error(monitor, "ContributionReadException", inputFactory, ce); - throw ce; - } catch (IOException e) { - ContributionReadException ce = new ContributionReadException(e); - error(monitor, "ContributionReadException", inputFactory, ce); - throw ce; - } finally { - - try { - if (urlStream != null) { - urlStream.close(); - urlStream = null; - } - } catch (IOException ioe) { - //ignore - } - - monitor.popContext(); - } - } - - public void resolve(Definitions scaDefinitions, ModelResolver resolver, ProcessorContext context) throws ContributionResolveException { - extensionProcessor.resolve(scaDefinitions, resolver, context); - } - - public String getArtifactType() { - return "/META-INF/definitions.xml"; - } - - public Class getModelType() { - return Definitions.class; - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/definitions/xml/DefinitionsExtensionPoint.java b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/definitions/xml/DefinitionsExtensionPoint.java deleted file mode 100644 index 3058b1f5b6..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/definitions/xml/DefinitionsExtensionPoint.java +++ /dev/null @@ -1,64 +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 org.apache.tuscany.sca.definitions.xml; - -import java.net.URL; -import java.util.List; - -import org.apache.tuscany.sca.definitions.Definitions; - -/** - * An extension point for built-in SCA intent/policySet definition files - * - * @version $Rev$ $Date$ - */ -public interface DefinitionsExtensionPoint { - String DEFINITIONS_FILE = "org.apache.tuscany.sca.definitions.xml.Definitions"; - - /** - * Add a definitions document - * - * @param url the URL of the definitions - */ - void addDefinitionsDocument(URL url); - - /** - * Remove a definitions document - * - * @param url the URL of the definitions - */ - void removeDefinitionsDocument(URL url); - - /** - * @param definitions - */ - void addDefinitions(Definitions definitions); - /** - * @param definitions - */ - void removeDefinitions(Definitions definitions); - - /** - * Get the list of definitions - * @return A list of definitions - */ - List getDefinitions(); - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/definitions/xml/DefinitionsProcessor.java b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/definitions/xml/DefinitionsProcessor.java deleted file mode 100644 index 006b80ee31..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/definitions/xml/DefinitionsProcessor.java +++ /dev/null @@ -1,292 +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 org.apache.tuscany.sca.definitions.xml; - -import static javax.xml.stream.XMLStreamConstants.END_ELEMENT; -import static javax.xml.stream.XMLStreamConstants.START_ELEMENT; - -import java.util.ArrayList; -import java.util.List; - -import javax.xml.namespace.QName; -import javax.xml.stream.XMLStreamConstants; -import javax.xml.stream.XMLStreamException; -import javax.xml.stream.XMLStreamReader; -import javax.xml.stream.XMLStreamWriter; - -import org.apache.tuscany.sca.assembly.Binding; -import org.apache.tuscany.sca.contribution.processor.BaseStAXArtifactProcessor; -import org.apache.tuscany.sca.contribution.processor.ContributionReadException; -import org.apache.tuscany.sca.contribution.processor.ContributionResolveException; -import org.apache.tuscany.sca.contribution.processor.ContributionWriteException; -import org.apache.tuscany.sca.contribution.processor.ProcessorContext; -import org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessor; -import org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessorExtensionPoint; -import org.apache.tuscany.sca.contribution.resolver.ModelResolver; -import org.apache.tuscany.sca.core.ExtensionPointRegistry; -import org.apache.tuscany.sca.core.FactoryExtensionPoint; -import org.apache.tuscany.sca.definitions.Definitions; -import org.apache.tuscany.sca.definitions.DefinitionsFactory; -import org.apache.tuscany.sca.monitor.Monitor; -import org.apache.tuscany.sca.policy.BindingType; -import org.apache.tuscany.sca.policy.ImplementationType; -import org.apache.tuscany.sca.policy.Intent; -import org.apache.tuscany.sca.policy.IntentMap; -import org.apache.tuscany.sca.policy.PolicyFactory; -import org.apache.tuscany.sca.policy.PolicySet; -import org.apache.tuscany.sca.policy.Qualifier; - -/** - * Processor for SCA Definitions - * - * @version $Rev$ $Date$ - */ -public class DefinitionsProcessor extends BaseStAXArtifactProcessor implements StAXArtifactProcessor { - private ExtensionPointRegistry registry; - private StAXArtifactProcessorExtensionPoint processors; - private StAXArtifactProcessor extensionProcessor; - private DefinitionsFactory definitionsFactory; - private PolicyFactory policyFactory; - - public static final String SCA11_NS = "http://docs.oasis-open.org/ns/opencsa/sca/200912"; - public static final String BINDING = "binding"; - public static final String IMPLEMENTATION = "implementation"; - public static final String DEFINITIONS = "definitions"; - public static final QName DEFINITIONS_QNAME = new QName(SCA11_NS, DEFINITIONS); - public static final String TARGET_NAMESPACE = "targetNamespace"; - public static final String NAME = "name"; - - public DefinitionsProcessor(ExtensionPointRegistry registry, - StAXArtifactProcessor extensionProcessor) { - this.registry = registry; - this.extensionProcessor = extensionProcessor; - this.processors = registry.getExtensionPoint(StAXArtifactProcessorExtensionPoint.class); - FactoryExtensionPoint factoryExtensionPoint = registry.getExtensionPoint(FactoryExtensionPoint.class); - this.definitionsFactory = factoryExtensionPoint.getFactory(DefinitionsFactory.class); - this.policyFactory = factoryExtensionPoint.getFactory(PolicyFactory.class); - } - - public Definitions read(XMLStreamReader reader, ProcessorContext context) throws ContributionReadException, XMLStreamException { - QName name = null; - Definitions definitions = null; - String targetNamespace = null; - - while (reader.hasNext()) { - int event = reader.getEventType(); - switch (event) { - case START_ELEMENT: { - name = reader.getName(); - if (DEFINITIONS_QNAME.equals(name)) { - definitions = definitionsFactory.createDefinitions(); - targetNamespace = getURIString(reader, TARGET_NAMESPACE); - definitions.setTargetNamespace(targetNamespace); - } else { - Object extension = extensionProcessor.read(reader, context); - if (extension != null) { - if (extension instanceof Intent) { - Intent intent = (Intent)extension; - intent.setName(new QName(targetNamespace, intent.getName().getLocalPart())); - definitions.getIntents().add(intent); - for (Intent i : intent.getQualifiedIntents()) { - i.setName(new QName(targetNamespace, i.getName().getLocalPart())); - } - } else if (extension instanceof PolicySet) { - PolicySet policySet = (PolicySet)extension; - policySet.setName(new QName(targetNamespace, policySet.getName().getLocalPart())); - definitions.getPolicySets().add(policySet); - } else if (extension instanceof Binding) { - Binding binding = (Binding)extension; - definitions.getBindings().add(binding); - } else if (extension instanceof BindingType) { - definitions.getBindingTypes().add((BindingType)extension); - } else if (extension instanceof ImplementationType) { - definitions.getImplementationTypes().add((ImplementationType)extension); - } - } - break; - } - } - - case XMLStreamConstants.CHARACTERS: - break; - - case END_ELEMENT: - name = reader.getName(); - if (DEFINITIONS_QNAME.equals(name)) { - return definitions; - } - break; - } - - //Read the next element - if (reader.hasNext()) { - reader.next(); - } - } - return definitions; - } - - public void write(Definitions definitions, XMLStreamWriter writer, ProcessorContext context) throws ContributionWriteException, - XMLStreamException { - - writeStartDocument(writer, SCA11_NS, DEFINITIONS, new XAttr(TARGET_NAMESPACE, definitions.getTargetNamespace())); - - for (Intent policyIntent : definitions.getIntents()) { - extensionProcessor.write(policyIntent, writer, context); - } - - for (PolicySet policySet : definitions.getPolicySets()) { - extensionProcessor.write(policySet, writer, context); - } - - for (Binding binding : definitions.getBindings()) { - extensionProcessor.write(binding, writer, context); - } - - for (BindingType bindingType : definitions.getBindingTypes()) { - extensionProcessor.write(bindingType, writer, context); - } - - for (ImplementationType implType : definitions.getImplementationTypes()) { - extensionProcessor.write(implType, writer, context); - } - - writeEndDocument(writer); - } - - public void resolve(Definitions scaDefns, ModelResolver resolver, ProcessorContext context) throws ContributionResolveException { - - // start by adding all of the top level artifacts into the resolver as there - // are many cross artifact references in a definitions file and we don't want - // to be dependent on the order things appear - - List intents = new ArrayList(); - List policySets = new ArrayList(); - List referredPolicySets = new ArrayList(); - - for (Intent intent : scaDefns.getIntents()) { - intents.add(intent); - resolver.addModel(intent, context); - for (Intent i : intent.getQualifiedIntents()) { - intents.add(i); - resolver.addModel(i, context); - } - } - - for (PolicySet policySet : scaDefns.getPolicySets()) { - if (policySet.getReferencedPolicySets().isEmpty()) { - policySets.add(policySet); - } else { - referredPolicySets.add(policySet); - } - - resolver.addModel(policySet, context); - } - - for (BindingType bindingType : scaDefns.getBindingTypes()) { - resolver.addModel(bindingType, context); - } - - for (ImplementationType implType : scaDefns.getImplementationTypes()) { - resolver.addModel(implType, context); - } - - // now resolve everything to ensure that any references between - // artifacts are satisfied - - for (Intent policyIntent : intents) - extensionProcessor.resolve(policyIntent, resolver, context); - - for (PolicySet policySet : policySets) - extensionProcessor.resolve(policySet, resolver, context); - - for (PolicySet policySet : referredPolicySets) - extensionProcessor.resolve(policySet, resolver, context); - - for (Binding binding : scaDefns.getBindings()) { - extensionProcessor.resolve(binding, resolver, context); - } - - for (BindingType bindingType : scaDefns.getBindingTypes()) { - extensionProcessor.resolve(bindingType, resolver, context); - if (processors.getProcessor(bindingType.getType()) == null){ - Monitor.error(context.getMonitor(), - this, - "org.apache.tuscany.sca.definitions.xml.definitions-xml-validation-messages", - "BindingTypeNotFound", - bindingType.getType().toString()); - } - } - - for (ImplementationType implementationType : scaDefns.getImplementationTypes()) { - extensionProcessor.resolve(implementationType, resolver, context); - if (processors.getProcessor(implementationType.getType()) == null){ - Monitor.error(context.getMonitor(), - this, - "org.apache.tuscany.sca.definitions.xml.definitions-xml-validation-messages", - "ImplementationTypeNotFound", - implementationType.getType().toString()); - } - } - - - // Flat intentMap structure by creating a policySet for each one - List copy = new ArrayList(scaDefns.getPolicySets()); - for (PolicySet policySet : copy) { - //[lresende] Do we need to remove the current policySet and just include the flat one based on qualifiers ? - //If we don't, the policy is being resolved to the one that has intentMap and no direct concrete policies - boolean remove = false; - - //process intent maps - for(IntentMap intentMap : policySet.getIntentMaps()) { - for(Qualifier qualifier : intentMap.getQualifiers()) { - remove = true; - - PolicySet qualifiedPolicySet = policyFactory.createPolicySet(); - qualifiedPolicySet.setAppliesTo(policySet.getAppliesTo()); - qualifiedPolicySet.setAppliesToXPathExpression(policySet.getAttachToXPathExpression()); - qualifiedPolicySet.setAttachTo(policySet.getAttachTo()); - qualifiedPolicySet.setAttachToXPathExpression(policySet.getAttachToXPathExpression()); - - qualifiedPolicySet.setName(qualifier.getIntent().getName()); - qualifiedPolicySet.getProvidedIntents().clear(); - qualifiedPolicySet.getProvidedIntents().add(qualifier.getIntent()); - qualifiedPolicySet.getPolicies().clear(); - qualifiedPolicySet.getPolicies().addAll(qualifier.getPolicies()); - - scaDefns.getPolicySets().add(qualifiedPolicySet); - } - } - - if(remove) { - scaDefns.getPolicySets().remove(policySet); - } - } - } - - public QName getArtifactType() { - return DEFINITIONS_QNAME; - } - - public Class getModelType() { - return Definitions.class; - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/definitions/xml/Messages.java b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/definitions/xml/Messages.java deleted file mode 100644 index 38cc4a9de2..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/definitions/xml/Messages.java +++ /dev/null @@ -1,27 +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 org.apache.tuscany.sca.definitions.xml; - -/** - * Constants for resource bundle names - */ -public interface Messages { - String RESOURCE_BUNDLE = "org.apache.tuscany.sca.definitions.xml.definitions-xml-validation-messages"; -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/policy/xml/BindingTypeProcessor.java b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/policy/xml/BindingTypeProcessor.java deleted file mode 100644 index 70c71c5f1f..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/policy/xml/BindingTypeProcessor.java +++ /dev/null @@ -1,65 +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 org.apache.tuscany.sca.policy.xml; - -import javax.xml.namespace.QName; - -import org.apache.tuscany.sca.contribution.processor.ContributionResolveException; -import org.apache.tuscany.sca.contribution.processor.ProcessorContext; -import org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessor; -import org.apache.tuscany.sca.contribution.resolver.ModelResolver; -import org.apache.tuscany.sca.core.FactoryExtensionPoint; -import org.apache.tuscany.sca.policy.BindingType; -import org.apache.tuscany.sca.policy.ExtensionType; -import org.apache.tuscany.sca.policy.PolicyFactory; - -/** - * Processor for handling XML models of BindingType meta data definitions - * - * @version $Rev$ $Date$ - */ -public class BindingTypeProcessor extends ExtensionTypeProcessor { - - public BindingTypeProcessor(PolicyFactory policyFactory, - StAXArtifactProcessor extensionProcessor) { - super(policyFactory, extensionProcessor); - } - - public BindingTypeProcessor(FactoryExtensionPoint modelFactories, - StAXArtifactProcessor extensionProcessor) { - super(modelFactories.getFactory(PolicyFactory.class), extensionProcessor); - } - - public QName getArtifactType() { - return BINDING_TYPE_QNAME; - } - - @Override - protected ExtensionType resolveExtensionType(ExtensionType extnType, ModelResolver resolver, ProcessorContext context) - throws ContributionResolveException { - if (extnType instanceof BindingType) { - BindingType bindingType = (BindingType)extnType; - return resolver.resolveModel(BindingType.class, bindingType, context); - } else { - return extnType; - } - - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/policy/xml/ExtensionTypeProcessor.java b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/policy/xml/ExtensionTypeProcessor.java deleted file mode 100644 index 95d8e67bf7..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/policy/xml/ExtensionTypeProcessor.java +++ /dev/null @@ -1,250 +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 org.apache.tuscany.sca.policy.xml; - -import java.util.ArrayList; -import java.util.List; -import java.util.StringTokenizer; - -import javax.xml.namespace.QName; -import javax.xml.stream.XMLStreamException; -import javax.xml.stream.XMLStreamReader; -import javax.xml.stream.XMLStreamWriter; - -import org.apache.tuscany.sca.contribution.processor.BaseStAXArtifactProcessor; -import org.apache.tuscany.sca.contribution.processor.ContributionReadException; -import org.apache.tuscany.sca.contribution.processor.ContributionResolveException; -import org.apache.tuscany.sca.contribution.processor.ContributionWriteException; -import org.apache.tuscany.sca.contribution.processor.ProcessorContext; -import org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessor; -import org.apache.tuscany.sca.contribution.resolver.ModelResolver; -import org.apache.tuscany.sca.monitor.Monitor; -import org.apache.tuscany.sca.monitor.Problem; -import org.apache.tuscany.sca.monitor.Problem.Severity; -import org.apache.tuscany.sca.policy.BindingType; -import org.apache.tuscany.sca.policy.ExtensionType; -import org.apache.tuscany.sca.policy.ImplementationType; -import org.apache.tuscany.sca.policy.Intent; -import org.apache.tuscany.sca.policy.PolicyFactory; - -/** - * Processor for handling XML models of ExtensionType meta data definitions - * - * @version $Rev$ $Date$ - */ -abstract class ExtensionTypeProcessor extends BaseStAXArtifactProcessor implements - StAXArtifactProcessor, PolicyConstants { - - private PolicyFactory policyFactory; - - - protected abstract ExtensionType resolveExtensionType(ExtensionType extnType, ModelResolver resolver, ProcessorContext context) - throws ContributionResolveException; - - public ExtensionTypeProcessor(PolicyFactory policyFactory, - StAXArtifactProcessor extensionProcessor) { - this.policyFactory = policyFactory; - } - - /** - * Report a error. - * - * @param problems - * @param message - * @param model - */ - private void error(Monitor monitor, String message, Object model, Object... messageParameters) { - if (monitor != null) { - Problem problem = - monitor.createProblem(this.getClass().getName(), - Messages.RESOURCE_BUNDLE, - Severity.ERROR, - model, - message, - (Object[])messageParameters); - monitor.problem(problem); - } - } - - public ExtensionType read(XMLStreamReader reader, ProcessorContext context) throws ContributionReadException, XMLStreamException { - QName extType = getArtifactType(); - QName type = getQName(reader, "type"); - - if (type != null) { - ExtensionType extensionType = null; - if (BINDING_TYPE_QNAME.equals(extType)) { - extensionType = policyFactory.createBindingType(); - } else if (IMPLEMENTATION_TYPE_QNAME.equals(extType)) { - extensionType = policyFactory.createImplementationType(); - } else { - error(context.getMonitor(), "UnrecognizedExtensionType", reader, type); - return null; - //throw new ContributionReadException("Unrecognized ExtensionType - " + type); - } - extensionType.setType(type); - extensionType.setUnresolved(true); - - readAlwaysProvidedIntents(extensionType, reader); - readMayProvideIntents(extensionType, reader); - return extensionType; - - } else { - error(context.getMonitor(), "RequiredAttributeMissing", reader, extType); - //throw new ContributionReadException("Required attribute '" + TYPE + - //"' missing from BindingType Definition"); - } - return null; - } - - private void readAlwaysProvidedIntents(ExtensionType extnType, XMLStreamReader reader) { - String value = reader.getAttributeValue(null, ALWAYS_PROVIDES); - if (value != null) { - List alwaysProvided = extnType.getAlwaysProvidedIntents(); - for (StringTokenizer tokens = new StringTokenizer(value); tokens.hasMoreTokens();) { - QName qname = getQNameValue(reader, tokens.nextToken()); - Intent intent = policyFactory.createIntent(); - intent.setName(qname); - alwaysProvided.add(intent); - } - } - } - - private void readMayProvideIntents(ExtensionType extnType, XMLStreamReader reader) { - String value = reader.getAttributeValue(null, MAY_PROVIDE); - if (value != null) { - List mayProvide = extnType.getMayProvidedIntents(); - for (StringTokenizer tokens = new StringTokenizer(value); tokens.hasMoreTokens();) { - QName qname = getQNameValue(reader, tokens.nextToken()); - Intent intent = policyFactory.createIntent(); - intent.setName(qname); - mayProvide.add(intent); - } - } - } - - public void write(ExtensionType extnType, XMLStreamWriter writer, ProcessorContext context) throws ContributionWriteException, - XMLStreamException { - - // Write an - if (extnType instanceof BindingType) { - writer.writeStartElement(SCA11_NS, BINDING_TYPE); - } else if (extnType instanceof ImplementationType) { - writer.writeStartElement(SCA11_NS, IMPLEMENTATION_TYPE); - } - - writeAlwaysProvidesIntentsAttribute(extnType, writer); - writeMayProvideIntentsAttribute(extnType, writer); - - writer.writeEndElement(); - } - - private void writeMayProvideIntentsAttribute(ExtensionType extnType, XMLStreamWriter writer) - throws XMLStreamException { - StringBuffer sb = new StringBuffer(); - for (Intent intent : extnType.getMayProvidedIntents()) { - writer.writeNamespace(intent.getName().getPrefix(), intent.getName().getNamespaceURI()); - sb.append(intent.getName().getPrefix() + COLON + intent.getName().getLocalPart()); - sb.append(WHITE_SPACE); - } - - if (sb.length() > 0) { - writer.writeAttribute(MAY_PROVIDE, sb.toString()); - } - } - - private void writeAlwaysProvidesIntentsAttribute(ExtensionType extnType, XMLStreamWriter writer) - throws XMLStreamException { - StringBuffer sb = new StringBuffer(); - for (Intent intent : extnType.getAlwaysProvidedIntents()) { - writer.writeNamespace(intent.getName().getPrefix(), intent.getName().getNamespaceURI()); - sb.append(intent.getName().getPrefix() + COLON + intent.getName().getLocalPart()); - sb.append(WHITE_SPACE); - } - - if (sb.length() > 0) { - writer.writeAttribute(ALWAYS_PROVIDES, sb.toString()); - - } - } - - public void resolve(ExtensionType extnType, ModelResolver resolver, ProcessorContext context) throws ContributionResolveException { - - if (extnType != null && extnType.isUnresolved()) { - resolveAlwaysProvidedIntents(extnType, resolver, context); - resolveMayProvideIntents(extnType, resolver, context); - extnType.setUnresolved(false); - //resolveExtensionType(extnType, resolver); - } - } - - private void resolveAlwaysProvidedIntents(ExtensionType extensionType, ModelResolver resolver, ProcessorContext context) - throws ContributionResolveException { - if (extensionType != null) { - // resolve all provided intents - List alwaysProvided = new ArrayList(); - for (Intent providedIntent : extensionType.getAlwaysProvidedIntents()) { - if (providedIntent.isUnresolved()) { - providedIntent = resolver.resolveModel(Intent.class, providedIntent, context); - if (!providedIntent.isUnresolved()) { - alwaysProvided.add(providedIntent); - } else { - error(context.getMonitor(), "AlwaysProvidedIntentNotFound", resolver, providedIntent, extensionType); - //throw new ContributionResolveException("Always Provided Intent - " + providedIntent - //+ " not found for ExtensionType " - //+ extensionType); - } - } else { - alwaysProvided.add(providedIntent); - } - } - extensionType.getAlwaysProvidedIntents().clear(); - extensionType.getAlwaysProvidedIntents().addAll(alwaysProvided); - } - } - - private void resolveMayProvideIntents(ExtensionType extensionType, ModelResolver resolver, ProcessorContext context) - throws ContributionResolveException { - if (extensionType != null) { - // resolve all provided intents - List mayProvide = new ArrayList(); - for (Intent providedIntent : extensionType.getMayProvidedIntents()) { - if (providedIntent.isUnresolved()) { - providedIntent = resolver.resolveModel(Intent.class, providedIntent, context); - if (!providedIntent.isUnresolved()) { - mayProvide.add(providedIntent); - } else { - error(context.getMonitor(), "MayProvideIntentNotFound", resolver, providedIntent, extensionType); - //throw new ContributionResolveException("May Provide Intent - " + providedIntent - //+ " not found for ExtensionType " - //+ extensionType); - } - } else { - mayProvide.add(providedIntent); - } - } - extensionType.getMayProvidedIntents().clear(); - extensionType.getMayProvidedIntents().addAll(mayProvide); - } - } - - public Class getModelType() { - return ExtensionType.class; - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/policy/xml/ImplementationTypeProcessor.java b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/policy/xml/ImplementationTypeProcessor.java deleted file mode 100644 index ec4e17385f..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/policy/xml/ImplementationTypeProcessor.java +++ /dev/null @@ -1,65 +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 org.apache.tuscany.sca.policy.xml; - -import javax.xml.namespace.QName; - -import org.apache.tuscany.sca.contribution.processor.ContributionResolveException; -import org.apache.tuscany.sca.contribution.processor.ProcessorContext; -import org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessor; -import org.apache.tuscany.sca.contribution.resolver.ModelResolver; -import org.apache.tuscany.sca.core.FactoryExtensionPoint; -import org.apache.tuscany.sca.policy.ExtensionType; -import org.apache.tuscany.sca.policy.ImplementationType; -import org.apache.tuscany.sca.policy.PolicyFactory; - -/** - * Processor for handling XML models of ImplementationType meta data definitions - * - * @version $Rev$ $Date$ - */ -public class ImplementationTypeProcessor extends ExtensionTypeProcessor { - - public ImplementationTypeProcessor(PolicyFactory policyFactory, - StAXArtifactProcessor extensionProcessor) { - super(policyFactory, extensionProcessor); - } - - public ImplementationTypeProcessor(FactoryExtensionPoint modelFactories, - StAXArtifactProcessor extensionProcessor) { - super(modelFactories.getFactory(PolicyFactory.class), extensionProcessor); - } - - public QName getArtifactType() { - return IMPLEMENTATION_TYPE_QNAME; - } - - @Override - protected ExtensionType resolveExtensionType(ExtensionType extnType, ModelResolver resolver, ProcessorContext context) - throws ContributionResolveException { - if (extnType instanceof ImplementationType) { - ImplementationType implType = (ImplementationType)extnType; - return resolver.resolveModel(ImplementationType.class, implType, context); - } else { - return extnType; - } - - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/policy/xml/IntentProcessor.java b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/policy/xml/IntentProcessor.java deleted file mode 100644 index 296677d8b8..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/policy/xml/IntentProcessor.java +++ /dev/null @@ -1,424 +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 org.apache.tuscany.sca.policy.xml; - -import static javax.xml.stream.XMLStreamConstants.END_ELEMENT; -import static javax.xml.stream.XMLStreamConstants.START_ELEMENT; - -import java.util.ArrayList; -import java.util.Collection; -import java.util.HashSet; -import java.util.List; -import java.util.StringTokenizer; - -import javax.xml.namespace.QName; -import javax.xml.stream.XMLStreamException; -import javax.xml.stream.XMLStreamReader; -import javax.xml.stream.XMLStreamWriter; - -import org.apache.tuscany.sca.contribution.processor.BaseStAXArtifactProcessor; -import org.apache.tuscany.sca.contribution.processor.ContributionReadException; -import org.apache.tuscany.sca.contribution.processor.ContributionResolveException; -import org.apache.tuscany.sca.contribution.processor.ContributionWriteException; -import org.apache.tuscany.sca.contribution.processor.ProcessorContext; -import org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessor; -import org.apache.tuscany.sca.contribution.resolver.ModelResolver; -import org.apache.tuscany.sca.core.FactoryExtensionPoint; -import org.apache.tuscany.sca.monitor.Monitor; -import org.apache.tuscany.sca.monitor.Problem; -import org.apache.tuscany.sca.monitor.Problem.Severity; -import org.apache.tuscany.sca.policy.ExtensionType; -import org.apache.tuscany.sca.policy.Intent; -import org.apache.tuscany.sca.policy.PolicyFactory; -import org.apache.tuscany.sca.policy.Intent.Type; - -/** - * Processor for handling XML models of PolicyIntent definitions - * - * @version $Rev$ $Date$ - */ -public class IntentProcessor extends BaseStAXArtifactProcessor implements StAXArtifactProcessor, - PolicyConstants { - - private PolicyFactory policyFactory; - - - public IntentProcessor(FactoryExtensionPoint modelFactories) { - this.policyFactory = modelFactories.getFactory(PolicyFactory.class); - } - - public IntentProcessor(PolicyFactory policyFactory) { - this.policyFactory = policyFactory; - } - - /** - * Report a error. - * - * @param problems - * @param message - * @param model - */ - private void error(Monitor monitor, String message, Object model, Object... messageParameters) { - if (monitor != null) { - Problem problem = - monitor.createProblem(this.getClass().getName(), - Messages.RESOURCE_BUNDLE, - Severity.ERROR, - model, - message, - messageParameters); - monitor.problem(problem); - } - } - - private void warn(Monitor monitor, String message, Object model, Object... messageParameters) { - if (monitor != null) { - Problem problem = - monitor.createProblem(this.getClass().getName(), - Messages.RESOURCE_BUNDLE, - Severity.WARNING, - model, - message, - messageParameters); - monitor.problem(problem); - } - } - - public Intent read(XMLStreamReader reader, ProcessorContext context) throws ContributionReadException, XMLStreamException { - Intent intent = null; - String intentLocalName = reader.getAttributeValue(null, NAME); - if (intentLocalName == null) { - error(context.getMonitor(), "IntentNameMissing", reader); - return null; - } - - String intentType = reader.getAttributeValue(null, INTENT_TYPE); - if (intentType == null) { - intentType = Intent.Type.interaction.name(); - } - - intent = policyFactory.createIntent(); - - // [rfeng] the target namespace is not available, set the local part for now - // This will be changed in the definitions processor - intent.setName(new QName(intentLocalName)); - intent.setType(Type.valueOf(intentType)); - - readRequiredIntents(intent, reader, context); - readExcludedIntents(intent, reader); - - readConstrainedTypes(intent, reader); - - Intent current = intent; - int event = reader.getEventType(); - QName name = null; - while (reader.hasNext()) { - event = reader.getEventType(); - switch (event) { - case START_ELEMENT: { - name = reader.getName(); - if (DESCRIPTION_QNAME.equals(name)) { - String text = reader.getElementText(); - if (text != null) { - text = text.trim(); - } - current.setDescription(text); - } else if (INTENT_QUALIFIER_QNAME.equals(name)) { - String qualifierName = reader.getAttributeValue(null, NAME); - String defaultQ = reader.getAttributeValue(null, DEFAULT); - boolean isDefault = defaultQ == null ? false : Boolean.parseBoolean(defaultQ); - String qualifiedIntentName = intentLocalName + QUALIFIER + qualifierName; - Intent qualified = policyFactory.createIntent(); - qualified.setType(intent.getType()); - qualified.setName(new QName(qualifiedIntentName)); - if (isDefault) { - if (intent.getDefaultQualifiedIntent() == null){ - intent.setDefaultQualifiedIntent(qualified); - } else { - Monitor.error(context.getMonitor(), - this, - Messages.RESOURCE_BUNDLE, - "MultipleDefaultQualifiers", - intent.getName().toString()); - } - } - - // check that the qualifier is unique - if ( !intent.getQualifiedIntents().contains(qualified)){ - intent.getQualifiedIntents().add(qualified); - } else { - Monitor.error(context.getMonitor(), - this, - Messages.RESOURCE_BUNDLE, - "QualifierIsNotUnique", - intent.getName().toString(), - qualifierName); - } - - qualified.setQualifiableIntent(intent); - current = qualified; - } - break; - } - case END_ELEMENT: { - name = reader.getName(); - if (INTENT_QUALIFIER_QNAME.equals(name)) { - current = intent; - } - break; - } - } - if (event == END_ELEMENT && POLICY_INTENT_QNAME.equals(reader.getName())) { - break; - } - - //Read the next element - if (reader.hasNext()) { - reader.next(); - } - } - // REVIEW: [rfeng] What's going to happen if there is only one qualified intent - if (intent.getQualifiedIntents().size() == 1) { - intent.setDefaultQualifiedIntent(intent.getQualifiedIntents().get(0)); - } - return intent; - } - - public void write(Intent intent, XMLStreamWriter writer, ProcessorContext context) throws ContributionWriteException, XMLStreamException { - // Write an - writer.writeStartElement(PolicyConstants.SCA11_NS, INTENT); - writer.writeNamespace(intent.getName().getPrefix(), intent.getName().getNamespaceURI()); - writer.writeAttribute(PolicyConstants.NAME, intent.getName().getPrefix() + COLON - + intent.getName().getLocalPart()); - if (intent.getRequiredIntents() != null && intent.getRequiredIntents().size() > 0) { - StringBuffer sb = new StringBuffer(); - for (Intent requiredIntents : intent.getRequiredIntents()) { - sb.append(requiredIntents.getName()); - sb.append(" "); - } - writer.writeAttribute(PolicyConstants.REQUIRES, sb.toString()); - } - - if (intent.getExcludedIntents() != null && intent.getExcludedIntents().size() > 0) { - StringBuffer sb = new StringBuffer(); - for (Intent excludedIntents : intent.getExcludedIntents()) { - sb.append(excludedIntents.getName()); - sb.append(" "); - } - writer.writeAttribute(PolicyConstants.EXCLUDES, sb.toString()); - } - - if (intent.getConstrainedTypes() != null && intent.getConstrainedTypes().size() > 0) { - StringBuffer sb = new StringBuffer(); - for (ExtensionType contrainedArtifact : intent.getConstrainedTypes()) { - sb.append(contrainedArtifact.getType().getPrefix()); - sb.append(':').append(contrainedArtifact.getType().getLocalPart()); - sb.append(" "); - } - writer.writeAttribute(CONSTRAINS, sb.toString()); - } - - if (intent.getDescription() != null && intent.getDescription().length() > 0) { - writer.writeStartElement(PolicyConstants.SCA11_NS, DESCRIPTION); - writer.writeCData(intent.getDescription()); - writer.writeEndElement(); - } - - writer.writeEndElement(); - } - - private void resolveContrainedTypes(Intent intent, ModelResolver resolver, ProcessorContext context) throws ContributionResolveException { - Collection resolvedTypes = new HashSet(); - for (ExtensionType extensionType : intent.getConstrainedTypes()) { - if (ExtensionType.BINDING_BASE.equals(extensionType.getType()) || ExtensionType.IMPLEMENTATION_BASE - .equals(extensionType.getType())) { - // HACK: Mark sca:binding and sca:implementation as resolved - extensionType.setUnresolved(false); - resolvedTypes.add(extensionType); - } else { - ExtensionType resolved = resolver.resolveModel(ExtensionType.class, extensionType, context); - if (!resolved.isUnresolved() || resolved != extensionType) { - resolvedTypes.add(resolved); - } else { - warn(context.getMonitor(), "ConstrainedTypeNotFound", intent, extensionType, intent); - } - } - } - intent.getConstrainedTypes().clear(); - intent.getConstrainedTypes().addAll(resolvedTypes); - } - - private void resolveProfileIntent(Intent intent, ModelResolver resolver, ProcessorContext context) throws ContributionResolveException { - Monitor monitor = context.getMonitor(); - // FIXME: Need to check for cyclic references first i.e an A requiring B - // and then B requiring A... - if (intent != null && !intent.getRequiredIntents().isEmpty()) { - // resolve all required intents - List requiredIntents = new ArrayList(); - for (Intent required : intent.getRequiredIntents()) { - if (required.isUnresolved()) { - Intent resolved = resolver.resolveModel(Intent.class, required, context); - // At this point, when the required intent is not resolved, it does not mean - // its undeclared, chances are that their dependency are not resolved yet. - // Lets try to resolve them first. - if (resolved.isUnresolved()) { - if (((resolved).getRequiredIntents()).contains(intent)) { - error(monitor, "CyclicReferenceFound", resolver, required, intent); - return; - } - } - - if (!resolved.isUnresolved() || resolved != required) { - requiredIntents.add(resolved); - } else { - error(monitor, "RequiredIntentNotFound", resolver, required, intent); - return; - //throw new ContributionResolveException("Required Intent - " + requiredIntent - //+ " not found for Intent " + policyIntent); - } - } else { - requiredIntents.add(required); - } - } - intent.getRequiredIntents().clear(); - intent.getRequiredIntents().addAll(requiredIntents); - } - } - - private void resolveQualifiedIntent(Intent qualifed, ModelResolver resolver, ProcessorContext context) throws ContributionResolveException { - if (qualifed != null) { - //resolve the qualifiable intent - Intent parent = qualifed.getQualifiableIntent(); - if (parent == null) { - return; - } - if (parent.isUnresolved()) { - Intent resolved = resolver.resolveModel(Intent.class, parent, context); - // At this point, when the qualifiable intent is not resolved, it does not mean - // its undeclared, chances are that their dependency are not resolved yet. - // Lets try to resolve them first. - - if (!resolved.isUnresolved() || resolved != qualifed) { - qualifed.setQualifiableIntent(resolved); - } else { - error(context.getMonitor(), "QualifiableIntentNotFound", resolver, parent, qualifed); - //throw new ContributionResolveException("Qualifiable Intent - " + qualifiableIntent - //+ " not found for Intent " + policyIntent); - } - } - } - } - - public void resolve(Intent intent, ModelResolver resolver, ProcessorContext context) throws ContributionResolveException { - if (intent != null && intent.isUnresolved()) { - resolveProfileIntent(intent, resolver, context); - resolveExcludedIntents(intent, resolver, context); - resolveQualifiedIntent(intent, resolver, context); - resolveContrainedTypes(intent, resolver, context); - intent.setUnresolved(false); - } - } - - public QName getArtifactType() { - return POLICY_INTENT_QNAME; - } - - private void readConstrainedTypes(Intent policyIntent, XMLStreamReader reader) throws ContributionReadException { - String value = reader.getAttributeValue(null, CONSTRAINS); - if (value != null) { - List constrainedTypes = policyIntent.getConstrainedTypes(); - for (StringTokenizer tokens = new StringTokenizer(value); tokens.hasMoreTokens();) { - QName qname = getQNameValue(reader, tokens.nextToken()); - ExtensionType extensionType = policyFactory.createExtensionType(); - extensionType.setType(qname); - constrainedTypes.add(extensionType); - } - } - } - - private void readRequiredIntents(Intent intent, XMLStreamReader reader, ProcessorContext context) { - String value = reader.getAttributeValue(null, REQUIRES); - if (value != null) { - List requiredIntents = intent.getRequiredIntents(); - for (StringTokenizer tokens = new StringTokenizer(value); tokens.hasMoreTokens();) { - QName qname = getQNameValue(reader, tokens.nextToken()); - Intent required = policyFactory.createIntent(); - required.setName(qname); - required.setUnresolved(true); - requiredIntents.add(required); - } - - // Check that a profile intent does not have "." in its name - if (requiredIntents.size() > 0) { - if (intent.getName().getLocalPart().contains(".")){ - Monitor.error(context.getMonitor(), - this, - Messages.RESOURCE_BUNDLE, - "ProfileIntentNameWithPeriod", - intent.getName().toString()); - } - } - } - } - - private void readExcludedIntents(Intent intent, XMLStreamReader reader) { - String value = reader.getAttributeValue(null, EXCLUDES); - if (value != null) { - List excludedIntents = intent.getExcludedIntents(); - for (StringTokenizer tokens = new StringTokenizer(value); tokens.hasMoreTokens();) { - QName qname = getQNameValue(reader, tokens.nextToken()); - Intent excluded = policyFactory.createIntent(); - excluded.setName(qname); - excluded.setUnresolved(true); - excludedIntents.add(excluded); - } - } - } - - private void resolveExcludedIntents(Intent policyIntent, ModelResolver resolver, ProcessorContext context) - throws ContributionResolveException { - if (policyIntent != null) { - // resolve all excluded intents - List excludedIntents = new ArrayList(); - for (Intent excludedIntent : policyIntent.getExcludedIntents()) { - if (excludedIntent.isUnresolved()) { - Intent resolvedExcludedIntent = resolver.resolveModel(Intent.class, excludedIntent, context); - if (!resolvedExcludedIntent.isUnresolved() || resolvedExcludedIntent != excludedIntent) { - excludedIntents.add(resolvedExcludedIntent); - } else { - error(context.getMonitor(), "ExcludedIntentNotFound", resolver, excludedIntent, policyIntent); - return; - //throw new ContributionResolveException("Excluded Intent " + excludedIntent - //+ " not found for intent " + policyIntent); - } - } else { - excludedIntents.add(excludedIntent); - } - } - policyIntent.getExcludedIntents().clear(); - policyIntent.getExcludedIntents().addAll(excludedIntents); - } - } - - public Class getModelType() { - return Intent.class; - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/policy/xml/Messages.java b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/policy/xml/Messages.java deleted file mode 100644 index ee8b5274cc..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/policy/xml/Messages.java +++ /dev/null @@ -1,27 +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 org.apache.tuscany.sca.policy.xml; - -/** - * Constants for resource bundle names - */ -public interface Messages { - String RESOURCE_BUNDLE = "org.apache.tuscany.sca.policy.xml.policy-xml-validation-messages"; -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/policy/xml/PolicyConstants.java b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/policy/xml/PolicyConstants.java deleted file mode 100644 index 69c5a11e9b..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/policy/xml/PolicyConstants.java +++ /dev/null @@ -1,74 +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 org.apache.tuscany.sca.policy.xml; - -import javax.xml.namespace.QName; - -/** - * constants related to policy framework - * - * @version $Rev$ $Date$ - */ -public interface PolicyConstants { - String WHITE_SPACE = " "; - String COLON = ":"; - String SCA11_NS = "http://docs.oasis-open.org/ns/opencsa/sca/200912"; - String TUSCANY_NS = "http://tuscany.apache.org/xmlns/sca/1.1"; - String INTENT = "intent"; - String POLICY_SET = "policySet"; - String POLICY_SET_REFERENCE = "policySetReference"; - String INTENT_MAP = "intentMap"; - String NAME = "name"; - String TARGET_NAMESPACE = "targetNamespace"; - String SCA_DEFINITIONS = "definitions"; - String CONSTRAINS = "constrains"; - String DESCRIPTION = "description"; - String PROVIDES = "provides"; - String APPLIES_TO = "appliesTo"; - String ATTACH_TO = "attachTo"; - String ALWAYS_APPLIES_TO = "alwaysAppliesTo"; - String QUALIFIER = "."; - String INTENT_QUALIFIER = "qualifier"; - String INTENT_MAP_QUALIFIER = "qualifier"; - String REQUIRES = "requires"; - String EXCLUDES = "excludes"; - String DEFAULT = "default"; - - String ALWAYS_PROVIDES = "alwaysProvides"; - String MAY_PROVIDE = "mayProvide"; - String INTENT_TYPE = "intentType"; - String IMPLEMENTATION_TYPE = "implementationType"; - String BINDING_TYPE = "bindingType"; - QName IMPLEMENTATION_TYPE_QNAME = new QName(SCA11_NS, IMPLEMENTATION_TYPE); - QName BINDING_TYPE_QNAME = new QName(SCA11_NS, BINDING_TYPE); - String BINDING = "binding"; - String IMPLEMENTATION = "implementation"; - - QName POLICY_INTENT_QNAME = new QName(SCA11_NS, INTENT); - QName POLICY_SET_QNAME = new QName(SCA11_NS, POLICY_SET); - QName POLICY_INTENT_MAP_QNAME = new QName(SCA11_NS, INTENT_MAP); - QName SCA_DEFINITIONS_QNAME = new QName(SCA11_NS, SCA_DEFINITIONS); - QName DESCRIPTION_QNAME = new QName(SCA11_NS, DESCRIPTION); - QName POLICY_INTENT_MAP_QUALIFIER_QNAME = new QName(SCA11_NS, INTENT_MAP_QUALIFIER); - QName POLICY_SET_REFERENCE_QNAME = new QName(SCA11_NS, POLICY_SET_REFERENCE); - QName INTENT_QUALIFIER_QNAME = new QName(SCA11_NS, INTENT_QUALIFIER); - - String QUALIFIED_INTENT_CONSTRAINS_ERROR = " - Qualified Intents must not specify 'constrains' attribute"; - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/policy/xml/PolicySetProcessor.java b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/policy/xml/PolicySetProcessor.java deleted file mode 100644 index 6309cc5403..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/policy/xml/PolicySetProcessor.java +++ /dev/null @@ -1,554 +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 org.apache.tuscany.sca.policy.xml; - -import static javax.xml.stream.XMLStreamConstants.END_ELEMENT; -import static javax.xml.stream.XMLStreamConstants.START_ELEMENT; - -import java.util.ArrayList; -import java.util.List; -import java.util.StringTokenizer; - -import javax.xml.namespace.NamespaceContext; -import javax.xml.namespace.QName; -import javax.xml.stream.XMLStreamException; -import javax.xml.stream.XMLStreamReader; -import javax.xml.stream.XMLStreamWriter; -import javax.xml.xpath.XPath; -import javax.xml.xpath.XPathExpression; -import javax.xml.xpath.XPathExpressionException; - -import org.apache.tuscany.sca.common.xml.xpath.XPathHelper; -import org.apache.tuscany.sca.contribution.processor.BaseStAXArtifactProcessor; -import org.apache.tuscany.sca.contribution.processor.ContributionReadException; -import org.apache.tuscany.sca.contribution.processor.ContributionResolveException; -import org.apache.tuscany.sca.contribution.processor.ContributionWriteException; -import org.apache.tuscany.sca.contribution.processor.ProcessorContext; -import org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessor; -import org.apache.tuscany.sca.contribution.resolver.ModelResolver; -import org.apache.tuscany.sca.core.ExtensionPointRegistry; -import org.apache.tuscany.sca.core.FactoryExtensionPoint; -import org.apache.tuscany.sca.monitor.Monitor; -import org.apache.tuscany.sca.monitor.Problem; -import org.apache.tuscany.sca.monitor.Problem.Severity; -import org.apache.tuscany.sca.policy.Intent; -import org.apache.tuscany.sca.policy.IntentMap; -import org.apache.tuscany.sca.policy.PolicyExpression; -import org.apache.tuscany.sca.policy.PolicyFactory; -import org.apache.tuscany.sca.policy.PolicySet; -import org.apache.tuscany.sca.policy.Qualifier; - -/** - * Processor for handling XML models of PolicySet definitions - * - * @version $Rev$ $Date$ - */ -public class PolicySetProcessor extends BaseStAXArtifactProcessor implements StAXArtifactProcessor, - PolicyConstants { - - private PolicyFactory policyFactory; - private StAXArtifactProcessor extensionProcessor; - private XPathHelper xpathHelper; - - // private XPathFactory xpathFactory; - - public PolicySetProcessor(ExtensionPointRegistry registry, StAXArtifactProcessor extensionProcessor) { - FactoryExtensionPoint modelFactories = registry.getExtensionPoint(FactoryExtensionPoint.class); - this.policyFactory = modelFactories.getFactory(PolicyFactory.class); - this.extensionProcessor = extensionProcessor; - this.xpathHelper = XPathHelper.getInstance(registry); - } - - /** - * Report a exception. - * - * @param problems - * @param message - * @param model - */ - private void error(Monitor monitor, String message, Object model, Exception ex) { - if (monitor != null) { - Problem problem = - monitor.createProblem(this.getClass().getName(), - Messages.RESOURCE_BUNDLE, - Severity.ERROR, - model, - message, - ex); - monitor.problem(problem); - } - } - - /** - * Report a error. - * - * @param problems - * @param message - * @param model - */ - private void error(Monitor monitor, String message, Object model, Object... messageParameters) { - if (monitor != null) { - Problem problem = - monitor.createProblem(this.getClass().getName(), - Messages.RESOURCE_BUNDLE, - Severity.ERROR, - model, - message, - (Object[])messageParameters); - monitor.problem(problem); - } - } - - public PolicySet read(XMLStreamReader reader, ProcessorContext context) throws ContributionReadException, - XMLStreamException { - PolicySet policySet = null; - Monitor monitor = context.getMonitor(); - String policySetName = reader.getAttributeValue(null, NAME); - String appliesTo = reader.getAttributeValue(null, APPLIES_TO); - if (policySetName == null || appliesTo == null) { - if (policySetName == null) - error(monitor, "PolicySetNameMissing", reader); - if (appliesTo == null) - error(monitor, "PolicySetAppliesToMissing", reader); - return policySet; - } - - policySet = policyFactory.createPolicySet(); - policySet.setName(new QName(policySetName)); - - //TODO: with 1.0 version of specs the applies to xpath is given related to the immediate - //parent whereas the runtime evaluates the xpath aginst the composite element. What the runtime - //is doing is what the future version of the specs could be tending towards. When that happens - //this 'if' must be deleted - if (appliesTo != null && !appliesTo.startsWith("/")) { - appliesTo = "//" + appliesTo; - } - - policySet.setAppliesTo(appliesTo); - - if (appliesTo != null) { - try { - XPath path = xpathHelper.newXPath(); - NamespaceContext nsContext = xpathHelper.getNamespaceContext(appliesTo, reader.getNamespaceContext()); - // path.setXPathFunctionResolver(new PolicyXPathFunctionResolver(context)); - XPathExpression expression = xpathHelper.compile(path, nsContext, appliesTo); - policySet.setAppliesToXPathExpression(expression); - } catch (XPathExpressionException e) { - ContributionReadException ce = new ContributionReadException(e); - error(monitor, "ContributionReadException", policySet, ce); - //throw ce; - } - } - - String attachTo = reader.getAttributeValue(null, ATTACH_TO); - if (attachTo != null) { - try { - XPath path = xpathHelper.newXPath(); - NamespaceContext nsContext = xpathHelper.getNamespaceContext(attachTo, reader.getNamespaceContext()); - path.setXPathFunctionResolver(new PolicyXPathFunctionResolver(nsContext)); - XPathExpression expression = xpathHelper.compile(path, nsContext, attachTo); - policySet.setAttachTo(attachTo); - policySet.setAttachToXPathExpression(expression); - } catch (XPathExpressionException e) { - ContributionReadException ce = new ContributionReadException(e); - error(monitor, "ContributionReadException", policySet, ce); - //throw ce; - } - - } - - readProvidedIntents(policySet, reader); - - int event = reader.getEventType(); - QName name = null; - reader.next(); - while (reader.hasNext()) { - event = reader.getEventType(); - switch (event) { - case START_ELEMENT: { - name = reader.getName(); - if (POLICY_INTENT_MAP_QNAME.equals(name)) { - Intent mappedIntent = policyFactory.createIntent(); - String provides = reader.getAttributeValue(null, PROVIDES); - if (provides != null) { - mappedIntent.setName(getQName(reader, PROVIDES)); - if (policySet.getProvidedIntents().contains(mappedIntent)) { - readIntentMap(reader, policySet, mappedIntent, context); - } else { - error(monitor, "IntentNotSpecified", policySet, policySetName); - } - } else { - error(monitor, "IntentMapProvidesMissing", reader, policySetName); - } - } else if (POLICY_SET_REFERENCE_QNAME.equals(name)) { - PolicySet referredPolicySet = policyFactory.createPolicySet(); - String referencename = reader.getAttributeValue(null, NAME); - if (referencename != null) { - referredPolicySet.setName(getQName(reader, NAME)); - policySet.getReferencedPolicySets().add(referredPolicySet); - } else { - error(monitor, "PolicySetReferenceNameMissing", reader, policySetName); - } - } /*else if ( WS_POLICY_QNAME.equals(name) ) { - OMElement policyElement = loadElement(reader); - org.apache.neethi.Policy wsPolicy = PolicyEngine.getPolicy(policyElement); - policySet.getPolicies().add(wsPolicy); - } */else { - Object extension = extensionProcessor.read(reader, context); - if (extension != null) { - PolicyExpression exp = policyFactory.createPolicyExpression(); - exp.setName(name); - exp.setPolicy(extension); - // check that all the policies in the policy set are - // expressed in the same language. Compare against the - // first expression we added - if ((policySet.getPolicies().size() > 0) && (!policySet.getPolicies().get(0).getName() - .equals(name))) { - error(monitor, "PolicyLanguageMissmatch", reader, policySet.getName(), policySet - .getPolicies().get(0).getName(), name); - } else { - policySet.getPolicies().add(exp); - } - } - } - break; - } - } - if (event == END_ELEMENT) { - if (POLICY_SET_QNAME.equals(reader.getName())) { - break; - } - } - - //Read the next element - if (reader.hasNext()) { - reader.next(); - } - } - return policySet; - } - - public void readIntentMap(XMLStreamReader reader, PolicySet policySet, Intent mappedIntent, ProcessorContext context) - throws ContributionReadException { - Monitor monitor = context.getMonitor(); - QName name = reader.getName(); - if (POLICY_INTENT_MAP_QNAME.equals(name)) { - - IntentMap intentMap = policyFactory.createIntentMap(); - QName intentName = getQName(reader, INTENT_MAP); - intentMap.setProvidedIntent(mappedIntent); - - if (!policySet.getIntentMaps().contains(intentMap)) { - policySet.getIntentMaps().add(intentMap); - } else { - Monitor.error(context.getMonitor(), this, Messages.RESOURCE_BUNDLE, "IntentMapIsNotUnique", policySet - .getName().toString(), mappedIntent.getName().getLocalPart()); - } - - String qualifierName = null; - String qualfiedIntentName = null; - Intent qualifiedIntent = null; - - Qualifier qualifier = null; - - int event = reader.getEventType(); - try { - reader.next(); - while (reader.hasNext()) { - event = reader.getEventType(); - switch (event) { - case START_ELEMENT: { - name = reader.getName(); - if (POLICY_INTENT_MAP_QUALIFIER_QNAME.equals(name)) { - qualifierName = getString(reader, NAME); - if (qualifierName != null) { - qualfiedIntentName = - mappedIntent.getName().getLocalPart() + QUALIFIER + qualifierName; - qualifiedIntent = policyFactory.createIntent(); - qualifiedIntent.setName(new QName(mappedIntent.getName().getNamespaceURI(), - qualfiedIntentName)); - qualifier = policyFactory.createQualifier(); - qualifier.setIntent(qualifiedIntent); - intentMap.getQualifiers().add(qualifier); - - } else { - error(monitor, "QualifierNameMissing", reader, policySet.getName()); - } - } else if (POLICY_INTENT_MAP_QNAME.equals(name)) { - QName providedIntent = getQName(reader, PROVIDES); - if (qualifierName.equals(providedIntent.getLocalPart())) { - readIntentMap(reader, policySet, qualifiedIntent, context); - } else { - error(monitor, - "IntentMapDoesNotMatch", - providedIntent, - providedIntent, - qualifierName, - policySet); - //throw new ContributionReadException("Intent provided by IntentMap " + - //providedIntent + " does not match parent qualifier " + qualifierName + - //" in policyset - " + policySet); - } - } else { - Object extension = extensionProcessor.read(reader, context); - if (extension != null && qualifier != null) { - PolicyExpression exp = policyFactory.createPolicyExpression(); - exp.setName(name); - exp.setPolicy(extension); - qualifier.getPolicies().add(exp); - } - } - break; - } - } - if (event == END_ELEMENT && POLICY_INTENT_MAP_QNAME.equals(reader.getName())) { - break; - } - //Read the next element - if (reader.hasNext()) { - reader.next(); - } - } - } catch (XMLStreamException e) { - ContributionReadException ce = new ContributionReadException(e); - error(monitor, "ContributionReadException", reader, ce); - throw ce; - } - } - } - - public void write(PolicySet policySet, XMLStreamWriter writer, ProcessorContext context) - throws ContributionWriteException, XMLStreamException { - - // Write an - writer.writeStartElement(SCA11_NS, POLICY_SET); - writer.writeNamespace(policySet.getName().getPrefix(), policySet.getName().getNamespaceURI()); - writer.writeAttribute(NAME, policySet.getName().getPrefix() + COLON + policySet.getName().getLocalPart()); - writer.writeAttribute(APPLIES_TO, policySet.getAppliesTo()); - writer.writeAttribute(ATTACH_TO, policySet.getAttachTo()); - - writeProvidedIntents(policySet, writer); - - writer.writeEndElement(); - } - - private void readProvidedIntents(PolicySet policySet, XMLStreamReader reader) { - String value = reader.getAttributeValue(null, PROVIDES); - if (value != null) { - List providedIntents = policySet.getProvidedIntents(); - for (StringTokenizer tokens = new StringTokenizer(value); tokens.hasMoreTokens();) { - QName qname = getQNameValue(reader, tokens.nextToken()); - Intent intent = policyFactory.createIntent(); - intent.setName(qname); - providedIntents.add(intent); - } - } - } - - private void writeProvidedIntents(PolicySet policySet, XMLStreamWriter writer) throws XMLStreamException { - if (!policySet.getProvidedIntents().isEmpty()) { - StringBuffer sb = new StringBuffer(); - for (Intent providedIntents : policySet.getProvidedIntents()) { - sb.append(getQualifiedName(providedIntents.getName(), writer)); - sb.append(" "); - } - // Remove the last space - sb.deleteCharAt(sb.length() - 1); - writer.writeAttribute(PolicyConstants.PROVIDES, sb.toString()); - } - } - - private String getQualifiedName(QName name, XMLStreamWriter writer) throws XMLStreamException { - String local = name.getLocalPart(); - String prefix = writer.getPrefix(name.getNamespaceURI()); - if (prefix != null && prefix.length() > 0) { - return prefix + ':' + local; - } else { - return local; - } - } - - private void resolvePolicies(PolicySet policySet, ModelResolver resolver, ProcessorContext context) - throws ContributionResolveException { - boolean unresolved = false; - if (policySet != null) { - for (Object o : policySet.getPolicies()) { - extensionProcessor.resolve(o, resolver, context); - /*if ( o instanceof Policy && ((Policy)o).isUnresolved() ) { - unresolved = true; - }*/ - } - policySet.setUnresolved(unresolved); - } - } - - public QName getArtifactType() { - return POLICY_SET_QNAME; - } - - public Class getModelType() { - return PolicySet.class; - } - - private void resolveProvidedIntents(PolicySet policySet, ModelResolver resolver, ProcessorContext context) - throws ContributionResolveException { - if (policySet != null) { - //resolve all provided intents - List providedIntents = new ArrayList(); - for (Intent providedIntent : policySet.getProvidedIntents()) { - if (providedIntent.isUnresolved()) { - Intent resolved = resolver.resolveModel(Intent.class, providedIntent, context); - if (!resolved.isUnresolved() || resolved != providedIntent) { - providedIntents.add(resolved); - } else { - error(context.getMonitor(), "ProvidedIntentNotFound", policySet, providedIntent, policySet); - return; - //throw new ContributionResolveException("Provided Intent - " + providedIntent - //+ " not found for PolicySet " + policySet); - } - } else { - providedIntents.add(providedIntent); - } - } - policySet.getProvidedIntents().clear(); - policySet.getProvidedIntents().addAll(providedIntents); - } - } - - private void resolveIntentsInMappedPolicies(PolicySet policySet, ModelResolver resolver, ProcessorContext context) - throws ContributionResolveException { - Monitor monitor = context.getMonitor(); - for (IntentMap intentMap : policySet.getIntentMaps()) { - Intent intent = intentMap.getProvidedIntent(); - if (intent.isUnresolved()) { - Intent resolved = resolver.resolveModel(Intent.class, intent, context); - if (!resolved.isUnresolved() || resolved != intent) { - intentMap.setProvidedIntent(resolved); - } else { - error(monitor, "MappedIntentNotFound", policySet, intent, policySet); - return; - //throw new ContributionResolveException("Mapped Intent - " + mappedIntent - //+ " not found for PolicySet " + policySet); - } - } - for (Qualifier qualifier : intentMap.getQualifiers()) { - intent = qualifier.getIntent(); - if (intent.isUnresolved()) { - Intent resolved = resolver.resolveModel(Intent.class, intent, context); - if (!resolved.isUnresolved() || resolved != intent) { - qualifier.setIntent(resolved); - } else { - error(monitor, "MappedIntentNotFound", policySet, intent, policySet); - return; - //throw new ContributionResolveException("Mapped Intent - " + mappedIntent - //+ " not found for PolicySet " + policySet); - } - } - for (PolicyExpression exp : qualifier.getPolicies()) { - // FIXME: How to resolve the policies? - } - } - // validate that the intent map has a qualifier for each - // intent qualifier. The above code has already checked that the - // qualifiers that are there are resolved - Intent providedIntent = intentMap.getProvidedIntent(); - if (intentMap.getQualifiers().size() != providedIntent.getQualifiedIntents().size()) { - String missingQualifiers = ""; - for (Intent loopQualifiedIntent : providedIntent.getQualifiedIntents()) { - boolean found = false; - for (Qualifier loopQualifier : intentMap.getQualifiers()) { - if (loopQualifier.getIntent().getName().equals(loopQualifiedIntent.getName())) { - found = true; - break; - } - } - if (!found) { - missingQualifiers += loopQualifiedIntent.getName().getLocalPart() + " "; - } - } - if (missingQualifiers.length() > 0) { - Monitor.error(context.getMonitor(), - this, - Messages.RESOURCE_BUNDLE, - "IntentMapMissingQualifiers", - policySet.getName().toString(), - providedIntent.getName().getLocalPart(), - missingQualifiers); - } - } - } - - } - - private void resolveReferredPolicySets(PolicySet policySet, ModelResolver resolver, ProcessorContext context) - throws ContributionResolveException { - - List referredPolicySets = new ArrayList(); - for (PolicySet referredPolicySet : policySet.getReferencedPolicySets()) { - if (referredPolicySet.isUnresolved()) { - PolicySet resolved = resolver.resolveModel(PolicySet.class, referredPolicySet, context); - if (!resolved.isUnresolved() || resolved != referredPolicySet) { - referredPolicySets.add(resolved); - } else { - error(context.getMonitor(), "ReferredPolicySetNotFound", policySet, referredPolicySet, policySet); - return; - //throw new ContributionResolveException("Referred PolicySet - " + referredPolicySet - //+ "not found for PolicySet - " + policySet); - } - } else { - referredPolicySets.add(referredPolicySet); - } - } - policySet.getReferencedPolicySets().clear(); - policySet.getReferencedPolicySets().addAll(referredPolicySets); - } - - private void includeReferredPolicySets(PolicySet policySet, PolicySet referredPolicySet) { - for (PolicySet furtherReferredPolicySet : referredPolicySet.getReferencedPolicySets()) { - includeReferredPolicySets(referredPolicySet, furtherReferredPolicySet); - } - policySet.getPolicies().addAll(referredPolicySet.getPolicies()); - policySet.getIntentMaps().addAll(referredPolicySet.getIntentMaps()); - } - - public void resolve(PolicySet policySet, ModelResolver resolver, ProcessorContext context) - throws ContributionResolveException { - if (policySet != null && policySet.isUnresolved()) { - resolveProvidedIntents(policySet, resolver, context); - resolveIntentsInMappedPolicies(policySet, resolver, context); - resolveReferredPolicySets(policySet, resolver, context); - - for (PolicySet referredPolicySet : policySet.getReferencedPolicySets()) { - includeReferredPolicySets(policySet, referredPolicySet); - } - - if (policySet.isUnresolved()) { - //resolve the policy attachments - resolvePolicies(policySet, resolver, context); - - /*if ( !policySet.isUnresolved() ) { - resolver.addModel(policySet); - }*/ - } - - policySet.setUnresolved(false); - } - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/policy/xml/PolicyXPathFunction.java b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/policy/xml/PolicyXPathFunction.java deleted file mode 100644 index 10f142c67b..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/policy/xml/PolicyXPathFunction.java +++ /dev/null @@ -1,158 +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 org.apache.tuscany.sca.policy.xml; - -import java.util.Arrays; -import java.util.HashSet; -import java.util.List; -import java.util.Set; -import java.util.logging.Level; -import java.util.logging.Logger; -import java.util.regex.Matcher; -import java.util.regex.Pattern; - -import javax.xml.namespace.NamespaceContext; -import javax.xml.namespace.QName; -import javax.xml.xpath.XPathFunction; -import javax.xml.xpath.XPathFunctionException; - -import org.w3c.dom.Node; -import org.w3c.dom.NodeList; - -/** - * The SCA-defined XPath function - */ -public class PolicyXPathFunction implements XPathFunction { - private static Logger logger = Logger.getLogger(PolicyXPathFunction.class.getName()); - - static final QName InterfaceRef = new QName(PolicyConstants.SCA11_NS, "InterfaceRef"); - static final QName OperationRef = new QName(PolicyConstants.SCA11_NS, "OperationRef"); - static final QName MessageRef = new QName(PolicyConstants.SCA11_NS, "MessageRef"); - static final QName IntentRefs = new QName(PolicyConstants.SCA11_NS, "IntentRefs"); - static final QName URIRef = new QName(PolicyConstants.SCA11_NS, "URIRef"); - - static final Set functions = - new HashSet(Arrays.asList(InterfaceRef, OperationRef, MessageRef, IntentRefs, URIRef)); - - private NamespaceContext namespaceContext; - private final QName functionName; - - public PolicyXPathFunction(NamespaceContext namespaceContext, QName functionName) { - super(); - this.namespaceContext = namespaceContext; - this.functionName = functionName; - } - - private Node getContextNode(List args) { - if (args.size() >= 2) { - NodeList nodeList = (NodeList)args.get(1); - if (nodeList.getLength() > 0) { - return nodeList.item(0); - } - } - return null; - } - - public Object evaluate(List args) throws XPathFunctionException { - if (logger.isLoggable(Level.FINE)) { - logger.fine(functionName + "(" + args + ")"); - } - - String arg = (String)args.get(0); - Node node = getContextNode(args); - if (InterfaceRef.equals(functionName)) { - return evaluateInterface(arg, node); - } else if (OperationRef.equals(functionName)) { - String[] params = arg.split("/"); - if (params.length != 2) { - throw new IllegalArgumentException("Invalid argument: " + arg); - } - String interfaceName = params[0]; - String operationName = params[1]; - return evaluateOperation(interfaceName, operationName, node); - } else if (MessageRef.equals(functionName)) { - String[] params = arg.split("/"); - if (params.length != 3) { - throw new IllegalArgumentException("Invalid argument: " + arg); - } - String interfaceName = params[0]; - String operationName = params[1]; - String messageName = params[2]; - return evaluateMessage(interfaceName, operationName, messageName, node); - } else if (URIRef.equals(functionName)) { - return evaluateURI(arg, node); - } else if (IntentRefs.equals(functionName)) { - String[] intents = arg.split("(\\s)+"); - return evaluateIntents(intents, node); - } else { - return Boolean.FALSE; - } - } - - private Boolean evaluateInterface(String interfaceName, Node node) { - return Boolean.FALSE; - } - - private Boolean evaluateOperation(String interfaceName, String operationName, Node node) { - return Boolean.FALSE; - } - - private Boolean evaluateMessage(String interfaceName, String operationName, String messageName, Node node) { - return Boolean.FALSE; - } - - private Boolean evaluateURI(String uri, Node node) { - return Boolean.FALSE; - } - - private Boolean evaluateIntents(String[] intents, Node node) { - return Boolean.FALSE; - } - - private static Pattern FUNCTION; - static { - String functionPattern = "(URIRef|InterfaceRef|OperationRef|MessageRef|IntentRefs)\\s*\\((.*)\\)"; - FUNCTION = Pattern.compile(functionPattern); - } - - public static String normalize(String attachTo) { - Matcher matcher = FUNCTION.matcher(attachTo); - boolean result = matcher.find(); - if (result) { - StringBuffer sb = new StringBuffer(); - do { - String function = matcher.group(1); - String args = matcher.group(2); - String replacement = null; - if (args.trim().length() > 0) { - replacement = function + "(" + args + "," + "self::node())"; - } else { - replacement = function + "(self::node())"; - } - matcher.appendReplacement(sb, replacement); - result = matcher.find(); - } while (result); - matcher.appendTail(sb); - return sb.toString(); - } - return attachTo; - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/policy/xml/PolicyXPathFunctionResolver.java b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/policy/xml/PolicyXPathFunctionResolver.java deleted file mode 100644 index ca44667903..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/policy/xml/PolicyXPathFunctionResolver.java +++ /dev/null @@ -1,72 +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 org.apache.tuscany.sca.policy.xml; - -import javax.xml.namespace.NamespaceContext; -import javax.xml.namespace.QName; -import javax.xml.xpath.XPathFunction; -import javax.xml.xpath.XPathFunctionResolver; - -/** - * A resolver that handles SCA-defined XPath functions - * - * Interface Related Functions - *
    - *
  • InterfaceRef( InterfaceName ) - *
  • OperationRef( InterfaceName/OperationName ) - *
  • MessageRef( InterfaceName/OperationName/MessageName ) - *
- * - * Intent Related Functions - *
    - *
  • IntentRefs( IntentList ) - *
- * - * URI Based Function - *
    - *
  • URIRef( URI ) - *
- */ -public class PolicyXPathFunctionResolver implements XPathFunctionResolver { - private NamespaceContext namespaceContext; - - public PolicyXPathFunctionResolver(NamespaceContext namespaceContext) { - super(); - this.namespaceContext = namespaceContext; - } - - public XPathFunction resolveFunction(QName functionName, int arity) { - if (functionName == null) { - throw new NullPointerException("Function name is null"); - } - if (PolicyXPathFunction.functions.contains(functionName)) { - if (arity >= 1) { - // We are relaxing the arity here so that we can pass in the context node - // by modifying the original xpath so that sca functions take self::node() - // as the 2nd argument - return new PolicyXPathFunction(namespaceContext, functionName); - } else { - throw new IllegalArgumentException("Invalid number of arguments: " + arity); - } - } - return null; - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/main/resources/META-INF/sca-policy-1.1-intents-definitions-cd03.xml b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/main/resources/META-INF/sca-policy-1.1-intents-definitions-cd03.xml deleted file mode 100644 index 7d50cd0ae4..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/main/resources/META-INF/sca-policy-1.1-intents-definitions-cd03.xml +++ /dev/null @@ -1,242 +0,0 @@ - - - - - - - - Communication through the binding requires that the - server is authenticated by the client - - - - - - - - Communication through the binding requires that the - client is authenticated by the server - - - - - - - - A convenience intent to help migration - - - - - - Communication through the binding requires that the - client and server to authenticate each other - - - - - - Communication through the binding prevents unauthorized - users from reading the messages - - - - - - - - Communication through the binding prevents tampering - with the messages sent between the client and the service. - - - - - - - - Ensures clients are authorized to use services. - - - - - - - - - This intent is used to indicate that a message sent - by a client is always delivered to the component. - - - - - - This intent is used to indicate that a message that was - successfully sent by a client is not delivered more than - once to the component. - - - - - - This profile intent is used to indicate that a message sent - by a client is always delivered to the component. It also - indicates that duplicate messages are not delivered to the - component. - - - - - - This intent is used to indicate that all the messages are - delivered to the component in the order they were sent by - the client. - - - - - - - A managed transaction environment is necessary in order to - run the component. The specific type of managed transaction - needed is not constrained. - - - - For a component marked with managedTransaction.global - a global transaction needs to be present before dispatching - any method on the component - using any transaction - propagated from the client or else beginning and completing - a new transaction. - - - - - A component marked with managedTransaction.local needs to - run within a local transaction containment (LTC) that - is started and ended by the SCA runtime. - - - - - - - A component marked with noManagedTransaction needs to run without - a managed transaction, under neither a global transaction nor - an LTC. A transaction propagated to the hosting SCA runtime - is not joined by the hosting runtime on behalf of a - component marked with noManagedtransaction. - - - - - - For a reference marked as transactedOneWay any OneWay invocation - messages are transacted as part of a client global - transaction. - For a service marked as transactedOneWay any OneWay invocation - message are received from the transport binding in a - transacted fashion, under the service’s global transaction. - - - - - - For a reference indicates that any OneWay invocation messages - are sent immediately regardless of any client transaction. - For a service indicates that any OneWay invocation is - received immediately regardless of any target service - transaction. - - - - - - A service marked with propagatesTransaction is dispatched - under any propagated (client) transaction and the service binding - needs to be capable of receiving a transaction context. - A reference marked with propagatesTransaction propagates any - transaction context under which the client runs when the - reference is used for a request-response interaction and the - binding of a reference marked with propagatesTransaction needs to - be capable of propagating a transaction context. - - - - - - A service marked with suspendsTransaction is not dispatched - under any propagated (client) transaction. - A reference marked with suspendsTransaction does not propagate - any transaction context under which the client runs when the - reference is used. - - - - - - Used to indicate that the component requires both the - managedTransaction.global and the propagatesTransactions - intents - - - - - - - Indicates that request/response operations for the - interface of this wire are "long running" and must be - treated as two separate message transmissions - - - - - - Specifies that the SOAP messaging model is used for delivering - messages. - - - - - - - - Requires that the messages are delivered and received via the - JMS API. - - - - - - This intent can only be used on a reference. Indicates that the - client is not able to handle new inbound connections. The binding - and callback binding are configured so that any - response or callback comes either through a back channel of the - connection from the client to the server or by having the client - poll the server for messages. - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessor b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessor deleted file mode 100644 index 7982dc123c..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessor +++ /dev/null @@ -1,29 +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. - -# Implementation class for the artifact processor extension -org.apache.tuscany.sca.assembly.xml.ComponentTypeProcessor;qname=http://docs.oasis-open.org/ns/opencsa/sca/200912#componentType,model=org.apache.tuscany.sca.assembly.ComponentType -org.apache.tuscany.sca.assembly.xml.CompositeProcessor;qname=http://docs.oasis-open.org/ns/opencsa/sca/200912#composite,model=org.apache.tuscany.sca.assembly.Composite -org.apache.tuscany.sca.assembly.xml.SCABindingProcessor;qname=http://docs.oasis-open.org/ns/opencsa/sca/200912#binding.sca,model=org.apache.tuscany.sca.assembly.SCABinding -org.apache.tuscany.sca.assembly.xml.EndpointProcessor;qname=http://tuscany.apache.org/xmlns/sca/1.1#endpoint,model=org.apache.tuscany.sca.assembly.Endpoint -org.apache.tuscany.sca.assembly.xml.EndpointReferenceProcessor;qname=http://tuscany.apache.org/xmlns/sca/1.1#endpointReference,model=org.apache.tuscany.sca.assembly.EndpointReference -org.apache.tuscany.sca.definitions.xml.DefinitionsProcessor;qname=http://docs.oasis-open.org/ns/opencsa/sca/200912#definitions,model=org.apache.tuscany.sca.definitions.Definitions -org.apache.tuscany.sca.policy.xml.BindingTypeProcessor;qname=http://docs.oasis-open.org/ns/opencsa/sca/200912#bindingType,model=org.apache.tuscany.sca.policy.BindingType -org.apache.tuscany.sca.policy.xml.ImplementationTypeProcessor;qname=http://docs.oasis-open.org/ns/opencsa/sca/200912#implementationType,model=org.apache.tuscany.sca.policy.ImplementationType -org.apache.tuscany.sca.policy.xml.IntentProcessor;qname=http://docs.oasis-open.org/ns/opencsa/sca/200912#intent,model=org.apache.tuscany.sca.policy.Intent -org.apache.tuscany.sca.policy.xml.PolicySetProcessor;qname=http://docs.oasis-open.org/ns/opencsa/sca/200912#policySet,model=org.apache.tuscany.sca.policy.PolicySet - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.processor.URLArtifactProcessor b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.processor.URLArtifactProcessor deleted file mode 100644 index f8d1e11ef3..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.processor.URLArtifactProcessor +++ /dev/null @@ -1,22 +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. - -# Implementation class for the artifact processor extension -org.apache.tuscany.sca.assembly.xml.ComponentTypeDocumentProcessor;type=.componentType,model=org.apache.tuscany.sca.assembly.ComponentType -org.apache.tuscany.sca.assembly.xml.CompositeDocumentProcessor;type=.composite,model=org.apache.tuscany.sca.assembly.Composite -org.apache.tuscany.sca.definitions.xml.DefinitionsDocumentProcessor;type=/META-INF/definitions.xml,model=org.apache.tuscany.sca.definitions.Definitions - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.resolver.ModelResolver b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.resolver.ModelResolver deleted file mode 100644 index f8e4d5bbd4..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.resolver.ModelResolver +++ /dev/null @@ -1,21 +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. - -org.apache.tuscany.sca.assembly.xml.CompositeModelResolver;model=org.apache.tuscany.sca.assembly.Composite -org.apache.tuscany.sca.assembly.xml.ComponentTypeModelResolver;model=org.apache.tuscany.sca.assembly.ComponentType -org.apache.tuscany.sca.contribution.resolver.DefaultModelResolver;model=org.apache.tuscany.sca.policy.Intent - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/main/resources/META-INF/services/org.apache.tuscany.sca.definitions.xml.Definitions b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/main/resources/META-INF/services/org.apache.tuscany.sca.definitions.xml.Definitions deleted file mode 100644 index 381c0ba23b..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/main/resources/META-INF/services/org.apache.tuscany.sca.definitions.xml.Definitions +++ /dev/null @@ -1,17 +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. -META-INF/sca-policy-1.1-intents-definitions-cd03.xml diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/main/resources/META-INF/services/org.apache.tuscany.sca.definitions.xml.DefinitionsExtensionPoint b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/main/resources/META-INF/services/org.apache.tuscany.sca.definitions.xml.DefinitionsExtensionPoint deleted file mode 100644 index 45b3512614..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/main/resources/META-INF/services/org.apache.tuscany.sca.definitions.xml.DefinitionsExtensionPoint +++ /dev/null @@ -1,17 +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. -org.apache.tuscany.sca.definitions.xml.DefaultDefinitionsExtensionPoint diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/main/resources/org/apache/tuscany/sca/assembly/xml/assembly-xml-validation-messages.properties b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/main/resources/org/apache/tuscany/sca/assembly/xml/assembly-xml-validation-messages.properties deleted file mode 100644 index 8ad5f88892..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/main/resources/org/apache/tuscany/sca/assembly/xml/assembly-xml-validation-messages.properties +++ /dev/null @@ -1,32 +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. -# -# -NoCompositeNamespace = No namespace found: Composite = {0} -UnexpectedInterfaceElement = Unexpected element found. It should appear inside a or element. -UnexpectedBindingElement = Unexpected element found. It should appear inside a or element. -UnexpectedImplementationElement = Unexpected element found. It should appear inside a element. -PolicyImplValidationException = PolicyValidation exception when processing implementation of component {0} due to {1}. -PolicyServiceValidationException = PolicyValidation exceptions when processing service/reference {0} in {1}. Error is {2} -ContributionReadException = ContributionReadException occured due to : {0} -ContributionResolveException = ContributionResolveException occured due to : {0} -ContributionWriteException = ContributionWriteException occured due to : {0} -XMLStreamException = XMLStreamException occured due to : {0} -DuplicateCompositeName = [ASM_6001] More than one composite with the same name {0} found in contribution {1} -PropertyTypeNotFound = The type {0} specified on property {1} of {2} can't be found in any loaded contribution (makes sure the .xsd file is in a contribution, that the contribution is being loaded and that contribution imports and exports are correct) diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/main/resources/org/apache/tuscany/sca/definitions/xml/definitions-xml-validation-messages.properties b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/main/resources/org/apache/tuscany/sca/definitions/xml/definitions-xml-validation-messages.properties deleted file mode 100644 index de27c0bd31..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/main/resources/org/apache/tuscany/sca/definitions/xml/definitions-xml-validation-messages.properties +++ /dev/null @@ -1,24 +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. -# -# -ContributionReadException = ContributionReadException occured due to : -PrivilegedActionException = Privileged Action Exception occured due to FilePermission in security policy file: -ImplementationTypeNotFound = [POL50001] An extension to support the implementation type {0} can't be found in the domain -BindingTypeNotFound = An extension to support the binding type {0} can't be found in the domain \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/main/resources/org/apache/tuscany/sca/policy/xml/policy-xml-validation-messages.properties b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/main/resources/org/apache/tuscany/sca/policy/xml/policy-xml-validation-messages.properties deleted file mode 100644 index 08ef6bb5e9..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/main/resources/org/apache/tuscany/sca/policy/xml/policy-xml-validation-messages.properties +++ /dev/null @@ -1,50 +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. -# -# -ReferredPolicySetNotFound = Referred PolicySet - {0} not found for PolicySet - {1} -MappedIntentNotFound = Mapped Intent - {0} not found for PolicySet {1} -ProvidedIntentNotFound = Provided Intent - {0} not found for PolicySet {1} -UnableToMapPolicies = Unable to map policies for default qualifier in IntentMap for - {0} in policy set - {1} -IntentMapDoesNotMatch = Intent provided by IntentMap {0} does not match parent qualifier {1} in policyset - {2} -IntentNotSpecified = [POL30021] Intent Map provides for Intent not specified as provided by parent PolicySet - {0} -ContrainsAttributeMissing = Constrains attribute missing from Policy Intent Definition {0} -RequiredIntentNotFound = [POL30015] Required Intent - {0} not found for ProfileIntent {1} -QualifiableIntentNotFound = Qualifiable Intent - {0} not found for QualifiedIntent {1} -ErrorInPolicyIntentDefinition = Error in PolicyIntent Definition - {0} {1} -ExcludedIntentNotFound = [POL30016] Excluded Intent {0} not found for intent {1} -UnrecognizedIntentAttachPointType = Unrecognized IntentAttachPointType - {0} -RequiredAttributeMissing = Required attribute {0} missing from extension type definition -AlwaysProvidedIntentNotFound = Always Provided Intent - {0} not found for ExtensionType {1} -MayProvideIntentNotFound = May Provide Intent - {0} not found for ExtensionType {1} -ContributionReadException = ContributionReadException occurred due to: {0} -CyclicReferenceFound = Cyclic reference detected in required attributes of ProfileIntents {0} and {1} -IntentNameMissing = Required attribute "name" missing for Intent Definition -PolicySetReferenceNameMissing = Required attribute "name" missing for PolicySetReference in PolicySet : {0} -PolicySetNameMissing = Required attribute "name" missing for PolicySet Definition -PolicySetAppliesToMissing = Required attribute "appliesTo" missing for PolicySet Definition -IntentMapProvidesMissing = Required attribute "provides" missing for IntentMap in PolicySet : {0} -QualifierNameMissing = Required attribute "name" missing for qualifier definition in PolicySet : {0} -ConstrainedTypeNotFound = Unable to find the extension type {0} constrained by intent: {1} -MultipleDefaultQualifiers = [POL30004] Intent {0} has more than one qualifier marked as the default qualifier -QualifierIsNotUnique = [POL30005] The intent {0} has more than one qualifier with the name {1} -ProfileIntentNameWithPeriod = [POL30006] The profile intent name {0} must not have the character "." in it -IntentMapIsNotUnique = [POL30010] The policy set {0} has more than one intent map with the name {1} -IntentMapMissingQualifiers = [POL30020] The policy set {0} intent map {1} has missing qualifiers: {2} The intent map qualifiers must match the provided intent qualifiers. -PolicyLanguageMissmatch = Policy set {0} contains policy expressions from more than on language, languages {1} and {2} found diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/test/java/org/apache/tuscany/sca/assembly/xml/CompositeProcessorTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/test/java/org/apache/tuscany/sca/assembly/xml/CompositeProcessorTestCase.java deleted file mode 100644 index 3f4a74ba03..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/test/java/org/apache/tuscany/sca/assembly/xml/CompositeProcessorTestCase.java +++ /dev/null @@ -1,108 +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 org.apache.tuscany.sca.assembly.xml; - -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertNotNull; - -import java.io.StringReader; - -import javax.xml.stream.XMLInputFactory; -import javax.xml.stream.XMLOutputFactory; -import javax.xml.stream.XMLStreamReader; - -import org.apache.tuscany.sca.assembly.Composite; -import org.apache.tuscany.sca.contribution.processor.ExtensibleStAXArtifactProcessor; -import org.apache.tuscany.sca.contribution.processor.ProcessorContext; -import org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessor; -import org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessorExtensionPoint; -import org.apache.tuscany.sca.core.DefaultExtensionPointRegistry; -import org.apache.tuscany.sca.core.ExtensionPointRegistry; -import org.apache.tuscany.sca.monitor.Monitor; -import org.junit.BeforeClass; -import org.junit.Test; - -public class CompositeProcessorTestCase { - private static final String SCA11_NS = "http://docs.oasis-open.org/ns/opencsa/sca/200912"; - - private static final String OASIS_COMPOSITE = - " " - + "" - + "" - + " " - + "" - + ""; - - private static final String OSOA_COMPOSITE = - "" - + "" - + "" - + " " - + "" - + ""; - - private static XMLInputFactory inputFactory; - private static XMLOutputFactory outputFactory; - private static StAXArtifactProcessor staxProcessor; - private static Monitor monitor; - private static ProcessorContext context; - - @BeforeClass - public static void setUp() throws Exception { - ExtensionPointRegistry extensionPoints = new DefaultExtensionPointRegistry(); - context = new ProcessorContext(extensionPoints); - monitor = context.getMonitor(); - inputFactory = XMLInputFactory.newInstance(); - outputFactory = XMLOutputFactory.newInstance(); - outputFactory.setProperty(XMLOutputFactory.IS_REPAIRING_NAMESPACES, Boolean.TRUE); - StAXArtifactProcessorExtensionPoint staxProcessors = - extensionPoints.getExtensionPoint(StAXArtifactProcessorExtensionPoint.class); - staxProcessor = new ExtensibleStAXArtifactProcessor(staxProcessors, inputFactory, outputFactory); - } - - @Test - public void testReadOASISSpecVersion() throws Exception { - XMLStreamReader reader = inputFactory.createXMLStreamReader(new StringReader(OASIS_COMPOSITE)); - Object result = staxProcessor.read(reader, context); - assertNotNull(result); - if( result instanceof Composite) { - Composite composite = (Composite) result; - assertEquals(SCA11_NS, composite.getSpecVersion()); - } - reader.close(); - } - - @Test - public void testReadOSOASpecVersion() throws Exception { - XMLStreamReader reader = inputFactory.createXMLStreamReader(new StringReader(OSOA_COMPOSITE)); - Object result = staxProcessor.read(reader, context); - assertNotNull(result); - if( result instanceof Composite) { - throw new Exception("Error, unsupported OSOA namespace being parsed as valid !"); - } - reader.close(); - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/test/java/org/apache/tuscany/sca/assembly/xml/MultiplicityReadWriteTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/test/java/org/apache/tuscany/sca/assembly/xml/MultiplicityReadWriteTestCase.java deleted file mode 100644 index 0d5e69bd61..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/test/java/org/apache/tuscany/sca/assembly/xml/MultiplicityReadWriteTestCase.java +++ /dev/null @@ -1,88 +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 org.apache.tuscany.sca.assembly.xml; - -import static org.junit.Assert.assertEquals; - -import java.io.ByteArrayInputStream; -import java.io.ByteArrayOutputStream; -import java.io.InputStream; - -import javax.xml.stream.XMLInputFactory; -import javax.xml.stream.XMLOutputFactory; - -import org.apache.tuscany.sca.assembly.Composite; -import org.apache.tuscany.sca.assembly.Multiplicity; -import org.apache.tuscany.sca.contribution.processor.ExtensibleStAXArtifactProcessor; -import org.apache.tuscany.sca.contribution.processor.ProcessorContext; -import org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessorExtensionPoint; -import org.apache.tuscany.sca.core.DefaultExtensionPointRegistry; -import org.junit.Before; -import org.junit.Test; - -/** - * Test writing SCA XML assemblies. - * - * TUSCANY-2662 - * - * @version $Rev$ $Date$ - */ -public class MultiplicityReadWriteTestCase { - private XMLInputFactory inputFactory; - private XMLOutputFactory outputFactory; - private ExtensibleStAXArtifactProcessor staxProcessor; - private ProcessorContext context; - - @Before - public void setUp() throws Exception { - DefaultExtensionPointRegistry extensionPoints = new DefaultExtensionPointRegistry(); - context = new ProcessorContext(extensionPoints); - inputFactory = XMLInputFactory.newInstance(); - outputFactory = XMLOutputFactory.newInstance(); - StAXArtifactProcessorExtensionPoint staxProcessors = extensionPoints.getExtensionPoint(StAXArtifactProcessorExtensionPoint.class); - staxProcessor = new ExtensibleStAXArtifactProcessor(staxProcessors, inputFactory, outputFactory); - } - - - @Test - public void testReadWriteComposite() throws Exception { - InputStream is = getClass().getResourceAsStream("Multiplicity.composite"); - Composite composite = staxProcessor.read(is, Composite.class, context); - - verifyComposite(composite); - - ByteArrayOutputStream bos = new ByteArrayOutputStream(); - staxProcessor.write(composite, bos, context); - bos.close(); - - ByteArrayInputStream bis = new ByteArrayInputStream(bos.toByteArray()); - composite = staxProcessor.read(bis, Composite.class, context); - - verifyComposite(composite); - - } - - - private void verifyComposite(Composite composite) { - assertEquals(composite.getComponents().get(0).getReferences().get(0).getMultiplicity(), Multiplicity.ZERO_N); - assertEquals(composite.getReferences().get(0).getMultiplicity(), Multiplicity.ONE_N); - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/test/java/org/apache/tuscany/sca/assembly/xml/ReadAllTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/test/java/org/apache/tuscany/sca/assembly/xml/ReadAllTestCase.java deleted file mode 100644 index 155c0c5a47..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/test/java/org/apache/tuscany/sca/assembly/xml/ReadAllTestCase.java +++ /dev/null @@ -1,151 +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 org.apache.tuscany.sca.assembly.xml; - -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertFalse; -import static org.junit.Assert.assertNotNull; -import static org.junit.Assert.assertTrue; - -import java.io.InputStream; - -import javax.xml.namespace.QName; -import javax.xml.stream.XMLInputFactory; - -import org.apache.tuscany.sca.assembly.Callback; -import org.apache.tuscany.sca.assembly.Component; -import org.apache.tuscany.sca.assembly.ComponentReference; -import org.apache.tuscany.sca.assembly.ComponentService; -import org.apache.tuscany.sca.assembly.Composite; -import org.apache.tuscany.sca.assembly.CompositeReference; -import org.apache.tuscany.sca.assembly.CompositeService; -import org.apache.tuscany.sca.assembly.Property; -import org.apache.tuscany.sca.contribution.processor.ExtensibleStAXArtifactProcessor; -import org.apache.tuscany.sca.contribution.processor.ProcessorContext; -import org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessor; -import org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessorExtensionPoint; -import org.apache.tuscany.sca.core.DefaultExtensionPointRegistry; -import org.apache.tuscany.sca.policy.PolicySubject; -import org.junit.BeforeClass; -import org.junit.Test; -import org.w3c.dom.Document; -import org.w3c.dom.Element; - -/** - * Test reading SCA XML assemblies. - * - * @version $Rev$ $Date$ - */ -public class ReadAllTestCase { - private static StAXArtifactProcessor staxProcessor; - private static XMLInputFactory inputFactory; - private static ProcessorContext context; - - @BeforeClass - public static void setUp() throws Exception { - DefaultExtensionPointRegistry extensionPoints = new DefaultExtensionPointRegistry(); - context = new ProcessorContext(extensionPoints); - StAXArtifactProcessorExtensionPoint staxProcessors = extensionPoints.getExtensionPoint(StAXArtifactProcessorExtensionPoint.class); - inputFactory = XMLInputFactory.newInstance(); - staxProcessor = new ExtensibleStAXArtifactProcessor(staxProcessors, inputFactory, null); - } - - @Test - public void testReadComposite() throws Exception { - InputStream is = getClass().getResourceAsStream("TestAllCalculator.composite"); - Composite composite = (Composite)staxProcessor.read(inputFactory.createXMLStreamReader(is), context); - assertNotNull(composite); - assertEquals(composite.getName(), new QName("http://calc", "TestAllCalculator")); - assertTrue(composite.isLocal()); - assertFalse(composite.getAutowire() == Boolean.TRUE); - assertEquals(((PolicySubject)composite).getRequiredIntents().get(0).getName(), new QName("http://test", - "confidentiality")); - assertEquals(((PolicySubject)composite).getPolicySets().get(0).getName(), new QName("http://test", "SecureReliablePolicy")); - - Composite include = composite.getIncludes().get(0); - assertEquals(include.getName(), new QName("http://calc", "TestAllDivide")); - - CompositeService calcCompositeService = (CompositeService)composite.getServices().get(0); - assertEquals(calcCompositeService.getName(), "CalculatorService"); - assertTrue(calcCompositeService.getPromotedService().isUnresolved()); - assertEquals(calcCompositeService.getPromotedService().getName(), - "CalculatorService"); - assertEquals(calcCompositeService.getRequiredIntents().get(0).getName(), - new QName("http://test", "confidentiality")); - assertEquals(calcCompositeService.getPolicySets().get(0).getName(), new QName("http://test", "SecureReliablePolicy")); - // TODO test operations - Callback calcServiceCallback = calcCompositeService.getCallback(); - assertNotNull(calcServiceCallback); - assertEquals(calcServiceCallback.getRequiredIntents().get(0).getName(), - new QName("http://test", "confidentiality")); - assertEquals(calcServiceCallback.getPolicySets().get(0).getName(), new QName("http://test", "SecureReliablePolicy")); - // TODO test operations - - Component calcComponent = composite.getComponents().get(0); - assertEquals(calcComponent.getName(), "CalculatorServiceComponent"); - assertEquals(calcComponent.getAutowire(), Boolean.FALSE); - assertEquals(calcComponent.getRequiredIntents().get(0).getName(), new QName("http://test", - "confidentiality")); - assertEquals(calcComponent.getPolicySets().get(0).getName(), new QName("http://test", "SecureReliablePolicy")); - - ComponentService calcComponentService = calcComponent.getServices().get(0); - assertEquals(calcComponentService.getName(), "CalculatorService"); - assertEquals(calcComponentService.getRequiredIntents().get(0).getName(), - new QName("http://test", "confidentiality")); - assertEquals(calcComponentService.getPolicySets().get(0).getName(), new QName("http://test", "SecureReliablePolicy")); - // TODO test operations - - ComponentReference calcComponentReference = calcComponent.getReferences().get(0); - assertEquals(calcComponentReference.getName(), "addService"); - assertEquals(calcComponentReference.getAutowire(), Boolean.FALSE); - assertEquals(calcComponentReference.isWiredByImpl(), false); - assertEquals(calcComponentReference.getRequiredIntents().get(0).getName(), - new QName("http://test", "confidentiality")); - assertEquals(calcComponentReference.getPolicySets().get(0).getName(), new QName("http://test", "SecureReliablePolicy")); - // TODO test operations - - Property property = calcComponent.getProperties().get(0); - assertEquals(property.getName(), "round"); - Document doc = (Document) property.getValue(); - Element element = doc.getDocumentElement(); - String value = element.getTextContent(); - assertEquals(value, "true"); - assertEquals(property.getXSDType(), new QName("http://www.w3.org/2001/XMLSchema", "boolean")); - assertEquals(property.isMany(), false); - - CompositeReference calcCompositeReference = (CompositeReference)composite.getReferences().get(0); - assertEquals(calcCompositeReference.getName(), "MultiplyService"); - assertTrue(calcCompositeReference.getPromotedReferences().get(0).isUnresolved()); - assertEquals(calcCompositeReference.getPromotedReferences().get(0).getName(), - "CalculatorServiceComponent/multiplyService"); - assertEquals(calcCompositeReference.getRequiredIntents().get(0).getName(), - new QName("http://test", "confidentiality")); - assertEquals(calcCompositeReference.getPolicySets().get(0).getName(), new QName("http://test", "SecureReliablePolicy")); - // TODO test operations - Callback calcCallback = calcCompositeReference.getCallback(); - assertEquals(calcCompositeReference.getRequiredIntents().get(0).getName(), - new QName("http://test", "confidentiality")); - assertEquals(calcCompositeReference.getPolicySets().get(0).getName(), new QName("http://test", "SecureReliablePolicy")); - assertNotNull(calcCallback); - // TODO test operations - - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/test/java/org/apache/tuscany/sca/assembly/xml/ReadDocumentTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/test/java/org/apache/tuscany/sca/assembly/xml/ReadDocumentTestCase.java deleted file mode 100644 index 473e483d31..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/test/java/org/apache/tuscany/sca/assembly/xml/ReadDocumentTestCase.java +++ /dev/null @@ -1,192 +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 org.apache.tuscany.sca.assembly.xml; - -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertNotNull; - -import java.net.URI; -import java.net.URL; -import java.util.HashMap; - -import javax.xml.XMLConstants; -import javax.xml.parsers.SAXParserFactory; -import javax.xml.stream.XMLInputFactory; -import javax.xml.validation.Schema; -import javax.xml.validation.SchemaFactory; -import javax.xml.validation.ValidatorHandler; - -import org.apache.tuscany.sca.assembly.Composite; -import org.apache.tuscany.sca.contribution.processor.DefaultValidatingXMLInputFactory; -import org.apache.tuscany.sca.contribution.processor.DefaultValidationSchemaExtensionPoint; -import org.apache.tuscany.sca.contribution.processor.ExtensibleStAXArtifactProcessor; -import org.apache.tuscany.sca.contribution.processor.ExtensibleURLArtifactProcessor; -import org.apache.tuscany.sca.contribution.processor.ProcessorContext; -import org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessor; -import org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessorExtensionPoint; -import org.apache.tuscany.sca.contribution.processor.URLArtifactProcessor; -import org.apache.tuscany.sca.contribution.processor.URLArtifactProcessorExtensionPoint; -import org.apache.tuscany.sca.contribution.processor.ValidationSchemaExtensionPoint; -import org.apache.tuscany.sca.contribution.resolver.DefaultModelResolver; -import org.apache.tuscany.sca.contribution.resolver.ModelResolver; -import org.apache.tuscany.sca.core.DefaultExtensionPointRegistry; -import org.apache.tuscany.sca.core.DefaultFactoryExtensionPoint; -import org.apache.tuscany.sca.core.ExtensionPointRegistry; -import org.junit.BeforeClass; -import org.junit.Test; -import org.xml.sax.InputSource; -import org.xml.sax.SAXException; -import org.xml.sax.XMLReader; - -/** - * Test reading SCA XML assembly documents. - * - * @version $Rev$ $Date$ - */ -public class ReadDocumentTestCase { - private static final String TUSCANY_11_XSD = "tuscany-sca-1.1.xsd"; - - private static URLArtifactProcessor documentProcessor; - private static ModelResolver resolver; - private static XMLInputFactory inputFactory; - private static StAXArtifactProcessor staxProcessor; - private static ValidatorHandler handler; - private static ProcessorContext context; - - @BeforeClass - public static void setUp() throws Exception { - DefaultExtensionPointRegistry extensionPoints = new DefaultExtensionPointRegistry(); - context = new ProcessorContext(extensionPoints); - URLArtifactProcessorExtensionPoint documentProcessors = - extensionPoints.getExtensionPoint(URLArtifactProcessorExtensionPoint.class); - documentProcessor = new ExtensibleURLArtifactProcessor(documentProcessors); - - StAXArtifactProcessorExtensionPoint staxProcessors = - extensionPoints.getExtensionPoint(StAXArtifactProcessorExtensionPoint.class); - inputFactory = XMLInputFactory.newInstance(); - staxProcessor = new ExtensibleStAXArtifactProcessor(staxProcessors, inputFactory, null); - - resolver = new DefaultModelResolver(); - handler = getValidationHandler(); - - } - - @Test - public void testValidateAssembly() throws Exception { - SAXParserFactory parserFactory = SAXParserFactory.newInstance(); - URL url = getClass().getResource("Calculator.composite"); - XMLReader reader = parserFactory.newSAXParser().getXMLReader(); - reader.setFeature("http://xml.org/sax/features/namespaces", true); - reader.setContentHandler(handler); - reader.parse(new InputSource(url.openStream())); - - } - - private static ValidatorHandler getValidationHandler() throws SAXException { - SchemaFactory schemaFactory; - try { - schemaFactory = SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI); - schemaFactory.setFeature("http://xml.org/sax/features/external-parameter-entities", false); - } catch (Error e) { - // Some old JDKs don't support XMLSchema validation - return null; - } catch (Exception e) { - // Some old JDKs don't support XMLSchema validation - return null; - } - Schema schema = schemaFactory.newSchema(ReadDocumentTestCase.class.getClassLoader().getResource(TUSCANY_11_XSD)); - ValidatorHandler handler = schema.newValidatorHandler(); - return handler; - } - - @Test - public void testValidateImplementation() throws Exception { - SAXParserFactory parserFactory = SAXParserFactory.newInstance(); - URL url = getClass().getResource("Calculator.composite"); - XMLReader reader = parserFactory.newSAXParser().getXMLReader(); - reader.setFeature("http://xml.org/sax/features/namespaces", true); - reader.setContentHandler(handler); - reader.parse(new InputSource(url.openStream())); - } - - @Test - public void testReadImplementation() throws Exception { - ExtensionPointRegistry registry = new DefaultExtensionPointRegistry(); - ValidationSchemaExtensionPoint schemas = new DefaultValidationSchemaExtensionPoint(registry, new HashMap()); - schemas.addSchema(getClass().getClassLoader().getResource(TUSCANY_11_XSD).toString()); - XMLInputFactory validatingInputFactory = new DefaultValidatingXMLInputFactory(inputFactory, schemas); - DefaultFactoryExtensionPoint factories = new DefaultFactoryExtensionPoint(registry); - factories.addFactory(validatingInputFactory); - - CompositeDocumentProcessor compositeDocumentProcessor = - new CompositeDocumentProcessor(factories, staxProcessor); - - URL url = getClass().getResource("Calculator.composite"); - URI uri = URI.create("Calculator.composite"); - Composite composite = (Composite)compositeDocumentProcessor.read(null, uri, url, context); - assertNotNull(composite); - } - - @Test - public void testValidateBinding() throws Exception { - SAXParserFactory parserFactory = SAXParserFactory.newInstance(); - URL url = getClass().getResource("RMIBindingTest.composite"); - XMLReader reader = parserFactory.newSAXParser().getXMLReader(); - reader.setFeature("http://xml.org/sax/features/namespaces", true); - reader.setContentHandler(handler); - reader.parse(new InputSource(url.openStream())); - } - - @Test - public void testReadBinding() throws Exception { - - ExtensionPointRegistry registry = new DefaultExtensionPointRegistry(); - ValidationSchemaExtensionPoint schemas = new DefaultValidationSchemaExtensionPoint(registry, new HashMap()); - schemas.addSchema(getClass().getClassLoader().getResource(TUSCANY_11_XSD).toString()); - XMLInputFactory validatingInputFactory = new DefaultValidatingXMLInputFactory(inputFactory, schemas); - DefaultFactoryExtensionPoint factories = new DefaultFactoryExtensionPoint(registry); - factories.addFactory(validatingInputFactory); - CompositeDocumentProcessor compositeDocumentProcessor = - new CompositeDocumentProcessor(factories, staxProcessor); - - URL url = getClass().getResource("RMIBindingTest.composite"); - URI uri = URI.create("RMIBindingTest.composite"); - Composite composite = (Composite)compositeDocumentProcessor.read(null, uri, url, context); - assertNotNull(composite); - } - - @Test - public void testResolveComposite() throws Exception { - URL url = getClass().getResource("Calculator.composite"); - URI uri = URI.create("Calculator.composite"); - Composite nestedComposite = (Composite)documentProcessor.read(null, uri, url, context); - assertNotNull(nestedComposite); - resolver.addModel(nestedComposite, context); - - url = getClass().getResource("TestAllCalculator.composite"); - uri = URI.create("TestAllCalculator.composite"); - Composite composite = (Composite)documentProcessor.read(null, uri, url, context); - - documentProcessor.resolve(composite, resolver, context); - - assertEquals(composite.getComponents().get(2).getImplementation(), nestedComposite); - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/test/java/org/apache/tuscany/sca/assembly/xml/ReadTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/test/java/org/apache/tuscany/sca/assembly/xml/ReadTestCase.java deleted file mode 100644 index 05d320b211..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/test/java/org/apache/tuscany/sca/assembly/xml/ReadTestCase.java +++ /dev/null @@ -1,85 +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 org.apache.tuscany.sca.assembly.xml; - -import static org.junit.Assert.assertNotNull; - -import java.io.InputStream; - -import javax.xml.stream.XMLInputFactory; -import javax.xml.stream.XMLOutputFactory; -import javax.xml.stream.XMLStreamReader; - -import org.apache.tuscany.sca.contribution.processor.ExtensibleStAXArtifactProcessor; -import org.apache.tuscany.sca.contribution.processor.ProcessorContext; -import org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessor; -import org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessorExtensionPoint; -import org.apache.tuscany.sca.core.DefaultExtensionPointRegistry; -import org.apache.tuscany.sca.core.ExtensionPointRegistry; -import org.junit.BeforeClass; -import org.junit.Test; - -/** - * Test reading SCA XML assemblies. - * - * @version $Rev$ $Date$ - */ -public class ReadTestCase { - - private static XMLInputFactory inputFactory; - private static StAXArtifactProcessor staxProcessor; - private static ProcessorContext context; - - @BeforeClass - public static void setUp() throws Exception { - ExtensionPointRegistry extensionPoints = new DefaultExtensionPointRegistry(); - context = new ProcessorContext(extensionPoints); - inputFactory = XMLInputFactory.newInstance(); - StAXArtifactProcessorExtensionPoint staxProcessors = extensionPoints.getExtensionPoint(StAXArtifactProcessorExtensionPoint.class); - staxProcessor = new ExtensibleStAXArtifactProcessor(staxProcessors, XMLInputFactory.newInstance(), XMLOutputFactory.newInstance()); - } - - - @Test - public void testReadComponentType() throws Exception { - InputStream is = getClass().getResourceAsStream("CalculatorImpl.componentType"); - XMLStreamReader reader = inputFactory.createXMLStreamReader(is); - assertNotNull(staxProcessor.read(reader, context)); - is.close(); - } - - @Test - public void testReadComposite() throws Exception { - InputStream is = getClass().getResourceAsStream("Calculator.composite"); - XMLStreamReader reader = inputFactory.createXMLStreamReader(is); - assertNotNull(staxProcessor.read(reader, context)); - is.close(); - - } - - @Test - public void testReadCompositeAndWireIt() throws Exception { - InputStream is = getClass().getResourceAsStream("Calculator.composite"); - XMLStreamReader reader = inputFactory.createXMLStreamReader(is); - assertNotNull(staxProcessor.read(reader, context)); - is.close(); - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/test/java/org/apache/tuscany/sca/assembly/xml/ReadWriteAnyAttributeTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/test/java/org/apache/tuscany/sca/assembly/xml/ReadWriteAnyAttributeTestCase.java deleted file mode 100644 index 28a2bb6851..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/test/java/org/apache/tuscany/sca/assembly/xml/ReadWriteAnyAttributeTestCase.java +++ /dev/null @@ -1,130 +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 org.apache.tuscany.sca.assembly.xml; - -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertNotNull; - -import java.io.ByteArrayOutputStream; -import java.io.StringReader; - -import javax.xml.stream.XMLInputFactory; -import javax.xml.stream.XMLOutputFactory; -import javax.xml.stream.XMLStreamReader; - -import org.apache.tuscany.sca.assembly.Composite; -import org.apache.tuscany.sca.contribution.processor.ExtensibleStAXArtifactProcessor; -import org.apache.tuscany.sca.contribution.processor.ProcessorContext; -import org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessorExtensionPoint; -import org.apache.tuscany.sca.contribution.processor.StAXAttributeProcessor; -import org.apache.tuscany.sca.contribution.processor.StAXAttributeProcessorExtensionPoint; -import org.apache.tuscany.sca.core.DefaultExtensionPointRegistry; -import org.apache.tuscany.sca.core.ExtensionPointRegistry; -import org.junit.Test; - -/** - * Test reading SCA XML assemblies. - * - * @version $Rev$ $Date$ - */ -public class ReadWriteAnyAttributeTestCase { - - private static final String XML = ""+ - ""+ - ""+ - ""+ - ""+ - ""; - - private XMLInputFactory inputFactory; - private ExtensibleStAXArtifactProcessor staxProcessor; - private ProcessorContext context; - - /** - * Initialize the test environment - * This takes care to register attribute processors when provided - * - * @param attributeProcessor - * @throws Exception - */ - private void init(StAXAttributeProcessor attributeProcessor) throws Exception { - ExtensionPointRegistry extensionPoints = new DefaultExtensionPointRegistry(); - context = new ProcessorContext(extensionPoints); - inputFactory = XMLInputFactory.newInstance(); - StAXArtifactProcessorExtensionPoint staxProcessors = extensionPoints.getExtensionPoint(StAXArtifactProcessorExtensionPoint.class); - - if(attributeProcessor != null) { - StAXAttributeProcessorExtensionPoint staxAttributeProcessors = extensionPoints.getExtensionPoint(StAXAttributeProcessorExtensionPoint.class); - staxAttributeProcessors.addArtifactProcessor(attributeProcessor); - } - - staxProcessor = new ExtensibleStAXArtifactProcessor(staxProcessors, XMLInputFactory.newInstance(), XMLOutputFactory.newInstance()); - } - - /** - * Read and Write a composite that has a extended attribute - * and a particular attribute processor - * @throws Exception - */ - @Test - public void testReadWriteCompositeWithAttributeProcessor() throws Exception { - init(new TestAttributeProcessor()); - - XMLStreamReader reader = inputFactory.createXMLStreamReader(new StringReader(XML)); - Composite composite = (Composite) staxProcessor.read(reader, context); - assertNotNull(composite); - reader.close(); - - ByteArrayOutputStream bos = new ByteArrayOutputStream(); - staxProcessor.write(composite, bos, context); - - // used for debug comparison - // System.out.println(XML); - // System.out.println(bos.toString()); - - assertEquals(XML, bos.toString()); - } - - /** - * Read and Write a composite that has a extended attribute - * but no particular processor for it - * @throws Exception - */ - @Test - public void testDefaultReadWriteComposite() throws Exception { - init(null); - - XMLStreamReader reader = inputFactory.createXMLStreamReader(new StringReader(XML)); - Composite composite = (Composite) staxProcessor.read(reader, context); - assertNotNull(composite); - reader.close(); - - ByteArrayOutputStream bos = new ByteArrayOutputStream(); - staxProcessor.write(composite, bos, context); - - // used for debug comparison - // System.out.println(XML); - // System.out.println(bos.toString()); - - assertEquals(XML, bos.toString()); - } -} \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/test/java/org/apache/tuscany/sca/assembly/xml/ReadWriteAnyElementTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/test/java/org/apache/tuscany/sca/assembly/xml/ReadWriteAnyElementTestCase.java deleted file mode 100644 index 7a36c1d97d..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/test/java/org/apache/tuscany/sca/assembly/xml/ReadWriteAnyElementTestCase.java +++ /dev/null @@ -1,151 +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 org.apache.tuscany.sca.assembly.xml; - -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertNotNull; - -import java.io.ByteArrayOutputStream; -import java.io.StringReader; - -import javax.xml.stream.XMLOutputFactory; -import javax.xml.stream.XMLStreamReader; - -import org.apache.tuscany.sca.assembly.Composite; -import org.apache.tuscany.sca.contribution.processor.ExtensibleStAXArtifactProcessor; -import org.apache.tuscany.sca.contribution.processor.ProcessorContext; -import org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessorExtensionPoint; -import org.apache.tuscany.sca.contribution.processor.ValidatingXMLInputFactory; -import org.apache.tuscany.sca.core.DefaultExtensionPointRegistry; -import org.apache.tuscany.sca.core.ExtensionPointRegistry; -import org.apache.tuscany.sca.core.FactoryExtensionPoint; -import org.junit.After; -import org.junit.Before; -import org.junit.Ignore; -import org.junit.Test; - -public class ReadWriteAnyElementTestCase { - private static final String XML_RECURSIVE_EXTENDED_ELEMENT = - "" + - "" + - "" + - "" + - "" + - "" + - ""; - - private static final String XML_UNKNOWN_IMPL = - "" + - "" + - "" + - "" + - "" + - "" + - "" + - "" + - ""; - - private static final String XML_UNKNOWN_IMPL_WITH_INVALID_ATTRIBUTE = - "" + - "" + - "" + - "" + - "" + - "" + - "" + - "" + - ""; - - - private ValidatingXMLInputFactory inputFactory; - private ExtensibleStAXArtifactProcessor staxProcessor; - private ProcessorContext context; - - @Before - public void setUp() throws Exception { - ExtensionPointRegistry extensionPoints = new DefaultExtensionPointRegistry(); - context = new ProcessorContext(extensionPoints); - - FactoryExtensionPoint modelFactories = extensionPoints.getExtensionPoint(FactoryExtensionPoint.class); - inputFactory = modelFactories.getFactory(ValidatingXMLInputFactory.class); - - StAXArtifactProcessorExtensionPoint staxProcessors = extensionPoints.getExtensionPoint(StAXArtifactProcessorExtensionPoint.class); - staxProcessor = new ExtensibleStAXArtifactProcessor(staxProcessors, inputFactory, XMLOutputFactory.newInstance()); - } - - @After - public void tearDown() throws Exception { - } - - @Test - public void testReadWriteExtendedRecursiveElement() throws Exception { - XMLStreamReader reader = inputFactory.createXMLStreamReader(new StringReader(XML_RECURSIVE_EXTENDED_ELEMENT)); - ValidatingXMLInputFactory.setMonitor(reader, context.getMonitor()); - Composite composite = (Composite)staxProcessor.read(reader, context); - assertNotNull(composite); - reader.close(); - - ByteArrayOutputStream bos = new ByteArrayOutputStream(); - staxProcessor.write(composite, bos, context); - - // used for debug comparison - // System.out.println(XML_RECURSIVE_EXTENDED_ELEMENT); - // System.out.println(bos.toString()); - - assertEquals(XML_RECURSIVE_EXTENDED_ELEMENT, bos.toString()); - bos.close(); - } - - @Test - public void testReadWriteUnknwonImpl() throws Exception { - XMLStreamReader reader = inputFactory.createXMLStreamReader(new StringReader(XML_UNKNOWN_IMPL)); - Composite composite = (Composite)staxProcessor.read(reader, context); - assertNotNull(composite); - reader.close(); - - ByteArrayOutputStream bos = new ByteArrayOutputStream(); - staxProcessor.write(composite, bos, context); - - // used for debug comparison - // System.out.println(XML_UNKNOWN_IMPL); - // System.out.println(bos.toString()); - - assertEquals(XML_UNKNOWN_IMPL, bos.toString()); - bos.close(); - } - - // @Test - @Ignore() - public void testReadWriteInvalidAttribute() throws Exception { - XMLStreamReader reader = inputFactory.createXMLStreamReader(new StringReader(XML_UNKNOWN_IMPL_WITH_INVALID_ATTRIBUTE)); - Composite composite = (Composite)staxProcessor.read(reader, context); - assertNotNull(composite); - reader.close(); - - ByteArrayOutputStream bos = new ByteArrayOutputStream(); - staxProcessor.write(composite, bos, context); - - // used for debug comparison - // System.out.println(XML_UNKNOWN_IMPL); - // System.out.println(bos.toString()); - - assertEquals(XML_UNKNOWN_IMPL, bos.toString()); - bos.close(); - } -} \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/test/java/org/apache/tuscany/sca/assembly/xml/ReadWriteLocalCompositeTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/test/java/org/apache/tuscany/sca/assembly/xml/ReadWriteLocalCompositeTestCase.java deleted file mode 100644 index fc675dcdce..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/test/java/org/apache/tuscany/sca/assembly/xml/ReadWriteLocalCompositeTestCase.java +++ /dev/null @@ -1,103 +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 org.apache.tuscany.sca.assembly.xml; - -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertNotNull; -import static org.junit.Assert.assertTrue; - -import java.io.ByteArrayOutputStream; -import java.io.InputStream; - -import javax.xml.stream.XMLInputFactory; -import javax.xml.stream.XMLOutputFactory; -import javax.xml.stream.XMLStreamReader; - -import org.apache.tuscany.sca.assembly.Composite; -import org.apache.tuscany.sca.contribution.processor.ExtensibleStAXArtifactProcessor; -import org.apache.tuscany.sca.contribution.processor.ProcessorContext; -import org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessorExtensionPoint; -import org.apache.tuscany.sca.contribution.processor.StAXAttributeProcessorExtensionPoint; -import org.apache.tuscany.sca.core.DefaultExtensionPointRegistry; -import org.apache.tuscany.sca.core.ExtensionPointRegistry; -import org.junit.After; -import org.junit.Before; -import org.junit.Test; - - -/** - * Test reading SCA XML assemblies. - * - * @version $Rev$ $Date$ - */ -public class ReadWriteLocalCompositeTestCase { - - private XMLInputFactory inputFactory; - private ExtensibleStAXArtifactProcessor staxProcessor; - private ProcessorContext context; - - private static final String LOCAL_COMPOSITE_XML = ""+ - ""+ - ""; - - @Before - public void setUp() throws Exception { - ExtensionPointRegistry extensionPoints = new DefaultExtensionPointRegistry(); - context = new ProcessorContext(extensionPoints); - inputFactory = XMLInputFactory.newInstance(); - StAXArtifactProcessorExtensionPoint staxProcessors = extensionPoints.getExtensionPoint(StAXArtifactProcessorExtensionPoint.class); - - StAXAttributeProcessorExtensionPoint staxAttributeProcessors = extensionPoints.getExtensionPoint(StAXAttributeProcessorExtensionPoint.class); - staxAttributeProcessors.addArtifactProcessor(new TestAttributeProcessor()); - - staxProcessor = new ExtensibleStAXArtifactProcessor(staxProcessors, XMLInputFactory.newInstance(), XMLOutputFactory.newInstance()); - } - - @After - public void tearDown() throws Exception { - - } - - @Test - public void testReadComposite() throws Exception { - InputStream is = getClass().getResourceAsStream("local.composite"); - XMLStreamReader reader = inputFactory.createXMLStreamReader(is); - Composite composite = (Composite) staxProcessor.read(reader, context); - assertNotNull(composite); - assertTrue(composite.isLocal()); - is.close(); - } - - @Test - public void testWriteComposite() throws Exception { - InputStream is = getClass().getResourceAsStream("local.composite"); - XMLStreamReader reader = inputFactory.createXMLStreamReader(is); - Composite composite = (Composite) staxProcessor.read(reader, context); - assertNotNull(composite); - assertTrue(composite.isLocal()); - is.close(); - - ByteArrayOutputStream bos = new ByteArrayOutputStream(); - staxProcessor.write(composite, bos, context); - System.out.println(bos.toString()); - - assertEquals(LOCAL_COMPOSITE_XML, bos.toString()); - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/test/java/org/apache/tuscany/sca/assembly/xml/ResolvePolicyTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/test/java/org/apache/tuscany/sca/assembly/xml/ResolvePolicyTestCase.java deleted file mode 100644 index df588e3504..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/test/java/org/apache/tuscany/sca/assembly/xml/ResolvePolicyTestCase.java +++ /dev/null @@ -1,143 +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 org.apache.tuscany.sca.assembly.xml; - -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertFalse; -import static org.junit.Assert.assertNotNull; -import static org.junit.Assert.assertNull; -import static org.junit.Assert.assertTrue; - -import java.net.URI; -import java.net.URL; - -import org.apache.tuscany.sca.assembly.Composite; -import org.apache.tuscany.sca.contribution.processor.ExtensibleURLArtifactProcessor; -import org.apache.tuscany.sca.contribution.processor.ProcessorContext; -import org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessorExtensionPoint; -import org.apache.tuscany.sca.contribution.processor.URLArtifactProcessor; -import org.apache.tuscany.sca.contribution.processor.URLArtifactProcessorExtensionPoint; -import org.apache.tuscany.sca.contribution.resolver.DefaultModelResolver; -import org.apache.tuscany.sca.contribution.resolver.ModelResolver; -import org.apache.tuscany.sca.core.DefaultExtensionPointRegistry; -import org.apache.tuscany.sca.definitions.Definitions; -import org.apache.tuscany.sca.policy.PolicySubject; -import org.junit.BeforeClass; -import org.junit.Test; - -/** - * Test reading SCA XML assembly documents. - * - * @version $Rev$ $Date$ - */ -public class ResolvePolicyTestCase { - - private static URLArtifactProcessor documentProcessor; - private static ModelResolver resolver; - private static URLArtifactProcessor policyDefinitionsProcessor; - private static ProcessorContext context; - - @BeforeClass - public static void setUp() throws Exception { - DefaultExtensionPointRegistry extensionPoints = new DefaultExtensionPointRegistry(); - context = new ProcessorContext(extensionPoints); - resolver = new DefaultModelResolver(); - - URLArtifactProcessorExtensionPoint documentProcessors = extensionPoints.getExtensionPoint(URLArtifactProcessorExtensionPoint.class); - documentProcessor = new ExtensibleURLArtifactProcessor(documentProcessors); - policyDefinitionsProcessor = documentProcessors.getProcessor(Definitions.class); - - // Create StAX processors - StAXArtifactProcessorExtensionPoint staxProcessors = extensionPoints.getExtensionPoint(StAXArtifactProcessorExtensionPoint.class); - staxProcessors.addArtifactProcessor(new TestPolicyProcessor()); - } - - private void preResolvePolicyTests(Composite composite) { - assertNull(((PolicySubject)composite).getRequiredIntents().get(0).getDescription()); - assertTrue(((PolicySubject)composite).getPolicySets().get(0).getProvidedIntents().isEmpty()); - - assertNull(composite.getServices().get(0).getRequiredIntents().get(0).getDescription()); - assertTrue(composite.getServices().get(0).getPolicySets().get(0).getProvidedIntents().isEmpty()); - assertNull(composite.getServices().get(0).getCallback().getRequiredIntents().get(0).getDescription()); - assertTrue(composite.getServices().get(0).getCallback().getPolicySets().get(0).getProvidedIntents().isEmpty()); - - assertNull(composite.getComponents().get(0).getRequiredIntents().get(0).getDescription()); - assertTrue(composite.getComponents().get(0).getPolicySets().get(0).getProvidedIntents().isEmpty()); - assertNull(composite.getComponents().get(0).getServices().get(0).getRequiredIntents().get(0).getDescription()); - assertTrue(composite.getComponents().get(0).getServices().get(0).getPolicySets().get(0).getProvidedIntents().isEmpty()); - assertNull(composite.getComponents().get(0).getReferences().get(0).getRequiredIntents().get(0).getDescription()); - assertTrue(composite.getComponents().get(0).getReferences().get(0).getPolicySets().get(0).getProvidedIntents().isEmpty()); - - assertNull(composite.getReferences().get(0).getRequiredIntents().get(0).getDescription()); - assertTrue(composite.getReferences().get(0).getPolicySets().get(0).getProvidedIntents().isEmpty()); - assertNull(composite.getReferences().get(0).getCallback().getRequiredIntents().get(0).getDescription()); - assertTrue(composite.getReferences().get(0).getCallback().getPolicySets().get(0).getProvidedIntents().isEmpty()); - } - - private void postResolvePolicyTests(Composite composite) { - assertNotNull(((PolicySubject)composite).getRequiredIntents().get(0).getDescription()); - assertFalse(((PolicySubject)composite).getPolicySets().get(0).getProvidedIntents().isEmpty()); - assertNotNull(((PolicySubject)composite).getPolicySets().get(0).getProvidedIntents().get(1).getDescription()); - - assertNotNull(composite.getServices().get(0).getRequiredIntents().get(0).getDescription()); - assertFalse(composite.getServices().get(0).getPolicySets().get(0).getProvidedIntents().isEmpty()); - assertNotNull(composite.getServices().get(0).getPolicySets().get(0).getProvidedIntents().get(1).getDescription()); - assertNotNull(composite.getServices().get(0).getCallback().getRequiredIntents().get(0).getDescription()); - assertFalse(composite.getServices().get(0).getCallback().getPolicySets().get(0).getProvidedIntents().isEmpty()); - assertNotNull(composite.getServices().get(0).getCallback().getPolicySets().get(0).getProvidedIntents().get(1).getDescription()); - - assertNotNull(composite.getComponents().get(0).getRequiredIntents().get(0).getDescription()); - assertFalse(composite.getComponents().get(0).getPolicySets().get(0).getProvidedIntents().isEmpty()); - assertNotNull(composite.getComponents().get(0).getPolicySets().get(0).getProvidedIntents().get(1).getDescription()); - assertNotNull(composite.getComponents().get(0).getServices().get(0).getRequiredIntents().get(0).getDescription()); - assertFalse(composite.getComponents().get(0).getServices().get(0).getPolicySets().get(0).getProvidedIntents().isEmpty()); - assertNotNull(composite.getComponents().get(0).getServices().get(0).getPolicySets().get(0).getProvidedIntents().get(1).getDescription()); - assertNotNull(composite.getComponents().get(0).getReferences().get(0).getRequiredIntents().get(0).getDescription()); - assertFalse(composite.getComponents().get(0).getReferences().get(0).getPolicySets().get(0).getProvidedIntents().isEmpty()); - assertNotNull(composite.getComponents().get(0).getReferences().get(0).getPolicySets().get(0).getProvidedIntents().get(1).getDescription()); - - assertNotNull(composite.getReferences().get(0).getRequiredIntents().get(0).getDescription()); - assertFalse(composite.getReferences().get(0).getPolicySets().get(0).getProvidedIntents().isEmpty()); - assertNotNull(composite.getReferences().get(0).getPolicySets().get(0).getProvidedIntents().get(1).getDescription()); - assertNotNull(composite.getReferences().get(0).getCallback().getRequiredIntents().get(0).getDescription()); - assertFalse(composite.getReferences().get(0).getCallback().getPolicySets().get(0).getProvidedIntents().isEmpty()); - assertNotNull(composite.getReferences().get(0).getCallback().getPolicySets().get(0).getProvidedIntents().get(1).getDescription()); - - - } - - @Test - public void testResolveComposite() throws Exception { - URL url = getClass().getResource("Calculator.composite"); - URI uri = URI.create("Calculator.composite"); - Composite nestedComposite = (Composite)documentProcessor.read(null, uri, url, context); - assertNotNull(nestedComposite); - resolver.addModel(nestedComposite, context); - - url = getClass().getResource("TestAllCalculator.composite"); - uri = URI.create("TestAllCalculator.composite"); - Composite composite = (Composite)documentProcessor.read(null, uri, url, context); - - documentProcessor.resolve(composite, resolver, context); - - assertEquals(composite.getComponents().get(2).getImplementation(), nestedComposite); - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/test/java/org/apache/tuscany/sca/assembly/xml/ResolveTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/test/java/org/apache/tuscany/sca/assembly/xml/ResolveTestCase.java deleted file mode 100644 index 28e679da4a..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/test/java/org/apache/tuscany/sca/assembly/xml/ResolveTestCase.java +++ /dev/null @@ -1,82 +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 org.apache.tuscany.sca.assembly.xml; - -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertNotNull; - -import java.io.InputStream; - -import javax.xml.stream.XMLInputFactory; -import javax.xml.stream.XMLStreamReader; - -import org.apache.tuscany.sca.assembly.Composite; -import org.apache.tuscany.sca.contribution.processor.ProcessorContext; -import org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessor; -import org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessorExtensionPoint; -import org.apache.tuscany.sca.contribution.resolver.DefaultModelResolver; -import org.apache.tuscany.sca.contribution.resolver.ModelResolver; -import org.apache.tuscany.sca.core.DefaultExtensionPointRegistry; -import org.junit.BeforeClass; -import org.junit.Test; - - -/** - * Test resolving SCA XML assemblies. - * - * @version $Rev$ $Date$ - */ -public class ResolveTestCase { - - private static XMLInputFactory inputFactory; - private static StAXArtifactProcessorExtensionPoint staxProcessors; - private static ModelResolver resolver; - private static ProcessorContext context; - - @BeforeClass - public static void setUp() throws Exception { - DefaultExtensionPointRegistry extensionPoints = new DefaultExtensionPointRegistry(); - context = new ProcessorContext(extensionPoints); - inputFactory = XMLInputFactory.newInstance(); - staxProcessors = extensionPoints.getExtensionPoint(StAXArtifactProcessorExtensionPoint.class); - resolver = new DefaultModelResolver(); - } - - @Test - public void testResolveComposite() throws Exception { - InputStream is = getClass().getResourceAsStream("Calculator.composite"); - StAXArtifactProcessor compositeReader = staxProcessors.getProcessor(Composite.class); - XMLStreamReader reader = inputFactory.createXMLStreamReader(is); - Composite nestedComposite = compositeReader.read(reader, context); - is.close(); - assertNotNull(nestedComposite); - resolver.addModel(nestedComposite, context); - - is = getClass().getResourceAsStream("TestAllCalculator.composite"); - reader = inputFactory.createXMLStreamReader(is); - Composite composite = compositeReader.read(reader, context); - is.close(); - - compositeReader.resolve(composite, resolver, context); - - assertEquals(composite.getComponents().get(2).getImplementation(), nestedComposite); - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/test/java/org/apache/tuscany/sca/assembly/xml/StripURISpacesTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/test/java/org/apache/tuscany/sca/assembly/xml/StripURISpacesTestCase.java deleted file mode 100644 index 8d9bc72389..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/test/java/org/apache/tuscany/sca/assembly/xml/StripURISpacesTestCase.java +++ /dev/null @@ -1,78 +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 org.apache.tuscany.sca.assembly.xml; - -import static org.junit.Assert.assertNotNull; -import static org.junit.Assert.assertEquals; - -import java.io.InputStream; - -import javax.xml.stream.XMLInputFactory; -import javax.xml.stream.XMLOutputFactory; -import javax.xml.stream.XMLStreamReader; - -import org.apache.tuscany.sca.assembly.Composite; -import org.apache.tuscany.sca.assembly.CompositeService; -import org.apache.tuscany.sca.contribution.processor.ExtensibleStAXArtifactProcessor; -import org.apache.tuscany.sca.contribution.processor.ProcessorContext; -import org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessor; -import org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessorExtensionPoint; -import org.apache.tuscany.sca.core.DefaultExtensionPointRegistry; -import org.apache.tuscany.sca.core.ExtensionPointRegistry; -import org.junit.BeforeClass; -import org.junit.Test; - -/** - * Test reading SCA XML assemblies. - * - * @version $Rev$ $Date$ - */ -public class StripURISpacesTestCase { - - private static XMLInputFactory inputFactory; - private static StAXArtifactProcessor staxProcessor; - private static ProcessorContext context; - - @BeforeClass - public static void setUp() throws Exception { - ExtensionPointRegistry extensionPoints = new DefaultExtensionPointRegistry(); - context = new ProcessorContext(extensionPoints); - inputFactory = XMLInputFactory.newInstance(); - StAXArtifactProcessorExtensionPoint staxProcessors = extensionPoints.getExtensionPoint(StAXArtifactProcessorExtensionPoint.class); - staxProcessor = new ExtensibleStAXArtifactProcessor(staxProcessors, XMLInputFactory.newInstance(), XMLOutputFactory.newInstance()); - } - - - - @Test - public void testReadComposite() throws Exception { - InputStream is = getClass().getResourceAsStream("CalculatorURISpaces.composite"); - XMLStreamReader reader = inputFactory.createXMLStreamReader(is); - Composite composite = (Composite)staxProcessor.read(reader, context); - assertNotNull(composite); - is.close(); - - CompositeService compositeService = (CompositeService)composite.getServices().get(0); - assertNotNull(compositeService); - - // Promoted component name with leading and training spaces removed - assertEquals("CalculatorServiceComponent", compositeService.getPromotedComponent().getName()); - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/test/java/org/apache/tuscany/sca/assembly/xml/TestAttributeProcessor.java b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/test/java/org/apache/tuscany/sca/assembly/xml/TestAttributeProcessor.java deleted file mode 100644 index b6f4c11ac2..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/test/java/org/apache/tuscany/sca/assembly/xml/TestAttributeProcessor.java +++ /dev/null @@ -1,62 +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 org.apache.tuscany.sca.assembly.xml; - -import javax.xml.namespace.QName; -import javax.xml.stream.XMLStreamException; -import javax.xml.stream.XMLStreamReader; -import javax.xml.stream.XMLStreamWriter; - -import org.apache.tuscany.sca.contribution.processor.BaseStAXArtifactProcessor; -import org.apache.tuscany.sca.contribution.processor.ContributionReadException; -import org.apache.tuscany.sca.contribution.processor.ContributionResolveException; -import org.apache.tuscany.sca.contribution.processor.ContributionWriteException; -import org.apache.tuscany.sca.contribution.processor.ProcessorContext; -import org.apache.tuscany.sca.contribution.processor.StAXAttributeProcessor; -import org.apache.tuscany.sca.contribution.resolver.ModelResolver; - -/** - * A Policy Processor used for testing. - * - * @version $Rev$ $Date$ - */ -public class TestAttributeProcessor extends BaseStAXArtifactProcessor implements StAXAttributeProcessor { - private static final QName ATTRIBUTE = new QName("http://test", "customAttribute"); - - public QName getArtifactType() { - return ATTRIBUTE; - } - - public String read(QName attributeName, XMLStreamReader reader, ProcessorContext context) throws ContributionReadException, XMLStreamException { - return reader.getAttributeValue(attributeName.getNamespaceURI(), attributeName.getLocalPart()); - } - - public void write(String value, XMLStreamWriter writer, ProcessorContext context) throws ContributionWriteException, XMLStreamException { - writer.setPrefix(ATTRIBUTE.getPrefix(), ATTRIBUTE.getNamespaceURI()); - writer.writeAttribute(ATTRIBUTE.getLocalPart(), value); - } - - public Class getModelType() { - return String.class; - } - - public void resolve(String arg0, ModelResolver arg1, ProcessorContext context) throws ContributionResolveException { - - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/test/java/org/apache/tuscany/sca/assembly/xml/TestPolicyProcessor.java b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/test/java/org/apache/tuscany/sca/assembly/xml/TestPolicyProcessor.java deleted file mode 100644 index cfec8dee7a..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/test/java/org/apache/tuscany/sca/assembly/xml/TestPolicyProcessor.java +++ /dev/null @@ -1,83 +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 org.apache.tuscany.sca.assembly.xml; - -import javax.xml.namespace.QName; -import javax.xml.stream.XMLStreamException; -import javax.xml.stream.XMLStreamReader; -import javax.xml.stream.XMLStreamWriter; - -import org.apache.tuscany.sca.contribution.processor.ContributionReadException; -import org.apache.tuscany.sca.contribution.processor.ContributionResolveException; -import org.apache.tuscany.sca.contribution.processor.ContributionWriteException; -import org.apache.tuscany.sca.contribution.processor.ProcessorContext; -import org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessor; -import org.apache.tuscany.sca.contribution.resolver.ModelResolver; -import org.apache.tuscany.sca.policy.PolicyExpression; - -/** - * A PolicyExpression Processor used for testing. - * - * @version $Rev$ $Date$ - */ -public class TestPolicyProcessor implements StAXArtifactProcessor { - - public QName getArtifactType() { - return new QName("http://schemas.xmlsoap.org/ws/2004/09/policy", "PolicyAttachment"); - } - - public PolicyExpression read(XMLStreamReader arg0, ProcessorContext context) throws ContributionReadException, XMLStreamException { - return new MockPolicyImplOne(); - } - - public void write(PolicyExpression arg0, XMLStreamWriter arg1, ProcessorContext context) throws ContributionWriteException, - XMLStreamException { - } - - public Class getModelType() { - return PolicyExpression.class; - } - - public void resolve(PolicyExpression arg0, ModelResolver arg1, ProcessorContext context) throws ContributionResolveException { - } - - public class MockPolicyImplOne implements PolicyExpression { - public T getPolicy() { - return null; - } - - public void setName(QName name) { - } - - public void setPolicy(T policy) { - } - - public QName getName() { - return new QName("http://schemas.xmlsoap.org/ws/2004/09/policy", "PolicyAttachment"); - } - - public boolean isUnresolved() { - return false; - } - - public void setUnresolved(boolean unresolved) { - } - - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/test/java/org/apache/tuscany/sca/assembly/xml/TestSCABindingFactoryImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/test/java/org/apache/tuscany/sca/assembly/xml/TestSCABindingFactoryImpl.java deleted file mode 100644 index 5e3fa15b69..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/test/java/org/apache/tuscany/sca/assembly/xml/TestSCABindingFactoryImpl.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 org.apache.tuscany.sca.assembly.xml; - -import org.apache.tuscany.sca.assembly.SCABinding; -import org.apache.tuscany.sca.assembly.SCABindingFactory; - -/** - * A factory for the SCA binding model. - * - * @version $Rev$ $Date$ - */ -public class TestSCABindingFactoryImpl implements SCABindingFactory { - public SCABinding createSCABinding() { - return new TestSCABindingImpl(); - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/test/java/org/apache/tuscany/sca/assembly/xml/TestSCABindingImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/test/java/org/apache/tuscany/sca/assembly/xml/TestSCABindingImpl.java deleted file mode 100644 index f83a2ebd14..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/test/java/org/apache/tuscany/sca/assembly/xml/TestSCABindingImpl.java +++ /dev/null @@ -1,162 +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 org.apache.tuscany.sca.assembly.xml; - -import java.util.ArrayList; -import java.util.Collections; -import java.util.List; - -import javax.xml.namespace.QName; - -import org.apache.tuscany.sca.assembly.OperationSelector; -import org.apache.tuscany.sca.assembly.SCABinding; -import org.apache.tuscany.sca.assembly.WireFormat; -import org.apache.tuscany.sca.policy.ExtensionType; -import org.apache.tuscany.sca.policy.Intent; -import org.apache.tuscany.sca.policy.PolicySet; -import org.apache.tuscany.sca.policy.PolicySubject; - -/** - * A test cheel for the SCA binding. - * - * @version $Rev$ $Date$ - */ -public class TestSCABindingImpl implements SCABinding, PolicySubject { - private String name; - private String uri; - private List extensions = new ArrayList(); - - private List requiredIntents = new ArrayList(); - private List policySets = new ArrayList(); - private ExtensionType bindingType = new TestSCABindingType(); - - /** - * Constructs a new SCA binding. - */ - protected TestSCABindingImpl() { - } - - public String getName() { - return name; - } - - public String getURI() { - return uri; - } - - public void setName(String name) { - this.name = name; - } - - public void setURI(String uri) { - this.uri = uri; - } - - public List getExtensions() { - return extensions; - } - - public boolean isUnresolved() { - return false; - } - - public void setUnresolved(boolean unresolved) { - } - - /** - * @see java.lang.Object#clone() - */ - @Override - public Object clone() throws CloneNotSupportedException { - return super.clone(); - } - - public List getPolicySets() { - // TODO Auto-generated method stub - return policySets; - } - - public List getRequiredIntents() { - // TODO Auto-generated method stub - return requiredIntents; - } - - public ExtensionType getExtensionType() { - // TODO Auto-generated method stub - return bindingType; - } - - public void setExtensionType(ExtensionType type) { - this.bindingType = type; - } - - public QName getType() { - return TYPE; - } - - private class TestSCABindingType implements ExtensionType { - private QName name = new QName("http://docs.oasis-open.org/ns/opencsa/sca/200912","binding"); - public QName getBaseType() { - return BINDING_BASE; - } - - public QName getType() { - return name; - } - - public void setType(QName type) { - } - - public List getAlwaysProvidedIntents() { - return Collections.emptyList(); - } - - public List getMayProvidedIntents() { - return Collections.emptyList(); - } - - public boolean isUnresolved() { - return false; - } - - public void setUnresolved(boolean unresolved) { - } - } - - public WireFormat getRequestWireFormat() { - return null; - } - - public void setRequestWireFormat(WireFormat wireFormat) { - } - - public WireFormat getResponseWireFormat() { - return null; - } - - public void setResponseWireFormat(WireFormat wireFormat) { - } - - public OperationSelector getOperationSelector() { - return null; - } - - public void setOperationSelector(OperationSelector operationSelector) { - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/test/java/org/apache/tuscany/sca/assembly/xml/WireTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/test/java/org/apache/tuscany/sca/assembly/xml/WireTestCase.java deleted file mode 100644 index 543aaf9893..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/test/java/org/apache/tuscany/sca/assembly/xml/WireTestCase.java +++ /dev/null @@ -1,109 +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 org.apache.tuscany.sca.assembly.xml; - -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertNotNull; - -import java.io.IOException; -import java.io.InputStream; -import java.net.URI; -import java.net.URL; - -import javax.xml.stream.XMLInputFactory; -import javax.xml.stream.XMLStreamException; -import javax.xml.stream.XMLStreamReader; - -import org.apache.tuscany.sca.assembly.Composite; -import org.apache.tuscany.sca.assembly.SCABindingFactory; -import org.apache.tuscany.sca.contribution.processor.ContributionReadException; -import org.apache.tuscany.sca.contribution.processor.ExtensibleStAXArtifactProcessor; -import org.apache.tuscany.sca.contribution.processor.ProcessorContext; -import org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessor; -import org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessorExtensionPoint; -import org.apache.tuscany.sca.contribution.processor.URLArtifactProcessor; -import org.apache.tuscany.sca.contribution.processor.URLArtifactProcessorExtensionPoint; -import org.apache.tuscany.sca.contribution.resolver.DefaultModelResolver; -import org.apache.tuscany.sca.contribution.resolver.ModelResolver; -import org.apache.tuscany.sca.core.DefaultExtensionPointRegistry; -import org.apache.tuscany.sca.core.FactoryExtensionPoint; -import org.apache.tuscany.sca.definitions.Definitions; -import org.junit.BeforeClass; -import org.junit.Test; - -/** - * Test the wiring of SCA XML assemblies. - * - * @version $Rev$ $Date$ - */ -public class WireTestCase { - - private static XMLInputFactory inputFactory; - private static StAXArtifactProcessor staxProcessor; - private static ModelResolver resolver; - private static URLArtifactProcessor policyDefinitionsProcessor; - private static ProcessorContext context; - - @BeforeClass - public static void setUp() throws Exception { - DefaultExtensionPointRegistry extensionPoints = new DefaultExtensionPointRegistry(); - context = new ProcessorContext(extensionPoints); - inputFactory = XMLInputFactory.newInstance(); - StAXArtifactProcessorExtensionPoint staxProcessors = extensionPoints.getExtensionPoint(StAXArtifactProcessorExtensionPoint.class); - staxProcessor = new ExtensibleStAXArtifactProcessor(staxProcessors, inputFactory, null); - resolver = new DefaultModelResolver(); - - FactoryExtensionPoint modelFactories = extensionPoints.getExtensionPoint(FactoryExtensionPoint.class); - SCABindingFactory scaBindingFactory = new TestSCABindingFactoryImpl(); - modelFactories.addFactory(scaBindingFactory); - - URLArtifactProcessorExtensionPoint documentProcessors = extensionPoints.getExtensionPoint(URLArtifactProcessorExtensionPoint.class); - policyDefinitionsProcessor = documentProcessors.getProcessor(Definitions.class); - } - - @Test - public void testResolveComposite() throws Exception { - Composite nestedComposite = readComposite("Calculator.composite"); - assertNotNull(nestedComposite); - resolver.addModel(nestedComposite, context); - - Composite composite = readComposite("TestAllCalculator.composite"); - - URL url = getClass().getResource("test_definitions.xml"); - URI uri = URI.create("test_definitions.xml"); - Definitions scaDefns = (Definitions)policyDefinitionsProcessor.read(null, uri, url, context); - assertNotNull(scaDefns); - - policyDefinitionsProcessor.resolve(scaDefns, resolver, context); - - staxProcessor.resolve(composite, resolver, context); - - assertEquals(composite.getComponents().get(2).getImplementation(), nestedComposite); - } - - private Composite readComposite(String resource) throws XMLStreamException, ContributionReadException, IOException { - InputStream is = getClass().getResourceAsStream(resource); - XMLStreamReader reader = inputFactory.createXMLStreamReader(is); - Composite composite = (Composite)staxProcessor.read(reader, context); - is.close(); - return composite; - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/test/java/org/apache/tuscany/sca/assembly/xml/WriteAllTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/test/java/org/apache/tuscany/sca/assembly/xml/WriteAllTestCase.java deleted file mode 100644 index a19ce79490..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/test/java/org/apache/tuscany/sca/assembly/xml/WriteAllTestCase.java +++ /dev/null @@ -1,136 +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 org.apache.tuscany.sca.assembly.xml; - -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertNotNull; - -import java.io.ByteArrayInputStream; -import java.io.ByteArrayOutputStream; -import java.io.InputStream; -import java.net.URI; -import java.net.URL; - -import javax.xml.namespace.QName; -import javax.xml.stream.XMLInputFactory; -import javax.xml.stream.XMLOutputFactory; - -import org.apache.tuscany.sca.assembly.ComponentType; -import org.apache.tuscany.sca.assembly.Composite; -import org.apache.tuscany.sca.assembly.SCABindingFactory; -import org.apache.tuscany.sca.contribution.processor.ExtensibleStAXArtifactProcessor; -import org.apache.tuscany.sca.contribution.processor.ProcessorContext; -import org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessorExtensionPoint; -import org.apache.tuscany.sca.contribution.processor.URLArtifactProcessor; -import org.apache.tuscany.sca.contribution.processor.URLArtifactProcessorExtensionPoint; -import org.apache.tuscany.sca.contribution.resolver.DefaultModelResolver; -import org.apache.tuscany.sca.contribution.resolver.ModelResolver; -import org.apache.tuscany.sca.core.DefaultExtensionPointRegistry; -import org.apache.tuscany.sca.core.FactoryExtensionPoint; -import org.apache.tuscany.sca.definitions.Definitions; -import org.junit.BeforeClass; -import org.junit.Test; - -/** - * Test writing SCA XML assemblies. - * - * @version $Rev$ $Date$ - */ -public class WriteAllTestCase { - private static XMLInputFactory inputFactory; - private static XMLOutputFactory outputFactory; - private static ExtensibleStAXArtifactProcessor staxProcessor; - private static ModelResolver resolver; - private static URLArtifactProcessor policyDefinitionsProcessor; - private static ProcessorContext context; - - @BeforeClass - public static void setUp() throws Exception { - DefaultExtensionPointRegistry extensionPoints = new DefaultExtensionPointRegistry(); - context = new ProcessorContext(extensionPoints); - inputFactory = XMLInputFactory.newInstance(); - outputFactory = XMLOutputFactory.newInstance(); - StAXArtifactProcessorExtensionPoint staxProcessors = extensionPoints.getExtensionPoint(StAXArtifactProcessorExtensionPoint.class); - staxProcessor = new ExtensibleStAXArtifactProcessor(staxProcessors, inputFactory, outputFactory); - resolver = new DefaultModelResolver(); - - FactoryExtensionPoint modelFactories = extensionPoints.getExtensionPoint(FactoryExtensionPoint.class); - SCABindingFactory scaBindingFactory = new TestSCABindingFactoryImpl(); - modelFactories.addFactory(scaBindingFactory); - - URLArtifactProcessorExtensionPoint documentProcessors = extensionPoints.getExtensionPoint(URLArtifactProcessorExtensionPoint.class); - policyDefinitionsProcessor = documentProcessors.getProcessor(Definitions.class); - } - - @Test - public void testReadWriteComposite() throws Exception { - InputStream is = getClass().getResourceAsStream("TestAllCalculator.composite"); - Composite composite = staxProcessor.read(is, Composite.class, context); - - verifyComposite(composite); - - ByteArrayOutputStream bos = new ByteArrayOutputStream(); - staxProcessor.write(composite, bos, context); - bos.close(); - - ByteArrayInputStream bis = new ByteArrayInputStream(bos.toByteArray()); - composite = staxProcessor.read(bis, Composite.class, context); - - verifyComposite(composite); - - } - - @Test - public void testReadWireWriteComposite() throws Exception { - InputStream is = getClass().getResourceAsStream("TestAllCalculator.composite"); - Composite composite = staxProcessor.read(is, Composite.class, context); - - URL url = getClass().getResource("test_definitions.xml"); - URI uri = URI.create("test_definitions.xml"); - Definitions scaDefns = (Definitions)policyDefinitionsProcessor.read(null, uri, url, context); - assertNotNull(scaDefns); - policyDefinitionsProcessor.resolve(scaDefns, resolver, context); - - staxProcessor.resolve(composite, resolver, context); - // compositeBuilder.build(composite, null, monitor); - ByteArrayOutputStream bos = new ByteArrayOutputStream(); - staxProcessor.write(composite, bos, context); - } - - @Test - public void testReadWriteComponentType() throws Exception { - InputStream is = getClass().getResourceAsStream("CalculatorImpl.componentType"); - ComponentType componentType = staxProcessor.read(is, ComponentType.class, context); - staxProcessor.resolve(componentType, resolver, context); - ByteArrayOutputStream bos = new ByteArrayOutputStream(); - staxProcessor.write(componentType, bos, context); - } - - - private void verifyComposite(Composite composite) { - assertEquals(composite.getProperties().get(0).getName(),"prop1"); - assertEquals(composite.getProperties().get(0).isMany(), true); - assertEquals(composite.getProperties().get(1).getName(),"prop2"); - assertEquals(composite.getProperties().get(1).isMustSupply(), true); - assertEquals(composite.getProperties().get(0).getXSDType(), new QName("http://foo", "MyComplexType")); - assertEquals(composite.getProperties().get(1).getXSDElement(), new QName("http://foo", "MyComplexPropertyValue1")); - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/test/java/org/apache/tuscany/sca/assembly/xml/WriteNamespacesTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/test/java/org/apache/tuscany/sca/assembly/xml/WriteNamespacesTestCase.java deleted file mode 100644 index f50cd5811f..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/test/java/org/apache/tuscany/sca/assembly/xml/WriteNamespacesTestCase.java +++ /dev/null @@ -1,99 +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 org.apache.tuscany.sca.assembly.xml; - -import static org.junit.Assert.assertEquals; - -import java.io.ByteArrayInputStream; -import java.io.ByteArrayOutputStream; -import java.io.InputStream; - -import javax.xml.namespace.QName; -import javax.xml.stream.XMLInputFactory; -import javax.xml.stream.XMLOutputFactory; -import javax.xml.stream.XMLStreamReader; -import javax.xml.stream.XMLStreamWriter; - -import org.apache.tuscany.sca.assembly.Component; -import org.apache.tuscany.sca.assembly.Composite; -import org.apache.tuscany.sca.contribution.processor.ProcessorContext; -import org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessor; -import org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessorExtensionPoint; -import org.apache.tuscany.sca.core.DefaultExtensionPointRegistry; -import org.apache.tuscany.sca.core.ExtensionPointRegistry; -import org.apache.tuscany.sca.core.FactoryExtensionPoint; -import org.junit.BeforeClass; -import org.junit.Test; - -/** - * Test writing SCA XML assemblies. - * - * @version $Rev$ $Date$ - */ -public class WriteNamespacesTestCase { - private static StAXArtifactProcessor compositeProcessor; - private static XMLOutputFactory outputFactory; - private static XMLInputFactory inputFactory; - private static ProcessorContext context; - - @BeforeClass - public static void setUp() throws Exception { - ExtensionPointRegistry extensionPoints = new DefaultExtensionPointRegistry(); - context = new ProcessorContext(extensionPoints); - - FactoryExtensionPoint modelFactories = extensionPoints.getExtensionPoint(FactoryExtensionPoint.class); - outputFactory = modelFactories.getFactory(XMLOutputFactory.class); - //outputFactory.setProperty(XMLOutputFactory.IS_REPAIRING_NAMESPACES, Boolean.TRUE); - inputFactory = modelFactories.getFactory(XMLInputFactory.class); - - StAXArtifactProcessorExtensionPoint artifactProcessors = extensionPoints.getExtensionPoint(StAXArtifactProcessorExtensionPoint.class); - compositeProcessor = artifactProcessors.getProcessor(Composite.class); - } - - @Test - public void testReadWriteComposite() throws Exception { - - // Read - InputStream is = getClass().getResourceAsStream("NestedCalculator.composite"); - XMLStreamReader reader = inputFactory.createXMLStreamReader(is); - Composite composite = compositeProcessor.read(reader, context); - Component component = composite.getComponents().get(0); - Composite implementation = (Composite)component.getImplementation(); - QName qname = implementation.getName(); - - // Write - ByteArrayOutputStream bos = new ByteArrayOutputStream(); - XMLStreamWriter writer = outputFactory.createXMLStreamWriter(bos); - compositeProcessor.write(composite, writer, context); - System.out.println(bos); - - // Read again - is = new ByteArrayInputStream(bos.toByteArray()); - reader = inputFactory.createXMLStreamReader(is); - composite = compositeProcessor.read(reader, context); - - // Compare - component = composite.getComponents().get(0); - implementation = (Composite)component.getImplementation(); - - assertEquals(qname, implementation.getName()); - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/test/java/org/apache/tuscany/sca/definitions/xml/MockPolicy.java b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/test/java/org/apache/tuscany/sca/definitions/xml/MockPolicy.java deleted file mode 100644 index 58e6e534b9..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/test/java/org/apache/tuscany/sca/definitions/xml/MockPolicy.java +++ /dev/null @@ -1,39 +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 org.apache.tuscany.sca.definitions.xml; - -import javax.xml.namespace.QName; - -/** - * Mocked Policy - */ -public class MockPolicy { - public QName getName() { - return new QName("http://schemas.xmlsoap.org/ws/2004/09/policy", "PolicyAttachment"); - } - - public boolean isUnresolved() { - return false; - } - - public void setUnresolved(boolean unresolved) { - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/test/java/org/apache/tuscany/sca/definitions/xml/ReadDocumentTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/test/java/org/apache/tuscany/sca/definitions/xml/ReadDocumentTestCase.java deleted file mode 100644 index f99b81f73f..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/test/java/org/apache/tuscany/sca/definitions/xml/ReadDocumentTestCase.java +++ /dev/null @@ -1,230 +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 org.apache.tuscany.sca.definitions.xml; - -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertFalse; -import static org.junit.Assert.assertNotNull; -import static org.junit.Assert.assertNull; -import static org.junit.Assert.assertTrue; - -import java.net.URI; -import java.net.URL; -import java.util.Hashtable; -import java.util.Map; - -import javax.xml.namespace.QName; - -import org.apache.tuscany.sca.contribution.processor.ProcessorContext; -import org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessorExtensionPoint; -import org.apache.tuscany.sca.contribution.processor.URLArtifactProcessor; -import org.apache.tuscany.sca.contribution.processor.URLArtifactProcessorExtensionPoint; -import org.apache.tuscany.sca.contribution.resolver.DefaultModelResolver; -import org.apache.tuscany.sca.contribution.resolver.ModelResolver; -import org.apache.tuscany.sca.core.DefaultExtensionPointRegistry; -import org.apache.tuscany.sca.definitions.Definitions; -import org.apache.tuscany.sca.policy.BindingType; -import org.apache.tuscany.sca.policy.ImplementationType; -import org.apache.tuscany.sca.policy.Intent; -import org.apache.tuscany.sca.policy.IntentMap; -import org.apache.tuscany.sca.policy.PolicySet; -import org.apache.tuscany.sca.policy.Qualifier; -import org.junit.BeforeClass; -import org.junit.Test; - -/** - * Test reading SCA XML assembly documents. - * - * @version $Rev$ $Date$ - */ -public class ReadDocumentTestCase { - - private static URLArtifactProcessor policyDefinitionsProcessor = null; - private static Definitions definitions; - private static Map intentTable = new Hashtable(); - private static Map policySetTable = new Hashtable(); - private static Map bindingTypesTable = new Hashtable(); - private static Map implTypesTable = new Hashtable(); - public static final String scaNamespace = "http://docs.oasis-open.org/ns/opencsa/sca/200912"; - public static final String namespace = "http://test"; - - private static final QName secureWsPolicy = new QName(namespace, "SecureWSPolicy"); - private static final QName confidentiality = new QName(namespace, "confidentiality"); - private static final QName integrity = new QName(namespace, "integrity"); - private static final QName messageProtection = new QName(namespace, "messageProtection"); - private static final QName confidentiality_transport = new QName(namespace, "confidentiality.transport"); - private static final QName confidentiality_message = new QName(namespace, "confidentiality.message"); - private static final QName secureReliablePolicy = new QName(namespace, "SecureReliablePolicy"); - private static final QName secureMessagingPolicies = new QName(namespace, "SecureMessagingPolicies"); - private static final QName securityPolicy = new QName(namespace, "SecurityPolicy"); - private static final QName basicAuthMsgProtSecurity = new QName(namespace, "BasicAuthMsgProtSecurity"); - private static final QName wsBinding = new QName(scaNamespace, "binding.ws"); - private static final QName javaImpl = new QName(scaNamespace, "implementation.java"); - private static ProcessorContext context; - - @BeforeClass - public static void setUp() throws Exception { - DefaultExtensionPointRegistry extensionPoints = new DefaultExtensionPointRegistry(); - context = new ProcessorContext(extensionPoints); - - // Create StAX processors - StAXArtifactProcessorExtensionPoint staxProcessors = - extensionPoints.getExtensionPoint(StAXArtifactProcessorExtensionPoint.class); - staxProcessors.addArtifactProcessor(new TestPolicyProcessor()); - - URLArtifactProcessorExtensionPoint documentProcessors = - extensionPoints.getExtensionPoint(URLArtifactProcessorExtensionPoint.class); - policyDefinitionsProcessor = documentProcessors.getProcessor(Definitions.class); - - URL url = ReadDocumentTestCase.class.getResource("test_definitions.xml"); - URI uri = URI.create("test_definitions.xml"); - definitions = policyDefinitionsProcessor.read(null, uri, url, context); - - for (Intent intent : definitions.getIntents()) { - intentTable.put(intent.getName(), intent); - for (Intent i : intent.getQualifiedIntents()) { - intentTable.put(i.getName(), i); - } - } - - for (PolicySet policySet : definitions.getPolicySets()) { - policySetTable.put(policySet.getName(), policySet); - } - - for (BindingType bindingType : definitions.getBindingTypes()) { - bindingTypesTable.put(bindingType.getType(), bindingType); - } - - for (ImplementationType implType : definitions.getImplementationTypes()) { - implTypesTable.put(implType.getType(), implType); - } - } - - @Test - public void testReadSCADefinitions() throws Exception { - assertNotNull(definitions); - - assertNotNull(intentTable.get(confidentiality)); - assertNotNull(intentTable.get(messageProtection)); - assertNotNull(intentTable.get(confidentiality_transport)); - assertTrue(intentTable.get(confidentiality).getDescription().length() > 0); - - assertNotNull(policySetTable.get(secureReliablePolicy)); - assertTrue(policySetTable.get(secureReliablePolicy).getProvidedIntents().size() == 2); - assertTrue(policySetTable.get(secureReliablePolicy).getPolicies().size() == 2); - - assertNotNull(policySetTable.get(secureMessagingPolicies)); - assertEquals(2, policySetTable.get(secureMessagingPolicies).getIntentMaps().get(0).getQualifiers().size()); - //assertTrue(policySetTable.get(secureWsPolicy).getPolicies().get(0) instanceof org.apache.neethi.Policy); - - assertEquals(bindingTypesTable.size(), 1); - assertNotNull(bindingTypesTable.get(wsBinding)); - assertEquals(implTypesTable.size(), 1); - assertNotNull(implTypesTable.get(javaImpl)); - } - - private boolean isRealizedBy(PolicySet policySet, Intent intent) { - if (intent.getName().getLocalPart().indexOf('.') == -1) { - return policySet.getProvidedIntents().contains(intent); - } - for (IntentMap map : policySet.getIntentMaps()) { - for (Qualifier q : map.getQualifiers()) { - if (q.getIntent().equals(intent)) { - return true; - } - } - } - return false; - } - - private int getNumberOfQualifiedPolicies(PolicySet policySet) { - int count = 0; - for(IntentMap intentMap: policySet.getIntentMaps()) { - for(Qualifier q: intentMap.getQualifiers()) { - count += q.getPolicies().size(); - } - } - return count; - } - - @Test - public void testResolveSCADefinitions() throws Exception { - Intent i1 = intentTable.get(messageProtection); - assertTrue(!i1.getRequiredIntents().isEmpty()); - assertNull(i1.getRequiredIntents().get(0).getDescription()); - - QName confidentiality_transport = new QName(namespace, "confidentiality.transport"); - Intent i2 = intentTable.get(confidentiality_transport); - assertNotNull(i2.getQualifiableIntent()); - - PolicySet secureReliablePolicySet = policySetTable.get(secureReliablePolicy); - PolicySet secureMessagingPolicySet = policySetTable.get(secureMessagingPolicies); - PolicySet securityPolicySet = policySetTable.get(securityPolicy); - - assertEquals(secureReliablePolicySet.getProvidedIntents().get(1).getName(), integrity); - assertNull(secureReliablePolicySet.getProvidedIntents().get(1).getDescription()); - assertTrue(secureMessagingPolicySet.isUnresolved()); - assertEquals(3, getNumberOfQualifiedPolicies(securityPolicySet)); - - //testing to ensure that inclusion of referred policy sets has not happened - PolicySet basicAuthMsgProtSecurityPolicySet = policySetTable.get(basicAuthMsgProtSecurity); - assertTrue(basicAuthMsgProtSecurityPolicySet.getPolicies().isEmpty()); - assertTrue(basicAuthMsgProtSecurityPolicySet.getIntentMaps().isEmpty()); - - BindingType wsBindingType = bindingTypesTable.get(wsBinding); - assertNull(wsBindingType.getAlwaysProvidedIntents().get(0).getDescription()); - assertNull(wsBindingType.getMayProvidedIntents().get(0).getDescription()); - - ImplementationType javaImplType = implTypesTable.get(javaImpl); - assertNull(javaImplType.getAlwaysProvidedIntents().get(0).getDescription()); - assertNull(javaImplType.getMayProvidedIntents().get(0).getDescription()); - - ModelResolver resolver = new DefaultModelResolver(); - policyDefinitionsProcessor.resolve(definitions, resolver, context); - //builder.build(scaDefinitions); - - //testing if policy intents have been linked have property been linked up - assertNotNull(i1.getRequiredIntents().get(0).getDescription()); - // assertNotNull(i2.getQualifiableIntent().getDescription()); - assertEquals(secureReliablePolicySet.getProvidedIntents().get(1).getName(), integrity); - assertNotNull(secureReliablePolicySet.getProvidedIntents().get(1).getDescription()); - - //testing if policysets have been properly linked up with intents - assertFalse(secureMessagingPolicySet.isUnresolved()); - assertTrue(isRealizedBy(secureMessagingPolicySet, intentTable.get(confidentiality))); - assertTrue(isRealizedBy(secureMessagingPolicySet, intentTable.get(confidentiality_transport))); - - //testing if intent maps have been properly mapped to policies - assertFalse(securityPolicySet.isUnresolved()); - assertTrue(isRealizedBy(securityPolicySet, intentTable.get(confidentiality))); - assertTrue(isRealizedBy(securityPolicySet, intentTable.get(confidentiality_message))); - - //testing for inclusion of referred policysets - assertFalse(basicAuthMsgProtSecurityPolicySet.getPolicies().isEmpty()); - assertFalse(basicAuthMsgProtSecurityPolicySet.getIntentMaps().get(0).getQualifiers().isEmpty()); - assertTrue(isRealizedBy(basicAuthMsgProtSecurityPolicySet, intentTable.get(confidentiality_transport))); - - assertNotNull(wsBindingType.getAlwaysProvidedIntents().get(0).getDescription()); - assertNotNull(wsBindingType.getMayProvidedIntents().get(0).getDescription()); - - assertNotNull(javaImplType.getAlwaysProvidedIntents().get(0).getDescription()); - assertNotNull(javaImplType.getMayProvidedIntents().get(0).getDescription()); - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/test/java/org/apache/tuscany/sca/definitions/xml/TestPolicyProcessor.java b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/test/java/org/apache/tuscany/sca/definitions/xml/TestPolicyProcessor.java deleted file mode 100644 index a148e33029..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/test/java/org/apache/tuscany/sca/definitions/xml/TestPolicyProcessor.java +++ /dev/null @@ -1,58 +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 org.apache.tuscany.sca.definitions.xml; - -import javax.xml.namespace.QName; -import javax.xml.stream.XMLStreamException; -import javax.xml.stream.XMLStreamReader; -import javax.xml.stream.XMLStreamWriter; - -import org.apache.tuscany.sca.contribution.processor.ContributionReadException; -import org.apache.tuscany.sca.contribution.processor.ContributionResolveException; -import org.apache.tuscany.sca.contribution.processor.ContributionWriteException; -import org.apache.tuscany.sca.contribution.processor.ProcessorContext; -import org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessor; -import org.apache.tuscany.sca.contribution.resolver.ModelResolver; - -/** - * A PolicyProcessor used for testing. - * - * @version $Rev$ $Date$ - */ -public class TestPolicyProcessor implements StAXArtifactProcessor { - public QName getArtifactType() { - return new QName("http://schemas.xmlsoap.org/ws/2004/09/policy", "PolicyAttachment"); - } - - public MockPolicy read(XMLStreamReader arg0, ProcessorContext context) throws ContributionReadException, XMLStreamException { - return new MockPolicy(); - } - - public void write(MockPolicy arg0, XMLStreamWriter arg1, ProcessorContext context) throws ContributionWriteException, XMLStreamException { - } - - public Class getModelType() { - return MockPolicy.class; - } - - public void resolve(MockPolicy arg0, ModelResolver arg1, ProcessorContext context) throws ContributionResolveException { - - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/test/java/org/apache/tuscany/sca/policy/xml/PolicyXPathFunctionResolverTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/test/java/org/apache/tuscany/sca/policy/xml/PolicyXPathFunctionResolverTestCase.java deleted file mode 100644 index 4f8c608459..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/test/java/org/apache/tuscany/sca/policy/xml/PolicyXPathFunctionResolverTestCase.java +++ /dev/null @@ -1,136 +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 org.apache.tuscany.sca.policy.xml; - -import static org.apache.tuscany.sca.policy.xml.PolicyXPathFunction.normalize; - -import java.util.Collections; -import java.util.Iterator; - -import javax.xml.namespace.NamespaceContext; -import javax.xml.xpath.XPath; -import javax.xml.xpath.XPathConstants; -import javax.xml.xpath.XPathExpression; -import javax.xml.xpath.XPathFactory; - -import org.junit.AfterClass; -import org.junit.Assert; -import org.junit.BeforeClass; -import org.junit.Test; -import org.w3c.dom.NodeList; -import org.xml.sax.InputSource; - -/** - * - */ -public class PolicyXPathFunctionResolverTestCase { - private static XPath xpath; - - /** - * @throws java.lang.Exception - */ - @BeforeClass - public static void setUpBeforeClass() throws Exception { - XPathFactory factory = XPathFactory.newInstance(); - xpath = factory.newXPath(); - xpath.setNamespaceContext(new NamespaceContextImpl()); - xpath.setXPathFunctionResolver(new PolicyXPathFunctionResolver(xpath.getNamespaceContext())); - } - - @Test - public void testIntentsRef() throws Exception { - InputSource xml = new InputSource(getClass().getResourceAsStream("Calculator.composite")); - String str = "//sca:composite/sca:component[sca:IntentRefs('sca:confidentiality')]"; - str = normalize(str); - // Test the rewrite of xpath so that the self:node() is passed into the SCA function - XPathExpression exp = xpath.compile(str); - Object result = exp.evaluate(xml, XPathConstants.NODESET); - Assert.assertTrue(result instanceof NodeList); - NodeList nodes = (NodeList)result; - // Assert.assertEquals(1, nodes.getLength()); - } - - @Test - public void testURIRef() throws Exception { - InputSource xml = new InputSource(getClass().getResourceAsStream("Calculator.composite")); - XPathExpression exp = xpath.compile(normalize("sca:composite/sca:component[sca:URIRef('AddServiceComponent')]")); - Object result = exp.evaluate(xml, XPathConstants.NODESET); - Assert.assertTrue(result instanceof NodeList); - NodeList nodes = (NodeList)result; - // Assert.assertEquals(1, nodes.getLength()); - } - - @Test - public void testInterfaceRef() throws Exception { - InputSource xml = new InputSource(getClass().getResourceAsStream("Calculator.composite")); - XPathExpression exp = xpath.compile(normalize("//sca:composite/sca:component/sca:service[sca:InterfaceRef('AddService')]")); - Object result = exp.evaluate(xml, XPathConstants.NODESET); - Assert.assertTrue(result instanceof NodeList); - NodeList nodes = (NodeList)result; - // Assert.assertEquals(1, nodes.getLength()); - } - - @Test - public void testOperationRef() throws Exception { - InputSource xml = new InputSource(getClass().getResourceAsStream("Calculator.composite")); - XPathExpression exp = xpath.compile(normalize("//sca:composite/sca:component/sca:reference[sca:OperationRef('AddService/add')]")); - Object result = exp.evaluate(xml, XPathConstants.NODESET); - Assert.assertTrue(result instanceof NodeList); - NodeList nodes = (NodeList)result; - // Assert.assertEquals(1, nodes.getLength()); - } - - - /** - * @throws java.lang.Exception - */ - @AfterClass - public static void tearDownAfterClass() throws Exception { - } - - private static class NamespaceContextImpl implements NamespaceContext { - - private static final String SCA11_NS = "http://docs.oasis-open.org/ns/opencsa/sca/200912"; - - public String getNamespaceURI(String prefix) { - if ("sca".equals(prefix)) { - return SCA11_NS; - } else { - return null; - } - } - - public String getPrefix(String namespaceURI) { - if (SCA11_NS.equals(namespaceURI)) { - return "sca"; - } - return null; - } - - public Iterator getPrefixes(String namespaceURI) { - if (SCA11_NS.equals(namespaceURI)) { - return Collections.singleton("sca").iterator(); - } - return null; - } - - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/test/java/org/apache/tuscany/sca/policy/xml/ReadDocumentTestCase.java b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/test/java/org/apache/tuscany/sca/policy/xml/ReadDocumentTestCase.java deleted file mode 100644 index 231bdfd516..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/test/java/org/apache/tuscany/sca/policy/xml/ReadDocumentTestCase.java +++ /dev/null @@ -1,286 +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 org.apache.tuscany.sca.policy.xml; - -import static javax.xml.stream.XMLStreamConstants.START_ELEMENT; -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertFalse; -import static org.junit.Assert.assertNotNull; -import static org.junit.Assert.assertNull; -import static org.junit.Assert.assertTrue; - -import java.io.InputStream; -import java.net.URL; -import java.util.ArrayList; -import java.util.Hashtable; -import java.util.List; -import java.util.Map; - -import javax.xml.namespace.QName; -import javax.xml.stream.XMLInputFactory; -import javax.xml.stream.XMLStreamReader; - -import org.apache.tuscany.sca.contribution.processor.ExtensibleStAXArtifactProcessor; -import org.apache.tuscany.sca.contribution.processor.ProcessorContext; -import org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessor; -import org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessorExtensionPoint; -import org.apache.tuscany.sca.contribution.resolver.DefaultModelResolver; -import org.apache.tuscany.sca.contribution.resolver.ModelResolver; -import org.apache.tuscany.sca.core.DefaultExtensionPointRegistry; -import org.apache.tuscany.sca.policy.BindingType; -import org.apache.tuscany.sca.policy.ExtensionType; -import org.apache.tuscany.sca.policy.ImplementationType; -import org.apache.tuscany.sca.policy.Intent; -import org.apache.tuscany.sca.policy.IntentMap; -import org.apache.tuscany.sca.policy.PolicySet; -import org.apache.tuscany.sca.policy.Qualifier; -import org.junit.Before; -import org.junit.Test; - -/** - * Test reading SCA XML assembly documents. - * - * @version $Rev$ $Date$ - */ -public class ReadDocumentTestCase { - - private ModelResolver resolver; - private StAXArtifactProcessor staxProcessor; - private ProcessorContext context; - - private static final QName elementToProcess = - new QName("http://docs.oasis-open.org/ns/opencsa/sca/200912", "implementationType"); - - private Map intentTable = new Hashtable(); - private Map policySetTable = new Hashtable(); - private Map bindingTypesTable = new Hashtable(); - private Map implTypesTable = new Hashtable(); - private static final String scaNamespace = "http://docs.oasis-open.org/ns/opencsa/sca/200912"; - private static final String namespace = "http://test"; - - private static final QName confidentiality = new QName(namespace, "confidentiality"); - private static final QName integrity = new QName(namespace, "integrity"); - private static final QName messageProtection = new QName(namespace, "messageProtection"); - private static final QName confidentiality_transport = new QName(namespace, "confidentiality.transport"); - private static final QName confidentiality_message = new QName(namespace, "confidentiality.message"); - private static final QName secureReliablePolicy = new QName(namespace, "SecureReliablePolicy"); - private static final QName secureMessagingPolicies = new QName(namespace, "SecureMessagingPolicies"); - private static final QName securityPolicy = new QName(namespace, "SecurityPolicy"); - private static final QName basicAuthMsgProtSecurity = new QName(namespace, "BasicAuthMsgProtSecurity"); - private static final QName wsBinding = new QName(scaNamespace, "binding.ws"); - private static final QName javaImpl = new QName(scaNamespace, "implementation.java"); - - @Before - public void setUp() throws Exception { - DefaultExtensionPointRegistry extensionPoints = new DefaultExtensionPointRegistry(); - resolver = new DefaultModelResolver(); - context = new ProcessorContext(extensionPoints); - XMLInputFactory inputFactory = XMLInputFactory.newInstance(); - - StAXArtifactProcessorExtensionPoint staxProcessors = - extensionPoints.getExtensionPoint(StAXArtifactProcessorExtensionPoint.class); - staxProcessor = new ExtensibleStAXArtifactProcessor(staxProcessors, inputFactory, null); - staxProcessors.addArtifactProcessor(new TestPolicyProcessor()); - - URL url = getClass().getResource("test_definitions.xml"); - InputStream urlStream = url.openStream(); - XMLStreamReader reader = inputFactory.createXMLStreamReader(urlStream); - reader.next(); - - //position on the right element qname to get processed - while (reader.hasNext()) { - reader.next(); - int event = reader.getEventType(); - if (event == START_ELEMENT && reader.getName().equals(elementToProcess)) { - break; - } - } - while (true) { - int event = reader.getEventType(); - switch (event) { - case START_ELEMENT: { - Object artifact = staxProcessor.read(reader, context); - if (artifact instanceof PolicySet) { - PolicySet policySet = (PolicySet)artifact; - policySet.setName(new QName(namespace, policySet.getName().getLocalPart())); - policySetTable.put(policySet.getName(), policySet); - } else if (artifact instanceof Intent) { - Intent intent = (Intent)artifact; - intent.setName(new QName(namespace, intent.getName().getLocalPart())); - intentTable.put(intent.getName(), intent); - for (Intent i : intent.getQualifiedIntents()) { - i.setName(new QName(namespace, i.getName().getLocalPart())); - intentTable.put(i.getName(), i); - resolver.addModel(i, context); - } - } else if (artifact instanceof BindingType) { - BindingType bindingType = (BindingType)artifact; - bindingTypesTable.put(bindingType.getType(), bindingType); - } else if (artifact instanceof ImplementationType) { - ImplementationType implType = (ImplementationType)artifact; - implTypesTable.put(implType.getType(), implType); - } - - if (artifact != null) { - resolver.addModel(artifact, context); - } - - break; - } - } - if (reader.hasNext()) { - reader.next(); - } else { - break; - } - } - urlStream.close(); - } - - @Test - public void testReadSCADefinitions() throws Exception { - assertNotNull(intentTable.get(confidentiality)); - assertNotNull(intentTable.get(messageProtection)); - assertNotNull(intentTable.get(confidentiality_transport)); - assertTrue(intentTable.get(confidentiality).getDescription().length() > 0); - - assertNotNull(policySetTable.get(secureReliablePolicy)); - assertTrue(policySetTable.get(secureReliablePolicy).getProvidedIntents().size() == 2); - assertTrue(policySetTable.get(secureReliablePolicy).getPolicies().size() == 2); - - assertNotNull(policySetTable.get(secureMessagingPolicies)); - assertEquals(2, policySetTable.get(secureMessagingPolicies).getIntentMaps().get(0).getQualifiers().get(0).getPolicies().size()); - - assertEquals(bindingTypesTable.size(), 1); - assertNotNull(bindingTypesTable.get(wsBinding)); - assertEquals(implTypesTable.size(), 1); - assertNotNull(implTypesTable.get(javaImpl)); - } - - private int getNumberOfQualifiedPolicies(PolicySet policySet) { - int count = 0; - for(IntentMap intentMap: policySet.getIntentMaps()) { - for(Qualifier q: intentMap.getQualifiers()) { - count += q.getPolicies().size(); - } - } - return count; - } - - @Test - public void testResolution() throws Exception { - assertTrue(!intentTable.get(messageProtection).getRequiredIntents().isEmpty()); - Intent profileIntent = intentTable.get(new QName(namespace, "messageProtection")); - assertNull(profileIntent.getRequiredIntents().get(0).getDescription()); - - QName confidentiality_transport = new QName(namespace, "confidentiality.transport"); - assertTrue(intentTable.get(confidentiality_transport) instanceof Intent); - Intent qualifiedIntent = (Intent)intentTable.get(new QName(namespace, "confidentiality.transport")); - assertNull(qualifiedIntent.getDescription()); - assertNotNull(qualifiedIntent.getQualifiableIntent().getDescription()); - - PolicySet secureReliablePolicySet = policySetTable.get(secureReliablePolicy); - PolicySet secureMessagingPolicySet = policySetTable.get(secureMessagingPolicies); - PolicySet securityPolicySet = policySetTable.get(securityPolicy); - - assertEquals(secureReliablePolicySet.getProvidedIntents().get(1).getName(), integrity); - assertNull(secureReliablePolicySet.getProvidedIntents().get(1).getDescription()); - assertTrue(secureMessagingPolicySet.isUnresolved()); - assertEquals(2, getNumberOfQualifiedPolicies(securityPolicySet)); - - //testing to ensure that inclusion of referred policy sets has not happened - PolicySet basicAuthMsgProtSecurityPolicySet = policySetTable.get(basicAuthMsgProtSecurity); - assertTrue(basicAuthMsgProtSecurityPolicySet.getPolicies().isEmpty()); - assertTrue(basicAuthMsgProtSecurityPolicySet.getIntentMaps().isEmpty()); - - ExtensionType wsBindingType = bindingTypesTable.get(wsBinding); - assertNull(wsBindingType.getAlwaysProvidedIntents().get(0).getDescription()); - assertNull(wsBindingType.getMayProvidedIntents().get(0).getDescription()); - - ExtensionType javaImplType = implTypesTable.get(javaImpl); - assertNull(javaImplType.getAlwaysProvidedIntents().get(0).getDescription()); - assertNull(javaImplType.getMayProvidedIntents().get(0).getDescription()); - - List intents = new ArrayList(intentTable.values()); - - for (Intent intent : intents) { - staxProcessor.resolve(intent, resolver, context); - } - - for (PolicySet policySet : policySetTable.values()) { - if (policySet.getReferencedPolicySets().isEmpty()) - staxProcessor.resolve(policySet, resolver, context); - } - - for (PolicySet policySet : policySetTable.values()) { - if (!policySet.getReferencedPolicySets().isEmpty()) - staxProcessor.resolve(policySet, resolver, context); - } - - for (ExtensionType bindingType : bindingTypesTable.values()) { - staxProcessor.resolve(bindingType, resolver, context); - } - - for (ExtensionType implType : implTypesTable.values()) { - staxProcessor.resolve(implType, resolver, context); - } - - //testing if policy intents have been linked have property been linked up - assertNotNull(profileIntent.getRequiredIntents().get(0).getDescription()); - assertNotNull(qualifiedIntent.getQualifiableIntent().getDescription()); - assertEquals(secureReliablePolicySet.getProvidedIntents().get(1).getName(), integrity); - assertNotNull(secureReliablePolicySet.getProvidedIntents().get(1).getDescription()); - - //testing if policysets have been properly linked up with intents - assertFalse(secureMessagingPolicySet.isUnresolved()); - assertTrue(isRealizedBy(secureMessagingPolicySet, intentTable.get(confidentiality))); - assertTrue(isRealizedBy(secureMessagingPolicySet, intentTable.get(confidentiality_transport))); - - //testing if intent maps have been properly mapped to policies - assertFalse(securityPolicySet.isUnresolved()); - assertTrue(isRealizedBy(securityPolicySet, intentTable.get(confidentiality))); - assertTrue(isRealizedBy(securityPolicySet, intentTable.get(confidentiality_message))); - - //testing for inclusion of referred policysets - assertFalse(basicAuthMsgProtSecurityPolicySet.getPolicies().isEmpty()); - assertFalse(basicAuthMsgProtSecurityPolicySet.getIntentMaps().isEmpty()); - assertTrue(isRealizedBy(basicAuthMsgProtSecurityPolicySet, intentTable.get(confidentiality_transport))); - - assertNotNull(wsBindingType.getAlwaysProvidedIntents().get(0).getDescription()); - assertNotNull(wsBindingType.getMayProvidedIntents().get(0).getDescription()); - - assertNotNull(javaImplType.getAlwaysProvidedIntents().get(0).getDescription()); - assertNotNull(javaImplType.getMayProvidedIntents().get(0).getDescription()); - } - - private boolean isRealizedBy(PolicySet policySet, Intent intent) { - if (intent.getName().getLocalPart().indexOf('.') == -1) { - return policySet.getProvidedIntents().contains(intent); - } - for (IntentMap map : policySet.getIntentMaps()) { - for (Qualifier q : map.getQualifiers()) { - if (q.getIntent().equals(intent)) { - return true; - } - } - } - return false; - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/test/java/org/apache/tuscany/sca/policy/xml/TestPolicyProcessor.java b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/test/java/org/apache/tuscany/sca/policy/xml/TestPolicyProcessor.java deleted file mode 100644 index aea2c3adb8..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/test/java/org/apache/tuscany/sca/policy/xml/TestPolicyProcessor.java +++ /dev/null @@ -1,83 +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 org.apache.tuscany.sca.policy.xml; - -import javax.xml.namespace.QName; -import javax.xml.stream.XMLStreamException; -import javax.xml.stream.XMLStreamReader; -import javax.xml.stream.XMLStreamWriter; - -import org.apache.tuscany.sca.contribution.processor.ContributionReadException; -import org.apache.tuscany.sca.contribution.processor.ContributionResolveException; -import org.apache.tuscany.sca.contribution.processor.ContributionWriteException; -import org.apache.tuscany.sca.contribution.processor.ProcessorContext; -import org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessor; -import org.apache.tuscany.sca.contribution.resolver.ModelResolver; -import org.apache.tuscany.sca.policy.PolicyExpression; - -/** - * - * @version $Rev$ $Date$ - */ -public class TestPolicyProcessor implements StAXArtifactProcessor { - - public QName getArtifactType() { - return new QName("http://schemas.xmlsoap.org/ws/2004/09/policy", "PolicyAttachment"); - } - - public PolicyExpression read(XMLStreamReader arg0, ProcessorContext context) throws ContributionReadException, XMLStreamException { - return new MockPolicyImplOne(); - } - - public void write(PolicyExpression arg0, XMLStreamWriter arg1, ProcessorContext context) throws ContributionWriteException, XMLStreamException { - } - - public Class getModelType() { - // TODO Auto-generated method stub - return PolicyExpression.class; - } - - public void resolve(PolicyExpression arg0, ModelResolver arg1, ProcessorContext context) throws ContributionResolveException { - - } - - public class MockPolicyImplOne implements PolicyExpression { - public T getPolicy() { - return null; - } - - public void setName(QName name) { - } - - public void setPolicy(T policy) { - } - - public QName getName() { - return new QName("http://schemas.xmlsoap.org/ws/2004/09/policy", "PolicyAttachment"); - } - - public boolean isUnresolved() { - return false; - } - - public void setUnresolved(boolean unresolved) { - } - - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/test/resources/org/apache/tuscany/sca/assembly/xml/Calculator.composite b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/test/resources/org/apache/tuscany/sca/assembly/xml/Calculator.composite deleted file mode 100644 index be0c1eb737..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/test/resources/org/apache/tuscany/sca/assembly/xml/Calculator.composite +++ /dev/null @@ -1,59 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/test/resources/org/apache/tuscany/sca/assembly/xml/CalculatorImpl.componentType b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/test/resources/org/apache/tuscany/sca/assembly/xml/CalculatorImpl.componentType deleted file mode 100644 index 83fa64cef4..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/test/resources/org/apache/tuscany/sca/assembly/xml/CalculatorImpl.componentType +++ /dev/null @@ -1,31 +0,0 @@ - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/test/resources/org/apache/tuscany/sca/assembly/xml/CalculatorURISpaces.composite b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/test/resources/org/apache/tuscany/sca/assembly/xml/CalculatorURISpaces.composite deleted file mode 100644 index 287810b156..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/test/resources/org/apache/tuscany/sca/assembly/xml/CalculatorURISpaces.composite +++ /dev/null @@ -1,59 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/test/resources/org/apache/tuscany/sca/assembly/xml/Multiplicity.composite b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/test/resources/org/apache/tuscany/sca/assembly/xml/Multiplicity.composite deleted file mode 100644 index 0d344ac937..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/test/resources/org/apache/tuscany/sca/assembly/xml/Multiplicity.composite +++ /dev/null @@ -1,32 +0,0 @@ - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/test/resources/org/apache/tuscany/sca/assembly/xml/NestedCalculator.composite b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/test/resources/org/apache/tuscany/sca/assembly/xml/NestedCalculator.composite deleted file mode 100644 index 5606e653bb..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/test/resources/org/apache/tuscany/sca/assembly/xml/NestedCalculator.composite +++ /dev/null @@ -1,29 +0,0 @@ - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/test/resources/org/apache/tuscany/sca/assembly/xml/RMIBindingTest.composite b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/test/resources/org/apache/tuscany/sca/assembly/xml/RMIBindingTest.composite deleted file mode 100644 index 9140403fc4..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/test/resources/org/apache/tuscany/sca/assembly/xml/RMIBindingTest.composite +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/test/resources/org/apache/tuscany/sca/assembly/xml/TestAllCalculator.composite b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/test/resources/org/apache/tuscany/sca/assembly/xml/TestAllCalculator.composite deleted file mode 100644 index 195dfcf106..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/test/resources/org/apache/tuscany/sca/assembly/xml/TestAllCalculator.composite +++ /dev/null @@ -1,127 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - true - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - AValue - InterestingURI - - - BValue - BoringURI - - - - - 123 - - - 123 - 123 - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/test/resources/org/apache/tuscany/sca/assembly/xml/TestAllDivide.composite b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/test/resources/org/apache/tuscany/sca/assembly/xml/TestAllDivide.composite deleted file mode 100644 index 42e6c1c3ec..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/test/resources/org/apache/tuscany/sca/assembly/xml/TestAllDivide.composite +++ /dev/null @@ -1,56 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/test/resources/org/apache/tuscany/sca/assembly/xml/TestAllPolicyCalculator.composite b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/test/resources/org/apache/tuscany/sca/assembly/xml/TestAllPolicyCalculator.composite deleted file mode 100644 index 424cec3e8a..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/test/resources/org/apache/tuscany/sca/assembly/xml/TestAllPolicyCalculator.composite +++ /dev/null @@ -1,125 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - true - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - AValue - InterestingURI - - - BValue - BoringURI - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/test/resources/org/apache/tuscany/sca/assembly/xml/another_test_definitions.xml b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/test/resources/org/apache/tuscany/sca/assembly/xml/another_test_definitions.xml deleted file mode 100644 index 489d6abed1..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/test/resources/org/apache/tuscany/sca/assembly/xml/another_test_definitions.xml +++ /dev/null @@ -1,96 +0,0 @@ - - - - - - - - Sample Intent - - - - - - - Sample Intent - - - - - - - Sample Intent - - - - - - Sample Intent - - - - - - Sample Intent - - - - - - Sample Intent - - - - - - Sample Intent - - - - - - Sample Intent - - - - - - Sample Intent - - - - - - Sample Intent - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/test/resources/org/apache/tuscany/sca/assembly/xml/local.composite b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/test/resources/org/apache/tuscany/sca/assembly/xml/local.composite deleted file mode 100644 index 279f7d534e..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/test/resources/org/apache/tuscany/sca/assembly/xml/local.composite +++ /dev/null @@ -1,27 +0,0 @@ - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/test/resources/org/apache/tuscany/sca/assembly/xml/test_definitions.xml b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/test/resources/org/apache/tuscany/sca/assembly/xml/test_definitions.xml deleted file mode 100644 index 2cfbd6bcff..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/test/resources/org/apache/tuscany/sca/assembly/xml/test_definitions.xml +++ /dev/null @@ -1,206 +0,0 @@ - - - - - - - - - - - - Test Intent - - - - - - Protect messages from unauthorized reading or modification - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ... - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ... - - - - - ... - - - - - - - - - - - sp:X509v3 - - - - - - - - - - - - - - - - - - Protect messages from unauthorized reading or modification - - - - - - Protect messages from unauthorized reading or modification - - - - - - - Communitcation thro this binding must prevent - unauthorized users from reading the messages. - - - - - - - - Communitcation thro this binding must prevent - unauthorized modification of the messages. - - - - - - Communitcation thro this binding required - Authentication. - - - - - - All messages to and from this implementation must be logged - - - - - - Need to figure out some description for this - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/test/resources/org/apache/tuscany/sca/definitions/xml/test_definitions.xml b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/test/resources/org/apache/tuscany/sca/definitions/xml/test_definitions.xml deleted file mode 100644 index dc7f5c422c..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/test/resources/org/apache/tuscany/sca/definitions/xml/test_definitions.xml +++ /dev/null @@ -1,207 +0,0 @@ - - - - - - - - - - - - Test Intent - - - - - - Protect messages from unauthorized reading or modification - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ... - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ... - - - - - ... - - - - - - - - - - - sp:X509v3 - - - - - - - - - - - - - - - - - - Protect messages from unauthorized reading or modification - - - - - - Protect messages from unauthorized reading or modification - - - - - - - Communitcation thro this binding must prevent - unauthorized users from reading the messages. - - - - - - - - Communitcation thro this binding must prevent - unauthorized modification of the messages. - - - - - - Communitcation thro this binding required - Authentication. - - - - - - All messages to and from this implementation must be logged - - - - - - Need to figure out some description for this - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/test/resources/org/apache/tuscany/sca/policy/xml/Calculator.composite b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/test/resources/org/apache/tuscany/sca/policy/xml/Calculator.composite deleted file mode 100644 index 0e7aad877e..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/test/resources/org/apache/tuscany/sca/policy/xml/Calculator.composite +++ /dev/null @@ -1,49 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/test/resources/org/apache/tuscany/sca/policy/xml/test_definitions.xml b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/test/resources/org/apache/tuscany/sca/policy/xml/test_definitions.xml deleted file mode 100644 index a262b00345..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xml/src/test/resources/org/apache/tuscany/sca/policy/xml/test_definitions.xml +++ /dev/null @@ -1,204 +0,0 @@ - - - - - - - - - - - - Test Intent - - - - - - Protect messages from unauthorized reading or modification - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ... - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ... - - - - - ... - - - - - - - - - - - sp:X509v3 - - - - - - - - - - - - - - - - - - Protect messages from unauthorized reading or modification - - - - - - Protect messages from unauthorized reading or modification - - - - - - - Communitcation thro this binding must prevent - unauthorized users from reading the messages. - - - - - - - - Communitcation thro this binding must prevent - unauthorized modification of the messages. - - - - - - Communitcation thro this binding required - Authentication. - - - - - - All messages to and from this implementation must be logged - - - - - - Need to figure out some description for this - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/LICENSE b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/LICENSE deleted file mode 100644 index 0bea130c88..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/LICENSE +++ /dev/null @@ -1,338 +0,0 @@ - - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright [yyyy] [name of copyright owner] - - Licensed 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. - - - -=============================================================================== - -Apache Tuscany SCA for Java Subcomponents -=========================================: - -The Tuscany SCA for Java release includes a number of subcomponents with -separate copyright notices and license terms. Your use of the source -code for the these subcomponents is subject to the terms and -conditions of the following licenses. - -=============================================================================== - -This module includes XSD files under the following OASIS license: - -Copyright (C) OASIS(R) 2005, 2009. All Rights Reserved. -All capitalized terms in the following text have the meanings assigned to them in the OASIS Intellectual -Property Rights Policy (the "OASIS IPR Policy"). The full Policy may be found at the OASIS website. -This document and translations of it may be copied and furnished to others, and derivative works that -comment on or otherwise explain it or assist in its implementation may be prepared, copied, published, -and distributed, in whole or in part, without restriction of any kind, provided that the above copyright -notice and this section are included on all such copies and derivative works. However, this document -itself may not be modified in any way, including by removing the copyright notice or references to OASIS, -except as needed for the purpose of developing any document or deliverable produced by an OASIS -Technical Committee (in which case the rules applicable to copyrights, as set forth in the OASIS IPR -Policy, must be followed) or as required to translate it into languages other than English. -The limited permissions granted above are perpetual and will not be revoked by OASIS or its successors -or assigns. -This document and the information contained herein is provided on an "AS IS" basis and OASIS -DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY -WARRANTY THAT THE USE OF THE INFORMATION HEREIN WILL NOT INFRINGE ANY OWNERSHIP -RIGHTS OR ANY IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR -PURPOSE. -OASIS requests that any OASIS Party or any other party that believes it has patent claims that would -necessarily be infringed by implementations of this OASIS Committee Specification or OASIS Standard, -to notify OASIS TC Administrator and provide an indication of its willingness to grant patent licenses to -such patent claims in a manner consistent with the IPR Mode of the OASIS Technical Committee that -produced this specification. -OASIS invites any party to contact the OASIS TC Administrator if it is aware of a claim of ownership of -any patent claims that would necessarily be infringed by implementations of this specification by a patent -holder that is not willing to provide a license to such patent claims in a manner consistent with the IPR -Mode of the OASIS Technical Committee that produced this specification. OASIS may include such -claims on its website, but disclaims any obligation to do so. -OASIS takes no position regarding the validity or scope of any intellectual property or other rights that -might be claimed to pertain to the implementation or use of the technology described in this document or -the extent to which any license under such rights might or might not be available; neither does it represent -that it has made any effort to identify any such rights. Information on OASIS' procedures with respect to -rights in any document or deliverable produced by an OASIS Technical Committee can be found on the -OASIS website. Copies of claims of rights made available for publication and any assurances of licenses -to be made available, or the result of an attempt made to obtain a general license or permission for the use -of such proprietary rights by implementers or users of this OASIS Committee Specification or OASIS -Standard, can be obtained from the OASIS TC Administrator. OASIS makes no representation that any -information or list of intellectual property rights will at any time be complete, or that any claims in such list -are, in fact, Essential Claims. -The names "OASIS", are trademarks of OASIS, the owner and developer of this specification, and should -be used only to refer to the organization and its official outputs. OASIS welcomes reference to, and -implementation and use of, specifications, while reserving the right to enforce its marks against misleading -uses. Please see http://www.oasis-open.org/who/trademark.php for above guidance. - -=============================================================================== - -This module includes XSD files under the following W3C(r) Software License: - -W3C(r) SOFTWARE NOTICE AND LICENSE -http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231 - -This work (and included software, documentation such as READMEs, or other related items) -is being provided by the copyright holders under the following license. By obtaining, -using and/or copying this work, you (the licensee) agree that you have read, understood, -and will comply with the following terms and conditions. - -Permission to copy, modify, and distribute this software and its documentation, with or -without modification, for any purpose and without fee or royalty is hereby granted, provided -that you include the following on ALL copies of the software and documentation or portions -thereof, including modifications: - - 1. The full text of this NOTICE in a location viewable to users of the redistributed or - derivative work. - 2. Any pre-existing intellectual property disclaimers, notices, or terms and conditions. - If none exist, the W3C Software Short Notice should be included (hypertext is preferred, - text is permitted) within the body of any redistributed or derivative code. - 3. Notice of any changes or modifications to the files, including the date changes were - made. (We recommend you provide URIs to the location from which the code is derived.) - -THIS SOFTWARE AND DOCUMENTATION IS PROVIDED "AS IS," AND COPYRIGHT HOLDERS MAKE NO -REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO, WARRANTIES -OF MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF THE SOFTWARE OR -DOCUMENTATION WILL NOT INFRINGE ANY THIRD PARTY PATENTS, COPYRIGHTS, TRADEMARKS OR OTHER -RIGHTS. - -COPYRIGHT HOLDERS WILL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL OR CONSEQUENTIAL -DAMAGES ARISING OUT OF ANY USE OF THE SOFTWARE OR DOCUMENTATION. - -The name and trademarks of copyright holders may NOT be used in advertising or publicity -pertaining to the software without specific, written prior permission. Title to copyright -in this software and any associated documentation will at all times remain with copyright -holders. - -=============================================================================== - -This module includes XSD files under the following license: - -http://www.w3.org/Consortium/Legal/copyright-software-19980720 - -W3C® SOFTWARE NOTICE AND LICENSE -Copyright (c) 1994-2002 World Wide Web Consortium, (Massachusetts Institute of Technology, Institut National de Recherche -en Informatique et en Automatique, Keio University). All Rights Reserved. http://www.w3.org/Consortium/Legal/ - -This W3C work (including software, documents, or other related items) is being provided by the copyright holders under -the following license. By obtaining, using and/or copying this work, you (the licensee) agree that you have read, understood, -and will comply with the following terms and conditions: - -Permission to use, copy, modify, and distribute this software and its documentation, with or without modification, -for any purpose and without fee or royalty is hereby granted, provided that you include the following on ALL copies -of the software and documentation or portions thereof, including modifications, that you make: - - 1. The full text of this NOTICE in a location viewable to users of the redistributed or derivative work. - 2. Any pre-existing intellectual property disclaimers, notices, or terms and conditions. If none exist, a short -notice of the following form (hypertext is preferred, text is permitted) should be used within the body of any redistributed -or derivative code: "Copyright (c) [$date-of-software] World Wide Web Consortium, (Massachusetts Institute of Technology, -Institut National de Recherche en Informatique et en Automatique, Keio University). All Rights Reserved. http://www.w3.org/Consortium/Legal/" - 3. Notice of any changes or modifications to the W3C files, including the date changes were made. (We recommend you provide URIs -to the location from which the code is derived.) - -THIS SOFTWARE AND DOCUMENTATION IS PROVIDED "AS IS," AND COPYRIGHT HOLDERS MAKE NO REPRESENTATIONS OR WARRANTIES, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO, WARRANTIES OF MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR PURPOSE -OR THAT THE USE OF THE SOFTWARE OR DOCUMENTATION WILL NOT INFRINGE ANY THIRD PARTY PATENTS, COPYRIGHTS, TRADEMARKS OR OTHER RIGHTS. - -COPYRIGHT HOLDERS WILL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF ANY USE -OF THE SOFTWARE OR DOCUMENTATION. - -The name and trademarks of copyright holders may NOT be used in advertising or publicity pertaining to the software -without specific, written prior permission. Title to copyright in this software and any associated documentation will -at all times remain with copyright holders. diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/META-INF/MANIFEST.MF b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/META-INF/MANIFEST.MF deleted file mode 100644 index ff93db6b14..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/META-INF/MANIFEST.MF +++ /dev/null @@ -1,13 +0,0 @@ -Manifest-Version: 1.0 -Bundle-Vendor: The Apache Software Foundation -Bundle-Version: 2.0.0 -SCA-Version: 1.1 -Bundle-Name: Apache Tuscany SCA Assembly Model XML Schemas -Bundle-ManifestVersion: 2 -Bundle-Description: Apache Tuscany SCA Assembly Model XML Schemas -Bundle-License: http://www.apache.org/licenses/LICENSE-2.0.txt -Bundle-DocURL: http://www.apache.org/ -Bundle-SymbolicName: org.apache.tuscany.sca.assembly.xsd -Bundle-RequiredExecutionEnvironment: J2SE-1.5,JavaSE-1.6 -Export-Package: org.apache.tuscany.sca.assembly.xsd;version="2.0.0" -Import-Package: javax.xml.namespace diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/NOTICE b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/NOTICE deleted file mode 100644 index c5118ba0fd..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/NOTICE +++ /dev/null @@ -1,38 +0,0 @@ -${pom.name} -Copyright (c) 2005 - 2010 The Apache Software Foundation - -This product includes software developed by -The Apache Software Foundation (http://www.apache.org/). - -This product also includes software under the OASIS license -(see the LICENSE file contained in this distribution), with the following -copyright: - -Copyright (C) OASIS(R) 2005, 2009. All Rights Reserved. -OASIS trademark, IPR and other policies apply. - -This product also includes software under the W3C(r) Software License -(see the LICENSE file contained in this distribution), with the following -copyright: - -Copyright (c) 2004 World Wide Web Consortium (Massachusetts Institute of Technology, -European Research Consortium for Informatics and Mathematics, Keio University). -All Rights Reserved. This work is distributed under the W3C(r) Software License [1] -in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied -warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - - [1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231 - -This product also includes software under the W3C(c) Software License -with the following copyright: - -Copyright 2001 The Internet Society and W3C (Massachusetts Institute -of Technology, Institut National de Recherche en Informatique et en -Automatique, Keio University). All Rights Reserved. -http://www.w3.org/Consortium/Legal/ - -This document is governed by the W3C Software License [1] as described -in the FAQ [2]. - -[1] http://www.w3.org/Consortium/Legal/copyright-software-19980720 -[2] http://www.w3.org/Consortium/Legal/IPR-FAQ-20000620.html#DTD diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/pom.xml deleted file mode 100644 index 17ad2d156c..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/pom.xml +++ /dev/null @@ -1,31 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-modules - 2.0-M5 - ../pom.xml - - tuscany-assembly-xsd - Apache Tuscany SCA Assembly Model XSD Files - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/java/org/apache/tuscany/sca/assembly/xsd/Constants.java b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/java/org/apache/tuscany/sca/assembly/xsd/Constants.java deleted file mode 100644 index 3e9bf490cb..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/java/org/apache/tuscany/sca/assembly/xsd/Constants.java +++ /dev/null @@ -1,140 +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 org.apache.tuscany.sca.assembly.xsd; - -import java.net.URL; -import java.util.HashMap; -import java.util.Map; - -import javax.xml.namespace.QName; - -/** - * Constants used in SCA assembly XML files. - * - * @version $Rev$ $Date$ - */ -public interface Constants { - String SCA11_NS = "http://docs.oasis-open.org/ns/opencsa/sca/200912"; - String SCA11_TUSCANY_NS = "http://tuscany.apache.org/xmlns/sca/1.1"; - - String COMPONENT_TYPE = "componentType"; - QName COMPONENT_TYPE_QNAME = new QName(SCA11_NS, COMPONENT_TYPE); - - String SERVICE = "service"; - QName SERVICE_QNAME = new QName(SCA11_NS, SERVICE); - - String REFERENCE = "reference"; - QName REFERENCE_QNAME = new QName(SCA11_NS, REFERENCE); - - String PROPERTY = "property"; - QName PROPERTY_QNAME = new QName(SCA11_NS, PROPERTY); - - String COMPOSITE = "composite"; - QName COMPOSITE_QNAME = new QName(SCA11_NS, COMPOSITE); - - String INCLUDE = "include"; - QName INCLUDE_QNAME = new QName(SCA11_NS, INCLUDE); - - String COMPONENT = "component"; - QName COMPONENT_QNAME = new QName(SCA11_NS, COMPONENT); - - String WIRE = "wire"; - QName WIRE_QNAME = new QName(SCA11_NS, WIRE); - - String OPERATION = "operation"; - QName OPERATION_QNAME = new QName(SCA11_NS, OPERATION); - - String CALLBACK = "callback"; - QName CALLBACK_QNAME = new QName(SCA11_NS, CALLBACK); - - String IMPLEMENTATION_COMPOSITE = "implementation.composite"; - QName IMPLEMENTATION_COMPOSITE_QNAME = new QName(SCA11_NS, IMPLEMENTATION_COMPOSITE); - - String IMPLEMENTATION = "implementation"; - QName IMPLEMENTATION_QNAME = new QName(SCA11_NS, IMPLEMENTATION); - - String BINDING_SCA = "binding.sca"; - QName BINDING_SCA_QNAME = new QName(Constants.SCA11_NS, BINDING_SCA); - - String NAME = "name"; - String VALUE = "value"; - QName VALUE_QNAME = new QName(SCA11_NS, VALUE); - String TARGET_NAMESPACE = "targetNamespace"; - String LOCAL = "local"; - String AUTOWIRE = "autowire"; - String NONOVERRIDABLE = "nonOverridable"; - String REPLACE = "replace"; - String REQUIRES = "requires"; - String POLICY_SETS = "policySets"; - String APPLICABLE_POLICY_SETS = "applicablePolicySets"; - String PROMOTE = "promote"; - String TARGET = "target"; - String WIRED_BY_IMPL = "wiredByImpl"; - String MULTIPLICITY = "multiplicity"; - String TYPE = "type"; - String ELEMENT = "element"; - String MANY = "many"; - String MUST_SUPPLY = "mustSupply"; - String SOURCE = "source"; - String FILE = "file"; - String URI = "uri"; - String ZERO_ONE = "0..1"; - String ZERO_N = "0..n"; - String ONE_ONE = "1..1"; - String ONE_N = "1..n"; - - /** - * Cache for public XSDs and DTDs - */ - Map CACHED_XSDS = XSDCache.cache(); - - static class XSDCache { - static Map cache() { - Map cachedXSDs = new HashMap(); - cachedXSDs.put(Constants.SCA11_NS, Constants.class.getResource("/sca-1.1-cd04.xsd")); - cachedXSDs - .put("http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd", - Constants.class - .getResource("/org/apache/tuscany/sca/assembly/xsd/oasis-200401-wss-wssecurity-secext-1.0.xsd")); - cachedXSDs - .put("http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd", - Constants.class - .getResource("/org/apache/tuscany/sca/assembly/xsd/oasis-200401-wss-wssecurity-utility-1.0.xsd")); - cachedXSDs.put("http://www.w3.org/2005/08/addressing", Constants.class - .getResource("/org/apache/tuscany/sca/assembly/xsd/ws-addr.xsd")); - cachedXSDs.put("http://www.w3.org/ns/ws-policy", Constants.class - .getResource("/org/apache/tuscany/sca/assembly/xsd/ws-policy.xsd")); - cachedXSDs.put("http://www.w3.org/ns/wsdl-instance", Constants.class - .getResource("/org/apache/tuscany/sca/assembly/xsd/wsdli.xsd")); - cachedXSDs.put("http://www.w3.org/XML/1998/namespace", Constants.class - .getResource("/org/apache/tuscany/sca/assembly/xsd/xml.xsd")); - cachedXSDs.put("http://www.w3.org/2000/09/xmldsig#", Constants.class - .getResource("/org/apache/tuscany/sca/assembly/xsd/xmldsig-core-schema.xsd")); - - cachedXSDs.put("-//W3C//DTD XMLSchema 200102//EN", Constants.class - .getResource("/org/apache/tuscany/sca/assembly/xsd/XMLSchema.dtd")); - cachedXSDs.put("-//W3C//DTD XMLSCHEMA 200102//EN", Constants.class - .getResource("/org/apache/tuscany/sca/assembly/xsd/XMLSchema.dtd")); - cachedXSDs.put("datatypes", Constants.class - .getResource("/org/apache/tuscany/sca/assembly/xsd/datatypes.dtd")); - return cachedXSDs; - } - }; -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.processor.ValidationSchema b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.processor.ValidationSchema deleted file mode 100644 index ad8ef70c3c..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.processor.ValidationSchema +++ /dev/null @@ -1,19 +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. -# -tuscany-sca-1.1.xsd -sca-1.1-cd05.xsd diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/org/apache/tuscany/sca/assembly/xsd/XMLSchema.dtd b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/org/apache/tuscany/sca/assembly/xsd/XMLSchema.dtd deleted file mode 100644 index e8e8f7625a..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/org/apache/tuscany/sca/assembly/xsd/XMLSchema.dtd +++ /dev/null @@ -1,402 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -%xs-datatypes; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/org/apache/tuscany/sca/assembly/xsd/datatypes.dtd b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/org/apache/tuscany/sca/assembly/xsd/datatypes.dtd deleted file mode 100644 index 685e89a57e..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/org/apache/tuscany/sca/assembly/xsd/datatypes.dtd +++ /dev/null @@ -1,204 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/org/apache/tuscany/sca/assembly/xsd/oasis-200401-wss-wssecurity-secext-1.0.xsd b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/org/apache/tuscany/sca/assembly/xsd/oasis-200401-wss-wssecurity-secext-1.0.xsd deleted file mode 100644 index 641798b17f..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/org/apache/tuscany/sca/assembly/xsd/oasis-200401-wss-wssecurity-secext-1.0.xsd +++ /dev/null @@ -1,195 +0,0 @@ - - - - - - - - - This type represents an element with arbitrary attributes. - - - - - - - - - - - This type is used for password elements per Section 4.1. - - - - - - - - - - This type is used for elements containing stringified binary data. - - - - - - - - - - This type represents a username token per Section 4.1 - - - - - - - - - - - A security token that is encoded in binary - - - - - - - - - - A security token key identifier - - - - - - - - - - Typedef to allow a list of usages (as URIs). - - - - - - This global attribute is used to indicate the usage of a referenced or indicated token within the containing context - - - - - This type represents a reference to an external security token. - - - - - - - - This type represents a reference to an embedded security token. - - - - - - - - - - This type is used reference a security token. - - - - - - - - - - - This complexType defines header block to use for security-relevant data directed at a specific SOAP actor. - - - - - The use of "any" is to allow extensibility and different forms of security data. - - - - - - - - This complexType defines a container for elements to be specified from any namespace as properties/parameters of a DSIG transformation. - - - - - The use of "any" is to allow extensibility from any namespace. - - - - - - - - This element defines the wsse:UsernameToken element per Section 4.1. - - - - - This element defines the wsse:BinarySecurityToken element per Section 4.2. - - - - - This element defines a security token reference - - - - - This element defines a security token embedded reference - - - - - This element defines a key identifier reference - - - - - This element defines the wsse:SecurityTokenReference per Section 4.3. - - - - - This element defines the wsse:Security SOAP header element per Section 4. - - - - - This element contains properties for transformations from any namespace, including DSIG. - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/org/apache/tuscany/sca/assembly/xsd/oasis-200401-wss-wssecurity-utility-1.0.xsd b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/org/apache/tuscany/sca/assembly/xsd/oasis-200401-wss-wssecurity-utility-1.0.xsd deleted file mode 100644 index f8d74e9c6e..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/org/apache/tuscany/sca/assembly/xsd/oasis-200401-wss-wssecurity-utility-1.0.xsd +++ /dev/null @@ -1,108 +0,0 @@ - - - - - - - -This type defines the fault code value for Timestamp message expiration. - - - - - - - - - - -This global attribute supports annotating arbitrary elements with an ID. - - - - - - -Convenience attribute group used to simplify this schema. - - - - - - - - - -This type is for elements whose [children] is a psuedo-dateTime and can have arbitrary attributes. - - - - - - - - - - - -This type is for elements whose [children] is an anyURI and can have arbitrary attributes. - - - - - - - - - - - - -This complex type ties together the timestamp related elements into a composite type. - - - - - - - - - - - - - - -This element allows Timestamps to be applied anywhere element wildcards are present, -including as a SOAP header. - - - - - - - -This element allows an expiration time to be applied anywhere element wildcards are present. - - - - - - -This element allows a creation time to be applied anywhere element wildcards are present. - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/org/apache/tuscany/sca/assembly/xsd/ws-addr.xsd b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/org/apache/tuscany/sca/assembly/xsd/ws-addr.xsd deleted file mode 100644 index f6fc9c53b0..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/org/apache/tuscany/sca/assembly/xsd/ws-addr.xsd +++ /dev/null @@ -1,137 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/org/apache/tuscany/sca/assembly/xsd/ws-policy.xsd b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/org/apache/tuscany/sca/assembly/xsd/ws-policy.xsd deleted file mode 100644 index c43e5814ed..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/org/apache/tuscany/sca/assembly/xsd/ws-policy.xsd +++ /dev/null @@ -1,141 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/org/apache/tuscany/sca/assembly/xsd/wsdli.xsd b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/org/apache/tuscany/sca/assembly/xsd/wsdli.xsd deleted file mode 100644 index 7fb8c1beed..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/org/apache/tuscany/sca/assembly/xsd/wsdli.xsd +++ /dev/null @@ -1,35 +0,0 @@ - - - - - - - - - This attribute can be used to provide some hints on where - additional WSDL information for a given namespace can be - found in order to help with QName resolution - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/org/apache/tuscany/sca/assembly/xsd/xml.xsd b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/org/apache/tuscany/sca/assembly/xsd/xml.xsd deleted file mode 100644 index ac4b0ec8e6..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/org/apache/tuscany/sca/assembly/xsd/xml.xsd +++ /dev/null @@ -1,117 +0,0 @@ - - - - - - - See http://www.w3.org/XML/1998/namespace.html and - http://www.w3.org/TR/REC-xml for information about this namespace. - - This schema document describes the XML namespace, in a form - suitable for import by other schema documents. - - Note that local names in this namespace are intended to be defined - only by the World Wide Web Consortium or its subgroups. The - following names are currently defined in this namespace and should - not be used with conflicting semantics by any Working Group, - specification, or document instance: - - base (as an attribute name): denotes an attribute whose value - provides a URI to be used as the base for interpreting any - relative URIs in the scope of the element on which it - appears; its value is inherited. This name is reserved - by virtue of its definition in the XML Base specification. - - lang (as an attribute name): denotes an attribute whose value - is a language code for the natural language of the content of - any element; its value is inherited. This name is reserved - by virtue of its definition in the XML specification. - - space (as an attribute name): denotes an attribute whose - value is a keyword indicating what whitespace processing - discipline is intended for the content of the element; its - value is inherited. This name is reserved by virtue of its - definition in the XML specification. - - Father (in any context at all): denotes Jon Bosak, the chair of - the original XML Working Group. This name is reserved by - the following decision of the W3C XML Plenary and - XML Coordination groups: - - In appreciation for his vision, leadership and dedication - the W3C XML Plenary on this 10th day of February, 2000 - reserves for Jon Bosak in perpetuity the XML name - xml:Father - - - - - This schema defines attributes and an attribute group - suitable for use by - schemas wishing to allow xml:base, xml:lang or xml:space attributes - on elements they define. - - To enable this, such a schema must import this schema - for the XML namespace, e.g. as follows: - <schema . . .> - . . . - <import namespace="http://www.w3.org/XML/1998/namespace" - schemaLocation="http://www.w3.org/2001/03/xml.xsd"/> - - Subsequently, qualified reference to any of the attributes - or the group defined below will have the desired effect, e.g. - - <type . . .> - . . . - <attributeGroup ref="xml:specialAttrs"/> - - will define a type which will schema-validate an instance - element with any of those attributes - - - - In keeping with the XML Schema WG's standard versioning - policy, this schema document will persist at - http://www.w3.org/2001/03/xml.xsd. - At the date of issue it can also be found at - http://www.w3.org/2001/xml.xsd. - The schema document at that URI may however change in the future, - in order to remain compatible with the latest version of XML Schema - itself. In other words, if the XML Schema namespace changes, the version - of this document at - http://www.w3.org/2001/xml.xsd will change - accordingly; the version at - http://www.w3.org/2001/03/xml.xsd will not change. - - - - - - In due course, we should install the relevant ISO 2- and 3-letter - codes as the enumerated possible values . . . - - - - - - - - - - - - - - - See http://www.w3.org/TR/xmlbase/ for - information about this attribute. - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/org/apache/tuscany/sca/assembly/xsd/xmldsig-core-schema.xsd b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/org/apache/tuscany/sca/assembly/xsd/xmldsig-core-schema.xsd deleted file mode 100644 index c4e9808cfd..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/org/apache/tuscany/sca/assembly/xsd/xmldsig-core-schema.xsd +++ /dev/null @@ -1,318 +0,0 @@ - - - - - - ]> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/sca-1.1-cd05.xsd b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/sca-1.1-cd05.xsd deleted file mode 100644 index 5f3c796810..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/sca-1.1-cd05.xsd +++ /dev/null @@ -1,38 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/sca-binding-ejb-1.1-cd01.xsd b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/sca-binding-ejb-1.1-cd01.xsd deleted file mode 100644 index 4bccf9d5f8..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/sca-binding-ejb-1.1-cd01.xsd +++ /dev/null @@ -1,34 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/sca-binding-jca-1.1-cd04.xsd b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/sca-binding-jca-1.1-cd04.xsd deleted file mode 100644 index 824ba95b47..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/sca-binding-jca-1.1-cd04.xsd +++ /dev/null @@ -1,173 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/sca-binding-jms-1.1-cd04.xsd b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/sca-binding-jms-1.1-cd04.xsd deleted file mode 100644 index 50e6aa6201..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/sca-binding-jms-1.1-cd04.xsd +++ /dev/null @@ -1,179 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/sca-binding-sca-1.1-cd05.xsd b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/sca-binding-sca-1.1-cd05.xsd deleted file mode 100644 index a337296d45..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/sca-binding-sca-1.1-cd05.xsd +++ /dev/null @@ -1,20 +0,0 @@ - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/sca-binding-ws-1.1-cd04.xsd b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/sca-binding-ws-1.1-cd04.xsd deleted file mode 100644 index 65e200bf8a..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/sca-binding-ws-1.1-cd04.xsd +++ /dev/null @@ -1,35 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/sca-binding-ws-callback-1.1-cd04.xsd b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/sca-binding-ws-callback-1.1-cd04.xsd deleted file mode 100644 index 874e36bab8..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/sca-binding-ws-callback-1.1-cd04.xsd +++ /dev/null @@ -1,18 +0,0 @@ - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/sca-contribution-1.1-cd05.xsd b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/sca-contribution-1.1-cd05.xsd deleted file mode 100644 index da391a983f..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/sca-contribution-1.1-cd05.xsd +++ /dev/null @@ -1,90 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/sca-contribution-c-1.1-cd04.xsd b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/sca-contribution-c-1.1-cd04.xsd deleted file mode 100644 index a93c4c5960..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/sca-contribution-c-1.1-cd04.xsd +++ /dev/null @@ -1,35 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/sca-contribution-cpp-1.1-cd04.xsd b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/sca-contribution-cpp-1.1-cd04.xsd deleted file mode 100644 index 98fffa201f..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/sca-contribution-cpp-1.1-cd04.xsd +++ /dev/null @@ -1,35 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/sca-contribution-java-1.1-cd02.xsd b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/sca-contribution-java-1.1-cd02.xsd deleted file mode 100644 index 6131804edc..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/sca-contribution-java-1.1-cd02.xsd +++ /dev/null @@ -1,34 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/sca-core-1.1-cd05.xsd b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/sca-core-1.1-cd05.xsd deleted file mode 100644 index ab0fce9ac8..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/sca-core-1.1-cd05.xsd +++ /dev/null @@ -1,478 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/sca-definitions-1.1-cd05.xsd b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/sca-definitions-1.1-cd05.xsd deleted file mode 100644 index 8f2f20db19..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/sca-definitions-1.1-cd05.xsd +++ /dev/null @@ -1,30 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/sca-implementation-bpel-1.1-cd03.xsd b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/sca-implementation-bpel-1.1-cd03.xsd deleted file mode 100644 index 967dadf395..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/sca-implementation-bpel-1.1-cd03.xsd +++ /dev/null @@ -1,32 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/sca-implementation-c-1.1-cd04.xsd b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/sca-implementation-c-1.1-cd04.xsd deleted file mode 100644 index ee4b313e6d..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/sca-implementation-c-1.1-cd04.xsd +++ /dev/null @@ -1,55 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/sca-implementation-composite-1.1-cd05.xsd b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/sca-implementation-composite-1.1-cd05.xsd deleted file mode 100644 index f2780f9895..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/sca-implementation-composite-1.1-cd05.xsd +++ /dev/null @@ -1,26 +0,0 @@ - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/sca-implementation-cpp-1.1-cd04.xsd b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/sca-implementation-cpp-1.1-cd04.xsd deleted file mode 100644 index b54ced4e4e..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/sca-implementation-cpp-1.1-cd04.xsd +++ /dev/null @@ -1,63 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/sca-implementation-java-1.1-cd02.xsd b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/sca-implementation-java-1.1-cd02.xsd deleted file mode 100644 index 2856a51450..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/sca-implementation-java-1.1-cd02.xsd +++ /dev/null @@ -1,26 +0,0 @@ - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/sca-implementation-spring-1.1-cd01.xsd b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/sca-implementation-spring-1.1-cd01.xsd deleted file mode 100644 index 5ef3e86c92..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/sca-implementation-spring-1.1-cd01.xsd +++ /dev/null @@ -1,21 +0,0 @@ - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/sca-interface-c-1.1-cd04.xsd b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/sca-interface-c-1.1-cd04.xsd deleted file mode 100644 index 518f0747fb..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/sca-interface-c-1.1-cd04.xsd +++ /dev/null @@ -1,51 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/sca-interface-cpp-1.1-cd04.xsd b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/sca-interface-cpp-1.1-cd04.xsd deleted file mode 100644 index b07bf01f1d..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/sca-interface-cpp-1.1-cd04.xsd +++ /dev/null @@ -1,51 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/sca-interface-java-1.1-cd04.xsd b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/sca-interface-java-1.1-cd04.xsd deleted file mode 100644 index 7b78e13749..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/sca-interface-java-1.1-cd04.xsd +++ /dev/null @@ -1,28 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/sca-interface-wsdl-1.1-cd05.xsd b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/sca-interface-wsdl-1.1-cd05.xsd deleted file mode 100644 index 8d3510be7d..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/sca-interface-wsdl-1.1-cd05.xsd +++ /dev/null @@ -1,28 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/sca-jee-1.1-wd03.xsd b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/sca-jee-1.1-wd03.xsd deleted file mode 100644 index 97b44f8da5..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/sca-jee-1.1-wd03.xsd +++ /dev/null @@ -1,52 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/sca-policy-1.1-cd03.xsd b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/sca-policy-1.1-cd03.xsd deleted file mode 100644 index 61693046c1..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/sca-policy-1.1-cd03.xsd +++ /dev/null @@ -1,119 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/sca-policy-1.1-intents-definitions-cd03.xml b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/sca-policy-1.1-intents-definitions-cd03.xml deleted file mode 100644 index 4505850072..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/sca-policy-1.1-intents-definitions-cd03.xml +++ /dev/null @@ -1,249 +0,0 @@ - - - - - - - - Communication through the binding requires that the - server is authenticated by the client - - - - - - - - Communication through the binding requires that the - client is authenticated by the server - - - - - - - - A convenience intent to help migration - - - - - - Communication through the binding requires that the - client and server to authenticate each other - - - - - - Communication through the binding prevents unauthorized - users from reading the messages - - - - - - - - Communication through the binding prevents tampering - with the messages sent between the client and the service. - - - - - - - - Ensures clients are authorized to use services. - - - - - - - - This intent is used to indicate that a message sent - by a client is always delivered to the component. - - - - - - This intent is used to indicate that a message that was - successfully sent by a client is not delivered more than - once to the component. - - - - - - This profile intent is used to indicate that a message sent - by a client is always delivered to the component. It also - indicates that duplicate messages are not delivered to the - component. - - - - - - This intent is used to indicate that all the messages are - delivered to the component in the order they were sent by - the client. - - - - - - - A managed transaction environment is necessary in order to - run the component. The specific type of managed transaction - needed is not constrained. - - - - For a component marked with managedTransaction.global - a global transaction needs to be present before dispatching - any method on the component - using any transaction - propagated from the client or else beginning and completing - a new transaction. - - - - - A component marked with managedTransaction.local needs to - run within a local transaction containment (LTC) that - is started and ended by the SCA runtime. - - - - - - - A component marked with noManagedTransaction needs to run without - a managed transaction, under neither a global transaction nor - an LTC. A transaction propagated to the hosting SCA runtime - is not joined by the hosting runtime on behalf of a - component marked with noManagedtransaction. - - - - - - For a reference marked as transactedOneWay any OneWay invocation - messages are transacted as part of a client global - transaction. - For a service marked as transactedOneWay any OneWay invocation - message are received from the transport binding in a - transacted fashion, under the service’s global transaction. - - - - - - For a reference indicates that any OneWay invocation messages - are sent immediately regardless of any client transaction. - For a service indicates that any OneWay invocation is - received immediately regardless of any target service - transaction. - - - - - - A service marked with propagatesTransaction is dispatched - under any propagated (client) transaction and the service binding - needs to be capable of receiving a transaction context. - A reference marked with propagatesTransaction propagates any - transaction context under which the client runs when the - reference is used for a request-response interaction and the - binding of a reference marked with propagatesTransaction needs to - be capable of propagating a transaction context. - - - - - - A service marked with suspendsTransaction is not dispatched - under any propagated (client) transaction. - A reference marked with suspendsTransaction does not propagate - any transaction context under which the client runs when the - reference is used. - - - - - - Used to indicate that the component requires both the - managedTransaction.global and the propagatesTransactions - intents - - - - - - - Indicates that request/response operations for the - interface of this wire are "long running" and must be - treated as two separate message transmissions - - - - - - Specifies that the EJB API is needed to communicate with - the service or reference. - - - - - - Specifies that the SOAP messaging model is used for delivering - messages. - - - - - - - - Requires that the messages are delivered and received via the - JMS API. - - - - - - This intent can only be used on a reference. Indicates that the - client is not able to handle new inbound connections. The binding - and callback binding are configured so that any - response or callback comes either through a back channel of the - connection from the client to the server or by having the client - poll the server for messages. - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/tuscany-sca-1.1-binding-atom.xsd b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/tuscany-sca-1.1-binding-atom.xsd deleted file mode 100644 index 603455a1f2..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/tuscany-sca-1.1-binding-atom.xsd +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/tuscany-sca-1.1-binding-dwr.xsd b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/tuscany-sca-1.1-binding-dwr.xsd deleted file mode 100644 index 52445c14c5..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/tuscany-sca-1.1-binding-dwr.xsd +++ /dev/null @@ -1,41 +0,0 @@ - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/tuscany-sca-1.1-binding-http.xsd b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/tuscany-sca-1.1-binding-http.xsd deleted file mode 100644 index 67feb54963..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/tuscany-sca-1.1-binding-http.xsd +++ /dev/null @@ -1,41 +0,0 @@ - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/tuscany-sca-1.1-binding-jms.xsd b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/tuscany-sca-1.1-binding-jms.xsd deleted file mode 100644 index 200f3e50a4..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/tuscany-sca-1.1-binding-jms.xsd +++ /dev/null @@ -1,128 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/tuscany-sca-1.1-binding-jsonrpc.xsd b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/tuscany-sca-1.1-binding-jsonrpc.xsd deleted file mode 100644 index d1bdcbdfae..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/tuscany-sca-1.1-binding-jsonrpc.xsd +++ /dev/null @@ -1,41 +0,0 @@ - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/tuscany-sca-1.1-binding-rest.xsd b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/tuscany-sca-1.1-binding-rest.xsd deleted file mode 100644 index f19a0c4248..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/tuscany-sca-1.1-binding-rest.xsd +++ /dev/null @@ -1,97 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/tuscany-sca-1.1-binding-rmi.xsd b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/tuscany-sca-1.1-binding-rmi.xsd deleted file mode 100644 index ea39a773e0..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/tuscany-sca-1.1-binding-rmi.xsd +++ /dev/null @@ -1,40 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/tuscany-sca-1.1-binding-rss.xsd b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/tuscany-sca-1.1-binding-rss.xsd deleted file mode 100644 index 9857ec62b7..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/tuscany-sca-1.1-binding-rss.xsd +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/tuscany-sca-1.1-implementation-osgi.xsd b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/tuscany-sca-1.1-implementation-osgi.xsd deleted file mode 100644 index c97b91251b..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/tuscany-sca-1.1-implementation-osgi.xsd +++ /dev/null @@ -1,53 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/tuscany-sca-1.1-implementation-script.xsd b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/tuscany-sca-1.1-implementation-script.xsd deleted file mode 100644 index fab809c7e1..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/tuscany-sca-1.1-implementation-script.xsd +++ /dev/null @@ -1,38 +0,0 @@ - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/tuscany-sca-1.1-implementation-widget.xsd b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/tuscany-sca-1.1-implementation-widget.xsd deleted file mode 100644 index 491cb2abce..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/tuscany-sca-1.1-implementation-widget.xsd +++ /dev/null @@ -1,42 +0,0 @@ - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/tuscany-sca-1.1.xsd b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/tuscany-sca-1.1.xsd deleted file mode 100644 index 4cf8649bc6..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly-xsd/src/main/resources/tuscany-sca-1.1.xsd +++ /dev/null @@ -1,40 +0,0 @@ - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/LICENSE b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/LICENSE deleted file mode 100644 index 8aa906c321..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/LICENSE +++ /dev/null @@ -1,205 +0,0 @@ - - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright [yyyy] [name of copyright owner] - - Licensed 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. - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/META-INF/MANIFEST.MF b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/META-INF/MANIFEST.MF deleted file mode 100644 index 61b8b3ffea..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/META-INF/MANIFEST.MF +++ /dev/null @@ -1,60 +0,0 @@ -Manifest-Version: 1.0 -Export-Package: org.apache.tuscany.sca.assembly;version="2.0.0"; - uses:="javax.xml.xpath, - org.apache.tuscany.sca.assembly.impl, - org.apache.tuscany.sca.core, - org.apache.tuscany.sca.policy, - org.apache.tuscany.sca.interfacedef, - javax.xml.namespace", - org.apache.tuscany.sca.assembly.builder;version="2.0.0"; - uses:="org.apache.tuscany.sca.assembly, - org.apache.tuscany.sca.definitions, - org.apache.tuscany.sca.core, - org.apache.tuscany.sca.monitor", - org.apache.tuscany.sca.assembly.impl;version="2.0.0"; - uses:="javax.xml.xpath, - org.apache.tuscany.sca.assembly, - org.apache.tuscany.sca.core, - org.apache.tuscany.sca.policy, - org.apache.tuscany.sca.interfacedef, - javax.xml.namespace", - org.apache.tuscany.sca.definitions;version="2.0.0", - org.apache.tuscany.sca.definitions.util;version="2.0.0";uses:="org.apache.tuscany.sca.definitions,org.apache.tuscany.sca.monitor", - org.apache.tuscany.sca.interfacedef;version="2.0.0";uses:="org.apache.tuscany.sca.interfacedef.util,org.apache.tuscany.sca.policy", - org.apache.tuscany.sca.interfacedef.impl;version="2.0.0";uses:="org.apache.tuscany.sca.interfacedef.util,org.apache.tuscany.sca.policy,org.apache.tuscany.sca.interfacedef", - org.apache.tuscany.sca.interfacedef.util;version="2.0.0";uses:="org.apache.tuscany.sca.interfacedef,javax.xml.namespace", - org.apache.tuscany.sca.policy;version="2.0.0";uses:="javax.xml.xpath,org.apache.tuscany.sca.policy.impl,javax.xml.namespace", - org.apache.tuscany.sca.policy.impl;version="2.0.0";uses:="javax.xml.xpath,org.apache.tuscany.sca.policy,javax.xml.namespace", - org.apache.tuscany.sca.policy.util;version="2.0.0";uses:="javax.xml.parsers,org.apache.tuscany.sca.policy" -Private-Package: org.apache.tuscany.sca.assembly.builder.impl;version= - "2.0.0" -SCA-Version: 1.1 -Bundle-Name: Apache Tuscany SCA Assembly Model -Bundle-Vendor: The Apache Software Foundation -Bundle-Version: 2.0.0 -Bundle-ManifestVersion: 2 -Bundle-License: http://www.apache.org/licenses/LICENSE-2.0.txt -Bundle-Description: Apache Tuscany SCA Assembly Model -Import-Package: javax.xml.datatype, - javax.xml.namespace, - javax.xml.parsers, - javax.xml.transform, - javax.xml.transform.dom, - javax.xml.transform.stream, - javax.xml.xpath, - org.apache.tuscany.sca.assembly;version="2.0.0", - org.apache.tuscany.sca.assembly.builder;version="2.0.0", - org.apache.tuscany.sca.assembly.impl;version="2.0.0", - org.apache.tuscany.sca.core;version="2.0.0", - org.apache.tuscany.sca.definitions;version="2.0.0", - org.apache.tuscany.sca.extensibility;version="2.0.0", - org.apache.tuscany.sca.interfacedef;version="2.0.0", - org.apache.tuscany.sca.interfacedef.impl;version="2.0.0";resolution:=optional, - org.apache.tuscany.sca.monitor;version="2.0.0", - org.apache.tuscany.sca.policy;version="2.0.0", - org.apache.tuscany.sca.policy.impl;version="2.0.0", - org.apache.tuscany.sca.policy.util;version="2.0.0", - org.w3c.dom -Bundle-SymbolicName: org.apache.tuscany.sca.assembly -Bundle-DocURL: http://www.apache.org/ -Bundle-RequiredExecutionEnvironment: J2SE-1.5,JavaSE-1.6 diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/NOTICE b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/NOTICE deleted file mode 100644 index ad2ba40961..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/NOTICE +++ /dev/null @@ -1,6 +0,0 @@ -${pom.name} -Copyright (c) 2005 - 2010 The Apache Software Foundation - -This product includes software developed by -The Apache Software Foundation (http://www.apache.org/). - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/pom.xml b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/pom.xml deleted file mode 100644 index 7809556a7c..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/pom.xml +++ /dev/null @@ -1,45 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-modules - 2.0-M5 - ../pom.xml - - tuscany-assembly - Apache Tuscany SCA Assembly Model - - - - - org.apache.tuscany.sca - tuscany-monitor - 2.0-M5 - - - org.apache.tuscany.sca - tuscany-extensibility - 2.0-M5 - - - - diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/AbstractContract.java b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/AbstractContract.java deleted file mode 100644 index dca1decb76..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/AbstractContract.java +++ /dev/null @@ -1,78 +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 org.apache.tuscany.sca.assembly; - -import org.apache.tuscany.sca.interfacedef.InterfaceContract; -import org.apache.tuscany.sca.policy.PolicySubject; - -/** - * Interface contracts define one or more business functions. These business - * functions are provided by services and are used by references. - * - * @version $Rev$ $Date$ - * @tuscany.spi.extension.asclient - */ -public interface AbstractContract extends Base, Extensible, PolicySubject { - - /** - * Returns the name of the contract. - * - * @return the name of the contract - */ - String getName(); - - /** - * Sets the name of the contract. - * - * @param name the name of the contract - */ - void setName(String name); - - /** - * Returns the interface contract defining the interface and callback - * interface for the contract. - * - * @return the interface contract - */ - InterfaceContract getInterfaceContract(); - - /** - * Sets the interface contract defining the interface and callback - * interface for the contract. - * - * @param interfaceContract the interface contract - */ - void setInterfaceContract(InterfaceContract interfaceContract); - - /** - * Returns true if this contract is a reference or service created internally - * to handle a callback interface of another contract, false otherwise. - * - * @return true for a callback contract, false otherwise - */ - boolean isForCallback(); - - /** - * Sets a flag indicating whether this is a callback contract. - * - * @param isCallback true for a callback contract, false otherwise - */ - void setForCallback(boolean isCallback); - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/AbstractProperty.java b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/AbstractProperty.java deleted file mode 100644 index 45fa05d66c..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/AbstractProperty.java +++ /dev/null @@ -1,151 +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 org.apache.tuscany.sca.assembly; - -import javax.xml.namespace.QName; - -import org.apache.tuscany.sca.interfacedef.DataType; - -/** - * A property allows for the configuration of an implementation with externally - * set data values. An implementation can have zero or more properties. Each - * property has a data type, which may be either simple or complex. An - * implementation may also define a default value for a property. - * - * @version $Rev$ $Date$ - */ -public interface AbstractProperty extends Base, Extensible { - - /** - * Returns the property name. - * - * @return the property name - */ - String getName(); - - /** - * Sets the property name. - * - * @param name the property name - */ - void setName(String name); - - /** - * Returns the default value of the property. - * - * @return the default value of this property - */ - Object getValue(); - - /** - * Sets the default value of the property. - * - * @param defaultValue the default value of this property - */ - void setValue(Object defaultValue); - - /** - * Returns true if the property allows multiple values. - * - * @return true if the property allows multiple values - */ - boolean isMany(); - - /** - * Sets whether or not the property allows multiple values. - * - * @param many true if the property should allow multiple values - */ - void setMany(boolean many); - - /** - * Returns true if a value must be supplied for the property. - * - * @return true is a value must be supplied for the property - */ - boolean isMustSupply(); - - /** - * Sets whether a value must be supplied for the property. - * - * @param mustSupply set to true to require that a value be supplied for - * uses of this property - */ - void setMustSupply(boolean mustSupply); - - /** - * Returns the data type of this property. This is the qualified name of an - * XML schema type. - * - * @return the type of this property - */ - QName getXSDType(); - - /** - * Sets the data type of this property. This is the qualified name of an XML - * schema type. - * - * @param type the type of this property - */ - void setXSDType(QName type); - - /** - * Returns the element defining the data type of this property. This is the - * qualified name of an XML schema element. - * - * @return the element defining the type of this property - */ - QName getXSDElement(); - - /** - * Sets the element defining the data type of this property. This is the - * qualified name of an XML schema element. - * - * @param element the element defining the type of this property - */ - void setXSDElement(QName element); - - /** - * Get the data type for this property - * @return The data type - */ - DataType getDataType(); - - /** - * Set the data type - * @param dataType The data type - */ - void setDataType(DataType dataType); - - /** - * Get the XML schema that represents the type if this property. - * Used during property value validation - * - * @return - */ - Object getXSDDefinition(); - - /** - * Set the XML schema that represents the type if this property. - * Used during property value validation - * - * @param xsdDefintion - */ - void setXSDDefinition(Object xsdDefintion); -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/AbstractReference.java b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/AbstractReference.java deleted file mode 100644 index a9ef26bbb9..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/AbstractReference.java +++ /dev/null @@ -1,43 +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 org.apache.tuscany.sca.assembly; - -/** - * Represents a reference contract. - * - * @version $Rev$ $Date$ - */ -public interface AbstractReference extends AbstractContract { - - /** - * Returns the multiplicity allowed for wires connected to this reference. - * - * @return the multiplicity allowed for wires connected to this reference - */ - Multiplicity getMultiplicity(); - - /** - * Sets the multiplicity allowed for wires connected to this reference. - * - * @param multiplicity the multiplicity allowed for wires connected to this - * reference - */ - void setMultiplicity(Multiplicity multiplicity); - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/AbstractService.java b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/AbstractService.java deleted file mode 100644 index 9ae511c07b..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/AbstractService.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 org.apache.tuscany.sca.assembly; - -/** - * Represents a service contract. - * - * @version $Rev$ $Date$ - */ -public interface AbstractService extends AbstractContract { - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/AssemblyFactory.java b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/AssemblyFactory.java deleted file mode 100644 index 5d82b9b727..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/AssemblyFactory.java +++ /dev/null @@ -1,167 +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 org.apache.tuscany.sca.assembly; - -/** - * A factory for the assembly model - * - * @version $Rev$ $Date$ - * @tuscany.spi.extension.asclient - */ -public interface AssemblyFactory { - - /** - * Create a new abstract property. - * - * @return a new abstract property - */ - AbstractProperty createAbstractProperty(); - - /** - * Create a new abstract reference. - * - * @return a new abstract reference - */ - AbstractReference createAbstractReference(); - - /** - * Create a new abstract service. - * - * @return a new abstract service - */ - AbstractService createAbstractService(); - - /** - * Create a new callback. - * - * @return - */ - Callback createCallback(); - - /** - * Create a new component. - * - * @return a new component - */ - Component createComponent(); - - /** - * Create a new component property. - * - * @return a new component property - */ - ComponentProperty createComponentProperty(); - - /** - * Create a new component reference. - * - * @return a new component reference - */ - ComponentReference createComponentReference(); - - /** - * Create a new component service. - * - * @return a new component service - */ - ComponentService createComponentService(); - - /** - * Create a new component type - * - * @return a new component type - */ - ComponentType createComponentType(); - - /** - * Create a new composite. - * - * @return a new composite - */ - Composite createComposite(); - - /** - * Create a new composite reference. - * - * @return a new composite reference - */ - CompositeReference createCompositeReference(); - - /** - * Create a new composite service. - * - * @return a new composite service - */ - CompositeService createCompositeService(); - - /** - * Create a new property. - * - * @return a new property - */ - Property createProperty(); - - /** - * Create a new reference. - * - * @return a new reference - */ - Reference createReference(); - - /** - * Create a new service. - * - * @return a new service - */ - Service createService(); - - /** - * Create a new wire. - * - * @return a new wire - */ - Wire createWire(); - - /** - * Create an Extension - * @return - */ - Extension createExtension(); - - /** - * Create a new endpoint - * - * @return a new endpoint - */ - Endpoint createEndpoint(); - - /** - * Create a new endpoint reference - * - * @return a new endpoint reference - */ - EndpointReference createEndpointReference(); - - /** - * Create a new configured operation. - * - * @return a new ConfiguredOperation - */ - ConfiguredOperation createConfiguredOperation(); -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/Base.java b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/Base.java deleted file mode 100644 index b9abb90b03..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/Base.java +++ /dev/null @@ -1,45 +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 org.apache.tuscany.sca.assembly; - -/** - * Base interface for all assembly model objects. - * - * @version $Rev$ $Date$ - * @tuscany.spi.extension.inheritfrom - */ -public interface Base { - String SCA11_NS = "http://docs.oasis-open.org/ns/opencsa/sca/200912"; - String SCA11_TUSCANY_NS = "http://tuscany.apache.org/xmlns/sca/1.1"; - - /** - * Returns true if the model element is unresolved. - * - * @return true if the model element is unresolved. - */ - boolean isUnresolved(); - - /** - * Sets whether the model element is unresolved. - * - * @param unresolved whether the model element is unresolved - */ - void setUnresolved(boolean unresolved); - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/Binding.java b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/Binding.java deleted file mode 100644 index 9b96556173..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/Binding.java +++ /dev/null @@ -1,114 +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 org.apache.tuscany.sca.assembly; - -import javax.xml.namespace.QName; - -/** - * Represents a binding. - * - * @version $Rev$ $Date$ - * @tuscany.spi.extension.inheritfrom - */ -public interface Binding extends Base, Cloneable { - - /** - * Returns the binding URI. - * - * @return the binding URI - */ - String getURI(); - - /** - * Sets the binding URI. - * - * @param uri the binding URI - */ - void setURI(String uri); - - /** - * Returns the binding name. - * - * @return the binding name - */ - String getName(); - - /** - * Sets the binding name. - * - * @param name the binding name - */ - void setName(String name); - - /** - * Clone the binding - * - * @return the clone - */ - Object clone() throws CloneNotSupportedException; - - /** - * Returns the QName type for the binding - * - * @return the binding type QName - */ - QName getType(); - - /** - * Returns the request wire format - * - * @return the request wire format or null is none is specified - */ - WireFormat getRequestWireFormat(); - - /** - * Sets the request wire format - * - * @param wireFormat the request wire format - */ - void setRequestWireFormat(WireFormat wireFormat); - - /** - * Returns the response wire format - * - * @return the response wire format or null is none is specified - */ - WireFormat getResponseWireFormat(); - - /** - * Sets the response wire format - * - * @param wireFormat the response wire format - */ - void setResponseWireFormat(WireFormat wireFormat); - - /** - * Returns the operation selector - * - * @return the operation selector or null is none is specified - */ - OperationSelector getOperationSelector(); - - /** - * Sets the operation selector - * - * @param operationSelector the operation selector - */ - void setOperationSelector(OperationSelector operationSelector); -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/Callback.java b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/Callback.java deleted file mode 100644 index d34ec7d01f..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/Callback.java +++ /dev/null @@ -1,39 +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 org.apache.tuscany.sca.assembly; - -import java.util.List; - -import org.apache.tuscany.sca.policy.PolicySubject; - -/** - * Represents a callback object describing the bindings to use for callbacks. - * - * @version $Rev$ $Date$ - */ -public interface Callback extends Base, Extensible, PolicySubject { - - /** - * Returns the bindings supported for callbacks. - * - * @return the bindings supported for callbacks - */ - List getBindings(); - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/Component.java b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/Component.java deleted file mode 100644 index efd8557e07..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/Component.java +++ /dev/null @@ -1,142 +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 org.apache.tuscany.sca.assembly; - -import java.util.List; - -import org.apache.tuscany.sca.policy.PolicySubject; - -/** - * Represents a component. A component is a configured instance of an - * implementation. - * - * @version $Rev$ $Date$ - * @tuscany.spi.extension.asclient - */ -public interface Component extends Base, Extensible, PolicySubject, Cloneable { - - /** - * Returns the URI of the component. - * - * @return the URI of the component - */ - String getURI(); - - /** - * Sets the URI of the component. - * - * @param uri the URI of the component - */ - void setURI(String uri); - - /** - * Returns the name of the component. - * - * @return the name of the component - */ - String getName(); - - /** - * Sets the name of the component. - * - * @param name the name of the component - */ - void setName(String name); - - /** - * Returns the component implementation. - * - * @return the component implementation - */ - Implementation getImplementation(); - - /** - * Sets the component implementation - * - * @param implementation the component implementation - */ - void setImplementation(Implementation implementation); - - /** - * Returns a list of references used by the component. - * - * @return a list of references used by the component - */ - List getReferences(); - - /** - * Return a reference by name - * - * @param name the reference name - * @return reference the reference - */ - ComponentReference getReference(String name); - - /** - * Returns a list of services exposed by the component. - * - * @return a list of services exposed by the component - */ - List getServices(); - - /** - * Return a service by name - * - * @param name the service name - * @return service the service - */ - ComponentService getService(String name); - - /** - * Returns a list of properties for the component. - * - * @return a list of properties - */ - List getProperties(); - - /** - * Return a property by name - * - * @param name the property name - * @return property the property - */ - ComponentProperty getProperty(String name); - - /** - * Return the Boolean value of autowire - * @return null/TRUE/FALSE - */ - Boolean getAutowire(); - - /** - * Sets whether component references should be autowired. - * - * @param autowire whether component references should be autowired - */ - void setAutowire(Boolean autowire); - - /** - * Returns a clone of the component. - * - * @return a clone of the component - * @throws CloneNotSupportedException - */ - Object clone() throws CloneNotSupportedException; - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/ComponentProperty.java b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/ComponentProperty.java deleted file mode 100644 index 1202b4d83a..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/ComponentProperty.java +++ /dev/null @@ -1,89 +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 org.apache.tuscany.sca.assembly; - -import javax.xml.xpath.XPathExpression; - -/** - * Represents a configured property of a component. - * - * @version $Rev$ $Date$ - * @tuscany.spi.extension.asclient - */ -public interface ComponentProperty extends Property { - - /** - * Returns the property defined by the component implementation. - * - * @return the property defined by the component implementation - */ - Property getProperty(); - - /** - * Sets the property defined by this component implementation. - * - * @param property the property defined by this component implementation - */ - void setProperty(Property property); - - /** - * Returns an XPath expression referencing a property of the enclosing - * composite. - * - * @return an XPath expression referencing a property of the enclosing - * composite - */ - String getSource(); - - /** - * Sets an XPath expression referencing a property of the enclosing - * composite. - * - * @param source an XPath expression referencing a property of the enclosing - * composite - */ - void setSource(String source); - - /** - * Get the XPath expression for the source attribute - * @return the XPath expression for the source attribute - */ - XPathExpression getSourceXPathExpression(); - - /** - * Set the XPath expression for the source attribute - * @param sourceXPathExpression the XPath expression for the source attribute - */ - void setSourceXPathExpression(XPathExpression sourceXPathExpression); - - /** - * Returns a URI to a file containing the property value. - * - * @return a URI to a file containing the property value - */ - String getFile(); - - /** - * Sets a URI to a file containing the property value. - * - * @param file a URI to a file containing the property value - */ - void setFile(String file); - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/ComponentReference.java b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/ComponentReference.java deleted file mode 100644 index ad72780de8..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/ComponentReference.java +++ /dev/null @@ -1,113 +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 org.apache.tuscany.sca.assembly; - -/** - * An instance of a reference associated with a particular component. - * - * @version $Rev$ $Date$ - * @tuscany.spi.extension.asclient - */ -public interface ComponentReference extends Reference { - - /** - * Returns the reference defined by the implementation for this reference. - * - * @return the implementation reference - */ - Reference getReference(); - - /** - * Sets the reference defined by the implementation for this reference. - * - * @param reference the implementation reference - */ - void setReference(Reference reference); - - /** - * Return the Boolean value of autowire - * @return null/TRUE/FALSE - */ - Boolean getAutowire(); - - /** - * Sets whether component references should be autowired. - * - * @param autowire whether component references should be autowired - */ - void setAutowire(Boolean autowire); - - /** - * Returns the callback service created internally as a target endpoint - * for callbacks to this reference. - * - * @return the callback service - */ - ComponentService getCallbackService(); - - /** - * Sets the callback service created internally as a target endpoint - * for callbacks to this reference. - * - * @param callbackService the callback service - */ - void setCallbackService(ComponentService callbackService); - - /** - * A boolean value, "false" by default, which indicates whether this component reference - * can have its targets overridden by a composite reference which promotes the - * component reference. - * - * If @nonOverridable==false, the target(s) of the promoting composite reference - * replace all the targets explicitly declared on the component reference for any - * value of @multiplicity on the component reference. - * - * If the component reference has @nonOverridable==false and @multiplicity 1..1 - * and the reference has a target, then any composite reference which promotes - * the component reference has @multiplicity 0..1.by default and MAY have an explicit @multiplicity of either - * 0..1 or 1..1. - * - * If @nonOverridable==true, and the component reference has @multiplicity 0..1 or - * 1..1 and the component reference also declares a target, promotion implies - * that the promoting composite reference has @wiredbyImpl==true and the composite - * reference cannot supply a target, but can influence the policy attached to the - * component reference. - * - * If @nonOverridable==true, and the component reference @multiplicity is 0..n - * or 1..n, promotion targeting is additive - * - * @return - */ - boolean isNonOverridable(); - - /** - * Set the nonOverridable flag - * @param nonOverridable - */ - void setNonOverridable(boolean nonOverridable); - - /** - * Sets whether this Component Reference is promoted - * @param isPromoted - true if the component reference is promoted - */ - void setPromoted(boolean isPromoted); - - boolean isPromoted(); - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/ComponentService.java b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/ComponentService.java deleted file mode 100644 index e1e3eab90c..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/ComponentService.java +++ /dev/null @@ -1,59 +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 org.apache.tuscany.sca.assembly; - -/** - * An addressable instance of a service associated with a particular component. - * - * @version $Rev$ $Date$ - * @tuscany.spi.extension.asclient - */ -public interface ComponentService extends Service { - - /** - * Returns the service defined by the implementation for this service. - * - * @return - */ - Service getService(); - - /** - * Sets the service defined by the implementation for this service. - * - * @param service - */ - void setService(Service service); - - /** - * Returns the callback reference created internally as a source endpoint - * for callbacks from this service. - * - * @return the callback reference - */ - ComponentReference getCallbackReference(); - - /** - * Sets the callback reference created internally as a source endpoint - * for callbacks from this service. - * - * @param callbackReference the callback reference - */ - void setCallbackReference(ComponentReference callbackReference); - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/ComponentType.java b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/ComponentType.java deleted file mode 100644 index f748828999..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/ComponentType.java +++ /dev/null @@ -1,90 +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 org.apache.tuscany.sca.assembly; - -import java.util.List; - -import org.apache.tuscany.sca.policy.PolicySubject; - -/** - * Describes an implementation and represents its configurable aspects. - * - * @version $Rev$ $Date$ - * @tuscany.spi.extension.asclient - */ -public interface ComponentType extends Base, PolicySubject { - - /** - * Returns the URI of this component type. - * @return the URI of the component type - */ - String getURI(); - - /** - * Sets the URI of this component type. - * @param uri the URI of the component type - */ - void setURI(String uri); - - /** - * Returns a list of services that are offered. - * - * @return a list of services that are offered - */ - List getServices(); - - /** - * Return a service by name - * - * @param name the service name - * @return service the service - */ - Service getService(String name); - - /** - * Returns the list of reference types that are used. - * - * @return the list of reference types that are used - */ - List getReferences(); - - /** - * Return a reference by name - * - * @param name the reference name - * @return reference the reference - */ - Reference getReference(String name); - - /** - * Returns the list of properties that can be set. - * - * @return the list of properties that can be set - */ - List getProperties(); - - /** - * Return a property by name - * - * @param name the property name - * @return property the property - */ - Property getProperty(String name); - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/Composite.java b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/Composite.java deleted file mode 100644 index 64a55f1b44..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/Composite.java +++ /dev/null @@ -1,132 +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 org.apache.tuscany.sca.assembly; - -import java.util.List; - -import javax.xml.namespace.QName; - -import org.apache.tuscany.sca.policy.PolicySubject; - -/** - * Represents a composite. - * - * @version $Rev$ $Date$ - */ -public interface Composite extends Implementation, Extensible, Cloneable, PolicySubject { - /** - * Special name for the domain composite - */ - QName DOMAIN_COMPOSITE = new QName(SCA11_NS, ""); - QName TYPE = new QName(SCA11_NS, "implementation.composite"); - - /** - * Returns the spec version of the composite used to build this model - * - * @return the spec version used to build this model - */ - String getSpecVersion(); - - /** - * Sets the spec version of the composite used to build this model - * - * @param specVersion the spec version used to build this model - */ - void setSpecVersion(String specVersion); - - /** - * Returns the name of the composite. - * - * @return the name of the composite - */ - QName getName(); - - /** - * Sets the name of the composite. - * - * @param name the name of the composite - */ - void setName(QName name); - - /** - * Returns a list of composites included in this composite. - * - * @return a list of composites included in this composite. - */ - List getIncludes(); - - /** - * Returns a list of components contained in this composite. - * - * @return a list of components contained in this composite - */ - List getComponents(); - - /** - * Returns a component by name - */ - Component getComponent(String name); - - /** - * Returns a list of wires contained in this composite. - * - * @return a list of wires contained in this composite - */ - List getWires(); - - /** - * Returns true if all the components within the composite must run in the - * same process. - * - * @return true if all the components within the composite must run in the - * same process - */ - boolean isLocal(); - - /** - * Sets whether all the components within the composite must run in the same - * process. - * - * @param local whether all the components within the composite must run in - * the same process - */ - void setLocal(boolean local); - - /** - * Return the Boolean value of autowire - * @return null/TRUE/FALSE - */ - Boolean getAutowire(); - - /** - * Sets whether component references should be autowired. - * - * @param autowire whether component references should be autowired - */ - void setAutowire(Boolean autowire); - - /** - * Returns a clone of the component type. - * - * @return a clone of the component type - * @throws CloneNotSupportedException - */ - Object clone() throws CloneNotSupportedException; - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/CompositeReference.java b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/CompositeReference.java deleted file mode 100644 index 88cb2f9a2c..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/CompositeReference.java +++ /dev/null @@ -1,44 +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 org.apache.tuscany.sca.assembly; - -import java.util.List; - -/** - * Represents composite reference. - * - * @version $Rev$ $Date$ - */ -public interface CompositeReference extends Reference { - /** - * Returns the promoted components. For each promoted component/reference, - * they have the same index in the component and reference list. - * - * @return the promoted components - */ - List getPromotedComponents(); - - /** - * Returns the promoted component references. - * - * @return the promoted component references - */ - List getPromotedReferences(); - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/CompositeService.java b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/CompositeService.java deleted file mode 100644 index 575d0784ce..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/CompositeService.java +++ /dev/null @@ -1,57 +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 org.apache.tuscany.sca.assembly; - -/** - * Represents a composite service. - * - * @version $Rev$ $Date$ - * @tuscany.spi.extension.asclient - */ -public interface CompositeService extends Service { - - /** - * Returns the promoted component. - * - * @return the promoted component. - */ - Component getPromotedComponent(); - - /** - * Sets the promoted component - * - * @param promotedComponent the promoted component. - */ - void setPromotedComponent(Component promotedComponent); - - /** - * Returns the promoted component service . - * - * @return the promoted component service. - */ - ComponentService getPromotedService(); - - /** - * Sets the promoted component service - * - * @param promotedService the promoted component service. - */ - void setPromotedService(ComponentService promotedService); - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/ConfiguredOperation.java b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/ConfiguredOperation.java deleted file mode 100644 index fcfa689a7d..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/ConfiguredOperation.java +++ /dev/null @@ -1,62 +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 org.apache.tuscany.sca.assembly; - -import org.apache.tuscany.sca.policy.PolicySubject; - -/** - * Represents an Operation. Typically Operation elements are used when there is a - * need to apply certain facets such as intents and policysets only to a specific - * operation provided by a service or reference. - * - * @tuscany.spi.extension.asclient - * @version $Rev$ $Date$ - */ -public interface ConfiguredOperation extends Base, PolicySubject { - /** - * Returns the name of the operation. - * - * @return the name of the operation - */ - String getName(); - - /** - * Sets the name of the operation. - * - * @param name the name of the operation - */ - void setName(String name); - - /** - * Returns the name of the service or reference to which this operation belongs. - * This method is particularly useful when operation elements are specified under implementation - * elements and it is necessary to identify which of the various services provided by the - * implementation is referred to by the operation element in question - * - * @return the name of the contract to which this operation belongs - */ - String getContractName(); - - /** - * Sets the name of the service or reference to which this operation belongs. - * - * @param contractName the name of the contract to which this operation belongs - */ - void setContractName(String contractName); -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/Contract.java b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/Contract.java deleted file mode 100644 index 0c57c74ec0..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/Contract.java +++ /dev/null @@ -1,111 +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 org.apache.tuscany.sca.assembly; - -import java.util.List; - -import org.apache.tuscany.sca.interfacedef.InterfaceContract; -import org.apache.tuscany.sca.policy.PolicySubject; - -/** - * Represents a contract. A contract can be either a service or a reference. - * - * @version $Rev$ $Date$ - * @tuscany.spi.extension.asclient - */ -public interface Contract extends AbstractContract, PolicySubject, Cloneable { - - /** - * Returns the bindings supported by this contract. - * - * @return the bindings supported by this contract - */ - List getBindings(); - - /** - * Returns a binding of the specified type or null if there is no such - * binding configured on this contract. - * - * @param the binding type - * @param bindingClass the binding type class - * @return the binding or null if there is no binding of the specified type - */ - B getBinding(Class bindingClass); - - /** - * Returns a callback binding of the specified type or null if there is no such - * callback binding configured on this contract. - * - * @param the callback binding type - * @param bindingClass the callback binding type class - * @return the callback binding or null if there is no callback binding of the specified type - */ - B getCallbackBinding(Class bindingClass); - - /** - * Returns a callback definition of the bindings to use for callbacks. - * - * @return a definition of the bindings to use for callbacks - */ - Callback getCallback(); - - /** - * Sets a callback definition of the bindings to use for callbacks - * - * @param callback a definition of the bindings to use for callbacks - */ - void setCallback(Callback callback); - - /** - * Returns a clone of the contract. - * - * @return a clone of the reference - * @throws CloneNotSupportedException - */ - Object clone() throws CloneNotSupportedException; - - /** - * Returns the interface contract given a binding. Important in the case where - * a reference with multiplicity > 1 has been promoted and has it's list of - * resolved bindings extended by a promoting reference. Here the binding - * from the promoting reference may need the interface contract from the - * promoting reference and not the promoted reference. - * TODO - remove this wrinkle with better endpoint support. - * - * @param binding the binding for which the interface contract is required - * @return the interface contract - */ - InterfaceContract getInterfaceContract(Binding binding); - - /** - * A flag to tell if there are any binding elements specified for this service or reference. - * If true, they override the the bindings in the corresponding reference/service in the - * component type or promoted reference/service. - * @return - */ - boolean isOverridingBindings(); - - /** - * Set the flag depending on if there are any binding elements specified for this service or - * reference. - * @param overridingBindings true if there are binding elements specified - */ - void setOverridingBindings(boolean overridingBindings); - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/DefaultAssemblyFactory.java b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/DefaultAssemblyFactory.java deleted file mode 100644 index 6d8350fc66..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/DefaultAssemblyFactory.java +++ /dev/null @@ -1,41 +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 org.apache.tuscany.sca.assembly; - -import org.apache.tuscany.sca.assembly.impl.AssemblyFactoryImpl; -import org.apache.tuscany.sca.core.DefaultExtensionPointRegistry; -import org.apache.tuscany.sca.core.ExtensionPointRegistry; - -/** - * A factory for the assembly model. - * - * @version $Rev$ $Date$ - */ -public class DefaultAssemblyFactory extends AssemblyFactoryImpl implements AssemblyFactory { - - public DefaultAssemblyFactory(ExtensionPointRegistry registry) { - super(registry); - } - - public DefaultAssemblyFactory() { - super(new DefaultExtensionPointRegistry()); - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/Endpoint.java b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/Endpoint.java deleted file mode 100644 index 43bf17d66a..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/Endpoint.java +++ /dev/null @@ -1,139 +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 org.apache.tuscany.sca.assembly; - -import java.io.Serializable; -import java.util.List; - -import org.apache.tuscany.sca.interfacedef.InterfaceContract; -import org.apache.tuscany.sca.policy.PolicySubject; - -/** - * Represents a service endpoint which is what results from having a configured - * binding applied to a component service. In a deployed application an endpoint - * will relate directly to a physical endpoint, for example, a HTTP URL or a - * JMS destination. - * - * @version $Rev$ $Date$ - * @tuscany.spi.extension.asclient - */ -public interface Endpoint extends Base, PolicySubject, Cloneable, Serializable { - /** - * Get the structural URI of the service binding - * @return structural URI of the service/binding - */ - String getURI(); - - /** - * Set the structural URI of the service binding - * @param uri <componentURI>#service-binding(serviceName/bindingName) - * or <componentURI>#service(serviceName) - */ - void setURI(String uri); - - /** - * Get the component model object - * - * @return component - */ - Component getComponent(); - - /** - * Set the component model object - * - * @param component - */ - void setComponent(Component component); - - /** - * Get the service model object - * - * @return service - */ - ComponentService getService(); - - /** - * Set the service model object - * - * @param service - */ - void setService(ComponentService service); - - /** - * Get the resolved target binding - * - * @return target binding - */ - Binding getBinding(); - - /** - * Set the binding - * - * @param binding - */ - void setBinding(Binding binding); - - /** - * Returns the interface contract defining the interface - * - * @return the interface contract - */ - InterfaceContract getComponentServiceInterfaceContract(); - - /** - * Get the service's callback endpoint references that - * represent endpoint references from which callbacks - * originate - * - * @return callbackEndpoint the reference callback endpoint - */ - List getCallbackEndpointReferences(); - - /** - * Returns true if this endpoint represents a serivce that is not - * running in this JVM - * - * @return true if the endpoint is remote - */ - boolean isRemote(); - - /** - * Set true if this endpoint represents a serivce that is not - * running in this JVM - * - * @param remote set to true if the endpoint is remote - */ - void setRemote(boolean remote); - - /** - * Supports endpoint cloning - * - * @return endpoint - * @throws CloneNotSupportedException - */ - Object clone() throws CloneNotSupportedException; - - /** - * Tests if the URI of this endpoint matches the service URI - * @param serviceName the service URI to test - * @return true if the endpoint URI matches the service URI - */ - boolean matches(String serviceURI); - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/EndpointReference.java b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/EndpointReference.java deleted file mode 100644 index 5c2ad74f54..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/EndpointReference.java +++ /dev/null @@ -1,165 +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 org.apache.tuscany.sca.assembly; - -import java.io.Serializable; - -import org.apache.tuscany.sca.interfacedef.InterfaceContract; -import org.apache.tuscany.sca.policy.PolicySubject; - -/** - * Represents an endpoint reference. An SCA reference can reference service endpoints in a - * number of ways. Target names, autowire, configured bindings. The endpoint reference - * captures the result of specifying one of these things. - * - * @version $Rev$ $Date$ - * @tuscany.spi.extension.asclient - */ -public interface EndpointReference extends Base, PolicySubject, Cloneable, Serializable { - - /** - * Status of the endpoint reference resolution - */ - enum Status { - NOT_CONFIGURED, // Not configured - RESOLVED_BINDING, // The endpoint reference is configured with a binding - AUTOWIRE_PLACEHOLDER, // Autowire to be performed - WIRED_TARGET_NOT_FOUND, // Wire target not found - WIRED_TARGET_FOUND_READY_FOR_MATCHING, // Wire target found and to be resolved to an endpoint - WIRED_TARGET_FOUND_AND_MATCHED, // Wire target found and resolved to an endpoint - WIRED_TARGET_IN_BINDING_URI // Target specified by the binding uri - }; - - /** - * Get the structural URI of the reference binding - * @return The structural URI of the reference/binding - */ - String getURI(); - - /** - * Set the structural URI of the reference binding - * @param uri <componentURI>#reference-binding(referenceName/bindingName) - * or <componentURI>#reference(referenceName) if binding is not present - * - */ - void setURI(String uri); - - /** - * Supports endpoint reference cloning - * - * @return endpointReference - * @throws CloneNotSupportedException - */ - Object clone() throws CloneNotSupportedException; - - /** - * Get the component model object - * - * @return component - */ - Component getComponent(); - - /** - * Set the component model object - * - * @param component the component for the endpoint - */ - void setComponent(Component component); - - /** - * Get the source component reference model object - * - * @return reference the source component reference for the endpoint - */ - ComponentReference getReference(); - - /** - * Set the source component reference model object - * - * @param reference - */ - void setReference(ComponentReference reference); - - /** - * Get the resolved reference binding - * - * @return binding the resolved reference binding - */ - Binding getBinding(); - - /** - * Set the resolved reference binding - * - * @param binding the resolved reference binding - */ - void setBinding(Binding binding); - - /** - * Get the target endpoint - * - * @return endpoint the target endpoint - */ - Endpoint getTargetEndpoint(); - - /** - * Set the target endpoint model object - * - * @param endpoint the target endpoint - */ - void setTargetEndpoint(Endpoint targetEndpoint); - - /** - * Returns the interface contract defining the interface - * - * @return the interface contract - */ - InterfaceContract getComponentReferenceInterfaceContract(); - - /** - * Get the reference callback endpoint that - * represents that target endpoint to which callback - * messages will be directed - * - * @return callbackEndpoint the reference callback endpoint - */ - Endpoint getCallbackEndpoint(); - - /** - * Set the reference callback endpoint - * - * @param callbackEndpoint the reference callback endpoint - */ - void setCallbackEndpoint(Endpoint callbackEndpoint); - - /** - * Rather than relying on combinations of unresolved flags and - * other data we maintain a status enumeration - * - * @return status - */ - Status getStatus(); - - /** - * Rather than relying on combinations of unresolved flags and - * other data we maintain a status enumeration - * - * @param status the new status - */ - void setStatus(Status status); -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/Extensible.java b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/Extensible.java deleted file mode 100644 index da8d054140..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/Extensible.java +++ /dev/null @@ -1,45 +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 org.apache.tuscany.sca.assembly; - -import java.util.List; - -/** - * Base interface for extensible assembly model objects. - * - * @version $Rev$ $Date$ - * @tuscany.spi.extension.inheritfrom - */ -public interface Extensible extends Base { - - /** - * Returns a list of extension objects contained in this model object. - * - * @return a list of extension objects container in this model object - */ - List getExtensions(); - - /** - * Returns a list of attribute extensions contained in this model object - * - * @return a list of attribute extensions contained in this model object - */ - List getAttributeExtensions(); - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/Extension.java b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/Extension.java deleted file mode 100644 index d179ce7b3b..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/Extension.java +++ /dev/null @@ -1,66 +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 org.apache.tuscany.sca.assembly; - -import javax.xml.namespace.QName; - -/** - * Base interface for storing contents of extensible assembly model objects. - * - * @version $Rev$ $Date$ - * @tuscany.spi.extension.asclient - */ -public interface Extension { - - /** - * Return QName for the extension - * @return the extension QName - */ - QName getQName(); - - /** - * Set QName for the extension - * @param qName the extension QName - */ - void setQName(QName qName); - - /** - * Return the original extension value - * @return the extension value - */ - T getValue(); - - /** - * Set the original extension value - * @param value the extension value - */ - void setValue(T value); - - /** - * Return whether or not the extension is an attribute - * @return - */ - boolean isAttribute(); - - /** - * Set whether or not the extension is an attribute - * @param value - */ - void setAttribute(boolean isAttribute); -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/Implementation.java b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/Implementation.java deleted file mode 100644 index 3912896f0c..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/Implementation.java +++ /dev/null @@ -1,36 +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 org.apache.tuscany.sca.assembly; - -import java.util.List; - -import javax.xml.namespace.QName; - -import org.apache.tuscany.sca.interfacedef.Operation; - -/** - * Represents a component implementation. - * - * @version $Rev$ $Date$ - * @tuscany.spi.extension.inheritfrom - */ -public interface Implementation extends ComponentType { - QName getType(); - List getOperations(); -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/Multiplicity.java b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/Multiplicity.java deleted file mode 100644 index 5b719e50bc..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/Multiplicity.java +++ /dev/null @@ -1,50 +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 org.apache.tuscany.sca.assembly; - -/** - * Enumeration for multiplicity. Defines the number of wires that can connect a - * reference to target services. - * - * @version $Rev$ $Date$ - * @tuscany.spi.extension - */ -public enum Multiplicity { - - /** - * Zero or one wire can have the reference as a source. - */ - ZERO_ONE, - - /** - * The default setting, one wire can have the reference as a source. - */ - ONE_ONE, - - /** - * Zero or more wires can have the reference as a source. - */ - ZERO_N, - - /** - * One or more wires can have the reference as a source. - */ - ONE_N - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/OperationSelector.java b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/OperationSelector.java deleted file mode 100644 index 9df72e358d..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/OperationSelector.java +++ /dev/null @@ -1,29 +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 org.apache.tuscany.sca.assembly; - -/** - * Represents an operationSelector - * - * @version $Rev$ $Date$ - * @tuscany.spi.extension.asclient - */ -public interface OperationSelector extends Base, Cloneable { - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/OperationsConfigurator.java b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/OperationsConfigurator.java deleted file mode 100644 index d82d923605..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/OperationsConfigurator.java +++ /dev/null @@ -1,33 +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 org.apache.tuscany.sca.assembly; - -import java.util.List; - -/** - * Interface to be implemented by SCA artifacts that support configuration of 'operation' child - * elements for policies etc. - * @tuscany.spi.extension.inheritfrom - * @version $Rev$ $Date$ - */ - -public interface OperationsConfigurator { - List getConfiguredOperations(); -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/Property.java b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/Property.java deleted file mode 100644 index c65b6213b0..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/Property.java +++ /dev/null @@ -1,40 +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 org.apache.tuscany.sca.assembly; - -/** - * A property allows for the configuration of an implementation with externally - * set data values. An implementation can have zero or more properties. Each - * property has a data type, which may be either simple or complex. An - * implementation may also define a default value for a property. - * - * @version $Rev$ $Date$ - * @tuscany.spi.extension.asclient - */ -public interface Property extends AbstractProperty, Cloneable { - - /** - * Returns a clone of the property. - * - * @return a clone of the property - * @throws CloneNotSupportedException - */ - Object clone() throws CloneNotSupportedException; - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/Reference.java b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/Reference.java deleted file mode 100644 index 2ee3e774e4..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/Reference.java +++ /dev/null @@ -1,71 +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 org.apache.tuscany.sca.assembly; - -import java.util.List; - -/** - * Represents a reference. References within an implementation represent links - * to services that the implementation uses that must be provided by other - * components. - * - * @version $Rev$ $Date$ - * @tuscany.spi.extension.asclient - */ -public interface Reference extends AbstractReference, Contract { - - /** - * Returns a boolean value, "false" by default, which indicates that the - * implementation wires this reference dynamically. - * - * @return true if the implementation wires this reference dynamically - */ - boolean isWiredByImpl(); - - /** - * Sets a boolean value, "false" by default, which indicates that the - * implementation wires this reference dynamically. - * - * @param wiredByImpl whether the implementation wires this reference - * dynamically - */ - void setWiredByImpl(boolean wiredByImpl); - - - /** - * Returns the targets of this reference. - * - * @return the targets of this reference. - */ - List getTargets(); - - /** - * Returns the endpoint references implied by this reference. - * - * Endpoint references are used to represent: - * - * - manually specified reference targets - * - reference targets determined by autowire - * - manually configured remote bindings - * - * @return the endpoint references implied by this reference - */ - List getEndpointReferences(); - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/SCABinding.java b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/SCABinding.java deleted file mode 100644 index aa356e3857..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/SCABinding.java +++ /dev/null @@ -1,30 +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 org.apache.tuscany.sca.assembly; - -import javax.xml.namespace.QName; - -/** - * Represents an SCA binding. - * - * @version $Rev$ $Date$ - */ -public interface SCABinding extends Binding { - QName TYPE = new QName(SCA11_NS, "binding.sca"); -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/SCABindingFactory.java b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/SCABindingFactory.java deleted file mode 100644 index feae980326..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/SCABindingFactory.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 org.apache.tuscany.sca.assembly; - -/** - * A factory for the SCA binding model - * - * @version $Rev$ $Date$ - */ -public interface SCABindingFactory { - - /** - * Create a new SCA binding. - * - * @return a new SCA binding - */ - SCABinding createSCABinding(); - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/Service.java b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/Service.java deleted file mode 100644 index 1f3d412364..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/Service.java +++ /dev/null @@ -1,42 +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 org.apache.tuscany.sca.assembly; - -import java.util.List; - -/** - * Represents a service. Services are used to publish services provided by - * implementations, so that they are addressable by other components. - * - * @version $Rev$ $Date$ - * @tuscany.spi.extension.asclient - */ -public interface Service extends AbstractService, Contract { - /** - * Returns the endpoints implied by this service. - * - * Endpoints represent configured bindings for a service. Hence a service - * with two bindings will expose two Endpoints. Where a promoted service has - * new binding configuration applied by a promoting component Endpoints are - * introduced to represent these new bindings. - * - * @return the endpoints implied by this service - */ - List getEndpoints(); -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/Wire.java b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/Wire.java deleted file mode 100644 index 075b50eec1..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/Wire.java +++ /dev/null @@ -1,85 +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 org.apache.tuscany.sca.assembly; - -import org.apache.tuscany.sca.policy.PolicySubject; - -/** - * Represents a wire. - * - * @version $Rev$ $Date$ - */ -public interface Wire extends Base, Extensible, PolicySubject, Cloneable { - - /** - * Returns the source of the wire. - * - * @return the source of the wire - */ - ComponentReference getSource(); - - /** - * Sets the source of the wire. - * - * @param source the source of the wire - */ - void setSource(ComponentReference source); - - /** - * Returns the target of the wire. - * - * @return the target of the wire - */ - ComponentService getTarget(); - - /** - * Sets the target of the wire. - * - * @param target the target of the wire - */ - void setTarget(ComponentService target); - - /** - * A boolean value, with the default of "false". When a wire element has - * @replace="false", the wire is added to the set of wires which apply to - * the reference identified by the @source attribute. When a wire element - * has @replace="true", the wire is added to the set of wires which apply to - * the reference identified by the @source attribute - but any wires for that - * reference specified by means of the @target attribute of the reference - * are removed from the set of wires which apply to the reference. - * - * @return - */ - boolean isReplace(); - - /** - * Set the replace flag for the wire - * @param replace - */ - void setReplace(boolean replace); - - /** - * Returns a clone of the wire. - * - * @return a clone of the wire - * @throws CloneNotSupportedException - */ - Object clone() throws CloneNotSupportedException; - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/WireFormat.java b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/WireFormat.java deleted file mode 100644 index c622737454..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/WireFormat.java +++ /dev/null @@ -1,31 +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 org.apache.tuscany.sca.assembly; - -import javax.xml.namespace.QName; - -/** - * Represents a wireFormat. - * - * @version $Rev$ $Date$ - * @tuscany.spi.extension.inheritfrom - */ -public interface WireFormat extends Base, Cloneable { - QName getSchemaName(); -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/builder/BindingBuilder.java b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/builder/BindingBuilder.java deleted file mode 100644 index 7be207cdd2..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/builder/BindingBuilder.java +++ /dev/null @@ -1,51 +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 org.apache.tuscany.sca.assembly.builder; - -import javax.xml.namespace.QName; - -import org.apache.tuscany.sca.assembly.Binding; -import org.apache.tuscany.sca.assembly.Component; -import org.apache.tuscany.sca.assembly.Contract; - -/** - * A builder that handles any build-time configuration needed by bindings. - * - * @version $Rev$ $Date$ - * @tuscany.spi.extension.inheritfrom - */ -public interface BindingBuilder { - - /** - * Configure a binding. - * - * @param component The component for the binding's service or reference - * @param contract The binding's service or reference - * @param context The context for the builder - */ - void build(Component component, Contract contract, B binding, BuilderContext context); - - /** - * Get QName of the binding type - * @return The binding type - */ - QName getBindingType(); - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/builder/BuilderContext.java b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/builder/BuilderContext.java deleted file mode 100644 index 374c36c1f5..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/builder/BuilderContext.java +++ /dev/null @@ -1,107 +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 org.apache.tuscany.sca.assembly.builder; - -import java.util.Collections; -import java.util.List; -import java.util.Map; - -import javax.xml.namespace.QName; - -import org.apache.tuscany.sca.core.ExtensionPointRegistry; -import org.apache.tuscany.sca.core.UtilityExtensionPoint; -import org.apache.tuscany.sca.definitions.Definitions; -import org.apache.tuscany.sca.monitor.DefaultMonitorFactory; -import org.apache.tuscany.sca.monitor.Monitor; -import org.apache.tuscany.sca.monitor.MonitorFactory; - -/** - * Context for builders - * @tuscany.spi.extension.asclient - */ -public class BuilderContext { - protected Definitions definitions; - protected Map> bindingBaseURIs = Collections.emptyMap(); - protected Monitor monitor; - - /** - * @param definitions - * @param bindingBaseURIs - * @param monitor - */ - public BuilderContext(Definitions definitions, Map> bindingBaseURIs, Monitor monitor) { - super(); - this.definitions = definitions; - if (bindingBaseURIs != null) { - this.bindingBaseURIs = bindingBaseURIs; - } - this.monitor = monitor; - } - - /** - * Create a builder context with the monitor - * @param monitor - */ - public BuilderContext(Monitor monitor) { - super(); - this.monitor = monitor; - } - - /** - * Create a builder context with the extension point registry - * @param registry - */ - public BuilderContext(ExtensionPointRegistry registry) { - super(); - MonitorFactory monitorFactory = - registry.getExtensionPoint(UtilityExtensionPoint.class).getUtility(MonitorFactory.class); - this.monitor = monitorFactory.createMonitor(); - } - - /** - * Create a builder context with a default monitor - */ - public BuilderContext() { - super(); - this.monitor = new DefaultMonitorFactory().createMonitor(); - } - - public Monitor getMonitor() { - return monitor; - } - - public Monitor setMonitor(Monitor monitor) { - Monitor old = this.monitor; - this.monitor = monitor; - return old; - } - - public Definitions getDefinitions() { - return definitions; - } - - public Map> getBindingBaseURIs() { - return bindingBaseURIs; - } - - public void setDefinitions(Definitions definitions) { - this.definitions = definitions; - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/builder/BuilderExtensionPoint.java b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/builder/BuilderExtensionPoint.java deleted file mode 100644 index d432bf3f29..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/builder/BuilderExtensionPoint.java +++ /dev/null @@ -1,127 +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 org.apache.tuscany.sca.assembly.builder; - -import java.util.Collection; - -import javax.xml.namespace.QName; - -import org.apache.tuscany.sca.assembly.Binding; -import org.apache.tuscany.sca.assembly.Implementation; - -/** - * An extension point for Composite builders. - * - * @version $Rev$ $Date$ - * @tuscany.spi.extension.asclient - */ -public interface BuilderExtensionPoint { - - /** - * Adds a composite builder. - * - * @param compositeBuilder - */ - void addCompositeBuilder(CompositeBuilder compositeBuilder); - - /** - * Removes a composite builder. - * - * @param compositeBuilder - */ - void removeCompositeBuilder(CompositeBuilder compositeBuilder); - - /** - * Returns the composite builder with the given id. - * - * @param id - * @return - */ - CompositeBuilder getCompositeBuilder(String id); - - /** - * Add a binding builder - * @param bindingBuilder - */ - void addBindingBuilder(BindingBuilder bindingBuilder); - - /** - * Look up a binding builder by the binding type - * @param - * @param bindingType - * @return - */ - BindingBuilder getBindingBuilder(QName bindingType); - - /** - * Remove a binding builder - * @param - * @param builder - */ - void removeBindingBuilder(BindingBuilder builder); - - /** - * Add an implementation builder - * @param implementationBuilder - */ - void addImplementationBuilder(ImplementationBuilder implementationBuilder); - - /** - * Look up an implementation builder by implementation type - * @param - * @param implementationType - * @return - */ - ImplementationBuilder getImplementationBuilder(QName implementationType); - - /** - * Remove an implementation builder - * @param - * @param builder - */ - void removeImplementationBuilder(ImplementationBuilder builder); - - /** - * Add a policy builder - * @param policyBuilder - */ - void addPolicyBuilder(PolicyBuilder policyBuilder); - - /** - * Look up a Policy builder by the Policy type - * @param

- * @param policyType - * @return - */ -

PolicyBuilder

getPolicyBuilder(QName policyType); - - /** - * Remove a Policy builder - * @param

- * @param builder - */ -

void removePolicyBuilder(PolicyBuilder

builder); - - /** - * Get a collection of policy builders - * @return - */ - public Collection getPolicyBuilders(); -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/builder/CompositeBuilder.java b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/builder/CompositeBuilder.java deleted file mode 100644 index 50bf10f54a..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/builder/CompositeBuilder.java +++ /dev/null @@ -1,51 +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 org.apache.tuscany.sca.assembly.builder; - -import org.apache.tuscany.sca.assembly.Composite; - -/** - * A builder that handles the configuration of the components inside a - * composite and the wiring of component references to component services. - * - * @version $Rev$ $Date$ - */ -public interface CompositeBuilder { - - /** - * Returns the ID of the builder. - * - * @return An ID that identifies the builder - */ - String getID(); - - /** - * Build a composite. - * - * @param composite The composite - * @param context The builder context - * @return The composite built from the original one. In most cases, it is the same as the orginal one as - * most builders only change the content of the composite. - * - * @throws CompositeBuilderException - */ - Composite build(Composite composite, BuilderContext context) throws CompositeBuilderException; - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/builder/CompositeBuilderException.java b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/builder/CompositeBuilderException.java deleted file mode 100644 index 5a2015f55e..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/builder/CompositeBuilderException.java +++ /dev/null @@ -1,45 +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 org.apache.tuscany.sca.assembly.builder; - -/** - * Reports a composite builder exception. - * - * @version $Rev$ $Date$ - */ -public class CompositeBuilderException extends Exception { - private static final long serialVersionUID = -8916323176803443856L; - - public CompositeBuilderException() { - } - - public CompositeBuilderException(String message) { - super(message); - } - - public CompositeBuilderException(Throwable cause) { - super(cause); - } - - public CompositeBuilderException(String message, Throwable cause) { - super(message, cause); - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/builder/DefaultBuilderExtensionPoint.java b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/builder/DefaultBuilderExtensionPoint.java deleted file mode 100644 index 6dba234f0f..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/builder/DefaultBuilderExtensionPoint.java +++ /dev/null @@ -1,408 +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 org.apache.tuscany.sca.assembly.builder; - -import java.lang.reflect.Constructor; -import java.util.Collection; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -import javax.xml.namespace.QName; - -import org.apache.tuscany.sca.assembly.Binding; -import org.apache.tuscany.sca.assembly.Component; -import org.apache.tuscany.sca.assembly.Composite; -import org.apache.tuscany.sca.assembly.Contract; -import org.apache.tuscany.sca.assembly.Endpoint; -import org.apache.tuscany.sca.assembly.EndpointReference; -import org.apache.tuscany.sca.assembly.Implementation; -import org.apache.tuscany.sca.core.ExtensionPointRegistry; -import org.apache.tuscany.sca.core.FactoryExtensionPoint; -import org.apache.tuscany.sca.core.LifeCycleListener; -import org.apache.tuscany.sca.core.UtilityExtensionPoint; -import org.apache.tuscany.sca.extensibility.ServiceDeclaration; -import org.apache.tuscany.sca.extensibility.ServiceDeclarationParser; -import org.apache.tuscany.sca.extensibility.ServiceDiscovery; -import org.apache.tuscany.sca.interfacedef.InterfaceContractMapper; - -/** - * Default implementation of a provider factory extension point. - * - * @version $Rev$ $Date$ - */ -public class DefaultBuilderExtensionPoint implements BuilderExtensionPoint, LifeCycleListener { - - private ExtensionPointRegistry registry; - private final Map builders = new HashMap(); - private final Map bindingBuilders = new HashMap(); - private final Map implementationBuilders = - new HashMap(); - private final Map policyBuilders = new HashMap(); - - private boolean loaded; - - public DefaultBuilderExtensionPoint(ExtensionPointRegistry registry) { - this.registry = registry; - } - - public void start() { - } - - public void stop() { - builders.clear(); - bindingBuilders.clear(); - implementationBuilders.clear(); - loaded = false; - } - - public void addCompositeBuilder(CompositeBuilder builder) { - builders.put(builder.getID(), builder); - } - - public void removeCompositeBuilder(CompositeBuilder builder) { - builders.remove(builder.getID()); - } - - public CompositeBuilder getCompositeBuilder(String id) { - loadBuilders(); - return builders.get(id); - } - - /** - * Load builders declared under META-INF/services. - */ - private synchronized void loadBuilders() { - if (loaded) - return; - - FactoryExtensionPoint factories = registry.getExtensionPoint(FactoryExtensionPoint.class); - - UtilityExtensionPoint utils = registry.getExtensionPoint(UtilityExtensionPoint.class); - InterfaceContractMapper mapper = utils.getUtility(InterfaceContractMapper.class); - - // Get the provider factory service declarations - Collection builderDeclarations; - ServiceDiscovery serviceDiscovery = registry.getServiceDiscovery(); - try { - builderDeclarations = serviceDiscovery.getServiceDeclarations(CompositeBuilder.class.getName()); - } catch (Exception e) { - throw new IllegalStateException(e); - } - - for (ServiceDeclaration builderDeclaration : builderDeclarations) { - Map attributes = builderDeclaration.getAttributes(); - String id = attributes.get("id"); - - CompositeBuilder builder = new LazyCompositeBuilder(id, builderDeclaration, this, factories, mapper); - builders.put(id, builder); - } - - try { - builderDeclarations = serviceDiscovery.getServiceDeclarations(BindingBuilder.class); - } catch (Exception e) { - throw new IllegalStateException(e); - } - - for (ServiceDeclaration builderDeclaration : builderDeclarations) { - BindingBuilder builder = new LazyBindingBuilder(builderDeclaration); - bindingBuilders.put(builder.getBindingType(), builder); - } - - try { - builderDeclarations = serviceDiscovery.getServiceDeclarations(ImplementationBuilder.class); - } catch (Exception e) { - throw new IllegalStateException(e); - } - - for (ServiceDeclaration builderDeclaration : builderDeclarations) { - ImplementationBuilder builder = new LazyImplementationBuilder(builderDeclaration); - implementationBuilders.put(builder.getImplementationType(), builder); - } - - try { - builderDeclarations = serviceDiscovery.getServiceDeclarations(PolicyBuilder.class); - } catch (Exception e) { - throw new IllegalStateException(e); - } - - for (ServiceDeclaration builderDeclaration : builderDeclarations) { - PolicyBuilder builder = new LazyPolicyBuilder(builderDeclaration); - policyBuilders.put(builder.getPolicyType(), builder); - } - - - loaded = true; - - } - - public void addBindingBuilder(BindingBuilder bindingBuilder) { - bindingBuilders.put(bindingBuilder.getBindingType(), bindingBuilder); - } - - public BindingBuilder getBindingBuilder(QName bindingType) { - loadBuilders(); - return (BindingBuilder)bindingBuilders.get(bindingType); - } - - public void removeBindingBuilder(BindingBuilder builder) { - bindingBuilders.remove(builder.getBindingType()); - } - - public void addImplementationBuilder(ImplementationBuilder implementationBuilder) { - implementationBuilders.put(implementationBuilder.getImplementationType(), implementationBuilder); - } - - public ImplementationBuilder getImplementationBuilder(QName implementationType) { - loadBuilders(); - return (ImplementationBuilder)implementationBuilders.get(implementationType); - } - - public void removeImplementationBuilder(ImplementationBuilder builder) { - implementationBuilders.remove(builder.getImplementationType()); - } - - public void addPolicyBuilder(PolicyBuilder policyBuilder) { - policyBuilders.put(policyBuilder.getPolicyType(), policyBuilder); - } - - public PolicyBuilder getPolicyBuilder(QName policyType) { - loadBuilders(); - return (PolicyBuilder)policyBuilders.get(policyType); - } - - public Collection getPolicyBuilders() { - loadBuilders(); - return policyBuilders.values(); - } - - public void removePolicyBuilder(PolicyBuilder builder) { - policyBuilders.remove(builder.getPolicyType()); - } - - /** - * A wrapper around a composite builder allowing lazy - * loading and initialization of implementation providers. - */ - private class LazyCompositeBuilder implements CompositeBuilder { - - private FactoryExtensionPoint factories; - private InterfaceContractMapper mapper; - private String id; - private ServiceDeclaration builderDeclaration; - private CompositeBuilder builder; - private BuilderExtensionPoint builders; - - private LazyCompositeBuilder(String id, - ServiceDeclaration factoryDeclaration, - BuilderExtensionPoint builders, - FactoryExtensionPoint factories, - InterfaceContractMapper mapper) { - this.id = id; - this.builderDeclaration = factoryDeclaration; - this.builders = builders; - this.factories = factories; - this.mapper = mapper; - } - - public String getID() { - return id; - } - - public Composite build(Composite composite, BuilderContext context) - throws CompositeBuilderException { - return getBuilder().build(composite, context); - } - - private CompositeBuilder getBuilder() { - if (builder == null) { - try { - Class builderClass = (Class)builderDeclaration.loadClass(); - try { - Constructor constructor = - builderClass.getConstructor(FactoryExtensionPoint.class, InterfaceContractMapper.class); - builder = constructor.newInstance(factories, mapper); - } catch (NoSuchMethodException e) { - try { - Constructor constructor = - builderClass.getConstructor(BuilderExtensionPoint.class, - FactoryExtensionPoint.class, - InterfaceContractMapper.class); - builder = constructor.newInstance(builders, factories, mapper); - } catch (NoSuchMethodException ex) { - Constructor constructor = - builderClass.getConstructor(ExtensionPointRegistry.class); - builder = constructor.newInstance(registry); - } - } - } catch (Exception e) { - throw new IllegalStateException(e); - } - } - return builder; - } - - } - - private class LazyBindingBuilder implements BindingBuilder { - private ServiceDeclaration sd; - private BindingBuilder builder; - private QName qname;; - - /** - * @param sd - */ - public LazyBindingBuilder(ServiceDeclaration sd) { - super(); - this.sd = sd; - this.qname = ServiceDeclarationParser.getQName(sd.getAttributes().get("qname")); - } - - public void build(Component component, Contract contract, Binding binding, BuilderContext context) { - getBuilder().build(component, contract, binding, context); - } - - public QName getBindingType() { - return qname; - } - - - private synchronized BindingBuilder getBuilder() { - if (builder == null) { - try { - Class builderClass = sd.loadClass(); - try { - Constructor constructor = builderClass.getConstructor(ExtensionPointRegistry.class); - builder = (BindingBuilder)constructor.newInstance(registry); - } catch (NoSuchMethodException e) { - Constructor constructor = builderClass.getConstructor(); - builder = (BindingBuilder)constructor.newInstance(); - - } - } catch (Exception e) { - throw new IllegalStateException(e); - } - } - return builder; - } - - } - - private class LazyImplementationBuilder implements ImplementationBuilder { - private ServiceDeclaration sd; - private ImplementationBuilder builder; - private QName qname;; - - /** - * @param sd - */ - public LazyImplementationBuilder(ServiceDeclaration sd) { - super(); - this.sd = sd; - this.qname = ServiceDeclarationParser.getQName(sd.getAttributes().get("qname")); - } - - public void build(Component component, Implementation implementation, BuilderContext context) { - getBuilder().build(component, implementation, context); - } - - public QName getImplementationType() { - return qname; - } - - private synchronized ImplementationBuilder getBuilder() { - if (builder == null) { - try { - Class builderClass = sd.loadClass(); - try { - Constructor constructor = builderClass.getConstructor(ExtensionPointRegistry.class); - builder = (ImplementationBuilder)constructor.newInstance(registry); - } catch (NoSuchMethodException e) { - Constructor constructor = builderClass.getConstructor(); - builder = (ImplementationBuilder)constructor.newInstance(); - - } - } catch (Exception e) { - throw new IllegalStateException(e); - } - } - return builder; - } - - } - - private class LazyPolicyBuilder implements PolicyBuilder { - private ServiceDeclaration sd; - private PolicyBuilder builder; - private QName qname;; - - /** - * @param sd - */ - public LazyPolicyBuilder(ServiceDeclaration sd) { - super(); - this.sd = sd; - this.qname = ServiceDeclarationParser.getQName(sd.getAttributes().get("qname")); - } - - public boolean build(Component component, Implementation implementation, BuilderContext context) { - return getBuilder().build(component, implementation, context); - } - - public QName getPolicyType() { - return qname; - } - - public List getSupportedBindings() { - return getBuilder().getSupportedBindings(); - } - - private synchronized PolicyBuilder getBuilder() { - if (builder == null) { - try { - Class builderClass = sd.loadClass(); - try { - Constructor constructor = builderClass.getConstructor(ExtensionPointRegistry.class); - builder = (PolicyBuilder)constructor.newInstance(registry); - } catch (NoSuchMethodException e) { - Constructor constructor = builderClass.getConstructor(); - builder = (PolicyBuilder)constructor.newInstance(); - - } - } catch (Exception e) { - throw new IllegalStateException(e); - } - } - return builder; - } - - public boolean build(Endpoint endpoint, BuilderContext context) { - return getBuilder().build(endpoint, context); - } - - public boolean build(org.apache.tuscany.sca.assembly.EndpointReference endpointReference, BuilderContext context) { - return getBuilder().build(endpointReference, context); - } - - public boolean build(EndpointReference endpointReference, Endpoint endpoint, BuilderContext context) { - return getBuilder().build(endpointReference, endpoint, context); - } - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/builder/ImplementationBuilder.java b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/builder/ImplementationBuilder.java deleted file mode 100644 index d47c3d9032..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/builder/ImplementationBuilder.java +++ /dev/null @@ -1,50 +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 org.apache.tuscany.sca.assembly.builder; - -import javax.xml.namespace.QName; - -import org.apache.tuscany.sca.assembly.Component; -import org.apache.tuscany.sca.assembly.Implementation; - -/** - * A builder that handles any build-time configuration needed by implementations. - * - * @version $Rev$ $Date$ - * @tuscany.spi.extension.inheritfrom - */ -public interface ImplementationBuilder { - - /** - * Configure a component implementation. - * - * @param component The component - * @param context TODO - * @param contract The implementation - */ - void build(Component component, I implmentation, BuilderContext context); - - /** - * Get the QName of the implementation type - * @return - */ - QName getImplementationType(); - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/builder/Messages.java b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/builder/Messages.java deleted file mode 100644 index 4f2842c61a..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/builder/Messages.java +++ /dev/null @@ -1,31 +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 org.apache.tuscany.sca.assembly.builder; - -/** - * Constants for resource bundle names - */ -public interface Messages { - String RESOURCE_PACKAGE = "org.apache.tuscany.sca.assembly.builder."; - String ASSEMBLY_VALIDATION = RESOURCE_PACKAGE + "assembly-validation-messages"; - String ASSEMBLY_CONFORMANCE = RESOURCE_PACKAGE + "assembly-conformance-messages"; - String DEFINITIONS_VALIDATION = RESOURCE_PACKAGE + "definitions-validation-messages"; - String BUILDER_VALIDATION_BUNDLE = "org.apache.tuscany.sca.builder.builder-validation-messages"; -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/builder/PolicyBuilder.java b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/builder/PolicyBuilder.java deleted file mode 100644 index 423c856973..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/builder/PolicyBuilder.java +++ /dev/null @@ -1,84 +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 org.apache.tuscany.sca.assembly.builder; - -import java.util.List; - -import javax.xml.namespace.QName; - -import org.apache.tuscany.sca.assembly.Component; -import org.apache.tuscany.sca.assembly.Endpoint; -import org.apache.tuscany.sca.assembly.EndpointReference; -import org.apache.tuscany.sca.assembly.Implementation; - -/** - * A builder that is contributed by a specific policy language to validate the configurations - * for SCA endpoints, endpoint references and component implementations - * @tuscany.spi.extension.inheritfrom - */ -public interface PolicyBuilder { - /** - * Get the policy type - * @return - */ - QName getPolicyType(); - - /** - * Return the list of binding type QNames at which this policy implementation - * is targeted. Or null if the policy is not binding specific - * @return list of binding type QNames at which this policy implementation or null if it's not binding specific - */ - List getSupportedBindings(); - - /** - * Build (and validate) the policy settings on the endpoint - * @param endpoint - * @param monitor - * @return true if the policy setting is compatible - */ - boolean build(Endpoint endpoint, BuilderContext context); - - /** - * Build (and validate) the policy settings on the endpoint reference - * @param endpointReference - * @param monitor - * @return true if the policy setting is compatible - */ - boolean build(EndpointReference endpointReference, BuilderContext context); - - /** - * Build (and validate) the policy settings on the component implementation - * @param component - * @param implementation - * @param monitor - * @return true if the policy setting is compatible - */ - boolean build(Component component, Implementation implementation, BuilderContext context); - - /** - * Build (and validate) the policy settings on the endpoint reference is compatible with the endpoint - * @param endpointReference - * @param endpoint - * @param context - * @return if the policy setting is compatible - */ - boolean build(EndpointReference endpointReference, Endpoint endpoint, BuilderContext context); - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/builder/WireBuilder.java b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/builder/WireBuilder.java deleted file mode 100644 index 2bfbe85664..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/builder/WireBuilder.java +++ /dev/null @@ -1,39 +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 org.apache.tuscany.sca.assembly.builder; - -import org.apache.tuscany.sca.assembly.Endpoint; -import org.apache.tuscany.sca.assembly.EndpointReference; - -/** - * A builder that connects an endpoint reference to an endpoint - */ -public interface WireBuilder { - /** - * Build the endpoint reference against the endpoint. If the endpoint is a valid target for the - * endpoint reference, the wire buidler can populate some information from the endpoint into the - * endpoint reference (such as targetEndpoint, policySets or requiredIntents) - * @param endpointReference - * @param endpoint - * @param context - * @return true if the endpoint is a valid target for the endpoint reference - */ - boolean build(EndpointReference endpointReference, Endpoint endpoint, BuilderContext context); -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/AbstractPropertyImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/AbstractPropertyImpl.java deleted file mode 100644 index 24dc20f815..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/AbstractPropertyImpl.java +++ /dev/null @@ -1,112 +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 org.apache.tuscany.sca.assembly.impl; - -import javax.xml.namespace.QName; - -import org.apache.tuscany.sca.assembly.AbstractProperty; -import org.apache.tuscany.sca.interfacedef.DataType; - -/** - * Represents an abstract property. - * - * @version $Rev$ $Date$ - */ -public class AbstractPropertyImpl extends ExtensibleImpl implements AbstractProperty { - protected Object value; - protected String name; - protected QName xsdType; - protected QName xsdElement; - protected boolean many; - protected boolean mustSupply; - protected DataType dataType; - protected Object xsdDefinition; - - /** - * Constructs a new abstract property. - */ - protected AbstractPropertyImpl() { - } - - public Object getValue() { - return value; - } - - public String getName() { - return name; - } - - public QName getXSDElement() { - return xsdElement; - } - - public QName getXSDType() { - return xsdType; - } - - public boolean isMany() { - return many; - } - - public boolean isMustSupply() { - return mustSupply; - } - - public void setValue(Object defaultValue) { - this.value = defaultValue; - } - - public void setMany(boolean many) { - this.many = many; - } - - public void setMustSupply(boolean mustSupply) { - this.mustSupply = mustSupply; - } - - public void setName(String name) { - this.name = name; - } - - public void setXSDElement(QName element) { - this.xsdElement = element; - } - - public void setXSDType(QName type) { - this.xsdType = type; - } - - public DataType getDataType() { - return dataType; - } - - public void setDataType(DataType dataType) { - this.dataType = dataType; - } - - public Object getXSDDefinition() { - return xsdDefinition; - } - - public void setXSDDefinition(Object xsdDefinition) { - this.xsdDefinition = xsdDefinition; - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/AbstractReferenceImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/AbstractReferenceImpl.java deleted file mode 100644 index 3e44f5f7ae..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/AbstractReferenceImpl.java +++ /dev/null @@ -1,46 +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 org.apache.tuscany.sca.assembly.impl; - -import org.apache.tuscany.sca.assembly.AbstractReference; -import org.apache.tuscany.sca.assembly.Multiplicity; - -/** - * Represents an abstract reference - * - * @version $Rev$ $Date$ - */ -public class AbstractReferenceImpl extends ContractImpl implements AbstractReference { - private Multiplicity multiplicity = Multiplicity.ONE_ONE; - - /** - * Constructs a new abstract reference. - */ - protected AbstractReferenceImpl() { - } - - public Multiplicity getMultiplicity() { - return multiplicity; - } - - public void setMultiplicity(Multiplicity multiplicity) { - this.multiplicity = multiplicity; - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/AbstractServiceImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/AbstractServiceImpl.java deleted file mode 100644 index 24b1a0e03e..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/AbstractServiceImpl.java +++ /dev/null @@ -1,36 +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 org.apache.tuscany.sca.assembly.impl; - -import org.apache.tuscany.sca.assembly.AbstractService; - -/** - * Represents an abstract service - * - * @version $Rev$ $Date$ - */ -public class AbstractServiceImpl extends ContractImpl implements AbstractService { - - /** - * Constructs a new abstract service. - */ - protected AbstractServiceImpl() { - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/AssemblyFactoryImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/AssemblyFactoryImpl.java deleted file mode 100644 index 0759ff1361..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/AssemblyFactoryImpl.java +++ /dev/null @@ -1,138 +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 org.apache.tuscany.sca.assembly.impl; - -import org.apache.tuscany.sca.assembly.AbstractProperty; -import org.apache.tuscany.sca.assembly.AbstractReference; -import org.apache.tuscany.sca.assembly.AbstractService; -import org.apache.tuscany.sca.assembly.AssemblyFactory; -import org.apache.tuscany.sca.assembly.Callback; -import org.apache.tuscany.sca.assembly.Component; -import org.apache.tuscany.sca.assembly.ComponentProperty; -import org.apache.tuscany.sca.assembly.ComponentReference; -import org.apache.tuscany.sca.assembly.ComponentService; -import org.apache.tuscany.sca.assembly.ComponentType; -import org.apache.tuscany.sca.assembly.Composite; -import org.apache.tuscany.sca.assembly.CompositeReference; -import org.apache.tuscany.sca.assembly.CompositeService; -import org.apache.tuscany.sca.assembly.ConfiguredOperation; -import org.apache.tuscany.sca.assembly.Endpoint; -import org.apache.tuscany.sca.assembly.EndpointReference; -import org.apache.tuscany.sca.assembly.Extension; -import org.apache.tuscany.sca.assembly.Property; -import org.apache.tuscany.sca.assembly.Reference; -import org.apache.tuscany.sca.assembly.Service; -import org.apache.tuscany.sca.assembly.Wire; -import org.apache.tuscany.sca.core.ExtensionPointRegistry; - -/** - * A factory for the assembly model. - * - * @version $Rev$ $Date$ - */ -public abstract class AssemblyFactoryImpl implements AssemblyFactory { - - protected ExtensionPointRegistry registry; - - protected AssemblyFactoryImpl(ExtensionPointRegistry registry) { - super(); - this.registry = registry; - } - - public AbstractProperty createAbstractProperty() { - return new AbstractPropertyImpl(); - } - - public AbstractReference createAbstractReference() { - return new AbstractReferenceImpl(); - } - - public AbstractService createAbstractService() { - return new AbstractServiceImpl(); - } - - public Callback createCallback() { - return new CallbackImpl(); - } - - public Component createComponent() { - return new ComponentImpl(); - } - - public ComponentProperty createComponentProperty() { - return new ComponentPropertyImpl(); - } - - public ComponentReference createComponentReference() { - return new ComponentReferenceImpl(); - } - - public ComponentService createComponentService() { - return new ComponentServiceImpl(); - } - - public ComponentType createComponentType() { - return new ComponentTypeImpl(); - } - - public Composite createComposite() { - return new CompositeImpl(); - } - - public CompositeReference createCompositeReference() { - return new CompositeReferenceImpl(); - } - - public CompositeService createCompositeService() { - return new CompositeServiceImpl(); - } - - public Property createProperty() { - return new PropertyImpl(); - } - - public Reference createReference() { - return new ReferenceImpl(); - } - - public Service createService() { - return new ServiceImpl(); - } - - public Wire createWire() { - return new WireImpl(); - } - - public Extension createExtension() { - return new ExtensionImpl(); - } - - public Endpoint createEndpoint() { - return new EndpointImpl(registry); - } - - public EndpointReference createEndpointReference() { - return new EndpointReferenceImpl(registry); - } - - public ConfiguredOperation createConfiguredOperation() { - return new ConfiguredOperationImpl(); - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/BaseImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/BaseImpl.java deleted file mode 100644 index 516b11724f..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/BaseImpl.java +++ /dev/null @@ -1,45 +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 org.apache.tuscany.sca.assembly.impl; - -import org.apache.tuscany.sca.assembly.Base; - -/** - * Convenience base class for assembly model objects. - * - * @version $Rev$ $Date$ - */ -public abstract class BaseImpl implements Base { - private boolean unresolved; - - /** - * Constructs a new base model object. - */ - protected BaseImpl() { - } - - public boolean isUnresolved() { - return unresolved; - } - - public void setUnresolved(boolean undefined) { - this.unresolved = undefined; - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/BindingImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/BindingImpl.java deleted file mode 100644 index d912606f1d..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/BindingImpl.java +++ /dev/null @@ -1,122 +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 org.apache.tuscany.sca.assembly.impl; - -import java.util.ArrayList; -import java.util.List; - -import javax.xml.namespace.QName; - -import org.apache.tuscany.sca.assembly.Binding; -import org.apache.tuscany.sca.assembly.OperationSelector; -import org.apache.tuscany.sca.assembly.WireFormat; -import org.apache.tuscany.sca.policy.ExtensionType; -import org.apache.tuscany.sca.policy.Intent; -import org.apache.tuscany.sca.policy.PolicySet; - -/** - * Base Binding implementation class - */ -public abstract class BindingImpl extends ExtensibleImpl implements Binding { - private String name; - private ExtensionType extensionType; - private String uri; - private List requiredIntents = new ArrayList(); - private List policySets = new ArrayList(); - - protected QName type; - - protected BindingImpl(QName type) { - super(); - this.type = type; - } - - public QName getType() { - return type; - } - - public List getRequiredIntents() { - return requiredIntents; - } - - public List getPolicySets() { - return policySets; - } - - @Override - public Object clone() throws CloneNotSupportedException { - return super.clone(); - } - - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public ExtensionType getExtensionType() { - return extensionType; - } - - public void setExtensionType(ExtensionType type) { - this.extensionType = type; - } - - public String getURI() { - return uri; - } - - public void setURI(String uri) { - this.uri = uri; - } - - public OperationSelector getOperationSelector() { - return null; - } - - public WireFormat getRequestWireFormat() { - return null; - } - - public WireFormat getResponseWireFormat() { - return null; - } - - public void setOperationSelector(OperationSelector operationSelector) { - } - - public void setRequestWireFormat(WireFormat wireFormat) { - } - - public void setResponseWireFormat(WireFormat wireFormat) { - } - - public String toString() { - StringBuffer buf = new StringBuffer(); - buf.append(getType()).append(" ("); - buf.append("uri=").append(getURI()); - buf.append(",name=").append(getName()); - buf.append(")"); - return buf.toString(); - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/CallbackImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/CallbackImpl.java deleted file mode 100644 index dcd6c7b08a..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/CallbackImpl.java +++ /dev/null @@ -1,67 +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 org.apache.tuscany.sca.assembly.impl; - -import java.util.ArrayList; -import java.util.List; - -import org.apache.tuscany.sca.assembly.Binding; -import org.apache.tuscany.sca.assembly.Callback; -import org.apache.tuscany.sca.policy.ExtensionType; -import org.apache.tuscany.sca.policy.Intent; -import org.apache.tuscany.sca.policy.PolicySet; - -/** - * Represents a reference. - * - * @version $Rev$ $Date$ - */ -public class CallbackImpl extends ExtensibleImpl implements Callback { - private List bindings = new ArrayList(); - private List requiredIntents = new ArrayList(); - private List policySets = new ArrayList(); - - public List getPolicySets() { - return policySets; - } - - public List getRequiredIntents() { - return requiredIntents; - } - - protected CallbackImpl() { - } - - public List getBindings() { - return bindings; - } - - public ExtensionType getExtensionType() { - return null; - } - - public void setExtensionType(ExtensionType type) { - } - - public void setRequiredIntents(List intents) { - this.requiredIntents = intents; - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/ComponentImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/ComponentImpl.java deleted file mode 100644 index 8a03df339c..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/ComponentImpl.java +++ /dev/null @@ -1,186 +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 org.apache.tuscany.sca.assembly.impl; - -import java.util.ArrayList; -import java.util.List; - -import org.apache.tuscany.sca.assembly.Component; -import org.apache.tuscany.sca.assembly.ComponentProperty; -import org.apache.tuscany.sca.assembly.ComponentReference; -import org.apache.tuscany.sca.assembly.ComponentService; -import org.apache.tuscany.sca.assembly.Composite; -import org.apache.tuscany.sca.assembly.Implementation; -import org.apache.tuscany.sca.policy.ExtensionType; -import org.apache.tuscany.sca.policy.Intent; -import org.apache.tuscany.sca.policy.PolicySet; - -/** - * Represents a component. - * - * @version $Rev$ $Date$ - */ -public class ComponentImpl extends ExtensibleImpl implements Component, Cloneable { - private Implementation implementation; - private String name; - private String uri; - private List properties = new ArrayList(); - private List references = new ArrayList(); - private List services = new ArrayList(); - private List requiredIntents = new ArrayList(); - private List policySets = new ArrayList(); - private Boolean autowire; - private ExtensionType type; - - /** - * Constructs a new component. - */ - protected ComponentImpl() { - } - - @Override - public Object clone() throws CloneNotSupportedException { - ComponentImpl clone = (ComponentImpl)super.clone(); - - clone.properties = new ArrayList(); - for (ComponentProperty property : getProperties()) { - clone.properties.add((ComponentProperty)property.clone()); - } - clone.references = new ArrayList(); - for (ComponentReference reference : getReferences()) { - clone.references.add((ComponentReference)reference.clone()); - } - clone.services = new ArrayList(); - for (ComponentService service : getServices()) { - clone.services.add((ComponentService)service.clone()); - } - - // Clone the implementation.composite - if(implementation instanceof Composite) { - clone.implementation = (Composite) ((Composite) implementation).clone(); - } - - // Clone the Lists for intents and policySets - clone.requiredIntents = new ArrayList(getRequiredIntents()); - clone.policySets = new ArrayList(getPolicySets()); - - return clone; - } - - public String getURI() { - return uri; - } - - public void setURI(String uri) { - this.uri = uri; - } - - public Implementation getImplementation() { - return implementation; - } - - public String getName() { - return name; - } - - public List getProperties() { - return properties; - } - - public ComponentProperty getProperty(String name) { - for (ComponentProperty property : getProperties()) { - if (property.getName().equals(name)) { - return property; - } - } - return null; - } - - public List getReferences() { - return references; - } - - public ComponentReference getReference(String name){ - for (ComponentReference ref : getReferences()){ - if (ref.getName().equals(name)){ - return ref; - } - } - return null; - } - - public List getServices() { - return services; - } - - public ComponentService getService(String name) { - for (ComponentService service : getServices()) { - if (service.getName().equals(name)) { - return service; - } - } - return null; - } - - public void setImplementation(Implementation implementation) { - this.implementation = implementation; - } - - public void setName(String name) { - this.name = name; - } - - public List getRequiredIntents() { - return requiredIntents; - } - - public List getPolicySets() { - return policySets; - } - - public boolean isAutowire() { - return (autowire == null) ? false : autowire.booleanValue(); - } - - public void setAutowire(Boolean autowire) { - this.autowire = autowire; - } - - public Boolean getAutowire() { - return autowire; - } - - public ExtensionType getExtensionType() { - return type; - } - - public void setExtensionType(ExtensionType type) { - this.type = type; - } - - public String toString() { - StringBuffer buf = new StringBuffer("Component ("); - buf.append("uri=").append(uri); - buf.append(",name=").append(name); - buf.append(",implementation=").append(implementation); - buf.append(")"); - return buf.toString(); - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/ComponentPropertyImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/ComponentPropertyImpl.java deleted file mode 100644 index 9db522930f..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/ComponentPropertyImpl.java +++ /dev/null @@ -1,97 +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 org.apache.tuscany.sca.assembly.impl; - -import javax.xml.xpath.XPathExpression; - -import org.apache.tuscany.sca.assembly.ComponentProperty; -import org.apache.tuscany.sca.assembly.Property; - -/** - * Represents a component property. - * - * @version $Rev$ $Date$ - */ -public class ComponentPropertyImpl extends PropertyImpl implements ComponentProperty, Cloneable { - private String file; - private Property property; - private String source; - private XPathExpression sourceXPathExpression; - - /** - * Constructs a new component property. - */ - protected ComponentPropertyImpl() { - } - - @Override - public Object clone() throws CloneNotSupportedException { - return super.clone(); - } - - // FIXME getValue should not delegate to property.getValue() - // Doing this violates the setValue/getValue semantics, as you - // can call setValue() then get a different value from getValue() - @Override - public Object getValue() { - if (super.getValue() == null && property != null) { - return property.getValue(); - } else { - return super.getValue(); - } - } - - public String getFile() { - return file; - } - - public Property getProperty() { - return property; - } - - public String getSource() { - return source; - } - - public void setFile(String file) { - this.file = file; - } - - public void setProperty(Property property) { - this.property = property; - } - - public void setSource(String source) { - this.source = source; - } - - public XPathExpression getSourceXPathExpression() { - return sourceXPathExpression; - } - - public void setSourceXPathExpression(XPathExpression sourceXPathExpression) { - this.sourceXPathExpression = sourceXPathExpression; - } - - public String toString() { - return "Property: " + getName() + " Value: " + getValue(); - } // end method toString - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/ComponentReferenceImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/ComponentReferenceImpl.java deleted file mode 100644 index 78b54668b3..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/ComponentReferenceImpl.java +++ /dev/null @@ -1,119 +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 org.apache.tuscany.sca.assembly.impl; - -import java.util.ArrayList; -import java.util.List; - -import org.apache.tuscany.sca.assembly.Binding; -import org.apache.tuscany.sca.assembly.ComponentReference; -import org.apache.tuscany.sca.assembly.ComponentService; -import org.apache.tuscany.sca.assembly.CompositeReference; -import org.apache.tuscany.sca.assembly.Reference; -import org.apache.tuscany.sca.interfacedef.InterfaceContract; - -/** - * Represents a component reference - * - * @version $Rev$ $Date$ - */ -public class ComponentReferenceImpl extends ReferenceImpl implements ComponentReference, Cloneable { - private Reference reference; - private Boolean autowire; - private boolean nonOverridable; - private List promotedAs = new ArrayList(); - private ComponentService callbackService; - private boolean isPromoted = false; - - /** - * Constructs a new component reference. - */ - protected ComponentReferenceImpl() { - // Set multiplicity to null so that by default it'll inherit from the Reference - setMultiplicity(null); - } - - @Override - public Object clone() throws CloneNotSupportedException { - return super.clone(); - } - - public Reference getReference() { - return reference; - } - - public void setReference(Reference reference) { - this.reference = reference; - } - - public boolean isAutowire() { - return (autowire == null) ? false : autowire.booleanValue(); - } - - public void setAutowire(Boolean autowire) { - this.autowire = autowire; - } - - public Boolean getAutowire() { - return autowire; - } - - public List promotedAs() { - return promotedAs; - } - - public ComponentService getCallbackService() { - return callbackService; - } - - public void setCallbackService(ComponentService callbackService) { - this.callbackService = callbackService; - } - - /** - * Use endpoint information to work out what the interface contract for the - * binding is. - */ - @Override - public InterfaceContract getInterfaceContract(Binding binding) { - InterfaceContract interfaceContract = null; - - if (interfaceContract == null) { - interfaceContract = getInterfaceContract(); - } - return interfaceContract; - } - - public boolean isNonOverridable() { - return nonOverridable; - } - - public void setNonOverridable(boolean nonOverridable) { - this.nonOverridable = nonOverridable; - } - - public void setPromoted(boolean isPromoted) { - this.isPromoted = isPromoted; - } // end method setPromoted - - public boolean isPromoted() { - return isPromoted; - } -} // end class ComponentReferenceImpl diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/ComponentServiceImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/ComponentServiceImpl.java deleted file mode 100644 index f8c9f53413..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/ComponentServiceImpl.java +++ /dev/null @@ -1,71 +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 org.apache.tuscany.sca.assembly.impl; - -import java.util.ArrayList; -import java.util.List; - -import org.apache.tuscany.sca.assembly.ComponentReference; -import org.apache.tuscany.sca.assembly.ComponentService; -import org.apache.tuscany.sca.assembly.CompositeService; -import org.apache.tuscany.sca.assembly.Service; - -/** - * Represents a component service - * - * @version $Rev$ $Date$ - */ -public class ComponentServiceImpl extends ServiceImpl implements ComponentService, Cloneable { - private Service service; - private List promotedAs = new ArrayList(); - private ComponentReference callbackReference; - - /** - * Constructs a new component service. - */ - protected ComponentServiceImpl() { - } - - @Override - public Object clone() throws CloneNotSupportedException { - return super.clone(); - } - - public Service getService() { - return service; - } - - public void setService(Service service) { - this.service = service; - } - - public List promotedAs() { - return promotedAs; - } - - public ComponentReference getCallbackReference() { - return callbackReference; - } - - public void setCallbackReference(ComponentReference callbackReference) { - this.callbackReference = callbackReference; - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/ComponentTypeImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/ComponentTypeImpl.java deleted file mode 100644 index b52c65ef8b..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/ComponentTypeImpl.java +++ /dev/null @@ -1,176 +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 org.apache.tuscany.sca.assembly.impl; - -import java.util.ArrayList; -import java.util.List; - -import org.apache.tuscany.sca.assembly.ComponentType; -import org.apache.tuscany.sca.assembly.Property; -import org.apache.tuscany.sca.assembly.Reference; -import org.apache.tuscany.sca.assembly.Service; -import org.apache.tuscany.sca.policy.ExtensionType; -import org.apache.tuscany.sca.policy.Intent; -import org.apache.tuscany.sca.policy.PolicySet; - -/** - * Represents a component type. - * - * @version $Rev$ $Date$ - */ -public class ComponentTypeImpl extends ExtensibleImpl implements ComponentType, Cloneable { - private String uri; - private List properties = new ArrayList(); - private List references = new ArrayList(); - private List services = new ArrayList(); - private List requiredIntents = new ArrayList(); - private List policySets = new ArrayList(); - - /** - * Constructs a new component type. - */ - protected ComponentTypeImpl() { - } - - @Override - public Object clone() throws CloneNotSupportedException { - ComponentTypeImpl clone = (ComponentTypeImpl)super.clone(); - - clone.services = new ArrayList(); - for (Service service : getServices()) { - clone.services.add((Service)service.clone()); - } - clone.references = new ArrayList(); - for (Reference reference : getReferences()) { - clone.references.add((Reference)reference.clone()); - } - clone.properties = new ArrayList(); - for (Property property : getProperties()) { - clone.properties.add((Property)property.clone()); - } - clone.requiredIntents = new ArrayList(requiredIntents); - clone.policySets = new ArrayList(policySets); - return clone; - } - - public String getURI() { - return uri; - } - - public void setURI(String uri) { - this.uri = uri; - } - - public List getProperties() { - return properties; - } - - public Property getProperty(String name){ - Property property = null; - - for (Property tmp : getProperties()){ - if (tmp.getName().equals(name)){ - property = tmp; - break; - } - } - - return property; - } - - public List getReferences() { - return references; - } - - public Reference getReference(String name){ - Reference reference = null; - - for (Reference tmp : getReferences()){ - if (tmp.getName().equals(name)){ - reference = tmp; - break; - } - } - - return reference; - } - - public List getServices() { - return services; - } - - public Service getService(String name){ - Service service = null; - - for (Service tmp : getServices()){ - if (tmp.getName().equals(name)){ - service = tmp; - break; - } - } - - return service; - } - - - public List getRequiredIntents() { - return requiredIntents; - } - - public List getPolicySets() { - return policySets; - } - - public ExtensionType getExtensionType() { - return null; - } - - public void setExtensionType(ExtensionType type) { - } - - @Override - public int hashCode() { - final int prime = 31; - int result = 1; - result = prime * result + ((uri == null) ? 0 : uri.hashCode()); - return result; - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } - if (obj == null) { - return false; - } - if (getClass() != obj.getClass()) { - return false; - } - ComponentTypeImpl other = (ComponentTypeImpl)obj; - if (uri == null) { - if (other.uri != null) { - return false; - } - } else if (!uri.equals(other.uri)) { - return false; - } - return true; - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/CompositeImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/CompositeImpl.java deleted file mode 100644 index fba6af7e7f..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/CompositeImpl.java +++ /dev/null @@ -1,185 +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 org.apache.tuscany.sca.assembly.impl; - -import java.util.ArrayList; -import java.util.List; - -import javax.xml.namespace.QName; - -import org.apache.tuscany.sca.assembly.Component; -import org.apache.tuscany.sca.assembly.ComponentReference; -import org.apache.tuscany.sca.assembly.Composite; -import org.apache.tuscany.sca.assembly.CompositeReference; -import org.apache.tuscany.sca.assembly.CompositeService; -import org.apache.tuscany.sca.assembly.Reference; -import org.apache.tuscany.sca.assembly.Service; -import org.apache.tuscany.sca.assembly.Wire; - -/** - * Implementation of a Composite. - * - * @version $Rev$ $Date$ - */ -public class CompositeImpl extends ImplementationImpl implements Composite, Cloneable { - private String specVersion = "undefined"; - private List components = new ArrayList(); - private List includes = new ArrayList(); - private QName name; - private List wires = new ArrayList(); - private Boolean autowire; - private boolean local = true; - - /** - * Constructs a new composite. - */ - protected CompositeImpl() { - super(TYPE); - } - - @Override - public Object clone() throws CloneNotSupportedException { - CompositeImpl clone = (CompositeImpl)super.clone(); - - // clone the child components - clone.components = new ArrayList(); - for (Component component : getComponents()) { - Component clonedComponent = (Component)component.clone(); - clone.components.add(clonedComponent); - } - - // reset the references and services so the get re-resolved - for (Service service : clone.getServices()) { - CompositeService compositeService = (CompositeService)service; - // Force the promoted component/service to be rebuilt against the clone - if (compositeService.getPromotedComponent() != null) { - compositeService.getPromotedComponent().setUnresolved(true); - } - if (compositeService.getPromotedService() != null) { - compositeService.getPromotedService().setUnresolved(true); - } - } - for (Reference reference : clone.getReferences()) { - CompositeReference compositeReference = (CompositeReference)reference; - for (ComponentReference ref : compositeReference.getPromotedReferences()) { - // Force the promoted reference to be rebuilt against the clone - ref.setUnresolved(true); - } - } - - // clone the wires - clone.wires = new ArrayList(); - for (Wire wire : getWires()) { - clone.wires.add((Wire)wire.clone()); - } - - // Clone the includes - clone.includes = new ArrayList(); - for (Composite included : getIncludes()) { - clone.includes.add((Composite)included.clone()); - } - return clone; - } - - public String getSpecVersion() { - return specVersion; - } - - public void setSpecVersion(String specVersion) { - this.specVersion = specVersion; - } - - public List getComponents() { - return components; - } - - public Component getComponent(String name) { - Component component = null; - - for (Component tmp : getComponents()){ - if (tmp.getName().equals(name)){ - component = tmp; - break; - } - } - return component; - } - - public List getIncludes() { - return includes; - } - - public QName getName() { - return name; - } - - public List getWires() { - return wires; - } - - public boolean isLocal() { - return local; - } - - public void setLocal(boolean local) { - this.local = local; - } - - public boolean isAutowire() { - return (autowire == null) ? false : autowire.booleanValue(); - } - - public void setAutowire(Boolean autowire) { - this.autowire = autowire; - } - - public Boolean getAutowire() { - return autowire; - } - - public void setName(QName name) { - this.name = name; - } - - @Override - public int hashCode() { - return String.valueOf(getName()).hashCode(); - } - - @Override - public boolean equals(Object obj) { - if (obj == this) { - return true; - } else if (obj instanceof Composite) { - if (getName() != null) { - return getName().equals(((Composite)obj).getName()); - } else { - return ((Composite)obj).getName() == null; - } - } else { - return false; - } - } - - @Override - public String toString() { - return "Composite (name=" + getName() + ")"; - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/CompositeReferenceImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/CompositeReferenceImpl.java deleted file mode 100644 index ae5fad461b..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/CompositeReferenceImpl.java +++ /dev/null @@ -1,63 +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 org.apache.tuscany.sca.assembly.impl; - -import java.util.ArrayList; -import java.util.List; - -import org.apache.tuscany.sca.assembly.Component; -import org.apache.tuscany.sca.assembly.ComponentReference; -import org.apache.tuscany.sca.assembly.CompositeReference; - -/** - * Represents a composite reference. - * - * @version $Rev$ $Date$ - */ -public class CompositeReferenceImpl extends ReferenceImpl implements CompositeReference, Cloneable { - private List promotedComponents = new ArrayList(); - private List promotedReferences = new ArrayList(); - - /** - * Constructs a new composite reference. - */ - protected CompositeReferenceImpl() { - } - - @Override - public Object clone() throws CloneNotSupportedException { - CompositeReferenceImpl copy = (CompositeReferenceImpl)super.clone(); - copy.promotedComponents = new ArrayList(promotedComponents); - copy.promotedReferences = new ArrayList(promotedReferences); - return copy; - } - - public List getPromotedReferences() { - return promotedReferences; - } - - public List getPromotedComponents() { - return promotedComponents; - } - - public String toString() { - return getName(); - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/CompositeServiceImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/CompositeServiceImpl.java deleted file mode 100644 index 55b48ec578..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/CompositeServiceImpl.java +++ /dev/null @@ -1,62 +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 org.apache.tuscany.sca.assembly.impl; - -import org.apache.tuscany.sca.assembly.Component; -import org.apache.tuscany.sca.assembly.ComponentService; -import org.apache.tuscany.sca.assembly.CompositeService; - -/** - * Represents a composite service - * - * @version $Rev$ $Date$ - */ -public class CompositeServiceImpl extends ServiceImpl implements CompositeService, Cloneable { - private ComponentService promotedService; - private Component promotedComponent; - - /** - * Constructs a new composite service. - */ - protected CompositeServiceImpl() { - } - - @Override - public Object clone() throws CloneNotSupportedException { - return super.clone(); - } - - public ComponentService getPromotedService() { - return promotedService; - } - - public void setPromotedService(ComponentService promotedService) { - this.promotedService = promotedService; - } - - public Component getPromotedComponent() { - return promotedComponent; - } - - public void setPromotedComponent(Component promotedComponent) { - this.promotedComponent = promotedComponent; - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/ConfiguredOperationImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/ConfiguredOperationImpl.java deleted file mode 100644 index 32377faf54..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/ConfiguredOperationImpl.java +++ /dev/null @@ -1,95 +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 org.apache.tuscany.sca.assembly.impl; - -import java.util.ArrayList; -import java.util.List; - -import org.apache.tuscany.sca.assembly.ConfiguredOperation; -import org.apache.tuscany.sca.policy.ExtensionType; -import org.apache.tuscany.sca.policy.Intent; -import org.apache.tuscany.sca.policy.PolicySet; - -/** - * Represents an Operation. - * - * @version $Rev$ $Date$ - */ -public class ConfiguredOperationImpl extends BaseImpl implements ConfiguredOperation { - private List policySets = new ArrayList(); - private List requiredIntents = new ArrayList(); - private List applicablePolicySets = new ArrayList(); - - private String name; - private String contractName; - private ExtensionType type; - - /** - * Constructs a new Operation. - */ - protected ConfiguredOperationImpl() { - } - - public List getPolicySets() { - return policySets; - } - - public void setPolicySets(List policySets) { - this.policySets = policySets; - } - - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public List getRequiredIntents() { - return requiredIntents; - } - - public void setRequiredIntents(List intents) { - this.requiredIntents = intents; - } - - public String getContractName() { - return contractName; - } - - public void setContractName(String contractName) { - this.contractName = contractName; - } - - public List getApplicablePolicySets() { - return applicablePolicySets; - } - - public ExtensionType getExtensionType() { - return type; - } - - public void setExtensionType(ExtensionType type) { - this.type = type; - } - - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/ContractImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/ContractImpl.java deleted file mode 100644 index 2b72f1f047..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/ContractImpl.java +++ /dev/null @@ -1,88 +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 org.apache.tuscany.sca.assembly.impl; - -import java.util.ArrayList; -import java.util.List; - -import org.apache.tuscany.sca.assembly.AbstractContract; -import org.apache.tuscany.sca.interfacedef.InterfaceContract; -import org.apache.tuscany.sca.policy.ExtensionType; -import org.apache.tuscany.sca.policy.Intent; -import org.apache.tuscany.sca.policy.PolicySet; - -/** - * Implementation of a Contract. - * - * @version $Rev$ $Date$ - */ -public class ContractImpl extends ExtensibleImpl implements AbstractContract { - private InterfaceContract interfaceContract; - private String name; - private List requiredIntents = new ArrayList(); - private List policySets = new ArrayList(); - - private boolean isCallback = false; - - /** - * Constructs a new contract. - */ - protected ContractImpl() { - } - - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public InterfaceContract getInterfaceContract() { - return interfaceContract; - } - - public void setInterfaceContract(InterfaceContract interfaceContract) { - this.interfaceContract = interfaceContract; - } - - public List getRequiredIntents() { - return requiredIntents; - } - - public boolean isForCallback() { - return isCallback; - } - - public void setForCallback(boolean isCallback) { - this.isCallback = isCallback; - } - - public ExtensionType getExtensionType() { - return null; - } - - public void setExtensionType(ExtensionType type) { - } - - public List getPolicySets() { - return policySets; - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/EndpointImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/EndpointImpl.java deleted file mode 100644 index 34ece5a24b..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/EndpointImpl.java +++ /dev/null @@ -1,276 +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 org.apache.tuscany.sca.assembly.impl; - -import java.util.ArrayList; -import java.util.List; - -import org.apache.tuscany.sca.assembly.Binding; -import org.apache.tuscany.sca.assembly.Component; -import org.apache.tuscany.sca.assembly.ComponentService; -import org.apache.tuscany.sca.assembly.Endpoint; -import org.apache.tuscany.sca.assembly.EndpointReference; -import org.apache.tuscany.sca.core.ExtensionPointRegistry; -import org.apache.tuscany.sca.interfacedef.InterfaceContract; -import org.apache.tuscany.sca.policy.ExtensionType; -import org.apache.tuscany.sca.policy.Intent; -import org.apache.tuscany.sca.policy.PolicySet; -import org.apache.tuscany.sca.policy.PolicySubject; - -/** - * The assembly model object for an endpoint. - * - * @version $Rev$ $Date$ - */ -public class EndpointImpl implements Endpoint { - private static final long serialVersionUID = 7344399683703812593L; - - protected transient ExtensionPointRegistry registry; - protected boolean unresolved; - protected String uri; - protected Component component; - protected ComponentService service; - protected Binding binding; - protected InterfaceContract interfaceContract; - protected List callbackEndpointReferences = new ArrayList(); - protected List policySets = new ArrayList(); - protected List requiredIntents = new ArrayList(); - protected boolean remote = false; - - protected EndpointImpl(ExtensionPointRegistry registry) { - this.registry = registry; - } - - @Override - public Object clone() throws CloneNotSupportedException { - return super.clone(); - } - - public boolean isUnresolved() { - return unresolved; - } - - public void setUnresolved(boolean unresolved) { - this.unresolved = unresolved; - } - - public Component getComponent() { - resolve(); - return component; - } - - public void setComponent(Component component) { - this.component = component; - reset(); - } - - public ComponentService getService() { - resolve(); - return service; - } - - public void setService(ComponentService service) { - this.service = service; - reset(); - } - - public Binding getBinding() { - resolve(); - return binding; - } - - public void setBinding(Binding binding) { - this.binding = binding; - reset(); - } - - public InterfaceContract getComponentServiceInterfaceContract() { - resolve(); - if (interfaceContract == null && service != null) { - interfaceContract = service.getInterfaceContract(); - } - return interfaceContract; - } - - public void setInterfaceContract(InterfaceContract interfaceContract) { - this.interfaceContract = interfaceContract; - } - - /** - * Get the services callbacl enpoint references that - * represent endpoint references from which callbacks - * originate - * - * @return callbackEndpoint the reference callback endpoint - */ - public List getCallbackEndpointReferences() { - resolve(); - return callbackEndpointReferences; - } - - public List getPolicySets() { - resolve(); - return policySets; - } - - public List getRequiredIntents() { - resolve(); - return requiredIntents; - } - - public ExtensionType getExtensionType() { - getBinding(); - if (binding instanceof PolicySubject) { - return ((PolicySubject)binding).getExtensionType(); - } - return null; - } - - public void setExtensionType(ExtensionType type) { - throw new UnsupportedOperationException(); - } - - public String toStringWithoutHash() { - String output = "Endpoint: "; - - if (getURI() != null) { - output += " URI = " + getURI(); - } - - if (unresolved) { - output += " [Unresolved]"; - } - - return output; - } - - public String toString() { - return "(@" + this.hashCode() + ")" + toStringWithoutHash(); - } - - public String getURI() { - if (uri == null) { - if (component != null && service != null && binding != null) { - String bindingName = binding.getName(); - if (bindingName == null) { - bindingName = service.getName(); - } - uri = component.getURI() + "#service-binding(" + service.getName() + "/" + bindingName + ")"; - } else if (component != null && service != null) { - uri = component.getURI() + "#service(" + service.getName() + ")"; - } else if (component != null) { - uri = component.getURI(); - } - } - return uri; - } - - public void setURI(String uri) { - this.uri = uri; - } - - protected void resolve() { - } - - protected void reset() { - this.uri = null; - } - - protected void setExtensionPointRegistry(ExtensionPointRegistry registry) { - this.registry = registry; - } - - public boolean isRemote() { - return remote; - } - - public void setRemote(boolean remote) { - this.remote = remote; - } - - public boolean matches(String serviceURI) { - String[] parts1 = parseServiceURI(serviceURI); - String[] parts2 = parseStructuralURI(getURI()); - for (int i = 0; i < parts1.length; i++) { - if (parts1[i] == null || parts1[i].equals(parts2[i])) { - continue; - } else { - return false; - } - } - return true; - } - - /** - * Parse the service URI into an array of names. The service URI is in one of the following formats: - *

    - *
  • componentName - *
  • componentName/serviceName - *
  • componentName/serviceName/bindingName - *
- * @param serviceURI - * @return - */ - private static String[] parseServiceURI(String serviceURI) { - if (serviceURI.startsWith("/")) { - serviceURI = serviceURI.substring(1); - } - if (serviceURI.contains("#")) { - return parseStructuralURI(serviceURI); - } - String[] names = new String[3]; - String[] segments = serviceURI.split("/"); - for (int i = 0; i < names.length && i < segments.length; i++) { - names[i] = segments[i]; - } - return names; - } - - /** - * Parse the structural URI into an array of parts (componentURI, serviceName, bindingName) - * @param structuralURI - * @return [0]: componentURI [1]: serviceName [2]: bindingName - */ - private static String[] parseStructuralURI(String structuralURI) { - String[] names = new String[3]; - int index = structuralURI.lastIndexOf('#'); - if (index == -1) { - names[0] = structuralURI; - } else { - names[0] = structuralURI.substring(0, index); - String str = structuralURI.substring(index + 1); - if (str.startsWith("service-binding(") && str.endsWith(")")) { - str = str.substring("service-binding(".length(), str.length() - 1); - String[] parts = str.split("/"); - if (parts.length != 2) { - throw new IllegalArgumentException("Invalid service-binding URI: " + structuralURI); - } - names[1] = parts[0]; - names[2] = parts[1]; - } else if (str.startsWith("service(") && str.endsWith(")")) { - str = str.substring("service(".length(), str.length() - 1); - names[1] = str; - } else { - throw new IllegalArgumentException("Invalid structural URI: " + structuralURI); - } - } - return names; - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/EndpointReferenceImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/EndpointReferenceImpl.java deleted file mode 100644 index d13740b287..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/EndpointReferenceImpl.java +++ /dev/null @@ -1,229 +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 org.apache.tuscany.sca.assembly.impl; - -import java.util.ArrayList; -import java.util.List; - -import org.apache.tuscany.sca.assembly.Binding; -import org.apache.tuscany.sca.assembly.Component; -import org.apache.tuscany.sca.assembly.ComponentReference; -import org.apache.tuscany.sca.assembly.Endpoint; -import org.apache.tuscany.sca.assembly.EndpointReference; -import org.apache.tuscany.sca.core.ExtensionPointRegistry; -import org.apache.tuscany.sca.interfacedef.InterfaceContract; -import org.apache.tuscany.sca.policy.ExtensionType; -import org.apache.tuscany.sca.policy.Intent; -import org.apache.tuscany.sca.policy.PolicySet; -import org.apache.tuscany.sca.policy.PolicySubject; - -/** - * The assembly model object for an endpoint. - * - * @version $Rev$ $Date$ - */ -public class EndpointReferenceImpl implements EndpointReference { - private static final long serialVersionUID = 8838066441709300972L; - - protected ExtensionPointRegistry registry; - protected boolean unresolved = true; - protected String uri; - protected Component component; - protected ComponentReference reference; - protected Binding binding; - protected List policySets = new ArrayList(); - protected List requiredIntents = new ArrayList(); - protected InterfaceContract interfaceContract; - protected Status status = Status.NOT_CONFIGURED; - - // the target of the endpoint reference - protected Endpoint targetEndpoint; - - // callback endpoint that messages across this reference - // will be directed toward - protected Endpoint callbackEndpoint; - - protected EndpointReferenceImpl(ExtensionPointRegistry registry) { - this.registry = registry; - } - - @Override - public Object clone() throws CloneNotSupportedException { - EndpointReference cloned = (EndpointReference)super.clone(); - - if (targetEndpoint != null) { - cloned.setTargetEndpoint((Endpoint)targetEndpoint.clone()); - } - - return cloned; - } - - public boolean isUnresolved() { - return unresolved; - } - - public void setUnresolved(boolean unresolved) { - this.unresolved = unresolved; - } - - public Component getComponent() { - resolve(); - return component; - } - - public void setComponent(Component component) { - this.component = component; - reset(); - } - - public ComponentReference getReference() { - resolve(); - return reference; - } - - public void setReference(ComponentReference reference) { - this.reference = reference; - reset(); - } - - public Binding getBinding() { - resolve(); - return binding; - } - - public void setBinding(Binding binding) { - this.binding = binding; - reset(); - } - - public Endpoint getTargetEndpoint() { - resolve(); - return targetEndpoint; - } - - public void setTargetEndpoint(Endpoint targetEndpoint) { - this.targetEndpoint = targetEndpoint; - reset(); - } - - public InterfaceContract getComponentReferenceInterfaceContract() { - resolve(); - if (interfaceContract == null && reference != null) { - interfaceContract = reference.getInterfaceContract(); - } - return interfaceContract; - } - - public void setInterfaceContract(InterfaceContract interfaceContract) { - this.interfaceContract = interfaceContract; - reset(); - } - - public List getPolicySets() { - resolve(); - return policySets; - } - - public List getRequiredIntents() { - resolve(); - return requiredIntents; - } - - public ExtensionType getExtensionType() { - getBinding(); - if (binding instanceof PolicySubject) { - return ((PolicySubject)binding).getExtensionType(); - } - return null; - } - - public void setExtensionType(ExtensionType type) { - throw new UnsupportedOperationException(); - } - - public Endpoint getCallbackEndpoint() { - resolve(); - return callbackEndpoint; - } - - public void setCallbackEndpoint(Endpoint callbackEndpoint) { - this.callbackEndpoint = callbackEndpoint; - reset(); - } - - public String toStringWithoutHash() { - StringBuffer output = new StringBuffer("EndpointReference: "); - - if (getURI() != null) { - output.append(" URI = ").append(getURI()); - } - - output.append(" ").append(status); - - if (targetEndpoint != null) { - output.append(" Target = ").append(targetEndpoint); - } - - return output.toString(); - } - - public String toString() { - return "(@" + this.hashCode() + ")" + toStringWithoutHash(); - } - - public String getURI() { - if (uri == null) { - if (component != null && reference != null && binding != null) { - String bindingName = binding.getName(); - if (bindingName == null) { - bindingName = reference.getName(); - } - uri = component.getURI() + "#reference-binding(" + reference.getName() + "/" + bindingName + ")"; - } else if (component != null && reference != null) { - uri = component.getURI() + "#reference(" + reference.getName() + ")"; - } else if (component != null) { - uri = component.getURI(); - } - } - return uri; - } - - public void setURI(String uri) { - this.uri = uri; - } - - protected void resolve() { - } - - protected void reset() { - this.uri = null; - } - - public void setExtensionPointRegistry(ExtensionPointRegistry registry) { - this.registry = registry; - } - - public Status getStatus() { - return status; - } - - public void setStatus(Status status) { - this.status = status; - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/ExtensibleImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/ExtensibleImpl.java deleted file mode 100644 index 340fa2854c..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/ExtensibleImpl.java +++ /dev/null @@ -1,49 +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 org.apache.tuscany.sca.assembly.impl; - -import java.util.ArrayList; -import java.util.List; - -import org.apache.tuscany.sca.assembly.Extensible; -import org.apache.tuscany.sca.assembly.Extension; - -/** - * Convenience base class for extensible assembly model objects. - * - * @version $Rev$ $Date$ - */ -public abstract class ExtensibleImpl extends BaseImpl implements Extensible { - private List extensions = new ArrayList(); - private List attributeExtensions = new ArrayList(); - - /** - * Constructs a new base model object. - */ - protected ExtensibleImpl() { - } - - public List getExtensions() { - return extensions; - } - - public List getAttributeExtensions() { - return attributeExtensions; - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/ExtensionImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/ExtensionImpl.java deleted file mode 100644 index e69eb4a771..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/ExtensionImpl.java +++ /dev/null @@ -1,62 +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 org.apache.tuscany.sca.assembly.impl; - -import javax.xml.namespace.QName; - -import org.apache.tuscany.sca.assembly.Extension; - -public class ExtensionImpl implements Extension { - private QName qName; - private Object value; - private boolean isAttribute = false; - - public ExtensionImpl() { - } - - public ExtensionImpl(QName qName, Object value, boolean isAttribute) { - this.qName = qName; - this.value = value; - this.isAttribute = isAttribute; - } - - public QName getQName() { - return qName; - } - - public void setQName(QName qName) { - this.qName = qName; - } - - public T getValue() { - return (T)value; - } - - public void setValue(T value) { - this.value = value; - } - - public boolean isAttribute() { - return isAttribute; - } - - public void setAttribute(boolean isAttribute) { - this.isAttribute = isAttribute; - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/ImplementationImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/ImplementationImpl.java deleted file mode 100644 index 677e86c759..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/ImplementationImpl.java +++ /dev/null @@ -1,89 +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 org.apache.tuscany.sca.assembly.impl; - -import java.util.ArrayList; -import java.util.List; - -import javax.xml.namespace.QName; - -import org.apache.tuscany.sca.assembly.Implementation; -import org.apache.tuscany.sca.interfacedef.Operation; -import org.apache.tuscany.sca.policy.ExtensionType; -import org.apache.tuscany.sca.policy.PolicySubject; - -/** - * Base implementation class of Implementation model interface - * - * @version $Rev$ $Date$ - * @tuscany.spi.extension.inheritfrom - */ -public abstract class ImplementationImpl extends ComponentTypeImpl implements Implementation, PolicySubject { - private QName type; - private ExtensionType extensionType; - private List operations = new ArrayList(); - - protected ImplementationImpl(QName type) { - super(); - this.type = type; - } - - public ExtensionType getExtensionType() { - return extensionType; - } - - public void setExtensionType(ExtensionType extensionType) { - this.extensionType = extensionType; - } - - public QName getType() { - return type; - } - - public String toString() { - return String.valueOf(getType()); - } - - public List getOperations() { - return operations; - } - - @Override - public Object clone() throws CloneNotSupportedException { - ImplementationImpl impl = (ImplementationImpl)super.clone(); - impl.operations = new ArrayList(); - for (Operation operation : operations) { - impl.operations.add((Operation)operation.clone()); - } - return impl; - } - - // Override the ComponentTypeImpl.hashCode() - @Override - public int hashCode() { - return System.identityHashCode(this); - } - - // Override the ComponentTypeImpl.equals() - @Override - public boolean equals(Object obj) { - return this == obj; - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/PropertyImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/PropertyImpl.java deleted file mode 100644 index 263af296b1..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/PropertyImpl.java +++ /dev/null @@ -1,59 +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 org.apache.tuscany.sca.assembly.impl; - -import java.util.ArrayList; -import java.util.List; - -import org.apache.tuscany.sca.assembly.Property; -import org.apache.tuscany.sca.policy.PolicySet; - -/** - * Represents a property. - * - * @version $Rev$ $Date$ - */ -public class PropertyImpl extends AbstractPropertyImpl implements Property, Cloneable { - private List policySets = new ArrayList(); - private List applicablePolicySets = new ArrayList(); - - /** - * Constructs a new property. - */ - protected PropertyImpl() { - } - - @Override - public Object clone() throws CloneNotSupportedException { - return super.clone(); - } - - public List getPolicySets() { - return policySets; - } - - public void setPolicySets(List policySets) { - this.policySets = policySets; - } - - public List getApplicablePolicySets() { - return applicablePolicySets; - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/ReferenceImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/ReferenceImpl.java deleted file mode 100644 index 69d76f238d..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/ReferenceImpl.java +++ /dev/null @@ -1,135 +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 org.apache.tuscany.sca.assembly.impl; - -import java.util.ArrayList; -import java.util.List; - -import org.apache.tuscany.sca.assembly.Binding; -import org.apache.tuscany.sca.assembly.Callback; -import org.apache.tuscany.sca.assembly.ComponentReference; -import org.apache.tuscany.sca.assembly.ComponentService; -import org.apache.tuscany.sca.assembly.EndpointReference; -import org.apache.tuscany.sca.assembly.Reference; -import org.apache.tuscany.sca.interfacedef.InterfaceContract; - -/** - * Represents a reference. - * - * @version $Rev$ $Date$ - */ -public class ReferenceImpl extends AbstractReferenceImpl implements Reference, Cloneable { - private List bindings = new ArrayList(); - private boolean wiredByImpl; - private List targets = new ArrayList(); - private Callback callback; - private boolean overridingBindings; - private List endpointReferences = new ArrayList(); - - /** - * Constructs a new reference. - */ - protected ReferenceImpl() { - } - - @Override - public Object clone() throws CloneNotSupportedException { - ReferenceImpl clone = (ReferenceImpl)super.clone(); - clone.bindings = new ArrayList(bindings); - clone.targets = new ArrayList(targets); - // clone the endpoint references themselves and set the reference pointer back to - // this new refrence - clone.endpointReferences = new ArrayList(); - - for (EndpointReference epr : endpointReferences) { - EndpointReference eprClone = (EndpointReference)epr.clone(); - eprClone.setReference((ComponentReference)clone); - clone.endpointReferences.add(eprClone); - } - return clone; - } - - public List getBindings() { - return bindings; - } - - public B getBinding(Class bindingClass) { - for (Binding binding : bindings) { - if (bindingClass.isInstance(binding)) { - return bindingClass.cast(binding); - } - } - return null; - } - - public B getCallbackBinding(Class bindingClass) { - if (callback != null) { - for (Binding binding : callback.getBindings()) { - if (bindingClass.isInstance(binding)) { - return bindingClass.cast(binding); - } - } - } - return null; - } - - public boolean isWiredByImpl() { - return wiredByImpl; - } - - public void setWiredByImpl(boolean wiredByImpl) { - this.wiredByImpl = wiredByImpl; - } - - public List getTargets() { - return targets; - } - - public Callback getCallback() { - return callback; - } - - public void setCallback(Callback callback) { - this.callback = callback; - } - - /** - * By default return the interface contract for the reference - */ - public InterfaceContract getInterfaceContract(Binding binding) { - return getInterfaceContract(); - } - - public List getEndpointReferences() { - return endpointReferences; - } - - public String toString() { - return getName(); - } - - public boolean isOverridingBindings() { - return overridingBindings; - } - - public void setOverridingBindings(boolean overridingBindings) { - this.overridingBindings = overridingBindings; - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/SCABindingFactoryImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/SCABindingFactoryImpl.java deleted file mode 100644 index 84e5825b50..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/SCABindingFactoryImpl.java +++ /dev/null @@ -1,40 +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 org.apache.tuscany.sca.assembly.impl; - -import org.apache.tuscany.sca.assembly.SCABinding; -import org.apache.tuscany.sca.assembly.SCABindingFactory; - -/** - * A factory for the SCA binding model. - * - * @version $Rev$ $Date$ - */ -public class SCABindingFactoryImpl implements SCABindingFactory { - - public SCABindingFactoryImpl() { - - } - - public SCABinding createSCABinding() { - return new SCABindingImpl(); - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/SCABindingImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/SCABindingImpl.java deleted file mode 100644 index b42f3f929f..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/SCABindingImpl.java +++ /dev/null @@ -1,148 +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 org.apache.tuscany.sca.assembly.impl; - -import java.util.ArrayList; -import java.util.List; - -import javax.xml.namespace.QName; - -import org.apache.tuscany.sca.assembly.Extensible; -import org.apache.tuscany.sca.assembly.Extension; -import org.apache.tuscany.sca.assembly.OperationSelector; -import org.apache.tuscany.sca.assembly.SCABinding; -import org.apache.tuscany.sca.assembly.WireFormat; -import org.apache.tuscany.sca.policy.ExtensionType; -import org.apache.tuscany.sca.policy.Intent; -import org.apache.tuscany.sca.policy.PolicySet; -import org.apache.tuscany.sca.policy.PolicySubject; - -/** - * The assembly mode object for an SCA binding. - * - * @version $Rev$ $Date$ - */ -public class SCABindingImpl implements SCABinding, Extensible, PolicySubject { - private String name; - private String uri; - private List extensions = new ArrayList(); - private List attributeExtensions = new ArrayList(); - private List requiredIntents = new ArrayList(); - private List policySets = new ArrayList(); - private ExtensionType extensionType; - - /** - * Constructs a new SCA binding. - */ - protected SCABindingImpl() { - } - - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - /** - * Getters for the binding URI. The computed URI for the - * service that the reference is targeting or which the service represents - * depending on whether the biding is associated with a reference or - * service - * - * @return the binding URI - */ - public String getURI() { - return uri; - } - - public void setURI(String uri) { - this.uri = uri; - } - - public List getExtensions() { - return extensions; - } - - public List getAttributeExtensions() { - return attributeExtensions; - } - - public boolean isUnresolved() { - return false; - } - - public void setUnresolved(boolean unresolved) { - } - - public List getPolicySets() { - return policySets; - } - - public List getRequiredIntents() { - return requiredIntents; - } - - public ExtensionType getExtensionType() { - return extensionType; - } - - public void setExtensionType(ExtensionType intentAttachPointType) { - this.extensionType = intentAttachPointType; - } - - public void setPolicySets(List policySets) { - this.policySets = policySets; - } - - public void setRequiredIntents(List intents) { - this.requiredIntents = intents; - } - - @Override - public Object clone() throws CloneNotSupportedException { - return super.clone(); - } - - public QName getType() { - return TYPE; - } - - public WireFormat getRequestWireFormat() { - return null; - } - - public void setRequestWireFormat(WireFormat wireFormat) { - } - - public WireFormat getResponseWireFormat() { - return null; - } - - public void setResponseWireFormat(WireFormat wireFormat) { - } - - public OperationSelector getOperationSelector() { - return null; - } - - public void setOperationSelector(OperationSelector operationSelector) { - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/ServiceImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/ServiceImpl.java deleted file mode 100644 index 62523e5c17..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/ServiceImpl.java +++ /dev/null @@ -1,106 +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 org.apache.tuscany.sca.assembly.impl; - -import java.util.ArrayList; -import java.util.List; - -import org.apache.tuscany.sca.assembly.Binding; -import org.apache.tuscany.sca.assembly.Callback; -import org.apache.tuscany.sca.assembly.Endpoint; -import org.apache.tuscany.sca.assembly.Service; -import org.apache.tuscany.sca.interfacedef.InterfaceContract; - -/** - * Represents a reference. - * - * @version $Rev$ $Date$ - */ -public class ServiceImpl extends AbstractServiceImpl implements Service, Cloneable { - private List bindings = new ArrayList(); - private boolean overridingBindings; - private Callback callback; - private List endpoints = new ArrayList(); - - /** - * Constructs a new service. - */ - protected ServiceImpl() { - } - - @Override - public Object clone() throws CloneNotSupportedException { - ServiceImpl clone = (ServiceImpl)super.clone(); - clone.bindings = new ArrayList(); - clone.bindings.addAll(getBindings()); - return clone; - } - - public List getBindings() { - return bindings; - } - - public B getBinding(Class bindingClass) { - for (Binding binding : bindings) { - if (bindingClass.isInstance(binding)) { - return bindingClass.cast(binding); - } - } - return null; - } - - public B getCallbackBinding(Class bindingClass) { - if (callback != null) { - for (Binding binding : callback.getBindings()) { - if (bindingClass.isInstance(binding)) { - return bindingClass.cast(binding); - } - } - } - return null; - } - - public Callback getCallback() { - return callback; - } - - public void setCallback(Callback callback) { - this.callback = callback; - } - - /** - * By default return the interface contract for the service - */ - public InterfaceContract getInterfaceContract(Binding binding) { - return getInterfaceContract(); - } - - public List getEndpoints() { - return endpoints; - } - - public boolean isOverridingBindings() { - return overridingBindings; - } - - public void setOverridingBindings(boolean overridingBindings) { - this.overridingBindings = overridingBindings; - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/WireImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/WireImpl.java deleted file mode 100644 index a4990f6a98..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/WireImpl.java +++ /dev/null @@ -1,105 +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 org.apache.tuscany.sca.assembly.impl; - -import java.util.ArrayList; -import java.util.List; - -import org.apache.tuscany.sca.assembly.ComponentReference; -import org.apache.tuscany.sca.assembly.ComponentService; -import org.apache.tuscany.sca.assembly.Wire; -import org.apache.tuscany.sca.policy.ExtensionType; -import org.apache.tuscany.sca.policy.Intent; -import org.apache.tuscany.sca.policy.PolicySet; - -/** - * Represents a wire - * - * @version $Rev$ $Date$ - */ -public class WireImpl extends ExtensibleImpl implements Wire, Cloneable { - private ComponentReference source; - private ComponentService target; - private boolean replace; - private List requiredIntents = new ArrayList(); - private List policySets = new ArrayList(); - private List applicablePolicySets = new ArrayList(); - - public List getApplicablePolicySets() { - return applicablePolicySets; - } - - /** - * Constructs a new wire. - */ - protected WireImpl() { - } - - @Override - public Object clone() throws CloneNotSupportedException { - return super.clone(); - } - - public ComponentReference getSource() { - return source; - } - - public ComponentService getTarget() { - return target; - } - - public void setSource(ComponentReference source) { - this.source = source; - } - - public void setTarget(ComponentService target) { - this.target = target; - } - - public List getRequiredIntents() { - return requiredIntents; - } - - public List getPolicySets() { - return policySets; - } - - public ExtensionType getExtensionType() { - return null; - } - - public void setExtensionType(ExtensionType type) { - } - - public void setPolicySets(List policySets) { - this.policySets = policySets; - } - - public void setRequiredIntents(List intents) { - this.requiredIntents = intents; - } - - public boolean isReplace() { - return replace; - } - - public void setReplace(boolean replace) { - this.replace = replace; - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/definitions/DefaultDefinitionsFactory.java b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/definitions/DefaultDefinitionsFactory.java deleted file mode 100644 index 156fd0af75..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/definitions/DefaultDefinitionsFactory.java +++ /dev/null @@ -1,32 +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 org.apache.tuscany.sca.definitions; - -import org.apache.tuscany.sca.definitions.impl.DefinitionsImpl; - -/** - * Default Implementation of DefinitionsFactory - */ -public class DefaultDefinitionsFactory implements DefinitionsFactory { - - public Definitions createDefinitions() { - return new DefinitionsImpl(); - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/definitions/Definitions.java b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/definitions/Definitions.java deleted file mode 100644 index 7a63bbedc5..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/definitions/Definitions.java +++ /dev/null @@ -1,84 +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 org.apache.tuscany.sca.definitions; - -import java.util.List; - -import org.apache.tuscany.sca.assembly.Binding; -import org.apache.tuscany.sca.policy.BindingType; -import org.apache.tuscany.sca.policy.ImplementationType; -import org.apache.tuscany.sca.policy.Intent; -import org.apache.tuscany.sca.policy.PolicySet; - - -/** - * Represents SCA Definitions. - * - * @version $Rev$ $Date$ - */ -public interface Definitions { - /** - * Returns the target namespace for this SCA Definition - * @return the target namespace - */ - String getTargetNamespace(); - - /** - * Sets the target names for this SCA Definition. - * - * @param ns the target namespace for this SCA Definition - */ - void setTargetNamespace(String ns); - - /** - * Returns a list of domain wide Policy Intents - * - * @return a list of domain wide Policy Intents - */ - List getIntents(); - - /** - * Returns a list of domain wide PolicySets - * - * @return a list of domain wide PolicySets - */ - List getPolicySets(); - - /** - * Returns a list of domain wide Binding Types - * - * @return a list of domain wide Binding Types - */ - List getBindingTypes(); - - - /** - * Returns a list of domain wide Implementation Types - * - * @return a list of domain wide Implementation Types - */ - List getImplementationTypes(); - - /** - * Returns a list of domain wide binding definition objects - * - * @return a list of domain wide binding definition objects - */ - List getBindings(); -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/definitions/DefinitionsBuilder.java b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/definitions/DefinitionsBuilder.java deleted file mode 100644 index 5c68c6cbff..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/definitions/DefinitionsBuilder.java +++ /dev/null @@ -1,34 +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 org.apache.tuscany.sca.definitions; - - -/** - * Interface to abstract building of SCA Definitions for a Domain - * - * @version $Rev$ $Date$ - */ -public interface DefinitionsBuilder { - /** - * Builds the SCA definitions - * - * @param scaDefns - */ - void build(Definitions scaDefns) throws DefinitionsBuilderException; -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/definitions/DefinitionsBuilderException.java b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/definitions/DefinitionsBuilderException.java deleted file mode 100644 index f45be80888..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/definitions/DefinitionsBuilderException.java +++ /dev/null @@ -1,43 +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 org.apache.tuscany.sca.definitions; - -/** - * Builder Exception - * - * @version $Rev$ $Date$ - */ -public class DefinitionsBuilderException extends Exception { - private static final long serialVersionUID = 2513219325230252783L; - - public DefinitionsBuilderException() { - } - - public DefinitionsBuilderException(String message) { - super(message); - } - - public DefinitionsBuilderException(Throwable cause) { - super(cause); - } - - public DefinitionsBuilderException(String message, Throwable cause) { - super(message, cause); - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/definitions/DefinitionsFactory.java b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/definitions/DefinitionsFactory.java deleted file mode 100644 index 616616ae7a..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/definitions/DefinitionsFactory.java +++ /dev/null @@ -1,31 +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 org.apache.tuscany.sca.definitions; - -/** - * Factory interface to create SCA definitions model - * - */ -public interface DefinitionsFactory { - /** - * Create an instance of SCA definitions - * @return a new instance of SCA definitions - */ - Definitions createDefinitions(); -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/definitions/impl/DefinitionsBuilderImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/definitions/impl/DefinitionsBuilderImpl.java deleted file mode 100644 index d87d45b27a..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/definitions/impl/DefinitionsBuilderImpl.java +++ /dev/null @@ -1,307 +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 org.apache.tuscany.sca.definitions.impl; - -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -import javax.xml.namespace.QName; - -import org.apache.tuscany.sca.definitions.Definitions; -import org.apache.tuscany.sca.definitions.DefinitionsBuilder; -import org.apache.tuscany.sca.definitions.DefinitionsBuilderException; -import org.apache.tuscany.sca.policy.BindingType; -import org.apache.tuscany.sca.policy.ExtensionType; -import org.apache.tuscany.sca.policy.ImplementationType; -import org.apache.tuscany.sca.policy.Intent; -import org.apache.tuscany.sca.policy.IntentMap; -import org.apache.tuscany.sca.policy.PolicySet; -import org.apache.tuscany.sca.policy.Qualifier; - -/** - * Provides a concrete implementation for a SCADefinitionsBuilder - * - * @version $Rev$ $Date$ - */ -public class DefinitionsBuilderImpl implements DefinitionsBuilder { - - public void build(Definitions scaDefns) throws DefinitionsBuilderException { - Map definedIntents = new HashMap(); - for (Intent intent : scaDefns.getIntents()) { - definedIntents.put(intent.getName(), intent); - } - - Map definedPolicySets = new HashMap(); - for (PolicySet policySet : scaDefns.getPolicySets()) { - definedPolicySets.put(policySet.getName(), policySet); - } - - Map definedBindingTypes = new HashMap(); - for (BindingType bindingType : scaDefns.getBindingTypes()) { - definedBindingTypes.put(bindingType.getType(), bindingType); - } - - Map definedImplTypes = new HashMap(); - for (ImplementationType implType : scaDefns.getImplementationTypes()) { - definedImplTypes.put(implType.getType(), implType); - } - - //filling up the maps removes all duplicate entries... so fill this unique lists - //into the scaDefns. - scaDefns.getIntents().clear(); - scaDefns.getPolicySets().clear(); - scaDefns.getBindingTypes().clear(); - scaDefns.getImplementationTypes().clear(); - - scaDefns.getIntents().addAll(definedIntents.values()); - scaDefns.getPolicySets().addAll(definedPolicySets.values()); - scaDefns.getBindingTypes().addAll(definedBindingTypes.values()); - scaDefns.getImplementationTypes().addAll(definedImplTypes.values()); - - buildPolicyIntents(scaDefns, definedIntents); - buildPolicySets(scaDefns, definedPolicySets, definedIntents); - buildBindingTypes(scaDefns, definedBindingTypes, definedIntents); - buildImplementationTypes(scaDefns, definedImplTypes, definedIntents); - } - - private void buildBindingTypes(Definitions scaDefns, - Map definedBindingTypes, - Map definedIntents) throws DefinitionsBuilderException { - for (BindingType bindingType : scaDefns.getBindingTypes()) { - buildAlwaysProvidedIntents(bindingType, definedIntents); - buildMayProvideIntents(bindingType, definedIntents); - } - - } - - private void buildImplementationTypes(Definitions scaDefns, - Map definedImplTypes, - Map definedIntents) throws DefinitionsBuilderException { - for (ImplementationType implType : scaDefns.getImplementationTypes()) { - buildAlwaysProvidedIntents(implType, definedIntents); - buildMayProvideIntents(implType, definedIntents); - } - } - - private void buildPolicyIntents(Definitions scaDefns, Map definedIntents) - throws DefinitionsBuilderException { - for (Intent policyIntent : scaDefns.getIntents()) { - if (!policyIntent.getRequiredIntents().isEmpty()) { - buildProfileIntent(policyIntent, definedIntents); - } - - if (!policyIntent.getQualifiedIntents().isEmpty()) { - buildQualifiedIntent(policyIntent, definedIntents); - } - } - } - - private void buildPolicySets(Definitions scaDefns, - Map definedPolicySets, - Map definedIntents) throws DefinitionsBuilderException { - - for (PolicySet policySet : scaDefns.getPolicySets()) { - buildProvidedIntents(policySet, definedIntents); - buildIntentsInMappedPolicies(policySet, definedIntents); - buildReferredPolicySets(policySet, definedPolicySets); - } - - for (PolicySet policySet : scaDefns.getPolicySets()) { - for (PolicySet referredPolicySet : policySet.getReferencedPolicySets()) { - includeReferredPolicySets(policySet, referredPolicySet); - } - } - } - - private void buildProfileIntent(Intent policyIntent, Map definedIntents) - throws DefinitionsBuilderException { - //FIXME: Need to check for cyclic references first i.e an A requiring B and then B requiring A... - if (policyIntent != null) { - //resolve all required intents - List requiredIntents = new ArrayList(); - for (Intent requiredIntent : policyIntent.getRequiredIntents()) { - if (requiredIntent.isUnresolved()) { - Intent resolvedRequiredIntent = definedIntents.get(requiredIntent.getName()); - if (resolvedRequiredIntent != null) { - requiredIntents.add(resolvedRequiredIntent); - } else { - throw new DefinitionsBuilderException("Required Intent - " + requiredIntent - + " not found for ProfileIntent " - + policyIntent); - - } - } else { - requiredIntents.add(requiredIntent); - } - } - policyIntent.getRequiredIntents().clear(); - policyIntent.getRequiredIntents().addAll(requiredIntents); - } - } - - private void buildQualifiedIntent(Intent policyIntent, Map definedIntents) - throws DefinitionsBuilderException { - /* - if (policyIntent != null) { - //resolve the qualifiable intent - Intent qualifiableIntent = policyIntent.getQualifiableIntent(); - if (qualifiableIntent.isUnresolved()) { - Intent resolvedQualifiableIntent = definedIntents.get(qualifiableIntent.getName()); - - if (resolvedQualifiableIntent != null) { - policyIntent.setQualifiableIntent(resolvedQualifiableIntent); - } else { - throw new DefinitionsBuilderException("Qualifiable Intent - " + qualifiableIntent - + " not found for QualifiedIntent " - + policyIntent); - } - - } - } - */ - } - - private void buildAlwaysProvidedIntents(ExtensionType extensionType, Map definedIntents) - throws DefinitionsBuilderException { - if (extensionType != null) { - // resolve all provided intents - List alwaysProvided = new ArrayList(); - for (Intent providedIntent : extensionType.getAlwaysProvidedIntents()) { - if (providedIntent.isUnresolved()) { - Intent resolvedProvidedIntent = definedIntents.get(providedIntent.getName()); - if (resolvedProvidedIntent != null) { - alwaysProvided.add(resolvedProvidedIntent); - } else { - throw new DefinitionsBuilderException("Always Provided Intent - " + providedIntent - + " not found for ExtensionType " - + extensionType); - - } - } else { - alwaysProvided.add(providedIntent); - } - } - extensionType.getAlwaysProvidedIntents().clear(); - extensionType.getAlwaysProvidedIntents().addAll(alwaysProvided); - } - } - - private void buildMayProvideIntents(ExtensionType extensionType, Map definedIntents) - throws DefinitionsBuilderException { - if (extensionType != null) { - // resolve all provided intents - List mayProvide = new ArrayList(); - for (Intent providedIntent : extensionType.getMayProvidedIntents()) { - if (providedIntent.isUnresolved()) { - Intent resolvedProvidedIntent = definedIntents.get(providedIntent.getName()); - if (resolvedProvidedIntent != null) { - mayProvide.add(resolvedProvidedIntent); - } else { - throw new DefinitionsBuilderException("May Provide Intent - " + providedIntent - + " not found for ExtensionType " - + extensionType); - - } - } else { - mayProvide.add(providedIntent); - } - } - extensionType.getMayProvidedIntents().clear(); - extensionType.getMayProvidedIntents().addAll(mayProvide); - } - } - - private void buildProvidedIntents(PolicySet policySet, Map definedIntents) - throws DefinitionsBuilderException { - if (policySet != null) { - //resolve all provided intents - List providedIntents = new ArrayList(); - for (Intent providedIntent : policySet.getProvidedIntents()) { - if (providedIntent.isUnresolved()) { - Intent resolvedProvidedIntent = definedIntents.get(providedIntent.getName()); - if (resolvedProvidedIntent != null) { - providedIntents.add(resolvedProvidedIntent); - } else { - throw new DefinitionsBuilderException("Provided Intent - " + providedIntent - + " not found for PolicySet " - + policySet); - - } - } else { - providedIntents.add(providedIntent); - } - } - policySet.getProvidedIntents().clear(); - policySet.getProvidedIntents().addAll(providedIntents); - } - } - - private void buildIntentsInMappedPolicies(PolicySet policySet, Map definedIntents) - throws DefinitionsBuilderException { - for (IntentMap intentMap : policySet.getIntentMaps()) { - for (Qualifier qualifier : intentMap.getQualifiers()) { - Intent mappedIntent = qualifier.getIntent(); - if (mappedIntent.isUnresolved()) { - Intent resolvedMappedIntent = definedIntents.get(mappedIntent.getName()); - - if (resolvedMappedIntent != null) { - qualifier.setIntent(resolvedMappedIntent); - } else { - throw new DefinitionsBuilderException("Mapped Intent - " + mappedIntent - + " not found for PolicySet " - + policySet); - - } - } - } - } - } - - private void buildReferredPolicySets(PolicySet policySet, Map definedPolicySets) - throws DefinitionsBuilderException { - - List referredPolicySets = new ArrayList(); - for (PolicySet referredPolicySet : policySet.getReferencedPolicySets()) { - if (referredPolicySet.isUnresolved()) { - PolicySet resolvedReferredPolicySet = definedPolicySets.get(referredPolicySet.getName()); - if (resolvedReferredPolicySet != null) { - referredPolicySets.add(resolvedReferredPolicySet); - } else { - throw new DefinitionsBuilderException("Referred PolicySet - " + referredPolicySet - + "not found for PolicySet - " - + policySet); - } - } else { - referredPolicySets.add(referredPolicySet); - } - } - policySet.getReferencedPolicySets().clear(); - policySet.getReferencedPolicySets().addAll(referredPolicySets); - } - - private void includeReferredPolicySets(PolicySet policySet, PolicySet referredPolicySet) { - for (PolicySet furtherReferredPolicySet : referredPolicySet.getReferencedPolicySets()) { - includeReferredPolicySets(referredPolicySet, furtherReferredPolicySet); - } - policySet.getPolicies().addAll(referredPolicySet.getPolicies()); - policySet.getIntentMaps().addAll(referredPolicySet.getIntentMaps()); - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/definitions/impl/DefinitionsImpl.java b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/definitions/impl/DefinitionsImpl.java deleted file mode 100644 index 224bc0a69a..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/definitions/impl/DefinitionsImpl.java +++ /dev/null @@ -1,73 +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 org.apache.tuscany.sca.definitions.impl; - -import java.util.List; -import java.util.concurrent.CopyOnWriteArrayList; - -import org.apache.tuscany.sca.assembly.Binding; -import org.apache.tuscany.sca.definitions.Definitions; -import org.apache.tuscany.sca.policy.BindingType; -import org.apache.tuscany.sca.policy.ImplementationType; -import org.apache.tuscany.sca.policy.Intent; -import org.apache.tuscany.sca.policy.PolicySet; - -/** - * Provides a concrete implementation for SCADefinitions - * - * @version $Rev$ $Date$ - */ -public class DefinitionsImpl implements Definitions { - private String targetNamespace = null; - private List intents = new CopyOnWriteArrayList(); - private List policySets = new CopyOnWriteArrayList(); - private List bindingTypes = new CopyOnWriteArrayList(); - private List implementationTypes = new CopyOnWriteArrayList(); - private List bindings = new CopyOnWriteArrayList(); - - - public List getBindingTypes() { - return bindingTypes; - } - - public List getImplementationTypes() { - return implementationTypes; - } - - public List getIntents() { - return intents; - } - - public List getPolicySets() { - return policySets; - } - - public String getTargetNamespace() { - return targetNamespace; - } - - public void setTargetNamespace(String ns) { - this.targetNamespace = ns; - } - - public List getBindings() { - return bindings; - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/definitions/util/DefinitionsUtil.java b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/definitions/util/DefinitionsUtil.java deleted file mode 100644 index eb74677236..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/definitions/util/DefinitionsUtil.java +++ /dev/null @@ -1,108 +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 org.apache.tuscany.sca.definitions.util; - -import static org.apache.tuscany.sca.assembly.builder.Messages.DEFINITIONS_VALIDATION; - -import java.util.HashSet; - -import org.apache.tuscany.sca.definitions.Definitions; -import org.apache.tuscany.sca.monitor.Monitor; -import org.apache.tuscany.sca.policy.BindingType; -import org.apache.tuscany.sca.policy.ImplementationType; -import org.apache.tuscany.sca.policy.Intent; -import org.apache.tuscany.sca.policy.PolicySet; - -/** - * Some utility functions to deal with SCADefinitions - * - * @version $Rev$ $Date$ - */ -public class DefinitionsUtil { - - /** - * Add the source set of definitions into the target set of definitions checking that - * definitions artifacts are unique in the process - * - * @param source the input definitions collection - * @param target the definition collection into which source will aggregated - */ - public static void aggregate(Definitions source, Definitions target, Monitor monitor) { - - HashSet intents = new HashSet(target.getIntents()); - for(Intent intent : source.getIntents()){ - if (intents.contains(intent)){ - Monitor.error(monitor, - target, - DEFINITIONS_VALIDATION, - "DuplicateIntent", - intent.getName().toString()); - } else { - target.getIntents().add(intent); - intents.add(intent); - } - } - - HashSet policySets = new HashSet(target.getPolicySets()); - for(PolicySet policySet : source.getPolicySets()){ - if (policySets.contains(policySet)){ - Monitor.error(monitor, - target, - DEFINITIONS_VALIDATION, - "DuplicatePolicySet", - policySet.getName().toString()); - } else { - target.getPolicySets().add(policySet); - policySets.add(policySet); - } - } - - HashSet bindingTypes = new HashSet(target.getBindingTypes()); - for(BindingType bindingType : source.getBindingTypes()){ - if (bindingTypes.contains(bindingType)){ - Monitor.error(monitor, - target, - DEFINITIONS_VALIDATION, - "DuplicateBindingType", - bindingType.getType().toString()); - } else { - target.getBindingTypes().add(bindingType); - bindingTypes.add(bindingType); - } - } - - HashSet implementationTypes = new HashSet(target.getImplementationTypes()); - for(ImplementationType implementationType : source.getImplementationTypes()){ - if (implementationTypes.contains(implementationType)){ - Monitor.error(monitor, - target, - DEFINITIONS_VALIDATION, - "DuplicateImplementationType", - implementationType.getType().toString()); - } else { - target.getImplementationTypes().add(implementationType); - implementationTypes.add(implementationType); - } - } - - target.getBindings().addAll(source.getBindings()); - } - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/interfacedef/Compatibility.java b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/interfacedef/Compatibility.java deleted file mode 100644 index e05a05476a..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/interfacedef/Compatibility.java +++ /dev/null @@ -1,29 +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 org.apache.tuscany.sca.interfacedef; - -/** - * Types of compatibility - */ -public enum Compatibility { - SUPERSET, // The source is a superset of the target - SUBSET, // The source is a subset of the target - MUTUAL, // The source is the same set as the target - INCOMPATIBLE // The source is not compatible with the target -} \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/interfacedef/DataType.java b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/interfacedef/DataType.java deleted file mode 100644 index 386275b41b..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/interfacedef/DataType.java +++ /dev/null @@ -1,120 +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 org.apache.tuscany.sca.interfacedef; - -import java.lang.reflect.Type; - -/** - * Representation of the type of data associated with an operation. Data is - * represented in two forms: the physical form used by the runtime and a logical - * form used by the assembly. The physical form is a Java Type because the - * runtime is written in Java. This may be the same form used by the application - * but it may not; for example, an application that is performing stream - * processing may want a physical form such as an - * {@link java.io.InputStream InputStream} to semantically operate on application - * data such as a purchase order. The logical description is that used by the - * assembly model and is an identifier into some well-known type space; examples - * may be a Java type represented by its Class or an XML type represented by its - * QName. Every data type may also contain metadata describing the expected - * data; for example, it could specify a preferred data binding technology or - * the size of a typical instance. - * - * @version $Rev$ $Date$ - * @tuscany.spi.extension.asclient - */ -public interface DataType extends Cloneable { - /** - * Set the java type for the data - * @param cls - */ - void setPhysical(Class cls); - - /** - * Returns the physical type used by the runtime. - * - * @return the physical type used by the runtime - */ - Class getPhysical(); - - /** - * Get the java generic type - * @return The java generic type - */ - Type getGenericType(); - - /** - * Set the java generic type - * @param genericType - */ - void setGenericType(Type genericType); - - /** - * Returns the logical identifier used by the assembly. The type of this - * value identifies the logical type system in use. Known values are: - *
    - *
  • a Class identifies a Java type by name and - * ClassLoader; this includes Java Classes as they are specializations of - * Type
  • - *
  • a XMLType identifies an XML type by local name and - * namespace
  • - *
- * - * @return the logical type name - */ - L getLogical(); - - /** - * Get the databinding for the given data type - * @return the databinding - */ - String getDataBinding(); - - /** - * Set the databinding for the given data type - * @param dataBinding the dataBinding to set - */ - void setDataBinding(String dataBinding); - - /** - * Clone a data type - * @return The cloned data type - * @throws CloneNotSupportedException - */ - Object clone() throws CloneNotSupportedException; - - /** - * Set the logical type of the data type - * @param logical the logical to set - */ - void setLogical(L logical); - - /** - * Get the databinding-specific metadata - * @param type The java type of the metadata - * @return the databinding-specific metadata - */ - T getMetaData(Class type); - /** - * Set the databinding-specific metadata - * @param type The java type of the metadata - * @param metaData the databinding-specific metadata, such as SDO's commonj.sdo.Type or - * JAXB's javax.xml.bind.JAXBContext - */ - void setMetaData(Class type, T metaData); -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/interfacedef/FaultExceptionMapper.java b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/interfacedef/FaultExceptionMapper.java deleted file mode 100644 index 4aa5f2780a..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/interfacedef/FaultExceptionMapper.java +++ /dev/null @@ -1,63 +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 org.apache.tuscany.sca.interfacedef; - -/** - * This interface represents the mapping between WSDL faults and Java exceptions - * - * @version $Rev$ $Date$ - * @tuscany.spi.extension.inheritfrom - */ -@SuppressWarnings("unchecked") -public interface FaultExceptionMapper { - /** - * Introspect an exception class to find out the fault data type following the WSDL2Java - * mapping rules. The result will be populated into the logical type of the exception data - * type - * - * @param exceptionDataType The data type representing a java exception class - * @param operation TODO - * @param generatingFaultBean If JAXWS Section 3.7 Fault Bean will be generated - * @return true if the introspection can recognize the exception data type - */ - boolean introspectFaultDataType(DataType exceptionDataType, Operation operation, boolean generatingFaultBean); - - /** - * Create a java exception to wrap the fault data - * - * @param exceptionType The DataType for the exception - * @param message message for the exception - * @param faultInfo The fault data - * @param cause of the exception - * @param operation TODO - * @return An instance of java exception to represent the fault - */ - Throwable wrapFaultInfo(DataType exceptionType, String message, Object faultInfo, Throwable cause, Operation operation); - - /** - * Retrieve the fault info from a java exception - * - * @param exception The java exception that represents the fault data - * @param faultBeanClass - * @param operation TODO - * @return The fault data - */ - Object getFaultInfo(Throwable exception, Class faultBeanClass, Operation operation); -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/interfacedef/IncompatibleInterfaceContractException.java b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/interfacedef/IncompatibleInterfaceContractException.java deleted file mode 100644 index 179dc1755e..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/interfacedef/IncompatibleInterfaceContractException.java +++ /dev/null @@ -1,69 +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 org.apache.tuscany.sca.interfacedef; - -/** - * Denotes incompatible service contracts for a wire - * - * @version $Rev$ $Date$ - */ -public class IncompatibleInterfaceContractException extends Exception { - private static final long serialVersionUID = 5127478601823295587L; - private final InterfaceContract source; - private final InterfaceContract target; - private final Operation sourceOperation; - private final Operation targetOperation; - - public IncompatibleInterfaceContractException(String message, InterfaceContract source, InterfaceContract target) { - super(message); - this.source = source; - this.target = target; - this.sourceOperation = null; - this.targetOperation = null; - } - - public IncompatibleInterfaceContractException(String message, - InterfaceContract source, - InterfaceContract target, - Operation sourceOperation, - Operation targetOperation) { - super(message); - this.source = source; - this.target = target; - this.sourceOperation = sourceOperation; - this.targetOperation = targetOperation; - } - - public InterfaceContract getTarget() { - return target; - } - - public InterfaceContract getSource() { - return source; - } - - public Operation getSourceOperation() { - return sourceOperation; - } - - public Operation getTargetOperation() { - return targetOperation; - } -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/interfacedef/Interface.java b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/interfacedef/Interface.java deleted file mode 100644 index e3103b768a..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/interfacedef/Interface.java +++ /dev/null @@ -1,116 +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 org.apache.tuscany.sca.interfacedef; - -import java.util.List; -import java.util.Map; - -import org.apache.tuscany.sca.policy.PolicySubject; - -/** - * Represents a service interface. This interface will typically be extended to - * support concrete interface type systems, such as Java interfaces, WSDL 1.1 - * portTypes and WSDL 2.0 interfaces. - * - * @version $Rev$ $Date$ - * @tuscany.spi.extension.inheritfrom - */ -public interface Interface extends Cloneable, PolicySubject { - - /** - * Returns true if the interface is a remotable interface.. - * - * @return true if the interface is a remotable interface - */ - boolean isRemotable(); - - /** - * Sets whether the interface is a remotable or local interface. - * - * @param remotable indicates whether the interface is remotable or local - */ - void setRemotable(boolean remotable); - - /** - * Returns true if the interface remotable property is set.. - * - * This is used to verify if a @remotable attribute is used in the - * SCDL element. If true, use isRemotable to verify the - * current value - * - * @return - */ - boolean isRemotableSet(); - - /** - * Returns the operations defined on this interface. - * - * @return the operations defined on this interface - */ - List getOperations(); - - /** - * Set the databinding for the interface - * @param dataBinding - * @deprecated Please use resetDataBinding - */ - @Deprecated - void setDefaultDataBinding(String dataBinding); - - /** - * Reset the databinding for the interface - * @param dataBinding - */ - void resetDataBinding(String dataBinding); - - /** - * Set the interface input types by copying those from the - * interface provided - * - * @param newInterface - */ - public void resetInterfaceInputTypes(Interface newInterface); - - /** - * Set the interface output types by copying those from the - * interface provided - * - * @param newInterface - */ - public void resetInterfaceOutputTypes(Interface newInterface); - - /** - * Returns true if the Interface is dynamic. - * - * @return true if the Interface is dynamic. - */ - boolean isDynamic(); - - /** - * Get a map of attributes associated with the interface - * @return A map of attributes - */ - Map getAttributes(); - - /** - * Implementations must support cloning. - */ - Object clone() throws CloneNotSupportedException; - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/interfacedef/InterfaceContract.java b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/interfacedef/InterfaceContract.java deleted file mode 100644 index 054b18c349..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/interfacedef/InterfaceContract.java +++ /dev/null @@ -1,82 +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 org.apache.tuscany.sca.interfacedef; - - -/** - * Interface contracts define one or more business functions. These business - * functions are provided by services and are used by references. - * - * @version $Rev$ $Date$ - * @tuscany.spi.extension.inheritfrom - */ -public interface InterfaceContract extends Cloneable { - - /** - * Returns the interface definition representing the interface for - * invocations from the requestor to the provider. - * - * @return the interface definition representing the interface for - * invocations from the requestor to the provider - */ - Interface getInterface(); - - /** - * Sets the interface definition representing the interface for invocations - * from the requestor to the provider. - * - * @param callInterface the interface definition representing the interface - * for invocations from the requestor to the provider - */ - void setInterface(Interface callInterface); - - /** - * Returns the interface definition representing the interface for - * invocations from the provider to the requestor. - * - * @return the interface definition representing the interface for - * invocations from the provider to the requestor. - */ - Interface getCallbackInterface(); - - /** - * Sets the interface definition representing the interface for invocations - * from the provider to the requestor. - * - * @param callbackInterface the interface definition representing the - * interface for invocations from the provider to the requestor. - */ - void setCallbackInterface(Interface callbackInterface); - - // FIXME: We need a better way to do this - /** - * Convert an interface contract to a unidirectional interface contract - * - * @param isCallback true for a callback interface contract, false for - * a forward interface contract - * @return A unidirectional interface contract, cloned if necessary - */ - InterfaceContract makeUnidirectional(boolean isCallback); - - /** - * Implementations must support cloning. - */ - Object clone() throws CloneNotSupportedException; - -} diff --git a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/interfacedef/InterfaceContractMapper.java b/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/interfacedef/InterfaceContractMapper.java deleted file mode 100644 index d1958eb00b..0000000000 --- a/sca-java-2.x/tags/2.0-M5-RC3/modules/assembly/src/main/java/org/apache/tuscany/sca/interfacedef/InterfaceContractMapper.java +++ /dev/null @@ -1,207 +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 org.apache.tuscany.sca.interfacedef; - -/** - * The InterfaceContractMapper is responsible to match interfaces - * - * @version $Rev$ $Date$ - * @tuscany.spi.extension.asclient - */ -public interface InterfaceContractMapper { - /** - * @param source The source interface contract - * @param target The target interface contract - * @param compatibility The compatibility style - * @param ignoreCallback - * @param silent - * @return - * @throws IncompatibleInterfaceContractException - */ - boolean checkCompatibility(InterfaceContract source, - InterfaceContract target, - Compatibility compatibility, - boolean ignoreCallback, - boolean silent) throws IncompatibleInterfaceContractException; - - /** - * Test if the source data type is compatible with the target data type. The - * compatibility is defined as follows. - *
    - *
  • source's logical type is either the same or subtype of the target's - * logical type - *
- * For example, if the source type is a SDO Customer and the target type is - * a JAXB Customer and both Customer are generated from the same XSD type. - * - * @param source The source data type - * @param target The target data type - * @param passByValue A flag to indicate how the compatibility is checked - *
    - *
  • true: Check the two types as compatible "by-value" (can be copied) - *
  • false: Check the two types as compatible "by-reference" (can be assigned) - *
- * @return true if the source data type is the same or subtype of the target data type - */ - boolean isCompatible(DataType source, DataType target, boolean passByValue); - - /** - * Check if source operation is compatible with the target operation. A source operation is - * compatible with the target operation means the following: - * - *
    - *
  1. compatibility for the two operations is defined as compatibility - * of the signature, i.e., the operation name, the input types, and the output types are the same - * - *
  2. the order of the input and output types of the source operation is the same as the order of - * the input and output types for the corresponding target operation - *
  3. the set of Faults and Exceptions expected by the source operation is the same as or is - * a SUPERSET of the set of Faults and Exceptions specified by the corresponding target operation - *
- * - * Simply speaking, any request from the source operation can be processed by the target operation and - * the normal response or fault/exception from the target operation can be handled by the source operation. - * - * Please note this compatibility check is NOT symmetric. But the following should be guaranteed: - *