From 24ec7b671871ca1fa973800b9e38912ba5357dd4 Mon Sep 17 00:00:00 2001 From: slaws Date: Fri, 2 Oct 2009 14:52:13 +0000 Subject: Tag for 1.5.1-RC4 git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@821039 13f79535-47bb-0310-9956-ffa450edef68 --- .../1.5.1-RC4/demos/alert-aggregator-webapp/README | 82 + .../alert-aggregator-webapp/alert-aggregator.png | Bin 0 -> 36819 bytes .../alert-aggregator-webapp/alert-aggregator.svg | 627 +++++ .../demos/alert-aggregator-webapp/build-dojo.xml | 92 + .../demos/alert-aggregator-webapp/build.xml | 148 ++ .../demos/alert-aggregator-webapp/pom.xml | 356 +++ .../sca/demos/aggregator/AlertTypeNonSDOImpl.java | 339 +++ .../demos/aggregator/AlertsFeedServiceImpl.java | 106 + .../sca/demos/aggregator/AlertsService.java | 40 + .../sca/demos/aggregator/AlertsServiceImpl.java | 126 + .../sca/demos/aggregator/AlertsSourcesService.java | 69 + .../demos/aggregator/AlertsSourcesServiceImpl.java | 183 ++ .../sca/demos/aggregator/AlertsTypeNonSDOImpl.java | 74 + .../sca/demos/aggregator/ConfigTypeNonSDOImpl.java | 55 + .../sca/demos/aggregator/RSSCheckerService.java | 30 + .../demos/aggregator/RSSCheckerServiceImpl.java | 91 + .../sca/demos/aggregator/SourceTypeNonSDOImpl.java | 536 ++++ .../src/main/resources/Alerts.wsdl | 88 + .../src/main/resources/Alerts.xsd | 80 + .../src/main/resources/AlertsSources.wsdl | 124 + .../src/main/resources/alerts-client.composite | 49 + .../src/main/resources/alerts.composite | 85 + .../src/main/resources/sources.xml | 34 + .../src/main/webapp/AlertAggregator.html | 330 +++ .../src/main/webapp/META-INF/sca-contribution.xml | 25 + .../src/main/webapp/WEB-INF/geronimo-web.xml | 37 + .../src/main/webapp/WEB-INF/web.xml | 41 + .../src/main/webapp/pop.png | Bin 0 -> 244 bytes .../src/main/webapp/rss.png | Bin 0 -> 689 bytes .../src/main/webapp/service.smd | 1 + .../src/main/webapp/sources.smd | 1 + .../src/main/webapp/style.css | 176 ++ .../demos/aggregator/AlertsIntegrationTest.java | 97 + .../sca/1.5.1-RC4/demos/bigbank-account/README | 4 + .../1.5.1-RC4/demos/bigbank-account/build-dojo.xml | 92 + .../sca/1.5.1-RC4/demos/bigbank-account/build.xml | 85 + .../sca/1.5.1-RC4/demos/bigbank-account/pom.xml | 76 + .../account/checking/CheckingAccountDetails.java | 50 + .../account/checking/CheckingAccountService.java | 37 + .../checking/CheckingAccountServiceImpl.java | 66 + .../account/savings/SavingsAccountDetails.java | 52 + .../account/savings/SavingsAccountService.java | 35 + .../account/savings/SavingsAccountServiceImpl.java | 66 + .../AccountsDataPasswordCallbackHandler.java | 54 + .../account/security/BigbankCheckingsAcl.java | 48 + ...ckingsDeptAuthImplementationPolicyProvider.java | 90 + .../account/security/CheckingsDeptAuthPolicy.java | 46 + .../CheckingsDeptAuthPolicyInterceptor.java | 79 + .../CheckingsDeptAuthPolicyProviderFactory.java | 75 + .../CheckingsDeptAuthorizationPolicyHandler.java | 67 + .../CheckingsDeptAuthorizationPolicyProcessor.java | 72 + .../bigbank/account/stock/StockAccountDetails.java | 68 + .../bigbank/account/stock/StockAccountService.java | 36 + .../account/stock/StockAccountServiceImpl.java | 60 + .../src/main/resources/CheckingsAccount.composite | 35 + .../main/resources/META-INF/sca-contribution.xml | 42 + ...ca.contribution.processor.StAXArtifactProcessor | 19 + ...rg.apache.tuscany.sca.policy.util.PolicyHandler | 20 + ...ache.tuscany.sca.provider.PolicyProviderFactory | 19 + .../src/main/resources/SavingsAccount.composite | 34 + .../src/main/resources/StockAccount.composite | 34 + .../src/main/resources/definitions.xml | 58 + .../src/main/resources/web/AccountJSON.html | 92 + .../src/main/resources/web/style.css | 22 + .../src/main/resources/wsdl/AccountService.wsdl | 91 + .../sca/1.5.1-RC4/demos/bigbank-calculator/README | 2 + .../1.5.1-RC4/demos/bigbank-calculator/build.xml | 68 + .../sca/1.5.1-RC4/demos/bigbank-calculator/pom.xml | 78 + .../src/main/java/calculator/AddService.java | 25 + .../main/java/calculator/CalculatorService.java | 34 + .../java/calculator/CalculatorServiceImpl.java | 72 + .../src/main/java/calculator/DivideService.java | 25 + .../src/main/java/calculator/MultiplyService.java | 25 + .../src/main/java/calculator/SubtractService.java | 25 + .../java/calculator/demo/CalculatorServer.java | 44 + .../src/main/resources/Calculator.composite | 55 + .../main/resources/calculator/AddServiceImpl.js | 22 + .../resources/calculator/DivideServiceImpl.groovy | 22 + .../resources/calculator/MultiplyServiceImpl.py | 21 + .../resources/calculator/SubtractServiceImpl.rb | 22 + .../sca/1.5.1-RC4/demos/bigbank-stockquote/README | 4 + .../1.5.1-RC4/demos/bigbank-stockquote/build.xml | 67 + .../sca/1.5.1-RC4/demos/bigbank-stockquote/pom.xml | 85 + .../java/stockquote/PasswordCallbackHandler.java | 47 + .../src/main/java/stockquote/StockQuoteImpl.java | 38 + .../main/java/stockquote/StockQuoteService.java | 30 + .../java/stockquote/demo/StockQuoteServer.java | 42 + .../src/main/resources/StockQuote.composite | 33 + .../src/main/resources/definitions.xml | 49 + .../src/main/resources/security.properties | 20 + .../src/main/resources/stockQuote.jks | Bin 0 -> 1986 bytes tags/java/sca/1.5.1-RC4/demos/bigbank/README | 112 + tags/java/sca/1.5.1-RC4/demos/bigbank/bigbank.png | Bin 0 -> 100070 bytes tags/java/sca/1.5.1-RC4/demos/bigbank/bigbank.svg | 537 ++++ .../sca/1.5.1-RC4/demos/bigbank/build-dojo.xml | 92 + tags/java/sca/1.5.1-RC4/demos/bigbank/build.xml | 84 + tags/java/sca/1.5.1-RC4/demos/bigbank/pom.xml | 201 ++ .../main/java/bigbank/account/AccountService.java | 32 + .../java/bigbank/account/AccountServiceImpl.java | 99 + .../java/bigbank/account/feed/AccountFeedImpl.java | 70 + .../main/java/bigbank/client/BigBankClient.java | 50 + .../src/main/java/bigbank/demo/BigBankServer.java | 130 + .../security/BigbankPasswordCallbackHandler.java | 51 + .../main/java/calculator/CalculatorService.java | 34 + .../main/java/stockquote/StockQuoteService.java | 29 + .../bigbank/src/main/resources/BigBank.composite | 85 + .../main/resources/META-INF/sca-contribution.xml | 36 + .../demos/bigbank/src/main/resources/bigbank.jks | Bin 0 -> 1986 bytes .../bigbank/src/main/resources/definitions.xml | 64 + .../bigbank/src/main/resources/security.properties | 20 + .../src/main/resources/web/AccountJSON.html | 92 + .../demos/bigbank/src/main/resources/web/style.css | 22 + .../src/main/resources/wsdl/AccountService.wsdl | 91 + .../src/test/java/test/BigBankTestCase.java | 33 + .../1.5.1-RC4/demos/mortgage-creditcheck/README | 6 + .../1.5.1-RC4/demos/mortgage-creditcheck/build.xml | 66 + .../1.5.1-RC4/demos/mortgage-creditcheck/pom.xml | 75 + .../src/main/java/credit/CreditCheck.java | 26 + .../src/main/java/credit/CreditCheckImpl.java | 34 + .../src/main/java/credit/CreditCheckServer.java | 40 + .../src/main/resources/CreditCheck.composite | 37 + .../src/main/resources/wsdl/credit.wsdl | 81 + .../src/main/webapp/META-INF/sca-contribution.xml | 23 + .../src/main/webapp/WEB-INF/web.xml | 37 + .../1.5.1-RC4/demos/mortgage-loanapproval/README | 60 + .../demos/mortgage-loanapproval/build.xml | 66 + .../mortgage-loanapproval/doc/credit_composite.jpg | Bin 0 -> 73610 bytes .../mortgage-loanapproval/doc/credit_composite.png | Bin 0 -> 51153 bytes .../mortgage-loanapproval/doc/loan_approval.jpg | Bin 0 -> 162536 bytes .../mortgage-loanapproval/doc/loan_approval.png | Bin 0 -> 58247 bytes .../doc/mortgage_assembly0.jpg | Bin 0 -> 145053 bytes .../doc/mortgage_assembly0.png | Bin 0 -> 93773 bytes .../doc/mortgage_assembly1.jpg | Bin 0 -> 181317 bytes .../doc/mortgage_assembly1.png | Bin 0 -> 113404 bytes .../doc/mortgage_assembly2.jpg | Bin 0 -> 180240 bytes .../doc/mortgage_assembly2.png | Bin 0 -> 106656 bytes .../doc/mortgage_composite.jpg | Bin 0 -> 343699 bytes .../doc/mortgage_composite.png | Bin 0 -> 288351 bytes .../doc/mortgage_diagrams.doc | Bin 0 -> 81920 bytes .../doc/mortgage_package1.jpg | Bin 0 -> 181031 bytes .../doc/mortgage_package1.png | Bin 0 -> 34939 bytes .../doc/mortgage_package2.jpg | Bin 0 -> 110930 bytes .../doc/mortgage_package2.png | Bin 0 -> 58993 bytes .../doc/mortgage_scenario.jpg | Bin 0 -> 225690 bytes .../doc/mortgage_scenario.png | Bin 0 -> 106791 bytes .../mortgage-loanapproval/mortgage_assembly.png | Bin 0 -> 106656 bytes .../1.5.1-RC4/demos/mortgage-loanapproval/pom.xml | 83 + .../src/main/java/mortgage/CreditCheck.java | 29 + .../src/main/java/mortgage/CreditCheckImpl.java | 34 + .../src/main/java/mortgage/Customer.java | 76 + .../src/main/java/mortgage/InterestRateQuote.java | 23 + .../main/java/mortgage/InterestRateQuoteImpl.java | 42 + .../src/main/java/mortgage/LoanApproval.java | 27 + .../src/main/java/mortgage/LoanApprovalImpl.java | 84 + .../src/main/java/mortgage/MortgageCalculator.java | 29 + .../main/java/mortgage/MortgageCalculatorImpl.java | 38 + .../src/main/java/mortgage/MortgageClient.java | 44 + .../src/main/java/mortgage/RiskAssessment.java | 27 + .../src/main/java/mortgage/RiskAssessmentImpl.java | 38 + .../src/main/resources/Mortgage.composite | 48 + .../src/main/resources/Mortgage1.composite | 57 + .../resources/MortgageCalculator.componentType | 27 + .../src/main/resources/MortgageCalculator.js | 25 + .../src/main/resources/wsdl/credit.wsdl | 81 + .../test/java/mortgage/MortgageClientTestCase.java | 56 + tags/java/sca/1.5.1-RC4/demos/pom.xml | 52 + tags/java/sca/1.5.1-RC4/demos/xml-bigbank/README | 46 + .../java/sca/1.5.1-RC4/demos/xml-bigbank/build.xml | 63 + tags/java/sca/1.5.1-RC4/demos/xml-bigbank/pom.xml | 115 + .../src/main/java/bigbank/AccountData.java | 36 + .../src/main/java/bigbank/AccountDataImpl.java | 48 + .../src/main/java/bigbank/AccountService.java | 32 + .../src/main/java/bigbank/AccountServiceImpl.java | 84 + .../src/main/java/bigbank/BigBankClient.java | 35 + .../src/main/java/bigbank/BigBankServer.java | 40 + .../src/main/java/bigbank/CurrencyExchange.java | 36 + .../src/main/java/bigbank/ExchangeRate.java | 32 + .../src/main/java/bigbank/ExchangeRateImpl.java | 84 + .../src/main/java/bigbank/StockQuote.java | 38 + .../src/main/java/bigbank/StockValue.java | 38 + .../src/main/resources/BigBank.composite | 51 + .../xml-bigbank/src/main/resources/accounts.xml | 29 + .../xml-bigbank/src/main/resources/customer.xsd | 46 + .../demos/xml-bigbank/src/main/resources/stock.xq | 52 + .../src/main/resources/wsdl/StockQuotes.wsdl | 23 + .../1.5.1-RC4/demos/xml-bigbank/xml-bigbank.png | Bin 0 -> 30396 bytes .../1.5.1-RC4/demos/xml-bigbank/xml-bigbank.svg | 447 ++++ .../java/sca/1.5.1-RC4/distribution/bundle/pom.xml | 790 ++++++ .../sca/1.5.1-RC4/distribution/manifest/pom.xml | 656 +++++ tags/java/sca/1.5.1-RC4/distribution/pom.xml | 334 +++ .../distribution/src/main/assembly/bin.xml | 406 +++ .../distribution/src/main/assembly/src.xml | 219 ++ .../distribution/src/main/release/CHANGES | 1196 +++++++++ .../1.5.1-RC4/distribution/src/main/release/README | 19 + .../distribution/src/main/release/RELEASE_NOTES | 83 + .../distribution/src/main/release/bin/INSTALL | 26 + .../distribution/src/main/release/bin/LICENSE | 2601 ++++++++++++++++++++ .../distribution/src/main/release/bin/NOTICE | 136 + .../distribution/src/main/release/src/BUILDING | 55 + .../distribution/src/main/release/src/LICENSE | 434 ++++ .../distribution/src/main/release/src/NOTICE | 52 + .../distribution/src/main/xsl/srcbuild_paths.xsl | 56 + tags/java/sca/1.5.1-RC4/itest/atom/pom.xml | 193 ++ .../java/test/abdera/impl/NewsServiceImpl.java | 63 + .../test/java/test/abdera/NewsServiceTestCase.java | 61 + .../atom/src/test/resources/news/news.composite | 34 + .../itest/atom/src/test/resources/news/news.wsdl | 167 ++ .../itest/atom/src/test/resources/news/news.xsd | 137 ++ .../1.5.1-RC4/itest/binding-sca-jms/client/pom.xml | 63 + .../client/src/main/java/itest/MyClientImpl.java | 32 + .../client/src/main/java/itest/MyService.java | 28 + .../main/resources/META-INF/sca-contribution.xml | 24 + .../client/src/main/resources/MyClient.composite | 29 + .../src/test/java/itest/MyClientTestCase.java | 57 + .../sca/1.5.1-RC4/itest/binding-sca-jms/pom.xml | 36 + .../itest/binding-sca-jms/service/pom.xml | 63 + .../service/src/main/java/itest/MyService.java | 28 + .../service/src/main/java/itest/MyServiceImpl.java | 28 + .../main/resources/META-INF/sca-contribution.xml | 24 + .../service/src/main/resources/MyService.composite | 28 + .../src/test/java/itest/MyServiceTestCase.java | 52 + .../itest/bpel/helloworld-reference/pom.xml | 210 ++ .../src/test/java/greetings/GreetingsService.java | 31 + .../test/java/greetings/GreetingsServiceImpl.java | 33 + .../src/test/java/greetings/GreetingsTestCase.java | 60 + .../test/java/helloworld/HelloWorldService.java | 29 + .../java/helloworld/HelloWorldServiceImpl.java | 47 + .../test/java/helloworld/HelloWorldTestCase.java | 55 + .../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 | 82 + .../src/test/resources/log4j.properties | 36 + .../sca/1.5.1-RC4/itest/bpel/helloworld-ws/pom.xml | 176 ++ .../src/test/java/helloworld/HelloWorld.java | 45 + .../test/java/helloworld/HelloWorldTestCase.java | 64 + .../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 + .../sca/1.5.1-RC4/itest/bpel/helloworld/pom.xml | 162 ++ .../src/test/java/helloworld/HelloWorld.java | 45 + .../test/java/helloworld/HelloWorldTestCase.java | 63 + .../src/test/resources/helloworld/helloworld.bpel | 66 + .../test/resources/helloworld/helloworld.composite | 36 + .../src/test/resources/helloworld/helloworld.wsdl | 82 + .../helloworld/src/test/resources/log4j.properties | 36 + tags/java/sca/1.5.1-RC4/itest/bpel/pom.xml | 37 + .../sca/1.5.1-RC4/itest/build-was-integration.xml | 68 + tags/java/sca/1.5.1-RC4/itest/builder/pom.xml | 106 + .../tuscany/sca/itest/builder/ComponentDImpl.java | 45 + .../ComponentDReferenceMultiplicityImpl.java | 48 + .../tuscany/sca/itest/builder/ComponentEImpl.java | 36 + .../tuscany/sca/itest/builder/ComponentFImpl.java | 36 + .../apache/tuscany/sca/itest/builder/Service3.java | 33 + .../tuscany/sca/itest/builder/Service3a.java | 33 + .../scenario1/META-INF/sca-contribution.xml | 24 + .../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 | 24 + .../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 | 805 ++++++ .../builder/CompositeBuilderNonWiringImpl.java | 176 ++ .../sca/itest/builder/CustomCompositeBuilder.java | 210 ++ .../tuscany/sca/itest/builder/TestUtils.java | 203 ++ .../1.5.1-RC4/itest/callablereferences-ws/pom.xml | 59 + .../src/main/java/com/example/ExampleClient.java | 26 + .../main/java/com/example/ExampleClientImpl.java | 59 + .../src/main/java/com/example/ExampleService.java | 30 + .../main/java/com/example/ExampleServiceImpl.java | 33 + .../sca/itest/callablerefwsreturn/Alpha.java | 26 + .../sca/itest/callablerefwsreturn/AlphaImpl.java | 96 + .../sca/itest/callablerefwsreturn/Beta.java | 27 + .../sca/itest/callablerefwsreturn/BetaImpl.java | 46 + .../sca/itest/callablerefwsreturn/Gamma.java | 34 + .../sca/itest/callablerefwsreturn/GammaImpl.java | 49 + .../CallableReferenceWsReturnTest.composite | 54 + .../src/main/resources/example.composite | 40 + .../src/test/java/com/example/ExampleTestCase.java | 44 + .../CallableReferenceReturnTestCase.java | 49 + .../sca/1.5.1-RC4/itest/callablereferences/pom.xml | 81 + .../tuscany/sca/itest/callableref/AComponent.java | 39 + .../sca/itest/callableref/AComponentImpl.java | 114 + .../tuscany/sca/itest/callableref/BComponent.java | 30 + .../sca/itest/callableref/BComponentImpl.java | 38 + .../tuscany/sca/itest/callableref/CComponent.java | 27 + .../sca/itest/callableref/CComponentImpl.java | 30 + .../tuscany/sca/itest/callableref/DComponent.java | 30 + .../sca/itest/callableref/DComponentImpl.java | 65 + .../ConversationalService.java | 68 + .../ConversationalServiceImpl.java | 111 + .../tuscany/sca/itest/callablerefreturn/Alpha.java | 27 + .../sca/itest/callablerefreturn/AlphaImpl.java | 86 + .../tuscany/sca/itest/callablerefreturn/Beta.java | 28 + .../sca/itest/callablerefreturn/BetaImpl.java | 44 + .../tuscany/sca/itest/callablerefreturn/Gamma.java | 35 + .../sca/itest/callablerefreturn/GammaImpl.java | 47 + .../CallableReferenceConversationalTest.composite | 29 + .../CallableReferenceReturnTest.composite | 39 + .../main/resources/CallableReferenceTest.composite | 45 + .../src/main/resources/nodeA/CompositeA.composite | 46 + .../resources/nodeA/META-INF/sca-contribution.xml | 22 + .../src/main/resources/nodeB/CompositeB.composite | 43 + .../resources/nodeB/META-INF/sca-contribution.xml | 22 + .../CallableReferenceConversationalTestCase.java | 109 + .../CallableReferenceRemoteTestCase.java | 145 ++ .../CallableReferenceReturnTestCase.java | 48 + .../callableref/CallableReferenceTestCase.java | 83 + tags/java/sca/1.5.1-RC4/itest/callback-api/pom.xml | 50 + .../tuscany/sca/test/CallBackApiCallBack.java | 38 + .../apache/tuscany/sca/test/CallBackApiClient.java | 30 + .../tuscany/sca/test/CallBackApiClientImpl.java | 206 ++ .../tuscany/sca/test/CallBackApiService.java | 50 + .../tuscany/sca/test/CallBackApiServiceImpl.java | 123 + .../src/main/resources/CallBackApiTest.composite | 33 + .../main/resources/META-INF/sca-contribution.xml | 23 + .../tuscany/sca/test/CallBackApiTestCase.java | 62 + .../sca/1.5.1-RC4/itest/callback-basic/pom.xml | 50 + .../tuscany/sca/test/CallBackBasicCallBack.java | 33 + .../tuscany/sca/test/CallBackBasicClient.java | 28 + .../tuscany/sca/test/CallBackBasicClientImpl.java | 135 + .../tuscany/sca/test/CallBackBasicService.java | 37 + .../tuscany/sca/test/CallBackBasicServiceImpl.java | 59 + .../src/main/resources/CallBackBasicTest.composite | 33 + .../main/resources/META-INF/sca-contribution.xml | 23 + .../tuscany/sca/test/CallBackBasicTestCase.java | 50 + .../1.5.1-RC4/itest/callback-complex-type/pom.xml | 45 + .../tuscany/sca/test/CallBackCTypeCallBack.java | 33 + .../tuscany/sca/test/CallBackCTypeClient.java | 28 + .../tuscany/sca/test/CallBackCTypeClientImpl.java | 142 ++ .../tuscany/sca/test/CallBackCTypeService.java | 36 + .../tuscany/sca/test/CallBackCTypeServiceImpl.java | 62 + .../main/resources/CallBackCTypeClient.composite | 33 + .../test/CallBackCTypeServiceImpl.componentType | 28 + .../sca/test/CallBackCTypeTestCaseFIXME.java | 48 + .../itest/callback-composite-scope/pom.xml | 53 + .../org/apache/tuscany/sca/test/Helloworld.java | 34 + .../tuscany/sca/test/HelloworldCallback.java | 32 + .../tuscany/sca/test/HelloworldDelegate.java | 32 + .../tuscany/sca/test/HelloworldDelegateImpl.java | 60 + .../apache/tuscany/sca/test/HelloworldImpl.java | 46 + .../main/resources/HelloworldDelegate.composite | 42 + .../main/resources/META-INF/sca-contribution.xml | 26 + .../apache/tuscany/sca/test/CallbackTestCase.java | 66 + tags/java/sca/1.5.1-RC4/itest/callback-id/pom.xml | 45 + .../tuscany/sca/test/CallBackIdCallBack.java | 31 + .../apache/tuscany/sca/test/CallBackIdClient.java | 28 + .../tuscany/sca/test/CallBackIdClientImpl.java | 147 ++ .../apache/tuscany/sca/test/CallBackIdService.java | 33 + .../tuscany/sca/test/CallBackIdServiceImpl.java | 48 + .../src/main/resources/CallBackIdClient.composite | 33 + .../tuscany/sca/test/CallBackIdTestCase.java | 45 + .../itest/callback-multiple-wires/pom.xml | 45 + .../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 | 45 + .../main/resources/CallbackMultiWireTest.composite | 38 + .../test/callback/CallbackMultiWireTestCase.java | 55 + .../itest/callback-separatethread/pom.xml | 45 + .../sca/itest/CallBackSeparateThreadClient.java | 34 + .../itest/CallBackSeparateThreadClientImpl.java | 172 ++ .../tuscany/sca/itest/EventProcessorCallBack.java | 38 + .../tuscany/sca/itest/EventProcessorService.java | 48 + .../sca/itest/EventProcessorServiceImpl.java | 197 ++ .../resources/CallBackSeparateThreadTest.composite | 31 + .../sca/itest/CallBackSeparateThreadTestCase.java | 64 + .../1.5.1-RC4/itest/callback-set-callback/pom.xml | 45 + .../sca/test/CallBackSetCalbackService.java | 34 + .../sca/test/CallBackSetCallbackBadCallback.java | 38 + .../sca/test/CallBackSetCallbackCallback.java | 31 + .../sca/test/CallBackSetCallbackCallbackImpl.java | 66 + .../sca/test/CallBackSetCallbackClient.java | 28 + .../sca/test/CallBackSetCallbackClientImpl.java | 190 ++ .../test/CallBackSetCallbackObjectCallback.java | 44 + .../sca/test/CallBackSetCallbackServiceImpl.java | 73 + .../resources/CallBackSetCallbackTest.composite | 37 + .../sca/test/CallBackSetCallbackTestCase.java | 49 + .../itest/callback-set-conversation/pom.xml | 45 + .../test/CallBackSetCallbackConvBadCallback.java | 39 + .../sca/test/CallBackSetCallbackConvCallback.java | 34 + .../sca/test/CallBackSetCallbackConvClient.java | 28 + .../test/CallBackSetCallbackConvClientImpl.java | 163 ++ .../CallBackSetCallbackConvNonSerCallback.java | 56 + .../CallBackSetCallbackConvObjectCallback.java | 52 + .../sca/test/CallBackSetCallbackConvService.java | 36 + .../test/CallBackSetCallbackConvServiceImpl.java | 98 + .../CallBackSetCallbackConvTest.composite | 33 + .../sca/test/CallBackSetCallbackConvTestCase.java | 48 + .../sca/1.5.1-RC4/itest/component-type/pom.xml | 47 + .../src/main/java/calculator/AddService.java | 28 + .../src/main/java/calculator/AddServiceImpl.java | 30 + .../src/main/java/calculator/CalculatorClient.java | 45 + .../main/java/calculator/CalculatorService.java | 35 + .../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 | 52 + .../contribution-classes/build-jar.xml | 39 + .../contribution-classes/pom.xml | 203 ++ .../main/java/supplychain/customer/Customer.java | 35 + .../customer/JavaCustomerComponentImpl.java | 63 + .../illegal/JavaCustomerComponentImpl.java | 74 + .../retailer/JavaRetailerComponentImpl.java | 61 + .../main/java/supplychain/retailer/Retailer.java | 28 + .../shipper/JavaShipperComponentImpl.java | 52 + .../src/main/java/supplychain/shipper/Shipper.java | 28 + .../warehouse/JavaWarehouseComponentImpl.java | 47 + .../main/java/supplychain/warehouse/Warehouse.java | 28 + .../complete-supplychain-sca-contribution.xml | 26 + .../META-INF/customer-impl-sca-contribution.xml | 26 + .../customer-interface-sca-contribution.xml | 26 + .../META-INF/customer-sca-contribution.xml | 25 + .../META-INF/illegal-customer-sca-contribution.xml | 26 + .../illegal1-supplychain-sca-contribution.xml | 24 + .../illegal2-supplychain-sca-contribution.xml | 31 + .../META-INF/retailer-sca-contribution.xml | 25 + .../META-INF/shipper-sca-contribution.xml | 25 + .../META-INF/supplychain-sca-contribution.xml | 30 + .../META-INF/warehouse-sca-contribution.xml | 25 + .../supplychain/illegalsupplychain.composite | 48 + .../resources/supplychain/supplychain.composite | 48 + .../JavaWarehouseComponentImpl.componentType | 28 + .../contribution-test/pom.xml | 60 + .../test/contribution/ContributionTestCase.java | 373 +++ .../tuscany/sca/test/contribution/SupplyChain.java | 231 ++ .../TuscanyClassloadingTestCaseFIXME.java | 381 +++ .../itest/contribution-classloader/pom.xml | 51 + .../1.5.1-RC4/itest/contribution-folder/pom.xml | 51 + .../src/test/java/ContributionFolderTestCase.java | 53 + .../src/test/java/ContributionZIPTestCase.java | 53 + .../test/java/calculator/CalculatorService.java | 31 + .../folderWithJars/Calculator.composite | 49 + .../folderWithJars/META-INF/sca-contribution.xml | 23 + .../repository2/folderWithJars/service.jar | Bin 0 -> 2131 bytes .../repository2/folderWithJars/serviceImpl.jar | Bin 0 -> 3641 bytes .../test/resources/repository3/contribution.zip | Bin 0 -> 5478 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 + .../pom.xml | 103 + .../application/META-INF/application.composite | 48 + .../ear-appcomp-contrib-implicit/pom.xml | 103 + .../application/META-INF/application.composite | 62 + .../src/main/resources/isthisignored.composite | 49 + .../ear-nonenhanced/pom.xml | 90 + .../ejb-appcomp-contrib-implicit/pom.xml | 68 + .../main/java/sample/ejb3/HelloworldService.java | 33 + .../java/sample/ejb3/HelloworldServiceBean.java | 40 + .../src/main/resources/META-INF/ejb-jar.composite | 35 + .../src/main/resources/META-INF/openejb-jar.xml | 32 + .../contribution-jee-samples/ejb-enhanced/pom.xml | 68 + .../main/java/sample/ejb3/HelloworldLocal8.java | 33 + .../main/java/sample/ejb3/HelloworldService8.java | 33 + .../java/sample/ejb3/HelloworldService8Bean.java | 50 + .../src/main/resources/META-INF/openejb-jar.xml | 32 + .../src/main/resources/isthisignored.composite | 49 + .../ejb-nonenhanced/pom.xml | 68 + .../main/java/sample/ejb3/HelloworldLocal7.java | 33 + .../main/java/sample/ejb3/HelloworldService7.java | 33 + .../java/sample/ejb3/HelloworldService7Bean.java | 41 + .../java/sample/ejb3/HelloworldService7aBean.java | 41 + .../src/main/resources/META-INF/openejb-jar.xml | 32 + .../contribution-jee-samples/jar-shared/pom.xml | 72 + .../java/sample/java/HelloworldServiceJava.java | 33 + .../sample/java/HelloworldServiceJavaImpl.java | 36 + .../src/main/java/sample/java/JarMain.java | 24 + .../itest/contribution-jee-samples/pom.xml | 59 + .../scajar-ear-appcomp-war-appcomp/pom.xml | 72 + .../main/java/sample/ejb3/HelloworldService.java | 33 + .../java/sample/java/HelloworldServiceJava.java | 28 + .../main/java/sample/pojo/HelloworldClient2.java | 25 + .../java/sample/pojo/HelloworldClient2Impl.java | 39 + .../java/sample/pojo/HelloworldTargetImpl.java | 29 + .../src/main/resources/helloworld.composite | 40 + .../scajar-ear-appcomp/pom.xml | 72 + .../main/java/sample/ejb3/HelloworldService.java | 33 + .../java/sample/java/HelloworldServiceJava.java | 28 + .../main/java/sample/pojo/HelloworldClient2.java | 25 + .../java/sample/pojo/HelloworldClient2Impl.java | 39 + .../java/sample/pojo/HelloworldTargetImpl.java | 29 + .../src/main/resources/helloworld.composite | 40 + .../scajar-ear-nonenhanced/pom.xml | 72 + .../main/java/sample/ejb3/HelloworldService.java | 33 + .../main/java/sample/pojo/HelloworldClient.java | 25 + .../java/sample/pojo/HelloworldClientImpl.java | 34 + .../src/main/resources/helloworld.composite | 34 + .../scazip-ejb-appcomp/build.xml | 24 + .../scazip-ejb-appcomp/pom.xml | 135 + .../main/java/sample/ejb3/HelloworldService.java | 33 + .../main/java/sample/pojo/HelloworldClient.java | 25 + .../java/sample/pojo/HelloworldClientImpl.java | 34 + .../src/main/resources/helloworld.composite | 34 + .../scazip-war-appcomp/build.xml | 24 + .../scazip-war-appcomp/pom.xml | 136 + .../main/java/sample/ejb3/HelloworldService.java | 33 + .../main/java/sample/pojo/HelloworldClient.java | 25 + .../java/sample/pojo/HelloworldClientImpl.java | 34 + .../src/main/resources/helloworld.composite | 29 + .../war-appcomp-contrib-implicit/pom.xml | 66 + .../src/main/java/sample/HelloworldEjbServlet.java | 66 + .../main/java/sample/ejb3/HelloworldService.java | 33 + .../src/main/webapp/WEB-INF/geronimo-web.xml | 49 + .../src/main/webapp/WEB-INF/web.composite | 36 + .../src/main/webapp/WEB-INF/web.xml | 41 + .../src/main/webapp/hello.html | 50 + .../war-nonenhanced/pom.xml | 66 + .../src/main/java/sample/HelloworldEjbServlet.java | 63 + .../main/java/sample/ejb3/HelloworldService.java | 33 + .../src/main/webapp/WEB-INF/geronimo-web.xml | 49 + .../src/main/webapp/WEB-INF/web.xml | 41 + .../war-nonenhanced/src/main/webapp/hello.html | 50 + .../sca/1.5.1-RC4/itest/contribution-jee/pom.xml | 183 ++ .../jee/TestEJBImplementationProvider.java | 48 + .../jee/TestEJBImplementationProviderFactory.java | 47 + .../jee/TestExternalEarModelResolver.java | 141 ++ ...tuscany.sca.contribution.resolver.ModelResolver | 18 + ...cany.sca.provider.ImplementationProviderFactory | 19 + .../jee/ContributionServiceTestCase.java | 329 +++ .../test/contribution/jee/EjbAppcompTestCase.java | 110 + .../contribution/jee/SCAJarEarAppcompTestCase.java | 124 + .../jee/SCAJarEarAppcompWarAppcompTestCase.java | 125 + .../jee/SCAJarEarNonenhancedTestCase.java | 139 ++ .../contribution/jee/SCAZipEjbAppcompTestCase.java | 112 + .../contribution/jee/SCAZipWarAppcompTestCase.java | 114 + .../jee/WARAppcompContribImplicitTestCase.java | 86 + .../test/contribution/jee/WarAppcompTestCase.java | 110 + .../src/test/resources/repository/enhanced-app.ear | Bin 0 -> 16071 bytes .../resources/repository/helloworld-ejb-w-dep.jar | Bin 0 -> 10764 bytes .../test/resources/repository/helloworld-ejb.ear | Bin 0 -> 21310 bytes .../test/resources/repository/helloworld-ejb.jar | Bin 0 -> 10740 bytes .../resources/repository/helloworld-service.jar | Bin 0 -> 7711 bytes .../resources/repository/helloworld-web-w-dep.war | Bin 0 -> 16238 bytes .../test/resources/repository/helloworld-web.war | Bin 0 -> 16209 bytes .../test/resources/repository/simple-app-ear.jar | Bin 0 -> 16204 bytes .../src/test/resources/repository/simple-app.ear | Bin 0 -> 16291 bytes .../1.5.1-RC4/itest/contribution-multiple/pom.xml | 51 + .../src/test/java/hello/Hello.java | 27 + .../src/test/java/hello/HelloImpl.java | 33 + .../src/test/java/helloworld/HelloWorldImpl.java | 38 + .../test/java/helloworld/HelloWorldService.java | 28 + .../java/test/ContributionCycleTestCaseFIXME.java | 121 + .../test/ContributionMultipleTestCaseFIXME.java | 131 + .../src/test/java/test/ContributionTestCase.java | 145 ++ .../META-INF/sca-contribution.xml | 26 + .../contribution-cycle-export/hello.composite | 31 + .../META-INF/sca-contribution.xml | 26 + .../helloworld_one.composite | 35 + .../META-INF/sca-contribution.xml | 25 + .../resources/contribution-export/hello.composite | 31 + .../META-INF/sca-contribution.xml | 26 + .../helloworld_one.composite | 35 + .../META-INF/sca-contribution.xml | 26 + .../helloworld_two.composite | 35 + tags/java/sca/1.5.1-RC4/itest/contribution/pom.xml | 52 + .../src/main/java/calculator/AddService.java | 32 + .../src/main/java/calculator/AddServiceImpl.java | 30 + .../src/main/java/calculator/CalculatorClient.java | 46 + .../main/java/calculator/CalculatorService.java | 35 + .../java/calculator/CalculatorServiceImpl.java | 70 + .../src/main/java/calculator/DivideService.java | 32 + .../main/java/calculator/DivideServiceImpl.java | 30 + .../src/main/java/calculator/MultiplyService.java | 33 + .../main/java/calculator/MultiplyServiceImpl.java | 30 + .../src/main/java/calculator/SubtractService.java | 33 + .../main/java/calculator/SubtractServiceImpl.java | 30 + .../src/main/resources/ContributionTest.composite | 24 + .../main/resources/calculator/Calculator.composite | 51 + .../main/resources/calculator/sca-contribution.xml | 24 + .../contribution/ContributionServiceTestCase.java | 218 ++ .../resources/deployables/sample-calculator.jar | Bin 0 -> 26901 bytes .../resources/repository/sample-calculator.jar | Bin 0 -> 26901 bytes .../sca/1.5.1-RC4/itest/conversations-ws/pom.xml | 60 + .../itest/conversational/BusinessException.java | 41 + .../conversational/ConversationIdService.java | 29 + .../conversational/ConversationalCallback.java | 50 + .../itest/conversational/ConversationalClient.java | 50 + .../ConversationalReferenceClient.java | 36 + .../conversational/ConversationalService.java | 58 + ...ersationalServiceNonConversationalCallback.java | 59 + .../conversational/NonConversationalCallback.java | 42 + .../impl/ConversationAgeComponentImpl.java | 76 + .../impl/ConversationIdComponentImpl.java | 48 + .../impl/ConversationMaxIdleComponentImpl.java | 76 + .../impl/ConversationalClientStatefulImpl.java | 322 +++ ...lientStatefulNonConversationalCallbackImpl.java | 311 +++ .../impl/ConversationalClientStatelessImpl.java | 318 +++ .../impl/ConversationalReferenceClientImpl.java | 43 + .../impl/ConversationalServiceRequestImpl.java | 124 + .../impl/ConversationalServiceStatefulImpl.java | 119 + ...rviceStatefulNonConversationalCallbackImpl.java | 118 + .../impl/ConversationalServiceStatelessImpl.java | 122 + .../ConversationalServiceStatelessScopeImpl.java | 94 + .../Conversational/META-INF/sca-contribution.xml | 22 + .../Conversational/conversational.composite | 169 ++ .../ConversationalServiceStateful.wsdl | 383 +++ .../META-INF/sca-contribution.xml | 22 + .../conversationalWSDL.composite | 46 + .../conversational/ConversationWSDLTestCase.java | 75 + .../NonConversationalCallbackTestCase.java | 198 ++ .../itest/conversational/RequestScopeTestCase.java | 209 ++ .../conversational/StatefulStatefulTestCase.java | 193 ++ .../conversational/StatefulStatelessTestCase.java | 193 ++ .../conversational/StatelessStatefulTestCase.java | 205 ++ .../conversational/StatelessStatelessTestCase.java | 192 ++ .../java/sca/1.5.1-RC4/itest/conversations/pom.xml | 45 + .../java/org/apache/tuscany/sca/itest/Record.java | 29 + .../org/apache/tuscany/sca/itest/TestResult.java | 36 + .../tuscany/sca/itest/conversational/AService.java | 56 + .../tuscany/sca/itest/conversational/Alpha.java | 32 + .../tuscany/sca/itest/conversational/BService.java | 42 + .../tuscany/sca/itest/conversational/Beta.java | 31 + .../tuscany/sca/itest/conversational/CService.java | 42 + .../sca/itest/conversational/Constants.java | 25 + .../conversational/ConversationIdService.java | 29 + .../conversational/ConversationalCallback.java | 50 + .../itest/conversational/ConversationalClient.java | 50 + .../ConversationalReferenceClient.java | 36 + .../conversational/ConversationalService.java | 62 + ...ersationalServiceNonConversationalCallback.java | 62 + .../tuscany/sca/itest/conversational/DService.java | 46 + .../tuscany/sca/itest/conversational/Gamma.java | 41 + .../conversational/NonConversationalCallback.java | 46 + .../itest/conversational/impl/AServiceImpl.java | 111 + .../sca/itest/conversational/impl/AlphaImpl.java | 70 + .../itest/conversational/impl/BServiceImpl.java | 73 + .../sca/itest/conversational/impl/BetaImpl.java | 51 + .../itest/conversational/impl/CServiceImpl.java | 85 + .../impl/ConversationAgeComponentImpl.java | 75 + .../impl/ConversationIdComponentImpl.java | 48 + .../impl/ConversationMaxIdleComponentImpl.java | 75 + .../impl/ConversationalClientStatefulImpl.java | 321 +++ ...lientStatefulNonConversationalCallbackImpl.java | 310 +++ .../impl/ConversationalClientStatelessImpl.java | 317 +++ .../impl/ConversationalReferenceClientImpl.java | 43 + .../impl/ConversationalServiceRequestImpl.java | 123 + .../impl/ConversationalServiceStatefulImpl.java | 117 + ...rviceStatefulNonConversationalCallbackImpl.java | 117 + .../impl/ConversationalServiceStatelessImpl.java | 123 + .../ConversationalServiceStatelessScopeImpl.java | 93 + .../itest/conversational/impl/DServiceImpl.java | 71 + .../sca/itest/conversational/impl/GammaImpl.java | 66 + .../src/main/resources/ConversationAge.composite | 31 + .../main/resources/ConversationUniqueId.composite | 53 + .../src/main/resources/conversationId.composite | 27 + .../main/resources/conversationLifetime.composite | 33 + .../src/main/resources/conversational.composite | 99 + .../conversational/ConversationIdTestCase.java | 54 + .../ConversationLifetimeTestCase.java | 203 ++ .../ConversationUniqueIdTestCase.java | 71 + .../conversational/ConversationalAgeTestCase.java | 103 + .../conversational/ConversationalJ2SETestCase.java | 84 + .../conversational/ConversationalTestCase.java | 649 +++++ tags/java/sca/1.5.1-RC4/itest/corba/pom.xml | 168 ++ .../sca/test/corba/ScenarioFiveTestCase.java | 51 + .../sca/test/corba/ScenarioFourTestCase.java | 149 ++ .../sca/test/corba/ScenarioOneTestCase.java | 371 +++ .../sca/test/corba/ScenarioSixTestCase.java | 228 ++ .../sca/test/corba/ScenarioThreeTestCase.java | 130 + .../sca/test/corba/ScenarioTwoTestCase.java | 139 ++ .../tuscany/sca/test/corba/TestCorbaHost.java | 56 + .../test/corba/TestCorbaHostModuleActivator.java | 41 + .../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 + .../1.5.1-RC4/itest/databindings/common/pom.xml | 126 + .../tuscany/sca/itest/generate/Generate.java | 181 ++ .../resources/generate/DatabindingTestCase.java.vm | 112 + .../src/main/resources/generate/Greeter.wsdl.vm | 103 + .../main/resources/generate/GreeterService.java.vm | 53 + .../generate/GreeterServiceClient.java.vm | 42 + .../generate/GreeterServiceClientImpl.java.vm | 65 + .../resources/generate/GreeterServiceImpl.java.vm | 55 + .../src/main/resources/generate/generate.xsd | 61 + .../common/src/main/resources/wsdl/Dummy.txt | 4 + .../common/src/main/resources/xsd/Annotation.xml | 24 + .../common/src/main/resources/xsd/Annotation.xsd | 38 + .../common/src/main/resources/xsd/Attribute.xml | 24 + .../common/src/main/resources/xsd/Attribute.xsd | 39 + .../src/main/resources/xsd/AttributeReference.xml | 24 + .../src/main/resources/xsd/AttributeReference.xsd | 40 + .../resources/xsd/AttributeWithDefaultValue.xml | 24 + .../resources/xsd/AttributeWithDefaultValue.xsd | 38 + .../main/resources/xsd/AttributeWithFixedValue.xml | 24 + .../main/resources/xsd/AttributeWithFixedValue.xsd | 38 + .../resources/xsd/AttributeWithSDOAliasName.xml | 24 + .../resources/xsd/AttributeWithSDOAliasName.xsd | 38 + .../resources/xsd/AttributeWithSDODataType.xml | 24 + .../resources/xsd/AttributeWithSDODataType.xsd | 38 + .../main/resources/xsd/AttributeWithSDOName.xml | 24 + .../main/resources/xsd/AttributeWithSDOName.xsd | 38 + ...ibuteWithSDOPropertySDOOppositePropertyType.xml | 24 + ...ibuteWithSDOPropertySDOOppositePropertyType.xsd | 38 + .../resources/xsd/AttributeWithSDOPropertyType.xml | 24 + .../resources/xsd/AttributeWithSDOPropertyType.xsd | 38 + .../main/resources/xsd/AttributeWithSDOString.xml | 24 + .../main/resources/xsd/AttributeWithSDOString.xsd | 38 + .../main/resources/xsd/BuiltInAnySimpleType.xml | 24 + .../main/resources/xsd/BuiltInAnySimpleType.xsd | 31 + .../src/main/resources/xsd/BuiltInAnyType.xml | 24 + .../src/main/resources/xsd/BuiltInAnyType.xsd | 31 + .../src/main/resources/xsd/BuiltInAnyURI.xml | 24 + .../src/main/resources/xsd/BuiltInAnyURI.xsd | 31 + .../src/main/resources/xsd/BuiltInBase64Binary.xml | 24 + .../src/main/resources/xsd/BuiltInBase64Binary.xsd | 31 + .../src/main/resources/xsd/BuiltInBoolean.xml | 27 + .../src/main/resources/xsd/BuiltInBoolean.xsd | 31 + .../common/src/main/resources/xsd/BuiltInByte.xml | 25 + .../common/src/main/resources/xsd/BuiltInByte.xsd | 31 + .../common/src/main/resources/xsd/BuiltInDate.xml | 24 + .../common/src/main/resources/xsd/BuiltInDate.xsd | 31 + .../src/main/resources/xsd/BuiltInDateTime.xml | 24 + .../src/main/resources/xsd/BuiltInDateTime.xsd | 31 + .../src/main/resources/xsd/BuiltInDecimal.xml | 23 + .../src/main/resources/xsd/BuiltInDecimal.xsd | 31 + .../src/main/resources/xsd/BuiltInDouble.xml | 25 + .../src/main/resources/xsd/BuiltInDouble.xsd | 31 + .../src/main/resources/xsd/BuiltInDuration.xml | 24 + .../src/main/resources/xsd/BuiltInDuration.xsd | 31 + .../common/src/main/resources/xsd/BuiltInFloat.xml | 24 + .../common/src/main/resources/xsd/BuiltInFloat.xsd | 31 + .../common/src/main/resources/xsd/BuiltInGDay.xml | 24 + .../common/src/main/resources/xsd/BuiltInGDay.xsd | 31 + .../src/main/resources/xsd/BuiltInGMonth.xml | 24 + .../src/main/resources/xsd/BuiltInGMonth.xsd | 31 + .../src/main/resources/xsd/BuiltInGMonthDay.xml | 24 + .../src/main/resources/xsd/BuiltInGMonthDay.xsd | 31 + .../common/src/main/resources/xsd/BuiltInGYear.xml | 24 + .../common/src/main/resources/xsd/BuiltInGYear.xsd | 31 + .../src/main/resources/xsd/BuiltInGYearMonth.xml | 24 + .../src/main/resources/xsd/BuiltInGYearMonth.xsd | 31 + .../src/main/resources/xsd/BuiltInHexBinary.xml | 24 + .../src/main/resources/xsd/BuiltInHexBinary.xsd | 31 + .../common/src/main/resources/xsd/BuiltInID.xml | 24 + .../common/src/main/resources/xsd/BuiltInID.xsd | 31 + .../common/src/main/resources/xsd/BuiltInIDREF.xml | 24 + .../common/src/main/resources/xsd/BuiltInIDREF.xsd | 31 + .../src/main/resources/xsd/BuiltInIDREFS.xml | 24 + .../src/main/resources/xsd/BuiltInIDREFS.xsd | 31 + .../common/src/main/resources/xsd/BuiltInInt.xml | 25 + .../common/src/main/resources/xsd/BuiltInInt.xsd | 31 + .../src/main/resources/xsd/BuiltInInteger.xml | 25 + .../src/main/resources/xsd/BuiltInInteger.xsd | 31 + .../src/main/resources/xsd/BuiltInLanguage.xml | 24 + .../src/main/resources/xsd/BuiltInLanguage.xsd | 31 + .../common/src/main/resources/xsd/BuiltInLong.xml | 25 + .../common/src/main/resources/xsd/BuiltInLong.xsd | 33 + .../src/main/resources/xsd/BuiltInNCName.xml | 24 + .../src/main/resources/xsd/BuiltInNCName.xsd | 31 + .../src/main/resources/xsd/BuiltInNMTOKEN.xml | 24 + .../src/main/resources/xsd/BuiltInNMTOKEN.xsd | 31 + .../src/main/resources/xsd/BuiltInNMTOKENS.xml | 24 + .../src/main/resources/xsd/BuiltInNMTOKENS.xsd | 31 + .../src/main/resources/xsd/BuiltInNOTATION.xml | 24 + .../src/main/resources/xsd/BuiltInNOTATION.xsd | 39 + .../common/src/main/resources/xsd/BuiltInName.xml | 24 + .../common/src/main/resources/xsd/BuiltInName.xsd | 31 + .../main/resources/xsd/BuiltInNegativeInteger.xml | 24 + .../main/resources/xsd/BuiltInNegativeInteger.xsd | 31 + .../resources/xsd/BuiltInNonNegativeInteger.xml | 24 + .../resources/xsd/BuiltInNonNegativeInteger.xsd | 31 + .../resources/xsd/BuiltInNonPositiveInteger.xml | 24 + .../resources/xsd/BuiltInNonPositiveInteger.xsd | 31 + .../main/resources/xsd/BuiltInNormalizedString.xml | 24 + .../main/resources/xsd/BuiltInNormalizedString.xsd | 31 + .../main/resources/xsd/BuiltInPositiveInteger.xml | 24 + .../main/resources/xsd/BuiltInPositiveInteger.xsd | 31 + .../common/src/main/resources/xsd/BuiltInQName.xml | 24 + .../common/src/main/resources/xsd/BuiltInQName.xsd | 31 + .../common/src/main/resources/xsd/BuiltInShort.xml | 25 + .../common/src/main/resources/xsd/BuiltInShort.xsd | 31 + .../src/main/resources/xsd/BuiltInString.xml | 24 + .../src/main/resources/xsd/BuiltInString.xsd | 31 + .../common/src/main/resources/xsd/BuiltInTime.xml | 24 + .../common/src/main/resources/xsd/BuiltInTime.xsd | 31 + .../common/src/main/resources/xsd/BuiltInToken.xml | 24 + .../common/src/main/resources/xsd/BuiltInToken.xsd | 31 + .../src/main/resources/xsd/BuiltInUnsignedByte.xml | 25 + .../src/main/resources/xsd/BuiltInUnsignedByte.xsd | 31 + .../src/main/resources/xsd/BuiltInUnsignedInt.xml | 25 + .../src/main/resources/xsd/BuiltInUnsignedInt.xsd | 31 + .../src/main/resources/xsd/BuiltInUnsignedLong.xml | 25 + .../src/main/resources/xsd/BuiltInUnsignedLong.xsd | 31 + .../main/resources/xsd/BuiltInUnsignedShort.xml | 25 + .../main/resources/xsd/BuiltInUnsignedShort.xsd | 31 + ...lexTypeComplexContentRestrictingComplexType.xml | 26 + ...lexTypeComplexContentRestrictingComplexType.xsd | 44 + .../xsd/ComplexTypeExtendingComplexType.xml | 27 + .../xsd/ComplexTypeExtendingComplexType.xsd | 43 + .../xsd/ComplexTypeExtendingSimpleType.xml | 24 + .../xsd/ComplexTypeExtendingSimpleType.xsd | 41 + ...plexTypeSimpleContentRestrictingComplexType.xml | 24 + ...plexTypeSimpleContentRestrictingComplexType.xsd | 41 + .../main/resources/xsd/ComplexTypeWithAbstract.xml | 27 + .../main/resources/xsd/ComplexTypeWithAbstract.xsd | 47 + .../main/resources/xsd/ComplexTypeWithCDATA.xml | 30 + .../main/resources/xsd/ComplexTypeWithCDATA.xsd | 39 + .../main/resources/xsd/ComplexTypeWithContent.xml | 26 + .../main/resources/xsd/ComplexTypeWithContent.xsd | 37 + .../main/resources/xsd/ComplexTypeWithMixed.xml | 29 + .../main/resources/xsd/ComplexTypeWithMixed.xsd | 39 + .../xsd/ComplexTypeWithOpenAttributes.xml | 24 + .../xsd/ComplexTypeWithOpenAttributes.xsd | 42 + .../resources/xsd/ComplexTypeWithOpenContent.xml | 31 + .../resources/xsd/ComplexTypeWithOpenContent.xsd | 39 + .../xsd/ComplexTypeWithOppositeProperty.xml | 30 + .../xsd/ComplexTypeWithOppositeProperty.xsd | 59 + .../resources/xsd/ComplexTypeWithSDOAliasName.xml | 26 + .../resources/xsd/ComplexTypeWithSDOAliasName.xsd | 38 + .../main/resources/xsd/ComplexTypeWithSDOName.xml | 26 + .../main/resources/xsd/ComplexTypeWithSDOName.xsd | 38 + .../resources/xsd/ComplexTypeWithSDOSequence.xml | 26 + .../resources/xsd/ComplexTypeWithSDOSequence.xsd | 40 + .../resources/xsd/ComplexTypeWithoutContent.xml | 24 + .../resources/xsd/ComplexTypeWithoutContent.xsd | 33 + .../main/resources/xsd/ComplexTypeWithoutName.xml | 26 + .../main/resources/xsd/ComplexTypeWithoutName.xsd | 39 + .../src/main/resources/xsd/DefaultNamespace.xml | 23 + .../src/main/resources/xsd/DefaultNamespace.xsd | 32 + .../common/src/main/resources/xsd/ElementInAll.xml | 27 + .../common/src/main/resources/xsd/ElementInAll.xsd | 40 + .../src/main/resources/xsd/ElementInChoice.xml | 25 + .../src/main/resources/xsd/ElementInChoice.xsd | 48 + .../xsd/ElementOfSDOChangeSummaryType.xml | 29 + .../xsd/ElementOfSDOChangeSummaryType.xsd | 34 + .../xsd/ElementOfSimpleTypeWithDefault.xml | 24 + .../xsd/ElementOfSimpleTypeWithDefault.xsd | 31 + .../resources/xsd/ElementOfSimpleTypeWithFixed.xml | 24 + .../resources/xsd/ElementOfSimpleTypeWithFixed.xsd | 31 + .../xsd/ElementOfSimpleTypeWithSDODataType.xml | 24 + .../xsd/ElementOfSimpleTypeWithSDODataType.xsd | 33 + ...mentOfSimpleTypeWithSDOOppositePropertyType.xml | 24 + ...mentOfSimpleTypeWithSDOOppositePropertyType.xsd | 33 + .../xsd/ElementOfSimpleTypeWithSDOPropertyType.xml | 24 + .../xsd/ElementOfSimpleTypeWithSDOPropertyType.xsd | 32 + .../xsd/ElementOfSimpleTypeWithSDOString.xml | 24 + .../xsd/ElementOfSimpleTypeWithSDOString.xsd | 32 + .../resources/xsd/ElementSubstitutionGroupBase.xml | 40 + .../resources/xsd/ElementSubstitutionGroupBase.xsd | 52 + .../main/resources/xsd/ElementWithMaxOccurs.xml | 25 + .../main/resources/xsd/ElementWithMaxOccurs.xsd | 31 + .../src/main/resources/xsd/ElementWithNillable.xml | 24 + .../src/main/resources/xsd/ElementWithNillable.xsd | 31 + .../main/resources/xsd/ElementWithSDOAliasName.xml | 24 + .../main/resources/xsd/ElementWithSDOAliasName.xsd | 32 + .../src/main/resources/xsd/ElementWithSDOName.xml | 24 + .../src/main/resources/xsd/ElementWithSDOName.xsd | 32 + .../resources/xsd/GlobalElementComplexType.xml | 24 + .../resources/xsd/GlobalElementComplexType.xsd | 31 + .../main/resources/xsd/GlobalElementSimpleType.xml | 24 + .../main/resources/xsd/GlobalElementSimpleType.xsd | 26 + .../common/src/main/resources/xsd/Import.xml | 30 + .../common/src/main/resources/xsd/Import.xsd | 40 + .../src/main/resources/xsd/ImportedSchema.xsd | 33 + .../common/src/main/resources/xsd/Include.xml | 24 + .../common/src/main/resources/xsd/Include.xsd | 36 + .../common/src/main/resources/xsd/Interop.xsd | 138 ++ .../common/src/main/resources/xsd/Notation.xml | 24 + .../common/src/main/resources/xsd/Notation.xsd | 35 + .../common/src/main/resources/xsd/Person.xsd | 30 + .../src/main/resources/xsd/SDOJavaPackage.xml | 25 + .../src/main/resources/xsd/SDOJavaPackage.xsd | 39 + .../main/resources/xsd/SimpleTypeWithAbstract.xml | 24 + .../main/resources/xsd/SimpleTypeWithAbstract.xsd | 40 + .../xsd/SimpleTypeWithExtendedInstanceClass.xml | 24 + .../xsd/SimpleTypeWithExtendedInstanceClass.xsd | 36 + .../resources/xsd/SimpleTypeWithInstanceClass.xml | 24 + .../resources/xsd/SimpleTypeWithInstanceClass.xsd | 37 + .../src/main/resources/xsd/SimpleTypeWithList.xml | 24 + .../src/main/resources/xsd/SimpleTypeWithList.xsd | 37 + .../src/main/resources/xsd/SimpleTypeWithName.xml | 24 + .../src/main/resources/xsd/SimpleTypeWithName.xsd | 36 + .../main/resources/xsd/SimpleTypeWithSDOName.xml | 24 + .../main/resources/xsd/SimpleTypeWithSDOName.xsd | 37 + .../src/main/resources/xsd/SimpleTypeWithUnion.xml | 25 + .../src/main/resources/xsd/SimpleTypeWithUnion.xsd | 46 + .../main/resources/xsd/SimpleTypeWithoutName.xml | 26 + .../main/resources/xsd/SimpleTypeWithoutName.xsd | 38 + .../src/main/resources/xsd/TargetNamespace.xml | 24 + .../src/main/resources/xsd/TargetNamespace.xsd | 34 + .../common/src/main/resources/xsd/datagraph.xsd | 88 + .../common/src/main/resources/xsd/sdoJava.xsd | 88 + .../common/src/main/resources/xsd/sdoModel.xsd | 221 ++ .../sca/itest/generate/GenerateTestCase.java | 49 + .../sca/1.5.1-RC4/itest/databindings/config.png | Bin 0 -> 31222 bytes .../sca/1.5.1-RC4/itest/databindings/config.svg | 117 + .../1.5.1-RC4/itest/databindings/databinding.png | Bin 0 -> 14106 bytes .../1.5.1-RC4/itest/databindings/databinding.svg | 242 ++ .../sca/1.5.1-RC4/itest/databindings/interop.png | Bin 0 -> 23179 bytes .../sca/1.5.1-RC4/itest/databindings/interop.svg | 352 +++ .../1.5.1-RC4/itest/databindings/interop/pom.xml | 223 ++ .../generate/InteropDatabindingTestCase.java.vm | 113 + .../main/resources/generate/JAXBGreeter.wsdl.vm | 103 + .../src/main/resources/generate/SDOGreeter.wsdl.vm | 103 + .../src/main/resources/generate/generate.xml | 159 ++ .../resources/generate/interopgreeter.composite.vm | 78 + .../itest/databindings/jaxb-bottom-up/pom.xml | 239 ++ .../itest/databindings/jaxb/AClientService.java | 29 + .../sca/itest/databindings/jaxb/AService.java | 32 + .../tuscany/sca/itest/databindings/jaxb/Bean1.java | 63 + .../sca/itest/databindings/jaxb/Bean10.java | 25 + .../sca/itest/databindings/jaxb/Bean11.java | 25 + .../tuscany/sca/itest/databindings/jaxb/Bean2.java | 56 + .../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 | 339 +++ .../databindings/jaxb/DocLitBareWsdlTestCase.java | 67 + .../jaxb/GenericsDatabindingTestCase.java | 484 ++++ .../jaxb/PrimitivesDatabindingTestCase.java | 776 ++++++ .../jaxb/StandardTypesDatabindingTestCase.java | 1439 +++++++++++ .../itest/databindings/jaxb-top-down/pom.xml | 194 ++ .../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 | 347 +++ .../topdown/PrimitivesDatabindingTestCase.java | 849 +++++++ .../topdown/StandardTypesDatabindingTestCase.java | 1446 +++++++++++ .../1.5.1-RC4/itest/databindings/jaxbgen/pom.xml | 262 ++ .../src/main/resources/generate/generate.xml | 172 ++ .../jaxbgen/src/main/resources/greeter.composite | 49 + tags/java/sca/1.5.1-RC4/itest/databindings/pom.xml | 47 + .../sca/1.5.1-RC4/itest/databindings/readme.html | 157 ++ .../1.5.1-RC4/itest/databindings/sdogen/pom.xml | 251 ++ .../src/main/resources/generate/generate.xml | 170 ++ .../main/resources/generate/greeter.composite.vm | 56 + .../1.5.1-RC4/itest/distro-license-check/pom.xml | 51 + .../src/test/java/itest/LicenseTestCase.java | 160 ++ tags/java/sca/1.5.1-RC4/itest/domain/pom.xml | 100 + .../src/main/java/calculator/AddService.java | 31 + .../src/main/java/calculator/AddServiceImpl.java | 31 + .../main/java/calculator/AddServiceUpdateImpl.java | 31 + .../main/java/calculator/CalculatorService.java | 38 + .../java/calculator/CalculatorServiceImpl.java | 74 + .../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 | 31 + .../main/java/calculator/SubtractServiceImpl.java | 31 + .../resources/contributionA/Calculator.composite | 44 + .../contributionA/META-INF/sca-contribution.xml | 24 + .../META-INF/sca-deployables/Calculator.composite | 45 + .../META-INF/sca-deployables/Calculator.composite | 32 + .../contributionDependent/Calculator.composite | 36 + .../META-INF/sca-contribution.xml | 24 + .../contributionPrimary/Calculator.composite | 57 + .../META-INF/sca-contribution.xml | 25 + .../sca/itest/domain/ContributionSPIsTestCase.java | 279 +++ .../1.5.1-RC4/itest/domainmgr/basic/client/pom.xml | 48 + .../src/main/java/scatours/client/TestClient.java | 47 + .../main/resources/META-INF/sca-contribution.xml | 25 + .../client/src/main/resources/client.composite | 29 + .../sca/1.5.1-RC4/itest/domainmgr/basic/pom.xml | 42 + .../itest/domainmgr/basic/runtest/pom.xml | 104 + .../java/domainmgr/DomainManagerBasicTestCase.java | 345 +++ .../src/test/resources/domain/cloud.composite | 15 + .../resources/domain/cloud/ClientNode.composite | 13 + .../resources/domain/cloud/ToursNode.composite | 13 + .../resources/domain/cloud/TripsNode.composite | 13 + .../src/test/resources/domain/domain.composite | 15 + .../src/test/resources/domain/workspace.xml | 12 + .../1.5.1-RC4/itest/domainmgr/basic/tours/pom.xml | 42 + .../src/main/java/com/goodvaluetrips/Trips.java | 26 + .../main/java/com/tuscanyscatours/Bookings.java | 26 + .../main/java/com/tuscanyscatours/Checkout.java | 28 + .../java/com/tuscanyscatours/ShoppingCart.java | 40 + .../main/java/com/tuscanyscatours/TripBooking.java | 35 + .../src/main/java/com/tuscanyscatours/Updates.java | 26 + .../main/resources/META-INF/sca-contribution.xml | 25 + .../basic/tours/src/main/resources/tours.composite | 46 + .../1.5.1-RC4/itest/domainmgr/basic/trips/pom.xml | 42 + .../main/java/com/goodvaluetrips/TripProvider.java | 26 + .../src/main/java/com/goodvaluetrips/Trips.java | 26 + .../main/resources/META-INF/sca-contribution.xml | 24 + .../basic/trips/src/main/resources/trips.composite | 30 + .../itest/domainmgr/callback/client/pom.xml | 51 + .../src/main/java/callbackclient/MyClientImpl.java | 52 + .../src/main/java/callbackclient/MyService.java | 34 + .../java/callbackclient/MyServiceCallback.java | 30 + .../src/main/java/callbackclient/TestService.java | 29 + .../main/resources/META-INF/sca-contribution.xml | 23 + .../client/src/main/resources/client.composite | 29 + .../sca/1.5.1-RC4/itest/domainmgr/callback/pom.xml | 41 + .../itest/domainmgr/callback/runtest/pom.xml | 97 + .../src/test/java/callbacktest/TestService.java | 29 + .../domainmgr/DomainManagerCallbackTestCase.java | 358 +++ .../src/test/resources/domain/cloud.composite | 12 + .../resources/domain/cloud/ClientNode.composite | 13 + .../resources/domain/cloud/ServiceNode.composite | 13 + .../src/test/resources/domain/domain.composite | 12 + .../src/test/resources/domain/workspace.xml | 10 + .../itest/domainmgr/callback/service/pom.xml | 51 + .../src/main/java/callbackservice/MyService.java | 34 + .../java/callbackservice/MyServiceCallback.java | 30 + .../main/java/callbackservice/MyServiceImpl.java | 50 + .../main/resources/META-INF/sca-contribution.xml | 23 + .../service/src/main/resources/service.composite | 28 + .../itest/domainmgr/error/payment/pom.xml | 142 ++ .../payment/src/main/java/payment/PaymentImpl.java | 88 + .../src/main/java/scatours/customer/Customer.java | 70 + .../customer/CustomerNotFoundException.java | 58 + .../java/scatours/customer/CustomerRegistry.java | 39 + .../scatours/customer/CustomerRegistryImpl.java | 112 + .../java/scatours/emailgateway/EmailGateway.java | 30 + .../scatours/emailgateway/EmailGatewayImpl.java | 35 + .../src/main/resources/CreditCardPayment.wsdl | 132 + .../main/resources/META-INF/sca-contribution.xml | 24 + .../error/payment/src/main/resources/Payment.wsdl | 83 + .../payment/src/main/resources/payment.composite | 47 + .../sca/1.5.1-RC4/itest/domainmgr/error/pom.xml | 40 + .../itest/domainmgr/error/runtest/pom.xml | 104 + .../java/domainmgr/DomainManagerErrorTestCase.java | 342 +++ .../src/test/resources/domain/cloud.composite | 9 + .../resources/domain/cloud/PaymentNode.composite | 13 + .../src/test/resources/domain/domain.composite | 9 + .../src/test/resources/domain/workspace.xml | 8 + tags/java/sca/1.5.1-RC4/itest/domainmgr/pom.xml | 44 + .../itest/domainmgr/transaction/payment/pom.xml | 142 ++ .../payment/src/main/java/payment/PaymentImpl.java | 88 + .../src/main/java/scatours/customer/Customer.java | 70 + .../customer/CustomerNotFoundException.java | 58 + .../java/scatours/customer/CustomerRegistry.java | 39 + .../scatours/customer/CustomerRegistryImpl.java | 112 + .../java/scatours/emailgateway/EmailGateway.java | 30 + .../scatours/emailgateway/EmailGatewayImpl.java | 35 + .../src/main/resources/CreditCardPayment.wsdl | 132 + .../main/resources/META-INF/sca-contribution.xml | 24 + .../payment/src/main/resources/Payment.wsdl | 83 + .../payment/src/main/resources/definitions.xml | 35 + .../payment/src/main/resources/payment.composite | 47 + .../1.5.1-RC4/itest/domainmgr/transaction/pom.xml | 40 + .../itest/domainmgr/transaction/runtest/pom.xml | 104 + .../DomainManagerTransactionTestCase.java | 328 +++ .../src/test/resources/domain/cloud.composite | 9 + .../resources/domain/cloud/PaymentNode.composite | 13 + .../src/test/resources/domain/domain.composite | 9 + .../src/test/resources/domain/workspace.xml | 8 + .../itest/exceptions-cross-binding-ws/pom.xml | 243 ++ .../test/exceptions/impl/StockExchangeJaxB.java | 71 + .../sca/test/exceptions/impl/StockTraderSDO.java | 39 + .../test/exceptions/impl/StockTraderSDOImpl.java | 136 + .../sdohandgen/InvalidSymbolSDOException.java | 84 + .../sdohandgen/MarketClosedSDOException.java | 76 + .../exceptions/sdohandgen/StockExceptionTest.java | 45 + .../src/main/resources/ExceptionTest.composite | 23 + .../src/main/resources/intracomposite.composite | 42 + .../main/resources/wsdl/StockExceptionTest.wsdl | 148 ++ .../src/main/resources/xsd/StockExceptionTest.xsd | 65 + .../test/exceptions/IntraCompositeTestCase.java | 102 + .../itest/exceptions-cross-binding/pom.xml | 234 ++ .../exceptions/impl/StockExceptionTestJAXB.java | 31 + .../test/exceptions/impl/StockExchangeJaxB.java | 76 + .../sca/test/exceptions/impl/StockTraderSDO.java | 37 + .../test/exceptions/impl/StockTraderSDOImpl.java | 119 + .../sdohandgen/InvalidSymbolSDOException.java | 84 + .../sdohandgen/MarketClosedSDOException.java | 75 + .../exceptions/sdohandgen/StockExceptionTest.java | 45 + .../src/main/resources/ExceptionTest.composite | 25 + .../src/main/resources/intracomposite.composite | 35 + .../resources/wsdl.sdo/StockExceptionTest.wsdl | 141 ++ .../main/resources/wsdl/StockExceptionTest.wsdl | 148 ++ .../src/main/resources/xsd/StockExceptionTest.xsd | 65 + .../test/exceptions/IntraCompositeTestCase.java | 93 + .../1.5.1-RC4/itest/exceptions-simple-ws/pom.xml | 59 + .../main/java/com/example/BusinessException.java | 43 + .../java/com/example/BusinessExceptionMinimal.java | 28 + .../src/main/java/com/example/ExampleClient.java | 23 + .../main/java/com/example/ExampleClientImpl.java | 51 + .../java/com/example/ExampleClientMinimalImpl.java | 54 + .../src/main/java/com/example/ExampleService.java | 28 + .../main/java/com/example/ExampleServiceImpl.java | 32 + .../java/com/example/ExampleServiceMinimal.java | 28 + .../com/example/ExampleServiceMinimalImpl.java | 30 + .../src/main/resources/example.composite | 56 + .../src/main/resources/wsdl/ExampleService.wsdl | 157 ++ .../java/com/example/ExampleMinimalTestCase.java | 44 + .../src/test/java/com/example/ExampleTestCase.java | 44 + tags/java/sca/1.5.1-RC4/itest/exceptions/pom.xml | 45 + .../tuscany/sca/test/exceptions/Checked.java | 58 + .../sca/test/exceptions/ExceptionHandler.java | 32 + .../test/exceptions/ExceptionRemoteThrower.java | 30 + .../sca/test/exceptions/ExceptionThrower.java | 38 + .../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 | 73 + tags/java/sca/1.5.1-RC4/itest/extended-api/pom.xml | 51 + .../tuscany/sca/test/extended/BasicService.java | 26 + .../tuscany/sca/test/extended/MathService.java | 25 + .../sca/test/extended/impl/BasicServiceImpl.java | 45 + .../sca/test/extended/impl/MathServiceImpl.java | 31 + .../src/main/resources/BasicService.composite | 29 + .../src/main/resources/MathService.composite | 29 + .../sca/test/extended/ServiceLocateTestCase.java | 73 + tags/java/sca/1.5.1-RC4/itest/http-jsonrpc/pom.xml | 108 + .../http-jsonrpc/src/test/java/bean/TestBean.java | 50 + .../http-jsonrpc/src/test/java/echo/Echo.java | 65 + .../src/test/java/echo/EchoBusinessException.java | 29 + .../src/test/java/echo/EchoComponentImpl.java | 103 + .../jsonrpc/JSONRPCDataTypeTestCase.java | 193 ++ .../jsonrpc/JSONRPCExceptionTestCase.java | 86 + .../wireformat/jsonrpc/JSONRPCServiceTestCase.java | 70 + .../wireformat/jsonrpc/JSONRPCSmdTestCase.java | 71 + .../wireformat/jsonrpc/JSONRPCBinding.composite | 38 + .../itest/implementation-jee-external-ear/pom.xml | 84 + ...tuscany.sca.contribution.resolver.ModelResolver | 18 + ...cany.sca.provider.ImplementationProviderFactory | 19 + .../src/main/resources/test.composite | 31 + .../src/test/java/itest/Helloworld.java | 25 + .../src/test/java/itest/JeeTestCase.java | 52 + .../itest/MockImplementationProviderFactory.java | 44 + .../test/java/itest/SomeCustomModelResolver.java | 77 + tags/java/sca/1.5.1-RC4/itest/interfaces/pom.xml | 46 + .../itest/interfaces/LocalCallbackInterface.java | 31 + .../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 | 47 + .../itest/interfaces/RemoteCallbackInterface.java | 33 + .../itest/interfaces/RemoteClientComponent.java | 63 + .../interfaces/RemoteClientComponentImpl.java | 81 + .../itest/interfaces/RemoteServiceComponent.java | 38 + .../interfaces/RemoteServiceComponentImpl.java | 54 + .../src/main/resources/InterfacesTest.composite | 40 + .../sca/itest/interfaces/InterfacesTestCase.java | 126 + .../1.5.1-RC4/itest/interop-soap-client/pom.xml | 126 + .../LoopbackInteropDocServiceComponentImpl.java | 46 + .../src/main/resources/default.composite | 35 + .../src/main/resources/wsdl/interopdoc.wsdl | 195 ++ .../interop/client/InteropDocClientTestCase.java | 144 ++ .../itest/interop-soap-round2-client/pom.xml | 124 + .../test/interop/client/InteropTestDocLit.java | 44 + .../src/main/resources/default.composite | 38 + .../src/main/resources/wsdl/interoptestdoclit.wsdl | 155 ++ .../interop/client/InteropTestDocLitTestCase.java | 133 + .../1.5.1-RC4/itest/interop-soap-service/pom.xml | 134 + .../server/InteropDocServiceComponentImpl.java | 47 + .../src/main/resources/wsdl/interopdoc.wsdl | 180 ++ .../src/main/webapp/META-INF/sca/default.scdl | 42 + .../src/main/webapp/WEB-INF/web.xml | 51 + .../sca/1.5.1-RC4/itest/interop-soap-service/t.bat | 34 + .../1.5.1-RC4/itest/java-init-exceptions/pom.xml | 72 + .../src/main/java/itest/ConstructorException.java | 49 + .../java/itest/InitCompositeScopeException.java | 57 + .../main/java/itest/InitRequestScopeException.java | 57 + .../java/itest/InitStatelessScopeException.java | 57 + .../src/main/java/itest/OkImpl.java | 52 + .../src/main/java/itest/Service.java | 26 + .../src/main/resources/test.composite | 43 + .../src/test/java/itest/InitTestCase.java | 150 ++ tags/java/sca/1.5.1-RC4/itest/jaxws/pom.xml | 125 + .../tuscanyscatours/payment/impl/PaymentImpl.java | 35 + .../itest/jaxws/src/main/resources/Payment.wsdl | 83 + .../jaxws/src/main/resources/payment.composite | 33 + .../java/scatours/payment/PaymentTestCase.java | 55 + tags/java/sca/1.5.1-RC4/itest/jms-args/pom.xml | 99 + .../apache/tuscany/sca/binding/jms/ClientImpl.java | 41 + .../apache/tuscany/sca/binding/jms/MyService.java | 29 + .../tuscany/sca/binding/jms/ServiceImpl.java | 38 + .../jms-args/src/main/resources/jndi.properties | 38 + .../main/resources/selectors/selectors.composite | 39 + .../tuscany/sca/binding/jms/ArgsTestCase.java | 61 + .../java/sca/1.5.1-RC4/itest/jms-callbacks/pom.xml | 100 + .../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 + .../src/main/resources/jndi.properties | 39 + .../src/main/resources/simple/client.composite | 44 + .../src/main/resources/simple/tempq.composite | 50 + .../tuscany/sca/binding/jms/CallbackTestCase.java | 60 + .../sca/binding/jms/TempCallbackQTestCase.java | 63 + .../sca/1.5.1-RC4/itest/jms-definitions/pom.xml | 99 + .../tuscany/sca/binding/jms/OneWayClientImpl.java | 41 + .../tuscany/sca/binding/jms/OneWayService.java | 29 + .../tuscany/sca/binding/jms/OneWayServiceImpl.java | 34 + .../src/main/resources/definitions.xml | 28 + .../resources/definitions/definitions.composite | 39 + .../src/main/resources/jndi.properties | 38 + .../sca/binding/jms/DefinitionsTestCase.java | 61 + tags/java/sca/1.5.1-RC4/itest/jms-format/pom.xml | 102 + .../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 | 39 + .../helloworld/HelloWorldServiceImpl.java | 52 + .../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 | 36 + .../helloworld/HelloWorldServiceImpl.java | 45 + .../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 + .../main/resources/jmsbytes/helloworld.composite | 45 + .../resources/jmsbytesxml/helloworld.composite | 45 + .../main/resources/jmsdefault/helloworld.composite | 94 + .../src/main/resources/jmsdefault/helloworld.wsdl | 139 ++ .../main/resources/jmsmessage/helloworld.composite | 46 + .../src/main/resources/jmsmessage/helloworld.wsdl | 129 + .../main/resources/jmsobject/helloworld.composite | 62 + .../src/main/resources/jmsobject/helloworld.wsdl | 355 +++ .../main/resources/jmstext/helloworld.composite | 45 + .../main/resources/jmstextxml/helloworld.composite | 80 + .../src/main/resources/jmstextxml/helloworld.wsdl | 139 ++ .../jmstextxmlinjmsobjectout/helloworld.composite | 52 + .../jmstextxmlinjmsobjectout/helloworld.wsdl | 139 ++ .../jms-format/src/main/resources/jndi.properties | 39 + .../binding/jms/format/FormatJMSBytesTestCase.java | 75 + .../jms/format/FormatJMSBytesXMLTestCase.java | 64 + .../jms/format/FormatJMSDefaultTestCase.java | 74 + .../jms/format/FormatJMSMessageTestCase.java | 64 + .../jms/format/FormatJMSObjectTestCase.java | 80 + .../binding/jms/format/FormatJMSTextTestCase.java | 66 + .../FormatJMSTextXMLInJMSObjectOutTestCase.java | 69 + .../jms/format/FormatJMSTextXMLTestCase.java | 68 + .../itest/jms-nonscaclient-exceptions/pom.xml | 115 + .../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/exceptions/service.composite | 43 + .../src/main/resources/jndi.properties | 40 + .../sca/binding/jms/ExceptionsTestCase.java | 211 ++ .../java/sca/1.5.1-RC4/itest/jms-noreplyto/pom.xml | 102 + .../tuscany/sca/binding/jms/HelloWorldService.java | 26 + .../sca/binding/jms/HelloWorldServiceImpl.java | 30 + .../src/main/resources/jndi.properties | 39 + .../src/main/resources/service.composite | 37 + .../tuscany/sca/binding/jms/NoReplyToTestCase.java | 100 + tags/java/sca/1.5.1-RC4/itest/jms-nulls/pom.xml | 99 + .../apache/tuscany/sca/binding/jms/ClientImpl.java | 41 + .../apache/tuscany/sca/binding/jms/MyService.java | 28 + .../tuscany/sca/binding/jms/ServiceImpl.java | 28 + .../jms-nulls/src/main/resources/jndi.properties | 38 + .../jms-nulls/src/main/resources/nulls.composite | 58 + .../tuscany/sca/binding/jms/NullsTestCase.java | 59 + .../sca/1.5.1-RC4/itest/jms-oneway-nocf/pom.xml | 109 + .../tuscany/sca/binding/jms/OneWayClientImpl.java | 41 + .../tuscany/sca/binding/jms/OneWayService.java | 29 + .../tuscany/sca/binding/jms/OneWayServiceImpl.java | 34 + .../src/main/resources/jndi.properties | 38 + .../main/resources/oneway/OneWayClient.composite | 36 + .../main/resources/oneway/OneWayService.composite | 33 + .../tuscany/sca/binding/jms/OneWayTestCase.java | 58 + .../sca/1.5.1-RC4/itest/jms-responsecf/pom.xml | 109 + .../sca/binding/jms/HelloWorldClientImpl.java | 41 + .../tuscany/sca/binding/jms/HelloWorldService.java | 26 + .../sca/binding/jms/HelloWorldServiceImpl.java | 30 + .../src/main/resources/cf/client.composite | 38 + .../src/main/resources/cf/service.composite | 35 + .../src/main/resources/jndi.properties | 39 + .../sca/binding/jms/ResponseCFTestCase.java | 53 + .../java/sca/1.5.1-RC4/itest/jms-selectors/pom.xml | 99 + .../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/jmsdefault/helloworld.composite | 66 + .../resources/jmsuserprop/helloworld.composite | 62 + .../src/main/resources/jndi.properties | 38 + .../main/resources/selectors/selectors.composite | 68 + .../jms/OperationselectorJMSDefaultTestCase.java | 63 + .../jms/OperationselectorJMSUserPropTestCase.java | 63 + .../tuscany/sca/binding/jms/SelectorsTestCase.java | 75 + tags/java/sca/1.5.1-RC4/itest/jms-topics/pom.xml | 99 + .../tuscany/sca/binding/jms/OneWayClientImpl.java | 41 + .../tuscany/sca/binding/jms/OneWayService.java | 29 + .../tuscany/sca/binding/jms/OneWayServiceImpl.java | 34 + .../jms-topics/src/main/resources/jndi.properties | 38 + .../main/resources/topics/TopicsClient.composite | 35 + .../main/resources/topics/TopicsService.composite | 32 + .../tuscany/sca/binding/jms/TopicsTestCase.java | 58 + tags/java/sca/1.5.1-RC4/itest/jms-ttl/pom.xml | 99 + .../main/java/itest/MockInitialContextFactory.java | 904 +++++++ .../tuscany/sca/binding/jms/ClientIface.java | 30 + .../apache/tuscany/sca/binding/jms/ClientImpl.java | 39 + .../jms-ttl/src/main/resources/jndi.properties | 38 + .../itest/jms-ttl/src/main/resources/ttl.composite | 36 + .../tuscany/sca/binding/jms/TTLTestCase.java | 63 + tags/java/sca/1.5.1-RC4/itest/jms/pom.xml | 109 + .../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 + .../sca/binding/jms/HelloWorldClientImpl.java | 41 + .../tuscany/sca/binding/jms/HelloWorldService.java | 26 + .../sca/binding/jms/HelloWorldServiceImpl.java | 30 + .../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 + .../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 + .../sca/binding/jms/TestMessageProcessor.java | 57 + .../src/main/resources/defaults/client.composite | 33 + .../src/main/resources/defaults/service.composite | 30 + .../src/main/resources/dynamic/client.composite | 36 + .../src/main/resources/exceptions/client.composite | 33 + .../main/resources/exceptions/service.composite | 30 + .../src/main/resources/external/client.composite | 38 + .../src/main/resources/external/service.composite | 35 + .../itest/jms/src/main/resources/jndi.properties | 39 + .../main/resources/nonSCAclient/service.composite | 50 + .../main/resources/oneway/OneWayClient.composite | 35 + .../main/resources/oneway/OneWayService.composite | 32 + .../main/resources/policyHeaders/definitions.xml | 54 + .../policyHeaders/policyHeaders.composite | 46 + .../main/resources/properties/properties.composite | 55 + .../jms/src/main/resources/simple/client.composite | 39 + .../src/main/resources/simple/mpclient.composite | 38 + .../src/main/resources/simple/mpservice.composite | 36 + .../src/main/resources/simple/service.composite | 36 + .../src/main/resources/simple/uriclient.composite | 33 + .../tuscany/sca/binding/jms/DefaultsTestCase.java | 54 + .../sca/binding/jms/DynamicReplyQTestCase.java | 53 + .../sca/binding/jms/ExceptionsTestCase.java | 109 + .../sca/binding/jms/ExternalBrokerTestCase.java | 70 + .../sca/binding/jms/MessageProcessorTestCase.java | 57 + .../sca/binding/jms/NonSCAClientTestCase.java | 142 ++ .../tuscany/sca/binding/jms/OneWayTestCase.java | 58 + .../sca/binding/jms/PolicyHeadersTestCase.java | 95 + .../sca/binding/jms/PropertiesTestCase.java | 93 + .../tuscany/sca/binding/jms/RPCTestCase.java | 54 + .../tuscany/sca/binding/jms/URIRPCTestCase.java | 54 + .../itest/late-reference-resolution/pom.xml | 126 + .../src/main/java/calculator/AddService.java | 31 + .../src/main/java/calculator/AddServiceImpl.java | 31 + .../main/java/calculator/CalculatorService.java | 35 + .../java/calculator/CalculatorServiceImpl.java | 74 + .../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 | 31 + .../main/java/calculator/SubtractServiceImpl.java | 31 + ...ny.sca.endpointresolver.EndpointResolverFactory | 19 + .../src/main/resources/nodeA/Calculator.composite | 41 + .../resources/nodeA/META-INF/sca-contribution.xml | 24 + .../src/main/resources/nodeB/Calculator.composite | 32 + .../resources/nodeB/META-INF/sca-contribution.xml | 24 + .../src/main/resources/nodeC/Calculator.composite | 32 + .../resources/nodeC/META-INF/sca-contribution.xml | 24 + .../sca/BindingScaEndpointResolverFactoryImpl.java | 50 + .../sca/BindingScaEndpointResolverImpl.java | 72 + .../LateReferenceResolutionTestCase.java | 97 + .../src/test/java/calculator/TestRegistryImpl.java | 40 + tags/java/sca/1.5.1-RC4/itest/oneway/build.xml | 127 + tags/java/sca/1.5.1-RC4/itest/oneway/pom.xml | 59 + .../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 | 58 + .../tuscany/sca/itest/oneway/OneWayTestCase.java | 233 ++ .../1.5.1-RC4/itest/operation-overloading/pom.xml | 45 + .../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 | 84 + .../contribution-classes-v2/build-bundles.xml | 39 + .../contribution-classes-v2/pom.xml | 211 ++ .../src/main/java/supplychain/OSGiBundleImpl.java | 121 + .../main/java/supplychain/customer/Customer.java | 33 + .../customer/JavaCustomerComponentImpl.java | 55 + .../customer/OSGiCustomerComponentImpl.java | 51 + .../supplychain/customer/OSGiCustomerImpl.java | 47 + .../retailer/JavaRetailerComponentImpl.java | 57 + .../retailer/OSGiRetailerComponentImpl.java | 46 + .../supplychain/retailer/OSGiRetailerImpl.java | 44 + .../main/java/supplychain/retailer/Retailer.java | 28 + .../shipper/JavaShipperComponentImpl.java | 52 + .../shipper/OSGiShipperComponentImpl.java | 45 + .../java/supplychain/shipper/OSGiShipperImpl.java | 42 + .../src/main/java/supplychain/shipper/Shipper.java | 28 + .../warehouse/JavaWarehouseComponentImpl.java | 51 + .../warehouse/OSGiWarehouseComponentImpl.java | 47 + .../supplychain/warehouse/OSGiWarehouseImpl.java | 44 + .../main/java/supplychain/warehouse/Warehouse.java | 28 + .../src/main/resources/Customer2V2.componentType | 28 + .../src/main/resources/CustomerV2.componentType | 28 + .../META-INF/customer-sca-contribution.xml | 32 + .../META-INF/retailer-sca-contribution.xml | 29 + .../META-INF/shipper-sca-contribution.xml | 27 + .../META-INF/supplychain-sca-contribution.xml | 24 + .../META-INF/warehouse-sca-contribution.xml | 28 + .../src/main/resources/RetailerV2.componentType | 28 + .../src/main/resources/ShipperV2.componentType | 28 + .../src/main/resources/WarehouseV2.componentType | 28 + .../src/main/resources/osgi/Customer.mf | 13 + .../src/main/resources/osgi/Customer2.mf | 13 + .../src/main/resources/osgi/Retailer.mf | 10 + .../src/main/resources/osgi/RetailerJar.mf | 1 + .../src/main/resources/osgi/Shipper.mf | 10 + .../src/main/resources/osgi/SupplyChain.mf | 13 + .../src/main/resources/osgi/Warehouse.mf | 10 + .../src/main/resources/supplychain.composite | 67 + .../contribution-classes/build-bundles.xml | 39 + .../osgi-contribution/contribution-classes/pom.xml | 212 ++ .../src/main/java/supplychain/OSGiBundleImpl.java | 121 + .../main/java/supplychain/customer/Customer.java | 33 + .../customer/JavaCustomerComponentImpl.java | 55 + .../customer/OSGiCustomerComponentImpl.java | 51 + .../supplychain/customer/OSGiCustomerImpl.java | 47 + .../retailer/JavaRetailerComponentImpl.java | 57 + .../retailer/OSGiRetailerComponentImpl.java | 46 + .../supplychain/retailer/OSGiRetailerImpl.java | 44 + .../main/java/supplychain/retailer/Retailer.java | 28 + .../shipper/JavaShipperComponentImpl.java | 52 + .../shipper/OSGiShipperComponentImpl.java | 45 + .../java/supplychain/shipper/OSGiShipperImpl.java | 42 + .../src/main/java/supplychain/shipper/Shipper.java | 28 + .../warehouse/JavaWarehouseComponentImpl.java | 51 + .../warehouse/OSGiWarehouseComponentImpl.java | 47 + .../supplychain/warehouse/OSGiWarehouseImpl.java | 44 + .../main/java/supplychain/warehouse/Warehouse.java | 28 + .../src/main/resources/Customer2V1.componentType | 28 + .../src/main/resources/CustomerV1.componentType | 28 + .../META-INF/customer-sca-contribution.xml | 30 + .../META-INF/retailer-sca-contribution.xml | 26 + .../META-INF/shipper-sca-contribution.xml | 26 + .../META-INF/supplychain-sca-contribution.xml | 24 + .../META-INF/warehouse-sca-contribution.xml | 26 + .../src/main/resources/RetailerV1.componentType | 28 + .../src/main/resources/ShipperV1.componentType | 28 + .../src/main/resources/WarehouseV1.componentType | 28 + .../src/main/resources/osgi/Customer.mf | 13 + .../src/main/resources/osgi/Customer2.mf | 13 + .../src/main/resources/osgi/Retailer.mf | 10 + .../src/main/resources/osgi/RetailerJar.mf | 1 + .../src/main/resources/osgi/Shipper.mf | 10 + .../src/main/resources/osgi/SupplyChain.mf | 13 + .../src/main/resources/osgi/Warehouse.mf | 10 + .../src/main/resources/supplychain.composite | 66 + .../osgi-contribution/contribution-test/pom.xml | 110 + .../sca/contribution/osgi/OSGiTestUtil.java | 73 + .../osgi/test/MixedContributionTestCase.java | 43 + .../osgi/test/NestedBundleTestCase.java | 182 ++ .../osgi/test/OSGiResolverTestCase.java | 257 ++ .../osgi/test/SCAResolverTestCase.java | 240 ++ .../resources/osgi/felix/felix.config.properties | 44 + .../sca/1.5.1-RC4/itest/osgi-contribution/pom.xml | 52 + .../itest/osgi-implementation/build-bundles.xml | 48 + .../1.5.1-RC4/itest/osgi-implementation/pom.xml | 1236 ++++++++++ .../java/callback/client/CallbackCallback.java | 33 + .../main/java/callback/client/CallbackClient.java | 31 + .../callback/client/JavaCallbackClientImpl.java | 141 ++ .../callback/client/OSGiCallbackClientImpl.java | 181 ++ .../java/callback/service/CallbackService.java | 39 + .../callback/service/JavaCallbackServiceImpl.java | 68 + .../callback/service/OSGiCallbackServiceImpl.java | 95 + .../client/ConversationalCallback.java | 50 + .../conversation/client/ConversationalClient.java | 51 + .../client/ConversationalClientActivator.java | 105 + .../client/ConversationalClientServiceFactory.java | 135 + .../client/ConversationalClientStatefulImpl.java | 254 ++ .../client/ConversationalClientStatelessImpl.java | 253 ++ .../ConversationalReferenceClient.java | 38 + .../ConversationalReferenceClientActivator.java | 66 + .../ConversationalReferenceClientImpl.java | 45 + .../service/ConversationalService.java | 65 + .../service/ConversationalServiceActivator.java | 76 + .../service/ConversationalServiceFactory.java | 52 + .../service/ConversationalServiceStatefulImpl.java | 121 + .../ConversationalServiceStatelessImpl.java | 127 + .../src/main/java/helloworld/Greetings.java | 36 + .../src/main/java/helloworld/HelloWorld.java | 29 + .../java/helloworld/JavaGreetingsComponent.java | 73 + .../java/helloworld/JavaHelloWorldComponent.java | 41 + .../main/java/helloworld/OSGiGreetingsImpl.java | 112 + .../main/java/helloworld/OSGiHelloWorldImpl.java | 81 + .../java/helloworld/sdo/HelloWorldService.java | 30 + .../helloworld/sdo/HelloWorldServiceComponent.java | 33 + .../helloworld/sdo/client/HelloWorldClient.java | 30 + .../sdo/client/HelloWorldClientComponent.java | 50 + .../src/main/java/helloworld/ws/HelloWorld.java | 29 + .../main/java/helloworld/ws/HelloWorldService.java | 28 + .../stockquote/OSGiStockQuoteComponentImpl.java | 86 + .../java/stockquote/OSGiStockQuoteFactoryImpl.java | 65 + .../main/java/stockquote/OSGiStockQuoteImpl.java | 119 + .../src/main/java/stockquote/StockQuote.java | 31 + .../src/main/java/supplychain/OSGiBundleImpl.java | 163 ++ .../main/java/supplychain/customer/Customer.java | 39 + .../customer/JavaCustomerComponentImpl.java | 88 + .../customer/OSGiCustomerComponentImpl.java | 106 + .../customer/OSGiCustomerFactoryImpl.java | 65 + .../supplychain/customer/OSGiCustomerImpl.java | 92 + .../OSGiCustomerWithQueryComponentImpl.java | 100 + .../customer/OSGiCustomerWithQueryImpl.java | 82 + .../OSGiStatelessCustomerComponentImpl.java | 30 + .../customer/OSGiStatelessCustomerImpl.java | 35 + .../customer/OSGiVersionedCustomerImpl.java | 98 + .../retailer/JavaRetailerComponentImpl.java | 67 + .../retailer/OSGiRetailerComponentImpl.java | 64 + .../supplychain/retailer/OSGiRetailerImpl.java | 58 + .../retailer/OSGiRetailerServiceImpl.java | 45 + .../OSGiRetailerWithQueryComponentImpl.java | 78 + .../retailer/OSGiRetailerWithQueryImpl.java | 64 + .../retailer/OSGiVersionedRetailerImpl.java | 75 + .../retailer/OSGiVersionedRetailerServiceImpl.java | 47 + .../main/java/supplychain/retailer/Retailer.java | 28 + .../java/supplychain/retailer/RetailerQuery.java | 28 + .../shipper/JavaShipperComponentImpl.java | 58 + .../shipper/OSGiShipperComponentImpl.java | 62 + .../shipper/OSGiShipperFactoryImpl.java | 78 + .../java/supplychain/shipper/OSGiShipperImpl.java | 57 + .../shipper/OSGiShipperServiceImpl.java | 43 + .../shipper/OSGiStatelessShipperComponentImpl.java | 30 + .../shipper/OSGiStatelessShipperServiceImpl.java | 35 + .../shipper/OSGiVersionedShipperImpl.java | 78 + .../shipper/OSGiVersionedShipperServiceImpl.java | 46 + .../src/main/java/supplychain/shipper/Shipper.java | 28 + .../warehouse/JavaWarehouseComponentImpl.java | 48 + .../JavaWarehouseWithQueryComponentImpl.java | 52 + .../warehouse/OSGiWarehouseComponentImpl.java | 57 + .../supplychain/warehouse/OSGiWarehouseImpl.java | 68 + .../warehouse/OSGiWarehouseServiceImpl.java | 62 + .../main/java/supplychain/warehouse/Warehouse.java | 28 + .../java/supplychain/warehouse/WarehouseQuery.java | 28 + .../callback/CallbackClient.componentType | 31 + .../callback/CallbackService.componentType | 27 + .../resources/callback/callback-test1.composite | 39 + .../resources/callback/callback-test2.composite | 41 + .../resources/callback/callback-test3.composite | 38 + .../ConversationalClient.componentType | 37 + .../ConversationalReferenceClient.componentType | 28 + .../ConversationalService.componentType | 29 + .../conversation/conversation-test.composite | 162 ++ .../main/resources/factory/Customer.componentType | 34 + .../main/resources/factory/Retailer.componentType | 29 + .../main/resources/factory/Shipper.componentType | 29 + .../main/resources/factory/Warehouse.componentType | 28 + .../resources/factory/ds/Customer.componentType | 34 + .../resources/factory/ds/Retailer.componentType | 29 + .../resources/factory/ds/Shipper.componentType | 29 + .../resources/factory/ds/Warehouse.componentType | 28 + .../resources/factory/ds/factory-ds-test.composite | 130 + .../main/resources/factory/factory-test.composite | 116 + .../resources/helloworld/Greetings.componentType | 30 + .../resources/helloworld/HelloWorld.componentType | 31 + .../resources/interfaces/Customer.componentType | 31 + .../resources/interfaces/Retailer.componentType | 35 + .../resources/interfaces/Shipper.componentType | 29 + .../resources/interfaces/Warehouse.componentType | 31 + .../resources/interfaces/ds/Customer.componentType | 31 + .../resources/interfaces/ds/Retailer.componentType | 35 + .../resources/interfaces/ds/Shipper.componentType | 29 + .../interfaces/ds/Warehouse.componentType | 31 + .../interfaces/ds/interfaces-ds-test.composite | 57 + .../resources/interfaces/interfaces-test.composite | 57 + .../main/resources/osgi/callback/CallbackClient.mf | 10 + .../resources/osgi/callback/CallbackService.mf | 10 + .../osgi/conversation/ConversationalClient.mf | 11 + .../conversation/ConversationalReferenceClient.mf | 11 + .../osgi/conversation/ConversationalService.mf | 11 + .../src/main/resources/osgi/factory/Customer.mf | 11 + .../src/main/resources/osgi/factory/Retailer.mf | 10 + .../src/main/resources/osgi/factory/Shipper.mf | 10 + .../src/main/resources/osgi/factory/ds/Customer.mf | 10 + .../main/resources/osgi/factory/ds/Customer.xml | 41 + .../src/main/resources/osgi/factory/ds/Retailer.mf | 11 + .../main/resources/osgi/factory/ds/Retailer1.xml | 32 + .../main/resources/osgi/factory/ds/Retailer2.xml | 32 + .../src/main/resources/osgi/factory/ds/Shipper.mf | 10 + .../main/resources/osgi/factory/ds/Shipper1.xml | 34 + .../main/resources/osgi/factory/ds/Shipper2.xml | 34 + .../main/resources/osgi/factory/ds/Warehouse.mf | 11 + .../main/resources/osgi/factory/ds/Warehouse.xml | 32 + .../src/main/resources/osgi/interfaces/Customer.mf | 11 + .../src/main/resources/osgi/interfaces/Retailer.mf | 10 + .../src/main/resources/osgi/interfaces/Shipper.mf | 10 + .../main/resources/osgi/interfaces/ds/Customer.mf | 10 + .../main/resources/osgi/interfaces/ds/Customer.xml | 43 + .../main/resources/osgi/interfaces/ds/Retailer.mf | 11 + .../main/resources/osgi/interfaces/ds/Retailer.xml | 39 + .../main/resources/osgi/interfaces/ds/Shipper.mf | 10 + .../main/resources/osgi/interfaces/ds/Shipper.xml | 34 + .../src/main/resources/osgi/passbyref/Greetings.mf | 11 + .../osgi/properties/ManagedStockQuoteFactory.mf | 11 + .../main/resources/osgi/properties/StockQuote.mf | 10 + .../resources/osgi/properties/StockQuoteFactory.mf | 11 + .../resources/osgi/properties/ds/StockQuote.mf | 12 + .../resources/osgi/properties/ds/StockQuote.xml | 27 + .../osgi/properties/ds/StockQuoteFactory.mf | 12 + .../osgi/properties/ds/StockQuoteFactory.xml | 27 + .../main/resources/osgi/sdo/ds/HelloWorldClient.mf | 14 + .../resources/osgi/sdo/ds/HelloWorldClient.xml | 33 + .../resources/osgi/sdo/ds/HelloWorldService.mf | 13 + .../resources/osgi/sdo/ds/HelloWorldService.xml | 25 + .../src/main/resources/osgi/services/Customer.mf | 11 + .../src/main/resources/osgi/services/Retailer.mf | 10 + .../src/main/resources/osgi/services/Shipper.mf | 10 + .../src/main/resources/osgi/services/Warehouse.mf | 10 + .../main/resources/osgi/services/ds/Customer.mf | 10 + .../main/resources/osgi/services/ds/Customer.xml | 41 + .../main/resources/osgi/services/ds/Retailer.mf | 11 + .../main/resources/osgi/services/ds/Retailer1.xml | 32 + .../main/resources/osgi/services/ds/Retailer2.xml | 32 + .../src/main/resources/osgi/services/ds/Shipper.mf | 10 + .../main/resources/osgi/services/ds/Shipper1.xml | 34 + .../main/resources/osgi/services/ds/Shipper2.xml | 34 + .../main/resources/osgi/services/ds/Warehouse.mf | 11 + .../main/resources/osgi/services/ds/Warehouse1.xml | 32 + .../main/resources/osgi/services/ds/Warehouse2.xml | 32 + .../src/main/resources/osgi/version/Customer1.mf | 11 + .../src/main/resources/osgi/version/Customer2.mf | 11 + .../src/main/resources/osgi/version/Retailer1.mf | 10 + .../src/main/resources/osgi/version/Retailer2.mf | 10 + .../src/main/resources/osgi/version/Shipper1.mf | 10 + .../src/main/resources/osgi/version/Shipper2.mf | 10 + .../src/main/resources/osgi/version/Warehouse1.mf | 10 + .../src/main/resources/osgi/version/Warehouse2.mf | 10 + .../main/resources/osgi/version/ds/Customer1.mf | 10 + .../main/resources/osgi/version/ds/Customer2.mf | 10 + .../main/resources/osgi/version/ds/CustomerV1.xml | 41 + .../main/resources/osgi/version/ds/CustomerV2.xml | 41 + .../main/resources/osgi/version/ds/Retailer1.mf | 11 + .../main/resources/osgi/version/ds/Retailer1V1.xml | 34 + .../main/resources/osgi/version/ds/Retailer1V2.xml | 34 + .../main/resources/osgi/version/ds/Retailer2.mf | 11 + .../main/resources/osgi/version/ds/Retailer2V1.xml | 33 + .../main/resources/osgi/version/ds/Retailer2V2.xml | 33 + .../src/main/resources/osgi/version/ds/Shipper1.mf | 10 + .../main/resources/osgi/version/ds/Shipper1V1.xml | 35 + .../main/resources/osgi/version/ds/Shipper1V2.xml | 35 + .../src/main/resources/osgi/version/ds/Shipper2.mf | 10 + .../main/resources/osgi/version/ds/Shipper2V1.xml | 35 + .../main/resources/osgi/version/ds/Shipper2V2.xml | 35 + .../main/resources/osgi/version/ds/Warehouse1.mf | 11 + .../resources/osgi/version/ds/Warehouse1V1.xml | 32 + .../resources/osgi/version/ds/Warehouse1V2.xml | 32 + .../main/resources/osgi/version/ds/Warehouse2.mf | 11 + .../resources/osgi/version/ds/Warehouse2V1.xml | 32 + .../resources/osgi/version/ds/Warehouse2V2.xml | 32 + .../src/main/resources/osgi/wiring/Customer.mf | 11 + .../src/main/resources/osgi/wiring/Retailer.mf | 10 + .../src/main/resources/osgi/wiring/Shipper.mf | 10 + .../src/main/resources/osgi/wiring/Warehouse.mf | 10 + .../src/main/resources/osgi/wiring/ds/Customer.mf | 10 + .../src/main/resources/osgi/wiring/ds/Customer.xml | 41 + .../src/main/resources/osgi/wiring/ds/Retailer.mf | 11 + .../main/resources/osgi/wiring/ds/Retailer1.xml | 33 + .../main/resources/osgi/wiring/ds/Retailer2.xml | 33 + .../src/main/resources/osgi/wiring/ds/Shipper.mf | 10 + .../src/main/resources/osgi/wiring/ds/Shipper1.xml | 35 + .../src/main/resources/osgi/wiring/ds/Shipper2.xml | 34 + .../src/main/resources/osgi/wiring/ds/Warehouse.mf | 11 + .../main/resources/osgi/wiring/ds/Warehouse1.xml | 33 + .../main/resources/osgi/wiring/ds/Warehouse2.xml | 33 + .../src/main/resources/osgi/ws/HelloWorld.mf | 12 + .../resources/passbyref/Greetings.componentType | 30 + .../resources/passbyref/passbyref-test.composite | 39 + .../resources/properties/StockQuote.componentType | 28 + .../properties/StockQuoteFactory.componentType | 28 + .../properties/ds/StockQuote.componentType | 28 + .../properties/ds/StockQuoteFactory.componentType | 28 + .../properties/ds/properties-ds-test.composite | 39 + .../properties/ds/properties2-ds-test.composite | 54 + .../resources/properties/properties-test.composite | 39 + .../properties/properties2-test.composite | 50 + .../sdo/ds/HelloWorldClient.componentType | 30 + .../sdo/ds/HelloWorldService.componentType | 25 + .../resources/sdo/ds/META-INF/sca-contribution.xml | 26 + .../src/main/resources/sdo/ds/helloworld.wsdl | 88 + .../main/resources/sdo/ds/helloworldsdo.composite | 47 + .../main/resources/services/Customer.componentType | 34 + .../main/resources/services/Retailer.componentType | 33 + .../main/resources/services/Shipper.componentType | 30 + .../resources/services/Warehouse.componentType | 28 + .../resources/services/ds/Customer.componentType | 34 + .../resources/services/ds/Retailer.componentType | 33 + .../resources/services/ds/Shipper.componentType | 30 + .../resources/services/ds/Warehouse.componentType | 28 + .../services/ds/services-ds-test.composite | 90 + .../resources/services/services-test.composite | 89 + .../resources/stockquote/StockQuote.componentType | 28 + .../main/resources/version/Customer1.componentType | 34 + .../main/resources/version/Customer2.componentType | 34 + .../main/resources/version/Retailer1.componentType | 33 + .../main/resources/version/Retailer2.componentType | 33 + .../main/resources/version/Shipper1.componentType | 30 + .../main/resources/version/Shipper2.componentType | 30 + .../resources/version/Warehouse1.componentType | 28 + .../resources/version/Warehouse2.componentType | 28 + .../resources/version/ds/Customer1.componentType | 34 + .../resources/version/ds/Customer2.componentType | 34 + .../resources/version/ds/Retailer1.componentType | 33 + .../resources/version/ds/Retailer2.componentType | 33 + .../resources/version/ds/Shipper1.componentType | 30 + .../resources/version/ds/Shipper2.componentType | 30 + .../resources/version/ds/Warehouse1.componentType | 28 + .../resources/version/ds/Warehouse2.componentType | 28 + .../resources/version/ds/version-ds-test.composite | 184 ++ .../main/resources/version/version-test.composite | 170 ++ .../main/resources/wiring/Customer.componentType | 34 + .../main/resources/wiring/Retailer.componentType | 29 + .../main/resources/wiring/Shipper.componentType | 29 + .../main/resources/wiring/Warehouse.componentType | 28 + .../resources/wiring/ds/Customer.componentType | 34 + .../resources/wiring/ds/Retailer.componentType | 29 + .../main/resources/wiring/ds/Shipper.componentType | 29 + .../resources/wiring/ds/Warehouse.componentType | 28 + .../resources/wiring/ds/wiring-ds-test1.composite | 136 + .../resources/wiring/ds/wiring-ds-test2.composite | 151 ++ .../main/resources/wiring/wiring-test1.composite | 127 + .../main/resources/wiring/wiring-test2.composite | 151 ++ .../src/main/resources/ws/HelloWorld.componentType | 31 + .../src/main/resources/ws/helloworld.wsdl | 80 + .../src/main/resources/ws/ws-helloworld.composite | 51 + .../src/test/java/callback/Callback1TestCase.java | 30 + .../src/test/java/callback/Callback2TestCase.java | 29 + .../src/test/java/callback/Callback3TestCase.java | 29 + .../src/test/java/callback/CallbackTestCase.java | 50 + .../java/conversation/ConversationTestCase.java | 325 +++ .../helloworld/passbyref/PassByRefTestCase.java | 130 + .../src/test/java/helloworld/sdo/SdoTestCase.java | 95 + .../java/helloworld/ws/HelloWorldTestCase.java | 55 + .../test/java/supplychain/SupplyChainTestCase.java | 63 + .../supplychain/VersionedSupplyChainTestCase.java | 71 + .../supplychain/factory/DSFactoryTestCase.java | 32 + .../java/supplychain/factory/FactoryTestCase.java | 72 + .../interfaces/DSInterfacesTestCase.java | 32 + .../supplychain/interfaces/InterfacesTestCase.java | 32 + .../properties/DSProperties2TestCase.java | 31 + .../properties/DSPropertiesTestCase.java | 31 + .../properties/Properties2TestCase.java | 69 + .../supplychain/properties/PropertiesTestCase.java | 58 + .../supplychain/services/DSServicesTestCase.java | 32 + .../supplychain/services/ServicesTestCase.java | 32 + .../supplychain/version/DSVersionTestCase.java | 33 + .../java/supplychain/version/VersionTestCase.java | 33 + .../java/supplychain/wiring/DSWiring1TestCase.java | 33 + .../java/supplychain/wiring/DSWiring2TestCase.java | 33 + .../java/supplychain/wiring/Wiring1TestCase.java | 32 + .../java/supplychain/wiring/Wiring2TestCase.java | 32 + .../src/test/java/test/OSGiTestCase.java | 67 + .../src/test/java/util/OSGiTestUtil.java | 71 + .../resources/osgi/felix/felix.config.properties | 45 + .../itest/osgi-tuscany/osgi-tuscany-test/pom.xml | 99 + .../test/osgi/runtime/impl/EquinoxTestRuntime.java | 92 + .../test/osgi/runtime/impl/FelixTestRuntime.java | 163 ++ .../test/osgi/runtime/impl/OSGiTestRuntime.java | 163 ++ .../tuscany/sca/test/util/OSGiRuntimeLoader.java | 86 + .../tuscany/sca/test/util/TuscanyLoader.java | 136 + .../harness/OSGiTuscanyNonOSGiTestHarness.java | 109 + .../test/osgi/harness/OSGiTuscanyTestHarness.java | 243 ++ .../CalculatorImplementationPoliciesTestCase.java | 61 + .../test/osgi/tuscany/CalculatorRmiTestCase.java | 62 + .../osgi/tuscany/CalculatorScriptTestCase.java | 63 + .../osgi/tuscany/CallbackWsClientTestCase.java | 61 + .../osgi/tuscany/CallbackWsServiceTestCase.java | 61 + .../tuscany/HelloworldWsServiceJmsTestCase.java | 61 + .../tuscany/HelloworldWsServiceSecureTestCase.java | 61 + .../osgi/tuscany/HelloworldWsServiceTestCase.java | 61 + .../test/osgi/tuscany/NonOSGiSamplesTestCase.java | 85 + .../test/osgi/tuscany/OSGiSupplyChainTestCase.java | 71 + .../osgi/tuscany/OSGiTuscanyRuntimeTestCase.java | 137 ++ .../tuscany/TuscanySampleExtensionsTestCase.java | 93 + .../TuscanySamplesUsingOldDomainTestCase.java | 80 + .../src/test/resources/META-INF/MANIFEST.MF | 14 + .../test/resources/felix/felix.config.properties | 45 + tags/java/sca/1.5.1-RC4/itest/osgi-tuscany/pom.xml | 39 + .../osgi-tuscany/test-bundles/build-bundles.xml | 31 + .../itest/osgi-tuscany/test-bundles/pom.xml | 124 + .../java/supplychain/client/SupplyChainClient.java | 115 + .../main/java/supplychain/customer/Customer.java | 37 + .../customer/JavaCustomerComponentImpl.java | 61 + .../retailer/JavaRetailerComponentImpl.java | 59 + .../main/java/supplychain/retailer/Retailer.java | 28 + .../shipper/JavaShipperComponentImpl.java | 50 + .../src/main/java/supplychain/shipper/Shipper.java | 28 + .../warehouse/JavaWarehouseComponentImpl.java | 49 + .../main/java/supplychain/warehouse/Warehouse.java | 28 + .../src/main/resources/META-INF/SupplyChain.mf | 12 + .../main/resources/META-INF/SupplyChainClient.mf | 21 + .../main/resources/META-INF/sca-contribution.xml | 26 + .../resources/supplychain/supplychain.composite | 48 + .../main/resources/supplychain/ws/Customer.wsdl | 135 + .../resources/supplychain/ws/supplychain.composite | 55 + .../osgi-tuscany/tuscany-osgi-installer/pom.xml | 671 +++++ .../sca/installer/InstallerBundleActivator.java | 405 +++ .../itest/osgi-tuscany/tuscany-versioned/pom.xml | 644 +++++ .../itest/policy-security-basicauth/pom.xml | 114 + .../main/java/helloworld/HelloWorldClientImpl.java | 40 + .../main/java/helloworld/HelloWorldService.java | 30 + .../java/helloworld/HelloWorldServiceImpl.java | 46 + .../src/main/resources/definitions.xml | 44 + .../src/main/resources/helloworld.composite | 46 + .../tuscany/sca/itest/BasicAuthTestCase.java | 114 + .../1.5.1-RC4/itest/policy-security-jsr250/pom.xml | 74 + .../src/main/java/helloworld/HelloWorldImpl.java | 51 + .../main/java/helloworld/HelloWorldService.java | 38 + .../src/main/resources/definitions.xml | 29 + .../src/main/resources/helloworld.composite | 33 + .../sca/itest/PolicySecurityJSR250TestCase.java | 54 + .../1.5.1-RC4/itest/policy-security-token/pom.xml | 113 + .../main/java/helloworld/HelloWorldClientImpl.java | 41 + .../main/java/helloworld/HelloWorldService.java | 30 + .../java/helloworld/HelloWorldServiceImpl.java | 54 + .../src/main/resources/definitions.xml | 49 + .../src/main/resources/helloworld.composite | 56 + .../src/main/resources/jndi.properties | 39 + .../tuscany/sca/itest/TokenAuthTestCase.java | 117 + .../sca/1.5.1-RC4/itest/policy-security/pom.xml | 67 + .../src/main/java/helloworld/HelloWorldImpl.java | 33 + .../main/java/helloworld/HelloWorldService.java | 30 + .../src/main/resources/definitions.xml | 33 + .../src/main/resources/helloworld.composite | 34 + .../tuscany/sca/itest/PolicyIdentityTestCase.java | 54 + tags/java/sca/1.5.1-RC4/itest/policy/pom.xml | 68 + .../src/main/java/calculator/AddService.java | 34 + .../src/main/java/calculator/AddServiceImpl.java | 35 + .../src/main/java/calculator/CalculatorClient.java | 69 + .../main/java/calculator/CalculatorService.java | 35 + .../java/calculator/CalculatorServiceImpl.java | 76 + .../src/main/java/calculator/DivideService.java | 33 + .../main/java/calculator/DivideServiceImpl.java | 35 + .../src/main/java/calculator/MultiplyService.java | 28 + .../main/java/calculator/MultiplyServiceImpl.java | 35 + .../src/main/java/calculator/PolicyQNames.java | 43 + .../src/main/java/calculator/SubtractService.java | 28 + .../main/java/calculator/SubtractServiceImpl.java | 35 + .../calculator/policy/TestImplPolicyHandler.java | 84 + .../calculator/policy/TestRefPolicyHandler.java | 61 + .../calculator/policy/TestSvcPolicyHandler.java | 61 + .../policy/src/main/resources/Calculator.composite | 66 + ...ca.contribution.processor.StAXArtifactProcessor | 19 + ...rg.apache.tuscany.sca.policy.util.PolicyHandler | 28 + .../policy/src/main/resources/definitions.xml | 147 ++ .../sca/itest/PoliciedCalculatorTestCase.java | 55 + .../java/org/apache/tuscany/sca/itest/Policy.java | 33 + .../tuscany/sca/itest/TestPolicyProcessor.java | 82 + tags/java/sca/1.5.1-RC4/itest/pom.xml | 734 ++++++ .../itest/promotion-interface-missmatch/pom.xml | 59 + .../main/java/com/example/BusinessException.java | 43 + .../src/main/java/com/example/ExampleClient.java | 23 + .../main/java/com/example/ExampleClientImpl.java | 44 + .../src/main/java/com/example/ExampleService.java | 27 + .../main/java/com/example/ExampleServiceImpl.java | 26 + .../src/main/resources/example.composite | 50 + .../src/main/resources/wsdl/ExampleService.wsdl | 133 + .../main/resources/wsdl/ExampleServiceTypes.xsd | 45 + .../src/test/java/com/example/ExampleTestCase.java | 44 + tags/java/sca/1.5.1-RC4/itest/properties/pom.xml | 91 + .../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 | 134 + .../tuscany/sca/itest/PropertyComponentImpl.java | 188 ++ .../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 | 39 + .../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 | 78 + .../java/test/jaxb/props/ReturnCodeProperties.java | 109 + .../main/java/test/jaxb/props/package-info.java | 27 + .../ConstructorPropertyInjection.composite | 41 + .../properties/src/main/resources/Outer.composite | 43 + .../src/main/resources/OuterPropertyTest.composite | 42 + .../src/main/resources/PropertyTest.composite | 255 ++ .../properties/src/main/resources/customer.xsd | 30 + .../properties/src/main/resources/fileProperty.txt | 21 + .../src/main/resources/manyValuesFileProperty.txt | 23 + .../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 | 99 + .../tuscany/sca/itest/OuterPropertyTestCase.java | 164 ++ .../apache/tuscany/sca/itest/PropertyTestCase.java | 468 ++++ .../cdi/ConstructorPropertyInjectionTestCase.java | 44 + .../1.5.1-RC4/itest/recursive-multi-level/pom.xml | 45 + .../main/java/mysca/test/myservice/MyService.java | 26 + .../java/mysca/test/myservice/MyServiceImpl.java | 48 + .../mysca/test/myservice/MySimpleTotalService.java | 25 + .../test/myservice/MySimpleTotalServiceImpl.java | 46 + .../src/main/resources/TotalService1Auto.composite | 52 + .../src/main/resources/TotalService2Auto.composite | 49 + .../src/main/resources/TotalService3Auto.composite | 52 + .../java/test/sca/tests/MultiLevelTestCase.java | 68 + tags/java/sca/1.5.1-RC4/itest/recursive-ws/pom.xml | 87 + .../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 | 35 + .../main/java/recursive/ComposerClientImpl.java | 38 + .../src/main/java/recursive/ComposerImpl.java | 34 + .../src/main/java/recursive/ComposerServer.java | 35 + .../src/main/resources/Client.composite | 28 + .../src/main/resources/Inner.composite | 26 + .../src/main/resources/Outer.composite | 31 + .../bindingoverride/InnerComposite.composite | 36 + .../bindingoverride/OuterComposite.composite | 40 + .../policy/PolicyInnerComposite.composite | 37 + .../policy/PolicyOuterComposite.composite | 41 + .../src/main/resources/policy/definitions.xml | 39 + .../bindingoverride/BindingOverrideTestCase.java | 57 + .../src/test/java/policy/PolicyTestCase.java | 74 + .../java/recursive/ComposerClientTestCase.java | 68 + .../test/java/recursive/ComposerTestServer.java | 55 + tags/java/sca/1.5.1-RC4/itest/recursive/pom.xml | 45 + .../src/main/java/circular/include/DemoClass.java | 27 + .../src/main/java/composite/CompositeClient.java | 42 + .../recursive/src/main/java/composite/Source.java | 24 + .../src/main/java/composite/SourceCallback.java | 24 + .../src/main/java/composite/SourceImpl.java | 59 + .../recursive/src/main/java/composite/Target.java | 30 + .../src/main/java/composite/TargetImpl.java | 44 + .../itest/recursive/src/main/java/foo/A.java | 28 + .../itest/recursive/src/main/java/foo/B.java | 36 + .../itest/recursive/src/main/java/foo/I.java | 23 + .../recursive/src/main/java/policy/Target.java | 26 + .../src/main/java/policy/TargetClientImpl.java | 33 + .../src/main/java/policy/TargetServiceImpl.java | 29 + .../src/main/java/sample/ComponentAImpl.java | 41 + .../src/main/java/sample/ComponentCImpl.java | 41 + .../src/main/java/sample/ComponentEImpl.java | 38 + .../src/main/java/sample/ComponentFImpl.java | 45 + .../recursive/src/main/java/sample/Service1.java | 27 + .../recursive/src/main/java/test/Aggregator.java | 27 + .../src/main/java/test/AggregatorImpl.java | 55 + .../src/main/java/test/InnerSourceImpl.java | 34 + .../src/main/java/test/OuterSourceImpl.java | 34 + .../itest/recursive/src/main/java/test/Source.java | 30 + .../src/main/java/test1/composite/Target.java | 23 + .../src/main/java/test1/composite/TargetOne.java | 29 + .../src/main/java/test1/composite/TargetTwo.java | 29 + .../src/main/resources/AComposite.composite | 30 + .../src/main/resources/BComposite.composite | 45 + .../src/main/resources/CComposite.composite | 44 + .../src/main/resources/Composite1.composite | 42 + .../src/main/resources/Composite2.composite | 43 + .../src/main/resources/Composite3.composite | 48 + .../src/main/resources/Demo1Composite.composite | 27 + .../src/main/resources/Demo2Composite.composite | 28 + .../recursive/src/main/resources/Inner.composite | 45 + .../src/main/resources/InnerComposite.composite | 41 + .../src/main/resources/InnerComposite2.composite | 33 + .../main/resources/META-INF/sca-contribution.xml | 24 + .../recursive/src/main/resources/Outer.composite | 39 + .../src/main/resources/OuterComposite.composite | 39 + .../itest/recursive/src/main/resources/foo/foo.png | Bin 0 -> 571816 bytes .../recursive/src/main/resources/foo/o1.composite | 31 + .../recursive/src/main/resources/foo/o2.composite | 31 + .../recursive/src/main/resources/foo/o3.composite | 35 + .../recursive/src/main/resources/foo/o4.composite | 37 + .../policy/PolicyInnerComposite.composite | 32 + .../policy/PolicyOuterComposite.composite | 35 + .../src/main/resources/policy/definitions.xml | 46 + .../main/resources/test1/InnerComposite.composite | 39 + .../main/resources/test1/OuterComposite.composite | 27 + .../circular/include/CircularIncludeTestCase.java | 39 + .../src/test/java/composite/CompositeTestCase.java | 50 + .../LocateServiceEmbeddedSCADomainTestCase.java | 113 + .../composite/LocateServiceSCADomainTestCase.java | 73 + .../recursive/src/test/java/foo/O2TestCase.java | 32 + .../recursive/src/test/java/foo/O4TestCase.java | 39 + .../src/test/java/policy/PolicyTestCase.java | 68 + .../itest/recursive/src/test/java/sample/C.java | 32 + .../recursive/src/test/java/sample/CImpl.java | 80 + .../src/test/java/sample/NestedTestCase.java | 96 + .../sample/RecursiveCompositeTestCaseFIXME.java | 53 + .../itest/recursive/src/test/java/sample/X.java | 32 + .../recursive/src/test/java/sample/XImpl.java | 37 + .../itest/recursive/src/test/java/sample/Y.java | 32 + .../recursive/src/test/java/sample/YImpl.java | 38 + .../src/test/java/test/InnerTestCase.java | 51 + .../src/test/java/test/OuterTestCase.java | 53 + .../test1/composite/CompositeClientTestCase.java | 62 + .../1.5.1-RC4/itest/references-collection/pom.xml | 53 + .../src/main/java/crawler/Crawler.java | 46 + .../src/main/java/crawler/CrawlerController.java | 41 + .../java/crawler/impl/CrawlerControllerImpl.java | 80 + .../src/main/java/crawler/impl/CrawlerImpl.java | 69 + .../main/java/crawler/impl/SpecialCrawlerImpl.java | 69 + .../src/main/resources/test.composite | 51 + .../crawler/ReferenceMultiplicityTestCase.java | 134 + tags/java/sca/1.5.1-RC4/itest/references/pom.xml | 53 + .../tuscany/sca/itest/references/AComponent.java | 40 + .../sca/itest/references/AComponentImpl.java | 126 + .../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 | 27 + .../sca/itest/references/DComponentImpl.java | 35 + .../resources/AutoWiredReferencesTest.composite | 65 + .../main/resources/InnerReferencesTest.composite | 54 + .../resources/ManualWiredReferencesTest.composite | 64 + .../references/AutoWiredReferenceTestCase.java | 102 + .../itest/references/InnerReferenceTestCase.java | 94 + .../references/ManualWiredReferenceTestCase.java | 93 + tags/java/sca/1.5.1-RC4/itest/scopes/pom.xml | 47 + .../scopes/CompositeScopeStateVerifierImpl.java | 46 + .../scopes/RequestScopeStateVerifierImpl.java | 50 + .../tuscany/sca/itest/scopes/StateVerifier.java | 25 + .../scopes/src/main/resources/scopes.composite | 33 + .../org/apache/tuscany/sca/test/ScopeTestCase.java | 93 + .../java/sca/1.5.1-RC4/itest/serialization/pom.xml | 66 + .../servicereference/ConversationalService.java | 81 + .../ConversationalServiceCallback.java | 37 + .../ConversationalServiceImpl.java | 141 ++ .../itest/servicereference/SCAManagedClient.java | 51 + .../servicereference/SCAManagedClientImpl.java | 115 + .../SCAManagedConversationalClient.java | 55 + .../SCAManagedConversationalClientImpl.java | 132 + .../itest/servicereference/StatelessService.java | 46 + .../servicereference/StatelessServiceCallback.java | 34 + .../servicereference/StatelessServiceImpl.java | 82 + .../utils/ServiceReferenceUtils.java | 127 + .../ServiceReferenceSerializationTest.composite | 45 + .../src/main/resources/nestedcomposite.composite | 33 + .../SerializeServiceReferenceTestCase.java | 145 ++ tags/java/sca/1.5.1-RC4/itest/services/pom.xml | 46 + .../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 | 25 + .../tuscany/sca/itest/services/DComponent.java | 25 + .../tuscany/sca/itest/services/DComponentImpl.java | 34 + .../main/resources/META-INF/sca-contribution.xml | 22 + .../src/main/resources/ServicesTest.composite | 70 + .../sca/itest/services/ServicesTestCase.java | 105 + tags/java/sca/1.5.1-RC4/itest/spring/pom.xml | 112 + .../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 | 35 + .../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 | 32 + .../src/main/java/helloworld/HelloWorldImpl.java | 38 + .../src/main/java/helloworld/HelloWorldProxy.java | 42 + .../itest/spring/src/main/java/mock/TestBean.java | 31 + .../spring/src/main/java/mock/TestBeanImpl.java | 42 + .../src/main/java/mock/TestHelloWorldBean.java | 39 + .../spring/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 + .../resources/context/access/Calculator.composite | 49 + .../context/access/CalculatorService-context.xml | 45 + .../resources/context/imports/Calculator.composite | 49 + .../META-INF/spring/CalculatorService-context.xml | 42 + .../META-INF/spring/SpringImport-context.xml | 41 + .../META-INF/spring/SpringHelloWorld-context.xml | 31 + .../META-INF/spring/StockQuoteService-context.xml | 33 + .../multiple/META-INF/spring/beanRefContext.xml | 35 + .../context/multiple/StockQuote.composite | 35 + .../implementation/policies/Calculator.composite | 61 + .../implementation/policies/CalculatorJass.config | 3 + .../policies/CalculatorLogMessages.properties | 18 + .../META-INF/spring/CalculatorService-context.xml | 39 + .../implementation/policies/definitions.xml | 40 + .../location/folder/SpringFolderLocation.composite | 39 + .../location/folder/springapp/META-INF/MANIFEST.MF | 3 + .../META-INF/spring/SpringSCAProperty-context.xml | 38 + .../location/jar/SpringJarLocation.composite | 39 + .../main/resources/location/jar/spring-context.jar | Bin 0 -> 1471 bytes .../spring/SpringDelegationHelloWorld-context.xml | 37 + .../META-INF/spring/SpringHelloWorld-context.xml | 31 + .../spring/SpringDelegationHelloWorld.composite | 32 + .../sca/itest/spring/SpringHelloWorld.composite | 32 + .../spring/SpringExplicitReference-context.xml | 33 + .../spring/SpringImplicitReference-context.xml | 34 + .../references/SpringExplicitReference.composite | 32 + .../references/SpringImplicitReference.composite | 39 + .../spring/SpringExplicitService-context.xml | 39 + .../spring/SpringImplicitService-context.xml | 31 + .../sca/services/SpringExplicitService.composite | 33 + .../sca/services/SpringImplicitService.composite | 32 + .../spring/annotations/Calculator.composite | 60 + .../META-INF/spring/CalculatorService-context.xml | 41 + .../test/java/context/access/CalculatorClient.java | 60 + .../java/context/access/ContextAccessTestCase.java | 32 + .../java/context/imports/CalculatorClient.java | 54 + .../context/imports/ContextImportsTestCase.java | 32 + .../context/multiple/MultipleContextTestCase.java | 32 + .../java/context/multiple/StockQuoteServer.java | 50 + .../implementation/policies/CalculatorClient.java | 79 + .../policies/ImplementationPoliciesTestCase.java | 32 + .../folder/SpringFolderLocationTestCase.java | 45 + .../location/jar/SpringJarLocationTestCase.java | 45 + .../itest/spring/AbstractHelloWorldTestCase.java | 43 + .../sca/itest/spring/AbstractSCATestCase.java | 70 + .../tuscany/sca/itest/spring/HelloWorld.java | 31 + .../tuscany/sca/itest/spring/HelloWorldProxy.java | 41 + .../spring/SpringDelegationHelloWorldTestCase.java | 35 + .../sca/itest/spring/SpringHelloWorldTestCase.java | 36 + .../sca/itest/spring/TestHelloWorldBean.java | 38 + .../itest/spring/TestHelloWorldDelegatorBean.java | 42 + .../SpringExplicitReferenceTestCase.java | 45 + .../SpringImplicitReferenceTestCase.java | 48 + .../services/SpringExplicitServiceTestCase.java | 40 + .../services/SpringImplicitServiceTestCase.java | 38 + .../java/spring/annotations/CalculatorClient.java | 64 + .../annotations/SpringAnnotationsTestCase.java | 32 + tags/java/sca/1.5.1-RC4/itest/transaction/pom.xml | 91 + .../transaction/AccountNotFoundException.java | 36 + .../sca/itest/transaction/AccountService.java | 31 + .../sca/itest/transaction/AccountServiceImpl.java | 70 + .../transaction/CheckingAccountServiceImpl.java | 143 ++ .../sca/itest/transaction/OverDraftException.java | 36 + .../transaction/SavingsAccountServiceImpl.java | 133 + .../sca/itest/transaction/TransferService.java | 31 + .../sca/itest/transaction/TransferServiceImpl.java | 64 + .../src/main/resources/accounts.composite | 43 + .../transaction/src/main/resources/definitions.xml | 99 + .../src/main/resources/log4j.properties | 29 + .../transaction/ConcurrentXAResourceTestCase.java | 119 + .../sca/itest/transaction/TransactionTestCase.java | 53 + tags/java/sca/1.5.1-RC4/itest/validation/pom.xml | 166 ++ .../main/java/binding/ejb/account/Customer.java | 35 + .../java/binding/ejb/account/CustomerImpl.java | 57 + .../java/binding/ejb/calculator/AddService.java | 27 + .../binding/ejb/calculator/AddServiceHome.java | 31 + .../main/java/binding/jms/HelloWorldService.java | 26 + .../java/binding/jms/HelloWorldServiceImpl.java | 27 + .../main/java/calculator/warning/AddService.java | 32 + .../java/calculator/warning/AddServiceImpl.java | 44 + .../warning/AddServiceImplWithServiceName.java | 46 + .../java/calculator/warning/CalculatorClient.java | 45 + .../java/calculator/warning/CalculatorService.java | 35 + .../calculator/warning/CalculatorServiceImpl.java | 70 + .../java/calculator/warning/DivideService.java | 28 + .../java/calculator/warning/DivideServiceImpl.java | 35 + .../java/calculator/warning/MultiplyService.java | 28 + .../calculator/warning/MultiplyServiceImpl.java | 35 + .../java/calculator/warning/PropertyService.java | 29 + .../calculator/warning/PropertyServiceImpl.java | 41 + .../java/calculator/warning/SubtractService.java | 28 + .../calculator/warning/SubtractServiceImpl.java | 35 + .../SubtractServiceImplWithServiceName.java | 38 + .../src/main/java/impl/java/AddService.java | 29 + .../src/main/java/impl/java/AddServiceImpl.java | 44 + .../src/main/java/impl/java/CalculatorClient.java | 45 + .../src/main/java/impl/java/CalculatorService.java | 35 + .../main/java/impl/java/CalculatorServiceImpl.java | 75 + .../src/main/java/impl/java/DivideService.java | 28 + .../src/main/java/impl/java/DivideServiceImpl.java | 35 + .../src/main/java/impl/java/MultiplyService.java | 28 + .../main/java/impl/java/MultiplyServiceImpl.java | 35 + .../src/main/java/impl/java/SubtractService.java | 28 + .../main/java/impl/java/SubtractServiceImpl.java | 35 + .../src/main/java/impl/osgi/OSGiTestImpl.java | 50 + .../src/main/java/impl/osgi/OSGiTestInterface.java | 31 + .../java/impl/osgi/OSGiTestWithPropertyImpl.java | 65 + .../src/main/java/impl/spring/HelloWorld.java | 36 + .../src/main/java/impl/spring/HelloWorldProxy.java | 41 + .../main/java/impl/spring/TestHelloWorldBean.java | 36 + .../java/interfacejava/xml/CalculatorService.java | 35 + .../interfacejava/xml/CalculatorServiceImpl.java | 75 + .../Calculator.composite | 49 + .../DuplicateComponentName/Calculator.composite | 53 + .../Calculator.composite | 55 + .../dummyImplementation.composite | 31 + .../Calculator.composite | 56 + .../dummyImplementation.composite | 32 + .../DuplicatePropertyName/Calculator.composite | 51 + .../DuplicateReferenceName/Calculator.composite | 50 + .../META-INF/sca/SpringHelloWorld-context.xml | 31 + .../Calculator.composite | 53 + .../NoComponentImplementation/Calculator.composite | 52 + .../NoCompositeNamespace/Calculator.composite | 48 + .../NoMatchingBinding/Calculator.composite | 54 + .../PromotedReferenceNotFound/Calculator.composite | 51 + .../PromotedServiceNotFound/Calculator.composite | 51 + .../PropertyAttribute/Calculator.composite | 55 + .../CalculatorNullMustSupply.composite | 53 + .../CalculatorOverrideManyAttribute.composite | 54 + .../PropertyNotFound/Calculator.composite | 50 + .../Calculator.composite | 51 + .../Calculator.composite | 49 + .../Calculator.composite | 49 + .../ReferenceNotFound/Calculator.composite | 50 + .../ReferenceWithoutTargets/Calculator.composite | 49 + .../Calculator.composite | 54 + .../Calculator.composite | 54 + .../resources/XsdValidation/Calculator.composite | 51 + .../ContributionReadException/Calculator.composite | 53 + .../Calculator.composite | 53 + .../Calculator.composite | 54 + .../UnexpectedBindingElement/Calculator.composite | 55 + .../Calculator.composite | 54 + .../Calculator.composite | 54 + .../InvalidWsdlElementAttr/Calculator.composite | 58 + .../wsxml/MissingImportedXSD/helloworld.wsdl | 76 + .../MissingImportedXSD/helloworldwsjms.composite | 34 + .../wsxml/MustUseWsdlBinding/Calculator.composite | 59 + .../wsxml/WsdlBindingDoesNotMatch/helloworld.wsdl | 92 + .../helloworldwsjms.composite | 34 + .../wsxml/WsdlPortTypeDoesNotMatch/helloworld.wsdl | 92 + .../helloworldwsclient.composite | 45 + .../wsxml/WsdlServiceDoesNotMatch/helloworld.wsdl | 92 + .../helloworldwsjms.composite | 34 + .../UnknownEJBSessionType/account.composite | 35 + .../bindingejb/UnknownEJBVersion/account.composite | 35 + .../DoesntProcessActivationSpec/service.composite | 36 + .../DoesntProcessDestinationType/service.composite | 35 + .../DoesntProcessHeaders/service.composite | 36 + .../DoesntProcessResourceAdapter/service.composite | 32 + .../service.composite | 35 + .../service.composite | 35 + .../service.composite | 35 + .../InvalidCorrelationScheme/service.composite | 35 + .../InvalidJMSDeliveryMode/service.composite | 36 + .../InvalidJMSPriority/service.composite | 36 + .../service.composite | 35 + .../MissingActivationSpecName/service.composite | 36 + .../MissingConnectionFactoryName/service.composite | 36 + .../service.composite | 36 + .../service.composite | 36 + .../MustStartWithSchema/service.composite | 36 + .../bindingjms/UnexpectedElement/service.composite | 40 + .../bindingjms/UnknownTokenInURI/service.composite | 36 + .../AttributePackageMissing/Calculator.composite | 55 + .../AttributeNameSpaceMissing/Calculator.composite | 55 + .../AttributeURIMissing/Calculator.composite | 55 + .../META-INF/sca-contribution.xml | 24 + .../AttributeCompositeMissing/Calculator.composite | 53 + .../AttributeCompositeMissing/sca-contribution.xml | 24 + .../MultipleCompositeErrors/Calculator.composite | 53 + .../MultipleCompositeErrors/sca-contribution.xml | 31 + .../helloworld.composite | 29 + .../AttributeWithoutNamespace/helloworld.composite | 29 + .../impl/bpel/BPELProcessNotFound/helloworld.bpel | 66 + .../bpel/BPELProcessNotFound/helloworld.composite | 29 + .../impl/bpel/BPELProcessNotFound/helloworld.wsdl | 82 + .../CannotResolveWSDLReference/helloworld.bpel | 66 + .../helloworld.composite | 29 + .../bpel/MyRolePartnerRoleNull/helloworld.bpel | 66 + .../MyRolePartnerRoleNull/helloworld.composite | 29 + .../bpel/MyRolePartnerRoleNull/helloworld.wsdl | 82 + .../bpel/PartnerLinkHasBothAttr/helloworld.bpel | 68 + .../PartnerLinkHasBothAttr/helloworld.composite | 29 + .../bpel/PartnerLinkHasBothAttr/helloworld.wsdl | 82 + .../bpel/PartnerLinkNoMatchingType/helloworld.bpel | 66 + .../PartnerLinkNoMatchingType/helloworld.composite | 29 + .../bpel/PartnerLinkNoMatchingType/helloworld.wsdl | 82 + .../bpel/PartnerLinkTypeNoRoles/helloworld.bpel | 66 + .../PartnerLinkTypeNoRoles/helloworld.composite | 29 + .../bpel/PartnerLinkTypeNoRoles/helloworld.wsdl | 80 + .../impl/ejb/EJBLinkAttributeMissing/ejb.composite | 29 + .../ClassNotFoundException/Calculator.composite | 49 + .../Calculator.composite | 49 + .../OSGiTestService.componentType | 28 + .../CouldNotLocateOSGiBundle/osgitest.composite | 34 + .../MissingComponentTypeFile/osgitest.composite | 35 + .../OSGiTestService.componentType | 28 + .../PropertyShouldSpecifySR/osgitest.composite | 36 + .../CouldNotResolveLocation/resource.composite | 30 + .../LocationAttributeMissing/resource.composite | 30 + .../SpringHelloWorld.composite | 27 + .../SpringHelloWorld.composite | 27 + .../SpringHelloWorld-context.xml | 0 .../SpringHelloWorld.composite | 34 + .../TestHelloWorldBean.componentType | 27 + .../CouldNotResolveLocation/widget.composite | 29 + .../LocationAttributeMissing/widget.composite | 30 + .../xquery/CouldNotLocateFile/HelloWorld.composite | 28 + .../LocationAttributeMissing/HelloWorld.composite | 28 + .../ClassNotFoundException/Calculator.composite | 53 + .../CalculatorServiceImpl.componentType | 27 + .../Calculator.composite | 53 + .../CalculatorServiceImpl.componentType | 27 + .../InvalidWSDLInterfaceAttr/Calculator.composite | 54 + .../helloworld-interface.wsdl | 67 + .../helloworld-service.wsdl | 49 + .../xml/WsdlInterfaceDoesNotMatch/helloworld.wsdl | 92 + .../helloworldwsjms.composite | 34 + .../ClassNotFoundException/Calculator.composite | 56 + .../ClassNotFoundException/definitions.xml | 78 + .../Calculator.composite | 56 + .../RequiredAttributeRolesMissing/definitions.xml | 78 + .../Calculator.composite | 56 + .../AlwaysProvidedIntentNotFound/definitions.xml | 63 + .../Calculator.composite | 56 + .../ErrorInPolicyIntentDefinition/definitions.xml | 76 + .../xml/IntentNotSpecified/Calculator.composite | 56 + .../policy/xml/IntentNotSpecified/definitions.xml | 175 ++ .../MayProvideIntentNotFound/Calculator.composite | 56 + .../xml/MayProvideIntentNotFound/definitions.xml | 63 + .../RequiredAttributeMissing/Calculator.composite | 56 + .../xml/RequiredAttributeMissing/definitions.xml | 70 + .../xml/UnableToMapPolicies/Calculator.composite | 56 + .../policy/xml/UnableToMapPolicies/definitions.xml | 242 ++ .../Calculator.composite | 56 + .../definitions.xml | 68 + .../assembly/xml/ContributionReadException.java | 61 + .../xml/PolicyImplValidationException.java | 61 + .../xml/PolicyServiceValidationException.java | 61 + .../assembly/xml/UnexpectedBindingElement.java | 61 + .../xml/UnexpectedImplementationElement.java | 61 + .../assembly/xml/UnexpectedInterfaceElement.java | 60 + .../binding/ejb/UnknownEJBSessionTypeTestCase.java | 67 + .../binding/ejb/UnknownEJBVersionTestCase.java | 66 + .../jms/DoesntProcessDestinationTypeTestCase.java | 60 + .../binding/jms/DoesntProcessHeadersTestCase.java | 62 + ...esntProcessResponseDestinationTypeTestCase.java | 60 + .../jms/InvalidCorrelationSchemeTestCase.java | 60 + .../jms/InvalidJMSDeliveryModeTestCase.java | 60 + .../binding/jms/InvalidJMSPriorityTestCase.java | 60 + .../InvalidResponseDestinationTypeTestCase.java | 60 + .../jms/MissingActivationSpecNameTestCase.java | 60 + .../jms/MissingConnectionFactoryNameTestCase.java | 60 + .../jms/MissingResponseActivationSpecTestCase.java | 60 + .../MissingResponseConnectionFactoryTestCase.java | 60 + .../binding/jms/MustStartWithSchemaTestCase.java | 60 + .../binding/jms/UnexpectedElementTestCase.java | 60 + .../binding/jms/UnknownTokenInURITestCase.java | 60 + .../wsxml/InvalidWsdlElementAttrTestCase.java | 61 + .../binding/wsxml/MissingImportedXSDTestCase.java | 64 + .../binding/wsxml/MustUseWsdlBindingTestCase.java | 61 + .../wsxml/WsdlBindingDoesNotMatchTestCase.java | 61 + .../wsxml/WsdlPortTypeDoesNotMatchTestCase.java | 60 + .../wsxml/WsdlServiceDoesNotMatchTestCase.java | 61 + .../ComponentReferenceTargetNotFoundTestCase.java | 77 + .../warning/DuplicateComponentNameTestCase.java | 61 + ...uplicateImplementationPropertyNameTestCase.java | 65 + ...plicateImplementationReferenceNameTestCase.java | 66 + .../warning/DuplicatePropertyNameTestCase.java | 71 + .../warning/DuplicateReferenceNameTestCase.java | 73 + .../MultipleBindingsForServiceTestCase.java | 71 + .../warning/NoComponentImplementationTestCase.java | 67 + .../warning/NoCompositeNamespaceTestCase.java | 71 + .../warning/NoMatchingBindingTestCase.java | 73 + .../warning/PromotedReferenceNotFoundTestCase.java | 71 + .../warning/PromotedServiceNotFoundTestCase.java | 71 + .../PropertyAttributeMustSupplyNullTestCase.java | 71 + .../warning/PropertyAttributeTestCase.java | 71 + .../warning/PropertyNotFoundTestCase.java | 71 + .../PropertyOverrideManyAttributeTestCase.java | 71 + ...enceIncompatibleComponentInterfaceTestCase.java | 71 + .../ReferenceIncompatibleInterfaceTestCase.java | 71 + .../ReferenceIncompatibleMultiplicityTestCase.java | 71 + .../warning/ReferenceNotFoundTestCase.java | 82 + .../warning/ReferenceWithoutTargetsTestCase.java | 71 + ...ServiceNotFoundForComponentServiceTestCase.java | 71 + .../UnresolvedComponentImplementationTestCase.java | 67 + .../calculator/warning/XSDValidationTestCase.java | 67 + .../java/AttributePackageMissingTestCase.java | 61 + .../AttributeNameSpaceMissingTestCase.java | 61 + .../resource/AttributeURIMissingTestCase.java | 61 + .../xml/AttributeCompositeMissingTestCase.java | 61 + .../xml/MultipleCompositeErrorsTestCase.java | 64 + .../test/java/domain/CustomCompositeBuilder.java | 227 ++ .../AttributeUnrecognizedNamespaceTestCase.java | 61 + .../bpel/AttributeWithoutNamespaceTestCase.java | 60 + .../impl/bpel/BPELProcessNotFoundTestCase.java | 60 + .../bpel/CannotResolveWSDLReferenceTestCase.java | 62 + .../impl/bpel/MyRolePartnerRoleNullTestCase.java | 60 + .../impl/bpel/PartnerLinkHasBothAttrTestCase.java | 59 + .../bpel/PartnerLinkNoMatchingTypeTestCase.java | 61 + .../impl/bpel/PartnerLinkTypeNoRolesTestCase.java | 61 + .../impl/ejb/EJBLinkAttributeMissingTestCase.java | 60 + .../impl/java/ClassNotFoundExceptionTestCase.java | 60 + .../java/ContributionResolveExceptionTestCase.java | 61 + .../osgi/CouldNotLocateOSGiBundleTestCase.java | 64 + .../osgi/MissingComponentTypeFileTestCase.java | 66 + .../src/test/java/impl/osgi/OSGiTestBundles.java | 111 + .../impl/osgi/PropertyShouldSpecifySRTestCase.java | 64 + .../resource/CouldNotResolveLocationTestCase.java | 59 + .../resource/LocationAttributeMissingTestCase.java | 60 + .../ContributionResolveExceptionTestCase.java | 57 + .../spring/LocationAttributeMissingTestCase.java | 60 + .../UnableToResolveComponentTypeTestCase.java | 60 + .../widget/CouldNotResolveLocationTestCase.java | 59 + .../widget/LocationAttributeMissingTestCase.java | 60 + .../impl/xquery/CouldNotLocateFileTestCase.java | 60 + .../xquery/LocationAttributeMissingTestCase.java | 60 + .../interfacejava/xml/ClassNotFoundTestCase.java | 60 + .../xml/ContributionResolveExceptionTestCase.java | 60 + .../xml/InvalidWSDLInterfaceAttrTestCase.java | 60 + .../xml/WsdlInterfaceDoesNotMatchTestCase.java | 60 + .../xml/AlwaysProvidedIntentNotFoundTestCase.java | 60 + .../xml/ErrorInPolicyIntentDefinitionTestCase.java | 60 + .../policy/xml/IntentNotSpecifiedTestCase.java | 59 + .../xml/MayProvideIntentNotFoundTestCase.java | 60 + .../xml/RequiredAttributeMissingTestCase.java | 60 + .../policy/xml/UnableToMapPoliciesTestCase.java | 65 + .../UnrecognizedIntentAttachPointTypeTestCase.java | 60 + tags/java/sca/1.5.1-RC4/itest/wasAdmin.py | 91 + tags/java/sca/1.5.1-RC4/itest/wires/pom.xml | 45 + .../org/apache/tuscany/sca/itest/WireClient.java | 34 + .../apache/tuscany/sca/itest/WireClientImpl.java | 52 + .../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 | 69 + .../sca/1.5.1-RC4/itest/workspace-manager/pom.xml | 51 + .../org/apache/tuscany/sca/artifact/xyz/XYZ.java | 46 + .../tuscany/sca/artifact/xyz/XYZModelResolver.java | 86 + .../tuscany/sca/artifact/xyz/XYZProcessor.java | 91 + .../sca/implementation/xyz/ImplementationXYZ.java | 49 + .../xyz/ImplementationXYZFactory.java | 36 + .../xyz/ImplementationXYZFactoryImpl.java | 33 + .../implementation/xyz/ImplementationXYZImpl.java | 129 + .../xyz/ImplementationXYZInvoker.java | 54 + .../xyz/ImplementationXYZProcessor.java | 158 ++ .../xyz/ImplementationXYZProvider.java | 85 + .../xyz/ImplementationXYZProviderFactory.java | 43 + .../imprt/xyz/DefaultImportExportXYZFactory.java | 28 + .../apache/tuscany/sca/imprt/xyz/ExportXYZ.java | 60 + .../tuscany/sca/imprt/xyz/ExportXYZImpl.java | 64 + .../sca/imprt/xyz/ExportXYZModelResolver.java | 54 + .../tuscany/sca/imprt/xyz/ExportXYZProcessor.java | 171 ++ .../sca/imprt/xyz/ImportExportXYZFactory.java | 27 + .../sca/imprt/xyz/ImportExportXYZFactoryImpl.java | 32 + .../apache/tuscany/sca/imprt/xyz/ImportXYZ.java | 59 + .../tuscany/sca/imprt/xyz/ImportXYZImpl.java | 79 + .../tuscany/sca/imprt/xyz/ImportXYZProcessor.java | 171 ++ .../contrib1/META-INF/sca-contribution.xml | 9 + .../src/main/resources/contrib1/contrib1.composite | 17 + .../contrib2/META-INF/sca-contribution.xml | 9 + .../src/main/resources/contrib2/abcdef.xyz | 1 + .../src/main/resources/contrib2/contrib2.composite | 12 + .../src/main/resources/implementation-xyz.xsd | 24 + .../src/main/resources/import-xyz.xsd | 29 + .../manager/test/WorkspaceManagerTestCase.java | 146 ++ .../1.5.1-RC4/itest/ws-void-args-return/pom.xml | 61 + .../src/main/java/voidtest/Bean.java | 39 + .../src/main/java/voidtest/HelloWorldImpl.java | 64 + .../src/main/java/voidtest/HelloWorldService.java | 47 + .../src/main/java/voidtest/TestClient.java | 23 + .../src/main/java/voidtest/TestClientImpl.java | 53 + .../src/main/resources/voidtest.composite | 41 + .../test/java/voidtest/VoidArgsReturnTestCase.java | 53 + .../java/sca/1.5.1-RC4/itest/wsdl-multiple/pom.xml | 135 + .../main/java/helloworld/HelloWorldCallback.java | 30 + .../main/java/helloworld/HelloWorldClientImpl.java | 42 + .../main/java/helloworld/HelloWorldService.java | 32 + .../java/helloworld/HelloWorldServiceImpl.java | 37 + .../src/main/resources/auto-wsdl.composite | 44 + .../src/main/resources/manual-wsdl.composite | 46 + .../wsdl/helloworld.HelloWorldCallback.wsdl | 98 + .../wsdl/helloworld.HelloWorldService.wsdl | 95 + .../apache/tuscany/sca/itest/AutoWSDLTestCase.java | 65 + .../tuscany/sca/itest/ManualWSDLTestCase.java | 65 + tags/java/sca/1.5.1-RC4/itest/wsdl/pom.xml | 135 + .../services/accountdata/AccountDataService.java | 92 + .../accountdata/AccountDataServiceImpl.java | 93 + .../accountdata/AccountServiceClientImpl.java | 79 + .../services/accountdata/Component2aImpl.java | 79 + .../services/accountdata/Component2bImpl.java | 79 + .../services/accountdata/Component3aImpl.java | 79 + .../services/accountdata/Component3bImpl.java | 79 + .../services/accountdata/CustomerIdService.java | 98 + .../src/main/java/helloworld/HelloWorldImpl.java | 33 + .../main/java/helloworld/HelloWorldService.java | 30 + .../helloworld/HelloWorldServiceComponent.java | 43 + .../apache/tuscany/sca/itest/Component2aImpl.java | 38 + .../apache/tuscany/sca/itest/Component2bImpl.java | 39 + .../apache/tuscany/sca/itest/Component3aImpl.java | 39 + .../apache/tuscany/sca/itest/Component3bImpl.java | 39 + .../resources/META-INF/wsdl/helloworld-import.wsdl | 57 + .../main/resources/META-INF/wsdl/helloworld.xsd | 35 + .../wsdl/src/main/resources/SDOWSDLTest.composite | 344 +++ .../wsdl/src/main/resources/WSDLTest.composite | 371 +++ .../wsdl/META-INF/wsdl/helloworld-import.wsdl | 57 + .../imports/wsdl/META-INF/wsdl/helloworld.xsd | 35 + .../main/resources/imports/wsdl/helloworld.wsdl | 51 + .../resources/imports/wsdl/helloworldws.composite | 33 + .../src/main/resources/wsdl/AccountService.wsdl | 453 ++++ .../itest/wsdl/src/main/resources/wsdl/Hello.xsd | 37 + .../wsdl/src/main/resources/wsdl/helloworld.wsdl | 64 + .../apache/tuscany/sca/itest/HelloWorldClient.java | 52 + .../apache/tuscany/sca/itest/SDOWSDLTestCase.java | 169 ++ .../tuscany/sca/itest/WSDLImportsTestCase.java | 32 + .../org/apache/tuscany/sca/itest/WSDLTestCase.java | 146 ++ tags/java/sca/1.5.1-RC4/itest/wsdl2java/pom.xml | 189 ++ .../src/test/resources/AccountService.wsdl | 479 ++++ .../wsdl2java/src/test/resources/EchoService.wsdl | 64 + .../wsdl2java/src/test/resources/EchoService.xsd | 40 + .../src/test/resources/StockExceptionTest.wsdl | 167 ++ tags/java/sca/1.5.1-RC4/itest/wsdlgen/pom.xml | 92 + .../wsdlgen/src/main/java/helloworld/ABean.java | 42 + .../src/main/java/helloworld/HelloWorldImpl.java | 48 + .../main/java/helloworld/HelloWorldService.java | 36 + .../src/main/java/helloworld/package-info.java | 20 + .../main/resources/META-INF/sca-contribution.xml | 23 + .../wsdlgen/src/main/resources/definitions.xml | 66 + .../src/main/resources/helloworld.composite | 71 + .../src/main/resources/wsdl/helloworld.wsdl | 210 ++ .../test/java/helloworld/JmsTransportTestCase.java | 121 + tags/java/sca/1.5.1-RC4/itest/wsdlless/pom.xml | 202 ++ .../services/accountdata/AccountDataService.java | 95 + .../accountdata/AccountDataServiceImpl.java | 91 + .../accountdata/AccountServiceClientImpl.java | 77 + .../services/accountdata/Component2aImpl.java | 77 + .../services/accountdata/Component2bImpl.java | 77 + .../services/accountdata/Component3aImpl.java | 77 + .../services/accountdata/Component3bImpl.java | 77 + .../services/accountdata/CustomerIdService.java | 98 + .../src/main/java/helloworld/HelloWorldImpl.java | 44 + .../main/java/helloworld/HelloWorldService.java | 31 + .../helloworld/HelloWorldServiceComponent.java | 47 + .../apache/tuscany/sca/itest/Component2aImpl.java | 43 + .../apache/tuscany/sca/itest/Component2bImpl.java | 42 + .../apache/tuscany/sca/itest/Component3aImpl.java | 42 + .../apache/tuscany/sca/itest/Component3bImpl.java | 43 + .../wsdlless/src/main/java/service/AnObject.java | 62 + .../src/main/java/service/MoreComplexObject.java | 53 + .../src/main/java/service/SomeService.java | 31 + .../src/main/java/service/SomeServiceImpl.java | 42 + .../src/main/resources/SDOWSDLTest.composite | 321 +++ .../wsdlless/src/main/resources/WSDLTest.composite | 350 +++ .../wsdlless/src/main/resources/some.composite | 33 + .../src/main/resources/wsdl/AccountService.wsdl | 453 ++++ .../src/main/resources/wsdl/helloworld.wsdl | 131 + .../apache/tuscany/sca/itest/SDOWSDLTestCase.java | 173 ++ .../org/apache/tuscany/sca/itest/WSDLTestCase.java | 150 ++ .../test/java/service/SomeComponentTestCase.java | 82 + .../src/test/java/service/generated/AnObject.java | 100 + .../generated/GetUsingMoreComplexObject.java | 79 + .../GetUsingMoreComplexObjectResponse.java | 79 + .../java/service/generated/GetUsingString.java | 79 + .../service/generated/GetUsingStringResponse.java | 79 + .../java/service/generated/MoreComplexObject.java | 126 + .../test/java/service/generated/ObjectFactory.java | 141 ++ .../test/java/service/generated/SomeService.java | 65 + .../java/service/generated/SomeServiceService.java | 81 + .../test/java/service/generated/package-info.java | 21 + .../sca/1.5.1-RC4/modules/assembly-xml/LICENSE | 205 ++ .../java/sca/1.5.1-RC4/modules/assembly-xml/NOTICE | 6 + .../sca/1.5.1-RC4/modules/assembly-xml/pom.xml | 141 ++ .../sca/assembly/xml/BaseAssemblyProcessor.java | 915 +++++++ .../xml/ComponentTypeDocumentProcessor.java | 143 ++ .../assembly/xml/ComponentTypeModelResolver.java | 95 + .../sca/assembly/xml/ComponentTypeProcessor.java | 390 +++ .../assembly/xml/CompositeDocumentProcessor.java | 266 ++ .../sca/assembly/xml/CompositeModelResolver.java | 83 + .../sca/assembly/xml/CompositeProcessor.java | 1243 ++++++++++ .../assembly/xml/ConfiguredOperationProcessor.java | 108 + .../apache/tuscany/sca/assembly/xml/Constants.java | 97 + .../xml/ConstrainingTypeDocumentProcessor.java | 144 ++ .../xml/ConstrainingTypeModelResolver.java | 83 + .../assembly/xml/ConstrainingTypeProcessor.java | 292 +++ .../assembly/xml/DefaultBeanModelProcessor.java | 258 ++ .../assembly/xml/PolicyAttachPointProcessor.java | 257 ++ ...ca.contribution.processor.StAXArtifactProcessor | 21 + ...sca.contribution.processor.URLArtifactProcessor | 21 + ...tuscany.sca.contribution.resolver.ModelResolver | 20 + .../assembly-xml-validation-messages.properties | 30 + .../sca/assembly/xml/BuildPolicyTestCase.java | 148 ++ .../xml/MultiplicityReadWriteTestCase.java | 86 + .../tuscany/sca/assembly/xml/ReadAllTestCase.java | 145 ++ .../sca/assembly/xml/ReadDocumentTestCase.java | 207 ++ .../tuscany/sca/assembly/xml/ReadTestCase.java | 88 + .../xml/ReadWriteAnyAttributeTestCase.java | 173 ++ .../assembly/xml/ReadWriteAnyElementTestCase.java | 148 ++ .../xml/ReadWriteLocalCompositeTestCase.java | 94 + .../sca/assembly/xml/ResolvePolicyTestCase.java | 161 ++ .../tuscany/sca/assembly/xml/ResolveTestCase.java | 97 + .../sca/assembly/xml/TestAttributeProcessor.java | 60 + .../sca/assembly/xml/TestPolicyProcessor.java | 73 + .../assembly/xml/TestSCABindingFactoryImpl.java | 35 + .../sca/assembly/xml/TestSCABindingImpl.java | 214 ++ .../tuscany/sca/assembly/xml/WireTestCase.java | 147 ++ .../tuscany/sca/assembly/xml/WriteAllTestCase.java | 160 ++ .../sca/assembly/xml/WriteNamespacesTestCase.java | 91 + .../tuscany/sca/assembly/xml/Calculator.composite | 59 + .../xml/CalculatorComponent.constrainingType | 34 + .../sca/assembly/xml/CalculatorImpl.componentType | 31 + .../sca/assembly/xml/JavaScriptReference.composite | 37 + .../sca/assembly/xml/Multiplicity.composite | 30 + .../sca/assembly/xml/NestedCalculator.composite | 29 + .../sca/assembly/xml/RMIBindingTest.composite | 43 + .../sca/assembly/xml/TestAllCalculator.composite | 128 + .../sca/assembly/xml/TestAllDivide.composite | 56 + .../assembly/xml/TestAllPolicyCalculator.composite | 129 + .../sca/assembly/xml/another_test_definitions.xml | 97 + .../tuscany/sca/assembly/xml/local.composite | 27 + .../tuscany/sca/assembly/xml/test_definitions.xml | 175 ++ .../sca/1.5.1-RC4/modules/assembly-xsd/LICENSE | 281 +++ .../java/sca/1.5.1-RC4/modules/assembly-xsd/NOTICE | 23 + .../sca/1.5.1-RC4/modules/assembly-xsd/pom.xml | 49 + ...any.sca.contribution.processor.ValidationSchema | 18 + .../assembly-xsd/src/main/resources/sca-all.xsd | 34 + .../src/main/resources/sca-binding-ejb.xsd | 43 + .../src/main/resources/sca-binding-jms.xsd | 148 ++ .../src/main/resources/sca-binding-sca.xsd | 23 + .../src/main/resources/sca-binding-webservice.xsd | 36 + .../src/main/resources/sca-contributions.xsd | 65 + .../assembly-xsd/src/main/resources/sca-core.xsd | 348 +++ .../src/main/resources/sca-definitions.xsd | 25 + .../src/main/resources/sca-implementation-bpel.xsd | 43 + .../resources/sca-implementation-composite.xsd | 23 + .../src/main/resources/sca-implementation-cpp.xsd | 53 + .../src/main/resources/sca-implementation-ejb.xsd | 25 + .../src/main/resources/sca-implementation-java.xsd | 24 + .../src/main/resources/sca-implementation-jee.xsd | 23 + .../main/resources/sca-implementation-spring.xsd | 24 + .../src/main/resources/sca-implementation-web.xsd | 24 + .../src/main/resources/sca-interface-cpp.xsd | 40 + .../src/main/resources/sca-interface-java.xsd | 23 + .../src/main/resources/sca-interface-wsdl.xsd | 23 + .../assembly-xsd/src/main/resources/sca-policy.xsd | 77 + .../assembly-xsd/src/main/resources/sca.xsd | 25 + .../src/main/resources/tuscany-core.xsd | 37 + .../main/resources/tuscany-sca-binding-atom.xsd | 42 + .../main/resources/tuscany-sca-binding-corba.xsd | 43 + .../src/main/resources/tuscany-sca-binding-dwr.xsd | 41 + .../main/resources/tuscany-sca-binding-gdata.xsd | 43 + .../main/resources/tuscany-sca-binding-http.xsd | 43 + .../src/main/resources/tuscany-sca-binding-jms.xsd | 132 + .../main/resources/tuscany-sca-binding-jsonrpc.xsd | 41 + .../resources/tuscany-sca-binding-notification.xsd | 42 + .../src/main/resources/tuscany-sca-binding-rmi.xsd | 43 + .../src/main/resources/tuscany-sca-binding-rss.xsd | 42 + .../main/resources/tuscany-sca-contributions.xsd | 62 + .../resources/tuscany-sca-implementation-node.xsd | 43 + .../tuscany-sca-implementation-notification.xsd | 42 + .../resources/tuscany-sca-implementation-osgi.xsd | 43 + .../tuscany-sca-implementation-resource.xsd | 42 + .../tuscany-sca-implementation-script.xsd | 43 + .../tuscany-sca-implementation-widget.xsd | 42 + .../tuscany-sca-implementation-xquery.xsd | 42 + .../src/main/resources/tuscany-sca.xsd | 53 + .../assembly-xsd/src/main/resources/ws-addr.xsd | 137 ++ .../assembly-xsd/src/main/resources/wsdli.xsd | 34 + tags/java/sca/1.5.1-RC4/modules/assembly/LICENSE | 205 ++ tags/java/sca/1.5.1-RC4/modules/assembly/NOTICE | 6 + tags/java/sca/1.5.1-RC4/modules/assembly/pom.xml | 76 + .../tuscany/sca/assembly/AbstractContract.java | 77 + .../tuscany/sca/assembly/AbstractProperty.java | 124 + .../tuscany/sca/assembly/AbstractReference.java | 43 + .../tuscany/sca/assembly/AbstractService.java | 28 + .../tuscany/sca/assembly/AssemblyFactory.java | 155 ++ .../java/org/apache/tuscany/sca/assembly/Base.java | 43 + .../org/apache/tuscany/sca/assembly/Binding.java | 63 + .../apache/tuscany/sca/assembly/BindingRRB.java | 41 + .../org/apache/tuscany/sca/assembly/Callback.java | 40 + .../org/apache/tuscany/sca/assembly/Component.java | 132 + .../tuscany/sca/assembly/ComponentProperty.java | 88 + .../tuscany/sca/assembly/ComponentReference.java | 83 + .../tuscany/sca/assembly/ComponentService.java | 59 + .../apache/tuscany/sca/assembly/ComponentType.java | 77 + .../org/apache/tuscany/sca/assembly/Composite.java | 110 + .../tuscany/sca/assembly/CompositeReference.java | 37 + .../tuscany/sca/assembly/CompositeService.java | 56 + .../tuscany/sca/assembly/ConfiguredOperation.java | 86 + .../tuscany/sca/assembly/ConstrainingType.java | 72 + .../org/apache/tuscany/sca/assembly/Contract.java | 95 + .../sca/assembly/DefaultAssemblyFactory.java | 31 + .../sca/assembly/DefaultEndpointFactory.java | 32 + .../sca/assembly/DefaultExtensionFactory.java | 36 + .../tuscany/sca/assembly/DefinitionElement.java | 40 + .../org/apache/tuscany/sca/assembly/Endpoint.java | 167 ++ .../tuscany/sca/assembly/EndpointFactory.java | 37 + .../apache/tuscany/sca/assembly/Extensible.java | 44 + .../org/apache/tuscany/sca/assembly/Extension.java | 65 + .../tuscany/sca/assembly/ExtensionFactory.java | 28 + .../tuscany/sca/assembly/Implementation.java | 27 + .../apache/tuscany/sca/assembly/Multiplicity.java | 49 + .../tuscany/sca/assembly/OperationSelector.java | 29 + .../sca/assembly/OperationsConfigurator.java | 33 + .../tuscany/sca/assembly/OptimizableBinding.java | 66 + .../org/apache/tuscany/sca/assembly/Property.java | 41 + .../org/apache/tuscany/sca/assembly/Reference.java | 74 + .../apache/tuscany/sca/assembly/SCABinding.java | 27 + .../tuscany/sca/assembly/SCABindingFactory.java | 36 + .../org/apache/tuscany/sca/assembly/Service.java | 29 + .../java/org/apache/tuscany/sca/assembly/Wire.java | 67 + .../apache/tuscany/sca/assembly/WireFormat.java | 29 + .../sca/assembly/builder/AutomaticBinding.java | 39 + .../sca/assembly/builder/BindingBuilder.java | 42 + .../assembly/builder/BindingBuilderExtension.java | 44 + .../assembly/builder/ComponentPreProcessor.java | 33 + .../sca/assembly/builder/CompositeBuilder.java | 40 + .../builder/CompositeBuilderException.java | 45 + .../assembly/builder/DefaultEndpointBuilder.java | 36 + .../sca/assembly/builder/DomainBuilder.java | 80 + .../sca/assembly/builder/EndpointBuilder.java | 40 + .../builder/impl/BaseConfigurationBuilderImpl.java | 1515 ++++++++++++ .../assembly/builder/impl/BaseWireBuilderImpl.java | 1154 +++++++++ .../builder/impl/BindingConfigurationUtil.java | 170 ++ .../impl/ComponentConfigurationBuilderImpl.java | 68 + .../impl/ComponentReferenceBindingBuilderImpl.java | 71 + ...ComponentReferencePromotionWireBuilderImpl.java | 165 ++ .../impl/ComponentReferenceWireBuilderImpl.java | 48 + .../impl/ComponentServiceBindingBuilderImpl.java | 76 + .../impl/ComponentServicePromotionBuilderImpl.java | 105 + .../impl/CompositeBindingURIBuilderImpl.java | 68 + .../builder/impl/CompositeBuilderImpl.java | 278 +++ .../builder/impl/CompositeCloneBuilderImpl.java | 118 + .../builder/impl/CompositeIncludeBuilderImpl.java | 111 + .../builder/impl/CompositePolicyBuilderImpl.java | 47 + .../impl/CompositePromotionBuilderImpl.java | 46 + ...CompositeReferenceConfigurationBuilderImpl.java | 224 ++ .../impl/CompositeReferenceWireBuilderImpl.java | 96 + .../impl/CompositeServiceBindingBuilderImpl.java | 71 + .../CompositeServiceConfigurationBuilderImpl.java | 194 ++ .../impl/CompositeServicePromotionBuilderImpl.java | 83 + .../assembly/builder/impl/EndpointBuilderImpl.java | 133 + .../builder/impl/PolicyConfigurationException.java | 38 + .../builder/impl/PolicyConfigurationUtil.java | 758 ++++++ .../sca/assembly/builder/impl/PrintUtil.java | 273 ++ .../builder/impl/PropertyConfigurationUtil.java | 213 ++ .../builder/impl/ReferenceConfigurationUtil.java | 265 ++ .../builder/impl/ServiceConfigurationUtil.java | 88 + .../sca/assembly/impl/AbstractPropertyImpl.java | 114 + .../sca/assembly/impl/AbstractReferenceImpl.java | 46 + .../sca/assembly/impl/AbstractServiceImpl.java | 36 + .../sca/assembly/impl/AssemblyFactoryImpl.java | 121 + .../apache/tuscany/sca/assembly/impl/BaseImpl.java | 45 + .../tuscany/sca/assembly/impl/CallbackImpl.java | 82 + .../tuscany/sca/assembly/impl/ComponentImpl.java | 174 ++ .../sca/assembly/impl/ComponentPropertyImpl.java | 93 + .../sca/assembly/impl/ComponentReferenceImpl.java | 113 + .../sca/assembly/impl/ComponentServiceImpl.java | 71 + .../sca/assembly/impl/ComponentTypeImpl.java | 115 + .../tuscany/sca/assembly/impl/CompositeImpl.java | 153 ++ .../sca/assembly/impl/CompositeReferenceImpl.java | 53 + .../sca/assembly/impl/CompositeServiceImpl.java | 62 + .../sca/assembly/impl/ConfiguredOperationImpl.java | 97 + .../sca/assembly/impl/ConstrainingTypeImpl.java | 105 + .../tuscany/sca/assembly/impl/ContractImpl.java | 96 + .../sca/assembly/impl/EndpointFactoryImpl.java | 41 + .../tuscany/sca/assembly/impl/EndpointImpl.java | 154 ++ .../tuscany/sca/assembly/impl/ExtensibleImpl.java | 50 + .../tuscany/sca/assembly/impl/ExtensionImpl.java | 63 + .../sca/assembly/impl/ImplementationImpl.java | 75 + .../tuscany/sca/assembly/impl/PropertyImpl.java | 59 + .../tuscany/sca/assembly/impl/ReferenceImpl.java | 133 + .../tuscany/sca/assembly/impl/ServiceImpl.java | 107 + .../apache/tuscany/sca/assembly/impl/WireImpl.java | 96 + ...org.apache.tuscany.sca.assembly.AssemblyFactory | 18 + ...org.apache.tuscany.sca.assembly.EndpointFactory | 18 + ...rg.apache.tuscany.sca.assembly.ExtensionFactory | 18 + .../assembly-validation-messages.properties | 62 + .../assembly-validation-messages_it.properties | 30 + .../sca/assembly/AssemblyFactoryTestCase.java | 209 ++ .../apache/tuscany/sca/assembly/TestBinding.java | 56 + .../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 + .../builder/impl/CompositeBuilderTestCase.java | 128 + .../assembly/builder/impl/PrintUtilTestCase.java | 229 ++ .../1.5.1-RC4/modules/binding-atom-abdera/LICENSE | 205 ++ .../1.5.1-RC4/modules/binding-atom-abdera/NOTICE | 6 + .../1.5.1-RC4/modules/binding-atom-abdera/pom.xml | 233 ++ .../sca/binding/atom/collection/Collection.java | 81 + .../binding/atom/collection/MediaCollection.java | 55 + .../binding/atom/collection/NotFoundException.java | 45 + .../binding/atom/provider/AtomBindingInvoker.java | 510 ++++ .../atom/provider/AtomBindingListenerServlet.java | 914 +++++++ .../atom/provider/AtomBindingProviderFactory.java | 71 + .../sca/binding/atom/provider/AtomBindingUtil.java | 165 ++ .../provider/AtomReferenceBindingProvider.java | 179 ++ .../atom/provider/AtomServiceBindingProvider.java | 112 + ...che.tuscany.sca.provider.BindingProviderFactory | 19 + .../sca/binding/atom/AtomDeleteTestCase.java | 114 + .../binding/atom/AtomFeedNonCollectionTest.java | 202 ++ .../tuscany/sca/binding/atom/AtomGetTestCase.java | 119 + .../tuscany/sca/binding/atom/AtomPostTestCase.java | 108 + .../tuscany/sca/binding/atom/AtomPutTestCase.java | 126 + .../sca/binding/atom/AtomTestCaseUtils.java | 96 + .../apache/tuscany/sca/binding/atom/Consumer.java | 35 + .../binding/atom/ConsumerProviderAtomTestCase.java | 155 ++ .../sca/binding/atom/ContentNegotiationTest.java | 241 ++ .../tuscany/sca/binding/atom/CustomerClient.java | 29 + .../sca/binding/atom/CustomerClientImpl.java | 99 + .../sca/binding/atom/CustomerCollectionImpl.java | 149 ++ .../binding/atom/CustomerNonCollectionImpl.java | 53 + .../sca/binding/atom/MediaCollectionImpl.java | 209 ++ .../sca/binding/atom/MediaCollectionTestCase.java | 279 +++ .../apache/tuscany/sca/binding/atom/Provider.java | 41 + .../atom/ProviderEntryEntityTagsTestCase.java | 421 ++++ .../atom/ProviderFeedEntityTagsTestCase.java | 375 +++ .../atom/ProviderServiceDocumentTestCase.java | 204 ++ .../sca/binding/atom/aggregator/Aggregator.java | 29 + .../binding/atom/aggregator/AggregatorImpl.java | 127 + .../atom/aggregator/AggregatorTestCase.java | 68 + .../tuscany/sca/binding/atom/aggregator/Sort.java | 38 + .../sca/binding/atom/aggregator/SortImpl.java | 62 + .../src/test/resources/ReceiptToms.gif | Bin 0 -> 14205 bytes .../src/test/resources/ReceiptValue.jpg | Bin 0 -> 21373 bytes .../tuscany/sca/binding/atom/Consumer.composite | 32 + .../tuscany/sca/binding/atom/Provider.composite | 33 + .../binding/atom/ProviderNonCollection.composite | 34 + .../sca/binding/atom/ReceiptProvider.composite | 33 + .../atom/aggregator/FeedAggregator.composite | 46 + .../1.5.1-RC4/modules/binding-atom-js-dojo/LICENSE | 205 ++ .../1.5.1-RC4/modules/binding-atom-js-dojo/NOTICE | 6 + .../1.5.1-RC4/modules/binding-atom-js-dojo/pom.xml | 74 + .../AtomBindingJavascriptProxyFactoryImpl.java | 60 + ...scany.sca.web.javascript.JavascriptProxyFactory | 19 + .../sca/1.5.1-RC4/modules/binding-atom-js/LICENSE | 205 ++ .../sca/1.5.1-RC4/modules/binding-atom-js/NOTICE | 6 + .../sca/1.5.1-RC4/modules/binding-atom-js/pom.xml | 74 + .../js/AtomBindingJavascriptProxyFactoryImpl.java | 66 + ...scany.sca.web.javascript.JavascriptProxyFactory | 19 + .../src/main/resources/binding-atom.js | 137 ++ .../sca/1.5.1-RC4/modules/binding-atom/LICENSE | 205 ++ .../java/sca/1.5.1-RC4/modules/binding-atom/NOTICE | 6 + .../sca/1.5.1-RC4/modules/binding-atom/pom.xml | 82 + .../tuscany/sca/binding/atom/AtomBinding.java | 56 + .../sca/binding/atom/AtomBindingFactory.java | 35 + .../binding/atom/impl/AtomBindingFactoryImpl.java | 36 + .../sca/binding/atom/impl/AtomBindingImpl.java | 132 + ...che.tuscany.sca.binding.atom.AtomBindingFactory | 19 + ...ca.contribution.processor.StAXArtifactProcessor | 19 + .../binding/atom/AtomBindingProcessorTestCase.java | 89 + .../modules/binding-corba-runtime/LICENSE | 205 ++ .../1.5.1-RC4/modules/binding-corba-runtime/NOTICE | 6 + .../modules/binding-corba-runtime/pom.xml | 143 ++ .../corba/impl/CorbaBindingProviderFactory.java | 70 + .../sca/binding/corba/impl/CorbaInvoker.java | 89 + .../corba/impl/CorbaReferenceBindingProvider.java | 100 + .../corba/impl/CorbaServiceBindingProvider.java | 92 + .../corba/impl/exceptions/CorbaException.java | 34 + .../exceptions/RequestConfigurationException.java | 43 + .../corba/impl/reference/DynaCorbaRequest.java | 253 ++ .../corba/impl/reference/DynaCorbaResponse.java | 39 + .../impl/reference/InterfaceInstanceCreator.java | 70 + .../impl/reference/InterfaceMethodInterceptor.java | 65 + .../impl/service/ComponentInvocationProxy.java | 120 + .../corba/impl/service/DynaCorbaServant.java | 137 ++ .../corba/impl/service/InvocationException.java | 43 + .../corba/impl/service/InvocationProxy.java | 46 + .../binding/corba/impl/service/OperationTypes.java | 51 + .../corba/impl/types/AnnotationAttributes.java | 46 + .../sca/binding/corba/impl/types/NodeType.java | 28 + .../sca/binding/corba/impl/types/TypeTree.java | 50 + .../binding/corba/impl/types/TypeTreeCreator.java | 497 ++++ .../sca/binding/corba/impl/types/TypeTreeNode.java | 75 + .../binding/corba/impl/types/UnionAttributes.java | 59 + .../corba/impl/types/util/ArrayTypeHelper.java | 53 + .../corba/impl/types/util/BooleanTypeHelper.java | 39 + .../corba/impl/types/util/ByteTypeHelper.java | 39 + .../corba/impl/types/util/CharTypeHelper.java | 39 + .../corba/impl/types/util/DoubleTypeHelper.java | 39 + .../corba/impl/types/util/EnumTypeHelper.java | 59 + .../corba/impl/types/util/FloatTypeHelper.java | 39 + .../corba/impl/types/util/IntTypeHelper.java | 39 + .../corba/impl/types/util/LongTypeHelper.java | 39 + .../corba/impl/types/util/ReferenceTypeHelper.java | 42 + .../corba/impl/types/util/SequenceTypeHelper.java | 70 + .../corba/impl/types/util/ShortTypeHelper.java | 39 + .../corba/impl/types/util/StringTypeHelper.java | 39 + .../corba/impl/types/util/StructTypeHelper.java | 69 + .../binding/corba/impl/types/util/TypeHelper.java | 47 + .../corba/impl/types/util/TypeHelpersProxy.java | 119 + .../corba/impl/types/util/UnionTypeHelper.java | 92 + .../sca/binding/corba/impl/types/util/Utils.java | 40 + .../sca/binding/corba/impl/util/MethodFinder.java | 97 + .../binding/corba/impl/util/OperationMapper.java | 578 +++++ .../tuscany/sca/binding/corba/meta/CorbaArray.java | 34 + .../sca/binding/corba/meta/CorbaUnionElement.java | 37 + .../binding/corba/meta/CorbaUnionElementType.java | 28 + ...che.tuscany.sca.provider.BindingProviderFactory | 19 + .../corba/testing/CorbaServantTestCase.java | 564 +++++ .../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 | 148 ++ .../service/mocks/TestInterfaceContract.java | 58 + .../corba/testing/service/mocks/TestOperation.java | 195 ++ .../service/mocks/TestRuntimeComponentService.java | 239 ++ .../testing/service/mocks/TestRuntimeWire.java | 107 + .../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 + .../sca/1.5.1-RC4/modules/binding-corba/LICENSE | 205 ++ .../sca/1.5.1-RC4/modules/binding-corba/NOTICE | 6 + .../sca/1.5.1-RC4/modules/binding-corba/pom.xml | 71 + .../tuscany/sca/binding/corba/CorbaBinding.java | 46 + .../sca/binding/corba/CorbaBindingFactory.java | 31 + .../corba/impl/CorbaBindingFactoryImpl.java | 37 + .../sca/binding/corba/impl/CorbaBindingImpl.java | 132 + .../binding/corba/impl/CorbaBindingProcessor.java | 134 + ...e.tuscany.sca.binding.corba.CorbaBindingFactory | 19 + ...ca.contribution.processor.StAXArtifactProcessor | 19 + .../java/sca/1.5.1-RC4/modules/binding-dwr/LICENSE | 205 ++ tags/java/sca/1.5.1-RC4/modules/binding-dwr/NOTICE | 6 + .../java/sca/1.5.1-RC4/modules/binding-dwr/pom.xml | 95 + .../apache/tuscany/sca/binding/dwr/DWRBinding.java | 31 + .../sca/binding/dwr/DWRBindingActivator.java | 56 + .../apache/tuscany/sca/binding/dwr/DWRInvoker.java | 93 + .../tuscany/sca/binding/dwr/DWRInvokerFactory.java | 67 + .../apache/tuscany/sca/binding/dwr/DWRService.java | 81 + .../apache/tuscany/sca/binding/dwr/DWRServlet.java | 247 ++ ...e.tuscany.sca.extension.helper.BindingActivator | 19 + .../1.5.1-RC4/modules/binding-ejb-runtime/LICENSE | 205 ++ .../1.5.1-RC4/modules/binding-ejb-runtime/NOTICE | 6 + .../1.5.1-RC4/modules/binding-ejb-runtime/pom.xml | 195 ++ .../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 | 92 + .../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 | 19 + .../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/AddServiceRemote.java | 26 + .../samples/bank/ejb/BankManagerFacade.java | 44 + .../samples/bank/ejb/BankManagerFacadeHome.java | 44 + .../binding/ejb/tests/EJBReferenceTestCase.java | 71 + .../tuscany/sca/binding/ejb/tests/MockServer.java | 140 ++ .../sca/binding/ejb/tests/SocketTracer.java | 138 ++ .../src/test/resources/account/account.composite | 35 + .../resources/calculator-ejb/calculator-ejb.jar | Bin 0 -> 5449 bytes .../java/sca/1.5.1-RC4/modules/binding-ejb/LICENSE | 205 ++ tags/java/sca/1.5.1-RC4/modules/binding-ejb/NOTICE | 6 + .../java/sca/1.5.1-RC4/modules/binding-ejb/pom.xml | 91 + .../apache/tuscany/sca/binding/ejb/EJBBinding.java | 95 + .../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 | 184 ++ .../sca/binding/ejb/impl/EJBBindingProcessor.java | 231 ++ ...pache.tuscany.sca.binding.ejb.EJBBindingFactory | 19 + ...ca.contribution.processor.StAXArtifactProcessor | 19 + .../binding-ejb-validation-messages.properties | 23 + .../ejb/impl/ReadWriteAnyAttributeTestCase.java | 133 + .../modules/binding-gdata-runtime/LICENSE | 205 ++ .../1.5.1-RC4/modules/binding-gdata-runtime/NOTICE | 6 + .../modules/binding-gdata-runtime/pom.xml | 210 ++ .../sca/binding/gdata/collection/Collection.java | 81 + .../binding/gdata/collection/MediaCollection.java | 55 + .../gdata/collection/NotFoundException.java | 45 + .../gdata/provider/GdataBindingInvoker.java | 419 ++++ .../provider/GdataBindingListenerServlet.java | 746 ++++++ .../provider/GdataBindingProviderFactory.java | 79 + .../binding/gdata/provider/GdataBindingUtil.java | 171 ++ .../provider/GdataReferenceBindingProvider.java | 229 ++ .../provider/GdataServiceBindingProvider.java | 90 + ...che.tuscany.sca.provider.BindingProviderFactory | 19 + .../tuscany/sca/binding/gdata/Constants.java | 24 + .../apache/tuscany/sca/binding/gdata/Consumer.java | 60 + .../binding/gdata/ConsumerProviderTestCase.java | 136 + .../tuscany/sca/binding/gdata/CustomerClient.java | 40 + .../sca/binding/gdata/CustomerClientImpl.java | 120 + .../sca/binding/gdata/CustomerCollectionImpl.java | 142 ++ .../gdata/GoogleBloggerServiceTestCase.java | 141 ++ .../gdata/GoogleCalendarServiceTestCase.java | 149 ++ .../gdata/GoogleContactsServiceTestCase.java | 168 ++ .../gdata/GoogleWebAlbumServiceTestCase.java | 115 + .../apache/tuscany/sca/binding/gdata/Provider.java | 41 + .../sca/binding/gdata/StartLocalhostServlet.java | 41 + .../src/test/resources/log4j.properties | 25 + .../tuscany/sca/binding/gdata/Consumer.composite | 32 + .../binding/gdata/ConsumerGoogleBlogger.composite | 32 + .../binding/gdata/ConsumerGoogleCalendar.composite | 32 + .../binding/gdata/ConsumerGoogleContacts.composite | 32 + .../binding/gdata/ConsumerGoogleWebAlbum.composite | 32 + .../tuscany/sca/binding/gdata/Provider.composite | 33 + .../sca/1.5.1-RC4/modules/binding-gdata/LICENSE | 202 ++ .../sca/1.5.1-RC4/modules/binding-gdata/NOTICE | 8 + .../sca/1.5.1-RC4/modules/binding-gdata/pom.xml | 79 + .../tuscany/sca/binding/gdata/GdataBinding.java | 78 + .../sca/binding/gdata/GdataBindingFactory.java | 35 + .../gdata/impl/GdataBindingFactoryImpl.java | 36 + .../sca/binding/gdata/impl/GdataBindingImpl.java | 141 ++ .../binding/gdata/impl/GdataBindingProcessor.java | 121 + ...e.tuscany.sca.binding.gdata.GdataBindingFactory | 18 + ...ca.contribution.processor.StAXArtifactProcessor | 19 + .../modules/binding-http-jsonrpc-runtime/LICENSE | 205 ++ .../modules/binding-http-jsonrpc-runtime/NOTICE | 6 + .../modules/binding-http-jsonrpc-runtime/pom.xml | 130 + .../JSONRPCOperationSelectorInterceptor.java | 129 + .../JSONRPCOperationSelectorProviderFactory.java | 58 + .../JSONRPCOperationSelectorServiceProvider.java | 76 + .../provider/JSONRPCWireFormatInterceptor.java | 172 ++ .../provider/JSONRPCWireFormatProviderFactory.java | 59 + .../JSONRPCWireFormatReferenceProvider.java | 57 + .../provider/JSONRPCWireFormatServiceProvider.java | 122 + .../wireformat/jsonrpc/provider/JavaToSmd.java | 56 + ...y.sca.provider.OperationSelectorProviderFactory | 18 + ....tuscany.sca.provider.WireFormatProviderFactory | 19 + .../1.5.1-RC4/modules/binding-http-jsonrpc/LICENSE | 205 ++ .../1.5.1-RC4/modules/binding-http-jsonrpc/NOTICE | 6 + .../1.5.1-RC4/modules/binding-http-jsonrpc/pom.xml | 94 + .../jsonrpc/JSONRPCOperationSelector.java | 39 + .../jsonrpc/JSONRPCOperationSelectorFactory.java | 35 + .../impl/JSONRPCOperationSelectorFactoryImpl.java | 35 + .../jsonrpc/impl/JSONRPCOperationSelectorImpl.java | 44 + .../http/wireformat/jsonrpc/JSONRPCWireFormat.java | 39 + .../jsonrpc/JSONRPCWireFormatFactory.java | 33 + .../jsonrpc/impl/JSONRPCWireFormatFactoryImpl.java | 37 + .../jsonrpc/impl/JSONRPCWireFormatImpl.java | 44 + ...elector.jsonrpc.JSONRPCOperationSelectorFactory | 19 + ...ttp.wireformat.jsonrpc.JSONRPCWireFormatFactory | 19 + ...ca.contribution.processor.StAXArtifactProcessor | 20 + .../JSONRPCOperationSelectorProcessorTestCase.java | 126 + .../impl/JSONRPCWireFormatProcessorTestCase.java | 130 + .../1.5.1-RC4/modules/binding-http-runtime/LICENSE | 205 ++ .../1.5.1-RC4/modules/binding-http-runtime/NOTICE | 6 + .../1.5.1-RC4/modules/binding-http-runtime/pom.xml | 120 + .../http/provider/HTTPBindingListenerServlet.java | 516 ++++ .../http/provider/HTTPBindingProviderFactory.java | 65 + .../http/provider/HTTPGetListenerServlet.java | 94 + .../http/provider/HTTPRRBListenerServlet.java | 102 + .../http/provider/HTTPServiceBindingProvider.java | 265 ++ .../http/provider/HTTPServiceListenerServlet.java | 136 + .../sca/binding/http/util/HTTPHeadersParser.java | 50 + ...che.tuscany.sca.provider.BindingProviderFactory | 19 + .../sca/binding/http/HTTPBindingCacheTestCase.java | 855 +++++++ .../sca/binding/http/HTTPBindingTestCase.java | 147 ++ .../sca/binding/http/NotModifiedException.java | 44 + .../binding/http/PreconditionFailedException.java | 44 + .../sca/binding/http/TestBindingCacheImpl.java | 241 ++ .../tuscany/sca/binding/http/TestGetImpl.java | 37 + .../sca/binding/http/TestServiceCacheImpl.java | 61 + .../tuscany/sca/binding/http/TestServiceImpl.java | 61 + .../src/test/resources/content/test.html | 21 + .../src/test/resources/test.composite | 47 + .../src/test/resources/testCache.composite | 33 + .../sca/1.5.1-RC4/modules/binding-http/LICENSE | 205 ++ .../java/sca/1.5.1-RC4/modules/binding-http/NOTICE | 6 + .../sca/1.5.1-RC4/modules/binding-http/pom.xml | 87 + .../tuscany/sca/binding/http/HTTPBinding.java | 31 + .../sca/binding/http/HTTPBindingContext.java | 47 + .../sca/binding/http/HTTPBindingFactory.java | 35 + .../tuscany/sca/binding/http/HTTPCacheContext.java | 257 ++ .../tuscany/sca/binding/http/HTTPHeader.java | 51 + .../binding/http/impl/HTTPBindingFactoryImpl.java | 36 + .../sca/binding/http/impl/HTTPBindingImpl.java | 139 ++ .../sca/binding/http/xml/HTTPBindingProcessor.java | 181 ++ ...che.tuscany.sca.binding.http.HTTPBindingFactory | 19 + ...ca.contribution.processor.StAXArtifactProcessor | 19 + .../1.5.1-RC4/modules/binding-jms-policy/LICENSE | 205 ++ .../1.5.1-RC4/modules/binding-jms-policy/NOTICE | 6 + .../1.5.1-RC4/modules/binding-jms-policy/pom.xml | 94 + .../jms/policy/JMSBindingDefinitionsProvider.java | 66 + .../token/JMSTokenAuthenticationPolicy.java | 56 + .../JMSTokenAuthenticationPolicyProcessor.java | 112 + ...MSTokenAuthenticationPolicyProviderFactory.java | 75 + ...enAuthenticationReferencePolicyInterceptor.java | 100 + ...TokenAuthenticationReferencePolicyProvider.java | 91 + ...okenAuthenticationServicePolicyInterceptor.java | 100 + ...MSTokenAuthenticationServicePolicyProvider.java | 88 + .../binding/jms/policy/header/JMSHeaderPolicy.java | 131 + .../policy/header/JMSHeaderPolicyProcessor.java | 210 ++ .../header/JMSHeaderPolicyProviderFactory.java | 75 + .../JMSHeaderReferencePolicyInterceptor.java | 101 + .../header/JMSHeaderReferencePolicyProvider.java | 90 + ...ca.contribution.processor.StAXArtifactProcessor | 20 + ...ache.tuscany.sca.provider.PolicyProviderFactory | 19 + ...che.tuscany.sca.provider.SCADefinitionsProvider | 19 + ...nding-jms-policy-validation-messages.properties | 23 + .../tuscany/sca/binding/jms/policy/definitions.xml | 84 + .../jms/policy/PolicyProcessorTestCase.java | 91 + .../binding/jms/policy/mock_policy_definitions.xml | 39 + .../1.5.1-RC4/modules/binding-jms-runtime/LICENSE | 205 ++ .../1.5.1-RC4/modules/binding-jms-runtime/NOTICE | 6 + .../1.5.1-RC4/modules/binding-jms-runtime/pom.xml | 142 ++ .../sca/binding/jms/context/JMSBindingContext.java | 143 ++ .../jms/headers/HeaderReferenceInterceptor.java | 182 ++ ...OperationSelectorJMSDefaultProviderFactory.java | 69 + ...rationSelectorJMSDefaultServiceInterceptor.java | 196 ++ ...OperationSelectorJMSDefaultServiceProvider.java | 59 + ...perationSelectorJMSUserPropProviderFactory.java | 62 + ...ationSelectorJMSUserPropServiceInterceptor.java | 107 + ...perationSelectorJMSUserPropServiceProvider.java | 54 + .../jms/provider/AbstractMessageProcessor.java | 136 + .../jms/provider/BytesMessageProcessor.java | 124 + .../DefaultJMSResourceFactoryExtensionPoint.java | 30 + .../jms/provider/DefaultMessageProcessor.java | 287 +++ .../jms/provider/JMSBindingProviderFactory.java | 70 + .../JMSBindingReferenceBindingProvider.java | 170 ++ .../provider/JMSBindingServiceBindingProvider.java | 228 ++ .../binding/jms/provider/JMSMessageProcessor.java | 55 + .../jms/provider/JMSMessageProcessorUtil.java | 75 + .../binding/jms/provider/JMSResourceFactory.java | 95 + .../provider/JMSResourceFactoryExtensionPoint.java | 28 + .../jms/provider/JMSResourceFactoryImpl.java | 282 +++ .../jms/provider/ObjectMessageProcessor.java | 230 ++ .../binding/jms/provider/RRBJMSBindingInvoker.java | 270 ++ .../binding/jms/provider/TextMessageProcessor.java | 79 + .../jms/provider/XMLBytesMessageProcessor.java | 134 + .../jms/provider/XMLTextMessageProcessor.java | 129 + .../transport/TransportReferenceInterceptor.java | 163 ++ .../jms/transport/TransportServiceInterceptor.java | 188 ++ .../jms/wire/CallbackDestinationInterceptor.java | 96 + .../jms/wire/OperationPropertiesInterceptor.java | 78 + .../runtime/WireFormatJMSBytesProviderFactory.java | 66 + .../WireFormatJMSBytesReferenceInterceptor.java | 123 + .../WireFormatJMSBytesReferenceProvider.java | 97 + .../WireFormatJMSBytesServiceInterceptor.java | 114 + .../runtime/WireFormatJMSBytesServiceProvider.java | 101 + .../WireFormatJMSBytesXMLProviderFactory.java | 70 + .../WireFormatJMSBytesXMLReferenceInterceptor.java | 122 + .../WireFormatJMSBytesXMLReferenceProvider.java | 105 + .../WireFormatJMSBytesXMLServiceInterceptor.java | 109 + .../WireFormatJMSBytesXMLServiceProvider.java | 114 + .../WireFormatJMSDefaultProviderFactory.java | 69 + .../WireFormatJMSDefaultReferenceInterceptor.java | 176 ++ .../WireFormatJMSDefaultReferenceProvider.java | 199 ++ .../WireFormatJMSDefaultServiceInterceptor.java | 176 ++ .../WireFormatJMSDefaultServiceProvider.java | 191 ++ .../WireFormatJMSObjectProviderFactory.java | 66 + .../WireFormatJMSObjectReferenceInterceptor.java | 143 ++ .../WireFormatJMSObjectReferenceProvider.java | 116 + .../WireFormatJMSObjectServiceInterceptor.java | 138 ++ .../WireFormatJMSObjectServiceProvider.java | 122 + .../runtime/WireFormatJMSTextProviderFactory.java | 66 + .../WireFormatJMSTextReferenceInterceptor.java | 125 + .../WireFormatJMSTextReferenceProvider.java | 106 + .../WireFormatJMSTextServiceInterceptor.java | 114 + .../runtime/WireFormatJMSTextServiceProvider.java | 108 + .../WireFormatJMSTextXMLProviderFactory.java | 72 + .../WireFormatJMSTextXMLReferenceInterceptor.java | 128 + .../WireFormatJMSTextXMLReferenceProvider.java | 118 + .../WireFormatJMSTextXMLServiceInterceptor.java | 115 + .../WireFormatJMSTextXMLServiceProvider.java | 111 + ...che.tuscany.sca.provider.BindingProviderFactory | 19 + ...y.sca.provider.OperationSelectorProviderFactory | 20 + ....tuscany.sca.provider.WireFormatProviderFactory | 24 + .../sca/binding/jms/HelloWorldClientImpl.java | 43 + .../tuscany/sca/binding/jms/HelloWorldService.java | 31 + .../sca/binding/jms/HelloWorldServiceImpl.java | 32 + .../jms/OperationSelectionTestCaseFIXME.java | 237 ++ .../src/test/resources/simple/client.composite | 38 + .../src/test/resources/simple/service.composite | 35 + .../java/sca/1.5.1-RC4/modules/binding-jms/LICENSE | 205 ++ tags/java/sca/1.5.1-RC4/modules/binding-jms/NOTICE | 6 + .../java/sca/1.5.1-RC4/modules/binding-jms/pom.xml | 66 + .../sca/binding/jms/impl/BindingProperty.java | 71 + .../tuscany/sca/binding/jms/impl/JMSBinding.java | 970 ++++++++ .../sca/binding/jms/impl/JMSBindingConstants.java | 75 + .../sca/binding/jms/impl/JMSBindingException.java | 45 + .../sca/binding/jms/impl/JMSBindingProcessor.java | 1560 ++++++++++++ .../jmsdefault/OperationSelectorJMSDefault.java | 45 + .../OperationSelectorJMSDefaultProcessor.java | 76 + .../jmsuserprop/OperationSelectorJMSUserProp.java | 57 + .../OperationSelectorJMSUserPropProcessor.java | 87 + .../wireformat/jmsbytes/WireFormatJMSBytes.java | 45 + .../jmsbytes/WireFormatJMSBytesProcessor.java | 78 + .../jmsbytesxml/WireFormatJMSBytesXML.java | 40 + .../WireFormatJMSBytesXMLProcessor.java | 75 + .../jmsdefault/WireFormatJMSDefault.java | 64 + .../jmsdefault/WireFormatJMSDefaultProcessor.java | 93 + .../wireformat/jmsobject/WireFormatJMSObject.java | 57 + .../jmsobject/WireFormatJMSObjectProcessor.java | 91 + .../jms/wireformat/jmstext/WireFormatJMSText.java | 45 + .../jmstext/WireFormatJMSTextProcessor.java | 78 + .../jmstextxml/WireFormatJMSTextXML.java | 48 + .../jmstextxml/WireFormatJMSTextXMLProcessor.java | 78 + ...ca.contribution.processor.StAXArtifactProcessor | 27 + .../binding-jms-validation-messages.properties | 50 + .../jms/impl/JMSBindingProcessorTestCase.java | 783 ++++++ .../jms/impl/JMSBindingProcessorWriteTestCase.java | 456 ++++ .../modules/binding-jsonrpc-js-dojo/LICENSE | 205 ++ .../modules/binding-jsonrpc-js-dojo/NOTICE | 6 + .../modules/binding-jsonrpc-js-dojo/pom.xml | 74 + .../JSONRPCBindingJavascriptProxyFactoryImpl.java | 60 + ...scany.sca.web.javascript.JavascriptProxyFactory | 19 + .../1.5.1-RC4/modules/binding-jsonrpc-js/LICENSE | 205 ++ .../1.5.1-RC4/modules/binding-jsonrpc-js/NOTICE | 6 + .../1.5.1-RC4/modules/binding-jsonrpc-js/pom.xml | 74 + .../JSONRPCBindingJavascriptProxyFactoryImpl.java | 66 + ...scany.sca.web.javascript.JavascriptProxyFactory | 19 + .../src/main/resources/binding-jsonrpc.js | 492 ++++ .../modules/binding-jsonrpc-runtime/LICENSE | 205 ++ .../modules/binding-jsonrpc-runtime/NOTICE | 6 + .../modules/binding-jsonrpc-runtime/pom.xml | 164 ++ .../jsonrpc/provider/JSONRPCBindingInvoker.java | 45 + .../provider/JSONRPCBindingProviderFactory.java | 70 + .../provider/JSONRPCReferenceBindingProvider.java | 70 + .../provider/JSONRPCServiceBindingProvider.java | 189 ++ .../jsonrpc/provider/JSONRPCServiceServlet.java | 314 +++ .../sca/binding/jsonrpc/provider/JavaToSmd.java | 56 + .../jsonrpc/provider/ScaDomainScriptServlet.java | 114 + ...che.tuscany.sca.provider.BindingProviderFactory | 19 + .../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/EchoComponentImpl.java | 103 + .../binding/jsonrpc/JSONRPCDataTypeTestCase.java | 193 ++ .../binding/jsonrpc/JSONRPCExceptionTestCase.java | 86 + .../binding/jsonrpc/JSONRPCServiceTestCase.java | 70 + .../sca/binding/jsonrpc/JSONRPCSmdTestCase.java | 73 + .../src/test/resources/JSONRPCBinding.composite | 35 + .../sca/1.5.1-RC4/modules/binding-jsonrpc/LICENSE | 205 ++ .../sca/1.5.1-RC4/modules/binding-jsonrpc/NOTICE | 6 + .../sca/1.5.1-RC4/modules/binding-jsonrpc/pom.xml | 78 + .../sca/binding/jsonrpc/JSONRPCBinding.java | 32 + .../sca/binding/jsonrpc/JSONRPCBindingFactory.java | 35 + .../jsonrpc/impl/JSONRPCBindingFactoryImpl.java | 38 + .../binding/jsonrpc/impl/JSONRPCBindingImpl.java | 105 + ...scany.sca.binding.jsonrpc.JSONRPCBindingFactory | 19 + ...ca.contribution.processor.StAXArtifactProcessor | 19 + .../1.5.1-RC4/modules/binding-notification/LICENSE | 205 ++ .../1.5.1-RC4/modules/binding-notification/NOTICE | 6 + .../1.5.1-RC4/modules/binding-notification/pom.xml | 150 ++ .../DefaultNotificationBindingFactory.java | 31 + .../binding/notification/NotificationBinding.java | 37 + .../notification/NotificationBindingFactory.java | 27 + .../notification/NotificationBindingImpl.java | 75 + .../NotificationBindingModuleActivator.java | 68 + .../notification/NotificationBindingProcessor.java | 97 + .../NotificationBindingProviderFactory.java | 342 +++ .../notification/NotificationBrokerManager.java | 40 + .../NotificationReferenceBindingInvoker.java | 126 + .../NotificationReferenceBindingProvider.java | 338 +++ .../NotificationServiceBindingProvider.java | 317 +++ .../notification/NotificationTypeManager.java | 43 + .../notification/NotificationTypeManagerImpl.java | 669 +++++ .../notification/encoding/AbstractBroker.java | 44 + .../encoding/AbstractBrokerEnDeCoder.java | 86 + .../notification/encoding/AbstractEnDeCoder.java | 50 + .../sca/binding/notification/encoding/Broker.java | 25 + .../encoding/BrokerConsumerReference.java | 26 + .../encoding/BrokerConsumerReferenceEnDeCoder.java | 44 + .../notification/encoding/BrokerEnDeCoder.java | 46 + .../binding/notification/encoding/BrokerID.java | 41 + .../notification/encoding/BrokerIDEnDeCoder.java | 90 + .../encoding/BrokerProducerReference.java | 26 + .../encoding/BrokerProducerReferenceEnDeCoder.java | 44 + .../sca/binding/notification/encoding/Brokers.java | 41 + .../notification/encoding/BrokersEnDeCoder.java | 89 + .../notification/encoding/ConnectionOverride.java | 35 + .../encoding/ConnectionOverrideEnDeCoder.java | 83 + .../encoding/ConnectionOverrideResponse.java | 25 + .../ConnectionOverrideResponseEnDeCoder.java | 77 + .../binding/notification/encoding/Constants.java | 74 + .../notification/encoding/ConsumerReference.java | 26 + .../encoding/ConsumerReferenceEnDeCoder.java | 44 + .../encoding/DefaultEncodingRegistry.java | 78 + .../binding/notification/encoding/EnDeCoder.java | 62 + .../notification/encoding/EncodingException.java | 49 + .../notification/encoding/EncodingObject.java | 26 + .../notification/encoding/EncodingRegistry.java | 57 + .../notification/encoding/EncodingUtils.java | 83 + .../notification/encoding/EndConsumers.java | 26 + .../encoding/EndConsumersEnDeCoder.java | 61 + .../notification/encoding/EndProducers.java | 26 + .../encoding/EndProducersEnDeCoder.java | 61 + .../notification/encoding/EndpointAddress.java | 45 + .../encoding/EndpointAddressEnDeCoder.java | 90 + .../notification/encoding/EndpointReference.java | 44 + .../encoding/EndpointReferenceEnDeCoder.java | 99 + .../encoding/EndpointReferenceSequence.java | 54 + .../EndpointReferenceSequenceEnDeCoder.java | 85 + .../encoding/EndpointReferenceWrapper.java | 35 + .../EndpointReferenceWrapperEnDeCoder.java | 74 + .../encoding/NeighborBrokerConsumers.java | 26 + .../encoding/NeighborBrokerConsumersEnDeCoder.java | 61 + .../binding/notification/encoding/Neighbors.java | 45 + .../notification/encoding/NeighborsEnDeCoder.java | 89 + .../binding/notification/encoding/NewBroker.java | 25 + .../notification/encoding/NewBrokerAck.java | 25 + .../encoding/NewBrokerAckEnDeCoder.java | 77 + .../notification/encoding/NewBrokerEnDeCoder.java | 46 + .../notification/encoding/NewBrokerResponse.java | 62 + .../encoding/NewBrokerResponseEnDeCoder.java | 115 + .../binding/notification/encoding/NewConsumer.java | 26 + .../encoding/NewConsumerEnDeCoder.java | 44 + .../notification/encoding/NewConsumerResponse.java | 26 + .../encoding/NewConsumerResponseEnDeCoder.java | 61 + .../binding/notification/encoding/NewProducer.java | 26 + .../encoding/NewProducerEnDeCoder.java | 44 + .../notification/encoding/NewProducerResponse.java | 26 + .../encoding/NewProducerResponseEnDeCoder.java | 61 + .../notification/encoding/ReferenceProperties.java | 54 + .../encoding/ReferencePropertiesEnDeCoder.java | 87 + .../notification/encoding/RemoveBroker.java | 44 + .../encoding/RemoveBrokerEnDeCoder.java | 99 + .../notification/encoding/RemovedBroker.java | 26 + .../encoding/RemovedBrokerEnDeCoder.java | 44 + .../encoding/ReplaceBrokerConnection.java | 44 + .../encoding/ReplaceBrokerConnectionEnDeCoder.java | 99 + .../binding/notification/encoding/Subscribe.java | 35 + .../notification/encoding/SubscribeEnDeCoder.java | 83 + .../sca/binding/notification/util/IOUtils.java | 176 ++ .../notification/util/NotificationServlet.java | 89 + .../sca/binding/notification/util/URIUtil.java | 41 + .../org.apache.tuscany.sca.core.ModuleActivator | 18 + .../notification/encoding/AxiomTestCase.java | 56 + .../notification/encoding/EncodingTestCase.java | 470 ++++ .../1.5.1-RC4/modules/binding-rmi-runtime/LICENSE | 205 ++ .../1.5.1-RC4/modules/binding-rmi-runtime/NOTICE | 6 + .../1.5.1-RC4/modules/binding-rmi-runtime/pom.xml | 99 + .../rmi/provider/RMIBindingProviderFactory.java | 62 + .../rmi/provider/RMIReferenceBindingProvider.java | 80 + .../binding/rmi/provider/RMIReferenceInvoker.java | 88 + .../rmi/provider/RMIServiceBindingProvider.java | 213 ++ ...che.tuscany.sca.provider.BindingProviderFactory | 19 + .../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 | 78 + .../test/resources/HelloWorldImpl.componentType | 23 + .../test/resources/HelloWorldRmiImpl.componentType | 27 + .../src/test/resources/RMIBindingTest.composite | 43 + .../java/sca/1.5.1-RC4/modules/binding-rmi/LICENSE | 205 ++ tags/java/sca/1.5.1-RC4/modules/binding-rmi/NOTICE | 6 + .../java/sca/1.5.1-RC4/modules/binding-rmi/pom.xml | 93 + .../apache/tuscany/sca/binding/rmi/RMIBinding.java | 61 + .../tuscany/sca/binding/rmi/RMIBindingFactory.java | 31 + .../binding/rmi/impl/RMIBindingFactoryImpl.java | 34 + .../sca/binding/rmi/impl/RMIBindingImpl.java | 157 ++ ...pache.tuscany.sca.binding.rmi.RMIBindingFactory | 19 + ...ca.contribution.processor.StAXArtifactProcessor | 19 + .../sca/1.5.1-RC4/modules/binding-rss-rome/LICENSE | 205 ++ .../sca/1.5.1-RC4/modules/binding-rss-rome/NOTICE | 6 + .../sca/1.5.1-RC4/modules/binding-rss-rome/pom.xml | 171 ++ .../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 | 71 + .../rss/provider/RSSReferenceBindingProvider.java | 65 + .../rss/provider/RSSServiceBindingProvider.java | 85 + ...che.tuscany.sca.provider.BindingProviderFactory | 19 + .../apache/tuscany/sca/binding/rss/Consumer.java | 35 + .../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 | 41 + .../tuscany/sca/binding/rss/RSSGetTestCase.java | 67 + .../tuscany/sca/binding/rss/Consumer.composite | 32 + .../tuscany/sca/binding/rss/Provider.composite | 33 + .../java/sca/1.5.1-RC4/modules/binding-rss/LICENSE | 205 ++ tags/java/sca/1.5.1-RC4/modules/binding-rss/NOTICE | 6 + .../java/sca/1.5.1-RC4/modules/binding-rss/pom.xml | 98 + .../apache/tuscany/sca/binding/rss/RSSBinding.java | 28 + .../tuscany/sca/binding/rss/RSSBindingFactory.java | 35 + .../binding/rss/impl/RSSBindingFactoryImpl.java | 36 + .../sca/binding/rss/impl/RSSBindingImpl.java | 99 + ...pache.tuscany.sca.binding.rss.RSSBindingFactory | 19 + ...ca.contribution.processor.StAXArtifactProcessor | 19 + .../1.5.1-RC4/modules/binding-sca-axis2/LICENSE | 205 ++ .../sca/1.5.1-RC4/modules/binding-sca-axis2/NOTICE | 6 + .../1.5.1-RC4/modules/binding-sca-axis2/pom.xml | 103 + .../sca/axis2/impl/Axis2SCABindingInvoker.java | 100 + .../axis2/impl/Axis2SCABindingProviderFactory.java | 67 + .../impl/Axis2SCAReferenceBindingProvider.java | 184 ++ .../axis2/impl/Axis2SCAServiceBindingProvider.java | 127 + .../sca/axis2/impl/Axis2SCAServiceProvider.java | 88 + ...che.tuscany.sca.provider.BindingProviderFactory | 19 + .../sca/binding/sca/axis2/AsynchTestCase.java | 73 + .../BindingScaEndpointResolverFactoryImpl.java | 50 + .../sca/axis2/BindingScaEndpointResolverImpl.java | 69 + .../sca/binding/sca/axis2/CallbackTestCase.java | 77 + .../sca/binding/sca/axis2/PromotionTestCase.java | 66 + .../sca/binding/sca/axis2/SimpleTestCase.java | 105 + .../tuscany/sca/binding/sca/axis2/TestNode.java | 232 ++ .../axis2/helloworld/HelloWorldCallbackRemote.java | 29 + .../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 | 36 + .../impl/HelloWorldServiceCallbackRemoteImpl.java | 35 + .../impl/HelloWorldServiceLocalImpl.java | 30 + .../HelloWorldServiceMultipleServicesImpl.java | 41 + .../impl/HelloWorldServiceRemoteImpl.java | 30 + ...ny.sca.endpointresolver.EndpointResolverFactory | 19 + .../src/test/resources/nodeA/HelloWorld.composite | 75 + .../resources/nodeA/META-INF/sca-contribution.xml | 24 + .../src/test/resources/nodeB/HelloWorld.composite | 84 + .../resources/nodeB/META-INF/sca-contribution.xml | 24 + .../src/test/resources/nodeC/HelloWorld.composite | 35 + .../resources/nodeC/HelloWorldComponent.composite | 37 + .../resources/nodeC/META-INF/sca-contribution.xml | 24 + .../src/test/resources/nodeD/HelloWorld.composite | 35 + .../resources/nodeD/HelloWorldComponent.composite | 37 + .../resources/nodeD/META-INF/sca-contribution.xml | 24 + .../src/test/resources/nodeE/HelloWorld.composite | 36 + .../resources/nodeE/META-INF/sca-contribution.xml | 24 + .../src/test/resources/nodeF/HelloWorld.composite | 43 + .../resources/nodeF/META-INF/sca-contribution.xml | 24 + .../src/test/resources/nodeG/HelloWorld.composite | 36 + .../resources/nodeG/META-INF/sca-contribution.xml | 23 + .../src/test/resources/nodeH/HelloWorld.composite | 38 + .../resources/nodeH/META-INF/sca-contribution.xml | 23 + .../1.5.1-RC4/modules/binding-sca-corba/LICENSE | 205 ++ .../sca/1.5.1-RC4/modules/binding-sca-corba/NOTICE | 6 + .../1.5.1-RC4/modules/binding-sca-corba/pom.xml | 114 + .../corba/impl/CorbaSCABindingProviderFactory.java | 64 + .../sca/corba/impl/CorbaSCAInvocationProxy.java | 111 + .../binding/sca/corba/impl/CorbaSCAInvoker.java | 99 + .../impl/CorbaSCAReferenceBindingProvider.java | 95 + .../corba/impl/CorbaSCAServiceBindingProvider.java | 97 + .../sca/corba/impl/WrappedSCAException.java | 56 + ...che.tuscany.sca.provider.BindingProviderFactory | 19 + .../sca/1.5.1-RC4/modules/binding-sca-xml/LICENSE | 205 ++ .../sca/1.5.1-RC4/modules/binding-sca-xml/NOTICE | 6 + .../sca/1.5.1-RC4/modules/binding-sca-xml/pom.xml | 77 + .../sca/binding/sca/xml/SCABindingProcessor.java | 171 ++ ...ca.contribution.processor.StAXArtifactProcessor | 19 + .../tuscany/sca/binding/sca/xml/ReadTestCase.java | 108 + .../sca/xml/ReadWriteAnyAttributeTestCase.java | 140 ++ .../tuscany/sca/binding/sca/xml/WriteTestCase.java | 77 + .../src/test/resources/Calculator.composite | 59 + .../resources/CalculatorServiceImpl.componentType | 33 + .../java/sca/1.5.1-RC4/modules/binding-sca/LICENSE | 205 ++ tags/java/sca/1.5.1-RC4/modules/binding-sca/NOTICE | 6 + .../java/sca/1.5.1-RC4/modules/binding-sca/pom.xml | 93 + .../sca/binding/sca/DistributedSCABinding.java | 37 + .../binding/sca/SCABindingDefinitionsProvider.java | 73 + .../sca/impl/DistributedSCABindingImpl.java | 116 + .../sca/binding/sca/impl/RemoteBindingHelper.java | 44 + .../sca/impl/RuntimeSCABindingProvider.java | 61 + .../sca/impl/RuntimeSCABindingProviderFactory.java | 62 + .../impl/RuntimeSCAReferenceBindingProvider.java | 252 ++ .../sca/impl/RuntimeSCAServiceBindingProvider.java | 154 ++ .../binding/sca/impl/SCABindingFactoryImpl.java | 40 + .../sca/binding/sca/impl/SCABindingImpl.java | 224 ++ .../sca/binding/sca/impl/SCABindingInvoker.java | 71 + ...g.apache.tuscany.sca.assembly.SCABindingFactory | 18 + ...che.tuscany.sca.provider.BindingProviderFactory | 19 + ...che.tuscany.sca.provider.SCADefinitionsProvider | 19 + .../apache/tuscany/sca/binding/sca/definitions.xml | 26 + .../sca/binding/sca/SCABindingTestCase.java | 113 + .../src/test/resources/Calculator.composite | 52 + .../modules/binding-ws-axis2-policy/LICENSE | 205 ++ .../modules/binding-ws-axis2-policy/NOTICE | 6 + .../modules/binding-ws-axis2-policy/pom.xml | 149 ++ .../token/Axis2TokenAuthenticationPolicy.java | 56 + .../Axis2TokenAuthenticationPolicyProcessor.java | 112 + ...s2TokenAuthenticationPolicyProviderFactory.java | 75 + ...enAuthenticationReferencePolicyInterceptor.java | 100 + ...TokenAuthenticationReferencePolicyProvider.java | 90 + ...okenAuthenticationServicePolicyInterceptor.java | 94 + ...s2TokenAuthenticationServicePolicyProvider.java | 88 + .../configuration/Axis2ConfigParamPolicy.java | 54 + .../Axis2ConfigParamPolicyHandler.java | 79 + .../Axis2ConfigParamPolicyProcessor.java | 157 ++ .../Axis2ConfigParamPolicyProviderFactory.java | 99 + .../ws/axis2/policy/header/Axis2HeaderPolicy.java | 56 + .../policy/header/Axis2HeaderPolicyProcessor.java | 114 + .../header/Axis2HeaderPolicyProviderFactory.java | 75 + .../axis2/policy/header/Axis2HeaderPolicyUtil.java | 50 + .../Axis2HeaderReferencePolicyInterceptor.java | 88 + .../header/Axis2HeaderReferencePolicyProvider.java | 90 + .../Axis2HeaderServicePolicyInterceptor.java | 77 + .../header/Axis2HeaderServicePolicyProvider.java | 88 + .../ws/axis2/policy/header/Axis2SOAPHeader.java | 60 + .../axis2/policy/header/Axis2SOAPHeaderString.java | 60 + .../policy/wspolicy/WSSecurityPolicyHandler.java | 80 + ...ca.contribution.processor.StAXArtifactProcessor | 21 + ...rg.apache.tuscany.sca.policy.util.PolicyHandler | 25 + ...ache.tuscany.sca.provider.PolicyProviderFactory | 20 + .../policy/configuration/PolicyReadTestCase.java | 60 + .../axis2/policy/configuration/mock_policies.xml | 36 + .../sca/1.5.1-RC4/modules/binding-ws-axis2/LICENSE | 205 ++ .../sca/1.5.1-RC4/modules/binding-ws-axis2/NOTICE | 6 + .../sca/1.5.1-RC4/modules/binding-ws-axis2/pom.xml | 351 +++ .../sca/binding/ws/axis2/Axis2BindingInvoker.java | 300 +++ .../ws/axis2/Axis2BindingProviderFactory.java | 89 + .../ws/axis2/Axis2OneWayBindingInvoker.java | 71 + .../ws/axis2/Axis2ReferenceBindingProvider.java | 87 + .../ws/axis2/Axis2ServiceBindingProvider.java | 86 + .../sca/binding/ws/axis2/Axis2ServiceClient.java | 503 ++++ .../ws/axis2/Axis2ServiceInMessageReceiver.java | 79 + .../Axis2ServiceInOutSyncMessageReceiver.java | 103 + .../sca/binding/ws/axis2/Axis2ServiceProvider.java | 843 +++++++ .../sca/binding/ws/axis2/Axis2ServiceServlet.java | 356 +++ .../sca/binding/ws/axis2/AxisPolicyHelper.java | 79 + .../binding/ws/axis2/TuscanyAxisConfigurator.java | 207 ++ .../sca/binding/ws/axis2/TuscanyDispatcher.java | 105 + .../binding/ws/axis2/TuscanyListenerManager.java | 107 + .../sca/binding/ws/axis2/TuscanyListingAgent.java | 238 ++ .../ws/axis2/WSBindingDefinitionsProvider.java | 66 + .../sca/binding/ws/axis2/jms/AxisJMSException.java | 35 + .../binding/ws/axis2/jms/JMSConnectionFactory.java | 605 +++++ .../sca/binding/ws/axis2/jms/JMSListener.java | 527 ++++ .../binding/ws/axis2/jms/JMSMessageReceiver.java | 270 ++ .../binding/ws/axis2/jms/JMSOutTransportInfo.java | 220 ++ .../sca/binding/ws/axis2/jms/JMSSender.java | 389 +++ .../apache/tuscany/sca/binding/ws/axis2/jms/README | 14 + ...xis2BindingBasicAuthenticationConfigurator.java | 111 + .../Axis2BindingHeaderConfigurator.java | 69 + ...che.tuscany.sca.provider.BindingProviderFactory | 19 + ...che.tuscany.sca.provider.SCADefinitionsProvider | 19 + .../tuscany/sca/binding/ws/axis2/definitions.xml | 54 + .../sca/binding/ws/axis2/engine/config/axis2.xml | 504 ++++ .../ws/axis2/engine/config/modules/modules.list | 1 + .../ws/axis2/engine/config/modules/rampart-1.4.mar | Bin 0 -> 2796 bytes .../ws/axis2/engine/config/services/services.list | 0 .../binding/ws/axis2/Axis2ReferenceTestCase.java | 83 + .../sca/binding/ws/axis2/Axis2ServiceTestCase.java | 104 + .../tuscany/sca/binding/ws/axis2/Greeter.java | 31 + .../sca/binding/ws/axis2/GreetingCallback.java | 24 + .../sca/binding/ws/axis2/itests/Account.java | 34 + .../binding/ws/axis2/itests/AccountService.java | 33 + .../tuscany/sca/binding/ws/axis2/itests/Bar.java | 58 + .../ws/axis2/itests/CustomerProfileData.java | 103 + .../tuscany/sca/binding/ws/axis2/itests/Echo.java | 29 + .../sca/binding/ws/axis2/itests/EchoComponent.java | 33 + .../sca/binding/ws/axis2/itests/EchoImpl.java | 29 + .../tuscany/sca/binding/ws/axis2/itests/Foo.java | 36 + .../sca/binding/ws/axis2/itests/HelloWorld.java | 29 + .../ws/axis2/itests/HelloWorldComponent.java | 33 + .../ws/axis2/itests/HelloWorldMultiService.java | 51 + .../ws/axis2/itests/HelloWorldNoWSDLTestCase.java | 77 + .../sca/binding/ws/axis2/itests/HelloWorldOM.java | 30 + .../sca/binding/ws/axis2/itests/HelloWorldOM2.java | 30 + .../ws/axis2/itests/HelloWorldOMComponent.java | 34 + .../ws/axis2/itests/HelloWorldOMService.java | 41 + .../ws/axis2/itests/HelloWorldOMTestCase.java | 58 + .../binding/ws/axis2/itests/HelloWorldService.java | 28 + .../ws/axis2/itests/HelloWorldTestCase.java | 46 + .../axis2/itests/HelloWorldWSDLMergedTestCase.java | 58 + .../itests/QuestionMarkWSDLImportTestCase.java | 96 + .../QuestionMarkWSDLIncludeTestCaseFIXME.java | 98 + .../ws/axis2/itests/QuestionMarkWSDLTestCase.java | 124 + .../ws/axis2/itests/UriPrecedenceTestCase.java | 68 + .../endpoints/AbstractHelloWorldOMTestCase.java | 64 + .../endpoints/DefaultMultiServiceTestCase.java | 24 + .../endpoints/DefaultSingleServiceTestCase.java | 24 + .../itests/endpoints/WSDLExplicitURITestCase.java | 24 + .../itests/endpoints/WSDLRelativeURITestCase.java | 24 + .../ws/axis2/itests/epr/HelloWorldTestCase.java | 47 + .../ws/axis2/itests/mtom/FileTransferClient.java | 57 + .../itests/mtom/FileTransferMTOMTestCase.java | 122 + .../ws/axis2/itests/mtom/FileTransferService.java | 46 + .../itests/mtom/FileTransferServiceClient.java | 42 + .../axis2/itests/mtom/FileTransferServiceImpl.java | 57 + .../binding/ws/axis2/itests/mtom/MyException.java | 26 + .../ws/axis2/itests/mtom/MyExceptionAdapter.java | 31 + .../ws/axis2/itests/mtom/MyExceptionImpl.java | 26 + .../configparams/AbstractHelloWorldOMTestCase.java | 64 + .../policy/configparams/ClientPWCBHandler.java | 45 + .../policy/configparams/IntegrityPWCBHandler.java | 45 + .../policy/configparams/ServerPWCBHandler.java | 45 + .../WSSecurityAuthenticationTestCaseFIXME.java | 24 + ...onfidentialityTestCaseFIXBouncyCastleIssue.java | 42 + .../configparams/WSSecurityIntegrityTestCase.java | 24 + .../policy/mixed/AbstractHelloWorldOMTestCase.java | 67 + .../itests/policy/mixed/ClientPWCBHandler.java | 50 + .../itests/policy/mixed/IntegrityPWCBHandler.java | 50 + .../itests/policy/mixed/ServerPWCBHandler.java | 49 + .../policy/mixed/WSSecurityMixedTestCase.java | 24 + .../wspolicy/AbstractHelloWorldOMTestCase.java | 64 + .../itests/policy/wspolicy/ClientPWCBHandler.java | 45 + .../policy/wspolicy/IntegrityPWCBHandler.java | 45 + .../itests/policy/wspolicy/ServerPWCBHandler.java | 45 + .../wspolicy/WSSecurityAuthenticationTestCase.java | 24 + ...onfidentialityTestCaseFIXBouncyCastleIssue.java | 42 + .../wspolicy/WSSecurityIntegrityTestCase.java | 24 + .../itests/soap12/HelloWorldSOAP12TestCase.java | 58 + .../itests/soap12/QuestionMarkWSDLTestCase.java | 138 ++ ...rg.apache.tuscany.sca.policy.util.PolicyHandler | 20 + .../binding/ws/axis2/itests/HelloWorld.composite | 50 + .../ws/axis2/itests/HelloWorldNoWSDL.composite | 61 + .../sca/binding/ws/axis2/itests/customerdata.xsd | 36 + .../sca/binding/ws/axis2/itests/customerdefs.xsd | 27 + .../sca/binding/ws/axis2/itests/customerinfo.xsd | 31 + .../itests/endpoints/DefaultMultiService.composite | 51 + .../endpoints/DefaultSingleService.composite | 51 + .../itests/endpoints/WSDLExplicitURI.composite | 49 + .../itests/endpoints/WSDLRelativeURI.composite | 49 + .../endpoints/helloworld-om-relative-uri.wsdl | 78 + .../ws/axis2/itests/epr/HelloWorld.composite | 50 + .../ws/axis2/itests/helloworld-om-binding.wsdl | 45 + .../ws/axis2/itests/helloworld-om-merged.composite | 42 + .../ws/axis2/itests/helloworld-om-porttype.wsdl | 59 + .../binding/ws/axis2/itests/helloworld-om-uri.wsdl | 78 + .../ws/axis2/itests/helloworld-om.composite | 43 + .../sca/binding/ws/axis2/itests/helloworld-om.wsdl | 78 + .../ws/axis2/itests/helloworld-prec.composite | 47 + .../binding/ws/axis2/itests/helloworld-prec.wsdl | 81 + .../sca/binding/ws/axis2/itests/helloworld.wsdl | 86 + .../binding/ws/axis2/itests/mtom/filetransfer.wsdl | 220 ++ .../itests/mtom/filetransferservice.composite | 42 + .../WSSecurityAuthentication.composite | 50 + .../WSSecurityConfidentiality.composite | 49 + .../configparams/WSSecurityIntegrity.composite | 49 + .../itests/policy/configparams/definitions.xml | 101 + .../itests/policy/configparams/security.properties | 20 + .../itests/policy/configparams/tuscanyKeys.jks | Bin 0 -> 1366 bytes .../ws/axis2/itests/policy/intent/definitions.xml | 32 + .../itests/policy/mixed/WSSecurityMixed.composite | 52 + .../ws/axis2/itests/policy/mixed/definitions.xml | 323 +++ .../axis2/itests/policy/mixed/security.properties | 20 + .../ws/axis2/itests/policy/mixed/tuscanyKeys.jks | Bin 0 -> 1366 bytes .../wspolicy/WSSecurityAuthentication.composite | 50 + .../wspolicy/WSSecurityConfidentiality.composite | 49 + .../policy/wspolicy/WSSecurityIntegrity.composite | 50 + .../axis2/itests/policy/wspolicy/definitions.xml | 204 ++ .../axis2/itests/policy/wspolicy/tuscanyKeys.jks | Bin 0 -> 1352 bytes .../axis2/itests/questionmark-import-nested.wsdl | 70 + .../ws/axis2/itests/questionmark-import.wsdl | 49 + .../ws/axis2/itests/questionmark-include.wsdl | 94 + .../itests/questionmark-wsdl-import.composite | 31 + .../itests/questionmark-wsdl-include.composite | 31 + .../ws/axis2/itests/questionmark-wsdl.composite | 39 + .../axis2/itests/soap12/HelloWorldSOAP12.composite | 71 + .../itests/soap12/questionmark-wsdl.composite | 40 + .../1.5.1-RC4/modules/binding-ws-wsdlgen/LICENSE | 205 ++ .../1.5.1-RC4/modules/binding-ws-wsdlgen/NOTICE | 6 + .../1.5.1-RC4/modules/binding-ws-wsdlgen/pom.xml | 108 + .../binding/ws/wsdlgen/BindingWSDLGenerator.java | 345 +++ .../ws/wsdlgen/Interface2WSDLGenerator.java | 913 +++++++ .../ws/wsdlgen/WSDLDefinitionGenerator.java | 316 +++ .../ws/wsdlgen/WSDLGenerationException.java | 54 + .../binding/ws/wsdlgen/WSDLServiceGenerator.java | 542 ++++ .../wsdlgen-validation-messages.properties | 31 + .../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 | 66 + .../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 + .../sca/1.5.1-RC4/modules/binding-ws-xml/LICENSE | 205 ++ .../sca/1.5.1-RC4/modules/binding-ws-xml/NOTICE | 6 + .../sca/1.5.1-RC4/modules/binding-ws-xml/pom.xml | 100 + .../sca/binding/ws/xml/BindingBuilderImpl.java | 51 + .../binding/ws/xml/EndPointReferenceHelper.java | 230 ++ .../binding/ws/xml/WebServiceBindingProcessor.java | 484 ++++ .../sca/binding/ws/xml/WebServiceConstants.java | 44 + ...ca.contribution.processor.StAXArtifactProcessor | 19 + .../binding-wsxml-validation-messages.properties | 27 + .../tuscany/sca/binding/ws/xml/ReadTestCase.java | 127 + .../ws/xml/ReadWriteAnyAttributeTestCase.java | 133 + .../tuscany/sca/binding/ws/xml/WriteTestCase.java | 78 + .../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 + tags/java/sca/1.5.1-RC4/modules/binding-ws/LICENSE | 205 ++ tags/java/sca/1.5.1-RC4/modules/binding-ws/NOTICE | 6 + tags/java/sca/1.5.1-RC4/modules/binding-ws/pom.xml | 85 + .../ws/DefaultWebServiceBindingFactory.java | 31 + .../tuscany/sca/binding/ws/WebServiceBinding.java | 215 ++ .../sca/binding/ws/WebServiceBindingFactory.java | 35 + .../binding/ws/addressing/EndPointReference.java | 62 + .../ws/impl/WebServiceBindingFactoryImpl.java | 35 + .../sca/binding/ws/impl/WebServiceBindingImpl.java | 321 +++ ...tuscany.sca.binding.ws.WebServiceBindingFactory | 19 + .../1.5.1-RC4/modules/contribution-groovy/LICENSE | 205 ++ .../1.5.1-RC4/modules/contribution-groovy/NOTICE | 8 + .../1.5.1-RC4/modules/contribution-groovy/pom.xml | 84 + .../sca/contribution/groovy/GroovyArtifact.java | 41 + .../groovy/GroovyArtifactProcessor.java | 57 + .../contribution/groovy/GroovyModelResolver.java | 69 + ...sca.contribution.processor.URLArtifactProcessor | 20 + ...tuscany.sca.contribution.resolver.ModelResolver | 18 + .../sca/contribution/groovy/HelloWorld.java | 31 + .../contribution/groovy/HelloWorldTestCase.java | 55 + .../sca/contribution/groovy/HelloWorld.groovy | 27 + .../sca/contribution/groovy/helloworld.composite | 29 + .../1.5.1-RC4/modules/contribution-impl/LICENSE | 205 ++ .../sca/1.5.1-RC4/modules/contribution-impl/NOTICE | 6 + .../1.5.1-RC4/modules/contribution-impl/pom.xml | 76 + .../impl/FolderContributionProcessor.java | 160 ++ .../processor/impl/JarContributionProcessor.java | 130 + .../service/impl/ContributionRepositoryImpl.java | 469 ++++ .../service/impl/ContributionServiceImpl.java | 640 +++++ .../service/impl/PackageTypeDescriberImpl.java | 122 + .../sca/contribution/service/util/FileHelper.java | 701 ++++++ .../sca/contribution/service/util/IOHelper.java | 190 ++ ...any.sca.contribution.processor.PackageProcessor | 19 + ...ontribution-impl-validation-messages.properties | 28 + ...FolderContributionPackageProcessorTestCase.java | 46 + .../JarContributionPackageProcessorTestCase.java | 55 + ...URLartifactProcessorExtensionPointTestCase.java | 114 + .../resolver/DefaultModelResolverTestCase.java | 86 + .../resolver/ExtensibleModelResolverTestCase.java | 126 + .../contribution/resolver/TestModelResolver.java | 58 + .../impl/ContributionRepositoryTestCase.java | 81 + .../impl/PackageTypeDescriberImplTestCase.java | 63 + .../resources/deployables/sample-calculator.jar | Bin 0 -> 26901 bytes .../resources/repository/sample-calculator.jar | Bin 0 -> 10037 bytes .../test/resources/repository3/contribution.zip | Bin 0 -> 5478 bytes .../src/test/resources/test.composite | 22 + .../contribution-impl/src/test/resources/test.ext | 0 .../1.5.1-RC4/modules/contribution-java/LICENSE | 205 ++ .../sca/1.5.1-RC4/modules/contribution-java/NOTICE | 6 + .../1.5.1-RC4/modules/contribution-java/pom.xml | 77 + .../java/ContributionClassLoaderProvider.java | 44 + ...tributionClassloaderProviderExtensionPoint.java | 55 + .../DefaultContributionClassLoaderProvider.java | 47 + ...tributionClassloaderProviderExtensionPoint.java | 144 ++ .../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 | 168 ++ .../java/impl/ClassReferenceModelResolver.java | 177 ++ .../java/impl/ContributionClassLoader.java | 390 +++ .../contribution/java/impl/ContributionHelper.java | 96 + .../sca/contribution/java/impl/JavaExportImpl.java | 59 + .../java/impl/JavaExportModelResolver.java | 76 + .../java/impl/JavaExportProcessor.java | 163 ++ .../java/impl/JavaImportExportFactoryImpl.java | 41 + .../java/impl/JavaImportExportListener.java | 157 ++ .../sca/contribution/java/impl/JavaImportImpl.java | 111 + .../java/impl/JavaImportModelResolver.java | 62 + .../java/impl/JavaImportProcessor.java | 168 ++ ...ntribution.java.ContributionClassLoaderProvider | 21 + ...a.ContributionClassloaderProviderExtensionPoint | 18 + ...y.sca.contribution.java.JavaImportExportFactory | 18 + ...ca.contribution.processor.StAXArtifactProcessor | 19 + ...tuscany.sca.contribution.resolver.ModelResolver | 18 + ...y.sca.contribution.service.ContributionListener | 18 + ...ontribution-java-validation-messages.properties | 23 + .../ClassReferenceArtifactResolverTestCase.java | 70 + .../java/impl/ContributionClassLoaderTestCase.java | 262 ++ .../java/impl/JavaExportProcessorTestCase.java | 103 + .../java/impl/JavaImportProcessorTestCase.java | 105 + .../resources/deployables/sample-calculator.jar | Bin 0 -> 26901 bytes .../modules/contribution-jee-impl/LICENSE | 205 ++ .../1.5.1-RC4/modules/contribution-jee-impl/NOTICE | 6 + .../modules/contribution-jee-impl/pom.xml | 127 + .../contribution/jee/JEEDefinitionsProvider.java | 73 + .../sca/contribution/jee/JavaEEModuleHelper.java | 63 + .../jee/impl/EARContributionClassLoader.java | 201 ++ .../impl/EARContributionClassLoaderProvider.java | 49 + .../jee/impl/JavaEEIntrospectorImpl.java | 421 ++++ .../jee/impl/WARContributionClassLoader.java | 191 ++ .../impl/WARContributionClassLoaderProvider.java | 49 + ...ntribution.java.ContributionClassLoaderProvider | 18 + ...tuscany.sca.contribution.jee.JavaEEIntrospector | 18 + ...che.tuscany.sca.provider.SCADefinitionsProvider | 19 + .../tuscany/sca/contribution/jee/definitions.xml | 35 + .../sca/1.5.1-RC4/modules/contribution-jee/LICENSE | 205 ++ .../sca/1.5.1-RC4/modules/contribution-jee/NOTICE | 6 + .../sca/1.5.1-RC4/modules/contribution-jee/pom.xml | 100 + .../jee/EJBImplementationGenerated.java | 56 + .../tuscany/sca/contribution/jee/EjbInfo.java | 39 + .../sca/contribution/jee/EjbModuleInfo.java | 39 + .../contribution/jee/EjbModuleModelResolver.java | 70 + .../sca/contribution/jee/EjbReferenceInfo.java | 33 + .../tuscany/sca/contribution/jee/EnvEntryInfo.java | 29 + .../sca/contribution/jee/ExternalEarInfo.java | 31 + .../contribution/jee/JavaEEApplicationInfo.java | 38 + .../jee/JavaEEApplicationModelResolver.java | 70 + .../sca/contribution/jee/JavaEEExtension.java | 38 + .../sca/contribution/jee/JavaEEIntrospector.java | 34 + .../contribution/jee/JavaEEOptionalExtension.java | 41 + .../sca/contribution/jee/JspReferenceTagInfo.java | 30 + .../tuscany/sca/contribution/jee/ModelObject.java | 32 + .../contribution/jee/ModelObjectModelResolver.java | 73 + .../jee/WebImplementationGenerated.java | 43 + .../sca/contribution/jee/WebModuleInfo.java | 50 + .../contribution/jee/WebModuleModelResolver.java | 70 + .../jee/impl/EJBImplementationGeneratedImpl.java | 77 + .../impl/EJBImplementationGeneratedProcessor.java | 67 + .../jee/impl/EarContributionProcessor.java | 158 ++ .../contribution/jee/impl/EjbArchiveProcessor.java | 69 + .../contribution/jee/impl/EjbModuleInfoImpl.java | 66 + .../jee/impl/JavaEEApplicationInfoImpl.java | 68 + .../jee/impl/JavaEEArchiveProcessor.java | 59 + .../contribution/jee/impl/JavaEEExtensionImpl.java | 262 ++ .../jee/impl/JavaEEOptionalExtensionImpl.java | 359 +++ .../sca/contribution/jee/impl/ModelObjectImpl.java | 51 + .../jee/impl/WarContributionProcessor.java | 36 + .../contribution/jee/impl/WebArchiveProcessor.java | 59 + .../jee/impl/WebImplementationGeneratedImpl.java | 60 + .../impl/WebImplementationGeneratedProcessor.java | 66 + .../contribution/jee/impl/WebModuleInfoImpl.java | 109 + ...he.tuscany.sca.contribution.jee.JavaEEExtension | 18 + ...ny.sca.contribution.jee.JavaEEOptionalExtension | 18 + ...any.sca.contribution.processor.PackageProcessor | 19 + ...ca.contribution.processor.StAXArtifactProcessor | 22 + ...sca.contribution.processor.URLArtifactProcessor | 21 + ...tuscany.sca.contribution.resolver.ModelResolver | 21 + .../jee/EarContributionProcessorTestCase.java | 57 + .../jee/WarContributionProcessorTestCase.java | 57 + .../src/test/resources/ejb-injection-sample.ear | Bin 0 -> 19015 bytes .../src/test/resources/ejb-injection-sample.jar | Bin 0 -> 11042 bytes .../src/test/resources/sample-web-app.war | Bin 0 -> 12454 bytes .../modules/contribution-namespace/LICENSE | 205 ++ .../modules/contribution-namespace/NOTICE | 6 + .../modules/contribution-namespace/pom.xml | 76 + .../DefaultNamespaceImportExportFactory.java | 30 + .../contribution/namespace/NamespaceExport.java | 46 + .../contribution/namespace/NamespaceImport.java | 59 + .../namespace/NamespaceImportExportFactory.java | 42 + .../namespace/impl/NamespaceExportImpl.java | 55 + .../impl/NamespaceExportModelResolver.java | 54 + .../namespace/impl/NamespaceExportProcessor.java | 182 ++ .../impl/NamespaceImportExportFactoryImpl.java | 41 + .../impl/NamespaceImportExportListener.java | 98 + .../namespace/impl/NamespaceImportImpl.java | 93 + .../namespace/impl/NamespaceImportProcessor.java | 186 ++ ...ribution.namespace.NamespaceImportExportFactory | 18 + ...ca.contribution.processor.StAXArtifactProcessor | 19 + ...y.sca.contribution.service.ContributionListener | 18 + ...bution-namespace-validation-messages.properties | 23 + .../impl/NamespaceExportProcessorTestCase.java | 107 + .../impl/NamespaceImportProcessorTestCase.java | 111 + .../1.5.1-RC4/modules/contribution-osgi/LICENSE | 205 ++ .../sca/1.5.1-RC4/modules/contribution-osgi/NOTICE | 6 + .../1.5.1-RC4/modules/contribution-osgi/pom.xml | 96 + .../sca/contribution/osgi/BundleReference.java | 161 ++ .../osgi/impl/OSGiBundleContributionProcessor.java | 161 ++ .../osgi/impl/OSGiBundleProcessor.java | 141 ++ .../impl/OSGiBundleReferenceModelResolver.java | 154 ++ .../osgi/impl/OSGiClassReferenceModelResolver.java | 137 ++ .../osgi/impl/OSGiImportExportListener.java | 215 ++ .../osgi/impl/OSGiModelResolverImpl.java | 119 + ...any.sca.contribution.processor.PackageProcessor | 18 + ...tuscany.sca.contribution.resolver.ModelResolver | 18 + ...y.sca.contribution.service.ContributionListener | 18 + .../modules/contribution-resource/LICENSE | 205 ++ .../1.5.1-RC4/modules/contribution-resource/NOTICE | 6 + .../modules/contribution-resource/pom.xml | 76 + .../sca/contribution/resource/ResourceExport.java | 46 + .../sca/contribution/resource/ResourceImport.java | 59 + .../resource/ResourceImportExportFactory.java | 42 + .../resource/impl/ArtifactModelResolver.java | 87 + .../resource/impl/ResourceExportImpl.java | 59 + .../resource/impl/ResourceExportModelResolver.java | 65 + .../resource/impl/ResourceExportProcessor.java | 162 ++ .../impl/ResourceImportExportFactoryImpl.java | 41 + .../impl/ResourceImportExportListener.java | 97 + .../resource/impl/ResourceImportImpl.java | 107 + .../resource/impl/ResourceImportProcessor.java | 168 ++ ...ca.contribution.processor.StAXArtifactProcessor | 19 + ...tuscany.sca.contribution.resolver.ModelResolver | 18 + ...ntribution.resource.ResourceImportExportFactory | 18 + ...y.sca.contribution.service.ContributionListener | 18 + ...ibution-resource-validation-messages.properties | 23 + .../impl/ResourceExportProcessorTestCase.java | 104 + .../impl/ResourceImportProcessorTestCase.java | 106 + .../sca/1.5.1-RC4/modules/contribution-xml/LICENSE | 205 ++ .../sca/1.5.1-RC4/modules/contribution-xml/NOTICE | 6 + .../sca/1.5.1-RC4/modules/contribution-xml/pom.xml | 70 + .../processor/xml/AnyAttributeProcessor.java | 76 + .../processor/xml/AnyElementProcessor.java | 164 ++ .../processor/xml/XMLDocumentStreamReader.java | 486 ++++ .../processor/xml/XMLEventsStreamReader.java | 448 ++++ .../processor/xml/XMLFragmentStreamReader.java | 53 + ...ributionGeneratedMetadataDocumentProcessor.java | 50 + .../xml/ContributionMetadataDocumentProcessor.java | 132 + .../xml/ContributionMetadataProcessor.java | 259 ++ .../xml/ContributionModelResolver.java | 72 + ...ca.contribution.processor.StAXArtifactProcessor | 20 + ...a.contribution.processor.StAXAttributeProcessor | 19 + ...sca.contribution.processor.URLArtifactProcessor | 20 + ...tuscany.sca.contribution.resolver.ModelResolver | 18 + ...contribution-xml-validation-messages.properties | 24 + .../xml/ContributionMetadataProcessorTestCase.java | 144 ++ .../sca/1.5.1-RC4/modules/contribution/LICENSE | 205 ++ .../java/sca/1.5.1-RC4/modules/contribution/NOTICE | 6 + .../sca/1.5.1-RC4/modules/contribution/pom.xml | 69 + .../apache/tuscany/sca/contribution/Artifact.java | 74 + .../apache/tuscany/sca/contribution/Constants.java | 32 + .../tuscany/sca/contribution/ContentType.java | 40 + .../tuscany/sca/contribution/Contribution.java | 132 + .../sca/contribution/ContributionFactory.java | 73 + .../sca/contribution/ContributionMetadata.java | 56 + .../contribution/DefaultContributionFactory.java | 32 + .../tuscany/sca/contribution/DefaultExport.java | 30 + .../tuscany/sca/contribution/DefaultImport.java | 30 + .../DefaultModelFactoryExtensionPoint.java | 130 + .../tuscany/sca/contribution/DeployedArtifact.java | 29 + .../apache/tuscany/sca/contribution/Export.java | 48 + .../apache/tuscany/sca/contribution/Import.java | 57 + .../contribution/ModelFactoryExtensionPoint.java | 54 + .../tuscany/sca/contribution/PackageType.java | 57 + .../sca/contribution/impl/ArtifactImpl.java | 94 + .../contribution/impl/ContributionFactoryImpl.java | 67 + .../sca/contribution/impl/ContributionImpl.java | 164 ++ .../impl/ContributionMetadataImpl.java | 65 + .../sca/contribution/impl/DefaultExportImpl.java | 46 + .../sca/contribution/impl/DefaultImportImpl.java | 56 + .../contribution/processor/ArtifactProcessor.java | 48 + .../processor/ArtifactProcessorExtensionPoint.java | 58 + .../processor/BaseStAXArtifactProcessor.java | 618 +++++ .../DefaultArtifactProcessorExtensionPoint.java | 66 + .../DefaultPackageProcessorExtensionPoint.java | 129 + ...DefaultStAXArtifactProcessorExtensionPoint.java | 392 +++ ...efaultStAXAttributeProcessorExtensionPoint.java | 327 +++ .../DefaultURLArtifactProcessorExtensionPoint.java | 244 ++ .../DefaultValidatingXMLInputFactory.java | 317 +++ .../DefaultValidationSchemaExtensionPoint.java | 95 + .../processor/ExtensiblePackageProcessor.java | 99 + .../processor/ExtensibleStAXArtifactProcessor.java | 264 ++ .../ExtensibleStAXAttributeProcessor.java | 247 ++ .../processor/ExtensibleURLArtifactProcessor.java | 143 ++ .../contribution/processor/PackageProcessor.java | 70 + .../processor/PackageProcessorExtensionPoint.java | 50 + .../processor/StAXArtifactProcessor.java | 61 + .../StAXArtifactProcessorExtensionPoint.java | 29 + .../processor/StAXAttributeProcessor.java | 63 + .../StAXAttributeProcessorExtensionPoint.java | 29 + .../processor/TuscanyNamespaceContext.java | 111 + .../processor/TuscanyXMLStreamReader.java | 131 + .../processor/URLArtifactProcessor.java | 51 + .../URLArtifactProcessorExtensionPoint.java | 29 + .../processor/ValidatingXMLInputFactory.java | 42 + .../processor/ValidatingXMLStreamReader.java | 396 +++ .../processor/ValidationSchemaExtensionPoint.java | 52 + .../sca/contribution/resolver/ClassReference.java | 107 + .../resolver/DefaultDelegatingModelResolver.java | 68 + .../resolver/DefaultImportAllModelResolver.java | 80 + .../resolver/DefaultImportModelResolver.java | 69 + .../resolver/DefaultModelResolver.java | 66 + .../DefaultModelResolverExtensionPoint.java | 117 + .../resolver/ExtensibleModelResolver.java | 213 ++ .../sca/contribution/resolver/ModelResolver.java | 69 + .../resolver/ModelResolverExtensionPoint.java | 52 + .../contribution/resolver/ResolverExtension.java | 45 + .../contribution/resolver/ResourceReference.java | 103 + .../contribution/scanner/ContributionScanner.java | 65 + .../scanner/ContributionScannerExtensionPoint.java | 50 + .../DefaultContributionScannerExtensionPoint.java | 125 + .../service/ContributionException.java | 45 + .../contribution/service/ContributionListener.java | 58 + .../ContributionListenerExtensionPoint.java | 44 + .../service/ContributionReadException.java | 94 + .../service/ContributionRepository.java | 128 + .../service/ContributionResolveException.java | 41 + .../service/ContributionRuntimeException.java | 44 + .../contribution/service/ContributionService.java | 137 ++ .../service/ContributionWriteException.java | 61 + .../DefaultContributionListenerExtensionPoint.java | 118 + .../service/ExtensibleContributionListener.java | 77 + .../sca/contribution/service/TypeDescriber.java | 38 + .../service/UnrecognizedElementException.java | 48 + .../service/UnsupportedContentTypeException.java | 42 + .../service/UnsupportedPackageTypeException.java | 39 + ...he.tuscany.sca.contribution.ContributionFactory | 18 + ...any.sca.contribution.ModelFactoryExtensionPoint | 18 + ...ocessor.ContributionPostProcessorExtensionPoint | 18 + ...bution.processor.PackageProcessorExtensionPoint | 18 + ...n.processor.StAXArtifactProcessorExtensionPoint | 18 + ....processor.StAXAttributeProcessorExtensionPoint | 18 + ...on.processor.URLArtifactProcessorExtensionPoint | 18 + ...bution.processor.ValidationSchemaExtensionPoint | 18 + ...ntribution.resolver.ModelResolverExtensionPoint | 18 + ...ution.scanner.ContributionScannerExtensionPoint | 18 + ...tion.service.ContributionListenerExtensionPoint | 18 + .../contribution-validation-messages.properties | 34 + .../sca/1.5.1-RC4/modules/core-databinding/LICENSE | 205 ++ .../sca/1.5.1-RC4/modules/core-databinding/NOTICE | 6 + .../sca/1.5.1-RC4/modules/core-databinding/pom.xml | 139 ++ .../module/DataBindingModuleActivator.java | 111 + .../DataBindingJavaInterfaceProcessor.java | 141 ++ .../processor/WrapperJavaInterfaceProcessor.java | 128 + .../transformers/Array2ArrayTransformer.java | 110 + .../CallableReference2XMLStreamReader.java | 75 + .../transformers/CallableReferenceDataBinding.java | 42 + .../transformers/CallableReferenceTypeHelper.java | 75 + .../transformers/CallableReferenceXMLAdapter.java | 61 + .../Exception2ExceptionTransformer.java | 114 + .../transformers/Input2InputTransformer.java | 279 +++ .../transformers/OMElementXMLAdapter.java | 62 + .../transformers/Output2OutputTransformer.java | 257 ++ .../XMLStreamReader2CallableReference.java | 100 + .../wire/DataBindingRuntimeWireProcessor.java | 198 ++ .../wire/DataTransformationInterceptor.java | 104 + .../databinding/wire/PassByValueInterceptor.java | 80 + .../org.apache.tuscany.sca.core.ModuleActivator | 18 + .../DataBindingJavaInterfaceProcessorTestCase.java | 89 + .../transformers/IDLTransformerTestCaseFIXME.java | 229 ++ tags/java/sca/1.5.1-RC4/modules/core-spi/LICENSE | 205 ++ tags/java/sca/1.5.1-RC4/modules/core-spi/NOTICE | 6 + tags/java/sca/1.5.1-RC4/modules/core-spi/pom.xml | 122 + .../modules/core-spi/src/doc/Context Model.emx | 673 +++++ .../sca/context/ComponentContextFactory.java | 38 + .../sca/context/ContextFactoryExtensionPoint.java | 50 + .../DefaultContextFactoryExtensionPoint.java | 114 + .../tuscany/sca/context/PropertyValueFactory.java | 40 + .../tuscany/sca/context/RequestContextFactory.java | 33 + ...faultEndpointResolverFactoryExtensionPoint.java | 180 ++ .../sca/endpointresolver/EndpointResolver.java | 55 + .../endpointresolver/EndpointResolverFactory.java | 44 + .../EndpointResolverFactoryExtensionPoint.java | 57 + .../java/org/apache/tuscany/sca/event/Event.java | 33 + .../org/apache/tuscany/sca/event/EventFilter.java | 35 + .../apache/tuscany/sca/event/EventPublisher.java | 55 + .../tuscany/sca/event/RuntimeEventListener.java | 35 + .../org/apache/tuscany/sca/event/TrueFilter.java | 37 + .../sca/invocation/DataExchangeSemantics.java | 34 + .../apache/tuscany/sca/invocation/Interceptor.java | 40 + .../tuscany/sca/invocation/InvocationChain.java | 112 + .../org/apache/tuscany/sca/invocation/Invoker.java | 36 + .../org/apache/tuscany/sca/invocation/Message.java | 127 + .../tuscany/sca/invocation/MessageFactory.java | 36 + .../org/apache/tuscany/sca/invocation/Phase.java | 69 + .../tuscany/sca/management/ManagementService.java | 39 + .../sca/provider/BindingProviderFactory.java | 60 + .../DefaultProviderFactoryExtensionPoint.java | 509 ++++ ...efaultSCADefinitionsProviderExtensionPoint.java | 91 + .../sca/provider/ImplementationProvider.java | 68 + .../provider/ImplementationProviderFactory.java | 42 + .../sca/provider/OperationSelectorProvider.java | 39 + .../provider/OperationSelectorProviderFactory.java | 53 + .../tuscany/sca/provider/PolicyImplementor.java | 38 + .../tuscany/sca/provider/PolicyProvider.java | 41 + .../sca/provider/PolicyProviderFactory.java | 63 + .../tuscany/sca/provider/ProviderFactory.java | 36 + .../provider/ProviderFactoryExtensionPoint.java | 63 + .../sca/provider/ReferenceBindingProvider.java | 76 + .../sca/provider/ReferenceBindingProviderRRB.java | 35 + .../sca/provider/SCADefinitionsProvider.java | 33 + .../provider/SCADefinitionsProviderException.java | 30 + .../SCADefinitionsProviderExtensionPoint.java | 35 + .../sca/provider/ServiceBindingProvider.java | 63 + .../sca/provider/ServiceBindingProviderRRB.java | 39 + .../tuscany/sca/provider/WireFormatProvider.java | 54 + .../sca/provider/WireFormatProviderFactory.java | 53 + .../DefaultWireProcessorExtensionPoint.java | 63 + .../tuscany/sca/runtime/EndpointReference.java | 93 + .../tuscany/sca/runtime/ReferenceParameters.java | 69 + .../tuscany/sca/runtime/RuntimeComponent.java | 83 + .../sca/runtime/RuntimeComponentContext.java | 105 + .../sca/runtime/RuntimeComponentReference.java | 119 + .../sca/runtime/RuntimeComponentService.java | 138 ++ .../apache/tuscany/sca/runtime/RuntimeWire.java | 117 + .../tuscany/sca/runtime/RuntimeWireProcessor.java | 35 + .../RuntimeWireProcessorExtensionPoint.java | 53 + .../sca/store/DuplicateRecordException.java | 56 + .../apache/tuscany/sca/store/RecoveryListener.java | 46 + .../java/org/apache/tuscany/sca/store/Store.java | 96 + .../apache/tuscany/sca/store/StoreException.java | 57 + .../tuscany/sca/store/StoreExpirationEvent.java | 71 + .../org/apache/tuscany/sca/store/StoreMonitor.java | 71 + .../tuscany/sca/store/StoreReadException.java | 56 + .../tuscany/sca/store/StoreWriteException.java | 56 + .../tuscany/sca/work/NotificationListener.java | 67 + .../org/apache/tuscany/sca/work/WorkScheduler.java | 58 + .../tuscany/sca/work/WorkSchedulerException.java | 59 + ...uscany.sca.context.ContextFactoryExtensionPoint | 18 + ...tresolver.EndpointResolverFactoryExtensionPoint | 18 + ...cany.sca.provider.ProviderFactoryExtensionPoint | 18 + ...a.provider.SCADefinitionsProviderExtensionPoint | 19 + ....sca.runtime.RuntimeWireProcessorExtensionPoint | 18 + ...efaultContextFactoryExtensionPointTestCase.java | 208 ++ .../tuscany/sca/event/TrueFilterTestCase.java | 63 + tags/java/sca/1.5.1-RC4/modules/core/LICENSE | 205 ++ tags/java/sca/1.5.1-RC4/modules/core/NOTICE | 6 + tags/java/sca/1.5.1-RC4/modules/core/pom.xml | 114 + .../sca/core/assembly/ActivationException.java | 37 + .../sca/core/assembly/CompositeActivator.java | 154 ++ .../sca/core/assembly/CompositeActivatorImpl.java | 1101 +++++++++ .../sca/core/assembly/EndpointReferenceImpl.java | 186 ++ .../sca/core/assembly/EndpointWireImpl.java | 185 ++ .../core/assembly/ReferenceParameterProcessor.java | 101 + .../sca/core/assembly/ReferenceParametersImpl.java | 139 ++ .../sca/core/assembly/RuntimeAssemblyFactory.java | 53 + .../sca/core/assembly/RuntimeComponentImpl.java | 111 + .../assembly/RuntimeComponentReferenceImpl.java | 155 ++ .../core/assembly/RuntimeComponentServiceImpl.java | 163 ++ .../tuscany/sca/core/assembly/RuntimeWireImpl.java | 459 ++++ .../sca/core/context/CallableReferenceImpl.java | 605 +++++ .../sca/core/context/ComponentContextHelper.java | 320 +++ .../sca/core/context/ComponentContextImpl.java | 452 ++++ .../context/DefaultComponentContextFactory.java | 70 + .../tuscany/sca/core/context/InstanceWrapper.java | 48 + .../sca/core/context/RequestContextImpl.java | 113 + .../sca/core/context/ServiceReferenceImpl.java | 133 + .../core/conversation/ConversationListener.java | 40 + .../sca/core/conversation/ConversationManager.java | 73 + .../core/conversation/ConversationManagerImpl.java | 225 ++ .../sca/core/conversation/ConversationState.java | 29 + .../core/conversation/ExtendedConversation.java | 66 + .../conversation/ExtendedConversationImpl.java | 265 ++ .../tuscany/sca/core/event/BaseEventPublisher.java | 89 + .../tuscany/sca/core/event/ComponentStart.java | 54 + .../tuscany/sca/core/event/ComponentStop.java | 53 + .../tuscany/sca/core/event/ConversationEnd.java | 53 + .../tuscany/sca/core/event/ConversationStart.java | 52 + .../tuscany/sca/core/event/HttpSessionEnd.java | 53 + .../tuscany/sca/core/event/HttpSessionStart.java | 52 + .../apache/tuscany/sca/core/event/RequestEnd.java | 45 + .../tuscany/sca/core/event/RequestStart.java | 45 + .../sca/core/factory/ObjectCreationException.java | 47 + .../tuscany/sca/core/factory/ObjectFactory.java | 35 + .../invocation/CallableReferenceObjectFactory.java | 63 + .../invocation/CallbackInterfaceInterceptor.java | 57 + .../sca/core/invocation/CallbackReferenceImpl.java | 268 ++ .../invocation/CallbackReferenceObjectFactory.java | 48 + .../core/invocation/CallbackWireObjectFactory.java | 47 + .../sca/core/invocation/CglibProxyFactory.java | 172 ++ .../DefaultProxyFactoryExtensionPoint.java | 74 + .../core/invocation/ExtensibleProxyFactory.java | 113 + .../core/invocation/ExtensibleWireProcessor.java | 44 + .../sca/core/invocation/InvocationChainImpl.java | 191 ++ .../invocation/JDKCallbackInvocationHandler.java | 110 + .../sca/core/invocation/JDKInvocationHandler.java | 610 +++++ .../sca/core/invocation/JDKProxyFactory.java | 104 + .../sca/core/invocation/MessageFactoryImpl.java | 36 + .../tuscany/sca/core/invocation/MessageImpl.java | 113 + .../invocation/NoMethodForOperationException.java | 43 + .../core/invocation/NonBlockingInterceptor.java | 202 ++ .../tuscany/sca/core/invocation/PhaseManager.java | 298 +++ .../tuscany/sca/core/invocation/PhaseSorter.java | 236 ++ .../core/invocation/ProxyCreationException.java | 48 + .../tuscany/sca/core/invocation/ProxyFactory.java | 87 + .../invocation/ProxyFactoryExtensionPoint.java | 53 + .../sca/core/invocation/RuntimeWireInvoker.java | 264 ++ .../tuscany/sca/core/invocation/SCAProxy.java | 74 + .../core/invocation/TargetInvocationException.java | 45 + .../sca/core/invocation/ThreadMessageContext.java | 72 + .../sca/core/invocation/WireObjectFactory.java | 54 + .../sca/core/scope/AbstractScopeContainer.java | 200 ++ .../sca/core/scope/CompositeScopeContainer.java | 90 + .../core/scope/CompositeScopeContainerFactory.java | 37 + .../core/scope/ConversationalScopeContainer.java | 290 +++ .../scope/ConversationalScopeContainerFactory.java | 44 + .../sca/core/scope/HttpSessionScopeContainer.java | 83 + .../scope/HttpSessionScopeContainerFactory.java | 41 + .../sca/core/scope/RequestScopeContainer.java | 106 + .../core/scope/RequestScopeContainerFactory.java | 37 + .../org/apache/tuscany/sca/core/scope/Scope.java | 66 + .../tuscany/sca/core/scope/ScopeContainer.java | 159 ++ .../sca/core/scope/ScopeContainerFactory.java | 32 + .../tuscany/sca/core/scope/ScopeRegistry.java | 43 + .../tuscany/sca/core/scope/ScopeRegistryImpl.java | 62 + .../core/scope/ScopedImplementationProvider.java | 65 + .../sca/core/scope/ScopedRuntimeComponent.java | 40 + .../sca/core/scope/StatelessScopeContainer.java | 67 + .../core/scope/StatelessScopeContainerFactory.java | 37 + .../sca/core/scope/TargetDestructionException.java | 44 + .../core/scope/TargetInitializationException.java | 44 + .../sca/core/scope/TargetNotFoundException.java | 44 + .../sca/core/scope/TargetResolutionException.java | 44 + .../apache/tuscany/sca/core/store/MemoryStore.java | 195 ++ .../sca/core/work/DefaultWorkScheduler.java | 191 ++ .../sca/core/work/ThreadPoolWorkManager.java | 229 ++ .../org/apache/tuscany/sca/core/work/Work.java | 65 + .../apache/tuscany/sca/core/work/WorkEvent.java | 80 + .../org/apache/tuscany/sca/core/work/WorkItem.java | 167 ++ .../apache/tuscany/sca/core/work/WorkListener.java | 32 + ...ca.contribution.processor.StAXArtifactProcessor | 19 + ...scany.sca.core.conversation.ConversationManager | 18 + ....sca.core.invocation.ProxyFactoryExtensionPoint | 18 + ...rg.apache.tuscany.sca.invocation.MessageFactory | 18 + .../org.apache.tuscany.sca.work.WorkScheduler | 18 + .../DefaultExtensionPointRegistryTestCase.java | 52 + .../sca/core/event/BaseEventPublisherTestCase.java | 98 + .../tuscany/sca/core/event/EventTestCase.java | 69 + .../sca/core/invocation/PhaseManagerTestCase.java | 51 + .../sca/core/invocation/PhaseSorterTestCase.java | 63 + .../core/scope/AbstractScopeContainerTestCase.java | 69 + .../sca/core/store/MemoryStoreTestCase.java | 165 ++ .../wire/CallbackInterfaceInterceptorTestCase.java | 62 + .../sca/core/wire/InvocationChainImplTestCase.java | 93 + .../core/wire/NonBlockingInterceptorTestCase.java | 74 + .../apache/tuscany/sca/core/work/FailingWork.java | 53 + .../sca/core/work/JSR237MyFailingRunnable.java | 43 + .../tuscany/sca/core/work/JSR237MyRunnable.java | 71 + .../sca/core/work/JSR237MyRunnerListener.java | 154 ++ .../sca/core/work/Jsr237WorkSchedulerTestCase.java | 240 ++ .../tuscany/sca/core/work/TestWorkListener.java | 153 ++ .../core/work/ThreadPoolWorkManagerTestCase.java | 238 ++ .../tuscany/sca/core/work/TimeDelayWork.java | 86 + .../apache/tuscany/sca/scope/ScopeTestCase.java | 61 + .../org.apache.tuscany.sca.invocation.PhaseTest | 24 + tags/java/sca/1.5.1-RC4/modules/data-api/LICENSE | 205 ++ tags/java/sca/1.5.1-RC4/modules/data-api/NOTICE | 6 + tags/java/sca/1.5.1-RC4/modules/data-api/pom.xml | 58 + .../tuscany/sca/data/collection/Collection.java | 78 + .../apache/tuscany/sca/data/collection/Entry.java | 85 + .../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 + .../implementation/data/collection/Collection.java | 31 + .../sca/implementation/data/collection/Entry.java | 29 + .../sca/implementation/data/collection/Item.java | 30 + .../data/collection/ItemCollection.java | 31 + .../data/collection/LocalItemCollection.java | 29 + .../data/collection/NotFoundException.java | 30 + .../1.5.1-RC4/modules/databinding-axiom/LICENSE | 205 ++ .../sca/1.5.1-RC4/modules/databinding-axiom/NOTICE | 6 + .../1.5.1-RC4/modules/databinding-axiom/pom.xml | 122 + .../sca/databinding/axiom/AxiomDataBinding.java | 62 + .../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 | 267 ++ .../sca/databinding/axiom/Object2OMElement.java | 63 + .../sca/databinding/axiom/String2OMElement.java | 64 + .../axiom/XMLStreamReader2OMElement.java | 70 + .../org.apache.tuscany.sca.databinding.DataBinding | 20 + ....apache.tuscany.sca.databinding.PullTransformer | 30 + .../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-fastinfoset/LICENSE | 202 ++ .../modules/databinding-fastinfoset/NOTICE | 14 + .../modules/databinding-fastinfoset/pom.xml | 87 + .../databinding/fastinfoset/FastInfoset2Node.java | 70 + .../databinding/fastinfoset/FastInfoset2SAX.java | 71 + .../fastinfoset/FastInfoset2XMLStreamReader.java | 67 + .../databinding/fastinfoset/Node2FastInfoset.java | 71 + .../fastinfoset/XMLInputStream2FastInfoset.java | 89 + .../fastinfoset/XMLStreamReader2FastInfoset.java | 75 + ....apache.tuscany.sca.databinding.PullTransformer | 22 + ....apache.tuscany.sca.databinding.PushTransformer | 22 + .../FastInfosetTransformerTestCase.java | 127 + .../src/test/resources/ipo.xsd | 136 + .../modules/databinding-jaxb-axiom/LICENSE | 205 ++ .../modules/databinding-jaxb-axiom/NOTICE | 6 + .../modules/databinding-jaxb-axiom/pom.xml | 189 ++ .../sca/databinding/jaxb/axiom/AxiomHelper.java | 140 ++ .../sca/databinding/jaxb/axiom/JAXB2OMElement.java | 78 + .../databinding/jaxb/axiom/JAXBCustomBuilder.java | 116 + .../sca/databinding/jaxb/axiom/JAXBDataSource.java | 206 ++ .../sca/databinding/jaxb/axiom/OMElement2JAXB.java | 90 + ....apache.tuscany.sca.databinding.PullTransformer | 26 + .../databinding/jaxb/axiom/JAXB2OMTestCase.java | 109 + .../jaxb/axiom/OMElement2JAXBTestCase.java | 71 + .../src/test/resources/ipo.xsd | 136 + .../sca/1.5.1-RC4/modules/databinding-jaxb/LICENSE | 205 ++ .../sca/1.5.1-RC4/modules/databinding-jaxb/NOTICE | 6 + .../sca/1.5.1-RC4/modules/databinding-jaxb/pom.xml | 183 ++ .../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 | 75 + .../tuscany/sca/databinding/jaxb/JAXB2SAX.java | 70 + .../tuscany/sca/databinding/jaxb/JAXB2String.java | 77 + .../sca/databinding/jaxb/JAXBContextCache.java | 563 +++++ .../sca/databinding/jaxb/JAXBContextHelper.java | 479 ++++ .../sca/databinding/jaxb/JAXBDataBinding.java | 131 + .../databinding/jaxb/JAXBPropertyDescriptor.java | 302 +++ .../sca/databinding/jaxb/JAXBTypeHelper.java | 245 ++ .../sca/databinding/jaxb/JAXBWrapperException.java | 56 + .../sca/databinding/jaxb/JAXBWrapperHandler.java | 153 ++ .../sca/databinding/jaxb/JAXBWrapperHelper.java | 166 ++ .../tuscany/sca/databinding/jaxb/Node2JAXB.java | 73 + .../tuscany/sca/databinding/jaxb/Reader2JAXB.java | 74 + .../tuscany/sca/databinding/jaxb/String2JAXB.java | 80 + .../databinding/jaxb/XMLAdapterExtensionPoint.java | 52 + .../sca/databinding/jaxb/XMLRootElementUtil.java | 299 +++ .../sca/databinding/jaxb/XMLStreamReader2JAXB.java | 77 + .../org.apache.tuscany.sca.databinding.DataBinding | 19 + ....apache.tuscany.sca.databinding.PullTransformer | 32 + ...y.sca.databinding.jaxb.XMLAdapterExtensionPoint | 17 + .../java/com/example/stock/StockQuoteOffer.java | 45 + .../databinding/jaxb/BeanXMLStreamReaderImpl.java | 324 +++ .../sca/databinding/jaxb/JAXB2XMLStreamReader.java | 84 + .../databinding/jaxb/JAXBContextCacheTestCase.java | 123 + .../databinding/jaxb/JAXBDataBindingTestCase.java | 130 + .../databinding/jaxb/JAXBReflectionTestCase.java | 92 + .../tuscany/sca/databinding/jaxb/JAXBTestCase.java | 175 ++ .../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 | 268 ++ .../databinding-jaxb/src/test/resources/ipo.xsd | 136 + .../sca/1.5.1-RC4/modules/databinding-json/LICENSE | 202 ++ .../sca/1.5.1-RC4/modules/databinding-json/NOTICE | 6 + .../sca/1.5.1-RC4/modules/databinding-json/pom.xml | 136 + .../sca/databinding/json/JSON2JavaBean.java | 73 + .../tuscany/sca/databinding/json/JSON2String.java | 61 + .../sca/databinding/json/JSON2XMLStreamReader.java | 65 + .../sca/databinding/json/JSONDataBinding.java | 74 + .../tuscany/sca/databinding/json/JSONHelper.java | 91 + .../sca/databinding/json/JavaBean2JSON.java | 82 + .../sca/databinding/json/JavaBean2JSONObject.java | 139 ++ .../tuscany/sca/databinding/json/String2JSON.java | 64 + .../sca/databinding/json/XMLStreamReader2JSON.java | 77 + .../sca/databinding/json/axiom/JSON2OMElement.java | 94 + .../json/axiom/JSONBadgerfishDataSource.java | 57 + .../sca/databinding/json/axiom/JSONDataSource.java | 176 ++ .../org.apache.tuscany.sca.databinding.DataBinding | 19 + ....apache.tuscany.sca.databinding.PullTransformer | 31 + .../databinding/json/JSONTransformerTestCase.java | 128 + .../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 | 87 + .../databinding-json/src/test/resources/ipo.xsd | 136 + .../1.5.1-RC4/modules/databinding-saxon/LICENSE | 202 ++ .../sca/1.5.1-RC4/modules/databinding-saxon/NOTICE | 6 + .../1.5.1-RC4/modules/databinding-saxon/pom.xml | 137 ++ .../saxon/DataObject2NodeInfoTransformer.java | 99 + .../saxon/ItemList2ObjectTransformer.java | 153 ++ .../saxon/Node2NodeInfoTransformer.java | 77 + .../saxon/NodeInfo2DataObjectTransformer.java | 91 + .../saxon/NodeInfo2JavaArrayTransformer.java | 76 + .../saxon/NodeInfo2NodeTransformer.java | 71 + .../databinding/saxon/Object2ValueTransformer.java | 65 + .../databinding/saxon/SaxonDataBindingHelper.java | 41 + .../databinding/saxon/SaxonNodeDataBinding.java | 54 + .../databinding/saxon/SaxonValueDataBinding.java | 53 + .../saxon/SimpleType2ValueTransformer.java | 87 + .../sca/databinding/saxon/Value2JavaArray.java | 74 + .../databinding/saxon/Value2ObjectTransformer.java | 66 + .../saxon/Value2SimpleTypeTransformer.java | 65 + .../sca/databinding/saxon/collection/ItemList.java | 34 + .../org.apache.tuscany.sca.databinding.DataBinding | 20 + ....apache.tuscany.sca.databinding.PullTransformer | 34 + .../modules/databinding-sdo-axiom/LICENSE | 205 ++ .../1.5.1-RC4/modules/databinding-sdo-axiom/NOTICE | 6 + .../modules/databinding-sdo-axiom/pom.xml | 167 ++ .../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 | 82 + .../sdo2om/XMLDocument2OMElementTestCase.java | 63 + .../src/test/resources/ipo.xsd | 136 + .../src/test/resources/stock.xsd | 33 + .../sca/1.5.1-RC4/modules/databinding-sdo/LICENSE | 205 ++ .../sca/1.5.1-RC4/modules/databinding-sdo/NOTICE | 6 + .../sca/1.5.1-RC4/modules/databinding-sdo/pom.xml | 144 ++ .../sca/databinding/sdo/DataObject2Node.java | 73 + .../sca/databinding/sdo/DataObject2String.java | 64 + .../sdo/DataObject2XMLStreamReader.java | 82 + .../tuscany/sca/databinding/sdo/ImportSDO.java | 78 + .../sca/databinding/sdo/ImportSDOProcessor.java | 212 ++ .../sca/databinding/sdo/Node2DataObject.java | 69 + .../sca/databinding/sdo/SDOContextHelper.java | 218 ++ .../sca/databinding/sdo/SDODataBinding.java | 148 ++ .../sca/databinding/sdo/SDOSimpleTypeMapper.java | 68 + .../tuscany/sca/databinding/sdo/SDOTypeHelper.java | 236 ++ .../tuscany/sca/databinding/sdo/SDOTypes.java | 105 + .../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 | 246 ++ .../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 | 60 + .../databinding/sdo/DataObject2StringTestCase.java | 65 + .../sdo/DataObject2XMLStreamReaderTestCase.java | 75 + .../sdo/ImportSDOProcessorTestCase.java | 89 + .../databinding/sdo/SDOContextHelperTestCase.java | 55 + .../databinding/sdo/SDODataBindingTestCase.java | 114 + .../sdo/SDOTransformerTestCaseBase.java | 82 + .../databinding/sdo/SDOWrapperHandlerTestCase.java | 83 + .../sca/databinding/sdo/TestModelResolver.java | 63 + .../sdo/XMLDocument2XMLStreamReaderTestCase.java | 62 + .../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 + .../1.5.1-RC4/modules/databinding-xmlbeans/LICENSE | 202 ++ .../1.5.1-RC4/modules/databinding-xmlbeans/NOTICE | 6 + .../1.5.1-RC4/modules/databinding-xmlbeans/pom.xml | 125 + .../sca/databinding/xmlbeans/Node2XmlObject.java | 61 + .../databinding/xmlbeans/XMLBeansDataBinding.java | 82 + .../xmlbeans/XMLBeansWrapperHandler.java | 126 + .../xmlbeans/XMLStreamReader2XmlObject.java | 62 + .../sca/databinding/xmlbeans/XmlObject2Node.java | 60 + .../xmlbeans/XmlObject2XMLStreamReader.java | 55 + .../org.apache.tuscany.sca.databinding.DataBinding | 19 + ....apache.tuscany.sca.databinding.PullTransformer | 22 + .../databinding/xmlbeans/XmlObjectTestCase.java | 105 + .../src/test/resources/ipo.xsd | 136 + .../src/test/resources/ipo.xsdconfig | 21 + .../java/sca/1.5.1-RC4/modules/databinding/LICENSE | 244 ++ tags/java/sca/1.5.1-RC4/modules/databinding/NOTICE | 6 + .../java/sca/1.5.1-RC4/modules/databinding/pom.xml | 108 + .../tuscany/sca/databinding/DataBinding.java | 91 + .../sca/databinding/DataBindingExtensionPoint.java | 74 + .../apache/tuscany/sca/databinding/DataPipe.java | 46 + .../sca/databinding/DataPipeTransformer.java | 29 + .../DefaultDataBindingExtensionPoint.java | 255 ++ .../DefaultTransformerExtensionPoint.java | 306 +++ .../apache/tuscany/sca/databinding/Mediator.java | 153 ++ .../tuscany/sca/databinding/PullTransformer.java | 38 + .../tuscany/sca/databinding/PushTransformer.java | 36 + .../tuscany/sca/databinding/SimpleTypeMapper.java | 46 + .../sca/databinding/TransformationContext.java | 95 + .../sca/databinding/TransformationException.java | 65 + .../tuscany/sca/databinding/Transformer.java | 51 + .../sca/databinding/TransformerExtensionPoint.java | 81 + .../tuscany/sca/databinding/WrapperHandler.java | 78 + .../tuscany/sca/databinding/XMLTypeHelper.java | 68 + .../sca/databinding/annotation/DataBinding.java | 56 + .../sca/databinding/annotation/DataType.java | 43 + .../externalizable/ExternalizableDataBinding.java | 39 + .../sca/databinding/impl/BaseDataBinding.java | 111 + .../sca/databinding/impl/BaseTransformer.java | 52 + .../tuscany/sca/databinding/impl/DOMHelper.java | 163 ++ .../sca/databinding/impl/DirectedGraph.java | 452 ++++ .../databinding/impl/Group2GroupTransformer.java | 94 + .../sca/databinding/impl/GroupDataBinding.java | 103 + .../impl/Java2SimpleTypeTransformer.java | 70 + .../tuscany/sca/databinding/impl/MediatorImpl.java | 585 +++++ .../sca/databinding/impl/PipedTransformer.java | 70 + .../impl/SimpleType2JavaTransformer.java | 89 + .../sca/databinding/impl/SimpleTypeMapperImpl.java | 401 +++ .../impl/TransformationContextImpl.java | 125 + .../sca/databinding/impl/XSDDataTypeConverter.java | 945 +++++++ .../javabeans/DOMNode2JavaBeanTransformer.java | 97 + .../javabeans/Java2XMLMapperException.java | 69 + .../javabeans/JavaBean2DOMNodeTransformer.java | 79 + .../JavaBean2XMLStreamReaderTransformer.java | 68 + .../javabeans/JavaBean2XMLTransformer.java | 262 ++ .../javabeans/JavaBeansDataBinding.java | 163 ++ .../javabeans/JavaExceptionDataBinding.java | 35 + .../javabeans/SimpleJavaDataBinding.java | 79 + .../javabeans/XML2JavaBeanTransformer.java | 329 +++ .../javabeans/XML2JavaMapperException.java | 76 + .../sca/databinding/util/DataTypeHelper.java | 168 ++ .../tuscany/sca/databinding/util/LRUCache.java | 88 + .../databinding/xml/BeanXMLStreamReaderImpl.java | 296 +++ .../sca/databinding/xml/DOMDataBinding.java | 71 + .../sca/databinding/xml/DOMWrapperHandler.java | 146 ++ .../sca/databinding/xml/DOMXMLStreamReader.java | 36 + .../sca/databinding/xml/DOMXmlNodeImpl.java | 156 ++ .../xml/DelegatingNamespaceContext.java | 310 +++ .../sca/databinding/xml/InputSource2Node.java | 67 + .../sca/databinding/xml/InputSource2SAX.java | 65 + .../sca/databinding/xml/InputStream2Node.java | 69 + .../sca/databinding/xml/InputStream2SAX.java | 64 + .../xml/NameValueArrayStreamReader.java | 403 +++ .../databinding/xml/NameValuePairStreamReader.java | 347 +++ .../tuscany/sca/databinding/xml/NamedProperty.java | 59 + .../databinding/xml/NilElementStreamReader.java | 279 +++ .../sca/databinding/xml/Node2OutputStream.java | 68 + .../sca/databinding/xml/Node2SimpleJavaType.java | 45 + .../databinding/xml/Node2SourceTransformer.java | 61 + .../tuscany/sca/databinding/xml/Node2String.java | 62 + .../tuscany/sca/databinding/xml/Node2Writer.java | 67 + .../sca/databinding/xml/Node2XMLStreamReader.java | 64 + .../tuscany/sca/databinding/xml/Reader2Node.java | 67 + .../tuscany/sca/databinding/xml/Reader2SAX.java | 60 + .../tuscany/sca/databinding/xml/SAX2DOM.java | 246 ++ .../tuscany/sca/databinding/xml/SAX2DOMPipe.java | 81 + .../sca/databinding/xml/SimpleJavaType2Node.java | 71 + .../sca/databinding/xml/SimpleXmlNodeImpl.java | 112 + .../databinding/xml/Source2NodeTransformer.java | 69 + .../databinding/xml/Source2ResultTransformer.java | 63 + .../databinding/xml/Source2StringTransformer.java | 68 + .../sca/databinding/xml/StAX2SAXAdapter.java | 256 ++ .../sca/databinding/xml/StAXDataBinding.java | 53 + .../tuscany/sca/databinding/xml/StAXHelper.java | 86 + .../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 | 55 + .../databinding/xml/WrappingXMLStreamReader.java | 100 + .../sca/databinding/xml/Writer2ReaderDataPipe.java | 63 + .../databinding/xml/XMLDocumentStreamReader.java | 482 ++++ .../databinding/xml/XMLFragmentStreamReader.java | 53 + .../xml/XMLFragmentStreamReaderImpl.java | 857 +++++++ .../sca/databinding/xml/XMLGroupDataBinding.java | 57 + .../sca/databinding/xml/XMLStreamReader2Node.java | 75 + .../sca/databinding/xml/XMLStreamReader2SAX.java | 70 + .../databinding/xml/XMLStreamReader2String.java | 57 + .../sca/databinding/xml/XMLStreamSerializer.java | 287 +++ .../tuscany/sca/databinding/xml/XMLStreamable.java | 37 + .../sca/databinding/xml/XMLStringDataBinding.java | 50 + .../tuscany/sca/databinding/xml/XmlNode.java | 69 + .../sca/databinding/xml/XmlNodeIterator.java | 355 +++ .../databinding/xml/XmlTreeStreamReaderImpl.java | 531 ++++ .../org.apache.tuscany.sca.databinding.DataBinding | 25 + ...scany.sca.databinding.DataBindingExtensionPoint | 18 + .../org.apache.tuscany.sca.databinding.Mediator | 17 + ....apache.tuscany.sca.databinding.PullTransformer | 40 + ....apache.tuscany.sca.databinding.PushTransformer | 26 + ...scany.sca.databinding.TransformerExtensionPoint | 18 + .../databinding/extension/DOMHelperTestCase.java | 58 + .../extension/DataBindingExtensionTestCase.java | 86 + .../SimpleTypeMapperExtensionTestCase.java | 124 + .../extension/TransformerExtensionTestCase.java | 77 + .../extension/XSDDataTypeConverterTestCase.java | 64 + .../impl/DataBindingRegistryImplTestCase.java | 97 + .../sca/databinding/impl/DataBindingTestCase.java | 49 + .../databinding/impl/DirectedGraphTestCase.java | 125 + .../sca/databinding/impl/MediatorImplTestCase.java | 122 + .../impl/TransformerRegistryImplTestCase.java | 109 + .../impl/XMLDocumentStreamReaderTestCase.java | 57 + .../xml/BeanXMLStreamReaderTestCase.java | 192 ++ .../sca/databinding/xml/DOM2StAXTestCase.java | 108 + .../sca/databinding/xml/DataPipeTestCase.java | 93 + .../xml/JavaBean2XMLStreamReaderTestCase.java | 144 ++ .../sca/databinding/xml/Node2StringTestCase.java | 39 + .../xml/PushTransformationTestCase.java | 86 + .../sca/databinding/xml/StAXHelperTestCase.java | 55 + .../databinding/xml/TraxTransformerTestCase.java | 101 + .../xml/XmlTreeStreamReaderTestCase.java | 199 ++ .../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 + .../sca/1.5.1-RC4/modules/definitions-xml/LICENSE | 205 ++ .../sca/1.5.1-RC4/modules/definitions-xml/NOTICE | 6 + .../sca/1.5.1-RC4/modules/definitions-xml/pom.xml | 82 + .../xml/SCADefinitionsDocumentProcessor.java | 197 ++ .../definitions/xml/SCADefinitionsProcessor.java | 264 ++ ...ca.contribution.processor.StAXArtifactProcessor | 19 + ...sca.contribution.processor.URLArtifactProcessor | 19 + .../definitions-xml-validation-messages.properties | 22 + .../org/apache/tuscany/sca/definitions/Policy.java | 33 + .../sca/definitions/ReadDocumentTestCase.java | 190 ++ .../sca/definitions/TestPolicyProcessor.java | 75 + .../tuscany/sca/definitions/test_definitions.xml | 255 ++ .../java/sca/1.5.1-RC4/modules/definitions/LICENSE | 205 ++ tags/java/sca/1.5.1-RC4/modules/definitions/NOTICE | 6 + .../java/sca/1.5.1-RC4/modules/definitions/pom.xml | 70 + .../tuscany/sca/definitions/SCADefinitions.java | 82 + .../sca/definitions/SCADefinitionsBuilder.java | 34 + .../SCADefinitionsBuilderException.java | 43 + .../sca/definitions/SCADefinitionsBuilderImpl.java | 309 +++ .../sca/definitions/impl/SCADefinitionsImpl.java | 71 + .../sca/definitions/util/SCADefinitionsUtil.java | 87 + .../sca/1.5.1-RC4/modules/domain-manager/LICENSE | 205 ++ .../sca/1.5.1-RC4/modules/domain-manager/NOTICE | 6 + .../sca/1.5.1-RC4/modules/domain-manager/pom.xml | 215 ++ .../impl/CompositeConfigurationCollectionImpl.java | 127 + .../impl/CompositeConfigurationServiceImpl.java | 657 +++++ .../impl/CompositeGeneratorServiceImpl.java | 255 ++ .../manager/impl/ContributionCollectionImpl.java | 671 +++++ .../manager/impl/ContributionServiceImpl.java | 77 + .../impl/DeployableCompositeCollectionImpl.java | 408 +++ .../impl/DeployableCompositeServiceImpl.java | 128 + .../impl/DeployedCompositeCollectionImpl.java | 378 +++ .../manager/impl/DomainManagerConfiguration.java | 53 + .../impl/DomainManagerConfigurationImpl.java | 85 + .../sca/domain/manager/impl/DomainManagerUtil.java | 296 +++ .../domain/manager/impl/FileCollectionImpl.java | 136 + .../sca/domain/manager/impl/FileServiceImpl.java | 153 ++ .../manager/impl/NodeConfigurationServiceImpl.java | 96 + .../impl/NodeProcessCollectionFacadeImpl.java | 251 ++ .../domain/manager/impl/QuickStartServiceImpl.java | 242 ++ .../launcher/DomainManagerLauncherBootstrap.java | 95 + .../src/main/resources/DomainManager.composite | 281 +++ .../src/main/resources/cloud-gadget.html | 408 +++ .../domain-manager/src/main/resources/cloud.html | 68 + .../src/main/resources/composite-gadget.html | 277 +++ .../src/main/resources/composite.html | 66 + .../src/main/resources/files-gadget.html | 124 + .../domain-manager/src/main/resources/files.html | 64 + .../src/main/resources/home-gadget.html | 45 + .../domain-manager/src/main/resources/home.html | 65 + .../src/main/resources/icons/feed-icon.png | Bin 0 -> 818 bytes .../domain-manager/src/main/resources/manager.css | 104 + .../src/main/resources/toolbar-gadget.html | 47 + .../domain-manager/src/main/resources/utils.js | 246 ++ .../src/main/resources/workspace-gadget.html | 232 ++ .../src/main/resources/workspace.html | 65 + .../domain/manager/impl/DomainManagerTestCase.java | 117 + .../assets/META-INF/sca-contribution.xml | 26 + .../store/META-INF/sca-contribution.xml | 24 + .../src/test/resources/workspace.xml | 21 + tags/java/sca/1.5.1-RC4/modules/endpoint/LICENSE | 205 ++ tags/java/sca/1.5.1-RC4/modules/endpoint/NOTICE | 6 + tags/java/sca/1.5.1-RC4/modules/endpoint/pom.xml | 122 + .../endpoint/impl/EndpointResolverFactoryImpl.java | 49 + .../sca/endpoint/impl/EndpointResolverImpl.java | 112 + ...ny.sca.endpointresolver.EndpointResolverFactory | 19 + .../apache/tuscany/sca/binding/sca/definitions.xml | 26 + .../src/test/java/calculator/AddService.java | 28 + .../src/test/java/calculator/AddServiceImpl.java | 35 + .../test/java/calculator/CalculatorService.java | 35 + .../java/calculator/CalculatorServiceImpl.java | 70 + .../src/test/java/calculator/DivideService.java | 28 + .../test/java/calculator/DivideServiceImpl.java | 35 + .../src/test/java/calculator/MultiplyService.java | 28 + .../test/java/calculator/MultiplyServiceImpl.java | 35 + .../src/test/java/calculator/SubtractService.java | 28 + .../test/java/calculator/SubtractServiceImpl.java | 35 + .../tuscany/sca/binding/sca/EndpointTestCase.java | 209 ++ .../src/test/resources/Calculator.composite | 52 + .../1.5.1-RC4/modules/extensibility-osgi/LICENSE | 205 ++ .../1.5.1-RC4/modules/extensibility-osgi/NOTICE | 5 + .../1.5.1-RC4/modules/extensibility-osgi/pom.xml | 73 + .../extensibility/osgi/OSGiServiceDiscoverer.java | 359 +++ .../osgi/OSGiServiceDiscoveryActivator.java | 45 + .../osgi/OSGiServiceDiscovererTestCase.java | 123 + .../src/test/resources/test-bundle.jar | Bin 0 -> 1797 bytes .../sca/1.5.1-RC4/modules/extensibility/LICENSE | 205 ++ .../sca/1.5.1-RC4/modules/extensibility/NOTICE | 5 + .../sca/1.5.1-RC4/modules/extensibility/pom.xml | 50 + .../sca/core/DefaultExtensionPointRegistry.java | 184 ++ .../core/DefaultModuleActivatorExtensionPoint.java | 99 + .../sca/core/DefaultUtilityExtensionPoint.java | 184 ++ .../tuscany/sca/core/ExtensionPointRegistry.java | 56 + .../apache/tuscany/sca/core/ModuleActivator.java | 60 + .../sca/core/ModuleActivatorExtensionPoint.java | 53 + .../tuscany/sca/core/UtilityExtensionPoint.java | 54 + .../ClassLoaderServiceDiscoverer.java | 262 ++ .../sca/extensibility/ServiceDeclaration.java | 68 + .../sca/extensibility/ServiceDiscoverer.java | 37 + .../sca/extensibility/ServiceDiscovery.java | 170 ++ ....tuscany.sca.core.ModuleActivatorExtensionPoint | 18 + ...g.apache.tuscany.sca.core.UtilityExtensionPoint | 18 + .../ClassLoaderServiceDiscovererTestCase.java | 72 + .../sca/1.5.1-RC4/modules/extension-helper/LICENSE | 205 ++ .../sca/1.5.1-RC4/modules/extension-helper/NOTICE | 6 + .../sca/1.5.1-RC4/modules/extension-helper/pom.xml | 95 + .../sca/extension/helper/BindingActivator.java | 69 + .../sca/extension/helper/ComponentLifecycle.java | 32 + .../extension/helper/ImplementationActivator.java | 64 + .../sca/extension/helper/InvokerFactory.java | 34 + .../helper/impl/BindingSCDLProcessor.java | 195 ++ .../extension/helper/impl/BindingsActivator.java | 262 ++ .../sca/extension/helper/impl/DiscoveryUtils.java | 113 + .../impl/ImplementationImplementationProvider.java | 99 + .../helper/impl/ImplementationsActivator.java | 135 + .../sca/extension/helper/impl/PojoBinding.java | 40 + .../extension/helper/impl/PojoImplementation.java | 58 + .../sca/extension/helper/impl/SCDLProcessor.java | 248 ++ .../extension/helper/utils/AbstractBinding.java | 72 + .../helper/utils/AbstractImplementation.java | 153 ++ .../utils/AbstractStAXArtifactProcessor.java | 132 + .../utils/DefaultPropertyValueObjectFactory.java | 231 ++ .../helper/utils/DynamicImplementation.java | 96 + .../helper/utils/PropertyValueObjectFactory.java | 33 + .../sca/extension/helper/utils/ResourceHelper.java | 70 + .../org.apache.tuscany.sca.core.ModuleActivator | 20 + .../sca/1.5.1-RC4/modules/host-corba-jee/LICENSE | 205 ++ .../sca/1.5.1-RC4/modules/host-corba-jee/NOTICE | 6 + .../sca/1.5.1-RC4/modules/host-corba-jee/pom.xml | 63 + .../corba/jee/CorbaRuntimeModuleActivator.java | 52 + .../tuscany/sca/host/corba/jee/JEECorbaHost.java | 162 ++ .../org.apache.tuscany.sca.core.ModuleActivator | 18 + .../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 + .../1.5.1-RC4/modules/host-corba-jse-tns/LICENSE | 205 ++ .../1.5.1-RC4/modules/host-corba-jse-tns/NOTICE | 6 + .../1.5.1-RC4/modules/host-corba-jse-tns/pom.xml | 71 + .../corba/jse/tns/CorbaRuntimeModuleActivator.java | 53 + .../host/corba/jse/tns/TnsDefaultCorbaHost.java | 116 + .../org.apache.tuscany.sca.core.ModuleActivator | 18 + .../corba/testing/TnsDefaultCorbaHostTestCase.java | 97 + .../sca/1.5.1-RC4/modules/host-corba-jse/LICENSE | 205 ++ .../sca/1.5.1-RC4/modules/host-corba-jse/NOTICE | 6 + .../sca/1.5.1-RC4/modules/host-corba-jse/pom.xml | 57 + .../corba/jse/CorbaRuntimeModuleActivator.java | 48 + .../sca/host/corba/jse/DefaultCorbaHost.java | 181 ++ .../sca/host/corba/naming/NamingContextBase.java | 863 +++++++ .../sca/host/corba/naming/TransientNameServer.java | 133 + .../host/corba/naming/TransientNameService.java | 203 ++ .../host/corba/naming/TransientNamingContext.java | 440 ++++ .../corba/naming/TransientServiceException.java | 44 + .../org.apache.tuscany.sca.core.ModuleActivator | 18 + .../corba/testing/DefaultCorbaHostTestCase.java | 250 ++ .../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/java/sca/1.5.1-RC4/modules/host-corba/LICENSE | 205 ++ tags/java/sca/1.5.1-RC4/modules/host-corba/NOTICE | 6 + tags/java/sca/1.5.1-RC4/modules/host-corba/pom.xml | 57 + .../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 | 48 + .../sca/host/corba/ExtensibleCorbaHost.java | 55 + .../apache/tuscany/sca/host/corba/SocketUtil.java | 226 ++ ....tuscany.sca.host.corba.CorbaHostExtensionPoint | 18 + .../tuscany/sca/host/corba/UtilsTestCase.java | 145 ++ .../sca/1.5.1-RC4/modules/host-embedded/LICENSE | 205 ++ .../sca/1.5.1-RC4/modules/host-embedded/NOTICE | 6 + .../sca/1.5.1-RC4/modules/host-embedded/pom.xml | 138 ++ .../tuscany/sca/host/embedded/SCADomain.java | 228 ++ .../tuscany/sca/host/embedded/SCADomainBean.java | 125 + .../sca/host/embedded/SCATestCaseRunner.java | 291 +++ .../host/embedded/impl/ComponentManagerImpl.java | 120 + .../sca/host/embedded/impl/DefaultSCADomain.java | 360 +++ .../sca/host/embedded/impl/EmbeddedSCADomain.java | 235 ++ .../host/embedded/impl/HotUpdatableSCADomain.java | 389 +++ .../sca/host/embedded/impl/ReallySmallRuntime.java | 387 +++ .../embedded/impl/ReallySmallRuntimeBuilder.java | 275 +++ .../embedded/management/ComponentListener.java | 34 + .../host/embedded/management/ComponentManager.java | 48 + .../sca/host/embedded/SCADomainBeanTestCase.java | 57 + .../sca/host/embedded/SCADomainTestCase.java | 56 + .../host/embedded/SCADomainZipsTestCaseFIXME.java | 51 + .../embedded/impl/DefaultSCADomainTestCase.java | 63 + .../embedded/impl/EmbeddedSCADomainTestCase.java | 189 ++ .../sca/host/embedded/impl/TestModelResolver.java | 104 + .../DefaultTestImplementationFactory.java | 47 + .../test/extension/TestImplementation.java | 44 + .../test/extension/TestImplementationFactory.java | 37 + .../host/embedded/test/extension/TestService.java | 30 + .../extension/impl/TestImplementationImpl.java | 117 + .../impl/TestImplementationProcessor.java | 96 + .../test/extension/module/TestModuleActivator.java | 65 + .../provider/TestImplementationProvider.java | 64 + .../TestImplementationProviderFactory.java | 47 + .../test/extension/provider/TestInvoker.java | 52 + .../src/test/java/sample/Helloworld.java | 29 + .../org.apache.tuscany.sca.core.ModuleActivator | 18 + .../src/test/resources/helloworld.jar | Bin 0 -> 4287 bytes .../src/test/resources/helloworld.zip | Bin 0 -> 4287 bytes .../src/test/resources/test.composite | 30 + .../host-embedded/src/test/resources/test.txt | 16 + tags/java/sca/1.5.1-RC4/modules/host-http/LICENSE | 205 ++ tags/java/sca/1.5.1-RC4/modules/host-http/NOTICE | 6 + tags/java/sca/1.5.1-RC4/modules/host-http/pom.xml | 65 + .../sca/host/http/DefaultResourceServlet.java | 86 + .../http/DefaultServletHostExtensionPoint.java | 45 + .../sca/host/http/ExtensibleServletHost.java | 133 + .../tuscany/sca/host/http/SecurityContext.java | 64 + .../apache/tuscany/sca/host/http/ServletHost.java | 124 + .../sca/host/http/ServletHostExtensionPoint.java | 51 + .../sca/host/http/ServletMappingException.java | 44 + .../apache/tuscany/sca/host/http/UserContext.java | 68 + ...tuscany.sca.host.http.ServletHostExtensionPoint | 18 + tags/java/sca/1.5.1-RC4/modules/host-jetty/LICENSE | 205 ++ tags/java/sca/1.5.1-RC4/modules/host-jetty/NOTICE | 6 + tags/java/sca/1.5.1-RC4/modules/host-jetty/pom.xml | 76 + .../sca/http/jetty/JettyDefaultServlet.java | 90 + .../apache/tuscany/sca/http/jetty/JettyLogger.java | 87 + .../apache/tuscany/sca/http/jetty/JettyServer.java | 512 ++++ .../jetty/module/JettyRuntimeModuleActivator.java | 77 + .../org.apache.tuscany.sca.core.ModuleActivator | 18 + .../sca/http/jetty/JettyServerTestCase.java | 323 +++ .../src/test/resources/content/test.html | 21 + .../host-jetty/src/test/resources/tuscany.keyStore | Bin 0 -> 1265 bytes .../sca/1.5.1-RC4/modules/host-jms-asf/LICENSE | 205 ++ .../java/sca/1.5.1-RC4/modules/host-jms-asf/NOTICE | 6 + .../sca/1.5.1-RC4/modules/host-jms-asf/pom.xml | 88 + .../tuscany/sca/host/jms/asf/ASFListener.java | 236 ++ .../host/jms/asf/JMSHostExtensionPointImpl.java | 42 + .../jms/asf/JMSServiceListenerFactoryImpl.java | 56 + .../tuscany/sca/host/jms/asf/ServiceInvoker.java | 98 + ...ache.tuscany.sca.host.jms.JMSHostExtensionPoint | 19 + tags/java/sca/1.5.1-RC4/modules/host-jms/LICENSE | 205 ++ tags/java/sca/1.5.1-RC4/modules/host-jms/NOTICE | 6 + tags/java/sca/1.5.1-RC4/modules/host-jms/pom.xml | 77 + .../sca/host/jms/JMSHostExtensionPoint.java | 27 + .../tuscany/sca/host/jms/JMSServiceListener.java | 29 + .../sca/host/jms/JMSServiceListenerDetails.java | 40 + .../sca/host/jms/JMSServiceListenerFactory.java | 27 + tags/java/sca/1.5.1-RC4/modules/host-rmi/LICENSE | 205 ++ tags/java/sca/1.5.1-RC4/modules/host-rmi/NOTICE | 6 + tags/java/sca/1.5.1-RC4/modules/host-rmi/pom.xml | 57 + .../tuscany/sca/host/rmi/DefaultRMIHost.java | 127 + .../sca/host/rmi/DefaultRMIHostExtensionPoint.java | 49 + .../tuscany/sca/host/rmi/ExtensibleRMIHost.java | 73 + .../org/apache/tuscany/sca/host/rmi/RMIHost.java | 90 + .../tuscany/sca/host/rmi/RMIHostException.java | 45 + .../sca/host/rmi/RMIHostExtensionPoint.java | 51 + .../sca/host/rmi/RMIHostRuntimeException.java | 46 + ...ache.tuscany.sca.host.rmi.RMIHostExtensionPoint | 18 + .../tuscany/sca/host/rmi/RMIHostImplTestCase.java | 90 + .../java/sca/1.5.1-RC4/modules/host-tomcat/LICENSE | 205 ++ tags/java/sca/1.5.1-RC4/modules/host-tomcat/NOTICE | 6 + .../java/sca/1.5.1-RC4/modules/host-tomcat/pom.xml | 87 + .../tuscany/sca/http/tomcat/ServletWrapper.java | 58 + .../sca/http/tomcat/TomcatDefaultServlet.java | 114 + .../sca/http/tomcat/TomcatPolicyBaseRealm.java | 95 + .../tuscany/sca/http/tomcat/TomcatServer.java | 692 ++++++ .../module/TomcatRuntimeModuleActivator.java | 69 + .../org.apache.tuscany.sca.core.ModuleActivator | 18 + .../sca/http/tomcat/TomcatServerTestCase.java | 353 +++ .../src/test/resources/content/test.html | 21 + .../src/test/resources/tuscany.keyStore | Bin 0 -> 1265 bytes .../java/sca/1.5.1-RC4/modules/host-webapp/LICENSE | 241 ++ tags/java/sca/1.5.1-RC4/modules/host-webapp/NOTICE | 12 + .../java/sca/1.5.1-RC4/modules/host-webapp/pom.xml | 101 + .../sca/host/webapp/HotUpdateContextListener.java | 57 + .../tuscany/sca/host/webapp/SCADomainHelper.java | 72 + .../sca/host/webapp/TuscanyContextListener.java | 73 + .../tuscany/sca/host/webapp/TuscanyServlet.java | 67 + .../sca/host/webapp/TuscanyServletFilter.java | 104 + .../sca/host/webapp/WebAppModuleActivator.java | 72 + .../sca/host/webapp/WebAppRequestDispatcher.java | 114 + .../tuscany/sca/host/webapp/WebAppServletHost.java | 358 +++ .../tuscany/sca/host/webapp/WebSCADomain.java | 53 + .../tuscany/sca/host/webapp/jsp/ReferenceTEI.java | 45 + .../tuscany/sca/host/webapp/jsp/ReferenceTag.java | 118 + .../src/main/resources/META-INF/sca.tld | 49 + .../org.apache.tuscany.sca.core.ModuleActivator | 18 + .../modules/implementation-bpel-ode/LICENSE | 251 ++ .../modules/implementation-bpel-ode/NOTICE | 17 + .../modules/implementation-bpel-ode/pom.xml | 450 ++++ .../implementation/bpel/ode/BPELODEDeployFile.java | 225 ++ .../implementation/bpel/ode/EmbeddedODEServer.java | 270 ++ .../implementation/bpel/ode/GeronimoTxFactory.java | 48 + .../implementation/bpel/ode/ODEBindingContext.java | 79 + .../sca/implementation/bpel/ode/ODEDeployment.java | 44 + .../bpel/ode/ODEDeploymentException.java | 41 + .../bpel/ode/ODEExternalService.java | 299 +++ .../bpel/ode/ODEInitializationException.java | 41 + .../bpel/ode/ODEMessageExchangeContext.java | 57 + .../bpel/ode/ODEShutdownException.java | 41 + .../sca/implementation/bpel/ode/TuscanyEPR.java | 54 + .../sca/implementation/bpel/ode/TuscanyPRC.java | 75 + .../bpel/ode/TuscanyProcessConfImpl.java | 434 ++++ .../ode/provider/BPELImplementationProvider.java | 145 ++ .../BPELImplementationProviderFactory.java | 69 + .../bpel/ode/provider/BPELInvoker.java | 251 ++ ...cany.sca.provider.ImplementationProviderFactory | 19 + .../bpel/ode/EmbeddedODEServerTestCase.java | 148 ++ .../src/test/resources/helloworld/greetings.wsdl | 87 + .../src/test/resources/helloworld/helloworld.bpel | 66 + .../src/test/resources/helloworld/helloworld.wsdl | 82 + .../src/test/resources/log4j.properties | 36 + .../1.5.1-RC4/modules/implementation-bpel/LICENSE | 251 ++ .../1.5.1-RC4/modules/implementation-bpel/NOTICE | 17 + .../1.5.1-RC4/modules/implementation-bpel/pom.xml | 98 + .../sca/implementation/bpel/BPELFactory.java | 42 + .../implementation/bpel/BPELImplementation.java | 91 + .../implementation/bpel/BPELProcessDefinition.java | 109 + .../implementation/bpel/impl/BPELFactoryImpl.java | 45 + .../bpel/impl/BPELImplementationImpl.java | 132 + .../bpel/impl/BPELProcessDefinitionImpl.java | 116 + .../bpel/xml/BPELDocumentModelResolver.java | 84 + .../bpel/xml/BPELDocumentProcessor.java | 532 ++++ .../bpel/xml/BPELImplementationProcessor.java | 518 ++++ .../implementation/bpel/xml/BPELImportElement.java | 65 + .../bpel/xml/BPELPartnerLinkElement.java | 130 + .../bpel/xml/BPELPartnerLinkTypeElement.java | 112 + ...ca.contribution.processor.StAXArtifactProcessor | 19 + ...sca.contribution.processor.URLArtifactProcessor | 19 + ...tuscany.sca.contribution.resolver.ModelResolver | 18 + ...che.tuscany.sca.implementation.bpel.BPELFactory | 18 + .../impl-bpel-validation-messages.properties | 34 + .../bpel/BPELDocumentProcessorTestCase.java | 59 + .../bpel/BPELImplementationProcessorTestCase.java | 111 + .../src/test/resources/helloworld/helloworld.bpel | 66 + .../src/test/resources/helloworld/helloworld.wsdl | 82 + .../1.5.1-RC4/modules/implementation-ejb/LICENSE | 205 ++ .../1.5.1-RC4/modules/implementation-ejb/NOTICE | 6 + .../1.5.1-RC4/modules/implementation-ejb/pom.xml | 93 + .../sca/implementation/ejb/EJBImplementation.java | 44 + .../ejb/EJBImplementationFactory.java | 36 + .../ejb/impl/EJBImplementationFactoryImpl.java | 39 + .../ejb/impl/EJBImplementationImpl.java | 151 ++ .../ejb/xml/EJBImplementationProcessor.java | 224 ++ ...ca.contribution.processor.StAXArtifactProcessor | 19 + ...sca.implementation.ejb.EJBImplementationFactory | 19 + .../impl-ejb-validation-messages.properties | 21 + .../sca/implementation/ejb/xml/ReadTestCase.java | 84 + .../sca/implementation/ejb/xml/WriteTestCase.java | 68 + .../sca/implementation/ejb/xml/TestEJB.composite | 29 + .../modules/implementation-java-runtime/LICENSE | 205 ++ .../modules/implementation-java-runtime/NOTICE | 6 + .../modules/implementation-java-runtime/pom.xml | 81 + .../java/context/InstanceFactory.java | 43 + .../java/context/InstanceFactoryProvider.java | 49 + .../java/context/ReflectiveInstanceFactory.java | 86 + .../java/context/ReflectiveInstanceWrapper.java | 56 + .../injection/ArrayMultiplicityObjectFactory.java | 54 + .../java/injection/ContextInjector.java | 32 + .../injection/ConversationIDObjectFactory.java | 39 + .../java/injection/FieldInjector.java | 67 + .../java/injection/InjectionRuntimeException.java | 45 + .../implementation/java/injection/Injector.java | 35 + .../java/injection/InvalidAccessorException.java | 43 + .../injection/JavaPropertyValueObjectFactory.java | 331 +++ .../injection/ListMultiplicityObjectFactory.java | 50 + .../java/injection/MethodInjector.java | 64 + .../injection/RequestContextObjectFactory.java | 55 + .../java/injection/ResourceHost.java | 46 + .../java/injection/ResourceNotFoundException.java | 51 + .../java/injection/ResourceObjectFactory.java | 87 + .../injection/ResourceResolutionException.java | 43 + .../java/invocation/EventInvocationException.java | 47 + .../java/invocation/EventInvoker.java | 34 + .../InvalidConversationSequenceException.java | 46 + .../JavaCallbackRuntimeWireProcessor.java | 106 + .../invocation/JavaComponentContextFactory.java | 40 + .../invocation/JavaComponentContextProvider.java | 405 +++ .../java/invocation/JavaComponentNameFactory.java | 40 + .../java/invocation/JavaImplementationInvoker.java | 248 ++ .../invocation/JavaImplementationProvider.java | 204 ++ .../JavaImplementationProviderFactory.java | 76 + .../invocation/JavaInstanceFactoryProvider.java | 183 ++ .../JavaPolicyHandlingRuntimeWireProcessor.java | 126 + .../java/invocation/MethodEventInvoker.java | 56 + .../NoConversationalContractException.java | 34 + .../java/invocation/PolicyHandlingInterceptor.java | 74 + .../java/module/JavaRuntimeModuleActivator.java | 106 + ...apache.tuscany.sca.context.PropertyValueFactory | 17 + .../org.apache.tuscany.sca.core.ModuleActivator | 18 + .../java/context/MultiplicityTestCase.java | 34 + .../context/ReflectiveInstanceWrapperTestCase.java | 84 + .../CallbackWireObjectFactoryTestCase.java | 54 + .../java/injection/FieldInjectorTestCase.java | 49 + .../JavaPropertyValueObjectFactoryTestCase.java | 449 ++++ .../java/injection/MethodEventInvokerTestCase.java | 76 + .../java/injection/MethodInjectorTestCase.java | 80 + .../RequestContextObjectFactoryTestCase.java | 33 + .../injection/ResourceObjectFactoryTestCase.java | 89 + .../java/injection/SingletonObjectFactory.java | 39 + .../injection/SingletonObjectFactoryTestCase.java | 33 + .../java/injection/TestObjectFactory.java | 120 + .../java/injection/TestObjectFactoryTestCase.java | 77 + .../sca/implementation/java/util/Bean1.java | 50 + .../sca/implementation/java/util/Bean2.java | 51 + .../sca/implementation/java/util/Entry.java | 32 + .../java/util/JavaIntrospectionHelperTestCase.java | 185 ++ .../sca/implementation/java/util/SuperBean.java | 48 + .../modules/implementation-java-xml/LICENSE | 205 ++ .../modules/implementation-java-xml/NOTICE | 6 + .../modules/implementation-java-xml/pom.xml | 112 + .../java/xml/JavaImplementationConstants.java | 36 + .../java/xml/JavaImplementationProcessor.java | 351 +++ ...ca.contribution.processor.StAXArtifactProcessor | 19 + .../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 + .../sca/implementation/java/xml/ReadTestCase.java | 224 ++ .../implementation/java/xml/TestModelResolver.java | 88 + .../sca/implementation/java/xml/WriteTestCase.java | 66 + .../implementation/java/xml/Calculator.composite | 66 + .../sca/implementation/java/xml/definitions.xml | 100 + .../java/xml/definitions_with_policysets.xml | 133 + .../1.5.1-RC4/modules/implementation-java/LICENSE | 205 ++ .../1.5.1-RC4/modules/implementation-java/NOTICE | 6 + .../1.5.1-RC4/modules/implementation-java/pom.xml | 84 + .../java/BaseJavaImplementation.java | 59 + .../java/DefaultJavaImplementationFactory.java | 33 + .../java/IntrospectionException.java | 60 + .../implementation/java/JavaImplementation.java | 198 ++ .../java/JavaImplementationFactory.java | 75 + .../java/impl/BaseJavaImplementationImpl.java | 89 + .../java/impl/JavaClassIntrospectorImpl.java | 141 ++ .../java/impl/JavaConstructorImpl.java | 53 + .../implementation/java/impl/JavaElementImpl.java | 224 ++ .../java/impl/JavaImplementationActivator.java | 86 + .../java/impl/JavaImplementationFactoryImpl.java | 77 + .../java/impl/JavaImplementationImpl.java | 168 ++ .../java/impl/JavaParameterImpl.java | 35 + .../implementation/java/impl/JavaResourceImpl.java | 85 + .../implementation/java/impl/JavaScopeImpl.java | 66 + .../java/introspect/JavaClassVisitor.java | 126 + .../introspect/impl/AbstractPropertyProcessor.java | 192 ++ .../impl/AllowsPassByReferenceProcessor.java | 51 + .../impl/AmbiguousConstructorException.java | 40 + .../java/introspect/impl/BaseJavaClassVisitor.java | 64 + .../introspect/impl/ComponentNameProcessor.java | 80 + .../java/introspect/impl/ConstructorProcessor.java | 83 + .../java/introspect/impl/ContextProcessor.java | 82 + .../introspect/impl/ConversationIDProcessor.java | 70 + .../introspect/impl/ConversationProcessor.java | 132 + .../java/introspect/impl/DestroyProcessor.java | 61 + .../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 | 57 + .../introspect/impl/HeuristicPojoProcessor.java | 615 +++++ .../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 | 61 + .../impl/InvalidConstructorException.java | 36 + .../impl/InvalidConversationalImplementation.java | 39 + .../introspect/impl/InvalidPropertyException.java | 35 + .../introspect/impl/InvalidReferenceException.java | 42 + .../introspect/impl/InvalidResourceException.java | 40 + .../java/introspect/impl/InvalidServiceType.java | 48 + .../introspect/impl/JavaIntrospectionHelper.java | 577 +++++ .../introspect/impl/NoConstructorException.java | 37 + .../java/introspect/impl/PolicyProcessor.java | 292 +++ .../java/introspect/impl/PropertyProcessor.java | 46 + .../java/introspect/impl/ReferenceProcessor.java | 208 ++ .../java/introspect/impl/Resource.java | 49 + .../java/introspect/impl/ResourceProcessor.java | 137 ++ .../java/introspect/impl/ScopeProcessor.java | 61 + .../java/introspect/impl/ServiceProcessor.java | 184 ++ .../impl/ServiceTypeNotFoundException.java | 35 + .../impl/UnknownContextTypeException.java | 33 + .../org.apache.tuscany.sca.core.ModuleActivator | 18 + ...a.implementation.java.JavaImplementationFactory | 18 + .../introspect/impl/AbstractProcessorTest.java | 76 + .../impl/AbstractPropertyProcessorTestCase.java | 169 ++ .../AllowsPassByReferenceProcessorTestCase.java | 71 + .../impl/ConstructorProcessorTestCase.java | 192 ++ .../impl/ConstructorPropertyTestCase.java | 157 ++ .../impl/ConstructorReferenceTestCase.java | 167 ++ .../impl/ConstructorResourceTestCase.java | 152 ++ .../introspect/impl/ContextProcessorTestCase.java | 201 ++ .../impl/ConversationIDProcessorTestCase.java | 94 + .../impl/ConversationProcessorTestCase.java | 144 ++ .../introspect/impl/ConvertTimeMillisTestCase.java | 117 + .../introspect/impl/DestroyProcessorTestCase.java | 129 + .../impl/EagerInitProcessorTestCase.java | 59 + .../impl/HeuristicAndPropertyTestCase.java | 71 + .../impl/HeuristicConstructorTestCase.java | 310 +++ .../impl/HeuristicPojoProcessorTestCase.java | 562 +++++ .../HeutisticExtensibleConstructorTestCase.java | 148 ++ .../introspect/impl/InitProcessorTestCase.java | 145 ++ .../impl/JavaClassIntrospectorImplTestCase.java | 95 + .../java/introspect/impl/ModelHelper.java | 99 + .../introspect/impl/PolicyProcessorTestCase.java | 418 ++++ .../introspect/impl/PropertyProcessorTestCase.java | 212 ++ .../impl/ReferenceProcessorTestCase.java | 221 ++ .../introspect/impl/ResourceProcessorTestCase.java | 119 + .../introspect/impl/ScopeProcessorTestCase.java | 113 + .../introspect/impl/ServiceCallbackTestCase.java | 183 ++ .../introspect/impl/ServiceProcessorTestCase.java | 158 ++ .../1.5.1-RC4/modules/implementation-jee/LICENSE | 205 ++ .../1.5.1-RC4/modules/implementation-jee/NOTICE | 6 + .../1.5.1-RC4/modules/implementation-jee/pom.xml | 97 + .../sca/implementation/jee/JEEImplementation.java | 43 + .../jee/JEEImplementationFactory.java | 36 + .../jee/impl/JEEImplementationFactoryImpl.java | 38 + .../jee/impl/JEEImplementationImpl.java | 61 + .../jee/xml/JEEImplementationProcessor.java | 313 +++ ...ca.contribution.processor.StAXArtifactProcessor | 21 + ...sca.implementation.jee.JEEImplementationFactory | 21 + .../sca/implementation/jee/xml/ReadTestCase.java | 88 + .../sca/implementation/jee/xml/WriteTestCase.java | 68 + .../src/test/java/test/Helloworld.java | 25 + .../test/MockImplementationProviderFactory.java | 44 + ...cany.sca.provider.ImplementationProviderFactory | 19 + .../sca/implementation/jee/xml/TestJEE.composite | 32 + .../modules/implementation-node-runtime/LICENSE | 205 ++ .../modules/implementation-node-runtime/NOTICE | 6 + .../modules/implementation-node-runtime/pom.xml | 103 + .../NodeImplementationDaemonBootstrap.java | 85 + .../NodeImplementationLauncherBootstrap.java | 149 ++ .../launcher/NodeImplementationLauncherUtil.java | 51 + .../node/provider/NodeImplementationInvoker.java | 44 + .../node/provider/NodeImplementationProvider.java | 62 + .../NodeImplementationProviderFactory.java | 49 + .../node/webapp/NodeWebAppRequestDispatcher.java | 119 + .../node/webapp/NodeWebAppServletHost.java | 397 +++ ...cany.sca.provider.ImplementationProviderFactory | 19 + .../node/NodeImplementationTestCase.java | 48 + .../src/test/resources/TestComposite.composite | 29 + .../src/test/resources/TestNode.composite | 30 + .../1.5.1-RC4/modules/implementation-node/LICENSE | 205 ++ .../1.5.1-RC4/modules/implementation-node/NOTICE | 6 + .../1.5.1-RC4/modules/implementation-node/pom.xml | 93 + .../node/ConfiguredNodeImplementation.java | 54 + .../implementation/node/NodeImplementation.java | 45 + .../node/NodeImplementationFactory.java | 42 + .../builder/impl/NodeCompositeBuilderImpl.java | 111 + .../impl/ConfiguredNodeImplementationImpl.java | 104 + .../node/impl/NodeImplementationFactoryImpl.java | 44 + .../node/impl/NodeImplementationImpl.java | 97 + .../xml/ConfiguredNodeImplementationProcessor.java | 196 ++ .../node/xml/NodeImplementationProcessor.java | 119 + ...ca.contribution.processor.StAXArtifactProcessor | 20 + ...a.implementation.node.NodeImplementationFactory | 19 + .../builder/impl/CalculateBindingURITestCase.java | 603 +++++ .../sca/implementation/node/xml/ReadTestCase.java | 81 + .../sca/implementation/node/xml/WriteTestCase.java | 65 + .../node/xml/TestComposite.composite | 29 + .../sca/implementation/node/xml/TestNode.composite | 64 + .../modules/implementation-notification/LICENSE | 205 ++ .../modules/implementation-notification/NOTICE | 6 + .../modules/implementation-notification/pom.xml | 110 + .../DefaultNotificationImplementationFactory.java | 33 + .../notification/ImmutableMessage.java | 105 + .../notification/NotificationComponentInvoker.java | 112 + .../NotificationImplementationFactory.java | 27 + .../NotificationImplementationImpl.java | 96 + .../NotificationImplementationProcessor.java | 99 + .../NotificationImplementationProvider.java | 67 + .../NotificationImplementationProviderFactory.java | 38 + .../notification/NotificationModuleActivator.java | 49 + .../org.apache.tuscany.sca.core.ModuleActivator | 19 + .../NotificationComponentTestCase.java | 136 + .../NotificationImplementationLoaderTestCase.java | 56 + ...afficAdvisoryNotificationTestCase.componentType | 30 + .../1.5.1-RC4/modules/implementation-osgi/LICENSE | 203 ++ .../1.5.1-RC4/modules/implementation-osgi/NOTICE | 6 + .../1.5.1-RC4/modules/implementation-osgi/pom.xml | 164 ++ .../implementation/osgi/OSGiImplementation.java | 45 + .../osgi/context/OSGiAnnotations.java | 325 +++ .../osgi/context/OSGiPropertyInjector.java | 293 +++ .../context/OSGiPropertyValueObjectFactory.java | 226 ++ .../osgi/impl/OSGiImplementationImpl.java | 168 ++ .../osgi/runtime/OSGiImplementationProvider.java | 1254 ++++++++++ .../runtime/OSGiImplementationProviderFactory.java | 109 + .../osgi/runtime/OSGiInstanceWrapper.java | 299 +++ .../osgi/runtime/OSGiRemotableInvoker.java | 139 ++ .../osgi/runtime/OSGiTargetInvoker.java | 199 ++ .../osgi/xml/OSGiImplementationProcessor.java | 550 +++++ ...ca.contribution.processor.StAXArtifactProcessor | 19 + ...cany.sca.provider.ImplementationProviderFactory | 19 + .../impl-osgi-validation-messages.properties | 25 + .../osgi/runtime/OSGiPropertyTestCase.java | 49 + .../implementation/osgi/runtime/OSGiTestCase.java | 74 + .../implementation/osgi/test/OSGiTestBundles.java | 116 + .../sca/implementation/osgi/test/OSGiTestImpl.java | 51 + .../osgi/test/OSGiTestInterface.java | 32 + .../osgi/test/OSGiTestWithPropertyImpl.java | 66 + .../osgi/xml/OSGiReadImplTestCase.java | 132 + .../implementation/osgi/xml/TestModelResolver.java | 106 + .../test/resources/OSGiTestService.componentType | 28 + .../src/test/resources/osgiproptest.composite | 37 + .../src/test/resources/osgitest.composite | 36 + .../implementation-resource-runtime/LICENSE | 205 ++ .../modules/implementation-resource-runtime/NOTICE | 6 + .../implementation-resource-runtime/pom.xml | 86 + .../resource/provider/GetResourceInvoker.java | 67 + .../provider/ResourceImplementationProvider.java | 75 + .../ResourceImplementationProviderFactory.java | 47 + ...cany.sca.provider.ImplementationProviderFactory | 19 + .../resource/ResourceImplementationTestCase.java | 77 + .../src/test/resources/content/test.html | 21 + .../src/test/resources/resource.composite | 30 + .../modules/implementation-resource/LICENSE | 205 ++ .../modules/implementation-resource/NOTICE | 6 + .../modules/implementation-resource/pom.xml | 79 + .../sca/implementation/resource/Resource.java | 34 + .../resource/ResourceImplementation.java | 57 + .../resource/ResourceImplementationFactory.java | 35 + .../impl/ResourceImplementationFactoryImpl.java | 47 + .../resource/impl/ResourceImplementationImpl.java | 130 + .../impl/ResourceImplementationProcessor.java | 167 ++ ...ca.contribution.processor.StAXArtifactProcessor | 19 + ...entation.resource.ResourceImplementationFactory | 19 + .../impl-resource-validation-messages.properties | 23 + .../modules/implementation-script/LICENSE | 251 ++ .../1.5.1-RC4/modules/implementation-script/NOTICE | 12 + .../modules/implementation-script/pom.xml | 197 ++ .../script/ScriptImplementation.java | 99 + .../script/ScriptImplementationActivator.java | 49 + .../sca/implementation/script/ScriptInvoker.java | 84 + .../script/ScriptInvokerFactory.java | 172 ++ .../script/engines/TuscanyJRubyScriptEngine.java | 697 ++++++ ...ny.sca.extension.helper.ImplementationActivator | 18 + .../script/itests/AbstractSCATestCase.java | 54 + .../itests/dynamic/AbstractHelloWorldTestCase.java | 38 + .../script/itests/dynamic/HelloWorld.java | 31 + .../dynamic/JavaScriptDynamicRefTestCase.java | 29 + .../dynamic/JavaScriptHelloWorldTestCase.java | 34 + .../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 + .../JavaScripInlineHelloWorldTestCase.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/dynamic/JavaScriptDynamicRef.composite | 35 + .../itests/dynamic/JavaScriptHelloWorld.composite | 30 + .../script/itests/dynamic/helloworld.js | 26 + .../script/itests/dynamic/helloworldProxy.js | 22 + .../itests/helloworld/GroovyHelloWorld.composite | 33 + .../itests/helloworld/JRubyHelloWorld.composite | 33 + .../helloworld/JavaScripInlineHelloWorld.composite | 34 + .../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-spring-runtime/LICENSE | 205 ++ .../modules/implementation-spring-runtime/NOTICE | 6 + .../modules/implementation-spring-runtime/README | 9 + .../modules/implementation-spring-runtime/pom.xml | 90 + .../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/SCAParentApplicationContext.java | 190 ++ .../spring/runtime/context/SpringContextTie.java | 207 ++ .../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 ++ .../1.5.1-RC4/modules/implementation-spring/NOTICE | 6 + .../1.5.1-RC4/modules/implementation-spring/README | 9 + .../modules/implementation-spring/pom.xml | 109 + .../implementation/spring/SpringBeanElement.java | 76 + .../spring/SpringConstructorArgElement.java | 78 + .../spring/SpringImplementation.java | 226 ++ .../spring/SpringImplementationConstants.java | 64 + .../spring/SpringPropertyElement.java | 61 + .../spring/SpringSCAPropertyElement.java | 52 + .../spring/SpringSCAReferenceElement.java | 54 + .../spring/SpringSCAServiceElement.java | 64 + .../spring/introspect/SpringBeanIntrospector.java | 135 + .../spring/introspect/SpringBeanPojoProcessor.java | 656 +++++ .../introspect/SpringXMLComponentTypeLoader.java | 861 +++++++ .../spring/invocation/ComponentTie.java | 41 + .../ConfigurationPropertiesExtensionPoint.java | 11 + ...faultConfigurationPropertiesExtensionPoint.java | 33 + .../spring/invocation/PropertyValueTie.java | 53 + .../spring/invocation/SpringContextStub.java | 140 ++ .../invocation/SpringImplementationProvider.java | 88 + .../SpringImplementationProviderFactory.java | 92 + .../spring/invocation/SpringImplementationTie.java | 147 ++ .../invocation/SpringInvocationException.java | 40 + .../spring/invocation/SpringInvoker.java | 124 + .../spring/xml/SpringImplementationProcessor.java | 244 ++ ...ca.contribution.processor.StAXArtifactProcessor | 19 + ...on.spring.ConfigurationPropertiesExtensionPoint | 18 + ...cany.sca.provider.ImplementationProviderFactory | 19 + .../impl-spring-validation-messages.properties | 23 + .../modules/implementation-web-runtime/LICENSE | 203 ++ .../modules/implementation-web-runtime/NOTICE | 6 + .../modules/implementation-web-runtime/pom.xml | 116 + .../web/ComponentContextServlet.java | 156 ++ .../implementation/web/ContextScriptProcessor.java | 32 + .../web/ContextScriptProcessorExtensionPoint.java | 27 + ...efaultContextScriptProcessorExtensionPoint.java | 51 + .../implementation/web/JSONRPCScripProcessor.java | 57 + .../web/runtime/ComponentContextProxy.java | 88 + .../runtime/WebImplementationProviderFactory.java | 78 + ...tation.web.ContextScriptProcessorExtensionPoint | 19 + ...cany.sca.provider.ImplementationProviderFactory | 19 + .../src/main/resources/jsonrpc.js | 493 ++++ .../1.5.1-RC4/modules/implementation-web/LICENSE | 205 ++ .../1.5.1-RC4/modules/implementation-web/NOTICE | 6 + .../1.5.1-RC4/modules/implementation-web/pom.xml | 100 + .../sca/implementation/web/WebImplementation.java | 42 + .../web/WebImplementationFactory.java | 34 + .../web/impl/WebImplementationFactoryImpl.java | 37 + .../web/impl/WebImplementationImpl.java | 135 + .../web/introspect/PropertyProcessor.java | 154 ++ .../web/introspect/ReferenceProcessor.java | 181 ++ .../web/xml/WebImplementationProcessor.java | 196 ++ ...ca.contribution.processor.StAXArtifactProcessor | 19 + ...sca.implementation.web.WebImplementationFactory | 19 + .../sca/implementation/web/xml/ReadTestCase.java | 81 + .../sca/implementation/web/xml/WriteTestCase.java | 66 + .../sca/implementation/web/xml/TestWeb.composite | 29 + .../implementation-widget-runtime-dojo/LICENSE | 205 ++ .../implementation-widget-runtime-dojo/NOTICE | 6 + .../implementation-widget-runtime-dojo/pom.xml | 67 + .../dojo/DojoJavaScriptComponentGeneratorImpl.java | 208 ++ ...sca.web.javascript.ComponentJavaScriptGenerator | 19 + .../implementation-widget-runtime-tuscany/LICENSE | 205 ++ .../implementation-widget-runtime-tuscany/NOTICE | 6 + .../implementation-widget-runtime-tuscany/pom.xml | 110 + .../TuscanyJavaScriptComponentGeneratorImpl.java | 203 ++ ...sca.web.javascript.ComponentJavaScriptGenerator | 19 + .../widget/WidgetImplementationTestCase.java | 48 + .../src/test/java/store/Catalog.java | 32 + .../src/test/java/store/CatalogImpl.java | 47 + .../src/test/java/store/ShoppingCartImpl.java | 124 + .../src/test/resources/content/store.html | 127 + .../src/test/resources/content/storeJS.html | 152 ++ .../src/test/resources/content/unitTests.html | 250 ++ .../src/test/resources/widget.composite | 54 + .../src/test/resources/widgetJS.composite | 58 + .../modules/implementation-widget-runtime/LICENSE | 205 ++ .../modules/implementation-widget-runtime/NOTICE | 6 + .../modules/implementation-widget-runtime/pom.xml | 92 + .../provider/WidgetComponentScriptGenerator.java | 218 ++ .../provider/WidgetComponentScriptServlet.java | 62 + .../provider/WidgetImplementationInvoker.java | 101 + .../provider/WidgetImplementationProvider.java | 126 + .../WidgetImplementationProviderFactory.java | 59 + ...cany.sca.provider.ImplementationProviderFactory | 19 + .../src/main/resources/atomModel.js | 1590 ++++++++++++ .../src/main/resources/binding-http.js | 105 + .../modules/implementation-widget/LICENSE | 205 ++ .../1.5.1-RC4/modules/implementation-widget/NOTICE | 6 + .../modules/implementation-widget/pom.xml | 79 + .../tuscany/sca/implementation/widget/Widget.java | 34 + .../widget/WidgetImplementation.java | 40 + .../widget/WidgetImplementationFactory.java | 31 + .../widget/WidgetImplementationIntrospector.java | 145 ++ .../widget/WidgetImplementationProcessor.java | 172 ++ .../impl/WidgetImplementationFactoryImpl.java | 47 + .../widget/impl/WidgetImplementationImpl.java | 135 + ...ca.contribution.processor.StAXArtifactProcessor | 19 + ...plementation.widget.WidgetImplementationFactory | 19 + .../impl-widget-validation-messages.properties | 23 + .../modules/implementation-xquery/LICENSE | 202 ++ .../1.5.1-RC4/modules/implementation-xquery/NOTICE | 6 + .../modules/implementation-xquery/pom.xml | 105 + .../xquery/XQueryImplementation.java | 75 + .../xquery/XQueryImplementationFactory.java | 32 + .../xquery/XQueryImplementationProvider.java | 166 ++ .../XQueryImplementationProviderFactory.java | 51 + .../xquery/XQueryInvokationException.java | 33 + .../sca/implementation/xquery/XQueryInvoker.java | 318 +++ .../impl/XQueryImplementationFactoryImpl.java | 35 + .../xquery/impl/XQueryImplementationImpl.java | 102 + .../xquery/xml/XQueryImplementationProcessor.java | 159 ++ .../xquery/xml/XQueryIntrospector.java | 328 +++ ...ca.contribution.processor.StAXArtifactProcessor | 19 + ...cany.sca.provider.ImplementationProviderFactory | 19 + .../impl-xquery-validation-messages.properties | 22 + .../1.5.1-RC4/modules/interface-java-jaxws/LICENSE | 205 ++ .../1.5.1-RC4/modules/interface-java-jaxws/NOTICE | 6 + .../1.5.1-RC4/modules/interface-java-jaxws/pom.xml | 303 +++ .../interfacedef/java/jaxws/BaseBeanGenerator.java | 539 ++++ .../java/jaxws/CodeGenerationHelper.java | 280 +++ .../java/jaxws/FaultBeanGenerator.java | 147 ++ .../java/jaxws/GeneratedClassLoader.java | 69 + .../java/jaxws/GeneratedDataTypeImpl.java | 143 ++ .../java/jaxws/JAXWSFaultExceptionMapper.java | 402 +++ .../java/jaxws/JAXWSJavaInterfaceProcessor.java | 454 ++++ .../java/jaxws/WebServiceInterfaceProcessor.java | 49 + .../java/jaxws/WrapperBeanGenerator.java | 238 ++ .../tuscany/sca/interfacedef/java/jaxws/Bean.java | 27 + .../tuscany/sca/interfacedef/java/jaxws/Bean1.java | 40 + .../tuscany/sca/interfacedef/java/jaxws/Bean2.java | 40 + .../java/jaxws/FaultBeanGeneratorTestCase.java | 62 + .../jaxws/JAXWSJavaInterfaceProcessorTestCase.java | 119 + .../java/jaxws/JavaReflectionHelperTestCase.java | 48 + .../sca/interfacedef/java/jaxws/MyException.java | 62 + .../sca/interfacedef/java/jaxws/MyServiceImpl.java | 52 + .../interfacedef/java/jaxws/TestGenericClass.java | 40 + .../sca/interfacedef/java/jaxws/TestInterface.java | 66 + .../java/jaxws/WrapperBeanGeneratorTestCase.java | 79 + .../src/test/resources/wsdl/Stock.wsdl | 142 ++ .../test/resources/wsdl/StockExceptionTest.wsdl | 149 ++ .../1.5.1-RC4/modules/interface-java-xml/LICENSE | 205 ++ .../1.5.1-RC4/modules/interface-java-xml/NOTICE | 6 + .../1.5.1-RC4/modules/interface-java-xml/pom.xml | 83 + .../sca/interfacedef/java/xml/JavaConstants.java | 37 + .../java/xml/JavaInterfaceProcessor.java | 227 ++ ...ca.contribution.processor.StAXArtifactProcessor | 19 + ...nterface-javaxml-validation-messages.properties | 22 + .../sca/interfacedef/java/xml/ReadTestCase.java | 100 + .../sca/interfacedef/java/xml/WriteTestCase.java | 83 + .../sca/interfacedef/java/xml/Calculator.composite | 53 + .../java/xml/CalculatorComponent.constrainingType | 34 + .../java/xml/CalculatorImpl.componentType | 31 + .../sca/1.5.1-RC4/modules/interface-java/LICENSE | 205 ++ .../sca/1.5.1-RC4/modules/interface-java/NOTICE | 6 + .../sca/1.5.1-RC4/modules/interface-java/pom.xml | 82 + .../java/DefaultJavaInterfaceFactory.java | 99 + .../sca/interfacedef/java/JavaInterface.java | 87 + .../interfacedef/java/JavaInterfaceContract.java | 33 + .../interfacedef/java/JavaInterfaceFactory.java | 82 + .../sca/interfacedef/java/JavaOperation.java | 57 + .../impl/ClassCachedJavaInterfaceFactoryImpl.java | 129 + .../java/impl/JavaInterfaceContractImpl.java | 54 + .../java/impl/JavaInterfaceFactoryImpl.java | 84 + .../interfacedef/java/impl/JavaInterfaceImpl.java | 133 + .../java/impl/JavaInterfaceIntrospectorImpl.java | 276 +++ .../interfacedef/java/impl/JavaInterfaceUtil.java | 225 ++ .../interfacedef/java/impl/JavaOperationImpl.java | 83 + .../java/impl/PolicyJavaInterfaceVisitor.java | 159 ++ .../java/introspect/JavaInterfaceVisitor.java | 39 + ...cany.sca.interfacedef.java.JavaInterfaceFactory | 18 + ...avaInterfaceUtilDuplicateRemotableTestCase.java | 308 +++ .../java/impl/JavaInterfaceUtilTestCase.java | 121 + .../impl/ConversationalIntrospectionTestCase.java | 98 + ...JavaInterfaceProcessorRegistryImplTestCase.java | 107 + .../impl/PolicyProcessorTestCase.java | 108 + .../1.5.1-RC4/modules/interface-wsdl-xml/LICENSE | 205 ++ .../1.5.1-RC4/modules/interface-wsdl-xml/NOTICE | 6 + .../1.5.1-RC4/modules/interface-wsdl-xml/pom.xml | 95 + .../wsdl/xml/BPELExtensionHandler.java | 140 ++ .../wsdl/xml/BPELPartnerLinkTypeExt.java | 79 + .../sca/interfacedef/wsdl/xml/WSDLConstants.java | 40 + .../wsdl/xml/WSDLDocumentProcessor.java | 230 ++ .../wsdl/xml/WSDLInterfaceProcessor.java | 315 +++ .../interfacedef/wsdl/xml/WSDLModelResolver.java | 600 +++++ ...ca.contribution.processor.StAXArtifactProcessor | 19 + ...sca.contribution.processor.URLArtifactProcessor | 19 + ...tuscany.sca.contribution.resolver.ModelResolver | 18 + ...nterface-wsdlxml-validation-messages.properties | 24 + .../interfacedef/wsdl/AbstractWSDLTestCase.java | 68 + .../WSDLInterfaceIntrospectorTestCase.java | 83 + .../WSDLOperationIntrospectorTestCase.java | 117 + ...licyAnnotatedInterfaceIntrospectorTestCase.java | 87 + .../introspect/WrapperStyleOperationTestCase.java | 70 + .../sca/interfacedef/wsdl/xml/ReadTestCase.java | 97 + .../wsdl/xml/WSDLDocumentProcessorTestCase.java | 86 + .../sca/interfacedef/wsdl/xml/WSDLTestCase.java | 104 + .../sca/interfacedef/wsdl/xml/WriteTestCase.java | 83 + .../wsdl/xml/XMLDocumentHelperTestCase.java | 53 + .../sca/interfacedef/wsdl/xml/Calculator.composite | 55 + .../wsdl/xml/CalculatorComponent.constrainingType | 36 + .../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 + .../src/test/resources/xsd/name.xsd | 29 + .../sca/1.5.1-RC4/modules/interface-wsdl/LICENSE | 205 ++ .../sca/1.5.1-RC4/modules/interface-wsdl/NOTICE | 6 + .../sca/1.5.1-RC4/modules/interface-wsdl/pom.xml | 103 + .../sca/interfacedef/wsdl/DefaultWSDLFactory.java | 35 + .../sca/interfacedef/wsdl/WSDLDefinition.java | 140 ++ .../tuscany/sca/interfacedef/wsdl/WSDLFactory.java | 70 + .../sca/interfacedef/wsdl/WSDLInterface.java | 67 + .../interfacedef/wsdl/WSDLInterfaceContract.java | 44 + .../tuscany/sca/interfacedef/wsdl/WSDLObject.java | 54 + .../sca/interfacedef/wsdl/WSDLOperation.java | 40 + .../wsdl/impl/InvalidWSDLException.java | 35 + .../interfacedef/wsdl/impl/WSDLDefinitionImpl.java | 289 +++ .../interfacedef/wsdl/impl/WSDLFactoryImpl.java | 75 + .../wsdl/impl/WSDLInterfaceContractImpl.java | 64 + .../interfacedef/wsdl/impl/WSDLInterfaceImpl.java | 115 + .../wsdl/impl/WSDLInterfaceIntrospectorImpl.java | 159 ++ .../sca/interfacedef/wsdl/impl/WSDLObjectImpl.java | 61 + .../interfacedef/wsdl/impl/WSDLOperationImpl.java | 81 + .../wsdl/impl/WSDLOperationIntrospectorImpl.java | 617 +++++ ...pache.tuscany.sca.interfacedef.wsdl.WSDLFactory | 18 + tags/java/sca/1.5.1-RC4/modules/interface/LICENSE | 205 ++ tags/java/sca/1.5.1-RC4/modules/interface/NOTICE | 6 + tags/java/sca/1.5.1-RC4/modules/interface/pom.xml | 57 + .../sca/interfacedef/ConversationSequence.java | 29 + .../apache/tuscany/sca/interfacedef/DataType.java | 119 + .../sca/interfacedef/FaultExceptionMapper.java | 62 + .../IncompatibleInterfaceContractException.java | 69 + .../apache/tuscany/sca/interfacedef/Interface.java | 111 + .../sca/interfacedef/InterfaceContract.java | 81 + .../sca/interfacedef/InterfaceContractMapper.java | 115 + .../sca/interfacedef/InvalidCallbackException.java | 34 + .../interfacedef/InvalidInterfaceException.java | 41 + .../interfacedef/InvalidOperationException.java | 42 + .../apache/tuscany/sca/interfacedef/Operation.java | 226 ++ .../interfacedef/OverloadedOperationException.java | 45 + .../tuscany/sca/interfacedef/ParameterMode.java | 28 + .../sca/interfacedef/impl/DataTypeImpl.java | 229 ++ .../interfacedef/impl/InterfaceContractImpl.java | 128 + .../impl/InterfaceContractMapperImpl.java | 302 +++ .../sca/interfacedef/impl/InterfaceImpl.java | 331 +++ .../sca/interfacedef/impl/OperationImpl.java | 321 +++ .../tuscany/sca/interfacedef/util/ElementInfo.java | 114 + .../sca/interfacedef/util/FaultException.java | 82 + .../sca/interfacedef/util/JavaXMLMapper.java | 143 ++ .../tuscany/sca/interfacedef/util/TypeInfo.java | 100 + .../tuscany/sca/interfacedef/util/WrapperInfo.java | 140 ++ .../tuscany/sca/interfacedef/util/XMLType.java | 152 ++ ...uscany.sca.interfacedef.InterfaceContractMapper | 18 + .../impl/ContractCompatibilityTestCase.java | 380 +++ .../impl/InterfaceContractTestCase.java | 71 + tags/java/sca/1.5.1-RC4/modules/monitor/LICENSE | 205 ++ tags/java/sca/1.5.1-RC4/modules/monitor/NOTICE | 6 + tags/java/sca/1.5.1-RC4/modules/monitor/pom.xml | 57 + .../org/apache/tuscany/sca/monitor/Monitor.java | 162 ++ .../apache/tuscany/sca/monitor/MonitorFactory.java | 35 + .../sca/monitor/MonitorRuntimeException.java | 55 + .../org/apache/tuscany/sca/monitor/Problem.java | 49 + .../monitor/impl/DefaultMonitorFactoryImpl.java | 41 + .../sca/monitor/impl/DefaultMonitorImpl.java | 116 + .../tuscany/sca/monitor/impl/ProblemImpl.java | 132 + .../org.apache.tuscany.sca.monitor.MonitorFactory | 18 + tags/java/sca/1.5.1-RC4/modules/node-api/LICENSE | 205 ++ tags/java/sca/1.5.1-RC4/modules/node-api/NOTICE | 6 + tags/java/sca/1.5.1-RC4/modules/node-api/pom.xml | 61 + .../org/apache/tuscany/sca/node/SCAClient.java | 71 + .../apache/tuscany/sca/node/SCAContribution.java | 54 + .../java/org/apache/tuscany/sca/node/SCANode.java | 42 + .../java/org/apache/tuscany/sca/node/SCANode2.java | 33 + .../apache/tuscany/sca/node/SCANode2Factory.java | 203 ++ .../apache/tuscany/sca/node/SCANodeFactory.java | 208 ++ tags/java/sca/1.5.1-RC4/modules/node-impl/LICENSE | 205 ++ tags/java/sca/1.5.1-RC4/modules/node-impl/NOTICE | 6 + tags/java/sca/1.5.1-RC4/modules/node-impl/pom.xml | 154 ++ .../tuscany/sca/node/impl/Node2FactoryImpl.java | 57 + .../apache/tuscany/sca/node/impl/Node2Impl.java | 63 + .../tuscany/sca/node/impl/NodeFactoryImpl.java | 60 + .../org/apache/tuscany/sca/node/impl/NodeImpl.java | 897 +++++++ .../tuscany/sca/node/impl/RuntimeBootStrapper.java | 427 ++++ .../tuscany/sca/node/impl/RuntimeBuilder.java | 256 ++ .../org.apache.tuscany.sca.node.SCANode2Factory | 17 + .../org.apache.tuscany.sca.node.SCANodeFactory | 17 + .../node-impl/src/test/java/hello/HelloWorld.java | 30 + .../src/test/java/hello/HelloWorldImpl.java | 30 + .../tuscany/sca/node/impl/Node2ImplTestCase.java | 119 + .../tuscany/sca/node/impl/NodeImplTestCase.java | 119 + .../src/test/resources/HelloWorld.composite | 30 + .../test/resources/META-INF/sca-contribution.xml | 23 + .../1.5.1-RC4/modules/node-launcher-osgi/LICENSE | 205 ++ .../1.5.1-RC4/modules/node-launcher-osgi/NOTICE | 6 + .../1.5.1-RC4/modules/node-launcher-osgi/pom.xml | 155 ++ .../sca/node/osgi/launcher/Contribution.java | 48 + .../node/osgi/launcher/DomainManagerLauncher.java | 110 + .../sca/node/osgi/launcher/FelixOSGiHost.java | 174 ++ .../sca/node/osgi/launcher/JarFileFinder.java | 348 +++ .../osgi/launcher/LauncherBundleActivator.java | 475 ++++ .../sca/node/osgi/launcher/LauncherException.java | 55 + .../sca/node/osgi/launcher/NodeDaemonLauncher.java | 100 + .../sca/node/osgi/launcher/NodeLauncher.java | 165 ++ .../sca/node/osgi/launcher/NodeLauncherUtil.java | 198 ++ .../tuscany/sca/node/osgi/launcher/NodeMain.java | 44 + .../sca/node/osgi/launcher/NodeServletFilter.java | 127 + .../tuscany/sca/node/osgi/launcher/OSGiHost.java | 30 + .../src/test/java/hello/HelloWorld.java | 30 + .../src/test/java/hello/HelloWorldImpl.java | 30 + .../node/osgi/launcher/FelixOSGiHostTestCase.java | 95 + .../node/osgi/launcher/NodeLauncherTestCase.java | 69 + .../src/test/resources/HelloWorld.composite | 30 + .../sca/1.5.1-RC4/modules/node-launcher/LICENSE | 205 ++ .../sca/1.5.1-RC4/modules/node-launcher/NOTICE | 6 + .../sca/1.5.1-RC4/modules/node-launcher/pom.xml | 72 + .../tuscany/sca/node/launcher/Contribution.java | 48 + .../sca/node/launcher/DomainManagerLauncher.java | 179 ++ .../sca/node/launcher/LauncherException.java | 55 + .../sca/node/launcher/NodeDaemonLauncher.java | 168 ++ .../tuscany/sca/node/launcher/NodeLauncher.java | 230 ++ .../sca/node/launcher/NodeLauncherUtil.java | 543 ++++ .../apache/tuscany/sca/node/launcher/NodeMain.java | 44 + .../sca/node/launcher/NodeServletFilter.java | 130 + .../sca/1.5.1-RC4/modules/node-manager/LICENSE | 205 ++ .../java/sca/1.5.1-RC4/modules/node-manager/NOTICE | 6 + .../sca/1.5.1-RC4/modules/node-manager/pom.xml | 138 ++ .../node/manager/NodeManagerUtil.java | 51 + .../node/manager/NodeProcessCollectionImpl.java | 338 +++ .../node/manager/PingServiceImpl.java | 61 + .../src/main/resources/NodeDaemon.composite | 39 + .../sca/1.5.1-RC4/modules/osgi-runtime/LICENSE | 203 ++ .../java/sca/1.5.1-RC4/modules/osgi-runtime/NOTICE | 6 + .../sca/1.5.1-RC4/modules/osgi-runtime/pom.xml | 70 + .../tuscany/sca/osgi/runtime/EquinoxRuntime.java | 117 + .../tuscany/sca/osgi/runtime/FelixRuntime.java | 253 ++ .../sca/osgi/runtime/KnopflerfishRuntime.java | 168 ++ .../sca/osgi/runtime/OSGiBundleActivator.java | 252 ++ .../tuscany/sca/osgi/runtime/OSGiRuntime.java | 275 +++ .../osgi/runtime/OSGiRuntimeModuleActivator.java | 47 + .../org.apache.tuscany.sca.core.ModuleActivator | 18 + .../sca/osgi/runtime/OSGiRuntimeTestCase.java | 78 + .../sca/1.5.1-RC4/modules/policy-logging/LICENSE | 205 ++ .../sca/1.5.1-RC4/modules/policy-logging/NOTICE | 6 + .../sca/1.5.1-RC4/modules/policy-logging/pom.xml | 77 + .../logging/LoggingPolicyDefinitionsProvider.java | 67 + .../JDKLoggingImplementationPolicyProvider.java | 90 + .../sca/policy/logging/jdk/JDKLoggingPolicy.java | 84 + .../logging/jdk/JDKLoggingPolicyInterceptor.java | 130 + .../logging/jdk/JDKLoggingPolicyProcessor.java | 137 ++ .../jdk/JDKLoggingPolicyProviderFactory.java | 75 + .../jdk/JDKLoggingReferencePolicyProvider.java | 89 + .../jdk/JDKLoggingServicePolicyProvider.java | 87 + ...ca.contribution.processor.StAXArtifactProcessor | 19 + ...ache.tuscany.sca.provider.PolicyProviderFactory | 19 + ...che.tuscany.sca.provider.SCADefinitionsProvider | 19 + .../tuscany/sca/policy/logging/definitions.xml | 31 + .../sca/policy/logging/jdk/PolicyReadTestCase.java | 91 + .../sca/policy/logging/jdk/mock_policies.xml | 23 + .../1.5.1-RC4/modules/policy-reliability/LICENSE | 205 ++ .../1.5.1-RC4/modules/policy-reliability/NOTICE | 6 + .../1.5.1-RC4/modules/policy-reliability/pom.xml | 70 + .../ReliabilityPolicyDefinitionsProvider.java | 72 + ...che.tuscany.sca.provider.SCADefinitionsProvider | 19 + .../tuscany/sca/policy/reliability/definitions.xml | 62 + .../modules/policy-security-geronimo/pom.xml | 70 + .../geronimo/GeronimoLDAPSecurityHandler.java | 136 + ...security.http.extensibility.LDAPSecurityHandler | 18 + .../1.5.1-RC4/modules/policy-security-http/LICENSE | 205 ++ .../1.5.1-RC4/modules/policy-security-http/NOTICE | 6 + .../1.5.1-RC4/modules/policy-security-http/pom.xml | 106 + .../AuthenticationConfigurationPolicy.java | 45 + ...AuthenticationConfigurationPolicyProcessor.java | 156 ++ .../confidentiality/ConfidentialityPolicy.java | 132 + .../ConfidentialityPolicyProcessor.java | 157 ++ .../LDAPRealmAuthenticationCallbackHandler.java | 71 + ...AuthenticationImplementationPolicyProvider.java | 193 ++ .../http/LDAPRealmAuthenticationInterceptor.java | 66 + .../http/LDAPRealmAuthenticationPolicy.java | 79 + .../LDAPRealmAuthenticationPolicyProcessor.java | 140 ++ ...APRealmAuthenticationPolicyProviderFactory.java | 69 + ...APRealmAuthenticationServicePolicyProvider.java | 234 ++ .../DefaultLDAPSecurityExtensionPoint.java | 133 + .../http/extensibility/LDAPSecurityHandler.java | 63 + .../LDAPSecurityHandlerExtensionPoint.java | 50 + .../security/http/util/HttpSecurityUtil.java | 124 + ...ca.contribution.processor.StAXArtifactProcessor | 21 + ...extensibility.LDAPSecurityHandlerExtensionPoint | 18 + ...ache.tuscany.sca.provider.PolicyProviderFactory | 19 + ...cy-security-http-validation-messages.properties | 22 + .../modules/policy-security-jsr250/LICENSE | 205 ++ .../modules/policy-security-jsr250/NOTICE | 6 + .../modules/policy-security-jsr250/pom.xml | 83 + .../implementation/java/impl/JSR250Activator.java | 51 + .../introspect/impl/JSR250PolicyProcessor.java | 178 ++ .../org.apache.tuscany.sca.core.ModuleActivator | 18 + .../impl/PolicyProcessorTestCaseFIXME.java | 418 ++++ .../sca/1.5.1-RC4/modules/policy-security/LICENSE | 205 ++ .../sca/1.5.1-RC4/modules/policy-security/NOTICE | 6 + .../sca/1.5.1-RC4/modules/policy-security/pom.xml | 74 + .../apache/tuscany/sca/policy/SecurityUtil.java | 76 + .../basic/BasicAuthenticationPolicy.java | 66 + .../basic/BasicAuthenticationPolicyProcessor.java | 123 + .../BasicAuthenticationPolicyProviderFactory.java | 75 + .../basic/BasicAuthenticationPrincipal.java | 80 + ...icAuthenticationReferencePolicyInterceptor.java | 95 + ...BasicAuthenticationReferencePolicyProvider.java | 89 + ...asicAuthenticationServicePolicyInterceptor.java | 92 + .../BasicAuthenticationServicePolicyProvider.java | 87 + .../authentication/token/TokenPrincipal.java | 74 + .../policy/authorization/AuthorizationPolicy.java | 84 + .../AuthorizationPolicyProcessor.java | 152 ++ ...ityIdentityImplementationPolicyInterceptor.java | 80 + ...curityIdentityImplementationPolicyProvider.java | 88 + .../policy/identity/SecurityIdentityPolicy.java | 76 + .../identity/SecurityIdentityPolicyProcessor.java | 133 + .../SecurityIdentityPolicyProviderFactory.java | 75 + .../SecurityPolicyDefinitionsProvider.java | 85 + ...AuthenticationImplementationPolicyProvider.java | 90 + .../jaas/JaasAuthenticationInterceptor.java | 76 + .../security/jaas/JaasAuthenticationPolicy.java | 73 + .../jaas/JaasAuthenticationPolicyHandler.java | 72 + .../jaas/JaasAuthenticationPolicyProcessor.java | 151 ++ .../JaasAuthenticationPolicyProviderFactory.java | 72 + .../JaasAuthenticationServicePolicyProvider.java | 110 + ...ca.contribution.processor.StAXArtifactProcessor | 27 + ...ache.tuscany.sca.provider.PolicyProviderFactory | 21 + ...che.tuscany.sca.provider.SCADefinitionsProvider | 19 + .../tuscany/sca/policy/security/definitions.xml | 65 + .../sca/policy/security/tuscany_definitions.xml | 30 + .../policy-security-validation-messages.properties | 22 + .../policy/security/PolicyProcessorTestCase.java | 88 + .../policy/security/mock_policy_definitions.xml | 78 + .../1.5.1-RC4/modules/policy-transaction/LICENSE | 205 ++ .../1.5.1-RC4/modules/policy-transaction/NOTICE | 6 + .../1.5.1-RC4/modules/policy-transaction/pom.xml | 127 + .../transaction/IncompatibleIntentException.java | 44 + .../TransactionImplementationPolicyProvider.java | 61 + .../sca/policy/transaction/TransactionIntent.java | 28 + .../policy/transaction/TransactionInterceptor.java | 122 + .../transaction/TransactionManagerHelper.java | 243 ++ .../transaction/TransactionManagerWrapper.java | 90 + .../transaction/TransactionModuleActivator.java | 84 + .../sca/policy/transaction/TransactionPolicy.java | 46 + .../TransactionPolicyDefinitionsProvider.java | 71 + .../policy/transaction/TransactionPolicyImpl.java | 59 + .../transaction/TransactionPolicyProcessor.java | 96 + .../TransactionPolicyProviderFactory.java | 92 + .../TransactionReferencePolicyProvider.java | 61 + .../TransactionServicePolicyProvider.java | 61 + .../policy/transaction/TransactionalAction.java | 31 + ...ca.contribution.processor.StAXArtifactProcessor | 19 + .../org.apache.tuscany.sca.core.ModuleActivator | 18 + ...ache.tuscany.sca.provider.PolicyProviderFactory | 19 + ...che.tuscany.sca.provider.SCADefinitionsProvider | 19 + .../src/main/resources/log4j.properties | 29 + .../tuscany/sca/policy/transaction/definitions.xml | 66 + .../sca/policy/transaction/tuscany_definitions.xml | 54 + .../sca/policy/transaction/PolicyReadTestCase.java | 54 + .../TransactionManagerHelperTestCase.java | 194 ++ .../sca/1.5.1-RC4/modules/policy-xml-ws/LICENSE | 205 ++ .../sca/1.5.1-RC4/modules/policy-xml-ws/NOTICE | 6 + .../sca/1.5.1-RC4/modules/policy-xml-ws/pom.xml | 142 ++ .../sca/policy/xml/ws/WSPolicyProcessor.java | 162 ++ ...ca.contribution.processor.StAXArtifactProcessor | 19 + .../tuscany/sca/policy/xml/TestModelResolver.java | 63 + .../sca/policy/xml/TestPolicyProcessor.java | 74 + .../sca/policy/xml/WSPolicyProcessorTestCase.java | 111 + .../tuscany/sca/policy/xml/test_definitions.xml | 106 + tags/java/sca/1.5.1-RC4/modules/policy-xml/LICENSE | 205 ++ tags/java/sca/1.5.1-RC4/modules/policy-xml/NOTICE | 6 + tags/java/sca/1.5.1-RC4/modules/policy-xml/pom.xml | 76 + .../sca/policy/xml/BindingTypeProcessor.java | 68 + .../policy/xml/ImplementationTypeProcessor.java | 68 + .../policy/xml/IntentAttachPointTypeProcessor.java | 248 ++ .../tuscany/sca/policy/xml/PolicyConstants.java | 75 + .../sca/policy/xml/PolicyIntentProcessor.java | 417 ++++ .../tuscany/sca/policy/xml/PolicySetProcessor.java | 487 ++++ .../sca/policy/xml/ProfileIntentProcessor.java | 45 + .../sca/policy/xml/QualifiedIntentProcessor.java | 45 + .../sca/policy/xml/SimpleIntentProcessor.java | 45 + ...ca.contribution.processor.StAXArtifactProcessor | 24 + .../policy-xml-validation-messages.properties | 44 + .../sca/policy/xml/ReadDocumentTestCase.java | 280 +++ .../sca/policy/xml/TestPolicyProcessor.java | 74 + .../tuscany/sca/policy/xml/test_definitions.xml | 255 ++ tags/java/sca/1.5.1-RC4/modules/policy/LICENSE | 205 ++ tags/java/sca/1.5.1-RC4/modules/policy/NOTICE | 5 + tags/java/sca/1.5.1-RC4/modules/policy/pom.xml | 58 + .../DefaultIntentAttachPointTypeFactory.java | 29 + .../tuscany/sca/policy/DefaultPolicyFactory.java | 30 + .../java/org/apache/tuscany/sca/policy/Intent.java | 116 + .../tuscany/sca/policy/IntentAttachPoint.java | 52 + .../tuscany/sca/policy/IntentAttachPointType.java | 71 + .../sca/policy/IntentAttachPointTypeFactory.java | 43 + .../org/apache/tuscany/sca/policy/IntentMap.java | 89 + .../java/org/apache/tuscany/sca/policy/Policy.java | 33 + .../apache/tuscany/sca/policy/PolicyContext.java | 38 + .../apache/tuscany/sca/policy/PolicyFactory.java | 69 + .../org/apache/tuscany/sca/policy/PolicySet.java | 155 ++ .../tuscany/sca/policy/PolicySetAttachPoint.java | 48 + .../tuscany/sca/policy/PolicySetReference.java | 43 + .../apache/tuscany/sca/policy/ProfileIntent.java | 36 + .../apache/tuscany/sca/policy/QualifiedIntent.java | 41 + .../tuscany/sca/policy/impl/BindingTypeImpl.java | 90 + .../sca/policy/impl/ImplementationTypeImpl.java | 88 + .../impl/IntentAttachPointTypeFactoryImpl.java | 39 + .../apache/tuscany/sca/policy/impl/IntentImpl.java | 151 ++ .../tuscany/sca/policy/impl/IntentMapImpl.java | 73 + .../tuscany/sca/policy/impl/PolicyContextImpl.java | 93 + .../tuscany/sca/policy/impl/PolicyFactoryImpl.java | 60 + .../tuscany/sca/policy/impl/PolicySetImpl.java | 149 ++ .../sca/policy/impl/PolicySetReferenceImpl.java | 48 + .../tuscany/sca/policy/impl/ProfileIntentImpl.java | 39 + .../sca/policy/impl/QualifiedIntentImpl.java | 50 + .../sca/policy/util/PolicyComputationUtils.java | 418 ++++ .../tuscany/sca/policy/util/PolicyHandler.java | 38 + .../util/PolicyHandlerDefinitionsLoader.java | 87 + .../sca/policy/util/PolicyHandlerTuple.java | 91 + .../sca/policy/util/PolicyHandlerUtils.java | 64 + .../sca/policy/util/PolicyValidationException.java | 38 + .../sca/policy/util/PolicyValidationUtils.java | 111 + ...tuscany.sca.policy.IntentAttachPointTypeFactory | 18 + .../org.apache.tuscany.sca.policy.PolicyFactory | 18 + .../tuscany/sca/policy/PolicyFactoryTestCase.java | 50 + tags/java/sca/1.5.1-RC4/modules/pom.xml | 234 ++ .../1.5.1-RC4/modules/sca-api-extension/LICENSE | 202 ++ .../sca/1.5.1-RC4/modules/sca-api-extension/NOTICE | 6 + .../1.5.1-RC4/modules/sca-api-extension/pom.xml | 62 + .../tuscany/sca/api/ComponentContextExtension.java | 55 + tags/java/sca/1.5.1-RC4/modules/sca-api/LICENSE | 243 ++ tags/java/sca/1.5.1-RC4/modules/sca-api/NOTICE | 13 + tags/java/sca/1.5.1-RC4/modules/sca-api/pom.xml | 54 + .../main/java/org/osoa/sca/CallableReference.java | 54 + .../main/java/org/osoa/sca/ComponentContext.java | 100 + .../src/main/java/org/osoa/sca/Constants.java | 34 + .../src/main/java/org/osoa/sca/Conversation.java | 30 + .../org/osoa/sca/ConversationEndedException.java | 56 + .../osoa/sca/NoRegisteredCallbackException.java | 57 + .../src/main/java/org/osoa/sca/RequestContext.java | 55 + .../main/java/org/osoa/sca/ServiceReference.java | 54 + .../java/org/osoa/sca/ServiceRuntimeException.java | 58 + .../org/osoa/sca/ServiceUnavailableException.java | 54 + .../sca/annotations/AllowsPassByReference.java | 28 + .../org/osoa/sca/annotations/Authentication.java | 58 + .../java/org/osoa/sca/annotations/Callback.java | 39 + .../org/osoa/sca/annotations/ComponentName.java | 25 + .../org/osoa/sca/annotations/Confidentiality.java | 58 + .../java/org/osoa/sca/annotations/Constructor.java | 25 + .../java/org/osoa/sca/annotations/Context.java | 28 + .../sca/annotations/ConversationAttributes.java | 46 + .../org/osoa/sca/annotations/ConversationID.java | 25 + .../org/osoa/sca/annotations/Conversational.java | 27 + .../java/org/osoa/sca/annotations/Destroy.java | 25 + .../java/org/osoa/sca/annotations/EagerInit.java | 25 + .../org/osoa/sca/annotations/EndsConversation.java | 24 + .../main/java/org/osoa/sca/annotations/Init.java | 26 + .../java/org/osoa/sca/annotations/Integrity.java | 58 + .../main/java/org/osoa/sca/annotations/Intent.java | 48 + .../main/java/org/osoa/sca/annotations/OneWay.java | 25 + .../java/org/osoa/sca/annotations/PolicySets.java | 35 + .../java/org/osoa/sca/annotations/Property.java | 41 + .../java/org/osoa/sca/annotations/Qualifier.java | 25 + .../java/org/osoa/sca/annotations/Reference.java | 40 + .../java/org/osoa/sca/annotations/Remotable.java | 26 + .../java/org/osoa/sca/annotations/Requires.java | 46 + .../main/java/org/osoa/sca/annotations/Scope.java | 38 + .../java/org/osoa/sca/annotations/Service.java | 37 + .../sca/1.5.1-RC4/modules/tracing-aspectj/LICENSE | 205 ++ .../sca/1.5.1-RC4/modules/tracing-aspectj/NOTICE | 6 + .../1.5.1-RC4/modules/tracing-aspectj/launcher.bat | 22 + .../sca/1.5.1-RC4/modules/tracing-aspectj/pom.xml | 120 + .../apache/tuscany/sca/aspectj/LoggingAspect.java | 105 + .../tuscany/sca/aspectj/SimpleTracingAspect.java | 87 + .../apache/tuscany/sca/aspectj/TimingAspect.java | 60 + .../apache/tuscany/sca/aspectj/TracingAspect.java | 92 + .../src/main/resources/META-INF/aop.xml | 43 + .../tuscany/sca/aspectj/TracingTestCase.java | 41 + .../1.5.1-RC4/modules/web-javascript-dojo/LICENSE | 238 ++ .../1.5.1-RC4/modules/web-javascript-dojo/NOTICE | 11 + .../modules/web-javascript-dojo/build-dojo.xml | 92 + .../1.5.1-RC4/modules/web-javascript-dojo/pom.xml | 125 + .../web/javascript/dojo/DojoModuleActivator.java | 84 + .../web/javascript/dojo/DojoResourceServlet.java | 73 + .../org.apache.tuscany.sca.core.ModuleActivator | 18 + .../src/main/resources/tuscany/AtomService.js | 141 ++ .../sca/1.5.1-RC4/modules/web-javascript/LICENSE | 205 ++ .../sca/1.5.1-RC4/modules/web-javascript/NOTICE | 6 + .../sca/1.5.1-RC4/modules/web-javascript/pom.xml | 67 + .../javascript/ComponentJavaScriptGenerator.java | 59 + ...ComponentJavaScriptGeneratorExtensionPoint.java | 56 + ...ComponentJavaScriptGeneratorExtensionPoint.java | 154 ++ ...efaultJavascriptProxyFactoryExtensionPoint.java | 225 ++ .../sca/web/javascript/JavascriptProxyFactory.java | 69 + .../JavascriptProxyFactoryExtensionPoint.java | 52 + ...ript.ComponentJavaScriptGeneratorExtensionPoint | 18 + ...javascript.JavascriptProxyFactoryExtensionPoint | 18 + .../web-javascript-validation-messages.properties | 21 + .../sca/1.5.1-RC4/modules/workspace-impl/LICENSE | 205 ++ .../sca/1.5.1-RC4/modules/workspace-impl/NOTICE | 6 + .../sca/1.5.1-RC4/modules/workspace-impl/pom.xml | 83 + .../impl/ContributionDependencyBuilderImpl.java | 145 ++ .../impl/ContributionContentProcessor.java | 305 +++ .../processor/impl/ContributionInfoProcessor.java | 240 ++ .../scanner/impl/DirectoryContributionScanner.java | 107 + .../scanner/impl/JarContributionScanner.java | 121 + ...sca.contribution.processor.URLArtifactProcessor | 20 + .../workspace-validation-messages.properties | 22 + .../workspace-validation-messages_it.properties | 21 + .../ContributionDependencyBuilderTestCase.java | 100 + .../1.5.1-RC4/modules/workspace-manager/LICENSE | 205 ++ .../sca/1.5.1-RC4/modules/workspace-manager/NOTICE | 6 + .../1.5.1-RC4/modules/workspace-manager/pom.xml | 88 + .../sca/workspace/manager/WorkspaceManager.java | 106 + .../manager/impl/WorkspaceManagerImpl.java | 190 ++ .../sca/1.5.1-RC4/modules/workspace-xml/LICENSE | 205 ++ .../sca/1.5.1-RC4/modules/workspace-xml/NOTICE | 6 + .../sca/1.5.1-RC4/modules/workspace-xml/pom.xml | 70 + .../workspace/xml/WorkspaceDocumentProcessor.java | 131 + .../sca/workspace/xml/WorkspaceProcessor.java | 167 ++ ...ca.contribution.processor.StAXArtifactProcessor | 19 + .../workspace-xml-validation-messages.properties | 22 + .../ContributionWorkspaceProcessorTestCase.java | 89 + tags/java/sca/1.5.1-RC4/modules/workspace/LICENSE | 205 ++ tags/java/sca/1.5.1-RC4/modules/workspace/NOTICE | 6 + tags/java/sca/1.5.1-RC4/modules/workspace/pom.xml | 64 + .../sca/workspace/DefaultWorkspaceFactory.java | 32 + .../apache/tuscany/sca/workspace/Workspace.java | 39 + .../tuscany/sca/workspace/WorkspaceFactory.java | 36 + .../builder/ContributionDependencyBuilder.java | 42 + .../sca/workspace/impl/WorkspaceFactoryImpl.java | 40 + .../tuscany/sca/workspace/impl/WorkspaceImpl.java | 152 ++ ...g.apache.tuscany.sca.workspace.WorkspaceFactory | 18 + tags/java/sca/1.5.1-RC4/modules/xsd-xml/LICENSE | 205 ++ tags/java/sca/1.5.1-RC4/modules/xsd-xml/NOTICE | 6 + tags/java/sca/1.5.1-RC4/modules/xsd-xml/pom.xml | 82 + .../tuscany/sca/xsd/xml/XMLDocumentHelper.java | 184 ++ .../tuscany/sca/xsd/xml/XSDDocumentProcessor.java | 102 + .../tuscany/sca/xsd/xml/XSDModelResolver.java | 343 +++ ...sca.contribution.processor.URLArtifactProcessor | 19 + ...tuscany.sca.contribution.resolver.ModelResolver | 18 + .../xsd-xml-validation-messages.properties | 23 + .../sca/xsd/xml/XMLDocumentHelperTestCase.java | 51 + .../sca/xsd/xml/XSDDocumentProcessorTestCase.java | 90 + .../xsd-xml/src/test/resources/xsd/greeting.xsd | 29 + .../xsd-xml/src/test/resources/xsd/name.xsd | 29 + tags/java/sca/1.5.1-RC4/modules/xsd/LICENSE | 205 ++ tags/java/sca/1.5.1-RC4/modules/xsd/NOTICE | 6 + tags/java/sca/1.5.1-RC4/modules/xsd/pom.xml | 79 + .../apache/tuscany/sca/xsd/DefaultXSDFactory.java | 30 + .../org/apache/tuscany/sca/xsd/XSDFactory.java | 35 + .../org/apache/tuscany/sca/xsd/XSDefinition.java | 117 + .../tuscany/sca/xsd/impl/XSDFactoryImpl.java | 35 + .../tuscany/sca/xsd/impl/XSDefinitionImpl.java | 232 ++ .../services/org.apache.tuscany.sca.xsd.XSDFactory | 18 + tags/java/sca/1.5.1-RC4/pom.xml | 540 ++++ tags/java/sca/1.5.1-RC4/samples/README | 310 +++ .../samples/binding-echo-extension/README | 74 + .../samples/binding-echo-extension/build.xml | 51 + .../samples/binding-echo-extension/pom.xml | 78 + .../src/main/java/echo/EchoBinding.java | 29 + .../src/main/java/echo/EchoBindingFactory.java | 33 + .../java/echo/impl/EchoBindingFactoryImpl.java | 34 + .../src/main/java/echo/impl/EchoBindingImpl.java | 104 + .../main/java/echo/impl/EchoBindingProcessor.java | 128 + .../java/echo/provider/EchoBindingInvoker.java | 52 + .../echo/provider/EchoBindingPoliciedInvoker.java | 70 + .../echo/provider/EchoBindingProviderFactory.java | 61 + .../provider/EchoReferenceBindingProvider.java | 69 + .../echo/provider/EchoServiceBindingProvider.java | 80 + .../policy/EchoBindingEncryptionPolicy.java | 44 + .../EchoBindingEncryptionPolicyProcessor.java | 36 + .../echo/provider/policy/EchoBindingPolicy.java | 43 + .../policy/EchoBindingPolicyProcessor.java | 78 + .../provider/policy/EncryptionPolicyHandler.java | 47 + .../echo/provider/policy/EncryptionStrategy.java | 26 + .../java/echo/provider/policy/PolicyHandler.java | 29 + .../provider/policy/ReverseEncryptionStrategy.java | 33 + .../main/java/echo/provider/policy/WSPolicy.java | 43 + .../echo/provider/policy/WSPolicyProcessor.java | 54 + .../src/main/java/echo/server/EchoServer.java | 82 + .../main/java/echo/server/EchoServiceListener.java | 52 + .../META-INF/services/echo.EchoBindingFactory | 19 + ...ca.contribution.processor.StAXArtifactProcessor | 21 + ...any.sca.contribution.processor.ValidationSchema | 19 + ...che.tuscany.sca.provider.BindingProviderFactory | 19 + .../src/main/resources/sample-binding-echo.xsd | 37 + .../src/test/java/echo/Echo.java | 29 + .../src/test/java/echo/EchoComponentImpl.java | 45 + .../src/test/java/echo/EchoReferenceTestCase.java | 49 + .../src/test/java/echo/EchoServiceTestCase.java | 49 + .../src/test/resources/EchoBinding.composite | 37 + .../src/test/resources/definitions.xml | 39 + .../java/sca/1.5.1-RC4/samples/binding-echo/README | 103 + .../samples/binding-echo/binding-echo.png | Bin 0 -> 7846 bytes .../samples/binding-echo/binding-echo.svg | 174 ++ .../sca/1.5.1-RC4/samples/binding-echo/build.xml | 75 + .../sca/1.5.1-RC4/samples/binding-echo/pom.xml | 71 + .../binding-echo/src/main/java/echo/Echo.java | 29 + .../src/main/java/echo/EchoBindingClient.java | 51 + .../src/main/java/echo/EchoComponentImpl.java | 45 + .../src/main/resources/EchoBinding.composite | 37 + .../src/test/java/echo/EchoBindingTestCase.java | 56 + .../samples/binding-notification-broker/README | 112 + .../binding-notification-broker.png | Bin 0 -> 36945 bytes .../samples/binding-notification-broker/build.xml | 75 + .../samples/binding-notification-broker/pom.xml | 98 + .../java/notification/broker/TestCaseProducer.java | 24 + .../java/notification/broker/TrafficAdvisory.java | 30 + .../broker/TrafficAdvisoryConsumer.java | 41 + .../broker/TrafficAdvisoryProducer.java | 36 + .../notification/broker/TrafficAdvisoryServer.java | 72 + .../TrafficAdvisoryNotification.componentType | 34 + .../TrafficAdvisoryNotification.composite | 61 + .../src/main/resources/wsdl/TrafficAdvisory.wsdl | 50 + .../samples/binding-notification-consumer/README | 110 + .../binding-notification-consumer.png | Bin 0 -> 27279 bytes .../binding-notification-consumer/build.xml | 75 + .../samples/binding-notification-consumer/pom.xml | 116 + .../notification/consumer/TrafficAdvisory.java | 30 + .../consumer/TrafficAdvisoryConsumer.java | 41 + .../consumer/TrafficAdvisoryServer.java | 48 + .../TrafficAdvisoryNotification.componentType | 34 + .../TrafficAdvisoryNotification.composite | 53 + .../src/main/resources/wsdl/TrafficAdvisory.wsdl | 50 + .../consumer/TrafficAdvisoryTestCase.java | 61 + .../samples/binding-notification-producer/README | 134 + .../binding-notification-producer.png | Bin 0 -> 21631 bytes .../binding-notification-producer/build.xml | 75 + .../samples/binding-notification-producer/pom.xml | 127 + .../notification/producer/TestCaseProducer.java | 24 + .../notification/producer/TrafficAdvisory.java | 30 + .../producer/TrafficAdvisoryProducer.java | 36 + .../producer/TrafficAdvisoryServer.java | 57 + .../TrafficAdvisoryNotification.componentType | 34 + .../TrafficAdvisoryNotification.composite | 44 + .../src/main/resources/wsdl/TrafficAdvisory.wsdl | 50 + .../producer/TrafficAdvisoryTestCase.java | 78 + .../samples/calculator-corba-reference/README | 83 + .../samples/calculator-corba-reference/pom.xml | 74 + .../src/main/java/calculator/AddService.java | 28 + .../src/main/java/calculator/CalculatorClient.java | 44 + .../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/CalculatorCORBAReference.composite | 42 + .../CalculatorCORBAReferenceTestCase.java | 82 + .../java/calculator/CalculatorCORBAServant.java | 44 + .../calculator/idl/CalculatorCORBAService.java | 32 + .../idl/CalculatorCORBAServiceOperations.java | 36 + .../idl/_CalculatorCORBAServiceImplBase.java | 120 + .../src/test/resources/CalculatorCORBA.idl | 33 + .../samples/calculator-corba-service/README | 82 + .../samples/calculator-corba-service/pom.xml | 74 + .../src/main/java/calculator/AddService.java | 28 + .../src/main/java/calculator/AddServiceImpl.java | 30 + .../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/CalculatorCORBAServer.composite | 53 + .../calculator/CalculatorCORBAServerTestCase.java | 64 + .../calculator/idl/CalculatorCORBAService.java | 32 + .../idl/CalculatorCORBAServiceHelper.java | 104 + .../idl/CalculatorCORBAServiceHolder.java | 57 + .../idl/CalculatorCORBAServiceOperations.java | 36 + .../idl/_CalculatorCORBAServiceStub.java | 143 ++ .../src/test/resources/CalculatorCORBA.idl | 33 + .../samples/calculator-distributed/README | 438 ++++ .../samples/calculator-distributed/build.xml | 101 + .../calculator-distributed.png | Bin 0 -> 76839 bytes .../calculator-distributed.svg | 383 +++ .../samples/calculator-distributed/cloud.composite | 26 + .../calculator-distributed/domain.composite | 26 + .../samples/calculator-distributed/pom.xml | 119 + .../src/main/java/calculator/AddService.java | 31 + .../src/main/java/calculator/AddServiceImpl.java | 31 + .../main/java/calculator/CalculatorService.java | 35 + .../java/calculator/CalculatorServiceImpl.java | 74 + .../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 | 31 + .../main/java/calculator/SubtractServiceImpl.java | 31 + .../src/main/java/node/LaunchCalculatorNodeA.java | 67 + .../src/main/java/node/LaunchCalculatorNodeB.java | 28 + .../src/main/java/node/LaunchCalculatorNodeC.java | 28 + .../src/main/java/node/LaunchDomain.java | 33 + .../src/main/resources/cloud/NodeA.composite | 33 + .../src/main/resources/cloud/NodeB.composite | 33 + .../src/main/resources/cloud/NodeC.composite | 33 + .../src/main/resources/nodeA/Calculator.composite | 41 + .../resources/nodeA/META-INF/sca-contribution.xml | 23 + .../src/main/resources/nodeB/Calculator.composite | 29 + .../resources/nodeB/META-INF/sca-contribution.xml | 23 + .../src/main/resources/nodeC/Calculator.composite | 29 + .../resources/nodeC/META-INF/sca-contribution.xml | 23 + .../calculator/CalculatorDistributedTestCase.java | 92 + .../samples/calculator-distributed/workspace.xml | 25 + .../calculator-implementation-policies/README | 266 ++ .../calculator-implementation-policies/build.xml | 72 + .../calculator.png | Bin 0 -> 20552 bytes .../calculator.svg | 329 +++ .../calculator-implementation-policies/pom.xml | 78 + .../src/main/java/calculator/AddService.java | 28 + .../src/main/java/calculator/AddServiceImpl.java | 35 + .../src/main/java/calculator/CalculatorClient.java | 66 + .../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 + .../security/CalculatorCallbackHandler.java | 50 + .../java/calculator/security/JaasLoginModule.java | 178 ++ .../java/calculator/security/UserPrincipal.java | 66 + .../src/main/resources/Calculator.composite | 61 + .../src/main/resources/CalculatorJass.config | 3 + .../resources/CalculatorLogMessages.properties | 18 + .../src/main/resources/definitions.xml | 40 + .../test/java/calculator/CalculatorTestCase.java | 74 + .../sca/1.5.1-RC4/samples/calculator-lean/README | 87 + .../samples/calculator-lean/calculator.png | Bin 0 -> 20552 bytes .../samples/calculator-lean/calculator.svg | 329 +++ .../sca/1.5.1-RC4/samples/calculator-lean/pom.xml | 71 + .../src/main/java/calculator/AddService.java | 28 + .../src/main/java/calculator/AddServiceImpl.java | 35 + .../src/main/java/calculator/CalculatorClient.java | 51 + .../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 + .../src/main/resources/CalculatorTest.composite | 32 + .../test/java/calculator/CalculatorTestCase.java | 62 + .../samples/calculator-rmi-reference/README | 138 ++ .../samples/calculator-rmi-reference/build.xml | 73 + .../calculator-rmi-reference.png | Bin 0 -> 23615 bytes .../calculator-rmi-reference.svg | 412 ++++ .../samples/calculator-rmi-reference/pom.xml | 68 + .../src/main/java/calculator/AddService.java | 28 + .../src/main/java/calculator/CalculatorClient.java | 44 + .../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 | 60 + .../java/calculator/CalculatorRMIServiceImpl.java | 52 + .../samples/calculator-rmi-service/README | 147 ++ .../samples/calculator-rmi-service/build.xml | 72 + .../calculator-rmi-service.png | Bin 0 -> 20814 bytes .../calculator-rmi-service.svg | 330 +++ .../samples/calculator-rmi-service/pom.xml | 68 + .../src/main/java/calculator/AddService.java | 28 + .../src/main/java/calculator/AddServiceImpl.java | 30 + .../src/main/java/calculator/CalculatorClient.java | 40 + .../src/main/java/calculator/CalculatorServer.java | 39 + .../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 + .../calculator/CalculatorRMIServerTestCase.java | 53 + .../sca/1.5.1-RC4/samples/calculator-script/README | 105 + .../1.5.1-RC4/samples/calculator-script/build.xml | 72 + .../calculator-script/calculator-script.png | Bin 0 -> 23064 bytes .../calculator-script/calculator-script.svg | 334 +++ .../1.5.1-RC4/samples/calculator-script/pom.xml | 78 + .../src/main/java/calculator/AddService.java | 28 + .../src/main/java/calculator/CalculatorClient.java | 43 + .../main/java/calculator/CalculatorService.java | 34 + .../java/calculator/CalculatorServiceImpl.java | 69 + .../src/main/java/calculator/DivideService.java | 28 + .../src/main/java/calculator/MultiplyService.java | 28 + .../src/main/java/calculator/SubtractService.java | 28 + .../src/main/resources/Calculator.composite | 50 + .../main/resources/calculator/AddServiceImpl.js | 22 + .../resources/calculator/DivideServiceImpl.groovy | 22 + .../resources/calculator/MultiplyServiceImpl.py | 20 + .../resources/calculator/SubtractServiceImpl.rb | 21 + .../test/java/calculator/CalculatorTestCase.java | 52 + .../sca/1.5.1-RC4/samples/calculator-webapp/README | 118 + .../samples/calculator-webapp/calculator-web.png | Bin 0 -> 22916 bytes .../samples/calculator-webapp/calculator-web.svg | 358 +++ .../1.5.1-RC4/samples/calculator-webapp/pom.xml | 95 + .../src/main/java/calculator/AddService.java | 28 + .../src/main/java/calculator/AddServiceImpl.java | 30 + .../src/main/java/calculator/CalculatorClient.java | 47 + .../main/java/calculator/CalculatorService.java | 35 + .../java/calculator/CalculatorServiceImpl.java | 69 + .../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 + .../src/main/webapp/META-INF/sca-contribution.xml | 23 + .../src/main/webapp/WEB-INF/geronimo-web.xml | 32 + .../src/main/webapp/WEB-INF/web.xml | 41 + .../calculator-webapp/src/main/webapp/calc.jsp | 47 + .../samples/calculator-ws-secure-webapp/README | 116 + .../calculator-ws-secure-webapp/calculator-web.png | Bin 0 -> 25757 bytes .../calculator-ws-secure-webapp/calculator-web.svg | 455 ++++ .../samples/calculator-ws-secure-webapp/pom.xml | 101 + .../src/main/java/calculator/AddService.java | 31 + .../src/main/java/calculator/AddServiceImpl.java | 35 + .../src/main/java/calculator/CalculatorClient.java | 47 + .../main/java/calculator/CalculatorService.java | 35 + .../java/calculator/CalculatorServiceImpl.java | 69 + .../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 | 31 + .../main/java/calculator/SubtractServiceImpl.java | 30 + .../calculator/security/ClientPWCBHandler.java | 58 + .../calculator/security/ServerPWCBHandler.java | 59 + .../src/main/resources/Calculator.composite | 67 + ...rg.apache.tuscany.sca.policy.util.PolicyHandler | 21 + .../src/main/resources/calculatorKeys.jks | Bin 0 -> 2706 bytes .../src/main/resources/definitions.xml | 198 ++ .../src/main/resources/security.properties | 20 + .../src/main/webapp/META-INF/sca-contribution.xml | 23 + .../src/main/webapp/WEB-INF/geronimo-web.xml | 40 + .../src/main/webapp/WEB-INF/web.xml | 41 + .../src/main/webapp/calc.jsp | 50 + .../1.5.1-RC4/samples/calculator-ws-webapp/README | 108 + .../calculator-ws-webapp/calculator-web.png | Bin 0 -> 25757 bytes .../calculator-ws-webapp/calculator-web.svg | 455 ++++ .../1.5.1-RC4/samples/calculator-ws-webapp/pom.xml | 103 + .../src/main/java/calculator/AddService.java | 31 + .../src/main/java/calculator/AddServiceImpl.java | 34 + .../main/java/calculator/CalculatorService.java | 35 + .../java/calculator/CalculatorServiceImpl.java | 69 + .../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 | 56 + .../src/main/webapp/META-INF/sca-contribution.xml | 23 + .../src/main/webapp/WEB-INF/geronimo-web.xml | 40 + .../src/main/webapp/WEB-INF/web.xml | 41 + .../calculator-ws-webapp/src/main/webapp/calc.jsp | 50 + tags/java/sca/1.5.1-RC4/samples/calculator/README | 97 + .../sca/1.5.1-RC4/samples/calculator/build.xml | 72 + .../1.5.1-RC4/samples/calculator/calculator.png | Bin 0 -> 20552 bytes .../1.5.1-RC4/samples/calculator/calculator.svg | 329 +++ tags/java/sca/1.5.1-RC4/samples/calculator/pom.xml | 71 + .../src/main/java/calculator/AddService.java | 28 + .../src/main/java/calculator/AddServiceImpl.java | 35 + .../src/main/java/calculator/CalculatorClient.java | 48 + .../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 | 49 + .../test/java/calculator/CalculatorTestCase.java | 56 + .../1.5.1-RC4/samples/callback-ws-client/README | 311 +++ .../1.5.1-RC4/samples/callback-ws-client/build.xml | 73 + .../callback-ws-client/callback-ws-client.png | Bin 0 -> 8812 bytes .../callback-ws-client/callback-ws-client.svg | 204 ++ .../1.5.1-RC4/samples/callback-ws-client/pom.xml | 86 + .../src/main/java/myapp/MyClient.java | 29 + .../src/main/java/myapp/MyClientImpl.java | 64 + .../src/main/java/myserver/MyService.java | 34 + .../src/main/java/myserver/MyServiceCallback.java | 30 + .../main/resources/META-INF/sca-contribution.xml | 22 + .../src/main/resources/myapp.composite | 36 + .../test/java/myapp/CallbackClientTestCase.java | 53 + .../1.5.1-RC4/samples/callback-ws-service/README | 227 ++ .../samples/callback-ws-service/build.xml | 73 + .../callback-ws-service/callback-ws-service.png | Bin 0 -> 8949 bytes .../callback-ws-service/callback-ws-service.svg | 200 ++ .../1.5.1-RC4/samples/callback-ws-service/pom.xml | 79 + .../src/main/java/myserver/CallbackServer.java | 48 + .../src/main/java/myserver/MyService.java | 34 + .../src/main/java/myserver/MyServiceCallback.java | 30 + .../src/main/java/myserver/MyServiceImpl.java | 56 + .../main/resources/META-INF/sca-contribution.xml | 24 + .../src/main/resources/callbackws.composite | 35 + .../test/java/myserver/CallbackServerTestCase.java | 52 + .../sca/1.5.1-RC4/samples/callbacks-jms/README | 73 + .../sca/1.5.1-RC4/samples/callbacks-jms/build.xml | 72 + .../sca/1.5.1-RC4/samples/callbacks-jms/pom.xml | 103 + .../src/main/java/callbacks/CallbackJMSClient.java | 44 + .../src/main/java/callbacks/OrderCallback.java | 30 + .../src/main/java/callbacks/OrderRequest.java | 24 + .../src/main/java/callbacks/OrderResponse.java | 24 + .../src/main/java/callbacks/OrderService.java | 33 + .../main/java/callbacks/OrderServiceClient.java | 59 + .../src/main/java/callbacks/OrderServiceImpl.java | 51 + .../src/main/resources/callbacks.composite | 44 + .../src/main/resources/jndi.properties | 30 + .../src/test/java/callbacks/CallbacksTestCase.java | 64 + tags/java/sca/1.5.1-RC4/samples/chat-webapp/README | 83 + .../1.5.1-RC4/samples/chat-webapp/chat-webapp.png | Bin 0 -> 6552 bytes .../1.5.1-RC4/samples/chat-webapp/chat-webapp.svg | 187 ++ .../java/sca/1.5.1-RC4/samples/chat-webapp/pom.xml | 97 + .../src/main/java/sample/ChatService.java | 26 + .../src/main/java/sample/ChatServiceImpl.java | 36 + .../chat-webapp/src/main/resources/chat.composite | 40 + .../src/main/webapp/META-INF/sca-contribution.xml | 23 + .../src/main/webapp/WEB-INF/geronimo-web.xml | 40 + .../chat-webapp/src/main/webapp/WEB-INF/web.xml | 37 + .../samples/chat-webapp/src/main/webapp/chat.html | 70 + .../1.5.1-RC4/samples/customer-dojo-webapp/README | 104 + .../samples/customer-dojo-webapp/build-dojo.xml | 92 + .../samples/customer-dojo-webapp/build.xml | 70 + .../customer-dojo-webapp/customer-dojo-jsonrpc.png | Bin 0 -> 9947 bytes .../customer-dojo-webapp/customer-dojo-jsonrpc.svg | 177 ++ .../samples/customer-dojo-webapp/customer.sql | 33 + .../1.5.1-RC4/samples/customer-dojo-webapp/pom.xml | 225 ++ .../src/main/java/customer/Customer.java | 93 + .../src/main/java/customer/CustomerCollection.java | 26 + .../main/java/customer/CustomerCollectionImpl.java | 101 + .../src/main/java/customer/CustomerService.java | 31 + .../main/java/customer/CustomerServiceImpl.java | 117 + .../src/main/java/launch/Launch.java | 34 + .../src/main/resources/META-INF/orm.xml | 51 + .../src/main/resources/META-INF/persistence.xml | 40 + .../main/resources/META-INF/sca-contribution.xml | 25 + .../src/main/resources/customer.composite | 37 + .../src/main/webapp/META-INF/sca-contribution.xml | 23 + .../src/main/webapp/WEB-INF/geronimo-web.xml | 40 + .../src/main/webapp/WEB-INF/web.xml | 41 + .../src/main/webapp/customer.jsp | 80 + .../sca/1.5.1-RC4/samples/customer-dojo/README | 104 + .../1.5.1-RC4/samples/customer-dojo/build-dojo.xml | 92 + .../sca/1.5.1-RC4/samples/customer-dojo/build.xml | 70 + .../customer-dojo/customer-dojo-jsonrpc.png | Bin 0 -> 9947 bytes .../customer-dojo/customer-dojo-jsonrpc.svg | 177 ++ .../1.5.1-RC4/samples/customer-dojo/customer.sql | 33 + .../sca/1.5.1-RC4/samples/customer-dojo/pom.xml | 244 ++ .../src/main/java/customer/Customer.java | 93 + .../src/main/java/customer/CustomerCollection.java | 26 + .../main/java/customer/CustomerCollectionImpl.java | 101 + .../src/main/java/customer/CustomerService.java | 31 + .../main/java/customer/CustomerServiceImpl.java | 117 + .../customer-dojo/src/main/java/launch/Launch.java | 35 + .../src/main/resources/META-INF/orm.xml | 51 + .../src/main/resources/META-INF/persistence.xml | 40 + .../main/resources/META-INF/sca-contribution.xml | 25 + .../src/main/resources/content/customer.html | 77 + .../src/main/resources/customer.composite | 44 + .../sca/1.5.1-RC4/samples/databinding-echo/README | 143 ++ .../1.5.1-RC4/samples/databinding-echo/build.xml | 75 + .../samples/databinding-echo/databinding-echo.png | Bin 0 -> 23907 bytes .../samples/databinding-echo/databinding-echo.svg | 408 +++ .../sca/1.5.1-RC4/samples/databinding-echo/pom.xml | 82 + .../src/main/java/dbecho/ComponentAImpl.java | 74 + .../src/main/java/dbecho/ComponentBImpl.java | 59 + .../src/main/java/dbecho/Echo.java | 32 + .../main/java/dbecho/EchoDataBindingClient.java | 45 + .../src/main/java/dbecho/Interface1.java | 32 + .../src/main/java/dbecho/Interface2.java | 36 + .../src/main/resources/EchoDataBinding.composite | 58 + .../src/main/resources/wsdl/echo.wsdl | 63 + .../test/java/dbecho/EchoDataBindingTestCase.java | 49 + .../sca/1.5.1-RC4/samples/domain-management/README | 170 ++ .../1.5.1-RC4/samples/domain-management/pom.xml | 240 ++ .../java/manager/DistributeAndRunComponents.java | 329 +++ .../main/java/manager/DistributeComponents.java | 289 +++ .../src/main/java/manager/ListComponents.java | 158 ++ .../src/main/java/manager/ListDependencies.java | 108 + .../src/main/java/manager/ListDeployables.java | 73 + .../src/main/java/manager/WireComponents.java | 218 ++ .../src/test/java/services/Cart.java | 28 + .../src/test/java/services/Item.java | 66 + .../test/java/services/ShoppingCartClientImpl.java | 57 + .../src/test/java/services/ShoppingCartImpl.java | 100 + .../src/test/resources/assembly/assets.xml | 38 + .../src/test/resources/assembly/client.xml | 34 + .../src/test/resources/assembly/store.xml | 34 + .../resources/assets/META-INF/sca-contribution.xml | 22 + .../resources/client/META-INF/sca-contribution.xml | 24 + .../src/test/resources/client/client.composite | 35 + .../resources/store/META-INF/sca-contribution.xml | 24 + .../src/test/resources/store/store.composite | 32 + .../samples/feed-aggregator-webapp/README | 55 + .../feed-aggregator-webapp.png | Bin 0 -> 23443 bytes .../feed-aggregator-webapp.svg | 382 +++ .../samples/feed-aggregator-webapp/pom.xml | 108 + .../src/main/java/feed/AggregatorImpl.java | 178 ++ .../src/main/java/feed/Sort.java | 38 + .../src/main/java/feed/SortImpl.java | 57 + .../src/main/resources/FeedAggregator.composite | 60 + .../src/main/webapp/META-INF/sca-contribution.xml | 25 + .../src/main/webapp/WEB-INF/geronimo-web.xml | 40 + .../src/main/webapp/WEB-INF/web.xml | 41 + .../src/main/webapp/index.html | 32 + .../sca/1.5.1-RC4/samples/feed-aggregator/README | 110 + .../1.5.1-RC4/samples/feed-aggregator/build.xml | 72 + .../samples/feed-aggregator/feed-aggregator.png | Bin 0 -> 17429 bytes .../samples/feed-aggregator/feed-aggregator.svg | 364 +++ .../sca/1.5.1-RC4/samples/feed-aggregator/pom.xml | 84 + .../src/main/java/feed/AggregatorImpl.java | 199 ++ .../feed-aggregator/src/main/java/feed/Sort.java | 38 + .../src/main/java/feed/SortImpl.java | 57 + .../src/main/java/launch/LaunchFeedServer.java | 47 + .../src/main/resources/FeedAggregator.composite | 61 + .../src/test/java/feed/FeedAggregatorTestCase.java | 358 +++ .../sca/1.5.1-RC4/samples/helloworld-bpel/README | 151 ++ .../1.5.1-RC4/samples/helloworld-bpel/build.xml | 95 + .../samples/helloworld-bpel/helloworld-bpel.png | Bin 0 -> 8897 bytes .../samples/helloworld-bpel/helloworld-bpel.svg | 179 ++ .../sca/1.5.1-RC4/samples/helloworld-bpel/pom.xml | 209 ++ .../src/main/java/helloworld/BPELClient.java | 43 + .../src/main/resources/helloworld.bpel | 66 + .../src/main/resources/helloworld.composite | 29 + .../src/main/resources/helloworld.wsdl | 82 + .../src/main/resources/log4j.properties | 35 + .../java/helloworld/BPELHelloWorldTestCase.java | 59 + .../samples/helloworld-dojo-webapp/README | 104 + .../samples/helloworld-dojo-webapp/build-dojo.xml | 92 + .../samples/helloworld-dojo-webapp/build.xml | 70 + .../helloworld-dojo-webapp/helloworld-jsonrpc.png | Bin 0 -> 9947 bytes .../helloworld-dojo-webapp/helloworld-jsonrpc.svg | 177 ++ .../samples/helloworld-dojo-webapp/pom.xml | 163 ++ .../java/helloworldjsonrpc/HelloWorldService.java | 28 + .../helloworldjsonrpc/HelloWorldServiceImpl.java | 38 + .../src/main/resources/jsonrpc.composite | 37 + .../src/main/webapp/HelloWorldJSONRPC.html | 98 + .../src/main/webapp/META-INF/sca-contribution.xml | 25 + .../src/main/webapp/WEB-INF/geronimo-web.xml | 40 + .../src/main/webapp/WEB-INF/web.xml | 41 + .../src/main/webapp/style.css | 22 + .../1.5.1-RC4/samples/helloworld-jms-webapp/README | 130 + .../samples/helloworld-jms-webapp/pom.xml | 82 + .../src/main/java/helloworld/HelloWorldClient.java | 37 + .../main/java/helloworld/HelloWorldService.java | 29 + .../java/helloworld/HelloWorldServiceImpl.java | 34 + .../src/main/webapp/META-INF/context.xml | 29 + .../META-INF/sca-deployables/HelloWorld.composite | 39 + .../src/main/webapp/WEB-INF/geronimo-web.xml | 40 + .../src/main/webapp/WEB-INF/web.xml | 66 + .../src/main/webapp/hello.jsp | 44 + .../samples/helloworld-jsonrpc-webapp/README | 90 + .../helloworld-jsonrpc.png | Bin 0 -> 9947 bytes .../helloworld-jsonrpc.svg | 177 ++ .../samples/helloworld-jsonrpc-webapp/pom.xml | 103 + .../java/helloworldjsonrpc/HelloWorldService.java | 28 + .../helloworldjsonrpc/HelloWorldServiceImpl.java | 36 + .../src/main/resources/jsonrpc.composite | 37 + .../src/main/webapp/HelloWorldJSONRPC.html | 75 + .../src/main/webapp/META-INF/sca-contribution.xml | 25 + .../src/main/webapp/WEB-INF/geronimo-web.xml | 40 + .../src/main/webapp/WEB-INF/web.xml | 41 + .../src/main/webapp/style.css | 22 + .../samples/helloworld-reference-jms/README | 114 + .../samples/helloworld-reference-jms/build.xml | 72 + .../helloworld-reference.png | Bin 0 -> 12973 bytes .../helloworld-reference.svg | 144 ++ .../samples/helloworld-reference-jms/pom.xml | 103 + .../src/main/java/helloworld/HelloWorldImpl.java | 33 + .../main/java/helloworld/HelloWorldJmsClient.java | 41 + .../main/java/helloworld/HelloWorldService.java | 29 + .../helloworld/HelloWorldServiceComponent.java | 42 + .../resources/helloworldjmsreference.composite | 40 + .../main/resources/helloworldjmsservice.composite | 39 + .../src/main/resources/logging.properties | 30 + .../src/main/resources/wsdl/helloworld.wsdl | 92 + .../helloworld/HelloWorldJmsClientTestCase.java | 80 + .../samples/helloworld-service-jms/README | 101 + .../samples/helloworld-service-jms/build.xml | 72 + .../helloworld-service-jms/helloworld-service.png | Bin 0 -> 9455 bytes .../helloworld-service-jms/helloworld-service.svg | 139 ++ .../samples/helloworld-service-jms/pom.xml | 96 + .../src/main/java/helloworld/HelloWorldImpl.java | 34 + .../src/main/java/helloworld/HelloWorldServer.java | 58 + .../main/java/helloworld/HelloWorldService.java | 31 + .../src/main/resources/definitions.xml | 66 + .../main/resources/helloworldjmsservice.composite | 40 + .../src/main/resources/wsdl/helloworld.wsdl | 92 + .../helloworld/HelloWorldJmsServerTestCaseOff.java | 60 + .../samples/helloworld-ws-reference-jms/README | 127 + .../samples/helloworld-ws-reference-jms/build.xml | 72 + .../helloworld-ws-reference.png | Bin 0 -> 7549 bytes .../helloworld-ws-reference.svg | 150 ++ .../samples/helloworld-ws-reference-jms/pom.xml | 92 + .../src/main/java/helloworld/HelloWorldImpl.java | 33 + .../main/java/helloworld/HelloWorldJmsClient.java | 38 + .../main/java/helloworld/HelloWorldService.java | 29 + .../helloworld/HelloWorldServiceComponent.java | 42 + .../src/main/resources/helloworldwsjms.composite | 34 + .../main/resources/helloworldwsjmsclient.composite | 45 + .../src/main/resources/logging.properties | 30 + .../src/main/resources/wsdl/helloworld.wsdl | 92 + .../helloworld/HelloWorldJmsClientTestCase.java | 84 + .../samples/helloworld-ws-reference-lean/README | 178 ++ .../helloworld-ws-reference.png | Bin 0 -> 7549 bytes .../helloworld-ws-reference.svg | 150 ++ .../samples/helloworld-ws-reference-lean/pom.xml | 79 + .../src/main/java/helloworld/HelloWorldClient.java | 47 + .../main/java/helloworld/HelloWorldClient2.java | 53 + .../main/java/helloworld/HelloWorldClient3.java | 47 + .../main/java/helloworld/HelloWorldClient4.java | 52 + .../main/java/helloworld/HelloWorldClient5.java | 47 + .../main/java/helloworld/HelloWorldService.java | 29 + .../main/resources/helloworldwsclient.composite | 33 + .../main/resources/helloworldwsclient2.composite | 33 + .../main/resources/helloworldwsclient3.composite | 33 + .../main/resources/helloworldwsclient4.composite | 34 + .../main/resources/helloworldwsclient5.composite | 33 + .../src/main/resources/logging.properties | 30 + .../src/main/resources/wsdl/helloworld.wsdl | 92 + .../java/helloworld/HelloWorldClientTestCase.java | 58 + .../test/java/helloworld/HelloWorldTestServer.java | 55 + .../samples/helloworld-ws-reference-secure/README | 176 ++ .../helloworld-ws-reference-secure/build.xml | 72 + .../helloworld-ws-reference-secure.png | Bin 0 -> 7549 bytes .../helloworld-ws-reference-secure.svg | 150 ++ .../samples/helloworld-ws-reference-secure/pom.xml | 85 + .../main/java/helloworld/ClientPWCBHandler.java | 45 + .../src/main/java/helloworld/HelloWorldClient.java | 42 + .../main/java/helloworld/HelloWorldService.java | 29 + .../helloworld/HelloWorldServiceComponent.java | 42 + ...rg.apache.tuscany.sca.policy.util.PolicyHandler | 21 + .../src/main/resources/definitions.xml | 203 ++ .../src/main/resources/helloworldKeys.jks | Bin 0 -> 1354 bytes .../main/resources/helloworldwsclient.composite | 58 + .../src/main/resources/logging.properties | 30 + .../src/main/resources/wsdl/helloworld.wsdl | 85 + .../java/helloworld/HelloWorldClientTestCase.java | 74 + .../test/java/helloworld/HelloWorldTestServer.java | 55 + .../samples/helloworld-ws-reference/README | 178 ++ .../samples/helloworld-ws-reference/build.xml | 72 + .../helloworld-ws-reference.png | Bin 0 -> 7549 bytes .../helloworld-ws-reference.svg | 150 ++ .../samples/helloworld-ws-reference/pom.xml | 79 + .../src/main/java/helloworld/HelloWorldClient.java | 38 + .../main/java/helloworld/HelloWorldService.java | 29 + .../helloworld/HelloWorldServiceComponent.java | 42 + .../main/resources/helloworldwsclient.composite | 45 + .../src/main/resources/logging.properties | 30 + .../src/main/resources/wsdl/helloworld.wsdl | 92 + .../java/helloworld/HelloWorldClientTestCase.java | 74 + .../test/java/helloworld/HelloWorldTestServer.java | 55 + .../samples/helloworld-ws-sdo-webapp/README | 92 + .../samples/helloworld-ws-sdo-webapp/build.xml | 99 + .../helloworld-ws-sdo-webapp.png | Bin 0 -> 12242 bytes .../helloworld-ws-sdo-webapp.svg | 221 ++ .../samples/helloworld-ws-sdo-webapp/pom.xml | 211 ++ .../src/main/java/helloworld/HelloWorld.java | 44 + .../main/java/helloworld/HelloWorldComponent.java | 40 + .../src/main/java/helloworld/HelloWorldImpl.java | 48 + .../src/main/resources/helloworldws.composite | 43 + .../src/main/resources/wsdl/helloworld.wsdl | 111 + .../src/main/resources/wsdl/helloworld.xsd | 30 + .../src/main/webapp/HelloWorld.jsp | 48 + .../src/main/webapp/META-INF/sca-contribution.xml | 23 + .../src/main/webapp/WEB-INF/geronimo-web.xml | 48 + .../src/main/webapp/WEB-INF/web.xml | 46 + .../sca/1.5.1-RC4/samples/helloworld-ws-sdo/README | 214 ++ .../1.5.1-RC4/samples/helloworld-ws-sdo/build.xml | 101 + .../helloworld-ws-sdo/helloworld-ws-sdo.png | Bin 0 -> 7549 bytes .../helloworld-ws-sdo/helloworld-ws-sdo.svg | 150 ++ .../1.5.1-RC4/samples/helloworld-ws-sdo/pom.xml | 150 ++ .../src/main/java/helloworld/HelloWorldClient.java | 44 + .../src/main/java/helloworld/HelloWorldImpl.java | 33 + .../src/main/java/helloworld/HelloWorldServer.java | 46 + .../main/java/helloworld/HelloWorldService.java | 29 + .../helloworld/HelloWorldServiceComponent.java | 42 + .../src/main/resources/helloworldws.composite | 32 + .../main/resources/helloworldwsclient.composite | 33 + .../src/main/resources/logging.properties | 30 + .../src/main/resources/wsdl/helloworld.wsdl | 88 + .../java/helloworld/HelloWorldClientTestCase.java | 69 + .../test/java/helloworld/HelloWorldTestServer.java | 55 + .../samples/helloworld-ws-service-jms/README | 119 + .../samples/helloworld-ws-service-jms/build.xml | 72 + .../helloworld-ws-service.png | Bin 0 -> 6531 bytes .../helloworld-ws-service.svg | 150 ++ .../samples/helloworld-ws-service-jms/pom.xml | 92 + .../src/main/java/helloworld/HelloWorldImpl.java | 33 + .../src/main/java/helloworld/HelloWorldServer.java | 60 + .../main/java/helloworld/HelloWorldService.java | 31 + .../src/main/resources/definitions.xml | 66 + .../src/main/resources/helloworldwsjms.composite | 36 + .../main/resources/helloworldwsjmspolicy.composite | 34 + .../src/main/resources/wsdl/helloworld.wsdl | 92 + .../HelloWorldJmsPolicyServerTestCase.java | 68 + .../helloworld/HelloWorldJmsServerTestCase.java | 84 + .../samples/helloworld-ws-service-secure/README | 152 ++ .../samples/helloworld-ws-service-secure/build.xml | 72 + .../helloworld-ws-service-secure.png | Bin 0 -> 158 bytes .../helloworld-ws-service-secure.svg | 149 ++ .../samples/helloworld-ws-service-secure/pom.xml | 85 + .../src/main/java/helloworld/HelloWorldImpl.java | 33 + .../src/main/java/helloworld/HelloWorldServer.java | 46 + .../main/java/helloworld/HelloWorldService.java | 31 + .../main/java/helloworld/ServerPWCBHandler.java | 55 + .../src/main/resources/definitions.xml | 113 + .../src/main/resources/helloworldKeys.jks | Bin 0 -> 1354 bytes .../src/main/resources/helloworldws.composite | 42 + .../src/main/resources/wsdl/helloworld.wsdl | 79 + .../java/helloworld/HelloWorldServerTestCase.java | 62 + .../samples/helloworld-ws-service-webapp/README | 1 + .../samples/helloworld-ws-service-webapp/build.xml | 157 ++ .../samples/helloworld-ws-service-webapp/pom.xml | 80 + .../src/main/java/helloworld/HelloWorldImpl.java | 33 + .../main/java/helloworld/HelloWorldService.java | 30 + .../src/main/resources/wsdl/helloworld.wsdl | 79 + .../sca-deployables/helloworldws.composite | 32 + .../src/main/webapp/WEB-INF/geronimo-web.xml | 33 + .../src/main/webapp/WEB-INF/web.xml | 45 + .../1.5.1-RC4/samples/helloworld-ws-service/README | 141 ++ .../samples/helloworld-ws-service/build.xml | 72 + .../helloworld-ws-service.png | Bin 0 -> 6531 bytes .../helloworld-ws-service.svg | 150 ++ .../samples/helloworld-ws-service/pom.xml | 79 + .../src/main/java/helloworld/HelloWorldImpl.java | 33 + .../src/main/java/helloworld/HelloWorldServer.java | 46 + .../main/java/helloworld/HelloWorldService.java | 31 + .../sca-deployables/helloworldws.composite | 33 + .../src/main/resources/wsdl/helloworld.wsdl | 79 + .../java/helloworld/HelloWorldServerTestCase.java | 62 + .../sca/1.5.1-RC4/samples/holder-ws-service/README | 140 ++ .../1.5.1-RC4/samples/holder-ws-service/build.xml | 72 + .../1.5.1-RC4/samples/holder-ws-service/pom.xml | 79 + .../org/example/orderservice/ObjectFactory.java | 74 + .../main/java/org/example/orderservice/Order.java | 147 ++ .../org/example/orderservice/OrderService.java | 55 + .../org/example/orderservice/OrderServiceImpl.java | 65 + .../example/orderservice/OrderServiceServer.java | 99 + .../example/orderservice/OrderService_Service.java | 84 + .../java/org/example/orderservice/ReviewOrder.java | 82 + .../example/orderservice/ReviewOrderResponse.java | 82 + .../main/java/org/example/orderservice/Status.java | 75 + .../org/example/orderservice/package-info.java | 21 + .../META-INF/sca-deployables/orderws.composite | 33 + .../src/main/resources/wsdl/orderservice.wsdl | 89 + .../example/orderservice/OrderServiceTestCase.java | 104 + .../samples/implementation-composite/README | 116 + .../samples/implementation-composite/build.xml | 72 + .../implementation-composite.png | Bin 0 -> 47415 bytes .../implementation-composite.svg | 658 +++++ .../samples/implementation-composite/pom.xml | 72 + .../src/main/java/composite/CompositeClient.java | 41 + .../src/main/java/composite/Source.java | 24 + .../src/main/java/composite/SourceCallback.java | 24 + .../src/main/java/composite/SourceImpl.java | 59 + .../src/main/java/composite/Target.java | 30 + .../src/main/java/composite/TargetImpl.java | 44 + .../src/main/resources/InnerComposite.composite | 41 + .../src/main/resources/InnerComposite2.composite | 33 + .../main/resources/META-INF/sca-contribution.xml | 24 + .../src/main/resources/OuterComposite.composite | 39 + .../src/test/java/composite/CompositeTestCase.java | 50 + .../samples/implementation-crud-extension/README | 83 + .../implementation-crud-extension/build.xml | 51 + .../samples/implementation-crud-extension/pom.xml | 77 + .../src/main/java/crud/CRUD.java | 54 + .../src/main/java/crud/CRUDImplementation.java | 50 + .../main/java/crud/CRUDImplementationFactory.java | 37 + .../main/java/crud/backend/ResourceManager.java | 90 + .../crud/impl/CRUDImplementationFactoryImpl.java | 47 + .../java/crud/impl/CRUDImplementationImpl.java | 117 + .../crud/provider/CRUDImplementationInvoker.java | 79 + .../crud/provider/CRUDImplementationProvider.java | 75 + .../CRUDImplementationProviderFactory.java | 51 + .../services/crud.CRUDImplementationFactory | 19 + ...ca.contribution.processor.StAXArtifactProcessor | 19 + ...any.sca.contribution.processor.ValidationSchema | 19 + ...cany.sca.provider.ImplementationProviderFactory | 19 + .../main/resources/sample-implementation-crud.xsd | 38 + .../src/test/java/crud/CRUDTestCase.java | 60 + .../src/test/resources/crud.composite | 30 + .../1.5.1-RC4/samples/implementation-crud/README | 113 + .../samples/implementation-crud/build.xml | 75 + .../implementation-crud/implementation-crud.png | Bin 0 -> 4227 bytes .../implementation-crud/implementation-crud.svg | 135 + .../1.5.1-RC4/samples/implementation-crud/pom.xml | 64 + .../src/main/java/crud/client/CRUDClient.java | 59 + .../src/main/resources/crud.composite | 30 + .../src/test/java/crud/client/CRUDTestCase.java | 61 + .../samples/implementation-notification/README | 97 + .../samples/implementation-notification/build.xml | 72 + .../implementation-notification.png | Bin 0 -> 21543 bytes .../samples/implementation-notification/pom.xml | 76 + .../main/java/notification/TestCaseProducer.java | 24 + .../main/java/notification/TrafficAdvisory.java | 24 + .../java/notification/TrafficAdvisoryClient.java | 45 + .../java/notification/TrafficAdvisoryConsumer.java | 39 + .../java/notification/TrafficAdvisoryProducer.java | 36 + .../TrafficAdvisoryNotification.componentType | 30 + .../TrafficAdvisoryNotification.composite | 50 + .../java/notification/TrafficAdvisoryTestCase.java | 60 + .../TrafficAdvisoryNotification.componentType | 30 + .../TrafficAdvisoryNotification.composite | 50 + .../samples/implementation-pojo-extension/README | 70 + .../implementation-pojo-extension/build.xml | 51 + .../samples/implementation-pojo-extension/pom.xml | 77 + .../src/main/java/pojo/POJOImplementation.java | 65 + .../main/java/pojo/POJOImplementationFactory.java | 36 + .../pojo/impl/POJOImplementationFactoryImpl.java | 36 + .../java/pojo/impl/POJOImplementationImpl.java | 155 ++ .../pojo/impl/POJOImplementationProcessor.java | 173 ++ .../pojo/provider/POJOImplementationInvoker.java | 68 + .../pojo/provider/POJOImplementationProvider.java | 106 + .../POJOImplementationProviderFactory.java | 45 + ...ca.contribution.processor.StAXArtifactProcessor | 19 + ...any.sca.contribution.processor.ValidationSchema | 19 + ...cany.sca.provider.ImplementationProviderFactory | 19 + .../services/pojo.POJOImplementationFactory | 19 + .../main/resources/sample-implementation-pojo.xsd | 38 + .../src/test/java/helloworld/HelloWorld.java | 26 + .../src/test/java/helloworld/HelloWorldImpl.java | 37 + .../src/test/java/helloworld/HelloWorldImpl2.java | 37 + .../test/java/helloworld/HelloWorldTestCase.java | 51 + .../helloworld/HelloWorldImpl2.componentType | 26 + .../test/resources/helloworld/helloworld.composite | 33 + .../sca/1.5.1-RC4/samples/loanapplication/pom.xml | 65 + .../main/java/loanapplication/LoanApplication.java | 36 + .../loanapplication/LoanApplicationClient.java | 37 + .../src/main/java/loanapplication/LoanClient.java | 29 + .../main/java/loanapplication/LoanClientImpl.java | 64 + .../src/main/java/loanapplication/LoanService.java | 43 + .../main/java/loanapplication/LoanServiceImpl.java | 63 + .../src/main/resources/loanapplication.composite | 34 + .../loanapplication/LoanApplicationTestCase.java | 83 + .../sca/1.5.1-RC4/samples/osgi-supplychain/README | 161 ++ .../samples/osgi-supplychain/build-bundles.xml | 32 + .../1.5.1-RC4/samples/osgi-supplychain/build.xml | 128 + .../samples/osgi-supplychain/osgi-supplychain.png | Bin 0 -> 13558 bytes .../samples/osgi-supplychain/osgi-supplychain.svg | 272 ++ .../sca/1.5.1-RC4/samples/osgi-supplychain/pom.xml | 187 ++ .../src/main/java/supplychain/OSGiBundleImpl.java | 121 + .../main/java/supplychain/SupplyChainClient.java | 43 + .../main/java/supplychain/customer/Customer.java | 33 + .../customer/JavaCustomerComponentImpl.java | 50 + .../customer/OSGiCustomerComponentImpl.java | 51 + .../supplychain/customer/OSGiCustomerImpl.java | 47 + .../retailer/JavaRetailerComponentImpl.java | 53 + .../retailer/OSGiRetailerComponentImpl.java | 46 + .../supplychain/retailer/OSGiRetailerImpl.java | 44 + .../main/java/supplychain/retailer/Retailer.java | 28 + .../shipper/JavaShipperComponentImpl.java | 47 + .../shipper/OSGiShipperComponentImpl.java | 45 + .../java/supplychain/shipper/OSGiShipperImpl.java | 42 + .../src/main/java/supplychain/shipper/Shipper.java | 28 + .../warehouse/JavaWarehouseComponentImpl.java | 47 + .../warehouse/OSGiWarehouseComponentImpl.java | 47 + .../supplychain/warehouse/OSGiWarehouseImpl.java | 44 + .../main/java/supplychain/warehouse/Warehouse.java | 28 + .../src/main/resources/Customer.componentType | 28 + .../src/main/resources/DSCustomer.componentType | 28 + .../src/main/resources/DSRetailer.componentType | 28 + .../src/main/resources/DSShipper.componentType | 28 + .../src/main/resources/DSWarehouse.componentType | 28 + .../src/main/resources/Retailer.componentType | 28 + .../src/main/resources/Shipper.componentType | 28 + .../src/main/resources/Warehouse.componentType | 28 + .../src/main/resources/osgi/Customer.mf | 11 + .../src/main/resources/osgi/Retailer.mf | 10 + .../src/main/resources/osgi/Shipper.mf | 10 + .../src/main/resources/osgi/Warehouse.mf | 10 + .../src/main/resources/osgi/ds/Customer.mf | 10 + .../src/main/resources/osgi/ds/Customer.xml | 32 + .../src/main/resources/osgi/ds/Retailer.mf | 11 + .../src/main/resources/osgi/ds/Retailer.xml | 32 + .../src/main/resources/osgi/ds/Shipper.mf | 10 + .../src/main/resources/osgi/ds/Shipper.xml | 33 + .../src/main/resources/osgi/ds/Warehouse.mf | 11 + .../src/main/resources/osgi/ds/Warehouse.xml | 32 + .../src/main/resources/supplychain.composite | 61 + .../src/main/resources/supplychain.ds.composite | 61 + .../supplychain/SupplyChainClientTestCase.java | 60 + .../sca/1.5.1-RC4/samples/photo-gallery/README | 20 + .../sca/1.5.1-RC4/samples/photo-gallery/build.xml | 79 + .../samples/photo-gallery/photo-gallery.png | Bin 0 -> 13625 bytes .../samples/photo-gallery/photo-gallery.svg | 226 ++ .../sca/1.5.1-RC4/samples/photo-gallery/pom.xml | 127 + .../src/main/java/launch/LaunchGallery.java | 34 + .../src/main/java/services/Album.java | 29 + .../src/main/java/services/AlbumImpl.java | 95 + .../photo-gallery/src/main/resources/gallery.html | 135 + .../src/main/resources/gallery/boston/dsc00368.jpg | Bin 0 -> 32808 bytes .../src/main/resources/gallery/boston/dsc00369.jpg | Bin 0 -> 35980 bytes .../src/main/resources/gallery/boston/dsc00370.jpg | Bin 0 -> 44614 bytes .../src/main/resources/gallery/boston/dsc00371.jpg | Bin 0 -> 40745 bytes .../src/main/resources/gallery/boston/dsc00373.jpg | Bin 0 -> 76470 bytes .../src/main/resources/gallery/boston/dsc00375.jpg | Bin 0 -> 34834 bytes .../src/main/resources/gallery/boston/dsc00376.jpg | Bin 0 -> 38797 bytes .../src/main/resources/gallery/boston/dsc00377.jpg | Bin 0 -> 35776 bytes .../src/main/resources/gallery/boston/dsc00378.jpg | Bin 0 -> 35248 bytes .../src/main/resources/gallery/boston/dsc00379.jpg | Bin 0 -> 55042 bytes .../src/main/resources/gallery/boston/dsc00380.jpg | Bin 0 -> 55236 bytes .../photo-gallery/src/main/resources/index.gif | Bin 0 -> 564 bytes .../photo-gallery/src/main/resources/index_on.gif | Bin 0 -> 577 bytes .../photo-gallery/src/main/resources/next.gif | Bin 0 -> 535 bytes .../src/main/resources/next_disabled.gif | Bin 0 -> 536 bytes .../photo-gallery/src/main/resources/next_on.gif | Bin 0 -> 542 bytes .../src/main/resources/photo-gallery.composite | 47 + .../photo-gallery/src/main/resources/prev.gif | Bin 0 -> 534 bytes .../src/main/resources/prev_disabled.gif | Bin 0 -> 536 bytes .../photo-gallery/src/main/resources/prev_on.gif | Bin 0 -> 541 bytes .../src/main/resources/show_slide.gif | Bin 0 -> 533 bytes .../photo-gallery/src/main/resources/space.gif | Bin 0 -> 116 bytes .../photo-gallery/src/main/resources/styles.css | 121 + tags/java/sca/1.5.1-RC4/samples/pom.xml | 117 + .../java/sca/1.5.1-RC4/samples/quote-xquery/README | 450 ++++ .../sca/1.5.1-RC4/samples/quote-xquery/build.xml | 130 + .../sca/1.5.1-RC4/samples/quote-xquery/pom.xml | 195 ++ .../java/xquery/quote/AvailQuoteProviderImpl.java | 30 + .../xquery/quote/AvailQuoteProviderNodeInfo.java | 28 + .../xquery/quote/AvailQuoteProviderService.java | 27 + .../xquery/quote/ExternalReferencesQuoteJoin.java | 27 + .../main/java/xquery/quote/PriceQuoteProvider.java | 28 + .../java/xquery/quote/PriceQuoteProviderImpl.java | 27 + .../xquery/quote/PriceQuoteProviderNodeInfo.java | 28 + .../java/xquery/quote/PropertiesQuoteJoin.java | 32 + .../main/java/xquery/quote/QuoteCalculator.java | 26 + .../java/xquery/quote/QuoteCalculatorImpl.java | 38 + .../src/main/java/xquery/quote/QuoteDataUtil.java | 107 + .../src/main/java/xquery/quote/QuoteJoin.java | 34 + .../src/main/java/xquery/quote/QuoteJoinLocal.java | 34 + .../main/java/xquery/quote/QuoteJoinLocalImpl.java | 67 + .../main/java/xquery/quote/XQueryQuoteClient.java | 145 ++ .../main/java/xquery/quote/XQueryQuoteServer.java | 39 + .../src/main/resources/META-INF/sca/quote_join.xq | 61 + .../META-INF/sca/quote_join_external_references.xq | 69 + .../META-INF/sca/quote_join_properties.xq | 74 + .../src/main/resources/wsdl/AvailQuote.xsd | 39 + .../src/main/resources/wsdl/PriceQuote.xsd | 49 + .../quote-xquery/src/main/resources/wsdl/Quote.xsd | 40 + .../src/main/resources/wsdl/quotejoin.wsdl | 137 ++ .../src/main/resources/xqueryquotews.composite | 55 + .../main/resources/xqueryquotewsclient.composite | 114 + .../xquery/quote/XQueryQuoteClientTestCase.java | 192 ++ .../java/xquery/quote/XQueryQuoteTestServer.java | 50 + .../1.5.1-RC4/samples/simple-bigbank-spring/README | 153 ++ .../samples/simple-bigbank-spring/build-dojo.xml | 92 + .../samples/simple-bigbank-spring/build.xml | 72 + .../samples/simple-bigbank-spring/pom.xml | 290 +++ .../simple-bigbank-spring.png | Bin 0 -> 10202 bytes .../simple-bigbank-spring.svg | 200 ++ .../main/java/bigbank/account/AccountReport.java | 43 + .../main/java/bigbank/account/AccountService.java | 26 + .../java/bigbank/account/AccountServiceImpl.java | 147 ++ .../account/checking/CheckingAccountDetails.java | 45 + .../account/checking/CheckingAccountService.java | 34 + .../java/bigbank/account/feed/AccountFeedImpl.java | 71 + .../account/savings/SavingsAccountDetails.java | 47 + .../account/savings/SavingsAccountService.java | 32 + .../account/savings/SavingsAccountServiceImpl.java | 62 + .../bigbank/account/stock/StockAccountDetails.java | 63 + .../bigbank/account/stock/StockAccountService.java | 33 + .../account/stock/StockAccountServiceImpl.java | 56 + .../java/bigbank/calculator/CalculatorService.java | 34 + .../main/java/bigbank/client/BigBankClient.java | 46 + .../main/java/bigbank/server/BigBankServer.java | 54 + .../java/bigbank/stockquote/StockQuoteService.java | 31 + .../src/main/resources/BigBank.composite | 88 + .../src/main/resources/SavingsAccount.composite | 32 + .../src/main/resources/StockAccount.composite | 32 + .../spring-context/Account-spring-context.xml | 60 + .../spring-context/SavingsAccount-context.xml | 33 + .../StockAccount/META-INF/MANIFEST.MF | 4 + .../META-INF/spring/StockAccount-context.xml | 33 + .../src/main/resources/web/style.css | 22 + .../src/test/java/bigbank/BigBankTestCase.java | 34 + .../sca/1.5.1-RC4/samples/simple-bigbank/README | 101 + .../sca/1.5.1-RC4/samples/simple-bigbank/build.xml | 72 + .../sca/1.5.1-RC4/samples/simple-bigbank/pom.xml | 65 + .../samples/simple-bigbank/simple-bigbank.png | Bin 0 -> 10202 bytes .../samples/simple-bigbank/simple-bigbank.svg | 200 ++ .../main/java/bigbank/account/AccountReport.java | 43 + .../main/java/bigbank/account/AccountService.java | 26 + .../java/bigbank/account/AccountServiceImpl.java | 68 + .../src/main/java/bigbank/accountdata/Account.java | 26 + .../bigbank/accountdata/AccountDataService.java | 28 + .../accountdata/AccountDataServiceImpl.java | 54 + .../java/bigbank/accountdata/CheckingAccount.java | 35 + .../java/bigbank/accountdata/SavingsAccount.java | 35 + .../java/bigbank/accountdata/StockAccount.java | 43 + .../main/java/bigbank/client/BigBankClient.java | 43 + .../java/bigbank/stockquote/StockQuoteImpl.java | 36 + .../java/bigbank/stockquote/StockQuoteService.java | 32 + .../src/main/resources/Account.composite | 38 + .../src/main/resources/BigBank.composite | 35 + .../src/main/resources/StockQuote.composite | 31 + .../src/test/java/bigbank/BigBankTestCase.java | 50 + .../1.5.1-RC4/samples/simple-callback-ws/README | 144 ++ .../1.5.1-RC4/samples/simple-callback-ws/build.xml | 72 + .../1.5.1-RC4/samples/simple-callback-ws/pom.xml | 79 + .../simple-callback-ws/simple-callback-ws.png | Bin 0 -> 137 bytes .../simple-callback-ws/simple-callback-ws.svg | 150 ++ .../src/main/java/simplecallback/MyClient.java | 27 + .../src/main/java/simplecallback/MyClientImpl.java | 51 + .../src/main/java/simplecallback/MyService.java | 34 + .../java/simplecallback/MyServiceCallback.java | 30 + .../main/java/simplecallback/MyServiceImpl.java | 54 + .../java/simplecallback/SimpleCallbackClient.java | 38 + .../src/main/resources/simplecallback.composite | 49 + .../src/main/resources/wsdl/simplecallback.wsdl | 109 + .../simplecallback/SimpleCallbackTestCase.java | 53 + .../sca/1.5.1-RC4/samples/simple-callback/README | 97 + .../1.5.1-RC4/samples/simple-callback/build.xml | 72 + .../sca/1.5.1-RC4/samples/simple-callback/pom.xml | 65 + .../samples/simple-callback/simple-callback.png | Bin 0 -> 137 bytes .../samples/simple-callback/simple-callback.svg | 150 ++ .../src/main/java/simplecallback/MyClient.java | 27 + .../src/main/java/simplecallback/MyClientImpl.java | 49 + .../src/main/java/simplecallback/MyService.java | 32 + .../java/simplecallback/MyServiceCallback.java | 27 + .../main/java/simplecallback/MyServiceImpl.java | 51 + .../java/simplecallback/SimpleCallbackClient.java | 38 + .../src/main/resources/simplecallback.composite | 34 + .../simplecallback/SimpleCallbackTestCase.java | 51 + .../samples/spring-bigbank-calculator/README | 2 + .../samples/spring-bigbank-calculator/build.xml | 72 + .../samples/spring-bigbank-calculator/pom.xml | 117 + .../main/java/bigbank/calculator/AddService.java | 25 + .../java/bigbank/calculator/CalculatorService.java | 34 + .../bigbank/calculator/CalculatorServiceImpl.java | 72 + .../java/bigbank/calculator/DivideService.java | 25 + .../java/bigbank/calculator/MultiplyService.java | 25 + .../java/bigbank/calculator/SubtractService.java | 25 + .../calculator/server/CalculatorServer.java | 50 + .../src/main/resources/Calculator.composite | 56 + .../META-INF/spring/CalculatorService-context.xml | 45 + .../main/resources/calculator/AddServiceImpl.js | 22 + .../resources/calculator/DivideServiceImpl.groovy | 22 + .../resources/calculator/MultiplyServiceImpl.py | 21 + .../resources/calculator/SubtractServiceImpl.rb | 22 + .../calculator/CalculatorServiceTestCase.java | 33 + .../samples/spring-bigbank-checkaccount/README | 4 + .../samples/spring-bigbank-checkaccount/build.xml | 73 + .../samples/spring-bigbank-checkaccount/pom.xml | 145 ++ .../account/checking/CheckingAccountDetails.java | 50 + .../account/checking/CheckingAccountService.java | 37 + .../checking/CheckingAccountServiceImpl.java | 66 + .../checking/server/CheckingAccountServer.java | 70 + .../AccountsDataPasswordCallbackHandler.java | 54 + .../account/security/BigbankCheckingsAcl.java | 48 + ...ckingsDeptAuthImplementationPolicyProvider.java | 90 + .../account/security/CheckingsDeptAuthPolicy.java | 46 + .../CheckingsDeptAuthPolicyInterceptor.java | 73 + .../CheckingsDeptAuthPolicyProviderFactory.java | 75 + .../CheckingsDeptAuthorizationPolicyHandler.java | 67 + .../CheckingsDeptAuthorizationPolicyProcessor.java | 72 + .../src/main/resources/CheckingsAccount.composite | 41 + ...ca.contribution.processor.StAXArtifactProcessor | 19 + ...rg.apache.tuscany.sca.policy.util.PolicyHandler | 20 + ...ache.tuscany.sca.provider.PolicyProviderFactory | 19 + .../src/main/resources/definitions.xml | 58 + .../spring/CheckingAccountService-context.xml | 33 + .../checkaccount/CheckAccountServiceTestCase.java | 33 + .../samples/spring-bigbank-stockquote/README | 4 + .../samples/spring-bigbank-stockquote/build.xml | 73 + .../samples/spring-bigbank-stockquote/pom.xml | 117 + .../java/bigbank/stockquote/StockQuoteImpl.java | 38 + .../java/bigbank/stockquote/StockQuoteService.java | 30 + .../server/SCAApplicationContextProvider.java | 37 + .../stockquote/server/StockQuoteServer.java | 58 + .../META-INF/spring/StockQuoteService-context.xml | 36 + .../src/main/resources/StockQuote.composite | 35 + .../stockquote/StockQuoteServiceTestCase.java | 33 + tags/java/sca/1.5.1-RC4/samples/store-dojo/README | 28 + .../sca/1.5.1-RC4/samples/store-dojo/build.xml | 85 + tags/java/sca/1.5.1-RC4/samples/store-dojo/pom.xml | 127 + .../store-dojo/src/main/java/launch/Launch.java | 34 + .../store-dojo/src/main/java/services/Cart.java | 28 + .../store-dojo/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-dojo/src/main/java/services/Item.java | 51 + .../src/main/java/services/ShoppingCartImpl.java | 112 + .../store-dojo/src/main/java/services/Total.java | 29 + .../store-dojo/src/main/resources/store.composite | 64 + .../src/main/resources/uiservices/store.html | 168 ++ .../sca/1.5.1-RC4/samples/store-dojo/store.png | Bin 0 -> 15670 bytes .../sca/1.5.1-RC4/samples/store-dojo/store.svg | 304 +++ .../java/sca/1.5.1-RC4/samples/store-secure/README | 28 + .../sca/1.5.1-RC4/samples/store-secure/build.xml | 79 + .../sca/1.5.1-RC4/samples/store-secure/pom.xml | 126 + .../store-secure/src/main/java/launch/Launch.java | 34 + .../src/main/java/launch/LaunchProtected.java | 34 + .../src/main/java/launch/LaunchSSL.java | 34 + .../store-secure/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-secure/src/main/java/services/Item.java | 51 + .../src/main/java/services/ShoppingCartImpl.java | 112 + .../store-secure/src/main/java/services/Total.java | 29 + .../src/main/resources/definitions.xml | 50 + .../src/main/resources/store-protected.composite | 64 + .../src/main/resources/store-ssl.composite | 64 + .../src/main/resources/store.composite | 64 + .../src/main/resources/tuscany.keyStore | Bin 0 -> 1265 bytes .../src/main/resources/uiservices/store.html | 162 ++ .../sca/1.5.1-RC4/samples/store-secure/store.png | Bin 0 -> 15670 bytes .../sca/1.5.1-RC4/samples/store-secure/store.svg | 304 +++ .../java/sca/1.5.1-RC4/samples/store-webapp/README | 28 + .../samples/store-webapp/build-dependency.xml | 109 + .../1.5.1-RC4/samples/store-webapp/build-dojo.xml | 92 + .../sca/1.5.1-RC4/samples/store-webapp/build.xml | 68 + .../sca/1.5.1-RC4/samples/store-webapp/pom.xml | 125 + .../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 | 61 + .../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 | 162 ++ .../sca/1.5.1-RC4/samples/store-webapp/store.png | Bin 0 -> 15670 bytes .../sca/1.5.1-RC4/samples/store-webapp/store.svg | 304 +++ tags/java/sca/1.5.1-RC4/samples/store/README | 28 + tags/java/sca/1.5.1-RC4/samples/store/build.xml | 79 + tags/java/sca/1.5.1-RC4/samples/store/pom.xml | 121 + .../samples/store/src/main/java/launch/Launch.java | 34 + .../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 | 51 + .../src/main/java/services/ShoppingCartImpl.java | 112 + .../store/src/main/java/services/Total.java | 29 + .../store/src/main/resources/store.composite | 64 + .../store/src/main/resources/uiservices/store.html | 162 ++ tags/java/sca/1.5.1-RC4/samples/store/store.png | Bin 0 -> 15670 bytes tags/java/sca/1.5.1-RC4/samples/store/store.svg | 304 +++ tags/java/sca/1.5.1-RC4/samples/supplychain/README | 101 + .../sca/1.5.1-RC4/samples/supplychain/build.xml | 72 + .../java/sca/1.5.1-RC4/samples/supplychain/pom.xml | 65 + .../src/main/java/supplychain/Customer.java | 33 + .../java/supplychain/CustomerComponentImpl.java | 44 + .../src/main/java/supplychain/Retailer.java | 28 + .../java/supplychain/RetailerComponentImpl.java | 39 + .../src/main/java/supplychain/Shipper.java | 28 + .../java/supplychain/ShipperComponentImpl.java | 39 + .../main/java/supplychain/SupplyChainClient.java | 40 + .../src/main/java/supplychain/Warehouse.java | 28 + .../java/supplychain/WarehouseComponentImpl.java | 39 + .../src/main/resources/supplychain.composite | 45 + .../supplychain/SupplyChainClientTestCase.java | 52 + .../1.5.1-RC4/samples/supplychain/supplychain.png | Bin 0 -> 3898 bytes .../1.5.1-RC4/samples/supplychain/supplychain.svg | 228 ++ .../java/sca/1.5.1-RC4/samples/web-resource/README | 76 + .../sca/1.5.1-RC4/samples/web-resource/build.xml | 72 + .../sca/1.5.1-RC4/samples/web-resource/pom.xml | 79 + .../src/main/java/web/resource/SampleServer.java | 44 + .../src/main/resources/WebResource.composite | 32 + .../src/main/resources/myContent/index.html | 49 + .../samples/web-resource/web-resource.png | Bin 0 -> 8418 bytes .../samples/web-resource/web-resource.svg | 197 ++ tags/java/sca/1.5.1-RC4/tools/contrib2wsdl/LICENSE | 205 ++ tags/java/sca/1.5.1-RC4/tools/contrib2wsdl/NOTICE | 6 + .../sca/1.5.1-RC4/tools/contrib2wsdl/build.xml | 30 + tags/java/sca/1.5.1-RC4/tools/contrib2wsdl/pom.xml | 81 + .../tuscany/tools/contrib2wsdl/Contrib2WSDL.java | 154 ++ .../src/test/java/calculator/AddService.java | 31 + .../src/test/java/calculator/AddServiceImpl.java | 35 + .../src/test/java/calculator/CalculatorClient.java | 48 + .../test/java/calculator/CalculatorService.java | 35 + .../java/calculator/CalculatorServiceImpl.java | 70 + .../src/test/java/calculator/DivideService.java | 28 + .../test/java/calculator/DivideServiceImpl.java | 35 + .../src/test/java/calculator/MultiplyService.java | 28 + .../test/java/calculator/MultiplyServiceImpl.java | 35 + .../src/test/java/calculator/SubtractService.java | 28 + .../test/java/calculator/SubtractServiceImpl.java | 35 + .../tools/contrib2wsdl/Contrib2WSDLTestCase.java | 34 + .../src/test/resources/Calculator.composite | 54 + .../test/resources/META-INF/sca-contribution.xml | 23 + .../1.5.1-RC4/tools/eclipse/features/core/.project | 30 + .../1.5.1-RC4/tools/eclipse/features/core/LICENSE | 205 ++ .../eclipse/features/core/META-INF/MANIFEST.MF | 6 + .../1.5.1-RC4/tools/eclipse/features/core/NOTICE | 6 + .../tools/eclipse/features/core/build.properties | 10 + .../tools/eclipse/features/core/feature.xml | 72 + .../1.5.1-RC4/tools/eclipse/features/core/pom.xml | 57 + .../1.5.1-RC4/tools/eclipse/plugins/core/.project | 17 + .../1.5.1-RC4/tools/eclipse/plugins/core/LICENSE | 205 ++ .../eclipse/plugins/core/META-INF/MANIFEST.MF | 31 + .../1.5.1-RC4/tools/eclipse/plugins/core/NOTICE | 12 + .../tools/eclipse/plugins/core/build.properties | 23 + .../plugins/core/exsd/runtimeLibraries.exsd | 109 + .../tools/eclipse/plugins/core/icons/t.gif | Bin 0 -> 877 bytes .../tools/eclipse/plugins/core/icons/tuscany.gif | Bin 0 -> 5603 bytes .../tuscany/sca/core/classpath/ClasspathUtil.java | 170 ++ .../core/classpath/TuscanyClasspathContainer.java | 154 ++ .../TuscanyClasspathContainerInitializer.java | 50 + .../core/classpath/TuscanyLibraryEntryPage.java | 69 + .../TuscanyRuntimeClasspathContainer.java | 89 + .../sca/core/launch/DomainManagerLauncherUtil.java | 255 ++ .../tuscany/sca/core/launch/NodeLauncherUtil.java | 244 ++ .../launch/TuscanyLaunchConfigurationDelegate.java | 75 + .../launch/TuscanyLaunchConfigurationTabGroup.java | 48 + .../launch/TuscanyLaunchDomainManagerAction.java | 79 + .../sca/core/launch/TuscanyLaunchNodeFilter.java | 29 + .../sca/core/launch/TuscanyLaunchNodeShortcut.java | 88 + .../org/apache/tuscany/sca/core/log/LogUtil.java | 39 + .../core/newwizards/NewComponentTypeWizard.java | 53 + .../newwizards/NewComponentTypeWizardPage.java | 98 + .../sca/core/newwizards/NewCompositeWizard.java | 53 + .../core/newwizards/NewCompositeWizardPage.java | 105 + .../tools/eclipse/plugins/core/plugin.xml | 149 ++ .../1.5.1-RC4/tools/eclipse/plugins/core/pom.xml | 102 + .../tools/eclipse/plugins/core/xsd/sca-all.xsd | 34 + .../eclipse/plugins/core/xsd/sca-binding-ejb.xsd | 43 + .../eclipse/plugins/core/xsd/sca-binding-jms.xsd | 135 + .../eclipse/plugins/core/xsd/sca-binding-sca.xsd | 23 + .../plugins/core/xsd/sca-binding-webservice.xsd | 26 + .../eclipse/plugins/core/xsd/sca-contribution.xsd | 38 + .../tools/eclipse/plugins/core/xsd/sca-core.xsd | 350 +++ .../eclipse/plugins/core/xsd/sca-definitions.xsd | 25 + .../plugins/core/xsd/sca-implementation-bpel.xsd | 43 + .../core/xsd/sca-implementation-composite.xsd | 23 + .../plugins/core/xsd/sca-implementation-cpp.xsd | 53 + .../plugins/core/xsd/sca-implementation-ejb.xsd | 25 + .../plugins/core/xsd/sca-implementation-java.xsd | 24 + .../plugins/core/xsd/sca-implementation-spring.xsd | 24 + .../eclipse/plugins/core/xsd/sca-interface-cpp.xsd | 40 + .../plugins/core/xsd/sca-interface-java.xsd | 23 + .../plugins/core/xsd/sca-interface-wsdl.xsd | 23 + .../tools/eclipse/plugins/core/xsd/sca-policy.xsd | 76 + .../tools/eclipse/plugins/core/xsd/sca.xsd | 22 + .../plugins/core/xsd/tuscany-sca-binding-atom.xsd | 41 + .../plugins/core/xsd/tuscany-sca-binding-dwr.xsd | 40 + .../plugins/core/xsd/tuscany-sca-binding-http.xsd | 40 + .../core/xsd/tuscany-sca-binding-jsonrpc.xsd | 40 + .../core/xsd/tuscany-sca-binding-notification.xsd | 42 + .../plugins/core/xsd/tuscany-sca-binding-rmi.xsd | 43 + .../plugins/core/xsd/tuscany-sca-binding-rss.xsd | 41 + .../core/xsd/tuscany-sca-implementation-node.xsd | 43 + .../tuscany-sca-implementation-notification.xsd | 42 + .../core/xsd/tuscany-sca-implementation-osgi.xsd | 43 + .../xsd/tuscany-sca-implementation-resource.xsd | 42 + .../core/xsd/tuscany-sca-implementation-script.xsd | 43 + .../core/xsd/tuscany-sca-implementation-widget.xsd | 42 + .../core/xsd/tuscany-sca-implementation-xquery.xsd | 42 + .../tools/eclipse/plugins/core/xsd/tuscany-sca.xsd | 45 + tags/java/sca/1.5.1-RC4/tools/eclipse/pom.xml | 47 + .../tools/eclipse/site/updatesite/.project | 24 + .../tools/eclipse/site/updatesite/LICENSE | 205 ++ .../1.5.1-RC4/tools/eclipse/site/updatesite/NOTICE | 6 + .../tools/eclipse/site/updatesite/pom.xml | 85 + .../tools/eclipse/site/updatesite/site.xml | 36 + .../updatesite/src/main/assembly/updatesite.xml | 58 + tags/java/sca/1.5.1-RC4/tools/java2wsdl/LICENSE | 205 ++ tags/java/sca/1.5.1-RC4/tools/java2wsdl/NOTICE | 6 + tags/java/sca/1.5.1-RC4/tools/java2wsdl/pom.xml | 174 ++ .../java2wsdl/generate/GenerationParameters.java | 423 ++++ .../tools/java2wsdl/generate/Java2WSDL.java | 82 + .../java2wsdl/generate/Java2WSDLGenerator.java | 46 + .../generate/Java2WSDLGeneratorFactory.java | 89 + .../java2wsdl/generate/Java2WSDLGeneratorImpl.java | 238 ++ .../tools/java2wsdl/generate/SchemaBuilder.java | 613 +++++ .../java2wsdl/generate/TuscanyJava2OMBuilder.java | 429 ++++ .../generate/TuscanyJava2WSDLBuilder.java | 81 + .../generate/TuscanyJava2WSDLConstants.java | 56 + .../generate/TuscanyJava2WSDLOptionsValidator.java | 73 + .../java2wsdl/generate/TuscanySchemaGenerator.java | 348 +++ .../tools/java2wsdl/generate/TuscanyTypeTable.java | 220 ++ .../generate/TuscanyWSDLTypesGenerator.java | 370 +++ .../tools/java2wsdl/generate/WSDLGenEvent.java | 42 + .../tools/java2wsdl/generate/WSDLGenListener.java | 39 + .../tuscany/tools/java2wsdl/util/XMLNameUtil.java | 143 ++ .../src/main/resources/META-INF/LICENSE.txt | 202 ++ .../tools/java2wsdl/generate/CustomerValue.java | 41 + .../java2wsdl/generate/CustomerWithAccount.java | 49 + .../tools/java2wsdl/generate/ExampleService.java | 31 + .../generate/TuscanyJava2WSDLTestCase.java | 114 + .../tools/java2wsdl/generate/account/Account.java | 53 + .../java2wsdl/generate/customer/Customer.java | 29 + .../java2wsdl/generate/extra/GoldCustomer.java | 33 + .../java/org/soapinterop/CreditScoreDocLit.java | 24 + .../src/test/resources/AccountService.wsdl | 242 ++ .../src/test/resources/CreditScoreDocLit.wsdl | 76 + .../java2wsdl/src/test/resources/helloworld.wsdl | 121 + .../java2wsdl/src/test/resources/interopdoc.wsdl | 180 ++ .../java2wsdl/src/test/resources/sequences.xsd | 100 + .../tools/maven/maven-ant-generator/LICENSE | 205 ++ .../tools/maven/maven-ant-generator/NOTICE | 6 + .../tools/maven/maven-ant-generator/pom.xml | 64 + .../ant/generator/plugin/AntGeneratorMojo.java | 541 ++++ .../tools/maven/maven-dependency-lister/LICENSE | 205 ++ .../tools/maven/maven-dependency-lister/NOTICE | 6 + .../tools/maven/maven-dependency-lister/README | 46 + .../tools/maven/maven-dependency-lister/pom.xml | 71 + .../lister/plugin/DependencyListerMojo.java | 198 ++ .../tools/maven/maven-incremental-build/LICENSE | 205 ++ .../tools/maven/maven-incremental-build/NOTICE | 6 + .../tools/maven/maven-incremental-build/pom.xml | 108 + .../build/plugin/IncrementalBuildMojo.java | 415 ++++ .../1.5.1-RC4/tools/maven/maven-java2wsdl/LICENSE | 205 ++ .../1.5.1-RC4/tools/maven/maven-java2wsdl/NOTICE | 6 + .../1.5.1-RC4/tools/maven/maven-java2wsdl/pom.xml | 45 + .../java2wsdl/plugin/Java2WSDLGeneratorMojo.java | 153 ++ .../1.5.1-RC4/tools/maven/maven-osgi-junit/LICENSE | 205 ++ .../1.5.1-RC4/tools/maven/maven-osgi-junit/NOTICE | 6 + .../1.5.1-RC4/tools/maven/maven-osgi-junit/pom.xml | 60 + .../tools/sca/osgi/junit/plugin/OSGiJUnitMojo.java | 284 +++ .../maven/maven-tuscany-bundle-plugin/pom.xml | 77 + .../tuscany/bundle/plugin/LibraryBundleMojo.java | 184 ++ .../tuscany/bundle/plugin/LibraryBundleUtil.java | 244 ++ .../bundle/plugin/TuscanyBundlePluginMojo.java | 505 ++++ .../1.5.1-RC4/tools/maven/maven-wsdl2java/LICENSE | 205 ++ .../1.5.1-RC4/tools/maven/maven-wsdl2java/NOTICE | 6 + .../1.5.1-RC4/tools/maven/maven-wsdl2java/pom.xml | 45 + .../wsdl2java/plugin/WSDL2JavaGeneratorMojo.java | 152 ++ .../tools/wsdl2java/plugin/WSDLFileOption.java | 92 + tags/java/sca/1.5.1-RC4/tools/maven/pom.xml | 59 + tags/java/sca/1.5.1-RC4/tools/pom.xml | 48 + tags/java/sca/1.5.1-RC4/tools/wsdl2java/LICENSE | 205 ++ tags/java/sca/1.5.1-RC4/tools/wsdl2java/NOTICE | 6 + tags/java/sca/1.5.1-RC4/tools/wsdl2java/pom.xml | 210 ++ .../wsdl2java/generate/JavaInterfaceEmitter.java | 224 ++ .../wsdl2java/generate/JavaInterfaceGenerator.java | 327 +++ .../generate/RemotableInterfaceWritter.java | 53 + .../generate/SDODataBindingCodegenExtension.java | 63 + .../generate/SDODataBindingTypeMappingEntry.java | 51 + .../wsdl2java/generate/WSDL2JavaGenerator.java | 529 ++++ .../tuscany/tools/wsdl2java/util/XMLNameUtil.java | 143 ++ .../src/main/resources/META-INF/LICENSE.txt | 202 ++ .../main/resources/RemotableInterfaceTemplate.xsl | 130 + .../generate/WSDL2JavaGeneratorTestCase.java | 80 + .../java/org/soapinterop/CreditScoreDocLit.java | 25 + .../src/test/resources/AccountService.wsdl | 242 ++ .../test/resources/AccountServiceWithFault.wsdl | 475 ++++ .../src/test/resources/CreditScoreDocLit.wsdl | 76 + .../wsdl2java/src/test/resources/helloworld.wsdl | 121 + .../wsdl2java/src/test/resources/interopdoc.wsdl | 180 ++ .../wsdl2java/src/test/resources/sequences.xsd | 100 + tags/java/sca/1.5.1-RC4/tutorials/pom.xml | 46 + tags/java/sca/1.5.1-RC4/tutorials/store/README | 272 ++ .../sca/1.5.1-RC4/tutorials/store/Tutorial.odp | Bin 0 -> 151399 bytes .../sca/1.5.1-RC4/tutorials/store/Tutorial.pdf | Bin 0 -> 164157 bytes .../store/assets/META-INF/sca-contribution.xml | 27 + .../sca/1.5.1-RC4/tutorials/store/assets/pom.xml | 92 + .../tutorials/store/assets/services/Cart.java | 28 + .../tutorials/store/assets/services/Catalog.java | 27 + .../store/assets/services/CurrencyConverter.java | 29 + .../assets/services/CurrencyConverterImpl.java | 38 + .../store/assets/services/FruitsCatalogImpl.java | 52 + .../tutorials/store/assets/services/Item.java | 66 + .../tutorials/store/assets/services/Order.java | 40 + .../store/assets/services/ShoppingCartImpl.java | 129 + .../tutorials/store/assets/services/Total.java | 30 + .../assets/services/VegetablesCatalogImpl.java | 42 + .../tutorials/store/assets/services/Warehouse.java | 28 + .../assets/services/db/ShoppingCartTableImpl.java | 175 ++ .../tutorials/store/assets/services/db/cart.sql | 27 + .../assets/services/map/FruitsCatalogImpl.java | 56 + .../assets/services/market/MarketCatalogImpl.java | 66 + .../assets/services/merger/MergedCatalogImpl.java | 66 + .../1.5.1-RC4/tutorials/store/assets/tutorial.html | 37 + .../tutorials/store/assets/uiservices/store.html | 183 ++ .../1.5.1-RC4/tutorials/store/catalog-ejb/pom.xml | 107 + .../src/main/java/services/ejb/CatalogEJBHome.java | 28 + .../main/java/services/ejb/CatalogEJBRemote.java | 28 + .../src/main/java/services/ejb/Vegetable.java | 54 + .../ejb/VegetablesCatalogEJBSessionBean.java | 62 + .../src/main/resources/META-INF/ejb-jar.xml | 35 + .../src/main/resources/META-INF/openejb-jar.xml | 78 + .../main/resources/META-INF/sca-contribution.xml | 24 + .../resources/VegetablesCatalogEJB.componentType | 26 + .../src/main/resources/catalog-ejb.composite | 31 + .../test/java/client/CatalogEJBClientTestCase.java | 67 + .../java/org/omg/stub/javax/ejb/_EJBHome_Stub.java | 223 ++ .../org/omg/stub/javax/ejb/_EJBObject_Stub.java | 252 ++ .../java/org/omg/stub/javax/ejb/_Handle_Stub.java | 89 + .../org/omg/stub/javax/ejb/_HomeHandle_Stub.java | 89 + .../java/services/ejb/_CatalogEJBHome_Stub.java | 269 ++ .../java/services/ejb/_CatalogEJBRemote_Stub.java | 292 +++ .../META-INF/sca-contribution.xml | 25 + .../catalog-mediation/catalog-mediation.composite | 34 + .../tutorials/store/catalog-mediation/pom.xml | 94 + .../mediation/VegetablesCatalogMediationImpl.java | 51 + .../store/catalog-webapp/catalog-web.composite | 43 + .../tutorials/store/catalog-webapp/pom.xml | 113 + .../webapp/META-INF/sca-contribution.xml | 24 + .../store/catalog-webapp/webapp/WEB-INF/web.xml | 41 + .../store/catalog-webapp/webapp/catalog.jsp | 52 + .../tutorials/store/domain/cloud.composite | 37 + .../store/domain/cloud/CatalogEJBNode.composite | 35 + .../domain/cloud/CatalogMediationNode.composite | 33 + .../store/domain/cloud/CatalogWebAppNode.composite | 36 + .../store/domain/cloud/CatalogsNode.composite | 33 + .../store/domain/cloud/CurrencyNode.composite | 33 + .../store/domain/cloud/StoreClientNode.composite | 33 + .../store/domain/cloud/StoreDBNode.composite | 35 + .../store/domain/cloud/StoreEUNode.composite | 36 + .../domain/cloud/StoreEnterpriseNode.composite | 35 + .../store/domain/cloud/StoreMarketNode.composite | 35 + .../store/domain/cloud/StoreMashupNode.composite | 35 + .../store/domain/cloud/StoreMergerNode.composite | 35 + .../store/domain/cloud/StoreNode.composite | 35 + .../store/domain/cloud/StoreSupplierNode.composite | 36 + .../tutorials/store/domain/domain.composite | 37 + .../domain/launch/LaunchCatalogMediationNode.java | 28 + .../store/domain/launch/LaunchCatalogsNode.java | 28 + .../store/domain/launch/LaunchCurrencyNode.java | 28 + .../store/domain/launch/LaunchStoreDBNode.java | 28 + .../store/domain/launch/LaunchStoreEUNode.java | 28 + .../domain/launch/LaunchStoreEnterpriseNode.java | 28 + .../store/domain/launch/LaunchStoreMarketNode.java | 28 + .../store/domain/launch/LaunchStoreMashupNode.java | 28 + .../store/domain/launch/LaunchStoreMergerNode.java | 28 + .../store/domain/launch/LaunchStoreNode.java | 28 + .../domain/launch/LaunchStoreSupplierNode.java | 28 + .../domain/launch/LaunchTutorialDomainManager.java | 33 + .../store/domain/launch/LaunchWarehouseSpring.java | 55 + .../sca/1.5.1-RC4/tutorials/store/domain/pom.xml | 240 ++ .../1.5.1-RC4/tutorials/store/domain/workspace.xml | 36 + tags/java/sca/1.5.1-RC4/tutorials/store/pom.xml | 61 + .../store-client/META-INF/sca-contribution.xml | 23 + .../store/store-client/client/Shopper.java | 29 + .../store/store-client/client/ShopperImpl.java | 63 + .../store-client/launch/LaunchStoreClientNode.java | 43 + .../1.5.1-RC4/tutorials/store/store-client/pom.xml | 126 + .../store/store-client/services/Cart.java | 28 + .../store/store-client/services/Catalog.java | 27 + .../store/store-client/services/Item.java | 66 + .../store/store-client/services/Total.java | 29 + .../store/store-client/store-client.composite | 38 + .../store/store-db/META-INF/sca-contribution.xml | 27 + .../sca/1.5.1-RC4/tutorials/store/store-db/pom.xml | 128 + .../tutorials/store/store-db/store-db.composite | 75 + .../store-enterprise/META-INF/sca-contribution.xml | 26 + .../tutorials/store/store-enterprise/build.xml | 54 + .../tutorials/store/store-enterprise/pom.xml | 80 + .../store-enterprise/store-enterprise.composite | 88 + .../store/store-eu/META-INF/sca-contribution.xml | 26 + .../sca/1.5.1-RC4/tutorials/store/store-eu/pom.xml | 114 + .../tutorials/store/store-eu/store-eu.composite | 70 + .../store/store-eu/uiservices/store-eu.html | 162 ++ .../store-market/META-INF/sca-contribution.xml | 26 + .../tutorials/store/store-market/build.xml | 54 + .../1.5.1-RC4/tutorials/store/store-market/pom.xml | 80 + .../store/store-market/store-market.composite | 68 + .../store-mashup/META-INF/sca-contribution.xml | 25 + .../store/store-mashup/build-openajax.xml | 86 + .../store/store-mashup/gadget/map-gadget.html | 50 + .../store/store-mashup/gadget/store-gadget.html | 166 ++ .../store/store-mashup/map-gadget.composite | 32 + .../store/store-mashup/mashup/store-mash.html | 70 + .../1.5.1-RC4/tutorials/store/store-mashup/pom.xml | 139 ++ .../store/store-mashup/store-gadget.composite | 64 + .../store/store-mashup/store-mashup.composite | 48 + .../store-merger/META-INF/sca-contribution.xml | 26 + .../1.5.1-RC4/tutorials/store/store-merger/pom.xml | 80 + .../store/store-merger/store-merger.composite | 75 + .../store-supplier/META-INF/sca-contribution.xml | 27 + .../tutorials/store/store-supplier/pom.xml | 129 + .../store/store-supplier/store-supplier.composite | 77 + .../store/store-test/META-INF/sca-contribution.xml | 27 + .../tutorials/store/store-test/client/Shopper.java | 29 + .../1.5.1-RC4/tutorials/store/store-test/pom.xml | 218 ++ .../store-test/test/StoreSupplierTestCase.java | 115 + .../store/store/META-INF/sca-contribution.xml | 25 + .../sca/1.5.1-RC4/tutorials/store/store/pom.xml | 80 + .../tutorials/store/store/store.composite | 64 + .../warehouse-spring/META-INF/sca-contribution.xml | 24 + .../tutorials/store/warehouse-spring/build.xml | 75 + .../tutorials/store/warehouse-spring/pom.xml | 98 + .../warehouse-spring/services/WarehouseImpl.java | 40 + .../warehouse-spring/uiservices/warehouse.html | 76 + .../store/warehouse-spring/warehouse-context.xml | 29 + .../warehouse-spring/warehouse-spring.composite | 49 + .../web-services/META-INF/sca-contribution.xml | 25 + .../store/web-services/catalogs.composite | 43 + .../store/web-services/currency.composite | 32 + .../1.5.1-RC4/tutorials/store/web-services/pom.xml | 80 + .../sca/1.5.1-RC4/vtest/assembly/component/pom.xml | 62 + .../sca/vtest/assembly/component/AService.java | 31 + .../sca/vtest/assembly/component/BService.java | 29 + .../sca/vtest/assembly/component/CService.java | 28 + .../sca/vtest/assembly/component/DService.java | 29 + .../sca/vtest/assembly/component/EEService.java | 31 + .../sca/vtest/assembly/component/EService.java | 31 + .../sca/vtest/assembly/component/FService.java | 31 + .../sca/vtest/assembly/component/HService.java | 32 + .../assembly/component/callback/MyClient.java | 32 + .../assembly/component/callback/MyClientImpl.java | 70 + .../assembly/component/callback/MyService.java | 36 + .../component/callback/MyServiceCallBack.java | 31 + .../assembly/component/callback/MyServiceImpl.java | 67 + .../assembly/component/impl/ABServiceImpl.java | 51 + .../assembly/component/impl/AServiceImpl.java | 49 + .../assembly/component/impl/BServiceImpl.java | 40 + .../assembly/component/impl/CServiceImpl.java | 31 + .../assembly/component/impl/DServiceImpl.java | 29 + .../assembly/component/impl/EServiceImpl.java | 38 + .../assembly/component/impl/FServiceImpl.java | 31 + .../assembly/component/property/ServiceA.java | 32 + .../assembly/component/property/ServiceAImpl.java | 51 + .../assembly/component/property/ServiceB.java | 32 + .../assembly/component/property/ServiceBImpl.java | 56 + .../assembly/component/property/ServiceC.java | 29 + .../assembly/component/property/ServiceCImpl.java | 44 + .../assembly/component/reference/MyClientA.java | 32 + .../component/reference/MyClientAImpl.java | 55 + .../assembly/component/reference/MyClientB.java | 34 + .../component/reference/MyClientBImpl.java | 68 + .../assembly/component/reference/MyClientC.java | 29 + .../component/reference/MyClientCImpl.java | 85 + .../assembly/component/reference/MyClientD.java | 30 + .../component/reference/MyClientDImpl.java | 73 + .../assembly/component/reference/MyClientE.java | 30 + .../component/reference/MyClientEImpl.java | 67 + .../assembly/component/reference/MyService.java | 29 + .../component/reference/MyServiceImpl.java | 34 + .../component/reference/MyServiceImpl2.java | 34 + .../main/resources/binding_resolution.composite | 43 + .../src/main/resources/callback_bindings.composite | 56 + .../src/main/resources/component.composite | 41 + .../component_duplicate_property.composite | 35 + .../main/resources/component_property_1.composite | 48 + .../main/resources/component_property_2.composite | 52 + .../main/resources/component_property_3.composite | 38 + .../src/main/resources/nonuniquename.composite | 33 + .../nonuniqueservicenameincomponenttype.composite | 29 + .../nonuniqueservicenameincomposite.composite | 47 + .../resources/notcompatibleinterface.composite | 38 + .../main/resources/notmatchofservicename.composite | 41 + .../component/impl/ABServiceImpl.componentType | 32 + .../component/impl/DServiceImpl.componentType | 31 + .../component/impl/EServiceImpl.componentType | 31 + .../component/impl/FServiceImpl.componentType | 42 + .../reference_multiplicity_moretargets.composite | 62 + .../reference_multiplicity_multitargets.composite | 58 + .../reference_multiplicity_ntargets.composite | 59 + .../reference_multiplicity_zerotarget.composite | 51 + .../main/resources/reference_wiredbyimpl.composite | 59 + .../src/main/resources/referencename.composite | 49 + .../src/main/resources/referencename_1.composite | 50 + .../src/main/resources/referencename_2.composite | 51 + .../src/main/resources/referencename_3.composite | 52 + .../src/main/resources/referencename_4.composite | 53 + .../src/main/resources/serviceelement.composite | 42 + .../main/resources/servicewithbinding.composite | 33 + .../main/resources/servicewithinterface.composite | 32 + .../src/main/resources/zerocomponents.composite | 25 + .../src/main/resources/zeroimplelements.composite | 38 + .../assembly/component/ComponentBasicTestCase.java | 363 +++ .../component/ComponentPropertyTestCase.java | 166 ++ .../component/ComponentReferenceTestCase.java | 259 ++ .../assembly/component/ComponentTestCase.java | 230 ++ .../sca/1.5.1-RC4/vtest/assembly/composite/pom.xml | 49 + .../sca/vtest/assembly/composite/AService.java | 30 + .../sca/vtest/assembly/composite/BService.java | 28 + .../sca/vtest/assembly/composite/CService.java | 31 + .../sca/vtest/assembly/composite/CSubService.java | 30 + .../vtest/assembly/composite/CSuperService.java | 32 + .../vtest/assembly/composite/DLocalSubService.java | 30 + .../sca/vtest/assembly/composite/DServer.java | 49 + .../sca/vtest/assembly/composite/DService.java | 31 + .../assembly/composite/DServiceComponent.java | 47 + .../sca/vtest/assembly/composite/DSubService.java | 31 + .../vtest/assembly/composite/DSuperService.java | 32 + .../sca/vtest/assembly/composite/EService.java | 30 + .../sca/vtest/assembly/composite/FService.java | 33 + .../assembly/composite/impl/AServiceImpl.java | 49 + .../assembly/composite/impl/BServiceImpl.java | 37 + .../assembly/composite/impl/CServiceImpl.java | 41 + .../assembly/composite/impl/CSubServiceImpl.java | 37 + .../assembly/composite/impl/CSuperServiceImpl.java | 45 + .../assembly/composite/impl/DServiceImpl.java | 36 + .../assembly/composite/impl/DSubServiceImpl.java | 32 + .../assembly/composite/impl/DSuperServiceImpl.java | 43 + .../assembly/composite/impl/EServiceImpl.java | 31 + .../assembly/composite/impl/FServiceImpl.java | 46 + .../src/main/resources/composite.composite | 30 + .../src/main/resources/compositeb.composite | 31 + .../src/main/resources/compositec.composite | 32 + .../src/main/resources/compositecopy.composite | 32 + .../resources/differentinterface_inner.composite | 39 + .../resources/differentinterface_outer.composite | 32 + .../main/resources/differentlocalwire.composite | 53 + .../differentreferenceinterface_inner.composite | 42 + .../differentreferenceinterface_outer.composite | 37 + .../differentserviceinterface_inner.composite | 39 + .../differentserviceinterface_outer.composite | 32 + .../src/main/resources/dservicews.composite | 33 + .../src/main/resources/localcomponent.composite | 39 + .../src/main/resources/nonpromote_inner.composite | 43 + .../src/main/resources/nonpromote_outer.composite | 31 + .../resources/nonreferencepromote_inner.composite | 38 + .../resources/nonreferencepromote_outer.composite | 44 + .../resources/nonservicepromote_inner.composite | 42 + .../resources/nonservicepromote_outer.composite | 31 + .../resources/nonuniquereference_inner.composite | 34 + .../resources/nonuniquereference_outer.composite | 42 + .../resources/nonuniqueservice_inner.composite | 41 + .../resources/nonuniqueservice_outer.composite | 31 + .../src/main/resources/reference_inner.composite | 34 + .../src/main/resources/reference_outer.composite | 42 + .../src/main/resources/service_inner.composite | 42 + .../src/main/resources/service_outer.composite | 32 + .../src/main/resources/subinterfacewire.composite | 53 + .../subreferenceinterface_inner.composite | 43 + .../subreferenceinterface_outer.composite | 41 + .../resources/subserviceinterface_inner.composite | 39 + .../resources/subserviceinterface_outer.composite | 31 + .../composite/src/main/resources/wire.composite | 53 + .../assembly/composite/CompositeTestCase.java | 442 ++++ .../sca/1.5.1-RC4/vtest/assembly/ctypefile/pom.xml | 49 + .../sca/vtest/assembly/ctypefile/AService.java | 30 + .../sca/vtest/assembly/ctypefile/BService.java | 29 + .../sca/vtest/assembly/ctypefile/CService.java | 29 + .../sca/vtest/assembly/ctypefile/DService.java | 29 + .../assembly/ctypefile/impl/AServiceImpl.java | 53 + .../assembly/ctypefile/impl/BServiceImpl.java | 37 + .../assembly/ctypefile/impl/CServiceImpl.java | 38 + .../assembly/ctypefile/impl/DServiceImpl.java | 38 + .../src/main/resources/constrainingtype.composite | 29 + .../main/resources/noconstrainingtype.composite | 29 + .../ctypefile/impl/AServiceImpl.componentType | 30 + .../ctypefile/impl/BServiceImpl.componentType | 28 + .../ctypefile/impl/CServiceImpl.componentType | 29 + .../ctypefile/impl/CServiceImpl.constrainingType | 27 + .../ctypefile/impl/DServiceImpl.componentType | 29 + .../src/main/resources/typefile.composite | 40 + .../ctypefile/CompomnentTypeFileTestCase.java | 183 ++ tags/java/sca/1.5.1-RC4/vtest/assembly/pom.xml | 70 + .../java-api/annotations/conversational/pom.xml | 46 + .../annotations/conversational/AService.java | 30 + .../annotations/conversational/B1Service.java | 29 + .../annotations/conversational/B2Service.java | 32 + .../conversational/impl/AServiceImpl.java | 47 + .../conversational/impl/B1ServiceImpl.java | 38 + .../conversational/impl/B2ServiceImpl.java | 40 + .../src/main/resources/conversation.composite | 40 + .../ConversationAnnotationTestCase.java | 91 + .../annotations/conversationattributes/pom.xml | 53 + .../conversationattributes/AService.java | 30 + .../conversationattributes/B2Service.java | 32 + .../conversationattributes/BService.java | 32 + .../conversationattributes/CService.java | 30 + .../conversationattributes/impl/AServiceImpl.java | 80 + .../conversationattributes/impl/B2ServiceImpl.java | 42 + .../conversationattributes/impl/BServiceImpl.java | 42 + .../conversationattributes/impl/CServiceImpl.java | 37 + .../security/ACallbackHandler.java | 50 + .../security/JaasLoginModule.java | 179 ++ .../security/UserPrincipal.java | 66 + .../src/main/resources/AJass.config | 3 + .../src/main/resources/conversation.composite | 46 + .../src/main/resources/definitions.xml | 34 + .../src/main/resources/singleprincipal.composite | 38 + .../ConversationAttributesAnnotationTestCase.java | 93 + .../SinglePricipalTestCase.java | 70 + .../vtest/java-api/annotations/destroy/pom.xml | 44 + .../javaapi/annotations/destroy/AService.java | 29 + .../annotations/destroy/impl/AServiceErr1Impl.java | 39 + .../annotations/destroy/impl/AServiceErr2Impl.java | 39 + .../annotations/destroy/impl/AServiceErr3Impl.java | 40 + .../annotations/destroy/impl/AServiceErr4Impl.java | 39 + .../annotations/destroy/impl/AServiceImpl.java | 38 + .../src/main/resources/err1/AServiceErr1.composite | 28 + .../src/main/resources/err2/AServiceErr2.composite | 28 + .../src/main/resources/err3/AServiceErr3.composite | 28 + .../src/main/resources/err4/AServiceErr4.composite | 28 + .../src/main/resources/proper/AService.composite | 28 + .../destroy/DestroyAnnotationTestCase.java | 159 ++ .../java-api/annotations/endsconversation/pom.xml | 46 + .../annotations/endsconversation/AService.java | 32 + .../annotations/endsconversation/BService.java | 37 + .../endsconversation/impl/AServiceImpl.java | 70 + .../endsconversation/impl/BServiceImpl.java | 59 + .../src/main/resources/endsconversation.composite | 35 + .../endsconversation/EndsConversationTestCase.java | 112 + .../vtest/java-api/annotations/init/pom.xml | 44 + .../vtest/javaapi/annotations/init/AService.java | 30 + .../annotations/init/impl/AServiceErr1Impl.java | 43 + .../annotations/init/impl/AServiceErr2Impl.java | 43 + .../annotations/init/impl/AServiceErr3Impl.java | 44 + .../annotations/init/impl/AServiceErr4Impl.java | 43 + .../annotations/init/impl/AServiceImpl.java | 53 + .../src/main/resources/err1/AServiceErr1.composite | 28 + .../src/main/resources/err2/AServiceErr2.composite | 28 + .../src/main/resources/err3/AServiceErr3.composite | 28 + .../src/main/resources/err4/AServiceErr4.composite | 28 + .../src/main/resources/proper/AService.composite | 33 + .../annotations/init/InitAnnotationTestCase.java | 167 ++ .../vtest/java-api/annotations/oneway/pom.xml | 46 + .../vtest/javaapi/annotations/oneway/AService.java | 31 + .../vtest/javaapi/annotations/oneway/BService.java | 28 + .../annotations/oneway/impl/AServiceImpl.java | 37 + .../annotations/oneway/impl/BServiceImpl.java | 43 + .../oneway/src/main/resources/oneway.composite | 35 + .../oneway/OneWayAnnotationTestCase.java | 78 + .../1.5.1-RC4/vtest/java-api/annotations/pom.xml | 69 + .../vtest/java-api/annotations/property/pom.xml | 46 + .../javaapi/annotations/property/AService.java | 82 + .../annotations/property/AnotherAService.java | 48 + .../javaapi/annotations/property/BService.java | 32 + .../javaapi/annotations/property/CService.java | 38 + .../javaapi/annotations/property/impl/AObject.java | 35 + .../annotations/property/impl/AServiceImpl.java | 240 ++ .../property/impl/AnotherAServiceImpl.java | 116 + .../annotations/property/impl/BServiceImpl.java | 32 + .../annotations/property/impl/CServiceImpl1.java | 87 + .../annotations/property/impl/CServiceImpl2.java | 87 + .../annotations/property/impl/CServiceImpl3.java | 87 + .../annotations/property/impl/CServiceImpl4.java | 88 + .../annotations/property/impl/CServiceImpl5.java | 88 + .../annotations/property/impl/CServiceImpl6.java | 88 + .../property/src/main/resources/property.composite | 143 ++ .../property/PropertyAnnotationTestCase.java | 299 +++ .../vtest/java-api/annotations/reference/pom.xml | 46 + .../javaapi/annotations/reference/AService.java | 55 + .../javaapi/annotations/reference/BService.java | 31 + .../annotations/reference/impl/AServiceImpl.java | 215 ++ .../reference/impl/AUnannotatedServiceImpl.java | 141 ++ .../annotations/reference/impl/BServiceImpl.java | 32 + .../reference/src/main/resources/ab.composite | 51 + .../reference/ReferenceAnnotationTestCase.java | 229 ++ .../vtest/java-api/annotations/scope/pom.xml | 46 + .../vtest/javaapi/annotations/scope/AService.java | 29 + .../vtest/javaapi/annotations/scope/BService.java | 40 + .../vtest/javaapi/annotations/scope/CService.java | 40 + .../vtest/javaapi/annotations/scope/DService.java | 43 + .../vtest/javaapi/annotations/scope/FService.java | 43 + .../vtest/javaapi/annotations/scope/GService.java | 35 + .../vtest/javaapi/annotations/scope/HService.java | 36 + .../vtest/javaapi/annotations/scope/IService.java | 48 + .../vtest/javaapi/annotations/scope/JService.java | 33 + .../vtest/javaapi/annotations/scope/KService.java | 33 + .../vtest/javaapi/annotations/scope/LService.java | 41 + .../vtest/javaapi/annotations/scope/MService.java | 33 + .../vtest/javaapi/annotations/scope/NService.java | 33 + .../vtest/javaapi/annotations/scope/OService.java | 41 + .../annotations/scope/impl/AServiceImpl.java | 32 + .../annotations/scope/impl/BServiceImpl.java | 112 + .../annotations/scope/impl/CServiceImpl.java | 114 + .../annotations/scope/impl/DServiceImpl.java | 116 + .../annotations/scope/impl/FServiceImpl.java | 116 + .../annotations/scope/impl/GServiceImpl.java | 75 + .../annotations/scope/impl/HServiceImpl.java | 86 + .../annotations/scope/impl/IServiceImpl.java | 135 + .../annotations/scope/impl/JServiceImpl.java | 78 + .../annotations/scope/impl/KServiceImpl.java | 80 + .../annotations/scope/impl/LServiceImpl.java | 83 + .../annotations/scope/impl/MServiceImpl.java | 81 + .../annotations/scope/impl/NServiceImpl.java | 85 + .../annotations/scope/impl/OServiceImpl.java | 83 + .../scope/src/main/resources/scope.composite | 110 + .../annotations/scope/ScopeAnnotationTestCase.java | 476 ++++ .../vtest/java-api/annotations/service/pom.xml | 46 + .../javaapi/annotations/service/AService.java | 34 + .../javaapi/annotations/service/BService.java | 33 + .../javaapi/annotations/service/CService.java | 31 + .../javaapi/annotations/service/DService1.java | 28 + .../javaapi/annotations/service/DService2.java | 28 + .../javaapi/annotations/service/DService3.java | 28 + .../javaapi/annotations/service/EService.java | 30 + .../javaapi/annotations/service/FService.java | 30 + .../javaapi/annotations/service/GService1.java | 30 + .../javaapi/annotations/service/GService2.java | 26 + .../javaapi/annotations/service/HService.java | 50 + .../javaapi/annotations/service/IService.java | 54 + .../javaapi/annotations/service/impl/AObject.java | 33 + .../annotations/service/impl/AServiceImpl.java | 37 + .../annotations/service/impl/BServiceImpl.java | 111 + .../annotations/service/impl/CServiceImpl.java | 34 + .../annotations/service/impl/DServiceImpl.java | 41 + .../annotations/service/impl/EServiceImpl.java | 32 + .../annotations/service/impl/FServiceImpl.java | 37 + .../annotations/service/impl/FServiceImpl2.java | 26 + .../annotations/service/impl/GServiceImpl.java | 42 + .../annotations/service/impl/HServiceImpl.java | 105 + .../annotations/service/impl/IServiceImpl.java | 107 + .../service/src/main/resources/service.composite | 82 + .../service/ServiceAnnotationTestCase.java | 335 +++ .../vtest/java-api/apis/callablereference/pom.xml | 45 + .../javaapi/apis/callablereference/AComponent.java | 38 + .../javaapi/apis/callablereference/BCallback.java | 26 + .../javaapi/apis/callablereference/BComponent.java | 38 + .../callablereference/impl/AComponentImpl.java | 104 + .../callablereference/impl/BComponentImpl.java | 70 + .../src/main/resources/callablereference.composite | 34 + .../CallableReferenceTestCase.java | 118 + .../vtest/java-api/apis/componentcontext/pom.xml | 45 + .../javaapi/apis/componentcontext/AComponent.java | 42 + .../javaapi/apis/componentcontext/BComponent.java | 29 + .../javaapi/apis/componentcontext/BService.java | 34 + .../javaapi/apis/componentcontext/CService.java | 29 + .../javaapi/apis/componentcontext/DComponent.java | 29 + .../apis/componentcontext/impl/AComponentImpl.java | 124 + .../impl/AUnannotatedComponentImpl.java | 121 + .../apis/componentcontext/impl/BComponentImpl.java | 52 + .../apis/componentcontext/impl/DComponentImpl.java | 32 + .../src/main/resources/ab.composite | 47 + .../componentcontext/ComponentContextTestCase.java | 191 ++ .../vtest/java-api/apis/conversation/pom.xml | 45 + .../javaapi/apis/conversation/AComponent.java | 34 + .../javaapi/apis/conversation/BComponent.java | 39 + .../apis/conversation/impl/AComponentImpl.java | 73 + .../apis/conversation/impl/BComponentImpl.java | 78 + .../src/main/resources/conversation.composite | 34 + .../apis/conversation/ConversationTestCase.java | 70 + .../vtest/java-api/apis/exception/pom.xml | 45 + .../vtest/javaapi/apis/exception/AComponent.java | 40 + .../vtest/javaapi/apis/exception/BCallback.java | 26 + .../vtest/javaapi/apis/exception/BComponent.java | 35 + .../vtest/javaapi/apis/exception/CComponent.java | 34 + .../vtest/javaapi/apis/exception/DComponent.java | 33 + .../vtest/javaapi/apis/exception/DException.java | 30 + .../apis/exception/impl/AComponentImpl.java | 128 + .../apis/exception/impl/BComponentImpl.java | 64 + .../apis/exception/impl/CComponentImpl.java | 50 + .../apis/exception/impl/DComponentImpl.java | 37 + .../src/main/resources/exception.composite | 44 + .../javaapi/apis/exception/ExceptionTestCase.java | 132 + .../java/sca/1.5.1-RC4/vtest/java-api/apis/pom.xml | 64 + .../vtest/java-api/apis/requestcontext/pom.xml | 45 + .../javaapi/apis/requestcontext/AComponent.java | 35 + .../javaapi/apis/requestcontext/BCallback.java | 27 + .../javaapi/apis/requestcontext/BComponent.java | 35 + .../apis/requestcontext/impl/AComponentImpl.java | 102 + .../apis/requestcontext/impl/BComponentImpl.java | 61 + .../src/main/resources/requestcontext.composite | 34 + .../requestcontext/RequestContextTestCase.java | 109 + .../vtest/java-api/apis/servicereference/pom.xml | 45 + .../javaapi/apis/servicereference/AComponent.java | 37 + .../javaapi/apis/servicereference/BCallback.java | 26 + .../javaapi/apis/servicereference/BComponent.java | 38 + .../javaapi/apis/servicereference/CComponent.java | 27 + .../apis/servicereference/impl/AComponentImpl.java | 119 + .../apis/servicereference/impl/BComponentImpl.java | 74 + .../apis/servicereference/impl/CComponentImpl.java | 38 + .../apis/servicereference/impl/TestObject.java | 37 + .../src/main/resources/servicereference.composite | 39 + .../servicereference/ServiceReferenceTestCase.java | 106 + .../vtest/java-api/conversation/callback/pom.xml | 46 + .../javaapi/conversation/callback/AService.java | 30 + .../conversation/callback/AServiceCallback.java | 33 + .../javaapi/conversation/callback/BService.java | 40 + .../conversation/callback/BServiceCallback.java | 33 + .../javaapi/conversation/callback/CService.java | 39 + .../javaapi/conversation/callback/Utilities.java | 32 + .../callback/accessing/AServiceCallback.java | 33 + .../conversation/callback/accessing/BService.java | 41 + .../callback/accessing/impl/AServiceImpl.java | 67 + .../callback/accessing/impl/BServiceImpl.java | 60 + .../callback/custom/AServiceCallback.java | 33 + .../conversation/callback/custom/BService.java | 38 + .../callback/custom/CustomCallback.java | 35 + .../callback/custom/impl/AServiceImpl.java | 61 + .../callback/custom/impl/BServiceImpl.java | 49 + .../callback/custom/impl/CustomCallbackImpl.java | 38 + .../conversation/callback/id/AServiceCallback.java | 33 + .../javaapi/conversation/callback/id/BService.java | 41 + .../callback/id/impl/AServiceImpl.java | 73 + .../callback/id/impl/BServiceImpl.java | 60 + .../conversation/callback/impl/AServiceImpl.java | 61 + .../conversation/callback/impl/BServiceImpl.java | 73 + .../conversation/callback/impl/CServiceImpl.java | 49 + .../callback/local/AServiceCallback.java | 31 + .../conversation/callback/local/BService.java | 37 + .../callback/local/BServiceCallback.java | 31 + .../conversation/callback/local/CService.java | 37 + .../callback/local/impl/AServiceImpl.java | 61 + .../callback/local/impl/BServiceImpl.java | 73 + .../callback/local/impl/CServiceImpl.java | 49 + .../callback/multi/AServiceCallback.java | 33 + .../callback/multi/AServiceCallback2.java | 33 + .../conversation/callback/multi/BService.java | 39 + .../conversation/callback/multi/BService2.java | 39 + .../callback/multi/impl/AServiceImpl.java | 79 + .../callback/multi/impl/BServiceImpl.java | 64 + .../callback/stateless/BServiceCallback.java | 31 + .../conversation/callback/stateless/CService.java | 39 + .../callback/stateless/impl/BServiceImpl.java | 73 + .../callback/stateless/impl/BServiceImpl2.java | 81 + .../callback/stateless/impl/BServiceImpl3.java | 74 + .../callback/stateless/impl/CServiceImpl.java | 49 + .../main/resources/callback-accessing.composite | 34 + .../src/main/resources/callback-custom.composite | 40 + .../src/main/resources/callback-id.composite | 34 + .../src/main/resources/callback-local.composite | 40 + .../src/main/resources/callback-multi.composite | 35 + .../callback-stateless-callbackfieldnull.composite | 40 + .../callback-stateless-callbackid.composite | 40 + .../main/resources/callback-stateless.composite | 41 + .../callback/src/main/resources/callback.composite | 40 + .../conversation/callback/CallbackTestCase.java | 358 +++ .../java-api/conversation/callbackmixed/pom.xml | 46 + .../javaapi/conversation/callback/AService.java | 30 + .../conversation/callback/AServiceCallback.java | 33 + .../javaapi/conversation/callback/BService.java | 40 + .../conversation/callback/BServiceCallback.java | 33 + .../javaapi/conversation/callback/Utilities.java | 32 + .../conversation/callback/impl/AServiceImpl.java | 61 + .../conversation/callback/mixed/CService.java | 38 + .../callback/mixed/impl/BServiceImpl.java | 73 + .../callback/mixed/impl/CServiceImpl.java | 49 + .../src/main/resources/callback-mixed.composite | 38 + .../conversation/callback/CallbackTestCase.java | 73 + .../vtest/java-api/conversation/id/pom.xml | 46 + .../vtest/javaapi/conversation/id/AService.java | 39 + .../vtest/javaapi/conversation/id/BService.java | 41 + .../vtest/javaapi/conversation/id/CService.java | 37 + .../conversation/id/CustomConversationId.java | 54 + .../javaapi/conversation/id/impl/AServiceImpl.java | 69 + .../javaapi/conversation/id/impl/BServiceImpl.java | 65 + .../javaapi/conversation/id/impl/CServiceImpl.java | 56 + .../src/main/resources/conversation-id.composite | 40 + .../conversation/id/ConversationIDTestCase.java | 118 + .../vtest/java-api/conversation/lifetime/pom.xml | 46 + .../javaapi/conversation/lifetime/AService.java | 56 + .../conversation/lifetime/AServiceCallback.java | 35 + .../javaapi/conversation/lifetime/BService.java | 47 + .../lifetime/BServiceBusinessException.java | 53 + .../javaapi/conversation/lifetime/CService.java | 34 + .../javaapi/conversation/lifetime/DService.java | 38 + .../conversation/lifetime/impl/AServiceImpl.java | 197 ++ .../conversation/lifetime/impl/BServiceImpl.java | 64 + .../conversation/lifetime/impl/CServiceImpl.java | 40 + .../conversation/lifetime/impl/DServiceImpl.java | 78 + .../lifetime/src/main/resources/lifetime.composite | 45 + .../conversation/lifetime/LifetimeTestCase.java | 216 ++ .../vtest/java-api/conversation/parameters/pom.xml | 46 + .../javaapi/conversation/parameters/AService.java | 28 + .../javaapi/conversation/parameters/BService.java | 34 + .../javaapi/conversation/parameters/CService.java | 32 + .../conversation/parameters/impl/AServiceImpl.java | 47 + .../conversation/parameters/impl/BServiceImpl.java | 40 + .../conversation/parameters/impl/CServiceImpl.java | 44 + .../src/main/resources/parameters.composite | 40 + .../parameters/ConversationParametersTestCase.java | 69 + .../1.5.1-RC4/vtest/java-api/conversation/pom.xml | 64 + tags/java/sca/1.5.1-RC4/vtest/java-api/pom.xml | 70 + tags/java/sca/1.5.1-RC4/vtest/pom.xml | 56 + tags/java/sca/1.5.1-RC4/vtest/processcomments.rb | 198 ++ tags/java/sca/1.5.1-RC4/vtest/utilities/pom.xml | 48 + .../tuscany/sca/vtest/utilities/ServiceFinder.java | 106 + .../vtest/wsbinding/nowsdl/defaultbinding/pom.xml | 58 + .../wsbinding/nowsdl/defaultbinding/AService.java | 37 + .../wsbinding/nowsdl/defaultbinding/BService.java | 35 + .../wsbinding/nowsdl/defaultbinding/CService.java | 37 + .../wsbinding/nowsdl/defaultbinding/DService.java | 45 + .../nowsdl/defaultbinding/impl/AServiceImpl.java | 51 + .../nowsdl/defaultbinding/impl/BServiceImpl.java | 44 + .../nowsdl/defaultbinding/impl/CServiceImpl.java | 48 + .../nowsdl/defaultbinding/impl/DServiceImpl.java | 70 + .../src/main/resources/nowsdl.composite | 61 + .../NoWsdlDefaultBindingTestCase.java | 112 + .../wsbinding/nowsdl/multisoapbindings/pom.xml | 58 + .../nowsdl/multisoapbindings/AService.java | 37 + .../nowsdl/multisoapbindings/BService.java | 35 + .../nowsdl/multisoapbindings/CService.java | 37 + .../nowsdl/multisoapbindings/DService.java | 45 + .../multisoapbindings/impl/AServiceImpl.java | 51 + .../multisoapbindings/impl/BServiceImpl.java | 44 + .../multisoapbindings/impl/CServiceImpl.java | 48 + .../multisoapbindings/impl/DServiceImpl.java | 70 + .../resources/nowsdlmultisoapbindings.composite | 135 + .../multisoapbindings/GeneratedWSDLTestCase.java | 162 ++ .../NoWsdlMultiSoapBindingsTestCase.java | 213 ++ .../sca/1.5.1-RC4/vtest/wsbinding/nowsdl/pom.xml | 69 + .../vtest/wsbinding/nowsdl/promoted/pom.xml | 58 + .../vtest/wsbinding/nowsdl/promoted/AService.java | 37 + .../vtest/wsbinding/nowsdl/promoted/BService.java | 35 + .../wsbinding/nowsdl/promoted/BServiceSOAP.java | 35 + .../wsbinding/nowsdl/promoted/BServiceSOAP11.java | 35 + .../wsbinding/nowsdl/promoted/BServiceSOAP12.java | 35 + .../vtest/wsbinding/nowsdl/promoted/CService.java | 37 + .../vtest/wsbinding/nowsdl/promoted/DService.java | 45 + .../nowsdl/promoted/impl/AServiceImpl.java | 51 + .../nowsdl/promoted/impl/BServiceImpl.java | 44 + .../nowsdl/promoted/impl/BServiceSOAP11Impl.java | 44 + .../nowsdl/promoted/impl/BServiceSOAP12Impl.java | 44 + .../nowsdl/promoted/impl/BServiceSOAPImpl.java | 44 + .../nowsdl/promoted/impl/CServiceImpl.java | 48 + .../nowsdl/promoted/impl/DServiceImpl.java | 70 + .../src/main/resources/nowsdlpromoted.composite | 246 ++ .../nowsdl/promoted/NoWsdlPromoted1TestCase.java | 85 + .../nowsdl/promoted/NoWsdlPromoted2TestCase.java | 118 + .../vtest/wsbinding/nowsdl/soapversion/pom.xml | 58 + .../wsbinding/nowsdl/soapversion/AService.java | 37 + .../wsbinding/nowsdl/soapversion/BService.java | 35 + .../wsbinding/nowsdl/soapversion/BServiceSOAP.java | 35 + .../nowsdl/soapversion/BServiceSOAP11.java | 35 + .../nowsdl/soapversion/BServiceSOAP12.java | 35 + .../wsbinding/nowsdl/soapversion/CService.java | 37 + .../wsbinding/nowsdl/soapversion/DService.java | 45 + .../nowsdl/soapversion/impl/AServiceImpl.java | 51 + .../nowsdl/soapversion/impl/BServiceImpl.java | 44 + .../soapversion/impl/BServiceSOAP11Impl.java | 44 + .../soapversion/impl/BServiceSOAP12Impl.java | 44 + .../nowsdl/soapversion/impl/BServiceSOAPImpl.java | 44 + .../nowsdl/soapversion/impl/CServiceImpl.java | 48 + .../nowsdl/soapversion/impl/DServiceImpl.java | 70 + .../src/main/resources/nowsdlsoapversion.composite | 205 ++ .../nowsdl/soapversion/GeneratedWSDLTestCase.java | 438 ++++ .../soapversion/NoWsdlNoSoapVersionTestCase.java | 84 + .../soapversion/NoWsdlSoapVersionTestCase.java | 121 + tags/java/sca/1.5.1-RC4/vtest/wsbinding/pom.xml | 68 + .../sca/1.5.1-RC4/vtest/wsbinding/service/pom.xml | 58 + .../sca/vtest/wsbinding/AClientService.java | 29 + .../tuscany/sca/vtest/wsbinding/AService.java | 29 + .../vtest/wsbinding/impl/AClientServiceImpl.java | 38 + .../sca/vtest/wsbinding/impl/AServiceImpl.java | 33 + .../service/src/main/resources/aservice.wsdl | 139 ++ .../resources/endpoint-uri-resolution.composite | 103 + .../src/main/resources/endpointreference.composite | 40 + .../src/main/resources/wsdlbinding.composite | 45 + .../src/main/resources/wsdlendpoint.composite | 37 + .../service/src/main/resources/wsdlport.composite | 43 + .../src/main/resources/wsdlservice.composite | 43 + .../vtest/wsbinding/EndpointReferenceTestCase.java | 67 + .../wsbinding/EndpointUriResolutionTestCase.java | 209 ++ .../sca/vtest/wsbinding/WsdlBindingTestCase.java | 68 + .../sca/vtest/wsbinding/WsdlEndpointTestCase.java | 66 + .../sca/vtest/wsbinding/WsdlPortTestCase.java | 66 + .../sca/vtest/wsbinding/WsdlServiceTestCase.java | 69 + .../vtest/wsbinding/wsdlelement/binding/pom.xml | 58 + .../wsbinding/wsdlelement/binding/AService.java | 40 + .../wsbinding/wsdlelement/binding/BService.java | 35 + .../wsbinding/wsdlelement/binding/BService2.java | 33 + .../wsbinding/wsdlelement/binding/CService.java | 37 + .../wsbinding/wsdlelement/binding/DService.java | 45 + .../wsdlelement/binding/impl/AServiceImpl.java | 63 + .../wsdlelement/binding/impl/BService2Impl.java | 40 + .../wsdlelement/binding/impl/BServiceImpl.java | 44 + .../wsdlelement/binding/impl/CServiceImpl.java | 48 + .../wsdlelement/binding/impl/DServiceImpl.java | 70 + .../binding/src/main/resources/bservice.wsdl | 228 ++ .../binding/src/main/resources/cservice.wsdl | 173 ++ .../main/resources/wsdlelement.binding.composite | 114 + .../binding/WsdlElementBindingTestCase.java | 190 ++ .../1.5.1-RC4/vtest/wsbinding/wsdlelement/pom.xml | 68 + .../vtest/wsbinding/wsdlelement/port/pom.xml | 58 + .../vtest/wsbinding/wsdlelement/port/AService.java | 40 + .../vtest/wsbinding/wsdlelement/port/BService.java | 35 + .../wsbinding/wsdlelement/port/BService2.java | 33 + .../vtest/wsbinding/wsdlelement/port/CService.java | 37 + .../vtest/wsbinding/wsdlelement/port/DService.java | 45 + .../wsdlelement/port/impl/AServiceImpl.java | 62 + .../wsdlelement/port/impl/BService2Impl.java | 40 + .../wsdlelement/port/impl/BServiceImpl.java | 44 + .../wsdlelement/port/impl/CServiceImpl.java | 48 + .../wsdlelement/port/impl/DServiceImpl.java | 70 + .../port/src/main/resources/bservice.wsdl | 238 ++ .../port/src/main/resources/cservice.wsdl | 173 ++ .../src/main/resources/wsdlelement.port.composite | 115 + .../wsdlelement/port/WsdlElementPortTestCase.java | 188 ++ .../vtest/wsbinding/wsdlelement/service/pom.xml | 58 + .../wsbinding/wsdlelement/service/AService.java | 50 + .../wsbinding/wsdlelement/service/BService.java | 35 + .../wsbinding/wsdlelement/service/BService2.java | 33 + .../wsbinding/wsdlelement/service/CService.java | 37 + .../wsbinding/wsdlelement/service/DService.java | 45 + .../wsdlelement/service/impl/AServiceImpl.java | 88 + .../wsdlelement/service/impl/BService2Impl.java | 40 + .../wsdlelement/service/impl/BServiceImpl.java | 44 + .../wsdlelement/service/impl/CServiceImpl.java | 48 + .../wsdlelement/service/impl/DServiceImpl.java | 70 + .../service/src/main/resources/bservice.wsdl | 225 ++ .../service/src/main/resources/cservice.wsdl | 173 ++ .../main/resources/wsdlelement.service.composite | 145 ++ .../service/WsdlElementServiceTestCase.java | 235 ++ 8427 files changed, 668223 insertions(+) create mode 100644 tags/java/sca/1.5.1-RC4/demos/alert-aggregator-webapp/README create mode 100644 tags/java/sca/1.5.1-RC4/demos/alert-aggregator-webapp/alert-aggregator.png create mode 100644 tags/java/sca/1.5.1-RC4/demos/alert-aggregator-webapp/alert-aggregator.svg create mode 100644 tags/java/sca/1.5.1-RC4/demos/alert-aggregator-webapp/build-dojo.xml create mode 100644 tags/java/sca/1.5.1-RC4/demos/alert-aggregator-webapp/build.xml create mode 100644 tags/java/sca/1.5.1-RC4/demos/alert-aggregator-webapp/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/demos/alert-aggregator-webapp/src/main/java/org/apache/tuscany/sca/demos/aggregator/AlertTypeNonSDOImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/demos/alert-aggregator-webapp/src/main/java/org/apache/tuscany/sca/demos/aggregator/AlertsFeedServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/demos/alert-aggregator-webapp/src/main/java/org/apache/tuscany/sca/demos/aggregator/AlertsService.java create mode 100644 tags/java/sca/1.5.1-RC4/demos/alert-aggregator-webapp/src/main/java/org/apache/tuscany/sca/demos/aggregator/AlertsServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/demos/alert-aggregator-webapp/src/main/java/org/apache/tuscany/sca/demos/aggregator/AlertsSourcesService.java create mode 100644 tags/java/sca/1.5.1-RC4/demos/alert-aggregator-webapp/src/main/java/org/apache/tuscany/sca/demos/aggregator/AlertsSourcesServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/demos/alert-aggregator-webapp/src/main/java/org/apache/tuscany/sca/demos/aggregator/AlertsTypeNonSDOImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/demos/alert-aggregator-webapp/src/main/java/org/apache/tuscany/sca/demos/aggregator/ConfigTypeNonSDOImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/demos/alert-aggregator-webapp/src/main/java/org/apache/tuscany/sca/demos/aggregator/RSSCheckerService.java create mode 100644 tags/java/sca/1.5.1-RC4/demos/alert-aggregator-webapp/src/main/java/org/apache/tuscany/sca/demos/aggregator/RSSCheckerServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/demos/alert-aggregator-webapp/src/main/java/org/apache/tuscany/sca/demos/aggregator/SourceTypeNonSDOImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/demos/alert-aggregator-webapp/src/main/resources/Alerts.wsdl create mode 100644 tags/java/sca/1.5.1-RC4/demos/alert-aggregator-webapp/src/main/resources/Alerts.xsd create mode 100644 tags/java/sca/1.5.1-RC4/demos/alert-aggregator-webapp/src/main/resources/AlertsSources.wsdl create mode 100644 tags/java/sca/1.5.1-RC4/demos/alert-aggregator-webapp/src/main/resources/alerts-client.composite create mode 100644 tags/java/sca/1.5.1-RC4/demos/alert-aggregator-webapp/src/main/resources/alerts.composite create mode 100644 tags/java/sca/1.5.1-RC4/demos/alert-aggregator-webapp/src/main/resources/sources.xml create mode 100644 tags/java/sca/1.5.1-RC4/demos/alert-aggregator-webapp/src/main/webapp/AlertAggregator.html create mode 100644 tags/java/sca/1.5.1-RC4/demos/alert-aggregator-webapp/src/main/webapp/META-INF/sca-contribution.xml create mode 100644 tags/java/sca/1.5.1-RC4/demos/alert-aggregator-webapp/src/main/webapp/WEB-INF/geronimo-web.xml create mode 100644 tags/java/sca/1.5.1-RC4/demos/alert-aggregator-webapp/src/main/webapp/WEB-INF/web.xml create mode 100644 tags/java/sca/1.5.1-RC4/demos/alert-aggregator-webapp/src/main/webapp/pop.png create mode 100644 tags/java/sca/1.5.1-RC4/demos/alert-aggregator-webapp/src/main/webapp/rss.png create mode 100644 tags/java/sca/1.5.1-RC4/demos/alert-aggregator-webapp/src/main/webapp/service.smd create mode 100644 tags/java/sca/1.5.1-RC4/demos/alert-aggregator-webapp/src/main/webapp/sources.smd create mode 100644 tags/java/sca/1.5.1-RC4/demos/alert-aggregator-webapp/src/main/webapp/style.css create mode 100644 tags/java/sca/1.5.1-RC4/demos/alert-aggregator-webapp/src/test/java/org/apache/tuscany/sca/demos/aggregator/AlertsIntegrationTest.java create mode 100644 tags/java/sca/1.5.1-RC4/demos/bigbank-account/README create mode 100644 tags/java/sca/1.5.1-RC4/demos/bigbank-account/build-dojo.xml create mode 100644 tags/java/sca/1.5.1-RC4/demos/bigbank-account/build.xml create mode 100644 tags/java/sca/1.5.1-RC4/demos/bigbank-account/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/demos/bigbank-account/src/main/java/bigbank/account/checking/CheckingAccountDetails.java create mode 100644 tags/java/sca/1.5.1-RC4/demos/bigbank-account/src/main/java/bigbank/account/checking/CheckingAccountService.java create mode 100644 tags/java/sca/1.5.1-RC4/demos/bigbank-account/src/main/java/bigbank/account/checking/CheckingAccountServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/demos/bigbank-account/src/main/java/bigbank/account/savings/SavingsAccountDetails.java create mode 100644 tags/java/sca/1.5.1-RC4/demos/bigbank-account/src/main/java/bigbank/account/savings/SavingsAccountService.java create mode 100644 tags/java/sca/1.5.1-RC4/demos/bigbank-account/src/main/java/bigbank/account/savings/SavingsAccountServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/demos/bigbank-account/src/main/java/bigbank/account/security/AccountsDataPasswordCallbackHandler.java create mode 100644 tags/java/sca/1.5.1-RC4/demos/bigbank-account/src/main/java/bigbank/account/security/BigbankCheckingsAcl.java create mode 100644 tags/java/sca/1.5.1-RC4/demos/bigbank-account/src/main/java/bigbank/account/security/CheckingsDeptAuthImplementationPolicyProvider.java create mode 100644 tags/java/sca/1.5.1-RC4/demos/bigbank-account/src/main/java/bigbank/account/security/CheckingsDeptAuthPolicy.java create mode 100644 tags/java/sca/1.5.1-RC4/demos/bigbank-account/src/main/java/bigbank/account/security/CheckingsDeptAuthPolicyInterceptor.java create mode 100644 tags/java/sca/1.5.1-RC4/demos/bigbank-account/src/main/java/bigbank/account/security/CheckingsDeptAuthPolicyProviderFactory.java create mode 100644 tags/java/sca/1.5.1-RC4/demos/bigbank-account/src/main/java/bigbank/account/security/CheckingsDeptAuthorizationPolicyHandler.java create mode 100644 tags/java/sca/1.5.1-RC4/demos/bigbank-account/src/main/java/bigbank/account/security/CheckingsDeptAuthorizationPolicyProcessor.java create mode 100644 tags/java/sca/1.5.1-RC4/demos/bigbank-account/src/main/java/bigbank/account/stock/StockAccountDetails.java create mode 100644 tags/java/sca/1.5.1-RC4/demos/bigbank-account/src/main/java/bigbank/account/stock/StockAccountService.java create mode 100644 tags/java/sca/1.5.1-RC4/demos/bigbank-account/src/main/java/bigbank/account/stock/StockAccountServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/demos/bigbank-account/src/main/resources/CheckingsAccount.composite create mode 100644 tags/java/sca/1.5.1-RC4/demos/bigbank-account/src/main/resources/META-INF/sca-contribution.xml create mode 100644 tags/java/sca/1.5.1-RC4/demos/bigbank-account/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessor create mode 100644 tags/java/sca/1.5.1-RC4/demos/bigbank-account/src/main/resources/META-INF/services/org.apache.tuscany.sca.policy.util.PolicyHandler create mode 100644 tags/java/sca/1.5.1-RC4/demos/bigbank-account/src/main/resources/META-INF/services/org.apache.tuscany.sca.provider.PolicyProviderFactory create mode 100644 tags/java/sca/1.5.1-RC4/demos/bigbank-account/src/main/resources/SavingsAccount.composite create mode 100644 tags/java/sca/1.5.1-RC4/demos/bigbank-account/src/main/resources/StockAccount.composite create mode 100644 tags/java/sca/1.5.1-RC4/demos/bigbank-account/src/main/resources/definitions.xml create mode 100644 tags/java/sca/1.5.1-RC4/demos/bigbank-account/src/main/resources/web/AccountJSON.html create mode 100644 tags/java/sca/1.5.1-RC4/demos/bigbank-account/src/main/resources/web/style.css create mode 100644 tags/java/sca/1.5.1-RC4/demos/bigbank-account/src/main/resources/wsdl/AccountService.wsdl create mode 100644 tags/java/sca/1.5.1-RC4/demos/bigbank-calculator/README create mode 100644 tags/java/sca/1.5.1-RC4/demos/bigbank-calculator/build.xml create mode 100644 tags/java/sca/1.5.1-RC4/demos/bigbank-calculator/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/demos/bigbank-calculator/src/main/java/calculator/AddService.java create mode 100644 tags/java/sca/1.5.1-RC4/demos/bigbank-calculator/src/main/java/calculator/CalculatorService.java create mode 100644 tags/java/sca/1.5.1-RC4/demos/bigbank-calculator/src/main/java/calculator/CalculatorServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/demos/bigbank-calculator/src/main/java/calculator/DivideService.java create mode 100644 tags/java/sca/1.5.1-RC4/demos/bigbank-calculator/src/main/java/calculator/MultiplyService.java create mode 100644 tags/java/sca/1.5.1-RC4/demos/bigbank-calculator/src/main/java/calculator/SubtractService.java create mode 100644 tags/java/sca/1.5.1-RC4/demos/bigbank-calculator/src/main/java/calculator/demo/CalculatorServer.java create mode 100644 tags/java/sca/1.5.1-RC4/demos/bigbank-calculator/src/main/resources/Calculator.composite create mode 100644 tags/java/sca/1.5.1-RC4/demos/bigbank-calculator/src/main/resources/calculator/AddServiceImpl.js create mode 100644 tags/java/sca/1.5.1-RC4/demos/bigbank-calculator/src/main/resources/calculator/DivideServiceImpl.groovy create mode 100644 tags/java/sca/1.5.1-RC4/demos/bigbank-calculator/src/main/resources/calculator/MultiplyServiceImpl.py create mode 100644 tags/java/sca/1.5.1-RC4/demos/bigbank-calculator/src/main/resources/calculator/SubtractServiceImpl.rb create mode 100644 tags/java/sca/1.5.1-RC4/demos/bigbank-stockquote/README create mode 100644 tags/java/sca/1.5.1-RC4/demos/bigbank-stockquote/build.xml create mode 100644 tags/java/sca/1.5.1-RC4/demos/bigbank-stockquote/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/demos/bigbank-stockquote/src/main/java/stockquote/PasswordCallbackHandler.java create mode 100644 tags/java/sca/1.5.1-RC4/demos/bigbank-stockquote/src/main/java/stockquote/StockQuoteImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/demos/bigbank-stockquote/src/main/java/stockquote/StockQuoteService.java create mode 100644 tags/java/sca/1.5.1-RC4/demos/bigbank-stockquote/src/main/java/stockquote/demo/StockQuoteServer.java create mode 100644 tags/java/sca/1.5.1-RC4/demos/bigbank-stockquote/src/main/resources/StockQuote.composite create mode 100644 tags/java/sca/1.5.1-RC4/demos/bigbank-stockquote/src/main/resources/definitions.xml create mode 100644 tags/java/sca/1.5.1-RC4/demos/bigbank-stockquote/src/main/resources/security.properties create mode 100644 tags/java/sca/1.5.1-RC4/demos/bigbank-stockquote/src/main/resources/stockQuote.jks create mode 100644 tags/java/sca/1.5.1-RC4/demos/bigbank/README create mode 100644 tags/java/sca/1.5.1-RC4/demos/bigbank/bigbank.png create mode 100644 tags/java/sca/1.5.1-RC4/demos/bigbank/bigbank.svg create mode 100644 tags/java/sca/1.5.1-RC4/demos/bigbank/build-dojo.xml create mode 100644 tags/java/sca/1.5.1-RC4/demos/bigbank/build.xml create mode 100644 tags/java/sca/1.5.1-RC4/demos/bigbank/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/demos/bigbank/src/main/java/bigbank/account/AccountService.java create mode 100644 tags/java/sca/1.5.1-RC4/demos/bigbank/src/main/java/bigbank/account/AccountServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/demos/bigbank/src/main/java/bigbank/account/feed/AccountFeedImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/demos/bigbank/src/main/java/bigbank/client/BigBankClient.java create mode 100644 tags/java/sca/1.5.1-RC4/demos/bigbank/src/main/java/bigbank/demo/BigBankServer.java create mode 100644 tags/java/sca/1.5.1-RC4/demos/bigbank/src/main/java/bigbank/security/BigbankPasswordCallbackHandler.java create mode 100644 tags/java/sca/1.5.1-RC4/demos/bigbank/src/main/java/calculator/CalculatorService.java create mode 100644 tags/java/sca/1.5.1-RC4/demos/bigbank/src/main/java/stockquote/StockQuoteService.java create mode 100644 tags/java/sca/1.5.1-RC4/demos/bigbank/src/main/resources/BigBank.composite create mode 100644 tags/java/sca/1.5.1-RC4/demos/bigbank/src/main/resources/META-INF/sca-contribution.xml create mode 100644 tags/java/sca/1.5.1-RC4/demos/bigbank/src/main/resources/bigbank.jks create mode 100644 tags/java/sca/1.5.1-RC4/demos/bigbank/src/main/resources/definitions.xml create mode 100644 tags/java/sca/1.5.1-RC4/demos/bigbank/src/main/resources/security.properties create mode 100644 tags/java/sca/1.5.1-RC4/demos/bigbank/src/main/resources/web/AccountJSON.html create mode 100644 tags/java/sca/1.5.1-RC4/demos/bigbank/src/main/resources/web/style.css create mode 100644 tags/java/sca/1.5.1-RC4/demos/bigbank/src/main/resources/wsdl/AccountService.wsdl create mode 100644 tags/java/sca/1.5.1-RC4/demos/bigbank/src/test/java/test/BigBankTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/demos/mortgage-creditcheck/README create mode 100644 tags/java/sca/1.5.1-RC4/demos/mortgage-creditcheck/build.xml create mode 100644 tags/java/sca/1.5.1-RC4/demos/mortgage-creditcheck/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/demos/mortgage-creditcheck/src/main/java/credit/CreditCheck.java create mode 100644 tags/java/sca/1.5.1-RC4/demos/mortgage-creditcheck/src/main/java/credit/CreditCheckImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/demos/mortgage-creditcheck/src/main/java/credit/CreditCheckServer.java create mode 100644 tags/java/sca/1.5.1-RC4/demos/mortgage-creditcheck/src/main/resources/CreditCheck.composite create mode 100644 tags/java/sca/1.5.1-RC4/demos/mortgage-creditcheck/src/main/resources/wsdl/credit.wsdl create mode 100644 tags/java/sca/1.5.1-RC4/demos/mortgage-creditcheck/src/main/webapp/META-INF/sca-contribution.xml create mode 100644 tags/java/sca/1.5.1-RC4/demos/mortgage-creditcheck/src/main/webapp/WEB-INF/web.xml create mode 100644 tags/java/sca/1.5.1-RC4/demos/mortgage-loanapproval/README create mode 100644 tags/java/sca/1.5.1-RC4/demos/mortgage-loanapproval/build.xml create mode 100644 tags/java/sca/1.5.1-RC4/demos/mortgage-loanapproval/doc/credit_composite.jpg create mode 100644 tags/java/sca/1.5.1-RC4/demos/mortgage-loanapproval/doc/credit_composite.png create mode 100644 tags/java/sca/1.5.1-RC4/demos/mortgage-loanapproval/doc/loan_approval.jpg create mode 100644 tags/java/sca/1.5.1-RC4/demos/mortgage-loanapproval/doc/loan_approval.png create mode 100644 tags/java/sca/1.5.1-RC4/demos/mortgage-loanapproval/doc/mortgage_assembly0.jpg create mode 100644 tags/java/sca/1.5.1-RC4/demos/mortgage-loanapproval/doc/mortgage_assembly0.png create mode 100644 tags/java/sca/1.5.1-RC4/demos/mortgage-loanapproval/doc/mortgage_assembly1.jpg create mode 100644 tags/java/sca/1.5.1-RC4/demos/mortgage-loanapproval/doc/mortgage_assembly1.png create mode 100644 tags/java/sca/1.5.1-RC4/demos/mortgage-loanapproval/doc/mortgage_assembly2.jpg create mode 100644 tags/java/sca/1.5.1-RC4/demos/mortgage-loanapproval/doc/mortgage_assembly2.png create mode 100644 tags/java/sca/1.5.1-RC4/demos/mortgage-loanapproval/doc/mortgage_composite.jpg create mode 100644 tags/java/sca/1.5.1-RC4/demos/mortgage-loanapproval/doc/mortgage_composite.png create mode 100644 tags/java/sca/1.5.1-RC4/demos/mortgage-loanapproval/doc/mortgage_diagrams.doc create mode 100644 tags/java/sca/1.5.1-RC4/demos/mortgage-loanapproval/doc/mortgage_package1.jpg create mode 100644 tags/java/sca/1.5.1-RC4/demos/mortgage-loanapproval/doc/mortgage_package1.png create mode 100644 tags/java/sca/1.5.1-RC4/demos/mortgage-loanapproval/doc/mortgage_package2.jpg create mode 100644 tags/java/sca/1.5.1-RC4/demos/mortgage-loanapproval/doc/mortgage_package2.png create mode 100644 tags/java/sca/1.5.1-RC4/demos/mortgage-loanapproval/doc/mortgage_scenario.jpg create mode 100644 tags/java/sca/1.5.1-RC4/demos/mortgage-loanapproval/doc/mortgage_scenario.png create mode 100644 tags/java/sca/1.5.1-RC4/demos/mortgage-loanapproval/mortgage_assembly.png create mode 100644 tags/java/sca/1.5.1-RC4/demos/mortgage-loanapproval/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/demos/mortgage-loanapproval/src/main/java/mortgage/CreditCheck.java create mode 100644 tags/java/sca/1.5.1-RC4/demos/mortgage-loanapproval/src/main/java/mortgage/CreditCheckImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/demos/mortgage-loanapproval/src/main/java/mortgage/Customer.java create mode 100644 tags/java/sca/1.5.1-RC4/demos/mortgage-loanapproval/src/main/java/mortgage/InterestRateQuote.java create mode 100644 tags/java/sca/1.5.1-RC4/demos/mortgage-loanapproval/src/main/java/mortgage/InterestRateQuoteImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/demos/mortgage-loanapproval/src/main/java/mortgage/LoanApproval.java create mode 100644 tags/java/sca/1.5.1-RC4/demos/mortgage-loanapproval/src/main/java/mortgage/LoanApprovalImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/demos/mortgage-loanapproval/src/main/java/mortgage/MortgageCalculator.java create mode 100644 tags/java/sca/1.5.1-RC4/demos/mortgage-loanapproval/src/main/java/mortgage/MortgageCalculatorImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/demos/mortgage-loanapproval/src/main/java/mortgage/MortgageClient.java create mode 100644 tags/java/sca/1.5.1-RC4/demos/mortgage-loanapproval/src/main/java/mortgage/RiskAssessment.java create mode 100644 tags/java/sca/1.5.1-RC4/demos/mortgage-loanapproval/src/main/java/mortgage/RiskAssessmentImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/demos/mortgage-loanapproval/src/main/resources/Mortgage.composite create mode 100644 tags/java/sca/1.5.1-RC4/demos/mortgage-loanapproval/src/main/resources/Mortgage1.composite create mode 100644 tags/java/sca/1.5.1-RC4/demos/mortgage-loanapproval/src/main/resources/MortgageCalculator.componentType create mode 100644 tags/java/sca/1.5.1-RC4/demos/mortgage-loanapproval/src/main/resources/MortgageCalculator.js create mode 100644 tags/java/sca/1.5.1-RC4/demos/mortgage-loanapproval/src/main/resources/wsdl/credit.wsdl create mode 100644 tags/java/sca/1.5.1-RC4/demos/mortgage-loanapproval/src/test/java/mortgage/MortgageClientTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/demos/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/demos/xml-bigbank/README create mode 100644 tags/java/sca/1.5.1-RC4/demos/xml-bigbank/build.xml create mode 100644 tags/java/sca/1.5.1-RC4/demos/xml-bigbank/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/demos/xml-bigbank/src/main/java/bigbank/AccountData.java create mode 100644 tags/java/sca/1.5.1-RC4/demos/xml-bigbank/src/main/java/bigbank/AccountDataImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/demos/xml-bigbank/src/main/java/bigbank/AccountService.java create mode 100644 tags/java/sca/1.5.1-RC4/demos/xml-bigbank/src/main/java/bigbank/AccountServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/demos/xml-bigbank/src/main/java/bigbank/BigBankClient.java create mode 100644 tags/java/sca/1.5.1-RC4/demos/xml-bigbank/src/main/java/bigbank/BigBankServer.java create mode 100644 tags/java/sca/1.5.1-RC4/demos/xml-bigbank/src/main/java/bigbank/CurrencyExchange.java create mode 100644 tags/java/sca/1.5.1-RC4/demos/xml-bigbank/src/main/java/bigbank/ExchangeRate.java create mode 100644 tags/java/sca/1.5.1-RC4/demos/xml-bigbank/src/main/java/bigbank/ExchangeRateImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/demos/xml-bigbank/src/main/java/bigbank/StockQuote.java create mode 100644 tags/java/sca/1.5.1-RC4/demos/xml-bigbank/src/main/java/bigbank/StockValue.java create mode 100644 tags/java/sca/1.5.1-RC4/demos/xml-bigbank/src/main/resources/BigBank.composite create mode 100644 tags/java/sca/1.5.1-RC4/demos/xml-bigbank/src/main/resources/accounts.xml create mode 100644 tags/java/sca/1.5.1-RC4/demos/xml-bigbank/src/main/resources/customer.xsd create mode 100644 tags/java/sca/1.5.1-RC4/demos/xml-bigbank/src/main/resources/stock.xq create mode 100644 tags/java/sca/1.5.1-RC4/demos/xml-bigbank/src/main/resources/wsdl/StockQuotes.wsdl create mode 100644 tags/java/sca/1.5.1-RC4/demos/xml-bigbank/xml-bigbank.png create mode 100644 tags/java/sca/1.5.1-RC4/demos/xml-bigbank/xml-bigbank.svg create mode 100644 tags/java/sca/1.5.1-RC4/distribution/bundle/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/distribution/manifest/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/distribution/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/distribution/src/main/assembly/bin.xml create mode 100644 tags/java/sca/1.5.1-RC4/distribution/src/main/assembly/src.xml create mode 100644 tags/java/sca/1.5.1-RC4/distribution/src/main/release/CHANGES create mode 100644 tags/java/sca/1.5.1-RC4/distribution/src/main/release/README create mode 100644 tags/java/sca/1.5.1-RC4/distribution/src/main/release/RELEASE_NOTES create mode 100644 tags/java/sca/1.5.1-RC4/distribution/src/main/release/bin/INSTALL create mode 100644 tags/java/sca/1.5.1-RC4/distribution/src/main/release/bin/LICENSE create mode 100644 tags/java/sca/1.5.1-RC4/distribution/src/main/release/bin/NOTICE create mode 100644 tags/java/sca/1.5.1-RC4/distribution/src/main/release/src/BUILDING create mode 100644 tags/java/sca/1.5.1-RC4/distribution/src/main/release/src/LICENSE create mode 100644 tags/java/sca/1.5.1-RC4/distribution/src/main/release/src/NOTICE create mode 100644 tags/java/sca/1.5.1-RC4/distribution/src/main/xsl/srcbuild_paths.xsl create mode 100644 tags/java/sca/1.5.1-RC4/itest/atom/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/atom/src/main/java/test/abdera/impl/NewsServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/atom/src/test/java/test/abdera/NewsServiceTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/atom/src/test/resources/news/news.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/atom/src/test/resources/news/news.wsdl create mode 100644 tags/java/sca/1.5.1-RC4/itest/atom/src/test/resources/news/news.xsd create mode 100644 tags/java/sca/1.5.1-RC4/itest/binding-sca-jms/client/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/binding-sca-jms/client/src/main/java/itest/MyClientImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/binding-sca-jms/client/src/main/java/itest/MyService.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/binding-sca-jms/client/src/main/resources/META-INF/sca-contribution.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/binding-sca-jms/client/src/main/resources/MyClient.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/binding-sca-jms/client/src/test/java/itest/MyClientTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/binding-sca-jms/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/binding-sca-jms/service/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/binding-sca-jms/service/src/main/java/itest/MyService.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/binding-sca-jms/service/src/main/java/itest/MyServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/binding-sca-jms/service/src/main/resources/META-INF/sca-contribution.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/binding-sca-jms/service/src/main/resources/MyService.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/binding-sca-jms/service/src/test/java/itest/MyServiceTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/bpel/helloworld-reference/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/bpel/helloworld-reference/src/test/java/greetings/GreetingsService.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/bpel/helloworld-reference/src/test/java/greetings/GreetingsServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/bpel/helloworld-reference/src/test/java/greetings/GreetingsTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/bpel/helloworld-reference/src/test/java/helloworld/HelloWorldService.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/bpel/helloworld-reference/src/test/java/helloworld/HelloWorldServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/bpel/helloworld-reference/src/test/java/helloworld/HelloWorldTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/bpel/helloworld-reference/src/test/resources/greetings/greetings.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/bpel/helloworld-reference/src/test/resources/greetings/greetings.wsdl create mode 100644 tags/java/sca/1.5.1-RC4/itest/bpel/helloworld-reference/src/test/resources/helloworld/helloworld.bpel create mode 100644 tags/java/sca/1.5.1-RC4/itest/bpel/helloworld-reference/src/test/resources/helloworld/helloworld.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/bpel/helloworld-reference/src/test/resources/helloworld/helloworld.wsdl create mode 100644 tags/java/sca/1.5.1-RC4/itest/bpel/helloworld-reference/src/test/resources/log4j.properties create mode 100644 tags/java/sca/1.5.1-RC4/itest/bpel/helloworld-ws/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/bpel/helloworld-ws/src/test/java/helloworld/HelloWorld.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/bpel/helloworld-ws/src/test/java/helloworld/HelloWorldTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/bpel/helloworld-ws/src/test/resources/helloworld/helloworld.bpel create mode 100644 tags/java/sca/1.5.1-RC4/itest/bpel/helloworld-ws/src/test/resources/helloworld/helloworld.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/bpel/helloworld-ws/src/test/resources/helloworld/helloworld.wsdl create mode 100644 tags/java/sca/1.5.1-RC4/itest/bpel/helloworld-ws/src/test/resources/log4j.properties create mode 100644 tags/java/sca/1.5.1-RC4/itest/bpel/helloworld/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/bpel/helloworld/src/test/java/helloworld/HelloWorld.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/bpel/helloworld/src/test/java/helloworld/HelloWorldTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/bpel/helloworld/src/test/resources/helloworld/helloworld.bpel create mode 100644 tags/java/sca/1.5.1-RC4/itest/bpel/helloworld/src/test/resources/helloworld/helloworld.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/bpel/helloworld/src/test/resources/helloworld/helloworld.wsdl create mode 100644 tags/java/sca/1.5.1-RC4/itest/bpel/helloworld/src/test/resources/log4j.properties create mode 100644 tags/java/sca/1.5.1-RC4/itest/bpel/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/build-was-integration.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/builder/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/builder/src/main/java/org/apache/tuscany/sca/itest/builder/ComponentDImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/builder/src/main/java/org/apache/tuscany/sca/itest/builder/ComponentDReferenceMultiplicityImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/builder/src/main/java/org/apache/tuscany/sca/itest/builder/ComponentEImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/builder/src/main/java/org/apache/tuscany/sca/itest/builder/ComponentFImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/builder/src/main/java/org/apache/tuscany/sca/itest/builder/Service3.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/builder/src/main/java/org/apache/tuscany/sca/itest/builder/Service3a.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/builder/src/main/resources/scenario1/META-INF/sca-contribution.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/builder/src/main/resources/scenario1/scenario1.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/builder/src/main/resources/scenario1/scenario1a.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/builder/src/main/resources/scenario10/META-INF/sca-contribution.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/builder/src/main/resources/scenario10/scenario10.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/builder/src/main/resources/scenario10/scenario10a.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/builder/src/main/resources/scenario10/service3.wsdl create mode 100644 tags/java/sca/1.5.1-RC4/itest/builder/src/main/resources/scenario11/META-INF/sca-contribution.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/builder/src/main/resources/scenario11/scenario11.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/builder/src/main/resources/scenario11/scenario11a.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/builder/src/main/resources/scenario11/service3.wsdl create mode 100644 tags/java/sca/1.5.1-RC4/itest/builder/src/main/resources/scenario12/META-INF/sca-contribution.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/builder/src/main/resources/scenario12/scenario12.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/builder/src/main/resources/scenario12/scenario12a.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/builder/src/main/resources/scenario13/META-INF/sca-contribution.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/builder/src/main/resources/scenario13/scenario13.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/builder/src/main/resources/scenario13/scenario13a.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/builder/src/main/resources/scenario2/META-INF/sca-contribution.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/builder/src/main/resources/scenario2/scenario2.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/builder/src/main/resources/scenario2/scenario2a.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/builder/src/main/resources/scenario3/META-INF/sca-contribution.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/builder/src/main/resources/scenario3/scenario3.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/builder/src/main/resources/scenario3/scenario3a.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/builder/src/main/resources/scenario4/META-INF/sca-contribution.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/builder/src/main/resources/scenario4/scenario4.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/builder/src/main/resources/scenario4/scenario4a.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/builder/src/main/resources/scenario5/META-INF/sca-contribution.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/builder/src/main/resources/scenario5/scenario5.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/builder/src/main/resources/scenario5/scenario5a.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/builder/src/main/resources/scenario5/scenarios.wsdl create mode 100644 tags/java/sca/1.5.1-RC4/itest/builder/src/main/resources/scenario6/META-INF/sca-contribution.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/builder/src/main/resources/scenario6/scenario6.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/builder/src/main/resources/scenario6/scenario6a.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/builder/src/main/resources/scenario6/scenarios.wsdl create mode 100644 tags/java/sca/1.5.1-RC4/itest/builder/src/main/resources/scenario7/META-INF/sca-contribution.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/builder/src/main/resources/scenario7/scenario7.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/builder/src/main/resources/scenario7/scenario7a.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/builder/src/main/resources/scenario7/scenarios.wsdl create mode 100644 tags/java/sca/1.5.1-RC4/itest/builder/src/main/resources/scenario8/META-INF/sca-contribution.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/builder/src/main/resources/scenario8/scenario8.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/builder/src/main/resources/scenario8/scenario8a.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/builder/src/main/resources/scenario8/scenarios.wsdl create mode 100644 tags/java/sca/1.5.1-RC4/itest/builder/src/main/resources/scenario9/META-INF/sca-contribution.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/builder/src/main/resources/scenario9/scenario9.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/builder/src/main/resources/scenario9/scenario9a.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/builder/src/test/java/org/apache/tuscany/sca/itest/builder/BuilderTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/builder/src/test/java/org/apache/tuscany/sca/itest/builder/CompositeBuilderNonWiringImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/builder/src/test/java/org/apache/tuscany/sca/itest/builder/CustomCompositeBuilder.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/builder/src/test/java/org/apache/tuscany/sca/itest/builder/TestUtils.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/callablereferences-ws/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/callablereferences-ws/src/main/java/com/example/ExampleClient.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/callablereferences-ws/src/main/java/com/example/ExampleClientImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/callablereferences-ws/src/main/java/com/example/ExampleService.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/callablereferences-ws/src/main/java/com/example/ExampleServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/callablereferences-ws/src/main/java/org/apache/tuscany/sca/itest/callablerefwsreturn/Alpha.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/callablereferences-ws/src/main/java/org/apache/tuscany/sca/itest/callablerefwsreturn/AlphaImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/callablereferences-ws/src/main/java/org/apache/tuscany/sca/itest/callablerefwsreturn/Beta.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/callablereferences-ws/src/main/java/org/apache/tuscany/sca/itest/callablerefwsreturn/BetaImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/callablereferences-ws/src/main/java/org/apache/tuscany/sca/itest/callablerefwsreturn/Gamma.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/callablereferences-ws/src/main/java/org/apache/tuscany/sca/itest/callablerefwsreturn/GammaImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/callablereferences-ws/src/main/resources/CallableReferenceWsReturnTest.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/callablereferences-ws/src/main/resources/example.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/callablereferences-ws/src/test/java/com/example/ExampleTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/callablereferences-ws/src/test/java/org/apache/tuscany/sca/itest/callablerefws/CallableReferenceReturnTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/callablereferences/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/callablereferences/src/main/java/org/apache/tuscany/sca/itest/callableref/AComponent.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/callablereferences/src/main/java/org/apache/tuscany/sca/itest/callableref/AComponentImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/callablereferences/src/main/java/org/apache/tuscany/sca/itest/callableref/BComponent.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/callablereferences/src/main/java/org/apache/tuscany/sca/itest/callableref/BComponentImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/callablereferences/src/main/java/org/apache/tuscany/sca/itest/callableref/CComponent.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/callablereferences/src/main/java/org/apache/tuscany/sca/itest/callableref/CComponentImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/callablereferences/src/main/java/org/apache/tuscany/sca/itest/callableref/DComponent.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/callablereferences/src/main/java/org/apache/tuscany/sca/itest/callableref/DComponentImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/callablereferences/src/main/java/org/apache/tuscany/sca/itest/callablerefconversational/ConversationalService.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/callablereferences/src/main/java/org/apache/tuscany/sca/itest/callablerefconversational/ConversationalServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/callablereferences/src/main/java/org/apache/tuscany/sca/itest/callablerefreturn/Alpha.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/callablereferences/src/main/java/org/apache/tuscany/sca/itest/callablerefreturn/AlphaImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/callablereferences/src/main/java/org/apache/tuscany/sca/itest/callablerefreturn/Beta.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/callablereferences/src/main/java/org/apache/tuscany/sca/itest/callablerefreturn/BetaImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/callablereferences/src/main/java/org/apache/tuscany/sca/itest/callablerefreturn/Gamma.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/callablereferences/src/main/java/org/apache/tuscany/sca/itest/callablerefreturn/GammaImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/callablereferences/src/main/resources/CallableReferenceConversationalTest.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/callablereferences/src/main/resources/CallableReferenceReturnTest.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/callablereferences/src/main/resources/CallableReferenceTest.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/callablereferences/src/main/resources/nodeA/CompositeA.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/callablereferences/src/main/resources/nodeA/META-INF/sca-contribution.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/callablereferences/src/main/resources/nodeB/CompositeB.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/callablereferences/src/main/resources/nodeB/META-INF/sca-contribution.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/callablereferences/src/test/java/org/apache/tuscany/sca/itest/callableref/CallableReferenceConversationalTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/callablereferences/src/test/java/org/apache/tuscany/sca/itest/callableref/CallableReferenceRemoteTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/callablereferences/src/test/java/org/apache/tuscany/sca/itest/callableref/CallableReferenceReturnTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/callablereferences/src/test/java/org/apache/tuscany/sca/itest/callableref/CallableReferenceTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/callback-api/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/callback-api/src/main/java/org/apache/tuscany/sca/test/CallBackApiCallBack.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/callback-api/src/main/java/org/apache/tuscany/sca/test/CallBackApiClient.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/callback-api/src/main/java/org/apache/tuscany/sca/test/CallBackApiClientImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/callback-api/src/main/java/org/apache/tuscany/sca/test/CallBackApiService.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/callback-api/src/main/java/org/apache/tuscany/sca/test/CallBackApiServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/callback-api/src/main/resources/CallBackApiTest.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/callback-api/src/main/resources/META-INF/sca-contribution.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/callback-api/src/test/java/org/apache/tuscany/sca/test/CallBackApiTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/callback-basic/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/callback-basic/src/main/java/org/apache/tuscany/sca/test/CallBackBasicCallBack.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/callback-basic/src/main/java/org/apache/tuscany/sca/test/CallBackBasicClient.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/callback-basic/src/main/java/org/apache/tuscany/sca/test/CallBackBasicClientImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/callback-basic/src/main/java/org/apache/tuscany/sca/test/CallBackBasicService.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/callback-basic/src/main/java/org/apache/tuscany/sca/test/CallBackBasicServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/callback-basic/src/main/resources/CallBackBasicTest.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/callback-basic/src/main/resources/META-INF/sca-contribution.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/callback-basic/src/test/java/org/apache/tuscany/sca/test/CallBackBasicTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/callback-complex-type/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/callback-complex-type/src/main/java/org/apache/tuscany/sca/test/CallBackCTypeCallBack.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/callback-complex-type/src/main/java/org/apache/tuscany/sca/test/CallBackCTypeClient.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/callback-complex-type/src/main/java/org/apache/tuscany/sca/test/CallBackCTypeClientImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/callback-complex-type/src/main/java/org/apache/tuscany/sca/test/CallBackCTypeService.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/callback-complex-type/src/main/java/org/apache/tuscany/sca/test/CallBackCTypeServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/callback-complex-type/src/main/resources/CallBackCTypeClient.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/callback-complex-type/src/main/resources/org/apache/tuscany/sca/test/CallBackCTypeServiceImpl.componentType create mode 100644 tags/java/sca/1.5.1-RC4/itest/callback-complex-type/src/test/java/org/apache/tuscany/sca/test/CallBackCTypeTestCaseFIXME.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/callback-composite-scope/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/callback-composite-scope/src/main/java/org/apache/tuscany/sca/test/Helloworld.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/callback-composite-scope/src/main/java/org/apache/tuscany/sca/test/HelloworldCallback.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/callback-composite-scope/src/main/java/org/apache/tuscany/sca/test/HelloworldDelegate.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/callback-composite-scope/src/main/java/org/apache/tuscany/sca/test/HelloworldDelegateImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/callback-composite-scope/src/main/java/org/apache/tuscany/sca/test/HelloworldImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/callback-composite-scope/src/main/resources/HelloworldDelegate.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/callback-composite-scope/src/main/resources/META-INF/sca-contribution.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/callback-composite-scope/src/test/java/org/apache/tuscany/sca/test/CallbackTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/callback-id/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/callback-id/src/main/java/org/apache/tuscany/sca/test/CallBackIdCallBack.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/callback-id/src/main/java/org/apache/tuscany/sca/test/CallBackIdClient.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/callback-id/src/main/java/org/apache/tuscany/sca/test/CallBackIdClientImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/callback-id/src/main/java/org/apache/tuscany/sca/test/CallBackIdService.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/callback-id/src/main/java/org/apache/tuscany/sca/test/CallBackIdServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/callback-id/src/main/resources/CallBackIdClient.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/callback-id/src/test/java/org/apache/tuscany/sca/test/CallBackIdTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/callback-multiple-wires/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/callback-multiple-wires/src/main/java/org/apache/tuscany/sca/test/callback/MyClient.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/callback-multiple-wires/src/main/java/org/apache/tuscany/sca/test/callback/MyClientImpl1.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/callback-multiple-wires/src/main/java/org/apache/tuscany/sca/test/callback/MyClientImpl2.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/callback-multiple-wires/src/main/java/org/apache/tuscany/sca/test/callback/MyService.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/callback-multiple-wires/src/main/java/org/apache/tuscany/sca/test/callback/MyServiceCallback.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/callback-multiple-wires/src/main/java/org/apache/tuscany/sca/test/callback/MyServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/callback-multiple-wires/src/main/resources/CallbackMultiWireTest.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/callback-multiple-wires/src/test/java/org/apache/tuscany/sca/test/callback/CallbackMultiWireTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/callback-separatethread/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/callback-separatethread/src/main/java/org/apache/tuscany/sca/itest/CallBackSeparateThreadClient.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/callback-separatethread/src/main/java/org/apache/tuscany/sca/itest/CallBackSeparateThreadClientImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/callback-separatethread/src/main/java/org/apache/tuscany/sca/itest/EventProcessorCallBack.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/callback-separatethread/src/main/java/org/apache/tuscany/sca/itest/EventProcessorService.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/callback-separatethread/src/main/java/org/apache/tuscany/sca/itest/EventProcessorServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/callback-separatethread/src/main/resources/CallBackSeparateThreadTest.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/callback-separatethread/src/test/java/org/apache/tuscany/sca/itest/CallBackSeparateThreadTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/callback-set-callback/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/callback-set-callback/src/main/java/org/apache/tuscany/sca/test/CallBackSetCalbackService.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/callback-set-callback/src/main/java/org/apache/tuscany/sca/test/CallBackSetCallbackBadCallback.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/callback-set-callback/src/main/java/org/apache/tuscany/sca/test/CallBackSetCallbackCallback.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/callback-set-callback/src/main/java/org/apache/tuscany/sca/test/CallBackSetCallbackCallbackImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/callback-set-callback/src/main/java/org/apache/tuscany/sca/test/CallBackSetCallbackClient.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/callback-set-callback/src/main/java/org/apache/tuscany/sca/test/CallBackSetCallbackClientImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/callback-set-callback/src/main/java/org/apache/tuscany/sca/test/CallBackSetCallbackObjectCallback.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/callback-set-callback/src/main/java/org/apache/tuscany/sca/test/CallBackSetCallbackServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/callback-set-callback/src/main/resources/CallBackSetCallbackTest.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/callback-set-callback/src/test/java/org/apache/tuscany/sca/test/CallBackSetCallbackTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/callback-set-conversation/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/callback-set-conversation/src/main/java/org/apache/tuscany/sca/test/CallBackSetCallbackConvBadCallback.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/callback-set-conversation/src/main/java/org/apache/tuscany/sca/test/CallBackSetCallbackConvCallback.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/callback-set-conversation/src/main/java/org/apache/tuscany/sca/test/CallBackSetCallbackConvClient.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/callback-set-conversation/src/main/java/org/apache/tuscany/sca/test/CallBackSetCallbackConvClientImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/callback-set-conversation/src/main/java/org/apache/tuscany/sca/test/CallBackSetCallbackConvNonSerCallback.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/callback-set-conversation/src/main/java/org/apache/tuscany/sca/test/CallBackSetCallbackConvObjectCallback.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/callback-set-conversation/src/main/java/org/apache/tuscany/sca/test/CallBackSetCallbackConvService.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/callback-set-conversation/src/main/java/org/apache/tuscany/sca/test/CallBackSetCallbackConvServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/callback-set-conversation/src/main/resources/CallBackSetCallbackConvTest.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/callback-set-conversation/src/test/java/org/apache/tuscany/sca/test/CallBackSetCallbackConvTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/component-type/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/component-type/src/main/java/calculator/AddService.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/component-type/src/main/java/calculator/AddServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/component-type/src/main/java/calculator/CalculatorClient.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/component-type/src/main/java/calculator/CalculatorService.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/component-type/src/main/java/calculator/CalculatorServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/component-type/src/main/java/calculator/DivideService.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/component-type/src/main/java/calculator/DivideServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/component-type/src/main/java/calculator/MultiplyService.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/component-type/src/main/java/calculator/MultiplyServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/component-type/src/main/java/calculator/SubtractService.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/component-type/src/main/java/calculator/SubtractServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/component-type/src/main/resources/Calculator.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/component-type/src/main/resources/calculator/AddServiceImpl.componentType create mode 100644 tags/java/sca/1.5.1-RC4/itest/component-type/src/main/resources/calculator/CalculatorServiceImpl.componentType create mode 100644 tags/java/sca/1.5.1-RC4/itest/component-type/src/main/resources/calculator/DivideServiceImpl.componentType create mode 100644 tags/java/sca/1.5.1-RC4/itest/component-type/src/main/resources/calculator/MultiplyServiceImpl.componentType create mode 100644 tags/java/sca/1.5.1-RC4/itest/component-type/src/main/resources/calculator/SubtractServiceImpl.componentType create mode 100644 tags/java/sca/1.5.1-RC4/itest/component-type/src/test/java/calculator/CalculatorTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-classloader/contribution-classes/build-jar.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-classloader/contribution-classes/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-classloader/contribution-classes/src/main/java/supplychain/customer/Customer.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-classloader/contribution-classes/src/main/java/supplychain/customer/JavaCustomerComponentImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-classloader/contribution-classes/src/main/java/supplychain/illegal/JavaCustomerComponentImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-classloader/contribution-classes/src/main/java/supplychain/retailer/JavaRetailerComponentImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-classloader/contribution-classes/src/main/java/supplychain/retailer/Retailer.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-classloader/contribution-classes/src/main/java/supplychain/shipper/JavaShipperComponentImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-classloader/contribution-classes/src/main/java/supplychain/shipper/Shipper.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-classloader/contribution-classes/src/main/java/supplychain/warehouse/JavaWarehouseComponentImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-classloader/contribution-classes/src/main/java/supplychain/warehouse/Warehouse.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-classloader/contribution-classes/src/main/resources/META-INF/complete-supplychain-sca-contribution.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-classloader/contribution-classes/src/main/resources/META-INF/customer-impl-sca-contribution.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-classloader/contribution-classes/src/main/resources/META-INF/customer-interface-sca-contribution.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-classloader/contribution-classes/src/main/resources/META-INF/customer-sca-contribution.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-classloader/contribution-classes/src/main/resources/META-INF/illegal-customer-sca-contribution.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-classloader/contribution-classes/src/main/resources/META-INF/illegal1-supplychain-sca-contribution.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-classloader/contribution-classes/src/main/resources/META-INF/illegal2-supplychain-sca-contribution.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-classloader/contribution-classes/src/main/resources/META-INF/retailer-sca-contribution.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-classloader/contribution-classes/src/main/resources/META-INF/shipper-sca-contribution.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-classloader/contribution-classes/src/main/resources/META-INF/supplychain-sca-contribution.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-classloader/contribution-classes/src/main/resources/META-INF/warehouse-sca-contribution.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-classloader/contribution-classes/src/main/resources/supplychain/illegalsupplychain.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-classloader/contribution-classes/src/main/resources/supplychain/supplychain.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-classloader/contribution-classes/src/main/resources/supplychain/warehouse/JavaWarehouseComponentImpl.componentType create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-classloader/contribution-test/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-classloader/contribution-test/src/test/java/org/apache/tuscany/sca/test/contribution/ContributionTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-classloader/contribution-test/src/test/java/org/apache/tuscany/sca/test/contribution/SupplyChain.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-classloader/contribution-test/src/test/java/org/apache/tuscany/sca/test/contribution/TuscanyClassloadingTestCaseFIXME.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-classloader/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-folder/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-folder/src/test/java/ContributionFolderTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-folder/src/test/java/ContributionZIPTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-folder/src/test/java/calculator/CalculatorService.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-folder/src/test/resources/repository2/folderWithJars/Calculator.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-folder/src/test/resources/repository2/folderWithJars/META-INF/sca-contribution.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-folder/src/test/resources/repository2/folderWithJars/service.jar create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-folder/src/test/resources/repository2/folderWithJars/serviceImpl.jar create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-folder/src/test/resources/repository3/contribution.zip create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-import-export/export-composite/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-import-export/export-composite/src/main/java/hello/Hello.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-import-export/export-composite/src/main/java/hello/HelloImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-import-export/export-composite/src/main/resources/META-INF/sca-contribution.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-import-export/export-composite/src/main/resources/hello.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-import-export/export-composite/src/test/java/org/apache/tuscany/sca/test/contribution/HelloTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-import-export/export-java/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-import-export/export-java/src/main/java/helloworld/HelloWorldService.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-import-export/export-java/src/main/resources/META-INF/sca-contribution.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-import-export/export-java/src/main/resources/helloworld/HelloWorldImpl.componentType create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-import-export/export-resource/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-import-export/export-resource/src/main/resources/META-INF/sca-contribution.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-import-export/export-resource/src/main/resources/ufservices/store.html create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-import-export/export-wsdl/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-import-export/export-wsdl/src/main/resources/META-INF/sca-contribution.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-import-export/export-wsdl/src/main/resources/helloworld.wsdl create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-import-export/export-wsdl/src/main/resources/helloworld.xsd create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-import-export/import-composite/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-import-export/import-composite/src/main/java/helloworld/HelloWorldImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-import-export/import-composite/src/main/java/helloworld/HelloWorldServer.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-import-export/import-composite/src/main/java/helloworld/HelloWorldService.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-import-export/import-composite/src/main/resources/META-INF/sca-contribution.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-import-export/import-composite/src/main/resources/helloworld.wsdl create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-import-export/import-composite/src/main/resources/helloworld.xsd create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-import-export/import-composite/src/main/resources/helloworldws.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-import-export/import-composite/src/test/java/org/apache/tuscany/test/contribution/HelloWorldServerTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-import-export/import-java/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-import-export/import-java/src/main/java/helloworld/HelloWorldImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-import-export/import-java/src/main/resources/META-INF/sca-contribution.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-import-export/import-java/src/main/resources/helloworldws.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-import-export/import-java/src/test/java/org/apache/tuscany/sca/test/contribution/HelloWorldServerTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-import-export/import-resource/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-import-export/import-resource/src/main/resources/META-INF/sca-contribution.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-import-export/import-resource/src/main/resources/store.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-import-export/import-resource/src/test/java/org/apache/tuscany/sca/test/contribution/StoreTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-import-export/import-wsdl/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-import-export/import-wsdl/src/main/java/helloworld/HelloWorldImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-import-export/import-wsdl/src/main/java/helloworld/HelloWorldServer.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-import-export/import-wsdl/src/main/java/helloworld/HelloWorldService.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-import-export/import-wsdl/src/main/resources/META-INF/sca-contribution.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-import-export/import-wsdl/src/main/resources/helloworldws.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-import-export/import-wsdl/src/test/java/org/apache/tuscany/sca/test/contribution/HelloWorldServerTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-import-export/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/ear-appcomp-contrib-implicit-war-appcomp/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/ear-appcomp-contrib-implicit-war-appcomp/src/main/application/META-INF/application.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/ear-appcomp-contrib-implicit/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/ear-appcomp-contrib-implicit/src/main/application/META-INF/application.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/ear-appcomp-contrib-implicit/src/main/resources/isthisignored.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/ear-nonenhanced/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/ejb-appcomp-contrib-implicit/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/ejb-appcomp-contrib-implicit/src/main/java/sample/ejb3/HelloworldService.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/ejb-appcomp-contrib-implicit/src/main/java/sample/ejb3/HelloworldServiceBean.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/ejb-appcomp-contrib-implicit/src/main/resources/META-INF/ejb-jar.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/ejb-appcomp-contrib-implicit/src/main/resources/META-INF/openejb-jar.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/ejb-enhanced/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/ejb-enhanced/src/main/java/sample/ejb3/HelloworldLocal8.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/ejb-enhanced/src/main/java/sample/ejb3/HelloworldService8.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/ejb-enhanced/src/main/java/sample/ejb3/HelloworldService8Bean.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/ejb-enhanced/src/main/resources/META-INF/openejb-jar.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/ejb-enhanced/src/main/resources/isthisignored.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/ejb-nonenhanced/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/ejb-nonenhanced/src/main/java/sample/ejb3/HelloworldLocal7.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/ejb-nonenhanced/src/main/java/sample/ejb3/HelloworldService7.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/ejb-nonenhanced/src/main/java/sample/ejb3/HelloworldService7Bean.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/ejb-nonenhanced/src/main/java/sample/ejb3/HelloworldService7aBean.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/ejb-nonenhanced/src/main/resources/META-INF/openejb-jar.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/jar-shared/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/jar-shared/src/main/java/sample/java/HelloworldServiceJava.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/jar-shared/src/main/java/sample/java/HelloworldServiceJavaImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/jar-shared/src/main/java/sample/java/JarMain.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/scajar-ear-appcomp-war-appcomp/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/scajar-ear-appcomp-war-appcomp/src/main/java/sample/ejb3/HelloworldService.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/scajar-ear-appcomp-war-appcomp/src/main/java/sample/java/HelloworldServiceJava.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/scajar-ear-appcomp-war-appcomp/src/main/java/sample/pojo/HelloworldClient2.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/scajar-ear-appcomp-war-appcomp/src/main/java/sample/pojo/HelloworldClient2Impl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/scajar-ear-appcomp-war-appcomp/src/main/java/sample/pojo/HelloworldTargetImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/scajar-ear-appcomp-war-appcomp/src/main/resources/helloworld.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/scajar-ear-appcomp/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/scajar-ear-appcomp/src/main/java/sample/ejb3/HelloworldService.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/scajar-ear-appcomp/src/main/java/sample/java/HelloworldServiceJava.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/scajar-ear-appcomp/src/main/java/sample/pojo/HelloworldClient2.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/scajar-ear-appcomp/src/main/java/sample/pojo/HelloworldClient2Impl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/scajar-ear-appcomp/src/main/java/sample/pojo/HelloworldTargetImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/scajar-ear-appcomp/src/main/resources/helloworld.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/scajar-ear-nonenhanced/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/scajar-ear-nonenhanced/src/main/java/sample/ejb3/HelloworldService.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/scajar-ear-nonenhanced/src/main/java/sample/pojo/HelloworldClient.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/scajar-ear-nonenhanced/src/main/java/sample/pojo/HelloworldClientImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/scajar-ear-nonenhanced/src/main/resources/helloworld.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/scazip-ejb-appcomp/build.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/scazip-ejb-appcomp/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/scazip-ejb-appcomp/src/main/java/sample/ejb3/HelloworldService.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/scazip-ejb-appcomp/src/main/java/sample/pojo/HelloworldClient.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/scazip-ejb-appcomp/src/main/java/sample/pojo/HelloworldClientImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/scazip-ejb-appcomp/src/main/resources/helloworld.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/scazip-war-appcomp/build.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/scazip-war-appcomp/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/scazip-war-appcomp/src/main/java/sample/ejb3/HelloworldService.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/scazip-war-appcomp/src/main/java/sample/pojo/HelloworldClient.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/scazip-war-appcomp/src/main/java/sample/pojo/HelloworldClientImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/scazip-war-appcomp/src/main/resources/helloworld.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/war-appcomp-contrib-implicit/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/war-appcomp-contrib-implicit/src/main/java/sample/HelloworldEjbServlet.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/war-appcomp-contrib-implicit/src/main/java/sample/ejb3/HelloworldService.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/war-appcomp-contrib-implicit/src/main/webapp/WEB-INF/geronimo-web.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/war-appcomp-contrib-implicit/src/main/webapp/WEB-INF/web.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/war-appcomp-contrib-implicit/src/main/webapp/WEB-INF/web.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/war-appcomp-contrib-implicit/src/main/webapp/hello.html create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/war-nonenhanced/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/war-nonenhanced/src/main/java/sample/HelloworldEjbServlet.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/war-nonenhanced/src/main/java/sample/ejb3/HelloworldService.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/war-nonenhanced/src/main/webapp/WEB-INF/geronimo-web.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/war-nonenhanced/src/main/webapp/WEB-INF/web.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/war-nonenhanced/src/main/webapp/hello.html create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-jee/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-jee/src/main/java/org/apache/tuscany/sca/test/contribution/jee/TestEJBImplementationProvider.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-jee/src/main/java/org/apache/tuscany/sca/test/contribution/jee/TestEJBImplementationProviderFactory.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-jee/src/main/java/org/apache/tuscany/sca/test/contribution/jee/TestExternalEarModelResolver.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-jee/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.resolver.ModelResolver create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-jee/src/main/resources/META-INF/services/org.apache.tuscany.sca.provider.ImplementationProviderFactory create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-jee/src/test/java/org/apache/tuscany/sca/test/contribution/jee/ContributionServiceTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-jee/src/test/java/org/apache/tuscany/sca/test/contribution/jee/EjbAppcompTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-jee/src/test/java/org/apache/tuscany/sca/test/contribution/jee/SCAJarEarAppcompTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-jee/src/test/java/org/apache/tuscany/sca/test/contribution/jee/SCAJarEarAppcompWarAppcompTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-jee/src/test/java/org/apache/tuscany/sca/test/contribution/jee/SCAJarEarNonenhancedTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-jee/src/test/java/org/apache/tuscany/sca/test/contribution/jee/SCAZipEjbAppcompTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-jee/src/test/java/org/apache/tuscany/sca/test/contribution/jee/SCAZipWarAppcompTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-jee/src/test/java/org/apache/tuscany/sca/test/contribution/jee/WARAppcompContribImplicitTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-jee/src/test/java/org/apache/tuscany/sca/test/contribution/jee/WarAppcompTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-jee/src/test/resources/repository/enhanced-app.ear create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-jee/src/test/resources/repository/helloworld-ejb-w-dep.jar create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-jee/src/test/resources/repository/helloworld-ejb.ear create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-jee/src/test/resources/repository/helloworld-ejb.jar create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-jee/src/test/resources/repository/helloworld-service.jar create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-jee/src/test/resources/repository/helloworld-web-w-dep.war create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-jee/src/test/resources/repository/helloworld-web.war create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-jee/src/test/resources/repository/simple-app-ear.jar create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-jee/src/test/resources/repository/simple-app.ear create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-multiple/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-multiple/src/test/java/hello/Hello.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-multiple/src/test/java/hello/HelloImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-multiple/src/test/java/helloworld/HelloWorldImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-multiple/src/test/java/helloworld/HelloWorldService.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-multiple/src/test/java/test/ContributionCycleTestCaseFIXME.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-multiple/src/test/java/test/ContributionMultipleTestCaseFIXME.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-multiple/src/test/java/test/ContributionTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-multiple/src/test/resources/contribution-cycle-export/META-INF/sca-contribution.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-multiple/src/test/resources/contribution-cycle-export/hello.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-multiple/src/test/resources/contribution-cycle-import/META-INF/sca-contribution.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-multiple/src/test/resources/contribution-cycle-import/helloworld_one.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-multiple/src/test/resources/contribution-export/META-INF/sca-contribution.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-multiple/src/test/resources/contribution-export/hello.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-multiple/src/test/resources/contribution-import-one/META-INF/sca-contribution.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-multiple/src/test/resources/contribution-import-one/helloworld_one.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-multiple/src/test/resources/contribution-import-two/META-INF/sca-contribution.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution-multiple/src/test/resources/contribution-import-two/helloworld_two.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution/src/main/java/calculator/AddService.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution/src/main/java/calculator/AddServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution/src/main/java/calculator/CalculatorClient.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution/src/main/java/calculator/CalculatorService.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution/src/main/java/calculator/CalculatorServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution/src/main/java/calculator/DivideService.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution/src/main/java/calculator/DivideServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution/src/main/java/calculator/MultiplyService.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution/src/main/java/calculator/MultiplyServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution/src/main/java/calculator/SubtractService.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution/src/main/java/calculator/SubtractServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution/src/main/resources/ContributionTest.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution/src/main/resources/calculator/Calculator.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution/src/main/resources/calculator/sca-contribution.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution/src/test/java/org/apache/tuscany/sca/test/contribution/ContributionServiceTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution/src/test/resources/deployables/sample-calculator.jar create mode 100644 tags/java/sca/1.5.1-RC4/itest/contribution/src/test/resources/repository/sample-calculator.jar create mode 100644 tags/java/sca/1.5.1-RC4/itest/conversations-ws/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/conversations-ws/src/main/java/org/apache/tuscany/sca/itest/conversational/BusinessException.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/conversations-ws/src/main/java/org/apache/tuscany/sca/itest/conversational/ConversationIdService.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/conversations-ws/src/main/java/org/apache/tuscany/sca/itest/conversational/ConversationalCallback.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/conversations-ws/src/main/java/org/apache/tuscany/sca/itest/conversational/ConversationalClient.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/conversations-ws/src/main/java/org/apache/tuscany/sca/itest/conversational/ConversationalReferenceClient.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/conversations-ws/src/main/java/org/apache/tuscany/sca/itest/conversational/ConversationalService.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/conversations-ws/src/main/java/org/apache/tuscany/sca/itest/conversational/ConversationalServiceNonConversationalCallback.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/conversations-ws/src/main/java/org/apache/tuscany/sca/itest/conversational/NonConversationalCallback.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/conversations-ws/src/main/java/org/apache/tuscany/sca/itest/conversational/impl/ConversationAgeComponentImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/conversations-ws/src/main/java/org/apache/tuscany/sca/itest/conversational/impl/ConversationIdComponentImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/conversations-ws/src/main/java/org/apache/tuscany/sca/itest/conversational/impl/ConversationMaxIdleComponentImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/conversations-ws/src/main/java/org/apache/tuscany/sca/itest/conversational/impl/ConversationalClientStatefulImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/conversations-ws/src/main/java/org/apache/tuscany/sca/itest/conversational/impl/ConversationalClientStatefulNonConversationalCallbackImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/conversations-ws/src/main/java/org/apache/tuscany/sca/itest/conversational/impl/ConversationalClientStatelessImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/conversations-ws/src/main/java/org/apache/tuscany/sca/itest/conversational/impl/ConversationalReferenceClientImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/conversations-ws/src/main/java/org/apache/tuscany/sca/itest/conversational/impl/ConversationalServiceRequestImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/conversations-ws/src/main/java/org/apache/tuscany/sca/itest/conversational/impl/ConversationalServiceStatefulImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/conversations-ws/src/main/java/org/apache/tuscany/sca/itest/conversational/impl/ConversationalServiceStatefulNonConversationalCallbackImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/conversations-ws/src/main/java/org/apache/tuscany/sca/itest/conversational/impl/ConversationalServiceStatelessImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/conversations-ws/src/main/java/org/apache/tuscany/sca/itest/conversational/impl/ConversationalServiceStatelessScopeImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/conversations-ws/src/main/resources/Conversational/META-INF/sca-contribution.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/conversations-ws/src/main/resources/Conversational/conversational.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/conversations-ws/src/main/resources/ConversationalWSDL/ConversationalServiceStateful.wsdl create mode 100644 tags/java/sca/1.5.1-RC4/itest/conversations-ws/src/main/resources/ConversationalWSDL/META-INF/sca-contribution.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/conversations-ws/src/main/resources/ConversationalWSDL/conversationalWSDL.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/conversations-ws/src/test/java/org/apache/tuscany/sca/itest/conversational/ConversationWSDLTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/conversations-ws/src/test/java/org/apache/tuscany/sca/itest/conversational/NonConversationalCallbackTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/conversations-ws/src/test/java/org/apache/tuscany/sca/itest/conversational/RequestScopeTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/conversations-ws/src/test/java/org/apache/tuscany/sca/itest/conversational/StatefulStatefulTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/conversations-ws/src/test/java/org/apache/tuscany/sca/itest/conversational/StatefulStatelessTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/conversations-ws/src/test/java/org/apache/tuscany/sca/itest/conversational/StatelessStatefulTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/conversations-ws/src/test/java/org/apache/tuscany/sca/itest/conversational/StatelessStatelessTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/conversations/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/conversations/src/main/java/org/apache/tuscany/sca/itest/Record.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/conversations/src/main/java/org/apache/tuscany/sca/itest/TestResult.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/conversations/src/main/java/org/apache/tuscany/sca/itest/conversational/AService.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/conversations/src/main/java/org/apache/tuscany/sca/itest/conversational/Alpha.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/conversations/src/main/java/org/apache/tuscany/sca/itest/conversational/BService.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/conversations/src/main/java/org/apache/tuscany/sca/itest/conversational/Beta.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/conversations/src/main/java/org/apache/tuscany/sca/itest/conversational/CService.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/conversations/src/main/java/org/apache/tuscany/sca/itest/conversational/Constants.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/conversations/src/main/java/org/apache/tuscany/sca/itest/conversational/ConversationIdService.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/conversations/src/main/java/org/apache/tuscany/sca/itest/conversational/ConversationalCallback.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/conversations/src/main/java/org/apache/tuscany/sca/itest/conversational/ConversationalClient.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/conversations/src/main/java/org/apache/tuscany/sca/itest/conversational/ConversationalReferenceClient.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/conversations/src/main/java/org/apache/tuscany/sca/itest/conversational/ConversationalService.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/conversations/src/main/java/org/apache/tuscany/sca/itest/conversational/ConversationalServiceNonConversationalCallback.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/conversations/src/main/java/org/apache/tuscany/sca/itest/conversational/DService.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/conversations/src/main/java/org/apache/tuscany/sca/itest/conversational/Gamma.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/conversations/src/main/java/org/apache/tuscany/sca/itest/conversational/NonConversationalCallback.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/conversations/src/main/java/org/apache/tuscany/sca/itest/conversational/impl/AServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/conversations/src/main/java/org/apache/tuscany/sca/itest/conversational/impl/AlphaImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/conversations/src/main/java/org/apache/tuscany/sca/itest/conversational/impl/BServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/conversations/src/main/java/org/apache/tuscany/sca/itest/conversational/impl/BetaImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/conversations/src/main/java/org/apache/tuscany/sca/itest/conversational/impl/CServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/conversations/src/main/java/org/apache/tuscany/sca/itest/conversational/impl/ConversationAgeComponentImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/conversations/src/main/java/org/apache/tuscany/sca/itest/conversational/impl/ConversationIdComponentImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/conversations/src/main/java/org/apache/tuscany/sca/itest/conversational/impl/ConversationMaxIdleComponentImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/conversations/src/main/java/org/apache/tuscany/sca/itest/conversational/impl/ConversationalClientStatefulImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/conversations/src/main/java/org/apache/tuscany/sca/itest/conversational/impl/ConversationalClientStatefulNonConversationalCallbackImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/conversations/src/main/java/org/apache/tuscany/sca/itest/conversational/impl/ConversationalClientStatelessImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/conversations/src/main/java/org/apache/tuscany/sca/itest/conversational/impl/ConversationalReferenceClientImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/conversations/src/main/java/org/apache/tuscany/sca/itest/conversational/impl/ConversationalServiceRequestImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/conversations/src/main/java/org/apache/tuscany/sca/itest/conversational/impl/ConversationalServiceStatefulImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/conversations/src/main/java/org/apache/tuscany/sca/itest/conversational/impl/ConversationalServiceStatefulNonConversationalCallbackImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/conversations/src/main/java/org/apache/tuscany/sca/itest/conversational/impl/ConversationalServiceStatelessImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/conversations/src/main/java/org/apache/tuscany/sca/itest/conversational/impl/ConversationalServiceStatelessScopeImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/conversations/src/main/java/org/apache/tuscany/sca/itest/conversational/impl/DServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/conversations/src/main/java/org/apache/tuscany/sca/itest/conversational/impl/GammaImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/conversations/src/main/resources/ConversationAge.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/conversations/src/main/resources/ConversationUniqueId.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/conversations/src/main/resources/conversationId.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/conversations/src/main/resources/conversationLifetime.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/conversations/src/main/resources/conversational.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/conversations/src/test/java/org/apache/tuscany/sca/itest/conversational/ConversationIdTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/conversations/src/test/java/org/apache/tuscany/sca/itest/conversational/ConversationLifetimeTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/conversations/src/test/java/org/apache/tuscany/sca/itest/conversational/ConversationUniqueIdTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/conversations/src/test/java/org/apache/tuscany/sca/itest/conversational/ConversationalAgeTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/conversations/src/test/java/org/apache/tuscany/sca/itest/conversational/ConversationalJ2SETestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/conversations/src/test/java/org/apache/tuscany/sca/itest/conversational/ConversationalTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/corba/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/ScenarioFiveTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/ScenarioFourTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/ScenarioOneTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/ScenarioSixTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/ScenarioThreeTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/ScenarioTwoTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/TestCorbaHost.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/TestCorbaHostModuleActivator.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/AnnotatedStruct.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/AnnotatedStructHelper.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/AnnotatedStructHolder.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/Color.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/ColorHelper.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/ColorHolder.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/InnerStruct.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/InnerStructHelper.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/InnerStructHolder.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/InnerUnion.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/InnerUnionHelper.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/InnerUnionHolder.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/LongSequenceHelper.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/LongSequenceHolder.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/RichStruct.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/RichStructHelper.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/RichStructHolder.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/RichUnion.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/RichUnionHelper.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/RichUnionHolder.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/ScenarioOne.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/ScenarioOneHelper.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/ScenarioOneHolder.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/ScenarioOneOperations.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/ScenarioSix.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/ScenarioSixHelper.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/ScenarioSixHolder.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/ScenarioSixOperations.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/ScenarioTwo.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/ScenarioTwoHelper.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/ScenarioTwoHolder.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/ScenarioTwoOperations.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/StringArrayHelper.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/StringArrayHolder.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/StringSequenceHelper.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/StringSequenceHolder.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/TwoDimLongSequenceHelper.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/TwoDimLongSequenceHolder.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/UnexpectedException.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/UnexpectedExceptionHelper.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/UnexpectedExceptionHolder.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/WrongColor.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/WrongColorHelper.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/WrongColorHolder.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/_ScenarioOneImplBase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/_ScenarioOneStub.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/_ScenarioSixImplBase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/_ScenarioSixStub.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/_ScenarioTwoImplBase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/_ScenarioTwoStub.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/ScenarioFive.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/ScenarioFiveComponent.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/ScenarioFiveImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/ScenarioFour.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/ScenarioFourComponent.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/ScenarioFourException.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/ScenarioFourImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/ScenarioFourStruct.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/ScenarioOneComponent.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/ScenarioOneServant.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/ScenarioSixServant.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/ScenarioTwoServant.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/TAnnotatedStruct.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/TColor.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/TInnerStruct.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/TInnerUnion.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/TRichStruct.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/TRichUnion.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/TScenarioOne.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/TScenarioOneComponent.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/TScenarioOneServant.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/TScenarioSix.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/TScenarioSixComponent.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/TScenarioSixServant.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/TScenarioThree.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/TScenarioThreeComponent.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/TScenarioThreeServant.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/TScenarioTwo.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/TScenarioTwoComponent.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/TScenarioTwoServant.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/corba/src/test/resources/META-INF/services/org.apache.tuscany.sca.core.ModuleActivator create mode 100644 tags/java/sca/1.5.1-RC4/itest/corba/src/test/resources/ScenarioFive.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/corba/src/test/resources/ScenarioFour.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/corba/src/test/resources/ScenarioOne.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/corba/src/test/resources/ScenarioSix.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/corba/src/test/resources/ScenarioThree.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/corba/src/test/resources/ScenarioTwo.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/corba/src/test/resources/itest_scenario.idl create mode 100644 tags/java/sca/1.5.1-RC4/itest/corba/src/test/resources/scenariofour.xsd create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/java/org/apache/tuscany/sca/itest/generate/Generate.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/generate/DatabindingTestCase.java.vm create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/generate/Greeter.wsdl.vm create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/generate/GreeterService.java.vm create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/generate/GreeterServiceClient.java.vm create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/generate/GreeterServiceClientImpl.java.vm create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/generate/GreeterServiceImpl.java.vm create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/generate/generate.xsd create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/wsdl/Dummy.txt create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/Annotation.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/Annotation.xsd create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/Attribute.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/Attribute.xsd create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/AttributeReference.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/AttributeReference.xsd create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/AttributeWithDefaultValue.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/AttributeWithDefaultValue.xsd create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/AttributeWithFixedValue.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/AttributeWithFixedValue.xsd create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/AttributeWithSDOAliasName.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/AttributeWithSDOAliasName.xsd create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/AttributeWithSDODataType.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/AttributeWithSDODataType.xsd create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/AttributeWithSDOName.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/AttributeWithSDOName.xsd create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/AttributeWithSDOPropertySDOOppositePropertyType.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/AttributeWithSDOPropertySDOOppositePropertyType.xsd create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/AttributeWithSDOPropertyType.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/AttributeWithSDOPropertyType.xsd create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/AttributeWithSDOString.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/AttributeWithSDOString.xsd create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInAnySimpleType.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInAnySimpleType.xsd create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInAnyType.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInAnyType.xsd create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInAnyURI.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInAnyURI.xsd create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInBase64Binary.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInBase64Binary.xsd create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInBoolean.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInBoolean.xsd create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInByte.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInByte.xsd create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInDate.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInDate.xsd create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInDateTime.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInDateTime.xsd create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInDecimal.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInDecimal.xsd create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInDouble.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInDouble.xsd create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInDuration.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInDuration.xsd create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInFloat.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInFloat.xsd create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInGDay.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInGDay.xsd create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInGMonth.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInGMonth.xsd create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInGMonthDay.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInGMonthDay.xsd create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInGYear.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInGYear.xsd create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInGYearMonth.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInGYearMonth.xsd create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInHexBinary.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInHexBinary.xsd create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInID.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInID.xsd create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInIDREF.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInIDREF.xsd create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInIDREFS.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInIDREFS.xsd create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInInt.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInInt.xsd create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInInteger.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInInteger.xsd create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInLanguage.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInLanguage.xsd create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInLong.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInLong.xsd create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInNCName.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInNCName.xsd create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInNMTOKEN.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInNMTOKEN.xsd create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInNMTOKENS.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInNMTOKENS.xsd create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInNOTATION.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInNOTATION.xsd create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInName.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInName.xsd create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInNegativeInteger.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInNegativeInteger.xsd create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInNonNegativeInteger.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInNonNegativeInteger.xsd create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInNonPositiveInteger.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInNonPositiveInteger.xsd create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInNormalizedString.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInNormalizedString.xsd create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInPositiveInteger.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInPositiveInteger.xsd create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInQName.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInQName.xsd create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInShort.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInShort.xsd create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInString.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInString.xsd create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInTime.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInTime.xsd create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInToken.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInToken.xsd create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInUnsignedByte.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInUnsignedByte.xsd create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInUnsignedInt.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInUnsignedInt.xsd create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInUnsignedLong.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInUnsignedLong.xsd create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInUnsignedShort.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInUnsignedShort.xsd create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ComplexTypeComplexContentRestrictingComplexType.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ComplexTypeComplexContentRestrictingComplexType.xsd create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ComplexTypeExtendingComplexType.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ComplexTypeExtendingComplexType.xsd create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ComplexTypeExtendingSimpleType.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ComplexTypeExtendingSimpleType.xsd create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ComplexTypeSimpleContentRestrictingComplexType.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ComplexTypeSimpleContentRestrictingComplexType.xsd create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ComplexTypeWithAbstract.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ComplexTypeWithAbstract.xsd create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ComplexTypeWithCDATA.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ComplexTypeWithCDATA.xsd create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ComplexTypeWithContent.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ComplexTypeWithContent.xsd create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ComplexTypeWithMixed.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ComplexTypeWithMixed.xsd create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ComplexTypeWithOpenAttributes.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ComplexTypeWithOpenAttributes.xsd create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ComplexTypeWithOpenContent.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ComplexTypeWithOpenContent.xsd create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ComplexTypeWithOppositeProperty.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ComplexTypeWithOppositeProperty.xsd create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ComplexTypeWithSDOAliasName.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ComplexTypeWithSDOAliasName.xsd create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ComplexTypeWithSDOName.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ComplexTypeWithSDOName.xsd create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ComplexTypeWithSDOSequence.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ComplexTypeWithSDOSequence.xsd create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ComplexTypeWithoutContent.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ComplexTypeWithoutContent.xsd create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ComplexTypeWithoutName.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ComplexTypeWithoutName.xsd create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/DefaultNamespace.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/DefaultNamespace.xsd create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ElementInAll.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ElementInAll.xsd create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ElementInChoice.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ElementInChoice.xsd create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ElementOfSDOChangeSummaryType.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ElementOfSDOChangeSummaryType.xsd create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ElementOfSimpleTypeWithDefault.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ElementOfSimpleTypeWithDefault.xsd create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ElementOfSimpleTypeWithFixed.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ElementOfSimpleTypeWithFixed.xsd create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ElementOfSimpleTypeWithSDODataType.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ElementOfSimpleTypeWithSDODataType.xsd create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ElementOfSimpleTypeWithSDOOppositePropertyType.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ElementOfSimpleTypeWithSDOOppositePropertyType.xsd create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ElementOfSimpleTypeWithSDOPropertyType.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ElementOfSimpleTypeWithSDOPropertyType.xsd create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ElementOfSimpleTypeWithSDOString.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ElementOfSimpleTypeWithSDOString.xsd create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ElementSubstitutionGroupBase.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ElementSubstitutionGroupBase.xsd create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ElementWithMaxOccurs.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ElementWithMaxOccurs.xsd create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ElementWithNillable.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ElementWithNillable.xsd create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ElementWithSDOAliasName.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ElementWithSDOAliasName.xsd create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ElementWithSDOName.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ElementWithSDOName.xsd create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/GlobalElementComplexType.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/GlobalElementComplexType.xsd create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/GlobalElementSimpleType.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/GlobalElementSimpleType.xsd create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/Import.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/Import.xsd create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ImportedSchema.xsd create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/Include.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/Include.xsd create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/Interop.xsd create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/Notation.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/Notation.xsd create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/Person.xsd create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/SDOJavaPackage.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/SDOJavaPackage.xsd create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/SimpleTypeWithAbstract.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/SimpleTypeWithAbstract.xsd create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/SimpleTypeWithExtendedInstanceClass.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/SimpleTypeWithExtendedInstanceClass.xsd create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/SimpleTypeWithInstanceClass.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/SimpleTypeWithInstanceClass.xsd create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/SimpleTypeWithList.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/SimpleTypeWithList.xsd create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/SimpleTypeWithName.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/SimpleTypeWithName.xsd create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/SimpleTypeWithSDOName.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/SimpleTypeWithSDOName.xsd create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/SimpleTypeWithUnion.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/SimpleTypeWithUnion.xsd create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/SimpleTypeWithoutName.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/SimpleTypeWithoutName.xsd create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/TargetNamespace.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/TargetNamespace.xsd create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/datagraph.xsd create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/sdoJava.xsd create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/sdoModel.xsd create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/common/src/test/java/org/apache/tuscany/sca/itest/generate/GenerateTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/config.png create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/config.svg create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/databinding.png create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/databinding.svg create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/interop.png create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/interop.svg create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/interop/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/interop/src/main/resources/generate/InteropDatabindingTestCase.java.vm create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/interop/src/main/resources/generate/JAXBGreeter.wsdl.vm create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/interop/src/main/resources/generate/SDOGreeter.wsdl.vm create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/interop/src/main/resources/generate/generate.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/interop/src/main/resources/generate/interopgreeter.composite.vm create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/AClientService.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/AService.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/Bean1.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/Bean10.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/Bean11.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/Bean2.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/Bean3.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/Bean31.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/GenericsLocalService.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/GenericsService.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/GenericsServiceClient.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/HelloLocalServiceSimple.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/HelloServiceSimple.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/HelloServiceSimpleClient.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/PrimitivesLocalService.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/PrimitivesService.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/PrimitivesServiceClient.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/StandardTypesLocalService.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/StandardTypesService.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/StandardTypesServiceClient.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/AClientServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/AServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/GenericsLocalServiceClientImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/GenericsServiceClientImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/GenericsServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/GenericsTransformer.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/HelloLocalServiceSimpleClientImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/HelloServiceSimpleClientImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/HelloServiceSimpleImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/PrimitivesLocalServiceClientImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/PrimitivesServiceClientImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/PrimitivesServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/StandardTypesLocalServiceClientImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/StandardTypesServiceClientImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/StandardTypesServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/StandardTypesTransformer.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/main/resources/aservice.wsdl create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/main/resources/doclitbarewsdl.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/main/resources/generics-service.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/main/resources/helloservice.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/main/resources/primitivesservice.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/main/resources/standard-types-service.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/test/java/org/apache/tuscany/sca/itest/databindings/jaxb/DatabindingTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/test/java/org/apache/tuscany/sca/itest/databindings/jaxb/DocLitBareWsdlTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/test/java/org/apache/tuscany/sca/itest/databindings/jaxb/GenericsDatabindingTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/test/java/org/apache/tuscany/sca/itest/databindings/jaxb/PrimitivesDatabindingTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/test/java/org/apache/tuscany/sca/itest/databindings/jaxb/StandardTypesDatabindingTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-top-down/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-top-down/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/HelloService.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-top-down/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/HelloServiceClient.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-top-down/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/PrimitivesService.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-top-down/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/PrimitivesServiceClient.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-top-down/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/StandardTypesService.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-top-down/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/StandardTypesServiceClient.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-top-down/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/HelloServiceClientImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-top-down/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/HelloServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-top-down/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/PrimitivesServiceClientImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-top-down/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/PrimitivesServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-top-down/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/StandardTypesServiceClientImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-top-down/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/StandardTypesServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-top-down/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/StandardTypesTransformer.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-top-down/src/main/resources/wsdl/wrapped/hello-service.wsdl create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-top-down/src/main/resources/wsdl/wrapped/helloservice.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-top-down/src/main/resources/wsdl/wrapped/primitives-service.wsdl create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-top-down/src/main/resources/wsdl/wrapped/primitivesservice.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-top-down/src/main/resources/wsdl/wrapped/standard-types-service.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-top-down/src/main/resources/wsdl/wrapped/standard-types-service.wsdl create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-top-down/src/test/java/org/apache/tuscany/sca/itest/databindings/jaxb/topdown/DatabindingTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-top-down/src/test/java/org/apache/tuscany/sca/itest/databindings/jaxb/topdown/PrimitivesDatabindingTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-top-down/src/test/java/org/apache/tuscany/sca/itest/databindings/jaxb/topdown/StandardTypesDatabindingTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/jaxbgen/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/jaxbgen/src/main/resources/generate/generate.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/jaxbgen/src/main/resources/greeter.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/readme.html create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/sdogen/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/sdogen/src/main/resources/generate/generate.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/databindings/sdogen/src/main/resources/generate/greeter.composite.vm create mode 100644 tags/java/sca/1.5.1-RC4/itest/distro-license-check/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/distro-license-check/src/test/java/itest/LicenseTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/domain/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/domain/src/main/java/calculator/AddService.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/domain/src/main/java/calculator/AddServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/domain/src/main/java/calculator/AddServiceUpdateImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/domain/src/main/java/calculator/CalculatorService.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/domain/src/main/java/calculator/CalculatorServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/domain/src/main/java/calculator/DivideService.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/domain/src/main/java/calculator/DivideServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/domain/src/main/java/calculator/MultiplyService.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/domain/src/main/java/calculator/MultiplyServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/domain/src/main/java/calculator/SubtractService.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/domain/src/main/java/calculator/SubtractServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/domain/src/main/resources/contributionA/Calculator.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/domain/src/main/resources/contributionA/META-INF/sca-contribution.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/domain/src/main/resources/contributionB/META-INF/sca-deployables/Calculator.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/domain/src/main/resources/contributionC/META-INF/sca-deployables/Calculator.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/domain/src/main/resources/contributionDependent/Calculator.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/domain/src/main/resources/contributionDependent/META-INF/sca-contribution.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/domain/src/main/resources/contributionPrimary/Calculator.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/domain/src/main/resources/contributionPrimary/META-INF/sca-contribution.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/domain/src/test/java/org/apache/tuscany/sca/itest/domain/ContributionSPIsTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/domainmgr/basic/client/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/domainmgr/basic/client/src/main/java/scatours/client/TestClient.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/domainmgr/basic/client/src/main/resources/META-INF/sca-contribution.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/domainmgr/basic/client/src/main/resources/client.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/domainmgr/basic/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/domainmgr/basic/runtest/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/domainmgr/basic/runtest/src/test/java/domainmgr/DomainManagerBasicTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/domainmgr/basic/runtest/src/test/resources/domain/cloud.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/domainmgr/basic/runtest/src/test/resources/domain/cloud/ClientNode.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/domainmgr/basic/runtest/src/test/resources/domain/cloud/ToursNode.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/domainmgr/basic/runtest/src/test/resources/domain/cloud/TripsNode.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/domainmgr/basic/runtest/src/test/resources/domain/domain.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/domainmgr/basic/runtest/src/test/resources/domain/workspace.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/domainmgr/basic/tours/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/domainmgr/basic/tours/src/main/java/com/goodvaluetrips/Trips.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/domainmgr/basic/tours/src/main/java/com/tuscanyscatours/Bookings.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/domainmgr/basic/tours/src/main/java/com/tuscanyscatours/Checkout.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/domainmgr/basic/tours/src/main/java/com/tuscanyscatours/ShoppingCart.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/domainmgr/basic/tours/src/main/java/com/tuscanyscatours/TripBooking.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/domainmgr/basic/tours/src/main/java/com/tuscanyscatours/Updates.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/domainmgr/basic/tours/src/main/resources/META-INF/sca-contribution.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/domainmgr/basic/tours/src/main/resources/tours.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/domainmgr/basic/trips/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/domainmgr/basic/trips/src/main/java/com/goodvaluetrips/TripProvider.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/domainmgr/basic/trips/src/main/java/com/goodvaluetrips/Trips.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/domainmgr/basic/trips/src/main/resources/META-INF/sca-contribution.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/domainmgr/basic/trips/src/main/resources/trips.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/domainmgr/callback/client/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/domainmgr/callback/client/src/main/java/callbackclient/MyClientImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/domainmgr/callback/client/src/main/java/callbackclient/MyService.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/domainmgr/callback/client/src/main/java/callbackclient/MyServiceCallback.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/domainmgr/callback/client/src/main/java/callbackclient/TestService.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/domainmgr/callback/client/src/main/resources/META-INF/sca-contribution.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/domainmgr/callback/client/src/main/resources/client.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/domainmgr/callback/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/domainmgr/callback/runtest/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/domainmgr/callback/runtest/src/test/java/callbacktest/TestService.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/domainmgr/callback/runtest/src/test/java/domainmgr/DomainManagerCallbackTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/domainmgr/callback/runtest/src/test/resources/domain/cloud.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/domainmgr/callback/runtest/src/test/resources/domain/cloud/ClientNode.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/domainmgr/callback/runtest/src/test/resources/domain/cloud/ServiceNode.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/domainmgr/callback/runtest/src/test/resources/domain/domain.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/domainmgr/callback/runtest/src/test/resources/domain/workspace.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/domainmgr/callback/service/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/domainmgr/callback/service/src/main/java/callbackservice/MyService.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/domainmgr/callback/service/src/main/java/callbackservice/MyServiceCallback.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/domainmgr/callback/service/src/main/java/callbackservice/MyServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/domainmgr/callback/service/src/main/resources/META-INF/sca-contribution.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/domainmgr/callback/service/src/main/resources/service.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/domainmgr/error/payment/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/domainmgr/error/payment/src/main/java/payment/PaymentImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/domainmgr/error/payment/src/main/java/scatours/customer/Customer.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/domainmgr/error/payment/src/main/java/scatours/customer/CustomerNotFoundException.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/domainmgr/error/payment/src/main/java/scatours/customer/CustomerRegistry.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/domainmgr/error/payment/src/main/java/scatours/customer/CustomerRegistryImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/domainmgr/error/payment/src/main/java/scatours/emailgateway/EmailGateway.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/domainmgr/error/payment/src/main/java/scatours/emailgateway/EmailGatewayImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/domainmgr/error/payment/src/main/resources/CreditCardPayment.wsdl create mode 100644 tags/java/sca/1.5.1-RC4/itest/domainmgr/error/payment/src/main/resources/META-INF/sca-contribution.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/domainmgr/error/payment/src/main/resources/Payment.wsdl create mode 100644 tags/java/sca/1.5.1-RC4/itest/domainmgr/error/payment/src/main/resources/payment.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/domainmgr/error/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/domainmgr/error/runtest/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/domainmgr/error/runtest/src/test/java/domainmgr/DomainManagerErrorTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/domainmgr/error/runtest/src/test/resources/domain/cloud.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/domainmgr/error/runtest/src/test/resources/domain/cloud/PaymentNode.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/domainmgr/error/runtest/src/test/resources/domain/domain.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/domainmgr/error/runtest/src/test/resources/domain/workspace.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/domainmgr/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/domainmgr/transaction/payment/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/domainmgr/transaction/payment/src/main/java/payment/PaymentImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/domainmgr/transaction/payment/src/main/java/scatours/customer/Customer.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/domainmgr/transaction/payment/src/main/java/scatours/customer/CustomerNotFoundException.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/domainmgr/transaction/payment/src/main/java/scatours/customer/CustomerRegistry.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/domainmgr/transaction/payment/src/main/java/scatours/customer/CustomerRegistryImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/domainmgr/transaction/payment/src/main/java/scatours/emailgateway/EmailGateway.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/domainmgr/transaction/payment/src/main/java/scatours/emailgateway/EmailGatewayImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/domainmgr/transaction/payment/src/main/resources/CreditCardPayment.wsdl create mode 100644 tags/java/sca/1.5.1-RC4/itest/domainmgr/transaction/payment/src/main/resources/META-INF/sca-contribution.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/domainmgr/transaction/payment/src/main/resources/Payment.wsdl create mode 100644 tags/java/sca/1.5.1-RC4/itest/domainmgr/transaction/payment/src/main/resources/definitions.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/domainmgr/transaction/payment/src/main/resources/payment.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/domainmgr/transaction/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/domainmgr/transaction/runtest/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/domainmgr/transaction/runtest/src/test/java/domainmgr/DomainManagerTransactionTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/domainmgr/transaction/runtest/src/test/resources/domain/cloud.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/domainmgr/transaction/runtest/src/test/resources/domain/cloud/PaymentNode.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/domainmgr/transaction/runtest/src/test/resources/domain/domain.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/domainmgr/transaction/runtest/src/test/resources/domain/workspace.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/exceptions-cross-binding-ws/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/exceptions-cross-binding-ws/src/main/java/org/apache/tuscany/sca/test/exceptions/impl/StockExchangeJaxB.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/exceptions-cross-binding-ws/src/main/java/org/apache/tuscany/sca/test/exceptions/impl/StockTraderSDO.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/exceptions-cross-binding-ws/src/main/java/org/apache/tuscany/sca/test/exceptions/impl/StockTraderSDOImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/exceptions-cross-binding-ws/src/main/java/org/apache/tuscany/sca/test/exceptions/sdohandgen/InvalidSymbolSDOException.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/exceptions-cross-binding-ws/src/main/java/org/apache/tuscany/sca/test/exceptions/sdohandgen/MarketClosedSDOException.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/exceptions-cross-binding-ws/src/main/java/org/apache/tuscany/sca/test/exceptions/sdohandgen/StockExceptionTest.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/exceptions-cross-binding-ws/src/main/resources/ExceptionTest.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/exceptions-cross-binding-ws/src/main/resources/intracomposite.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/exceptions-cross-binding-ws/src/main/resources/wsdl/StockExceptionTest.wsdl create mode 100644 tags/java/sca/1.5.1-RC4/itest/exceptions-cross-binding-ws/src/main/resources/xsd/StockExceptionTest.xsd create mode 100644 tags/java/sca/1.5.1-RC4/itest/exceptions-cross-binding-ws/src/test/java/org/apache/tuscany/sca/test/exceptions/IntraCompositeTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/exceptions-cross-binding/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/exceptions-cross-binding/src/main/java/org/apache/tuscany/sca/test/exceptions/impl/StockExceptionTestJAXB.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/exceptions-cross-binding/src/main/java/org/apache/tuscany/sca/test/exceptions/impl/StockExchangeJaxB.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/exceptions-cross-binding/src/main/java/org/apache/tuscany/sca/test/exceptions/impl/StockTraderSDO.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/exceptions-cross-binding/src/main/java/org/apache/tuscany/sca/test/exceptions/impl/StockTraderSDOImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/exceptions-cross-binding/src/main/java/org/apache/tuscany/sca/test/exceptions/sdohandgen/InvalidSymbolSDOException.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/exceptions-cross-binding/src/main/java/org/apache/tuscany/sca/test/exceptions/sdohandgen/MarketClosedSDOException.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/exceptions-cross-binding/src/main/java/org/apache/tuscany/sca/test/exceptions/sdohandgen/StockExceptionTest.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/exceptions-cross-binding/src/main/resources/ExceptionTest.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/exceptions-cross-binding/src/main/resources/intracomposite.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/exceptions-cross-binding/src/main/resources/wsdl.sdo/StockExceptionTest.wsdl create mode 100644 tags/java/sca/1.5.1-RC4/itest/exceptions-cross-binding/src/main/resources/wsdl/StockExceptionTest.wsdl create mode 100644 tags/java/sca/1.5.1-RC4/itest/exceptions-cross-binding/src/main/resources/xsd/StockExceptionTest.xsd create mode 100644 tags/java/sca/1.5.1-RC4/itest/exceptions-cross-binding/src/test/java/org/apache/tuscany/sca/test/exceptions/IntraCompositeTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/exceptions-simple-ws/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/exceptions-simple-ws/src/main/java/com/example/BusinessException.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/exceptions-simple-ws/src/main/java/com/example/BusinessExceptionMinimal.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/exceptions-simple-ws/src/main/java/com/example/ExampleClient.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/exceptions-simple-ws/src/main/java/com/example/ExampleClientImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/exceptions-simple-ws/src/main/java/com/example/ExampleClientMinimalImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/exceptions-simple-ws/src/main/java/com/example/ExampleService.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/exceptions-simple-ws/src/main/java/com/example/ExampleServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/exceptions-simple-ws/src/main/java/com/example/ExampleServiceMinimal.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/exceptions-simple-ws/src/main/java/com/example/ExampleServiceMinimalImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/exceptions-simple-ws/src/main/resources/example.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/exceptions-simple-ws/src/main/resources/wsdl/ExampleService.wsdl create mode 100644 tags/java/sca/1.5.1-RC4/itest/exceptions-simple-ws/src/test/java/com/example/ExampleMinimalTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/exceptions-simple-ws/src/test/java/com/example/ExampleTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/exceptions/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/exceptions/src/main/java/org/apache/tuscany/sca/test/exceptions/Checked.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/exceptions/src/main/java/org/apache/tuscany/sca/test/exceptions/ExceptionHandler.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/exceptions/src/main/java/org/apache/tuscany/sca/test/exceptions/ExceptionRemoteThrower.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/exceptions/src/main/java/org/apache/tuscany/sca/test/exceptions/ExceptionThrower.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/exceptions/src/main/java/org/apache/tuscany/sca/test/exceptions/UnChecked.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/exceptions/src/main/java/org/apache/tuscany/sca/test/exceptions/impl/ExceptionHandlerImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/exceptions/src/main/java/org/apache/tuscany/sca/test/exceptions/impl/ExceptionRemoteThrowerImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/exceptions/src/main/java/org/apache/tuscany/sca/test/exceptions/impl/ExceptionThrowerImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/exceptions/src/main/java/org/apache/tuscany/sca/test/exceptions/impl/RemoteExceptionHandlerImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/exceptions/src/main/resources/ExceptionTest.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/exceptions/src/test/java/org/apache/tuscany/sca/test/exceptions/ExceptionsTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/extended-api/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/extended-api/src/main/java/org/apache/tuscany/sca/test/extended/BasicService.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/extended-api/src/main/java/org/apache/tuscany/sca/test/extended/MathService.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/extended-api/src/main/java/org/apache/tuscany/sca/test/extended/impl/BasicServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/extended-api/src/main/java/org/apache/tuscany/sca/test/extended/impl/MathServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/extended-api/src/main/resources/BasicService.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/extended-api/src/main/resources/MathService.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/extended-api/src/test/java/org/apache/tuscany/sca/test/extended/ServiceLocateTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/http-jsonrpc/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/http-jsonrpc/src/test/java/bean/TestBean.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/http-jsonrpc/src/test/java/echo/Echo.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/http-jsonrpc/src/test/java/echo/EchoBusinessException.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/http-jsonrpc/src/test/java/echo/EchoComponentImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/http-jsonrpc/src/test/java/org/apache/tuscany/sca/binding/http/wireformat/jsonrpc/JSONRPCDataTypeTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/http-jsonrpc/src/test/java/org/apache/tuscany/sca/binding/http/wireformat/jsonrpc/JSONRPCExceptionTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/http-jsonrpc/src/test/java/org/apache/tuscany/sca/binding/http/wireformat/jsonrpc/JSONRPCServiceTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/http-jsonrpc/src/test/java/org/apache/tuscany/sca/binding/http/wireformat/jsonrpc/JSONRPCSmdTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/http-jsonrpc/src/test/resources/org/apache/tuscany/sca/binding/http/wireformat/jsonrpc/JSONRPCBinding.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/implementation-jee-external-ear/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/implementation-jee-external-ear/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.resolver.ModelResolver create mode 100644 tags/java/sca/1.5.1-RC4/itest/implementation-jee-external-ear/src/main/resources/META-INF/services/org.apache.tuscany.sca.provider.ImplementationProviderFactory create mode 100644 tags/java/sca/1.5.1-RC4/itest/implementation-jee-external-ear/src/main/resources/test.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/implementation-jee-external-ear/src/test/java/itest/Helloworld.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/implementation-jee-external-ear/src/test/java/itest/JeeTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/implementation-jee-external-ear/src/test/java/itest/MockImplementationProviderFactory.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/implementation-jee-external-ear/src/test/java/itest/SomeCustomModelResolver.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/interfaces/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/interfaces/src/main/java/org/apache/tuscany/sca/itest/interfaces/LocalCallbackInterface.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/interfaces/src/main/java/org/apache/tuscany/sca/itest/interfaces/LocalClientComponent.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/interfaces/src/main/java/org/apache/tuscany/sca/itest/interfaces/LocalClientComponentImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/interfaces/src/main/java/org/apache/tuscany/sca/itest/interfaces/LocalServiceComponent.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/interfaces/src/main/java/org/apache/tuscany/sca/itest/interfaces/LocalServiceComponentImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/interfaces/src/main/java/org/apache/tuscany/sca/itest/interfaces/ParameterObject.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/interfaces/src/main/java/org/apache/tuscany/sca/itest/interfaces/RemoteCallbackInterface.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/interfaces/src/main/java/org/apache/tuscany/sca/itest/interfaces/RemoteClientComponent.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/interfaces/src/main/java/org/apache/tuscany/sca/itest/interfaces/RemoteClientComponentImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/interfaces/src/main/java/org/apache/tuscany/sca/itest/interfaces/RemoteServiceComponent.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/interfaces/src/main/java/org/apache/tuscany/sca/itest/interfaces/RemoteServiceComponentImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/interfaces/src/main/resources/InterfacesTest.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/interfaces/src/test/java/org/apache/tuscany/sca/itest/interfaces/InterfacesTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/interop-soap-client/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/interop-soap-client/src/main/java/org/apache/tuscany/test/interop/client/LoopbackInteropDocServiceComponentImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/interop-soap-client/src/main/resources/default.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/interop-soap-client/src/main/resources/wsdl/interopdoc.wsdl create mode 100644 tags/java/sca/1.5.1-RC4/itest/interop-soap-client/src/test/java/org/apache/tuscany/test/interop/client/InteropDocClientTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/interop-soap-round2-client/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/interop-soap-round2-client/src/main/java/org/apache/tuscany/test/interop/client/InteropTestDocLit.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/interop-soap-round2-client/src/main/resources/default.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/interop-soap-round2-client/src/main/resources/wsdl/interoptestdoclit.wsdl create mode 100644 tags/java/sca/1.5.1-RC4/itest/interop-soap-round2-client/src/test/java/org/apache/tuscany/test/interop/client/InteropTestDocLitTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/interop-soap-service/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/interop-soap-service/src/main/java/org/apache/tuscany/test/interop/server/InteropDocServiceComponentImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/interop-soap-service/src/main/resources/wsdl/interopdoc.wsdl create mode 100644 tags/java/sca/1.5.1-RC4/itest/interop-soap-service/src/main/webapp/META-INF/sca/default.scdl create mode 100644 tags/java/sca/1.5.1-RC4/itest/interop-soap-service/src/main/webapp/WEB-INF/web.xml create mode 100755 tags/java/sca/1.5.1-RC4/itest/interop-soap-service/t.bat create mode 100644 tags/java/sca/1.5.1-RC4/itest/java-init-exceptions/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/java-init-exceptions/src/main/java/itest/ConstructorException.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/java-init-exceptions/src/main/java/itest/InitCompositeScopeException.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/java-init-exceptions/src/main/java/itest/InitRequestScopeException.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/java-init-exceptions/src/main/java/itest/InitStatelessScopeException.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/java-init-exceptions/src/main/java/itest/OkImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/java-init-exceptions/src/main/java/itest/Service.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/java-init-exceptions/src/main/resources/test.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/java-init-exceptions/src/test/java/itest/InitTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/jaxws/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/jaxws/src/main/java/com/tuscanyscatours/payment/impl/PaymentImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/jaxws/src/main/resources/Payment.wsdl create mode 100644 tags/java/sca/1.5.1-RC4/itest/jaxws/src/main/resources/payment.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/jaxws/src/test/java/scatours/payment/PaymentTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms-args/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms-args/src/main/java/org/apache/tuscany/sca/binding/jms/ClientImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms-args/src/main/java/org/apache/tuscany/sca/binding/jms/MyService.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms-args/src/main/java/org/apache/tuscany/sca/binding/jms/ServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms-args/src/main/resources/jndi.properties create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms-args/src/main/resources/selectors/selectors.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms-args/src/test/java/org/apache/tuscany/sca/binding/jms/ArgsTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms-callbacks/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms-callbacks/src/main/java/org/apache/tuscany/sca/binding/jms/JMSClient.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms-callbacks/src/main/java/org/apache/tuscany/sca/binding/jms/JMSClientImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms-callbacks/src/main/java/org/apache/tuscany/sca/binding/jms/JMSService.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms-callbacks/src/main/java/org/apache/tuscany/sca/binding/jms/JMSServiceCallback.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms-callbacks/src/main/java/org/apache/tuscany/sca/binding/jms/JMSServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms-callbacks/src/main/resources/jndi.properties create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms-callbacks/src/main/resources/simple/client.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms-callbacks/src/main/resources/simple/tempq.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms-callbacks/src/test/java/org/apache/tuscany/sca/binding/jms/CallbackTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms-callbacks/src/test/java/org/apache/tuscany/sca/binding/jms/TempCallbackQTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms-definitions/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms-definitions/src/main/java/org/apache/tuscany/sca/binding/jms/OneWayClientImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms-definitions/src/main/java/org/apache/tuscany/sca/binding/jms/OneWayService.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms-definitions/src/main/java/org/apache/tuscany/sca/binding/jms/OneWayServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms-definitions/src/main/resources/definitions.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms-definitions/src/main/resources/definitions/definitions.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms-definitions/src/main/resources/jndi.properties create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms-definitions/src/test/java/org/apache/tuscany/sca/binding/jms/DefinitionsTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms-format/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms-format/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/CheckedException.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms-format/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/HelloWorldReference.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms-format/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/HelloWorldReferenceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms-format/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/HelloWorldService.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms-format/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/HelloWorldServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms-format/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytes/helloworld/HelloWorldServiceReference.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms-format/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytesxml/helloworld/CheckedException.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms-format/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytesxml/helloworld/HelloWorldReference.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms-format/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytesxml/helloworld/HelloWorldReferenceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms-format/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytesxml/helloworld/HelloWorldService.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms-format/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsbytesxml/helloworld/HelloWorldServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms-format/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsdefault/helloworld/CheckedException.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms-format/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsdefault/helloworld/HelloWorldReference.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms-format/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsdefault/helloworld/HelloWorldReferenceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms-format/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsdefault/helloworld/HelloWorldService.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms-format/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsdefault/helloworld/HelloWorldServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms-format/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsdefault/helloworld/Person.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms-format/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsmessage/helloworld/HelloWorldReference.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms-format/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsmessage/helloworld/HelloWorldReferenceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms-format/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsmessage/helloworld/HelloWorldService.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms-format/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsmessage/helloworld/HelloWorldServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms-format/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsmessage/helloworld/HelloWorldServiceReferenceSide.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms-format/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsmessage/helloworld/README create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms-format/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsobject/helloworld/CheckedException.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms-format/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsobject/helloworld/HelloWorldReference.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms-format/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsobject/helloworld/HelloWorldReferenceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms-format/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsobject/helloworld/HelloWorldService.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms-format/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsobject/helloworld/HelloWorldServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms-format/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsobject/helloworld/Person.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms-format/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmstext/helloworld/CheckedException.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms-format/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmstext/helloworld/HelloWorldReference.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms-format/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmstext/helloworld/HelloWorldReferenceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms-format/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmstext/helloworld/HelloWorldService.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms-format/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmstext/helloworld/HelloWorldServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms-format/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmstext/helloworld/HelloWorldServiceReference.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms-format/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmstextxml/helloworld/CheckedException.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms-format/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmstextxml/helloworld/HelloWorldReference.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms-format/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmstextxml/helloworld/HelloWorldReferenceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms-format/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmstextxml/helloworld/HelloWorldService.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms-format/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmstextxml/helloworld/HelloWorldServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms-format/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmstextxml/helloworld/Person.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms-format/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmstextxmlinjmsobjectout/helloworld/HelloWorldReferenceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms-format/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmstextxmlinjmsobjectout/helloworld/HelloWorldService.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms-format/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmstextxmlinjmsobjectout/helloworld/HelloWorldServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms-format/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmstextxmlinjmsobjectout/helloworld/Person.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms-format/src/main/resources/META-INF/sca-contribution.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms-format/src/main/resources/jmsbytes/helloworld.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms-format/src/main/resources/jmsbytesxml/helloworld.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms-format/src/main/resources/jmsdefault/helloworld.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms-format/src/main/resources/jmsdefault/helloworld.wsdl create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms-format/src/main/resources/jmsmessage/helloworld.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms-format/src/main/resources/jmsmessage/helloworld.wsdl create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms-format/src/main/resources/jmsobject/helloworld.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms-format/src/main/resources/jmsobject/helloworld.wsdl create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms-format/src/main/resources/jmstext/helloworld.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms-format/src/main/resources/jmstextxml/helloworld.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms-format/src/main/resources/jmstextxml/helloworld.wsdl create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms-format/src/main/resources/jmstextxmlinjmsobjectout/helloworld.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms-format/src/main/resources/jmstextxmlinjmsobjectout/helloworld.wsdl create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms-format/src/main/resources/jndi.properties create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms-format/src/test/java/org/apache/tuscany/sca/binding/jms/format/FormatJMSBytesTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms-format/src/test/java/org/apache/tuscany/sca/binding/jms/format/FormatJMSBytesXMLTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms-format/src/test/java/org/apache/tuscany/sca/binding/jms/format/FormatJMSDefaultTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms-format/src/test/java/org/apache/tuscany/sca/binding/jms/format/FormatJMSMessageTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms-format/src/test/java/org/apache/tuscany/sca/binding/jms/format/FormatJMSObjectTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms-format/src/test/java/org/apache/tuscany/sca/binding/jms/format/FormatJMSTextTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms-format/src/test/java/org/apache/tuscany/sca/binding/jms/format/FormatJMSTextXMLInJMSObjectOutTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms-format/src/test/java/org/apache/tuscany/sca/binding/jms/format/FormatJMSTextXMLTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms-nonscaclient-exceptions/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms-nonscaclient-exceptions/src/main/java/org/apache/tuscany/sca/binding/jms/CheckedExcpetion.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms-nonscaclient-exceptions/src/main/java/org/apache/tuscany/sca/binding/jms/CheckedExcpetion2Args.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms-nonscaclient-exceptions/src/main/java/org/apache/tuscany/sca/binding/jms/CheckedExcpetionChained.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms-nonscaclient-exceptions/src/main/java/org/apache/tuscany/sca/binding/jms/CheckedExcpetionNoArgs.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms-nonscaclient-exceptions/src/main/java/org/apache/tuscany/sca/binding/jms/ExceptionService.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms-nonscaclient-exceptions/src/main/java/org/apache/tuscany/sca/binding/jms/ExceptionServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms-nonscaclient-exceptions/src/main/resources/exceptions/service.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms-nonscaclient-exceptions/src/main/resources/jndi.properties create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms-nonscaclient-exceptions/src/test/java/org/apache/tuscany/sca/binding/jms/ExceptionsTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms-noreplyto/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms-noreplyto/src/main/java/org/apache/tuscany/sca/binding/jms/HelloWorldService.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms-noreplyto/src/main/java/org/apache/tuscany/sca/binding/jms/HelloWorldServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms-noreplyto/src/main/resources/jndi.properties create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms-noreplyto/src/main/resources/service.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms-noreplyto/src/test/java/org/apache/tuscany/sca/binding/jms/NoReplyToTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms-nulls/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms-nulls/src/main/java/org/apache/tuscany/sca/binding/jms/ClientImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms-nulls/src/main/java/org/apache/tuscany/sca/binding/jms/MyService.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms-nulls/src/main/java/org/apache/tuscany/sca/binding/jms/ServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms-nulls/src/main/resources/jndi.properties create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms-nulls/src/main/resources/nulls.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms-nulls/src/test/java/org/apache/tuscany/sca/binding/jms/NullsTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms-oneway-nocf/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms-oneway-nocf/src/main/java/org/apache/tuscany/sca/binding/jms/OneWayClientImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms-oneway-nocf/src/main/java/org/apache/tuscany/sca/binding/jms/OneWayService.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms-oneway-nocf/src/main/java/org/apache/tuscany/sca/binding/jms/OneWayServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms-oneway-nocf/src/main/resources/jndi.properties create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms-oneway-nocf/src/main/resources/oneway/OneWayClient.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms-oneway-nocf/src/main/resources/oneway/OneWayService.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms-oneway-nocf/src/test/java/org/apache/tuscany/sca/binding/jms/OneWayTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms-responsecf/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms-responsecf/src/main/java/org/apache/tuscany/sca/binding/jms/HelloWorldClientImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms-responsecf/src/main/java/org/apache/tuscany/sca/binding/jms/HelloWorldService.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms-responsecf/src/main/java/org/apache/tuscany/sca/binding/jms/HelloWorldServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms-responsecf/src/main/resources/cf/client.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms-responsecf/src/main/resources/cf/service.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms-responsecf/src/main/resources/jndi.properties create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms-responsecf/src/test/java/org/apache/tuscany/sca/binding/jms/ResponseCFTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms-selectors/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms-selectors/src/main/java/org/apache/tuscany/sca/binding/jms/ClientImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms-selectors/src/main/java/org/apache/tuscany/sca/binding/jms/SelectorService.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms-selectors/src/main/java/org/apache/tuscany/sca/binding/jms/SelectorServiceImpl1.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms-selectors/src/main/java/org/apache/tuscany/sca/binding/jms/SelectorServiceImpl2.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms-selectors/src/main/java/org/apache/tuscany/sca/binding/jms/SelectorServiceImpl3.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms-selectors/src/main/java/org/apache/tuscany/sca/binding/jms/operationselector/jmsdefault/HelloWorldReference.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms-selectors/src/main/java/org/apache/tuscany/sca/binding/jms/operationselector/jmsdefault/HelloWorldReferenceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms-selectors/src/main/java/org/apache/tuscany/sca/binding/jms/operationselector/jmsdefault/HelloWorldService.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms-selectors/src/main/java/org/apache/tuscany/sca/binding/jms/operationselector/jmsdefault/HelloWorldServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms-selectors/src/main/java/org/apache/tuscany/sca/binding/jms/operationselector/jmsuserprop/HelloWorldReference.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms-selectors/src/main/java/org/apache/tuscany/sca/binding/jms/operationselector/jmsuserprop/HelloWorldReferenceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms-selectors/src/main/java/org/apache/tuscany/sca/binding/jms/operationselector/jmsuserprop/HelloWorldService.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms-selectors/src/main/java/org/apache/tuscany/sca/binding/jms/operationselector/jmsuserprop/HelloWorldServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms-selectors/src/main/resources/jmsdefault/helloworld.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms-selectors/src/main/resources/jmsuserprop/helloworld.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms-selectors/src/main/resources/jndi.properties create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms-selectors/src/main/resources/selectors/selectors.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms-selectors/src/test/java/org/apache/tuscany/sca/binding/jms/OperationselectorJMSDefaultTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms-selectors/src/test/java/org/apache/tuscany/sca/binding/jms/OperationselectorJMSUserPropTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms-selectors/src/test/java/org/apache/tuscany/sca/binding/jms/SelectorsTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms-topics/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms-topics/src/main/java/org/apache/tuscany/sca/binding/jms/OneWayClientImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms-topics/src/main/java/org/apache/tuscany/sca/binding/jms/OneWayService.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms-topics/src/main/java/org/apache/tuscany/sca/binding/jms/OneWayServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms-topics/src/main/resources/jndi.properties create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms-topics/src/main/resources/topics/TopicsClient.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms-topics/src/main/resources/topics/TopicsService.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms-topics/src/test/java/org/apache/tuscany/sca/binding/jms/TopicsTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms-ttl/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms-ttl/src/main/java/itest/MockInitialContextFactory.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms-ttl/src/main/java/org/apache/tuscany/sca/binding/jms/ClientIface.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms-ttl/src/main/java/org/apache/tuscany/sca/binding/jms/ClientImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms-ttl/src/main/resources/jndi.properties create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms-ttl/src/main/resources/ttl.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms-ttl/src/test/java/org/apache/tuscany/sca/binding/jms/TTLTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms/src/main/java/org/apache/tuscany/sca/binding/jms/CheckedExcpetion.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms/src/main/java/org/apache/tuscany/sca/binding/jms/CheckedExcpetion2Args.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms/src/main/java/org/apache/tuscany/sca/binding/jms/CheckedExcpetionChained.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms/src/main/java/org/apache/tuscany/sca/binding/jms/CheckedExcpetionNoArgs.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms/src/main/java/org/apache/tuscany/sca/binding/jms/ExceptionService.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms/src/main/java/org/apache/tuscany/sca/binding/jms/ExceptionServiceClient.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms/src/main/java/org/apache/tuscany/sca/binding/jms/ExceptionServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms/src/main/java/org/apache/tuscany/sca/binding/jms/HelloWorldClientImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms/src/main/java/org/apache/tuscany/sca/binding/jms/HelloWorldService.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms/src/main/java/org/apache/tuscany/sca/binding/jms/HelloWorldServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms/src/main/java/org/apache/tuscany/sca/binding/jms/JMSClient.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms/src/main/java/org/apache/tuscany/sca/binding/jms/MsgClient.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms/src/main/java/org/apache/tuscany/sca/binding/jms/MsgClientImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms/src/main/java/org/apache/tuscany/sca/binding/jms/MsgClientService.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms/src/main/java/org/apache/tuscany/sca/binding/jms/MsgService.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms/src/main/java/org/apache/tuscany/sca/binding/jms/MsgServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms/src/main/java/org/apache/tuscany/sca/binding/jms/OneWayClientImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms/src/main/java/org/apache/tuscany/sca/binding/jms/OneWayObjectService.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms/src/main/java/org/apache/tuscany/sca/binding/jms/OneWayObjectServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms/src/main/java/org/apache/tuscany/sca/binding/jms/OneWayService.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms/src/main/java/org/apache/tuscany/sca/binding/jms/OneWayServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms/src/main/java/org/apache/tuscany/sca/binding/jms/TestMessageProcessor.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms/src/main/resources/defaults/client.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms/src/main/resources/defaults/service.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms/src/main/resources/dynamic/client.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms/src/main/resources/exceptions/client.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms/src/main/resources/exceptions/service.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms/src/main/resources/external/client.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms/src/main/resources/external/service.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms/src/main/resources/jndi.properties create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms/src/main/resources/nonSCAclient/service.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms/src/main/resources/oneway/OneWayClient.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms/src/main/resources/oneway/OneWayService.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms/src/main/resources/policyHeaders/definitions.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms/src/main/resources/policyHeaders/policyHeaders.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms/src/main/resources/properties/properties.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms/src/main/resources/simple/client.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms/src/main/resources/simple/mpclient.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms/src/main/resources/simple/mpservice.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms/src/main/resources/simple/service.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms/src/main/resources/simple/uriclient.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms/src/test/java/org/apache/tuscany/sca/binding/jms/DefaultsTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms/src/test/java/org/apache/tuscany/sca/binding/jms/DynamicReplyQTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms/src/test/java/org/apache/tuscany/sca/binding/jms/ExceptionsTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms/src/test/java/org/apache/tuscany/sca/binding/jms/ExternalBrokerTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms/src/test/java/org/apache/tuscany/sca/binding/jms/MessageProcessorTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms/src/test/java/org/apache/tuscany/sca/binding/jms/NonSCAClientTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms/src/test/java/org/apache/tuscany/sca/binding/jms/OneWayTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms/src/test/java/org/apache/tuscany/sca/binding/jms/PolicyHeadersTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms/src/test/java/org/apache/tuscany/sca/binding/jms/PropertiesTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms/src/test/java/org/apache/tuscany/sca/binding/jms/RPCTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/jms/src/test/java/org/apache/tuscany/sca/binding/jms/URIRPCTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/late-reference-resolution/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/late-reference-resolution/src/main/java/calculator/AddService.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/late-reference-resolution/src/main/java/calculator/AddServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/late-reference-resolution/src/main/java/calculator/CalculatorService.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/late-reference-resolution/src/main/java/calculator/CalculatorServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/late-reference-resolution/src/main/java/calculator/DivideService.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/late-reference-resolution/src/main/java/calculator/DivideServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/late-reference-resolution/src/main/java/calculator/MultiplyService.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/late-reference-resolution/src/main/java/calculator/MultiplyServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/late-reference-resolution/src/main/java/calculator/SubtractService.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/late-reference-resolution/src/main/java/calculator/SubtractServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/late-reference-resolution/src/main/resources/META-INF/services/org.apache.tuscany.sca.endpointresolver.EndpointResolverFactory create mode 100644 tags/java/sca/1.5.1-RC4/itest/late-reference-resolution/src/main/resources/nodeA/Calculator.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/late-reference-resolution/src/main/resources/nodeA/META-INF/sca-contribution.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/late-reference-resolution/src/main/resources/nodeB/Calculator.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/late-reference-resolution/src/main/resources/nodeB/META-INF/sca-contribution.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/late-reference-resolution/src/main/resources/nodeC/Calculator.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/late-reference-resolution/src/main/resources/nodeC/META-INF/sca-contribution.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/late-reference-resolution/src/test/java/binding/sca/BindingScaEndpointResolverFactoryImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/late-reference-resolution/src/test/java/binding/sca/BindingScaEndpointResolverImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/late-reference-resolution/src/test/java/calculator/LateReferenceResolutionTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/late-reference-resolution/src/test/java/calculator/TestRegistryImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/oneway/build.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/oneway/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/oneway/src/main/java/org/apache/tuscany/sca/itest/oneway/OneWayClient.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/oneway/src/main/java/org/apache/tuscany/sca/itest/oneway/OneWayService.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/oneway/src/main/java/org/apache/tuscany/sca/itest/oneway/impl/OneWayClientImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/oneway/src/main/java/org/apache/tuscany/sca/itest/oneway/impl/OneWayServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/oneway/src/main/resources/OneWayContribution/META-INF/sca-deployables/oneWay.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/oneway/src/test/java/org/apache/tuscany/sca/itest/oneway/OneWayTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/operation-overloading/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/operation-overloading/src/main/java/org/apache/tuscany/sca/test/opoverload/OverloadASourceTarget.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/operation-overloading/src/main/java/org/apache/tuscany/sca/test/opoverload/impl/OverloadASource.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/operation-overloading/src/main/java/org/apache/tuscany/sca/test/opoverload/impl/OverloadATarget.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/operation-overloading/src/main/resources/OperationOverload.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/operation-overloading/src/test/java/org/apache/tuscany/sca/test/opoverload/impl/OverloadATestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-contribution/contribution-classes-v2/build-bundles.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-contribution/contribution-classes-v2/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-contribution/contribution-classes-v2/src/main/java/supplychain/OSGiBundleImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-contribution/contribution-classes-v2/src/main/java/supplychain/customer/Customer.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-contribution/contribution-classes-v2/src/main/java/supplychain/customer/JavaCustomerComponentImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-contribution/contribution-classes-v2/src/main/java/supplychain/customer/OSGiCustomerComponentImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-contribution/contribution-classes-v2/src/main/java/supplychain/customer/OSGiCustomerImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-contribution/contribution-classes-v2/src/main/java/supplychain/retailer/JavaRetailerComponentImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-contribution/contribution-classes-v2/src/main/java/supplychain/retailer/OSGiRetailerComponentImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-contribution/contribution-classes-v2/src/main/java/supplychain/retailer/OSGiRetailerImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-contribution/contribution-classes-v2/src/main/java/supplychain/retailer/Retailer.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-contribution/contribution-classes-v2/src/main/java/supplychain/shipper/JavaShipperComponentImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-contribution/contribution-classes-v2/src/main/java/supplychain/shipper/OSGiShipperComponentImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-contribution/contribution-classes-v2/src/main/java/supplychain/shipper/OSGiShipperImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-contribution/contribution-classes-v2/src/main/java/supplychain/shipper/Shipper.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-contribution/contribution-classes-v2/src/main/java/supplychain/warehouse/JavaWarehouseComponentImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-contribution/contribution-classes-v2/src/main/java/supplychain/warehouse/OSGiWarehouseComponentImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-contribution/contribution-classes-v2/src/main/java/supplychain/warehouse/OSGiWarehouseImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-contribution/contribution-classes-v2/src/main/java/supplychain/warehouse/Warehouse.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-contribution/contribution-classes-v2/src/main/resources/Customer2V2.componentType create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-contribution/contribution-classes-v2/src/main/resources/CustomerV2.componentType create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-contribution/contribution-classes-v2/src/main/resources/META-INF/customer-sca-contribution.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-contribution/contribution-classes-v2/src/main/resources/META-INF/retailer-sca-contribution.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-contribution/contribution-classes-v2/src/main/resources/META-INF/shipper-sca-contribution.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-contribution/contribution-classes-v2/src/main/resources/META-INF/supplychain-sca-contribution.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-contribution/contribution-classes-v2/src/main/resources/META-INF/warehouse-sca-contribution.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-contribution/contribution-classes-v2/src/main/resources/RetailerV2.componentType create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-contribution/contribution-classes-v2/src/main/resources/ShipperV2.componentType create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-contribution/contribution-classes-v2/src/main/resources/WarehouseV2.componentType create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-contribution/contribution-classes-v2/src/main/resources/osgi/Customer.mf create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-contribution/contribution-classes-v2/src/main/resources/osgi/Customer2.mf create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-contribution/contribution-classes-v2/src/main/resources/osgi/Retailer.mf create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-contribution/contribution-classes-v2/src/main/resources/osgi/RetailerJar.mf create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-contribution/contribution-classes-v2/src/main/resources/osgi/Shipper.mf create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-contribution/contribution-classes-v2/src/main/resources/osgi/SupplyChain.mf create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-contribution/contribution-classes-v2/src/main/resources/osgi/Warehouse.mf create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-contribution/contribution-classes-v2/src/main/resources/supplychain.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-contribution/contribution-classes/build-bundles.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-contribution/contribution-classes/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-contribution/contribution-classes/src/main/java/supplychain/OSGiBundleImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-contribution/contribution-classes/src/main/java/supplychain/customer/Customer.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-contribution/contribution-classes/src/main/java/supplychain/customer/JavaCustomerComponentImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-contribution/contribution-classes/src/main/java/supplychain/customer/OSGiCustomerComponentImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-contribution/contribution-classes/src/main/java/supplychain/customer/OSGiCustomerImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-contribution/contribution-classes/src/main/java/supplychain/retailer/JavaRetailerComponentImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-contribution/contribution-classes/src/main/java/supplychain/retailer/OSGiRetailerComponentImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-contribution/contribution-classes/src/main/java/supplychain/retailer/OSGiRetailerImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-contribution/contribution-classes/src/main/java/supplychain/retailer/Retailer.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-contribution/contribution-classes/src/main/java/supplychain/shipper/JavaShipperComponentImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-contribution/contribution-classes/src/main/java/supplychain/shipper/OSGiShipperComponentImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-contribution/contribution-classes/src/main/java/supplychain/shipper/OSGiShipperImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-contribution/contribution-classes/src/main/java/supplychain/shipper/Shipper.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-contribution/contribution-classes/src/main/java/supplychain/warehouse/JavaWarehouseComponentImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-contribution/contribution-classes/src/main/java/supplychain/warehouse/OSGiWarehouseComponentImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-contribution/contribution-classes/src/main/java/supplychain/warehouse/OSGiWarehouseImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-contribution/contribution-classes/src/main/java/supplychain/warehouse/Warehouse.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-contribution/contribution-classes/src/main/resources/Customer2V1.componentType create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-contribution/contribution-classes/src/main/resources/CustomerV1.componentType create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-contribution/contribution-classes/src/main/resources/META-INF/customer-sca-contribution.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-contribution/contribution-classes/src/main/resources/META-INF/retailer-sca-contribution.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-contribution/contribution-classes/src/main/resources/META-INF/shipper-sca-contribution.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-contribution/contribution-classes/src/main/resources/META-INF/supplychain-sca-contribution.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-contribution/contribution-classes/src/main/resources/META-INF/warehouse-sca-contribution.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-contribution/contribution-classes/src/main/resources/RetailerV1.componentType create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-contribution/contribution-classes/src/main/resources/ShipperV1.componentType create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-contribution/contribution-classes/src/main/resources/WarehouseV1.componentType create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-contribution/contribution-classes/src/main/resources/osgi/Customer.mf create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-contribution/contribution-classes/src/main/resources/osgi/Customer2.mf create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-contribution/contribution-classes/src/main/resources/osgi/Retailer.mf create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-contribution/contribution-classes/src/main/resources/osgi/RetailerJar.mf create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-contribution/contribution-classes/src/main/resources/osgi/Shipper.mf create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-contribution/contribution-classes/src/main/resources/osgi/SupplyChain.mf create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-contribution/contribution-classes/src/main/resources/osgi/Warehouse.mf create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-contribution/contribution-classes/src/main/resources/supplychain.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-contribution/contribution-test/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-contribution/contribution-test/src/main/java/org/apache/tuscany/sca/contribution/osgi/OSGiTestUtil.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-contribution/contribution-test/src/test/java/org/apache/tuscany/sca/contribution/osgi/test/MixedContributionTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-contribution/contribution-test/src/test/java/org/apache/tuscany/sca/contribution/osgi/test/NestedBundleTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-contribution/contribution-test/src/test/java/org/apache/tuscany/sca/contribution/osgi/test/OSGiResolverTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-contribution/contribution-test/src/test/java/org/apache/tuscany/sca/contribution/osgi/test/SCAResolverTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-contribution/contribution-test/src/test/resources/osgi/felix/felix.config.properties create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-contribution/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/build-bundles.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/java/callback/client/CallbackCallback.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/java/callback/client/CallbackClient.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/java/callback/client/JavaCallbackClientImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/java/callback/client/OSGiCallbackClientImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/java/callback/service/CallbackService.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/java/callback/service/JavaCallbackServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/java/callback/service/OSGiCallbackServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/java/conversation/client/ConversationalCallback.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/java/conversation/client/ConversationalClient.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/java/conversation/client/ConversationalClientActivator.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/java/conversation/client/ConversationalClientServiceFactory.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/java/conversation/client/ConversationalClientStatefulImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/java/conversation/client/ConversationalClientStatelessImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/java/conversation/referenceclient/ConversationalReferenceClient.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/java/conversation/referenceclient/ConversationalReferenceClientActivator.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/java/conversation/referenceclient/ConversationalReferenceClientImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/java/conversation/service/ConversationalService.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/java/conversation/service/ConversationalServiceActivator.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/java/conversation/service/ConversationalServiceFactory.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/java/conversation/service/ConversationalServiceStatefulImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/java/conversation/service/ConversationalServiceStatelessImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/java/helloworld/Greetings.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/java/helloworld/HelloWorld.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/java/helloworld/JavaGreetingsComponent.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/java/helloworld/JavaHelloWorldComponent.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/java/helloworld/OSGiGreetingsImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/java/helloworld/OSGiHelloWorldImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/java/helloworld/sdo/HelloWorldService.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/java/helloworld/sdo/HelloWorldServiceComponent.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/java/helloworld/sdo/client/HelloWorldClient.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/java/helloworld/sdo/client/HelloWorldClientComponent.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/java/helloworld/ws/HelloWorld.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/java/helloworld/ws/HelloWorldService.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/java/stockquote/OSGiStockQuoteComponentImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/java/stockquote/OSGiStockQuoteFactoryImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/java/stockquote/OSGiStockQuoteImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/java/stockquote/StockQuote.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/java/supplychain/OSGiBundleImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/java/supplychain/customer/Customer.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/java/supplychain/customer/JavaCustomerComponentImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/java/supplychain/customer/OSGiCustomerComponentImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/java/supplychain/customer/OSGiCustomerFactoryImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/java/supplychain/customer/OSGiCustomerImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/java/supplychain/customer/OSGiCustomerWithQueryComponentImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/java/supplychain/customer/OSGiCustomerWithQueryImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/java/supplychain/customer/OSGiStatelessCustomerComponentImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/java/supplychain/customer/OSGiStatelessCustomerImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/java/supplychain/customer/OSGiVersionedCustomerImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/java/supplychain/retailer/JavaRetailerComponentImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/java/supplychain/retailer/OSGiRetailerComponentImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/java/supplychain/retailer/OSGiRetailerImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/java/supplychain/retailer/OSGiRetailerServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/java/supplychain/retailer/OSGiRetailerWithQueryComponentImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/java/supplychain/retailer/OSGiRetailerWithQueryImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/java/supplychain/retailer/OSGiVersionedRetailerImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/java/supplychain/retailer/OSGiVersionedRetailerServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/java/supplychain/retailer/Retailer.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/java/supplychain/retailer/RetailerQuery.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/java/supplychain/shipper/JavaShipperComponentImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/java/supplychain/shipper/OSGiShipperComponentImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/java/supplychain/shipper/OSGiShipperFactoryImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/java/supplychain/shipper/OSGiShipperImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/java/supplychain/shipper/OSGiShipperServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/java/supplychain/shipper/OSGiStatelessShipperComponentImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/java/supplychain/shipper/OSGiStatelessShipperServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/java/supplychain/shipper/OSGiVersionedShipperImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/java/supplychain/shipper/OSGiVersionedShipperServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/java/supplychain/shipper/Shipper.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/java/supplychain/warehouse/JavaWarehouseComponentImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/java/supplychain/warehouse/JavaWarehouseWithQueryComponentImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/java/supplychain/warehouse/OSGiWarehouseComponentImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/java/supplychain/warehouse/OSGiWarehouseImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/java/supplychain/warehouse/OSGiWarehouseServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/java/supplychain/warehouse/Warehouse.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/java/supplychain/warehouse/WarehouseQuery.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/callback/CallbackClient.componentType create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/callback/CallbackService.componentType create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/callback/callback-test1.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/callback/callback-test2.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/callback/callback-test3.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/conversation/ConversationalClient.componentType create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/conversation/ConversationalReferenceClient.componentType create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/conversation/ConversationalService.componentType create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/conversation/conversation-test.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/factory/Customer.componentType create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/factory/Retailer.componentType create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/factory/Shipper.componentType create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/factory/Warehouse.componentType create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/factory/ds/Customer.componentType create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/factory/ds/Retailer.componentType create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/factory/ds/Shipper.componentType create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/factory/ds/Warehouse.componentType create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/factory/ds/factory-ds-test.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/factory/factory-test.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/helloworld/Greetings.componentType create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/helloworld/HelloWorld.componentType create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/interfaces/Customer.componentType create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/interfaces/Retailer.componentType create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/interfaces/Shipper.componentType create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/interfaces/Warehouse.componentType create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/interfaces/ds/Customer.componentType create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/interfaces/ds/Retailer.componentType create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/interfaces/ds/Shipper.componentType create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/interfaces/ds/Warehouse.componentType create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/interfaces/ds/interfaces-ds-test.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/interfaces/interfaces-test.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/osgi/callback/CallbackClient.mf create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/osgi/callback/CallbackService.mf create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/osgi/conversation/ConversationalClient.mf create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/osgi/conversation/ConversationalReferenceClient.mf create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/osgi/conversation/ConversationalService.mf create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/osgi/factory/Customer.mf create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/osgi/factory/Retailer.mf create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/osgi/factory/Shipper.mf create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/osgi/factory/ds/Customer.mf create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/osgi/factory/ds/Customer.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/osgi/factory/ds/Retailer.mf create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/osgi/factory/ds/Retailer1.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/osgi/factory/ds/Retailer2.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/osgi/factory/ds/Shipper.mf create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/osgi/factory/ds/Shipper1.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/osgi/factory/ds/Shipper2.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/osgi/factory/ds/Warehouse.mf create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/osgi/factory/ds/Warehouse.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/osgi/interfaces/Customer.mf create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/osgi/interfaces/Retailer.mf create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/osgi/interfaces/Shipper.mf create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/osgi/interfaces/ds/Customer.mf create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/osgi/interfaces/ds/Customer.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/osgi/interfaces/ds/Retailer.mf create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/osgi/interfaces/ds/Retailer.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/osgi/interfaces/ds/Shipper.mf create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/osgi/interfaces/ds/Shipper.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/osgi/passbyref/Greetings.mf create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/osgi/properties/ManagedStockQuoteFactory.mf create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/osgi/properties/StockQuote.mf create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/osgi/properties/StockQuoteFactory.mf create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/osgi/properties/ds/StockQuote.mf create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/osgi/properties/ds/StockQuote.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/osgi/properties/ds/StockQuoteFactory.mf create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/osgi/properties/ds/StockQuoteFactory.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/osgi/sdo/ds/HelloWorldClient.mf create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/osgi/sdo/ds/HelloWorldClient.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/osgi/sdo/ds/HelloWorldService.mf create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/osgi/sdo/ds/HelloWorldService.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/osgi/services/Customer.mf create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/osgi/services/Retailer.mf create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/osgi/services/Shipper.mf create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/osgi/services/Warehouse.mf create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/osgi/services/ds/Customer.mf create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/osgi/services/ds/Customer.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/osgi/services/ds/Retailer.mf create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/osgi/services/ds/Retailer1.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/osgi/services/ds/Retailer2.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/osgi/services/ds/Shipper.mf create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/osgi/services/ds/Shipper1.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/osgi/services/ds/Shipper2.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/osgi/services/ds/Warehouse.mf create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/osgi/services/ds/Warehouse1.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/osgi/services/ds/Warehouse2.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/osgi/version/Customer1.mf create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/osgi/version/Customer2.mf create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/osgi/version/Retailer1.mf create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/osgi/version/Retailer2.mf create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/osgi/version/Shipper1.mf create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/osgi/version/Shipper2.mf create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/osgi/version/Warehouse1.mf create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/osgi/version/Warehouse2.mf create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/osgi/version/ds/Customer1.mf create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/osgi/version/ds/Customer2.mf create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/osgi/version/ds/CustomerV1.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/osgi/version/ds/CustomerV2.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/osgi/version/ds/Retailer1.mf create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/osgi/version/ds/Retailer1V1.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/osgi/version/ds/Retailer1V2.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/osgi/version/ds/Retailer2.mf create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/osgi/version/ds/Retailer2V1.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/osgi/version/ds/Retailer2V2.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/osgi/version/ds/Shipper1.mf create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/osgi/version/ds/Shipper1V1.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/osgi/version/ds/Shipper1V2.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/osgi/version/ds/Shipper2.mf create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/osgi/version/ds/Shipper2V1.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/osgi/version/ds/Shipper2V2.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/osgi/version/ds/Warehouse1.mf create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/osgi/version/ds/Warehouse1V1.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/osgi/version/ds/Warehouse1V2.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/osgi/version/ds/Warehouse2.mf create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/osgi/version/ds/Warehouse2V1.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/osgi/version/ds/Warehouse2V2.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/osgi/wiring/Customer.mf create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/osgi/wiring/Retailer.mf create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/osgi/wiring/Shipper.mf create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/osgi/wiring/Warehouse.mf create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/osgi/wiring/ds/Customer.mf create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/osgi/wiring/ds/Customer.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/osgi/wiring/ds/Retailer.mf create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/osgi/wiring/ds/Retailer1.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/osgi/wiring/ds/Retailer2.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/osgi/wiring/ds/Shipper.mf create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/osgi/wiring/ds/Shipper1.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/osgi/wiring/ds/Shipper2.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/osgi/wiring/ds/Warehouse.mf create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/osgi/wiring/ds/Warehouse1.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/osgi/wiring/ds/Warehouse2.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/osgi/ws/HelloWorld.mf create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/passbyref/Greetings.componentType create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/passbyref/passbyref-test.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/properties/StockQuote.componentType create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/properties/StockQuoteFactory.componentType create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/properties/ds/StockQuote.componentType create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/properties/ds/StockQuoteFactory.componentType create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/properties/ds/properties-ds-test.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/properties/ds/properties2-ds-test.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/properties/properties-test.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/properties/properties2-test.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/sdo/ds/HelloWorldClient.componentType create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/sdo/ds/HelloWorldService.componentType create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/sdo/ds/META-INF/sca-contribution.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/sdo/ds/helloworld.wsdl create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/sdo/ds/helloworldsdo.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/services/Customer.componentType create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/services/Retailer.componentType create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/services/Shipper.componentType create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/services/Warehouse.componentType create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/services/ds/Customer.componentType create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/services/ds/Retailer.componentType create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/services/ds/Shipper.componentType create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/services/ds/Warehouse.componentType create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/services/ds/services-ds-test.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/services/services-test.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/stockquote/StockQuote.componentType create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/version/Customer1.componentType create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/version/Customer2.componentType create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/version/Retailer1.componentType create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/version/Retailer2.componentType create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/version/Shipper1.componentType create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/version/Shipper2.componentType create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/version/Warehouse1.componentType create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/version/Warehouse2.componentType create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/version/ds/Customer1.componentType create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/version/ds/Customer2.componentType create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/version/ds/Retailer1.componentType create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/version/ds/Retailer2.componentType create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/version/ds/Shipper1.componentType create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/version/ds/Shipper2.componentType create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/version/ds/Warehouse1.componentType create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/version/ds/Warehouse2.componentType create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/version/ds/version-ds-test.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/version/version-test.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/wiring/Customer.componentType create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/wiring/Retailer.componentType create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/wiring/Shipper.componentType create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/wiring/Warehouse.componentType create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/wiring/ds/Customer.componentType create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/wiring/ds/Retailer.componentType create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/wiring/ds/Shipper.componentType create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/wiring/ds/Warehouse.componentType create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/wiring/ds/wiring-ds-test1.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/wiring/ds/wiring-ds-test2.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/wiring/wiring-test1.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/wiring/wiring-test2.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/ws/HelloWorld.componentType create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/ws/helloworld.wsdl create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/main/resources/ws/ws-helloworld.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/test/java/callback/Callback1TestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/test/java/callback/Callback2TestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/test/java/callback/Callback3TestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/test/java/callback/CallbackTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/test/java/conversation/ConversationTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/test/java/helloworld/passbyref/PassByRefTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/test/java/helloworld/sdo/SdoTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/test/java/helloworld/ws/HelloWorldTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/test/java/supplychain/SupplyChainTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/test/java/supplychain/VersionedSupplyChainTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/test/java/supplychain/factory/DSFactoryTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/test/java/supplychain/factory/FactoryTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/test/java/supplychain/interfaces/DSInterfacesTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/test/java/supplychain/interfaces/InterfacesTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/test/java/supplychain/properties/DSProperties2TestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/test/java/supplychain/properties/DSPropertiesTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/test/java/supplychain/properties/Properties2TestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/test/java/supplychain/properties/PropertiesTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/test/java/supplychain/services/DSServicesTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/test/java/supplychain/services/ServicesTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/test/java/supplychain/version/DSVersionTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/test/java/supplychain/version/VersionTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/test/java/supplychain/wiring/DSWiring1TestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/test/java/supplychain/wiring/DSWiring2TestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/test/java/supplychain/wiring/Wiring1TestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/test/java/supplychain/wiring/Wiring2TestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/test/java/test/OSGiTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/test/java/util/OSGiTestUtil.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-implementation/src/test/resources/osgi/felix/felix.config.properties create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-tuscany/osgi-tuscany-test/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-tuscany/osgi-tuscany-test/src/main/java/org/apache/tuscany/sca/test/osgi/runtime/impl/EquinoxTestRuntime.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-tuscany/osgi-tuscany-test/src/main/java/org/apache/tuscany/sca/test/osgi/runtime/impl/FelixTestRuntime.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-tuscany/osgi-tuscany-test/src/main/java/org/apache/tuscany/sca/test/osgi/runtime/impl/OSGiTestRuntime.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-tuscany/osgi-tuscany-test/src/main/java/org/apache/tuscany/sca/test/util/OSGiRuntimeLoader.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-tuscany/osgi-tuscany-test/src/main/java/org/apache/tuscany/sca/test/util/TuscanyLoader.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-tuscany/osgi-tuscany-test/src/test/java/org/apache/tuscany/sca/test/osgi/harness/OSGiTuscanyNonOSGiTestHarness.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-tuscany/osgi-tuscany-test/src/test/java/org/apache/tuscany/sca/test/osgi/harness/OSGiTuscanyTestHarness.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-tuscany/osgi-tuscany-test/src/test/java/org/apache/tuscany/sca/test/osgi/tuscany/CalculatorImplementationPoliciesTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-tuscany/osgi-tuscany-test/src/test/java/org/apache/tuscany/sca/test/osgi/tuscany/CalculatorRmiTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-tuscany/osgi-tuscany-test/src/test/java/org/apache/tuscany/sca/test/osgi/tuscany/CalculatorScriptTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-tuscany/osgi-tuscany-test/src/test/java/org/apache/tuscany/sca/test/osgi/tuscany/CallbackWsClientTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-tuscany/osgi-tuscany-test/src/test/java/org/apache/tuscany/sca/test/osgi/tuscany/CallbackWsServiceTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-tuscany/osgi-tuscany-test/src/test/java/org/apache/tuscany/sca/test/osgi/tuscany/HelloworldWsServiceJmsTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-tuscany/osgi-tuscany-test/src/test/java/org/apache/tuscany/sca/test/osgi/tuscany/HelloworldWsServiceSecureTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-tuscany/osgi-tuscany-test/src/test/java/org/apache/tuscany/sca/test/osgi/tuscany/HelloworldWsServiceTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-tuscany/osgi-tuscany-test/src/test/java/org/apache/tuscany/sca/test/osgi/tuscany/NonOSGiSamplesTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-tuscany/osgi-tuscany-test/src/test/java/org/apache/tuscany/sca/test/osgi/tuscany/OSGiSupplyChainTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-tuscany/osgi-tuscany-test/src/test/java/org/apache/tuscany/sca/test/osgi/tuscany/OSGiTuscanyRuntimeTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-tuscany/osgi-tuscany-test/src/test/java/org/apache/tuscany/sca/test/osgi/tuscany/TuscanySampleExtensionsTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-tuscany/osgi-tuscany-test/src/test/java/org/apache/tuscany/sca/test/osgi/tuscany/TuscanySamplesUsingOldDomainTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-tuscany/osgi-tuscany-test/src/test/resources/META-INF/MANIFEST.MF create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-tuscany/osgi-tuscany-test/src/test/resources/felix/felix.config.properties create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-tuscany/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-tuscany/test-bundles/build-bundles.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-tuscany/test-bundles/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-tuscany/test-bundles/src/main/java/supplychain/client/SupplyChainClient.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-tuscany/test-bundles/src/main/java/supplychain/customer/Customer.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-tuscany/test-bundles/src/main/java/supplychain/customer/JavaCustomerComponentImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-tuscany/test-bundles/src/main/java/supplychain/retailer/JavaRetailerComponentImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-tuscany/test-bundles/src/main/java/supplychain/retailer/Retailer.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-tuscany/test-bundles/src/main/java/supplychain/shipper/JavaShipperComponentImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-tuscany/test-bundles/src/main/java/supplychain/shipper/Shipper.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-tuscany/test-bundles/src/main/java/supplychain/warehouse/JavaWarehouseComponentImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-tuscany/test-bundles/src/main/java/supplychain/warehouse/Warehouse.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-tuscany/test-bundles/src/main/resources/META-INF/SupplyChain.mf create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-tuscany/test-bundles/src/main/resources/META-INF/SupplyChainClient.mf create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-tuscany/test-bundles/src/main/resources/META-INF/sca-contribution.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-tuscany/test-bundles/src/main/resources/supplychain/supplychain.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-tuscany/test-bundles/src/main/resources/supplychain/ws/Customer.wsdl create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-tuscany/test-bundles/src/main/resources/supplychain/ws/supplychain.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-tuscany/tuscany-osgi-installer/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-tuscany/tuscany-osgi-installer/src/main/java/org/apache/tuscany/sca/installer/InstallerBundleActivator.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/osgi-tuscany/tuscany-versioned/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/policy-security-basicauth/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/policy-security-basicauth/src/main/java/helloworld/HelloWorldClientImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/policy-security-basicauth/src/main/java/helloworld/HelloWorldService.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/policy-security-basicauth/src/main/java/helloworld/HelloWorldServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/policy-security-basicauth/src/main/resources/definitions.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/policy-security-basicauth/src/main/resources/helloworld.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/policy-security-basicauth/src/test/java/org/apache/tuscany/sca/itest/BasicAuthTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/policy-security-jsr250/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/policy-security-jsr250/src/main/java/helloworld/HelloWorldImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/policy-security-jsr250/src/main/java/helloworld/HelloWorldService.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/policy-security-jsr250/src/main/resources/definitions.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/policy-security-jsr250/src/main/resources/helloworld.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/policy-security-jsr250/src/test/java/org/apache/tuscany/sca/itest/PolicySecurityJSR250TestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/policy-security-token/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/policy-security-token/src/main/java/helloworld/HelloWorldClientImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/policy-security-token/src/main/java/helloworld/HelloWorldService.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/policy-security-token/src/main/java/helloworld/HelloWorldServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/policy-security-token/src/main/resources/definitions.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/policy-security-token/src/main/resources/helloworld.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/policy-security-token/src/main/resources/jndi.properties create mode 100644 tags/java/sca/1.5.1-RC4/itest/policy-security-token/src/test/java/org/apache/tuscany/sca/itest/TokenAuthTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/policy-security/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/policy-security/src/main/java/helloworld/HelloWorldImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/policy-security/src/main/java/helloworld/HelloWorldService.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/policy-security/src/main/resources/definitions.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/policy-security/src/main/resources/helloworld.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/policy-security/src/test/java/org/apache/tuscany/sca/itest/PolicyIdentityTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/policy/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/policy/src/main/java/calculator/AddService.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/policy/src/main/java/calculator/AddServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/policy/src/main/java/calculator/CalculatorClient.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/policy/src/main/java/calculator/CalculatorService.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/policy/src/main/java/calculator/CalculatorServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/policy/src/main/java/calculator/DivideService.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/policy/src/main/java/calculator/DivideServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/policy/src/main/java/calculator/MultiplyService.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/policy/src/main/java/calculator/MultiplyServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/policy/src/main/java/calculator/PolicyQNames.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/policy/src/main/java/calculator/SubtractService.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/policy/src/main/java/calculator/SubtractServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/policy/src/main/java/calculator/policy/TestImplPolicyHandler.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/policy/src/main/java/calculator/policy/TestRefPolicyHandler.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/policy/src/main/java/calculator/policy/TestSvcPolicyHandler.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/policy/src/main/resources/Calculator.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/policy/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessor create mode 100644 tags/java/sca/1.5.1-RC4/itest/policy/src/main/resources/META-INF/services/org.apache.tuscany.sca.policy.util.PolicyHandler create mode 100644 tags/java/sca/1.5.1-RC4/itest/policy/src/main/resources/definitions.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/policy/src/test/java/org/apache/tuscany/sca/itest/PoliciedCalculatorTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/policy/src/test/java/org/apache/tuscany/sca/itest/Policy.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/policy/src/test/java/org/apache/tuscany/sca/itest/TestPolicyProcessor.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/promotion-interface-missmatch/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/promotion-interface-missmatch/src/main/java/com/example/BusinessException.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/promotion-interface-missmatch/src/main/java/com/example/ExampleClient.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/promotion-interface-missmatch/src/main/java/com/example/ExampleClientImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/promotion-interface-missmatch/src/main/java/com/example/ExampleService.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/promotion-interface-missmatch/src/main/java/com/example/ExampleServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/promotion-interface-missmatch/src/main/resources/example.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/promotion-interface-missmatch/src/main/resources/wsdl/ExampleService.wsdl create mode 100644 tags/java/sca/1.5.1-RC4/itest/promotion-interface-missmatch/src/main/resources/wsdl/ExampleServiceTypes.xsd create mode 100644 tags/java/sca/1.5.1-RC4/itest/promotion-interface-missmatch/src/test/java/com/example/ExampleTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/properties/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/properties/src/main/java/mysca/test/myservice/impl/MyService.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/properties/src/main/java/mysca/test/myservice/impl/MyServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/properties/src/main/java/mysca/test/myservice/impl/MyTotalServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/properties/src/main/java/org/apache/tuscany/sca/itest/ABCDComponent.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/properties/src/main/java/org/apache/tuscany/sca/itest/ABCDComponentImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/properties/src/main/java/org/apache/tuscany/sca/itest/ABComponent.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/properties/src/main/java/org/apache/tuscany/sca/itest/ABComponentImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/properties/src/main/java/org/apache/tuscany/sca/itest/CDComponent.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/properties/src/main/java/org/apache/tuscany/sca/itest/CDComponentImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/properties/src/main/java/org/apache/tuscany/sca/itest/ComplexPropertyBean.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/properties/src/main/java/org/apache/tuscany/sca/itest/OverrideService.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/properties/src/main/java/org/apache/tuscany/sca/itest/OverrideServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/properties/src/main/java/org/apache/tuscany/sca/itest/PropertyComponent.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/properties/src/main/java/org/apache/tuscany/sca/itest/PropertyComponentImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/properties/src/main/java/org/apache/tuscany/sca/itest/PropertyService.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/properties/src/main/java/org/apache/tuscany/sca/itest/cdi/Bar.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/properties/src/main/java/org/apache/tuscany/sca/itest/cdi/Foo1.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/properties/src/main/java/org/apache/tuscany/sca/itest/cdi/Foo2.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/properties/src/main/java/org/apache/tuscany/sca/itest/cdi/Foo3.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/properties/src/main/java/test/jaxb/props/ObjectFactory.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/properties/src/main/java/test/jaxb/props/ReturnCodeProperties.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/properties/src/main/java/test/jaxb/props/package-info.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/properties/src/main/resources/ConstructorPropertyInjection.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/properties/src/main/resources/Outer.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/properties/src/main/resources/OuterPropertyTest.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/properties/src/main/resources/PropertyTest.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/properties/src/main/resources/customer.xsd create mode 100644 tags/java/sca/1.5.1-RC4/itest/properties/src/main/resources/fileProperty.txt create mode 100644 tags/java/sca/1.5.1-RC4/itest/properties/src/main/resources/manyValuesFileProperty.txt create mode 100644 tags/java/sca/1.5.1-RC4/itest/properties/src/main/resources/mySimpleService.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/properties/src/main/resources/rcProps.txt create mode 100644 tags/java/sca/1.5.1-RC4/itest/properties/src/main/resources/rcprops.xsd create mode 100644 tags/java/sca/1.5.1-RC4/itest/properties/src/test/java/org/apache/tuscany/sca/itest/MyTotalServiceTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/properties/src/test/java/org/apache/tuscany/sca/itest/OuterPropertyTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/properties/src/test/java/org/apache/tuscany/sca/itest/PropertyTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/properties/src/test/java/org/apache/tuscany/sca/itest/cdi/ConstructorPropertyInjectionTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/recursive-multi-level/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/recursive-multi-level/src/main/java/mysca/test/myservice/MyService.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/recursive-multi-level/src/main/java/mysca/test/myservice/MyServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/recursive-multi-level/src/main/java/mysca/test/myservice/MySimpleTotalService.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/recursive-multi-level/src/main/java/mysca/test/myservice/MySimpleTotalServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/recursive-multi-level/src/main/resources/TotalService1Auto.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/recursive-multi-level/src/main/resources/TotalService2Auto.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/recursive-multi-level/src/main/resources/TotalService3Auto.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/recursive-multi-level/src/test/java/test/sca/tests/MultiLevelTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/recursive-ws/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/recursive-ws/src/main/java/policy/Target.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/recursive-ws/src/main/java/policy/TargetClientImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/recursive-ws/src/main/java/policy/TargetServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/recursive-ws/src/main/java/recursive/Composer.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/recursive-ws/src/main/java/recursive/ComposerClient.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/recursive-ws/src/main/java/recursive/ComposerClientImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/recursive-ws/src/main/java/recursive/ComposerImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/recursive-ws/src/main/java/recursive/ComposerServer.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/recursive-ws/src/main/resources/Client.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/recursive-ws/src/main/resources/Inner.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/recursive-ws/src/main/resources/Outer.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/recursive-ws/src/main/resources/bindingoverride/InnerComposite.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/recursive-ws/src/main/resources/bindingoverride/OuterComposite.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/recursive-ws/src/main/resources/policy/PolicyInnerComposite.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/recursive-ws/src/main/resources/policy/PolicyOuterComposite.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/recursive-ws/src/main/resources/policy/definitions.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/recursive-ws/src/test/java/bindingoverride/BindingOverrideTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/recursive-ws/src/test/java/policy/PolicyTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/recursive-ws/src/test/java/recursive/ComposerClientTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/recursive-ws/src/test/java/recursive/ComposerTestServer.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/recursive/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/recursive/src/main/java/circular/include/DemoClass.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/recursive/src/main/java/composite/CompositeClient.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/recursive/src/main/java/composite/Source.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/recursive/src/main/java/composite/SourceCallback.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/recursive/src/main/java/composite/SourceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/recursive/src/main/java/composite/Target.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/recursive/src/main/java/composite/TargetImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/recursive/src/main/java/foo/A.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/recursive/src/main/java/foo/B.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/recursive/src/main/java/foo/I.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/recursive/src/main/java/policy/Target.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/recursive/src/main/java/policy/TargetClientImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/recursive/src/main/java/policy/TargetServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/recursive/src/main/java/sample/ComponentAImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/recursive/src/main/java/sample/ComponentCImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/recursive/src/main/java/sample/ComponentEImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/recursive/src/main/java/sample/ComponentFImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/recursive/src/main/java/sample/Service1.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/recursive/src/main/java/test/Aggregator.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/recursive/src/main/java/test/AggregatorImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/recursive/src/main/java/test/InnerSourceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/recursive/src/main/java/test/OuterSourceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/recursive/src/main/java/test/Source.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/recursive/src/main/java/test1/composite/Target.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/recursive/src/main/java/test1/composite/TargetOne.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/recursive/src/main/java/test1/composite/TargetTwo.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/recursive/src/main/resources/AComposite.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/recursive/src/main/resources/BComposite.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/recursive/src/main/resources/CComposite.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/recursive/src/main/resources/Composite1.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/recursive/src/main/resources/Composite2.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/recursive/src/main/resources/Composite3.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/recursive/src/main/resources/Demo1Composite.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/recursive/src/main/resources/Demo2Composite.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/recursive/src/main/resources/Inner.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/recursive/src/main/resources/InnerComposite.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/recursive/src/main/resources/InnerComposite2.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/recursive/src/main/resources/META-INF/sca-contribution.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/recursive/src/main/resources/Outer.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/recursive/src/main/resources/OuterComposite.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/recursive/src/main/resources/foo/foo.png create mode 100644 tags/java/sca/1.5.1-RC4/itest/recursive/src/main/resources/foo/o1.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/recursive/src/main/resources/foo/o2.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/recursive/src/main/resources/foo/o3.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/recursive/src/main/resources/foo/o4.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/recursive/src/main/resources/policy/PolicyInnerComposite.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/recursive/src/main/resources/policy/PolicyOuterComposite.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/recursive/src/main/resources/policy/definitions.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/recursive/src/main/resources/test1/InnerComposite.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/recursive/src/main/resources/test1/OuterComposite.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/recursive/src/test/java/circular/include/CircularIncludeTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/recursive/src/test/java/composite/CompositeTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/recursive/src/test/java/composite/LocateServiceEmbeddedSCADomainTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/recursive/src/test/java/composite/LocateServiceSCADomainTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/recursive/src/test/java/foo/O2TestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/recursive/src/test/java/foo/O4TestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/recursive/src/test/java/policy/PolicyTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/recursive/src/test/java/sample/C.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/recursive/src/test/java/sample/CImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/recursive/src/test/java/sample/NestedTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/recursive/src/test/java/sample/RecursiveCompositeTestCaseFIXME.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/recursive/src/test/java/sample/X.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/recursive/src/test/java/sample/XImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/recursive/src/test/java/sample/Y.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/recursive/src/test/java/sample/YImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/recursive/src/test/java/test/InnerTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/recursive/src/test/java/test/OuterTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/recursive/src/test/java/test1/composite/CompositeClientTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/references-collection/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/references-collection/src/main/java/crawler/Crawler.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/references-collection/src/main/java/crawler/CrawlerController.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/references-collection/src/main/java/crawler/impl/CrawlerControllerImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/references-collection/src/main/java/crawler/impl/CrawlerImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/references-collection/src/main/java/crawler/impl/SpecialCrawlerImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/references-collection/src/main/resources/test.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/references-collection/src/test/java/crawler/ReferenceMultiplicityTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/references/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/references/src/main/java/org/apache/tuscany/sca/itest/references/AComponent.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/references/src/main/java/org/apache/tuscany/sca/itest/references/AComponentImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/references/src/main/java/org/apache/tuscany/sca/itest/references/BComponent.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/references/src/main/java/org/apache/tuscany/sca/itest/references/BComponentImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/references/src/main/java/org/apache/tuscany/sca/itest/references/BComponentWrongTargetImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/references/src/main/java/org/apache/tuscany/sca/itest/references/CComponent.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/references/src/main/java/org/apache/tuscany/sca/itest/references/CComponentImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/references/src/main/java/org/apache/tuscany/sca/itest/references/DComponent.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/references/src/main/java/org/apache/tuscany/sca/itest/references/DComponentImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/references/src/main/resources/AutoWiredReferencesTest.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/references/src/main/resources/InnerReferencesTest.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/references/src/main/resources/ManualWiredReferencesTest.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/references/src/test/java/org/apache/tuscany/sca/itest/references/AutoWiredReferenceTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/references/src/test/java/org/apache/tuscany/sca/itest/references/InnerReferenceTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/references/src/test/java/org/apache/tuscany/sca/itest/references/ManualWiredReferenceTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/scopes/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/scopes/src/main/java/org/apache/tuscany/sca/itest/scopes/CompositeScopeStateVerifierImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/scopes/src/main/java/org/apache/tuscany/sca/itest/scopes/RequestScopeStateVerifierImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/scopes/src/main/java/org/apache/tuscany/sca/itest/scopes/StateVerifier.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/scopes/src/main/resources/scopes.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/scopes/src/test/java/org/apache/tuscany/sca/test/ScopeTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/serialization/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/serialization/src/main/java/org/apache/tuscany/sca/itest/servicereference/ConversationalService.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/serialization/src/main/java/org/apache/tuscany/sca/itest/servicereference/ConversationalServiceCallback.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/serialization/src/main/java/org/apache/tuscany/sca/itest/servicereference/ConversationalServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/serialization/src/main/java/org/apache/tuscany/sca/itest/servicereference/SCAManagedClient.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/serialization/src/main/java/org/apache/tuscany/sca/itest/servicereference/SCAManagedClientImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/serialization/src/main/java/org/apache/tuscany/sca/itest/servicereference/SCAManagedConversationalClient.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/serialization/src/main/java/org/apache/tuscany/sca/itest/servicereference/SCAManagedConversationalClientImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/serialization/src/main/java/org/apache/tuscany/sca/itest/servicereference/StatelessService.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/serialization/src/main/java/org/apache/tuscany/sca/itest/servicereference/StatelessServiceCallback.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/serialization/src/main/java/org/apache/tuscany/sca/itest/servicereference/StatelessServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/serialization/src/main/java/org/apache/tuscany/sca/itest/servicereference/utils/ServiceReferenceUtils.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/serialization/src/main/resources/ServiceReferenceSerializationTest.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/serialization/src/main/resources/nestedcomposite.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/serialization/src/test/java/org/apache/tuscany/sca/itest/servicereference/SerializeServiceReferenceTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/services/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/services/src/main/java/org/apache/tuscany/sca/itest/services/AComponent.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/services/src/main/java/org/apache/tuscany/sca/itest/services/AComponentImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/services/src/main/java/org/apache/tuscany/sca/itest/services/BComponent.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/services/src/main/java/org/apache/tuscany/sca/itest/services/BComponentImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/services/src/main/java/org/apache/tuscany/sca/itest/services/CComponent.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/services/src/main/java/org/apache/tuscany/sca/itest/services/CComponentImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/services/src/main/java/org/apache/tuscany/sca/itest/services/D1Component.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/services/src/main/java/org/apache/tuscany/sca/itest/services/DComponent.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/services/src/main/java/org/apache/tuscany/sca/itest/services/DComponentImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/services/src/main/resources/META-INF/sca-contribution.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/services/src/main/resources/ServicesTest.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/services/src/test/java/org/apache/tuscany/sca/itest/services/ServicesTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/spring/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/spring/src/main/java/bigbank/stockquote/StockQuoteImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/spring/src/main/java/bigbank/stockquote/StockQuoteService.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/spring/src/main/java/calculator/AddService.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/spring/src/main/java/calculator/AddServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/spring/src/main/java/calculator/CalculatorService.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/spring/src/main/java/calculator/CalculatorServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/spring/src/main/java/calculator/DivideService.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/spring/src/main/java/calculator/DivideServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/spring/src/main/java/calculator/MultiplyService.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/spring/src/main/java/calculator/MultiplyServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/spring/src/main/java/calculator/SubtractService.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/spring/src/main/java/calculator/SubtractServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/spring/src/main/java/calculator/security/CalculatorCallbackHandler.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/spring/src/main/java/calculator/security/JaasLoginModule.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/spring/src/main/java/calculator/security/UserPrincipal.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/spring/src/main/java/context/access/SCAApplicationContextProvider.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/spring/src/main/java/helloworld/HelloWorld.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/spring/src/main/java/helloworld/HelloWorldImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/spring/src/main/java/helloworld/HelloWorldProxy.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/spring/src/main/java/mock/TestBean.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/spring/src/main/java/mock/TestBeanImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/spring/src/main/java/mock/TestHelloWorldBean.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/spring/src/main/java/mock/TestReference.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/spring/src/main/java/mock/TestReferenceBean.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/spring/src/main/java/mock/TestSCAPropertyBean.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/spring/src/main/java/spring/annotations/CalculatorServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/spring/src/main/resources/context/access/Calculator.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/spring/src/main/resources/context/access/CalculatorService-context.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/spring/src/main/resources/context/imports/Calculator.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/spring/src/main/resources/context/imports/META-INF/spring/CalculatorService-context.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/spring/src/main/resources/context/imports/META-INF/spring/SpringImport-context.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/spring/src/main/resources/context/multiple/META-INF/spring/SpringHelloWorld-context.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/spring/src/main/resources/context/multiple/META-INF/spring/StockQuoteService-context.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/spring/src/main/resources/context/multiple/META-INF/spring/beanRefContext.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/spring/src/main/resources/context/multiple/StockQuote.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/spring/src/main/resources/implementation/policies/Calculator.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/spring/src/main/resources/implementation/policies/CalculatorJass.config create mode 100644 tags/java/sca/1.5.1-RC4/itest/spring/src/main/resources/implementation/policies/CalculatorLogMessages.properties create mode 100644 tags/java/sca/1.5.1-RC4/itest/spring/src/main/resources/implementation/policies/META-INF/spring/CalculatorService-context.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/spring/src/main/resources/implementation/policies/definitions.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/spring/src/main/resources/location/folder/SpringFolderLocation.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/spring/src/main/resources/location/folder/springapp/META-INF/MANIFEST.MF create mode 100644 tags/java/sca/1.5.1-RC4/itest/spring/src/main/resources/location/folder/springapp/META-INF/spring/SpringSCAProperty-context.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/spring/src/main/resources/location/jar/SpringJarLocation.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/spring/src/main/resources/location/jar/spring-context.jar create mode 100644 tags/java/sca/1.5.1-RC4/itest/spring/src/main/resources/org/apache/tuscany/sca/itest/spring/META-INF/spring/SpringDelegationHelloWorld-context.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/spring/src/main/resources/org/apache/tuscany/sca/itest/spring/META-INF/spring/SpringHelloWorld-context.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/spring/src/main/resources/org/apache/tuscany/sca/itest/spring/SpringDelegationHelloWorld.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/spring/src/main/resources/org/apache/tuscany/sca/itest/spring/SpringHelloWorld.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/spring/src/main/resources/sca/references/META-INF/spring/SpringExplicitReference-context.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/spring/src/main/resources/sca/references/META-INF/spring/SpringImplicitReference-context.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/spring/src/main/resources/sca/references/SpringExplicitReference.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/spring/src/main/resources/sca/references/SpringImplicitReference.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/spring/src/main/resources/sca/services/META-INF/spring/SpringExplicitService-context.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/spring/src/main/resources/sca/services/META-INF/spring/SpringImplicitService-context.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/spring/src/main/resources/sca/services/SpringExplicitService.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/spring/src/main/resources/sca/services/SpringImplicitService.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/spring/src/main/resources/spring/annotations/Calculator.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/spring/src/main/resources/spring/annotations/META-INF/spring/CalculatorService-context.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/spring/src/test/java/context/access/CalculatorClient.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/spring/src/test/java/context/access/ContextAccessTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/spring/src/test/java/context/imports/CalculatorClient.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/spring/src/test/java/context/imports/ContextImportsTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/spring/src/test/java/context/multiple/MultipleContextTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/spring/src/test/java/context/multiple/StockQuoteServer.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/spring/src/test/java/implementation/policies/CalculatorClient.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/spring/src/test/java/implementation/policies/ImplementationPoliciesTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/spring/src/test/java/location/folder/SpringFolderLocationTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/spring/src/test/java/location/jar/SpringJarLocationTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/spring/src/test/java/org/apache/tuscany/sca/itest/spring/AbstractHelloWorldTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/spring/src/test/java/org/apache/tuscany/sca/itest/spring/AbstractSCATestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/spring/src/test/java/org/apache/tuscany/sca/itest/spring/HelloWorld.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/spring/src/test/java/org/apache/tuscany/sca/itest/spring/HelloWorldProxy.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/spring/src/test/java/org/apache/tuscany/sca/itest/spring/SpringDelegationHelloWorldTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/spring/src/test/java/org/apache/tuscany/sca/itest/spring/SpringHelloWorldTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/spring/src/test/java/org/apache/tuscany/sca/itest/spring/TestHelloWorldBean.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/spring/src/test/java/org/apache/tuscany/sca/itest/spring/TestHelloWorldDelegatorBean.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/spring/src/test/java/sca/references/SpringExplicitReferenceTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/spring/src/test/java/sca/references/SpringImplicitReferenceTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/spring/src/test/java/sca/services/SpringExplicitServiceTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/spring/src/test/java/sca/services/SpringImplicitServiceTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/spring/src/test/java/spring/annotations/CalculatorClient.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/spring/src/test/java/spring/annotations/SpringAnnotationsTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/transaction/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/transaction/src/main/java/org/apache/tuscany/sca/itest/transaction/AccountNotFoundException.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/transaction/src/main/java/org/apache/tuscany/sca/itest/transaction/AccountService.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/transaction/src/main/java/org/apache/tuscany/sca/itest/transaction/AccountServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/transaction/src/main/java/org/apache/tuscany/sca/itest/transaction/CheckingAccountServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/transaction/src/main/java/org/apache/tuscany/sca/itest/transaction/OverDraftException.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/transaction/src/main/java/org/apache/tuscany/sca/itest/transaction/SavingsAccountServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/transaction/src/main/java/org/apache/tuscany/sca/itest/transaction/TransferService.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/transaction/src/main/java/org/apache/tuscany/sca/itest/transaction/TransferServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/transaction/src/main/resources/accounts.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/transaction/src/main/resources/definitions.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/transaction/src/main/resources/log4j.properties create mode 100644 tags/java/sca/1.5.1-RC4/itest/transaction/src/test/java/org/apache/tuscany/sca/itest/transaction/ConcurrentXAResourceTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/transaction/src/test/java/org/apache/tuscany/sca/itest/transaction/TransactionTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/main/java/binding/ejb/account/Customer.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/main/java/binding/ejb/account/CustomerImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/main/java/binding/ejb/calculator/AddService.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/main/java/binding/ejb/calculator/AddServiceHome.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/main/java/binding/jms/HelloWorldService.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/main/java/binding/jms/HelloWorldServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/main/java/calculator/warning/AddService.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/main/java/calculator/warning/AddServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/main/java/calculator/warning/AddServiceImplWithServiceName.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/main/java/calculator/warning/CalculatorClient.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/main/java/calculator/warning/CalculatorService.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/main/java/calculator/warning/CalculatorServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/main/java/calculator/warning/DivideService.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/main/java/calculator/warning/DivideServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/main/java/calculator/warning/MultiplyService.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/main/java/calculator/warning/MultiplyServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/main/java/calculator/warning/PropertyService.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/main/java/calculator/warning/PropertyServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/main/java/calculator/warning/SubtractService.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/main/java/calculator/warning/SubtractServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/main/java/calculator/warning/SubtractServiceImplWithServiceName.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/main/java/impl/java/AddService.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/main/java/impl/java/AddServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/main/java/impl/java/CalculatorClient.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/main/java/impl/java/CalculatorService.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/main/java/impl/java/CalculatorServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/main/java/impl/java/DivideService.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/main/java/impl/java/DivideServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/main/java/impl/java/MultiplyService.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/main/java/impl/java/MultiplyServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/main/java/impl/java/SubtractService.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/main/java/impl/java/SubtractServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/main/java/impl/osgi/OSGiTestImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/main/java/impl/osgi/OSGiTestInterface.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/main/java/impl/osgi/OSGiTestWithPropertyImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/main/java/impl/spring/HelloWorld.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/main/java/impl/spring/HelloWorldProxy.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/main/java/impl/spring/TestHelloWorldBean.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/main/java/interfacejava/xml/CalculatorService.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/main/java/interfacejava/xml/CalculatorServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/main/resources/ComponentReferenceTargetNotFound/Calculator.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/main/resources/DuplicateComponentName/Calculator.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/main/resources/DuplicateImplementationPropertyName/Calculator.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/main/resources/DuplicateImplementationPropertyName/dummyImplementation.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/main/resources/DuplicateImplementationReferenceName/Calculator.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/main/resources/DuplicateImplementationReferenceName/dummyImplementation.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/main/resources/DuplicatePropertyName/Calculator.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/main/resources/DuplicateReferenceName/Calculator.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/main/resources/META-INF/sca/SpringHelloWorld-context.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/main/resources/MultipleBindingsForService/Calculator.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/main/resources/NoComponentImplementation/Calculator.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/main/resources/NoCompositeNamespace/Calculator.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/main/resources/NoMatchingBinding/Calculator.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/main/resources/PromotedReferenceNotFound/Calculator.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/main/resources/PromotedServiceNotFound/Calculator.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/main/resources/PropertyAttribute/Calculator.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/main/resources/PropertyAttribute/CalculatorNullMustSupply.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/main/resources/PropertyAttribute/CalculatorOverrideManyAttribute.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/main/resources/PropertyNotFound/Calculator.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/main/resources/ReferenceIncompatibleComponentInterface/Calculator.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/main/resources/ReferenceIncompatibleInterface/Calculator.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/main/resources/ReferenceIncompatibleMultiplicity/Calculator.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/main/resources/ReferenceNotFound/Calculator.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/main/resources/ReferenceWithoutTargets/Calculator.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/main/resources/ServiceNotFoundForComponentService/Calculator.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/main/resources/UnresolvedComponentImplementation/Calculator.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/main/resources/XsdValidation/Calculator.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/main/resources/assemblyxml/ContributionReadException/Calculator.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/main/resources/assemblyxml/PolicyImplValidationException/Calculator.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/main/resources/assemblyxml/PolicyServiceValidationException/Calculator.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/main/resources/assemblyxml/UnexpectedBindingElement/Calculator.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/main/resources/assemblyxml/UnexpectedImplementationElement/Calculator.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/main/resources/assemblyxml/UnexpectedInterfaceElement/Calculator.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/main/resources/binding/wsxml/InvalidWsdlElementAttr/Calculator.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/main/resources/binding/wsxml/MissingImportedXSD/helloworld.wsdl create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/main/resources/binding/wsxml/MissingImportedXSD/helloworldwsjms.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/main/resources/binding/wsxml/MustUseWsdlBinding/Calculator.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/main/resources/binding/wsxml/WsdlBindingDoesNotMatch/helloworld.wsdl create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/main/resources/binding/wsxml/WsdlBindingDoesNotMatch/helloworldwsjms.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/main/resources/binding/wsxml/WsdlPortTypeDoesNotMatch/helloworld.wsdl create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/main/resources/binding/wsxml/WsdlPortTypeDoesNotMatch/helloworldwsclient.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/main/resources/binding/wsxml/WsdlServiceDoesNotMatch/helloworld.wsdl create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/main/resources/binding/wsxml/WsdlServiceDoesNotMatch/helloworldwsjms.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/main/resources/bindingejb/UnknownEJBSessionType/account.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/main/resources/bindingejb/UnknownEJBVersion/account.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/main/resources/bindingjms/DoesntProcessActivationSpec/service.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/main/resources/bindingjms/DoesntProcessDestinationType/service.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/main/resources/bindingjms/DoesntProcessHeaders/service.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/main/resources/bindingjms/DoesntProcessResourceAdapter/service.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/main/resources/bindingjms/DoesntProcessResponseActivationSpec/service.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/main/resources/bindingjms/DoesntProcessResponseConnectionFactory/service.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/main/resources/bindingjms/DoesntProcessResponseDestinationType/service.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/main/resources/bindingjms/InvalidCorrelationScheme/service.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/main/resources/bindingjms/InvalidJMSDeliveryMode/service.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/main/resources/bindingjms/InvalidJMSPriority/service.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/main/resources/bindingjms/InvalidResponseDestinationType/service.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/main/resources/bindingjms/MissingActivationSpecName/service.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/main/resources/bindingjms/MissingConnectionFactoryName/service.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/main/resources/bindingjms/MissingResponseActivationSpec/service.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/main/resources/bindingjms/MissingResponseConnectionFactory/service.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/main/resources/bindingjms/MustStartWithSchema/service.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/main/resources/bindingjms/UnexpectedElement/service.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/main/resources/bindingjms/UnknownTokenInURI/service.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/main/resources/contribution/java/AttributePackageMissing/Calculator.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/main/resources/contribution/namespace/AttributeNameSpaceMissing/Calculator.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/main/resources/contribution/resource/AttributeURIMissing/Calculator.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/main/resources/contribution/resource/AttributeURIMissing/META-INF/sca-contribution.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/main/resources/contribution/xml/AttributeCompositeMissing/Calculator.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/main/resources/contribution/xml/AttributeCompositeMissing/sca-contribution.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/main/resources/contribution/xml/MultipleCompositeErrors/Calculator.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/main/resources/contribution/xml/MultipleCompositeErrors/sca-contribution.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/main/resources/impl/bpel/AttributeUnrecognizedNamespace/helloworld.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/main/resources/impl/bpel/AttributeWithoutNamespace/helloworld.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/main/resources/impl/bpel/BPELProcessNotFound/helloworld.bpel create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/main/resources/impl/bpel/BPELProcessNotFound/helloworld.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/main/resources/impl/bpel/BPELProcessNotFound/helloworld.wsdl create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/main/resources/impl/bpel/CannotResolveWSDLReference/helloworld.bpel create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/main/resources/impl/bpel/CannotResolveWSDLReference/helloworld.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/main/resources/impl/bpel/MyRolePartnerRoleNull/helloworld.bpel create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/main/resources/impl/bpel/MyRolePartnerRoleNull/helloworld.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/main/resources/impl/bpel/MyRolePartnerRoleNull/helloworld.wsdl create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/main/resources/impl/bpel/PartnerLinkHasBothAttr/helloworld.bpel create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/main/resources/impl/bpel/PartnerLinkHasBothAttr/helloworld.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/main/resources/impl/bpel/PartnerLinkHasBothAttr/helloworld.wsdl create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/main/resources/impl/bpel/PartnerLinkNoMatchingType/helloworld.bpel create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/main/resources/impl/bpel/PartnerLinkNoMatchingType/helloworld.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/main/resources/impl/bpel/PartnerLinkNoMatchingType/helloworld.wsdl create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/main/resources/impl/bpel/PartnerLinkTypeNoRoles/helloworld.bpel create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/main/resources/impl/bpel/PartnerLinkTypeNoRoles/helloworld.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/main/resources/impl/bpel/PartnerLinkTypeNoRoles/helloworld.wsdl create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/main/resources/impl/ejb/EJBLinkAttributeMissing/ejb.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/main/resources/impl/java/ClassNotFoundException/Calculator.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/main/resources/impl/java/ContributionResolveException/Calculator.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/main/resources/impl/osgi/CouldNotLocateOSGiBundle/OSGiTestService.componentType create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/main/resources/impl/osgi/CouldNotLocateOSGiBundle/osgitest.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/main/resources/impl/osgi/MissingComponentTypeFile/osgitest.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/main/resources/impl/osgi/PropertyShouldSpecifySR/OSGiTestService.componentType create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/main/resources/impl/osgi/PropertyShouldSpecifySR/osgitest.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/main/resources/impl/resource/CouldNotResolveLocation/resource.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/main/resources/impl/resource/LocationAttributeMissing/resource.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/main/resources/impl/spring/ContributionResolveException/SpringHelloWorld.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/main/resources/impl/spring/LocationAttributeMissing/SpringHelloWorld.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/main/resources/impl/spring/UnableToResolveComponentType/SpringHelloWorld-context.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/main/resources/impl/spring/UnableToResolveComponentType/SpringHelloWorld.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/main/resources/impl/spring/UnableToResolveComponentType/TestHelloWorldBean.componentType create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/main/resources/impl/widget/CouldNotResolveLocation/widget.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/main/resources/impl/widget/LocationAttributeMissing/widget.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/main/resources/impl/xquery/CouldNotLocateFile/HelloWorld.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/main/resources/impl/xquery/LocationAttributeMissing/HelloWorld.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/main/resources/interfacejava/xml/ClassNotFoundException/Calculator.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/main/resources/interfacejava/xml/ClassNotFoundException/CalculatorServiceImpl.componentType create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/main/resources/interfacejava/xml/ContributionResolveException/Calculator.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/main/resources/interfacejava/xml/ContributionResolveException/CalculatorServiceImpl.componentType create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/main/resources/interfacewsdl/xml/InvalidWSDLInterfaceAttr/Calculator.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/main/resources/interfacewsdl/xml/InvalidWSDLInterfaceAttr/helloworld-interface.wsdl create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/main/resources/interfacewsdl/xml/InvalidWSDLInterfaceAttr/helloworld-service.wsdl create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/main/resources/interfacewsdl/xml/WsdlInterfaceDoesNotMatch/helloworld.wsdl create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/main/resources/interfacewsdl/xml/WsdlInterfaceDoesNotMatch/helloworldwsjms.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/main/resources/policy/security/ClassNotFoundException/Calculator.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/main/resources/policy/security/ClassNotFoundException/definitions.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/main/resources/policy/security/RequiredAttributeRolesMissing/Calculator.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/main/resources/policy/security/RequiredAttributeRolesMissing/definitions.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/main/resources/policy/xml/AlwaysProvidedIntentNotFound/Calculator.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/main/resources/policy/xml/AlwaysProvidedIntentNotFound/definitions.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/main/resources/policy/xml/ErrorInPolicyIntentDefinition/Calculator.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/main/resources/policy/xml/ErrorInPolicyIntentDefinition/definitions.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/main/resources/policy/xml/IntentNotSpecified/Calculator.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/main/resources/policy/xml/IntentNotSpecified/definitions.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/main/resources/policy/xml/MayProvideIntentNotFound/Calculator.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/main/resources/policy/xml/MayProvideIntentNotFound/definitions.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/main/resources/policy/xml/RequiredAttributeMissing/Calculator.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/main/resources/policy/xml/RequiredAttributeMissing/definitions.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/main/resources/policy/xml/UnableToMapPolicies/Calculator.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/main/resources/policy/xml/UnableToMapPolicies/definitions.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/main/resources/policy/xml/UnrecognizedIntentAttachPointType/Calculator.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/main/resources/policy/xml/UnrecognizedIntentAttachPointType/definitions.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/test/java/assembly/xml/ContributionReadException.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/test/java/assembly/xml/PolicyImplValidationException.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/test/java/assembly/xml/PolicyServiceValidationException.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/test/java/assembly/xml/UnexpectedBindingElement.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/test/java/assembly/xml/UnexpectedImplementationElement.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/test/java/assembly/xml/UnexpectedInterfaceElement.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/test/java/binding/ejb/UnknownEJBSessionTypeTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/test/java/binding/ejb/UnknownEJBVersionTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/test/java/binding/jms/DoesntProcessDestinationTypeTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/test/java/binding/jms/DoesntProcessHeadersTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/test/java/binding/jms/DoesntProcessResponseDestinationTypeTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/test/java/binding/jms/InvalidCorrelationSchemeTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/test/java/binding/jms/InvalidJMSDeliveryModeTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/test/java/binding/jms/InvalidJMSPriorityTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/test/java/binding/jms/InvalidResponseDestinationTypeTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/test/java/binding/jms/MissingActivationSpecNameTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/test/java/binding/jms/MissingConnectionFactoryNameTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/test/java/binding/jms/MissingResponseActivationSpecTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/test/java/binding/jms/MissingResponseConnectionFactoryTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/test/java/binding/jms/MustStartWithSchemaTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/test/java/binding/jms/UnexpectedElementTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/test/java/binding/jms/UnknownTokenInURITestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/test/java/binding/wsxml/InvalidWsdlElementAttrTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/test/java/binding/wsxml/MissingImportedXSDTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/test/java/binding/wsxml/MustUseWsdlBindingTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/test/java/binding/wsxml/WsdlBindingDoesNotMatchTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/test/java/binding/wsxml/WsdlPortTypeDoesNotMatchTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/test/java/binding/wsxml/WsdlServiceDoesNotMatchTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/test/java/calculator/warning/ComponentReferenceTargetNotFoundTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/test/java/calculator/warning/DuplicateComponentNameTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/test/java/calculator/warning/DuplicateImplementationPropertyNameTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/test/java/calculator/warning/DuplicateImplementationReferenceNameTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/test/java/calculator/warning/DuplicatePropertyNameTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/test/java/calculator/warning/DuplicateReferenceNameTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/test/java/calculator/warning/MultipleBindingsForServiceTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/test/java/calculator/warning/NoComponentImplementationTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/test/java/calculator/warning/NoCompositeNamespaceTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/test/java/calculator/warning/NoMatchingBindingTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/test/java/calculator/warning/PromotedReferenceNotFoundTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/test/java/calculator/warning/PromotedServiceNotFoundTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/test/java/calculator/warning/PropertyAttributeMustSupplyNullTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/test/java/calculator/warning/PropertyAttributeTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/test/java/calculator/warning/PropertyNotFoundTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/test/java/calculator/warning/PropertyOverrideManyAttributeTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/test/java/calculator/warning/ReferenceIncompatibleComponentInterfaceTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/test/java/calculator/warning/ReferenceIncompatibleInterfaceTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/test/java/calculator/warning/ReferenceIncompatibleMultiplicityTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/test/java/calculator/warning/ReferenceNotFoundTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/test/java/calculator/warning/ReferenceWithoutTargetsTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/test/java/calculator/warning/ServiceNotFoundForComponentServiceTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/test/java/calculator/warning/UnresolvedComponentImplementationTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/test/java/calculator/warning/XSDValidationTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/test/java/contribution/java/AttributePackageMissingTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/test/java/contribution/namespace/AttributeNameSpaceMissingTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/test/java/contribution/resource/AttributeURIMissingTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/test/java/contribution/xml/AttributeCompositeMissingTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/test/java/contribution/xml/MultipleCompositeErrorsTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/test/java/domain/CustomCompositeBuilder.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/test/java/impl/bpel/AttributeUnrecognizedNamespaceTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/test/java/impl/bpel/AttributeWithoutNamespaceTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/test/java/impl/bpel/BPELProcessNotFoundTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/test/java/impl/bpel/CannotResolveWSDLReferenceTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/test/java/impl/bpel/MyRolePartnerRoleNullTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/test/java/impl/bpel/PartnerLinkHasBothAttrTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/test/java/impl/bpel/PartnerLinkNoMatchingTypeTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/test/java/impl/bpel/PartnerLinkTypeNoRolesTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/test/java/impl/ejb/EJBLinkAttributeMissingTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/test/java/impl/java/ClassNotFoundExceptionTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/test/java/impl/java/ContributionResolveExceptionTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/test/java/impl/osgi/CouldNotLocateOSGiBundleTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/test/java/impl/osgi/MissingComponentTypeFileTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/test/java/impl/osgi/OSGiTestBundles.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/test/java/impl/osgi/PropertyShouldSpecifySRTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/test/java/impl/resource/CouldNotResolveLocationTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/test/java/impl/resource/LocationAttributeMissingTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/test/java/impl/spring/ContributionResolveExceptionTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/test/java/impl/spring/LocationAttributeMissingTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/test/java/impl/spring/UnableToResolveComponentTypeTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/test/java/impl/widget/CouldNotResolveLocationTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/test/java/impl/widget/LocationAttributeMissingTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/test/java/impl/xquery/CouldNotLocateFileTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/test/java/impl/xquery/LocationAttributeMissingTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/test/java/interfacejava/xml/ClassNotFoundTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/test/java/interfacejava/xml/ContributionResolveExceptionTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/test/java/interfacewsdl/xml/InvalidWSDLInterfaceAttrTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/test/java/interfacewsdl/xml/WsdlInterfaceDoesNotMatchTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/test/java/policy/xml/AlwaysProvidedIntentNotFoundTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/test/java/policy/xml/ErrorInPolicyIntentDefinitionTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/test/java/policy/xml/IntentNotSpecifiedTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/test/java/policy/xml/MayProvideIntentNotFoundTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/test/java/policy/xml/RequiredAttributeMissingTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/test/java/policy/xml/UnableToMapPoliciesTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/validation/src/test/java/policy/xml/UnrecognizedIntentAttachPointTypeTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/wasAdmin.py create mode 100644 tags/java/sca/1.5.1-RC4/itest/wires/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/wires/src/main/java/org/apache/tuscany/sca/itest/WireClient.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/wires/src/main/java/org/apache/tuscany/sca/itest/WireClientImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/wires/src/main/java/org/apache/tuscany/sca/itest/WireService.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/wires/src/main/java/org/apache/tuscany/sca/itest/WireServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/wires/src/main/resources/WireTest.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/wires/src/test/java/org/apache/tuscany/sca/itest/WireTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/workspace-manager/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/workspace-manager/src/main/java/org/apache/tuscany/sca/artifact/xyz/XYZ.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/workspace-manager/src/main/java/org/apache/tuscany/sca/artifact/xyz/XYZModelResolver.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/workspace-manager/src/main/java/org/apache/tuscany/sca/artifact/xyz/XYZProcessor.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/workspace-manager/src/main/java/org/apache/tuscany/sca/implementation/xyz/ImplementationXYZ.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/workspace-manager/src/main/java/org/apache/tuscany/sca/implementation/xyz/ImplementationXYZFactory.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/workspace-manager/src/main/java/org/apache/tuscany/sca/implementation/xyz/ImplementationXYZFactoryImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/workspace-manager/src/main/java/org/apache/tuscany/sca/implementation/xyz/ImplementationXYZImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/workspace-manager/src/main/java/org/apache/tuscany/sca/implementation/xyz/ImplementationXYZInvoker.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/workspace-manager/src/main/java/org/apache/tuscany/sca/implementation/xyz/ImplementationXYZProcessor.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/workspace-manager/src/main/java/org/apache/tuscany/sca/implementation/xyz/ImplementationXYZProvider.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/workspace-manager/src/main/java/org/apache/tuscany/sca/implementation/xyz/ImplementationXYZProviderFactory.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/workspace-manager/src/main/java/org/apache/tuscany/sca/imprt/xyz/DefaultImportExportXYZFactory.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/workspace-manager/src/main/java/org/apache/tuscany/sca/imprt/xyz/ExportXYZ.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/workspace-manager/src/main/java/org/apache/tuscany/sca/imprt/xyz/ExportXYZImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/workspace-manager/src/main/java/org/apache/tuscany/sca/imprt/xyz/ExportXYZModelResolver.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/workspace-manager/src/main/java/org/apache/tuscany/sca/imprt/xyz/ExportXYZProcessor.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/workspace-manager/src/main/java/org/apache/tuscany/sca/imprt/xyz/ImportExportXYZFactory.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/workspace-manager/src/main/java/org/apache/tuscany/sca/imprt/xyz/ImportExportXYZFactoryImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/workspace-manager/src/main/java/org/apache/tuscany/sca/imprt/xyz/ImportXYZ.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/workspace-manager/src/main/java/org/apache/tuscany/sca/imprt/xyz/ImportXYZImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/workspace-manager/src/main/java/org/apache/tuscany/sca/imprt/xyz/ImportXYZProcessor.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/workspace-manager/src/main/resources/contrib1/META-INF/sca-contribution.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/workspace-manager/src/main/resources/contrib1/contrib1.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/workspace-manager/src/main/resources/contrib2/META-INF/sca-contribution.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/workspace-manager/src/main/resources/contrib2/abcdef.xyz create mode 100644 tags/java/sca/1.5.1-RC4/itest/workspace-manager/src/main/resources/contrib2/contrib2.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/workspace-manager/src/main/resources/implementation-xyz.xsd create mode 100644 tags/java/sca/1.5.1-RC4/itest/workspace-manager/src/main/resources/import-xyz.xsd create mode 100644 tags/java/sca/1.5.1-RC4/itest/workspace-manager/src/test/java/org/apache/tuscany/sca/workspace/manager/test/WorkspaceManagerTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/ws-void-args-return/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/ws-void-args-return/src/main/java/voidtest/Bean.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/ws-void-args-return/src/main/java/voidtest/HelloWorldImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/ws-void-args-return/src/main/java/voidtest/HelloWorldService.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/ws-void-args-return/src/main/java/voidtest/TestClient.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/ws-void-args-return/src/main/java/voidtest/TestClientImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/ws-void-args-return/src/main/resources/voidtest.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/ws-void-args-return/src/test/java/voidtest/VoidArgsReturnTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/wsdl-multiple/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/wsdl-multiple/src/main/java/helloworld/HelloWorldCallback.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/wsdl-multiple/src/main/java/helloworld/HelloWorldClientImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/wsdl-multiple/src/main/java/helloworld/HelloWorldService.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/wsdl-multiple/src/main/java/helloworld/HelloWorldServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/wsdl-multiple/src/main/resources/auto-wsdl.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/wsdl-multiple/src/main/resources/manual-wsdl.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/wsdl-multiple/src/main/resources/wsdl/helloworld.HelloWorldCallback.wsdl create mode 100644 tags/java/sca/1.5.1-RC4/itest/wsdl-multiple/src/main/resources/wsdl/helloworld.HelloWorldService.wsdl create mode 100644 tags/java/sca/1.5.1-RC4/itest/wsdl-multiple/src/test/java/org/apache/tuscany/sca/itest/AutoWSDLTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/wsdl-multiple/src/test/java/org/apache/tuscany/sca/itest/ManualWSDLTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/wsdl/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/wsdl/src/main/java/bigbank/account/services/accountdata/AccountDataService.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/wsdl/src/main/java/bigbank/account/services/accountdata/AccountDataServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/wsdl/src/main/java/bigbank/account/services/accountdata/AccountServiceClientImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/wsdl/src/main/java/bigbank/account/services/accountdata/Component2aImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/wsdl/src/main/java/bigbank/account/services/accountdata/Component2bImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/wsdl/src/main/java/bigbank/account/services/accountdata/Component3aImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/wsdl/src/main/java/bigbank/account/services/accountdata/Component3bImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/wsdl/src/main/java/bigbank/account/services/accountdata/CustomerIdService.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/wsdl/src/main/java/helloworld/HelloWorldImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/wsdl/src/main/java/helloworld/HelloWorldService.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/wsdl/src/main/java/helloworld/HelloWorldServiceComponent.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/wsdl/src/main/java/org/apache/tuscany/sca/itest/Component2aImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/wsdl/src/main/java/org/apache/tuscany/sca/itest/Component2bImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/wsdl/src/main/java/org/apache/tuscany/sca/itest/Component3aImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/wsdl/src/main/java/org/apache/tuscany/sca/itest/Component3bImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/wsdl/src/main/resources/META-INF/wsdl/helloworld-import.wsdl create mode 100644 tags/java/sca/1.5.1-RC4/itest/wsdl/src/main/resources/META-INF/wsdl/helloworld.xsd create mode 100644 tags/java/sca/1.5.1-RC4/itest/wsdl/src/main/resources/SDOWSDLTest.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/wsdl/src/main/resources/WSDLTest.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/wsdl/src/main/resources/imports/wsdl/META-INF/wsdl/helloworld-import.wsdl create mode 100644 tags/java/sca/1.5.1-RC4/itest/wsdl/src/main/resources/imports/wsdl/META-INF/wsdl/helloworld.xsd create mode 100644 tags/java/sca/1.5.1-RC4/itest/wsdl/src/main/resources/imports/wsdl/helloworld.wsdl create mode 100644 tags/java/sca/1.5.1-RC4/itest/wsdl/src/main/resources/imports/wsdl/helloworldws.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/wsdl/src/main/resources/wsdl/AccountService.wsdl create mode 100644 tags/java/sca/1.5.1-RC4/itest/wsdl/src/main/resources/wsdl/Hello.xsd create mode 100644 tags/java/sca/1.5.1-RC4/itest/wsdl/src/main/resources/wsdl/helloworld.wsdl create mode 100644 tags/java/sca/1.5.1-RC4/itest/wsdl/src/test/java/org/apache/tuscany/sca/itest/HelloWorldClient.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/wsdl/src/test/java/org/apache/tuscany/sca/itest/SDOWSDLTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/wsdl/src/test/java/org/apache/tuscany/sca/itest/WSDLImportsTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/wsdl/src/test/java/org/apache/tuscany/sca/itest/WSDLTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/wsdl2java/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/wsdl2java/src/test/resources/AccountService.wsdl create mode 100644 tags/java/sca/1.5.1-RC4/itest/wsdl2java/src/test/resources/EchoService.wsdl create mode 100644 tags/java/sca/1.5.1-RC4/itest/wsdl2java/src/test/resources/EchoService.xsd create mode 100644 tags/java/sca/1.5.1-RC4/itest/wsdl2java/src/test/resources/StockExceptionTest.wsdl create mode 100644 tags/java/sca/1.5.1-RC4/itest/wsdlgen/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/wsdlgen/src/main/java/helloworld/ABean.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/wsdlgen/src/main/java/helloworld/HelloWorldImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/wsdlgen/src/main/java/helloworld/HelloWorldService.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/wsdlgen/src/main/java/helloworld/package-info.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/wsdlgen/src/main/resources/META-INF/sca-contribution.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/wsdlgen/src/main/resources/definitions.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/wsdlgen/src/main/resources/helloworld.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/wsdlgen/src/main/resources/wsdl/helloworld.wsdl create mode 100644 tags/java/sca/1.5.1-RC4/itest/wsdlgen/src/test/java/helloworld/JmsTransportTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/wsdlless/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/itest/wsdlless/src/main/java/bigbank/account/services/accountdata/AccountDataService.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/wsdlless/src/main/java/bigbank/account/services/accountdata/AccountDataServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/wsdlless/src/main/java/bigbank/account/services/accountdata/AccountServiceClientImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/wsdlless/src/main/java/bigbank/account/services/accountdata/Component2aImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/wsdlless/src/main/java/bigbank/account/services/accountdata/Component2bImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/wsdlless/src/main/java/bigbank/account/services/accountdata/Component3aImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/wsdlless/src/main/java/bigbank/account/services/accountdata/Component3bImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/wsdlless/src/main/java/bigbank/account/services/accountdata/CustomerIdService.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/wsdlless/src/main/java/helloworld/HelloWorldImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/wsdlless/src/main/java/helloworld/HelloWorldService.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/wsdlless/src/main/java/helloworld/HelloWorldServiceComponent.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/wsdlless/src/main/java/org/apache/tuscany/sca/itest/Component2aImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/wsdlless/src/main/java/org/apache/tuscany/sca/itest/Component2bImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/wsdlless/src/main/java/org/apache/tuscany/sca/itest/Component3aImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/wsdlless/src/main/java/org/apache/tuscany/sca/itest/Component3bImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/wsdlless/src/main/java/service/AnObject.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/wsdlless/src/main/java/service/MoreComplexObject.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/wsdlless/src/main/java/service/SomeService.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/wsdlless/src/main/java/service/SomeServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/wsdlless/src/main/resources/SDOWSDLTest.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/wsdlless/src/main/resources/WSDLTest.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/wsdlless/src/main/resources/some.composite create mode 100644 tags/java/sca/1.5.1-RC4/itest/wsdlless/src/main/resources/wsdl/AccountService.wsdl create mode 100644 tags/java/sca/1.5.1-RC4/itest/wsdlless/src/main/resources/wsdl/helloworld.wsdl create mode 100644 tags/java/sca/1.5.1-RC4/itest/wsdlless/src/test/java/org/apache/tuscany/sca/itest/SDOWSDLTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/wsdlless/src/test/java/org/apache/tuscany/sca/itest/WSDLTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/wsdlless/src/test/java/service/SomeComponentTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/wsdlless/src/test/java/service/generated/AnObject.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/wsdlless/src/test/java/service/generated/GetUsingMoreComplexObject.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/wsdlless/src/test/java/service/generated/GetUsingMoreComplexObjectResponse.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/wsdlless/src/test/java/service/generated/GetUsingString.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/wsdlless/src/test/java/service/generated/GetUsingStringResponse.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/wsdlless/src/test/java/service/generated/MoreComplexObject.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/wsdlless/src/test/java/service/generated/ObjectFactory.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/wsdlless/src/test/java/service/generated/SomeService.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/wsdlless/src/test/java/service/generated/SomeServiceService.java create mode 100644 tags/java/sca/1.5.1-RC4/itest/wsdlless/src/test/java/service/generated/package-info.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly-xml/LICENSE create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly-xml/NOTICE create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly-xml/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/assembly/xml/BaseAssemblyProcessor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/assembly/xml/ComponentTypeDocumentProcessor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/assembly/xml/ComponentTypeModelResolver.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/assembly/xml/ComponentTypeProcessor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/assembly/xml/CompositeDocumentProcessor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/assembly/xml/CompositeModelResolver.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/assembly/xml/CompositeProcessor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/assembly/xml/ConfiguredOperationProcessor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/assembly/xml/Constants.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/assembly/xml/ConstrainingTypeDocumentProcessor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/assembly/xml/ConstrainingTypeModelResolver.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/assembly/xml/ConstrainingTypeProcessor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/assembly/xml/DefaultBeanModelProcessor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/assembly/xml/PolicyAttachPointProcessor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly-xml/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessor create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly-xml/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.processor.URLArtifactProcessor create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly-xml/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.resolver.ModelResolver create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly-xml/src/main/resources/assembly-xml-validation-messages.properties create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly-xml/src/test/java/org/apache/tuscany/sca/assembly/xml/BuildPolicyTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly-xml/src/test/java/org/apache/tuscany/sca/assembly/xml/MultiplicityReadWriteTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly-xml/src/test/java/org/apache/tuscany/sca/assembly/xml/ReadAllTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly-xml/src/test/java/org/apache/tuscany/sca/assembly/xml/ReadDocumentTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly-xml/src/test/java/org/apache/tuscany/sca/assembly/xml/ReadTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly-xml/src/test/java/org/apache/tuscany/sca/assembly/xml/ReadWriteAnyAttributeTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly-xml/src/test/java/org/apache/tuscany/sca/assembly/xml/ReadWriteAnyElementTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly-xml/src/test/java/org/apache/tuscany/sca/assembly/xml/ReadWriteLocalCompositeTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly-xml/src/test/java/org/apache/tuscany/sca/assembly/xml/ResolvePolicyTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly-xml/src/test/java/org/apache/tuscany/sca/assembly/xml/ResolveTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly-xml/src/test/java/org/apache/tuscany/sca/assembly/xml/TestAttributeProcessor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly-xml/src/test/java/org/apache/tuscany/sca/assembly/xml/TestPolicyProcessor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly-xml/src/test/java/org/apache/tuscany/sca/assembly/xml/TestSCABindingFactoryImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly-xml/src/test/java/org/apache/tuscany/sca/assembly/xml/TestSCABindingImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly-xml/src/test/java/org/apache/tuscany/sca/assembly/xml/WireTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly-xml/src/test/java/org/apache/tuscany/sca/assembly/xml/WriteAllTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly-xml/src/test/java/org/apache/tuscany/sca/assembly/xml/WriteNamespacesTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly-xml/src/test/resources/org/apache/tuscany/sca/assembly/xml/Calculator.composite create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly-xml/src/test/resources/org/apache/tuscany/sca/assembly/xml/CalculatorComponent.constrainingType create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly-xml/src/test/resources/org/apache/tuscany/sca/assembly/xml/CalculatorImpl.componentType create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly-xml/src/test/resources/org/apache/tuscany/sca/assembly/xml/JavaScriptReference.composite create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly-xml/src/test/resources/org/apache/tuscany/sca/assembly/xml/Multiplicity.composite create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly-xml/src/test/resources/org/apache/tuscany/sca/assembly/xml/NestedCalculator.composite create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly-xml/src/test/resources/org/apache/tuscany/sca/assembly/xml/RMIBindingTest.composite create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly-xml/src/test/resources/org/apache/tuscany/sca/assembly/xml/TestAllCalculator.composite create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly-xml/src/test/resources/org/apache/tuscany/sca/assembly/xml/TestAllDivide.composite create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly-xml/src/test/resources/org/apache/tuscany/sca/assembly/xml/TestAllPolicyCalculator.composite create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly-xml/src/test/resources/org/apache/tuscany/sca/assembly/xml/another_test_definitions.xml create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly-xml/src/test/resources/org/apache/tuscany/sca/assembly/xml/local.composite create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly-xml/src/test/resources/org/apache/tuscany/sca/assembly/xml/test_definitions.xml create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly-xsd/LICENSE create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly-xsd/NOTICE create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly-xsd/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly-xsd/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.processor.ValidationSchema create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly-xsd/src/main/resources/sca-all.xsd create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly-xsd/src/main/resources/sca-binding-ejb.xsd create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly-xsd/src/main/resources/sca-binding-jms.xsd create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly-xsd/src/main/resources/sca-binding-sca.xsd create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly-xsd/src/main/resources/sca-binding-webservice.xsd create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly-xsd/src/main/resources/sca-contributions.xsd create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly-xsd/src/main/resources/sca-core.xsd create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly-xsd/src/main/resources/sca-definitions.xsd create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly-xsd/src/main/resources/sca-implementation-bpel.xsd create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly-xsd/src/main/resources/sca-implementation-composite.xsd create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly-xsd/src/main/resources/sca-implementation-cpp.xsd create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly-xsd/src/main/resources/sca-implementation-ejb.xsd create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly-xsd/src/main/resources/sca-implementation-java.xsd create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly-xsd/src/main/resources/sca-implementation-jee.xsd create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly-xsd/src/main/resources/sca-implementation-spring.xsd create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly-xsd/src/main/resources/sca-implementation-web.xsd create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly-xsd/src/main/resources/sca-interface-cpp.xsd create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly-xsd/src/main/resources/sca-interface-java.xsd create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly-xsd/src/main/resources/sca-interface-wsdl.xsd create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly-xsd/src/main/resources/sca-policy.xsd create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly-xsd/src/main/resources/sca.xsd create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly-xsd/src/main/resources/tuscany-core.xsd create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly-xsd/src/main/resources/tuscany-sca-binding-atom.xsd create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly-xsd/src/main/resources/tuscany-sca-binding-corba.xsd create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly-xsd/src/main/resources/tuscany-sca-binding-dwr.xsd create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly-xsd/src/main/resources/tuscany-sca-binding-gdata.xsd create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly-xsd/src/main/resources/tuscany-sca-binding-http.xsd create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly-xsd/src/main/resources/tuscany-sca-binding-jms.xsd create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly-xsd/src/main/resources/tuscany-sca-binding-jsonrpc.xsd create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly-xsd/src/main/resources/tuscany-sca-binding-notification.xsd create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly-xsd/src/main/resources/tuscany-sca-binding-rmi.xsd create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly-xsd/src/main/resources/tuscany-sca-binding-rss.xsd create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly-xsd/src/main/resources/tuscany-sca-contributions.xsd create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly-xsd/src/main/resources/tuscany-sca-implementation-node.xsd create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly-xsd/src/main/resources/tuscany-sca-implementation-notification.xsd create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly-xsd/src/main/resources/tuscany-sca-implementation-osgi.xsd create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly-xsd/src/main/resources/tuscany-sca-implementation-resource.xsd create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly-xsd/src/main/resources/tuscany-sca-implementation-script.xsd create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly-xsd/src/main/resources/tuscany-sca-implementation-widget.xsd create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly-xsd/src/main/resources/tuscany-sca-implementation-xquery.xsd create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly-xsd/src/main/resources/tuscany-sca.xsd create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly-xsd/src/main/resources/ws-addr.xsd create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly-xsd/src/main/resources/wsdli.xsd create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly/LICENSE create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly/NOTICE create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/AbstractContract.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/AbstractProperty.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/AbstractReference.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/AbstractService.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/AssemblyFactory.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/Base.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/Binding.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/BindingRRB.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/Callback.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/Component.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/ComponentProperty.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/ComponentReference.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/ComponentService.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/ComponentType.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/Composite.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/CompositeReference.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/CompositeService.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/ConfiguredOperation.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/ConstrainingType.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/Contract.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/DefaultAssemblyFactory.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/DefaultEndpointFactory.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/DefaultExtensionFactory.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/DefinitionElement.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/Endpoint.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/EndpointFactory.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/Extensible.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/Extension.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/ExtensionFactory.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/Implementation.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/Multiplicity.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/OperationSelector.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/OperationsConfigurator.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/OptimizableBinding.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/Property.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/Reference.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/SCABinding.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/SCABindingFactory.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/Service.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/Wire.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/WireFormat.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/builder/AutomaticBinding.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/builder/BindingBuilder.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/builder/BindingBuilderExtension.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/builder/ComponentPreProcessor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/builder/CompositeBuilder.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/builder/CompositeBuilderException.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/builder/DefaultEndpointBuilder.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/builder/DomainBuilder.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/builder/EndpointBuilder.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/builder/impl/BaseConfigurationBuilderImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/builder/impl/BaseWireBuilderImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/builder/impl/BindingConfigurationUtil.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/builder/impl/ComponentConfigurationBuilderImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/builder/impl/ComponentReferenceBindingBuilderImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/builder/impl/ComponentReferencePromotionWireBuilderImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/builder/impl/ComponentReferenceWireBuilderImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/builder/impl/ComponentServiceBindingBuilderImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/builder/impl/ComponentServicePromotionBuilderImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/builder/impl/CompositeBindingURIBuilderImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/builder/impl/CompositeBuilderImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/builder/impl/CompositeCloneBuilderImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/builder/impl/CompositeIncludeBuilderImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/builder/impl/CompositePolicyBuilderImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/builder/impl/CompositePromotionBuilderImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/builder/impl/CompositeReferenceConfigurationBuilderImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/builder/impl/CompositeReferenceWireBuilderImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/builder/impl/CompositeServiceBindingBuilderImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/builder/impl/CompositeServiceConfigurationBuilderImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/builder/impl/CompositeServicePromotionBuilderImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/builder/impl/EndpointBuilderImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/builder/impl/PolicyConfigurationException.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/builder/impl/PolicyConfigurationUtil.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/builder/impl/PrintUtil.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/builder/impl/PropertyConfigurationUtil.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/builder/impl/ReferenceConfigurationUtil.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/builder/impl/ServiceConfigurationUtil.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/AbstractPropertyImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/AbstractReferenceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/AbstractServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/AssemblyFactoryImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/BaseImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/CallbackImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/ComponentImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/ComponentPropertyImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/ComponentReferenceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/ComponentServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/ComponentTypeImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/CompositeImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/CompositeReferenceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/CompositeServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/ConfiguredOperationImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/ConstrainingTypeImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/ContractImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/EndpointFactoryImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/EndpointImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/ExtensibleImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/ExtensionImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/ImplementationImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/PropertyImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/ReferenceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/ServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/WireImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly/src/main/resources/META-INF/services/org.apache.tuscany.sca.assembly.AssemblyFactory create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly/src/main/resources/META-INF/services/org.apache.tuscany.sca.assembly.EndpointFactory create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly/src/main/resources/META-INF/services/org.apache.tuscany.sca.assembly.ExtensionFactory create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly/src/main/resources/assembly-validation-messages.properties create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly/src/main/resources/assembly-validation-messages_it.properties create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly/src/test/java/org/apache/tuscany/sca/assembly/AssemblyFactoryTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly/src/test/java/org/apache/tuscany/sca/assembly/TestBinding.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly/src/test/java/org/apache/tuscany/sca/assembly/TestImplementation.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly/src/test/java/org/apache/tuscany/sca/assembly/TestInterface.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly/src/test/java/org/apache/tuscany/sca/assembly/TestInterfaceContract.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly/src/test/java/org/apache/tuscany/sca/assembly/TestOperation.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly/src/test/java/org/apache/tuscany/sca/assembly/builder/impl/CompositeBuilderTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/assembly/src/test/java/org/apache/tuscany/sca/assembly/builder/impl/PrintUtilTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-atom-abdera/LICENSE create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-atom-abdera/NOTICE create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-atom-abdera/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-atom-abdera/src/main/java/org/apache/tuscany/sca/binding/atom/collection/Collection.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-atom-abdera/src/main/java/org/apache/tuscany/sca/binding/atom/collection/MediaCollection.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-atom-abdera/src/main/java/org/apache/tuscany/sca/binding/atom/collection/NotFoundException.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-atom-abdera/src/main/java/org/apache/tuscany/sca/binding/atom/provider/AtomBindingInvoker.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-atom-abdera/src/main/java/org/apache/tuscany/sca/binding/atom/provider/AtomBindingListenerServlet.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-atom-abdera/src/main/java/org/apache/tuscany/sca/binding/atom/provider/AtomBindingProviderFactory.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-atom-abdera/src/main/java/org/apache/tuscany/sca/binding/atom/provider/AtomBindingUtil.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-atom-abdera/src/main/java/org/apache/tuscany/sca/binding/atom/provider/AtomReferenceBindingProvider.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-atom-abdera/src/main/java/org/apache/tuscany/sca/binding/atom/provider/AtomServiceBindingProvider.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-atom-abdera/src/main/resources/META-INF/services/org.apache.tuscany.sca.provider.BindingProviderFactory create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-atom-abdera/src/test/java/org/apache/tuscany/sca/binding/atom/AtomDeleteTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-atom-abdera/src/test/java/org/apache/tuscany/sca/binding/atom/AtomFeedNonCollectionTest.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-atom-abdera/src/test/java/org/apache/tuscany/sca/binding/atom/AtomGetTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-atom-abdera/src/test/java/org/apache/tuscany/sca/binding/atom/AtomPostTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-atom-abdera/src/test/java/org/apache/tuscany/sca/binding/atom/AtomPutTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-atom-abdera/src/test/java/org/apache/tuscany/sca/binding/atom/AtomTestCaseUtils.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-atom-abdera/src/test/java/org/apache/tuscany/sca/binding/atom/Consumer.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-atom-abdera/src/test/java/org/apache/tuscany/sca/binding/atom/ConsumerProviderAtomTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-atom-abdera/src/test/java/org/apache/tuscany/sca/binding/atom/ContentNegotiationTest.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-atom-abdera/src/test/java/org/apache/tuscany/sca/binding/atom/CustomerClient.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-atom-abdera/src/test/java/org/apache/tuscany/sca/binding/atom/CustomerClientImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-atom-abdera/src/test/java/org/apache/tuscany/sca/binding/atom/CustomerCollectionImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-atom-abdera/src/test/java/org/apache/tuscany/sca/binding/atom/CustomerNonCollectionImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-atom-abdera/src/test/java/org/apache/tuscany/sca/binding/atom/MediaCollectionImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-atom-abdera/src/test/java/org/apache/tuscany/sca/binding/atom/MediaCollectionTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-atom-abdera/src/test/java/org/apache/tuscany/sca/binding/atom/Provider.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-atom-abdera/src/test/java/org/apache/tuscany/sca/binding/atom/ProviderEntryEntityTagsTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-atom-abdera/src/test/java/org/apache/tuscany/sca/binding/atom/ProviderFeedEntityTagsTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-atom-abdera/src/test/java/org/apache/tuscany/sca/binding/atom/ProviderServiceDocumentTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-atom-abdera/src/test/java/org/apache/tuscany/sca/binding/atom/aggregator/Aggregator.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-atom-abdera/src/test/java/org/apache/tuscany/sca/binding/atom/aggregator/AggregatorImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-atom-abdera/src/test/java/org/apache/tuscany/sca/binding/atom/aggregator/AggregatorTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-atom-abdera/src/test/java/org/apache/tuscany/sca/binding/atom/aggregator/Sort.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-atom-abdera/src/test/java/org/apache/tuscany/sca/binding/atom/aggregator/SortImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-atom-abdera/src/test/resources/ReceiptToms.gif create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-atom-abdera/src/test/resources/ReceiptValue.jpg create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-atom-abdera/src/test/resources/org/apache/tuscany/sca/binding/atom/Consumer.composite create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-atom-abdera/src/test/resources/org/apache/tuscany/sca/binding/atom/Provider.composite create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-atom-abdera/src/test/resources/org/apache/tuscany/sca/binding/atom/ProviderNonCollection.composite create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-atom-abdera/src/test/resources/org/apache/tuscany/sca/binding/atom/ReceiptProvider.composite create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-atom-abdera/src/test/resources/org/apache/tuscany/sca/binding/atom/aggregator/FeedAggregator.composite create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-atom-js-dojo/LICENSE create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-atom-js-dojo/NOTICE create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-atom-js-dojo/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-atom-js-dojo/src/main/java/org/apache/tuscany/sca/binding/atom/js/dojo/AtomBindingJavascriptProxyFactoryImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-atom-js-dojo/src/main/resources/META-INF/services/org.apache.tuscany.sca.web.javascript.JavascriptProxyFactory create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-atom-js/LICENSE create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-atom-js/NOTICE create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-atom-js/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-atom-js/src/main/java/org/apache/tuscany/sca/binding/atom/js/AtomBindingJavascriptProxyFactoryImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-atom-js/src/main/resources/META-INF/services/org.apache.tuscany.sca.web.javascript.JavascriptProxyFactory create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-atom-js/src/main/resources/binding-atom.js create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-atom/LICENSE create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-atom/NOTICE create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-atom/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-atom/src/main/java/org/apache/tuscany/sca/binding/atom/AtomBinding.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-atom/src/main/java/org/apache/tuscany/sca/binding/atom/AtomBindingFactory.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-atom/src/main/java/org/apache/tuscany/sca/binding/atom/impl/AtomBindingFactoryImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-atom/src/main/java/org/apache/tuscany/sca/binding/atom/impl/AtomBindingImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-atom/src/main/resources/META-INF/services/org.apache.tuscany.sca.binding.atom.AtomBindingFactory create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-atom/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessor create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-atom/src/test/java/org/apache/tuscany/sca/binding/atom/AtomBindingProcessorTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/LICENSE create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/NOTICE create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/impl/CorbaBindingProviderFactory.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/impl/CorbaInvoker.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/impl/CorbaReferenceBindingProvider.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/impl/CorbaServiceBindingProvider.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/impl/exceptions/CorbaException.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/impl/exceptions/RequestConfigurationException.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/impl/reference/DynaCorbaRequest.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/impl/reference/DynaCorbaResponse.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/impl/reference/InterfaceInstanceCreator.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/impl/reference/InterfaceMethodInterceptor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/impl/service/ComponentInvocationProxy.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/impl/service/DynaCorbaServant.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/impl/service/InvocationException.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/impl/service/InvocationProxy.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/impl/service/OperationTypes.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/impl/types/AnnotationAttributes.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/impl/types/NodeType.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/impl/types/TypeTree.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/impl/types/TypeTreeCreator.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/impl/types/TypeTreeNode.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/impl/types/UnionAttributes.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/impl/types/util/ArrayTypeHelper.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/impl/types/util/BooleanTypeHelper.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/impl/types/util/ByteTypeHelper.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/impl/types/util/CharTypeHelper.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/impl/types/util/DoubleTypeHelper.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/impl/types/util/EnumTypeHelper.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/impl/types/util/FloatTypeHelper.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/impl/types/util/IntTypeHelper.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/impl/types/util/LongTypeHelper.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/impl/types/util/ReferenceTypeHelper.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/impl/types/util/SequenceTypeHelper.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/impl/types/util/ShortTypeHelper.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/impl/types/util/StringTypeHelper.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/impl/types/util/StructTypeHelper.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/impl/types/util/TypeHelper.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/impl/types/util/TypeHelpersProxy.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/impl/types/util/UnionTypeHelper.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/impl/types/util/Utils.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/impl/util/MethodFinder.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/impl/util/OperationMapper.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/meta/CorbaArray.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/meta/CorbaUnionElement.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/main/java/org/apache/tuscany/sca/binding/corba/meta/CorbaUnionElementType.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/main/resources/META-INF/services/org.apache.tuscany.sca.provider.BindingProviderFactory create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/CorbaServantTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/CorbaTypesTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/MappingTestInterface.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/MethodFinderTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/OperationMappingTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/TestConstants.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/arrays_unions/ArraysUnionsTests.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/arrays_unions/ArraysUnionsTestsHelper.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/arrays_unions/ArraysUnionsTestsHolder.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/arrays_unions/ArraysUnionsTestsOperations.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/arrays_unions/InnerUnion.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/arrays_unions/InnerUnionHelper.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/arrays_unions/InnerUnionHolder.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/arrays_unions/RichUnion.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/arrays_unions/RichUnionHelper.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/arrays_unions/RichUnionHolder.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/arrays_unions/StringArrayHelper.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/arrays_unions/StringArrayHolder.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/arrays_unions/TestStruct.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/arrays_unions/TestStructHelper.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/arrays_unions/TestStructHolder.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/arrays_unions/_ArraysUnionsTestsImplBase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/arrays_unions/_ArraysUnionsTestsStub.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/enums/Color.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/enums/ColorHelper.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/enums/ColorHolder.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/enums/EnumManager.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/enums/EnumManagerHelper.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/enums/EnumManagerHolder.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/enums/EnumManagerOperations.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/enums/_EnumManagerImplBase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/enums/_EnumManagerStub.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/exceptions/Calc.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/exceptions/CalcHelper.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/exceptions/CalcHolder.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/exceptions/CalcOperations.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/exceptions/CalcPackage/Arguments.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/exceptions/CalcPackage/ArgumentsHelper.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/exceptions/CalcPackage/ArgumentsHolder.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/exceptions/CalcPackage/DivByZero.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/exceptions/CalcPackage/DivByZeroHelper.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/exceptions/CalcPackage/DivByZeroHolder.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/exceptions/CalcPackage/NotSupported.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/exceptions/CalcPackage/NotSupportedHelper.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/exceptions/CalcPackage/NotSupportedHolder.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/exceptions/_CalcImplBase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/exceptions/_CalcStub.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/ArraysSetter.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/ArraysSetterHelper.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/ArraysSetterHolder.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/ArraysSetterOperations.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/PrimitivesSetter.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/PrimitivesSetterHelper.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/PrimitivesSetterHolder.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/PrimitivesSetterOperations.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/RemoteObject.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/RemoteObjectHelper.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/RemoteObjectHolder.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/RemoteObjectOperations.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/SimpleStruct.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/SimpleStructHelper.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/SimpleStructHolder.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/SomeStruct.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/SomeStructHelper.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/SomeStructHolder.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/TestObject.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/TestObjectHelper.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/TestObjectHolder.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/TestObjectOperations.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/_ArraysSetterImplBase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/_ArraysSetterStub.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/_PrimitivesSetterImplBase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/_PrimitivesSetterStub.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/_RemoteObjectImplBase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/_RemoteObjectStub.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/_TestObjectImplBase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/_TestObjectStub.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/boolean_listHelper.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/boolean_listHolder.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/char_listHelper.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/char_listHolder.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/double_listHelper.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/double_listHolder.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/float_listHelper.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/float_listHolder.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/long_listHelper.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/long_listHolder.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/long_long_listHelper.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/long_long_listHolder.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/long_seq1Helper.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/long_seq1Holder.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/long_seq2Helper.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/long_seq2Holder.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/long_seq3Helper.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/long_seq3Holder.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/octet_listHelper.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/octet_listHolder.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/remote_object_listHelper.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/remote_object_listHolder.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/short_listHelper.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/short_listHolder.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/string_listHelper.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/string_listHolder.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/unsigned_long_listHelper.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/unsigned_long_listHolder.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/unsigned_long_long_listHelper.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/unsigned_long_long_listHolder.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/unsigned_short_listHelper.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/unsigned_short_listHolder.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/wchar_listHelper.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/wchar_listHolder.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/wstring_listHelper.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/wstring_listHolder.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/hierarchy/ArraysTestStruct.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/hierarchy/Calc.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/hierarchy/DummyObject.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/hierarchy/InnerUnion.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/hierarchy/InvalidCorbaArray.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/hierarchy/InvalidEnum1.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/hierarchy/InvalidEnum2.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/hierarchy/InvalidEnum3.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/hierarchy/InvalidStruct1.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/hierarchy/InvalidStruct2.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/hierarchy/InvalidStruct3.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/hierarchy/InvalidUnion1.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/hierarchy/InvalidUnion2.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/hierarchy/InvalidUnion3.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/hierarchy/InvalidUnion4.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/hierarchy/InvalidUnion5.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/hierarchy/NonCorbaException.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/hierarchy/RichUnion.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/hierarchy/SimpleStruct.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/hierarchy/SomeStruct.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/references/DummyObject.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/references/DummyObjectHelper.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/references/DummyObjectHolder.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/references/DummyObjectOperations.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/references/ObjectManager.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/references/ObjectManagerHelper.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/references/ObjectManagerHolder.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/references/ObjectManagerOperations.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/references/_DummyObjectImplBase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/references/_DummyObjectStub.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/references/_ObjectManagerImplBase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/references/_ObjectManagerStub.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/servants/ArraysSetterServant.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/servants/ArraysUnionsServant.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/servants/ArraysUnionsTuscanyServant.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/servants/CalcServant.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/servants/DummyObjectServant.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/servants/EnumManagerServant.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/servants/InvalidTestObjectServant.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/servants/InvalidTypesServant.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/servants/NonCorbaServant.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/servants/ObjectManagerServant.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/servants/PrimitivesSetterServant.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/servants/TestObjectServant.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/service/mocks/TestDataType.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/service/mocks/TestInterface.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/service/mocks/TestInterfaceContract.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/service/mocks/TestOperation.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/service/mocks/TestRuntimeComponentService.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/service/mocks/TestRuntimeWire.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/test/resources/arrays_unions.idl create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/test/resources/enums.idl create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/test/resources/exceptions.idl create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/test/resources/general_tests.idl create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba-runtime/src/test/resources/references.idl create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba/LICENSE create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba/NOTICE create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba/src/main/java/org/apache/tuscany/sca/binding/corba/CorbaBinding.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba/src/main/java/org/apache/tuscany/sca/binding/corba/CorbaBindingFactory.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba/src/main/java/org/apache/tuscany/sca/binding/corba/impl/CorbaBindingFactoryImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba/src/main/java/org/apache/tuscany/sca/binding/corba/impl/CorbaBindingImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba/src/main/java/org/apache/tuscany/sca/binding/corba/impl/CorbaBindingProcessor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba/src/main/resources/META-INF/services/org.apache.tuscany.sca.binding.corba.CorbaBindingFactory create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-corba/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessor create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-dwr/LICENSE create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-dwr/NOTICE create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-dwr/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-dwr/src/main/java/org/apache/tuscany/sca/binding/dwr/DWRBinding.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-dwr/src/main/java/org/apache/tuscany/sca/binding/dwr/DWRBindingActivator.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-dwr/src/main/java/org/apache/tuscany/sca/binding/dwr/DWRInvoker.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-dwr/src/main/java/org/apache/tuscany/sca/binding/dwr/DWRInvokerFactory.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-dwr/src/main/java/org/apache/tuscany/sca/binding/dwr/DWRService.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-dwr/src/main/java/org/apache/tuscany/sca/binding/dwr/DWRServlet.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-dwr/src/main/resources/META-INF/services/org.apache.tuscany.sca.extension.helper.BindingActivator create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ejb-runtime/LICENSE create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ejb-runtime/NOTICE create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ejb-runtime/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ejb-runtime/src/main/java/org/apache/tuscany/sca/binding/ejb/corba/ClassLoadingUtil.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ejb-runtime/src/main/java/org/apache/tuscany/sca/binding/ejb/corba/DynamicStubClassLoader.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ejb-runtime/src/main/java/org/apache/tuscany/sca/binding/ejb/corba/Java2IDLUtil.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ejb-runtime/src/main/java/org/apache/tuscany/sca/binding/ejb/corba/ObjectInputStreamExt.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ejb-runtime/src/main/java/org/apache/tuscany/sca/binding/ejb/corba/StubMethodInterceptor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ejb-runtime/src/main/java/org/apache/tuscany/sca/binding/ejb/corba/UtilInitializer.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ejb-runtime/src/main/java/org/apache/tuscany/sca/binding/ejb/provider/EJBBindingInvoker.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ejb-runtime/src/main/java/org/apache/tuscany/sca/binding/ejb/provider/EJBBindingProviderFactory.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ejb-runtime/src/main/java/org/apache/tuscany/sca/binding/ejb/provider/EJBBindingReferenceBindingProvider.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ejb-runtime/src/main/java/org/apache/tuscany/sca/binding/ejb/util/EJBHandler.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ejb-runtime/src/main/java/org/apache/tuscany/sca/binding/ejb/util/EJBLocator.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ejb-runtime/src/main/java/org/apache/tuscany/sca/binding/ejb/util/EJBObjectFactory.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ejb-runtime/src/main/java/org/apache/tuscany/sca/binding/ejb/util/EJBStubHelper.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ejb-runtime/src/main/java/org/apache/tuscany/sca/binding/ejb/util/InterfaceInfo.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ejb-runtime/src/main/java/org/apache/tuscany/sca/binding/ejb/util/JavaReflectionAdapter.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ejb-runtime/src/main/java/org/apache/tuscany/sca/binding/ejb/util/MethodInfo.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ejb-runtime/src/main/java/org/apache/tuscany/sca/binding/ejb/util/NamingEndpoint.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ejb-runtime/src/main/resources/META-INF/services/org.apache.tuscany.sca.provider.BindingProviderFactory create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ejb-runtime/src/main/resources/binding-ejb-validation-messages.properties create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ejb-runtime/src/test/java/account/BankManagerFacade.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ejb-runtime/src/test/java/account/Customer.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ejb-runtime/src/test/java/account/CustomerImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ejb-runtime/src/test/java/calculator/AddServiceRemote.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ejb-runtime/src/test/java/org/apache/geronimo/samples/bank/ejb/BankManagerFacade.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ejb-runtime/src/test/java/org/apache/geronimo/samples/bank/ejb/BankManagerFacadeHome.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ejb-runtime/src/test/java/org/apache/tuscany/sca/binding/ejb/tests/EJBReferenceTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ejb-runtime/src/test/java/org/apache/tuscany/sca/binding/ejb/tests/MockServer.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ejb-runtime/src/test/java/org/apache/tuscany/sca/binding/ejb/tests/SocketTracer.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ejb-runtime/src/test/resources/account/account.composite create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ejb-runtime/src/test/resources/calculator-ejb/calculator-ejb.jar create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ejb/LICENSE create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ejb/NOTICE create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ejb/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ejb/src/main/java/org/apache/tuscany/sca/binding/ejb/EJBBinding.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ejb/src/main/java/org/apache/tuscany/sca/binding/ejb/EJBBindingException.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ejb/src/main/java/org/apache/tuscany/sca/binding/ejb/EJBBindingFactory.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ejb/src/main/java/org/apache/tuscany/sca/binding/ejb/impl/EJBBindingFactoryImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ejb/src/main/java/org/apache/tuscany/sca/binding/ejb/impl/EJBBindingImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ejb/src/main/java/org/apache/tuscany/sca/binding/ejb/impl/EJBBindingProcessor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ejb/src/main/resources/META-INF/services/org.apache.tuscany.sca.binding.ejb.EJBBindingFactory create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ejb/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessor create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ejb/src/main/resources/binding-ejb-validation-messages.properties create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ejb/src/test/java/org/apache/tuscany/sca/binding/ejb/impl/ReadWriteAnyAttributeTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-gdata-runtime/LICENSE create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-gdata-runtime/NOTICE create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-gdata-runtime/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-gdata-runtime/src/main/java/org/apache/tuscany/sca/binding/gdata/collection/Collection.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-gdata-runtime/src/main/java/org/apache/tuscany/sca/binding/gdata/collection/MediaCollection.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-gdata-runtime/src/main/java/org/apache/tuscany/sca/binding/gdata/collection/NotFoundException.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-gdata-runtime/src/main/java/org/apache/tuscany/sca/binding/gdata/provider/GdataBindingInvoker.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-gdata-runtime/src/main/java/org/apache/tuscany/sca/binding/gdata/provider/GdataBindingListenerServlet.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-gdata-runtime/src/main/java/org/apache/tuscany/sca/binding/gdata/provider/GdataBindingProviderFactory.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-gdata-runtime/src/main/java/org/apache/tuscany/sca/binding/gdata/provider/GdataBindingUtil.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-gdata-runtime/src/main/java/org/apache/tuscany/sca/binding/gdata/provider/GdataReferenceBindingProvider.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-gdata-runtime/src/main/java/org/apache/tuscany/sca/binding/gdata/provider/GdataServiceBindingProvider.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-gdata-runtime/src/main/resources/META-INF/services/org.apache.tuscany.sca.provider.BindingProviderFactory create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-gdata-runtime/src/test/java/org/apache/tuscany/sca/binding/gdata/Constants.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-gdata-runtime/src/test/java/org/apache/tuscany/sca/binding/gdata/Consumer.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-gdata-runtime/src/test/java/org/apache/tuscany/sca/binding/gdata/ConsumerProviderTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-gdata-runtime/src/test/java/org/apache/tuscany/sca/binding/gdata/CustomerClient.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-gdata-runtime/src/test/java/org/apache/tuscany/sca/binding/gdata/CustomerClientImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-gdata-runtime/src/test/java/org/apache/tuscany/sca/binding/gdata/CustomerCollectionImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-gdata-runtime/src/test/java/org/apache/tuscany/sca/binding/gdata/GoogleBloggerServiceTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-gdata-runtime/src/test/java/org/apache/tuscany/sca/binding/gdata/GoogleCalendarServiceTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-gdata-runtime/src/test/java/org/apache/tuscany/sca/binding/gdata/GoogleContactsServiceTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-gdata-runtime/src/test/java/org/apache/tuscany/sca/binding/gdata/GoogleWebAlbumServiceTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-gdata-runtime/src/test/java/org/apache/tuscany/sca/binding/gdata/Provider.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-gdata-runtime/src/test/java/org/apache/tuscany/sca/binding/gdata/StartLocalhostServlet.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-gdata-runtime/src/test/resources/log4j.properties create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-gdata-runtime/src/test/resources/org/apache/tuscany/sca/binding/gdata/Consumer.composite create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-gdata-runtime/src/test/resources/org/apache/tuscany/sca/binding/gdata/ConsumerGoogleBlogger.composite create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-gdata-runtime/src/test/resources/org/apache/tuscany/sca/binding/gdata/ConsumerGoogleCalendar.composite create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-gdata-runtime/src/test/resources/org/apache/tuscany/sca/binding/gdata/ConsumerGoogleContacts.composite create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-gdata-runtime/src/test/resources/org/apache/tuscany/sca/binding/gdata/ConsumerGoogleWebAlbum.composite create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-gdata-runtime/src/test/resources/org/apache/tuscany/sca/binding/gdata/Provider.composite create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-gdata/LICENSE create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-gdata/NOTICE create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-gdata/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-gdata/src/main/java/org/apache/tuscany/sca/binding/gdata/GdataBinding.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-gdata/src/main/java/org/apache/tuscany/sca/binding/gdata/GdataBindingFactory.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-gdata/src/main/java/org/apache/tuscany/sca/binding/gdata/impl/GdataBindingFactoryImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-gdata/src/main/java/org/apache/tuscany/sca/binding/gdata/impl/GdataBindingImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-gdata/src/main/java/org/apache/tuscany/sca/binding/gdata/impl/GdataBindingProcessor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-gdata/src/main/resources/META-INF/services/org.apache.tuscany.sca.binding.gdata.GdataBindingFactory create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-gdata/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessor create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-http-jsonrpc-runtime/LICENSE create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-http-jsonrpc-runtime/NOTICE create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-http-jsonrpc-runtime/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-http-jsonrpc-runtime/src/main/java/org/apache/tuscany/sca/binding/http/operationselector/jsonrpc/provider/JSONRPCOperationSelectorInterceptor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-http-jsonrpc-runtime/src/main/java/org/apache/tuscany/sca/binding/http/operationselector/jsonrpc/provider/JSONRPCOperationSelectorProviderFactory.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-http-jsonrpc-runtime/src/main/java/org/apache/tuscany/sca/binding/http/operationselector/jsonrpc/provider/JSONRPCOperationSelectorServiceProvider.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-http-jsonrpc-runtime/src/main/java/org/apache/tuscany/sca/binding/http/wireformat/jsonrpc/provider/JSONRPCWireFormatInterceptor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-http-jsonrpc-runtime/src/main/java/org/apache/tuscany/sca/binding/http/wireformat/jsonrpc/provider/JSONRPCWireFormatProviderFactory.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-http-jsonrpc-runtime/src/main/java/org/apache/tuscany/sca/binding/http/wireformat/jsonrpc/provider/JSONRPCWireFormatReferenceProvider.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-http-jsonrpc-runtime/src/main/java/org/apache/tuscany/sca/binding/http/wireformat/jsonrpc/provider/JSONRPCWireFormatServiceProvider.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-http-jsonrpc-runtime/src/main/java/org/apache/tuscany/sca/binding/http/wireformat/jsonrpc/provider/JavaToSmd.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-http-jsonrpc-runtime/src/main/resources/META-INF/services/org.apache.tuscany.sca.provider.OperationSelectorProviderFactory create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-http-jsonrpc-runtime/src/main/resources/META-INF/services/org.apache.tuscany.sca.provider.WireFormatProviderFactory create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-http-jsonrpc/LICENSE create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-http-jsonrpc/NOTICE create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-http-jsonrpc/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-http-jsonrpc/src/main/java/org/apache/tuscany/sca/binding/http/operationselector/jsonrpc/JSONRPCOperationSelector.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-http-jsonrpc/src/main/java/org/apache/tuscany/sca/binding/http/operationselector/jsonrpc/JSONRPCOperationSelectorFactory.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-http-jsonrpc/src/main/java/org/apache/tuscany/sca/binding/http/operationselector/jsonrpc/impl/JSONRPCOperationSelectorFactoryImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-http-jsonrpc/src/main/java/org/apache/tuscany/sca/binding/http/operationselector/jsonrpc/impl/JSONRPCOperationSelectorImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-http-jsonrpc/src/main/java/org/apache/tuscany/sca/binding/http/wireformat/jsonrpc/JSONRPCWireFormat.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-http-jsonrpc/src/main/java/org/apache/tuscany/sca/binding/http/wireformat/jsonrpc/JSONRPCWireFormatFactory.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-http-jsonrpc/src/main/java/org/apache/tuscany/sca/binding/http/wireformat/jsonrpc/impl/JSONRPCWireFormatFactoryImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-http-jsonrpc/src/main/java/org/apache/tuscany/sca/binding/http/wireformat/jsonrpc/impl/JSONRPCWireFormatImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-http-jsonrpc/src/main/resources/META-INF/services/org.apache.tuscany.sca.binding.http.operationselector.jsonrpc.JSONRPCOperationSelectorFactory create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-http-jsonrpc/src/main/resources/META-INF/services/org.apache.tuscany.sca.binding.http.wireformat.jsonrpc.JSONRPCWireFormatFactory create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-http-jsonrpc/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessor create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-http-jsonrpc/src/test/java/org/apache/tuscany/sca/binding/http/operationselector/jsonrpc/impl/JSONRPCOperationSelectorProcessorTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-http-jsonrpc/src/test/java/org/apache/tuscany/sca/binding/http/wireformat/jsonrpc/impl/JSONRPCWireFormatProcessorTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-http-runtime/LICENSE create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-http-runtime/NOTICE create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-http-runtime/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-http-runtime/src/main/java/org/apache/tuscany/sca/binding/http/provider/HTTPBindingListenerServlet.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-http-runtime/src/main/java/org/apache/tuscany/sca/binding/http/provider/HTTPBindingProviderFactory.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-http-runtime/src/main/java/org/apache/tuscany/sca/binding/http/provider/HTTPGetListenerServlet.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-http-runtime/src/main/java/org/apache/tuscany/sca/binding/http/provider/HTTPRRBListenerServlet.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-http-runtime/src/main/java/org/apache/tuscany/sca/binding/http/provider/HTTPServiceBindingProvider.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-http-runtime/src/main/java/org/apache/tuscany/sca/binding/http/provider/HTTPServiceListenerServlet.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-http-runtime/src/main/java/org/apache/tuscany/sca/binding/http/util/HTTPHeadersParser.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-http-runtime/src/main/resources/META-INF/services/org.apache.tuscany.sca.provider.BindingProviderFactory create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-http-runtime/src/test/java/org/apache/tuscany/sca/binding/http/HTTPBindingCacheTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-http-runtime/src/test/java/org/apache/tuscany/sca/binding/http/HTTPBindingTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-http-runtime/src/test/java/org/apache/tuscany/sca/binding/http/NotModifiedException.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-http-runtime/src/test/java/org/apache/tuscany/sca/binding/http/PreconditionFailedException.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-http-runtime/src/test/java/org/apache/tuscany/sca/binding/http/TestBindingCacheImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-http-runtime/src/test/java/org/apache/tuscany/sca/binding/http/TestGetImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-http-runtime/src/test/java/org/apache/tuscany/sca/binding/http/TestServiceCacheImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-http-runtime/src/test/java/org/apache/tuscany/sca/binding/http/TestServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-http-runtime/src/test/resources/content/test.html create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-http-runtime/src/test/resources/test.composite create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-http-runtime/src/test/resources/testCache.composite create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-http/LICENSE create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-http/NOTICE create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-http/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-http/src/main/java/org/apache/tuscany/sca/binding/http/HTTPBinding.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-http/src/main/java/org/apache/tuscany/sca/binding/http/HTTPBindingContext.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-http/src/main/java/org/apache/tuscany/sca/binding/http/HTTPBindingFactory.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-http/src/main/java/org/apache/tuscany/sca/binding/http/HTTPCacheContext.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-http/src/main/java/org/apache/tuscany/sca/binding/http/HTTPHeader.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-http/src/main/java/org/apache/tuscany/sca/binding/http/impl/HTTPBindingFactoryImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-http/src/main/java/org/apache/tuscany/sca/binding/http/impl/HTTPBindingImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-http/src/main/java/org/apache/tuscany/sca/binding/http/xml/HTTPBindingProcessor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-http/src/main/resources/META-INF/services/org.apache.tuscany.sca.binding.http.HTTPBindingFactory create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-http/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessor create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-jms-policy/LICENSE create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-jms-policy/NOTICE create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-jms-policy/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-jms-policy/src/main/java/org/apache/tuscany/sca/binding/jms/policy/JMSBindingDefinitionsProvider.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-jms-policy/src/main/java/org/apache/tuscany/sca/binding/jms/policy/authentication/token/JMSTokenAuthenticationPolicy.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-jms-policy/src/main/java/org/apache/tuscany/sca/binding/jms/policy/authentication/token/JMSTokenAuthenticationPolicyProcessor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-jms-policy/src/main/java/org/apache/tuscany/sca/binding/jms/policy/authentication/token/JMSTokenAuthenticationPolicyProviderFactory.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-jms-policy/src/main/java/org/apache/tuscany/sca/binding/jms/policy/authentication/token/JMSTokenAuthenticationReferencePolicyInterceptor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-jms-policy/src/main/java/org/apache/tuscany/sca/binding/jms/policy/authentication/token/JMSTokenAuthenticationReferencePolicyProvider.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-jms-policy/src/main/java/org/apache/tuscany/sca/binding/jms/policy/authentication/token/JMSTokenAuthenticationServicePolicyInterceptor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-jms-policy/src/main/java/org/apache/tuscany/sca/binding/jms/policy/authentication/token/JMSTokenAuthenticationServicePolicyProvider.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-jms-policy/src/main/java/org/apache/tuscany/sca/binding/jms/policy/header/JMSHeaderPolicy.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-jms-policy/src/main/java/org/apache/tuscany/sca/binding/jms/policy/header/JMSHeaderPolicyProcessor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-jms-policy/src/main/java/org/apache/tuscany/sca/binding/jms/policy/header/JMSHeaderPolicyProviderFactory.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-jms-policy/src/main/java/org/apache/tuscany/sca/binding/jms/policy/header/JMSHeaderReferencePolicyInterceptor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-jms-policy/src/main/java/org/apache/tuscany/sca/binding/jms/policy/header/JMSHeaderReferencePolicyProvider.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-jms-policy/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessor create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-jms-policy/src/main/resources/META-INF/services/org.apache.tuscany.sca.provider.PolicyProviderFactory create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-jms-policy/src/main/resources/META-INF/services/org.apache.tuscany.sca.provider.SCADefinitionsProvider create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-jms-policy/src/main/resources/binding-jms-policy-validation-messages.properties create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-jms-policy/src/main/resources/org/apache/tuscany/sca/binding/jms/policy/definitions.xml create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-jms-policy/src/test/java/org/apache/tuscany/sca/binding/jms/policy/PolicyProcessorTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-jms-policy/src/test/resources/org/apache/tuscany/sca/binding/jms/policy/mock_policy_definitions.xml create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-jms-runtime/LICENSE create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-jms-runtime/NOTICE create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-jms-runtime/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/context/JMSBindingContext.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/headers/HeaderReferenceInterceptor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/operationselector/jmsdefault/runtime/OperationSelectorJMSDefaultProviderFactory.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/operationselector/jmsdefault/runtime/OperationSelectorJMSDefaultServiceInterceptor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/operationselector/jmsdefault/runtime/OperationSelectorJMSDefaultServiceProvider.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/operationselector/jmsuserprop/runtime/OperationSelectorJMSUserPropProviderFactory.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/operationselector/jmsuserprop/runtime/OperationSelectorJMSUserPropServiceInterceptor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/operationselector/jmsuserprop/runtime/OperationSelectorJMSUserPropServiceProvider.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/provider/AbstractMessageProcessor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/provider/BytesMessageProcessor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/provider/DefaultJMSResourceFactoryExtensionPoint.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/provider/DefaultMessageProcessor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/provider/JMSBindingProviderFactory.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/provider/JMSBindingReferenceBindingProvider.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/provider/JMSBindingServiceBindingProvider.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/provider/JMSMessageProcessor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/provider/JMSMessageProcessorUtil.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/provider/JMSResourceFactory.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/provider/JMSResourceFactoryExtensionPoint.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/provider/JMSResourceFactoryImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/provider/ObjectMessageProcessor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/provider/RRBJMSBindingInvoker.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/provider/TextMessageProcessor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/provider/XMLBytesMessageProcessor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/provider/XMLTextMessageProcessor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/transport/TransportReferenceInterceptor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/transport/TransportServiceInterceptor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/wire/CallbackDestinationInterceptor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/wire/OperationPropertiesInterceptor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/wireformat/jmsbytes/runtime/WireFormatJMSBytesProviderFactory.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/wireformat/jmsbytes/runtime/WireFormatJMSBytesReferenceInterceptor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/wireformat/jmsbytes/runtime/WireFormatJMSBytesReferenceProvider.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/wireformat/jmsbytes/runtime/WireFormatJMSBytesServiceInterceptor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/wireformat/jmsbytes/runtime/WireFormatJMSBytesServiceProvider.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/wireformat/jmsbytesxml/runtime/WireFormatJMSBytesXMLProviderFactory.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/wireformat/jmsbytesxml/runtime/WireFormatJMSBytesXMLReferenceInterceptor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/wireformat/jmsbytesxml/runtime/WireFormatJMSBytesXMLReferenceProvider.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/wireformat/jmsbytesxml/runtime/WireFormatJMSBytesXMLServiceInterceptor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/wireformat/jmsbytesxml/runtime/WireFormatJMSBytesXMLServiceProvider.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/wireformat/jmsdefault/runtime/WireFormatJMSDefaultProviderFactory.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/wireformat/jmsdefault/runtime/WireFormatJMSDefaultReferenceInterceptor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/wireformat/jmsdefault/runtime/WireFormatJMSDefaultReferenceProvider.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/wireformat/jmsdefault/runtime/WireFormatJMSDefaultServiceInterceptor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/wireformat/jmsdefault/runtime/WireFormatJMSDefaultServiceProvider.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/wireformat/jmsobject/runtime/WireFormatJMSObjectProviderFactory.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/wireformat/jmsobject/runtime/WireFormatJMSObjectReferenceInterceptor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/wireformat/jmsobject/runtime/WireFormatJMSObjectReferenceProvider.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/wireformat/jmsobject/runtime/WireFormatJMSObjectServiceInterceptor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/wireformat/jmsobject/runtime/WireFormatJMSObjectServiceProvider.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/wireformat/jmstext/runtime/WireFormatJMSTextProviderFactory.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/wireformat/jmstext/runtime/WireFormatJMSTextReferenceInterceptor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/wireformat/jmstext/runtime/WireFormatJMSTextReferenceProvider.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/wireformat/jmstext/runtime/WireFormatJMSTextServiceInterceptor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/wireformat/jmstext/runtime/WireFormatJMSTextServiceProvider.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/wireformat/jmstextxml/runtime/WireFormatJMSTextXMLProviderFactory.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/wireformat/jmstextxml/runtime/WireFormatJMSTextXMLReferenceInterceptor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/wireformat/jmstextxml/runtime/WireFormatJMSTextXMLReferenceProvider.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/wireformat/jmstextxml/runtime/WireFormatJMSTextXMLServiceInterceptor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/wireformat/jmstextxml/runtime/WireFormatJMSTextXMLServiceProvider.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-jms-runtime/src/main/resources/META-INF/services/org.apache.tuscany.sca.provider.BindingProviderFactory create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-jms-runtime/src/main/resources/META-INF/services/org.apache.tuscany.sca.provider.OperationSelectorProviderFactory create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-jms-runtime/src/main/resources/META-INF/services/org.apache.tuscany.sca.provider.WireFormatProviderFactory create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-jms-runtime/src/test/java/org/apache/tuscany/sca/binding/jms/HelloWorldClientImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-jms-runtime/src/test/java/org/apache/tuscany/sca/binding/jms/HelloWorldService.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-jms-runtime/src/test/java/org/apache/tuscany/sca/binding/jms/HelloWorldServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-jms-runtime/src/test/java/org/apache/tuscany/sca/binding/jms/OperationSelectionTestCaseFIXME.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-jms-runtime/src/test/resources/simple/client.composite create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-jms-runtime/src/test/resources/simple/service.composite create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-jms/LICENSE create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-jms/NOTICE create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-jms/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-jms/src/main/java/org/apache/tuscany/sca/binding/jms/impl/BindingProperty.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-jms/src/main/java/org/apache/tuscany/sca/binding/jms/impl/JMSBinding.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-jms/src/main/java/org/apache/tuscany/sca/binding/jms/impl/JMSBindingConstants.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-jms/src/main/java/org/apache/tuscany/sca/binding/jms/impl/JMSBindingException.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-jms/src/main/java/org/apache/tuscany/sca/binding/jms/impl/JMSBindingProcessor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-jms/src/main/java/org/apache/tuscany/sca/binding/jms/operationselector/jmsdefault/OperationSelectorJMSDefault.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-jms/src/main/java/org/apache/tuscany/sca/binding/jms/operationselector/jmsdefault/OperationSelectorJMSDefaultProcessor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-jms/src/main/java/org/apache/tuscany/sca/binding/jms/operationselector/jmsuserprop/OperationSelectorJMSUserProp.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-jms/src/main/java/org/apache/tuscany/sca/binding/jms/operationselector/jmsuserprop/OperationSelectorJMSUserPropProcessor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-jms/src/main/java/org/apache/tuscany/sca/binding/jms/wireformat/jmsbytes/WireFormatJMSBytes.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-jms/src/main/java/org/apache/tuscany/sca/binding/jms/wireformat/jmsbytes/WireFormatJMSBytesProcessor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-jms/src/main/java/org/apache/tuscany/sca/binding/jms/wireformat/jmsbytesxml/WireFormatJMSBytesXML.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-jms/src/main/java/org/apache/tuscany/sca/binding/jms/wireformat/jmsbytesxml/WireFormatJMSBytesXMLProcessor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-jms/src/main/java/org/apache/tuscany/sca/binding/jms/wireformat/jmsdefault/WireFormatJMSDefault.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-jms/src/main/java/org/apache/tuscany/sca/binding/jms/wireformat/jmsdefault/WireFormatJMSDefaultProcessor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-jms/src/main/java/org/apache/tuscany/sca/binding/jms/wireformat/jmsobject/WireFormatJMSObject.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-jms/src/main/java/org/apache/tuscany/sca/binding/jms/wireformat/jmsobject/WireFormatJMSObjectProcessor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-jms/src/main/java/org/apache/tuscany/sca/binding/jms/wireformat/jmstext/WireFormatJMSText.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-jms/src/main/java/org/apache/tuscany/sca/binding/jms/wireformat/jmstext/WireFormatJMSTextProcessor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-jms/src/main/java/org/apache/tuscany/sca/binding/jms/wireformat/jmstextxml/WireFormatJMSTextXML.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-jms/src/main/java/org/apache/tuscany/sca/binding/jms/wireformat/jmstextxml/WireFormatJMSTextXMLProcessor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-jms/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessor create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-jms/src/main/resources/binding-jms-validation-messages.properties create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-jms/src/test/java/org/apache/tuscany/sca/binding/jms/impl/JMSBindingProcessorTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-jms/src/test/java/org/apache/tuscany/sca/binding/jms/impl/JMSBindingProcessorWriteTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-jsonrpc-js-dojo/LICENSE create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-jsonrpc-js-dojo/NOTICE create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-jsonrpc-js-dojo/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-jsonrpc-js-dojo/src/main/java/org/apache/tuscany/sca/binding/jsonrpc/js/dojo/JSONRPCBindingJavascriptProxyFactoryImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-jsonrpc-js-dojo/src/main/resources/META-INF/services/org.apache.tuscany.sca.web.javascript.JavascriptProxyFactory create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-jsonrpc-js/LICENSE create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-jsonrpc-js/NOTICE create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-jsonrpc-js/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-jsonrpc-js/src/main/java/org/apache/tuscany/sca/binding/jsonrpc/js/JSONRPCBindingJavascriptProxyFactoryImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-jsonrpc-js/src/main/resources/META-INF/services/org.apache.tuscany.sca.web.javascript.JavascriptProxyFactory create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-jsonrpc-js/src/main/resources/binding-jsonrpc.js create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-jsonrpc-runtime/LICENSE create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-jsonrpc-runtime/NOTICE create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-jsonrpc-runtime/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-jsonrpc-runtime/src/main/java/org/apache/tuscany/sca/binding/jsonrpc/provider/JSONRPCBindingInvoker.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-jsonrpc-runtime/src/main/java/org/apache/tuscany/sca/binding/jsonrpc/provider/JSONRPCBindingProviderFactory.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-jsonrpc-runtime/src/main/java/org/apache/tuscany/sca/binding/jsonrpc/provider/JSONRPCReferenceBindingProvider.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-jsonrpc-runtime/src/main/java/org/apache/tuscany/sca/binding/jsonrpc/provider/JSONRPCServiceBindingProvider.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-jsonrpc-runtime/src/main/java/org/apache/tuscany/sca/binding/jsonrpc/provider/JSONRPCServiceServlet.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-jsonrpc-runtime/src/main/java/org/apache/tuscany/sca/binding/jsonrpc/provider/JavaToSmd.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-jsonrpc-runtime/src/main/java/org/apache/tuscany/sca/binding/jsonrpc/provider/ScaDomainScriptServlet.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-jsonrpc-runtime/src/main/resources/META-INF/services/org.apache.tuscany.sca.provider.BindingProviderFactory create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-jsonrpc-runtime/src/main/resources/org/apache/tuscany/sca/binding/jsonrpc/provider/jsonrpc.js create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-jsonrpc-runtime/src/test/java/bean/TestBean.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-jsonrpc-runtime/src/test/java/echo/Echo.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-jsonrpc-runtime/src/test/java/echo/EchoBusinessException.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-jsonrpc-runtime/src/test/java/echo/EchoComponentImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-jsonrpc-runtime/src/test/java/org/apache/tuscany/sca/binding/jsonrpc/JSONRPCDataTypeTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-jsonrpc-runtime/src/test/java/org/apache/tuscany/sca/binding/jsonrpc/JSONRPCExceptionTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-jsonrpc-runtime/src/test/java/org/apache/tuscany/sca/binding/jsonrpc/JSONRPCServiceTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-jsonrpc-runtime/src/test/java/org/apache/tuscany/sca/binding/jsonrpc/JSONRPCSmdTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-jsonrpc-runtime/src/test/resources/JSONRPCBinding.composite create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-jsonrpc/LICENSE create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-jsonrpc/NOTICE create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-jsonrpc/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-jsonrpc/src/main/java/org/apache/tuscany/sca/binding/jsonrpc/JSONRPCBinding.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-jsonrpc/src/main/java/org/apache/tuscany/sca/binding/jsonrpc/JSONRPCBindingFactory.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-jsonrpc/src/main/java/org/apache/tuscany/sca/binding/jsonrpc/impl/JSONRPCBindingFactoryImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-jsonrpc/src/main/java/org/apache/tuscany/sca/binding/jsonrpc/impl/JSONRPCBindingImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-jsonrpc/src/main/resources/META-INF/services/org.apache.tuscany.sca.binding.jsonrpc.JSONRPCBindingFactory create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-jsonrpc/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessor create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-notification/LICENSE create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-notification/NOTICE create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-notification/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-notification/src/main/java/org/apache/tuscany/sca/binding/notification/DefaultNotificationBindingFactory.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-notification/src/main/java/org/apache/tuscany/sca/binding/notification/NotificationBinding.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-notification/src/main/java/org/apache/tuscany/sca/binding/notification/NotificationBindingFactory.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-notification/src/main/java/org/apache/tuscany/sca/binding/notification/NotificationBindingImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-notification/src/main/java/org/apache/tuscany/sca/binding/notification/NotificationBindingModuleActivator.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-notification/src/main/java/org/apache/tuscany/sca/binding/notification/NotificationBindingProcessor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-notification/src/main/java/org/apache/tuscany/sca/binding/notification/NotificationBindingProviderFactory.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-notification/src/main/java/org/apache/tuscany/sca/binding/notification/NotificationBrokerManager.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-notification/src/main/java/org/apache/tuscany/sca/binding/notification/NotificationReferenceBindingInvoker.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-notification/src/main/java/org/apache/tuscany/sca/binding/notification/NotificationReferenceBindingProvider.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-notification/src/main/java/org/apache/tuscany/sca/binding/notification/NotificationServiceBindingProvider.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-notification/src/main/java/org/apache/tuscany/sca/binding/notification/NotificationTypeManager.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-notification/src/main/java/org/apache/tuscany/sca/binding/notification/NotificationTypeManagerImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-notification/src/main/java/org/apache/tuscany/sca/binding/notification/encoding/AbstractBroker.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-notification/src/main/java/org/apache/tuscany/sca/binding/notification/encoding/AbstractBrokerEnDeCoder.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-notification/src/main/java/org/apache/tuscany/sca/binding/notification/encoding/AbstractEnDeCoder.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-notification/src/main/java/org/apache/tuscany/sca/binding/notification/encoding/Broker.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-notification/src/main/java/org/apache/tuscany/sca/binding/notification/encoding/BrokerConsumerReference.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-notification/src/main/java/org/apache/tuscany/sca/binding/notification/encoding/BrokerConsumerReferenceEnDeCoder.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-notification/src/main/java/org/apache/tuscany/sca/binding/notification/encoding/BrokerEnDeCoder.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-notification/src/main/java/org/apache/tuscany/sca/binding/notification/encoding/BrokerID.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-notification/src/main/java/org/apache/tuscany/sca/binding/notification/encoding/BrokerIDEnDeCoder.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-notification/src/main/java/org/apache/tuscany/sca/binding/notification/encoding/BrokerProducerReference.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-notification/src/main/java/org/apache/tuscany/sca/binding/notification/encoding/BrokerProducerReferenceEnDeCoder.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-notification/src/main/java/org/apache/tuscany/sca/binding/notification/encoding/Brokers.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-notification/src/main/java/org/apache/tuscany/sca/binding/notification/encoding/BrokersEnDeCoder.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-notification/src/main/java/org/apache/tuscany/sca/binding/notification/encoding/ConnectionOverride.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-notification/src/main/java/org/apache/tuscany/sca/binding/notification/encoding/ConnectionOverrideEnDeCoder.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-notification/src/main/java/org/apache/tuscany/sca/binding/notification/encoding/ConnectionOverrideResponse.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-notification/src/main/java/org/apache/tuscany/sca/binding/notification/encoding/ConnectionOverrideResponseEnDeCoder.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-notification/src/main/java/org/apache/tuscany/sca/binding/notification/encoding/Constants.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-notification/src/main/java/org/apache/tuscany/sca/binding/notification/encoding/ConsumerReference.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-notification/src/main/java/org/apache/tuscany/sca/binding/notification/encoding/ConsumerReferenceEnDeCoder.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-notification/src/main/java/org/apache/tuscany/sca/binding/notification/encoding/DefaultEncodingRegistry.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-notification/src/main/java/org/apache/tuscany/sca/binding/notification/encoding/EnDeCoder.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-notification/src/main/java/org/apache/tuscany/sca/binding/notification/encoding/EncodingException.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-notification/src/main/java/org/apache/tuscany/sca/binding/notification/encoding/EncodingObject.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-notification/src/main/java/org/apache/tuscany/sca/binding/notification/encoding/EncodingRegistry.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-notification/src/main/java/org/apache/tuscany/sca/binding/notification/encoding/EncodingUtils.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-notification/src/main/java/org/apache/tuscany/sca/binding/notification/encoding/EndConsumers.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-notification/src/main/java/org/apache/tuscany/sca/binding/notification/encoding/EndConsumersEnDeCoder.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-notification/src/main/java/org/apache/tuscany/sca/binding/notification/encoding/EndProducers.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-notification/src/main/java/org/apache/tuscany/sca/binding/notification/encoding/EndProducersEnDeCoder.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-notification/src/main/java/org/apache/tuscany/sca/binding/notification/encoding/EndpointAddress.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-notification/src/main/java/org/apache/tuscany/sca/binding/notification/encoding/EndpointAddressEnDeCoder.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-notification/src/main/java/org/apache/tuscany/sca/binding/notification/encoding/EndpointReference.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-notification/src/main/java/org/apache/tuscany/sca/binding/notification/encoding/EndpointReferenceEnDeCoder.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-notification/src/main/java/org/apache/tuscany/sca/binding/notification/encoding/EndpointReferenceSequence.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-notification/src/main/java/org/apache/tuscany/sca/binding/notification/encoding/EndpointReferenceSequenceEnDeCoder.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-notification/src/main/java/org/apache/tuscany/sca/binding/notification/encoding/EndpointReferenceWrapper.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-notification/src/main/java/org/apache/tuscany/sca/binding/notification/encoding/EndpointReferenceWrapperEnDeCoder.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-notification/src/main/java/org/apache/tuscany/sca/binding/notification/encoding/NeighborBrokerConsumers.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-notification/src/main/java/org/apache/tuscany/sca/binding/notification/encoding/NeighborBrokerConsumersEnDeCoder.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-notification/src/main/java/org/apache/tuscany/sca/binding/notification/encoding/Neighbors.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-notification/src/main/java/org/apache/tuscany/sca/binding/notification/encoding/NeighborsEnDeCoder.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-notification/src/main/java/org/apache/tuscany/sca/binding/notification/encoding/NewBroker.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-notification/src/main/java/org/apache/tuscany/sca/binding/notification/encoding/NewBrokerAck.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-notification/src/main/java/org/apache/tuscany/sca/binding/notification/encoding/NewBrokerAckEnDeCoder.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-notification/src/main/java/org/apache/tuscany/sca/binding/notification/encoding/NewBrokerEnDeCoder.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-notification/src/main/java/org/apache/tuscany/sca/binding/notification/encoding/NewBrokerResponse.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-notification/src/main/java/org/apache/tuscany/sca/binding/notification/encoding/NewBrokerResponseEnDeCoder.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-notification/src/main/java/org/apache/tuscany/sca/binding/notification/encoding/NewConsumer.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-notification/src/main/java/org/apache/tuscany/sca/binding/notification/encoding/NewConsumerEnDeCoder.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-notification/src/main/java/org/apache/tuscany/sca/binding/notification/encoding/NewConsumerResponse.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-notification/src/main/java/org/apache/tuscany/sca/binding/notification/encoding/NewConsumerResponseEnDeCoder.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-notification/src/main/java/org/apache/tuscany/sca/binding/notification/encoding/NewProducer.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-notification/src/main/java/org/apache/tuscany/sca/binding/notification/encoding/NewProducerEnDeCoder.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-notification/src/main/java/org/apache/tuscany/sca/binding/notification/encoding/NewProducerResponse.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-notification/src/main/java/org/apache/tuscany/sca/binding/notification/encoding/NewProducerResponseEnDeCoder.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-notification/src/main/java/org/apache/tuscany/sca/binding/notification/encoding/ReferenceProperties.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-notification/src/main/java/org/apache/tuscany/sca/binding/notification/encoding/ReferencePropertiesEnDeCoder.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-notification/src/main/java/org/apache/tuscany/sca/binding/notification/encoding/RemoveBroker.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-notification/src/main/java/org/apache/tuscany/sca/binding/notification/encoding/RemoveBrokerEnDeCoder.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-notification/src/main/java/org/apache/tuscany/sca/binding/notification/encoding/RemovedBroker.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-notification/src/main/java/org/apache/tuscany/sca/binding/notification/encoding/RemovedBrokerEnDeCoder.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-notification/src/main/java/org/apache/tuscany/sca/binding/notification/encoding/ReplaceBrokerConnection.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-notification/src/main/java/org/apache/tuscany/sca/binding/notification/encoding/ReplaceBrokerConnectionEnDeCoder.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-notification/src/main/java/org/apache/tuscany/sca/binding/notification/encoding/Subscribe.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-notification/src/main/java/org/apache/tuscany/sca/binding/notification/encoding/SubscribeEnDeCoder.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-notification/src/main/java/org/apache/tuscany/sca/binding/notification/util/IOUtils.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-notification/src/main/java/org/apache/tuscany/sca/binding/notification/util/NotificationServlet.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-notification/src/main/java/org/apache/tuscany/sca/binding/notification/util/URIUtil.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-notification/src/main/resources/META-INF/services/org.apache.tuscany.sca.core.ModuleActivator create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-notification/src/test/java/org/apache/tuscany/sca/binding/notification/encoding/AxiomTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-notification/src/test/java/org/apache/tuscany/sca/binding/notification/encoding/EncodingTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-rmi-runtime/LICENSE create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-rmi-runtime/NOTICE create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-rmi-runtime/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-rmi-runtime/src/main/java/org/apache/tuscany/sca/binding/rmi/provider/RMIBindingProviderFactory.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-rmi-runtime/src/main/java/org/apache/tuscany/sca/binding/rmi/provider/RMIReferenceBindingProvider.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-rmi-runtime/src/main/java/org/apache/tuscany/sca/binding/rmi/provider/RMIReferenceInvoker.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-rmi-runtime/src/main/java/org/apache/tuscany/sca/binding/rmi/provider/RMIServiceBindingProvider.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-rmi-runtime/src/main/resources/META-INF/services/org.apache.tuscany.sca.provider.BindingProviderFactory create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-rmi-runtime/src/test/java/helloworld/HelloException.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-rmi-runtime/src/test/java/helloworld/HelloWorldImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-rmi-runtime/src/test/java/helloworld/HelloWorldRmiImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-rmi-runtime/src/test/java/helloworld/HelloWorldRmiService.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-rmi-runtime/src/test/java/helloworld/HelloWorldService.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-rmi-runtime/src/test/java/org/apache/tuscany/sca/binding/rmi/BindingTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-rmi-runtime/src/test/resources/HelloWorldImpl.componentType create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-rmi-runtime/src/test/resources/HelloWorldRmiImpl.componentType create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-rmi-runtime/src/test/resources/RMIBindingTest.composite create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-rmi/LICENSE create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-rmi/NOTICE create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-rmi/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-rmi/src/main/java/org/apache/tuscany/sca/binding/rmi/RMIBinding.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-rmi/src/main/java/org/apache/tuscany/sca/binding/rmi/RMIBindingFactory.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-rmi/src/main/java/org/apache/tuscany/sca/binding/rmi/impl/RMIBindingFactoryImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-rmi/src/main/java/org/apache/tuscany/sca/binding/rmi/impl/RMIBindingImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-rmi/src/main/resources/META-INF/services/org.apache.tuscany.sca.binding.rmi.RMIBindingFactory create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-rmi/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessor create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-rss-rome/LICENSE create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-rss-rome/NOTICE create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-rss-rome/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-rss-rome/src/main/java/org/apache/tuscany/sca/binding/rss/collection/Collection.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-rss-rome/src/main/java/org/apache/tuscany/sca/binding/rss/collection/MediaCollection.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-rss-rome/src/main/java/org/apache/tuscany/sca/binding/rss/collection/NotFoundException.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-rss-rome/src/main/java/org/apache/tuscany/sca/binding/rss/provider/RSSBindingInvoker.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-rss-rome/src/main/java/org/apache/tuscany/sca/binding/rss/provider/RSSBindingListenerServlet.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-rss-rome/src/main/java/org/apache/tuscany/sca/binding/rss/provider/RSSBindingProviderFactory.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-rss-rome/src/main/java/org/apache/tuscany/sca/binding/rss/provider/RSSReferenceBindingProvider.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-rss-rome/src/main/java/org/apache/tuscany/sca/binding/rss/provider/RSSServiceBindingProvider.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-rss-rome/src/main/resources/META-INF/services/org.apache.tuscany.sca.provider.BindingProviderFactory create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-rss-rome/src/test/java/org/apache/tuscany/sca/binding/rss/Consumer.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-rss-rome/src/test/java/org/apache/tuscany/sca/binding/rss/CustomerClient.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-rss-rome/src/test/java/org/apache/tuscany/sca/binding/rss/CustomerClientImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-rss-rome/src/test/java/org/apache/tuscany/sca/binding/rss/CustomerCollectionImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-rss-rome/src/test/java/org/apache/tuscany/sca/binding/rss/Provider.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-rss-rome/src/test/java/org/apache/tuscany/sca/binding/rss/RSSGetTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-rss-rome/src/test/resources/org/apache/tuscany/sca/binding/rss/Consumer.composite create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-rss-rome/src/test/resources/org/apache/tuscany/sca/binding/rss/Provider.composite create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-rss/LICENSE create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-rss/NOTICE create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-rss/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-rss/src/main/java/org/apache/tuscany/sca/binding/rss/RSSBinding.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-rss/src/main/java/org/apache/tuscany/sca/binding/rss/RSSBindingFactory.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-rss/src/main/java/org/apache/tuscany/sca/binding/rss/impl/RSSBindingFactoryImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-rss/src/main/java/org/apache/tuscany/sca/binding/rss/impl/RSSBindingImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-rss/src/main/resources/META-INF/services/org.apache.tuscany.sca.binding.rss.RSSBindingFactory create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-rss/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessor create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-sca-axis2/LICENSE create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-sca-axis2/NOTICE create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-sca-axis2/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-sca-axis2/src/main/java/org/apache/tuscany/sca/binding/sca/axis2/impl/Axis2SCABindingInvoker.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-sca-axis2/src/main/java/org/apache/tuscany/sca/binding/sca/axis2/impl/Axis2SCABindingProviderFactory.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-sca-axis2/src/main/java/org/apache/tuscany/sca/binding/sca/axis2/impl/Axis2SCAReferenceBindingProvider.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-sca-axis2/src/main/java/org/apache/tuscany/sca/binding/sca/axis2/impl/Axis2SCAServiceBindingProvider.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-sca-axis2/src/main/java/org/apache/tuscany/sca/binding/sca/axis2/impl/Axis2SCAServiceProvider.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-sca-axis2/src/main/resources/META-INF/services/org.apache.tuscany.sca.provider.BindingProviderFactory create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-sca-axis2/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/AsynchTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-sca-axis2/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/BindingScaEndpointResolverFactoryImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-sca-axis2/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/BindingScaEndpointResolverImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-sca-axis2/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/CallbackTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-sca-axis2/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/PromotionTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-sca-axis2/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/SimpleTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-sca-axis2/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/TestNode.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-sca-axis2/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/helloworld/HelloWorldCallbackRemote.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-sca-axis2/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/helloworld/HelloWorldClient.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-sca-axis2/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/helloworld/HelloWorldServiceCallbackOnewayRemote.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-sca-axis2/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/helloworld/HelloWorldServiceCallbackRemote.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-sca-axis2/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/helloworld/HelloWorldServiceLocal.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-sca-axis2/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/helloworld/HelloWorldServiceRemote.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-sca-axis2/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/helloworld/HelloWorldServiceRemote2.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-sca-axis2/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/helloworld/impl/HelloWorldClientCallbackOnewayRemoteImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-sca-axis2/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/helloworld/impl/HelloWorldClientCallbackRemoteImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-sca-axis2/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/helloworld/impl/HelloWorldClientLocalImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-sca-axis2/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/helloworld/impl/HelloWorldClientRemote2Impl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-sca-axis2/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/helloworld/impl/HelloWorldClientRemoteImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-sca-axis2/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/helloworld/impl/HelloWorldServiceCallbackOnewayRemoteImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-sca-axis2/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/helloworld/impl/HelloWorldServiceCallbackRemoteImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-sca-axis2/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/helloworld/impl/HelloWorldServiceLocalImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-sca-axis2/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/helloworld/impl/HelloWorldServiceMultipleServicesImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-sca-axis2/src/test/java/org/apache/tuscany/sca/binding/sca/axis2/helloworld/impl/HelloWorldServiceRemoteImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-sca-axis2/src/test/resources/META-INF/services/org.apache.tuscany.sca.endpointresolver.EndpointResolverFactory create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-sca-axis2/src/test/resources/nodeA/HelloWorld.composite create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-sca-axis2/src/test/resources/nodeA/META-INF/sca-contribution.xml create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-sca-axis2/src/test/resources/nodeB/HelloWorld.composite create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-sca-axis2/src/test/resources/nodeB/META-INF/sca-contribution.xml create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-sca-axis2/src/test/resources/nodeC/HelloWorld.composite create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-sca-axis2/src/test/resources/nodeC/HelloWorldComponent.composite create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-sca-axis2/src/test/resources/nodeC/META-INF/sca-contribution.xml create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-sca-axis2/src/test/resources/nodeD/HelloWorld.composite create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-sca-axis2/src/test/resources/nodeD/HelloWorldComponent.composite create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-sca-axis2/src/test/resources/nodeD/META-INF/sca-contribution.xml create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-sca-axis2/src/test/resources/nodeE/HelloWorld.composite create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-sca-axis2/src/test/resources/nodeE/META-INF/sca-contribution.xml create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-sca-axis2/src/test/resources/nodeF/HelloWorld.composite create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-sca-axis2/src/test/resources/nodeF/META-INF/sca-contribution.xml create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-sca-axis2/src/test/resources/nodeG/HelloWorld.composite create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-sca-axis2/src/test/resources/nodeG/META-INF/sca-contribution.xml create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-sca-axis2/src/test/resources/nodeH/HelloWorld.composite create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-sca-axis2/src/test/resources/nodeH/META-INF/sca-contribution.xml create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-sca-corba/LICENSE create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-sca-corba/NOTICE create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-sca-corba/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-sca-corba/src/main/java/org/apache/tuscany/sca/binding/sca/corba/impl/CorbaSCABindingProviderFactory.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-sca-corba/src/main/java/org/apache/tuscany/sca/binding/sca/corba/impl/CorbaSCAInvocationProxy.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-sca-corba/src/main/java/org/apache/tuscany/sca/binding/sca/corba/impl/CorbaSCAInvoker.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-sca-corba/src/main/java/org/apache/tuscany/sca/binding/sca/corba/impl/CorbaSCAReferenceBindingProvider.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-sca-corba/src/main/java/org/apache/tuscany/sca/binding/sca/corba/impl/CorbaSCAServiceBindingProvider.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-sca-corba/src/main/java/org/apache/tuscany/sca/binding/sca/corba/impl/WrappedSCAException.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-sca-corba/src/main/resources/META-INF/services/org.apache.tuscany.sca.provider.BindingProviderFactory create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-sca-xml/LICENSE create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-sca-xml/NOTICE create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-sca-xml/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-sca-xml/src/main/java/org/apache/tuscany/sca/binding/sca/xml/SCABindingProcessor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-sca-xml/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessor create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-sca-xml/src/test/java/org/apace/tuscany/sca/binding/sca/xml/ReadTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-sca-xml/src/test/java/org/apace/tuscany/sca/binding/sca/xml/ReadWriteAnyAttributeTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-sca-xml/src/test/java/org/apace/tuscany/sca/binding/sca/xml/WriteTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-sca-xml/src/test/resources/Calculator.composite create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-sca-xml/src/test/resources/CalculatorServiceImpl.componentType create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-sca/LICENSE create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-sca/NOTICE create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-sca/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-sca/src/main/java/org/apache/tuscany/sca/binding/sca/DistributedSCABinding.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-sca/src/main/java/org/apache/tuscany/sca/binding/sca/SCABindingDefinitionsProvider.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-sca/src/main/java/org/apache/tuscany/sca/binding/sca/impl/DistributedSCABindingImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-sca/src/main/java/org/apache/tuscany/sca/binding/sca/impl/RemoteBindingHelper.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-sca/src/main/java/org/apache/tuscany/sca/binding/sca/impl/RuntimeSCABindingProvider.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-sca/src/main/java/org/apache/tuscany/sca/binding/sca/impl/RuntimeSCABindingProviderFactory.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-sca/src/main/java/org/apache/tuscany/sca/binding/sca/impl/RuntimeSCAReferenceBindingProvider.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-sca/src/main/java/org/apache/tuscany/sca/binding/sca/impl/RuntimeSCAServiceBindingProvider.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-sca/src/main/java/org/apache/tuscany/sca/binding/sca/impl/SCABindingFactoryImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-sca/src/main/java/org/apache/tuscany/sca/binding/sca/impl/SCABindingImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-sca/src/main/java/org/apache/tuscany/sca/binding/sca/impl/SCABindingInvoker.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-sca/src/main/resources/META-INF/services/org.apache.tuscany.sca.assembly.SCABindingFactory create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-sca/src/main/resources/META-INF/services/org.apache.tuscany.sca.provider.BindingProviderFactory create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-sca/src/main/resources/META-INF/services/org.apache.tuscany.sca.provider.SCADefinitionsProvider create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-sca/src/main/resources/org/apache/tuscany/sca/binding/sca/definitions.xml create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-sca/src/test/java/org/apace/tuscany/sca/binding/sca/SCABindingTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-sca/src/test/resources/Calculator.composite create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-axis2-policy/LICENSE create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-axis2-policy/NOTICE create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-axis2-policy/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-axis2-policy/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/policy/authentication/token/Axis2TokenAuthenticationPolicy.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-axis2-policy/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/policy/authentication/token/Axis2TokenAuthenticationPolicyProcessor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-axis2-policy/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/policy/authentication/token/Axis2TokenAuthenticationPolicyProviderFactory.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-axis2-policy/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/policy/authentication/token/Axis2TokenAuthenticationReferencePolicyInterceptor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-axis2-policy/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/policy/authentication/token/Axis2TokenAuthenticationReferencePolicyProvider.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-axis2-policy/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/policy/authentication/token/Axis2TokenAuthenticationServicePolicyInterceptor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-axis2-policy/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/policy/authentication/token/Axis2TokenAuthenticationServicePolicyProvider.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-axis2-policy/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/policy/configuration/Axis2ConfigParamPolicy.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-axis2-policy/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/policy/configuration/Axis2ConfigParamPolicyHandler.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-axis2-policy/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/policy/configuration/Axis2ConfigParamPolicyProcessor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-axis2-policy/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/policy/configuration/Axis2ConfigParamPolicyProviderFactory.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-axis2-policy/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/policy/header/Axis2HeaderPolicy.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-axis2-policy/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/policy/header/Axis2HeaderPolicyProcessor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-axis2-policy/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/policy/header/Axis2HeaderPolicyProviderFactory.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-axis2-policy/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/policy/header/Axis2HeaderPolicyUtil.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-axis2-policy/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/policy/header/Axis2HeaderReferencePolicyInterceptor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-axis2-policy/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/policy/header/Axis2HeaderReferencePolicyProvider.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-axis2-policy/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/policy/header/Axis2HeaderServicePolicyInterceptor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-axis2-policy/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/policy/header/Axis2HeaderServicePolicyProvider.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-axis2-policy/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/policy/header/Axis2SOAPHeader.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-axis2-policy/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/policy/header/Axis2SOAPHeaderString.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-axis2-policy/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/policy/wspolicy/WSSecurityPolicyHandler.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-axis2-policy/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessor create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-axis2-policy/src/main/resources/META-INF/services/org.apache.tuscany.sca.policy.util.PolicyHandler create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-axis2-policy/src/main/resources/META-INF/services/org.apache.tuscany.sca.provider.PolicyProviderFactory create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-axis2-policy/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/policy/configuration/PolicyReadTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-axis2-policy/src/test/resources/org/apache/tuscany/sca/binding/ws/axis2/policy/configuration/mock_policies.xml create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-axis2/LICENSE create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-axis2/NOTICE create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-axis2/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-axis2/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/Axis2BindingInvoker.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-axis2/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/Axis2BindingProviderFactory.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-axis2/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/Axis2OneWayBindingInvoker.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-axis2/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/Axis2ReferenceBindingProvider.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-axis2/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/Axis2ServiceBindingProvider.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-axis2/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/Axis2ServiceClient.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-axis2/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/Axis2ServiceInMessageReceiver.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-axis2/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/Axis2ServiceInOutSyncMessageReceiver.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-axis2/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/Axis2ServiceProvider.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-axis2/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/Axis2ServiceServlet.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-axis2/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/AxisPolicyHelper.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-axis2/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/TuscanyAxisConfigurator.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-axis2/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/TuscanyDispatcher.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-axis2/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/TuscanyListenerManager.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-axis2/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/TuscanyListingAgent.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-axis2/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/WSBindingDefinitionsProvider.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-axis2/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/jms/AxisJMSException.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-axis2/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/jms/JMSConnectionFactory.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-axis2/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/jms/JMSListener.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-axis2/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/jms/JMSMessageReceiver.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-axis2/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/jms/JMSOutTransportInfo.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-axis2/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/jms/JMSSender.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-axis2/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/jms/README create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-axis2/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/policy/configurator/Axis2BindingBasicAuthenticationConfigurator.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-axis2/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/policy/configurator/Axis2BindingHeaderConfigurator.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-axis2/src/main/resources/META-INF/services/org.apache.tuscany.sca.provider.BindingProviderFactory create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-axis2/src/main/resources/META-INF/services/org.apache.tuscany.sca.provider.SCADefinitionsProvider create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-axis2/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/definitions.xml create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-axis2/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/engine/config/axis2.xml create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-axis2/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/engine/config/modules/modules.list create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-axis2/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/engine/config/modules/rampart-1.4.mar create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-axis2/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/engine/config/services/services.list create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-axis2/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/Axis2ReferenceTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-axis2/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/Axis2ServiceTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-axis2/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/Greeter.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-axis2/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/GreetingCallback.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-axis2/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/itests/Account.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-axis2/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/itests/AccountService.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-axis2/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/itests/Bar.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-axis2/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/itests/CustomerProfileData.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-axis2/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/itests/Echo.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-axis2/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/itests/EchoComponent.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-axis2/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/itests/EchoImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-axis2/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/itests/Foo.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-axis2/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/itests/HelloWorld.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-axis2/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/itests/HelloWorldComponent.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-axis2/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/itests/HelloWorldMultiService.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-axis2/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/itests/HelloWorldNoWSDLTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-axis2/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/itests/HelloWorldOM.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-axis2/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/itests/HelloWorldOM2.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-axis2/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/itests/HelloWorldOMComponent.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-axis2/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/itests/HelloWorldOMService.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-axis2/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/itests/HelloWorldOMTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-axis2/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/itests/HelloWorldService.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-axis2/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/itests/HelloWorldTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-axis2/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/itests/HelloWorldWSDLMergedTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-axis2/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/itests/QuestionMarkWSDLImportTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-axis2/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/itests/QuestionMarkWSDLIncludeTestCaseFIXME.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-axis2/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/itests/QuestionMarkWSDLTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-axis2/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/itests/UriPrecedenceTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-axis2/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/itests/endpoints/AbstractHelloWorldOMTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-axis2/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/itests/endpoints/DefaultMultiServiceTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-axis2/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/itests/endpoints/DefaultSingleServiceTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-axis2/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/itests/endpoints/WSDLExplicitURITestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-axis2/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/itests/endpoints/WSDLRelativeURITestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-axis2/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/itests/epr/HelloWorldTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-axis2/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/itests/mtom/FileTransferClient.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-axis2/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/itests/mtom/FileTransferMTOMTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-axis2/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/itests/mtom/FileTransferService.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-axis2/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/itests/mtom/FileTransferServiceClient.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-axis2/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/itests/mtom/FileTransferServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-axis2/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/itests/mtom/MyException.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-axis2/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/itests/mtom/MyExceptionAdapter.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-axis2/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/itests/mtom/MyExceptionImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-axis2/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/itests/policy/configparams/AbstractHelloWorldOMTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-axis2/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/itests/policy/configparams/ClientPWCBHandler.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-axis2/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/itests/policy/configparams/IntegrityPWCBHandler.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-axis2/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/itests/policy/configparams/ServerPWCBHandler.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-axis2/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/itests/policy/configparams/WSSecurityAuthenticationTestCaseFIXME.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-axis2/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/itests/policy/configparams/WSSecurityConfidentialityTestCaseFIXBouncyCastleIssue.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-axis2/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/itests/policy/configparams/WSSecurityIntegrityTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-axis2/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/itests/policy/mixed/AbstractHelloWorldOMTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-axis2/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/itests/policy/mixed/ClientPWCBHandler.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-axis2/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/itests/policy/mixed/IntegrityPWCBHandler.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-axis2/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/itests/policy/mixed/ServerPWCBHandler.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-axis2/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/itests/policy/mixed/WSSecurityMixedTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-axis2/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/itests/policy/wspolicy/AbstractHelloWorldOMTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-axis2/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/itests/policy/wspolicy/ClientPWCBHandler.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-axis2/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/itests/policy/wspolicy/IntegrityPWCBHandler.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-axis2/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/itests/policy/wspolicy/ServerPWCBHandler.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-axis2/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/itests/policy/wspolicy/WSSecurityAuthenticationTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-axis2/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/itests/policy/wspolicy/WSSecurityConfidentialityTestCaseFIXBouncyCastleIssue.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-axis2/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/itests/policy/wspolicy/WSSecurityIntegrityTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-axis2/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/itests/soap12/HelloWorldSOAP12TestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-axis2/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/itests/soap12/QuestionMarkWSDLTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-axis2/src/test/resources/META-INF/services/org.apache.tuscany.sca.policy.util.PolicyHandler create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-axis2/src/test/resources/org/apache/tuscany/sca/binding/ws/axis2/itests/HelloWorld.composite create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-axis2/src/test/resources/org/apache/tuscany/sca/binding/ws/axis2/itests/HelloWorldNoWSDL.composite create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-axis2/src/test/resources/org/apache/tuscany/sca/binding/ws/axis2/itests/customerdata.xsd create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-axis2/src/test/resources/org/apache/tuscany/sca/binding/ws/axis2/itests/customerdefs.xsd create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-axis2/src/test/resources/org/apache/tuscany/sca/binding/ws/axis2/itests/customerinfo.xsd create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-axis2/src/test/resources/org/apache/tuscany/sca/binding/ws/axis2/itests/endpoints/DefaultMultiService.composite create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-axis2/src/test/resources/org/apache/tuscany/sca/binding/ws/axis2/itests/endpoints/DefaultSingleService.composite create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-axis2/src/test/resources/org/apache/tuscany/sca/binding/ws/axis2/itests/endpoints/WSDLExplicitURI.composite create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-axis2/src/test/resources/org/apache/tuscany/sca/binding/ws/axis2/itests/endpoints/WSDLRelativeURI.composite create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-axis2/src/test/resources/org/apache/tuscany/sca/binding/ws/axis2/itests/endpoints/helloworld-om-relative-uri.wsdl create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-axis2/src/test/resources/org/apache/tuscany/sca/binding/ws/axis2/itests/epr/HelloWorld.composite create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-axis2/src/test/resources/org/apache/tuscany/sca/binding/ws/axis2/itests/helloworld-om-binding.wsdl create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-axis2/src/test/resources/org/apache/tuscany/sca/binding/ws/axis2/itests/helloworld-om-merged.composite create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-axis2/src/test/resources/org/apache/tuscany/sca/binding/ws/axis2/itests/helloworld-om-porttype.wsdl create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-axis2/src/test/resources/org/apache/tuscany/sca/binding/ws/axis2/itests/helloworld-om-uri.wsdl create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-axis2/src/test/resources/org/apache/tuscany/sca/binding/ws/axis2/itests/helloworld-om.composite create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-axis2/src/test/resources/org/apache/tuscany/sca/binding/ws/axis2/itests/helloworld-om.wsdl create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-axis2/src/test/resources/org/apache/tuscany/sca/binding/ws/axis2/itests/helloworld-prec.composite create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-axis2/src/test/resources/org/apache/tuscany/sca/binding/ws/axis2/itests/helloworld-prec.wsdl create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-axis2/src/test/resources/org/apache/tuscany/sca/binding/ws/axis2/itests/helloworld.wsdl create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-axis2/src/test/resources/org/apache/tuscany/sca/binding/ws/axis2/itests/mtom/filetransfer.wsdl create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-axis2/src/test/resources/org/apache/tuscany/sca/binding/ws/axis2/itests/mtom/filetransferservice.composite create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-axis2/src/test/resources/org/apache/tuscany/sca/binding/ws/axis2/itests/policy/configparams/WSSecurityAuthentication.composite create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-axis2/src/test/resources/org/apache/tuscany/sca/binding/ws/axis2/itests/policy/configparams/WSSecurityConfidentiality.composite create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-axis2/src/test/resources/org/apache/tuscany/sca/binding/ws/axis2/itests/policy/configparams/WSSecurityIntegrity.composite create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-axis2/src/test/resources/org/apache/tuscany/sca/binding/ws/axis2/itests/policy/configparams/definitions.xml create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-axis2/src/test/resources/org/apache/tuscany/sca/binding/ws/axis2/itests/policy/configparams/security.properties create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-axis2/src/test/resources/org/apache/tuscany/sca/binding/ws/axis2/itests/policy/configparams/tuscanyKeys.jks create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-axis2/src/test/resources/org/apache/tuscany/sca/binding/ws/axis2/itests/policy/intent/definitions.xml create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-axis2/src/test/resources/org/apache/tuscany/sca/binding/ws/axis2/itests/policy/mixed/WSSecurityMixed.composite create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-axis2/src/test/resources/org/apache/tuscany/sca/binding/ws/axis2/itests/policy/mixed/definitions.xml create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-axis2/src/test/resources/org/apache/tuscany/sca/binding/ws/axis2/itests/policy/mixed/security.properties create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-axis2/src/test/resources/org/apache/tuscany/sca/binding/ws/axis2/itests/policy/mixed/tuscanyKeys.jks create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-axis2/src/test/resources/org/apache/tuscany/sca/binding/ws/axis2/itests/policy/wspolicy/WSSecurityAuthentication.composite create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-axis2/src/test/resources/org/apache/tuscany/sca/binding/ws/axis2/itests/policy/wspolicy/WSSecurityConfidentiality.composite create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-axis2/src/test/resources/org/apache/tuscany/sca/binding/ws/axis2/itests/policy/wspolicy/WSSecurityIntegrity.composite create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-axis2/src/test/resources/org/apache/tuscany/sca/binding/ws/axis2/itests/policy/wspolicy/definitions.xml create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-axis2/src/test/resources/org/apache/tuscany/sca/binding/ws/axis2/itests/policy/wspolicy/tuscanyKeys.jks create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-axis2/src/test/resources/org/apache/tuscany/sca/binding/ws/axis2/itests/questionmark-import-nested.wsdl create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-axis2/src/test/resources/org/apache/tuscany/sca/binding/ws/axis2/itests/questionmark-import.wsdl create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-axis2/src/test/resources/org/apache/tuscany/sca/binding/ws/axis2/itests/questionmark-include.wsdl create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-axis2/src/test/resources/org/apache/tuscany/sca/binding/ws/axis2/itests/questionmark-wsdl-import.composite create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-axis2/src/test/resources/org/apache/tuscany/sca/binding/ws/axis2/itests/questionmark-wsdl-include.composite create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-axis2/src/test/resources/org/apache/tuscany/sca/binding/ws/axis2/itests/questionmark-wsdl.composite create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-axis2/src/test/resources/org/apache/tuscany/sca/binding/ws/axis2/itests/soap12/HelloWorldSOAP12.composite create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-axis2/src/test/resources/org/apache/tuscany/sca/binding/ws/axis2/itests/soap12/questionmark-wsdl.composite create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-wsdlgen/LICENSE create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-wsdlgen/NOTICE create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-wsdlgen/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-wsdlgen/src/main/java/org/apache/tuscany/sca/binding/ws/wsdlgen/BindingWSDLGenerator.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-wsdlgen/src/main/java/org/apache/tuscany/sca/binding/ws/wsdlgen/Interface2WSDLGenerator.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-wsdlgen/src/main/java/org/apache/tuscany/sca/binding/ws/wsdlgen/WSDLDefinitionGenerator.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-wsdlgen/src/main/java/org/apache/tuscany/sca/binding/ws/wsdlgen/WSDLGenerationException.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-wsdlgen/src/main/java/org/apache/tuscany/sca/binding/ws/wsdlgen/WSDLServiceGenerator.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-wsdlgen/src/main/resources/wsdlgen-validation-messages.properties create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-wsdlgen/src/test/java/org/apache/tuscany/sca/binding/ws/other/Other.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-wsdlgen/src/test/java/org/apache/tuscany/sca/binding/ws/other/package-info.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-wsdlgen/src/test/java/org/apache/tuscany/sca/binding/ws/wsdlgen/BindingWSDLGeneratorTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-wsdlgen/src/test/java/org/apache/tuscany/sca/binding/ws/wsdlgen/Interface2WSDLGeneratorTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-wsdlgen/src/test/java/org/apache/tuscany/sca/binding/ws/wsdlgen/TestException.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-wsdlgen/src/test/java/org/apache/tuscany/sca/binding/ws/wsdlgen/TestFault.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-wsdlgen/src/test/java/org/apache/tuscany/sca/binding/ws/wsdlgen/TestFaultBean.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-wsdlgen/src/test/java/org/apache/tuscany/sca/binding/ws/wsdlgen/TestJavaClass.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-wsdlgen/src/test/java/org/apache/tuscany/sca/binding/ws/wsdlgen/TestJavaInterface.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-xml/LICENSE create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-xml/NOTICE create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-xml/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-xml/src/main/java/org/apache/tuscany/sca/binding/ws/xml/BindingBuilderImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-xml/src/main/java/org/apache/tuscany/sca/binding/ws/xml/EndPointReferenceHelper.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-xml/src/main/java/org/apache/tuscany/sca/binding/ws/xml/WebServiceBindingProcessor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-xml/src/main/java/org/apache/tuscany/sca/binding/ws/xml/WebServiceConstants.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-xml/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessor create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-xml/src/main/resources/binding-wsxml-validation-messages.properties create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-xml/src/test/java/org/apache/tuscany/sca/binding/ws/xml/ReadTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-xml/src/test/java/org/apache/tuscany/sca/binding/ws/xml/ReadWriteAnyAttributeTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-xml/src/test/java/org/apache/tuscany/sca/binding/ws/xml/WriteTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-xml/src/test/resources/org/apache/tuscany/sca/binding/ws/xml/Calculator-bad-wsdlElement.composite create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-xml/src/test/resources/org/apache/tuscany/sca/binding/ws/xml/Calculator.composite create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-xml/src/test/resources/org/apache/tuscany/sca/binding/ws/xml/CalculatorImpl.componentType create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-xml/src/test/resources/org/apache/tuscany/sca/binding/ws/xml/PoliciedCalculator.composite create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-xml/src/test/resources/org/apache/tuscany/sca/binding/ws/xml/example.wsdl create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-xml/src/test/resources/org/apache/tuscany/sca/binding/ws/xml/invalid-stockquote.wsdl create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-xml/src/test/resources/org/apache/tuscany/sca/binding/ws/xml/ipo.xsd create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-xml/src/test/resources/org/apache/tuscany/sca/binding/ws/xml/stockquote.wsdl create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-xml/src/test/resources/org/apache/tuscany/sca/binding/ws/xml/test1.wsdl create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-xml/src/test/resources/org/apache/tuscany/sca/binding/ws/xml/test1.xsd create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-xml/src/test/resources/org/apache/tuscany/sca/binding/ws/xml/test2.wsdl create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws-xml/src/test/resources/org/apache/tuscany/sca/binding/ws/xml/unwrapped-stockquote.wsdl create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws/LICENSE create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws/NOTICE create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws/src/main/java/org/apache/tuscany/sca/binding/ws/DefaultWebServiceBindingFactory.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws/src/main/java/org/apache/tuscany/sca/binding/ws/WebServiceBinding.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws/src/main/java/org/apache/tuscany/sca/binding/ws/WebServiceBindingFactory.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws/src/main/java/org/apache/tuscany/sca/binding/ws/addressing/EndPointReference.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws/src/main/java/org/apache/tuscany/sca/binding/ws/impl/WebServiceBindingFactoryImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws/src/main/java/org/apache/tuscany/sca/binding/ws/impl/WebServiceBindingImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/binding-ws/src/main/resources/META-INF/services/org.apache.tuscany.sca.binding.ws.WebServiceBindingFactory create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-groovy/LICENSE create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-groovy/NOTICE create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-groovy/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-groovy/src/main/java/org/apache/tuscany/sca/contribution/groovy/GroovyArtifact.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-groovy/src/main/java/org/apache/tuscany/sca/contribution/groovy/GroovyArtifactProcessor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-groovy/src/main/java/org/apache/tuscany/sca/contribution/groovy/GroovyModelResolver.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-groovy/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.processor.URLArtifactProcessor create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-groovy/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.resolver.ModelResolver create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-groovy/src/test/java/org/apache/tuscany/sca/contribution/groovy/HelloWorld.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-groovy/src/test/java/org/apache/tuscany/sca/contribution/groovy/HelloWorldTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-groovy/src/test/resources/org/apache/tuscany/sca/contribution/groovy/HelloWorld.groovy create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-groovy/src/test/resources/org/apache/tuscany/sca/contribution/groovy/helloworld.composite create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-impl/LICENSE create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-impl/NOTICE create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-impl/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-impl/src/main/java/org/apache/tuscany/sca/contribution/processor/impl/FolderContributionProcessor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-impl/src/main/java/org/apache/tuscany/sca/contribution/processor/impl/JarContributionProcessor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-impl/src/main/java/org/apache/tuscany/sca/contribution/service/impl/ContributionRepositoryImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-impl/src/main/java/org/apache/tuscany/sca/contribution/service/impl/ContributionServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-impl/src/main/java/org/apache/tuscany/sca/contribution/service/impl/PackageTypeDescriberImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-impl/src/main/java/org/apache/tuscany/sca/contribution/service/util/FileHelper.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-impl/src/main/java/org/apache/tuscany/sca/contribution/service/util/IOHelper.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-impl/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.processor.PackageProcessor create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-impl/src/main/resources/contribution-impl-validation-messages.properties create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-impl/src/test/java/org/apache/tuscany/sca/contribution/processor/FolderContributionPackageProcessorTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-impl/src/test/java/org/apache/tuscany/sca/contribution/processor/JarContributionPackageProcessorTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-impl/src/test/java/org/apache/tuscany/sca/contribution/processor/URLartifactProcessorExtensionPointTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-impl/src/test/java/org/apache/tuscany/sca/contribution/resolver/DefaultModelResolverTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-impl/src/test/java/org/apache/tuscany/sca/contribution/resolver/ExtensibleModelResolverTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-impl/src/test/java/org/apache/tuscany/sca/contribution/resolver/TestModelResolver.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-impl/src/test/java/org/apache/tuscany/sca/contribution/service/impl/ContributionRepositoryTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-impl/src/test/java/org/apache/tuscany/sca/contribution/service/impl/PackageTypeDescriberImplTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-impl/src/test/resources/deployables/sample-calculator.jar create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-impl/src/test/resources/repository/sample-calculator.jar create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-impl/src/test/resources/repository3/contribution.zip create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-impl/src/test/resources/test.composite create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-impl/src/test/resources/test.ext create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-java/LICENSE create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-java/NOTICE create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-java/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-java/src/main/java/org/apache/tuscany/sca/contribution/java/ContributionClassLoaderProvider.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-java/src/main/java/org/apache/tuscany/sca/contribution/java/ContributionClassloaderProviderExtensionPoint.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-java/src/main/java/org/apache/tuscany/sca/contribution/java/DefaultContributionClassLoaderProvider.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-java/src/main/java/org/apache/tuscany/sca/contribution/java/DefaultContributionClassloaderProviderExtensionPoint.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-java/src/main/java/org/apache/tuscany/sca/contribution/java/DefaultJavaImportExportFactory.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-java/src/main/java/org/apache/tuscany/sca/contribution/java/JavaExport.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-java/src/main/java/org/apache/tuscany/sca/contribution/java/JavaImport.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-java/src/main/java/org/apache/tuscany/sca/contribution/java/JavaImportExportFactory.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-java/src/main/java/org/apache/tuscany/sca/contribution/java/impl/ClassLoaderModelResolver.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-java/src/main/java/org/apache/tuscany/sca/contribution/java/impl/ClassReferenceModelResolver.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-java/src/main/java/org/apache/tuscany/sca/contribution/java/impl/ContributionClassLoader.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-java/src/main/java/org/apache/tuscany/sca/contribution/java/impl/ContributionHelper.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-java/src/main/java/org/apache/tuscany/sca/contribution/java/impl/JavaExportImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-java/src/main/java/org/apache/tuscany/sca/contribution/java/impl/JavaExportModelResolver.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-java/src/main/java/org/apache/tuscany/sca/contribution/java/impl/JavaExportProcessor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-java/src/main/java/org/apache/tuscany/sca/contribution/java/impl/JavaImportExportFactoryImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-java/src/main/java/org/apache/tuscany/sca/contribution/java/impl/JavaImportExportListener.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-java/src/main/java/org/apache/tuscany/sca/contribution/java/impl/JavaImportImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-java/src/main/java/org/apache/tuscany/sca/contribution/java/impl/JavaImportModelResolver.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-java/src/main/java/org/apache/tuscany/sca/contribution/java/impl/JavaImportProcessor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-java/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.java.ContributionClassLoaderProvider create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-java/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.java.ContributionClassloaderProviderExtensionPoint create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-java/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.java.JavaImportExportFactory create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-java/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessor create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-java/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.resolver.ModelResolver create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-java/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.service.ContributionListener create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-java/src/main/resources/contribution-java-validation-messages.properties create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-java/src/test/java/org/apache/tuscany/sca/contribution/java/impl/ClassReferenceArtifactResolverTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-java/src/test/java/org/apache/tuscany/sca/contribution/java/impl/ContributionClassLoaderTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-java/src/test/java/org/apache/tuscany/sca/contribution/java/impl/JavaExportProcessorTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-java/src/test/java/org/apache/tuscany/sca/contribution/java/impl/JavaImportProcessorTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-java/src/test/resources/deployables/sample-calculator.jar create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-jee-impl/LICENSE create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-jee-impl/NOTICE create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-jee-impl/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-jee-impl/src/main/java/org/apache/tuscany/sca/contribution/jee/JEEDefinitionsProvider.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-jee-impl/src/main/java/org/apache/tuscany/sca/contribution/jee/JavaEEModuleHelper.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-jee-impl/src/main/java/org/apache/tuscany/sca/contribution/jee/impl/EARContributionClassLoader.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-jee-impl/src/main/java/org/apache/tuscany/sca/contribution/jee/impl/EARContributionClassLoaderProvider.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-jee-impl/src/main/java/org/apache/tuscany/sca/contribution/jee/impl/JavaEEIntrospectorImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-jee-impl/src/main/java/org/apache/tuscany/sca/contribution/jee/impl/WARContributionClassLoader.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-jee-impl/src/main/java/org/apache/tuscany/sca/contribution/jee/impl/WARContributionClassLoaderProvider.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-jee-impl/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.java.ContributionClassLoaderProvider create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-jee-impl/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.jee.JavaEEIntrospector create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-jee-impl/src/main/resources/META-INF/services/org.apache.tuscany.sca.provider.SCADefinitionsProvider create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-jee-impl/src/main/resources/org/apache/tuscany/sca/contribution/jee/definitions.xml create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-jee/LICENSE create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-jee/NOTICE create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-jee/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-jee/src/main/java/org/apache/tuscany/sca/contribution/jee/EJBImplementationGenerated.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-jee/src/main/java/org/apache/tuscany/sca/contribution/jee/EjbInfo.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-jee/src/main/java/org/apache/tuscany/sca/contribution/jee/EjbModuleInfo.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-jee/src/main/java/org/apache/tuscany/sca/contribution/jee/EjbModuleModelResolver.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-jee/src/main/java/org/apache/tuscany/sca/contribution/jee/EjbReferenceInfo.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-jee/src/main/java/org/apache/tuscany/sca/contribution/jee/EnvEntryInfo.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-jee/src/main/java/org/apache/tuscany/sca/contribution/jee/ExternalEarInfo.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-jee/src/main/java/org/apache/tuscany/sca/contribution/jee/JavaEEApplicationInfo.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-jee/src/main/java/org/apache/tuscany/sca/contribution/jee/JavaEEApplicationModelResolver.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-jee/src/main/java/org/apache/tuscany/sca/contribution/jee/JavaEEExtension.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-jee/src/main/java/org/apache/tuscany/sca/contribution/jee/JavaEEIntrospector.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-jee/src/main/java/org/apache/tuscany/sca/contribution/jee/JavaEEOptionalExtension.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-jee/src/main/java/org/apache/tuscany/sca/contribution/jee/JspReferenceTagInfo.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-jee/src/main/java/org/apache/tuscany/sca/contribution/jee/ModelObject.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-jee/src/main/java/org/apache/tuscany/sca/contribution/jee/ModelObjectModelResolver.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-jee/src/main/java/org/apache/tuscany/sca/contribution/jee/WebImplementationGenerated.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-jee/src/main/java/org/apache/tuscany/sca/contribution/jee/WebModuleInfo.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-jee/src/main/java/org/apache/tuscany/sca/contribution/jee/WebModuleModelResolver.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-jee/src/main/java/org/apache/tuscany/sca/contribution/jee/impl/EJBImplementationGeneratedImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-jee/src/main/java/org/apache/tuscany/sca/contribution/jee/impl/EJBImplementationGeneratedProcessor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-jee/src/main/java/org/apache/tuscany/sca/contribution/jee/impl/EarContributionProcessor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-jee/src/main/java/org/apache/tuscany/sca/contribution/jee/impl/EjbArchiveProcessor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-jee/src/main/java/org/apache/tuscany/sca/contribution/jee/impl/EjbModuleInfoImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-jee/src/main/java/org/apache/tuscany/sca/contribution/jee/impl/JavaEEApplicationInfoImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-jee/src/main/java/org/apache/tuscany/sca/contribution/jee/impl/JavaEEArchiveProcessor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-jee/src/main/java/org/apache/tuscany/sca/contribution/jee/impl/JavaEEExtensionImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-jee/src/main/java/org/apache/tuscany/sca/contribution/jee/impl/JavaEEOptionalExtensionImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-jee/src/main/java/org/apache/tuscany/sca/contribution/jee/impl/ModelObjectImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-jee/src/main/java/org/apache/tuscany/sca/contribution/jee/impl/WarContributionProcessor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-jee/src/main/java/org/apache/tuscany/sca/contribution/jee/impl/WebArchiveProcessor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-jee/src/main/java/org/apache/tuscany/sca/contribution/jee/impl/WebImplementationGeneratedImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-jee/src/main/java/org/apache/tuscany/sca/contribution/jee/impl/WebImplementationGeneratedProcessor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-jee/src/main/java/org/apache/tuscany/sca/contribution/jee/impl/WebModuleInfoImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-jee/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.jee.JavaEEExtension create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-jee/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.jee.JavaEEOptionalExtension create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-jee/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.processor.PackageProcessor create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-jee/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessor create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-jee/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.processor.URLArtifactProcessor create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-jee/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.resolver.ModelResolver create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-jee/src/test/java/org/apache/tuscany/sca/contribution/jee/EarContributionProcessorTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-jee/src/test/java/org/apache/tuscany/sca/contribution/jee/WarContributionProcessorTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-jee/src/test/resources/ejb-injection-sample.ear create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-jee/src/test/resources/ejb-injection-sample.jar create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-jee/src/test/resources/sample-web-app.war create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-namespace/LICENSE create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-namespace/NOTICE create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-namespace/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-namespace/src/main/java/org/apache/tuscany/sca/contribution/namespace/DefaultNamespaceImportExportFactory.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-namespace/src/main/java/org/apache/tuscany/sca/contribution/namespace/NamespaceExport.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-namespace/src/main/java/org/apache/tuscany/sca/contribution/namespace/NamespaceImport.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-namespace/src/main/java/org/apache/tuscany/sca/contribution/namespace/NamespaceImportExportFactory.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-namespace/src/main/java/org/apache/tuscany/sca/contribution/namespace/impl/NamespaceExportImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-namespace/src/main/java/org/apache/tuscany/sca/contribution/namespace/impl/NamespaceExportModelResolver.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-namespace/src/main/java/org/apache/tuscany/sca/contribution/namespace/impl/NamespaceExportProcessor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-namespace/src/main/java/org/apache/tuscany/sca/contribution/namespace/impl/NamespaceImportExportFactoryImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-namespace/src/main/java/org/apache/tuscany/sca/contribution/namespace/impl/NamespaceImportExportListener.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-namespace/src/main/java/org/apache/tuscany/sca/contribution/namespace/impl/NamespaceImportImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-namespace/src/main/java/org/apache/tuscany/sca/contribution/namespace/impl/NamespaceImportProcessor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-namespace/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.namespace.NamespaceImportExportFactory create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-namespace/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessor create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-namespace/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.service.ContributionListener create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-namespace/src/main/resources/contribution-namespace-validation-messages.properties create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-namespace/src/test/java/org/apache/tuscany/sca/contribution/namespace/impl/NamespaceExportProcessorTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-namespace/src/test/java/org/apache/tuscany/sca/contribution/namespace/impl/NamespaceImportProcessorTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-osgi/LICENSE create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-osgi/NOTICE create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-osgi/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-osgi/src/main/java/org/apache/tuscany/sca/contribution/osgi/BundleReference.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-osgi/src/main/java/org/apache/tuscany/sca/contribution/osgi/impl/OSGiBundleContributionProcessor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-osgi/src/main/java/org/apache/tuscany/sca/contribution/osgi/impl/OSGiBundleProcessor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-osgi/src/main/java/org/apache/tuscany/sca/contribution/osgi/impl/OSGiBundleReferenceModelResolver.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-osgi/src/main/java/org/apache/tuscany/sca/contribution/osgi/impl/OSGiClassReferenceModelResolver.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-osgi/src/main/java/org/apache/tuscany/sca/contribution/osgi/impl/OSGiImportExportListener.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-osgi/src/main/java/org/apache/tuscany/sca/contribution/osgi/impl/OSGiModelResolverImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-osgi/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.processor.PackageProcessor create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-osgi/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.resolver.ModelResolver create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-osgi/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.service.ContributionListener create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-resource/LICENSE create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-resource/NOTICE create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-resource/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-resource/src/main/java/org/apache/tuscany/sca/contribution/resource/ResourceExport.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-resource/src/main/java/org/apache/tuscany/sca/contribution/resource/ResourceImport.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-resource/src/main/java/org/apache/tuscany/sca/contribution/resource/ResourceImportExportFactory.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-resource/src/main/java/org/apache/tuscany/sca/contribution/resource/impl/ArtifactModelResolver.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-resource/src/main/java/org/apache/tuscany/sca/contribution/resource/impl/ResourceExportImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-resource/src/main/java/org/apache/tuscany/sca/contribution/resource/impl/ResourceExportModelResolver.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-resource/src/main/java/org/apache/tuscany/sca/contribution/resource/impl/ResourceExportProcessor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-resource/src/main/java/org/apache/tuscany/sca/contribution/resource/impl/ResourceImportExportFactoryImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-resource/src/main/java/org/apache/tuscany/sca/contribution/resource/impl/ResourceImportExportListener.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-resource/src/main/java/org/apache/tuscany/sca/contribution/resource/impl/ResourceImportImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-resource/src/main/java/org/apache/tuscany/sca/contribution/resource/impl/ResourceImportProcessor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-resource/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessor create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-resource/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.resolver.ModelResolver create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-resource/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.resource.ResourceImportExportFactory create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-resource/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.service.ContributionListener create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-resource/src/main/resources/contribution-resource-validation-messages.properties create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-resource/src/test/java/org/apache/tuscany/sca/contribution/resource/impl/ResourceExportProcessorTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-resource/src/test/java/org/apache/tuscany/sca/contribution/resource/impl/ResourceImportProcessorTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-xml/LICENSE create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-xml/NOTICE create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-xml/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-xml/src/main/java/org/apache/tuscany/sca/contribution/processor/xml/AnyAttributeProcessor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-xml/src/main/java/org/apache/tuscany/sca/contribution/processor/xml/AnyElementProcessor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-xml/src/main/java/org/apache/tuscany/sca/contribution/processor/xml/XMLDocumentStreamReader.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-xml/src/main/java/org/apache/tuscany/sca/contribution/processor/xml/XMLEventsStreamReader.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-xml/src/main/java/org/apache/tuscany/sca/contribution/processor/xml/XMLFragmentStreamReader.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-xml/src/main/java/org/apache/tuscany/sca/contribution/xml/ContributionGeneratedMetadataDocumentProcessor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-xml/src/main/java/org/apache/tuscany/sca/contribution/xml/ContributionMetadataDocumentProcessor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-xml/src/main/java/org/apache/tuscany/sca/contribution/xml/ContributionMetadataProcessor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-xml/src/main/java/org/apache/tuscany/sca/contribution/xml/ContributionModelResolver.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-xml/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessor create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-xml/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.processor.StAXAttributeProcessor create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-xml/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.processor.URLArtifactProcessor create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-xml/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.resolver.ModelResolver create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-xml/src/main/resources/contribution-xml-validation-messages.properties create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution-xml/src/test/java/org/apache/tuscany/sca/contribution/xml/ContributionMetadataProcessorTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution/LICENSE create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution/NOTICE create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/Artifact.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/Constants.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/ContentType.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/Contribution.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/ContributionFactory.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/ContributionMetadata.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/DefaultContributionFactory.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/DefaultExport.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/DefaultImport.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/DefaultModelFactoryExtensionPoint.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/DeployedArtifact.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/Export.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/Import.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/ModelFactoryExtensionPoint.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/PackageType.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/impl/ArtifactImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/impl/ContributionFactoryImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/impl/ContributionImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/impl/ContributionMetadataImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/impl/DefaultExportImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/impl/DefaultImportImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/processor/ArtifactProcessor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/processor/ArtifactProcessorExtensionPoint.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/processor/BaseStAXArtifactProcessor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/processor/DefaultArtifactProcessorExtensionPoint.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/processor/DefaultPackageProcessorExtensionPoint.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/processor/DefaultStAXArtifactProcessorExtensionPoint.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/processor/DefaultStAXAttributeProcessorExtensionPoint.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/processor/DefaultURLArtifactProcessorExtensionPoint.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/processor/DefaultValidatingXMLInputFactory.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/processor/DefaultValidationSchemaExtensionPoint.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/processor/ExtensiblePackageProcessor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/processor/ExtensibleStAXArtifactProcessor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/processor/ExtensibleStAXAttributeProcessor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/processor/ExtensibleURLArtifactProcessor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/processor/PackageProcessor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/processor/PackageProcessorExtensionPoint.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/processor/StAXArtifactProcessor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/processor/StAXArtifactProcessorExtensionPoint.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/processor/StAXAttributeProcessor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/processor/StAXAttributeProcessorExtensionPoint.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/processor/TuscanyNamespaceContext.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/processor/TuscanyXMLStreamReader.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/processor/URLArtifactProcessor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/processor/URLArtifactProcessorExtensionPoint.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/processor/ValidatingXMLInputFactory.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/processor/ValidatingXMLStreamReader.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/processor/ValidationSchemaExtensionPoint.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/resolver/ClassReference.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/resolver/DefaultDelegatingModelResolver.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/resolver/DefaultImportAllModelResolver.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/resolver/DefaultImportModelResolver.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/resolver/DefaultModelResolver.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/resolver/DefaultModelResolverExtensionPoint.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/resolver/ExtensibleModelResolver.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/resolver/ModelResolver.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/resolver/ModelResolverExtensionPoint.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/resolver/ResolverExtension.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/resolver/ResourceReference.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/scanner/ContributionScanner.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/scanner/ContributionScannerExtensionPoint.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/scanner/DefaultContributionScannerExtensionPoint.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/service/ContributionException.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/service/ContributionListener.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/service/ContributionListenerExtensionPoint.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/service/ContributionReadException.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/service/ContributionRepository.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/service/ContributionResolveException.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/service/ContributionRuntimeException.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/service/ContributionService.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/service/ContributionWriteException.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/service/DefaultContributionListenerExtensionPoint.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/service/ExtensibleContributionListener.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/service/TypeDescriber.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/service/UnrecognizedElementException.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/service/UnsupportedContentTypeException.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/service/UnsupportedPackageTypeException.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.ContributionFactory create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.ModelFactoryExtensionPoint create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.processor.ContributionPostProcessorExtensionPoint create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.processor.PackageProcessorExtensionPoint create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessorExtensionPoint create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.processor.StAXAttributeProcessorExtensionPoint create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.processor.URLArtifactProcessorExtensionPoint create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.processor.ValidationSchemaExtensionPoint create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.resolver.ModelResolverExtensionPoint create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.scanner.ContributionScannerExtensionPoint create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.service.ContributionListenerExtensionPoint create mode 100644 tags/java/sca/1.5.1-RC4/modules/contribution/src/main/resources/contribution-validation-messages.properties create mode 100644 tags/java/sca/1.5.1-RC4/modules/core-databinding/LICENSE create mode 100644 tags/java/sca/1.5.1-RC4/modules/core-databinding/NOTICE create mode 100644 tags/java/sca/1.5.1-RC4/modules/core-databinding/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/modules/core-databinding/src/main/java/org/apache/tuscany/sca/core/databinding/module/DataBindingModuleActivator.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core-databinding/src/main/java/org/apache/tuscany/sca/core/databinding/processor/DataBindingJavaInterfaceProcessor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core-databinding/src/main/java/org/apache/tuscany/sca/core/databinding/processor/WrapperJavaInterfaceProcessor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core-databinding/src/main/java/org/apache/tuscany/sca/core/databinding/transformers/Array2ArrayTransformer.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core-databinding/src/main/java/org/apache/tuscany/sca/core/databinding/transformers/CallableReference2XMLStreamReader.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core-databinding/src/main/java/org/apache/tuscany/sca/core/databinding/transformers/CallableReferenceDataBinding.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core-databinding/src/main/java/org/apache/tuscany/sca/core/databinding/transformers/CallableReferenceTypeHelper.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core-databinding/src/main/java/org/apache/tuscany/sca/core/databinding/transformers/CallableReferenceXMLAdapter.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core-databinding/src/main/java/org/apache/tuscany/sca/core/databinding/transformers/Exception2ExceptionTransformer.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core-databinding/src/main/java/org/apache/tuscany/sca/core/databinding/transformers/Input2InputTransformer.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core-databinding/src/main/java/org/apache/tuscany/sca/core/databinding/transformers/OMElementXMLAdapter.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core-databinding/src/main/java/org/apache/tuscany/sca/core/databinding/transformers/Output2OutputTransformer.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core-databinding/src/main/java/org/apache/tuscany/sca/core/databinding/transformers/XMLStreamReader2CallableReference.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core-databinding/src/main/java/org/apache/tuscany/sca/core/databinding/wire/DataBindingRuntimeWireProcessor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core-databinding/src/main/java/org/apache/tuscany/sca/core/databinding/wire/DataTransformationInterceptor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core-databinding/src/main/java/org/apache/tuscany/sca/core/databinding/wire/PassByValueInterceptor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core-databinding/src/main/resources/META-INF/services/org.apache.tuscany.sca.core.ModuleActivator create mode 100644 tags/java/sca/1.5.1-RC4/modules/core-databinding/src/test/java/org/apache/tuscany/sca/core/databinding/processor/DataBindingJavaInterfaceProcessorTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core-databinding/src/test/java/org/apache/tuscany/sca/core/databinding/transformers/IDLTransformerTestCaseFIXME.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core-spi/LICENSE create mode 100644 tags/java/sca/1.5.1-RC4/modules/core-spi/NOTICE create mode 100644 tags/java/sca/1.5.1-RC4/modules/core-spi/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/modules/core-spi/src/doc/Context Model.emx create mode 100644 tags/java/sca/1.5.1-RC4/modules/core-spi/src/main/java/org/apache/tuscany/sca/context/ComponentContextFactory.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core-spi/src/main/java/org/apache/tuscany/sca/context/ContextFactoryExtensionPoint.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core-spi/src/main/java/org/apache/tuscany/sca/context/DefaultContextFactoryExtensionPoint.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core-spi/src/main/java/org/apache/tuscany/sca/context/PropertyValueFactory.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core-spi/src/main/java/org/apache/tuscany/sca/context/RequestContextFactory.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core-spi/src/main/java/org/apache/tuscany/sca/endpointresolver/DefaultEndpointResolverFactoryExtensionPoint.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core-spi/src/main/java/org/apache/tuscany/sca/endpointresolver/EndpointResolver.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core-spi/src/main/java/org/apache/tuscany/sca/endpointresolver/EndpointResolverFactory.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core-spi/src/main/java/org/apache/tuscany/sca/endpointresolver/EndpointResolverFactoryExtensionPoint.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core-spi/src/main/java/org/apache/tuscany/sca/event/Event.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core-spi/src/main/java/org/apache/tuscany/sca/event/EventFilter.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core-spi/src/main/java/org/apache/tuscany/sca/event/EventPublisher.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core-spi/src/main/java/org/apache/tuscany/sca/event/RuntimeEventListener.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core-spi/src/main/java/org/apache/tuscany/sca/event/TrueFilter.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core-spi/src/main/java/org/apache/tuscany/sca/invocation/DataExchangeSemantics.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core-spi/src/main/java/org/apache/tuscany/sca/invocation/Interceptor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core-spi/src/main/java/org/apache/tuscany/sca/invocation/InvocationChain.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core-spi/src/main/java/org/apache/tuscany/sca/invocation/Invoker.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core-spi/src/main/java/org/apache/tuscany/sca/invocation/Message.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core-spi/src/main/java/org/apache/tuscany/sca/invocation/MessageFactory.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core-spi/src/main/java/org/apache/tuscany/sca/invocation/Phase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core-spi/src/main/java/org/apache/tuscany/sca/management/ManagementService.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core-spi/src/main/java/org/apache/tuscany/sca/provider/BindingProviderFactory.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core-spi/src/main/java/org/apache/tuscany/sca/provider/DefaultProviderFactoryExtensionPoint.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core-spi/src/main/java/org/apache/tuscany/sca/provider/DefaultSCADefinitionsProviderExtensionPoint.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core-spi/src/main/java/org/apache/tuscany/sca/provider/ImplementationProvider.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core-spi/src/main/java/org/apache/tuscany/sca/provider/ImplementationProviderFactory.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core-spi/src/main/java/org/apache/tuscany/sca/provider/OperationSelectorProvider.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core-spi/src/main/java/org/apache/tuscany/sca/provider/OperationSelectorProviderFactory.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core-spi/src/main/java/org/apache/tuscany/sca/provider/PolicyImplementor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core-spi/src/main/java/org/apache/tuscany/sca/provider/PolicyProvider.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core-spi/src/main/java/org/apache/tuscany/sca/provider/PolicyProviderFactory.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core-spi/src/main/java/org/apache/tuscany/sca/provider/ProviderFactory.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core-spi/src/main/java/org/apache/tuscany/sca/provider/ProviderFactoryExtensionPoint.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core-spi/src/main/java/org/apache/tuscany/sca/provider/ReferenceBindingProvider.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core-spi/src/main/java/org/apache/tuscany/sca/provider/ReferenceBindingProviderRRB.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core-spi/src/main/java/org/apache/tuscany/sca/provider/SCADefinitionsProvider.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core-spi/src/main/java/org/apache/tuscany/sca/provider/SCADefinitionsProviderException.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core-spi/src/main/java/org/apache/tuscany/sca/provider/SCADefinitionsProviderExtensionPoint.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core-spi/src/main/java/org/apache/tuscany/sca/provider/ServiceBindingProvider.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core-spi/src/main/java/org/apache/tuscany/sca/provider/ServiceBindingProviderRRB.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core-spi/src/main/java/org/apache/tuscany/sca/provider/WireFormatProvider.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core-spi/src/main/java/org/apache/tuscany/sca/provider/WireFormatProviderFactory.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core-spi/src/main/java/org/apache/tuscany/sca/runtime/DefaultWireProcessorExtensionPoint.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core-spi/src/main/java/org/apache/tuscany/sca/runtime/EndpointReference.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core-spi/src/main/java/org/apache/tuscany/sca/runtime/ReferenceParameters.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core-spi/src/main/java/org/apache/tuscany/sca/runtime/RuntimeComponent.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core-spi/src/main/java/org/apache/tuscany/sca/runtime/RuntimeComponentContext.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core-spi/src/main/java/org/apache/tuscany/sca/runtime/RuntimeComponentReference.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core-spi/src/main/java/org/apache/tuscany/sca/runtime/RuntimeComponentService.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core-spi/src/main/java/org/apache/tuscany/sca/runtime/RuntimeWire.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core-spi/src/main/java/org/apache/tuscany/sca/runtime/RuntimeWireProcessor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core-spi/src/main/java/org/apache/tuscany/sca/runtime/RuntimeWireProcessorExtensionPoint.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core-spi/src/main/java/org/apache/tuscany/sca/store/DuplicateRecordException.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core-spi/src/main/java/org/apache/tuscany/sca/store/RecoveryListener.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core-spi/src/main/java/org/apache/tuscany/sca/store/Store.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core-spi/src/main/java/org/apache/tuscany/sca/store/StoreException.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core-spi/src/main/java/org/apache/tuscany/sca/store/StoreExpirationEvent.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core-spi/src/main/java/org/apache/tuscany/sca/store/StoreMonitor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core-spi/src/main/java/org/apache/tuscany/sca/store/StoreReadException.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core-spi/src/main/java/org/apache/tuscany/sca/store/StoreWriteException.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core-spi/src/main/java/org/apache/tuscany/sca/work/NotificationListener.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core-spi/src/main/java/org/apache/tuscany/sca/work/WorkScheduler.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core-spi/src/main/java/org/apache/tuscany/sca/work/WorkSchedulerException.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core-spi/src/main/resources/META-INF/services/org.apache.tuscany.sca.context.ContextFactoryExtensionPoint create mode 100644 tags/java/sca/1.5.1-RC4/modules/core-spi/src/main/resources/META-INF/services/org.apache.tuscany.sca.endpointresolver.EndpointResolverFactoryExtensionPoint create mode 100644 tags/java/sca/1.5.1-RC4/modules/core-spi/src/main/resources/META-INF/services/org.apache.tuscany.sca.provider.ProviderFactoryExtensionPoint create mode 100644 tags/java/sca/1.5.1-RC4/modules/core-spi/src/main/resources/META-INF/services/org.apache.tuscany.sca.provider.SCADefinitionsProviderExtensionPoint create mode 100644 tags/java/sca/1.5.1-RC4/modules/core-spi/src/main/resources/META-INF/services/org.apache.tuscany.sca.runtime.RuntimeWireProcessorExtensionPoint create mode 100644 tags/java/sca/1.5.1-RC4/modules/core-spi/src/test/java/org/apache/tuscany/sca/context/DefaultContextFactoryExtensionPointTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core-spi/src/test/java/org/apache/tuscany/sca/event/TrueFilterTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core/LICENSE create mode 100644 tags/java/sca/1.5.1-RC4/modules/core/NOTICE create mode 100644 tags/java/sca/1.5.1-RC4/modules/core/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/modules/core/src/main/java/org/apache/tuscany/sca/core/assembly/ActivationException.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core/src/main/java/org/apache/tuscany/sca/core/assembly/CompositeActivator.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core/src/main/java/org/apache/tuscany/sca/core/assembly/CompositeActivatorImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core/src/main/java/org/apache/tuscany/sca/core/assembly/EndpointReferenceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core/src/main/java/org/apache/tuscany/sca/core/assembly/EndpointWireImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core/src/main/java/org/apache/tuscany/sca/core/assembly/ReferenceParameterProcessor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core/src/main/java/org/apache/tuscany/sca/core/assembly/ReferenceParametersImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core/src/main/java/org/apache/tuscany/sca/core/assembly/RuntimeAssemblyFactory.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core/src/main/java/org/apache/tuscany/sca/core/assembly/RuntimeComponentImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core/src/main/java/org/apache/tuscany/sca/core/assembly/RuntimeComponentReferenceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core/src/main/java/org/apache/tuscany/sca/core/assembly/RuntimeComponentServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core/src/main/java/org/apache/tuscany/sca/core/assembly/RuntimeWireImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core/src/main/java/org/apache/tuscany/sca/core/context/CallableReferenceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core/src/main/java/org/apache/tuscany/sca/core/context/ComponentContextHelper.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core/src/main/java/org/apache/tuscany/sca/core/context/ComponentContextImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core/src/main/java/org/apache/tuscany/sca/core/context/DefaultComponentContextFactory.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core/src/main/java/org/apache/tuscany/sca/core/context/InstanceWrapper.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core/src/main/java/org/apache/tuscany/sca/core/context/RequestContextImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core/src/main/java/org/apache/tuscany/sca/core/context/ServiceReferenceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core/src/main/java/org/apache/tuscany/sca/core/conversation/ConversationListener.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core/src/main/java/org/apache/tuscany/sca/core/conversation/ConversationManager.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core/src/main/java/org/apache/tuscany/sca/core/conversation/ConversationManagerImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core/src/main/java/org/apache/tuscany/sca/core/conversation/ConversationState.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core/src/main/java/org/apache/tuscany/sca/core/conversation/ExtendedConversation.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core/src/main/java/org/apache/tuscany/sca/core/conversation/ExtendedConversationImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core/src/main/java/org/apache/tuscany/sca/core/event/BaseEventPublisher.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core/src/main/java/org/apache/tuscany/sca/core/event/ComponentStart.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core/src/main/java/org/apache/tuscany/sca/core/event/ComponentStop.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core/src/main/java/org/apache/tuscany/sca/core/event/ConversationEnd.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core/src/main/java/org/apache/tuscany/sca/core/event/ConversationStart.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core/src/main/java/org/apache/tuscany/sca/core/event/HttpSessionEnd.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core/src/main/java/org/apache/tuscany/sca/core/event/HttpSessionStart.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core/src/main/java/org/apache/tuscany/sca/core/event/RequestEnd.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core/src/main/java/org/apache/tuscany/sca/core/event/RequestStart.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core/src/main/java/org/apache/tuscany/sca/core/factory/ObjectCreationException.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core/src/main/java/org/apache/tuscany/sca/core/factory/ObjectFactory.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core/src/main/java/org/apache/tuscany/sca/core/invocation/CallableReferenceObjectFactory.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core/src/main/java/org/apache/tuscany/sca/core/invocation/CallbackInterfaceInterceptor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core/src/main/java/org/apache/tuscany/sca/core/invocation/CallbackReferenceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core/src/main/java/org/apache/tuscany/sca/core/invocation/CallbackReferenceObjectFactory.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core/src/main/java/org/apache/tuscany/sca/core/invocation/CallbackWireObjectFactory.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core/src/main/java/org/apache/tuscany/sca/core/invocation/CglibProxyFactory.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core/src/main/java/org/apache/tuscany/sca/core/invocation/DefaultProxyFactoryExtensionPoint.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core/src/main/java/org/apache/tuscany/sca/core/invocation/ExtensibleProxyFactory.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core/src/main/java/org/apache/tuscany/sca/core/invocation/ExtensibleWireProcessor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core/src/main/java/org/apache/tuscany/sca/core/invocation/InvocationChainImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core/src/main/java/org/apache/tuscany/sca/core/invocation/JDKCallbackInvocationHandler.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core/src/main/java/org/apache/tuscany/sca/core/invocation/JDKInvocationHandler.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core/src/main/java/org/apache/tuscany/sca/core/invocation/JDKProxyFactory.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core/src/main/java/org/apache/tuscany/sca/core/invocation/MessageFactoryImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core/src/main/java/org/apache/tuscany/sca/core/invocation/MessageImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core/src/main/java/org/apache/tuscany/sca/core/invocation/NoMethodForOperationException.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core/src/main/java/org/apache/tuscany/sca/core/invocation/NonBlockingInterceptor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core/src/main/java/org/apache/tuscany/sca/core/invocation/PhaseManager.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core/src/main/java/org/apache/tuscany/sca/core/invocation/PhaseSorter.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core/src/main/java/org/apache/tuscany/sca/core/invocation/ProxyCreationException.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core/src/main/java/org/apache/tuscany/sca/core/invocation/ProxyFactory.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core/src/main/java/org/apache/tuscany/sca/core/invocation/ProxyFactoryExtensionPoint.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core/src/main/java/org/apache/tuscany/sca/core/invocation/RuntimeWireInvoker.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core/src/main/java/org/apache/tuscany/sca/core/invocation/SCAProxy.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core/src/main/java/org/apache/tuscany/sca/core/invocation/TargetInvocationException.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core/src/main/java/org/apache/tuscany/sca/core/invocation/ThreadMessageContext.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core/src/main/java/org/apache/tuscany/sca/core/invocation/WireObjectFactory.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core/src/main/java/org/apache/tuscany/sca/core/scope/AbstractScopeContainer.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core/src/main/java/org/apache/tuscany/sca/core/scope/CompositeScopeContainer.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core/src/main/java/org/apache/tuscany/sca/core/scope/CompositeScopeContainerFactory.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core/src/main/java/org/apache/tuscany/sca/core/scope/ConversationalScopeContainer.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core/src/main/java/org/apache/tuscany/sca/core/scope/ConversationalScopeContainerFactory.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core/src/main/java/org/apache/tuscany/sca/core/scope/HttpSessionScopeContainer.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core/src/main/java/org/apache/tuscany/sca/core/scope/HttpSessionScopeContainerFactory.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core/src/main/java/org/apache/tuscany/sca/core/scope/RequestScopeContainer.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core/src/main/java/org/apache/tuscany/sca/core/scope/RequestScopeContainerFactory.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core/src/main/java/org/apache/tuscany/sca/core/scope/Scope.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core/src/main/java/org/apache/tuscany/sca/core/scope/ScopeContainer.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core/src/main/java/org/apache/tuscany/sca/core/scope/ScopeContainerFactory.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core/src/main/java/org/apache/tuscany/sca/core/scope/ScopeRegistry.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core/src/main/java/org/apache/tuscany/sca/core/scope/ScopeRegistryImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core/src/main/java/org/apache/tuscany/sca/core/scope/ScopedImplementationProvider.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core/src/main/java/org/apache/tuscany/sca/core/scope/ScopedRuntimeComponent.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core/src/main/java/org/apache/tuscany/sca/core/scope/StatelessScopeContainer.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core/src/main/java/org/apache/tuscany/sca/core/scope/StatelessScopeContainerFactory.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core/src/main/java/org/apache/tuscany/sca/core/scope/TargetDestructionException.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core/src/main/java/org/apache/tuscany/sca/core/scope/TargetInitializationException.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core/src/main/java/org/apache/tuscany/sca/core/scope/TargetNotFoundException.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core/src/main/java/org/apache/tuscany/sca/core/scope/TargetResolutionException.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core/src/main/java/org/apache/tuscany/sca/core/store/MemoryStore.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core/src/main/java/org/apache/tuscany/sca/core/work/DefaultWorkScheduler.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core/src/main/java/org/apache/tuscany/sca/core/work/ThreadPoolWorkManager.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core/src/main/java/org/apache/tuscany/sca/core/work/Work.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core/src/main/java/org/apache/tuscany/sca/core/work/WorkEvent.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core/src/main/java/org/apache/tuscany/sca/core/work/WorkItem.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core/src/main/java/org/apache/tuscany/sca/core/work/WorkListener.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessor create mode 100644 tags/java/sca/1.5.1-RC4/modules/core/src/main/resources/META-INF/services/org.apache.tuscany.sca.core.conversation.ConversationManager create mode 100644 tags/java/sca/1.5.1-RC4/modules/core/src/main/resources/META-INF/services/org.apache.tuscany.sca.core.invocation.ProxyFactoryExtensionPoint create mode 100644 tags/java/sca/1.5.1-RC4/modules/core/src/main/resources/META-INF/services/org.apache.tuscany.sca.invocation.MessageFactory create mode 100644 tags/java/sca/1.5.1-RC4/modules/core/src/main/resources/META-INF/services/org.apache.tuscany.sca.work.WorkScheduler create mode 100644 tags/java/sca/1.5.1-RC4/modules/core/src/test/java/org/apache/tuscany/sca/core/DefaultExtensionPointRegistryTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core/src/test/java/org/apache/tuscany/sca/core/event/BaseEventPublisherTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core/src/test/java/org/apache/tuscany/sca/core/event/EventTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core/src/test/java/org/apache/tuscany/sca/core/invocation/PhaseManagerTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core/src/test/java/org/apache/tuscany/sca/core/invocation/PhaseSorterTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core/src/test/java/org/apache/tuscany/sca/core/scope/AbstractScopeContainerTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core/src/test/java/org/apache/tuscany/sca/core/store/MemoryStoreTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core/src/test/java/org/apache/tuscany/sca/core/wire/CallbackInterfaceInterceptorTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core/src/test/java/org/apache/tuscany/sca/core/wire/InvocationChainImplTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core/src/test/java/org/apache/tuscany/sca/core/wire/NonBlockingInterceptorTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core/src/test/java/org/apache/tuscany/sca/core/work/FailingWork.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core/src/test/java/org/apache/tuscany/sca/core/work/JSR237MyFailingRunnable.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core/src/test/java/org/apache/tuscany/sca/core/work/JSR237MyRunnable.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core/src/test/java/org/apache/tuscany/sca/core/work/JSR237MyRunnerListener.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core/src/test/java/org/apache/tuscany/sca/core/work/Jsr237WorkSchedulerTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core/src/test/java/org/apache/tuscany/sca/core/work/TestWorkListener.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core/src/test/java/org/apache/tuscany/sca/core/work/ThreadPoolWorkManagerTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core/src/test/java/org/apache/tuscany/sca/core/work/TimeDelayWork.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core/src/test/java/org/apache/tuscany/sca/scope/ScopeTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/core/src/test/resources/META-INF/services/org.apache.tuscany.sca.invocation.PhaseTest create mode 100644 tags/java/sca/1.5.1-RC4/modules/data-api/LICENSE create mode 100644 tags/java/sca/1.5.1-RC4/modules/data-api/NOTICE create mode 100644 tags/java/sca/1.5.1-RC4/modules/data-api/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/modules/data-api/src/main/java/org/apache/tuscany/sca/data/collection/Collection.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/data-api/src/main/java/org/apache/tuscany/sca/data/collection/Entry.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/data-api/src/main/java/org/apache/tuscany/sca/data/collection/Item.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/data-api/src/main/java/org/apache/tuscany/sca/data/collection/ItemCollection.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/data-api/src/main/java/org/apache/tuscany/sca/data/collection/LocalItemCollection.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/data-api/src/main/java/org/apache/tuscany/sca/data/collection/NotFoundException.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/data-api/src/main/java/org/apache/tuscany/sca/implementation/data/collection/Collection.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/data-api/src/main/java/org/apache/tuscany/sca/implementation/data/collection/Entry.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/data-api/src/main/java/org/apache/tuscany/sca/implementation/data/collection/Item.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/data-api/src/main/java/org/apache/tuscany/sca/implementation/data/collection/ItemCollection.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/data-api/src/main/java/org/apache/tuscany/sca/implementation/data/collection/LocalItemCollection.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/data-api/src/main/java/org/apache/tuscany/sca/implementation/data/collection/NotFoundException.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-axiom/LICENSE create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-axiom/NOTICE create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-axiom/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-axiom/src/main/java/org/apache/tuscany/sca/databinding/axiom/AxiomDataBinding.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-axiom/src/main/java/org/apache/tuscany/sca/databinding/axiom/AxiomHelper.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-axiom/src/main/java/org/apache/tuscany/sca/databinding/axiom/Exception2OMElement.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-axiom/src/main/java/org/apache/tuscany/sca/databinding/axiom/Externalizable2OMElement.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-axiom/src/main/java/org/apache/tuscany/sca/databinding/axiom/OMElement2Exception.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-axiom/src/main/java/org/apache/tuscany/sca/databinding/axiom/OMElement2Externalizable.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-axiom/src/main/java/org/apache/tuscany/sca/databinding/axiom/OMElement2Object.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-axiom/src/main/java/org/apache/tuscany/sca/databinding/axiom/OMElement2String.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-axiom/src/main/java/org/apache/tuscany/sca/databinding/axiom/OMElement2XMLStreamReader.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-axiom/src/main/java/org/apache/tuscany/sca/databinding/axiom/OMElementWrapperHandler.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-axiom/src/main/java/org/apache/tuscany/sca/databinding/axiom/Object2OMElement.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-axiom/src/main/java/org/apache/tuscany/sca/databinding/axiom/String2OMElement.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-axiom/src/main/java/org/apache/tuscany/sca/databinding/axiom/XMLStreamReader2OMElement.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-axiom/src/main/resources/META-INF/services/org.apache.tuscany.sca.databinding.DataBinding create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-axiom/src/main/resources/META-INF/services/org.apache.tuscany.sca.databinding.PullTransformer create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-axiom/src/test/java/org/apache/tuscany/sca/databinding/axiom/OMElementTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-axiom/src/test/resources/ipo.xml create mode 100755 tags/java/sca/1.5.1-RC4/modules/databinding-axiom/src/test/resources/ipo.xsd create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-axiom/src/test/resources/order.wsdl create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-fastinfoset/LICENSE create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-fastinfoset/NOTICE create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-fastinfoset/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-fastinfoset/src/main/java/org/apache/tuscany/sca/databinding/fastinfoset/FastInfoset2Node.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-fastinfoset/src/main/java/org/apache/tuscany/sca/databinding/fastinfoset/FastInfoset2SAX.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-fastinfoset/src/main/java/org/apache/tuscany/sca/databinding/fastinfoset/FastInfoset2XMLStreamReader.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-fastinfoset/src/main/java/org/apache/tuscany/sca/databinding/fastinfoset/Node2FastInfoset.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-fastinfoset/src/main/java/org/apache/tuscany/sca/databinding/fastinfoset/XMLInputStream2FastInfoset.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-fastinfoset/src/main/java/org/apache/tuscany/sca/databinding/fastinfoset/XMLStreamReader2FastInfoset.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-fastinfoset/src/main/resources/META-INF/services/org.apache.tuscany.sca.databinding.PullTransformer create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-fastinfoset/src/main/resources/META-INF/services/org.apache.tuscany.sca.databinding.PushTransformer create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-fastinfoset/src/test/java/org/apache/tuscany/sca/databinding/fastinfoset/FastInfosetTransformerTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-fastinfoset/src/test/resources/ipo.xsd create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-jaxb-axiom/LICENSE create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-jaxb-axiom/NOTICE create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-jaxb-axiom/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-jaxb-axiom/src/main/java/org/apache/tuscany/sca/databinding/jaxb/axiom/AxiomHelper.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-jaxb-axiom/src/main/java/org/apache/tuscany/sca/databinding/jaxb/axiom/JAXB2OMElement.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-jaxb-axiom/src/main/java/org/apache/tuscany/sca/databinding/jaxb/axiom/JAXBCustomBuilder.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-jaxb-axiom/src/main/java/org/apache/tuscany/sca/databinding/jaxb/axiom/JAXBDataSource.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-jaxb-axiom/src/main/java/org/apache/tuscany/sca/databinding/jaxb/axiom/OMElement2JAXB.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-jaxb-axiom/src/main/resources/META-INF/services/org.apache.tuscany.sca.databinding.PullTransformer create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-jaxb-axiom/src/test/java/org/apache/tuscany/databinding/jaxb/axiom/JAXB2OMTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-jaxb-axiom/src/test/java/org/apache/tuscany/databinding/jaxb/axiom/OMElement2JAXBTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-jaxb-axiom/src/test/resources/ipo.xsd create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-jaxb/LICENSE create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-jaxb/NOTICE create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-jaxb/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-jaxb/src/main/java/org/apache/tuscany/sca/databinding/jaxb/AnyTypeXmlAdapter.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-jaxb/src/main/java/org/apache/tuscany/sca/databinding/jaxb/DOMElementXmlAdapter.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-jaxb/src/main/java/org/apache/tuscany/sca/databinding/jaxb/DataConverter.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-jaxb/src/main/java/org/apache/tuscany/sca/databinding/jaxb/DefaultXMLAdapterExtensionPoint.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-jaxb/src/main/java/org/apache/tuscany/sca/databinding/jaxb/JAXB2Node.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-jaxb/src/main/java/org/apache/tuscany/sca/databinding/jaxb/JAXB2SAX.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-jaxb/src/main/java/org/apache/tuscany/sca/databinding/jaxb/JAXB2String.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-jaxb/src/main/java/org/apache/tuscany/sca/databinding/jaxb/JAXBContextCache.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-jaxb/src/main/java/org/apache/tuscany/sca/databinding/jaxb/JAXBContextHelper.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-jaxb/src/main/java/org/apache/tuscany/sca/databinding/jaxb/JAXBDataBinding.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-jaxb/src/main/java/org/apache/tuscany/sca/databinding/jaxb/JAXBPropertyDescriptor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-jaxb/src/main/java/org/apache/tuscany/sca/databinding/jaxb/JAXBTypeHelper.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-jaxb/src/main/java/org/apache/tuscany/sca/databinding/jaxb/JAXBWrapperException.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-jaxb/src/main/java/org/apache/tuscany/sca/databinding/jaxb/JAXBWrapperHandler.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-jaxb/src/main/java/org/apache/tuscany/sca/databinding/jaxb/JAXBWrapperHelper.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-jaxb/src/main/java/org/apache/tuscany/sca/databinding/jaxb/Node2JAXB.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-jaxb/src/main/java/org/apache/tuscany/sca/databinding/jaxb/Reader2JAXB.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-jaxb/src/main/java/org/apache/tuscany/sca/databinding/jaxb/String2JAXB.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-jaxb/src/main/java/org/apache/tuscany/sca/databinding/jaxb/XMLAdapterExtensionPoint.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-jaxb/src/main/java/org/apache/tuscany/sca/databinding/jaxb/XMLRootElementUtil.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-jaxb/src/main/java/org/apache/tuscany/sca/databinding/jaxb/XMLStreamReader2JAXB.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-jaxb/src/main/resources/META-INF/services/org.apache.tuscany.sca.databinding.DataBinding create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-jaxb/src/main/resources/META-INF/services/org.apache.tuscany.sca.databinding.PullTransformer create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-jaxb/src/main/resources/META-INF/services/org.apache.tuscany.sca.databinding.jaxb.XMLAdapterExtensionPoint create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-jaxb/src/test/java/com/example/stock/StockQuoteOffer.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-jaxb/src/test/java/org/apache/tuscany/sca/databinding/jaxb/BeanXMLStreamReaderImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-jaxb/src/test/java/org/apache/tuscany/sca/databinding/jaxb/JAXB2XMLStreamReader.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-jaxb/src/test/java/org/apache/tuscany/sca/databinding/jaxb/JAXBContextCacheTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-jaxb/src/test/java/org/apache/tuscany/sca/databinding/jaxb/JAXBDataBindingTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-jaxb/src/test/java/org/apache/tuscany/sca/databinding/jaxb/JAXBReflectionTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-jaxb/src/test/java/org/apache/tuscany/sca/databinding/jaxb/JAXBTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-jaxb/src/test/java/org/apache/tuscany/sca/databinding/jaxb/JAXBWrapperHandlerTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-jaxb/src/test/java/org/apache/tuscany/sca/databinding/jaxb/MyBean.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-jaxb/src/test/java/org/apache/tuscany/sca/databinding/jaxb/MyInterface.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-jaxb/src/test/java/org/apache/tuscany/sca/databinding/jaxb/MyInterfaceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-jaxb/src/test/java/org/apache/tuscany/sca/databinding/jaxb/MyJaxbBean.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-jaxb/src/test/java/org/apache/tuscany/sca/databinding/jaxb/MySubBean.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-jaxb/src/test/java/org/apache/tuscany/sca/databinding/jaxb/POJOTestCase.java create mode 100755 tags/java/sca/1.5.1-RC4/modules/databinding-jaxb/src/test/resources/ipo.xsd create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-json/LICENSE create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-json/NOTICE create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-json/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-json/src/main/java/org/apache/tuscany/sca/databinding/json/JSON2JavaBean.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-json/src/main/java/org/apache/tuscany/sca/databinding/json/JSON2String.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-json/src/main/java/org/apache/tuscany/sca/databinding/json/JSON2XMLStreamReader.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-json/src/main/java/org/apache/tuscany/sca/databinding/json/JSONDataBinding.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-json/src/main/java/org/apache/tuscany/sca/databinding/json/JSONHelper.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-json/src/main/java/org/apache/tuscany/sca/databinding/json/JavaBean2JSON.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-json/src/main/java/org/apache/tuscany/sca/databinding/json/JavaBean2JSONObject.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-json/src/main/java/org/apache/tuscany/sca/databinding/json/String2JSON.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-json/src/main/java/org/apache/tuscany/sca/databinding/json/XMLStreamReader2JSON.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-json/src/main/java/org/apache/tuscany/sca/databinding/json/axiom/JSON2OMElement.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-json/src/main/java/org/apache/tuscany/sca/databinding/json/axiom/JSONBadgerfishDataSource.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-json/src/main/java/org/apache/tuscany/sca/databinding/json/axiom/JSONDataSource.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-json/src/main/resources/META-INF/services/org.apache.tuscany.sca.databinding.DataBinding create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-json/src/main/resources/META-INF/services/org.apache.tuscany.sca.databinding.PullTransformer create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-json/src/test/java/org/apache/tuscany/sca/databinding/json/JSONTransformerTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-json/src/test/java/org/apache/tuscany/sca/databinding/json/JavaBean2JSONTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-json/src/test/java/org/apache/tuscany/sca/databinding/json/MyBean.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-json/src/test/java/org/apache/tuscany/sca/databinding/json/MyInterface.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-json/src/test/java/org/apache/tuscany/sca/databinding/json/MyInterfaceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-json/src/test/java/org/apache/tuscany/sca/databinding/json/POJOTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-json/src/test/resources/ipo.xsd create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-saxon/LICENSE create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-saxon/NOTICE create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-saxon/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-saxon/src/main/java/org/apache/tuscany/sca/databinding/saxon/DataObject2NodeInfoTransformer.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-saxon/src/main/java/org/apache/tuscany/sca/databinding/saxon/ItemList2ObjectTransformer.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-saxon/src/main/java/org/apache/tuscany/sca/databinding/saxon/Node2NodeInfoTransformer.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-saxon/src/main/java/org/apache/tuscany/sca/databinding/saxon/NodeInfo2DataObjectTransformer.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-saxon/src/main/java/org/apache/tuscany/sca/databinding/saxon/NodeInfo2JavaArrayTransformer.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-saxon/src/main/java/org/apache/tuscany/sca/databinding/saxon/NodeInfo2NodeTransformer.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-saxon/src/main/java/org/apache/tuscany/sca/databinding/saxon/Object2ValueTransformer.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-saxon/src/main/java/org/apache/tuscany/sca/databinding/saxon/SaxonDataBindingHelper.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-saxon/src/main/java/org/apache/tuscany/sca/databinding/saxon/SaxonNodeDataBinding.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-saxon/src/main/java/org/apache/tuscany/sca/databinding/saxon/SaxonValueDataBinding.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-saxon/src/main/java/org/apache/tuscany/sca/databinding/saxon/SimpleType2ValueTransformer.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-saxon/src/main/java/org/apache/tuscany/sca/databinding/saxon/Value2JavaArray.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-saxon/src/main/java/org/apache/tuscany/sca/databinding/saxon/Value2ObjectTransformer.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-saxon/src/main/java/org/apache/tuscany/sca/databinding/saxon/Value2SimpleTypeTransformer.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-saxon/src/main/java/org/apache/tuscany/sca/databinding/saxon/collection/ItemList.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-saxon/src/main/resources/META-INF/services/org.apache.tuscany.sca.databinding.DataBinding create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-saxon/src/main/resources/META-INF/services/org.apache.tuscany.sca.databinding.PullTransformer create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-sdo-axiom/LICENSE create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-sdo-axiom/NOTICE create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-sdo-axiom/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-sdo-axiom/src/main/java/org/apache/tuscany/sca/databinding/sdo2om/AxiomHelper.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-sdo-axiom/src/main/java/org/apache/tuscany/sca/databinding/sdo2om/DataObject2OMElement.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-sdo-axiom/src/main/java/org/apache/tuscany/sca/databinding/sdo2om/SDODataSource.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-sdo-axiom/src/main/java/org/apache/tuscany/sca/databinding/sdo2om/XMLDocument2OMElement.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-sdo-axiom/src/main/resources/META-INF/services/org.apache.tuscany.sca.databinding.PullTransformer create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-sdo-axiom/src/test/java/org/apache/tuscany/sca/databinding/sdo2om/DataObject2OMElementTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-sdo-axiom/src/test/java/org/apache/tuscany/sca/databinding/sdo2om/SDOTransformerTestCaseBase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-sdo-axiom/src/test/java/org/apache/tuscany/sca/databinding/sdo2om/XMLDocument2OMElementTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-sdo-axiom/src/test/resources/ipo.xsd create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-sdo-axiom/src/test/resources/stock.xsd create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-sdo/LICENSE create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-sdo/NOTICE create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-sdo/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-sdo/src/main/java/org/apache/tuscany/sca/databinding/sdo/DataObject2Node.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-sdo/src/main/java/org/apache/tuscany/sca/databinding/sdo/DataObject2String.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-sdo/src/main/java/org/apache/tuscany/sca/databinding/sdo/DataObject2XMLStreamReader.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-sdo/src/main/java/org/apache/tuscany/sca/databinding/sdo/ImportSDO.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-sdo/src/main/java/org/apache/tuscany/sca/databinding/sdo/ImportSDOProcessor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-sdo/src/main/java/org/apache/tuscany/sca/databinding/sdo/Node2DataObject.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-sdo/src/main/java/org/apache/tuscany/sca/databinding/sdo/SDOContextHelper.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-sdo/src/main/java/org/apache/tuscany/sca/databinding/sdo/SDODataBinding.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-sdo/src/main/java/org/apache/tuscany/sca/databinding/sdo/SDOSimpleTypeMapper.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-sdo/src/main/java/org/apache/tuscany/sca/databinding/sdo/SDOTypeHelper.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-sdo/src/main/java/org/apache/tuscany/sca/databinding/sdo/SDOTypes.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-sdo/src/main/java/org/apache/tuscany/sca/databinding/sdo/SDOWrapperHandler.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-sdo/src/main/java/org/apache/tuscany/sca/databinding/sdo/String2DataObject.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-sdo/src/main/java/org/apache/tuscany/sca/databinding/sdo/XMLDocument2String.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-sdo/src/main/java/org/apache/tuscany/sca/databinding/sdo/XMLDocument2XMLStreamReader.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-sdo/src/main/java/org/apache/tuscany/sca/databinding/sdo/XMLStreamReader2DataObject.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-sdo/src/main/java/org/apache/tuscany/sca/databinding/sdo/XMLStreamReader2XMLDocument.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-sdo/src/main/java/org/apache/tuscany/sca/databinding/sdo/xml/SDOTypesModelResolver.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-sdo/src/main/java/org/apache/tuscany/sca/databinding/sdo/xml/SDOTypesProcessor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-sdo/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessor create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-sdo/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.resolver.ModelResolver create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-sdo/src/main/resources/META-INF/services/org.apache.tuscany.sca.databinding.DataBinding create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-sdo/src/main/resources/META-INF/services/org.apache.tuscany.sca.databinding.PullTransformer create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-sdo/src/main/resources/databinding-sdo-validation-messages.properties create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-sdo/src/test/java/com/example/stock/sdo/fault/InvalidSymbolFault_Exception.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-sdo/src/test/java/org/apache/tuscany/sca/databinding/sdo/DataObject2NodeTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-sdo/src/test/java/org/apache/tuscany/sca/databinding/sdo/DataObject2StringTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-sdo/src/test/java/org/apache/tuscany/sca/databinding/sdo/DataObject2XMLStreamReaderTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-sdo/src/test/java/org/apache/tuscany/sca/databinding/sdo/ImportSDOProcessorTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-sdo/src/test/java/org/apache/tuscany/sca/databinding/sdo/SDOContextHelperTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-sdo/src/test/java/org/apache/tuscany/sca/databinding/sdo/SDODataBindingTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-sdo/src/test/java/org/apache/tuscany/sca/databinding/sdo/SDOTransformerTestCaseBase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-sdo/src/test/java/org/apache/tuscany/sca/databinding/sdo/SDOWrapperHandlerTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-sdo/src/test/java/org/apache/tuscany/sca/databinding/sdo/TestModelResolver.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-sdo/src/test/java/org/apache/tuscany/sca/databinding/sdo/XMLDocument2XMLStreamReaderTestCase.java create mode 100755 tags/java/sca/1.5.1-RC4/modules/databinding-sdo/src/test/resources/ipo.xsd create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-sdo/src/test/resources/stock.xsd create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-sdo/src/test/resources/wrapper.xml create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-sdo/src/test/resources/wrapper.xsd create mode 100755 tags/java/sca/1.5.1-RC4/modules/databinding-xmlbeans/LICENSE create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-xmlbeans/NOTICE create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-xmlbeans/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-xmlbeans/src/main/java/org/apache/tuscany/sca/databinding/xmlbeans/Node2XmlObject.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-xmlbeans/src/main/java/org/apache/tuscany/sca/databinding/xmlbeans/XMLBeansDataBinding.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-xmlbeans/src/main/java/org/apache/tuscany/sca/databinding/xmlbeans/XMLBeansWrapperHandler.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-xmlbeans/src/main/java/org/apache/tuscany/sca/databinding/xmlbeans/XMLStreamReader2XmlObject.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-xmlbeans/src/main/java/org/apache/tuscany/sca/databinding/xmlbeans/XmlObject2Node.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-xmlbeans/src/main/java/org/apache/tuscany/sca/databinding/xmlbeans/XmlObject2XMLStreamReader.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-xmlbeans/src/main/resources/META-INF/services/org.apache.tuscany.sca.databinding.DataBinding create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-xmlbeans/src/main/resources/META-INF/services/org.apache.tuscany.sca.databinding.PullTransformer create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding-xmlbeans/src/test/java/org/apache/tuscany/sca/databinding/xmlbeans/XmlObjectTestCase.java create mode 100755 tags/java/sca/1.5.1-RC4/modules/databinding-xmlbeans/src/test/resources/ipo.xsd create mode 100755 tags/java/sca/1.5.1-RC4/modules/databinding-xmlbeans/src/test/resources/ipo.xsdconfig create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding/LICENSE create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding/NOTICE create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/DataBinding.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/DataBindingExtensionPoint.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/DataPipe.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/DataPipeTransformer.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/DefaultDataBindingExtensionPoint.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/DefaultTransformerExtensionPoint.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/Mediator.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/PullTransformer.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/PushTransformer.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/SimpleTypeMapper.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/TransformationContext.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/TransformationException.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/Transformer.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/TransformerExtensionPoint.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/WrapperHandler.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/XMLTypeHelper.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/annotation/DataBinding.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/annotation/DataType.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/externalizable/ExternalizableDataBinding.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/impl/BaseDataBinding.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/impl/BaseTransformer.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/impl/DOMHelper.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/impl/DirectedGraph.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/impl/Group2GroupTransformer.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/impl/GroupDataBinding.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/impl/Java2SimpleTypeTransformer.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/impl/MediatorImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/impl/PipedTransformer.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/impl/SimpleType2JavaTransformer.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/impl/SimpleTypeMapperImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/impl/TransformationContextImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/impl/XSDDataTypeConverter.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/javabeans/DOMNode2JavaBeanTransformer.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/javabeans/Java2XMLMapperException.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/javabeans/JavaBean2DOMNodeTransformer.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/javabeans/JavaBean2XMLStreamReaderTransformer.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/javabeans/JavaBean2XMLTransformer.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/javabeans/JavaBeansDataBinding.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/javabeans/JavaExceptionDataBinding.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/javabeans/SimpleJavaDataBinding.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/javabeans/XML2JavaBeanTransformer.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/javabeans/XML2JavaMapperException.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/util/DataTypeHelper.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/util/LRUCache.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/xml/BeanXMLStreamReaderImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/xml/DOMDataBinding.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/xml/DOMWrapperHandler.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/xml/DOMXMLStreamReader.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/xml/DOMXmlNodeImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/xml/DelegatingNamespaceContext.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/xml/InputSource2Node.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/xml/InputSource2SAX.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/xml/InputStream2Node.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/xml/InputStream2SAX.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/xml/NameValueArrayStreamReader.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/xml/NameValuePairStreamReader.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/xml/NamedProperty.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/xml/NilElementStreamReader.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/xml/Node2OutputStream.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/xml/Node2SimpleJavaType.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/xml/Node2SourceTransformer.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/xml/Node2String.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/xml/Node2Writer.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/xml/Node2XMLStreamReader.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/xml/Reader2Node.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/xml/Reader2SAX.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/xml/SAX2DOM.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/xml/SAX2DOMPipe.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/xml/SimpleJavaType2Node.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/xml/SimpleXmlNodeImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/xml/Source2NodeTransformer.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/xml/Source2ResultTransformer.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/xml/Source2StringTransformer.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/xml/StAX2SAXAdapter.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/xml/StAXDataBinding.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/xml/StAXHelper.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/xml/StreamDataPipe.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/xml/String2Node.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/xml/String2SAX.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/xml/String2SourceTransformer.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/xml/String2XMLStreamReader.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/xml/WrappingXMLStreamReader.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/xml/Writer2ReaderDataPipe.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/xml/XMLDocumentStreamReader.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/xml/XMLFragmentStreamReader.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/xml/XMLFragmentStreamReaderImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/xml/XMLGroupDataBinding.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/xml/XMLStreamReader2Node.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/xml/XMLStreamReader2SAX.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/xml/XMLStreamReader2String.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/xml/XMLStreamSerializer.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/xml/XMLStreamable.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/xml/XMLStringDataBinding.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/xml/XmlNode.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/xml/XmlNodeIterator.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/xml/XmlTreeStreamReaderImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding/src/main/resources/META-INF/services/org.apache.tuscany.sca.databinding.DataBinding create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding/src/main/resources/META-INF/services/org.apache.tuscany.sca.databinding.DataBindingExtensionPoint create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding/src/main/resources/META-INF/services/org.apache.tuscany.sca.databinding.Mediator create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding/src/main/resources/META-INF/services/org.apache.tuscany.sca.databinding.PullTransformer create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding/src/main/resources/META-INF/services/org.apache.tuscany.sca.databinding.PushTransformer create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding/src/main/resources/META-INF/services/org.apache.tuscany.sca.databinding.TransformerExtensionPoint create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding/src/test/java/org/apache/tuscany/sca/databinding/extension/DOMHelperTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding/src/test/java/org/apache/tuscany/sca/databinding/extension/DataBindingExtensionTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding/src/test/java/org/apache/tuscany/sca/databinding/extension/SimpleTypeMapperExtensionTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding/src/test/java/org/apache/tuscany/sca/databinding/extension/TransformerExtensionTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding/src/test/java/org/apache/tuscany/sca/databinding/extension/XSDDataTypeConverterTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding/src/test/java/org/apache/tuscany/sca/databinding/impl/DataBindingRegistryImplTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding/src/test/java/org/apache/tuscany/sca/databinding/impl/DataBindingTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding/src/test/java/org/apache/tuscany/sca/databinding/impl/DirectedGraphTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding/src/test/java/org/apache/tuscany/sca/databinding/impl/MediatorImplTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding/src/test/java/org/apache/tuscany/sca/databinding/impl/TransformerRegistryImplTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding/src/test/java/org/apache/tuscany/sca/databinding/impl/XMLDocumentStreamReaderTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding/src/test/java/org/apache/tuscany/sca/databinding/xml/BeanXMLStreamReaderTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding/src/test/java/org/apache/tuscany/sca/databinding/xml/DOM2StAXTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding/src/test/java/org/apache/tuscany/sca/databinding/xml/DataPipeTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding/src/test/java/org/apache/tuscany/sca/databinding/xml/JavaBean2XMLStreamReaderTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding/src/test/java/org/apache/tuscany/sca/databinding/xml/Node2StringTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding/src/test/java/org/apache/tuscany/sca/databinding/xml/PushTransformationTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding/src/test/java/org/apache/tuscany/sca/databinding/xml/StAXHelperTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding/src/test/java/org/apache/tuscany/sca/databinding/xml/TraxTransformerTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding/src/test/java/org/apache/tuscany/sca/databinding/xml/XmlTreeStreamReaderTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding/src/test/resources/org/apache/tuscany/sca/databinding/impl/ipo.xsd create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding/src/test/resources/org/apache/tuscany/sca/databinding/impl/order.wsdl create mode 100644 tags/java/sca/1.5.1-RC4/modules/databinding/src/test/resources/org/apache/tuscany/sca/databinding/xml/foo.xml create mode 100644 tags/java/sca/1.5.1-RC4/modules/definitions-xml/LICENSE create mode 100644 tags/java/sca/1.5.1-RC4/modules/definitions-xml/NOTICE create mode 100644 tags/java/sca/1.5.1-RC4/modules/definitions-xml/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/modules/definitions-xml/src/main/java/org/apache/tuscany/sca/definitions/xml/SCADefinitionsDocumentProcessor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/definitions-xml/src/main/java/org/apache/tuscany/sca/definitions/xml/SCADefinitionsProcessor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/definitions-xml/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessor create mode 100644 tags/java/sca/1.5.1-RC4/modules/definitions-xml/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.processor.URLArtifactProcessor create mode 100644 tags/java/sca/1.5.1-RC4/modules/definitions-xml/src/main/resources/definitions-xml-validation-messages.properties create mode 100644 tags/java/sca/1.5.1-RC4/modules/definitions-xml/src/test/java/org/apache/tuscany/sca/definitions/Policy.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/definitions-xml/src/test/java/org/apache/tuscany/sca/definitions/ReadDocumentTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/definitions-xml/src/test/java/org/apache/tuscany/sca/definitions/TestPolicyProcessor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/definitions-xml/src/test/resources/org/apache/tuscany/sca/definitions/test_definitions.xml create mode 100644 tags/java/sca/1.5.1-RC4/modules/definitions/LICENSE create mode 100644 tags/java/sca/1.5.1-RC4/modules/definitions/NOTICE create mode 100644 tags/java/sca/1.5.1-RC4/modules/definitions/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/modules/definitions/src/main/java/org/apache/tuscany/sca/definitions/SCADefinitions.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/definitions/src/main/java/org/apache/tuscany/sca/definitions/SCADefinitionsBuilder.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/definitions/src/main/java/org/apache/tuscany/sca/definitions/SCADefinitionsBuilderException.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/definitions/src/main/java/org/apache/tuscany/sca/definitions/SCADefinitionsBuilderImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/definitions/src/main/java/org/apache/tuscany/sca/definitions/impl/SCADefinitionsImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/definitions/src/main/java/org/apache/tuscany/sca/definitions/util/SCADefinitionsUtil.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/domain-manager/LICENSE create mode 100644 tags/java/sca/1.5.1-RC4/modules/domain-manager/NOTICE create mode 100644 tags/java/sca/1.5.1-RC4/modules/domain-manager/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/modules/domain-manager/src/main/java/org/apache/tuscany/sca/domain/manager/impl/CompositeConfigurationCollectionImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/domain-manager/src/main/java/org/apache/tuscany/sca/domain/manager/impl/CompositeConfigurationServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/domain-manager/src/main/java/org/apache/tuscany/sca/domain/manager/impl/CompositeGeneratorServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/domain-manager/src/main/java/org/apache/tuscany/sca/domain/manager/impl/ContributionCollectionImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/domain-manager/src/main/java/org/apache/tuscany/sca/domain/manager/impl/ContributionServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/domain-manager/src/main/java/org/apache/tuscany/sca/domain/manager/impl/DeployableCompositeCollectionImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/domain-manager/src/main/java/org/apache/tuscany/sca/domain/manager/impl/DeployableCompositeServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/domain-manager/src/main/java/org/apache/tuscany/sca/domain/manager/impl/DeployedCompositeCollectionImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/domain-manager/src/main/java/org/apache/tuscany/sca/domain/manager/impl/DomainManagerConfiguration.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/domain-manager/src/main/java/org/apache/tuscany/sca/domain/manager/impl/DomainManagerConfigurationImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/domain-manager/src/main/java/org/apache/tuscany/sca/domain/manager/impl/DomainManagerUtil.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/domain-manager/src/main/java/org/apache/tuscany/sca/domain/manager/impl/FileCollectionImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/domain-manager/src/main/java/org/apache/tuscany/sca/domain/manager/impl/FileServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/domain-manager/src/main/java/org/apache/tuscany/sca/domain/manager/impl/NodeConfigurationServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/domain-manager/src/main/java/org/apache/tuscany/sca/domain/manager/impl/NodeProcessCollectionFacadeImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/domain-manager/src/main/java/org/apache/tuscany/sca/domain/manager/impl/QuickStartServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/domain-manager/src/main/java/org/apache/tuscany/sca/domain/manager/launcher/DomainManagerLauncherBootstrap.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/domain-manager/src/main/resources/DomainManager.composite create mode 100644 tags/java/sca/1.5.1-RC4/modules/domain-manager/src/main/resources/cloud-gadget.html create mode 100644 tags/java/sca/1.5.1-RC4/modules/domain-manager/src/main/resources/cloud.html create mode 100644 tags/java/sca/1.5.1-RC4/modules/domain-manager/src/main/resources/composite-gadget.html create mode 100644 tags/java/sca/1.5.1-RC4/modules/domain-manager/src/main/resources/composite.html create mode 100644 tags/java/sca/1.5.1-RC4/modules/domain-manager/src/main/resources/files-gadget.html create mode 100644 tags/java/sca/1.5.1-RC4/modules/domain-manager/src/main/resources/files.html create mode 100644 tags/java/sca/1.5.1-RC4/modules/domain-manager/src/main/resources/home-gadget.html create mode 100644 tags/java/sca/1.5.1-RC4/modules/domain-manager/src/main/resources/home.html create mode 100644 tags/java/sca/1.5.1-RC4/modules/domain-manager/src/main/resources/icons/feed-icon.png create mode 100644 tags/java/sca/1.5.1-RC4/modules/domain-manager/src/main/resources/manager.css create mode 100644 tags/java/sca/1.5.1-RC4/modules/domain-manager/src/main/resources/toolbar-gadget.html create mode 100644 tags/java/sca/1.5.1-RC4/modules/domain-manager/src/main/resources/utils.js create mode 100644 tags/java/sca/1.5.1-RC4/modules/domain-manager/src/main/resources/workspace-gadget.html create mode 100644 tags/java/sca/1.5.1-RC4/modules/domain-manager/src/main/resources/workspace.html create mode 100644 tags/java/sca/1.5.1-RC4/modules/domain-manager/src/test/java/org/apache/tuscany/sca/domain/manager/impl/DomainManagerTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/domain-manager/src/test/resources/contributions/assets/META-INF/sca-contribution.xml create mode 100644 tags/java/sca/1.5.1-RC4/modules/domain-manager/src/test/resources/contributions/store/META-INF/sca-contribution.xml create mode 100644 tags/java/sca/1.5.1-RC4/modules/domain-manager/src/test/resources/workspace.xml create mode 100644 tags/java/sca/1.5.1-RC4/modules/endpoint/LICENSE create mode 100644 tags/java/sca/1.5.1-RC4/modules/endpoint/NOTICE create mode 100644 tags/java/sca/1.5.1-RC4/modules/endpoint/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/modules/endpoint/src/main/java/org/apache/tuscany/sca/endpoint/impl/EndpointResolverFactoryImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/endpoint/src/main/java/org/apache/tuscany/sca/endpoint/impl/EndpointResolverImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/endpoint/src/main/resources/META-INF/services/org.apache.tuscany.sca.endpointresolver.EndpointResolverFactory create mode 100644 tags/java/sca/1.5.1-RC4/modules/endpoint/src/main/resources/org/apache/tuscany/sca/binding/sca/definitions.xml create mode 100644 tags/java/sca/1.5.1-RC4/modules/endpoint/src/test/java/calculator/AddService.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/endpoint/src/test/java/calculator/AddServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/endpoint/src/test/java/calculator/CalculatorService.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/endpoint/src/test/java/calculator/CalculatorServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/endpoint/src/test/java/calculator/DivideService.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/endpoint/src/test/java/calculator/DivideServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/endpoint/src/test/java/calculator/MultiplyService.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/endpoint/src/test/java/calculator/MultiplyServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/endpoint/src/test/java/calculator/SubtractService.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/endpoint/src/test/java/calculator/SubtractServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/endpoint/src/test/java/org/apace/tuscany/sca/binding/sca/EndpointTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/endpoint/src/test/resources/Calculator.composite create mode 100644 tags/java/sca/1.5.1-RC4/modules/extensibility-osgi/LICENSE create mode 100644 tags/java/sca/1.5.1-RC4/modules/extensibility-osgi/NOTICE create mode 100644 tags/java/sca/1.5.1-RC4/modules/extensibility-osgi/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/modules/extensibility-osgi/src/main/java/org/apache/tuscany/sca/extensibility/osgi/OSGiServiceDiscoverer.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/extensibility-osgi/src/main/java/org/apache/tuscany/sca/extensibility/osgi/OSGiServiceDiscoveryActivator.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/extensibility-osgi/src/test/java/org/apache/tuscany/sca/extensibility/osgi/OSGiServiceDiscovererTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/extensibility-osgi/src/test/resources/test-bundle.jar create mode 100644 tags/java/sca/1.5.1-RC4/modules/extensibility/LICENSE create mode 100644 tags/java/sca/1.5.1-RC4/modules/extensibility/NOTICE create mode 100644 tags/java/sca/1.5.1-RC4/modules/extensibility/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/modules/extensibility/src/main/java/org/apache/tuscany/sca/core/DefaultExtensionPointRegistry.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/extensibility/src/main/java/org/apache/tuscany/sca/core/DefaultModuleActivatorExtensionPoint.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/extensibility/src/main/java/org/apache/tuscany/sca/core/DefaultUtilityExtensionPoint.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/extensibility/src/main/java/org/apache/tuscany/sca/core/ExtensionPointRegistry.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/extensibility/src/main/java/org/apache/tuscany/sca/core/ModuleActivator.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/extensibility/src/main/java/org/apache/tuscany/sca/core/ModuleActivatorExtensionPoint.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/extensibility/src/main/java/org/apache/tuscany/sca/core/UtilityExtensionPoint.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/extensibility/src/main/java/org/apache/tuscany/sca/extensibility/ClassLoaderServiceDiscoverer.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/extensibility/src/main/java/org/apache/tuscany/sca/extensibility/ServiceDeclaration.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/extensibility/src/main/java/org/apache/tuscany/sca/extensibility/ServiceDiscoverer.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/extensibility/src/main/java/org/apache/tuscany/sca/extensibility/ServiceDiscovery.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/extensibility/src/main/resources/META-INF/services/org.apache.tuscany.sca.core.ModuleActivatorExtensionPoint create mode 100644 tags/java/sca/1.5.1-RC4/modules/extensibility/src/main/resources/META-INF/services/org.apache.tuscany.sca.core.UtilityExtensionPoint create mode 100644 tags/java/sca/1.5.1-RC4/modules/extensibility/src/test/java/org/apache/tuscany/sca/extensibility/ClassLoaderServiceDiscovererTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/extension-helper/LICENSE create mode 100644 tags/java/sca/1.5.1-RC4/modules/extension-helper/NOTICE create mode 100644 tags/java/sca/1.5.1-RC4/modules/extension-helper/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/modules/extension-helper/src/main/java/org/apache/tuscany/sca/extension/helper/BindingActivator.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/extension-helper/src/main/java/org/apache/tuscany/sca/extension/helper/ComponentLifecycle.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/extension-helper/src/main/java/org/apache/tuscany/sca/extension/helper/ImplementationActivator.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/extension-helper/src/main/java/org/apache/tuscany/sca/extension/helper/InvokerFactory.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/extension-helper/src/main/java/org/apache/tuscany/sca/extension/helper/impl/BindingSCDLProcessor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/extension-helper/src/main/java/org/apache/tuscany/sca/extension/helper/impl/BindingsActivator.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/extension-helper/src/main/java/org/apache/tuscany/sca/extension/helper/impl/DiscoveryUtils.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/extension-helper/src/main/java/org/apache/tuscany/sca/extension/helper/impl/ImplementationImplementationProvider.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/extension-helper/src/main/java/org/apache/tuscany/sca/extension/helper/impl/ImplementationsActivator.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/extension-helper/src/main/java/org/apache/tuscany/sca/extension/helper/impl/PojoBinding.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/extension-helper/src/main/java/org/apache/tuscany/sca/extension/helper/impl/PojoImplementation.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/extension-helper/src/main/java/org/apache/tuscany/sca/extension/helper/impl/SCDLProcessor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/extension-helper/src/main/java/org/apache/tuscany/sca/extension/helper/utils/AbstractBinding.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/extension-helper/src/main/java/org/apache/tuscany/sca/extension/helper/utils/AbstractImplementation.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/extension-helper/src/main/java/org/apache/tuscany/sca/extension/helper/utils/AbstractStAXArtifactProcessor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/extension-helper/src/main/java/org/apache/tuscany/sca/extension/helper/utils/DefaultPropertyValueObjectFactory.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/extension-helper/src/main/java/org/apache/tuscany/sca/extension/helper/utils/DynamicImplementation.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/extension-helper/src/main/java/org/apache/tuscany/sca/extension/helper/utils/PropertyValueObjectFactory.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/extension-helper/src/main/java/org/apache/tuscany/sca/extension/helper/utils/ResourceHelper.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/extension-helper/src/main/resources/META-INF/services/org.apache.tuscany.sca.core.ModuleActivator create mode 100644 tags/java/sca/1.5.1-RC4/modules/host-corba-jee/LICENSE create mode 100644 tags/java/sca/1.5.1-RC4/modules/host-corba-jee/NOTICE create mode 100644 tags/java/sca/1.5.1-RC4/modules/host-corba-jee/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/modules/host-corba-jee/src/main/java/org/apache/tuscany/sca/host/corba/jee/CorbaRuntimeModuleActivator.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/host-corba-jee/src/main/java/org/apache/tuscany/sca/host/corba/jee/JEECorbaHost.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/host-corba-jee/src/main/resources/META-INF/services/org.apache.tuscany.sca.core.ModuleActivator create mode 100644 tags/java/sca/1.5.1-RC4/modules/host-corba-jee/src/test/java/org/apache/tuscany/sca/host/corba/jee/testing/JEECorbaHostTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/host-corba-jee/src/test/java/org/apache/tuscany/sca/host/corba/jee/testing/TestContext.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/host-corba-jee/src/test/java/org/apache/tuscany/sca/host/corba/jee/testing/TestInitialContextFactory.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/host-corba-jee/src/test/java/org/apache/tuscany/sca/host/corba/jee/testing/general/TestInterface.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/host-corba-jee/src/test/java/org/apache/tuscany/sca/host/corba/jee/testing/general/TestInterfaceHelper.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/host-corba-jee/src/test/java/org/apache/tuscany/sca/host/corba/jee/testing/general/TestInterfaceHolder.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/host-corba-jee/src/test/java/org/apache/tuscany/sca/host/corba/jee/testing/general/TestInterfaceOperations.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/host-corba-jee/src/test/java/org/apache/tuscany/sca/host/corba/jee/testing/general/_TestInterfaceImplBase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/host-corba-jee/src/test/java/org/apache/tuscany/sca/host/corba/jee/testing/general/_TestInterfaceStub.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/host-corba-jee/src/test/java/org/apache/tuscany/sca/host/corba/jee/testing/servants/TestInterfaceServant.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/host-corba-jee/src/test/resources/general.idl create mode 100644 tags/java/sca/1.5.1-RC4/modules/host-corba-jse-tns/LICENSE create mode 100644 tags/java/sca/1.5.1-RC4/modules/host-corba-jse-tns/NOTICE create mode 100644 tags/java/sca/1.5.1-RC4/modules/host-corba-jse-tns/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/modules/host-corba-jse-tns/src/main/java/org/apache/tuscany/sca/host/corba/jse/tns/CorbaRuntimeModuleActivator.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/host-corba-jse-tns/src/main/java/org/apache/tuscany/sca/host/corba/jse/tns/TnsDefaultCorbaHost.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/host-corba-jse-tns/src/main/resources/META-INF/services/org.apache.tuscany.sca.core.ModuleActivator create mode 100644 tags/java/sca/1.5.1-RC4/modules/host-corba-jse-tns/src/test/java/org/apache/tuscany/sca/host/corba/testing/TnsDefaultCorbaHostTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/host-corba-jse/LICENSE create mode 100644 tags/java/sca/1.5.1-RC4/modules/host-corba-jse/NOTICE create mode 100644 tags/java/sca/1.5.1-RC4/modules/host-corba-jse/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/modules/host-corba-jse/src/main/java/org/apache/tuscany/sca/host/corba/jse/CorbaRuntimeModuleActivator.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/host-corba-jse/src/main/java/org/apache/tuscany/sca/host/corba/jse/DefaultCorbaHost.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/host-corba-jse/src/main/java/org/apache/tuscany/sca/host/corba/naming/NamingContextBase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/host-corba-jse/src/main/java/org/apache/tuscany/sca/host/corba/naming/TransientNameServer.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/host-corba-jse/src/main/java/org/apache/tuscany/sca/host/corba/naming/TransientNameService.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/host-corba-jse/src/main/java/org/apache/tuscany/sca/host/corba/naming/TransientNamingContext.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/host-corba-jse/src/main/java/org/apache/tuscany/sca/host/corba/naming/TransientServiceException.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/host-corba-jse/src/main/resources/META-INF/services/org.apache.tuscany.sca.core.ModuleActivator create mode 100644 tags/java/sca/1.5.1-RC4/modules/host-corba-jse/src/test/java/org/apache/tuscany/sca/host/corba/testing/DefaultCorbaHostTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/host-corba-jse/src/test/java/org/apache/tuscany/sca/host/corba/testing/general/TestInterface.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/host-corba-jse/src/test/java/org/apache/tuscany/sca/host/corba/testing/general/TestInterfaceHelper.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/host-corba-jse/src/test/java/org/apache/tuscany/sca/host/corba/testing/general/TestInterfaceHolder.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/host-corba-jse/src/test/java/org/apache/tuscany/sca/host/corba/testing/general/TestInterfaceOperations.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/host-corba-jse/src/test/java/org/apache/tuscany/sca/host/corba/testing/general/_TestInterfaceImplBase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/host-corba-jse/src/test/java/org/apache/tuscany/sca/host/corba/testing/general/_TestInterfaceStub.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/host-corba-jse/src/test/java/org/apache/tuscany/sca/host/corba/testing/servants/TestInterfaceServant.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/host-corba-jse/src/test/resources/general.idl create mode 100644 tags/java/sca/1.5.1-RC4/modules/host-corba/LICENSE create mode 100644 tags/java/sca/1.5.1-RC4/modules/host-corba/NOTICE create mode 100644 tags/java/sca/1.5.1-RC4/modules/host-corba/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/modules/host-corba/src/main/java/org/apache/tuscany/sca/host/corba/CorbaHost.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/host-corba/src/main/java/org/apache/tuscany/sca/host/corba/CorbaHostException.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/host-corba/src/main/java/org/apache/tuscany/sca/host/corba/CorbaHostExtensionPoint.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/host-corba/src/main/java/org/apache/tuscany/sca/host/corba/CorbaHostUtils.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/host-corba/src/main/java/org/apache/tuscany/sca/host/corba/CorbanameURL.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/host-corba/src/main/java/org/apache/tuscany/sca/host/corba/DefaultCorbaHostExtensionPoint.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/host-corba/src/main/java/org/apache/tuscany/sca/host/corba/ExtensibleCorbaHost.java create mode 100755 tags/java/sca/1.5.1-RC4/modules/host-corba/src/main/java/org/apache/tuscany/sca/host/corba/SocketUtil.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/host-corba/src/main/resources/META-INF/services/org.apache.tuscany.sca.host.corba.CorbaHostExtensionPoint create mode 100644 tags/java/sca/1.5.1-RC4/modules/host-corba/src/test/java/org/apache/tuscany/sca/host/corba/UtilsTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/host-embedded/LICENSE create mode 100644 tags/java/sca/1.5.1-RC4/modules/host-embedded/NOTICE create mode 100644 tags/java/sca/1.5.1-RC4/modules/host-embedded/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/modules/host-embedded/src/main/java/org/apache/tuscany/sca/host/embedded/SCADomain.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/host-embedded/src/main/java/org/apache/tuscany/sca/host/embedded/SCADomainBean.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/host-embedded/src/main/java/org/apache/tuscany/sca/host/embedded/SCATestCaseRunner.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/host-embedded/src/main/java/org/apache/tuscany/sca/host/embedded/impl/ComponentManagerImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/host-embedded/src/main/java/org/apache/tuscany/sca/host/embedded/impl/DefaultSCADomain.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/host-embedded/src/main/java/org/apache/tuscany/sca/host/embedded/impl/EmbeddedSCADomain.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/host-embedded/src/main/java/org/apache/tuscany/sca/host/embedded/impl/HotUpdatableSCADomain.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/host-embedded/src/main/java/org/apache/tuscany/sca/host/embedded/impl/ReallySmallRuntime.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/host-embedded/src/main/java/org/apache/tuscany/sca/host/embedded/impl/ReallySmallRuntimeBuilder.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/host-embedded/src/main/java/org/apache/tuscany/sca/host/embedded/management/ComponentListener.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/host-embedded/src/main/java/org/apache/tuscany/sca/host/embedded/management/ComponentManager.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/host-embedded/src/test/java/org/apache/tuscany/sca/host/embedded/SCADomainBeanTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/host-embedded/src/test/java/org/apache/tuscany/sca/host/embedded/SCADomainTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/host-embedded/src/test/java/org/apache/tuscany/sca/host/embedded/SCADomainZipsTestCaseFIXME.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/host-embedded/src/test/java/org/apache/tuscany/sca/host/embedded/impl/DefaultSCADomainTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/host-embedded/src/test/java/org/apache/tuscany/sca/host/embedded/impl/EmbeddedSCADomainTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/host-embedded/src/test/java/org/apache/tuscany/sca/host/embedded/impl/TestModelResolver.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/host-embedded/src/test/java/org/apache/tuscany/sca/host/embedded/test/extension/DefaultTestImplementationFactory.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/host-embedded/src/test/java/org/apache/tuscany/sca/host/embedded/test/extension/TestImplementation.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/host-embedded/src/test/java/org/apache/tuscany/sca/host/embedded/test/extension/TestImplementationFactory.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/host-embedded/src/test/java/org/apache/tuscany/sca/host/embedded/test/extension/TestService.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/host-embedded/src/test/java/org/apache/tuscany/sca/host/embedded/test/extension/impl/TestImplementationImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/host-embedded/src/test/java/org/apache/tuscany/sca/host/embedded/test/extension/impl/TestImplementationProcessor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/host-embedded/src/test/java/org/apache/tuscany/sca/host/embedded/test/extension/module/TestModuleActivator.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/host-embedded/src/test/java/org/apache/tuscany/sca/host/embedded/test/extension/provider/TestImplementationProvider.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/host-embedded/src/test/java/org/apache/tuscany/sca/host/embedded/test/extension/provider/TestImplementationProviderFactory.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/host-embedded/src/test/java/org/apache/tuscany/sca/host/embedded/test/extension/provider/TestInvoker.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/host-embedded/src/test/java/sample/Helloworld.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/host-embedded/src/test/resources/META-INF/services/org.apache.tuscany.sca.core.ModuleActivator create mode 100644 tags/java/sca/1.5.1-RC4/modules/host-embedded/src/test/resources/helloworld.jar create mode 100644 tags/java/sca/1.5.1-RC4/modules/host-embedded/src/test/resources/helloworld.zip create mode 100644 tags/java/sca/1.5.1-RC4/modules/host-embedded/src/test/resources/test.composite create mode 100644 tags/java/sca/1.5.1-RC4/modules/host-embedded/src/test/resources/test.txt create mode 100644 tags/java/sca/1.5.1-RC4/modules/host-http/LICENSE create mode 100644 tags/java/sca/1.5.1-RC4/modules/host-http/NOTICE create mode 100644 tags/java/sca/1.5.1-RC4/modules/host-http/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/modules/host-http/src/main/java/org/apache/tuscany/sca/host/http/DefaultResourceServlet.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/host-http/src/main/java/org/apache/tuscany/sca/host/http/DefaultServletHostExtensionPoint.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/host-http/src/main/java/org/apache/tuscany/sca/host/http/ExtensibleServletHost.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/host-http/src/main/java/org/apache/tuscany/sca/host/http/SecurityContext.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/host-http/src/main/java/org/apache/tuscany/sca/host/http/ServletHost.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/host-http/src/main/java/org/apache/tuscany/sca/host/http/ServletHostExtensionPoint.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/host-http/src/main/java/org/apache/tuscany/sca/host/http/ServletMappingException.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/host-http/src/main/java/org/apache/tuscany/sca/host/http/UserContext.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/host-http/src/main/resources/META-INF/services/org.apache.tuscany.sca.host.http.ServletHostExtensionPoint create mode 100644 tags/java/sca/1.5.1-RC4/modules/host-jetty/LICENSE create mode 100644 tags/java/sca/1.5.1-RC4/modules/host-jetty/NOTICE create mode 100644 tags/java/sca/1.5.1-RC4/modules/host-jetty/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/modules/host-jetty/src/main/java/org/apache/tuscany/sca/http/jetty/JettyDefaultServlet.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/host-jetty/src/main/java/org/apache/tuscany/sca/http/jetty/JettyLogger.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/host-jetty/src/main/java/org/apache/tuscany/sca/http/jetty/JettyServer.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/host-jetty/src/main/java/org/apache/tuscany/sca/http/jetty/module/JettyRuntimeModuleActivator.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/host-jetty/src/main/resources/META-INF/services/org.apache.tuscany.sca.core.ModuleActivator create mode 100644 tags/java/sca/1.5.1-RC4/modules/host-jetty/src/test/java/org/apache/tuscany/sca/http/jetty/JettyServerTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/host-jetty/src/test/resources/content/test.html create mode 100644 tags/java/sca/1.5.1-RC4/modules/host-jetty/src/test/resources/tuscany.keyStore create mode 100644 tags/java/sca/1.5.1-RC4/modules/host-jms-asf/LICENSE create mode 100644 tags/java/sca/1.5.1-RC4/modules/host-jms-asf/NOTICE create mode 100644 tags/java/sca/1.5.1-RC4/modules/host-jms-asf/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/modules/host-jms-asf/src/main/java/org/apache/tuscany/sca/host/jms/asf/ASFListener.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/host-jms-asf/src/main/java/org/apache/tuscany/sca/host/jms/asf/JMSHostExtensionPointImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/host-jms-asf/src/main/java/org/apache/tuscany/sca/host/jms/asf/JMSServiceListenerFactoryImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/host-jms-asf/src/main/java/org/apache/tuscany/sca/host/jms/asf/ServiceInvoker.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/host-jms-asf/src/main/resources/META-INF/services/org.apache.tuscany.sca.host.jms.JMSHostExtensionPoint create mode 100644 tags/java/sca/1.5.1-RC4/modules/host-jms/LICENSE create mode 100644 tags/java/sca/1.5.1-RC4/modules/host-jms/NOTICE create mode 100644 tags/java/sca/1.5.1-RC4/modules/host-jms/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/modules/host-jms/src/main/java/org/apache/tuscany/sca/host/jms/JMSHostExtensionPoint.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/host-jms/src/main/java/org/apache/tuscany/sca/host/jms/JMSServiceListener.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/host-jms/src/main/java/org/apache/tuscany/sca/host/jms/JMSServiceListenerDetails.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/host-jms/src/main/java/org/apache/tuscany/sca/host/jms/JMSServiceListenerFactory.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/host-rmi/LICENSE create mode 100644 tags/java/sca/1.5.1-RC4/modules/host-rmi/NOTICE create mode 100644 tags/java/sca/1.5.1-RC4/modules/host-rmi/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/modules/host-rmi/src/main/java/org/apache/tuscany/sca/host/rmi/DefaultRMIHost.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/host-rmi/src/main/java/org/apache/tuscany/sca/host/rmi/DefaultRMIHostExtensionPoint.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/host-rmi/src/main/java/org/apache/tuscany/sca/host/rmi/ExtensibleRMIHost.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/host-rmi/src/main/java/org/apache/tuscany/sca/host/rmi/RMIHost.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/host-rmi/src/main/java/org/apache/tuscany/sca/host/rmi/RMIHostException.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/host-rmi/src/main/java/org/apache/tuscany/sca/host/rmi/RMIHostExtensionPoint.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/host-rmi/src/main/java/org/apache/tuscany/sca/host/rmi/RMIHostRuntimeException.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/host-rmi/src/main/resources/META-INF/services/org.apache.tuscany.sca.host.rmi.RMIHostExtensionPoint create mode 100644 tags/java/sca/1.5.1-RC4/modules/host-rmi/src/test/java/org/apache/tuscany/sca/host/rmi/RMIHostImplTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/host-tomcat/LICENSE create mode 100644 tags/java/sca/1.5.1-RC4/modules/host-tomcat/NOTICE create mode 100644 tags/java/sca/1.5.1-RC4/modules/host-tomcat/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/modules/host-tomcat/src/main/java/org/apache/tuscany/sca/http/tomcat/ServletWrapper.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/host-tomcat/src/main/java/org/apache/tuscany/sca/http/tomcat/TomcatDefaultServlet.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/host-tomcat/src/main/java/org/apache/tuscany/sca/http/tomcat/TomcatPolicyBaseRealm.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/host-tomcat/src/main/java/org/apache/tuscany/sca/http/tomcat/TomcatServer.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/host-tomcat/src/main/java/org/apache/tuscany/sca/http/tomcat/module/TomcatRuntimeModuleActivator.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/host-tomcat/src/main/resources/META-INF/services/org.apache.tuscany.sca.core.ModuleActivator create mode 100644 tags/java/sca/1.5.1-RC4/modules/host-tomcat/src/test/java/org/apache/tuscany/sca/http/tomcat/TomcatServerTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/host-tomcat/src/test/resources/content/test.html create mode 100644 tags/java/sca/1.5.1-RC4/modules/host-tomcat/src/test/resources/tuscany.keyStore create mode 100644 tags/java/sca/1.5.1-RC4/modules/host-webapp/LICENSE create mode 100644 tags/java/sca/1.5.1-RC4/modules/host-webapp/NOTICE create mode 100644 tags/java/sca/1.5.1-RC4/modules/host-webapp/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/modules/host-webapp/src/main/java/org/apache/tuscany/sca/host/webapp/HotUpdateContextListener.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/host-webapp/src/main/java/org/apache/tuscany/sca/host/webapp/SCADomainHelper.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/host-webapp/src/main/java/org/apache/tuscany/sca/host/webapp/TuscanyContextListener.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/host-webapp/src/main/java/org/apache/tuscany/sca/host/webapp/TuscanyServlet.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/host-webapp/src/main/java/org/apache/tuscany/sca/host/webapp/TuscanyServletFilter.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/host-webapp/src/main/java/org/apache/tuscany/sca/host/webapp/WebAppModuleActivator.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/host-webapp/src/main/java/org/apache/tuscany/sca/host/webapp/WebAppRequestDispatcher.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/host-webapp/src/main/java/org/apache/tuscany/sca/host/webapp/WebAppServletHost.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/host-webapp/src/main/java/org/apache/tuscany/sca/host/webapp/WebSCADomain.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/host-webapp/src/main/java/org/apache/tuscany/sca/host/webapp/jsp/ReferenceTEI.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/host-webapp/src/main/java/org/apache/tuscany/sca/host/webapp/jsp/ReferenceTag.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/host-webapp/src/main/resources/META-INF/sca.tld create mode 100644 tags/java/sca/1.5.1-RC4/modules/host-webapp/src/main/resources/META-INF/services/org.apache.tuscany.sca.core.ModuleActivator create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-bpel-ode/LICENSE create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-bpel-ode/NOTICE create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-bpel-ode/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-bpel-ode/src/main/java/org/apache/tuscany/sca/implementation/bpel/ode/BPELODEDeployFile.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-bpel-ode/src/main/java/org/apache/tuscany/sca/implementation/bpel/ode/EmbeddedODEServer.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-bpel-ode/src/main/java/org/apache/tuscany/sca/implementation/bpel/ode/GeronimoTxFactory.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-bpel-ode/src/main/java/org/apache/tuscany/sca/implementation/bpel/ode/ODEBindingContext.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-bpel-ode/src/main/java/org/apache/tuscany/sca/implementation/bpel/ode/ODEDeployment.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-bpel-ode/src/main/java/org/apache/tuscany/sca/implementation/bpel/ode/ODEDeploymentException.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-bpel-ode/src/main/java/org/apache/tuscany/sca/implementation/bpel/ode/ODEExternalService.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-bpel-ode/src/main/java/org/apache/tuscany/sca/implementation/bpel/ode/ODEInitializationException.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-bpel-ode/src/main/java/org/apache/tuscany/sca/implementation/bpel/ode/ODEMessageExchangeContext.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-bpel-ode/src/main/java/org/apache/tuscany/sca/implementation/bpel/ode/ODEShutdownException.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-bpel-ode/src/main/java/org/apache/tuscany/sca/implementation/bpel/ode/TuscanyEPR.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-bpel-ode/src/main/java/org/apache/tuscany/sca/implementation/bpel/ode/TuscanyPRC.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-bpel-ode/src/main/java/org/apache/tuscany/sca/implementation/bpel/ode/TuscanyProcessConfImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-bpel-ode/src/main/java/org/apache/tuscany/sca/implementation/bpel/ode/provider/BPELImplementationProvider.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-bpel-ode/src/main/java/org/apache/tuscany/sca/implementation/bpel/ode/provider/BPELImplementationProviderFactory.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-bpel-ode/src/main/java/org/apache/tuscany/sca/implementation/bpel/ode/provider/BPELInvoker.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-bpel-ode/src/main/resources/META-INF/services/org.apache.tuscany.sca.provider.ImplementationProviderFactory create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-bpel-ode/src/test/java/org/apache/tuscany/sca/implementation/bpel/ode/EmbeddedODEServerTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-bpel-ode/src/test/resources/helloworld/greetings.wsdl create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-bpel-ode/src/test/resources/helloworld/helloworld.bpel create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-bpel-ode/src/test/resources/helloworld/helloworld.wsdl create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-bpel-ode/src/test/resources/log4j.properties create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-bpel/LICENSE create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-bpel/NOTICE create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-bpel/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-bpel/src/main/java/org/apache/tuscany/sca/implementation/bpel/BPELFactory.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-bpel/src/main/java/org/apache/tuscany/sca/implementation/bpel/BPELImplementation.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-bpel/src/main/java/org/apache/tuscany/sca/implementation/bpel/BPELProcessDefinition.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-bpel/src/main/java/org/apache/tuscany/sca/implementation/bpel/impl/BPELFactoryImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-bpel/src/main/java/org/apache/tuscany/sca/implementation/bpel/impl/BPELImplementationImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-bpel/src/main/java/org/apache/tuscany/sca/implementation/bpel/impl/BPELProcessDefinitionImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-bpel/src/main/java/org/apache/tuscany/sca/implementation/bpel/xml/BPELDocumentModelResolver.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-bpel/src/main/java/org/apache/tuscany/sca/implementation/bpel/xml/BPELDocumentProcessor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-bpel/src/main/java/org/apache/tuscany/sca/implementation/bpel/xml/BPELImplementationProcessor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-bpel/src/main/java/org/apache/tuscany/sca/implementation/bpel/xml/BPELImportElement.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-bpel/src/main/java/org/apache/tuscany/sca/implementation/bpel/xml/BPELPartnerLinkElement.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-bpel/src/main/java/org/apache/tuscany/sca/implementation/bpel/xml/BPELPartnerLinkTypeElement.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-bpel/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessor create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-bpel/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.processor.URLArtifactProcessor create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-bpel/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.resolver.ModelResolver create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-bpel/src/main/resources/META-INF/services/org.apache.tuscany.sca.implementation.bpel.BPELFactory create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-bpel/src/main/resources/impl-bpel-validation-messages.properties create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-bpel/src/test/java/org/apache/tuscany/sca/implementation/bpel/BPELDocumentProcessorTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-bpel/src/test/java/org/apache/tuscany/sca/implementation/bpel/BPELImplementationProcessorTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-bpel/src/test/resources/helloworld/helloworld.bpel create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-bpel/src/test/resources/helloworld/helloworld.wsdl create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-ejb/LICENSE create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-ejb/NOTICE create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-ejb/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-ejb/src/main/java/org/apache/tuscany/sca/implementation/ejb/EJBImplementation.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-ejb/src/main/java/org/apache/tuscany/sca/implementation/ejb/EJBImplementationFactory.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-ejb/src/main/java/org/apache/tuscany/sca/implementation/ejb/impl/EJBImplementationFactoryImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-ejb/src/main/java/org/apache/tuscany/sca/implementation/ejb/impl/EJBImplementationImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-ejb/src/main/java/org/apache/tuscany/sca/implementation/ejb/xml/EJBImplementationProcessor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-ejb/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessor create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-ejb/src/main/resources/META-INF/services/org.apache.tuscany.sca.implementation.ejb.EJBImplementationFactory create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-ejb/src/main/resources/impl-ejb-validation-messages.properties create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-ejb/src/test/java/org/apache/tuscany/sca/implementation/ejb/xml/ReadTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-ejb/src/test/java/org/apache/tuscany/sca/implementation/ejb/xml/WriteTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-ejb/src/test/resources/org/apache/tuscany/sca/implementation/ejb/xml/TestEJB.composite create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-java-runtime/LICENSE create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-java-runtime/NOTICE create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-java-runtime/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-java-runtime/src/main/java/org/apache/tuscany/sca/implementation/java/context/InstanceFactory.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-java-runtime/src/main/java/org/apache/tuscany/sca/implementation/java/context/InstanceFactoryProvider.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-java-runtime/src/main/java/org/apache/tuscany/sca/implementation/java/context/ReflectiveInstanceFactory.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-java-runtime/src/main/java/org/apache/tuscany/sca/implementation/java/context/ReflectiveInstanceWrapper.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-java-runtime/src/main/java/org/apache/tuscany/sca/implementation/java/injection/ArrayMultiplicityObjectFactory.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-java-runtime/src/main/java/org/apache/tuscany/sca/implementation/java/injection/ContextInjector.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-java-runtime/src/main/java/org/apache/tuscany/sca/implementation/java/injection/ConversationIDObjectFactory.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-java-runtime/src/main/java/org/apache/tuscany/sca/implementation/java/injection/FieldInjector.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-java-runtime/src/main/java/org/apache/tuscany/sca/implementation/java/injection/InjectionRuntimeException.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-java-runtime/src/main/java/org/apache/tuscany/sca/implementation/java/injection/Injector.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-java-runtime/src/main/java/org/apache/tuscany/sca/implementation/java/injection/InvalidAccessorException.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-java-runtime/src/main/java/org/apache/tuscany/sca/implementation/java/injection/JavaPropertyValueObjectFactory.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-java-runtime/src/main/java/org/apache/tuscany/sca/implementation/java/injection/ListMultiplicityObjectFactory.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-java-runtime/src/main/java/org/apache/tuscany/sca/implementation/java/injection/MethodInjector.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-java-runtime/src/main/java/org/apache/tuscany/sca/implementation/java/injection/RequestContextObjectFactory.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-java-runtime/src/main/java/org/apache/tuscany/sca/implementation/java/injection/ResourceHost.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-java-runtime/src/main/java/org/apache/tuscany/sca/implementation/java/injection/ResourceNotFoundException.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-java-runtime/src/main/java/org/apache/tuscany/sca/implementation/java/injection/ResourceObjectFactory.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-java-runtime/src/main/java/org/apache/tuscany/sca/implementation/java/injection/ResourceResolutionException.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-java-runtime/src/main/java/org/apache/tuscany/sca/implementation/java/invocation/EventInvocationException.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-java-runtime/src/main/java/org/apache/tuscany/sca/implementation/java/invocation/EventInvoker.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-java-runtime/src/main/java/org/apache/tuscany/sca/implementation/java/invocation/InvalidConversationSequenceException.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-java-runtime/src/main/java/org/apache/tuscany/sca/implementation/java/invocation/JavaCallbackRuntimeWireProcessor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-java-runtime/src/main/java/org/apache/tuscany/sca/implementation/java/invocation/JavaComponentContextFactory.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-java-runtime/src/main/java/org/apache/tuscany/sca/implementation/java/invocation/JavaComponentContextProvider.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-java-runtime/src/main/java/org/apache/tuscany/sca/implementation/java/invocation/JavaComponentNameFactory.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-java-runtime/src/main/java/org/apache/tuscany/sca/implementation/java/invocation/JavaImplementationInvoker.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-java-runtime/src/main/java/org/apache/tuscany/sca/implementation/java/invocation/JavaImplementationProvider.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-java-runtime/src/main/java/org/apache/tuscany/sca/implementation/java/invocation/JavaImplementationProviderFactory.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-java-runtime/src/main/java/org/apache/tuscany/sca/implementation/java/invocation/JavaInstanceFactoryProvider.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-java-runtime/src/main/java/org/apache/tuscany/sca/implementation/java/invocation/JavaPolicyHandlingRuntimeWireProcessor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-java-runtime/src/main/java/org/apache/tuscany/sca/implementation/java/invocation/MethodEventInvoker.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-java-runtime/src/main/java/org/apache/tuscany/sca/implementation/java/invocation/NoConversationalContractException.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-java-runtime/src/main/java/org/apache/tuscany/sca/implementation/java/invocation/PolicyHandlingInterceptor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-java-runtime/src/main/java/org/apache/tuscany/sca/implementation/java/module/JavaRuntimeModuleActivator.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-java-runtime/src/main/resources/META-INF/services/org.apache.tuscany.sca.context.PropertyValueFactory create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-java-runtime/src/main/resources/META-INF/services/org.apache.tuscany.sca.core.ModuleActivator create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-java-runtime/src/test/java/org/apache/tuscany/sca/implementation/java/context/MultiplicityTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-java-runtime/src/test/java/org/apache/tuscany/sca/implementation/java/context/ReflectiveInstanceWrapperTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-java-runtime/src/test/java/org/apache/tuscany/sca/implementation/java/injection/CallbackWireObjectFactoryTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-java-runtime/src/test/java/org/apache/tuscany/sca/implementation/java/injection/FieldInjectorTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-java-runtime/src/test/java/org/apache/tuscany/sca/implementation/java/injection/JavaPropertyValueObjectFactoryTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-java-runtime/src/test/java/org/apache/tuscany/sca/implementation/java/injection/MethodEventInvokerTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-java-runtime/src/test/java/org/apache/tuscany/sca/implementation/java/injection/MethodInjectorTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-java-runtime/src/test/java/org/apache/tuscany/sca/implementation/java/injection/RequestContextObjectFactoryTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-java-runtime/src/test/java/org/apache/tuscany/sca/implementation/java/injection/ResourceObjectFactoryTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-java-runtime/src/test/java/org/apache/tuscany/sca/implementation/java/injection/SingletonObjectFactory.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-java-runtime/src/test/java/org/apache/tuscany/sca/implementation/java/injection/SingletonObjectFactoryTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-java-runtime/src/test/java/org/apache/tuscany/sca/implementation/java/injection/TestObjectFactory.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-java-runtime/src/test/java/org/apache/tuscany/sca/implementation/java/injection/TestObjectFactoryTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-java-runtime/src/test/java/org/apache/tuscany/sca/implementation/java/util/Bean1.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-java-runtime/src/test/java/org/apache/tuscany/sca/implementation/java/util/Bean2.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-java-runtime/src/test/java/org/apache/tuscany/sca/implementation/java/util/Entry.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-java-runtime/src/test/java/org/apache/tuscany/sca/implementation/java/util/JavaIntrospectionHelperTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-java-runtime/src/test/java/org/apache/tuscany/sca/implementation/java/util/SuperBean.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-java-xml/LICENSE create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-java-xml/NOTICE create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-java-xml/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-java-xml/src/main/java/org/apache/tuscany/sca/implementation/java/xml/JavaImplementationConstants.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-java-xml/src/main/java/org/apache/tuscany/sca/implementation/java/xml/JavaImplementationProcessor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-java-xml/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessor create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-java-xml/src/main/resources/impl-javaxml-validation-messages.properties create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-java-xml/src/test/java/calculator/AddService.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-java-xml/src/test/java/calculator/AddServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-java-xml/src/test/java/calculator/CalculatorService.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-java-xml/src/test/java/calculator/CalculatorServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-java-xml/src/test/java/calculator/DivideService.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-java-xml/src/test/java/calculator/DivideServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-java-xml/src/test/java/calculator/MultiplyService.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-java-xml/src/test/java/calculator/MultiplyServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-java-xml/src/test/java/calculator/SubtractService.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-java-xml/src/test/java/calculator/SubtractServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-java-xml/src/test/java/org/apache/tuscany/sca/implementation/java/xml/ReadTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-java-xml/src/test/java/org/apache/tuscany/sca/implementation/java/xml/TestModelResolver.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-java-xml/src/test/java/org/apache/tuscany/sca/implementation/java/xml/WriteTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-java-xml/src/test/resources/org/apache/tuscany/sca/implementation/java/xml/Calculator.composite create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-java-xml/src/test/resources/org/apache/tuscany/sca/implementation/java/xml/definitions.xml create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-java-xml/src/test/resources/org/apache/tuscany/sca/implementation/java/xml/definitions_with_policysets.xml create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-java/LICENSE create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-java/NOTICE create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-java/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/BaseJavaImplementation.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/DefaultJavaImplementationFactory.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/IntrospectionException.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/JavaImplementation.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/JavaImplementationFactory.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/impl/BaseJavaImplementationImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/impl/JavaClassIntrospectorImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/impl/JavaConstructorImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/impl/JavaElementImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/impl/JavaImplementationActivator.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/impl/JavaImplementationFactoryImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/impl/JavaImplementationImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/impl/JavaParameterImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/impl/JavaResourceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/impl/JavaScopeImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/introspect/JavaClassVisitor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/introspect/impl/AbstractPropertyProcessor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/introspect/impl/AllowsPassByReferenceProcessor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/introspect/impl/AmbiguousConstructorException.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/introspect/impl/BaseJavaClassVisitor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/introspect/impl/ComponentNameProcessor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/introspect/impl/ConstructorProcessor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/introspect/impl/ContextProcessor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/introspect/impl/ConversationIDProcessor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/introspect/impl/ConversationProcessor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/introspect/impl/DestroyProcessor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/introspect/impl/DuplicateConstructorException.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/introspect/impl/DuplicateDestructorException.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/introspect/impl/DuplicateInitException.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/introspect/impl/DuplicatePropertyException.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/introspect/impl/DuplicateReferenceException.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/introspect/impl/DuplicateResourceException.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/introspect/impl/EagerInitProcessor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/introspect/impl/HeuristicPojoProcessor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/introspect/impl/IllegalCallbackReferenceException.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/introspect/impl/IllegalContextException.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/introspect/impl/IllegalDestructorException.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/introspect/impl/IllegalInitException.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/introspect/impl/IllegalPropertyException.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/introspect/impl/IllegalReferenceException.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/introspect/impl/IllegalResourceException.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/introspect/impl/IllegalServiceDefinitionException.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/introspect/impl/InitProcessor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/introspect/impl/InvalidConstructorException.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/introspect/impl/InvalidConversationalImplementation.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/introspect/impl/InvalidPropertyException.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/introspect/impl/InvalidReferenceException.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/introspect/impl/InvalidResourceException.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/introspect/impl/InvalidServiceType.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/introspect/impl/JavaIntrospectionHelper.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/introspect/impl/NoConstructorException.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/introspect/impl/PolicyProcessor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/introspect/impl/PropertyProcessor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/introspect/impl/ReferenceProcessor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/introspect/impl/Resource.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/introspect/impl/ResourceProcessor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/introspect/impl/ScopeProcessor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/introspect/impl/ServiceProcessor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/introspect/impl/ServiceTypeNotFoundException.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/introspect/impl/UnknownContextTypeException.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-java/src/main/resources/META-INF/services/org.apache.tuscany.sca.core.ModuleActivator create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-java/src/main/resources/META-INF/services/org.apache.tuscany.sca.implementation.java.JavaImplementationFactory create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-java/src/test/java/org/apache/tuscany/sca/implementation/java/introspect/impl/AbstractProcessorTest.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-java/src/test/java/org/apache/tuscany/sca/implementation/java/introspect/impl/AbstractPropertyProcessorTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-java/src/test/java/org/apache/tuscany/sca/implementation/java/introspect/impl/AllowsPassByReferenceProcessorTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-java/src/test/java/org/apache/tuscany/sca/implementation/java/introspect/impl/ConstructorProcessorTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-java/src/test/java/org/apache/tuscany/sca/implementation/java/introspect/impl/ConstructorPropertyTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-java/src/test/java/org/apache/tuscany/sca/implementation/java/introspect/impl/ConstructorReferenceTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-java/src/test/java/org/apache/tuscany/sca/implementation/java/introspect/impl/ConstructorResourceTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-java/src/test/java/org/apache/tuscany/sca/implementation/java/introspect/impl/ContextProcessorTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-java/src/test/java/org/apache/tuscany/sca/implementation/java/introspect/impl/ConversationIDProcessorTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-java/src/test/java/org/apache/tuscany/sca/implementation/java/introspect/impl/ConversationProcessorTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-java/src/test/java/org/apache/tuscany/sca/implementation/java/introspect/impl/ConvertTimeMillisTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-java/src/test/java/org/apache/tuscany/sca/implementation/java/introspect/impl/DestroyProcessorTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-java/src/test/java/org/apache/tuscany/sca/implementation/java/introspect/impl/EagerInitProcessorTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-java/src/test/java/org/apache/tuscany/sca/implementation/java/introspect/impl/HeuristicAndPropertyTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-java/src/test/java/org/apache/tuscany/sca/implementation/java/introspect/impl/HeuristicConstructorTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-java/src/test/java/org/apache/tuscany/sca/implementation/java/introspect/impl/HeuristicPojoProcessorTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-java/src/test/java/org/apache/tuscany/sca/implementation/java/introspect/impl/HeutisticExtensibleConstructorTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-java/src/test/java/org/apache/tuscany/sca/implementation/java/introspect/impl/InitProcessorTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-java/src/test/java/org/apache/tuscany/sca/implementation/java/introspect/impl/JavaClassIntrospectorImplTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-java/src/test/java/org/apache/tuscany/sca/implementation/java/introspect/impl/ModelHelper.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-java/src/test/java/org/apache/tuscany/sca/implementation/java/introspect/impl/PolicyProcessorTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-java/src/test/java/org/apache/tuscany/sca/implementation/java/introspect/impl/PropertyProcessorTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-java/src/test/java/org/apache/tuscany/sca/implementation/java/introspect/impl/ReferenceProcessorTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-java/src/test/java/org/apache/tuscany/sca/implementation/java/introspect/impl/ResourceProcessorTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-java/src/test/java/org/apache/tuscany/sca/implementation/java/introspect/impl/ScopeProcessorTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-java/src/test/java/org/apache/tuscany/sca/implementation/java/introspect/impl/ServiceCallbackTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-java/src/test/java/org/apache/tuscany/sca/implementation/java/introspect/impl/ServiceProcessorTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-jee/LICENSE create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-jee/NOTICE create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-jee/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-jee/src/main/java/org/apache/tuscany/sca/implementation/jee/JEEImplementation.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-jee/src/main/java/org/apache/tuscany/sca/implementation/jee/JEEImplementationFactory.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-jee/src/main/java/org/apache/tuscany/sca/implementation/jee/impl/JEEImplementationFactoryImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-jee/src/main/java/org/apache/tuscany/sca/implementation/jee/impl/JEEImplementationImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-jee/src/main/java/org/apache/tuscany/sca/implementation/jee/xml/JEEImplementationProcessor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-jee/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessor create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-jee/src/main/resources/META-INF/services/org.apache.tuscany.sca.implementation.jee.JEEImplementationFactory create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-jee/src/test/java/org/apache/tuscany/sca/implementation/jee/xml/ReadTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-jee/src/test/java/org/apache/tuscany/sca/implementation/jee/xml/WriteTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-jee/src/test/java/test/Helloworld.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-jee/src/test/java/test/MockImplementationProviderFactory.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-jee/src/test/resources/META-INF/services/org.apache.tuscany.sca.provider.ImplementationProviderFactory create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-jee/src/test/resources/org/apache/tuscany/sca/implementation/jee/xml/TestJEE.composite create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-node-runtime/LICENSE create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-node-runtime/NOTICE create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-node-runtime/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-node-runtime/src/main/java/org/apache/tuscany/sca/implementation/node/launcher/NodeImplementationDaemonBootstrap.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-node-runtime/src/main/java/org/apache/tuscany/sca/implementation/node/launcher/NodeImplementationLauncherBootstrap.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-node-runtime/src/main/java/org/apache/tuscany/sca/implementation/node/launcher/NodeImplementationLauncherUtil.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-node-runtime/src/main/java/org/apache/tuscany/sca/implementation/node/provider/NodeImplementationInvoker.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-node-runtime/src/main/java/org/apache/tuscany/sca/implementation/node/provider/NodeImplementationProvider.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-node-runtime/src/main/java/org/apache/tuscany/sca/implementation/node/provider/NodeImplementationProviderFactory.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-node-runtime/src/main/java/org/apache/tuscany/sca/implementation/node/webapp/NodeWebAppRequestDispatcher.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-node-runtime/src/main/java/org/apache/tuscany/sca/implementation/node/webapp/NodeWebAppServletHost.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-node-runtime/src/main/resources/META-INF/services/org.apache.tuscany.sca.provider.ImplementationProviderFactory create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-node-runtime/src/test/java/org/apache/tuscany/sca/implementation/node/NodeImplementationTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-node-runtime/src/test/resources/TestComposite.composite create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-node-runtime/src/test/resources/TestNode.composite create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-node/LICENSE create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-node/NOTICE create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-node/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-node/src/main/java/org/apache/tuscany/sca/implementation/node/ConfiguredNodeImplementation.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-node/src/main/java/org/apache/tuscany/sca/implementation/node/NodeImplementation.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-node/src/main/java/org/apache/tuscany/sca/implementation/node/NodeImplementationFactory.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-node/src/main/java/org/apache/tuscany/sca/implementation/node/builder/impl/NodeCompositeBuilderImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-node/src/main/java/org/apache/tuscany/sca/implementation/node/impl/ConfiguredNodeImplementationImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-node/src/main/java/org/apache/tuscany/sca/implementation/node/impl/NodeImplementationFactoryImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-node/src/main/java/org/apache/tuscany/sca/implementation/node/impl/NodeImplementationImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-node/src/main/java/org/apache/tuscany/sca/implementation/node/xml/ConfiguredNodeImplementationProcessor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-node/src/main/java/org/apache/tuscany/sca/implementation/node/xml/NodeImplementationProcessor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-node/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessor create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-node/src/main/resources/META-INF/services/org.apache.tuscany.sca.implementation.node.NodeImplementationFactory create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-node/src/test/java/org/apache/tuscany/sca/implementation/node/builder/impl/CalculateBindingURITestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-node/src/test/java/org/apache/tuscany/sca/implementation/node/xml/ReadTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-node/src/test/java/org/apache/tuscany/sca/implementation/node/xml/WriteTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-node/src/test/resources/org/apache/tuscany/sca/implementation/node/xml/TestComposite.composite create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-node/src/test/resources/org/apache/tuscany/sca/implementation/node/xml/TestNode.composite create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-notification/LICENSE create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-notification/NOTICE create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-notification/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-notification/src/main/java/org/apache/tuscany/sca/implementation/notification/DefaultNotificationImplementationFactory.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-notification/src/main/java/org/apache/tuscany/sca/implementation/notification/ImmutableMessage.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-notification/src/main/java/org/apache/tuscany/sca/implementation/notification/NotificationComponentInvoker.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-notification/src/main/java/org/apache/tuscany/sca/implementation/notification/NotificationImplementationFactory.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-notification/src/main/java/org/apache/tuscany/sca/implementation/notification/NotificationImplementationImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-notification/src/main/java/org/apache/tuscany/sca/implementation/notification/NotificationImplementationProcessor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-notification/src/main/java/org/apache/tuscany/sca/implementation/notification/NotificationImplementationProvider.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-notification/src/main/java/org/apache/tuscany/sca/implementation/notification/NotificationImplementationProviderFactory.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-notification/src/main/java/org/apache/tuscany/sca/implementation/notification/NotificationModuleActivator.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-notification/src/main/resources/META-INF/services/org.apache.tuscany.sca.core.ModuleActivator create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-notification/src/test/java/org/apache/tuscany/sca/implementation/notification/NotificationComponentTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-notification/src/test/java/org/apache/tuscany/sca/implementation/notification/NotificationImplementationLoaderTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-notification/src/test/resources/TrafficAdvisoryNotificationTestCase.componentType create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-osgi/LICENSE create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-osgi/NOTICE create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-osgi/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-osgi/src/main/java/org/apache/tuscany/sca/implementation/osgi/OSGiImplementation.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-osgi/src/main/java/org/apache/tuscany/sca/implementation/osgi/context/OSGiAnnotations.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-osgi/src/main/java/org/apache/tuscany/sca/implementation/osgi/context/OSGiPropertyInjector.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-osgi/src/main/java/org/apache/tuscany/sca/implementation/osgi/context/OSGiPropertyValueObjectFactory.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-osgi/src/main/java/org/apache/tuscany/sca/implementation/osgi/impl/OSGiImplementationImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-osgi/src/main/java/org/apache/tuscany/sca/implementation/osgi/runtime/OSGiImplementationProvider.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-osgi/src/main/java/org/apache/tuscany/sca/implementation/osgi/runtime/OSGiImplementationProviderFactory.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-osgi/src/main/java/org/apache/tuscany/sca/implementation/osgi/runtime/OSGiInstanceWrapper.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-osgi/src/main/java/org/apache/tuscany/sca/implementation/osgi/runtime/OSGiRemotableInvoker.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-osgi/src/main/java/org/apache/tuscany/sca/implementation/osgi/runtime/OSGiTargetInvoker.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-osgi/src/main/java/org/apache/tuscany/sca/implementation/osgi/xml/OSGiImplementationProcessor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-osgi/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessor create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-osgi/src/main/resources/META-INF/services/org.apache.tuscany.sca.provider.ImplementationProviderFactory create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-osgi/src/main/resources/impl-osgi-validation-messages.properties create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-osgi/src/test/java/org/apache/tuscany/sca/implementation/osgi/runtime/OSGiPropertyTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-osgi/src/test/java/org/apache/tuscany/sca/implementation/osgi/runtime/OSGiTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-osgi/src/test/java/org/apache/tuscany/sca/implementation/osgi/test/OSGiTestBundles.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-osgi/src/test/java/org/apache/tuscany/sca/implementation/osgi/test/OSGiTestImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-osgi/src/test/java/org/apache/tuscany/sca/implementation/osgi/test/OSGiTestInterface.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-osgi/src/test/java/org/apache/tuscany/sca/implementation/osgi/test/OSGiTestWithPropertyImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-osgi/src/test/java/org/apache/tuscany/sca/implementation/osgi/xml/OSGiReadImplTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-osgi/src/test/java/org/apache/tuscany/sca/implementation/osgi/xml/TestModelResolver.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-osgi/src/test/resources/OSGiTestService.componentType create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-osgi/src/test/resources/osgiproptest.composite create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-osgi/src/test/resources/osgitest.composite create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-resource-runtime/LICENSE create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-resource-runtime/NOTICE create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-resource-runtime/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-resource-runtime/src/main/java/org/apache/tuscany/sca/implementation/resource/provider/GetResourceInvoker.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-resource-runtime/src/main/java/org/apache/tuscany/sca/implementation/resource/provider/ResourceImplementationProvider.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-resource-runtime/src/main/java/org/apache/tuscany/sca/implementation/resource/provider/ResourceImplementationProviderFactory.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-resource-runtime/src/main/resources/META-INF/services/org.apache.tuscany.sca.provider.ImplementationProviderFactory create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-resource-runtime/src/test/java/org/apache/tuscany/sca/implementation/resource/ResourceImplementationTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-resource-runtime/src/test/resources/content/test.html create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-resource-runtime/src/test/resources/resource.composite create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-resource/LICENSE create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-resource/NOTICE create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-resource/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-resource/src/main/java/org/apache/tuscany/sca/implementation/resource/Resource.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-resource/src/main/java/org/apache/tuscany/sca/implementation/resource/ResourceImplementation.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-resource/src/main/java/org/apache/tuscany/sca/implementation/resource/ResourceImplementationFactory.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-resource/src/main/java/org/apache/tuscany/sca/implementation/resource/impl/ResourceImplementationFactoryImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-resource/src/main/java/org/apache/tuscany/sca/implementation/resource/impl/ResourceImplementationImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-resource/src/main/java/org/apache/tuscany/sca/implementation/resource/impl/ResourceImplementationProcessor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-resource/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessor create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-resource/src/main/resources/META-INF/services/org.apache.tuscany.sca.implementation.resource.ResourceImplementationFactory create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-resource/src/main/resources/impl-resource-validation-messages.properties create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-script/LICENSE create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-script/NOTICE create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-script/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-script/src/main/java/org/apache/tuscany/sca/implementation/script/ScriptImplementation.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-script/src/main/java/org/apache/tuscany/sca/implementation/script/ScriptImplementationActivator.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-script/src/main/java/org/apache/tuscany/sca/implementation/script/ScriptInvoker.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-script/src/main/java/org/apache/tuscany/sca/implementation/script/ScriptInvokerFactory.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-script/src/main/java/org/apache/tuscany/sca/implementation/script/engines/TuscanyJRubyScriptEngine.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-script/src/main/resources/META-INF/services/org.apache.tuscany.sca.extension.helper.ImplementationActivator create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-script/src/test/java/org/apache/tuscany/sca/implementation/script/itests/AbstractSCATestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-script/src/test/java/org/apache/tuscany/sca/implementation/script/itests/dynamic/AbstractHelloWorldTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-script/src/test/java/org/apache/tuscany/sca/implementation/script/itests/dynamic/HelloWorld.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-script/src/test/java/org/apache/tuscany/sca/implementation/script/itests/dynamic/JavaScriptDynamicRefTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-script/src/test/java/org/apache/tuscany/sca/implementation/script/itests/dynamic/JavaScriptHelloWorldTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-script/src/test/java/org/apache/tuscany/sca/implementation/script/itests/helloworld/AbstractHelloWorldTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-script/src/test/java/org/apache/tuscany/sca/implementation/script/itests/helloworld/GroovyHelloWorldTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-script/src/test/java/org/apache/tuscany/sca/implementation/script/itests/helloworld/HelloWorld.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-script/src/test/java/org/apache/tuscany/sca/implementation/script/itests/helloworld/HelloWorldProxy.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-script/src/test/java/org/apache/tuscany/sca/implementation/script/itests/helloworld/JRubyHelloWorldTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-script/src/test/java/org/apache/tuscany/sca/implementation/script/itests/helloworld/JavaScripInlineHelloWorldTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-script/src/test/java/org/apache/tuscany/sca/implementation/script/itests/helloworld/JavaScriptHelloWorldTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-script/src/test/java/org/apache/tuscany/sca/implementation/script/itests/helloworld/JythonHelloWorldTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-script/src/test/java/org/apache/tuscany/sca/implementation/script/itests/properties/AbstractHelloWorldTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-script/src/test/java/org/apache/tuscany/sca/implementation/script/itests/properties/GroovyHelloWorldTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-script/src/test/java/org/apache/tuscany/sca/implementation/script/itests/properties/HelloWorld.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-script/src/test/java/org/apache/tuscany/sca/implementation/script/itests/properties/HelloWorldProxy.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-script/src/test/java/org/apache/tuscany/sca/implementation/script/itests/properties/JRubyHelloWorldTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-script/src/test/java/org/apache/tuscany/sca/implementation/script/itests/properties/JavaScriptHelloWorldTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-script/src/test/java/org/apache/tuscany/sca/implementation/script/itests/properties/JythonHelloWorldTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-script/src/test/java/org/apache/tuscany/sca/implementation/script/itests/references/GroovyReferenceTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-script/src/test/java/org/apache/tuscany/sca/implementation/script/itests/references/HelloWorldTarget.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-script/src/test/java/org/apache/tuscany/sca/implementation/script/itests/references/JRubyReferenceTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-script/src/test/java/org/apache/tuscany/sca/implementation/script/itests/references/JavaScriptReferenceTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-script/src/test/java/org/apache/tuscany/sca/implementation/script/itests/references/JythonReferenceTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-script/src/test/resources/org/apache/tuscany/sca/implementation/script/itests/dynamic/JavaScriptDynamicRef.composite create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-script/src/test/resources/org/apache/tuscany/sca/implementation/script/itests/dynamic/JavaScriptHelloWorld.composite create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-script/src/test/resources/org/apache/tuscany/sca/implementation/script/itests/dynamic/helloworld.js create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-script/src/test/resources/org/apache/tuscany/sca/implementation/script/itests/dynamic/helloworldProxy.js create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-script/src/test/resources/org/apache/tuscany/sca/implementation/script/itests/helloworld/GroovyHelloWorld.composite create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-script/src/test/resources/org/apache/tuscany/sca/implementation/script/itests/helloworld/JRubyHelloWorld.composite create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-script/src/test/resources/org/apache/tuscany/sca/implementation/script/itests/helloworld/JavaScripInlineHelloWorld.composite create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-script/src/test/resources/org/apache/tuscany/sca/implementation/script/itests/helloworld/JavaScriptHelloWorld.composite create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-script/src/test/resources/org/apache/tuscany/sca/implementation/script/itests/helloworld/JythonHelloWorld.composite create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-script/src/test/resources/org/apache/tuscany/sca/implementation/script/itests/helloworld/helloworld.componentType create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-script/src/test/resources/org/apache/tuscany/sca/implementation/script/itests/helloworld/helloworld.groovy create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-script/src/test/resources/org/apache/tuscany/sca/implementation/script/itests/helloworld/helloworld.js create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-script/src/test/resources/org/apache/tuscany/sca/implementation/script/itests/helloworld/helloworld.py create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-script/src/test/resources/org/apache/tuscany/sca/implementation/script/itests/helloworld/helloworld.rb create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-script/src/test/resources/org/apache/tuscany/sca/implementation/script/itests/properties/GroovyHelloWorld.composite create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-script/src/test/resources/org/apache/tuscany/sca/implementation/script/itests/properties/JRubyHelloWorld.composite create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-script/src/test/resources/org/apache/tuscany/sca/implementation/script/itests/properties/JavaScriptHelloWorld.composite create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-script/src/test/resources/org/apache/tuscany/sca/implementation/script/itests/properties/JythonHelloWorld.composite create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-script/src/test/resources/org/apache/tuscany/sca/implementation/script/itests/properties/helloworld.componentType create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-script/src/test/resources/org/apache/tuscany/sca/implementation/script/itests/properties/helloworld.groovy create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-script/src/test/resources/org/apache/tuscany/sca/implementation/script/itests/properties/helloworld.js create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-script/src/test/resources/org/apache/tuscany/sca/implementation/script/itests/properties/helloworld.py create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-script/src/test/resources/org/apache/tuscany/sca/implementation/script/itests/properties/helloworld.rb create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-script/src/test/resources/org/apache/tuscany/sca/implementation/script/itests/references/GroovyReference.composite create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-script/src/test/resources/org/apache/tuscany/sca/implementation/script/itests/references/JRubyReference.composite create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-script/src/test/resources/org/apache/tuscany/sca/implementation/script/itests/references/JavaScriptReference.composite create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-script/src/test/resources/org/apache/tuscany/sca/implementation/script/itests/references/JythonReference.composite create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-script/src/test/resources/org/apache/tuscany/sca/implementation/script/itests/references/reference.componentType create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-script/src/test/resources/org/apache/tuscany/sca/implementation/script/itests/references/reference.groovy create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-script/src/test/resources/org/apache/tuscany/sca/implementation/script/itests/references/reference.js create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-script/src/test/resources/org/apache/tuscany/sca/implementation/script/itests/references/reference.py create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-script/src/test/resources/org/apache/tuscany/sca/implementation/script/itests/references/reference.rb create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-spring-runtime/LICENSE create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-spring-runtime/NOTICE create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-spring-runtime/README create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-spring-runtime/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-spring-runtime/src/main/java/org/apache/tuscany/sca/implementation/spring/namespace/SCANamespaceHandlerResolver.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-spring-runtime/src/main/java/org/apache/tuscany/sca/implementation/spring/namespace/ScaNamespaceHandler.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-spring-runtime/src/main/java/org/apache/tuscany/sca/implementation/spring/namespace/ScaPropertyBeanDefinitionParser.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-spring-runtime/src/main/java/org/apache/tuscany/sca/implementation/spring/namespace/ScaReferenceBeanDefinitionParser.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-spring-runtime/src/main/java/org/apache/tuscany/sca/implementation/spring/namespace/ScaServiceBeanDefinitionParser.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-spring-runtime/src/main/java/org/apache/tuscany/sca/implementation/spring/processor/ComponentNameAnnotationProcessor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-spring-runtime/src/main/java/org/apache/tuscany/sca/implementation/spring/processor/ComponentStub.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-spring-runtime/src/main/java/org/apache/tuscany/sca/implementation/spring/processor/ConstructorAnnotationProcessor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-spring-runtime/src/main/java/org/apache/tuscany/sca/implementation/spring/processor/InitDestroyAnnotationProcessor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-spring-runtime/src/main/java/org/apache/tuscany/sca/implementation/spring/processor/PropertyAnnotationProcessor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-spring-runtime/src/main/java/org/apache/tuscany/sca/implementation/spring/processor/PropertyValueStub.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-spring-runtime/src/main/java/org/apache/tuscany/sca/implementation/spring/processor/ReferenceAnnotationProcessor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-spring-runtime/src/main/java/org/apache/tuscany/sca/implementation/spring/runtime/context/SCAParentApplicationContext.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-spring-runtime/src/main/java/org/apache/tuscany/sca/implementation/spring/runtime/context/SpringContextTie.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-spring-runtime/src/main/java/org/apache/tuscany/sca/implementation/spring/runtime/context/SpringImplementationStub.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-spring-runtime/src/main/resources/META-INF/spring.handlers create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-spring-runtime/src/main/resources/META-INF/spring.schemas create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-spring-runtime/src/main/resources/org/springframework/sca/xml/spring-sca.xsd create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-spring/LICENSE create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-spring/NOTICE create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-spring/README create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-spring/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-spring/src/main/java/org/apache/tuscany/sca/implementation/spring/SpringBeanElement.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-spring/src/main/java/org/apache/tuscany/sca/implementation/spring/SpringConstructorArgElement.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-spring/src/main/java/org/apache/tuscany/sca/implementation/spring/SpringImplementation.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-spring/src/main/java/org/apache/tuscany/sca/implementation/spring/SpringImplementationConstants.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-spring/src/main/java/org/apache/tuscany/sca/implementation/spring/SpringPropertyElement.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-spring/src/main/java/org/apache/tuscany/sca/implementation/spring/SpringSCAPropertyElement.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-spring/src/main/java/org/apache/tuscany/sca/implementation/spring/SpringSCAReferenceElement.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-spring/src/main/java/org/apache/tuscany/sca/implementation/spring/SpringSCAServiceElement.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-spring/src/main/java/org/apache/tuscany/sca/implementation/spring/introspect/SpringBeanIntrospector.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-spring/src/main/java/org/apache/tuscany/sca/implementation/spring/introspect/SpringBeanPojoProcessor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-spring/src/main/java/org/apache/tuscany/sca/implementation/spring/introspect/SpringXMLComponentTypeLoader.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-spring/src/main/java/org/apache/tuscany/sca/implementation/spring/invocation/ComponentTie.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-spring/src/main/java/org/apache/tuscany/sca/implementation/spring/invocation/ConfigurationPropertiesExtensionPoint.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-spring/src/main/java/org/apache/tuscany/sca/implementation/spring/invocation/DefaultConfigurationPropertiesExtensionPoint.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-spring/src/main/java/org/apache/tuscany/sca/implementation/spring/invocation/PropertyValueTie.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-spring/src/main/java/org/apache/tuscany/sca/implementation/spring/invocation/SpringContextStub.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-spring/src/main/java/org/apache/tuscany/sca/implementation/spring/invocation/SpringImplementationProvider.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-spring/src/main/java/org/apache/tuscany/sca/implementation/spring/invocation/SpringImplementationProviderFactory.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-spring/src/main/java/org/apache/tuscany/sca/implementation/spring/invocation/SpringImplementationTie.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-spring/src/main/java/org/apache/tuscany/sca/implementation/spring/invocation/SpringInvocationException.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-spring/src/main/java/org/apache/tuscany/sca/implementation/spring/invocation/SpringInvoker.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-spring/src/main/java/org/apache/tuscany/sca/implementation/spring/xml/SpringImplementationProcessor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-spring/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessor create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-spring/src/main/resources/META-INF/services/org.apache.tuscany.sca.implementation.spring.ConfigurationPropertiesExtensionPoint create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-spring/src/main/resources/META-INF/services/org.apache.tuscany.sca.provider.ImplementationProviderFactory create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-spring/src/main/resources/impl-spring-validation-messages.properties create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-web-runtime/LICENSE create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-web-runtime/NOTICE create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-web-runtime/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-web-runtime/src/main/java/org/apache/tuscany/sca/implementation/web/ComponentContextServlet.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-web-runtime/src/main/java/org/apache/tuscany/sca/implementation/web/ContextScriptProcessor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-web-runtime/src/main/java/org/apache/tuscany/sca/implementation/web/ContextScriptProcessorExtensionPoint.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-web-runtime/src/main/java/org/apache/tuscany/sca/implementation/web/DefaultContextScriptProcessorExtensionPoint.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-web-runtime/src/main/java/org/apache/tuscany/sca/implementation/web/JSONRPCScripProcessor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-web-runtime/src/main/java/org/apache/tuscany/sca/implementation/web/runtime/ComponentContextProxy.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-web-runtime/src/main/java/org/apache/tuscany/sca/implementation/web/runtime/WebImplementationProviderFactory.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-web-runtime/src/main/resources/META-INF/services/org.apache.tuscany.sca.implementation.web.ContextScriptProcessorExtensionPoint create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-web-runtime/src/main/resources/META-INF/services/org.apache.tuscany.sca.provider.ImplementationProviderFactory create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-web-runtime/src/main/resources/jsonrpc.js create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-web/LICENSE create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-web/NOTICE create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-web/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-web/src/main/java/org/apache/tuscany/sca/implementation/web/WebImplementation.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-web/src/main/java/org/apache/tuscany/sca/implementation/web/WebImplementationFactory.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-web/src/main/java/org/apache/tuscany/sca/implementation/web/impl/WebImplementationFactoryImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-web/src/main/java/org/apache/tuscany/sca/implementation/web/impl/WebImplementationImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-web/src/main/java/org/apache/tuscany/sca/implementation/web/introspect/PropertyProcessor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-web/src/main/java/org/apache/tuscany/sca/implementation/web/introspect/ReferenceProcessor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-web/src/main/java/org/apache/tuscany/sca/implementation/web/xml/WebImplementationProcessor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-web/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessor create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-web/src/main/resources/META-INF/services/org.apache.tuscany.sca.implementation.web.WebImplementationFactory create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-web/src/test/java/org/apache/tuscany/sca/implementation/web/xml/ReadTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-web/src/test/java/org/apache/tuscany/sca/implementation/web/xml/WriteTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-web/src/test/resources/org/apache/tuscany/sca/implementation/web/xml/TestWeb.composite create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-widget-runtime-dojo/LICENSE create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-widget-runtime-dojo/NOTICE create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-widget-runtime-dojo/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-widget-runtime-dojo/src/main/java/org/apache/tuscany/sca/implementation/widget/dojo/DojoJavaScriptComponentGeneratorImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-widget-runtime-dojo/src/main/resources/META-INF/services/org.apache.tuscany.sca.web.javascript.ComponentJavaScriptGenerator create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-widget-runtime-tuscany/LICENSE create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-widget-runtime-tuscany/NOTICE create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-widget-runtime-tuscany/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-widget-runtime-tuscany/src/main/java/org/apache/tuscany/sca/implementation/widget/tuscany/TuscanyJavaScriptComponentGeneratorImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-widget-runtime-tuscany/src/main/resources/META-INF/services/org.apache.tuscany.sca.web.javascript.ComponentJavaScriptGenerator create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-widget-runtime-tuscany/src/test/java/org/apache/tuscany/sca/implementation/widget/WidgetImplementationTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-widget-runtime-tuscany/src/test/java/store/Catalog.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-widget-runtime-tuscany/src/test/java/store/CatalogImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-widget-runtime-tuscany/src/test/java/store/ShoppingCartImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-widget-runtime-tuscany/src/test/resources/content/store.html create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-widget-runtime-tuscany/src/test/resources/content/storeJS.html create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-widget-runtime-tuscany/src/test/resources/content/unitTests.html create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-widget-runtime-tuscany/src/test/resources/widget.composite create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-widget-runtime-tuscany/src/test/resources/widgetJS.composite create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-widget-runtime/LICENSE create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-widget-runtime/NOTICE create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-widget-runtime/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-widget-runtime/src/main/java/org/apache/tuscany/sca/implementation/widget/provider/WidgetComponentScriptGenerator.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-widget-runtime/src/main/java/org/apache/tuscany/sca/implementation/widget/provider/WidgetComponentScriptServlet.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-widget-runtime/src/main/java/org/apache/tuscany/sca/implementation/widget/provider/WidgetImplementationInvoker.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-widget-runtime/src/main/java/org/apache/tuscany/sca/implementation/widget/provider/WidgetImplementationProvider.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-widget-runtime/src/main/java/org/apache/tuscany/sca/implementation/widget/provider/WidgetImplementationProviderFactory.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-widget-runtime/src/main/resources/META-INF/services/org.apache.tuscany.sca.provider.ImplementationProviderFactory create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-widget-runtime/src/main/resources/atomModel.js create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-widget-runtime/src/main/resources/binding-http.js create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-widget/LICENSE create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-widget/NOTICE create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-widget/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-widget/src/main/java/org/apache/tuscany/sca/implementation/widget/Widget.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-widget/src/main/java/org/apache/tuscany/sca/implementation/widget/WidgetImplementation.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-widget/src/main/java/org/apache/tuscany/sca/implementation/widget/WidgetImplementationFactory.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-widget/src/main/java/org/apache/tuscany/sca/implementation/widget/WidgetImplementationIntrospector.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-widget/src/main/java/org/apache/tuscany/sca/implementation/widget/WidgetImplementationProcessor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-widget/src/main/java/org/apache/tuscany/sca/implementation/widget/impl/WidgetImplementationFactoryImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-widget/src/main/java/org/apache/tuscany/sca/implementation/widget/impl/WidgetImplementationImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-widget/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessor create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-widget/src/main/resources/META-INF/services/org.apache.tuscany.sca.implementation.widget.WidgetImplementationFactory create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-widget/src/main/resources/impl-widget-validation-messages.properties create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-xquery/LICENSE create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-xquery/NOTICE create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-xquery/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-xquery/src/main/java/org/apache/tuscany/sca/implementation/xquery/XQueryImplementation.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-xquery/src/main/java/org/apache/tuscany/sca/implementation/xquery/XQueryImplementationFactory.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-xquery/src/main/java/org/apache/tuscany/sca/implementation/xquery/XQueryImplementationProvider.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-xquery/src/main/java/org/apache/tuscany/sca/implementation/xquery/XQueryImplementationProviderFactory.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-xquery/src/main/java/org/apache/tuscany/sca/implementation/xquery/XQueryInvokationException.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-xquery/src/main/java/org/apache/tuscany/sca/implementation/xquery/XQueryInvoker.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-xquery/src/main/java/org/apache/tuscany/sca/implementation/xquery/impl/XQueryImplementationFactoryImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-xquery/src/main/java/org/apache/tuscany/sca/implementation/xquery/impl/XQueryImplementationImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-xquery/src/main/java/org/apache/tuscany/sca/implementation/xquery/xml/XQueryImplementationProcessor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-xquery/src/main/java/org/apache/tuscany/sca/implementation/xquery/xml/XQueryIntrospector.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-xquery/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessor create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-xquery/src/main/resources/META-INF/services/org.apache.tuscany.sca.provider.ImplementationProviderFactory create mode 100644 tags/java/sca/1.5.1-RC4/modules/implementation-xquery/src/main/resources/impl-xquery-validation-messages.properties create mode 100644 tags/java/sca/1.5.1-RC4/modules/interface-java-jaxws/LICENSE create mode 100644 tags/java/sca/1.5.1-RC4/modules/interface-java-jaxws/NOTICE create mode 100644 tags/java/sca/1.5.1-RC4/modules/interface-java-jaxws/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/modules/interface-java-jaxws/src/main/java/org/apache/tuscany/sca/interfacedef/java/jaxws/BaseBeanGenerator.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/interface-java-jaxws/src/main/java/org/apache/tuscany/sca/interfacedef/java/jaxws/CodeGenerationHelper.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/interface-java-jaxws/src/main/java/org/apache/tuscany/sca/interfacedef/java/jaxws/FaultBeanGenerator.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/interface-java-jaxws/src/main/java/org/apache/tuscany/sca/interfacedef/java/jaxws/GeneratedClassLoader.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/interface-java-jaxws/src/main/java/org/apache/tuscany/sca/interfacedef/java/jaxws/GeneratedDataTypeImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/interface-java-jaxws/src/main/java/org/apache/tuscany/sca/interfacedef/java/jaxws/JAXWSFaultExceptionMapper.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/interface-java-jaxws/src/main/java/org/apache/tuscany/sca/interfacedef/java/jaxws/JAXWSJavaInterfaceProcessor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/interface-java-jaxws/src/main/java/org/apache/tuscany/sca/interfacedef/java/jaxws/WebServiceInterfaceProcessor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/interface-java-jaxws/src/main/java/org/apache/tuscany/sca/interfacedef/java/jaxws/WrapperBeanGenerator.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/interface-java-jaxws/src/test/java/org/apache/tuscany/sca/interfacedef/java/jaxws/Bean.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/interface-java-jaxws/src/test/java/org/apache/tuscany/sca/interfacedef/java/jaxws/Bean1.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/interface-java-jaxws/src/test/java/org/apache/tuscany/sca/interfacedef/java/jaxws/Bean2.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/interface-java-jaxws/src/test/java/org/apache/tuscany/sca/interfacedef/java/jaxws/FaultBeanGeneratorTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/interface-java-jaxws/src/test/java/org/apache/tuscany/sca/interfacedef/java/jaxws/JAXWSJavaInterfaceProcessorTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/interface-java-jaxws/src/test/java/org/apache/tuscany/sca/interfacedef/java/jaxws/JavaReflectionHelperTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/interface-java-jaxws/src/test/java/org/apache/tuscany/sca/interfacedef/java/jaxws/MyException.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/interface-java-jaxws/src/test/java/org/apache/tuscany/sca/interfacedef/java/jaxws/MyServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/interface-java-jaxws/src/test/java/org/apache/tuscany/sca/interfacedef/java/jaxws/TestGenericClass.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/interface-java-jaxws/src/test/java/org/apache/tuscany/sca/interfacedef/java/jaxws/TestInterface.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/interface-java-jaxws/src/test/java/org/apache/tuscany/sca/interfacedef/java/jaxws/WrapperBeanGeneratorTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/interface-java-jaxws/src/test/resources/wsdl/Stock.wsdl create mode 100644 tags/java/sca/1.5.1-RC4/modules/interface-java-jaxws/src/test/resources/wsdl/StockExceptionTest.wsdl create mode 100644 tags/java/sca/1.5.1-RC4/modules/interface-java-xml/LICENSE create mode 100644 tags/java/sca/1.5.1-RC4/modules/interface-java-xml/NOTICE create mode 100644 tags/java/sca/1.5.1-RC4/modules/interface-java-xml/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/modules/interface-java-xml/src/main/java/org/apache/tuscany/sca/interfacedef/java/xml/JavaConstants.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/interface-java-xml/src/main/java/org/apache/tuscany/sca/interfacedef/java/xml/JavaInterfaceProcessor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/interface-java-xml/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessor create mode 100644 tags/java/sca/1.5.1-RC4/modules/interface-java-xml/src/main/resources/interface-javaxml-validation-messages.properties create mode 100644 tags/java/sca/1.5.1-RC4/modules/interface-java-xml/src/test/java/org/apache/tuscany/sca/interfacedef/java/xml/ReadTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/interface-java-xml/src/test/java/org/apache/tuscany/sca/interfacedef/java/xml/WriteTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/interface-java-xml/src/test/resources/org/apache/tuscany/sca/interfacedef/java/xml/Calculator.composite create mode 100644 tags/java/sca/1.5.1-RC4/modules/interface-java-xml/src/test/resources/org/apache/tuscany/sca/interfacedef/java/xml/CalculatorComponent.constrainingType create mode 100644 tags/java/sca/1.5.1-RC4/modules/interface-java-xml/src/test/resources/org/apache/tuscany/sca/interfacedef/java/xml/CalculatorImpl.componentType create mode 100644 tags/java/sca/1.5.1-RC4/modules/interface-java/LICENSE create mode 100644 tags/java/sca/1.5.1-RC4/modules/interface-java/NOTICE create mode 100644 tags/java/sca/1.5.1-RC4/modules/interface-java/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/modules/interface-java/src/main/java/org/apache/tuscany/sca/interfacedef/java/DefaultJavaInterfaceFactory.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/interface-java/src/main/java/org/apache/tuscany/sca/interfacedef/java/JavaInterface.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/interface-java/src/main/java/org/apache/tuscany/sca/interfacedef/java/JavaInterfaceContract.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/interface-java/src/main/java/org/apache/tuscany/sca/interfacedef/java/JavaInterfaceFactory.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/interface-java/src/main/java/org/apache/tuscany/sca/interfacedef/java/JavaOperation.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/interface-java/src/main/java/org/apache/tuscany/sca/interfacedef/java/impl/ClassCachedJavaInterfaceFactoryImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/interface-java/src/main/java/org/apache/tuscany/sca/interfacedef/java/impl/JavaInterfaceContractImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/interface-java/src/main/java/org/apache/tuscany/sca/interfacedef/java/impl/JavaInterfaceFactoryImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/interface-java/src/main/java/org/apache/tuscany/sca/interfacedef/java/impl/JavaInterfaceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/interface-java/src/main/java/org/apache/tuscany/sca/interfacedef/java/impl/JavaInterfaceIntrospectorImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/interface-java/src/main/java/org/apache/tuscany/sca/interfacedef/java/impl/JavaInterfaceUtil.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/interface-java/src/main/java/org/apache/tuscany/sca/interfacedef/java/impl/JavaOperationImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/interface-java/src/main/java/org/apache/tuscany/sca/interfacedef/java/impl/PolicyJavaInterfaceVisitor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/interface-java/src/main/java/org/apache/tuscany/sca/interfacedef/java/introspect/JavaInterfaceVisitor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/interface-java/src/main/resources/META-INF/services/org.apache.tuscany.sca.interfacedef.java.JavaInterfaceFactory create mode 100644 tags/java/sca/1.5.1-RC4/modules/interface-java/src/test/java/org/apache/tuscany/sca/interfacedef/java/impl/JavaInterfaceUtilDuplicateRemotableTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/interface-java/src/test/java/org/apache/tuscany/sca/interfacedef/java/impl/JavaInterfaceUtilTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/interface-java/src/test/java/org/apache/tuscany/sca/interfacedef/java/introspection/impl/ConversationalIntrospectionTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/interface-java/src/test/java/org/apache/tuscany/sca/interfacedef/java/introspection/impl/JavaInterfaceProcessorRegistryImplTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/interface-java/src/test/java/org/apache/tuscany/sca/interfacedef/java/introspection/impl/PolicyProcessorTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/interface-wsdl-xml/LICENSE create mode 100644 tags/java/sca/1.5.1-RC4/modules/interface-wsdl-xml/NOTICE create mode 100644 tags/java/sca/1.5.1-RC4/modules/interface-wsdl-xml/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/modules/interface-wsdl-xml/src/main/java/org/apache/tuscany/sca/interfacedef/wsdl/xml/BPELExtensionHandler.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/interface-wsdl-xml/src/main/java/org/apache/tuscany/sca/interfacedef/wsdl/xml/BPELPartnerLinkTypeExt.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/interface-wsdl-xml/src/main/java/org/apache/tuscany/sca/interfacedef/wsdl/xml/WSDLConstants.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/interface-wsdl-xml/src/main/java/org/apache/tuscany/sca/interfacedef/wsdl/xml/WSDLDocumentProcessor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/interface-wsdl-xml/src/main/java/org/apache/tuscany/sca/interfacedef/wsdl/xml/WSDLInterfaceProcessor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/interface-wsdl-xml/src/main/java/org/apache/tuscany/sca/interfacedef/wsdl/xml/WSDLModelResolver.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/interface-wsdl-xml/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessor create mode 100644 tags/java/sca/1.5.1-RC4/modules/interface-wsdl-xml/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.processor.URLArtifactProcessor create mode 100644 tags/java/sca/1.5.1-RC4/modules/interface-wsdl-xml/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.resolver.ModelResolver create mode 100644 tags/java/sca/1.5.1-RC4/modules/interface-wsdl-xml/src/main/resources/interface-wsdlxml-validation-messages.properties create mode 100644 tags/java/sca/1.5.1-RC4/modules/interface-wsdl-xml/src/test/java/org/apache/tuscany/sca/interfacedef/wsdl/AbstractWSDLTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/interface-wsdl-xml/src/test/java/org/apache/tuscany/sca/interfacedef/wsdl/introspect/WSDLInterfaceIntrospectorTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/interface-wsdl-xml/src/test/java/org/apache/tuscany/sca/interfacedef/wsdl/introspect/WSDLOperationIntrospectorTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/interface-wsdl-xml/src/test/java/org/apache/tuscany/sca/interfacedef/wsdl/introspect/WSDLPolicyAnnotatedInterfaceIntrospectorTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/interface-wsdl-xml/src/test/java/org/apache/tuscany/sca/interfacedef/wsdl/introspect/WrapperStyleOperationTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/interface-wsdl-xml/src/test/java/org/apache/tuscany/sca/interfacedef/wsdl/xml/ReadTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/interface-wsdl-xml/src/test/java/org/apache/tuscany/sca/interfacedef/wsdl/xml/WSDLDocumentProcessorTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/interface-wsdl-xml/src/test/java/org/apache/tuscany/sca/interfacedef/wsdl/xml/WSDLTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/interface-wsdl-xml/src/test/java/org/apache/tuscany/sca/interfacedef/wsdl/xml/WriteTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/interface-wsdl-xml/src/test/java/org/apache/tuscany/sca/interfacedef/wsdl/xml/XMLDocumentHelperTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/interface-wsdl-xml/src/test/resources/org/apache/tuscany/sca/interfacedef/wsdl/xml/Calculator.composite create mode 100644 tags/java/sca/1.5.1-RC4/modules/interface-wsdl-xml/src/test/resources/org/apache/tuscany/sca/interfacedef/wsdl/xml/CalculatorComponent.constrainingType create mode 100644 tags/java/sca/1.5.1-RC4/modules/interface-wsdl-xml/src/test/resources/org/apache/tuscany/sca/interfacedef/wsdl/xml/CalculatorImpl.componentType create mode 100644 tags/java/sca/1.5.1-RC4/modules/interface-wsdl-xml/src/test/resources/org/apache/tuscany/sca/interfacedef/wsdl/xml/example.wsdl create mode 100644 tags/java/sca/1.5.1-RC4/modules/interface-wsdl-xml/src/test/resources/org/apache/tuscany/sca/interfacedef/wsdl/xml/invalid-stockquote.wsdl create mode 100644 tags/java/sca/1.5.1-RC4/modules/interface-wsdl-xml/src/test/resources/org/apache/tuscany/sca/interfacedef/wsdl/xml/ipo.xsd create mode 100644 tags/java/sca/1.5.1-RC4/modules/interface-wsdl-xml/src/test/resources/org/apache/tuscany/sca/interfacedef/wsdl/xml/stockquote.wsdl create mode 100644 tags/java/sca/1.5.1-RC4/modules/interface-wsdl-xml/src/test/resources/org/apache/tuscany/sca/interfacedef/wsdl/xml/test1.wsdl create mode 100644 tags/java/sca/1.5.1-RC4/modules/interface-wsdl-xml/src/test/resources/org/apache/tuscany/sca/interfacedef/wsdl/xml/test1.xsd create mode 100644 tags/java/sca/1.5.1-RC4/modules/interface-wsdl-xml/src/test/resources/org/apache/tuscany/sca/interfacedef/wsdl/xml/test2.wsdl create mode 100644 tags/java/sca/1.5.1-RC4/modules/interface-wsdl-xml/src/test/resources/org/apache/tuscany/sca/interfacedef/wsdl/xml/unwrapped-stockquote.wsdl create mode 100644 tags/java/sca/1.5.1-RC4/modules/interface-wsdl-xml/src/test/resources/policy/stockquote_policy.wsdl create mode 100644 tags/java/sca/1.5.1-RC4/modules/interface-wsdl-xml/src/test/resources/wsdl/helloworld-interface.wsdl create mode 100644 tags/java/sca/1.5.1-RC4/modules/interface-wsdl-xml/src/test/resources/wsdl/helloworld-service.wsdl create mode 100644 tags/java/sca/1.5.1-RC4/modules/interface-wsdl-xml/src/test/resources/xsd/greeting.xsd create mode 100644 tags/java/sca/1.5.1-RC4/modules/interface-wsdl-xml/src/test/resources/xsd/helloworld.xsd create mode 100644 tags/java/sca/1.5.1-RC4/modules/interface-wsdl-xml/src/test/resources/xsd/name.xsd create mode 100644 tags/java/sca/1.5.1-RC4/modules/interface-wsdl/LICENSE create mode 100644 tags/java/sca/1.5.1-RC4/modules/interface-wsdl/NOTICE create mode 100644 tags/java/sca/1.5.1-RC4/modules/interface-wsdl/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/modules/interface-wsdl/src/main/java/org/apache/tuscany/sca/interfacedef/wsdl/DefaultWSDLFactory.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/interface-wsdl/src/main/java/org/apache/tuscany/sca/interfacedef/wsdl/WSDLDefinition.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/interface-wsdl/src/main/java/org/apache/tuscany/sca/interfacedef/wsdl/WSDLFactory.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/interface-wsdl/src/main/java/org/apache/tuscany/sca/interfacedef/wsdl/WSDLInterface.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/interface-wsdl/src/main/java/org/apache/tuscany/sca/interfacedef/wsdl/WSDLInterfaceContract.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/interface-wsdl/src/main/java/org/apache/tuscany/sca/interfacedef/wsdl/WSDLObject.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/interface-wsdl/src/main/java/org/apache/tuscany/sca/interfacedef/wsdl/WSDLOperation.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/interface-wsdl/src/main/java/org/apache/tuscany/sca/interfacedef/wsdl/impl/InvalidWSDLException.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/interface-wsdl/src/main/java/org/apache/tuscany/sca/interfacedef/wsdl/impl/WSDLDefinitionImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/interface-wsdl/src/main/java/org/apache/tuscany/sca/interfacedef/wsdl/impl/WSDLFactoryImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/interface-wsdl/src/main/java/org/apache/tuscany/sca/interfacedef/wsdl/impl/WSDLInterfaceContractImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/interface-wsdl/src/main/java/org/apache/tuscany/sca/interfacedef/wsdl/impl/WSDLInterfaceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/interface-wsdl/src/main/java/org/apache/tuscany/sca/interfacedef/wsdl/impl/WSDLInterfaceIntrospectorImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/interface-wsdl/src/main/java/org/apache/tuscany/sca/interfacedef/wsdl/impl/WSDLObjectImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/interface-wsdl/src/main/java/org/apache/tuscany/sca/interfacedef/wsdl/impl/WSDLOperationImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/interface-wsdl/src/main/java/org/apache/tuscany/sca/interfacedef/wsdl/impl/WSDLOperationIntrospectorImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/interface-wsdl/src/main/resources/META-INF/services/org.apache.tuscany.sca.interfacedef.wsdl.WSDLFactory create mode 100644 tags/java/sca/1.5.1-RC4/modules/interface/LICENSE create mode 100644 tags/java/sca/1.5.1-RC4/modules/interface/NOTICE create mode 100644 tags/java/sca/1.5.1-RC4/modules/interface/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/modules/interface/src/main/java/org/apache/tuscany/sca/interfacedef/ConversationSequence.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/interface/src/main/java/org/apache/tuscany/sca/interfacedef/DataType.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/interface/src/main/java/org/apache/tuscany/sca/interfacedef/FaultExceptionMapper.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/interface/src/main/java/org/apache/tuscany/sca/interfacedef/IncompatibleInterfaceContractException.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/interface/src/main/java/org/apache/tuscany/sca/interfacedef/Interface.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/interface/src/main/java/org/apache/tuscany/sca/interfacedef/InterfaceContract.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/interface/src/main/java/org/apache/tuscany/sca/interfacedef/InterfaceContractMapper.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/interface/src/main/java/org/apache/tuscany/sca/interfacedef/InvalidCallbackException.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/interface/src/main/java/org/apache/tuscany/sca/interfacedef/InvalidInterfaceException.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/interface/src/main/java/org/apache/tuscany/sca/interfacedef/InvalidOperationException.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/interface/src/main/java/org/apache/tuscany/sca/interfacedef/Operation.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/interface/src/main/java/org/apache/tuscany/sca/interfacedef/OverloadedOperationException.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/interface/src/main/java/org/apache/tuscany/sca/interfacedef/ParameterMode.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/interface/src/main/java/org/apache/tuscany/sca/interfacedef/impl/DataTypeImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/interface/src/main/java/org/apache/tuscany/sca/interfacedef/impl/InterfaceContractImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/interface/src/main/java/org/apache/tuscany/sca/interfacedef/impl/InterfaceContractMapperImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/interface/src/main/java/org/apache/tuscany/sca/interfacedef/impl/InterfaceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/interface/src/main/java/org/apache/tuscany/sca/interfacedef/impl/OperationImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/interface/src/main/java/org/apache/tuscany/sca/interfacedef/util/ElementInfo.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/interface/src/main/java/org/apache/tuscany/sca/interfacedef/util/FaultException.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/interface/src/main/java/org/apache/tuscany/sca/interfacedef/util/JavaXMLMapper.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/interface/src/main/java/org/apache/tuscany/sca/interfacedef/util/TypeInfo.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/interface/src/main/java/org/apache/tuscany/sca/interfacedef/util/WrapperInfo.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/interface/src/main/java/org/apache/tuscany/sca/interfacedef/util/XMLType.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/interface/src/main/resources/META-INF/services/org.apache.tuscany.sca.interfacedef.InterfaceContractMapper create mode 100644 tags/java/sca/1.5.1-RC4/modules/interface/src/test/java/org/apache/tuscany/sca/interfacedef/impl/ContractCompatibilityTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/interface/src/test/java/org/apache/tuscany/sca/interfacedef/impl/InterfaceContractTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/monitor/LICENSE create mode 100644 tags/java/sca/1.5.1-RC4/modules/monitor/NOTICE create mode 100644 tags/java/sca/1.5.1-RC4/modules/monitor/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/modules/monitor/src/main/java/org/apache/tuscany/sca/monitor/Monitor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/monitor/src/main/java/org/apache/tuscany/sca/monitor/MonitorFactory.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/monitor/src/main/java/org/apache/tuscany/sca/monitor/MonitorRuntimeException.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/monitor/src/main/java/org/apache/tuscany/sca/monitor/Problem.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/monitor/src/main/java/org/apache/tuscany/sca/monitor/impl/DefaultMonitorFactoryImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/monitor/src/main/java/org/apache/tuscany/sca/monitor/impl/DefaultMonitorImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/monitor/src/main/java/org/apache/tuscany/sca/monitor/impl/ProblemImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/monitor/src/main/resources/META-INF/services/org.apache.tuscany.sca.monitor.MonitorFactory create mode 100644 tags/java/sca/1.5.1-RC4/modules/node-api/LICENSE create mode 100644 tags/java/sca/1.5.1-RC4/modules/node-api/NOTICE create mode 100644 tags/java/sca/1.5.1-RC4/modules/node-api/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/modules/node-api/src/main/java/org/apache/tuscany/sca/node/SCAClient.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/node-api/src/main/java/org/apache/tuscany/sca/node/SCAContribution.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/node-api/src/main/java/org/apache/tuscany/sca/node/SCANode.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/node-api/src/main/java/org/apache/tuscany/sca/node/SCANode2.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/node-api/src/main/java/org/apache/tuscany/sca/node/SCANode2Factory.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/node-api/src/main/java/org/apache/tuscany/sca/node/SCANodeFactory.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/node-impl/LICENSE create mode 100644 tags/java/sca/1.5.1-RC4/modules/node-impl/NOTICE create mode 100644 tags/java/sca/1.5.1-RC4/modules/node-impl/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/modules/node-impl/src/main/java/org/apache/tuscany/sca/node/impl/Node2FactoryImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/node-impl/src/main/java/org/apache/tuscany/sca/node/impl/Node2Impl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/node-impl/src/main/java/org/apache/tuscany/sca/node/impl/NodeFactoryImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/node-impl/src/main/java/org/apache/tuscany/sca/node/impl/NodeImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/node-impl/src/main/java/org/apache/tuscany/sca/node/impl/RuntimeBootStrapper.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/node-impl/src/main/java/org/apache/tuscany/sca/node/impl/RuntimeBuilder.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/node-impl/src/main/resources/META-INF/services/org.apache.tuscany.sca.node.SCANode2Factory create mode 100644 tags/java/sca/1.5.1-RC4/modules/node-impl/src/main/resources/META-INF/services/org.apache.tuscany.sca.node.SCANodeFactory create mode 100644 tags/java/sca/1.5.1-RC4/modules/node-impl/src/test/java/hello/HelloWorld.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/node-impl/src/test/java/hello/HelloWorldImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/node-impl/src/test/java/org/apache/tuscany/sca/node/impl/Node2ImplTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/node-impl/src/test/java/org/apache/tuscany/sca/node/impl/NodeImplTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/node-impl/src/test/resources/HelloWorld.composite create mode 100644 tags/java/sca/1.5.1-RC4/modules/node-impl/src/test/resources/META-INF/sca-contribution.xml create mode 100644 tags/java/sca/1.5.1-RC4/modules/node-launcher-osgi/LICENSE create mode 100644 tags/java/sca/1.5.1-RC4/modules/node-launcher-osgi/NOTICE create mode 100644 tags/java/sca/1.5.1-RC4/modules/node-launcher-osgi/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/modules/node-launcher-osgi/src/main/java/org/apache/tuscany/sca/node/osgi/launcher/Contribution.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/node-launcher-osgi/src/main/java/org/apache/tuscany/sca/node/osgi/launcher/DomainManagerLauncher.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/node-launcher-osgi/src/main/java/org/apache/tuscany/sca/node/osgi/launcher/FelixOSGiHost.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/node-launcher-osgi/src/main/java/org/apache/tuscany/sca/node/osgi/launcher/JarFileFinder.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/node-launcher-osgi/src/main/java/org/apache/tuscany/sca/node/osgi/launcher/LauncherBundleActivator.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/node-launcher-osgi/src/main/java/org/apache/tuscany/sca/node/osgi/launcher/LauncherException.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/node-launcher-osgi/src/main/java/org/apache/tuscany/sca/node/osgi/launcher/NodeDaemonLauncher.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/node-launcher-osgi/src/main/java/org/apache/tuscany/sca/node/osgi/launcher/NodeLauncher.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/node-launcher-osgi/src/main/java/org/apache/tuscany/sca/node/osgi/launcher/NodeLauncherUtil.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/node-launcher-osgi/src/main/java/org/apache/tuscany/sca/node/osgi/launcher/NodeMain.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/node-launcher-osgi/src/main/java/org/apache/tuscany/sca/node/osgi/launcher/NodeServletFilter.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/node-launcher-osgi/src/main/java/org/apache/tuscany/sca/node/osgi/launcher/OSGiHost.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/node-launcher-osgi/src/test/java/hello/HelloWorld.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/node-launcher-osgi/src/test/java/hello/HelloWorldImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/node-launcher-osgi/src/test/java/org/apache/tuscany/sca/node/osgi/launcher/FelixOSGiHostTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/node-launcher-osgi/src/test/java/org/apache/tuscany/sca/node/osgi/launcher/NodeLauncherTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/node-launcher-osgi/src/test/resources/HelloWorld.composite create mode 100644 tags/java/sca/1.5.1-RC4/modules/node-launcher/LICENSE create mode 100644 tags/java/sca/1.5.1-RC4/modules/node-launcher/NOTICE create mode 100644 tags/java/sca/1.5.1-RC4/modules/node-launcher/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/modules/node-launcher/src/main/java/org/apache/tuscany/sca/node/launcher/Contribution.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/node-launcher/src/main/java/org/apache/tuscany/sca/node/launcher/DomainManagerLauncher.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/node-launcher/src/main/java/org/apache/tuscany/sca/node/launcher/LauncherException.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/node-launcher/src/main/java/org/apache/tuscany/sca/node/launcher/NodeDaemonLauncher.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/node-launcher/src/main/java/org/apache/tuscany/sca/node/launcher/NodeLauncher.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/node-launcher/src/main/java/org/apache/tuscany/sca/node/launcher/NodeLauncherUtil.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/node-launcher/src/main/java/org/apache/tuscany/sca/node/launcher/NodeMain.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/node-launcher/src/main/java/org/apache/tuscany/sca/node/launcher/NodeServletFilter.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/node-manager/LICENSE create mode 100644 tags/java/sca/1.5.1-RC4/modules/node-manager/NOTICE create mode 100644 tags/java/sca/1.5.1-RC4/modules/node-manager/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/modules/node-manager/src/main/java/org/apache/tuscany/sca/implementation/node/manager/NodeManagerUtil.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/node-manager/src/main/java/org/apache/tuscany/sca/implementation/node/manager/NodeProcessCollectionImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/node-manager/src/main/java/org/apache/tuscany/sca/implementation/node/manager/PingServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/node-manager/src/main/resources/NodeDaemon.composite create mode 100644 tags/java/sca/1.5.1-RC4/modules/osgi-runtime/LICENSE create mode 100644 tags/java/sca/1.5.1-RC4/modules/osgi-runtime/NOTICE create mode 100644 tags/java/sca/1.5.1-RC4/modules/osgi-runtime/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/modules/osgi-runtime/src/main/java/org/apache/tuscany/sca/osgi/runtime/EquinoxRuntime.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/osgi-runtime/src/main/java/org/apache/tuscany/sca/osgi/runtime/FelixRuntime.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/osgi-runtime/src/main/java/org/apache/tuscany/sca/osgi/runtime/KnopflerfishRuntime.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/osgi-runtime/src/main/java/org/apache/tuscany/sca/osgi/runtime/OSGiBundleActivator.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/osgi-runtime/src/main/java/org/apache/tuscany/sca/osgi/runtime/OSGiRuntime.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/osgi-runtime/src/main/java/org/apache/tuscany/sca/osgi/runtime/OSGiRuntimeModuleActivator.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/osgi-runtime/src/main/resources/META-INF/services/org.apache.tuscany.sca.core.ModuleActivator create mode 100644 tags/java/sca/1.5.1-RC4/modules/osgi-runtime/src/test/java/org/apache/tuscany/sca/osgi/runtime/OSGiRuntimeTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/policy-logging/LICENSE create mode 100644 tags/java/sca/1.5.1-RC4/modules/policy-logging/NOTICE create mode 100644 tags/java/sca/1.5.1-RC4/modules/policy-logging/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/modules/policy-logging/src/main/java/org/apache/tuscany/sca/policy/logging/LoggingPolicyDefinitionsProvider.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/policy-logging/src/main/java/org/apache/tuscany/sca/policy/logging/jdk/JDKLoggingImplementationPolicyProvider.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/policy-logging/src/main/java/org/apache/tuscany/sca/policy/logging/jdk/JDKLoggingPolicy.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/policy-logging/src/main/java/org/apache/tuscany/sca/policy/logging/jdk/JDKLoggingPolicyInterceptor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/policy-logging/src/main/java/org/apache/tuscany/sca/policy/logging/jdk/JDKLoggingPolicyProcessor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/policy-logging/src/main/java/org/apache/tuscany/sca/policy/logging/jdk/JDKLoggingPolicyProviderFactory.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/policy-logging/src/main/java/org/apache/tuscany/sca/policy/logging/jdk/JDKLoggingReferencePolicyProvider.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/policy-logging/src/main/java/org/apache/tuscany/sca/policy/logging/jdk/JDKLoggingServicePolicyProvider.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/policy-logging/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessor create mode 100644 tags/java/sca/1.5.1-RC4/modules/policy-logging/src/main/resources/META-INF/services/org.apache.tuscany.sca.provider.PolicyProviderFactory create mode 100644 tags/java/sca/1.5.1-RC4/modules/policy-logging/src/main/resources/META-INF/services/org.apache.tuscany.sca.provider.SCADefinitionsProvider create mode 100644 tags/java/sca/1.5.1-RC4/modules/policy-logging/src/main/resources/org/apache/tuscany/sca/policy/logging/definitions.xml create mode 100644 tags/java/sca/1.5.1-RC4/modules/policy-logging/src/test/java/org/apache/tuscany/sca/policy/logging/jdk/PolicyReadTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/policy-logging/src/test/resources/org/apache/tuscany/sca/policy/logging/jdk/mock_policies.xml create mode 100644 tags/java/sca/1.5.1-RC4/modules/policy-reliability/LICENSE create mode 100644 tags/java/sca/1.5.1-RC4/modules/policy-reliability/NOTICE create mode 100644 tags/java/sca/1.5.1-RC4/modules/policy-reliability/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/modules/policy-reliability/src/main/java/org/apache/tuscany/sca/policy/reliability/ReliabilityPolicyDefinitionsProvider.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/policy-reliability/src/main/resources/META-INF/services/org.apache.tuscany.sca.provider.SCADefinitionsProvider create mode 100644 tags/java/sca/1.5.1-RC4/modules/policy-reliability/src/main/resources/org/apache/tuscany/sca/policy/reliability/definitions.xml create mode 100644 tags/java/sca/1.5.1-RC4/modules/policy-security-geronimo/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/modules/policy-security-geronimo/src/main/java/org/apache/tuscany/sca/policy/security/geronimo/GeronimoLDAPSecurityHandler.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/policy-security-geronimo/src/main/resources/META-INF/services/org.apache.tuscany.sca.policy.security.http.extensibility.LDAPSecurityHandler create mode 100644 tags/java/sca/1.5.1-RC4/modules/policy-security-http/LICENSE create mode 100644 tags/java/sca/1.5.1-RC4/modules/policy-security-http/NOTICE create mode 100644 tags/java/sca/1.5.1-RC4/modules/policy-security-http/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/modules/policy-security-http/src/main/java/org/apache/tuscany/sca/policy/authentication/AuthenticationConfigurationPolicy.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/policy-security-http/src/main/java/org/apache/tuscany/sca/policy/authentication/AuthenticationConfigurationPolicyProcessor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/policy-security-http/src/main/java/org/apache/tuscany/sca/policy/confidentiality/ConfidentialityPolicy.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/policy-security-http/src/main/java/org/apache/tuscany/sca/policy/confidentiality/ConfidentialityPolicyProcessor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/policy-security-http/src/main/java/org/apache/tuscany/sca/policy/security/http/LDAPRealmAuthenticationCallbackHandler.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/policy-security-http/src/main/java/org/apache/tuscany/sca/policy/security/http/LDAPRealmAuthenticationImplementationPolicyProvider.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/policy-security-http/src/main/java/org/apache/tuscany/sca/policy/security/http/LDAPRealmAuthenticationInterceptor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/policy-security-http/src/main/java/org/apache/tuscany/sca/policy/security/http/LDAPRealmAuthenticationPolicy.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/policy-security-http/src/main/java/org/apache/tuscany/sca/policy/security/http/LDAPRealmAuthenticationPolicyProcessor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/policy-security-http/src/main/java/org/apache/tuscany/sca/policy/security/http/LDAPRealmAuthenticationPolicyProviderFactory.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/policy-security-http/src/main/java/org/apache/tuscany/sca/policy/security/http/LDAPRealmAuthenticationServicePolicyProvider.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/policy-security-http/src/main/java/org/apache/tuscany/sca/policy/security/http/extensibility/DefaultLDAPSecurityExtensionPoint.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/policy-security-http/src/main/java/org/apache/tuscany/sca/policy/security/http/extensibility/LDAPSecurityHandler.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/policy-security-http/src/main/java/org/apache/tuscany/sca/policy/security/http/extensibility/LDAPSecurityHandlerExtensionPoint.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/policy-security-http/src/main/java/org/apache/tuscany/sca/policy/security/http/util/HttpSecurityUtil.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/policy-security-http/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessor create mode 100644 tags/java/sca/1.5.1-RC4/modules/policy-security-http/src/main/resources/META-INF/services/org.apache.tuscany.sca.policy.security.http.extensibility.LDAPSecurityHandlerExtensionPoint create mode 100644 tags/java/sca/1.5.1-RC4/modules/policy-security-http/src/main/resources/META-INF/services/org.apache.tuscany.sca.provider.PolicyProviderFactory create mode 100644 tags/java/sca/1.5.1-RC4/modules/policy-security-http/src/main/resources/policy-security-http-validation-messages.properties create mode 100644 tags/java/sca/1.5.1-RC4/modules/policy-security-jsr250/LICENSE create mode 100644 tags/java/sca/1.5.1-RC4/modules/policy-security-jsr250/NOTICE create mode 100644 tags/java/sca/1.5.1-RC4/modules/policy-security-jsr250/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/modules/policy-security-jsr250/src/main/java/org/apache/tuscany/sca/implementation/java/impl/JSR250Activator.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/policy-security-jsr250/src/main/java/org/apache/tuscany/sca/implementation/java/introspect/impl/JSR250PolicyProcessor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/policy-security-jsr250/src/main/resources/META-INF/services/org.apache.tuscany.sca.core.ModuleActivator create mode 100644 tags/java/sca/1.5.1-RC4/modules/policy-security-jsr250/src/test/java/org/apache/tuscany/sca/implementation/java/introspect/impl/PolicyProcessorTestCaseFIXME.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/policy-security/LICENSE create mode 100644 tags/java/sca/1.5.1-RC4/modules/policy-security/NOTICE create mode 100644 tags/java/sca/1.5.1-RC4/modules/policy-security/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/modules/policy-security/src/main/java/org/apache/tuscany/sca/policy/SecurityUtil.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/policy-security/src/main/java/org/apache/tuscany/sca/policy/authentication/basic/BasicAuthenticationPolicy.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/policy-security/src/main/java/org/apache/tuscany/sca/policy/authentication/basic/BasicAuthenticationPolicyProcessor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/policy-security/src/main/java/org/apache/tuscany/sca/policy/authentication/basic/BasicAuthenticationPolicyProviderFactory.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/policy-security/src/main/java/org/apache/tuscany/sca/policy/authentication/basic/BasicAuthenticationPrincipal.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/policy-security/src/main/java/org/apache/tuscany/sca/policy/authentication/basic/BasicAuthenticationReferencePolicyInterceptor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/policy-security/src/main/java/org/apache/tuscany/sca/policy/authentication/basic/BasicAuthenticationReferencePolicyProvider.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/policy-security/src/main/java/org/apache/tuscany/sca/policy/authentication/basic/BasicAuthenticationServicePolicyInterceptor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/policy-security/src/main/java/org/apache/tuscany/sca/policy/authentication/basic/BasicAuthenticationServicePolicyProvider.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/policy-security/src/main/java/org/apache/tuscany/sca/policy/authentication/token/TokenPrincipal.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/policy-security/src/main/java/org/apache/tuscany/sca/policy/authorization/AuthorizationPolicy.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/policy-security/src/main/java/org/apache/tuscany/sca/policy/authorization/AuthorizationPolicyProcessor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/policy-security/src/main/java/org/apache/tuscany/sca/policy/identity/SecurityIdentityImplementationPolicyInterceptor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/policy-security/src/main/java/org/apache/tuscany/sca/policy/identity/SecurityIdentityImplementationPolicyProvider.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/policy-security/src/main/java/org/apache/tuscany/sca/policy/identity/SecurityIdentityPolicy.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/policy-security/src/main/java/org/apache/tuscany/sca/policy/identity/SecurityIdentityPolicyProcessor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/policy-security/src/main/java/org/apache/tuscany/sca/policy/identity/SecurityIdentityPolicyProviderFactory.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/policy-security/src/main/java/org/apache/tuscany/sca/policy/security/SecurityPolicyDefinitionsProvider.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/policy-security/src/main/java/org/apache/tuscany/sca/policy/security/jaas/JaasAuthenticationImplementationPolicyProvider.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/policy-security/src/main/java/org/apache/tuscany/sca/policy/security/jaas/JaasAuthenticationInterceptor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/policy-security/src/main/java/org/apache/tuscany/sca/policy/security/jaas/JaasAuthenticationPolicy.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/policy-security/src/main/java/org/apache/tuscany/sca/policy/security/jaas/JaasAuthenticationPolicyHandler.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/policy-security/src/main/java/org/apache/tuscany/sca/policy/security/jaas/JaasAuthenticationPolicyProcessor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/policy-security/src/main/java/org/apache/tuscany/sca/policy/security/jaas/JaasAuthenticationPolicyProviderFactory.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/policy-security/src/main/java/org/apache/tuscany/sca/policy/security/jaas/JaasAuthenticationServicePolicyProvider.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/policy-security/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessor create mode 100644 tags/java/sca/1.5.1-RC4/modules/policy-security/src/main/resources/META-INF/services/org.apache.tuscany.sca.provider.PolicyProviderFactory create mode 100644 tags/java/sca/1.5.1-RC4/modules/policy-security/src/main/resources/META-INF/services/org.apache.tuscany.sca.provider.SCADefinitionsProvider create mode 100644 tags/java/sca/1.5.1-RC4/modules/policy-security/src/main/resources/org/apache/tuscany/sca/policy/security/definitions.xml create mode 100644 tags/java/sca/1.5.1-RC4/modules/policy-security/src/main/resources/org/apache/tuscany/sca/policy/security/tuscany_definitions.xml create mode 100644 tags/java/sca/1.5.1-RC4/modules/policy-security/src/main/resources/policy-security-validation-messages.properties create mode 100644 tags/java/sca/1.5.1-RC4/modules/policy-security/src/test/java/org/apache/tuscany/sca/policy/security/PolicyProcessorTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/policy-security/src/test/resources/org/apache/tuscany/sca/policy/security/mock_policy_definitions.xml create mode 100644 tags/java/sca/1.5.1-RC4/modules/policy-transaction/LICENSE create mode 100644 tags/java/sca/1.5.1-RC4/modules/policy-transaction/NOTICE create mode 100644 tags/java/sca/1.5.1-RC4/modules/policy-transaction/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/modules/policy-transaction/src/main/java/org/apache/tuscany/sca/policy/transaction/IncompatibleIntentException.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/policy-transaction/src/main/java/org/apache/tuscany/sca/policy/transaction/TransactionImplementationPolicyProvider.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/policy-transaction/src/main/java/org/apache/tuscany/sca/policy/transaction/TransactionIntent.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/policy-transaction/src/main/java/org/apache/tuscany/sca/policy/transaction/TransactionInterceptor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/policy-transaction/src/main/java/org/apache/tuscany/sca/policy/transaction/TransactionManagerHelper.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/policy-transaction/src/main/java/org/apache/tuscany/sca/policy/transaction/TransactionManagerWrapper.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/policy-transaction/src/main/java/org/apache/tuscany/sca/policy/transaction/TransactionModuleActivator.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/policy-transaction/src/main/java/org/apache/tuscany/sca/policy/transaction/TransactionPolicy.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/policy-transaction/src/main/java/org/apache/tuscany/sca/policy/transaction/TransactionPolicyDefinitionsProvider.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/policy-transaction/src/main/java/org/apache/tuscany/sca/policy/transaction/TransactionPolicyImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/policy-transaction/src/main/java/org/apache/tuscany/sca/policy/transaction/TransactionPolicyProcessor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/policy-transaction/src/main/java/org/apache/tuscany/sca/policy/transaction/TransactionPolicyProviderFactory.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/policy-transaction/src/main/java/org/apache/tuscany/sca/policy/transaction/TransactionReferencePolicyProvider.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/policy-transaction/src/main/java/org/apache/tuscany/sca/policy/transaction/TransactionServicePolicyProvider.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/policy-transaction/src/main/java/org/apache/tuscany/sca/policy/transaction/TransactionalAction.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/policy-transaction/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessor create mode 100644 tags/java/sca/1.5.1-RC4/modules/policy-transaction/src/main/resources/META-INF/services/org.apache.tuscany.sca.core.ModuleActivator create mode 100644 tags/java/sca/1.5.1-RC4/modules/policy-transaction/src/main/resources/META-INF/services/org.apache.tuscany.sca.provider.PolicyProviderFactory create mode 100644 tags/java/sca/1.5.1-RC4/modules/policy-transaction/src/main/resources/META-INF/services/org.apache.tuscany.sca.provider.SCADefinitionsProvider create mode 100644 tags/java/sca/1.5.1-RC4/modules/policy-transaction/src/main/resources/log4j.properties create mode 100644 tags/java/sca/1.5.1-RC4/modules/policy-transaction/src/main/resources/org/apache/tuscany/sca/policy/transaction/definitions.xml create mode 100644 tags/java/sca/1.5.1-RC4/modules/policy-transaction/src/main/resources/org/apache/tuscany/sca/policy/transaction/tuscany_definitions.xml create mode 100644 tags/java/sca/1.5.1-RC4/modules/policy-transaction/src/test/java/org/apache/tuscany/sca/policy/transaction/PolicyReadTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/policy-transaction/src/test/java/org/apache/tuscany/sca/policy/transaction/TransactionManagerHelperTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/policy-xml-ws/LICENSE create mode 100644 tags/java/sca/1.5.1-RC4/modules/policy-xml-ws/NOTICE create mode 100644 tags/java/sca/1.5.1-RC4/modules/policy-xml-ws/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/modules/policy-xml-ws/src/main/java/org/apache/tuscany/sca/policy/xml/ws/WSPolicyProcessor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/policy-xml-ws/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessor create mode 100644 tags/java/sca/1.5.1-RC4/modules/policy-xml-ws/src/test/java/org/apache/tuscany/sca/policy/xml/TestModelResolver.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/policy-xml-ws/src/test/java/org/apache/tuscany/sca/policy/xml/TestPolicyProcessor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/policy-xml-ws/src/test/java/org/apache/tuscany/sca/policy/xml/WSPolicyProcessorTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/policy-xml-ws/src/test/resources/org/apache/tuscany/sca/policy/xml/test_definitions.xml create mode 100644 tags/java/sca/1.5.1-RC4/modules/policy-xml/LICENSE create mode 100644 tags/java/sca/1.5.1-RC4/modules/policy-xml/NOTICE create mode 100644 tags/java/sca/1.5.1-RC4/modules/policy-xml/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/modules/policy-xml/src/main/java/org/apache/tuscany/sca/policy/xml/BindingTypeProcessor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/policy-xml/src/main/java/org/apache/tuscany/sca/policy/xml/ImplementationTypeProcessor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/policy-xml/src/main/java/org/apache/tuscany/sca/policy/xml/IntentAttachPointTypeProcessor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/policy-xml/src/main/java/org/apache/tuscany/sca/policy/xml/PolicyConstants.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/policy-xml/src/main/java/org/apache/tuscany/sca/policy/xml/PolicyIntentProcessor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/policy-xml/src/main/java/org/apache/tuscany/sca/policy/xml/PolicySetProcessor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/policy-xml/src/main/java/org/apache/tuscany/sca/policy/xml/ProfileIntentProcessor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/policy-xml/src/main/java/org/apache/tuscany/sca/policy/xml/QualifiedIntentProcessor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/policy-xml/src/main/java/org/apache/tuscany/sca/policy/xml/SimpleIntentProcessor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/policy-xml/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessor create mode 100644 tags/java/sca/1.5.1-RC4/modules/policy-xml/src/main/resources/policy-xml-validation-messages.properties create mode 100644 tags/java/sca/1.5.1-RC4/modules/policy-xml/src/test/java/org/apache/tuscany/sca/policy/xml/ReadDocumentTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/policy-xml/src/test/java/org/apache/tuscany/sca/policy/xml/TestPolicyProcessor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/policy-xml/src/test/resources/org/apache/tuscany/sca/policy/xml/test_definitions.xml create mode 100644 tags/java/sca/1.5.1-RC4/modules/policy/LICENSE create mode 100644 tags/java/sca/1.5.1-RC4/modules/policy/NOTICE create mode 100644 tags/java/sca/1.5.1-RC4/modules/policy/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/modules/policy/src/main/java/org/apache/tuscany/sca/policy/DefaultIntentAttachPointTypeFactory.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/policy/src/main/java/org/apache/tuscany/sca/policy/DefaultPolicyFactory.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/policy/src/main/java/org/apache/tuscany/sca/policy/Intent.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/policy/src/main/java/org/apache/tuscany/sca/policy/IntentAttachPoint.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/policy/src/main/java/org/apache/tuscany/sca/policy/IntentAttachPointType.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/policy/src/main/java/org/apache/tuscany/sca/policy/IntentAttachPointTypeFactory.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/policy/src/main/java/org/apache/tuscany/sca/policy/IntentMap.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/policy/src/main/java/org/apache/tuscany/sca/policy/Policy.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/policy/src/main/java/org/apache/tuscany/sca/policy/PolicyContext.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/policy/src/main/java/org/apache/tuscany/sca/policy/PolicyFactory.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/policy/src/main/java/org/apache/tuscany/sca/policy/PolicySet.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/policy/src/main/java/org/apache/tuscany/sca/policy/PolicySetAttachPoint.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/policy/src/main/java/org/apache/tuscany/sca/policy/PolicySetReference.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/policy/src/main/java/org/apache/tuscany/sca/policy/ProfileIntent.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/policy/src/main/java/org/apache/tuscany/sca/policy/QualifiedIntent.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/policy/src/main/java/org/apache/tuscany/sca/policy/impl/BindingTypeImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/policy/src/main/java/org/apache/tuscany/sca/policy/impl/ImplementationTypeImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/policy/src/main/java/org/apache/tuscany/sca/policy/impl/IntentAttachPointTypeFactoryImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/policy/src/main/java/org/apache/tuscany/sca/policy/impl/IntentImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/policy/src/main/java/org/apache/tuscany/sca/policy/impl/IntentMapImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/policy/src/main/java/org/apache/tuscany/sca/policy/impl/PolicyContextImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/policy/src/main/java/org/apache/tuscany/sca/policy/impl/PolicyFactoryImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/policy/src/main/java/org/apache/tuscany/sca/policy/impl/PolicySetImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/policy/src/main/java/org/apache/tuscany/sca/policy/impl/PolicySetReferenceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/policy/src/main/java/org/apache/tuscany/sca/policy/impl/ProfileIntentImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/policy/src/main/java/org/apache/tuscany/sca/policy/impl/QualifiedIntentImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/policy/src/main/java/org/apache/tuscany/sca/policy/util/PolicyComputationUtils.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/policy/src/main/java/org/apache/tuscany/sca/policy/util/PolicyHandler.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/policy/src/main/java/org/apache/tuscany/sca/policy/util/PolicyHandlerDefinitionsLoader.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/policy/src/main/java/org/apache/tuscany/sca/policy/util/PolicyHandlerTuple.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/policy/src/main/java/org/apache/tuscany/sca/policy/util/PolicyHandlerUtils.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/policy/src/main/java/org/apache/tuscany/sca/policy/util/PolicyValidationException.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/policy/src/main/java/org/apache/tuscany/sca/policy/util/PolicyValidationUtils.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/policy/src/main/resources/META-INF/services/org.apache.tuscany.sca.policy.IntentAttachPointTypeFactory create mode 100644 tags/java/sca/1.5.1-RC4/modules/policy/src/main/resources/META-INF/services/org.apache.tuscany.sca.policy.PolicyFactory create mode 100644 tags/java/sca/1.5.1-RC4/modules/policy/src/test/java/org/apache/tuscany/sca/policy/PolicyFactoryTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/modules/sca-api-extension/LICENSE create mode 100644 tags/java/sca/1.5.1-RC4/modules/sca-api-extension/NOTICE create mode 100644 tags/java/sca/1.5.1-RC4/modules/sca-api-extension/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/modules/sca-api-extension/src/main/java/org/apache/tuscany/sca/api/ComponentContextExtension.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/sca-api/LICENSE create mode 100644 tags/java/sca/1.5.1-RC4/modules/sca-api/NOTICE create mode 100644 tags/java/sca/1.5.1-RC4/modules/sca-api/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/modules/sca-api/src/main/java/org/osoa/sca/CallableReference.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/sca-api/src/main/java/org/osoa/sca/ComponentContext.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/sca-api/src/main/java/org/osoa/sca/Constants.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/sca-api/src/main/java/org/osoa/sca/Conversation.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/sca-api/src/main/java/org/osoa/sca/ConversationEndedException.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/sca-api/src/main/java/org/osoa/sca/NoRegisteredCallbackException.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/sca-api/src/main/java/org/osoa/sca/RequestContext.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/sca-api/src/main/java/org/osoa/sca/ServiceReference.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/sca-api/src/main/java/org/osoa/sca/ServiceRuntimeException.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/sca-api/src/main/java/org/osoa/sca/ServiceUnavailableException.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/sca-api/src/main/java/org/osoa/sca/annotations/AllowsPassByReference.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/sca-api/src/main/java/org/osoa/sca/annotations/Authentication.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/sca-api/src/main/java/org/osoa/sca/annotations/Callback.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/sca-api/src/main/java/org/osoa/sca/annotations/ComponentName.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/sca-api/src/main/java/org/osoa/sca/annotations/Confidentiality.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/sca-api/src/main/java/org/osoa/sca/annotations/Constructor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/sca-api/src/main/java/org/osoa/sca/annotations/Context.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/sca-api/src/main/java/org/osoa/sca/annotations/ConversationAttributes.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/sca-api/src/main/java/org/osoa/sca/annotations/ConversationID.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/sca-api/src/main/java/org/osoa/sca/annotations/Conversational.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/sca-api/src/main/java/org/osoa/sca/annotations/Destroy.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/sca-api/src/main/java/org/osoa/sca/annotations/EagerInit.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/sca-api/src/main/java/org/osoa/sca/annotations/EndsConversation.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/sca-api/src/main/java/org/osoa/sca/annotations/Init.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/sca-api/src/main/java/org/osoa/sca/annotations/Integrity.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/sca-api/src/main/java/org/osoa/sca/annotations/Intent.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/sca-api/src/main/java/org/osoa/sca/annotations/OneWay.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/sca-api/src/main/java/org/osoa/sca/annotations/PolicySets.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/sca-api/src/main/java/org/osoa/sca/annotations/Property.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/sca-api/src/main/java/org/osoa/sca/annotations/Qualifier.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/sca-api/src/main/java/org/osoa/sca/annotations/Reference.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/sca-api/src/main/java/org/osoa/sca/annotations/Remotable.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/sca-api/src/main/java/org/osoa/sca/annotations/Requires.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/sca-api/src/main/java/org/osoa/sca/annotations/Scope.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/sca-api/src/main/java/org/osoa/sca/annotations/Service.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/tracing-aspectj/LICENSE create mode 100644 tags/java/sca/1.5.1-RC4/modules/tracing-aspectj/NOTICE create mode 100644 tags/java/sca/1.5.1-RC4/modules/tracing-aspectj/launcher.bat create mode 100644 tags/java/sca/1.5.1-RC4/modules/tracing-aspectj/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/modules/tracing-aspectj/src/main/java/org/apache/tuscany/sca/aspectj/LoggingAspect.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/tracing-aspectj/src/main/java/org/apache/tuscany/sca/aspectj/SimpleTracingAspect.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/tracing-aspectj/src/main/java/org/apache/tuscany/sca/aspectj/TimingAspect.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/tracing-aspectj/src/main/java/org/apache/tuscany/sca/aspectj/TracingAspect.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/tracing-aspectj/src/main/resources/META-INF/aop.xml create mode 100644 tags/java/sca/1.5.1-RC4/modules/tracing-aspectj/src/test/java/org/apache/tuscany/sca/aspectj/TracingTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/web-javascript-dojo/LICENSE create mode 100644 tags/java/sca/1.5.1-RC4/modules/web-javascript-dojo/NOTICE create mode 100644 tags/java/sca/1.5.1-RC4/modules/web-javascript-dojo/build-dojo.xml create mode 100644 tags/java/sca/1.5.1-RC4/modules/web-javascript-dojo/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/modules/web-javascript-dojo/src/main/java/org/apache/tuscany/sca/web/javascript/dojo/DojoModuleActivator.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/web-javascript-dojo/src/main/java/org/apache/tuscany/sca/web/javascript/dojo/DojoResourceServlet.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/web-javascript-dojo/src/main/resources/META-INF/services/org.apache.tuscany.sca.core.ModuleActivator create mode 100644 tags/java/sca/1.5.1-RC4/modules/web-javascript-dojo/src/main/resources/tuscany/AtomService.js create mode 100644 tags/java/sca/1.5.1-RC4/modules/web-javascript/LICENSE create mode 100644 tags/java/sca/1.5.1-RC4/modules/web-javascript/NOTICE create mode 100644 tags/java/sca/1.5.1-RC4/modules/web-javascript/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/modules/web-javascript/src/main/java/org/apache/tuscany/sca/web/javascript/ComponentJavaScriptGenerator.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/web-javascript/src/main/java/org/apache/tuscany/sca/web/javascript/ComponentJavaScriptGeneratorExtensionPoint.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/web-javascript/src/main/java/org/apache/tuscany/sca/web/javascript/DefaultComponentJavaScriptGeneratorExtensionPoint.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/web-javascript/src/main/java/org/apache/tuscany/sca/web/javascript/DefaultJavascriptProxyFactoryExtensionPoint.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/web-javascript/src/main/java/org/apache/tuscany/sca/web/javascript/JavascriptProxyFactory.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/web-javascript/src/main/java/org/apache/tuscany/sca/web/javascript/JavascriptProxyFactoryExtensionPoint.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/web-javascript/src/main/resources/META-INF/services/org.apache.tuscany.sca.web.javascript.ComponentJavaScriptGeneratorExtensionPoint create mode 100644 tags/java/sca/1.5.1-RC4/modules/web-javascript/src/main/resources/META-INF/services/org.apache.tuscany.sca.web.javascript.JavascriptProxyFactoryExtensionPoint create mode 100644 tags/java/sca/1.5.1-RC4/modules/web-javascript/src/main/resources/web-javascript-validation-messages.properties create mode 100644 tags/java/sca/1.5.1-RC4/modules/workspace-impl/LICENSE create mode 100644 tags/java/sca/1.5.1-RC4/modules/workspace-impl/NOTICE create mode 100644 tags/java/sca/1.5.1-RC4/modules/workspace-impl/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/modules/workspace-impl/src/main/java/org/apache/tuscany/sca/workspace/builder/impl/ContributionDependencyBuilderImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/workspace-impl/src/main/java/org/apache/tuscany/sca/workspace/processor/impl/ContributionContentProcessor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/workspace-impl/src/main/java/org/apache/tuscany/sca/workspace/processor/impl/ContributionInfoProcessor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/workspace-impl/src/main/java/org/apache/tuscany/sca/workspace/scanner/impl/DirectoryContributionScanner.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/workspace-impl/src/main/java/org/apache/tuscany/sca/workspace/scanner/impl/JarContributionScanner.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/workspace-impl/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.processor.URLArtifactProcessor create mode 100644 tags/java/sca/1.5.1-RC4/modules/workspace-impl/src/main/resources/workspace-validation-messages.properties create mode 100644 tags/java/sca/1.5.1-RC4/modules/workspace-impl/src/main/resources/workspace-validation-messages_it.properties create mode 100644 tags/java/sca/1.5.1-RC4/modules/workspace-impl/src/test/java/org/apache/tuscany/sca/workspace/builder/impl/ContributionDependencyBuilderTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/workspace-manager/LICENSE create mode 100644 tags/java/sca/1.5.1-RC4/modules/workspace-manager/NOTICE create mode 100644 tags/java/sca/1.5.1-RC4/modules/workspace-manager/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/modules/workspace-manager/src/main/java/org/apache/tuscany/sca/workspace/manager/WorkspaceManager.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/workspace-manager/src/main/java/org/apache/tuscany/sca/workspace/manager/impl/WorkspaceManagerImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/workspace-xml/LICENSE create mode 100644 tags/java/sca/1.5.1-RC4/modules/workspace-xml/NOTICE create mode 100644 tags/java/sca/1.5.1-RC4/modules/workspace-xml/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/modules/workspace-xml/src/main/java/org/apache/tuscany/sca/workspace/xml/WorkspaceDocumentProcessor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/workspace-xml/src/main/java/org/apache/tuscany/sca/workspace/xml/WorkspaceProcessor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/workspace-xml/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessor create mode 100644 tags/java/sca/1.5.1-RC4/modules/workspace-xml/src/main/resources/workspace-xml-validation-messages.properties create mode 100644 tags/java/sca/1.5.1-RC4/modules/workspace-xml/src/test/java/org/apache/tuscany/sca/workspace/xml/ContributionWorkspaceProcessorTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/workspace/LICENSE create mode 100644 tags/java/sca/1.5.1-RC4/modules/workspace/NOTICE create mode 100644 tags/java/sca/1.5.1-RC4/modules/workspace/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/modules/workspace/src/main/java/org/apache/tuscany/sca/workspace/DefaultWorkspaceFactory.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/workspace/src/main/java/org/apache/tuscany/sca/workspace/Workspace.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/workspace/src/main/java/org/apache/tuscany/sca/workspace/WorkspaceFactory.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/workspace/src/main/java/org/apache/tuscany/sca/workspace/builder/ContributionDependencyBuilder.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/workspace/src/main/java/org/apache/tuscany/sca/workspace/impl/WorkspaceFactoryImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/workspace/src/main/java/org/apache/tuscany/sca/workspace/impl/WorkspaceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/workspace/src/main/resources/META-INF/services/org.apache.tuscany.sca.workspace.WorkspaceFactory create mode 100644 tags/java/sca/1.5.1-RC4/modules/xsd-xml/LICENSE create mode 100644 tags/java/sca/1.5.1-RC4/modules/xsd-xml/NOTICE create mode 100644 tags/java/sca/1.5.1-RC4/modules/xsd-xml/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/modules/xsd-xml/src/main/java/org/apache/tuscany/sca/xsd/xml/XMLDocumentHelper.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/xsd-xml/src/main/java/org/apache/tuscany/sca/xsd/xml/XSDDocumentProcessor.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/xsd-xml/src/main/java/org/apache/tuscany/sca/xsd/xml/XSDModelResolver.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/xsd-xml/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.processor.URLArtifactProcessor create mode 100644 tags/java/sca/1.5.1-RC4/modules/xsd-xml/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.resolver.ModelResolver create mode 100644 tags/java/sca/1.5.1-RC4/modules/xsd-xml/src/main/resources/xsd-xml-validation-messages.properties create mode 100644 tags/java/sca/1.5.1-RC4/modules/xsd-xml/src/test/java/org/apache/tuscany/sca/xsd/xml/XMLDocumentHelperTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/xsd-xml/src/test/java/org/apache/tuscany/sca/xsd/xml/XSDDocumentProcessorTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/xsd-xml/src/test/resources/xsd/greeting.xsd create mode 100644 tags/java/sca/1.5.1-RC4/modules/xsd-xml/src/test/resources/xsd/name.xsd create mode 100644 tags/java/sca/1.5.1-RC4/modules/xsd/LICENSE create mode 100644 tags/java/sca/1.5.1-RC4/modules/xsd/NOTICE create mode 100644 tags/java/sca/1.5.1-RC4/modules/xsd/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/modules/xsd/src/main/java/org/apache/tuscany/sca/xsd/DefaultXSDFactory.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/xsd/src/main/java/org/apache/tuscany/sca/xsd/XSDFactory.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/xsd/src/main/java/org/apache/tuscany/sca/xsd/XSDefinition.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/xsd/src/main/java/org/apache/tuscany/sca/xsd/impl/XSDFactoryImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/xsd/src/main/java/org/apache/tuscany/sca/xsd/impl/XSDefinitionImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/modules/xsd/src/main/resources/META-INF/services/org.apache.tuscany.sca.xsd.XSDFactory create mode 100644 tags/java/sca/1.5.1-RC4/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/README create mode 100644 tags/java/sca/1.5.1-RC4/samples/binding-echo-extension/README create mode 100644 tags/java/sca/1.5.1-RC4/samples/binding-echo-extension/build.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/binding-echo-extension/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/binding-echo-extension/src/main/java/echo/EchoBinding.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/binding-echo-extension/src/main/java/echo/EchoBindingFactory.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/binding-echo-extension/src/main/java/echo/impl/EchoBindingFactoryImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/binding-echo-extension/src/main/java/echo/impl/EchoBindingImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/binding-echo-extension/src/main/java/echo/impl/EchoBindingProcessor.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/binding-echo-extension/src/main/java/echo/provider/EchoBindingInvoker.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/binding-echo-extension/src/main/java/echo/provider/EchoBindingPoliciedInvoker.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/binding-echo-extension/src/main/java/echo/provider/EchoBindingProviderFactory.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/binding-echo-extension/src/main/java/echo/provider/EchoReferenceBindingProvider.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/binding-echo-extension/src/main/java/echo/provider/EchoServiceBindingProvider.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/binding-echo-extension/src/main/java/echo/provider/policy/EchoBindingEncryptionPolicy.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/binding-echo-extension/src/main/java/echo/provider/policy/EchoBindingEncryptionPolicyProcessor.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/binding-echo-extension/src/main/java/echo/provider/policy/EchoBindingPolicy.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/binding-echo-extension/src/main/java/echo/provider/policy/EchoBindingPolicyProcessor.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/binding-echo-extension/src/main/java/echo/provider/policy/EncryptionPolicyHandler.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/binding-echo-extension/src/main/java/echo/provider/policy/EncryptionStrategy.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/binding-echo-extension/src/main/java/echo/provider/policy/PolicyHandler.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/binding-echo-extension/src/main/java/echo/provider/policy/ReverseEncryptionStrategy.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/binding-echo-extension/src/main/java/echo/provider/policy/WSPolicy.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/binding-echo-extension/src/main/java/echo/provider/policy/WSPolicyProcessor.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/binding-echo-extension/src/main/java/echo/server/EchoServer.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/binding-echo-extension/src/main/java/echo/server/EchoServiceListener.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/binding-echo-extension/src/main/resources/META-INF/services/echo.EchoBindingFactory create mode 100644 tags/java/sca/1.5.1-RC4/samples/binding-echo-extension/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessor create mode 100644 tags/java/sca/1.5.1-RC4/samples/binding-echo-extension/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.processor.ValidationSchema create mode 100644 tags/java/sca/1.5.1-RC4/samples/binding-echo-extension/src/main/resources/META-INF/services/org.apache.tuscany.sca.provider.BindingProviderFactory create mode 100644 tags/java/sca/1.5.1-RC4/samples/binding-echo-extension/src/main/resources/sample-binding-echo.xsd create mode 100644 tags/java/sca/1.5.1-RC4/samples/binding-echo-extension/src/test/java/echo/Echo.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/binding-echo-extension/src/test/java/echo/EchoComponentImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/binding-echo-extension/src/test/java/echo/EchoReferenceTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/binding-echo-extension/src/test/java/echo/EchoServiceTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/binding-echo-extension/src/test/resources/EchoBinding.composite create mode 100644 tags/java/sca/1.5.1-RC4/samples/binding-echo-extension/src/test/resources/definitions.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/binding-echo/README create mode 100644 tags/java/sca/1.5.1-RC4/samples/binding-echo/binding-echo.png create mode 100644 tags/java/sca/1.5.1-RC4/samples/binding-echo/binding-echo.svg create mode 100644 tags/java/sca/1.5.1-RC4/samples/binding-echo/build.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/binding-echo/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/binding-echo/src/main/java/echo/Echo.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/binding-echo/src/main/java/echo/EchoBindingClient.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/binding-echo/src/main/java/echo/EchoComponentImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/binding-echo/src/main/resources/EchoBinding.composite create mode 100644 tags/java/sca/1.5.1-RC4/samples/binding-echo/src/test/java/echo/EchoBindingTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/binding-notification-broker/README create mode 100644 tags/java/sca/1.5.1-RC4/samples/binding-notification-broker/binding-notification-broker.png create mode 100644 tags/java/sca/1.5.1-RC4/samples/binding-notification-broker/build.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/binding-notification-broker/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/binding-notification-broker/src/main/java/notification/broker/TestCaseProducer.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/binding-notification-broker/src/main/java/notification/broker/TrafficAdvisory.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/binding-notification-broker/src/main/java/notification/broker/TrafficAdvisoryConsumer.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/binding-notification-broker/src/main/java/notification/broker/TrafficAdvisoryProducer.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/binding-notification-broker/src/main/java/notification/broker/TrafficAdvisoryServer.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/binding-notification-broker/src/main/resources/TrafficAdvisoryNotification.componentType create mode 100644 tags/java/sca/1.5.1-RC4/samples/binding-notification-broker/src/main/resources/TrafficAdvisoryNotification.composite create mode 100644 tags/java/sca/1.5.1-RC4/samples/binding-notification-broker/src/main/resources/wsdl/TrafficAdvisory.wsdl create mode 100644 tags/java/sca/1.5.1-RC4/samples/binding-notification-consumer/README create mode 100644 tags/java/sca/1.5.1-RC4/samples/binding-notification-consumer/binding-notification-consumer.png create mode 100644 tags/java/sca/1.5.1-RC4/samples/binding-notification-consumer/build.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/binding-notification-consumer/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/binding-notification-consumer/src/main/java/notification/consumer/TrafficAdvisory.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/binding-notification-consumer/src/main/java/notification/consumer/TrafficAdvisoryConsumer.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/binding-notification-consumer/src/main/java/notification/consumer/TrafficAdvisoryServer.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/binding-notification-consumer/src/main/resources/TrafficAdvisoryNotification.componentType create mode 100644 tags/java/sca/1.5.1-RC4/samples/binding-notification-consumer/src/main/resources/TrafficAdvisoryNotification.composite create mode 100644 tags/java/sca/1.5.1-RC4/samples/binding-notification-consumer/src/main/resources/wsdl/TrafficAdvisory.wsdl create mode 100644 tags/java/sca/1.5.1-RC4/samples/binding-notification-consumer/src/test/java/notification/consumer/TrafficAdvisoryTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/binding-notification-producer/README create mode 100644 tags/java/sca/1.5.1-RC4/samples/binding-notification-producer/binding-notification-producer.png create mode 100644 tags/java/sca/1.5.1-RC4/samples/binding-notification-producer/build.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/binding-notification-producer/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/binding-notification-producer/src/main/java/notification/producer/TestCaseProducer.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/binding-notification-producer/src/main/java/notification/producer/TrafficAdvisory.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/binding-notification-producer/src/main/java/notification/producer/TrafficAdvisoryProducer.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/binding-notification-producer/src/main/java/notification/producer/TrafficAdvisoryServer.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/binding-notification-producer/src/main/resources/TrafficAdvisoryNotification.componentType create mode 100644 tags/java/sca/1.5.1-RC4/samples/binding-notification-producer/src/main/resources/TrafficAdvisoryNotification.composite create mode 100644 tags/java/sca/1.5.1-RC4/samples/binding-notification-producer/src/main/resources/wsdl/TrafficAdvisory.wsdl create mode 100644 tags/java/sca/1.5.1-RC4/samples/binding-notification-producer/src/test/java/notification/producer/TrafficAdvisoryTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-corba-reference/README create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-corba-reference/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-corba-reference/src/main/java/calculator/AddService.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-corba-reference/src/main/java/calculator/CalculatorClient.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-corba-reference/src/main/java/calculator/CalculatorService.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-corba-reference/src/main/java/calculator/CalculatorServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-corba-reference/src/main/java/calculator/DivideService.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-corba-reference/src/main/java/calculator/MultiplyService.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-corba-reference/src/main/java/calculator/SubtractService.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-corba-reference/src/main/resources/CalculatorCORBAReference.composite create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-corba-reference/src/test/java/calculator/CalculatorCORBAReferenceTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-corba-reference/src/test/java/calculator/CalculatorCORBAServant.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-corba-reference/src/test/java/calculator/idl/CalculatorCORBAService.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-corba-reference/src/test/java/calculator/idl/CalculatorCORBAServiceOperations.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-corba-reference/src/test/java/calculator/idl/_CalculatorCORBAServiceImplBase.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-corba-reference/src/test/resources/CalculatorCORBA.idl create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-corba-service/README create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-corba-service/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-corba-service/src/main/java/calculator/AddService.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-corba-service/src/main/java/calculator/AddServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-corba-service/src/main/java/calculator/CalculatorService.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-corba-service/src/main/java/calculator/CalculatorServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-corba-service/src/main/java/calculator/DivideService.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-corba-service/src/main/java/calculator/DivideServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-corba-service/src/main/java/calculator/MultiplyService.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-corba-service/src/main/java/calculator/MultiplyServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-corba-service/src/main/java/calculator/SubtractService.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-corba-service/src/main/java/calculator/SubtractServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-corba-service/src/main/resources/CalculatorCORBAServer.composite create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-corba-service/src/test/java/calculator/CalculatorCORBAServerTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-corba-service/src/test/java/calculator/idl/CalculatorCORBAService.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-corba-service/src/test/java/calculator/idl/CalculatorCORBAServiceHelper.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-corba-service/src/test/java/calculator/idl/CalculatorCORBAServiceHolder.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-corba-service/src/test/java/calculator/idl/CalculatorCORBAServiceOperations.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-corba-service/src/test/java/calculator/idl/_CalculatorCORBAServiceStub.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-corba-service/src/test/resources/CalculatorCORBA.idl create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-distributed/README create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-distributed/build.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-distributed/calculator-distributed.png create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-distributed/calculator-distributed.svg create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-distributed/cloud.composite create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-distributed/domain.composite create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-distributed/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-distributed/src/main/java/calculator/AddService.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-distributed/src/main/java/calculator/AddServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-distributed/src/main/java/calculator/CalculatorService.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-distributed/src/main/java/calculator/CalculatorServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-distributed/src/main/java/calculator/DivideService.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-distributed/src/main/java/calculator/DivideServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-distributed/src/main/java/calculator/MultiplyService.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-distributed/src/main/java/calculator/MultiplyServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-distributed/src/main/java/calculator/SubtractService.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-distributed/src/main/java/calculator/SubtractServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-distributed/src/main/java/node/LaunchCalculatorNodeA.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-distributed/src/main/java/node/LaunchCalculatorNodeB.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-distributed/src/main/java/node/LaunchCalculatorNodeC.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-distributed/src/main/java/node/LaunchDomain.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-distributed/src/main/resources/cloud/NodeA.composite create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-distributed/src/main/resources/cloud/NodeB.composite create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-distributed/src/main/resources/cloud/NodeC.composite create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-distributed/src/main/resources/nodeA/Calculator.composite create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-distributed/src/main/resources/nodeA/META-INF/sca-contribution.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-distributed/src/main/resources/nodeB/Calculator.composite create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-distributed/src/main/resources/nodeB/META-INF/sca-contribution.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-distributed/src/main/resources/nodeC/Calculator.composite create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-distributed/src/main/resources/nodeC/META-INF/sca-contribution.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-distributed/src/test/java/calculator/CalculatorDistributedTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-distributed/workspace.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-implementation-policies/README create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-implementation-policies/build.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-implementation-policies/calculator.png create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-implementation-policies/calculator.svg create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-implementation-policies/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-implementation-policies/src/main/java/calculator/AddService.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-implementation-policies/src/main/java/calculator/AddServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-implementation-policies/src/main/java/calculator/CalculatorClient.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-implementation-policies/src/main/java/calculator/CalculatorService.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-implementation-policies/src/main/java/calculator/CalculatorServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-implementation-policies/src/main/java/calculator/DivideService.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-implementation-policies/src/main/java/calculator/DivideServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-implementation-policies/src/main/java/calculator/MultiplyService.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-implementation-policies/src/main/java/calculator/MultiplyServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-implementation-policies/src/main/java/calculator/SubtractService.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-implementation-policies/src/main/java/calculator/SubtractServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-implementation-policies/src/main/java/calculator/security/CalculatorCallbackHandler.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-implementation-policies/src/main/java/calculator/security/JaasLoginModule.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-implementation-policies/src/main/java/calculator/security/UserPrincipal.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-implementation-policies/src/main/resources/Calculator.composite create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-implementation-policies/src/main/resources/CalculatorJass.config create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-implementation-policies/src/main/resources/CalculatorLogMessages.properties create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-implementation-policies/src/main/resources/definitions.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-implementation-policies/src/test/java/calculator/CalculatorTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-lean/README create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-lean/calculator.png create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-lean/calculator.svg create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-lean/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-lean/src/main/java/calculator/AddService.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-lean/src/main/java/calculator/AddServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-lean/src/main/java/calculator/CalculatorClient.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-lean/src/main/java/calculator/CalculatorService.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-lean/src/main/java/calculator/CalculatorServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-lean/src/main/java/calculator/DivideService.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-lean/src/main/java/calculator/DivideServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-lean/src/main/java/calculator/MultiplyService.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-lean/src/main/java/calculator/MultiplyServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-lean/src/main/java/calculator/SubtractService.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-lean/src/main/java/calculator/SubtractServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-lean/src/main/resources/Calculator.composite create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-lean/src/main/resources/CalculatorTest.composite create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-lean/src/test/java/calculator/CalculatorTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-rmi-reference/README create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-rmi-reference/build.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-rmi-reference/calculator-rmi-reference.png create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-rmi-reference/calculator-rmi-reference.svg create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-rmi-reference/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-rmi-reference/src/main/java/calculator/AddService.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-rmi-reference/src/main/java/calculator/CalculatorClient.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-rmi-reference/src/main/java/calculator/CalculatorService.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-rmi-reference/src/main/java/calculator/CalculatorServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-rmi-reference/src/main/java/calculator/DivideService.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-rmi-reference/src/main/java/calculator/MultiplyService.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-rmi-reference/src/main/java/calculator/SubtractService.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-rmi-reference/src/main/resources/CalculatorRMIReference.composite create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-rmi-reference/src/test/java/calculator/CalculatorRMIReferenceTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-rmi-reference/src/test/java/calculator/CalculatorRMIServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-rmi-service/README create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-rmi-service/build.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-rmi-service/calculator-rmi-service.png create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-rmi-service/calculator-rmi-service.svg create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-rmi-service/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-rmi-service/src/main/java/calculator/AddService.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-rmi-service/src/main/java/calculator/AddServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-rmi-service/src/main/java/calculator/CalculatorClient.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-rmi-service/src/main/java/calculator/CalculatorServer.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-rmi-service/src/main/java/calculator/CalculatorService.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-rmi-service/src/main/java/calculator/CalculatorServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-rmi-service/src/main/java/calculator/DivideService.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-rmi-service/src/main/java/calculator/DivideServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-rmi-service/src/main/java/calculator/MultiplyService.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-rmi-service/src/main/java/calculator/MultiplyServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-rmi-service/src/main/java/calculator/SubtractService.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-rmi-service/src/main/java/calculator/SubtractServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-rmi-service/src/main/resources/CalculatorRMIServer.composite create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-rmi-service/src/test/java/calculator/CalculatorRMIServerTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-script/README create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-script/build.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-script/calculator-script.png create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-script/calculator-script.svg create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-script/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-script/src/main/java/calculator/AddService.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-script/src/main/java/calculator/CalculatorClient.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-script/src/main/java/calculator/CalculatorService.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-script/src/main/java/calculator/CalculatorServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-script/src/main/java/calculator/DivideService.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-script/src/main/java/calculator/MultiplyService.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-script/src/main/java/calculator/SubtractService.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-script/src/main/resources/Calculator.composite create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-script/src/main/resources/calculator/AddServiceImpl.js create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-script/src/main/resources/calculator/DivideServiceImpl.groovy create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-script/src/main/resources/calculator/MultiplyServiceImpl.py create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-script/src/main/resources/calculator/SubtractServiceImpl.rb create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-script/src/test/java/calculator/CalculatorTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-webapp/README create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-webapp/calculator-web.png create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-webapp/calculator-web.svg create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-webapp/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-webapp/src/main/java/calculator/AddService.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-webapp/src/main/java/calculator/AddServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-webapp/src/main/java/calculator/CalculatorClient.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-webapp/src/main/java/calculator/CalculatorService.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-webapp/src/main/java/calculator/CalculatorServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-webapp/src/main/java/calculator/DivideService.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-webapp/src/main/java/calculator/DivideServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-webapp/src/main/java/calculator/MultiplyService.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-webapp/src/main/java/calculator/MultiplyServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-webapp/src/main/java/calculator/SubtractService.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-webapp/src/main/java/calculator/SubtractServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-webapp/src/main/resources/Calculator.composite create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-webapp/src/main/webapp/META-INF/sca-contribution.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-webapp/src/main/webapp/WEB-INF/geronimo-web.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-webapp/src/main/webapp/WEB-INF/web.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-webapp/src/main/webapp/calc.jsp create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-ws-secure-webapp/README create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-ws-secure-webapp/calculator-web.png create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-ws-secure-webapp/calculator-web.svg create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-ws-secure-webapp/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-ws-secure-webapp/src/main/java/calculator/AddService.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-ws-secure-webapp/src/main/java/calculator/AddServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-ws-secure-webapp/src/main/java/calculator/CalculatorClient.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-ws-secure-webapp/src/main/java/calculator/CalculatorService.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-ws-secure-webapp/src/main/java/calculator/CalculatorServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-ws-secure-webapp/src/main/java/calculator/DivideService.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-ws-secure-webapp/src/main/java/calculator/DivideServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-ws-secure-webapp/src/main/java/calculator/MultiplyService.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-ws-secure-webapp/src/main/java/calculator/MultiplyServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-ws-secure-webapp/src/main/java/calculator/SubtractService.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-ws-secure-webapp/src/main/java/calculator/SubtractServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-ws-secure-webapp/src/main/java/calculator/security/ClientPWCBHandler.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-ws-secure-webapp/src/main/java/calculator/security/ServerPWCBHandler.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-ws-secure-webapp/src/main/resources/Calculator.composite create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-ws-secure-webapp/src/main/resources/META-INF/services/org.apache.tuscany.sca.policy.util.PolicyHandler create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-ws-secure-webapp/src/main/resources/calculatorKeys.jks create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-ws-secure-webapp/src/main/resources/definitions.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-ws-secure-webapp/src/main/resources/security.properties create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-ws-secure-webapp/src/main/webapp/META-INF/sca-contribution.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-ws-secure-webapp/src/main/webapp/WEB-INF/geronimo-web.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-ws-secure-webapp/src/main/webapp/WEB-INF/web.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-ws-secure-webapp/src/main/webapp/calc.jsp create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-ws-webapp/README create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-ws-webapp/calculator-web.png create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-ws-webapp/calculator-web.svg create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-ws-webapp/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-ws-webapp/src/main/java/calculator/AddService.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-ws-webapp/src/main/java/calculator/AddServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-ws-webapp/src/main/java/calculator/CalculatorService.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-ws-webapp/src/main/java/calculator/CalculatorServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-ws-webapp/src/main/java/calculator/DivideService.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-ws-webapp/src/main/java/calculator/DivideServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-ws-webapp/src/main/java/calculator/MultiplyService.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-ws-webapp/src/main/java/calculator/MultiplyServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-ws-webapp/src/main/java/calculator/SubtractService.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-ws-webapp/src/main/java/calculator/SubtractServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-ws-webapp/src/main/resources/Calculator.composite create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-ws-webapp/src/main/webapp/META-INF/sca-contribution.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-ws-webapp/src/main/webapp/WEB-INF/geronimo-web.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-ws-webapp/src/main/webapp/WEB-INF/web.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator-ws-webapp/src/main/webapp/calc.jsp create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator/README create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator/build.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator/calculator.png create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator/calculator.svg create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator/src/main/java/calculator/AddService.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator/src/main/java/calculator/AddServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator/src/main/java/calculator/CalculatorClient.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator/src/main/java/calculator/CalculatorService.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator/src/main/java/calculator/CalculatorServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator/src/main/java/calculator/DivideService.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator/src/main/java/calculator/DivideServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator/src/main/java/calculator/MultiplyService.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator/src/main/java/calculator/MultiplyServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator/src/main/java/calculator/SubtractService.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator/src/main/java/calculator/SubtractServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator/src/main/resources/Calculator.composite create mode 100644 tags/java/sca/1.5.1-RC4/samples/calculator/src/test/java/calculator/CalculatorTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/callback-ws-client/README create mode 100644 tags/java/sca/1.5.1-RC4/samples/callback-ws-client/build.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/callback-ws-client/callback-ws-client.png create mode 100644 tags/java/sca/1.5.1-RC4/samples/callback-ws-client/callback-ws-client.svg create mode 100644 tags/java/sca/1.5.1-RC4/samples/callback-ws-client/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/callback-ws-client/src/main/java/myapp/MyClient.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/callback-ws-client/src/main/java/myapp/MyClientImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/callback-ws-client/src/main/java/myserver/MyService.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/callback-ws-client/src/main/java/myserver/MyServiceCallback.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/callback-ws-client/src/main/resources/META-INF/sca-contribution.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/callback-ws-client/src/main/resources/myapp.composite create mode 100644 tags/java/sca/1.5.1-RC4/samples/callback-ws-client/src/test/java/myapp/CallbackClientTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/callback-ws-service/README create mode 100644 tags/java/sca/1.5.1-RC4/samples/callback-ws-service/build.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/callback-ws-service/callback-ws-service.png create mode 100644 tags/java/sca/1.5.1-RC4/samples/callback-ws-service/callback-ws-service.svg create mode 100644 tags/java/sca/1.5.1-RC4/samples/callback-ws-service/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/callback-ws-service/src/main/java/myserver/CallbackServer.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/callback-ws-service/src/main/java/myserver/MyService.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/callback-ws-service/src/main/java/myserver/MyServiceCallback.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/callback-ws-service/src/main/java/myserver/MyServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/callback-ws-service/src/main/resources/META-INF/sca-contribution.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/callback-ws-service/src/main/resources/callbackws.composite create mode 100644 tags/java/sca/1.5.1-RC4/samples/callback-ws-service/src/test/java/myserver/CallbackServerTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/callbacks-jms/README create mode 100644 tags/java/sca/1.5.1-RC4/samples/callbacks-jms/build.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/callbacks-jms/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/callbacks-jms/src/main/java/callbacks/CallbackJMSClient.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/callbacks-jms/src/main/java/callbacks/OrderCallback.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/callbacks-jms/src/main/java/callbacks/OrderRequest.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/callbacks-jms/src/main/java/callbacks/OrderResponse.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/callbacks-jms/src/main/java/callbacks/OrderService.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/callbacks-jms/src/main/java/callbacks/OrderServiceClient.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/callbacks-jms/src/main/java/callbacks/OrderServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/callbacks-jms/src/main/resources/callbacks.composite create mode 100644 tags/java/sca/1.5.1-RC4/samples/callbacks-jms/src/main/resources/jndi.properties create mode 100644 tags/java/sca/1.5.1-RC4/samples/callbacks-jms/src/test/java/callbacks/CallbacksTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/chat-webapp/README create mode 100644 tags/java/sca/1.5.1-RC4/samples/chat-webapp/chat-webapp.png create mode 100644 tags/java/sca/1.5.1-RC4/samples/chat-webapp/chat-webapp.svg create mode 100644 tags/java/sca/1.5.1-RC4/samples/chat-webapp/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/chat-webapp/src/main/java/sample/ChatService.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/chat-webapp/src/main/java/sample/ChatServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/chat-webapp/src/main/resources/chat.composite create mode 100644 tags/java/sca/1.5.1-RC4/samples/chat-webapp/src/main/webapp/META-INF/sca-contribution.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/chat-webapp/src/main/webapp/WEB-INF/geronimo-web.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/chat-webapp/src/main/webapp/WEB-INF/web.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/chat-webapp/src/main/webapp/chat.html create mode 100644 tags/java/sca/1.5.1-RC4/samples/customer-dojo-webapp/README create mode 100644 tags/java/sca/1.5.1-RC4/samples/customer-dojo-webapp/build-dojo.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/customer-dojo-webapp/build.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/customer-dojo-webapp/customer-dojo-jsonrpc.png create mode 100644 tags/java/sca/1.5.1-RC4/samples/customer-dojo-webapp/customer-dojo-jsonrpc.svg create mode 100644 tags/java/sca/1.5.1-RC4/samples/customer-dojo-webapp/customer.sql create mode 100644 tags/java/sca/1.5.1-RC4/samples/customer-dojo-webapp/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/customer-dojo-webapp/src/main/java/customer/Customer.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/customer-dojo-webapp/src/main/java/customer/CustomerCollection.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/customer-dojo-webapp/src/main/java/customer/CustomerCollectionImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/customer-dojo-webapp/src/main/java/customer/CustomerService.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/customer-dojo-webapp/src/main/java/customer/CustomerServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/customer-dojo-webapp/src/main/java/launch/Launch.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/customer-dojo-webapp/src/main/resources/META-INF/orm.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/customer-dojo-webapp/src/main/resources/META-INF/persistence.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/customer-dojo-webapp/src/main/resources/META-INF/sca-contribution.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/customer-dojo-webapp/src/main/resources/customer.composite create mode 100644 tags/java/sca/1.5.1-RC4/samples/customer-dojo-webapp/src/main/webapp/META-INF/sca-contribution.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/customer-dojo-webapp/src/main/webapp/WEB-INF/geronimo-web.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/customer-dojo-webapp/src/main/webapp/WEB-INF/web.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/customer-dojo-webapp/src/main/webapp/customer.jsp create mode 100644 tags/java/sca/1.5.1-RC4/samples/customer-dojo/README create mode 100644 tags/java/sca/1.5.1-RC4/samples/customer-dojo/build-dojo.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/customer-dojo/build.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/customer-dojo/customer-dojo-jsonrpc.png create mode 100644 tags/java/sca/1.5.1-RC4/samples/customer-dojo/customer-dojo-jsonrpc.svg create mode 100644 tags/java/sca/1.5.1-RC4/samples/customer-dojo/customer.sql create mode 100644 tags/java/sca/1.5.1-RC4/samples/customer-dojo/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/customer-dojo/src/main/java/customer/Customer.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/customer-dojo/src/main/java/customer/CustomerCollection.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/customer-dojo/src/main/java/customer/CustomerCollectionImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/customer-dojo/src/main/java/customer/CustomerService.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/customer-dojo/src/main/java/customer/CustomerServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/customer-dojo/src/main/java/launch/Launch.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/customer-dojo/src/main/resources/META-INF/orm.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/customer-dojo/src/main/resources/META-INF/persistence.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/customer-dojo/src/main/resources/META-INF/sca-contribution.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/customer-dojo/src/main/resources/content/customer.html create mode 100644 tags/java/sca/1.5.1-RC4/samples/customer-dojo/src/main/resources/customer.composite create mode 100644 tags/java/sca/1.5.1-RC4/samples/databinding-echo/README create mode 100644 tags/java/sca/1.5.1-RC4/samples/databinding-echo/build.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/databinding-echo/databinding-echo.png create mode 100644 tags/java/sca/1.5.1-RC4/samples/databinding-echo/databinding-echo.svg create mode 100644 tags/java/sca/1.5.1-RC4/samples/databinding-echo/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/databinding-echo/src/main/java/dbecho/ComponentAImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/databinding-echo/src/main/java/dbecho/ComponentBImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/databinding-echo/src/main/java/dbecho/Echo.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/databinding-echo/src/main/java/dbecho/EchoDataBindingClient.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/databinding-echo/src/main/java/dbecho/Interface1.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/databinding-echo/src/main/java/dbecho/Interface2.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/databinding-echo/src/main/resources/EchoDataBinding.composite create mode 100644 tags/java/sca/1.5.1-RC4/samples/databinding-echo/src/main/resources/wsdl/echo.wsdl create mode 100644 tags/java/sca/1.5.1-RC4/samples/databinding-echo/src/test/java/dbecho/EchoDataBindingTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/domain-management/README create mode 100644 tags/java/sca/1.5.1-RC4/samples/domain-management/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/domain-management/src/main/java/manager/DistributeAndRunComponents.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/domain-management/src/main/java/manager/DistributeComponents.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/domain-management/src/main/java/manager/ListComponents.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/domain-management/src/main/java/manager/ListDependencies.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/domain-management/src/main/java/manager/ListDeployables.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/domain-management/src/main/java/manager/WireComponents.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/domain-management/src/test/java/services/Cart.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/domain-management/src/test/java/services/Item.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/domain-management/src/test/java/services/ShoppingCartClientImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/domain-management/src/test/java/services/ShoppingCartImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/domain-management/src/test/resources/assembly/assets.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/domain-management/src/test/resources/assembly/client.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/domain-management/src/test/resources/assembly/store.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/domain-management/src/test/resources/assets/META-INF/sca-contribution.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/domain-management/src/test/resources/client/META-INF/sca-contribution.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/domain-management/src/test/resources/client/client.composite create mode 100644 tags/java/sca/1.5.1-RC4/samples/domain-management/src/test/resources/store/META-INF/sca-contribution.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/domain-management/src/test/resources/store/store.composite create mode 100644 tags/java/sca/1.5.1-RC4/samples/feed-aggregator-webapp/README create mode 100644 tags/java/sca/1.5.1-RC4/samples/feed-aggregator-webapp/feed-aggregator-webapp.png create mode 100644 tags/java/sca/1.5.1-RC4/samples/feed-aggregator-webapp/feed-aggregator-webapp.svg create mode 100644 tags/java/sca/1.5.1-RC4/samples/feed-aggregator-webapp/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/feed-aggregator-webapp/src/main/java/feed/AggregatorImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/feed-aggregator-webapp/src/main/java/feed/Sort.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/feed-aggregator-webapp/src/main/java/feed/SortImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/feed-aggregator-webapp/src/main/resources/FeedAggregator.composite create mode 100644 tags/java/sca/1.5.1-RC4/samples/feed-aggregator-webapp/src/main/webapp/META-INF/sca-contribution.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/feed-aggregator-webapp/src/main/webapp/WEB-INF/geronimo-web.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/feed-aggregator-webapp/src/main/webapp/WEB-INF/web.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/feed-aggregator-webapp/src/main/webapp/index.html create mode 100644 tags/java/sca/1.5.1-RC4/samples/feed-aggregator/README create mode 100644 tags/java/sca/1.5.1-RC4/samples/feed-aggregator/build.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/feed-aggregator/feed-aggregator.png create mode 100644 tags/java/sca/1.5.1-RC4/samples/feed-aggregator/feed-aggregator.svg create mode 100644 tags/java/sca/1.5.1-RC4/samples/feed-aggregator/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/feed-aggregator/src/main/java/feed/AggregatorImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/feed-aggregator/src/main/java/feed/Sort.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/feed-aggregator/src/main/java/feed/SortImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/feed-aggregator/src/main/java/launch/LaunchFeedServer.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/feed-aggregator/src/main/resources/FeedAggregator.composite create mode 100644 tags/java/sca/1.5.1-RC4/samples/feed-aggregator/src/test/java/feed/FeedAggregatorTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-bpel/README create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-bpel/build.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-bpel/helloworld-bpel.png create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-bpel/helloworld-bpel.svg create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-bpel/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-bpel/src/main/java/helloworld/BPELClient.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-bpel/src/main/resources/helloworld.bpel create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-bpel/src/main/resources/helloworld.composite create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-bpel/src/main/resources/helloworld.wsdl create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-bpel/src/main/resources/log4j.properties create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-bpel/src/test/java/helloworld/BPELHelloWorldTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-dojo-webapp/README create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-dojo-webapp/build-dojo.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-dojo-webapp/build.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-dojo-webapp/helloworld-jsonrpc.png create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-dojo-webapp/helloworld-jsonrpc.svg create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-dojo-webapp/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-dojo-webapp/src/main/java/helloworldjsonrpc/HelloWorldService.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-dojo-webapp/src/main/java/helloworldjsonrpc/HelloWorldServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-dojo-webapp/src/main/resources/jsonrpc.composite create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-dojo-webapp/src/main/webapp/HelloWorldJSONRPC.html create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-dojo-webapp/src/main/webapp/META-INF/sca-contribution.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-dojo-webapp/src/main/webapp/WEB-INF/geronimo-web.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-dojo-webapp/src/main/webapp/WEB-INF/web.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-dojo-webapp/src/main/webapp/style.css create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-jms-webapp/README create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-jms-webapp/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-jms-webapp/src/main/java/helloworld/HelloWorldClient.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-jms-webapp/src/main/java/helloworld/HelloWorldService.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-jms-webapp/src/main/java/helloworld/HelloWorldServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-jms-webapp/src/main/webapp/META-INF/context.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-jms-webapp/src/main/webapp/META-INF/sca-deployables/HelloWorld.composite create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-jms-webapp/src/main/webapp/WEB-INF/geronimo-web.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-jms-webapp/src/main/webapp/WEB-INF/web.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-jms-webapp/src/main/webapp/hello.jsp create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-jsonrpc-webapp/README create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-jsonrpc-webapp/helloworld-jsonrpc.png create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-jsonrpc-webapp/helloworld-jsonrpc.svg create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-jsonrpc-webapp/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-jsonrpc-webapp/src/main/java/helloworldjsonrpc/HelloWorldService.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-jsonrpc-webapp/src/main/java/helloworldjsonrpc/HelloWorldServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-jsonrpc-webapp/src/main/resources/jsonrpc.composite create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-jsonrpc-webapp/src/main/webapp/HelloWorldJSONRPC.html create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-jsonrpc-webapp/src/main/webapp/META-INF/sca-contribution.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-jsonrpc-webapp/src/main/webapp/WEB-INF/geronimo-web.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-jsonrpc-webapp/src/main/webapp/WEB-INF/web.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-jsonrpc-webapp/src/main/webapp/style.css create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-reference-jms/README create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-reference-jms/build.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-reference-jms/helloworld-reference.png create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-reference-jms/helloworld-reference.svg create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-reference-jms/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-reference-jms/src/main/java/helloworld/HelloWorldImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-reference-jms/src/main/java/helloworld/HelloWorldJmsClient.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-reference-jms/src/main/java/helloworld/HelloWorldService.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-reference-jms/src/main/java/helloworld/HelloWorldServiceComponent.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-reference-jms/src/main/resources/helloworldjmsreference.composite create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-reference-jms/src/main/resources/helloworldjmsservice.composite create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-reference-jms/src/main/resources/logging.properties create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-reference-jms/src/main/resources/wsdl/helloworld.wsdl create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-reference-jms/src/test/java/helloworld/HelloWorldJmsClientTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-service-jms/README create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-service-jms/build.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-service-jms/helloworld-service.png create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-service-jms/helloworld-service.svg create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-service-jms/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-service-jms/src/main/java/helloworld/HelloWorldImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-service-jms/src/main/java/helloworld/HelloWorldServer.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-service-jms/src/main/java/helloworld/HelloWorldService.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-service-jms/src/main/resources/definitions.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-service-jms/src/main/resources/helloworldjmsservice.composite create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-service-jms/src/main/resources/wsdl/helloworld.wsdl create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-service-jms/src/test/java/helloworld/HelloWorldJmsServerTestCaseOff.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-ws-reference-jms/README create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-ws-reference-jms/build.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-ws-reference-jms/helloworld-ws-reference.png create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-ws-reference-jms/helloworld-ws-reference.svg create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-ws-reference-jms/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-ws-reference-jms/src/main/java/helloworld/HelloWorldImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-ws-reference-jms/src/main/java/helloworld/HelloWorldJmsClient.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-ws-reference-jms/src/main/java/helloworld/HelloWorldService.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-ws-reference-jms/src/main/java/helloworld/HelloWorldServiceComponent.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-ws-reference-jms/src/main/resources/helloworldwsjms.composite create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-ws-reference-jms/src/main/resources/helloworldwsjmsclient.composite create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-ws-reference-jms/src/main/resources/logging.properties create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-ws-reference-jms/src/main/resources/wsdl/helloworld.wsdl create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-ws-reference-jms/src/test/java/helloworld/HelloWorldJmsClientTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-ws-reference-lean/README create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-ws-reference-lean/helloworld-ws-reference.png create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-ws-reference-lean/helloworld-ws-reference.svg create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-ws-reference-lean/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-ws-reference-lean/src/main/java/helloworld/HelloWorldClient.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-ws-reference-lean/src/main/java/helloworld/HelloWorldClient2.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-ws-reference-lean/src/main/java/helloworld/HelloWorldClient3.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-ws-reference-lean/src/main/java/helloworld/HelloWorldClient4.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-ws-reference-lean/src/main/java/helloworld/HelloWorldClient5.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-ws-reference-lean/src/main/java/helloworld/HelloWorldService.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-ws-reference-lean/src/main/resources/helloworldwsclient.composite create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-ws-reference-lean/src/main/resources/helloworldwsclient2.composite create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-ws-reference-lean/src/main/resources/helloworldwsclient3.composite create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-ws-reference-lean/src/main/resources/helloworldwsclient4.composite create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-ws-reference-lean/src/main/resources/helloworldwsclient5.composite create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-ws-reference-lean/src/main/resources/logging.properties create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-ws-reference-lean/src/main/resources/wsdl/helloworld.wsdl create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-ws-reference-lean/src/test/java/helloworld/HelloWorldClientTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-ws-reference-lean/src/test/java/helloworld/HelloWorldTestServer.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-ws-reference-secure/README create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-ws-reference-secure/build.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-ws-reference-secure/helloworld-ws-reference-secure.png create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-ws-reference-secure/helloworld-ws-reference-secure.svg create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-ws-reference-secure/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-ws-reference-secure/src/main/java/helloworld/ClientPWCBHandler.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-ws-reference-secure/src/main/java/helloworld/HelloWorldClient.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-ws-reference-secure/src/main/java/helloworld/HelloWorldService.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-ws-reference-secure/src/main/java/helloworld/HelloWorldServiceComponent.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-ws-reference-secure/src/main/resources/META-INF/services/org.apache.tuscany.sca.policy.util.PolicyHandler create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-ws-reference-secure/src/main/resources/definitions.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-ws-reference-secure/src/main/resources/helloworldKeys.jks create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-ws-reference-secure/src/main/resources/helloworldwsclient.composite create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-ws-reference-secure/src/main/resources/logging.properties create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-ws-reference-secure/src/main/resources/wsdl/helloworld.wsdl create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-ws-reference-secure/src/test/java/helloworld/HelloWorldClientTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-ws-reference-secure/src/test/java/helloworld/HelloWorldTestServer.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-ws-reference/README create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-ws-reference/build.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-ws-reference/helloworld-ws-reference.png create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-ws-reference/helloworld-ws-reference.svg create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-ws-reference/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-ws-reference/src/main/java/helloworld/HelloWorldClient.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-ws-reference/src/main/java/helloworld/HelloWorldService.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-ws-reference/src/main/java/helloworld/HelloWorldServiceComponent.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-ws-reference/src/main/resources/helloworldwsclient.composite create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-ws-reference/src/main/resources/logging.properties create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-ws-reference/src/main/resources/wsdl/helloworld.wsdl create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-ws-reference/src/test/java/helloworld/HelloWorldClientTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-ws-reference/src/test/java/helloworld/HelloWorldTestServer.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-ws-sdo-webapp/README create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-ws-sdo-webapp/build.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-ws-sdo-webapp/helloworld-ws-sdo-webapp.png create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-ws-sdo-webapp/helloworld-ws-sdo-webapp.svg create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-ws-sdo-webapp/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-ws-sdo-webapp/src/main/java/helloworld/HelloWorld.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-ws-sdo-webapp/src/main/java/helloworld/HelloWorldComponent.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-ws-sdo-webapp/src/main/java/helloworld/HelloWorldImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-ws-sdo-webapp/src/main/resources/helloworldws.composite create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-ws-sdo-webapp/src/main/resources/wsdl/helloworld.wsdl create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-ws-sdo-webapp/src/main/resources/wsdl/helloworld.xsd create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-ws-sdo-webapp/src/main/webapp/HelloWorld.jsp create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-ws-sdo-webapp/src/main/webapp/META-INF/sca-contribution.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-ws-sdo-webapp/src/main/webapp/WEB-INF/geronimo-web.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-ws-sdo-webapp/src/main/webapp/WEB-INF/web.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-ws-sdo/README create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-ws-sdo/build.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-ws-sdo/helloworld-ws-sdo.png create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-ws-sdo/helloworld-ws-sdo.svg create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-ws-sdo/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-ws-sdo/src/main/java/helloworld/HelloWorldClient.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-ws-sdo/src/main/java/helloworld/HelloWorldImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-ws-sdo/src/main/java/helloworld/HelloWorldServer.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-ws-sdo/src/main/java/helloworld/HelloWorldService.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-ws-sdo/src/main/java/helloworld/HelloWorldServiceComponent.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-ws-sdo/src/main/resources/helloworldws.composite create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-ws-sdo/src/main/resources/helloworldwsclient.composite create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-ws-sdo/src/main/resources/logging.properties create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-ws-sdo/src/main/resources/wsdl/helloworld.wsdl create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-ws-sdo/src/test/java/helloworld/HelloWorldClientTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-ws-sdo/src/test/java/helloworld/HelloWorldTestServer.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-ws-service-jms/README create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-ws-service-jms/build.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-ws-service-jms/helloworld-ws-service.png create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-ws-service-jms/helloworld-ws-service.svg create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-ws-service-jms/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-ws-service-jms/src/main/java/helloworld/HelloWorldImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-ws-service-jms/src/main/java/helloworld/HelloWorldServer.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-ws-service-jms/src/main/java/helloworld/HelloWorldService.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-ws-service-jms/src/main/resources/definitions.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-ws-service-jms/src/main/resources/helloworldwsjms.composite create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-ws-service-jms/src/main/resources/helloworldwsjmspolicy.composite create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-ws-service-jms/src/main/resources/wsdl/helloworld.wsdl create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-ws-service-jms/src/test/java/helloworld/HelloWorldJmsPolicyServerTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-ws-service-jms/src/test/java/helloworld/HelloWorldJmsServerTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-ws-service-secure/README create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-ws-service-secure/build.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-ws-service-secure/helloworld-ws-service-secure.png create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-ws-service-secure/helloworld-ws-service-secure.svg create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-ws-service-secure/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-ws-service-secure/src/main/java/helloworld/HelloWorldImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-ws-service-secure/src/main/java/helloworld/HelloWorldServer.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-ws-service-secure/src/main/java/helloworld/HelloWorldService.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-ws-service-secure/src/main/java/helloworld/ServerPWCBHandler.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-ws-service-secure/src/main/resources/definitions.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-ws-service-secure/src/main/resources/helloworldKeys.jks create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-ws-service-secure/src/main/resources/helloworldws.composite create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-ws-service-secure/src/main/resources/wsdl/helloworld.wsdl create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-ws-service-secure/src/test/java/helloworld/HelloWorldServerTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-ws-service-webapp/README create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-ws-service-webapp/build.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-ws-service-webapp/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-ws-service-webapp/src/main/java/helloworld/HelloWorldImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-ws-service-webapp/src/main/java/helloworld/HelloWorldService.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-ws-service-webapp/src/main/resources/wsdl/helloworld.wsdl create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-ws-service-webapp/src/main/webapp/META-INF/sca-deployables/helloworldws.composite create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-ws-service-webapp/src/main/webapp/WEB-INF/geronimo-web.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-ws-service-webapp/src/main/webapp/WEB-INF/web.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-ws-service/README create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-ws-service/build.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-ws-service/helloworld-ws-service.png create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-ws-service/helloworld-ws-service.svg create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-ws-service/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-ws-service/src/main/java/helloworld/HelloWorldImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-ws-service/src/main/java/helloworld/HelloWorldServer.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-ws-service/src/main/java/helloworld/HelloWorldService.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-ws-service/src/main/resources/META-INF/sca-deployables/helloworldws.composite create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-ws-service/src/main/resources/wsdl/helloworld.wsdl create mode 100644 tags/java/sca/1.5.1-RC4/samples/helloworld-ws-service/src/test/java/helloworld/HelloWorldServerTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/holder-ws-service/README create mode 100644 tags/java/sca/1.5.1-RC4/samples/holder-ws-service/build.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/holder-ws-service/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/holder-ws-service/src/main/java/org/example/orderservice/ObjectFactory.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/holder-ws-service/src/main/java/org/example/orderservice/Order.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/holder-ws-service/src/main/java/org/example/orderservice/OrderService.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/holder-ws-service/src/main/java/org/example/orderservice/OrderServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/holder-ws-service/src/main/java/org/example/orderservice/OrderServiceServer.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/holder-ws-service/src/main/java/org/example/orderservice/OrderService_Service.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/holder-ws-service/src/main/java/org/example/orderservice/ReviewOrder.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/holder-ws-service/src/main/java/org/example/orderservice/ReviewOrderResponse.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/holder-ws-service/src/main/java/org/example/orderservice/Status.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/holder-ws-service/src/main/java/org/example/orderservice/package-info.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/holder-ws-service/src/main/resources/META-INF/sca-deployables/orderws.composite create mode 100644 tags/java/sca/1.5.1-RC4/samples/holder-ws-service/src/main/resources/wsdl/orderservice.wsdl create mode 100644 tags/java/sca/1.5.1-RC4/samples/holder-ws-service/src/test/java/org/example/orderservice/OrderServiceTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/implementation-composite/README create mode 100644 tags/java/sca/1.5.1-RC4/samples/implementation-composite/build.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/implementation-composite/implementation-composite.png create mode 100644 tags/java/sca/1.5.1-RC4/samples/implementation-composite/implementation-composite.svg create mode 100644 tags/java/sca/1.5.1-RC4/samples/implementation-composite/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/implementation-composite/src/main/java/composite/CompositeClient.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/implementation-composite/src/main/java/composite/Source.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/implementation-composite/src/main/java/composite/SourceCallback.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/implementation-composite/src/main/java/composite/SourceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/implementation-composite/src/main/java/composite/Target.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/implementation-composite/src/main/java/composite/TargetImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/implementation-composite/src/main/resources/InnerComposite.composite create mode 100644 tags/java/sca/1.5.1-RC4/samples/implementation-composite/src/main/resources/InnerComposite2.composite create mode 100644 tags/java/sca/1.5.1-RC4/samples/implementation-composite/src/main/resources/META-INF/sca-contribution.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/implementation-composite/src/main/resources/OuterComposite.composite create mode 100644 tags/java/sca/1.5.1-RC4/samples/implementation-composite/src/test/java/composite/CompositeTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/implementation-crud-extension/README create mode 100644 tags/java/sca/1.5.1-RC4/samples/implementation-crud-extension/build.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/implementation-crud-extension/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/implementation-crud-extension/src/main/java/crud/CRUD.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/implementation-crud-extension/src/main/java/crud/CRUDImplementation.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/implementation-crud-extension/src/main/java/crud/CRUDImplementationFactory.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/implementation-crud-extension/src/main/java/crud/backend/ResourceManager.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/implementation-crud-extension/src/main/java/crud/impl/CRUDImplementationFactoryImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/implementation-crud-extension/src/main/java/crud/impl/CRUDImplementationImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/implementation-crud-extension/src/main/java/crud/provider/CRUDImplementationInvoker.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/implementation-crud-extension/src/main/java/crud/provider/CRUDImplementationProvider.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/implementation-crud-extension/src/main/java/crud/provider/CRUDImplementationProviderFactory.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/implementation-crud-extension/src/main/resources/META-INF/services/crud.CRUDImplementationFactory create mode 100644 tags/java/sca/1.5.1-RC4/samples/implementation-crud-extension/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessor create mode 100644 tags/java/sca/1.5.1-RC4/samples/implementation-crud-extension/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.processor.ValidationSchema create mode 100644 tags/java/sca/1.5.1-RC4/samples/implementation-crud-extension/src/main/resources/META-INF/services/org.apache.tuscany.sca.provider.ImplementationProviderFactory create mode 100644 tags/java/sca/1.5.1-RC4/samples/implementation-crud-extension/src/main/resources/sample-implementation-crud.xsd create mode 100644 tags/java/sca/1.5.1-RC4/samples/implementation-crud-extension/src/test/java/crud/CRUDTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/implementation-crud-extension/src/test/resources/crud.composite create mode 100644 tags/java/sca/1.5.1-RC4/samples/implementation-crud/README create mode 100644 tags/java/sca/1.5.1-RC4/samples/implementation-crud/build.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/implementation-crud/implementation-crud.png create mode 100644 tags/java/sca/1.5.1-RC4/samples/implementation-crud/implementation-crud.svg create mode 100644 tags/java/sca/1.5.1-RC4/samples/implementation-crud/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/implementation-crud/src/main/java/crud/client/CRUDClient.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/implementation-crud/src/main/resources/crud.composite create mode 100644 tags/java/sca/1.5.1-RC4/samples/implementation-crud/src/test/java/crud/client/CRUDTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/implementation-notification/README create mode 100644 tags/java/sca/1.5.1-RC4/samples/implementation-notification/build.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/implementation-notification/implementation-notification.png create mode 100644 tags/java/sca/1.5.1-RC4/samples/implementation-notification/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/implementation-notification/src/main/java/notification/TestCaseProducer.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/implementation-notification/src/main/java/notification/TrafficAdvisory.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/implementation-notification/src/main/java/notification/TrafficAdvisoryClient.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/implementation-notification/src/main/java/notification/TrafficAdvisoryConsumer.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/implementation-notification/src/main/java/notification/TrafficAdvisoryProducer.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/implementation-notification/src/main/resources/TrafficAdvisoryNotification.componentType create mode 100644 tags/java/sca/1.5.1-RC4/samples/implementation-notification/src/main/resources/TrafficAdvisoryNotification.composite create mode 100644 tags/java/sca/1.5.1-RC4/samples/implementation-notification/src/test/java/notification/TrafficAdvisoryTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/implementation-notification/src/test/resources/TrafficAdvisoryNotification.componentType create mode 100644 tags/java/sca/1.5.1-RC4/samples/implementation-notification/src/test/resources/TrafficAdvisoryNotification.composite create mode 100644 tags/java/sca/1.5.1-RC4/samples/implementation-pojo-extension/README create mode 100644 tags/java/sca/1.5.1-RC4/samples/implementation-pojo-extension/build.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/implementation-pojo-extension/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/implementation-pojo-extension/src/main/java/pojo/POJOImplementation.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/implementation-pojo-extension/src/main/java/pojo/POJOImplementationFactory.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/implementation-pojo-extension/src/main/java/pojo/impl/POJOImplementationFactoryImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/implementation-pojo-extension/src/main/java/pojo/impl/POJOImplementationImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/implementation-pojo-extension/src/main/java/pojo/impl/POJOImplementationProcessor.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/implementation-pojo-extension/src/main/java/pojo/provider/POJOImplementationInvoker.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/implementation-pojo-extension/src/main/java/pojo/provider/POJOImplementationProvider.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/implementation-pojo-extension/src/main/java/pojo/provider/POJOImplementationProviderFactory.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/implementation-pojo-extension/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessor create mode 100644 tags/java/sca/1.5.1-RC4/samples/implementation-pojo-extension/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.processor.ValidationSchema create mode 100644 tags/java/sca/1.5.1-RC4/samples/implementation-pojo-extension/src/main/resources/META-INF/services/org.apache.tuscany.sca.provider.ImplementationProviderFactory create mode 100644 tags/java/sca/1.5.1-RC4/samples/implementation-pojo-extension/src/main/resources/META-INF/services/pojo.POJOImplementationFactory create mode 100644 tags/java/sca/1.5.1-RC4/samples/implementation-pojo-extension/src/main/resources/sample-implementation-pojo.xsd create mode 100644 tags/java/sca/1.5.1-RC4/samples/implementation-pojo-extension/src/test/java/helloworld/HelloWorld.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/implementation-pojo-extension/src/test/java/helloworld/HelloWorldImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/implementation-pojo-extension/src/test/java/helloworld/HelloWorldImpl2.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/implementation-pojo-extension/src/test/java/helloworld/HelloWorldTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/implementation-pojo-extension/src/test/resources/helloworld/HelloWorldImpl2.componentType create mode 100644 tags/java/sca/1.5.1-RC4/samples/implementation-pojo-extension/src/test/resources/helloworld/helloworld.composite create mode 100644 tags/java/sca/1.5.1-RC4/samples/loanapplication/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/loanapplication/src/main/java/loanapplication/LoanApplication.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/loanapplication/src/main/java/loanapplication/LoanApplicationClient.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/loanapplication/src/main/java/loanapplication/LoanClient.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/loanapplication/src/main/java/loanapplication/LoanClientImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/loanapplication/src/main/java/loanapplication/LoanService.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/loanapplication/src/main/java/loanapplication/LoanServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/loanapplication/src/main/resources/loanapplication.composite create mode 100644 tags/java/sca/1.5.1-RC4/samples/loanapplication/src/test/java/loanapplication/LoanApplicationTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/osgi-supplychain/README create mode 100644 tags/java/sca/1.5.1-RC4/samples/osgi-supplychain/build-bundles.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/osgi-supplychain/build.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/osgi-supplychain/osgi-supplychain.png create mode 100644 tags/java/sca/1.5.1-RC4/samples/osgi-supplychain/osgi-supplychain.svg create mode 100644 tags/java/sca/1.5.1-RC4/samples/osgi-supplychain/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/osgi-supplychain/src/main/java/supplychain/OSGiBundleImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/osgi-supplychain/src/main/java/supplychain/SupplyChainClient.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/osgi-supplychain/src/main/java/supplychain/customer/Customer.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/osgi-supplychain/src/main/java/supplychain/customer/JavaCustomerComponentImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/osgi-supplychain/src/main/java/supplychain/customer/OSGiCustomerComponentImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/osgi-supplychain/src/main/java/supplychain/customer/OSGiCustomerImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/osgi-supplychain/src/main/java/supplychain/retailer/JavaRetailerComponentImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/osgi-supplychain/src/main/java/supplychain/retailer/OSGiRetailerComponentImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/osgi-supplychain/src/main/java/supplychain/retailer/OSGiRetailerImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/osgi-supplychain/src/main/java/supplychain/retailer/Retailer.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/osgi-supplychain/src/main/java/supplychain/shipper/JavaShipperComponentImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/osgi-supplychain/src/main/java/supplychain/shipper/OSGiShipperComponentImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/osgi-supplychain/src/main/java/supplychain/shipper/OSGiShipperImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/osgi-supplychain/src/main/java/supplychain/shipper/Shipper.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/osgi-supplychain/src/main/java/supplychain/warehouse/JavaWarehouseComponentImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/osgi-supplychain/src/main/java/supplychain/warehouse/OSGiWarehouseComponentImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/osgi-supplychain/src/main/java/supplychain/warehouse/OSGiWarehouseImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/osgi-supplychain/src/main/java/supplychain/warehouse/Warehouse.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/osgi-supplychain/src/main/resources/Customer.componentType create mode 100644 tags/java/sca/1.5.1-RC4/samples/osgi-supplychain/src/main/resources/DSCustomer.componentType create mode 100644 tags/java/sca/1.5.1-RC4/samples/osgi-supplychain/src/main/resources/DSRetailer.componentType create mode 100644 tags/java/sca/1.5.1-RC4/samples/osgi-supplychain/src/main/resources/DSShipper.componentType create mode 100644 tags/java/sca/1.5.1-RC4/samples/osgi-supplychain/src/main/resources/DSWarehouse.componentType create mode 100644 tags/java/sca/1.5.1-RC4/samples/osgi-supplychain/src/main/resources/Retailer.componentType create mode 100644 tags/java/sca/1.5.1-RC4/samples/osgi-supplychain/src/main/resources/Shipper.componentType create mode 100644 tags/java/sca/1.5.1-RC4/samples/osgi-supplychain/src/main/resources/Warehouse.componentType create mode 100644 tags/java/sca/1.5.1-RC4/samples/osgi-supplychain/src/main/resources/osgi/Customer.mf create mode 100644 tags/java/sca/1.5.1-RC4/samples/osgi-supplychain/src/main/resources/osgi/Retailer.mf create mode 100644 tags/java/sca/1.5.1-RC4/samples/osgi-supplychain/src/main/resources/osgi/Shipper.mf create mode 100644 tags/java/sca/1.5.1-RC4/samples/osgi-supplychain/src/main/resources/osgi/Warehouse.mf create mode 100644 tags/java/sca/1.5.1-RC4/samples/osgi-supplychain/src/main/resources/osgi/ds/Customer.mf create mode 100644 tags/java/sca/1.5.1-RC4/samples/osgi-supplychain/src/main/resources/osgi/ds/Customer.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/osgi-supplychain/src/main/resources/osgi/ds/Retailer.mf create mode 100644 tags/java/sca/1.5.1-RC4/samples/osgi-supplychain/src/main/resources/osgi/ds/Retailer.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/osgi-supplychain/src/main/resources/osgi/ds/Shipper.mf create mode 100644 tags/java/sca/1.5.1-RC4/samples/osgi-supplychain/src/main/resources/osgi/ds/Shipper.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/osgi-supplychain/src/main/resources/osgi/ds/Warehouse.mf create mode 100644 tags/java/sca/1.5.1-RC4/samples/osgi-supplychain/src/main/resources/osgi/ds/Warehouse.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/osgi-supplychain/src/main/resources/supplychain.composite create mode 100644 tags/java/sca/1.5.1-RC4/samples/osgi-supplychain/src/main/resources/supplychain.ds.composite create mode 100644 tags/java/sca/1.5.1-RC4/samples/osgi-supplychain/src/test/java/supplychain/SupplyChainClientTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/photo-gallery/README create mode 100644 tags/java/sca/1.5.1-RC4/samples/photo-gallery/build.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/photo-gallery/photo-gallery.png create mode 100644 tags/java/sca/1.5.1-RC4/samples/photo-gallery/photo-gallery.svg create mode 100644 tags/java/sca/1.5.1-RC4/samples/photo-gallery/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/photo-gallery/src/main/java/launch/LaunchGallery.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/photo-gallery/src/main/java/services/Album.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/photo-gallery/src/main/java/services/AlbumImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/photo-gallery/src/main/resources/gallery.html create mode 100644 tags/java/sca/1.5.1-RC4/samples/photo-gallery/src/main/resources/gallery/boston/dsc00368.jpg create mode 100644 tags/java/sca/1.5.1-RC4/samples/photo-gallery/src/main/resources/gallery/boston/dsc00369.jpg create mode 100644 tags/java/sca/1.5.1-RC4/samples/photo-gallery/src/main/resources/gallery/boston/dsc00370.jpg create mode 100644 tags/java/sca/1.5.1-RC4/samples/photo-gallery/src/main/resources/gallery/boston/dsc00371.jpg create mode 100644 tags/java/sca/1.5.1-RC4/samples/photo-gallery/src/main/resources/gallery/boston/dsc00373.jpg create mode 100644 tags/java/sca/1.5.1-RC4/samples/photo-gallery/src/main/resources/gallery/boston/dsc00375.jpg create mode 100644 tags/java/sca/1.5.1-RC4/samples/photo-gallery/src/main/resources/gallery/boston/dsc00376.jpg create mode 100644 tags/java/sca/1.5.1-RC4/samples/photo-gallery/src/main/resources/gallery/boston/dsc00377.jpg create mode 100644 tags/java/sca/1.5.1-RC4/samples/photo-gallery/src/main/resources/gallery/boston/dsc00378.jpg create mode 100644 tags/java/sca/1.5.1-RC4/samples/photo-gallery/src/main/resources/gallery/boston/dsc00379.jpg create mode 100644 tags/java/sca/1.5.1-RC4/samples/photo-gallery/src/main/resources/gallery/boston/dsc00380.jpg create mode 100755 tags/java/sca/1.5.1-RC4/samples/photo-gallery/src/main/resources/index.gif create mode 100755 tags/java/sca/1.5.1-RC4/samples/photo-gallery/src/main/resources/index_on.gif create mode 100755 tags/java/sca/1.5.1-RC4/samples/photo-gallery/src/main/resources/next.gif create mode 100755 tags/java/sca/1.5.1-RC4/samples/photo-gallery/src/main/resources/next_disabled.gif create mode 100755 tags/java/sca/1.5.1-RC4/samples/photo-gallery/src/main/resources/next_on.gif create mode 100644 tags/java/sca/1.5.1-RC4/samples/photo-gallery/src/main/resources/photo-gallery.composite create mode 100755 tags/java/sca/1.5.1-RC4/samples/photo-gallery/src/main/resources/prev.gif create mode 100755 tags/java/sca/1.5.1-RC4/samples/photo-gallery/src/main/resources/prev_disabled.gif create mode 100755 tags/java/sca/1.5.1-RC4/samples/photo-gallery/src/main/resources/prev_on.gif create mode 100644 tags/java/sca/1.5.1-RC4/samples/photo-gallery/src/main/resources/show_slide.gif create mode 100644 tags/java/sca/1.5.1-RC4/samples/photo-gallery/src/main/resources/space.gif create mode 100755 tags/java/sca/1.5.1-RC4/samples/photo-gallery/src/main/resources/styles.css create mode 100644 tags/java/sca/1.5.1-RC4/samples/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/quote-xquery/README create mode 100644 tags/java/sca/1.5.1-RC4/samples/quote-xquery/build.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/quote-xquery/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/quote-xquery/src/main/java/xquery/quote/AvailQuoteProviderImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/quote-xquery/src/main/java/xquery/quote/AvailQuoteProviderNodeInfo.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/quote-xquery/src/main/java/xquery/quote/AvailQuoteProviderService.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/quote-xquery/src/main/java/xquery/quote/ExternalReferencesQuoteJoin.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/quote-xquery/src/main/java/xquery/quote/PriceQuoteProvider.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/quote-xquery/src/main/java/xquery/quote/PriceQuoteProviderImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/quote-xquery/src/main/java/xquery/quote/PriceQuoteProviderNodeInfo.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/quote-xquery/src/main/java/xquery/quote/PropertiesQuoteJoin.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/quote-xquery/src/main/java/xquery/quote/QuoteCalculator.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/quote-xquery/src/main/java/xquery/quote/QuoteCalculatorImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/quote-xquery/src/main/java/xquery/quote/QuoteDataUtil.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/quote-xquery/src/main/java/xquery/quote/QuoteJoin.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/quote-xquery/src/main/java/xquery/quote/QuoteJoinLocal.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/quote-xquery/src/main/java/xquery/quote/QuoteJoinLocalImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/quote-xquery/src/main/java/xquery/quote/XQueryQuoteClient.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/quote-xquery/src/main/java/xquery/quote/XQueryQuoteServer.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/quote-xquery/src/main/resources/META-INF/sca/quote_join.xq create mode 100644 tags/java/sca/1.5.1-RC4/samples/quote-xquery/src/main/resources/META-INF/sca/quote_join_external_references.xq create mode 100644 tags/java/sca/1.5.1-RC4/samples/quote-xquery/src/main/resources/META-INF/sca/quote_join_properties.xq create mode 100644 tags/java/sca/1.5.1-RC4/samples/quote-xquery/src/main/resources/wsdl/AvailQuote.xsd create mode 100644 tags/java/sca/1.5.1-RC4/samples/quote-xquery/src/main/resources/wsdl/PriceQuote.xsd create mode 100644 tags/java/sca/1.5.1-RC4/samples/quote-xquery/src/main/resources/wsdl/Quote.xsd create mode 100644 tags/java/sca/1.5.1-RC4/samples/quote-xquery/src/main/resources/wsdl/quotejoin.wsdl create mode 100644 tags/java/sca/1.5.1-RC4/samples/quote-xquery/src/main/resources/xqueryquotews.composite create mode 100644 tags/java/sca/1.5.1-RC4/samples/quote-xquery/src/main/resources/xqueryquotewsclient.composite create mode 100644 tags/java/sca/1.5.1-RC4/samples/quote-xquery/src/test/java/xquery/quote/XQueryQuoteClientTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/quote-xquery/src/test/java/xquery/quote/XQueryQuoteTestServer.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/simple-bigbank-spring/README create mode 100644 tags/java/sca/1.5.1-RC4/samples/simple-bigbank-spring/build-dojo.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/simple-bigbank-spring/build.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/simple-bigbank-spring/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/simple-bigbank-spring/simple-bigbank-spring.png create mode 100644 tags/java/sca/1.5.1-RC4/samples/simple-bigbank-spring/simple-bigbank-spring.svg create mode 100644 tags/java/sca/1.5.1-RC4/samples/simple-bigbank-spring/src/main/java/bigbank/account/AccountReport.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/simple-bigbank-spring/src/main/java/bigbank/account/AccountService.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/simple-bigbank-spring/src/main/java/bigbank/account/AccountServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/simple-bigbank-spring/src/main/java/bigbank/account/checking/CheckingAccountDetails.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/simple-bigbank-spring/src/main/java/bigbank/account/checking/CheckingAccountService.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/simple-bigbank-spring/src/main/java/bigbank/account/feed/AccountFeedImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/simple-bigbank-spring/src/main/java/bigbank/account/savings/SavingsAccountDetails.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/simple-bigbank-spring/src/main/java/bigbank/account/savings/SavingsAccountService.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/simple-bigbank-spring/src/main/java/bigbank/account/savings/SavingsAccountServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/simple-bigbank-spring/src/main/java/bigbank/account/stock/StockAccountDetails.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/simple-bigbank-spring/src/main/java/bigbank/account/stock/StockAccountService.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/simple-bigbank-spring/src/main/java/bigbank/account/stock/StockAccountServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/simple-bigbank-spring/src/main/java/bigbank/calculator/CalculatorService.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/simple-bigbank-spring/src/main/java/bigbank/client/BigBankClient.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/simple-bigbank-spring/src/main/java/bigbank/server/BigBankServer.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/simple-bigbank-spring/src/main/java/bigbank/stockquote/StockQuoteService.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/simple-bigbank-spring/src/main/resources/BigBank.composite create mode 100644 tags/java/sca/1.5.1-RC4/samples/simple-bigbank-spring/src/main/resources/SavingsAccount.composite create mode 100644 tags/java/sca/1.5.1-RC4/samples/simple-bigbank-spring/src/main/resources/StockAccount.composite create mode 100644 tags/java/sca/1.5.1-RC4/samples/simple-bigbank-spring/src/main/resources/spring-context/Account-spring-context.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/simple-bigbank-spring/src/main/resources/spring-context/SavingsAccount-context.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/simple-bigbank-spring/src/main/resources/spring-context/StockAccount/META-INF/MANIFEST.MF create mode 100644 tags/java/sca/1.5.1-RC4/samples/simple-bigbank-spring/src/main/resources/spring-context/StockAccount/META-INF/spring/StockAccount-context.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/simple-bigbank-spring/src/main/resources/web/style.css create mode 100644 tags/java/sca/1.5.1-RC4/samples/simple-bigbank-spring/src/test/java/bigbank/BigBankTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/simple-bigbank/README create mode 100644 tags/java/sca/1.5.1-RC4/samples/simple-bigbank/build.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/simple-bigbank/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/simple-bigbank/simple-bigbank.png create mode 100644 tags/java/sca/1.5.1-RC4/samples/simple-bigbank/simple-bigbank.svg create mode 100644 tags/java/sca/1.5.1-RC4/samples/simple-bigbank/src/main/java/bigbank/account/AccountReport.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/simple-bigbank/src/main/java/bigbank/account/AccountService.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/simple-bigbank/src/main/java/bigbank/account/AccountServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/simple-bigbank/src/main/java/bigbank/accountdata/Account.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/simple-bigbank/src/main/java/bigbank/accountdata/AccountDataService.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/simple-bigbank/src/main/java/bigbank/accountdata/AccountDataServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/simple-bigbank/src/main/java/bigbank/accountdata/CheckingAccount.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/simple-bigbank/src/main/java/bigbank/accountdata/SavingsAccount.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/simple-bigbank/src/main/java/bigbank/accountdata/StockAccount.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/simple-bigbank/src/main/java/bigbank/client/BigBankClient.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/simple-bigbank/src/main/java/bigbank/stockquote/StockQuoteImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/simple-bigbank/src/main/java/bigbank/stockquote/StockQuoteService.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/simple-bigbank/src/main/resources/Account.composite create mode 100644 tags/java/sca/1.5.1-RC4/samples/simple-bigbank/src/main/resources/BigBank.composite create mode 100644 tags/java/sca/1.5.1-RC4/samples/simple-bigbank/src/main/resources/StockQuote.composite create mode 100644 tags/java/sca/1.5.1-RC4/samples/simple-bigbank/src/test/java/bigbank/BigBankTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/simple-callback-ws/README create mode 100644 tags/java/sca/1.5.1-RC4/samples/simple-callback-ws/build.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/simple-callback-ws/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/simple-callback-ws/simple-callback-ws.png create mode 100644 tags/java/sca/1.5.1-RC4/samples/simple-callback-ws/simple-callback-ws.svg create mode 100644 tags/java/sca/1.5.1-RC4/samples/simple-callback-ws/src/main/java/simplecallback/MyClient.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/simple-callback-ws/src/main/java/simplecallback/MyClientImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/simple-callback-ws/src/main/java/simplecallback/MyService.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/simple-callback-ws/src/main/java/simplecallback/MyServiceCallback.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/simple-callback-ws/src/main/java/simplecallback/MyServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/simple-callback-ws/src/main/java/simplecallback/SimpleCallbackClient.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/simple-callback-ws/src/main/resources/simplecallback.composite create mode 100644 tags/java/sca/1.5.1-RC4/samples/simple-callback-ws/src/main/resources/wsdl/simplecallback.wsdl create mode 100644 tags/java/sca/1.5.1-RC4/samples/simple-callback-ws/src/test/java/simplecallback/SimpleCallbackTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/simple-callback/README create mode 100644 tags/java/sca/1.5.1-RC4/samples/simple-callback/build.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/simple-callback/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/simple-callback/simple-callback.png create mode 100644 tags/java/sca/1.5.1-RC4/samples/simple-callback/simple-callback.svg create mode 100644 tags/java/sca/1.5.1-RC4/samples/simple-callback/src/main/java/simplecallback/MyClient.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/simple-callback/src/main/java/simplecallback/MyClientImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/simple-callback/src/main/java/simplecallback/MyService.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/simple-callback/src/main/java/simplecallback/MyServiceCallback.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/simple-callback/src/main/java/simplecallback/MyServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/simple-callback/src/main/java/simplecallback/SimpleCallbackClient.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/simple-callback/src/main/resources/simplecallback.composite create mode 100644 tags/java/sca/1.5.1-RC4/samples/simple-callback/src/test/java/simplecallback/SimpleCallbackTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/spring-bigbank-calculator/README create mode 100644 tags/java/sca/1.5.1-RC4/samples/spring-bigbank-calculator/build.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/spring-bigbank-calculator/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/spring-bigbank-calculator/src/main/java/bigbank/calculator/AddService.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/spring-bigbank-calculator/src/main/java/bigbank/calculator/CalculatorService.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/spring-bigbank-calculator/src/main/java/bigbank/calculator/CalculatorServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/spring-bigbank-calculator/src/main/java/bigbank/calculator/DivideService.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/spring-bigbank-calculator/src/main/java/bigbank/calculator/MultiplyService.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/spring-bigbank-calculator/src/main/java/bigbank/calculator/SubtractService.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/spring-bigbank-calculator/src/main/java/bigbank/calculator/server/CalculatorServer.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/spring-bigbank-calculator/src/main/resources/Calculator.composite create mode 100644 tags/java/sca/1.5.1-RC4/samples/spring-bigbank-calculator/src/main/resources/META-INF/spring/CalculatorService-context.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/spring-bigbank-calculator/src/main/resources/calculator/AddServiceImpl.js create mode 100644 tags/java/sca/1.5.1-RC4/samples/spring-bigbank-calculator/src/main/resources/calculator/DivideServiceImpl.groovy create mode 100644 tags/java/sca/1.5.1-RC4/samples/spring-bigbank-calculator/src/main/resources/calculator/MultiplyServiceImpl.py create mode 100644 tags/java/sca/1.5.1-RC4/samples/spring-bigbank-calculator/src/main/resources/calculator/SubtractServiceImpl.rb create mode 100644 tags/java/sca/1.5.1-RC4/samples/spring-bigbank-calculator/src/test/java/bigbank/calculator/CalculatorServiceTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/spring-bigbank-checkaccount/README create mode 100644 tags/java/sca/1.5.1-RC4/samples/spring-bigbank-checkaccount/build.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/spring-bigbank-checkaccount/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/spring-bigbank-checkaccount/src/main/java/bigbank/account/checking/CheckingAccountDetails.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/spring-bigbank-checkaccount/src/main/java/bigbank/account/checking/CheckingAccountService.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/spring-bigbank-checkaccount/src/main/java/bigbank/account/checking/CheckingAccountServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/spring-bigbank-checkaccount/src/main/java/bigbank/account/checking/server/CheckingAccountServer.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/spring-bigbank-checkaccount/src/main/java/bigbank/account/security/AccountsDataPasswordCallbackHandler.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/spring-bigbank-checkaccount/src/main/java/bigbank/account/security/BigbankCheckingsAcl.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/spring-bigbank-checkaccount/src/main/java/bigbank/account/security/CheckingsDeptAuthImplementationPolicyProvider.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/spring-bigbank-checkaccount/src/main/java/bigbank/account/security/CheckingsDeptAuthPolicy.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/spring-bigbank-checkaccount/src/main/java/bigbank/account/security/CheckingsDeptAuthPolicyInterceptor.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/spring-bigbank-checkaccount/src/main/java/bigbank/account/security/CheckingsDeptAuthPolicyProviderFactory.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/spring-bigbank-checkaccount/src/main/java/bigbank/account/security/CheckingsDeptAuthorizationPolicyHandler.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/spring-bigbank-checkaccount/src/main/java/bigbank/account/security/CheckingsDeptAuthorizationPolicyProcessor.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/spring-bigbank-checkaccount/src/main/resources/CheckingsAccount.composite create mode 100644 tags/java/sca/1.5.1-RC4/samples/spring-bigbank-checkaccount/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessor create mode 100644 tags/java/sca/1.5.1-RC4/samples/spring-bigbank-checkaccount/src/main/resources/META-INF/services/org.apache.tuscany.sca.policy.util.PolicyHandler create mode 100644 tags/java/sca/1.5.1-RC4/samples/spring-bigbank-checkaccount/src/main/resources/META-INF/services/org.apache.tuscany.sca.provider.PolicyProviderFactory create mode 100644 tags/java/sca/1.5.1-RC4/samples/spring-bigbank-checkaccount/src/main/resources/definitions.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/spring-bigbank-checkaccount/src/main/resources/spring-context/META-INF/spring/CheckingAccountService-context.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/spring-bigbank-checkaccount/src/test/java/bigbank/checkaccount/CheckAccountServiceTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/spring-bigbank-stockquote/README create mode 100644 tags/java/sca/1.5.1-RC4/samples/spring-bigbank-stockquote/build.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/spring-bigbank-stockquote/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/spring-bigbank-stockquote/src/main/java/bigbank/stockquote/StockQuoteImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/spring-bigbank-stockquote/src/main/java/bigbank/stockquote/StockQuoteService.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/spring-bigbank-stockquote/src/main/java/bigbank/stockquote/server/SCAApplicationContextProvider.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/spring-bigbank-stockquote/src/main/java/bigbank/stockquote/server/StockQuoteServer.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/spring-bigbank-stockquote/src/main/resources/META-INF/spring/StockQuoteService-context.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/spring-bigbank-stockquote/src/main/resources/StockQuote.composite create mode 100644 tags/java/sca/1.5.1-RC4/samples/spring-bigbank-stockquote/src/test/java/bigbank/stockquote/StockQuoteServiceTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/store-dojo/README create mode 100644 tags/java/sca/1.5.1-RC4/samples/store-dojo/build.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/store-dojo/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/store-dojo/src/main/java/launch/Launch.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/store-dojo/src/main/java/services/Cart.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/store-dojo/src/main/java/services/Catalog.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/store-dojo/src/main/java/services/CurrencyConverter.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/store-dojo/src/main/java/services/CurrencyConverterImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/store-dojo/src/main/java/services/FruitsCatalogImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/store-dojo/src/main/java/services/Item.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/store-dojo/src/main/java/services/ShoppingCartImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/store-dojo/src/main/java/services/Total.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/store-dojo/src/main/resources/store.composite create mode 100644 tags/java/sca/1.5.1-RC4/samples/store-dojo/src/main/resources/uiservices/store.html create mode 100644 tags/java/sca/1.5.1-RC4/samples/store-dojo/store.png create mode 100644 tags/java/sca/1.5.1-RC4/samples/store-dojo/store.svg create mode 100644 tags/java/sca/1.5.1-RC4/samples/store-secure/README create mode 100644 tags/java/sca/1.5.1-RC4/samples/store-secure/build.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/store-secure/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/store-secure/src/main/java/launch/Launch.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/store-secure/src/main/java/launch/LaunchProtected.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/store-secure/src/main/java/launch/LaunchSSL.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/store-secure/src/main/java/services/Cart.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/store-secure/src/main/java/services/Catalog.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/store-secure/src/main/java/services/CurrencyConverter.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/store-secure/src/main/java/services/CurrencyConverterImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/store-secure/src/main/java/services/FruitsCatalogImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/store-secure/src/main/java/services/Item.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/store-secure/src/main/java/services/ShoppingCartImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/store-secure/src/main/java/services/Total.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/store-secure/src/main/resources/definitions.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/store-secure/src/main/resources/store-protected.composite create mode 100644 tags/java/sca/1.5.1-RC4/samples/store-secure/src/main/resources/store-ssl.composite create mode 100644 tags/java/sca/1.5.1-RC4/samples/store-secure/src/main/resources/store.composite create mode 100644 tags/java/sca/1.5.1-RC4/samples/store-secure/src/main/resources/tuscany.keyStore create mode 100644 tags/java/sca/1.5.1-RC4/samples/store-secure/src/main/resources/uiservices/store.html create mode 100644 tags/java/sca/1.5.1-RC4/samples/store-secure/store.png create mode 100644 tags/java/sca/1.5.1-RC4/samples/store-secure/store.svg create mode 100644 tags/java/sca/1.5.1-RC4/samples/store-webapp/README create mode 100644 tags/java/sca/1.5.1-RC4/samples/store-webapp/build-dependency.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/store-webapp/build-dojo.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/store-webapp/build.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/store-webapp/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/store-webapp/src/main/java/services/Cart.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/store-webapp/src/main/java/services/Catalog.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/store-webapp/src/main/java/services/CurrencyConverter.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/store-webapp/src/main/java/services/CurrencyConverterImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/store-webapp/src/main/java/services/FruitsCatalogImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/store-webapp/src/main/java/services/Item.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/store-webapp/src/main/java/services/ShoppingCartImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/store-webapp/src/main/java/services/Total.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/store-webapp/src/main/resources/store.composite create mode 100644 tags/java/sca/1.5.1-RC4/samples/store-webapp/src/main/webapp/META-INF/sca-contribution.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/store-webapp/src/main/webapp/WEB-INF/geronimo-web.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/store-webapp/src/main/webapp/WEB-INF/web.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/store-webapp/src/main/webapp/store.html create mode 100644 tags/java/sca/1.5.1-RC4/samples/store-webapp/store.png create mode 100644 tags/java/sca/1.5.1-RC4/samples/store-webapp/store.svg create mode 100644 tags/java/sca/1.5.1-RC4/samples/store/README create mode 100644 tags/java/sca/1.5.1-RC4/samples/store/build.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/store/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/store/src/main/java/launch/Launch.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/store/src/main/java/services/Cart.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/store/src/main/java/services/Catalog.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/store/src/main/java/services/CurrencyConverter.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/store/src/main/java/services/CurrencyConverterImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/store/src/main/java/services/FruitsCatalogImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/store/src/main/java/services/Item.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/store/src/main/java/services/ShoppingCartImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/store/src/main/java/services/Total.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/store/src/main/resources/store.composite create mode 100644 tags/java/sca/1.5.1-RC4/samples/store/src/main/resources/uiservices/store.html create mode 100644 tags/java/sca/1.5.1-RC4/samples/store/store.png create mode 100644 tags/java/sca/1.5.1-RC4/samples/store/store.svg create mode 100644 tags/java/sca/1.5.1-RC4/samples/supplychain/README create mode 100644 tags/java/sca/1.5.1-RC4/samples/supplychain/build.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/supplychain/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/supplychain/src/main/java/supplychain/Customer.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/supplychain/src/main/java/supplychain/CustomerComponentImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/supplychain/src/main/java/supplychain/Retailer.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/supplychain/src/main/java/supplychain/RetailerComponentImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/supplychain/src/main/java/supplychain/Shipper.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/supplychain/src/main/java/supplychain/ShipperComponentImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/supplychain/src/main/java/supplychain/SupplyChainClient.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/supplychain/src/main/java/supplychain/Warehouse.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/supplychain/src/main/java/supplychain/WarehouseComponentImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/supplychain/src/main/resources/supplychain.composite create mode 100644 tags/java/sca/1.5.1-RC4/samples/supplychain/src/test/java/supplychain/SupplyChainClientTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/supplychain/supplychain.png create mode 100644 tags/java/sca/1.5.1-RC4/samples/supplychain/supplychain.svg create mode 100644 tags/java/sca/1.5.1-RC4/samples/web-resource/README create mode 100644 tags/java/sca/1.5.1-RC4/samples/web-resource/build.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/web-resource/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/samples/web-resource/src/main/java/web/resource/SampleServer.java create mode 100644 tags/java/sca/1.5.1-RC4/samples/web-resource/src/main/resources/WebResource.composite create mode 100644 tags/java/sca/1.5.1-RC4/samples/web-resource/src/main/resources/myContent/index.html create mode 100644 tags/java/sca/1.5.1-RC4/samples/web-resource/web-resource.png create mode 100644 tags/java/sca/1.5.1-RC4/samples/web-resource/web-resource.svg create mode 100644 tags/java/sca/1.5.1-RC4/tools/contrib2wsdl/LICENSE create mode 100644 tags/java/sca/1.5.1-RC4/tools/contrib2wsdl/NOTICE create mode 100644 tags/java/sca/1.5.1-RC4/tools/contrib2wsdl/build.xml create mode 100644 tags/java/sca/1.5.1-RC4/tools/contrib2wsdl/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/tools/contrib2wsdl/src/main/java/org/apache/tuscany/tools/contrib2wsdl/Contrib2WSDL.java create mode 100644 tags/java/sca/1.5.1-RC4/tools/contrib2wsdl/src/test/java/calculator/AddService.java create mode 100644 tags/java/sca/1.5.1-RC4/tools/contrib2wsdl/src/test/java/calculator/AddServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/tools/contrib2wsdl/src/test/java/calculator/CalculatorClient.java create mode 100644 tags/java/sca/1.5.1-RC4/tools/contrib2wsdl/src/test/java/calculator/CalculatorService.java create mode 100644 tags/java/sca/1.5.1-RC4/tools/contrib2wsdl/src/test/java/calculator/CalculatorServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/tools/contrib2wsdl/src/test/java/calculator/DivideService.java create mode 100644 tags/java/sca/1.5.1-RC4/tools/contrib2wsdl/src/test/java/calculator/DivideServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/tools/contrib2wsdl/src/test/java/calculator/MultiplyService.java create mode 100644 tags/java/sca/1.5.1-RC4/tools/contrib2wsdl/src/test/java/calculator/MultiplyServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/tools/contrib2wsdl/src/test/java/calculator/SubtractService.java create mode 100644 tags/java/sca/1.5.1-RC4/tools/contrib2wsdl/src/test/java/calculator/SubtractServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/tools/contrib2wsdl/src/test/java/org/apache/tuscany/tools/contrib2wsdl/Contrib2WSDLTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/tools/contrib2wsdl/src/test/resources/Calculator.composite create mode 100644 tags/java/sca/1.5.1-RC4/tools/contrib2wsdl/src/test/resources/META-INF/sca-contribution.xml create mode 100644 tags/java/sca/1.5.1-RC4/tools/eclipse/features/core/.project create mode 100644 tags/java/sca/1.5.1-RC4/tools/eclipse/features/core/LICENSE create mode 100644 tags/java/sca/1.5.1-RC4/tools/eclipse/features/core/META-INF/MANIFEST.MF create mode 100644 tags/java/sca/1.5.1-RC4/tools/eclipse/features/core/NOTICE create mode 100644 tags/java/sca/1.5.1-RC4/tools/eclipse/features/core/build.properties create mode 100644 tags/java/sca/1.5.1-RC4/tools/eclipse/features/core/feature.xml create mode 100644 tags/java/sca/1.5.1-RC4/tools/eclipse/features/core/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/tools/eclipse/plugins/core/.project create mode 100644 tags/java/sca/1.5.1-RC4/tools/eclipse/plugins/core/LICENSE create mode 100644 tags/java/sca/1.5.1-RC4/tools/eclipse/plugins/core/META-INF/MANIFEST.MF create mode 100644 tags/java/sca/1.5.1-RC4/tools/eclipse/plugins/core/NOTICE create mode 100644 tags/java/sca/1.5.1-RC4/tools/eclipse/plugins/core/build.properties create mode 100644 tags/java/sca/1.5.1-RC4/tools/eclipse/plugins/core/exsd/runtimeLibraries.exsd create mode 100644 tags/java/sca/1.5.1-RC4/tools/eclipse/plugins/core/icons/t.gif create mode 100644 tags/java/sca/1.5.1-RC4/tools/eclipse/plugins/core/icons/tuscany.gif create mode 100644 tags/java/sca/1.5.1-RC4/tools/eclipse/plugins/core/org/apache/tuscany/sca/core/classpath/ClasspathUtil.java create mode 100644 tags/java/sca/1.5.1-RC4/tools/eclipse/plugins/core/org/apache/tuscany/sca/core/classpath/TuscanyClasspathContainer.java create mode 100644 tags/java/sca/1.5.1-RC4/tools/eclipse/plugins/core/org/apache/tuscany/sca/core/classpath/TuscanyClasspathContainerInitializer.java create mode 100644 tags/java/sca/1.5.1-RC4/tools/eclipse/plugins/core/org/apache/tuscany/sca/core/classpath/TuscanyLibraryEntryPage.java create mode 100644 tags/java/sca/1.5.1-RC4/tools/eclipse/plugins/core/org/apache/tuscany/sca/core/classpath/TuscanyRuntimeClasspathContainer.java create mode 100644 tags/java/sca/1.5.1-RC4/tools/eclipse/plugins/core/org/apache/tuscany/sca/core/launch/DomainManagerLauncherUtil.java create mode 100644 tags/java/sca/1.5.1-RC4/tools/eclipse/plugins/core/org/apache/tuscany/sca/core/launch/NodeLauncherUtil.java create mode 100644 tags/java/sca/1.5.1-RC4/tools/eclipse/plugins/core/org/apache/tuscany/sca/core/launch/TuscanyLaunchConfigurationDelegate.java create mode 100644 tags/java/sca/1.5.1-RC4/tools/eclipse/plugins/core/org/apache/tuscany/sca/core/launch/TuscanyLaunchConfigurationTabGroup.java create mode 100644 tags/java/sca/1.5.1-RC4/tools/eclipse/plugins/core/org/apache/tuscany/sca/core/launch/TuscanyLaunchDomainManagerAction.java create mode 100644 tags/java/sca/1.5.1-RC4/tools/eclipse/plugins/core/org/apache/tuscany/sca/core/launch/TuscanyLaunchNodeFilter.java create mode 100644 tags/java/sca/1.5.1-RC4/tools/eclipse/plugins/core/org/apache/tuscany/sca/core/launch/TuscanyLaunchNodeShortcut.java create mode 100644 tags/java/sca/1.5.1-RC4/tools/eclipse/plugins/core/org/apache/tuscany/sca/core/log/LogUtil.java create mode 100644 tags/java/sca/1.5.1-RC4/tools/eclipse/plugins/core/org/apache/tuscany/sca/core/newwizards/NewComponentTypeWizard.java create mode 100644 tags/java/sca/1.5.1-RC4/tools/eclipse/plugins/core/org/apache/tuscany/sca/core/newwizards/NewComponentTypeWizardPage.java create mode 100644 tags/java/sca/1.5.1-RC4/tools/eclipse/plugins/core/org/apache/tuscany/sca/core/newwizards/NewCompositeWizard.java create mode 100644 tags/java/sca/1.5.1-RC4/tools/eclipse/plugins/core/org/apache/tuscany/sca/core/newwizards/NewCompositeWizardPage.java create mode 100644 tags/java/sca/1.5.1-RC4/tools/eclipse/plugins/core/plugin.xml create mode 100644 tags/java/sca/1.5.1-RC4/tools/eclipse/plugins/core/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/tools/eclipse/plugins/core/xsd/sca-all.xsd create mode 100644 tags/java/sca/1.5.1-RC4/tools/eclipse/plugins/core/xsd/sca-binding-ejb.xsd create mode 100644 tags/java/sca/1.5.1-RC4/tools/eclipse/plugins/core/xsd/sca-binding-jms.xsd create mode 100644 tags/java/sca/1.5.1-RC4/tools/eclipse/plugins/core/xsd/sca-binding-sca.xsd create mode 100644 tags/java/sca/1.5.1-RC4/tools/eclipse/plugins/core/xsd/sca-binding-webservice.xsd create mode 100644 tags/java/sca/1.5.1-RC4/tools/eclipse/plugins/core/xsd/sca-contribution.xsd create mode 100644 tags/java/sca/1.5.1-RC4/tools/eclipse/plugins/core/xsd/sca-core.xsd create mode 100644 tags/java/sca/1.5.1-RC4/tools/eclipse/plugins/core/xsd/sca-definitions.xsd create mode 100644 tags/java/sca/1.5.1-RC4/tools/eclipse/plugins/core/xsd/sca-implementation-bpel.xsd create mode 100644 tags/java/sca/1.5.1-RC4/tools/eclipse/plugins/core/xsd/sca-implementation-composite.xsd create mode 100644 tags/java/sca/1.5.1-RC4/tools/eclipse/plugins/core/xsd/sca-implementation-cpp.xsd create mode 100644 tags/java/sca/1.5.1-RC4/tools/eclipse/plugins/core/xsd/sca-implementation-ejb.xsd create mode 100644 tags/java/sca/1.5.1-RC4/tools/eclipse/plugins/core/xsd/sca-implementation-java.xsd create mode 100644 tags/java/sca/1.5.1-RC4/tools/eclipse/plugins/core/xsd/sca-implementation-spring.xsd create mode 100644 tags/java/sca/1.5.1-RC4/tools/eclipse/plugins/core/xsd/sca-interface-cpp.xsd create mode 100644 tags/java/sca/1.5.1-RC4/tools/eclipse/plugins/core/xsd/sca-interface-java.xsd create mode 100644 tags/java/sca/1.5.1-RC4/tools/eclipse/plugins/core/xsd/sca-interface-wsdl.xsd create mode 100644 tags/java/sca/1.5.1-RC4/tools/eclipse/plugins/core/xsd/sca-policy.xsd create mode 100644 tags/java/sca/1.5.1-RC4/tools/eclipse/plugins/core/xsd/sca.xsd create mode 100644 tags/java/sca/1.5.1-RC4/tools/eclipse/plugins/core/xsd/tuscany-sca-binding-atom.xsd create mode 100644 tags/java/sca/1.5.1-RC4/tools/eclipse/plugins/core/xsd/tuscany-sca-binding-dwr.xsd create mode 100644 tags/java/sca/1.5.1-RC4/tools/eclipse/plugins/core/xsd/tuscany-sca-binding-http.xsd create mode 100644 tags/java/sca/1.5.1-RC4/tools/eclipse/plugins/core/xsd/tuscany-sca-binding-jsonrpc.xsd create mode 100644 tags/java/sca/1.5.1-RC4/tools/eclipse/plugins/core/xsd/tuscany-sca-binding-notification.xsd create mode 100644 tags/java/sca/1.5.1-RC4/tools/eclipse/plugins/core/xsd/tuscany-sca-binding-rmi.xsd create mode 100644 tags/java/sca/1.5.1-RC4/tools/eclipse/plugins/core/xsd/tuscany-sca-binding-rss.xsd create mode 100644 tags/java/sca/1.5.1-RC4/tools/eclipse/plugins/core/xsd/tuscany-sca-implementation-node.xsd create mode 100644 tags/java/sca/1.5.1-RC4/tools/eclipse/plugins/core/xsd/tuscany-sca-implementation-notification.xsd create mode 100644 tags/java/sca/1.5.1-RC4/tools/eclipse/plugins/core/xsd/tuscany-sca-implementation-osgi.xsd create mode 100644 tags/java/sca/1.5.1-RC4/tools/eclipse/plugins/core/xsd/tuscany-sca-implementation-resource.xsd create mode 100644 tags/java/sca/1.5.1-RC4/tools/eclipse/plugins/core/xsd/tuscany-sca-implementation-script.xsd create mode 100644 tags/java/sca/1.5.1-RC4/tools/eclipse/plugins/core/xsd/tuscany-sca-implementation-widget.xsd create mode 100644 tags/java/sca/1.5.1-RC4/tools/eclipse/plugins/core/xsd/tuscany-sca-implementation-xquery.xsd create mode 100644 tags/java/sca/1.5.1-RC4/tools/eclipse/plugins/core/xsd/tuscany-sca.xsd create mode 100644 tags/java/sca/1.5.1-RC4/tools/eclipse/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/tools/eclipse/site/updatesite/.project create mode 100644 tags/java/sca/1.5.1-RC4/tools/eclipse/site/updatesite/LICENSE create mode 100644 tags/java/sca/1.5.1-RC4/tools/eclipse/site/updatesite/NOTICE create mode 100644 tags/java/sca/1.5.1-RC4/tools/eclipse/site/updatesite/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/tools/eclipse/site/updatesite/site.xml create mode 100644 tags/java/sca/1.5.1-RC4/tools/eclipse/site/updatesite/src/main/assembly/updatesite.xml create mode 100644 tags/java/sca/1.5.1-RC4/tools/java2wsdl/LICENSE create mode 100644 tags/java/sca/1.5.1-RC4/tools/java2wsdl/NOTICE create mode 100644 tags/java/sca/1.5.1-RC4/tools/java2wsdl/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/tools/java2wsdl/src/main/java/org/apache/tuscany/tools/java2wsdl/generate/GenerationParameters.java create mode 100644 tags/java/sca/1.5.1-RC4/tools/java2wsdl/src/main/java/org/apache/tuscany/tools/java2wsdl/generate/Java2WSDL.java create mode 100644 tags/java/sca/1.5.1-RC4/tools/java2wsdl/src/main/java/org/apache/tuscany/tools/java2wsdl/generate/Java2WSDLGenerator.java create mode 100644 tags/java/sca/1.5.1-RC4/tools/java2wsdl/src/main/java/org/apache/tuscany/tools/java2wsdl/generate/Java2WSDLGeneratorFactory.java create mode 100644 tags/java/sca/1.5.1-RC4/tools/java2wsdl/src/main/java/org/apache/tuscany/tools/java2wsdl/generate/Java2WSDLGeneratorImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/tools/java2wsdl/src/main/java/org/apache/tuscany/tools/java2wsdl/generate/SchemaBuilder.java create mode 100644 tags/java/sca/1.5.1-RC4/tools/java2wsdl/src/main/java/org/apache/tuscany/tools/java2wsdl/generate/TuscanyJava2OMBuilder.java create mode 100644 tags/java/sca/1.5.1-RC4/tools/java2wsdl/src/main/java/org/apache/tuscany/tools/java2wsdl/generate/TuscanyJava2WSDLBuilder.java create mode 100644 tags/java/sca/1.5.1-RC4/tools/java2wsdl/src/main/java/org/apache/tuscany/tools/java2wsdl/generate/TuscanyJava2WSDLConstants.java create mode 100644 tags/java/sca/1.5.1-RC4/tools/java2wsdl/src/main/java/org/apache/tuscany/tools/java2wsdl/generate/TuscanyJava2WSDLOptionsValidator.java create mode 100644 tags/java/sca/1.5.1-RC4/tools/java2wsdl/src/main/java/org/apache/tuscany/tools/java2wsdl/generate/TuscanySchemaGenerator.java create mode 100644 tags/java/sca/1.5.1-RC4/tools/java2wsdl/src/main/java/org/apache/tuscany/tools/java2wsdl/generate/TuscanyTypeTable.java create mode 100644 tags/java/sca/1.5.1-RC4/tools/java2wsdl/src/main/java/org/apache/tuscany/tools/java2wsdl/generate/TuscanyWSDLTypesGenerator.java create mode 100644 tags/java/sca/1.5.1-RC4/tools/java2wsdl/src/main/java/org/apache/tuscany/tools/java2wsdl/generate/WSDLGenEvent.java create mode 100644 tags/java/sca/1.5.1-RC4/tools/java2wsdl/src/main/java/org/apache/tuscany/tools/java2wsdl/generate/WSDLGenListener.java create mode 100644 tags/java/sca/1.5.1-RC4/tools/java2wsdl/src/main/java/org/apache/tuscany/tools/java2wsdl/util/XMLNameUtil.java create mode 100644 tags/java/sca/1.5.1-RC4/tools/java2wsdl/src/main/resources/META-INF/LICENSE.txt create mode 100644 tags/java/sca/1.5.1-RC4/tools/java2wsdl/src/test/java/org/apache/tuscany/tools/java2wsdl/generate/CustomerValue.java create mode 100644 tags/java/sca/1.5.1-RC4/tools/java2wsdl/src/test/java/org/apache/tuscany/tools/java2wsdl/generate/CustomerWithAccount.java create mode 100644 tags/java/sca/1.5.1-RC4/tools/java2wsdl/src/test/java/org/apache/tuscany/tools/java2wsdl/generate/ExampleService.java create mode 100644 tags/java/sca/1.5.1-RC4/tools/java2wsdl/src/test/java/org/apache/tuscany/tools/java2wsdl/generate/TuscanyJava2WSDLTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/tools/java2wsdl/src/test/java/org/apache/tuscany/tools/java2wsdl/generate/account/Account.java create mode 100644 tags/java/sca/1.5.1-RC4/tools/java2wsdl/src/test/java/org/apache/tuscany/tools/java2wsdl/generate/customer/Customer.java create mode 100644 tags/java/sca/1.5.1-RC4/tools/java2wsdl/src/test/java/org/apache/tuscany/tools/java2wsdl/generate/extra/GoldCustomer.java create mode 100644 tags/java/sca/1.5.1-RC4/tools/java2wsdl/src/test/java/org/soapinterop/CreditScoreDocLit.java create mode 100644 tags/java/sca/1.5.1-RC4/tools/java2wsdl/src/test/resources/AccountService.wsdl create mode 100644 tags/java/sca/1.5.1-RC4/tools/java2wsdl/src/test/resources/CreditScoreDocLit.wsdl create mode 100644 tags/java/sca/1.5.1-RC4/tools/java2wsdl/src/test/resources/helloworld.wsdl create mode 100644 tags/java/sca/1.5.1-RC4/tools/java2wsdl/src/test/resources/interopdoc.wsdl create mode 100644 tags/java/sca/1.5.1-RC4/tools/java2wsdl/src/test/resources/sequences.xsd create mode 100644 tags/java/sca/1.5.1-RC4/tools/maven/maven-ant-generator/LICENSE create mode 100644 tags/java/sca/1.5.1-RC4/tools/maven/maven-ant-generator/NOTICE create mode 100644 tags/java/sca/1.5.1-RC4/tools/maven/maven-ant-generator/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/tools/maven/maven-ant-generator/src/main/java/org/apache/tuscany/sca/tools/ant/generator/plugin/AntGeneratorMojo.java create mode 100644 tags/java/sca/1.5.1-RC4/tools/maven/maven-dependency-lister/LICENSE create mode 100644 tags/java/sca/1.5.1-RC4/tools/maven/maven-dependency-lister/NOTICE create mode 100644 tags/java/sca/1.5.1-RC4/tools/maven/maven-dependency-lister/README create mode 100644 tags/java/sca/1.5.1-RC4/tools/maven/maven-dependency-lister/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/tools/maven/maven-dependency-lister/src/main/java/org/apache/tuscany/tools/sca/dependency/lister/plugin/DependencyListerMojo.java create mode 100644 tags/java/sca/1.5.1-RC4/tools/maven/maven-incremental-build/LICENSE create mode 100644 tags/java/sca/1.5.1-RC4/tools/maven/maven-incremental-build/NOTICE create mode 100644 tags/java/sca/1.5.1-RC4/tools/maven/maven-incremental-build/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/tools/maven/maven-incremental-build/src/main/java/org/apache/tuscany/sca/tools/incremental/build/plugin/IncrementalBuildMojo.java create mode 100644 tags/java/sca/1.5.1-RC4/tools/maven/maven-java2wsdl/LICENSE create mode 100644 tags/java/sca/1.5.1-RC4/tools/maven/maven-java2wsdl/NOTICE create mode 100644 tags/java/sca/1.5.1-RC4/tools/maven/maven-java2wsdl/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/tools/maven/maven-java2wsdl/src/main/java/org/apache/tuscany/tools/java2wsdl/plugin/Java2WSDLGeneratorMojo.java create mode 100644 tags/java/sca/1.5.1-RC4/tools/maven/maven-osgi-junit/LICENSE create mode 100644 tags/java/sca/1.5.1-RC4/tools/maven/maven-osgi-junit/NOTICE create mode 100644 tags/java/sca/1.5.1-RC4/tools/maven/maven-osgi-junit/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/tools/maven/maven-osgi-junit/src/main/java/org/apache/tuscany/tools/sca/osgi/junit/plugin/OSGiJUnitMojo.java create mode 100644 tags/java/sca/1.5.1-RC4/tools/maven/maven-tuscany-bundle-plugin/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/tools/maven/maven-tuscany-bundle-plugin/src/main/java/org/apache/tuscany/tools/sca/tuscany/bundle/plugin/LibraryBundleMojo.java create mode 100644 tags/java/sca/1.5.1-RC4/tools/maven/maven-tuscany-bundle-plugin/src/main/java/org/apache/tuscany/tools/sca/tuscany/bundle/plugin/LibraryBundleUtil.java create mode 100644 tags/java/sca/1.5.1-RC4/tools/maven/maven-tuscany-bundle-plugin/src/main/java/org/apache/tuscany/tools/sca/tuscany/bundle/plugin/TuscanyBundlePluginMojo.java create mode 100644 tags/java/sca/1.5.1-RC4/tools/maven/maven-wsdl2java/LICENSE create mode 100644 tags/java/sca/1.5.1-RC4/tools/maven/maven-wsdl2java/NOTICE create mode 100644 tags/java/sca/1.5.1-RC4/tools/maven/maven-wsdl2java/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/tools/maven/maven-wsdl2java/src/main/java/org/apache/tuscany/tools/wsdl2java/plugin/WSDL2JavaGeneratorMojo.java create mode 100644 tags/java/sca/1.5.1-RC4/tools/maven/maven-wsdl2java/src/main/java/org/apache/tuscany/tools/wsdl2java/plugin/WSDLFileOption.java create mode 100644 tags/java/sca/1.5.1-RC4/tools/maven/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/tools/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/tools/wsdl2java/LICENSE create mode 100644 tags/java/sca/1.5.1-RC4/tools/wsdl2java/NOTICE create mode 100644 tags/java/sca/1.5.1-RC4/tools/wsdl2java/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/tools/wsdl2java/src/main/java/org/apache/tuscany/tools/wsdl2java/generate/JavaInterfaceEmitter.java create mode 100644 tags/java/sca/1.5.1-RC4/tools/wsdl2java/src/main/java/org/apache/tuscany/tools/wsdl2java/generate/JavaInterfaceGenerator.java create mode 100644 tags/java/sca/1.5.1-RC4/tools/wsdl2java/src/main/java/org/apache/tuscany/tools/wsdl2java/generate/RemotableInterfaceWritter.java create mode 100644 tags/java/sca/1.5.1-RC4/tools/wsdl2java/src/main/java/org/apache/tuscany/tools/wsdl2java/generate/SDODataBindingCodegenExtension.java create mode 100644 tags/java/sca/1.5.1-RC4/tools/wsdl2java/src/main/java/org/apache/tuscany/tools/wsdl2java/generate/SDODataBindingTypeMappingEntry.java create mode 100644 tags/java/sca/1.5.1-RC4/tools/wsdl2java/src/main/java/org/apache/tuscany/tools/wsdl2java/generate/WSDL2JavaGenerator.java create mode 100644 tags/java/sca/1.5.1-RC4/tools/wsdl2java/src/main/java/org/apache/tuscany/tools/wsdl2java/util/XMLNameUtil.java create mode 100644 tags/java/sca/1.5.1-RC4/tools/wsdl2java/src/main/resources/META-INF/LICENSE.txt create mode 100644 tags/java/sca/1.5.1-RC4/tools/wsdl2java/src/main/resources/RemotableInterfaceTemplate.xsl create mode 100644 tags/java/sca/1.5.1-RC4/tools/wsdl2java/src/test/java/org/apache/tuscany/tools/wsdl2java/generate/WSDL2JavaGeneratorTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/tools/wsdl2java/src/test/java/org/soapinterop/CreditScoreDocLit.java create mode 100644 tags/java/sca/1.5.1-RC4/tools/wsdl2java/src/test/resources/AccountService.wsdl create mode 100644 tags/java/sca/1.5.1-RC4/tools/wsdl2java/src/test/resources/AccountServiceWithFault.wsdl create mode 100644 tags/java/sca/1.5.1-RC4/tools/wsdl2java/src/test/resources/CreditScoreDocLit.wsdl create mode 100644 tags/java/sca/1.5.1-RC4/tools/wsdl2java/src/test/resources/helloworld.wsdl create mode 100644 tags/java/sca/1.5.1-RC4/tools/wsdl2java/src/test/resources/interopdoc.wsdl create mode 100644 tags/java/sca/1.5.1-RC4/tools/wsdl2java/src/test/resources/sequences.xsd create mode 100644 tags/java/sca/1.5.1-RC4/tutorials/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/tutorials/store/README create mode 100644 tags/java/sca/1.5.1-RC4/tutorials/store/Tutorial.odp create mode 100644 tags/java/sca/1.5.1-RC4/tutorials/store/Tutorial.pdf create mode 100644 tags/java/sca/1.5.1-RC4/tutorials/store/assets/META-INF/sca-contribution.xml create mode 100644 tags/java/sca/1.5.1-RC4/tutorials/store/assets/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/tutorials/store/assets/services/Cart.java create mode 100644 tags/java/sca/1.5.1-RC4/tutorials/store/assets/services/Catalog.java create mode 100644 tags/java/sca/1.5.1-RC4/tutorials/store/assets/services/CurrencyConverter.java create mode 100644 tags/java/sca/1.5.1-RC4/tutorials/store/assets/services/CurrencyConverterImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/tutorials/store/assets/services/FruitsCatalogImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/tutorials/store/assets/services/Item.java create mode 100644 tags/java/sca/1.5.1-RC4/tutorials/store/assets/services/Order.java create mode 100644 tags/java/sca/1.5.1-RC4/tutorials/store/assets/services/ShoppingCartImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/tutorials/store/assets/services/Total.java create mode 100644 tags/java/sca/1.5.1-RC4/tutorials/store/assets/services/VegetablesCatalogImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/tutorials/store/assets/services/Warehouse.java create mode 100644 tags/java/sca/1.5.1-RC4/tutorials/store/assets/services/db/ShoppingCartTableImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/tutorials/store/assets/services/db/cart.sql create mode 100644 tags/java/sca/1.5.1-RC4/tutorials/store/assets/services/map/FruitsCatalogImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/tutorials/store/assets/services/market/MarketCatalogImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/tutorials/store/assets/services/merger/MergedCatalogImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/tutorials/store/assets/tutorial.html create mode 100644 tags/java/sca/1.5.1-RC4/tutorials/store/assets/uiservices/store.html create mode 100644 tags/java/sca/1.5.1-RC4/tutorials/store/catalog-ejb/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/tutorials/store/catalog-ejb/src/main/java/services/ejb/CatalogEJBHome.java create mode 100644 tags/java/sca/1.5.1-RC4/tutorials/store/catalog-ejb/src/main/java/services/ejb/CatalogEJBRemote.java create mode 100644 tags/java/sca/1.5.1-RC4/tutorials/store/catalog-ejb/src/main/java/services/ejb/Vegetable.java create mode 100644 tags/java/sca/1.5.1-RC4/tutorials/store/catalog-ejb/src/main/java/services/ejb/VegetablesCatalogEJBSessionBean.java create mode 100644 tags/java/sca/1.5.1-RC4/tutorials/store/catalog-ejb/src/main/resources/META-INF/ejb-jar.xml create mode 100644 tags/java/sca/1.5.1-RC4/tutorials/store/catalog-ejb/src/main/resources/META-INF/openejb-jar.xml create mode 100644 tags/java/sca/1.5.1-RC4/tutorials/store/catalog-ejb/src/main/resources/META-INF/sca-contribution.xml create mode 100644 tags/java/sca/1.5.1-RC4/tutorials/store/catalog-ejb/src/main/resources/VegetablesCatalogEJB.componentType create mode 100644 tags/java/sca/1.5.1-RC4/tutorials/store/catalog-ejb/src/main/resources/catalog-ejb.composite create mode 100644 tags/java/sca/1.5.1-RC4/tutorials/store/catalog-ejb/src/test/java/client/CatalogEJBClientTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/tutorials/store/catalog-ejb/src/test/java/org/omg/stub/javax/ejb/_EJBHome_Stub.java create mode 100644 tags/java/sca/1.5.1-RC4/tutorials/store/catalog-ejb/src/test/java/org/omg/stub/javax/ejb/_EJBObject_Stub.java create mode 100644 tags/java/sca/1.5.1-RC4/tutorials/store/catalog-ejb/src/test/java/org/omg/stub/javax/ejb/_Handle_Stub.java create mode 100644 tags/java/sca/1.5.1-RC4/tutorials/store/catalog-ejb/src/test/java/org/omg/stub/javax/ejb/_HomeHandle_Stub.java create mode 100644 tags/java/sca/1.5.1-RC4/tutorials/store/catalog-ejb/src/test/java/services/ejb/_CatalogEJBHome_Stub.java create mode 100644 tags/java/sca/1.5.1-RC4/tutorials/store/catalog-ejb/src/test/java/services/ejb/_CatalogEJBRemote_Stub.java create mode 100644 tags/java/sca/1.5.1-RC4/tutorials/store/catalog-mediation/META-INF/sca-contribution.xml create mode 100644 tags/java/sca/1.5.1-RC4/tutorials/store/catalog-mediation/catalog-mediation.composite create mode 100644 tags/java/sca/1.5.1-RC4/tutorials/store/catalog-mediation/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/tutorials/store/catalog-mediation/services/mediation/VegetablesCatalogMediationImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/tutorials/store/catalog-webapp/catalog-web.composite create mode 100644 tags/java/sca/1.5.1-RC4/tutorials/store/catalog-webapp/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/tutorials/store/catalog-webapp/webapp/META-INF/sca-contribution.xml create mode 100644 tags/java/sca/1.5.1-RC4/tutorials/store/catalog-webapp/webapp/WEB-INF/web.xml create mode 100644 tags/java/sca/1.5.1-RC4/tutorials/store/catalog-webapp/webapp/catalog.jsp create mode 100644 tags/java/sca/1.5.1-RC4/tutorials/store/domain/cloud.composite create mode 100644 tags/java/sca/1.5.1-RC4/tutorials/store/domain/cloud/CatalogEJBNode.composite create mode 100644 tags/java/sca/1.5.1-RC4/tutorials/store/domain/cloud/CatalogMediationNode.composite create mode 100644 tags/java/sca/1.5.1-RC4/tutorials/store/domain/cloud/CatalogWebAppNode.composite create mode 100644 tags/java/sca/1.5.1-RC4/tutorials/store/domain/cloud/CatalogsNode.composite create mode 100644 tags/java/sca/1.5.1-RC4/tutorials/store/domain/cloud/CurrencyNode.composite create mode 100644 tags/java/sca/1.5.1-RC4/tutorials/store/domain/cloud/StoreClientNode.composite create mode 100644 tags/java/sca/1.5.1-RC4/tutorials/store/domain/cloud/StoreDBNode.composite create mode 100644 tags/java/sca/1.5.1-RC4/tutorials/store/domain/cloud/StoreEUNode.composite create mode 100644 tags/java/sca/1.5.1-RC4/tutorials/store/domain/cloud/StoreEnterpriseNode.composite create mode 100644 tags/java/sca/1.5.1-RC4/tutorials/store/domain/cloud/StoreMarketNode.composite create mode 100644 tags/java/sca/1.5.1-RC4/tutorials/store/domain/cloud/StoreMashupNode.composite create mode 100644 tags/java/sca/1.5.1-RC4/tutorials/store/domain/cloud/StoreMergerNode.composite create mode 100644 tags/java/sca/1.5.1-RC4/tutorials/store/domain/cloud/StoreNode.composite create mode 100644 tags/java/sca/1.5.1-RC4/tutorials/store/domain/cloud/StoreSupplierNode.composite create mode 100644 tags/java/sca/1.5.1-RC4/tutorials/store/domain/domain.composite create mode 100644 tags/java/sca/1.5.1-RC4/tutorials/store/domain/launch/LaunchCatalogMediationNode.java create mode 100644 tags/java/sca/1.5.1-RC4/tutorials/store/domain/launch/LaunchCatalogsNode.java create mode 100644 tags/java/sca/1.5.1-RC4/tutorials/store/domain/launch/LaunchCurrencyNode.java create mode 100644 tags/java/sca/1.5.1-RC4/tutorials/store/domain/launch/LaunchStoreDBNode.java create mode 100644 tags/java/sca/1.5.1-RC4/tutorials/store/domain/launch/LaunchStoreEUNode.java create mode 100644 tags/java/sca/1.5.1-RC4/tutorials/store/domain/launch/LaunchStoreEnterpriseNode.java create mode 100644 tags/java/sca/1.5.1-RC4/tutorials/store/domain/launch/LaunchStoreMarketNode.java create mode 100644 tags/java/sca/1.5.1-RC4/tutorials/store/domain/launch/LaunchStoreMashupNode.java create mode 100644 tags/java/sca/1.5.1-RC4/tutorials/store/domain/launch/LaunchStoreMergerNode.java create mode 100644 tags/java/sca/1.5.1-RC4/tutorials/store/domain/launch/LaunchStoreNode.java create mode 100644 tags/java/sca/1.5.1-RC4/tutorials/store/domain/launch/LaunchStoreSupplierNode.java create mode 100644 tags/java/sca/1.5.1-RC4/tutorials/store/domain/launch/LaunchTutorialDomainManager.java create mode 100644 tags/java/sca/1.5.1-RC4/tutorials/store/domain/launch/LaunchWarehouseSpring.java create mode 100644 tags/java/sca/1.5.1-RC4/tutorials/store/domain/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/tutorials/store/domain/workspace.xml create mode 100644 tags/java/sca/1.5.1-RC4/tutorials/store/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/tutorials/store/store-client/META-INF/sca-contribution.xml create mode 100644 tags/java/sca/1.5.1-RC4/tutorials/store/store-client/client/Shopper.java create mode 100644 tags/java/sca/1.5.1-RC4/tutorials/store/store-client/client/ShopperImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/tutorials/store/store-client/launch/LaunchStoreClientNode.java create mode 100644 tags/java/sca/1.5.1-RC4/tutorials/store/store-client/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/tutorials/store/store-client/services/Cart.java create mode 100644 tags/java/sca/1.5.1-RC4/tutorials/store/store-client/services/Catalog.java create mode 100644 tags/java/sca/1.5.1-RC4/tutorials/store/store-client/services/Item.java create mode 100644 tags/java/sca/1.5.1-RC4/tutorials/store/store-client/services/Total.java create mode 100644 tags/java/sca/1.5.1-RC4/tutorials/store/store-client/store-client.composite create mode 100644 tags/java/sca/1.5.1-RC4/tutorials/store/store-db/META-INF/sca-contribution.xml create mode 100644 tags/java/sca/1.5.1-RC4/tutorials/store/store-db/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/tutorials/store/store-db/store-db.composite create mode 100644 tags/java/sca/1.5.1-RC4/tutorials/store/store-enterprise/META-INF/sca-contribution.xml create mode 100644 tags/java/sca/1.5.1-RC4/tutorials/store/store-enterprise/build.xml create mode 100644 tags/java/sca/1.5.1-RC4/tutorials/store/store-enterprise/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/tutorials/store/store-enterprise/store-enterprise.composite create mode 100644 tags/java/sca/1.5.1-RC4/tutorials/store/store-eu/META-INF/sca-contribution.xml create mode 100644 tags/java/sca/1.5.1-RC4/tutorials/store/store-eu/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/tutorials/store/store-eu/store-eu.composite create mode 100644 tags/java/sca/1.5.1-RC4/tutorials/store/store-eu/uiservices/store-eu.html create mode 100644 tags/java/sca/1.5.1-RC4/tutorials/store/store-market/META-INF/sca-contribution.xml create mode 100644 tags/java/sca/1.5.1-RC4/tutorials/store/store-market/build.xml create mode 100644 tags/java/sca/1.5.1-RC4/tutorials/store/store-market/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/tutorials/store/store-market/store-market.composite create mode 100644 tags/java/sca/1.5.1-RC4/tutorials/store/store-mashup/META-INF/sca-contribution.xml create mode 100644 tags/java/sca/1.5.1-RC4/tutorials/store/store-mashup/build-openajax.xml create mode 100644 tags/java/sca/1.5.1-RC4/tutorials/store/store-mashup/gadget/map-gadget.html create mode 100644 tags/java/sca/1.5.1-RC4/tutorials/store/store-mashup/gadget/store-gadget.html create mode 100644 tags/java/sca/1.5.1-RC4/tutorials/store/store-mashup/map-gadget.composite create mode 100644 tags/java/sca/1.5.1-RC4/tutorials/store/store-mashup/mashup/store-mash.html create mode 100644 tags/java/sca/1.5.1-RC4/tutorials/store/store-mashup/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/tutorials/store/store-mashup/store-gadget.composite create mode 100644 tags/java/sca/1.5.1-RC4/tutorials/store/store-mashup/store-mashup.composite create mode 100644 tags/java/sca/1.5.1-RC4/tutorials/store/store-merger/META-INF/sca-contribution.xml create mode 100644 tags/java/sca/1.5.1-RC4/tutorials/store/store-merger/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/tutorials/store/store-merger/store-merger.composite create mode 100644 tags/java/sca/1.5.1-RC4/tutorials/store/store-supplier/META-INF/sca-contribution.xml create mode 100644 tags/java/sca/1.5.1-RC4/tutorials/store/store-supplier/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/tutorials/store/store-supplier/store-supplier.composite create mode 100644 tags/java/sca/1.5.1-RC4/tutorials/store/store-test/META-INF/sca-contribution.xml create mode 100644 tags/java/sca/1.5.1-RC4/tutorials/store/store-test/client/Shopper.java create mode 100644 tags/java/sca/1.5.1-RC4/tutorials/store/store-test/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/tutorials/store/store-test/test/StoreSupplierTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/tutorials/store/store/META-INF/sca-contribution.xml create mode 100644 tags/java/sca/1.5.1-RC4/tutorials/store/store/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/tutorials/store/store/store.composite create mode 100644 tags/java/sca/1.5.1-RC4/tutorials/store/warehouse-spring/META-INF/sca-contribution.xml create mode 100644 tags/java/sca/1.5.1-RC4/tutorials/store/warehouse-spring/build.xml create mode 100644 tags/java/sca/1.5.1-RC4/tutorials/store/warehouse-spring/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/tutorials/store/warehouse-spring/services/WarehouseImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/tutorials/store/warehouse-spring/uiservices/warehouse.html create mode 100644 tags/java/sca/1.5.1-RC4/tutorials/store/warehouse-spring/warehouse-context.xml create mode 100644 tags/java/sca/1.5.1-RC4/tutorials/store/warehouse-spring/warehouse-spring.composite create mode 100644 tags/java/sca/1.5.1-RC4/tutorials/store/web-services/META-INF/sca-contribution.xml create mode 100644 tags/java/sca/1.5.1-RC4/tutorials/store/web-services/catalogs.composite create mode 100644 tags/java/sca/1.5.1-RC4/tutorials/store/web-services/currency.composite create mode 100644 tags/java/sca/1.5.1-RC4/tutorials/store/web-services/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/vtest/assembly/component/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/vtest/assembly/component/src/main/java/org/apache/tuscany/sca/vtest/assembly/component/AService.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/assembly/component/src/main/java/org/apache/tuscany/sca/vtest/assembly/component/BService.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/assembly/component/src/main/java/org/apache/tuscany/sca/vtest/assembly/component/CService.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/assembly/component/src/main/java/org/apache/tuscany/sca/vtest/assembly/component/DService.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/assembly/component/src/main/java/org/apache/tuscany/sca/vtest/assembly/component/EEService.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/assembly/component/src/main/java/org/apache/tuscany/sca/vtest/assembly/component/EService.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/assembly/component/src/main/java/org/apache/tuscany/sca/vtest/assembly/component/FService.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/assembly/component/src/main/java/org/apache/tuscany/sca/vtest/assembly/component/HService.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/assembly/component/src/main/java/org/apache/tuscany/sca/vtest/assembly/component/callback/MyClient.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/assembly/component/src/main/java/org/apache/tuscany/sca/vtest/assembly/component/callback/MyClientImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/assembly/component/src/main/java/org/apache/tuscany/sca/vtest/assembly/component/callback/MyService.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/assembly/component/src/main/java/org/apache/tuscany/sca/vtest/assembly/component/callback/MyServiceCallBack.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/assembly/component/src/main/java/org/apache/tuscany/sca/vtest/assembly/component/callback/MyServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/assembly/component/src/main/java/org/apache/tuscany/sca/vtest/assembly/component/impl/ABServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/assembly/component/src/main/java/org/apache/tuscany/sca/vtest/assembly/component/impl/AServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/assembly/component/src/main/java/org/apache/tuscany/sca/vtest/assembly/component/impl/BServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/assembly/component/src/main/java/org/apache/tuscany/sca/vtest/assembly/component/impl/CServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/assembly/component/src/main/java/org/apache/tuscany/sca/vtest/assembly/component/impl/DServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/assembly/component/src/main/java/org/apache/tuscany/sca/vtest/assembly/component/impl/EServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/assembly/component/src/main/java/org/apache/tuscany/sca/vtest/assembly/component/impl/FServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/assembly/component/src/main/java/org/apache/tuscany/sca/vtest/assembly/component/property/ServiceA.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/assembly/component/src/main/java/org/apache/tuscany/sca/vtest/assembly/component/property/ServiceAImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/assembly/component/src/main/java/org/apache/tuscany/sca/vtest/assembly/component/property/ServiceB.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/assembly/component/src/main/java/org/apache/tuscany/sca/vtest/assembly/component/property/ServiceBImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/assembly/component/src/main/java/org/apache/tuscany/sca/vtest/assembly/component/property/ServiceC.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/assembly/component/src/main/java/org/apache/tuscany/sca/vtest/assembly/component/property/ServiceCImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/assembly/component/src/main/java/org/apache/tuscany/sca/vtest/assembly/component/reference/MyClientA.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/assembly/component/src/main/java/org/apache/tuscany/sca/vtest/assembly/component/reference/MyClientAImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/assembly/component/src/main/java/org/apache/tuscany/sca/vtest/assembly/component/reference/MyClientB.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/assembly/component/src/main/java/org/apache/tuscany/sca/vtest/assembly/component/reference/MyClientBImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/assembly/component/src/main/java/org/apache/tuscany/sca/vtest/assembly/component/reference/MyClientC.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/assembly/component/src/main/java/org/apache/tuscany/sca/vtest/assembly/component/reference/MyClientCImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/assembly/component/src/main/java/org/apache/tuscany/sca/vtest/assembly/component/reference/MyClientD.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/assembly/component/src/main/java/org/apache/tuscany/sca/vtest/assembly/component/reference/MyClientDImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/assembly/component/src/main/java/org/apache/tuscany/sca/vtest/assembly/component/reference/MyClientE.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/assembly/component/src/main/java/org/apache/tuscany/sca/vtest/assembly/component/reference/MyClientEImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/assembly/component/src/main/java/org/apache/tuscany/sca/vtest/assembly/component/reference/MyService.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/assembly/component/src/main/java/org/apache/tuscany/sca/vtest/assembly/component/reference/MyServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/assembly/component/src/main/java/org/apache/tuscany/sca/vtest/assembly/component/reference/MyServiceImpl2.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/assembly/component/src/main/resources/binding_resolution.composite create mode 100644 tags/java/sca/1.5.1-RC4/vtest/assembly/component/src/main/resources/callback_bindings.composite create mode 100644 tags/java/sca/1.5.1-RC4/vtest/assembly/component/src/main/resources/component.composite create mode 100644 tags/java/sca/1.5.1-RC4/vtest/assembly/component/src/main/resources/component_duplicate_property.composite create mode 100644 tags/java/sca/1.5.1-RC4/vtest/assembly/component/src/main/resources/component_property_1.composite create mode 100644 tags/java/sca/1.5.1-RC4/vtest/assembly/component/src/main/resources/component_property_2.composite create mode 100644 tags/java/sca/1.5.1-RC4/vtest/assembly/component/src/main/resources/component_property_3.composite create mode 100644 tags/java/sca/1.5.1-RC4/vtest/assembly/component/src/main/resources/nonuniquename.composite create mode 100644 tags/java/sca/1.5.1-RC4/vtest/assembly/component/src/main/resources/nonuniqueservicenameincomponenttype.composite create mode 100644 tags/java/sca/1.5.1-RC4/vtest/assembly/component/src/main/resources/nonuniqueservicenameincomposite.composite create mode 100644 tags/java/sca/1.5.1-RC4/vtest/assembly/component/src/main/resources/notcompatibleinterface.composite create mode 100644 tags/java/sca/1.5.1-RC4/vtest/assembly/component/src/main/resources/notmatchofservicename.composite create mode 100644 tags/java/sca/1.5.1-RC4/vtest/assembly/component/src/main/resources/org/apache/tuscany/sca/vtest/assembly/component/impl/ABServiceImpl.componentType create mode 100644 tags/java/sca/1.5.1-RC4/vtest/assembly/component/src/main/resources/org/apache/tuscany/sca/vtest/assembly/component/impl/DServiceImpl.componentType create mode 100644 tags/java/sca/1.5.1-RC4/vtest/assembly/component/src/main/resources/org/apache/tuscany/sca/vtest/assembly/component/impl/EServiceImpl.componentType create mode 100644 tags/java/sca/1.5.1-RC4/vtest/assembly/component/src/main/resources/org/apache/tuscany/sca/vtest/assembly/component/impl/FServiceImpl.componentType create mode 100644 tags/java/sca/1.5.1-RC4/vtest/assembly/component/src/main/resources/reference_multiplicity_moretargets.composite create mode 100644 tags/java/sca/1.5.1-RC4/vtest/assembly/component/src/main/resources/reference_multiplicity_multitargets.composite create mode 100644 tags/java/sca/1.5.1-RC4/vtest/assembly/component/src/main/resources/reference_multiplicity_ntargets.composite create mode 100644 tags/java/sca/1.5.1-RC4/vtest/assembly/component/src/main/resources/reference_multiplicity_zerotarget.composite create mode 100644 tags/java/sca/1.5.1-RC4/vtest/assembly/component/src/main/resources/reference_wiredbyimpl.composite create mode 100644 tags/java/sca/1.5.1-RC4/vtest/assembly/component/src/main/resources/referencename.composite create mode 100644 tags/java/sca/1.5.1-RC4/vtest/assembly/component/src/main/resources/referencename_1.composite create mode 100644 tags/java/sca/1.5.1-RC4/vtest/assembly/component/src/main/resources/referencename_2.composite create mode 100644 tags/java/sca/1.5.1-RC4/vtest/assembly/component/src/main/resources/referencename_3.composite create mode 100644 tags/java/sca/1.5.1-RC4/vtest/assembly/component/src/main/resources/referencename_4.composite create mode 100644 tags/java/sca/1.5.1-RC4/vtest/assembly/component/src/main/resources/serviceelement.composite create mode 100644 tags/java/sca/1.5.1-RC4/vtest/assembly/component/src/main/resources/servicewithbinding.composite create mode 100644 tags/java/sca/1.5.1-RC4/vtest/assembly/component/src/main/resources/servicewithinterface.composite create mode 100644 tags/java/sca/1.5.1-RC4/vtest/assembly/component/src/main/resources/zerocomponents.composite create mode 100644 tags/java/sca/1.5.1-RC4/vtest/assembly/component/src/main/resources/zeroimplelements.composite create mode 100644 tags/java/sca/1.5.1-RC4/vtest/assembly/component/src/test/java/org/apache/tuscany/sca/vtest/assembly/component/ComponentBasicTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/assembly/component/src/test/java/org/apache/tuscany/sca/vtest/assembly/component/ComponentPropertyTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/assembly/component/src/test/java/org/apache/tuscany/sca/vtest/assembly/component/ComponentReferenceTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/assembly/component/src/test/java/org/apache/tuscany/sca/vtest/assembly/component/ComponentTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/assembly/composite/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/vtest/assembly/composite/src/main/java/org/apache/tuscany/sca/vtest/assembly/composite/AService.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/assembly/composite/src/main/java/org/apache/tuscany/sca/vtest/assembly/composite/BService.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/assembly/composite/src/main/java/org/apache/tuscany/sca/vtest/assembly/composite/CService.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/assembly/composite/src/main/java/org/apache/tuscany/sca/vtest/assembly/composite/CSubService.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/assembly/composite/src/main/java/org/apache/tuscany/sca/vtest/assembly/composite/CSuperService.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/assembly/composite/src/main/java/org/apache/tuscany/sca/vtest/assembly/composite/DLocalSubService.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/assembly/composite/src/main/java/org/apache/tuscany/sca/vtest/assembly/composite/DServer.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/assembly/composite/src/main/java/org/apache/tuscany/sca/vtest/assembly/composite/DService.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/assembly/composite/src/main/java/org/apache/tuscany/sca/vtest/assembly/composite/DServiceComponent.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/assembly/composite/src/main/java/org/apache/tuscany/sca/vtest/assembly/composite/DSubService.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/assembly/composite/src/main/java/org/apache/tuscany/sca/vtest/assembly/composite/DSuperService.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/assembly/composite/src/main/java/org/apache/tuscany/sca/vtest/assembly/composite/EService.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/assembly/composite/src/main/java/org/apache/tuscany/sca/vtest/assembly/composite/FService.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/assembly/composite/src/main/java/org/apache/tuscany/sca/vtest/assembly/composite/impl/AServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/assembly/composite/src/main/java/org/apache/tuscany/sca/vtest/assembly/composite/impl/BServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/assembly/composite/src/main/java/org/apache/tuscany/sca/vtest/assembly/composite/impl/CServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/assembly/composite/src/main/java/org/apache/tuscany/sca/vtest/assembly/composite/impl/CSubServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/assembly/composite/src/main/java/org/apache/tuscany/sca/vtest/assembly/composite/impl/CSuperServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/assembly/composite/src/main/java/org/apache/tuscany/sca/vtest/assembly/composite/impl/DServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/assembly/composite/src/main/java/org/apache/tuscany/sca/vtest/assembly/composite/impl/DSubServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/assembly/composite/src/main/java/org/apache/tuscany/sca/vtest/assembly/composite/impl/DSuperServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/assembly/composite/src/main/java/org/apache/tuscany/sca/vtest/assembly/composite/impl/EServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/assembly/composite/src/main/java/org/apache/tuscany/sca/vtest/assembly/composite/impl/FServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/assembly/composite/src/main/resources/composite.composite create mode 100644 tags/java/sca/1.5.1-RC4/vtest/assembly/composite/src/main/resources/compositeb.composite create mode 100644 tags/java/sca/1.5.1-RC4/vtest/assembly/composite/src/main/resources/compositec.composite create mode 100644 tags/java/sca/1.5.1-RC4/vtest/assembly/composite/src/main/resources/compositecopy.composite create mode 100644 tags/java/sca/1.5.1-RC4/vtest/assembly/composite/src/main/resources/differentinterface_inner.composite create mode 100644 tags/java/sca/1.5.1-RC4/vtest/assembly/composite/src/main/resources/differentinterface_outer.composite create mode 100644 tags/java/sca/1.5.1-RC4/vtest/assembly/composite/src/main/resources/differentlocalwire.composite create mode 100644 tags/java/sca/1.5.1-RC4/vtest/assembly/composite/src/main/resources/differentreferenceinterface_inner.composite create mode 100644 tags/java/sca/1.5.1-RC4/vtest/assembly/composite/src/main/resources/differentreferenceinterface_outer.composite create mode 100644 tags/java/sca/1.5.1-RC4/vtest/assembly/composite/src/main/resources/differentserviceinterface_inner.composite create mode 100644 tags/java/sca/1.5.1-RC4/vtest/assembly/composite/src/main/resources/differentserviceinterface_outer.composite create mode 100644 tags/java/sca/1.5.1-RC4/vtest/assembly/composite/src/main/resources/dservicews.composite create mode 100644 tags/java/sca/1.5.1-RC4/vtest/assembly/composite/src/main/resources/localcomponent.composite create mode 100644 tags/java/sca/1.5.1-RC4/vtest/assembly/composite/src/main/resources/nonpromote_inner.composite create mode 100644 tags/java/sca/1.5.1-RC4/vtest/assembly/composite/src/main/resources/nonpromote_outer.composite create mode 100644 tags/java/sca/1.5.1-RC4/vtest/assembly/composite/src/main/resources/nonreferencepromote_inner.composite create mode 100644 tags/java/sca/1.5.1-RC4/vtest/assembly/composite/src/main/resources/nonreferencepromote_outer.composite create mode 100644 tags/java/sca/1.5.1-RC4/vtest/assembly/composite/src/main/resources/nonservicepromote_inner.composite create mode 100644 tags/java/sca/1.5.1-RC4/vtest/assembly/composite/src/main/resources/nonservicepromote_outer.composite create mode 100644 tags/java/sca/1.5.1-RC4/vtest/assembly/composite/src/main/resources/nonuniquereference_inner.composite create mode 100644 tags/java/sca/1.5.1-RC4/vtest/assembly/composite/src/main/resources/nonuniquereference_outer.composite create mode 100644 tags/java/sca/1.5.1-RC4/vtest/assembly/composite/src/main/resources/nonuniqueservice_inner.composite create mode 100644 tags/java/sca/1.5.1-RC4/vtest/assembly/composite/src/main/resources/nonuniqueservice_outer.composite create mode 100644 tags/java/sca/1.5.1-RC4/vtest/assembly/composite/src/main/resources/reference_inner.composite create mode 100644 tags/java/sca/1.5.1-RC4/vtest/assembly/composite/src/main/resources/reference_outer.composite create mode 100644 tags/java/sca/1.5.1-RC4/vtest/assembly/composite/src/main/resources/service_inner.composite create mode 100644 tags/java/sca/1.5.1-RC4/vtest/assembly/composite/src/main/resources/service_outer.composite create mode 100644 tags/java/sca/1.5.1-RC4/vtest/assembly/composite/src/main/resources/subinterfacewire.composite create mode 100644 tags/java/sca/1.5.1-RC4/vtest/assembly/composite/src/main/resources/subreferenceinterface_inner.composite create mode 100644 tags/java/sca/1.5.1-RC4/vtest/assembly/composite/src/main/resources/subreferenceinterface_outer.composite create mode 100644 tags/java/sca/1.5.1-RC4/vtest/assembly/composite/src/main/resources/subserviceinterface_inner.composite create mode 100644 tags/java/sca/1.5.1-RC4/vtest/assembly/composite/src/main/resources/subserviceinterface_outer.composite create mode 100644 tags/java/sca/1.5.1-RC4/vtest/assembly/composite/src/main/resources/wire.composite create mode 100644 tags/java/sca/1.5.1-RC4/vtest/assembly/composite/src/test/java/org/apache/tuscany/sca/vtest/assembly/composite/CompositeTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/assembly/ctypefile/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/vtest/assembly/ctypefile/src/main/java/org/apache/tuscany/sca/vtest/assembly/ctypefile/AService.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/assembly/ctypefile/src/main/java/org/apache/tuscany/sca/vtest/assembly/ctypefile/BService.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/assembly/ctypefile/src/main/java/org/apache/tuscany/sca/vtest/assembly/ctypefile/CService.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/assembly/ctypefile/src/main/java/org/apache/tuscany/sca/vtest/assembly/ctypefile/DService.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/assembly/ctypefile/src/main/java/org/apache/tuscany/sca/vtest/assembly/ctypefile/impl/AServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/assembly/ctypefile/src/main/java/org/apache/tuscany/sca/vtest/assembly/ctypefile/impl/BServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/assembly/ctypefile/src/main/java/org/apache/tuscany/sca/vtest/assembly/ctypefile/impl/CServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/assembly/ctypefile/src/main/java/org/apache/tuscany/sca/vtest/assembly/ctypefile/impl/DServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/assembly/ctypefile/src/main/resources/constrainingtype.composite create mode 100644 tags/java/sca/1.5.1-RC4/vtest/assembly/ctypefile/src/main/resources/noconstrainingtype.composite create mode 100644 tags/java/sca/1.5.1-RC4/vtest/assembly/ctypefile/src/main/resources/org/apache/tuscany/sca/vtest/assembly/ctypefile/impl/AServiceImpl.componentType create mode 100644 tags/java/sca/1.5.1-RC4/vtest/assembly/ctypefile/src/main/resources/org/apache/tuscany/sca/vtest/assembly/ctypefile/impl/BServiceImpl.componentType create mode 100644 tags/java/sca/1.5.1-RC4/vtest/assembly/ctypefile/src/main/resources/org/apache/tuscany/sca/vtest/assembly/ctypefile/impl/CServiceImpl.componentType create mode 100644 tags/java/sca/1.5.1-RC4/vtest/assembly/ctypefile/src/main/resources/org/apache/tuscany/sca/vtest/assembly/ctypefile/impl/CServiceImpl.constrainingType create mode 100644 tags/java/sca/1.5.1-RC4/vtest/assembly/ctypefile/src/main/resources/org/apache/tuscany/sca/vtest/assembly/ctypefile/impl/DServiceImpl.componentType create mode 100644 tags/java/sca/1.5.1-RC4/vtest/assembly/ctypefile/src/main/resources/typefile.composite create mode 100644 tags/java/sca/1.5.1-RC4/vtest/assembly/ctypefile/src/test/java/org/apache/tuscany/sca/vtest/assembly/ctypefile/CompomnentTypeFileTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/assembly/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/annotations/conversational/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/annotations/conversational/src/main/java/org/apache/tuscany/sca/vtest/javaapi/annotations/conversational/AService.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/annotations/conversational/src/main/java/org/apache/tuscany/sca/vtest/javaapi/annotations/conversational/B1Service.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/annotations/conversational/src/main/java/org/apache/tuscany/sca/vtest/javaapi/annotations/conversational/B2Service.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/annotations/conversational/src/main/java/org/apache/tuscany/sca/vtest/javaapi/annotations/conversational/impl/AServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/annotations/conversational/src/main/java/org/apache/tuscany/sca/vtest/javaapi/annotations/conversational/impl/B1ServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/annotations/conversational/src/main/java/org/apache/tuscany/sca/vtest/javaapi/annotations/conversational/impl/B2ServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/annotations/conversational/src/main/resources/conversation.composite create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/annotations/conversational/src/test/java/org/apache/tuscany/sca/vtest/javaapi/annotations/conversational/ConversationAnnotationTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/annotations/conversationattributes/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/annotations/conversationattributes/src/main/java/org/apache/tuscany/sca/vtest/javaapi/annotations/conversationattributes/AService.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/annotations/conversationattributes/src/main/java/org/apache/tuscany/sca/vtest/javaapi/annotations/conversationattributes/B2Service.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/annotations/conversationattributes/src/main/java/org/apache/tuscany/sca/vtest/javaapi/annotations/conversationattributes/BService.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/annotations/conversationattributes/src/main/java/org/apache/tuscany/sca/vtest/javaapi/annotations/conversationattributes/CService.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/annotations/conversationattributes/src/main/java/org/apache/tuscany/sca/vtest/javaapi/annotations/conversationattributes/impl/AServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/annotations/conversationattributes/src/main/java/org/apache/tuscany/sca/vtest/javaapi/annotations/conversationattributes/impl/B2ServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/annotations/conversationattributes/src/main/java/org/apache/tuscany/sca/vtest/javaapi/annotations/conversationattributes/impl/BServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/annotations/conversationattributes/src/main/java/org/apache/tuscany/sca/vtest/javaapi/annotations/conversationattributes/impl/CServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/annotations/conversationattributes/src/main/java/org/apache/tuscany/sca/vtest/javaapi/annotations/conversationattributes/security/ACallbackHandler.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/annotations/conversationattributes/src/main/java/org/apache/tuscany/sca/vtest/javaapi/annotations/conversationattributes/security/JaasLoginModule.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/annotations/conversationattributes/src/main/java/org/apache/tuscany/sca/vtest/javaapi/annotations/conversationattributes/security/UserPrincipal.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/annotations/conversationattributes/src/main/resources/AJass.config create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/annotations/conversationattributes/src/main/resources/conversation.composite create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/annotations/conversationattributes/src/main/resources/definitions.xml create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/annotations/conversationattributes/src/main/resources/singleprincipal.composite create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/annotations/conversationattributes/src/test/java/org/apache/tuscany/sca/vtest/javaapi/annotations/conversationattributes/ConversationAttributesAnnotationTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/annotations/conversationattributes/src/test/java/org/apache/tuscany/sca/vtest/javaapi/annotations/conversationattributes/SinglePricipalTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/annotations/destroy/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/annotations/destroy/src/main/java/org/apache/tuscany/sca/vtest/javaapi/annotations/destroy/AService.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/annotations/destroy/src/main/java/org/apache/tuscany/sca/vtest/javaapi/annotations/destroy/impl/AServiceErr1Impl.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/annotations/destroy/src/main/java/org/apache/tuscany/sca/vtest/javaapi/annotations/destroy/impl/AServiceErr2Impl.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/annotations/destroy/src/main/java/org/apache/tuscany/sca/vtest/javaapi/annotations/destroy/impl/AServiceErr3Impl.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/annotations/destroy/src/main/java/org/apache/tuscany/sca/vtest/javaapi/annotations/destroy/impl/AServiceErr4Impl.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/annotations/destroy/src/main/java/org/apache/tuscany/sca/vtest/javaapi/annotations/destroy/impl/AServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/annotations/destroy/src/main/resources/err1/AServiceErr1.composite create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/annotations/destroy/src/main/resources/err2/AServiceErr2.composite create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/annotations/destroy/src/main/resources/err3/AServiceErr3.composite create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/annotations/destroy/src/main/resources/err4/AServiceErr4.composite create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/annotations/destroy/src/main/resources/proper/AService.composite create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/annotations/destroy/src/test/java/org/apache/tuscany/sca/vtest/javaapi/annotations/destroy/DestroyAnnotationTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/annotations/endsconversation/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/annotations/endsconversation/src/main/java/org/apache/tuscany/sca/vtest/javaapi/annotations/endsconversation/AService.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/annotations/endsconversation/src/main/java/org/apache/tuscany/sca/vtest/javaapi/annotations/endsconversation/BService.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/annotations/endsconversation/src/main/java/org/apache/tuscany/sca/vtest/javaapi/annotations/endsconversation/impl/AServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/annotations/endsconversation/src/main/java/org/apache/tuscany/sca/vtest/javaapi/annotations/endsconversation/impl/BServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/annotations/endsconversation/src/main/resources/endsconversation.composite create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/annotations/endsconversation/src/test/java/org/apache/tuscany/sca/vtest/javaapi/annotations/endsconversation/EndsConversationTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/annotations/init/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/annotations/init/src/main/java/org/apache/tuscany/sca/vtest/javaapi/annotations/init/AService.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/annotations/init/src/main/java/org/apache/tuscany/sca/vtest/javaapi/annotations/init/impl/AServiceErr1Impl.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/annotations/init/src/main/java/org/apache/tuscany/sca/vtest/javaapi/annotations/init/impl/AServiceErr2Impl.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/annotations/init/src/main/java/org/apache/tuscany/sca/vtest/javaapi/annotations/init/impl/AServiceErr3Impl.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/annotations/init/src/main/java/org/apache/tuscany/sca/vtest/javaapi/annotations/init/impl/AServiceErr4Impl.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/annotations/init/src/main/java/org/apache/tuscany/sca/vtest/javaapi/annotations/init/impl/AServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/annotations/init/src/main/resources/err1/AServiceErr1.composite create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/annotations/init/src/main/resources/err2/AServiceErr2.composite create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/annotations/init/src/main/resources/err3/AServiceErr3.composite create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/annotations/init/src/main/resources/err4/AServiceErr4.composite create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/annotations/init/src/main/resources/proper/AService.composite create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/annotations/init/src/test/java/org/apache/tuscany/sca/vtest/javaapi/annotations/init/InitAnnotationTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/annotations/oneway/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/annotations/oneway/src/main/java/org/apache/tuscany/sca/vtest/javaapi/annotations/oneway/AService.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/annotations/oneway/src/main/java/org/apache/tuscany/sca/vtest/javaapi/annotations/oneway/BService.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/annotations/oneway/src/main/java/org/apache/tuscany/sca/vtest/javaapi/annotations/oneway/impl/AServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/annotations/oneway/src/main/java/org/apache/tuscany/sca/vtest/javaapi/annotations/oneway/impl/BServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/annotations/oneway/src/main/resources/oneway.composite create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/annotations/oneway/src/test/java/org/apache/tuscany/sca/vtest/javaapi/annotations/oneway/OneWayAnnotationTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/annotations/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/annotations/property/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/annotations/property/src/main/java/org/apache/tuscany/sca/vtest/javaapi/annotations/property/AService.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/annotations/property/src/main/java/org/apache/tuscany/sca/vtest/javaapi/annotations/property/AnotherAService.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/annotations/property/src/main/java/org/apache/tuscany/sca/vtest/javaapi/annotations/property/BService.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/annotations/property/src/main/java/org/apache/tuscany/sca/vtest/javaapi/annotations/property/CService.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/annotations/property/src/main/java/org/apache/tuscany/sca/vtest/javaapi/annotations/property/impl/AObject.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/annotations/property/src/main/java/org/apache/tuscany/sca/vtest/javaapi/annotations/property/impl/AServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/annotations/property/src/main/java/org/apache/tuscany/sca/vtest/javaapi/annotations/property/impl/AnotherAServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/annotations/property/src/main/java/org/apache/tuscany/sca/vtest/javaapi/annotations/property/impl/BServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/annotations/property/src/main/java/org/apache/tuscany/sca/vtest/javaapi/annotations/property/impl/CServiceImpl1.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/annotations/property/src/main/java/org/apache/tuscany/sca/vtest/javaapi/annotations/property/impl/CServiceImpl2.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/annotations/property/src/main/java/org/apache/tuscany/sca/vtest/javaapi/annotations/property/impl/CServiceImpl3.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/annotations/property/src/main/java/org/apache/tuscany/sca/vtest/javaapi/annotations/property/impl/CServiceImpl4.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/annotations/property/src/main/java/org/apache/tuscany/sca/vtest/javaapi/annotations/property/impl/CServiceImpl5.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/annotations/property/src/main/java/org/apache/tuscany/sca/vtest/javaapi/annotations/property/impl/CServiceImpl6.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/annotations/property/src/main/resources/property.composite create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/annotations/property/src/test/java/org/apache/tuscany/sca/vtest/javaapi/annotations/property/PropertyAnnotationTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/annotations/reference/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/annotations/reference/src/main/java/org/apache/tuscany/sca/vtest/javaapi/annotations/reference/AService.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/annotations/reference/src/main/java/org/apache/tuscany/sca/vtest/javaapi/annotations/reference/BService.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/annotations/reference/src/main/java/org/apache/tuscany/sca/vtest/javaapi/annotations/reference/impl/AServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/annotations/reference/src/main/java/org/apache/tuscany/sca/vtest/javaapi/annotations/reference/impl/AUnannotatedServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/annotations/reference/src/main/java/org/apache/tuscany/sca/vtest/javaapi/annotations/reference/impl/BServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/annotations/reference/src/main/resources/ab.composite create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/annotations/reference/src/test/java/org/apache/tuscany/sca/vtest/javaapi/annotations/reference/ReferenceAnnotationTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/annotations/scope/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/annotations/scope/src/main/java/org/apache/tuscany/sca/vtest/javaapi/annotations/scope/AService.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/annotations/scope/src/main/java/org/apache/tuscany/sca/vtest/javaapi/annotations/scope/BService.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/annotations/scope/src/main/java/org/apache/tuscany/sca/vtest/javaapi/annotations/scope/CService.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/annotations/scope/src/main/java/org/apache/tuscany/sca/vtest/javaapi/annotations/scope/DService.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/annotations/scope/src/main/java/org/apache/tuscany/sca/vtest/javaapi/annotations/scope/FService.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/annotations/scope/src/main/java/org/apache/tuscany/sca/vtest/javaapi/annotations/scope/GService.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/annotations/scope/src/main/java/org/apache/tuscany/sca/vtest/javaapi/annotations/scope/HService.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/annotations/scope/src/main/java/org/apache/tuscany/sca/vtest/javaapi/annotations/scope/IService.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/annotations/scope/src/main/java/org/apache/tuscany/sca/vtest/javaapi/annotations/scope/JService.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/annotations/scope/src/main/java/org/apache/tuscany/sca/vtest/javaapi/annotations/scope/KService.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/annotations/scope/src/main/java/org/apache/tuscany/sca/vtest/javaapi/annotations/scope/LService.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/annotations/scope/src/main/java/org/apache/tuscany/sca/vtest/javaapi/annotations/scope/MService.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/annotations/scope/src/main/java/org/apache/tuscany/sca/vtest/javaapi/annotations/scope/NService.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/annotations/scope/src/main/java/org/apache/tuscany/sca/vtest/javaapi/annotations/scope/OService.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/annotations/scope/src/main/java/org/apache/tuscany/sca/vtest/javaapi/annotations/scope/impl/AServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/annotations/scope/src/main/java/org/apache/tuscany/sca/vtest/javaapi/annotations/scope/impl/BServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/annotations/scope/src/main/java/org/apache/tuscany/sca/vtest/javaapi/annotations/scope/impl/CServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/annotations/scope/src/main/java/org/apache/tuscany/sca/vtest/javaapi/annotations/scope/impl/DServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/annotations/scope/src/main/java/org/apache/tuscany/sca/vtest/javaapi/annotations/scope/impl/FServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/annotations/scope/src/main/java/org/apache/tuscany/sca/vtest/javaapi/annotations/scope/impl/GServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/annotations/scope/src/main/java/org/apache/tuscany/sca/vtest/javaapi/annotations/scope/impl/HServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/annotations/scope/src/main/java/org/apache/tuscany/sca/vtest/javaapi/annotations/scope/impl/IServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/annotations/scope/src/main/java/org/apache/tuscany/sca/vtest/javaapi/annotations/scope/impl/JServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/annotations/scope/src/main/java/org/apache/tuscany/sca/vtest/javaapi/annotations/scope/impl/KServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/annotations/scope/src/main/java/org/apache/tuscany/sca/vtest/javaapi/annotations/scope/impl/LServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/annotations/scope/src/main/java/org/apache/tuscany/sca/vtest/javaapi/annotations/scope/impl/MServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/annotations/scope/src/main/java/org/apache/tuscany/sca/vtest/javaapi/annotations/scope/impl/NServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/annotations/scope/src/main/java/org/apache/tuscany/sca/vtest/javaapi/annotations/scope/impl/OServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/annotations/scope/src/main/resources/scope.composite create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/annotations/scope/src/test/java/org/apache/tuscany/sca/vtest/javaapi/annotations/scope/ScopeAnnotationTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/annotations/service/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/annotations/service/src/main/java/org/apache/tuscany/sca/vtest/javaapi/annotations/service/AService.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/annotations/service/src/main/java/org/apache/tuscany/sca/vtest/javaapi/annotations/service/BService.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/annotations/service/src/main/java/org/apache/tuscany/sca/vtest/javaapi/annotations/service/CService.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/annotations/service/src/main/java/org/apache/tuscany/sca/vtest/javaapi/annotations/service/DService1.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/annotations/service/src/main/java/org/apache/tuscany/sca/vtest/javaapi/annotations/service/DService2.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/annotations/service/src/main/java/org/apache/tuscany/sca/vtest/javaapi/annotations/service/DService3.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/annotations/service/src/main/java/org/apache/tuscany/sca/vtest/javaapi/annotations/service/EService.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/annotations/service/src/main/java/org/apache/tuscany/sca/vtest/javaapi/annotations/service/FService.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/annotations/service/src/main/java/org/apache/tuscany/sca/vtest/javaapi/annotations/service/GService1.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/annotations/service/src/main/java/org/apache/tuscany/sca/vtest/javaapi/annotations/service/GService2.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/annotations/service/src/main/java/org/apache/tuscany/sca/vtest/javaapi/annotations/service/HService.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/annotations/service/src/main/java/org/apache/tuscany/sca/vtest/javaapi/annotations/service/IService.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/annotations/service/src/main/java/org/apache/tuscany/sca/vtest/javaapi/annotations/service/impl/AObject.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/annotations/service/src/main/java/org/apache/tuscany/sca/vtest/javaapi/annotations/service/impl/AServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/annotations/service/src/main/java/org/apache/tuscany/sca/vtest/javaapi/annotations/service/impl/BServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/annotations/service/src/main/java/org/apache/tuscany/sca/vtest/javaapi/annotations/service/impl/CServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/annotations/service/src/main/java/org/apache/tuscany/sca/vtest/javaapi/annotations/service/impl/DServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/annotations/service/src/main/java/org/apache/tuscany/sca/vtest/javaapi/annotations/service/impl/EServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/annotations/service/src/main/java/org/apache/tuscany/sca/vtest/javaapi/annotations/service/impl/FServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/annotations/service/src/main/java/org/apache/tuscany/sca/vtest/javaapi/annotations/service/impl/FServiceImpl2.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/annotations/service/src/main/java/org/apache/tuscany/sca/vtest/javaapi/annotations/service/impl/GServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/annotations/service/src/main/java/org/apache/tuscany/sca/vtest/javaapi/annotations/service/impl/HServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/annotations/service/src/main/java/org/apache/tuscany/sca/vtest/javaapi/annotations/service/impl/IServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/annotations/service/src/main/resources/service.composite create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/annotations/service/src/test/java/org/apache/tuscany/sca/vtest/javaapi/annotations/service/ServiceAnnotationTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/apis/callablereference/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/apis/callablereference/src/main/java/org/apache/tuscany/sca/vtest/javaapi/apis/callablereference/AComponent.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/apis/callablereference/src/main/java/org/apache/tuscany/sca/vtest/javaapi/apis/callablereference/BCallback.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/apis/callablereference/src/main/java/org/apache/tuscany/sca/vtest/javaapi/apis/callablereference/BComponent.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/apis/callablereference/src/main/java/org/apache/tuscany/sca/vtest/javaapi/apis/callablereference/impl/AComponentImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/apis/callablereference/src/main/java/org/apache/tuscany/sca/vtest/javaapi/apis/callablereference/impl/BComponentImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/apis/callablereference/src/main/resources/callablereference.composite create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/apis/callablereference/src/test/java/org/apache/tuscany/sca/vtest/javaapi/apis/callablereference/CallableReferenceTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/apis/componentcontext/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/apis/componentcontext/src/main/java/org/apache/tuscany/sca/vtest/javaapi/apis/componentcontext/AComponent.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/apis/componentcontext/src/main/java/org/apache/tuscany/sca/vtest/javaapi/apis/componentcontext/BComponent.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/apis/componentcontext/src/main/java/org/apache/tuscany/sca/vtest/javaapi/apis/componentcontext/BService.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/apis/componentcontext/src/main/java/org/apache/tuscany/sca/vtest/javaapi/apis/componentcontext/CService.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/apis/componentcontext/src/main/java/org/apache/tuscany/sca/vtest/javaapi/apis/componentcontext/DComponent.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/apis/componentcontext/src/main/java/org/apache/tuscany/sca/vtest/javaapi/apis/componentcontext/impl/AComponentImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/apis/componentcontext/src/main/java/org/apache/tuscany/sca/vtest/javaapi/apis/componentcontext/impl/AUnannotatedComponentImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/apis/componentcontext/src/main/java/org/apache/tuscany/sca/vtest/javaapi/apis/componentcontext/impl/BComponentImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/apis/componentcontext/src/main/java/org/apache/tuscany/sca/vtest/javaapi/apis/componentcontext/impl/DComponentImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/apis/componentcontext/src/main/resources/ab.composite create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/apis/componentcontext/src/test/java/org/apache/tuscany/sca/vtest/javaapi/apis/componentcontext/ComponentContextTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/apis/conversation/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/apis/conversation/src/main/java/org/apache/tuscany/sca/vtest/javaapi/apis/conversation/AComponent.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/apis/conversation/src/main/java/org/apache/tuscany/sca/vtest/javaapi/apis/conversation/BComponent.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/apis/conversation/src/main/java/org/apache/tuscany/sca/vtest/javaapi/apis/conversation/impl/AComponentImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/apis/conversation/src/main/java/org/apache/tuscany/sca/vtest/javaapi/apis/conversation/impl/BComponentImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/apis/conversation/src/main/resources/conversation.composite create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/apis/conversation/src/test/java/org/apache/tuscany/sca/vtest/javaapi/apis/conversation/ConversationTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/apis/exception/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/apis/exception/src/main/java/org/apache/tuscany/sca/vtest/javaapi/apis/exception/AComponent.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/apis/exception/src/main/java/org/apache/tuscany/sca/vtest/javaapi/apis/exception/BCallback.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/apis/exception/src/main/java/org/apache/tuscany/sca/vtest/javaapi/apis/exception/BComponent.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/apis/exception/src/main/java/org/apache/tuscany/sca/vtest/javaapi/apis/exception/CComponent.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/apis/exception/src/main/java/org/apache/tuscany/sca/vtest/javaapi/apis/exception/DComponent.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/apis/exception/src/main/java/org/apache/tuscany/sca/vtest/javaapi/apis/exception/DException.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/apis/exception/src/main/java/org/apache/tuscany/sca/vtest/javaapi/apis/exception/impl/AComponentImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/apis/exception/src/main/java/org/apache/tuscany/sca/vtest/javaapi/apis/exception/impl/BComponentImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/apis/exception/src/main/java/org/apache/tuscany/sca/vtest/javaapi/apis/exception/impl/CComponentImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/apis/exception/src/main/java/org/apache/tuscany/sca/vtest/javaapi/apis/exception/impl/DComponentImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/apis/exception/src/main/resources/exception.composite create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/apis/exception/src/test/java/org/apache/tuscany/sca/vtest/javaapi/apis/exception/ExceptionTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/apis/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/apis/requestcontext/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/apis/requestcontext/src/main/java/org/apache/tuscany/sca/vtest/javaapi/apis/requestcontext/AComponent.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/apis/requestcontext/src/main/java/org/apache/tuscany/sca/vtest/javaapi/apis/requestcontext/BCallback.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/apis/requestcontext/src/main/java/org/apache/tuscany/sca/vtest/javaapi/apis/requestcontext/BComponent.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/apis/requestcontext/src/main/java/org/apache/tuscany/sca/vtest/javaapi/apis/requestcontext/impl/AComponentImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/apis/requestcontext/src/main/java/org/apache/tuscany/sca/vtest/javaapi/apis/requestcontext/impl/BComponentImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/apis/requestcontext/src/main/resources/requestcontext.composite create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/apis/requestcontext/src/test/java/org/apache/tuscany/sca/vtest/javaapi/apis/requestcontext/RequestContextTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/apis/servicereference/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/apis/servicereference/src/main/java/org/apache/tuscany/sca/vtest/javaapi/apis/servicereference/AComponent.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/apis/servicereference/src/main/java/org/apache/tuscany/sca/vtest/javaapi/apis/servicereference/BCallback.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/apis/servicereference/src/main/java/org/apache/tuscany/sca/vtest/javaapi/apis/servicereference/BComponent.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/apis/servicereference/src/main/java/org/apache/tuscany/sca/vtest/javaapi/apis/servicereference/CComponent.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/apis/servicereference/src/main/java/org/apache/tuscany/sca/vtest/javaapi/apis/servicereference/impl/AComponentImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/apis/servicereference/src/main/java/org/apache/tuscany/sca/vtest/javaapi/apis/servicereference/impl/BComponentImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/apis/servicereference/src/main/java/org/apache/tuscany/sca/vtest/javaapi/apis/servicereference/impl/CComponentImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/apis/servicereference/src/main/java/org/apache/tuscany/sca/vtest/javaapi/apis/servicereference/impl/TestObject.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/apis/servicereference/src/main/resources/servicereference.composite create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/apis/servicereference/src/test/java/org/apache/tuscany/sca/vtest/javaapi/apis/servicereference/ServiceReferenceTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/conversation/callback/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/conversation/callback/src/main/java/org/apache/tuscany/sca/vtest/javaapi/conversation/callback/AService.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/conversation/callback/src/main/java/org/apache/tuscany/sca/vtest/javaapi/conversation/callback/AServiceCallback.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/conversation/callback/src/main/java/org/apache/tuscany/sca/vtest/javaapi/conversation/callback/BService.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/conversation/callback/src/main/java/org/apache/tuscany/sca/vtest/javaapi/conversation/callback/BServiceCallback.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/conversation/callback/src/main/java/org/apache/tuscany/sca/vtest/javaapi/conversation/callback/CService.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/conversation/callback/src/main/java/org/apache/tuscany/sca/vtest/javaapi/conversation/callback/Utilities.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/conversation/callback/src/main/java/org/apache/tuscany/sca/vtest/javaapi/conversation/callback/accessing/AServiceCallback.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/conversation/callback/src/main/java/org/apache/tuscany/sca/vtest/javaapi/conversation/callback/accessing/BService.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/conversation/callback/src/main/java/org/apache/tuscany/sca/vtest/javaapi/conversation/callback/accessing/impl/AServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/conversation/callback/src/main/java/org/apache/tuscany/sca/vtest/javaapi/conversation/callback/accessing/impl/BServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/conversation/callback/src/main/java/org/apache/tuscany/sca/vtest/javaapi/conversation/callback/custom/AServiceCallback.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/conversation/callback/src/main/java/org/apache/tuscany/sca/vtest/javaapi/conversation/callback/custom/BService.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/conversation/callback/src/main/java/org/apache/tuscany/sca/vtest/javaapi/conversation/callback/custom/CustomCallback.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/conversation/callback/src/main/java/org/apache/tuscany/sca/vtest/javaapi/conversation/callback/custom/impl/AServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/conversation/callback/src/main/java/org/apache/tuscany/sca/vtest/javaapi/conversation/callback/custom/impl/BServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/conversation/callback/src/main/java/org/apache/tuscany/sca/vtest/javaapi/conversation/callback/custom/impl/CustomCallbackImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/conversation/callback/src/main/java/org/apache/tuscany/sca/vtest/javaapi/conversation/callback/id/AServiceCallback.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/conversation/callback/src/main/java/org/apache/tuscany/sca/vtest/javaapi/conversation/callback/id/BService.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/conversation/callback/src/main/java/org/apache/tuscany/sca/vtest/javaapi/conversation/callback/id/impl/AServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/conversation/callback/src/main/java/org/apache/tuscany/sca/vtest/javaapi/conversation/callback/id/impl/BServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/conversation/callback/src/main/java/org/apache/tuscany/sca/vtest/javaapi/conversation/callback/impl/AServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/conversation/callback/src/main/java/org/apache/tuscany/sca/vtest/javaapi/conversation/callback/impl/BServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/conversation/callback/src/main/java/org/apache/tuscany/sca/vtest/javaapi/conversation/callback/impl/CServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/conversation/callback/src/main/java/org/apache/tuscany/sca/vtest/javaapi/conversation/callback/local/AServiceCallback.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/conversation/callback/src/main/java/org/apache/tuscany/sca/vtest/javaapi/conversation/callback/local/BService.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/conversation/callback/src/main/java/org/apache/tuscany/sca/vtest/javaapi/conversation/callback/local/BServiceCallback.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/conversation/callback/src/main/java/org/apache/tuscany/sca/vtest/javaapi/conversation/callback/local/CService.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/conversation/callback/src/main/java/org/apache/tuscany/sca/vtest/javaapi/conversation/callback/local/impl/AServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/conversation/callback/src/main/java/org/apache/tuscany/sca/vtest/javaapi/conversation/callback/local/impl/BServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/conversation/callback/src/main/java/org/apache/tuscany/sca/vtest/javaapi/conversation/callback/local/impl/CServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/conversation/callback/src/main/java/org/apache/tuscany/sca/vtest/javaapi/conversation/callback/multi/AServiceCallback.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/conversation/callback/src/main/java/org/apache/tuscany/sca/vtest/javaapi/conversation/callback/multi/AServiceCallback2.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/conversation/callback/src/main/java/org/apache/tuscany/sca/vtest/javaapi/conversation/callback/multi/BService.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/conversation/callback/src/main/java/org/apache/tuscany/sca/vtest/javaapi/conversation/callback/multi/BService2.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/conversation/callback/src/main/java/org/apache/tuscany/sca/vtest/javaapi/conversation/callback/multi/impl/AServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/conversation/callback/src/main/java/org/apache/tuscany/sca/vtest/javaapi/conversation/callback/multi/impl/BServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/conversation/callback/src/main/java/org/apache/tuscany/sca/vtest/javaapi/conversation/callback/stateless/BServiceCallback.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/conversation/callback/src/main/java/org/apache/tuscany/sca/vtest/javaapi/conversation/callback/stateless/CService.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/conversation/callback/src/main/java/org/apache/tuscany/sca/vtest/javaapi/conversation/callback/stateless/impl/BServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/conversation/callback/src/main/java/org/apache/tuscany/sca/vtest/javaapi/conversation/callback/stateless/impl/BServiceImpl2.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/conversation/callback/src/main/java/org/apache/tuscany/sca/vtest/javaapi/conversation/callback/stateless/impl/BServiceImpl3.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/conversation/callback/src/main/java/org/apache/tuscany/sca/vtest/javaapi/conversation/callback/stateless/impl/CServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/conversation/callback/src/main/resources/callback-accessing.composite create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/conversation/callback/src/main/resources/callback-custom.composite create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/conversation/callback/src/main/resources/callback-id.composite create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/conversation/callback/src/main/resources/callback-local.composite create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/conversation/callback/src/main/resources/callback-multi.composite create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/conversation/callback/src/main/resources/callback-stateless-callbackfieldnull.composite create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/conversation/callback/src/main/resources/callback-stateless-callbackid.composite create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/conversation/callback/src/main/resources/callback-stateless.composite create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/conversation/callback/src/main/resources/callback.composite create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/conversation/callback/src/test/java/org/apache/tuscany/sca/vtest/javaapi/conversation/callback/CallbackTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/conversation/callbackmixed/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/conversation/callbackmixed/src/main/java/org/apache/tuscany/sca/vtest/javaapi/conversation/callback/AService.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/conversation/callbackmixed/src/main/java/org/apache/tuscany/sca/vtest/javaapi/conversation/callback/AServiceCallback.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/conversation/callbackmixed/src/main/java/org/apache/tuscany/sca/vtest/javaapi/conversation/callback/BService.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/conversation/callbackmixed/src/main/java/org/apache/tuscany/sca/vtest/javaapi/conversation/callback/BServiceCallback.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/conversation/callbackmixed/src/main/java/org/apache/tuscany/sca/vtest/javaapi/conversation/callback/Utilities.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/conversation/callbackmixed/src/main/java/org/apache/tuscany/sca/vtest/javaapi/conversation/callback/impl/AServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/conversation/callbackmixed/src/main/java/org/apache/tuscany/sca/vtest/javaapi/conversation/callback/mixed/CService.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/conversation/callbackmixed/src/main/java/org/apache/tuscany/sca/vtest/javaapi/conversation/callback/mixed/impl/BServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/conversation/callbackmixed/src/main/java/org/apache/tuscany/sca/vtest/javaapi/conversation/callback/mixed/impl/CServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/conversation/callbackmixed/src/main/resources/callback-mixed.composite create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/conversation/callbackmixed/src/test/java/org/apache/tuscany/sca/vtest/javaapi/conversation/callback/CallbackTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/conversation/id/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/conversation/id/src/main/java/org/apache/tuscany/sca/vtest/javaapi/conversation/id/AService.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/conversation/id/src/main/java/org/apache/tuscany/sca/vtest/javaapi/conversation/id/BService.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/conversation/id/src/main/java/org/apache/tuscany/sca/vtest/javaapi/conversation/id/CService.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/conversation/id/src/main/java/org/apache/tuscany/sca/vtest/javaapi/conversation/id/CustomConversationId.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/conversation/id/src/main/java/org/apache/tuscany/sca/vtest/javaapi/conversation/id/impl/AServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/conversation/id/src/main/java/org/apache/tuscany/sca/vtest/javaapi/conversation/id/impl/BServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/conversation/id/src/main/java/org/apache/tuscany/sca/vtest/javaapi/conversation/id/impl/CServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/conversation/id/src/main/resources/conversation-id.composite create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/conversation/id/src/test/java/org/apache/tuscany/sca/vtest/javaapi/conversation/id/ConversationIDTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/conversation/lifetime/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/conversation/lifetime/src/main/java/org/apache/tuscany/sca/vtest/javaapi/conversation/lifetime/AService.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/conversation/lifetime/src/main/java/org/apache/tuscany/sca/vtest/javaapi/conversation/lifetime/AServiceCallback.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/conversation/lifetime/src/main/java/org/apache/tuscany/sca/vtest/javaapi/conversation/lifetime/BService.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/conversation/lifetime/src/main/java/org/apache/tuscany/sca/vtest/javaapi/conversation/lifetime/BServiceBusinessException.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/conversation/lifetime/src/main/java/org/apache/tuscany/sca/vtest/javaapi/conversation/lifetime/CService.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/conversation/lifetime/src/main/java/org/apache/tuscany/sca/vtest/javaapi/conversation/lifetime/DService.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/conversation/lifetime/src/main/java/org/apache/tuscany/sca/vtest/javaapi/conversation/lifetime/impl/AServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/conversation/lifetime/src/main/java/org/apache/tuscany/sca/vtest/javaapi/conversation/lifetime/impl/BServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/conversation/lifetime/src/main/java/org/apache/tuscany/sca/vtest/javaapi/conversation/lifetime/impl/CServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/conversation/lifetime/src/main/java/org/apache/tuscany/sca/vtest/javaapi/conversation/lifetime/impl/DServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/conversation/lifetime/src/main/resources/lifetime.composite create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/conversation/lifetime/src/test/java/org/apache/tuscany/sca/vtest/javaapi/conversation/lifetime/LifetimeTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/conversation/parameters/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/conversation/parameters/src/main/java/org/apache/tuscany/sca/vtest/javaapi/conversation/parameters/AService.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/conversation/parameters/src/main/java/org/apache/tuscany/sca/vtest/javaapi/conversation/parameters/BService.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/conversation/parameters/src/main/java/org/apache/tuscany/sca/vtest/javaapi/conversation/parameters/CService.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/conversation/parameters/src/main/java/org/apache/tuscany/sca/vtest/javaapi/conversation/parameters/impl/AServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/conversation/parameters/src/main/java/org/apache/tuscany/sca/vtest/javaapi/conversation/parameters/impl/BServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/conversation/parameters/src/main/java/org/apache/tuscany/sca/vtest/javaapi/conversation/parameters/impl/CServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/conversation/parameters/src/main/resources/parameters.composite create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/conversation/parameters/src/test/java/org/apache/tuscany/sca/vtest/javaapi/conversation/parameters/ConversationParametersTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/conversation/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/vtest/java-api/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/vtest/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/vtest/processcomments.rb create mode 100644 tags/java/sca/1.5.1-RC4/vtest/utilities/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/vtest/utilities/src/main/java/org/apache/tuscany/sca/vtest/utilities/ServiceFinder.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/wsbinding/nowsdl/defaultbinding/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/vtest/wsbinding/nowsdl/defaultbinding/src/main/java/org/apache/tuscany/sca/vtest/wsbinding/nowsdl/defaultbinding/AService.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/wsbinding/nowsdl/defaultbinding/src/main/java/org/apache/tuscany/sca/vtest/wsbinding/nowsdl/defaultbinding/BService.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/wsbinding/nowsdl/defaultbinding/src/main/java/org/apache/tuscany/sca/vtest/wsbinding/nowsdl/defaultbinding/CService.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/wsbinding/nowsdl/defaultbinding/src/main/java/org/apache/tuscany/sca/vtest/wsbinding/nowsdl/defaultbinding/DService.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/wsbinding/nowsdl/defaultbinding/src/main/java/org/apache/tuscany/sca/vtest/wsbinding/nowsdl/defaultbinding/impl/AServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/wsbinding/nowsdl/defaultbinding/src/main/java/org/apache/tuscany/sca/vtest/wsbinding/nowsdl/defaultbinding/impl/BServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/wsbinding/nowsdl/defaultbinding/src/main/java/org/apache/tuscany/sca/vtest/wsbinding/nowsdl/defaultbinding/impl/CServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/wsbinding/nowsdl/defaultbinding/src/main/java/org/apache/tuscany/sca/vtest/wsbinding/nowsdl/defaultbinding/impl/DServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/wsbinding/nowsdl/defaultbinding/src/main/resources/nowsdl.composite create mode 100644 tags/java/sca/1.5.1-RC4/vtest/wsbinding/nowsdl/defaultbinding/src/test/java/org/apache/tuscany/sca/vtest/wsbinding/nowsdl/defaultbinding/NoWsdlDefaultBindingTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/wsbinding/nowsdl/multisoapbindings/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/vtest/wsbinding/nowsdl/multisoapbindings/src/main/java/org/apache/tuscany/sca/vtest/wsbinding/nowsdl/multisoapbindings/AService.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/wsbinding/nowsdl/multisoapbindings/src/main/java/org/apache/tuscany/sca/vtest/wsbinding/nowsdl/multisoapbindings/BService.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/wsbinding/nowsdl/multisoapbindings/src/main/java/org/apache/tuscany/sca/vtest/wsbinding/nowsdl/multisoapbindings/CService.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/wsbinding/nowsdl/multisoapbindings/src/main/java/org/apache/tuscany/sca/vtest/wsbinding/nowsdl/multisoapbindings/DService.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/wsbinding/nowsdl/multisoapbindings/src/main/java/org/apache/tuscany/sca/vtest/wsbinding/nowsdl/multisoapbindings/impl/AServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/wsbinding/nowsdl/multisoapbindings/src/main/java/org/apache/tuscany/sca/vtest/wsbinding/nowsdl/multisoapbindings/impl/BServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/wsbinding/nowsdl/multisoapbindings/src/main/java/org/apache/tuscany/sca/vtest/wsbinding/nowsdl/multisoapbindings/impl/CServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/wsbinding/nowsdl/multisoapbindings/src/main/java/org/apache/tuscany/sca/vtest/wsbinding/nowsdl/multisoapbindings/impl/DServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/wsbinding/nowsdl/multisoapbindings/src/main/resources/nowsdlmultisoapbindings.composite create mode 100644 tags/java/sca/1.5.1-RC4/vtest/wsbinding/nowsdl/multisoapbindings/src/test/java/org/apache/tuscany/sca/vtest/wsbinding/nowsdl/multisoapbindings/GeneratedWSDLTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/wsbinding/nowsdl/multisoapbindings/src/test/java/org/apache/tuscany/sca/vtest/wsbinding/nowsdl/multisoapbindings/NoWsdlMultiSoapBindingsTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/wsbinding/nowsdl/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/vtest/wsbinding/nowsdl/promoted/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/vtest/wsbinding/nowsdl/promoted/src/main/java/org/apache/tuscany/sca/vtest/wsbinding/nowsdl/promoted/AService.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/wsbinding/nowsdl/promoted/src/main/java/org/apache/tuscany/sca/vtest/wsbinding/nowsdl/promoted/BService.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/wsbinding/nowsdl/promoted/src/main/java/org/apache/tuscany/sca/vtest/wsbinding/nowsdl/promoted/BServiceSOAP.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/wsbinding/nowsdl/promoted/src/main/java/org/apache/tuscany/sca/vtest/wsbinding/nowsdl/promoted/BServiceSOAP11.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/wsbinding/nowsdl/promoted/src/main/java/org/apache/tuscany/sca/vtest/wsbinding/nowsdl/promoted/BServiceSOAP12.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/wsbinding/nowsdl/promoted/src/main/java/org/apache/tuscany/sca/vtest/wsbinding/nowsdl/promoted/CService.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/wsbinding/nowsdl/promoted/src/main/java/org/apache/tuscany/sca/vtest/wsbinding/nowsdl/promoted/DService.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/wsbinding/nowsdl/promoted/src/main/java/org/apache/tuscany/sca/vtest/wsbinding/nowsdl/promoted/impl/AServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/wsbinding/nowsdl/promoted/src/main/java/org/apache/tuscany/sca/vtest/wsbinding/nowsdl/promoted/impl/BServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/wsbinding/nowsdl/promoted/src/main/java/org/apache/tuscany/sca/vtest/wsbinding/nowsdl/promoted/impl/BServiceSOAP11Impl.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/wsbinding/nowsdl/promoted/src/main/java/org/apache/tuscany/sca/vtest/wsbinding/nowsdl/promoted/impl/BServiceSOAP12Impl.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/wsbinding/nowsdl/promoted/src/main/java/org/apache/tuscany/sca/vtest/wsbinding/nowsdl/promoted/impl/BServiceSOAPImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/wsbinding/nowsdl/promoted/src/main/java/org/apache/tuscany/sca/vtest/wsbinding/nowsdl/promoted/impl/CServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/wsbinding/nowsdl/promoted/src/main/java/org/apache/tuscany/sca/vtest/wsbinding/nowsdl/promoted/impl/DServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/wsbinding/nowsdl/promoted/src/main/resources/nowsdlpromoted.composite create mode 100644 tags/java/sca/1.5.1-RC4/vtest/wsbinding/nowsdl/promoted/src/test/java/org/apache/tuscany/sca/vtest/wsbinding/nowsdl/promoted/NoWsdlPromoted1TestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/wsbinding/nowsdl/promoted/src/test/java/org/apache/tuscany/sca/vtest/wsbinding/nowsdl/promoted/NoWsdlPromoted2TestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/wsbinding/nowsdl/soapversion/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/vtest/wsbinding/nowsdl/soapversion/src/main/java/org/apache/tuscany/sca/vtest/wsbinding/nowsdl/soapversion/AService.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/wsbinding/nowsdl/soapversion/src/main/java/org/apache/tuscany/sca/vtest/wsbinding/nowsdl/soapversion/BService.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/wsbinding/nowsdl/soapversion/src/main/java/org/apache/tuscany/sca/vtest/wsbinding/nowsdl/soapversion/BServiceSOAP.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/wsbinding/nowsdl/soapversion/src/main/java/org/apache/tuscany/sca/vtest/wsbinding/nowsdl/soapversion/BServiceSOAP11.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/wsbinding/nowsdl/soapversion/src/main/java/org/apache/tuscany/sca/vtest/wsbinding/nowsdl/soapversion/BServiceSOAP12.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/wsbinding/nowsdl/soapversion/src/main/java/org/apache/tuscany/sca/vtest/wsbinding/nowsdl/soapversion/CService.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/wsbinding/nowsdl/soapversion/src/main/java/org/apache/tuscany/sca/vtest/wsbinding/nowsdl/soapversion/DService.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/wsbinding/nowsdl/soapversion/src/main/java/org/apache/tuscany/sca/vtest/wsbinding/nowsdl/soapversion/impl/AServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/wsbinding/nowsdl/soapversion/src/main/java/org/apache/tuscany/sca/vtest/wsbinding/nowsdl/soapversion/impl/BServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/wsbinding/nowsdl/soapversion/src/main/java/org/apache/tuscany/sca/vtest/wsbinding/nowsdl/soapversion/impl/BServiceSOAP11Impl.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/wsbinding/nowsdl/soapversion/src/main/java/org/apache/tuscany/sca/vtest/wsbinding/nowsdl/soapversion/impl/BServiceSOAP12Impl.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/wsbinding/nowsdl/soapversion/src/main/java/org/apache/tuscany/sca/vtest/wsbinding/nowsdl/soapversion/impl/BServiceSOAPImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/wsbinding/nowsdl/soapversion/src/main/java/org/apache/tuscany/sca/vtest/wsbinding/nowsdl/soapversion/impl/CServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/wsbinding/nowsdl/soapversion/src/main/java/org/apache/tuscany/sca/vtest/wsbinding/nowsdl/soapversion/impl/DServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/wsbinding/nowsdl/soapversion/src/main/resources/nowsdlsoapversion.composite create mode 100644 tags/java/sca/1.5.1-RC4/vtest/wsbinding/nowsdl/soapversion/src/test/java/org/apache/tuscany/sca/vtest/wsbinding/nowsdl/soapversion/GeneratedWSDLTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/wsbinding/nowsdl/soapversion/src/test/java/org/apache/tuscany/sca/vtest/wsbinding/nowsdl/soapversion/NoWsdlNoSoapVersionTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/wsbinding/nowsdl/soapversion/src/test/java/org/apache/tuscany/sca/vtest/wsbinding/nowsdl/soapversion/NoWsdlSoapVersionTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/wsbinding/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/vtest/wsbinding/service/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/vtest/wsbinding/service/src/main/java/org/apache/tuscany/sca/vtest/wsbinding/AClientService.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/wsbinding/service/src/main/java/org/apache/tuscany/sca/vtest/wsbinding/AService.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/wsbinding/service/src/main/java/org/apache/tuscany/sca/vtest/wsbinding/impl/AClientServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/wsbinding/service/src/main/java/org/apache/tuscany/sca/vtest/wsbinding/impl/AServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/wsbinding/service/src/main/resources/aservice.wsdl create mode 100644 tags/java/sca/1.5.1-RC4/vtest/wsbinding/service/src/main/resources/endpoint-uri-resolution.composite create mode 100644 tags/java/sca/1.5.1-RC4/vtest/wsbinding/service/src/main/resources/endpointreference.composite create mode 100644 tags/java/sca/1.5.1-RC4/vtest/wsbinding/service/src/main/resources/wsdlbinding.composite create mode 100644 tags/java/sca/1.5.1-RC4/vtest/wsbinding/service/src/main/resources/wsdlendpoint.composite create mode 100644 tags/java/sca/1.5.1-RC4/vtest/wsbinding/service/src/main/resources/wsdlport.composite create mode 100644 tags/java/sca/1.5.1-RC4/vtest/wsbinding/service/src/main/resources/wsdlservice.composite create mode 100644 tags/java/sca/1.5.1-RC4/vtest/wsbinding/service/src/test/java/org/apache/tuscany/sca/vtest/wsbinding/EndpointReferenceTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/wsbinding/service/src/test/java/org/apache/tuscany/sca/vtest/wsbinding/EndpointUriResolutionTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/wsbinding/service/src/test/java/org/apache/tuscany/sca/vtest/wsbinding/WsdlBindingTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/wsbinding/service/src/test/java/org/apache/tuscany/sca/vtest/wsbinding/WsdlEndpointTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/wsbinding/service/src/test/java/org/apache/tuscany/sca/vtest/wsbinding/WsdlPortTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/wsbinding/service/src/test/java/org/apache/tuscany/sca/vtest/wsbinding/WsdlServiceTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/wsbinding/wsdlelement/binding/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/vtest/wsbinding/wsdlelement/binding/src/main/java/org/apache/tuscany/sca/vtest/wsbinding/wsdlelement/binding/AService.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/wsbinding/wsdlelement/binding/src/main/java/org/apache/tuscany/sca/vtest/wsbinding/wsdlelement/binding/BService.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/wsbinding/wsdlelement/binding/src/main/java/org/apache/tuscany/sca/vtest/wsbinding/wsdlelement/binding/BService2.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/wsbinding/wsdlelement/binding/src/main/java/org/apache/tuscany/sca/vtest/wsbinding/wsdlelement/binding/CService.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/wsbinding/wsdlelement/binding/src/main/java/org/apache/tuscany/sca/vtest/wsbinding/wsdlelement/binding/DService.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/wsbinding/wsdlelement/binding/src/main/java/org/apache/tuscany/sca/vtest/wsbinding/wsdlelement/binding/impl/AServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/wsbinding/wsdlelement/binding/src/main/java/org/apache/tuscany/sca/vtest/wsbinding/wsdlelement/binding/impl/BService2Impl.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/wsbinding/wsdlelement/binding/src/main/java/org/apache/tuscany/sca/vtest/wsbinding/wsdlelement/binding/impl/BServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/wsbinding/wsdlelement/binding/src/main/java/org/apache/tuscany/sca/vtest/wsbinding/wsdlelement/binding/impl/CServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/wsbinding/wsdlelement/binding/src/main/java/org/apache/tuscany/sca/vtest/wsbinding/wsdlelement/binding/impl/DServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/wsbinding/wsdlelement/binding/src/main/resources/bservice.wsdl create mode 100644 tags/java/sca/1.5.1-RC4/vtest/wsbinding/wsdlelement/binding/src/main/resources/cservice.wsdl create mode 100644 tags/java/sca/1.5.1-RC4/vtest/wsbinding/wsdlelement/binding/src/main/resources/wsdlelement.binding.composite create mode 100644 tags/java/sca/1.5.1-RC4/vtest/wsbinding/wsdlelement/binding/src/test/java/org/apache/tuscany/sca/vtest/wsbinding/wsdlelement/binding/WsdlElementBindingTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/wsbinding/wsdlelement/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/vtest/wsbinding/wsdlelement/port/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/vtest/wsbinding/wsdlelement/port/src/main/java/org/apache/tuscany/sca/vtest/wsbinding/wsdlelement/port/AService.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/wsbinding/wsdlelement/port/src/main/java/org/apache/tuscany/sca/vtest/wsbinding/wsdlelement/port/BService.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/wsbinding/wsdlelement/port/src/main/java/org/apache/tuscany/sca/vtest/wsbinding/wsdlelement/port/BService2.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/wsbinding/wsdlelement/port/src/main/java/org/apache/tuscany/sca/vtest/wsbinding/wsdlelement/port/CService.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/wsbinding/wsdlelement/port/src/main/java/org/apache/tuscany/sca/vtest/wsbinding/wsdlelement/port/DService.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/wsbinding/wsdlelement/port/src/main/java/org/apache/tuscany/sca/vtest/wsbinding/wsdlelement/port/impl/AServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/wsbinding/wsdlelement/port/src/main/java/org/apache/tuscany/sca/vtest/wsbinding/wsdlelement/port/impl/BService2Impl.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/wsbinding/wsdlelement/port/src/main/java/org/apache/tuscany/sca/vtest/wsbinding/wsdlelement/port/impl/BServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/wsbinding/wsdlelement/port/src/main/java/org/apache/tuscany/sca/vtest/wsbinding/wsdlelement/port/impl/CServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/wsbinding/wsdlelement/port/src/main/java/org/apache/tuscany/sca/vtest/wsbinding/wsdlelement/port/impl/DServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/wsbinding/wsdlelement/port/src/main/resources/bservice.wsdl create mode 100644 tags/java/sca/1.5.1-RC4/vtest/wsbinding/wsdlelement/port/src/main/resources/cservice.wsdl create mode 100644 tags/java/sca/1.5.1-RC4/vtest/wsbinding/wsdlelement/port/src/main/resources/wsdlelement.port.composite create mode 100644 tags/java/sca/1.5.1-RC4/vtest/wsbinding/wsdlelement/port/src/test/java/org/apache/tuscany/sca/vtest/wsbinding/wsdlelement/port/WsdlElementPortTestCase.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/wsbinding/wsdlelement/service/pom.xml create mode 100644 tags/java/sca/1.5.1-RC4/vtest/wsbinding/wsdlelement/service/src/main/java/org/apache/tuscany/sca/vtest/wsbinding/wsdlelement/service/AService.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/wsbinding/wsdlelement/service/src/main/java/org/apache/tuscany/sca/vtest/wsbinding/wsdlelement/service/BService.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/wsbinding/wsdlelement/service/src/main/java/org/apache/tuscany/sca/vtest/wsbinding/wsdlelement/service/BService2.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/wsbinding/wsdlelement/service/src/main/java/org/apache/tuscany/sca/vtest/wsbinding/wsdlelement/service/CService.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/wsbinding/wsdlelement/service/src/main/java/org/apache/tuscany/sca/vtest/wsbinding/wsdlelement/service/DService.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/wsbinding/wsdlelement/service/src/main/java/org/apache/tuscany/sca/vtest/wsbinding/wsdlelement/service/impl/AServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/wsbinding/wsdlelement/service/src/main/java/org/apache/tuscany/sca/vtest/wsbinding/wsdlelement/service/impl/BService2Impl.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/wsbinding/wsdlelement/service/src/main/java/org/apache/tuscany/sca/vtest/wsbinding/wsdlelement/service/impl/BServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/wsbinding/wsdlelement/service/src/main/java/org/apache/tuscany/sca/vtest/wsbinding/wsdlelement/service/impl/CServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/wsbinding/wsdlelement/service/src/main/java/org/apache/tuscany/sca/vtest/wsbinding/wsdlelement/service/impl/DServiceImpl.java create mode 100644 tags/java/sca/1.5.1-RC4/vtest/wsbinding/wsdlelement/service/src/main/resources/bservice.wsdl create mode 100644 tags/java/sca/1.5.1-RC4/vtest/wsbinding/wsdlelement/service/src/main/resources/cservice.wsdl create mode 100644 tags/java/sca/1.5.1-RC4/vtest/wsbinding/wsdlelement/service/src/main/resources/wsdlelement.service.composite create mode 100644 tags/java/sca/1.5.1-RC4/vtest/wsbinding/wsdlelement/service/src/test/java/org/apache/tuscany/sca/vtest/wsbinding/wsdlelement/service/WsdlElementServiceTestCase.java (limited to 'tags') diff --git a/tags/java/sca/1.5.1-RC4/demos/alert-aggregator-webapp/README b/tags/java/sca/1.5.1-RC4/demos/alert-aggregator-webapp/README new file mode 100644 index 0000000000..3ec27ef65f --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/demos/alert-aggregator-webapp/README @@ -0,0 +1,82 @@ +Apache Tuscany Alert Aggregator Demo +==================================== + +The alert aggregator demo provides an application, implemented using SCA, that +aggregates feeds together and exposes them using the following bindings. + +binding.ws +binding.jsonrpc +binding.feed + +The easiest way to get going is to build the demo + +cd alert-aggregator-webapp +ant package + +This will build a war file + +demo-alert-aggregator-webapp.war + +This war can be deployed to you web application container and tested (the war +has been tested with Tomcat 6.0.10). + +The Web Application +------------------- + +Once deployed point your browser at + +http://localhost:8080/demo-alert-aggregator-webapp + +Taking care to ensure the host name and port number match you local +configuration. + +This launches a Javascript application in the browser that uses JSONRPC +to contact the server and retrived a list of alert sources and alerts that +these sources are providing. + +There default sources that you see are stored in a file in the following +file + +demo-alert-aggregator-webapp/WEB-INF/classes/sources.xml + +This files has the following contents + + + + BBC News + http://news.bbc.co.uk/ + 10-Jun-2007 16:34:03 + http://newsrss.bbc.co.uk/rss/newsonline_uk_edition/world/rss.xml + + + Engadget + http://www.engadget.com + 10-Jun-2007 16:34:03 + http://www.engadget.com/rss.xml + + + +You may want to adjust the "LastChecked" values to change the number of +alerts that are displayed in the first instance + +Using A Feed Reader +------------------- + +As this SCA application also uses the binding.feed binding you can use your +favourite feed reader to read the aggregated alerts. To do this point your +feed reader at + +http://localhost:8080/demo-alert-aggregator-webapp/services/AlertsFeedServiceRSS + +Again taking care to ensure that the host name and port number match you +local configuration. + +Using Web Services +------------------ + +The SCA application also uses binding.ws to provide a SOAP/HTTP interface. +The demo client that uses this interface is not yet available. + + + + diff --git a/tags/java/sca/1.5.1-RC4/demos/alert-aggregator-webapp/alert-aggregator.png b/tags/java/sca/1.5.1-RC4/demos/alert-aggregator-webapp/alert-aggregator.png new file mode 100644 index 0000000000..ae429cca94 Binary files /dev/null and b/tags/java/sca/1.5.1-RC4/demos/alert-aggregator-webapp/alert-aggregator.png differ diff --git a/tags/java/sca/1.5.1-RC4/demos/alert-aggregator-webapp/alert-aggregator.svg b/tags/java/sca/1.5.1-RC4/demos/alert-aggregator-webapp/alert-aggregator.svg new file mode 100644 index 0000000000..807416135e --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/demos/alert-aggregator-webapp/alert-aggregator.svg @@ -0,0 +1,627 @@ + + + + + + + + + + image/svg+xml + + + + + + + + DisplayComposite - PHP + + Display + + + + + + AlerterComposite - Java + + AlertsService + + + + rest soap + + + soap + + RSS + + + AlertsSourcesService + + + + + + jsonrpc + + + + + soap + + soap + atom + jsonrpc + + + + + + + POP - Not done + + + + + + + + + HTML Web2.0 Thunderbird + + NNTP - Not done + + rss + + AlertFeedService + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/demos/alert-aggregator-webapp/build-dojo.xml b/tags/java/sca/1.5.1-RC4/demos/alert-aggregator-webapp/build-dojo.xml new file mode 100644 index 0000000000..5c5a7dfe58 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/demos/alert-aggregator-webapp/build-dojo.xml @@ -0,0 +1,92 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/demos/alert-aggregator-webapp/build.xml b/tags/java/sca/1.5.1-RC4/demos/alert-aggregator-webapp/build.xml new file mode 100644 index 0000000000..793aa05c06 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/demos/alert-aggregator-webapp/build.xml @@ -0,0 +1,148 @@ + + +]> + + + &buildDependency; + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/demos/alert-aggregator-webapp/pom.xml b/tags/java/sca/1.5.1-RC4/demos/alert-aggregator-webapp/pom.xml new file mode 100644 index 0000000000..3377124473 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/demos/alert-aggregator-webapp/pom.xml @@ -0,0 +1,356 @@ + + + + 4.0.0 + + + org.apache.tuscany.sca + tuscany-demos + 1.5.1 + ../pom.xml + + + org.apache.tuscany.sca + demo-alert-aggregator-webapp + war + 1.5.1 + Apache Tuscany SCA Demo Alert Aggregator + http://cwiki.apache.org/TUSCANY + + + + junit + junit + 4.5 + test + + + httpunit + httpunit + 1.6.1 + test + + + org.apache.tuscany.sdo + tuscany-sdo-api-r2.1 + 1.1.1 + + + org.apache.tuscany.sdo + tuscany-sdo-impl + 1.1.1 + + + backport-util-concurrent + backport-util-concurrent + + + + + backport-util-concurrent + backport-util-concurrent + 3.1 + + + org.apache.tuscany.sca + tuscany-binding-ws-axis2 + ${pom.version} + runtime + + + org.apache.tuscany.sca + tuscany-core-databinding + ${pom.version} + runtime + + + org.apache.tuscany.sca + tuscany-databinding-jaxb + ${pom.version} + runtime + + + org.apache.tuscany.sca + tuscany-databinding-sdo + ${pom.version} + compile + + + org.apache.tuscany.sca + tuscany-databinding-axiom + ${pom.version} + compile + + + org.apache.tuscany.sca + tuscany-host-embedded + ${pom.version} + compile + + + org.apache.tuscany.sca + tuscany-implementation-java-runtime + ${pom.version} + compile + + + org.apache.tuscany.sca + tuscany-interface-java-xml + ${pom.version} + compile + + + org.apache.tuscany.sca + tuscany-host-webapp + 1.5.1 + runtime + + + org.apache.tuscany.sca + tuscany-binding-jsonrpc-runtime + 1.5.1 + runtime + + + org.apache.tuscany.sca + tuscany-binding-atom-abdera + 1.5.1 + + + org.apache.tuscany.sca + tuscany-binding-rss-rome + 1.5.1 + + + org.codehaus.woodstox + wstx-asl + 3.2.1 + runtime + + + + + demo-alert-aggregator-webapp + + + org.codehaus.mojo + build-helper-maven-plugin + 1.0 + + + add-test-source + generate-sources + + add-test-source + + + + target/sdo-source + + + + + + + org.apache.tuscany.sdo + tuscany-sdo-plugin + 1.1.1 + + + generate-sdo + generate-sources + + + + ${basedir}/src/main/resources/Alerts.wsdl + org.apache.tuscany.sca.demos.aggregator.service + + + ${basedir}/src/main/resources/AlertsSources.wsdl + org.apache.tuscany.sca.demos.aggregator.sources + + + ${basedir}/src/main/resources/Alerts.xsd + org.apache.tuscany.sca.demos.aggregator.types + + + true + true + true + + + generate + + + + + + org.apache.maven.plugins + maven-antrun-plugin + 1.1 + + + + ant + ant-trax + 1.6.5 + + + + + + install-dojo + validate + + run + + + + + + + + + + + copy-dojo-files + generate-resources + + run + + + + + + + + + + + + clean-dojo-files + clean + + run + + + + + + + + + + + + + + + org.apache.maven.plugins + maven-surefire-plugin + + + + surefire-it + integration-test + + test + + + + **/*AlertsIntegrationTest.java + + + + + + + + org.codehaus.cargo + cargo-maven2-plugin + 1.0 + + + start-container + pre-integration-test + + start + + + + stop-container + post-integration-test + + stop + + + + + + jetty6x + embedded + + org.apache.commons.logging.impl.SimpleLog + + + false + + + 8085 + + + + + ${project.build.directory}/${project.build.finalName}.${project.packaging} + + http://localhost:8085/AlertsSourcesServiceJSONRPC + + + ${project.build.directory}/cargo-jetty + + + + + + org.apache.tuscany.sca + tuscany-maven-ant-generator + 1.5.1 + + + + true + + + generate + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/demos/alert-aggregator-webapp/src/main/java/org/apache/tuscany/sca/demos/aggregator/AlertTypeNonSDOImpl.java b/tags/java/sca/1.5.1-RC4/demos/alert-aggregator-webapp/src/main/java/org/apache/tuscany/sca/demos/aggregator/AlertTypeNonSDOImpl.java new file mode 100644 index 0000000000..808374030c --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/demos/alert-aggregator-webapp/src/main/java/org/apache/tuscany/sca/demos/aggregator/AlertTypeNonSDOImpl.java @@ -0,0 +1,339 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package org.apache.tuscany.sca.demos.aggregator; + +import org.apache.tuscany.sca.demos.aggregator.types.AlertType; + + +public class AlertTypeNonSDOImpl implements AlertType +{ + private static final long serialVersionUID = 670364038865656196L; + +/** + * The default value of the '{@link #getTitle() Title}' attribute. + * + * + * @see #getTitle() + * @generated + * @ordered + */ + protected static final String TITLE_DEFAULT_ = null; + + /** + * The cached value of the '{@link #getTitle() Title}' attribute. + * + * + * @see #getTitle() + * @generated + * @ordered + */ + protected String title = TITLE_DEFAULT_; + + /** + * The default value of the '{@link #getSummary() Summary}' attribute. + * + * + * @see #getSummary() + * @generated + * @ordered + */ + protected static final String SUMMARY_DEFAULT_ = null; + + /** + * The cached value of the '{@link #getSummary() Summary}' attribute. + * + * + * @see #getSummary() + * @generated + * @ordered + */ + protected String summary = SUMMARY_DEFAULT_; + + /** + * The default value of the '{@link #getAddress() Address}' attribute. + * + * + * @see #getAddress() + * @generated + * @ordered + */ + protected static final String ADDRESS_DEFAULT_ = null; + + /** + * The cached value of the '{@link #getAddress() Address}' attribute. + * + * + * @see #getAddress() + * @generated + * @ordered + */ + protected String address = ADDRESS_DEFAULT_; + + /** + * The default value of the '{@link #getDate() Date}' attribute. + * + * + * @see #getDate() + * @generated + * @ordered + */ + protected static final String DATE_DEFAULT_ = null; + + /** + * The cached value of the '{@link #getDate() Date}' attribute. + * + * + * @see #getDate() + * @generated + * @ordered + */ + protected String date = DATE_DEFAULT_; + + /** + * The default value of the '{@link #getSourceId() Source Id}' attribute. + * + * + * @see #getSourceId() + * @generated + * @ordered + */ + protected static final String SOURCE_ID_DEFAULT_ = null; + + /** + * The cached value of the '{@link #getSourceId() Source Id}' attribute. + * + * + * @see #getSourceId() + * @generated + * @ordered + */ + protected String sourceId = SOURCE_ID_DEFAULT_; + + /** + * The default value of the '{@link #isUnread() Unread}' attribute. + * + * + * @see #isUnread() + * @generated + * @ordered + */ + protected static final boolean UNREAD_DEFAULT_ = false; + + /** + * The cached value of the '{@link #isUnread() Unread}' attribute. + * + * + * @see #isUnread() + * @generated + * @ordered + */ + protected boolean unread = UNREAD_DEFAULT_; + + /** + * The default value of the '{@link #getId() Id}' attribute. + * + * + * @see #getId() + * @generated + * @ordered + */ + protected static final String ID_DEFAULT_ = null; + + /** + * The cached value of the '{@link #getId() Id}' attribute. + * + * + * @see #getId() + * @generated + * @ordered + */ + protected String id = ID_DEFAULT_; + + /** + * + * + * @generated + */ + public AlertTypeNonSDOImpl() + { + super(); + } + + + /** + * + * + * @generated + */ + public String getTitle() + { + return title; + } + /** + * + * + * @generated + */ + public void setTitle(String newTitle) + { + title = newTitle; + } + + /** + * + * + * @generated + */ + public String getSummary() + { + return summary; + } + /** + * + * + * @generated + */ + public void setSummary(String newSummary) + { + summary = newSummary; + } + + /** + * + * + * @generated + */ + public String getAddress() + { + return address; + } + /** + * + * + * @generated + */ + public void setAddress(String newAddress) + { + address = newAddress; + } + + /** + * + * + * @generated + */ + public String getDate() + { + return date; + } + /** + * + * + * @generated + */ + public void setDate(String newDate) + { + date = newDate; + } + + /** + * + * + * @generated + */ + public String getSourceId() + { + return sourceId; + } + /** + * + * + * @generated + */ + public void setSourceId(String newSourceId) + { + sourceId = newSourceId; + } + + /** + * + * + * @generated + */ + public boolean isUnread() + { + return unread; + } + /** + * + * + * @generated + */ + public void setUnread(boolean newUnread) + { + unread = newUnread; + } + + /** + * + * + * @generated + */ + public String getId() + { + return id; + } + /** + * + * + * @generated + */ + public void setId(String newId) + { + id = newId; + } + + /** + * + * + * @generated + */ + @Override + public String toString() + { + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (Title: "); + result.append(title); + result.append(", Summary: "); + result.append(summary); + result.append(", Address: "); + result.append(address); + result.append(", Date: "); + result.append(date); + result.append(", SourceId: "); + result.append(sourceId); + result.append(", Unread: "); + result.append(unread); + result.append(", Id: "); + result.append(id); + result.append(')'); + return result.toString(); + } + +} //AlertTypeImpl diff --git a/tags/java/sca/1.5.1-RC4/demos/alert-aggregator-webapp/src/main/java/org/apache/tuscany/sca/demos/aggregator/AlertsFeedServiceImpl.java b/tags/java/sca/1.5.1-RC4/demos/alert-aggregator-webapp/src/main/java/org/apache/tuscany/sca/demos/aggregator/AlertsFeedServiceImpl.java new file mode 100644 index 0000000000..e070e0b8f1 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/demos/alert-aggregator-webapp/src/main/java/org/apache/tuscany/sca/demos/aggregator/AlertsFeedServiceImpl.java @@ -0,0 +1,106 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package org.apache.tuscany.sca.demos.aggregator; + +import java.text.DateFormat; + +import org.apache.abdera.Abdera; +import org.apache.abdera.factory.Factory; +import org.apache.abdera.model.Entry; +import org.apache.abdera.model.Feed; +import org.apache.tuscany.sca.binding.atom.collection.Collection; +import org.apache.tuscany.sca.binding.atom.collection.NotFoundException; +import org.apache.tuscany.sca.demos.aggregator.types.AlertType; +import org.apache.tuscany.sca.demos.aggregator.types.AlertsType; +import org.osoa.sca.annotations.Reference; +import org.osoa.sca.annotations.Service; + +/** + * Read all new alerts from the specified sources + * + * @version $Rev$ $Date$ + */ +@Service(Collection.class) +public class AlertsFeedServiceImpl implements Collection { + + private AlertsService alerts; + + @Reference + public void setAlerts(AlertsService alerts) { + this.alerts = alerts; + } + + DateFormat dateFormatter = DateFormat.getDateTimeInstance(); + + /** + * Return the alerts as a feed. + * + * @return the structure containing alerts + */ + public org.apache.abdera.model.Feed getFeed() { + + // Create a new Feed + Factory factory = Abdera.getNewFactory(); + Feed feed = factory.newFeed(); + feed.setTitle("Apache Tuscany Feed Aggregator"); + feed.setSubtitle("A sample showing an SCA application to aggregate various types of feeds"); + feed.addAuthor("Apache Tuscany"); + feed.addLink("http://tuscany.apache.org"); + + // Aggregate entries from feed1 and feed2 + try { + AlertsType alerts = this.alerts.getAllNewAlerts(""); + + for( Object alertObject : alerts.getAlert() ){ + AlertType alert = ((AlertType)alertObject); + Entry entry = factory.newEntry(); + entry.setTitle(alert.getTitle()); + //entry.(alert.getSummary()); + entry.addLink(alert.getAddress()); + entry.setPublished(dateFormatter.parse(alert.getDate())); + + feed.addEntry(entry); + } + } catch(Exception ex) { + System.err.println("Exception " + ex.toString()); + } + + return feed; + } + + public Feed query(String queryString) { + return getFeed(); + } + + public void delete(String id) throws NotFoundException { + } + + public Entry get(String id) throws NotFoundException { + return null; + } + + public Entry post(Entry entry) { + return null; + } + + public void put(String id, Entry entry) throws NotFoundException { + } + +} diff --git a/tags/java/sca/1.5.1-RC4/demos/alert-aggregator-webapp/src/main/java/org/apache/tuscany/sca/demos/aggregator/AlertsService.java b/tags/java/sca/1.5.1-RC4/demos/alert-aggregator-webapp/src/main/java/org/apache/tuscany/sca/demos/aggregator/AlertsService.java new file mode 100644 index 0000000000..c4bf13ce7a --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/demos/alert-aggregator-webapp/src/main/java/org/apache/tuscany/sca/demos/aggregator/AlertsService.java @@ -0,0 +1,40 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package org.apache.tuscany.sca.demos.aggregator; + +import org.apache.tuscany.sca.demos.aggregator.types.AlertsType; +import org.osoa.sca.annotations.Remotable; + +/** + * Retrieve and manage alerts + * + * @version $Rev$ $Date$ + */ +@Remotable +public interface AlertsService { + + /** + * Return a structure holding all of the new alerts that have been found + * + * @return the structure containing alerts + */ + public AlertsType getAllNewAlerts(String id); + +} diff --git a/tags/java/sca/1.5.1-RC4/demos/alert-aggregator-webapp/src/main/java/org/apache/tuscany/sca/demos/aggregator/AlertsServiceImpl.java b/tags/java/sca/1.5.1-RC4/demos/alert-aggregator-webapp/src/main/java/org/apache/tuscany/sca/demos/aggregator/AlertsServiceImpl.java new file mode 100644 index 0000000000..28e27a9978 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/demos/alert-aggregator-webapp/src/main/java/org/apache/tuscany/sca/demos/aggregator/AlertsServiceImpl.java @@ -0,0 +1,126 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package org.apache.tuscany.sca.demos.aggregator; + +import java.text.DateFormat; +import java.util.Date; +import java.util.List; + +import org.apache.tuscany.sca.demos.aggregator.types.AlertType; +import org.apache.tuscany.sca.demos.aggregator.types.AlertsType; +import org.apache.tuscany.sca.demos.aggregator.types.ConfigType; +import org.apache.tuscany.sca.demos.aggregator.types.SourceType; +import org.osoa.sca.annotations.Reference; +import org.osoa.sca.annotations.Service; + +/** + * Read all new alerts from the specified sources + * + * @version $Rev$ $Date$ + */ +@Service(AlertsService.class) +public class AlertsServiceImpl implements AlertsService { + + private RSSCheckerService rssChecker; + + private AlertsSourcesService alertsSources; + + @Reference + public void setRssChecker(RSSCheckerService rssChecker) { + this.rssChecker = rssChecker; + } + + @Reference + public void setAlertsSources(AlertsSourcesService alertsSources) { + this.alertsSources = alertsSources; + } + + DateFormat dateFormatter = DateFormat.getDateTimeInstance(); + + /** + * Return a structure holding all of the new alerts that have been found + * + * @return the structure containing alerts + */ + public AlertsType getAllNewAlerts(String id) + { + System.err.println("getAllNewAlerts(" + id + ")"); + + //TypesFactory factory = TypesFactory.INSTANCE; + //AlertsType returnAlerts = factory.createAlertsType(); + AlertsType returnAlerts = new AlertsTypeNonSDOImpl(); + List returnAlertList = returnAlerts.getAlert(); + + // get the date/time now so that we can update the + // alert source record so that next time we + // only get the latest alerts + Date now = new Date(); + String nowString = dateFormatter.format(now); + + try { + ConfigType alertSourceConfig = alertsSources.getAlertSources(id); + + for (Object source : alertSourceConfig.getSource()){ + SourceType sourceType = (SourceType)source; + + AlertsType alerts = null; + + if ( sourceType.getFeedType().equals("rss")){ + alerts = rssChecker.getNewAlerts(sourceType.getFeedAddress(), + sourceType.getLastChecked()); + } else { + + } + + // extend return list with any alerts we found + for( Object alert : alerts.getAlert() ){ + + // set the id on the alert so we know which source it + // came from + ((AlertType)alert).setSourceId(sourceType.getId()); + + // convert from SDO to POJO so that the + // JSONRPC binding will work. It can't currently + // handle SDOs + AlertType newAlert = new AlertTypeNonSDOImpl(); + + newAlert.setSourceId(((AlertType)alert).getSourceId()); + newAlert.setTitle(((AlertType)alert).getTitle()); + newAlert.setSummary(((AlertType)alert).getSummary()); + newAlert.setAddress(((AlertType)alert).getAddress()); + newAlert.setDate(((AlertType)alert).getDate()); + newAlert.setId(((AlertType)alert).getId()); + newAlert.setUnread(((AlertType)alert).isUnread()); + + returnAlertList.add(newAlert); + } + + // update the time last checked for this source + sourceType.setLastChecked(nowString); + //alertsSources.updateAlertSource(sourceType); + } + } catch(Exception ex) { + System.err.println("Exception " + ex.toString()); + } + + return returnAlerts ; + + } +} diff --git a/tags/java/sca/1.5.1-RC4/demos/alert-aggregator-webapp/src/main/java/org/apache/tuscany/sca/demos/aggregator/AlertsSourcesService.java b/tags/java/sca/1.5.1-RC4/demos/alert-aggregator-webapp/src/main/java/org/apache/tuscany/sca/demos/aggregator/AlertsSourcesService.java new file mode 100644 index 0000000000..7b943b1b45 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/demos/alert-aggregator-webapp/src/main/java/org/apache/tuscany/sca/demos/aggregator/AlertsSourcesService.java @@ -0,0 +1,69 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package org.apache.tuscany.sca.demos.aggregator; + +import org.apache.tuscany.sca.demos.aggregator.types.ConfigType; +import org.apache.tuscany.sca.demos.aggregator.types.SourceType; +import org.osoa.sca.annotations.Remotable; + +/** + * Retrieve and manage alert sources + * + * @version $Rev$ $Date$ + */ +@Remotable +public interface AlertsSourcesService { + + /** + * Return all of the configured alert sources. + * + * @return the list of alert sources + */ + public ConfigType getAlertSources (String id); + + /** + * Return a single alert source. + * @param id not currently used + * @return the alert source + */ + public SourceType getAlertSource (String id); + + /** + * Update an alert source. + * + * @param updatedSource the alert source to update + */ + public void updateAlertSource (SourceType updatedSource); + + /** + * Add an alert source. + * + * @param newSource the alert source to add + */ + public String addAlertSource (SourceType newSource); + + /** + * Remove an alert source. + * + * @param oldSource the alert source to remove + */ + public void removeAlertSource (String id); + +} diff --git a/tags/java/sca/1.5.1-RC4/demos/alert-aggregator-webapp/src/main/java/org/apache/tuscany/sca/demos/aggregator/AlertsSourcesServiceImpl.java b/tags/java/sca/1.5.1-RC4/demos/alert-aggregator-webapp/src/main/java/org/apache/tuscany/sca/demos/aggregator/AlertsSourcesServiceImpl.java new file mode 100644 index 0000000000..ca2fc95b4a --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/demos/alert-aggregator-webapp/src/main/java/org/apache/tuscany/sca/demos/aggregator/AlertsSourcesServiceImpl.java @@ -0,0 +1,183 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package org.apache.tuscany.sca.demos.aggregator; + +import java.io.InputStream; +import java.text.DateFormat; +import java.util.Date; + +import org.apache.tuscany.sca.demos.aggregator.types.ConfigType; +import org.apache.tuscany.sca.demos.aggregator.types.SourceType; +import org.apache.tuscany.sca.demos.aggregator.types.TypesFactory; +import org.apache.tuscany.sca.demos.aggregator.types.impl.SourceTypeImpl; +import org.osoa.sca.annotations.Scope; +import org.osoa.sca.annotations.Service; + +import commonj.sdo.helper.HelperContext; +import commonj.sdo.helper.XMLDocument; +import commonj.sdo.impl.HelperProvider; + +/** + * Retrieve and manage alert sources + * + * @version $Rev$ $Date$ + */ +@Service(AlertsSourcesService.class) +@Scope("COMPOSITE") +public class AlertsSourcesServiceImpl implements AlertsSourcesService { + + ConfigType alertSources; + + /** + * Constructor reads the configuration to provide + * the initial list of alert sources + */ + public AlertsSourcesServiceImpl(){ + System.err.println("AlertsSourcesServiceImpl()"); + try { + // read the alerts config from an XML file + InputStream is = this.getClass().getClassLoader().getResourceAsStream("sources.xml"); + + if (is == null) { + throw new Exception("Can;t find sources.xml"); + } else { + HelperContext helperContext = HelperProvider.getDefaultContext(); + TypesFactory.INSTANCE.register(helperContext); + XMLDocument xmlDoc = helperContext.getXMLHelper().load(is); + alertSources = (ConfigType)xmlDoc.getRootObject(); + } + } catch (Exception ex) { + System.err.println("Exception " + ex.toString()); + } + } + + /** + * Return all of the configured alert sources. + * + * @return the list of alert sources + */ + public ConfigType getAlertSources (String id) + { + System.err.println("getAlertSources(" + id + ")"); + + // convert alert sources to POJOs so that + // the JSONRPC binding will work + ConfigTypeNonSDOImpl sources = new ConfigTypeNonSDOImpl(); + + for (Object source : alertSources.getSource()) { + SourceTypeNonSDOImpl newSource = new SourceTypeNonSDOImpl(); + newSource.setAddress(((SourceTypeImpl)source).getAddress()); + newSource.setFeedAddress(((SourceTypeImpl)source).getFeedAddress()); + newSource.setId(((SourceTypeImpl)source).getId()); + newSource.setLastChecked(((SourceTypeImpl)source).getLastChecked()); + newSource.setName(((SourceTypeImpl)source).getName()); + newSource.setFeedType(((SourceTypeImpl)source).getFeedType()); + sources.getSource().add(newSource); + } + + return sources; + } + + /** + * Return a single alert source. + * @param id the alert source id number + * @return the alert source + */ + public SourceType getAlertSource (String id) + { + System.err.println("getAlertSource(" + id + ")"); + SourceType alertSource = null; + + for (Object source : alertSources.getSource()) { + if ( ((SourceType)source).getId().equals(id)) { + alertSource = (SourceType)source; + } + } + return alertSource; + } + + /** + * Update an alert source. + * + * @param updatedSource the alert source to update + */ + public void updateAlertSource (SourceType updatedSource) + { + System.err.println("updateAlertSource()"); + + Object originalSource = null; + + for (Object source : alertSources.getSource()) { + if ( ((SourceType)source).getId().equals(updatedSource.getId())) { + originalSource = source; + break; + } + } + + if (originalSource != null){ + alertSources.getSource().add(updatedSource); + alertSources.getSource().remove(originalSource); + } + } + + /** + * Add an alert source. + * + * @param newSource the alert source to add + */ + public String addAlertSource (SourceType newSource) + { + System.err.println("addAlertSource()"); + // set the date to now less 2 hours so we + // get some alerts straight away + DateFormat dateFormatter = DateFormat.getDateTimeInstance(); + Date now = new Date(); + now.setHours(now.getHours()-2); + String nowString = dateFormatter.format(now); + newSource.setLastChecked(nowString); + alertSources.getSource().add(newSource); + return "Done"; + } + + /** + * Remove an alert source. + * + * @param oldSource the alert source to remove + */ + public void removeAlertSource (String id) + { + System.err.println("removeAlertSource()"); + + Object originalSource = null; + + for (Object source : alertSources.getSource()) { + if ( ((SourceType)source).getId().equals(id)) { + originalSource = source; + break; + } + } + + if (originalSource != null) { + alertSources.getSource().remove(originalSource); + } + + } + +} diff --git a/tags/java/sca/1.5.1-RC4/demos/alert-aggregator-webapp/src/main/java/org/apache/tuscany/sca/demos/aggregator/AlertsTypeNonSDOImpl.java b/tags/java/sca/1.5.1-RC4/demos/alert-aggregator-webapp/src/main/java/org/apache/tuscany/sca/demos/aggregator/AlertsTypeNonSDOImpl.java new file mode 100644 index 0000000000..2962defb25 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/demos/alert-aggregator-webapp/src/main/java/org/apache/tuscany/sca/demos/aggregator/AlertsTypeNonSDOImpl.java @@ -0,0 +1,74 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package org.apache.tuscany.sca.demos.aggregator; + +import java.util.ArrayList; +import java.util.List; + +import org.apache.tuscany.sca.demos.aggregator.types.AlertsType; + +/** + * + * An implementation of the model object 'Alerts Type'. + * + *

+ * The following features are implemented: + *

+ *

+ * + * @generated + */ +public class AlertsTypeNonSDOImpl implements AlertsType +{ + private static final long serialVersionUID = -3784576466148158776L; + +/** + * The cached value of the '{@link #getAlert() Alert}' containment reference list. + * + * + * @see #getAlert() + * @generated + * @ordered + */ + + protected List alert = new ArrayList(); + + /** + * + * + * @generated + */ + public AlertsTypeNonSDOImpl() + { + super(); + } + + /** + * + * + * @generated + */ + public List getAlert() + { + return alert; + } + +} //AlertsTypeImpl diff --git a/tags/java/sca/1.5.1-RC4/demos/alert-aggregator-webapp/src/main/java/org/apache/tuscany/sca/demos/aggregator/ConfigTypeNonSDOImpl.java b/tags/java/sca/1.5.1-RC4/demos/alert-aggregator-webapp/src/main/java/org/apache/tuscany/sca/demos/aggregator/ConfigTypeNonSDOImpl.java new file mode 100644 index 0000000000..75544294ce --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/demos/alert-aggregator-webapp/src/main/java/org/apache/tuscany/sca/demos/aggregator/ConfigTypeNonSDOImpl.java @@ -0,0 +1,55 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package org.apache.tuscany.sca.demos.aggregator; + +import java.util.ArrayList; +import java.util.List; + +import org.apache.tuscany.sca.demos.aggregator.types.ConfigType; + + +public class ConfigTypeNonSDOImpl implements ConfigType +{ + private static final long serialVersionUID = 2522843951360675364L; + + protected List source = new ArrayList(); + + /** + * + * + * @generated + */ + public ConfigTypeNonSDOImpl() + { + super(); + } + + + /** + * + * + * @generated + */ + public List getSource() + { + return source; + } + + +} //ConfigTypeImpl diff --git a/tags/java/sca/1.5.1-RC4/demos/alert-aggregator-webapp/src/main/java/org/apache/tuscany/sca/demos/aggregator/RSSCheckerService.java b/tags/java/sca/1.5.1-RC4/demos/alert-aggregator-webapp/src/main/java/org/apache/tuscany/sca/demos/aggregator/RSSCheckerService.java new file mode 100644 index 0000000000..2a5775e9a9 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/demos/alert-aggregator-webapp/src/main/java/org/apache/tuscany/sca/demos/aggregator/RSSCheckerService.java @@ -0,0 +1,30 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package org.apache.tuscany.sca.demos.aggregator; + +import org.apache.tuscany.sca.demos.aggregator.types.AlertsType; + +/** + * The interface for the rss checker service + */ +public interface RSSCheckerService { + + public AlertsType getNewAlerts(String rssaddress, String lastchecktimestamp); + +} diff --git a/tags/java/sca/1.5.1-RC4/demos/alert-aggregator-webapp/src/main/java/org/apache/tuscany/sca/demos/aggregator/RSSCheckerServiceImpl.java b/tags/java/sca/1.5.1-RC4/demos/alert-aggregator-webapp/src/main/java/org/apache/tuscany/sca/demos/aggregator/RSSCheckerServiceImpl.java new file mode 100644 index 0000000000..549abbf602 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/demos/alert-aggregator-webapp/src/main/java/org/apache/tuscany/sca/demos/aggregator/RSSCheckerServiceImpl.java @@ -0,0 +1,91 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package org.apache.tuscany.sca.demos.aggregator; + +import java.net.URL; +import java.text.DateFormat; +import java.text.SimpleDateFormat; +import java.util.Date; +import java.util.List; + +import org.apache.tuscany.sca.demos.aggregator.types.AlertType; +import org.apache.tuscany.sca.demos.aggregator.types.AlertsType; +import org.apache.tuscany.sca.demos.aggregator.types.TypesFactory; + +import com.sun.syndication.feed.synd.SyndEntry; +import com.sun.syndication.feed.synd.SyndFeed; +import com.sun.syndication.io.SyndFeedInput; +import com.sun.syndication.io.XmlReader; + +/** + * The interface for the rss checker service + */ +public class RSSCheckerServiceImpl implements RSSCheckerService { + + public AlertsType getNewAlerts(String rssaddress, String lastchecktimestamp){ + // Create the list of alerts to return + TypesFactory factory = TypesFactory.INSTANCE; + AlertsType returnAlerts = factory.createAlertsType(); + List returnAlertList = returnAlerts.getAlert(); + + try { + // lastchecktimestamp comes from sources.xml configuration. + // That origin requires ISO 8601 date input (yyyy-MM-dd hh:mm:ss). + DateFormat configDateFormatter = new SimpleDateFormat( "yyyy-MM-dd hh:mm:ss"); + Date timestamp = configDateFormatter.parse(lastchecktimestamp); + // Turn feed dates into something we can process. + DateFormat feedDateFormatter = DateFormat.getDateTimeInstance(); + + // get the feed data from the supplied address + SyndFeedInput input = new SyndFeedInput(); + SyndFeed feed = input.build(new XmlReader(new URL(rssaddress))); + //System.out.println(feed); + + // check all the items to see if we have seen them before + List entries = feed.getEntries(); + for(Object entry: entries){ + SyndEntry syndEntry = (SyndEntry)entry; + + // System.err.println( "Entry pubdate=" + syndEntry.getPublishedDate() ); + if (syndEntry.getPublishedDate().after(timestamp)){ + AlertType newAlert = factory.createAlertType(); + + newAlert.setTitle(syndEntry.getTitle()); + // newAlert.setSummary(""); + newAlert.setSummary(""); + newAlert.setAddress(syndEntry.getLink()); + newAlert.setDate(feedDateFormatter.format(syndEntry.getPublishedDate())); + newAlert.setId(rssaddress); + newAlert.setUnread(true); + + returnAlertList.add(newAlert); + } + } + + } catch(Exception ex) { + ex.printStackTrace( System.err ); + System.err.println("Exception " + ex.toString()); + } + + return returnAlerts; + } + +} diff --git a/tags/java/sca/1.5.1-RC4/demos/alert-aggregator-webapp/src/main/java/org/apache/tuscany/sca/demos/aggregator/SourceTypeNonSDOImpl.java b/tags/java/sca/1.5.1-RC4/demos/alert-aggregator-webapp/src/main/java/org/apache/tuscany/sca/demos/aggregator/SourceTypeNonSDOImpl.java new file mode 100644 index 0000000000..10575bf0dc --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/demos/alert-aggregator-webapp/src/main/java/org/apache/tuscany/sca/demos/aggregator/SourceTypeNonSDOImpl.java @@ -0,0 +1,536 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package org.apache.tuscany.sca.demos.aggregator; + +import org.apache.tuscany.sca.demos.aggregator.types.SourceType; + +import commonj.sdo.Sequence; + + +public class SourceTypeNonSDOImpl implements SourceType +{ + private static final long serialVersionUID = -4986294578888767793L; + + public final static int NAME = 0; + + public final static int ADDRESS = 1; + + public final static int LAST_CHECKED = 2; + + public final static int FEED_ADDRESS = 3; + + public final static int POP_SERVER = 4; + + public final static int POP_USERNAME = 5; + + public final static int POP_PASSWORD = 6; + + public final static int ANY = -1; + + public final static int ID = 7; + + public final static int TYPE = 8; + + public final static int SDO_PROPERTY_COUNT = 9; + + public final static int EXTENDED_PROPERTY_COUNT = -1; + + + /** + * The internal feature id for the 'Name' attribute. + * + * + * @generated + * @ordered + */ + public final static int INTERNAL_NAME = 0; + + /** + * The internal feature id for the 'Address' attribute. + * + * + * @generated + * @ordered + */ + public final static int INTERNAL_ADDRESS = 1; + + /** + * The internal feature id for the 'Last Checked' attribute. + * + * + * @generated + * @ordered + */ + public final static int INTERNAL_LAST_CHECKED = 2; + + /** + * The internal feature id for the 'Feed Address' attribute. + * + * + * @generated + * @ordered + */ + public final static int INTERNAL_FEED_ADDRESS = 3; + + /** + * The internal feature id for the 'Pop Server' attribute. + * + * + * @generated + * @ordered + */ + public final static int INTERNAL_POP_SERVER = 4; + + /** + * The internal feature id for the 'Pop Username' attribute. + * + * + * @generated + * @ordered + */ + public final static int INTERNAL_POP_USERNAME = 5; + + /** + * The internal feature id for the 'Pop Password' attribute. + * + * + * @generated + * @ordered + */ + public final static int INTERNAL_POP_PASSWORD = 6; + + /** + * The internal feature id for the 'Any' attribute list. + * + * + * @generated + * @ordered + */ + public final static int INTERNAL_ANY = 7; + + /** + * The internal feature id for the 'Id' attribute. + * + * + * @generated + * @ordered + */ + public final static int INTERNAL_ID = 8; + + /** + * The internal feature id for the 'Type' attribute. + * + * + * @generated + * @ordered + */ + public final static int INTERNAL_TYPE = 9; + + /** + * The number of properties for this type. + * + * + * @generated + * @ordered + */ + public final static int INTERNAL_PROPERTY_COUNT = 10; + + + + + /** + * The default value of the '{@link #getName() Name}' attribute. + * + * + * @see #getName() + * @generated + * @ordered + */ + protected static final String NAME_DEFAULT_ = null; + + /** + * The cached value of the '{@link #getName() Name}' attribute. + * + * + * @see #getName() + * @generated + * @ordered + */ + protected String name = NAME_DEFAULT_; + + /** + * The default value of the '{@link #getAddress() Address}' attribute. + * + * + * @see #getAddress() + * @generated + * @ordered + */ + protected static final String ADDRESS_DEFAULT_ = null; + + /** + * The cached value of the '{@link #getAddress() Address}' attribute. + * + * + * @see #getAddress() + * @generated + * @ordered + */ + protected String address = ADDRESS_DEFAULT_; + + /** + * The default value of the '{@link #getLastChecked() Last Checked}' attribute. + * + * + * @see #getLastChecked() + * @generated + * @ordered + */ + protected static final String LAST_CHECKED_DEFAULT_ = null; + + /** + * The cached value of the '{@link #getLastChecked() Last Checked}' attribute. + * + * + * @see #getLastChecked() + * @generated + * @ordered + */ + protected String lastChecked = LAST_CHECKED_DEFAULT_; + + /** + * The default value of the '{@link #getFeedAddress() Feed Address}' attribute. + * + * + * @see #getFeedAddress() + * @generated + * @ordered + */ + protected static final String FEED_ADDRESS_DEFAULT_ = null; + + /** + * The cached value of the '{@link #getFeedAddress() Feed Address}' attribute. + * + * + * @see #getFeedAddress() + * @generated + * @ordered + */ + protected String feedAddress = FEED_ADDRESS_DEFAULT_; + + /** + * The default value of the '{@link #getPopServer() Pop Server}' attribute. + * + * + * @see #getPopServer() + * @generated + * @ordered + */ + protected static final String POP_SERVER_DEFAULT_ = null; + + /** + * The cached value of the '{@link #getPopServer() Pop Server}' attribute. + * + * + * @see #getPopServer() + * @generated + * @ordered + */ + protected String popServer = POP_SERVER_DEFAULT_; + + /** + * The default value of the '{@link #getPopUsername() Pop Username}' attribute. + * + * + * @see #getPopUsername() + * @generated + * @ordered + */ + protected static final String POP_USERNAME_DEFAULT_ = null; + + /** + * The cached value of the '{@link #getPopUsername() Pop Username}' attribute. + * + * + * @see #getPopUsername() + * @generated + * @ordered + */ + protected String popUsername = POP_USERNAME_DEFAULT_; + + /** + * The default value of the '{@link #getPopPassword() Pop Password}' attribute. + * + * + * @see #getPopPassword() + * @generated + * @ordered + */ + protected static final String POP_PASSWORD_DEFAULT_ = null; + + /** + * The cached value of the '{@link #getPopPassword() Pop Password}' attribute. + * + * + * @see #getPopPassword() + * @generated + * @ordered + */ + protected String popPassword = POP_PASSWORD_DEFAULT_; + + /** + * The cached value of the '{@link #getAny() Any}' attribute list. + * + * + * @see #getAny() + * @generated + * @ordered + */ + + protected Sequence any = null; + + /** + * The default value of the '{@link #getId() Id}' attribute. + * + * + * @see #getId() + * @generated + * @ordered + */ + protected static final String ID_DEFAULT_ = null; + + /** + * The cached value of the '{@link #getId() Id}' attribute. + * + * + * @see #getId() + * @generated + * @ordered + */ + protected String id = ID_DEFAULT_; + + /** + * The default value of the '{@link #getFeedType() Feed Type}' attribute. + * + * + * @see #getFeedType() + * @generated + * @ordered + */ + protected static final String FEED_TYPE_DEFAULT_ = null; + + /** + * The cached value of the '{@link #getFeedType() Feed Type}' attribute. + * + * + * @see #getFeedType() + * @generated + * @ordered + */ + protected String feedType = FEED_TYPE_DEFAULT_; + + + /** + * + * + * @generated + */ + public SourceTypeNonSDOImpl() + { + super(); + } + + + + /** + * + * + * @generated + */ + public String getName() + { + return name; + } + /** + * + * + * @generated + */ + public void setName(String newName) + { + name = newName; + } + + /** + * + * + * @generated + */ + public String getAddress() + { + return address; + } + /** + * + * + * @generated + */ + public void setAddress(String newAddress) + { + address = newAddress; + } + + /** + * + * + * @generated + */ + public String getLastChecked() + { + return lastChecked; + } + /** + * + * + * @generated + */ + public void setLastChecked(String newLastChecked) + { + lastChecked = newLastChecked; + } + + /** + * + * + * @generated + */ + public String getFeedAddress() + { + return feedAddress; + } + /** + * + * + * @generated + */ + public void setFeedAddress(String newFeedAddress) + { + feedAddress = newFeedAddress; + } + + /** + * + * + * @generated + */ + public String getPopServer() + { + return popServer; + } + /** + * + * + * @generated + */ + public void setPopServer(String newPopServer) + { + popServer = newPopServer; + } + + /** + * + * + * @generated + */ + public String getPopUsername() + { + return popUsername; + } + /** + * + * + * @generated + */ + public void setPopUsername(String newPopUsername) + { + popUsername = newPopUsername; + } + + /** + * + * + * @generated + */ + public String getPopPassword() + { + return popPassword; + } + /** + * + * + * @generated + */ + public void setPopPassword(String newPopPassword) + { + popPassword = newPopPassword; + } + + /** + * + * + * @generated + */ + public String getId() + { + return id; + } + /** + * + * + * @generated + */ + public void setId(String newId) + { + id = newId; + } + + /** + * + * + * @generated + */ + public String getFeedType() + { + return feedType; + } + /** + * + * + * @generated + */ + public void setFeedType(String newType) + { + feedType = newType; + } + + public Sequence getAny(){ + return null; + } + +} //SourceTypeImpl diff --git a/tags/java/sca/1.5.1-RC4/demos/alert-aggregator-webapp/src/main/resources/Alerts.wsdl b/tags/java/sca/1.5.1-RC4/demos/alert-aggregator-webapp/src/main/resources/Alerts.wsdl new file mode 100644 index 0000000000..8b376240c8 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/demos/alert-aggregator-webapp/src/main/resources/Alerts.wsdl @@ -0,0 +1,88 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/demos/alert-aggregator-webapp/src/main/resources/Alerts.xsd b/tags/java/sca/1.5.1-RC4/demos/alert-aggregator-webapp/src/main/resources/Alerts.xsd new file mode 100644 index 0000000000..f0ec561ad8 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/demos/alert-aggregator-webapp/src/main/resources/Alerts.xsd @@ -0,0 +1,80 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/tags/java/sca/1.5.1-RC4/demos/alert-aggregator-webapp/src/main/resources/AlertsSources.wsdl b/tags/java/sca/1.5.1-RC4/demos/alert-aggregator-webapp/src/main/resources/AlertsSources.wsdl new file mode 100644 index 0000000000..d5642a32d1 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/demos/alert-aggregator-webapp/src/main/resources/AlertsSources.wsdl @@ -0,0 +1,124 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/demos/alert-aggregator-webapp/src/main/resources/alerts-client.composite b/tags/java/sca/1.5.1-RC4/demos/alert-aggregator-webapp/src/main/resources/alerts-client.composite new file mode 100644 index 0000000000..49f44f9da8 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/demos/alert-aggregator-webapp/src/main/resources/alerts-client.composite @@ -0,0 +1,49 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/demos/alert-aggregator-webapp/src/main/resources/alerts.composite b/tags/java/sca/1.5.1-RC4/demos/alert-aggregator-webapp/src/main/resources/alerts.composite new file mode 100644 index 0000000000..c359b275be --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/demos/alert-aggregator-webapp/src/main/resources/alerts.composite @@ -0,0 +1,85 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/demos/alert-aggregator-webapp/src/main/resources/sources.xml b/tags/java/sca/1.5.1-RC4/demos/alert-aggregator-webapp/src/main/resources/sources.xml new file mode 100644 index 0000000000..e45250eddb --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/demos/alert-aggregator-webapp/src/main/resources/sources.xml @@ -0,0 +1,34 @@ + + + + + + BBC News + http://news.bbc.co.uk/ + 2008-06-20 12:00:00 + http://newsrss.bbc.co.uk/rss/newsonline_uk_edition/world/rss.xml + + + Engadget + http://www.engadget.com + 2008-06-20 12:00:00 + http://www.engadget.com/rss.xml + + diff --git a/tags/java/sca/1.5.1-RC4/demos/alert-aggregator-webapp/src/main/webapp/AlertAggregator.html b/tags/java/sca/1.5.1-RC4/demos/alert-aggregator-webapp/src/main/webapp/AlertAggregator.html new file mode 100644 index 0000000000..8b472fd0fa --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/demos/alert-aggregator-webapp/src/main/webapp/AlertAggregator.html @@ -0,0 +1,330 @@ + + + +Apache Tuscany Alert Aggregator Sample + + + + + + + + + + + + + + + +

Apache Tuscany Alert Aggregator Demo

+
+

Alert Sources:

+ +
Refreshing...
+

+

+

Refreshing...
+

Back to top

+
+

+

+ + + diff --git a/tags/java/sca/1.5.1-RC4/demos/alert-aggregator-webapp/src/main/webapp/META-INF/sca-contribution.xml b/tags/java/sca/1.5.1-RC4/demos/alert-aggregator-webapp/src/main/webapp/META-INF/sca-contribution.xml new file mode 100644 index 0000000000..09b7cce2b4 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/demos/alert-aggregator-webapp/src/main/webapp/META-INF/sca-contribution.xml @@ -0,0 +1,25 @@ + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/demos/alert-aggregator-webapp/src/main/webapp/WEB-INF/geronimo-web.xml b/tags/java/sca/1.5.1-RC4/demos/alert-aggregator-webapp/src/main/webapp/WEB-INF/geronimo-web.xml new file mode 100644 index 0000000000..609564e950 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/demos/alert-aggregator-webapp/src/main/webapp/WEB-INF/geronimo-web.xml @@ -0,0 +1,37 @@ + + + + + + org.apache.tuscany.sca + demo-alert-aggregator-webapp + 1.5.1 + war + + + + org.apache.axiom + org.apache.axis2 + org.apache.commons + org.jdom + + + diff --git a/tags/java/sca/1.5.1-RC4/demos/alert-aggregator-webapp/src/main/webapp/WEB-INF/web.xml b/tags/java/sca/1.5.1-RC4/demos/alert-aggregator-webapp/src/main/webapp/WEB-INF/web.xml new file mode 100644 index 0000000000..a81165e1b4 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/demos/alert-aggregator-webapp/src/main/webapp/WEB-INF/web.xml @@ -0,0 +1,41 @@ + + + + + + + Apache Tuscany Alert Aggregator Demo + + + tuscany + org.apache.tuscany.sca.host.webapp.TuscanyServletFilter + + + + tuscany + /* + + + + AlertAggregator.html + + + diff --git a/tags/java/sca/1.5.1-RC4/demos/alert-aggregator-webapp/src/main/webapp/pop.png b/tags/java/sca/1.5.1-RC4/demos/alert-aggregator-webapp/src/main/webapp/pop.png new file mode 100644 index 0000000000..1cf1df24a7 Binary files /dev/null and b/tags/java/sca/1.5.1-RC4/demos/alert-aggregator-webapp/src/main/webapp/pop.png differ diff --git a/tags/java/sca/1.5.1-RC4/demos/alert-aggregator-webapp/src/main/webapp/rss.png b/tags/java/sca/1.5.1-RC4/demos/alert-aggregator-webapp/src/main/webapp/rss.png new file mode 100644 index 0000000000..b3c949d224 Binary files /dev/null and b/tags/java/sca/1.5.1-RC4/demos/alert-aggregator-webapp/src/main/webapp/rss.png differ diff --git a/tags/java/sca/1.5.1-RC4/demos/alert-aggregator-webapp/src/main/webapp/service.smd b/tags/java/sca/1.5.1-RC4/demos/alert-aggregator-webapp/src/main/webapp/service.smd new file mode 100644 index 0000000000..3c6b6c9b12 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/demos/alert-aggregator-webapp/src/main/webapp/service.smd @@ -0,0 +1 @@ +{"SMDVersion":".1","objectName":"AlertsService","serviceType":"JSON-RPC","serviceURL":"http://localhost:8085/sample-feed-aggregator/services/AlertsServiceJSONRPC","methods":[{"name":"getAllNewAlerts","parameters":[{"name":"param0","type":"STRING"}]}]} diff --git a/tags/java/sca/1.5.1-RC4/demos/alert-aggregator-webapp/src/main/webapp/sources.smd b/tags/java/sca/1.5.1-RC4/demos/alert-aggregator-webapp/src/main/webapp/sources.smd new file mode 100644 index 0000000000..b5f1824363 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/demos/alert-aggregator-webapp/src/main/webapp/sources.smd @@ -0,0 +1 @@ +{"SMDVersion":".1","objectName":"AlertsSourcesService","serviceType":"JSON-RPC","serviceURL":"http://localhost:8081/sample-feed-aggregator/services/AlertsSourcesServiceJSONRPC","methods":[{"name":"getAlertSources","parameters":[{"name":"param0","type":"STRING"}]},{"name":"getAlertSource","parameters":[{"name":"param0","type":"STRING"}]},{"name":"updateAlertSource","parameters":[{"name":"param0","type":"STRING"}]},{"name":"addAlertSource","parameters":[{"name":"param0","type":"STRING"}]},{"name":"removeAlertSource","parameters":[{"name":"param0","type":"STRING"}]}]} diff --git a/tags/java/sca/1.5.1-RC4/demos/alert-aggregator-webapp/src/main/webapp/style.css b/tags/java/sca/1.5.1-RC4/demos/alert-aggregator-webapp/src/main/webapp/style.css new file mode 100644 index 0000000000..f5bbf23379 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/demos/alert-aggregator-webapp/src/main/webapp/style.css @@ -0,0 +1,176 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +p,table,li,h1,h2,h3 +{ +font-family: verdana, arial, 'sans serif'; +} + +p, h1, h2, h3, table, li, hr +{ +margin-left: 10pt; +} + +table +{ +border-color: black; +border-collapse: separate; +border-spacing: 0px 1px; + +margin-right: 10pt; +margin-left: 10pt; +width: 800px; +} + +.sourceDetailsTable +{ +width: 600px; +} + +tr, td +{ +margin-left: 0pt; +margin-right: 0pt; +padding-left: 10pt; +font-size: 90%; +} + +p,li,th +{ +font-size: 90%; +margin-left: 10pt; +} + +pre +{ +margin-left: 10pt; +} + +body +{ +#ffffff; +} + +h1,h2,h3,hr +{ +color: firebrick; +} + +a:link {COLOR: firebrick;} +a:visited {COLOR: firebrick;} +a:active {COLOR: navy;} + +.link +{ +COLOR: firebrick; +text-decoration: underline; +} + +.clickable +{ +cursor: pointer +} + +.unread_title +{ +font-weight: bold; +} + +.read_title +{ +font-weight: normal; +} + +.summary +{ +color: DimGrey; +} + +.hidden +{ +display: none; +} + +.source_name +{ +width: 600px; +} + +.alert_text +{ +width: 600px; +} + +.alert_data +{ +margin-left: 10px; +width: 800px; +height: 800px; +} + +.source_0 +{ +background-color: LightGreen; +} + +.source_1 +{ +background-color: LightSkyBlue; +} + +.source_2 +{ +background-color: Khaki; +} + +.source_3 +{ +background-color: LightPink; +} + +.source_4 +{ +background-color: Orange; +} + +.source_5 +{ +background-color: LightCoral; +} + +.source_6 +{ +background-color: Orchid; +} + +.source_7 +{ +background-color: Peru; +} + +.source_8 +{ +background-color: SpringGreen; +} + +.source_9 +{ +background-color: LightGrey; +} + diff --git a/tags/java/sca/1.5.1-RC4/demos/alert-aggregator-webapp/src/test/java/org/apache/tuscany/sca/demos/aggregator/AlertsIntegrationTest.java b/tags/java/sca/1.5.1-RC4/demos/alert-aggregator-webapp/src/test/java/org/apache/tuscany/sca/demos/aggregator/AlertsIntegrationTest.java new file mode 100644 index 0000000000..f0cb9ecfcb --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/demos/alert-aggregator-webapp/src/test/java/org/apache/tuscany/sca/demos/aggregator/AlertsIntegrationTest.java @@ -0,0 +1,97 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package org.apache.tuscany.sca.demos.aggregator; + +import java.io.ByteArrayInputStream; + +import junit.framework.Assert; + +import org.json.JSONObject; +import org.junit.AfterClass; +import org.junit.BeforeClass; +import org.junit.Test; + +import com.meterware.httpunit.PostMethodWebRequest; +import com.meterware.httpunit.WebConversation; +import com.meterware.httpunit.WebRequest; +import com.meterware.httpunit.WebResponse; + + +/** + */ +public class AlertsIntegrationTest { + //private static SCADomain scaDomain; + + @BeforeClass + public static void setUp() throws Exception { + //scaDomain = SCADomain.newInstance("alerts.composite"); + } + + /** + * Runs after each test method + */ + @AfterClass + public static void tearDown() { + //scaDomain.close(); + } + +/* Use this if you want to test locally without deploying to a web container + public void testWait() throws Exception { + System.out.println("Feed aggregator server started (press enter to shutdown)"); + System.in.read(); + System.out.println("Feed aggregator server stopped"); + } +*/ + + @Test + public void testGetAllNewAlerts() throws Exception { + JSONObject jsonRequest = new JSONObject("{\"params\":[\"sometext\"],\"method\":\"getAllNewAlerts\",\"id\":2}"); + JSONObject jsonResp = callService ("http://localhost:8085/demo-alert-aggregator-webapp/AlertsServiceJSONRPC", + jsonRequest); + Assert.assertNotNull(jsonResp); + } + + @Test + public void testAddAlertSources() throws Exception { + JSONObject jsonRequest = new JSONObject("{\"params\":[{\"name\":\"news\",\"id\":\"2\",\"address\":\"www.news.com\",\"feedAddress\":\"http://news.com.com/2547-1_3-0-20.xml\",\"feedType\":\"rss\",\"lastChecked\":\"lastChecked\",\"javaClass\":\"org.apache.tuscany.sca.demos.aggregator.types.impl.SourceTypeImpl\"}],\"method\":\"addAlertSource\",\"id\":2}"); + JSONObject jsonResp = callService ("http://localhost:8085/demo-alert-aggregator-webapp/AlertsSourcesServiceJSONRPC", + jsonRequest); + Assert.assertNotNull(jsonResp); + } + + @Test + public void testGetAlertSources() throws Exception { + JSONObject jsonRequest = new JSONObject("{\"params\":[\"sometext\"],\"method\":\"getAlertSources\",\"id\":2}"); + JSONObject jsonResp = callService ("http://localhost:8085/demo-alert-aggregator-webapp/AlertsSourcesServiceJSONRPC", + jsonRequest); + Assert.assertEquals("BBC News", jsonResp.getJSONObject("result").getJSONObject("source").optJSONArray("list").getJSONObject(0).getString("name")); + } + + public JSONObject callService(String url, JSONObject jsonRequest) throws Exception { + System.out.println("Request = " + jsonRequest.toString()); + WebConversation wc = new WebConversation(); + WebRequest request = new PostMethodWebRequest( url, + new ByteArrayInputStream(jsonRequest.toString().getBytes("UTF-8")),"application/json"); + WebResponse response = wc.getResource(request); + System.out.println("Response= " + response.getText()); + Assert.assertEquals(200, response.getResponseCode()); + return new JSONObject(response.getText()); + } +} diff --git a/tags/java/sca/1.5.1-RC4/demos/bigbank-account/README b/tags/java/sca/1.5.1-RC4/demos/bigbank-account/README new file mode 100644 index 0000000000..5c0d850c5e --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/demos/bigbank-account/README @@ -0,0 +1,4 @@ +bigbank-account is part of a larger demo called bigbank. +Please see the Readme file under bigbank to understand how bigbank-account fits into the overall demo. + + diff --git a/tags/java/sca/1.5.1-RC4/demos/bigbank-account/build-dojo.xml b/tags/java/sca/1.5.1-RC4/demos/bigbank-account/build-dojo.xml new file mode 100644 index 0000000000..9cc60c3d96 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/demos/bigbank-account/build-dojo.xml @@ -0,0 +1,92 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/demos/bigbank-account/build.xml b/tags/java/sca/1.5.1-RC4/demos/bigbank-account/build.xml new file mode 100644 index 0000000000..f7bc5df79f --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/demos/bigbank-account/build.xml @@ -0,0 +1,85 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/demos/bigbank-account/pom.xml b/tags/java/sca/1.5.1-RC4/demos/bigbank-account/pom.xml new file mode 100644 index 0000000000..2e318635ad --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/demos/bigbank-account/pom.xml @@ -0,0 +1,76 @@ + + + + 4.0.0 + + org.apache.tuscany.sca + tuscany-demos + 1.5.1 + ../pom.xml + + demo-bigbank-account + jar + Apache Tuscany SCA Demo BigBank Account + + + + apache.incubator + http://people.apache.org/repo/m2-incubating-repository + + + + + + org.apache.tuscany.sca + tuscany-core-spi + 1.5.1 + + + + org.apache.tuscany.sca + tuscany-policy-security + 1.5.1 + + + + org.apache.ws.security + wss4j + 1.5.3 + + + + + demo-bigbank-account + + + org.apache.maven.plugins + maven-antrun-plugin + + + + ant + ant-trax + 1.6.5 + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/demos/bigbank-account/src/main/java/bigbank/account/checking/CheckingAccountDetails.java b/tags/java/sca/1.5.1-RC4/demos/bigbank-account/src/main/java/bigbank/account/checking/CheckingAccountDetails.java new file mode 100644 index 0000000000..57c1adcba0 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/demos/bigbank-account/src/main/java/bigbank/account/checking/CheckingAccountDetails.java @@ -0,0 +1,50 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES 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.account.checking; + +/** + * @version $$Rev$$ $$Date: 2007-04-09 12:03:34 -0700 (Mon, 09 Apr + * 2007) $$ + */ + +public class CheckingAccountDetails { + private String accountNumber; + private double balance; + + public String getAccountNumber() { + return accountNumber; + } + + public void setAccountNumber(String n) { + this.accountNumber = n; + } + + public double getBalance() { + return balance; + } + + public void setBalance(double b) { + this.balance = b; + } + + @Override + public String toString() { + return accountNumber + ", balance:" + balance; + } +} diff --git a/tags/java/sca/1.5.1-RC4/demos/bigbank-account/src/main/java/bigbank/account/checking/CheckingAccountService.java b/tags/java/sca/1.5.1-RC4/demos/bigbank-account/src/main/java/bigbank/account/checking/CheckingAccountService.java new file mode 100644 index 0000000000..bf919525c4 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/demos/bigbank-account/src/main/java/bigbank/account/checking/CheckingAccountService.java @@ -0,0 +1,37 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES 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.account.checking; + +import org.osoa.sca.annotations.Remotable; +import org.osoa.sca.annotations.Service; + +/** + * @version $$Rev$$ $$Date$$ + */ +@Service +@Remotable +public interface CheckingAccountService { + + public CheckingAccountDetails getAccountDetails(String customerID); + + public double deposit(String accountNo, double depositAmt); + + public double withdraw(String accountNo, double withdrawalAmount); + +} diff --git a/tags/java/sca/1.5.1-RC4/demos/bigbank-account/src/main/java/bigbank/account/checking/CheckingAccountServiceImpl.java b/tags/java/sca/1.5.1-RC4/demos/bigbank-account/src/main/java/bigbank/account/checking/CheckingAccountServiceImpl.java new file mode 100644 index 0000000000..0ed4b1dd2e --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/demos/bigbank-account/src/main/java/bigbank/account/checking/CheckingAccountServiceImpl.java @@ -0,0 +1,66 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES 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.account.checking; + +import java.util.HashMap; +import java.util.Map; + +import org.osoa.sca.annotations.Service; + +/** + * + * */ + +@Service(CheckingAccountService.class) +public class CheckingAccountServiceImpl implements CheckingAccountService { + private Map custAcctMap = new HashMap(); + private Map checkingAccts = new HashMap(); + + public CheckingAccountServiceImpl() { + custAcctMap.put("Customer_01", "CHA_Customer_01"); + custAcctMap.put("Customer_02", "CHA_Customer_02"); + custAcctMap.put("Customer_03", "CHA_Customer_03"); + + checkingAccts.put("CHA_Customer_01", new Double(1000)); + checkingAccts.put("CHA_Customer_02", new Double(1500)); + checkingAccts.put("CHA_Customer_03", new Double(2000)); + } + + public double deposit(String accountNo, double depositAmt) { + checkingAccts.put(accountNo, new Double(checkingAccts.get(accountNo).doubleValue() + depositAmt)); + return checkingAccts.get(accountNo).doubleValue(); + } + + public CheckingAccountDetails getAccountDetails(String customerID) { + CheckingAccountDetails checkingAccount = new CheckingAccountDetails(); + checkingAccount.setAccountNumber(custAcctMap.get(customerID)); + checkingAccount.setBalance(checkingAccts.get(checkingAccount.getAccountNumber()).doubleValue()); + + return checkingAccount; + } + + public double withdraw(String accountNo, double withdrawalAmount) { + double balance = checkingAccts.get(accountNo).doubleValue(); + if ( balance - withdrawalAmount > 0 ) { + balance = balance - withdrawalAmount; + checkingAccts.put(accountNo, balance); + } + return balance; + } +} diff --git a/tags/java/sca/1.5.1-RC4/demos/bigbank-account/src/main/java/bigbank/account/savings/SavingsAccountDetails.java b/tags/java/sca/1.5.1-RC4/demos/bigbank-account/src/main/java/bigbank/account/savings/SavingsAccountDetails.java new file mode 100644 index 0000000000..cc9023da60 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/demos/bigbank-account/src/main/java/bigbank/account/savings/SavingsAccountDetails.java @@ -0,0 +1,52 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES 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.account.savings; + +import java.io.Serializable; + +/** + * @version $$Rev$$ $$Date: 2007-04-09 12:03:34 -0700 (Mon, 09 Apr + * 2007) $$ + */ + +public class SavingsAccountDetails implements Serializable { + private String accountNumber; + private double balance; + + public String getAccountNumber() { + return accountNumber; + } + + public void setAccountNumber(String n) { + this.accountNumber = n; + } + + public double getBalance() { + return balance; + } + + public void setBalance(double b) { + this.balance = b; + } + + @Override + public String toString() { + return accountNumber + ", balance:" + balance; + } +} diff --git a/tags/java/sca/1.5.1-RC4/demos/bigbank-account/src/main/java/bigbank/account/savings/SavingsAccountService.java b/tags/java/sca/1.5.1-RC4/demos/bigbank-account/src/main/java/bigbank/account/savings/SavingsAccountService.java new file mode 100644 index 0000000000..5bf6e6d26b --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/demos/bigbank-account/src/main/java/bigbank/account/savings/SavingsAccountService.java @@ -0,0 +1,35 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES 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.account.savings; + +import org.osoa.sca.annotations.Remotable; + +/** + * @version $$Rev$$ $$Date$$ + */ +@Remotable +public interface SavingsAccountService { + + public SavingsAccountDetails getAccountDetails(String customerID); + + public double deposit(String accountNo, double depositAmt); + + public double withdraw(String accountNo, double withdrawalAmount); + +} diff --git a/tags/java/sca/1.5.1-RC4/demos/bigbank-account/src/main/java/bigbank/account/savings/SavingsAccountServiceImpl.java b/tags/java/sca/1.5.1-RC4/demos/bigbank-account/src/main/java/bigbank/account/savings/SavingsAccountServiceImpl.java new file mode 100644 index 0000000000..1f4f02ea6d --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/demos/bigbank-account/src/main/java/bigbank/account/savings/SavingsAccountServiceImpl.java @@ -0,0 +1,66 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES 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.account.savings; + +import java.util.HashMap; +import java.util.Map; + +import org.osoa.sca.annotations.Service; + +/** + * + * */ + +@Service(SavingsAccountService.class) +public class SavingsAccountServiceImpl implements SavingsAccountService { + private Map custAcctMap = new HashMap(); + private Map savingsAccts = new HashMap(); + + public SavingsAccountServiceImpl() { + custAcctMap.put("Customer_01", "SVA_Customer_01"); + custAcctMap.put("Customer_02", "SVA_Customer_02"); + custAcctMap.put("Customer_03", "SVA_Customer_03"); + + savingsAccts.put("SVA_Customer_01", new Double(1000)); + savingsAccts.put("SVA_Customer_02", new Double(1500)); + savingsAccts.put("SVA_Customer_03", new Double(2000)); + } + + public double deposit(String accountNo, double depositAmt) { + savingsAccts.put(accountNo, new Double(savingsAccts.get(accountNo).doubleValue() + depositAmt)); + return savingsAccts.get(accountNo).doubleValue(); + } + + public SavingsAccountDetails getAccountDetails(String customerID) { + SavingsAccountDetails savingsAccount = new SavingsAccountDetails(); + savingsAccount.setAccountNumber(custAcctMap.get(customerID)); + savingsAccount.setBalance(savingsAccts.get(savingsAccount.getAccountNumber()).doubleValue()); + + return savingsAccount; + } + + public double withdraw(String accountNo, double withdrawalAmount) { + double balance = savingsAccts.get(accountNo).doubleValue(); + if ( balance - withdrawalAmount > 0 ) { + balance = balance - withdrawalAmount; + savingsAccts.put(accountNo, balance); + } + return balance; + } +} diff --git a/tags/java/sca/1.5.1-RC4/demos/bigbank-account/src/main/java/bigbank/account/security/AccountsDataPasswordCallbackHandler.java b/tags/java/sca/1.5.1-RC4/demos/bigbank-account/src/main/java/bigbank/account/security/AccountsDataPasswordCallbackHandler.java new file mode 100644 index 0000000000..579b4ee64b --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/demos/bigbank-account/src/main/java/bigbank/account/security/AccountsDataPasswordCallbackHandler.java @@ -0,0 +1,54 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES 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.account.security; + +import java.io.IOException; + +import javax.security.auth.callback.Callback; +import javax.security.auth.callback.CallbackHandler; +import javax.security.auth.callback.UnsupportedCallbackException; + +import org.apache.ws.security.WSPasswordCallback; + +/** + * Sample userid passwd generation class + */ +public class AccountsDataPasswordCallbackHandler implements CallbackHandler { + + public void handle(Callback[] callbacks) throws IOException, + UnsupportedCallbackException { + for (int i = 0; i < callbacks.length; i++) { + WSPasswordCallback pwcb = (WSPasswordCallback)callbacks[i]; + if ( pwcb.getUsage() == WSPasswordCallback.SIGNATURE ) { + System.out.println(" Usage is SIGNATURE ... "); + pwcb.setPassword("bbservice"); + } else if ( pwcb.getUsage() == WSPasswordCallback.USERNAME_TOKEN_UNKNOWN ) { + System.out.println("*** Calling ACCOUNTS-DATA Passwd Handler for AUTHENTICATING userID = " + + pwcb.getIdentifer() + " and password = " + pwcb.getPassword() ); + if ( pwcb.getIdentifer().equals("bbaservice") && pwcb.getPassword().equals("bbaservice")) { + System.out.println("AUTHENTICATION SUCCESSFUL!"); + } else { + System.out.println("AUTHENTICATION FAILED!"); + throw new UnsupportedCallbackException(pwcb, "UserId - Password Authentication Failed!"); + } + } + } + } + +} diff --git a/tags/java/sca/1.5.1-RC4/demos/bigbank-account/src/main/java/bigbank/account/security/BigbankCheckingsAcl.java b/tags/java/sca/1.5.1-RC4/demos/bigbank-account/src/main/java/bigbank/account/security/BigbankCheckingsAcl.java new file mode 100644 index 0000000000..5c64e11d10 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/demos/bigbank-account/src/main/java/bigbank/account/security/BigbankCheckingsAcl.java @@ -0,0 +1,48 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES 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.account.security; + +import java.security.Principal; +import java.util.Hashtable; +import java.util.Map; + +/** + * @version $Rev$ $Date$ + */ +public class BigbankCheckingsAcl { + private static MapcheckingsAcl = new Hashtable(); + + static { + checkingsAcl.put("bbaservice", "Customer_01"); + checkingsAcl.put("bbUser01", "Customer_01"); + } + + + public static void authorize(Principal principal, String resource) { + if ( checkingsAcl.get(principal.getName()) == null || + !checkingsAcl.get(principal.getName()).equals(resource) ) { + throw new RuntimeException("User - " + principal.getName() + " not authorized to access account " + + resource); + } else { + System.out.println("Successfully Authorized '" + principal.getName() + " to access accounts of " + resource); + } + } + +} diff --git a/tags/java/sca/1.5.1-RC4/demos/bigbank-account/src/main/java/bigbank/account/security/CheckingsDeptAuthImplementationPolicyProvider.java b/tags/java/sca/1.5.1-RC4/demos/bigbank-account/src/main/java/bigbank/account/security/CheckingsDeptAuthImplementationPolicyProvider.java new file mode 100644 index 0000000000..c98dcacbf3 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/demos/bigbank-account/src/main/java/bigbank/account/security/CheckingsDeptAuthImplementationPolicyProvider.java @@ -0,0 +1,90 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES 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.account.security; + +import org.apache.tuscany.sca.assembly.ConfiguredOperation; +import org.apache.tuscany.sca.assembly.Implementation; +import org.apache.tuscany.sca.assembly.OperationsConfigurator; +import org.apache.tuscany.sca.interfacedef.Operation; +import org.apache.tuscany.sca.invocation.Interceptor; +import org.apache.tuscany.sca.invocation.Phase; +import org.apache.tuscany.sca.policy.PolicySet; +import org.apache.tuscany.sca.provider.PolicyProvider; +import org.apache.tuscany.sca.runtime.RuntimeComponent; + +/** + * @version $Rev$ $Date$ + */ +public class CheckingsDeptAuthImplementationPolicyProvider implements PolicyProvider { + private RuntimeComponent component; + private Implementation implementation; + + public CheckingsDeptAuthImplementationPolicyProvider(RuntimeComponent component, Implementation implementation) { + super(); + this.component = component; + this.implementation = implementation; + } + + private String getContext() { + return "component.implementation: " + component.getURI() + "(" + implementation.getClass().getName() + ")"; + } + + private PolicySet findPolicySet(Operation operation) { + for (PolicySet ps : component.getPolicySets()) { + for (Object p : ps.getPolicies()) { + if (CheckingsDeptAuthPolicy.class.isInstance(p)) { + return ps; + } + } + } + + if ( component instanceof OperationsConfigurator ) { + for ( ConfiguredOperation confOp : ((OperationsConfigurator)component).getConfiguredOperations() ) { + if ( confOp.getName().equals(operation.getName())) { + for (PolicySet ps : confOp.getPolicySets()) { + for (Object p : ps.getPolicies()) { + if (CheckingsDeptAuthPolicy.class.isInstance(p)) { + return ps; + } + } + } + } + } + } + + return null; + } + + /** + * @see org.apache.tuscany.sca.provider.PolicyProvider#createInterceptor(org.apache.tuscany.sca.interfacedef.Operation) + */ + public Interceptor createInterceptor(Operation operation) { + PolicySet ps = findPolicySet(operation); + return ps == null ? null : new CheckingsDeptAuthPolicyInterceptor(getContext(), operation, ps); + } + + /** + * @see org.apache.tuscany.sca.provider.PolicyProvider#getPhase() + */ + public String getPhase() { + return Phase.IMPLEMENTATION_POLICY; + } + +} diff --git a/tags/java/sca/1.5.1-RC4/demos/bigbank-account/src/main/java/bigbank/account/security/CheckingsDeptAuthPolicy.java b/tags/java/sca/1.5.1-RC4/demos/bigbank-account/src/main/java/bigbank/account/security/CheckingsDeptAuthPolicy.java new file mode 100644 index 0000000000..121ee9a3f8 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/demos/bigbank-account/src/main/java/bigbank/account/security/CheckingsDeptAuthPolicy.java @@ -0,0 +1,46 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES 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.account.security; + +import javax.xml.namespace.QName; + +import org.apache.tuscany.sca.policy.Policy; + +/** + * @version $Rev$ $Date$ + */ +public class CheckingsDeptAuthPolicy implements Policy { + + public QName getSchemaName() { + // TODO Auto-generated method stub + return null; + } + + public boolean isUnresolved() { + // TODO Auto-generated method stub + return false; + } + + public void setUnresolved(boolean unresolved) { + // TODO Auto-generated method stub + + } + +} diff --git a/tags/java/sca/1.5.1-RC4/demos/bigbank-account/src/main/java/bigbank/account/security/CheckingsDeptAuthPolicyInterceptor.java b/tags/java/sca/1.5.1-RC4/demos/bigbank-account/src/main/java/bigbank/account/security/CheckingsDeptAuthPolicyInterceptor.java new file mode 100644 index 0000000000..1d565f7ca1 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/demos/bigbank-account/src/main/java/bigbank/account/security/CheckingsDeptAuthPolicyInterceptor.java @@ -0,0 +1,79 @@ +package bigbank.account.security; + +import java.security.Principal; +import java.util.logging.ConsoleHandler; +import java.util.logging.Handler; +import java.util.logging.Level; +import java.util.logging.Logger; + +import javax.xml.namespace.QName; + +import org.apache.tuscany.sca.interfacedef.Operation; +import org.apache.tuscany.sca.invocation.Interceptor; +import org.apache.tuscany.sca.invocation.Invoker; +import org.apache.tuscany.sca.invocation.Message; +import org.apache.tuscany.sca.policy.PolicySet; +import org.apache.tuscany.sca.policy.SecurityUtil; + +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +/** + * Policy handler to handle PolicySet related to Logging with the QName + * {http://tuscany.apache.org/xmlns/sca/1.0/impl/java}LoggingPolicy + */ +public class CheckingsDeptAuthPolicyInterceptor implements Interceptor { + private Invoker next; + + public CheckingsDeptAuthPolicyInterceptor(String context, Operation operation, PolicySet policySet) { + super(); + init(); + } + + private final void init() { + } + + public Message invoke(Message msg) { + Object msgBody = msg.getBody(); + if (msgBody instanceof Object[]) { + Object args[] = (Object[])msg.getBody(); + Principal principal = SecurityUtil.getPrincipal(msg); + if (principal != null){ + BigbankCheckingsAcl.authorize(principal, + (String)args[0]); + } + } + + Message responseMsg = null; + try { + responseMsg = getNext().invoke(msg); + return responseMsg; + } catch (RuntimeException e) { + throw e; + } + } + + public Invoker getNext() { + return next; + } + + public void setNext(Invoker next) { + this.next = next; + } +} diff --git a/tags/java/sca/1.5.1-RC4/demos/bigbank-account/src/main/java/bigbank/account/security/CheckingsDeptAuthPolicyProviderFactory.java b/tags/java/sca/1.5.1-RC4/demos/bigbank-account/src/main/java/bigbank/account/security/CheckingsDeptAuthPolicyProviderFactory.java new file mode 100644 index 0000000000..5fecef691e --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/demos/bigbank-account/src/main/java/bigbank/account/security/CheckingsDeptAuthPolicyProviderFactory.java @@ -0,0 +1,75 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES 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.account.security; + +import org.apache.tuscany.sca.assembly.Binding; +import org.apache.tuscany.sca.assembly.Implementation; +import org.apache.tuscany.sca.core.ExtensionPointRegistry; +import org.apache.tuscany.sca.provider.PolicyProvider; +import org.apache.tuscany.sca.provider.PolicyProviderFactory; +import org.apache.tuscany.sca.runtime.RuntimeComponent; +import org.apache.tuscany.sca.runtime.RuntimeComponentReference; +import org.apache.tuscany.sca.runtime.RuntimeComponentService; + +/** + * @version $Rev$ $Date$ + */ +public class CheckingsDeptAuthPolicyProviderFactory implements PolicyProviderFactory { + private ExtensionPointRegistry registry; + + public CheckingsDeptAuthPolicyProviderFactory(ExtensionPointRegistry registry) { + super(); + this.registry = registry; + } + + /** + * @see org.apache.tuscany.sca.provider.PolicyProviderFactory#createImplementationPolicyProvider(org.apache.tuscany.sca.runtime.RuntimeComponent, org.apache.tuscany.sca.assembly.Implementation) + */ + public PolicyProvider createImplementationPolicyProvider(RuntimeComponent component, Implementation implementation) { + return new CheckingsDeptAuthImplementationPolicyProvider(component, implementation); + } + + /** + * @see org.apache.tuscany.sca.provider.PolicyProviderFactory#createReferencePolicyProvider(org.apache.tuscany.sca.runtime.RuntimeComponent, org.apache.tuscany.sca.runtime.RuntimeComponentReference, org.apache.tuscany.sca.assembly.Binding) + */ + public PolicyProvider createReferencePolicyProvider(RuntimeComponent component, + RuntimeComponentReference reference, + Binding binding) { + return null; + } + + /** + * @see org.apache.tuscany.sca.provider.PolicyProviderFactory#createServicePolicyProvider(org.apache.tuscany.sca.runtime.RuntimeComponent, org.apache.tuscany.sca.runtime.RuntimeComponentService, org.apache.tuscany.sca.assembly.Binding) + */ + public PolicyProvider createServicePolicyProvider(RuntimeComponent component, + RuntimeComponentService service, + Binding binding) { + return null; + } + + /** + * @see org.apache.tuscany.sca.provider.ProviderFactory#getModelType() + */ + public Class getModelType() { + // TODO Auto-generated method stub + return null; + } + +} diff --git a/tags/java/sca/1.5.1-RC4/demos/bigbank-account/src/main/java/bigbank/account/security/CheckingsDeptAuthorizationPolicyHandler.java b/tags/java/sca/1.5.1-RC4/demos/bigbank-account/src/main/java/bigbank/account/security/CheckingsDeptAuthorizationPolicyHandler.java new file mode 100644 index 0000000000..6667a4ba53 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/demos/bigbank-account/src/main/java/bigbank/account/security/CheckingsDeptAuthorizationPolicyHandler.java @@ -0,0 +1,67 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES 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.account.security; + +import java.security.Principal; + +import org.apache.tuscany.sca.invocation.Message; +import org.apache.tuscany.sca.policy.PolicySet; +import org.apache.tuscany.sca.policy.SecurityUtil; +import org.apache.tuscany.sca.policy.util.PolicyHandler; + +/** + * @version $Rev$ $Date$ + */ +public class CheckingsDeptAuthorizationPolicyHandler implements PolicyHandler { + private PolicySet applicablePolicySet = null; + + public void afterInvoke(Object... context) { + } + + public void beforeInvoke(Object... context) { + for ( int count = 0 ; count < context.length ; ++count ) { + if ( context[count] instanceof Message ) { + Message msg = (Message)context[count]; + Object args[] = (Object[])msg.getBody(); + Principal principal = SecurityUtil.getPrincipal(msg); + if (principal != null){ + BigbankCheckingsAcl.authorize(principal, + (String)args[0]); + } + } + } + } + + public void cleanUp(Object... arg0) { + } + + public PolicySet getApplicablePolicySet() { + return this.applicablePolicySet; + } + + public void setApplicablePolicySet(PolicySet policySet) { + this.applicablePolicySet = policySet; + } + + public void setUp(Object... arg0) { + + } + +} diff --git a/tags/java/sca/1.5.1-RC4/demos/bigbank-account/src/main/java/bigbank/account/security/CheckingsDeptAuthorizationPolicyProcessor.java b/tags/java/sca/1.5.1-RC4/demos/bigbank-account/src/main/java/bigbank/account/security/CheckingsDeptAuthorizationPolicyProcessor.java new file mode 100644 index 0000000000..da1b6e1d06 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/demos/bigbank-account/src/main/java/bigbank/account/security/CheckingsDeptAuthorizationPolicyProcessor.java @@ -0,0 +1,72 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES 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.account.security; + +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.ModelFactoryExtensionPoint; +import org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessor; +import org.apache.tuscany.sca.contribution.resolver.ModelResolver; +import org.apache.tuscany.sca.contribution.service.ContributionReadException; +import org.apache.tuscany.sca.contribution.service.ContributionResolveException; +import org.apache.tuscany.sca.contribution.service.ContributionWriteException; + +/** + * Implementation of a Policy Processor + * + */ +public class CheckingsDeptAuthorizationPolicyProcessor implements StAXArtifactProcessor { + private static final QName CHECKINGS_DEPT_AUTHORIZATION_POLICY_QNAME = new QName("http://bigbank/checkings", "AuthPolicy"); + public QName getArtifactType() { + return CHECKINGS_DEPT_AUTHORIZATION_POLICY_QNAME; + } + + public CheckingsDeptAuthorizationPolicyProcessor(ModelFactoryExtensionPoint modelFactories) { + } + + + public CheckingsDeptAuthPolicy read(XMLStreamReader reader) throws ContributionReadException, XMLStreamException { + CheckingsDeptAuthPolicy policy = new CheckingsDeptAuthPolicy(); + return policy; + } + + public void write(CheckingsDeptAuthPolicy policy, XMLStreamWriter writer) throws ContributionWriteException, + XMLStreamException { + String prefix = "tuscany"; + writer.writeStartElement(prefix, + CHECKINGS_DEPT_AUTHORIZATION_POLICY_QNAME.getLocalPart(), + CHECKINGS_DEPT_AUTHORIZATION_POLICY_QNAME.getNamespaceURI()); + writer.writeNamespace("chk", "http://bigbank/checkings"); + + + writer.writeEndElement(); + } + + public Class getModelType() { + return CheckingsDeptAuthPolicy.class; + } + + public void resolve(CheckingsDeptAuthPolicy arg0, ModelResolver arg1) throws ContributionResolveException { + + } + +} diff --git a/tags/java/sca/1.5.1-RC4/demos/bigbank-account/src/main/java/bigbank/account/stock/StockAccountDetails.java b/tags/java/sca/1.5.1-RC4/demos/bigbank-account/src/main/java/bigbank/account/stock/StockAccountDetails.java new file mode 100644 index 0000000000..1473436000 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/demos/bigbank-account/src/main/java/bigbank/account/stock/StockAccountDetails.java @@ -0,0 +1,68 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES 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.account.stock; + +/** + * @version $$Rev$$ $$Date: 2007-04-09 12:03:34 -0700 (Mon, 09 Apr + * 2007) $$ + */ + +public class StockAccountDetails { + private String accountNumber; + private String symbol; + private int quantity; + + public StockAccountDetails() { + } + + public StockAccountDetails(String acNo, String symbol, int qty) { + this.accountNumber = acNo; + this.symbol = symbol; + this.quantity = qty; + } + + public String getAccountNumber() { + return accountNumber; + } + + public void setAccountNumber(String n) { + this.accountNumber = n; + } + + public int getQuantity() { + return quantity; + } + + public void setQuantity(int a) { + this.quantity = a; + } + + public String getSymbol() { + return symbol; + } + + public void setSymbol(String s) { + this.symbol = s; + } + + @Override + public String toString() { + return accountNumber + ", symbol:" + symbol + ", quantity:" + quantity; + } +} diff --git a/tags/java/sca/1.5.1-RC4/demos/bigbank-account/src/main/java/bigbank/account/stock/StockAccountService.java b/tags/java/sca/1.5.1-RC4/demos/bigbank-account/src/main/java/bigbank/account/stock/StockAccountService.java new file mode 100644 index 0000000000..fcbf8a4831 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/demos/bigbank-account/src/main/java/bigbank/account/stock/StockAccountService.java @@ -0,0 +1,36 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES 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.account.stock; + +import org.osoa.sca.annotations.Remotable; + +/** + * + */ +@Remotable +public interface StockAccountService { + + public StockAccountDetails getAccountDetails(String customerID); + + public StockAccountDetails buy(String accountNo, String symbol, int quantity); + + public StockAccountDetails sell(String accountNo, String symbol, int quantity); + + +} diff --git a/tags/java/sca/1.5.1-RC4/demos/bigbank-account/src/main/java/bigbank/account/stock/StockAccountServiceImpl.java b/tags/java/sca/1.5.1-RC4/demos/bigbank-account/src/main/java/bigbank/account/stock/StockAccountServiceImpl.java new file mode 100644 index 0000000000..28101a1986 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/demos/bigbank-account/src/main/java/bigbank/account/stock/StockAccountServiceImpl.java @@ -0,0 +1,60 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES 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.account.stock; + +import java.util.HashMap; +import java.util.Map; + +import org.osoa.sca.annotations.Service; + +/** + * + * */ + +@Service(StockAccountService.class) +public class StockAccountServiceImpl implements StockAccountService { + private Map custAcctMap = new HashMap(); + private Map stockAccts = new HashMap(); + + public StockAccountServiceImpl() { + custAcctMap.put("Customer_01", "STA_Customer_01"); + custAcctMap.put("Customer_02", "STA_Customer_02"); + custAcctMap.put("Customer_03", "STA_Customer_03"); + + stockAccts.put("STA_Customer_01", new StockAccountDetails("STA_Customer_01", "IBM", 100)); + stockAccts.put("STA_Customer_02", new StockAccountDetails("STA_Customer_02", "IBM", 200)); + stockAccts.put("STA_Customer_03", new StockAccountDetails("STA_Customer_03", "SYM_3", 125)); + } + + + public StockAccountDetails buy(String accountNo, String symbol, int quantity) { + return null; + } + + public StockAccountDetails getAccountDetails(String customerID) { + return stockAccts.get(custAcctMap.get(customerID)); + } + + public StockAccountDetails sell(String accountNo, String symbol, int quantity) { + return null; + } + + + +} diff --git a/tags/java/sca/1.5.1-RC4/demos/bigbank-account/src/main/resources/CheckingsAccount.composite b/tags/java/sca/1.5.1-RC4/demos/bigbank-account/src/main/resources/CheckingsAccount.composite new file mode 100644 index 0000000000..cc76e30a75 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/demos/bigbank-account/src/main/resources/CheckingsAccount.composite @@ -0,0 +1,35 @@ + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/demos/bigbank-account/src/main/resources/META-INF/sca-contribution.xml b/tags/java/sca/1.5.1-RC4/demos/bigbank-account/src/main/resources/META-INF/sca-contribution.xml new file mode 100644 index 0000000000..c5532b879d --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/demos/bigbank-account/src/main/resources/META-INF/sca-contribution.xml @@ -0,0 +1,42 @@ + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/tags/java/sca/1.5.1-RC4/demos/bigbank-account/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessor b/tags/java/sca/1.5.1-RC4/demos/bigbank-account/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessor new file mode 100644 index 0000000000..6491a0d326 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/demos/bigbank-account/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessor @@ -0,0 +1,19 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT 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 +bigbank.account.security.CheckingsDeptAuthorizationPolicyProcessor;qname=http://bigbank/checkings#AuthPolicy,model=bigbank.account.security.CheckingsDeptAuthPolicy diff --git a/tags/java/sca/1.5.1-RC4/demos/bigbank-account/src/main/resources/META-INF/services/org.apache.tuscany.sca.policy.util.PolicyHandler b/tags/java/sca/1.5.1-RC4/demos/bigbank-account/src/main/resources/META-INF/services/org.apache.tuscany.sca.policy.util.PolicyHandler new file mode 100644 index 0000000000..b1bce4339d --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/demos/bigbank-account/src/main/resources/META-INF/services/org.apache.tuscany.sca.policy.util.PolicyHandler @@ -0,0 +1,20 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# +# PolicyHandlerClasses to interpret specific PolicyModels against specific QoS infrastructures +# handler classname;qname=;model= +bigbank.account.security.CheckingsDeptAuthorizationPolicyHandler;intent=http://bigbankAccount#authorization,model=bigbank.account.security.CheckingsDeptAuthPolicy diff --git a/tags/java/sca/1.5.1-RC4/demos/bigbank-account/src/main/resources/META-INF/services/org.apache.tuscany.sca.provider.PolicyProviderFactory b/tags/java/sca/1.5.1-RC4/demos/bigbank-account/src/main/resources/META-INF/services/org.apache.tuscany.sca.provider.PolicyProviderFactory new file mode 100644 index 0000000000..d6bfe2167e --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/demos/bigbank-account/src/main/resources/META-INF/services/org.apache.tuscany.sca.provider.PolicyProviderFactory @@ -0,0 +1,19 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT 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 policy extension +bigbank.account.security.CheckingsDeptAuthPolicyProviderFactory;model=bigbank.account.security.CheckingsDeptAuthPolicy \ No newline at end of file diff --git a/tags/java/sca/1.5.1-RC4/demos/bigbank-account/src/main/resources/SavingsAccount.composite b/tags/java/sca/1.5.1-RC4/demos/bigbank-account/src/main/resources/SavingsAccount.composite new file mode 100644 index 0000000000..696b96d6e6 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/demos/bigbank-account/src/main/resources/SavingsAccount.composite @@ -0,0 +1,34 @@ + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/demos/bigbank-account/src/main/resources/StockAccount.composite b/tags/java/sca/1.5.1-RC4/demos/bigbank-account/src/main/resources/StockAccount.composite new file mode 100644 index 0000000000..62c0b63003 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/demos/bigbank-account/src/main/resources/StockAccount.composite @@ -0,0 +1,34 @@ + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/demos/bigbank-account/src/main/resources/definitions.xml b/tags/java/sca/1.5.1-RC4/demos/bigbank-account/src/main/resources/definitions.xml new file mode 100644 index 0000000000..31a8798f8b --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/demos/bigbank-account/src/main/resources/definitions.xml @@ -0,0 +1,58 @@ + + + + + + + + Authorization Intent + + + + + + + + + UsernameToken + bigbank.account.security.AccountsDataPasswordCallbackHandler + + + + + + + + + + + + \ No newline at end of file diff --git a/tags/java/sca/1.5.1-RC4/demos/bigbank-account/src/main/resources/web/AccountJSON.html b/tags/java/sca/1.5.1-RC4/demos/bigbank-account/src/main/resources/web/AccountJSON.html new file mode 100644 index 0000000000..1609bf4b43 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/demos/bigbank-account/src/main/resources/web/AccountJSON.html @@ -0,0 +1,92 @@ + + + +Tuscany JSON-RPC BigBank Client + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Tuscany JSON-RPC BigBank Client
+

This example uses the Dojo + Toolkit to create a JavaScript object accountService for + the service at http://localhost:8080/AccountJSONService using Dojo's + RPC classes and providing them with http://localhost:8080/AccountJSONService?smd + for Simple Method Description + (SMD) input.

+

It then creates a Dojo button that will envoke the getAccountReport + method of the accountService object.

+
RequestResponse

+ +
+
+
None Yet.
+
+
Dojo Debug:
+
+ + + + + diff --git a/tags/java/sca/1.5.1-RC4/demos/bigbank-account/src/main/resources/web/style.css b/tags/java/sca/1.5.1-RC4/demos/bigbank-account/src/main/resources/web/style.css new file mode 100644 index 0000000000..1071583264 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/demos/bigbank-account/src/main/resources/web/style.css @@ -0,0 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +* { font-family: arial; } + +table, th, td { border: 2px solid blue; border-collapse: collapse; } +th { color: white; background-color: blue; } diff --git a/tags/java/sca/1.5.1-RC4/demos/bigbank-account/src/main/resources/wsdl/AccountService.wsdl b/tags/java/sca/1.5.1-RC4/demos/bigbank-account/src/main/resources/wsdl/AccountService.wsdl new file mode 100644 index 0000000000..ac4d987a57 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/demos/bigbank-account/src/main/resources/wsdl/AccountService.wsdl @@ -0,0 +1,91 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/demos/bigbank-calculator/README b/tags/java/sca/1.5.1-RC4/demos/bigbank-calculator/README new file mode 100644 index 0000000000..e8ff28fc0f --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/demos/bigbank-calculator/README @@ -0,0 +1,2 @@ +bigbank-calculator is part of a larger demo called bigbank. +Please see the Readme file under bigbank to understand how bigbank-calculator fits into the overall demo. diff --git a/tags/java/sca/1.5.1-RC4/demos/bigbank-calculator/build.xml b/tags/java/sca/1.5.1-RC4/demos/bigbank-calculator/build.xml new file mode 100644 index 0000000000..e2119668ed --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/demos/bigbank-calculator/build.xml @@ -0,0 +1,68 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/demos/bigbank-calculator/pom.xml b/tags/java/sca/1.5.1-RC4/demos/bigbank-calculator/pom.xml new file mode 100644 index 0000000000..b047922cc7 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/demos/bigbank-calculator/pom.xml @@ -0,0 +1,78 @@ + + + + 4.0.0 + + org.apache.tuscany.sca + tuscany-demos + 1.5.1 + ../pom.xml + + demo-bigbank-calculator + Apache Tuscany SCA Demo BigBank Calculator + + + + apache.incubator + http://people.apache.org/repo/m2-incubating-repository + + + + + + org.apache.tuscany.sca + tuscany-host-embedded + 1.5.1 + + + + org.apache.tuscany.sca + tuscany-implementation-java-runtime + 1.5.1 + runtime + + + + org.apache.tuscany.sca + tuscany-implementation-script + 1.5.1 + runtime + + + + org.apache.tuscany.sca + tuscany-binding-rmi-runtime + 1.5.1 + runtime + + + + junit + junit + 4.5 + test + + + + + + ${artifactId} + + diff --git a/tags/java/sca/1.5.1-RC4/demos/bigbank-calculator/src/main/java/calculator/AddService.java b/tags/java/sca/1.5.1-RC4/demos/bigbank-calculator/src/main/java/calculator/AddService.java new file mode 100644 index 0000000000..4eeb30a9c2 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/demos/bigbank-calculator/src/main/java/calculator/AddService.java @@ -0,0 +1,25 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES 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 AddService { + + double add(double n1, double n2); + +} diff --git a/tags/java/sca/1.5.1-RC4/demos/bigbank-calculator/src/main/java/calculator/CalculatorService.java b/tags/java/sca/1.5.1-RC4/demos/bigbank-calculator/src/main/java/calculator/CalculatorService.java new file mode 100644 index 0000000000..c89043276e --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/demos/bigbank-calculator/src/main/java/calculator/CalculatorService.java @@ -0,0 +1,34 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES 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/tags/java/sca/1.5.1-RC4/demos/bigbank-calculator/src/main/java/calculator/CalculatorServiceImpl.java b/tags/java/sca/1.5.1-RC4/demos/bigbank-calculator/src/main/java/calculator/CalculatorServiceImpl.java new file mode 100644 index 0000000000..ed7bee0f4e --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/demos/bigbank-calculator/src/main/java/calculator/CalculatorServiceImpl.java @@ -0,0 +1,72 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package calculator; + +import org.osoa.sca.annotations.Reference; +import org.osoa.sca.annotations.Service; + +/** + * An implementation of the Calculator service. + */ +@Service(CalculatorService.class) +public class CalculatorServiceImpl implements CalculatorService { + + private AddService addService; + private SubtractService subtractService; + private MultiplyService multiplyService; + private DivideService divideService; + + @Reference + public void setAddService(AddService addService) { + this.addService = addService; + } + + @Reference + public void setSubtractService(SubtractService subtractService) { + this.subtractService = subtractService; + } + + @Reference + public void setDivideService(DivideService divideService) { + this.divideService = divideService; + } + + @Reference + public void setMultiplyService(MultiplyService multiplyService) { + this.multiplyService = multiplyService; + } + + public double add(double n1, double n2) { + return addService.add(n1, n2); + } + + public double subtract(double n1, double n2) { + return subtractService.subtract(n1, n2); + } + + public double multiply(double n1, double n2) { + System.err.println("Multiply"); + return multiplyService.multiply(n1, n2); + } + + public double divide(double n1, double n2) { + return divideService.divide(n1, n2); + } + +} diff --git a/tags/java/sca/1.5.1-RC4/demos/bigbank-calculator/src/main/java/calculator/DivideService.java b/tags/java/sca/1.5.1-RC4/demos/bigbank-calculator/src/main/java/calculator/DivideService.java new file mode 100644 index 0000000000..131c5a8014 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/demos/bigbank-calculator/src/main/java/calculator/DivideService.java @@ -0,0 +1,25 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES 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 DivideService { + + double divide(double n1, double n2); + +} diff --git a/tags/java/sca/1.5.1-RC4/demos/bigbank-calculator/src/main/java/calculator/MultiplyService.java b/tags/java/sca/1.5.1-RC4/demos/bigbank-calculator/src/main/java/calculator/MultiplyService.java new file mode 100644 index 0000000000..a917896aeb --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/demos/bigbank-calculator/src/main/java/calculator/MultiplyService.java @@ -0,0 +1,25 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES 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 MultiplyService { + + double multiply(double n1, double n2); + +} diff --git a/tags/java/sca/1.5.1-RC4/demos/bigbank-calculator/src/main/java/calculator/SubtractService.java b/tags/java/sca/1.5.1-RC4/demos/bigbank-calculator/src/main/java/calculator/SubtractService.java new file mode 100644 index 0000000000..e328f024ea --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/demos/bigbank-calculator/src/main/java/calculator/SubtractService.java @@ -0,0 +1,25 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES 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 SubtractService { + + double subtract(double n1, double n2); + +} diff --git a/tags/java/sca/1.5.1-RC4/demos/bigbank-calculator/src/main/java/calculator/demo/CalculatorServer.java b/tags/java/sca/1.5.1-RC4/demos/bigbank-calculator/src/main/java/calculator/demo/CalculatorServer.java new file mode 100644 index 0000000000..b1861daafc --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/demos/bigbank-calculator/src/main/java/calculator/demo/CalculatorServer.java @@ -0,0 +1,44 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES 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.demo; + +import org.apache.tuscany.sca.host.embedded.SCADomain; + +/** + * @version $Rev$ $Date$ + */ +public class CalculatorServer { + + public static void main(String[] args) throws Exception { + + System.out.println("Starting the Sample SCA Calculator..."); + + SCADomain domain = SCADomain.newInstance("Calculator.composite"); + + System.out.println("Press Enter to Exit..."); + System.in.read(); + + domain.close(); + + System.out.println("Bye"); + System.exit(0); + } + +} diff --git a/tags/java/sca/1.5.1-RC4/demos/bigbank-calculator/src/main/resources/Calculator.composite b/tags/java/sca/1.5.1-RC4/demos/bigbank-calculator/src/main/resources/Calculator.composite new file mode 100644 index 0000000000..851813d31f --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/demos/bigbank-calculator/src/main/resources/Calculator.composite @@ -0,0 +1,55 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/demos/bigbank-calculator/src/main/resources/calculator/AddServiceImpl.js b/tags/java/sca/1.5.1-RC4/demos/bigbank-calculator/src/main/resources/calculator/AddServiceImpl.js new file mode 100644 index 0000000000..1d4d221364 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/demos/bigbank-calculator/src/main/resources/calculator/AddServiceImpl.js @@ -0,0 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +function add(n1, n2) { + return n1 + n2; +} \ No newline at end of file diff --git a/tags/java/sca/1.5.1-RC4/demos/bigbank-calculator/src/main/resources/calculator/DivideServiceImpl.groovy b/tags/java/sca/1.5.1-RC4/demos/bigbank-calculator/src/main/resources/calculator/DivideServiceImpl.groovy new file mode 100644 index 0000000000..c31c1e8fd6 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/demos/bigbank-calculator/src/main/resources/calculator/DivideServiceImpl.groovy @@ -0,0 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +def divide(n1, n2) { + return n1 / n2 +} \ No newline at end of file diff --git a/tags/java/sca/1.5.1-RC4/demos/bigbank-calculator/src/main/resources/calculator/MultiplyServiceImpl.py b/tags/java/sca/1.5.1-RC4/demos/bigbank-calculator/src/main/resources/calculator/MultiplyServiceImpl.py new file mode 100644 index 0000000000..dd56af0ad8 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/demos/bigbank-calculator/src/main/resources/calculator/MultiplyServiceImpl.py @@ -0,0 +1,21 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# + +def multiply(n1, n2): + print "Python Calculator component: multiply(", n1, ",", n2, ")" + return n1 * n2 \ No newline at end of file diff --git a/tags/java/sca/1.5.1-RC4/demos/bigbank-calculator/src/main/resources/calculator/SubtractServiceImpl.rb b/tags/java/sca/1.5.1-RC4/demos/bigbank-calculator/src/main/resources/calculator/SubtractServiceImpl.rb new file mode 100644 index 0000000000..08fa310f46 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/demos/bigbank-calculator/src/main/resources/calculator/SubtractServiceImpl.rb @@ -0,0 +1,22 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# + +def subtract(n1, n2) + print "Ruby Calculator subtract(", n1, ",", n2, ")\n" + return n1 - n2 +end \ No newline at end of file diff --git a/tags/java/sca/1.5.1-RC4/demos/bigbank-stockquote/README b/tags/java/sca/1.5.1-RC4/demos/bigbank-stockquote/README new file mode 100644 index 0000000000..2ea98d020c --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/demos/bigbank-stockquote/README @@ -0,0 +1,4 @@ +bigbank-stockquote is a part of a larger demo called bigbank. +Please see the Readme file under bigbank to understand how bigbank-stockquote fits into the overall demo. + + diff --git a/tags/java/sca/1.5.1-RC4/demos/bigbank-stockquote/build.xml b/tags/java/sca/1.5.1-RC4/demos/bigbank-stockquote/build.xml new file mode 100644 index 0000000000..e1565c7e01 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/demos/bigbank-stockquote/build.xml @@ -0,0 +1,67 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/demos/bigbank-stockquote/pom.xml b/tags/java/sca/1.5.1-RC4/demos/bigbank-stockquote/pom.xml new file mode 100644 index 0000000000..5405f32c0b --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/demos/bigbank-stockquote/pom.xml @@ -0,0 +1,85 @@ + + + + 4.0.0 + + org.apache.tuscany.sca + tuscany-demos + 1.5.1 + ../pom.xml + + demo-bigbank-stockquote + Apache Tuscany SCA Demo BigBank StockQuote + + + + apache.incubator + http://people.apache.org/repo/m2-incubating-repository + + + + + + org.apache.tuscany.sca + tuscany-host-embedded + 1.5.1 + + + + org.apache.ws.security + wss4j + 1.5.3 + + + + org.apache.tuscany.sca + tuscany-implementation-java-runtime + 1.5.1 + runtime + + + + org.apache.tuscany.sca + tuscany-binding-ws-axis2 + 1.5.1 + runtime + + + + org.apache.tuscany.sca + tuscany-host-tomcat + 1.5.1 + runtime + + + + junit + junit + 4.5 + test + + + + + + ${artifactId} + + + diff --git a/tags/java/sca/1.5.1-RC4/demos/bigbank-stockquote/src/main/java/stockquote/PasswordCallbackHandler.java b/tags/java/sca/1.5.1-RC4/demos/bigbank-stockquote/src/main/java/stockquote/PasswordCallbackHandler.java new file mode 100644 index 0000000000..2d7821171d --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/demos/bigbank-stockquote/src/main/java/stockquote/PasswordCallbackHandler.java @@ -0,0 +1,47 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package stockquote; + +import java.io.IOException; + +import javax.security.auth.callback.Callback; +import javax.security.auth.callback.CallbackHandler; +import javax.security.auth.callback.UnsupportedCallbackException; + +import org.apache.ws.security.WSPasswordCallback; + +/** + * Sample userid passwd generation class + */ +public class PasswordCallbackHandler implements CallbackHandler { + + public void handle(Callback[] callbacks) throws IOException, + UnsupportedCallbackException { + for (int i = 0; i < callbacks.length; i++) { + System.out.println("*** Calling Server User/Passwd Handler...." ); + WSPasswordCallback pwcb = (WSPasswordCallback)callbacks[i]; + System.out.println("*** Getting password for user ...." + pwcb.getIdentifer() + " & " + pwcb.getKey()); + if ( pwcb.getUsage() == WSPasswordCallback.SIGNATURE ) { + System.out.println(" Usage is SIGNATURE ... "); + pwcb.setPassword("sqservice"); + } + } + } + +} diff --git a/tags/java/sca/1.5.1-RC4/demos/bigbank-stockquote/src/main/java/stockquote/StockQuoteImpl.java b/tags/java/sca/1.5.1-RC4/demos/bigbank-stockquote/src/main/java/stockquote/StockQuoteImpl.java new file mode 100644 index 0000000000..2a0801f9b8 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/demos/bigbank-stockquote/src/main/java/stockquote/StockQuoteImpl.java @@ -0,0 +1,38 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package stockquote; + +import org.osoa.sca.annotations.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/tags/java/sca/1.5.1-RC4/demos/bigbank-stockquote/src/main/java/stockquote/StockQuoteService.java b/tags/java/sca/1.5.1-RC4/demos/bigbank-stockquote/src/main/java/stockquote/StockQuoteService.java new file mode 100644 index 0000000000..9d128657eb --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/demos/bigbank-stockquote/src/main/java/stockquote/StockQuoteService.java @@ -0,0 +1,30 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package stockquote; + +import org.osoa.sca.annotations.Remotable; + +/** + * This is the business interface of the StockQuote service. + */ +@Remotable +public interface StockQuoteService { + + public double getQuote(String symbol); +} diff --git a/tags/java/sca/1.5.1-RC4/demos/bigbank-stockquote/src/main/java/stockquote/demo/StockQuoteServer.java b/tags/java/sca/1.5.1-RC4/demos/bigbank-stockquote/src/main/java/stockquote/demo/StockQuoteServer.java new file mode 100644 index 0000000000..04ed762602 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/demos/bigbank-stockquote/src/main/java/stockquote/demo/StockQuoteServer.java @@ -0,0 +1,42 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package stockquote.demo; + +import org.apache.tuscany.sca.host.embedded.SCADomain; + +/** + * 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 { + + System.out.println("Starting the Sample SCA StockQuote Service..."); + + SCADomain domain = SCADomain.newInstance("StockQuote.composite"); + + System.out.println("Press Enter to Exit..."); + System.in.read(); + + domain.close(); + System.out.println("Bye"); + } + +} diff --git a/tags/java/sca/1.5.1-RC4/demos/bigbank-stockquote/src/main/resources/StockQuote.composite b/tags/java/sca/1.5.1-RC4/demos/bigbank-stockquote/src/main/resources/StockQuote.composite new file mode 100644 index 0000000000..aaad92c861 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/demos/bigbank-stockquote/src/main/resources/StockQuote.composite @@ -0,0 +1,33 @@ + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/demos/bigbank-stockquote/src/main/resources/definitions.xml b/tags/java/sca/1.5.1-RC4/demos/bigbank-stockquote/src/main/resources/definitions.xml new file mode 100644 index 0000000000..7e1f51304e --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/demos/bigbank-stockquote/src/main/resources/definitions.xml @@ -0,0 +1,49 @@ + + + + + + + + + + + Timestamp Signature + security.properties + + + + + Timestamp Signature + sqservice + security.properties + stockquote.PasswordCallbackHandler + DirectReference + + + + + \ No newline at end of file diff --git a/tags/java/sca/1.5.1-RC4/demos/bigbank-stockquote/src/main/resources/security.properties b/tags/java/sca/1.5.1-RC4/demos/bigbank-stockquote/src/main/resources/security.properties new file mode 100644 index 0000000000..a5b889c269 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/demos/bigbank-stockquote/src/main/resources/security.properties @@ -0,0 +1,20 @@ +## --------------------------------------------------------------------------- +## Licensed to the Apache Software Foundation (ASF) under one or more +## contributor license agreements. See the NOTICE file distributed with +## this work for additional information regarding copyright ownership. +## The ASF licenses this file to You under the Apache License, Version 2.0 +## (the "License"); you may not use this file except in compliance with +## the License. You may obtain a copy of the License at +## +## http://www.apache.org/licenses/LICENSE-2.0 +## +## Unless required by applicable law or agreed to in writing, software +## distributed under the License is distributed on an "AS IS" BASIS, +## WITHOUT 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.ws.security.crypto.provider=org.apache.ws.security.components.crypto.Merlin +org.apache.ws.security.crypto.merlin.keystore.type=jks +org.apache.ws.security.crypto.merlin.keystore.password=sqkeystore +org.apache.ws.security.crypto.merlin.file=stockQuote.jks diff --git a/tags/java/sca/1.5.1-RC4/demos/bigbank-stockquote/src/main/resources/stockQuote.jks b/tags/java/sca/1.5.1-RC4/demos/bigbank-stockquote/src/main/resources/stockQuote.jks new file mode 100644 index 0000000000..d53d32c4ef Binary files /dev/null and b/tags/java/sca/1.5.1-RC4/demos/bigbank-stockquote/src/main/resources/stockQuote.jks differ diff --git a/tags/java/sca/1.5.1-RC4/demos/bigbank/README b/tags/java/sca/1.5.1-RC4/demos/bigbank/README new file mode 100644 index 0000000000..50df1e8296 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/demos/bigbank/README @@ -0,0 +1,112 @@ +BigBank Demo +============ + +This application is made of 3 modules that represent the different aspects +of a fictitious banking application. Please see bigbank.png for a diagram of this demo. + +To run the bigbank demo you need to first run bigbank-calculator and bigbank-stockquote composites. This will bring up Tuscany runtime and load the two applications and make them available as services. Bigbank-account is dependent on these services. + +To run this demo you need to use ant to compile and run the application. + +Start Bigbank-calculator composite +---------------------------------- + +Bigbank-calculator is a calculator application which handles add, subtract, multiply and divide operations. Each of these operations is implemented in a different language, including JavaScript, groovy, Ruby and Python. + +To run the bigbank-calculator composite and make it available as a service for this demo do the following: + +cd bigbank-calculator +ant run + +.. Leave the server running + + +Start Bigbank-stockquote +------------------------ + +A very simple web services based stock quote application which returns random +stock quotes on request. Please note that the stockquote service is not live and is implemented instead to allow for this application to always run without dependency on the availability of a webservice. + +cd bigbank-stockquote +ant run + +.. Leave the server running + + +Start Bigbank +------------- +The BigBank comprises of two subsystems that are built from two distinct contributions coming from ... +1) bigbank + This contains all artifacts that make up the bigbank application. This is the application that the + end user interacts with + +2) bigbank-account + This contains all artifacts that deal with the account management within the bigbank. The services + offered by the bigbank-account module are used by the bigbank. The end user never gets to directly + interact with bigbank account + +Besides the bigbank-account the bigbank composite application calls into bigbank-stockquote and +bigbank-calculator services. + +Start bigbank application in the following way: + +cd bigbank +ant run + +.. Leave the server running + +Bigbank and the SCA Policies +---------------------------- +The Bigbank demo uses the Tuscany PolicyFramework to enforce security in the following ways: + +Authentication +-------------- + The bigbank-account subsystem enforces authentication as a required security characteristic for + all interactions with its CheckingAccountService. Hence the 'bigbank' application which is a client + to this service authenticates itself for every interaction with the CheckingAccountService. The interaction + between the bigbank and the CheckingAccountService is over the ws binding. + +Integrity +--------- + All interactions of the bigbank application with the StockQuoteService are guarded with message integrity. + These interactions use the ws binding. + +Authorization +------------- + Within the bigbank-account subsystem the CheckingAccountService implementation enforces authorization on + its operations. This is an instance of a custom policy enforcement i.e. the CheckingAccountService + component's implementation has defined its own customized way of authorizing access to its services. + +Demonstrated features +--------------------- +This demo is to illustrate the following : - +- composition of an application using artifacts belonging to multiple contributions (here two) +- usage of sca policies in composite definitions with specific emphasis on enabling security + + +Run the demo +------------- +The front end of this demo application is a web app which users Json/RPC to communicate with the backend for retrieving account information. + +To try the app out point you browser at: + +http://localhost:8085/AccountJSON.html + +This should display an interface with a single button that goes and retrieves +a single set of account details exercising services across the three running +SCA applications. + +If you press on getAccountReport, you'll see a response posted, +but the detail of the data will be displayed in the console where you started bigbank. Among other +things you will note messages that confirm the enforecement of AUTHENTICATION, AUTHORIZATION and +SIGNING of messages exchaged. + +On the console where you have started the StockQuote Service you should again be able to see messages +that confirm the signing of messages exchanged. + +Stop the demo +------------- +Go to each of the corresponding command line screens and hit 'enter'. +This will stop each of the applications. + + diff --git a/tags/java/sca/1.5.1-RC4/demos/bigbank/bigbank.png b/tags/java/sca/1.5.1-RC4/demos/bigbank/bigbank.png new file mode 100644 index 0000000000..985cc6bd05 Binary files /dev/null and b/tags/java/sca/1.5.1-RC4/demos/bigbank/bigbank.png differ diff --git a/tags/java/sca/1.5.1-RC4/demos/bigbank/bigbank.svg b/tags/java/sca/1.5.1-RC4/demos/bigbank/bigbank.svg new file mode 100644 index 0000000000..30aa0eab6d --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/demos/bigbank/bigbank.svg @@ -0,0 +1,537 @@ + + + + + + + + + + image/svg+xml + + + + + + + + CompositeBigBank WebApp + + Component AccountJava + + + + Component AccountDataJava + binding.jsonrpc + binding.ws + binding.rmi + + + + CompositeStockQuote + + CompositeCalculator + + Component CalculatorJava + + + + Component AddJavascript + binding.rmi + + + Component SubtractRuby + + Component MultiplyPython + + Component DivideGroovy + + + + Component StockQuoteJava + + binding.ws + + + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/demos/bigbank/build-dojo.xml b/tags/java/sca/1.5.1-RC4/demos/bigbank/build-dojo.xml new file mode 100644 index 0000000000..8ef86445a0 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/demos/bigbank/build-dojo.xml @@ -0,0 +1,92 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/demos/bigbank/build.xml b/tags/java/sca/1.5.1-RC4/demos/bigbank/build.xml new file mode 100644 index 0000000000..81fb704d4d --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/demos/bigbank/build.xml @@ -0,0 +1,84 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/demos/bigbank/pom.xml b/tags/java/sca/1.5.1-RC4/demos/bigbank/pom.xml new file mode 100644 index 0000000000..4630208a62 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/demos/bigbank/pom.xml @@ -0,0 +1,201 @@ + + + + 4.0.0 + + org.apache.tuscany.sca + tuscany-demos + 1.5.1 + ../pom.xml + + demo-bigbank + jar + Apache Tuscany SCA Demo BigBank + + + + apache.incubator + http://people.apache.org/repo/m2-incubating-repository + + + + + + org.apache.tuscany.sca + tuscany-host-embedded + 1.5.1 + + + + org.apache.tuscany.sca + tuscany-data-api + 1.5.1 + + + + org.apache.ws.security + wss4j + 1.5.3 + + + + org.apache.tuscany.sca + demo-bigbank-account + 1.5.1 + + + + org.apache.tuscany.sca + tuscany-implementation-java-runtime + 1.5.1 + runtime + + + + org.apache.tuscany.sca + tuscany-binding-atom-abdera + 1.5.1 + runtime + + + + org.apache.tuscany.sca + tuscany-binding-rss-rome + 1.5.1 + runtime + + + + org.apache.tuscany.sca + tuscany-binding-ws-axis2 + 1.5.1 + runtime + + + + org.apache.tuscany.sca + tuscany-binding-jsonrpc-runtime + 1.5.1 + runtime + + + + org.apache.tuscany.sca + tuscany-binding-rmi-runtime + 1.5.1 + runtime + + + + org.apache.tuscany.sca + tuscany-implementation-resource-runtime + 1.5.1 + runtime + + + + org.apache.tuscany.sca + tuscany-binding-http-runtime + 1.5.1 + runtime + + + + org.apache.tuscany.sca + tuscany-host-jetty + 1.5.1 + runtime + + + + junit + junit + 4.5 + test + + + + + + demo-bigbank + + + org.apache.maven.plugins + maven-antrun-plugin + + + + ant + ant-trax + 1.6.5 + + + + + + install-dojo + validate + + run + + + + + + + + + + + copy-dojo-files + generate-resources + + run + + + + + + + + + + + + clean-dojo-files + clean + + run + + + + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/demos/bigbank/src/main/java/bigbank/account/AccountService.java b/tags/java/sca/1.5.1-RC4/demos/bigbank/src/main/java/bigbank/account/AccountService.java new file mode 100644 index 0000000000..2cb8027874 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/demos/bigbank/src/main/java/bigbank/account/AccountService.java @@ -0,0 +1,32 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES 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.account; + +import org.osoa.sca.annotations.Remotable; + +/** + * @version $$Rev$$ $$Date$$ + */ + +@Remotable +public interface AccountService { + + public double getAccountReport(String customerID); + +} diff --git a/tags/java/sca/1.5.1-RC4/demos/bigbank/src/main/java/bigbank/account/AccountServiceImpl.java b/tags/java/sca/1.5.1-RC4/demos/bigbank/src/main/java/bigbank/account/AccountServiceImpl.java new file mode 100644 index 0000000000..4f0e3879dc --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/demos/bigbank/src/main/java/bigbank/account/AccountServiceImpl.java @@ -0,0 +1,99 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES 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.account; + +import org.osoa.sca.annotations.Property; +import org.osoa.sca.annotations.Reference; +import org.osoa.sca.annotations.Service; + +import stockquote.StockQuoteService; +import bigbank.account.checking.CheckingAccountDetails; +import bigbank.account.checking.CheckingAccountService; +import bigbank.account.savings.SavingsAccountDetails; +import bigbank.account.savings.SavingsAccountService; +import bigbank.account.stock.StockAccountDetails; +import bigbank.account.stock.StockAccountService; +import calculator.CalculatorService; + +/** + * @version $$Rev$$ $$Date$$ + */ + +@Service(AccountService.class) +public class AccountServiceImpl implements AccountService { + + @Reference + protected SavingsAccountService savingsAcService; + + @Reference + protected CheckingAccountService checkingAcService; + + @Reference + protected StockAccountService stockAcService; + + @Reference + protected StockQuoteService stockQuoteService; + + @Reference + protected CalculatorService calculatorService; + + @Property + protected String currency; + + public double getAccountReport(String customerID) { + + // Get the checking, savings and stock accounts from the AccountData + // service component + CheckingAccountDetails checking = null; + try { + checking = checkingAcService.getAccountDetails(customerID); + System.out.println("Checking account: " + checking); + + SavingsAccountDetails savings = savingsAcService.getAccountDetails(customerID); + System.out.println("Savings account: " + savings); + + StockAccountDetails stock = stockAcService.getAccountDetails(customerID); + System.out.println("Stock account: " + stock); + + // Get the stock price in USD + double price = stockQuoteService.getQuote(stock.getSymbol()); + System.out.println("Stock price for " + stock.getSymbol() + ": " + price); + + // Convert to the configured currency + if (currency.equals("EURO")) { + + // Use our fancy calculator service to convert to the target currency + price = calculatorService.multiply(price, 0.70); + + System.out.println("Converted to " + currency + ": " + price); + } + + // Calculate the value of the stock account + double stockValue = price * stock.getQuantity(); + + // Calculate the total balance of all accounts and return it + double balance = checking.getBalance() + savings.getBalance() + stockValue; + + return balance; + } catch ( Throwable e ) { + e.printStackTrace(); + return 0; + } + } +} diff --git a/tags/java/sca/1.5.1-RC4/demos/bigbank/src/main/java/bigbank/account/feed/AccountFeedImpl.java b/tags/java/sca/1.5.1-RC4/demos/bigbank/src/main/java/bigbank/account/feed/AccountFeedImpl.java new file mode 100644 index 0000000000..13d79a9c33 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/demos/bigbank/src/main/java/bigbank/account/feed/AccountFeedImpl.java @@ -0,0 +1,70 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES 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.account.feed; + +import org.apache.tuscany.sca.data.collection.Collection; +import org.apache.tuscany.sca.data.collection.Entry; +import org.apache.tuscany.sca.data.collection.NotFoundException; +import org.osoa.sca.annotations.Reference; +import org.osoa.sca.annotations.Service; + +import bigbank.account.AccountService; + +/** + * @version $$Rev$$ $$Date$$ + */ + +@Service(Collection.class) +public class AccountFeedImpl implements Collection { + + @Reference + protected AccountService accountService; + + public Entry[] getAll() { + + // Add the Account report entry + String report = get("1234"); + Entry entry = new Entry("1234", report); + + return new Entry[] { entry } ; + } + + public String get(String id) { + + // Get the account report for the specified customer ID + double balance = accountService.getAccountReport(id); + String report = Double.toString(balance); + + return report; + } + + public void delete(String key) throws NotFoundException { + } + + public String post(String key, String item) { + return null; + } + + public void put(String key, String item) throws NotFoundException { + } + + public Entry[] query(String queryString) { + return null; + } +} diff --git a/tags/java/sca/1.5.1-RC4/demos/bigbank/src/main/java/bigbank/client/BigBankClient.java b/tags/java/sca/1.5.1-RC4/demos/bigbank/src/main/java/bigbank/client/BigBankClient.java new file mode 100644 index 0000000000..a7fa5ecc22 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/demos/bigbank/src/main/java/bigbank/client/BigBankClient.java @@ -0,0 +1,50 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES 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.client; + +import org.apache.tuscany.sca.host.embedded.SCADomain; + +import bigbank.account.AccountService; + +/** + * This client program shows how to create an SCA runtime, start it, + * and locate and invoke a SCA component + */ +public class BigBankClient { + + public static void main(String[] args) throws Exception { + + SCADomain domain = SCADomain.newInstance("BigBank.composite"); + + AccountService accountService = domain.getService(AccountService.class, "AccountServiceComponent"); + + String customerID = "1234"; + + System.out.println("Calling account service for customer: " + customerID); + System.out.println(); + double balance = accountService.getAccountReport(customerID); + + System.out.println(); + System.out.println("Balance: " + balance); + + domain.close(); + } + +} diff --git a/tags/java/sca/1.5.1-RC4/demos/bigbank/src/main/java/bigbank/demo/BigBankServer.java b/tags/java/sca/1.5.1-RC4/demos/bigbank/src/main/java/bigbank/demo/BigBankServer.java new file mode 100644 index 0000000000..05360e07a5 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/demos/bigbank/src/main/java/bigbank/demo/BigBankServer.java @@ -0,0 +1,130 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES 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.demo; + +import java.net.MalformedURLException; +import java.net.URL; + +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.SCADomain; +import org.apache.tuscany.sca.host.embedded.impl.EmbeddedSCADomain; + +import bigbank.account.savings.SavingsAccountService; + + + +/** + * This client program shows how to create an SCA runtime, start it, + * and locate and invoke a SCA component + */ +public class BigBankServer { + + public static void main(String[] args) throws Exception { + long timeout = -1L; + if (args.length > 0) { + timeout = Long.parseLong(args[0]); + } + + System.out.println("Starting the Sample SCA BigBank server..."); + ClassLoader cl = BigBankServer.class.getClassLoader(); + EmbeddedSCADomain domain = new EmbeddedSCADomain(cl, "http://localhost"); + + //Start the domain + domain.start(); + + // Contribute the SCA contribution + ContributionService contributionService = domain.getContributionService(); + + URL javaContribURL = getContributionURL(SavingsAccountService.class); + Contribution bigbankAcContribution = contributionService.contribute("http://bigbank-account", javaContribURL, false); + for (Composite deployable : bigbankAcContribution.getDeployables()) { + domain.getDomainComposite().getIncludes().add(deployable); + domain.buildComposite(deployable); + } + + URL bigbankContribUrl = getContributionURL(BigBankServer.class); + Contribution bigbankContribution = contributionService.contribute("http://bigbank", bigbankContribUrl, false); + for (Composite deployable : bigbankContribution.getDeployables()) { + domain.getDomainComposite().getIncludes().add(deployable); + domain.buildComposite(deployable); + } + + + //Start Components from composite + for (Composite deployable : bigbankAcContribution.getDeployables()) { + domain.getCompositeActivator().activate(deployable); + domain.getCompositeActivator().start(deployable); + } + + for (Composite deployable : bigbankContribution.getDeployables()) { + domain.getCompositeActivator().activate(deployable); + domain.getCompositeActivator().start(deployable); + } + + if (timeout < 0) { + System.out.println("Press Enter to Exit..."); + System.in.read(); + } else { + Thread.sleep(timeout); + } + + contributionService.remove("http://bigbank-account"); + contributionService.remove("http://bigbank"); + + // Stop Components from composite + for (Composite deployable : bigbankContribution.getDeployables()) { + domain.getCompositeActivator().stop(deployable); + domain.getCompositeActivator().deactivate(deployable); + } + + domain.stop(); + + domain.close(); + + + /*SCADomain domain = SCADomain.newInstance("BigBank.composite"); + + if (timeout < 0) { + System.out.println("Press Enter to Exit..."); + System.in.read(); + } else { + Thread.sleep(timeout); + } + + domain.close();*/ + + System.out.println("Bye"); + } + + private static 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; + } + +} diff --git a/tags/java/sca/1.5.1-RC4/demos/bigbank/src/main/java/bigbank/security/BigbankPasswordCallbackHandler.java b/tags/java/sca/1.5.1-RC4/demos/bigbank/src/main/java/bigbank/security/BigbankPasswordCallbackHandler.java new file mode 100644 index 0000000000..6d3b547939 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/demos/bigbank/src/main/java/bigbank/security/BigbankPasswordCallbackHandler.java @@ -0,0 +1,51 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES 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.security; + +import java.io.IOException; + +import javax.security.auth.callback.Callback; +import javax.security.auth.callback.CallbackHandler; +import javax.security.auth.callback.UnsupportedCallbackException; + +import org.apache.ws.security.WSPasswordCallback; + +/** + * Sample userid passwd generation class + */ +public class BigbankPasswordCallbackHandler implements CallbackHandler { + + public void handle(Callback[] callbacks) throws IOException, + UnsupportedCallbackException { + for (int i = 0; i < callbacks.length; i++) { + WSPasswordCallback pwcb = (WSPasswordCallback)callbacks[i]; + //System.out.println("*** Getting password for user ...." + pwcb.getIdentifer() + " & " + pwcb.getKey()); + if ( pwcb.getUsage() == WSPasswordCallback.SIGNATURE ) { + System.out.println("*** Calling BIG-BANK Passwd Handler for SIGNING...." ); + pwcb.setPassword("bbservice"); + } else if ( pwcb.getUsage() == WSPasswordCallback.USERNAME_TOKEN ) { + if ( pwcb.getIdentifer().equals("bbaservice")) { + System.out.println("*** Calling BIG-BANK Passwd Handler for setting AUTHENTICATION password...." ); + pwcb.setPassword("bbaservice"); + } + } + } + } + +} diff --git a/tags/java/sca/1.5.1-RC4/demos/bigbank/src/main/java/calculator/CalculatorService.java b/tags/java/sca/1.5.1-RC4/demos/bigbank/src/main/java/calculator/CalculatorService.java new file mode 100644 index 0000000000..c89043276e --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/demos/bigbank/src/main/java/calculator/CalculatorService.java @@ -0,0 +1,34 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES 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/tags/java/sca/1.5.1-RC4/demos/bigbank/src/main/java/stockquote/StockQuoteService.java b/tags/java/sca/1.5.1-RC4/demos/bigbank/src/main/java/stockquote/StockQuoteService.java new file mode 100644 index 0000000000..749b8ee2f4 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/demos/bigbank/src/main/java/stockquote/StockQuoteService.java @@ -0,0 +1,29 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package stockquote; + +import org.osoa.sca.annotations.Remotable; + +/** + * This is the business interface of the StockQuote service. + */ +@Remotable +public interface StockQuoteService { + public double getQuote(String symbol); +} diff --git a/tags/java/sca/1.5.1-RC4/demos/bigbank/src/main/resources/BigBank.composite b/tags/java/sca/1.5.1-RC4/demos/bigbank/src/main/resources/BigBank.composite new file mode 100644 index 0000000000..11591308b4 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/demos/bigbank/src/main/resources/BigBank.composite @@ -0,0 +1,85 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + EURO + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/demos/bigbank/src/main/resources/META-INF/sca-contribution.xml b/tags/java/sca/1.5.1-RC4/demos/bigbank/src/main/resources/META-INF/sca-contribution.xml new file mode 100644 index 0000000000..154992c843 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/demos/bigbank/src/main/resources/META-INF/sca-contribution.xml @@ -0,0 +1,36 @@ + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/tags/java/sca/1.5.1-RC4/demos/bigbank/src/main/resources/bigbank.jks b/tags/java/sca/1.5.1-RC4/demos/bigbank/src/main/resources/bigbank.jks new file mode 100644 index 0000000000..e6294d85f7 Binary files /dev/null and b/tags/java/sca/1.5.1-RC4/demos/bigbank/src/main/resources/bigbank.jks differ diff --git a/tags/java/sca/1.5.1-RC4/demos/bigbank/src/main/resources/definitions.xml b/tags/java/sca/1.5.1-RC4/demos/bigbank/src/main/resources/definitions.xml new file mode 100644 index 0000000000..8654151d82 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/demos/bigbank/src/main/resources/definitions.xml @@ -0,0 +1,64 @@ + + + + + + + + + + Timestamp Signature + security.properties + + + + + Timestamp Signature + bbservice + security.properties + bigbank.security.BigbankPasswordCallbackHandler + DirectReference + + + + + + + + + + UsernameToken + bbaservice + bigbank.security.BigbankPasswordCallbackHandler + PasswordText + + + + + \ No newline at end of file diff --git a/tags/java/sca/1.5.1-RC4/demos/bigbank/src/main/resources/security.properties b/tags/java/sca/1.5.1-RC4/demos/bigbank/src/main/resources/security.properties new file mode 100644 index 0000000000..d1b489acbb --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/demos/bigbank/src/main/resources/security.properties @@ -0,0 +1,20 @@ +## --------------------------------------------------------------------------- +## Licensed to the Apache Software Foundation (ASF) under one or more +## contributor license agreements. See the NOTICE file distributed with +## this work for additional information regarding copyright ownership. +## The ASF licenses this file to You under the Apache License, Version 2.0 +## (the "License"); you may not use this file except in compliance with +## the License. You may obtain a copy of the License at +## +## http://www.apache.org/licenses/LICENSE-2.0 +## +## Unless required by applicable law or agreed to in writing, software +## distributed under the License is distributed on an "AS IS" BASIS, +## WITHOUT 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.ws.security.crypto.provider=org.apache.ws.security.components.crypto.Merlin +org.apache.ws.security.crypto.merlin.keystore.type=jks +org.apache.ws.security.crypto.merlin.keystore.password=bbakeystore +org.apache.ws.security.crypto.merlin.file=bigbank.jks diff --git a/tags/java/sca/1.5.1-RC4/demos/bigbank/src/main/resources/web/AccountJSON.html b/tags/java/sca/1.5.1-RC4/demos/bigbank/src/main/resources/web/AccountJSON.html new file mode 100644 index 0000000000..9f4368443f --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/demos/bigbank/src/main/resources/web/AccountJSON.html @@ -0,0 +1,92 @@ + + + +Tuscany JSON-RPC BigBank Client + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Tuscany JSON-RPC BigBank Client
+

This example uses the Dojo + Toolkit to create a JavaScript object accountService for + the service at http://localhost:8080/AccountJSONService using Dojo's + RPC classes and providing them with http://localhost:8080/AccountJSONService?smd + for Simple Method Description + (SMD) input.

+

It then creates a Dojo button that will envoke the getAccountReport + method of the accountService object.

+
RequestResponse

+ +
+
+
None Yet.
+
+
Dojo Debug:
+
+ + + + + diff --git a/tags/java/sca/1.5.1-RC4/demos/bigbank/src/main/resources/web/style.css b/tags/java/sca/1.5.1-RC4/demos/bigbank/src/main/resources/web/style.css new file mode 100644 index 0000000000..1071583264 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/demos/bigbank/src/main/resources/web/style.css @@ -0,0 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +* { font-family: arial; } + +table, th, td { border: 2px solid blue; border-collapse: collapse; } +th { color: white; background-color: blue; } diff --git a/tags/java/sca/1.5.1-RC4/demos/bigbank/src/main/resources/wsdl/AccountService.wsdl b/tags/java/sca/1.5.1-RC4/demos/bigbank/src/main/resources/wsdl/AccountService.wsdl new file mode 100644 index 0000000000..ac4d987a57 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/demos/bigbank/src/main/resources/wsdl/AccountService.wsdl @@ -0,0 +1,91 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/demos/bigbank/src/test/java/test/BigBankTestCase.java b/tags/java/sca/1.5.1-RC4/demos/bigbank/src/test/java/test/BigBankTestCase.java new file mode 100644 index 0000000000..3b7c5ef2ad --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/demos/bigbank/src/test/java/test/BigBankTestCase.java @@ -0,0 +1,33 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES 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 bigbank.demo.BigBankServer; + +/** + * @version $Rev$ $Date$ + */ +public class BigBankTestCase extends TestCase { + + public void testServer() throws Exception { + BigBankServer.main(new String[] {"1000"}); + } +} diff --git a/tags/java/sca/1.5.1-RC4/demos/mortgage-creditcheck/README b/tags/java/sca/1.5.1-RC4/demos/mortgage-creditcheck/README new file mode 100644 index 0000000000..b785802920 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/demos/mortgage-creditcheck/README @@ -0,0 +1,6 @@ +Mortgage Loan Approval Demo +=========================== +Please refer to the README under mortgage-loanapproval for information on how to run this demo. + +Mortgage-creditcheck is part of a larger demo that is explained there. + diff --git a/tags/java/sca/1.5.1-RC4/demos/mortgage-creditcheck/build.xml b/tags/java/sca/1.5.1-RC4/demos/mortgage-creditcheck/build.xml new file mode 100644 index 0000000000..59f1342276 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/demos/mortgage-creditcheck/build.xml @@ -0,0 +1,66 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/demos/mortgage-creditcheck/pom.xml b/tags/java/sca/1.5.1-RC4/demos/mortgage-creditcheck/pom.xml new file mode 100644 index 0000000000..245f9a4310 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/demos/mortgage-creditcheck/pom.xml @@ -0,0 +1,75 @@ + + + + 4.0.0 + + org.apache.tuscany.sca + tuscany-demos + 1.5.1 + ../pom.xml + + demo-mortgage-creditcheck + jar + Apache Tuscany SCA Demo Mortgage Credit Check + A sample Mortgage application made of several SCA components wired together. + + + + org.apache.tuscany.sca + tuscany-host-embedded + 1.5.1 + + + + org.apache.tuscany.sca + tuscany-implementation-java-runtime + 1.5.1 + runtime + + + + org.apache.tuscany.sca + tuscany-binding-ws-axis2 + 1.5.1 + runtime + + + + org.apache.tuscany.sca + tuscany-host-jetty + 1.5.1 + runtime + + + + junit + junit + 4.5 + test + + + + + + ${artifactId} + + + + diff --git a/tags/java/sca/1.5.1-RC4/demos/mortgage-creditcheck/src/main/java/credit/CreditCheck.java b/tags/java/sca/1.5.1-RC4/demos/mortgage-creditcheck/src/main/java/credit/CreditCheck.java new file mode 100644 index 0000000000..ec95a60227 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/demos/mortgage-creditcheck/src/main/java/credit/CreditCheck.java @@ -0,0 +1,26 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package credit; + +import org.osoa.sca.annotations.Remotable; + +@Remotable +public interface CreditCheck { + int getCreditScore(String ssn); +} diff --git a/tags/java/sca/1.5.1-RC4/demos/mortgage-creditcheck/src/main/java/credit/CreditCheckImpl.java b/tags/java/sca/1.5.1-RC4/demos/mortgage-creditcheck/src/main/java/credit/CreditCheckImpl.java new file mode 100644 index 0000000000..f19e8a1250 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/demos/mortgage-creditcheck/src/main/java/credit/CreditCheckImpl.java @@ -0,0 +1,34 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package credit; + +import org.osoa.sca.annotations.Service; + +/** + * An implementation of the CreditReportService service + */ +@Service(CreditCheck.class) +public class CreditCheckImpl implements CreditCheck { + + public int getCreditScore(String ssn) { + int score = (int)(700 + (Math.random() - 0.5) * 100); + System.out.println("Credit score for " + ssn + ": " + score); + return score; + } +} diff --git a/tags/java/sca/1.5.1-RC4/demos/mortgage-creditcheck/src/main/java/credit/CreditCheckServer.java b/tags/java/sca/1.5.1-RC4/demos/mortgage-creditcheck/src/main/java/credit/CreditCheckServer.java new file mode 100644 index 0000000000..870ea1941d --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/demos/mortgage-creditcheck/src/main/java/credit/CreditCheckServer.java @@ -0,0 +1,40 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package credit; + +import org.apache.tuscany.sca.host.embedded.SCADomain; + +/** + * @version $Rev$ $Date$ + */ +public class CreditCheckServer { + public static void main(String[] args) throws Exception { + + System.out.println("Starting the CreditCheck Service..."); + + SCADomain domain = SCADomain.newInstance("http://localhost", "/", "CreditCheck.composite"); + + System.out.println("Press Enter to Exit..."); + System.in.read(); + + domain.close(); + System.out.println("Bye"); + } +} diff --git a/tags/java/sca/1.5.1-RC4/demos/mortgage-creditcheck/src/main/resources/CreditCheck.composite b/tags/java/sca/1.5.1-RC4/demos/mortgage-creditcheck/src/main/resources/CreditCheck.composite new file mode 100644 index 0000000000..5c828f5a39 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/demos/mortgage-creditcheck/src/main/resources/CreditCheck.composite @@ -0,0 +1,37 @@ + + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/demos/mortgage-creditcheck/src/main/resources/wsdl/credit.wsdl b/tags/java/sca/1.5.1-RC4/demos/mortgage-creditcheck/src/main/resources/wsdl/credit.wsdl new file mode 100644 index 0000000000..9c2acc96d3 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/demos/mortgage-creditcheck/src/main/resources/wsdl/credit.wsdl @@ -0,0 +1,81 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/demos/mortgage-creditcheck/src/main/webapp/META-INF/sca-contribution.xml b/tags/java/sca/1.5.1-RC4/demos/mortgage-creditcheck/src/main/webapp/META-INF/sca-contribution.xml new file mode 100644 index 0000000000..3e9e4539bd --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/demos/mortgage-creditcheck/src/main/webapp/META-INF/sca-contribution.xml @@ -0,0 +1,23 @@ + + + + + \ No newline at end of file diff --git a/tags/java/sca/1.5.1-RC4/demos/mortgage-creditcheck/src/main/webapp/WEB-INF/web.xml b/tags/java/sca/1.5.1-RC4/demos/mortgage-creditcheck/src/main/webapp/WEB-INF/web.xml new file mode 100644 index 0000000000..d7b2e32dd1 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/demos/mortgage-creditcheck/src/main/webapp/WEB-INF/web.xml @@ -0,0 +1,37 @@ + + + + + + + Apache Tuscany Credit Check Demo + + + tuscany + org.apache.tuscany.sca.host.webapp.TuscanyServletFilter + + + + tuscany + /* + + + diff --git a/tags/java/sca/1.5.1-RC4/demos/mortgage-loanapproval/README b/tags/java/sca/1.5.1-RC4/demos/mortgage-loanapproval/README new file mode 100644 index 0000000000..dbf3829a20 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/demos/mortgage-loanapproval/README @@ -0,0 +1,60 @@ +Mortgage Loan Approval Demo +=========================== + +This demo was used as an example in the java developer journal article: http://jdj.sys-con.com/read/325183.htm. + +The demo consists of two modules: + +mortgage-loanapproval: provides the business logic for loan approval. +mortgage-creditcheck: handles credit check requests. This is a java component exposed as a webservice running on the embedded Tomcat. + +Please check mortgage_assembly.png file that is located in this directory for a high level view of the demo. + +Here is what happens when you run the demo. A loan approval request for customer with id 111-222-3333 +gets initiated when mortgage-loanapproval application is run. Depending on what the 'imaginary' credit + status of this person is, the loan gets approved or diapproved. + +You would need two command windows to run mortgage loan approval composite. The order in which the +applications are run is important. Run mortgage-creditcheck first since mortgage-loanapproval is dependent on +it's service. + +In the first command window +--------------------------- +1) go to mortgage-creditcheck directory +2) ant compile +3) ant run +You should see the following displayed: +Buildfile: build.xml + +run: + [java] Starting the CreditCheck Service... + [java] 14-Jan-2008 14:14:20 org.apache.tuscany.sca.http.jetty.JettyServer a +ddServletMapping + [java] INFO: Added Servlet mapping: http://L3AW203:8085/CreditCheckServiceC +omponent + [java] Press Enter to Exit... + +In the second command window +---------------------------- +1) go to mortgage-loanapproval directory +2) ant compile +3) ant run + +If the loan is approved, you will see the following displayed in the command screen where +mortgage-loanapproval is run: + +Buildfile: build.xml +run: + [java] Interest rate for a 30-year loan of $200000.0 in CA: 6.5% + [java] Approved: John Smith[111-22-3333] + +If the loan is disapproved, you will see the following displayed in the command screen where +mortgage-loanapproval is run: + +Buildfile: build.xml +run: + [java] Credit score for 111-22-3333: 708 + [java] Interest rate for a 30-year loan of $200000.0 in CA: 6.5% + [java] Debt/Income ratio 0.2528272093971861 is too high. + [java] Rejected: John Smith[111-22-3333] + diff --git a/tags/java/sca/1.5.1-RC4/demos/mortgage-loanapproval/build.xml b/tags/java/sca/1.5.1-RC4/demos/mortgage-loanapproval/build.xml new file mode 100644 index 0000000000..9a0a83bf1d --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/demos/mortgage-loanapproval/build.xml @@ -0,0 +1,66 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/demos/mortgage-loanapproval/doc/credit_composite.jpg b/tags/java/sca/1.5.1-RC4/demos/mortgage-loanapproval/doc/credit_composite.jpg new file mode 100644 index 0000000000..e28ed63cfb Binary files /dev/null and b/tags/java/sca/1.5.1-RC4/demos/mortgage-loanapproval/doc/credit_composite.jpg differ diff --git a/tags/java/sca/1.5.1-RC4/demos/mortgage-loanapproval/doc/credit_composite.png b/tags/java/sca/1.5.1-RC4/demos/mortgage-loanapproval/doc/credit_composite.png new file mode 100644 index 0000000000..0bfce0078d Binary files /dev/null and b/tags/java/sca/1.5.1-RC4/demos/mortgage-loanapproval/doc/credit_composite.png differ diff --git a/tags/java/sca/1.5.1-RC4/demos/mortgage-loanapproval/doc/loan_approval.jpg b/tags/java/sca/1.5.1-RC4/demos/mortgage-loanapproval/doc/loan_approval.jpg new file mode 100644 index 0000000000..3f00557c7f Binary files /dev/null and b/tags/java/sca/1.5.1-RC4/demos/mortgage-loanapproval/doc/loan_approval.jpg differ diff --git a/tags/java/sca/1.5.1-RC4/demos/mortgage-loanapproval/doc/loan_approval.png b/tags/java/sca/1.5.1-RC4/demos/mortgage-loanapproval/doc/loan_approval.png new file mode 100644 index 0000000000..9d5f829fe5 Binary files /dev/null and b/tags/java/sca/1.5.1-RC4/demos/mortgage-loanapproval/doc/loan_approval.png differ diff --git a/tags/java/sca/1.5.1-RC4/demos/mortgage-loanapproval/doc/mortgage_assembly0.jpg b/tags/java/sca/1.5.1-RC4/demos/mortgage-loanapproval/doc/mortgage_assembly0.jpg new file mode 100644 index 0000000000..515b6ecde7 Binary files /dev/null and b/tags/java/sca/1.5.1-RC4/demos/mortgage-loanapproval/doc/mortgage_assembly0.jpg differ diff --git a/tags/java/sca/1.5.1-RC4/demos/mortgage-loanapproval/doc/mortgage_assembly0.png b/tags/java/sca/1.5.1-RC4/demos/mortgage-loanapproval/doc/mortgage_assembly0.png new file mode 100644 index 0000000000..4b815a4b82 Binary files /dev/null and b/tags/java/sca/1.5.1-RC4/demos/mortgage-loanapproval/doc/mortgage_assembly0.png differ diff --git a/tags/java/sca/1.5.1-RC4/demos/mortgage-loanapproval/doc/mortgage_assembly1.jpg b/tags/java/sca/1.5.1-RC4/demos/mortgage-loanapproval/doc/mortgage_assembly1.jpg new file mode 100644 index 0000000000..01a7c55a14 Binary files /dev/null and b/tags/java/sca/1.5.1-RC4/demos/mortgage-loanapproval/doc/mortgage_assembly1.jpg differ diff --git a/tags/java/sca/1.5.1-RC4/demos/mortgage-loanapproval/doc/mortgage_assembly1.png b/tags/java/sca/1.5.1-RC4/demos/mortgage-loanapproval/doc/mortgage_assembly1.png new file mode 100644 index 0000000000..07422c4f45 Binary files /dev/null and b/tags/java/sca/1.5.1-RC4/demos/mortgage-loanapproval/doc/mortgage_assembly1.png differ diff --git a/tags/java/sca/1.5.1-RC4/demos/mortgage-loanapproval/doc/mortgage_assembly2.jpg b/tags/java/sca/1.5.1-RC4/demos/mortgage-loanapproval/doc/mortgage_assembly2.jpg new file mode 100644 index 0000000000..992c048684 Binary files /dev/null and b/tags/java/sca/1.5.1-RC4/demos/mortgage-loanapproval/doc/mortgage_assembly2.jpg differ diff --git a/tags/java/sca/1.5.1-RC4/demos/mortgage-loanapproval/doc/mortgage_assembly2.png b/tags/java/sca/1.5.1-RC4/demos/mortgage-loanapproval/doc/mortgage_assembly2.png new file mode 100644 index 0000000000..4667956ed0 Binary files /dev/null and b/tags/java/sca/1.5.1-RC4/demos/mortgage-loanapproval/doc/mortgage_assembly2.png differ diff --git a/tags/java/sca/1.5.1-RC4/demos/mortgage-loanapproval/doc/mortgage_composite.jpg b/tags/java/sca/1.5.1-RC4/demos/mortgage-loanapproval/doc/mortgage_composite.jpg new file mode 100644 index 0000000000..5021f6a317 Binary files /dev/null and b/tags/java/sca/1.5.1-RC4/demos/mortgage-loanapproval/doc/mortgage_composite.jpg differ diff --git a/tags/java/sca/1.5.1-RC4/demos/mortgage-loanapproval/doc/mortgage_composite.png b/tags/java/sca/1.5.1-RC4/demos/mortgage-loanapproval/doc/mortgage_composite.png new file mode 100644 index 0000000000..1398c50ded Binary files /dev/null and b/tags/java/sca/1.5.1-RC4/demos/mortgage-loanapproval/doc/mortgage_composite.png differ diff --git a/tags/java/sca/1.5.1-RC4/demos/mortgage-loanapproval/doc/mortgage_diagrams.doc b/tags/java/sca/1.5.1-RC4/demos/mortgage-loanapproval/doc/mortgage_diagrams.doc new file mode 100644 index 0000000000..32a0b72907 Binary files /dev/null and b/tags/java/sca/1.5.1-RC4/demos/mortgage-loanapproval/doc/mortgage_diagrams.doc differ diff --git a/tags/java/sca/1.5.1-RC4/demos/mortgage-loanapproval/doc/mortgage_package1.jpg b/tags/java/sca/1.5.1-RC4/demos/mortgage-loanapproval/doc/mortgage_package1.jpg new file mode 100644 index 0000000000..e91c5f1bbd Binary files /dev/null and b/tags/java/sca/1.5.1-RC4/demos/mortgage-loanapproval/doc/mortgage_package1.jpg differ diff --git a/tags/java/sca/1.5.1-RC4/demos/mortgage-loanapproval/doc/mortgage_package1.png b/tags/java/sca/1.5.1-RC4/demos/mortgage-loanapproval/doc/mortgage_package1.png new file mode 100644 index 0000000000..db304a4c28 Binary files /dev/null and b/tags/java/sca/1.5.1-RC4/demos/mortgage-loanapproval/doc/mortgage_package1.png differ diff --git a/tags/java/sca/1.5.1-RC4/demos/mortgage-loanapproval/doc/mortgage_package2.jpg b/tags/java/sca/1.5.1-RC4/demos/mortgage-loanapproval/doc/mortgage_package2.jpg new file mode 100644 index 0000000000..e8c2865e4a Binary files /dev/null and b/tags/java/sca/1.5.1-RC4/demos/mortgage-loanapproval/doc/mortgage_package2.jpg differ diff --git a/tags/java/sca/1.5.1-RC4/demos/mortgage-loanapproval/doc/mortgage_package2.png b/tags/java/sca/1.5.1-RC4/demos/mortgage-loanapproval/doc/mortgage_package2.png new file mode 100644 index 0000000000..502e538e94 Binary files /dev/null and b/tags/java/sca/1.5.1-RC4/demos/mortgage-loanapproval/doc/mortgage_package2.png differ diff --git a/tags/java/sca/1.5.1-RC4/demos/mortgage-loanapproval/doc/mortgage_scenario.jpg b/tags/java/sca/1.5.1-RC4/demos/mortgage-loanapproval/doc/mortgage_scenario.jpg new file mode 100644 index 0000000000..fccf2e35c3 Binary files /dev/null and b/tags/java/sca/1.5.1-RC4/demos/mortgage-loanapproval/doc/mortgage_scenario.jpg differ diff --git a/tags/java/sca/1.5.1-RC4/demos/mortgage-loanapproval/doc/mortgage_scenario.png b/tags/java/sca/1.5.1-RC4/demos/mortgage-loanapproval/doc/mortgage_scenario.png new file mode 100644 index 0000000000..b8f42ad318 Binary files /dev/null and b/tags/java/sca/1.5.1-RC4/demos/mortgage-loanapproval/doc/mortgage_scenario.png differ diff --git a/tags/java/sca/1.5.1-RC4/demos/mortgage-loanapproval/mortgage_assembly.png b/tags/java/sca/1.5.1-RC4/demos/mortgage-loanapproval/mortgage_assembly.png new file mode 100644 index 0000000000..4667956ed0 Binary files /dev/null and b/tags/java/sca/1.5.1-RC4/demos/mortgage-loanapproval/mortgage_assembly.png differ diff --git a/tags/java/sca/1.5.1-RC4/demos/mortgage-loanapproval/pom.xml b/tags/java/sca/1.5.1-RC4/demos/mortgage-loanapproval/pom.xml new file mode 100644 index 0000000000..18418ee7f3 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/demos/mortgage-loanapproval/pom.xml @@ -0,0 +1,83 @@ + + + + 4.0.0 + + org.apache.tuscany.sca + tuscany-demos + 1.5.1 + ../pom.xml + + demo-mortgage-loanapproval + jar + Apache Tuscany SCA Demo Mortgage Loan Approval + A sample Mortgage application made of several SCA components wired together. + + + 1.5.1 + + + + + org.apache.tuscany.sca + tuscany-host-embedded + 1.5.1 + + + + org.apache.tuscany.sca + tuscany-implementation-java-runtime + 1.5.1 + runtime + + + + org.apache.tuscany.sca + tuscany-binding-ws-axis2 + 1.5.1 + runtime + + + org.apache.tuscany.sca + tuscany-implementation-script + 1.5.1 + runtime + + + + + + install + ${artifactId} + + + org.apache.maven.plugins + maven-jar-plugin + + + + mortgage.MortgageClient + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/demos/mortgage-loanapproval/src/main/java/mortgage/CreditCheck.java b/tags/java/sca/1.5.1-RC4/demos/mortgage-loanapproval/src/main/java/mortgage/CreditCheck.java new file mode 100644 index 0000000000..c5787b7819 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/demos/mortgage-loanapproval/src/main/java/mortgage/CreditCheck.java @@ -0,0 +1,29 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package mortgage; + +import org.osoa.sca.annotations.Remotable; + +/** + * CreditCheck interface + */ +@Remotable +public interface CreditCheck { + int getCreditScore(String ssn); +} diff --git a/tags/java/sca/1.5.1-RC4/demos/mortgage-loanapproval/src/main/java/mortgage/CreditCheckImpl.java b/tags/java/sca/1.5.1-RC4/demos/mortgage-loanapproval/src/main/java/mortgage/CreditCheckImpl.java new file mode 100644 index 0000000000..dc803d9688 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/demos/mortgage-loanapproval/src/main/java/mortgage/CreditCheckImpl.java @@ -0,0 +1,34 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package mortgage; + +import org.osoa.sca.annotations.Service; + +/** + * A pojo implementation of the CreditCheck service + */ +@Service(CreditCheck.class) +public class CreditCheckImpl implements CreditCheck { + + public int getCreditScore(String ssn) { + int score = (int)(700 + (Math.random() - 0.5) * 100); + System.out.println("Credit score for " + ssn + ": " + score); + return score; + } +} diff --git a/tags/java/sca/1.5.1-RC4/demos/mortgage-loanapproval/src/main/java/mortgage/Customer.java b/tags/java/sca/1.5.1-RC4/demos/mortgage-loanapproval/src/main/java/mortgage/Customer.java new file mode 100644 index 0000000000..66a486d516 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/demos/mortgage-loanapproval/src/main/java/mortgage/Customer.java @@ -0,0 +1,76 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package mortgage; + +/** + * A simple Customer object + */ +public class Customer { + private String ssn; + private String firstName; + private String lastName; + private double monthlyIncome; + private String state; + + public double getMonthlyIncome() { + return monthlyIncome; + } + + public void setMonthlyIncome(double monthlyIncome) { + this.monthlyIncome = monthlyIncome; + } + + public String getState() { + return state; + } + + public void setState(String state) { + this.state = state; + } + + 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 getSsn() { + return ssn; + } + + public void setSsn(String ssn) { + this.ssn = ssn; + } + + @Override + public String toString() { + return firstName + " " + lastName + "[" + ssn + "]"; + } +} diff --git a/tags/java/sca/1.5.1-RC4/demos/mortgage-loanapproval/src/main/java/mortgage/InterestRateQuote.java b/tags/java/sca/1.5.1-RC4/demos/mortgage-loanapproval/src/main/java/mortgage/InterestRateQuote.java new file mode 100644 index 0000000000..b5bafeb204 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/demos/mortgage-loanapproval/src/main/java/mortgage/InterestRateQuote.java @@ -0,0 +1,23 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package mortgage; + +public interface InterestRateQuote { + public float getRate(String state, double loanAmount, int termInYears); +} diff --git a/tags/java/sca/1.5.1-RC4/demos/mortgage-loanapproval/src/main/java/mortgage/InterestRateQuoteImpl.java b/tags/java/sca/1.5.1-RC4/demos/mortgage-loanapproval/src/main/java/mortgage/InterestRateQuoteImpl.java new file mode 100644 index 0000000000..8c642667f1 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/demos/mortgage-loanapproval/src/main/java/mortgage/InterestRateQuoteImpl.java @@ -0,0 +1,42 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package mortgage; + +import org.osoa.sca.annotations.Service; + +@Service(InterestRateQuote.class) +public class InterestRateQuoteImpl implements InterestRateQuote { + public float getRate(String state, double loanAmount, int termInYears) { + float rate = 6.0f; + if (termInYears == 5) { + rate = 5.5f; + } else { + rate = 6.5f; + } + System.out.println("Interest rate for a " + termInYears + + "-year loan of $" + + loanAmount + + " in " + + state + + ": " + + rate + + "%"); + return rate; + } +} diff --git a/tags/java/sca/1.5.1-RC4/demos/mortgage-loanapproval/src/main/java/mortgage/LoanApproval.java b/tags/java/sca/1.5.1-RC4/demos/mortgage-loanapproval/src/main/java/mortgage/LoanApproval.java new file mode 100644 index 0000000000..dcdad18496 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/demos/mortgage-loanapproval/src/main/java/mortgage/LoanApproval.java @@ -0,0 +1,27 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package mortgage; + +/** + * Loan Approval interface + */ +public interface LoanApproval { + public boolean approve(Customer customer, double loanAmount, int years); +} diff --git a/tags/java/sca/1.5.1-RC4/demos/mortgage-loanapproval/src/main/java/mortgage/LoanApprovalImpl.java b/tags/java/sca/1.5.1-RC4/demos/mortgage-loanapproval/src/main/java/mortgage/LoanApprovalImpl.java new file mode 100644 index 0000000000..40bfdc4a1d --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/demos/mortgage-loanapproval/src/main/java/mortgage/LoanApprovalImpl.java @@ -0,0 +1,84 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package mortgage; + +import org.osoa.sca.annotations.Property; +import org.osoa.sca.annotations.Reference; +import org.osoa.sca.annotations.Service; + +/** + * An implementation of the LoanApproval service. + */ +@Service(LoanApproval.class) +// Service declaration +public class LoanApprovalImpl implements LoanApproval { + private CreditCheck[] creditCheck; + private MortgageCalculator mortgageCalculator; + private InterestRateQuote interestRateQuote; + + // Reference declaration using a protected or public field + @Reference + public RiskAssessment riskAssessment; + + private int minimumCreditScore = 650; + + // Property declaration using a setter method + @Property(name = "minimumCreditScore") + public void setMinimumCreditScore(int minimumCreditScore) { + this.minimumCreditScore = minimumCreditScore; + } + + // Reference declaration using a setter method + @Reference + public void setCreditCheck(CreditCheck[] creditCheck) { + this.creditCheck = creditCheck; + } + + @Reference + public void setInterestRateQuote(InterestRateQuote interestRateQuote) { + this.interestRateQuote = interestRateQuote; + } + + @Reference + public void setMortgageCalculator(MortgageCalculator mortgageCalculator) { + this.mortgageCalculator = mortgageCalculator; + } + + public boolean approve(Customer customer, double loanAmount, int years) { + int score = 0; + for (int i = 0; i < creditCheck.length; i++) { + score += creditCheck[i].getCreditScore(customer.getSsn()); + } + if (score != 0) { + score = score / creditCheck.length; + } + if (score < minimumCreditScore) { + System.err.println("Credit score " + score + " is below the minimum " + minimumCreditScore + "."); + return false; + } + float rate = interestRateQuote.getRate(customer.getState(), loanAmount, years); + double monthlyPayment = mortgageCalculator.getMonthlyPayment(loanAmount, years, rate); + double ratio = monthlyPayment / customer.getMonthlyIncome(); + boolean approved = riskAssessment.assess(score, ratio); + if (!approved) { + System.err.println("Debt/Income ratio " + ratio + " is too high."); + } + return approved; + } +} diff --git a/tags/java/sca/1.5.1-RC4/demos/mortgage-loanapproval/src/main/java/mortgage/MortgageCalculator.java b/tags/java/sca/1.5.1-RC4/demos/mortgage-loanapproval/src/main/java/mortgage/MortgageCalculator.java new file mode 100644 index 0000000000..cacd8694de --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/demos/mortgage-loanapproval/src/main/java/mortgage/MortgageCalculator.java @@ -0,0 +1,29 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package mortgage; + +import org.osoa.sca.annotations.Remotable; + +/** + * The Mortgage Calculator service interface. + */ +@Remotable +public interface MortgageCalculator { + public double getMonthlyPayment(double principal, int years, float interestRate); +} diff --git a/tags/java/sca/1.5.1-RC4/demos/mortgage-loanapproval/src/main/java/mortgage/MortgageCalculatorImpl.java b/tags/java/sca/1.5.1-RC4/demos/mortgage-loanapproval/src/main/java/mortgage/MortgageCalculatorImpl.java new file mode 100644 index 0000000000..015f1bae98 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/demos/mortgage-loanapproval/src/main/java/mortgage/MortgageCalculatorImpl.java @@ -0,0 +1,38 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package mortgage; + +import org.osoa.sca.annotations.Service; + +/** + * An implementation of the Calculator service. + */ +@Service(MortgageCalculator.class) +public class MortgageCalculatorImpl implements MortgageCalculator { + + public double getMonthlyPayment(double principal, int years, float interestRate) { + double monthlyRate = interestRate / 12.0 / 100.0; + double p = Math.pow(1 + monthlyRate, years * 12); + double q = p / (p - 1); + double monthlyPayment = principal * monthlyRate * q; + System.out.println("Monthly payment for a " + years + "-year loan of $" + principal + ": " + monthlyPayment); + return monthlyPayment; + } + +} diff --git a/tags/java/sca/1.5.1-RC4/demos/mortgage-loanapproval/src/main/java/mortgage/MortgageClient.java b/tags/java/sca/1.5.1-RC4/demos/mortgage-loanapproval/src/main/java/mortgage/MortgageClient.java new file mode 100644 index 0000000000..d69f0a1163 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/demos/mortgage-loanapproval/src/main/java/mortgage/MortgageClient.java @@ -0,0 +1,44 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package mortgage; + +import org.apache.tuscany.sca.host.embedded.SCADomain; + +/** + * This client program to invoke the Mortgage LoanApproval service + */ +public class MortgageClient { + public static void main(String[] args) throws Exception { + + SCADomain domain = SCADomain.newInstance("Mortgage1.composite"); + LoanApproval loanApplication = domain.getService(LoanApproval.class, "LoanApprovalComponent"); + + // Create the customer + Customer customer = new Customer(); + customer.setSsn("111-22-3333"); + customer.setFirstName("John"); + customer.setLastName("Smith"); + customer.setMonthlyIncome(5000.0d); + customer.setState("CA"); + + // Invoke the service + boolean result = loanApplication.approve(customer, 200000d, 30); + System.out.println((result ? "Approved: " : "Rejected: ") + customer); + } +} diff --git a/tags/java/sca/1.5.1-RC4/demos/mortgage-loanapproval/src/main/java/mortgage/RiskAssessment.java b/tags/java/sca/1.5.1-RC4/demos/mortgage-loanapproval/src/main/java/mortgage/RiskAssessment.java new file mode 100644 index 0000000000..23c9589e85 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/demos/mortgage-loanapproval/src/main/java/mortgage/RiskAssessment.java @@ -0,0 +1,27 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package mortgage; + +/** + * Risk Assessment interface + */ +public interface RiskAssessment { + public boolean assess(int creditScore, double ratio); +} diff --git a/tags/java/sca/1.5.1-RC4/demos/mortgage-loanapproval/src/main/java/mortgage/RiskAssessmentImpl.java b/tags/java/sca/1.5.1-RC4/demos/mortgage-loanapproval/src/main/java/mortgage/RiskAssessmentImpl.java new file mode 100644 index 0000000000..c2116366ec --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/demos/mortgage-loanapproval/src/main/java/mortgage/RiskAssessmentImpl.java @@ -0,0 +1,38 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package mortgage; + +import org.osoa.sca.annotations.Service; + +/** + * A pojo implementation of RiskAssessment service + */ +@Service(RiskAssessment.class) +public class RiskAssessmentImpl implements RiskAssessment { + public boolean assess(int creditScore, double ratio) { + if (creditScore >= 750) { + return ratio < 0.35; + } else if (creditScore >= 700) { + return ratio < 0.30; + } else { + return ratio < 0.25; + } + } +} diff --git a/tags/java/sca/1.5.1-RC4/demos/mortgage-loanapproval/src/main/resources/Mortgage.composite b/tags/java/sca/1.5.1-RC4/demos/mortgage-loanapproval/src/main/resources/Mortgage.composite new file mode 100644 index 0000000000..d1128b9907 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/demos/mortgage-loanapproval/src/main/resources/Mortgage.composite @@ -0,0 +1,48 @@ + + + + + + + 600 + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/demos/mortgage-loanapproval/src/main/resources/Mortgage1.composite b/tags/java/sca/1.5.1-RC4/demos/mortgage-loanapproval/src/main/resources/Mortgage1.composite new file mode 100644 index 0000000000..4cad6c7223 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/demos/mortgage-loanapproval/src/main/resources/Mortgage1.composite @@ -0,0 +1,57 @@ + + + + + + + 600 + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/demos/mortgage-loanapproval/src/main/resources/MortgageCalculator.componentType b/tags/java/sca/1.5.1-RC4/demos/mortgage-loanapproval/src/main/resources/MortgageCalculator.componentType new file mode 100644 index 0000000000..bf7b10e0f7 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/demos/mortgage-loanapproval/src/main/resources/MortgageCalculator.componentType @@ -0,0 +1,27 @@ + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/demos/mortgage-loanapproval/src/main/resources/MortgageCalculator.js b/tags/java/sca/1.5.1-RC4/demos/mortgage-loanapproval/src/main/resources/MortgageCalculator.js new file mode 100644 index 0000000000..b25af1d039 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/demos/mortgage-loanapproval/src/main/resources/MortgageCalculator.js @@ -0,0 +1,25 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +function getMonthlyPayment(principal, years, interestRate) { + var monthlyRate = interestRate / 12.0 / 100.0; + var p = Math.pow(1 + monthlyRate, years * 12); + var q = p / (p - 1); + var monthlyPayment = principal * monthlyRate * q; + return monthlyPayment; +} diff --git a/tags/java/sca/1.5.1-RC4/demos/mortgage-loanapproval/src/main/resources/wsdl/credit.wsdl b/tags/java/sca/1.5.1-RC4/demos/mortgage-loanapproval/src/main/resources/wsdl/credit.wsdl new file mode 100644 index 0000000000..9c2acc96d3 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/demos/mortgage-loanapproval/src/main/resources/wsdl/credit.wsdl @@ -0,0 +1,81 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/demos/mortgage-loanapproval/src/test/java/mortgage/MortgageClientTestCase.java b/tags/java/sca/1.5.1-RC4/demos/mortgage-loanapproval/src/test/java/mortgage/MortgageClientTestCase.java new file mode 100644 index 0000000000..285cc72515 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/demos/mortgage-loanapproval/src/test/java/mortgage/MortgageClientTestCase.java @@ -0,0 +1,56 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package mortgage; + +import junit.framework.TestCase; + +import org.apache.tuscany.sca.host.embedded.SCADomain; + +/** + * This shows how to test the Calculator service component. + */ +public class MortgageClientTestCase extends TestCase { + private SCADomain domain; + private LoanApproval loanApproval; + + @Override + protected void setUp() throws Exception { + domain = SCADomain.newInstance("Mortgage.composite"); + loanApproval = domain.getService(LoanApproval.class, "LoanApprovalComponent"); + } + + @Override + protected void tearDown() throws Exception { + if (domain != null) { + domain.close(); + } + } + + public void testApprove() throws Exception { + Customer customer = new Customer(); + customer.setSsn("111-22-3333"); + customer.setFirstName("John"); + customer.setLastName("Smith"); + customer.setMonthlyIncome(5000.0d); + customer.setState("CA"); + + boolean approved = loanApproval.approve(customer, 200000d, 30); + System.out.println((approved ? "Approved: " : "Rejected: ") + customer); + } +} diff --git a/tags/java/sca/1.5.1-RC4/demos/pom.xml b/tags/java/sca/1.5.1-RC4/demos/pom.xml new file mode 100644 index 0000000000..8b3d86d5d2 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/demos/pom.xml @@ -0,0 +1,52 @@ + + + + 4.0.0 + + org.apache.tuscany.sca + tuscany-sca + 1.5.1 + ../pom.xml + + tuscany-demos + pom + Apache Tuscany SCA Demos + + + + default + + true + + + alert-aggregator-webapp + bigbank + bigbank-account + bigbank-calculator + bigbank-stockquote + mortgage-creditcheck + mortgage-loanapproval + xml-bigbank + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/demos/xml-bigbank/README b/tags/java/sca/1.5.1-RC4/demos/xml-bigbank/README new file mode 100644 index 0000000000..3bdeeca60a --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/demos/xml-bigbank/README @@ -0,0 +1,46 @@ +XML BigBank Demo +================ + +This demo showcases the integration with XML technolgies in the service assembly. + +Note: The live stock quote web service is not always running. Sometimes empty response is returned and the stock value is 0. + +To run the demo, type "ant run" and it will produce the following output. + +Buildfile: build.xml + +init: + [get] Getting: http://www.swanandmokashi.com/HomePage/WebServices/StockQuotes.asmx?WSDL + [get] To: C:\Apache\tuscany-sca-1.0.1-incubating\demos\xml-bigbank\src\main\resources\wsdl\StockQuotes.wsdl + [get] local file date : Tue Nov 06 15:50:37 PST 2007 + [get] . + [get] last modified = Wed Dec 31 16:00:00 PST 1969 - using current time instead + [mkdir] Created dir: C:\Apache\tuscany-sca-1.0.1-incubating\demos\xml-bigbank\target\classes + +compile: + [javac] Compiling 11 source files to C:\Apache\tuscany-sca-1.0.1-incubating\demos\xml-bigbank\target\classes + [copy] Copying 6 files to C:\Apache\tuscany-sca-1.0.1-incubating\demos\xml-bigbank\target\classes + [jar] Building jar: C:\Apache\tuscany-sca-1.0.1-incubating\demos\xml-bigbank\target\demo-xml-bigbank.jar + +run: + [java] Nov 6, 2007 3:52:28 PM org.apache.axis2.deployment.DeploymentEngine loadFromClassPath + [java] INFO: Module validation failed: The system is attempting to engage a module that is not available: rampart + [java] Retrieving exchange rate... + [java] Nov 6, 2007 3:52:29 PM org.apache.tuscany.sca.binding.feed.provider.RSSBindingInvoker invoke + [java] INFO: >>> RSSBindingInvoker (rss_2.0) http://ansuz.sooke.bc.ca/rippy/exchange/?M=R&B=USD&F=CAD,CNY,EUR&T=F&S=O&I=S + [java] Exchange rate: USD 1.0=EUR 0.68705 + [java] Loading account data... + [java] Getting stock quote... + [java] Nov 6, 2007 3:52:30 PM org.apache.commons.httpclient.HttpMethodBase readResponse + [java] INFO: Discarding unexpected response: HTTP/1.1 100 Continue + [java] Calculating total value... + [java] Checking Balance: xs:double: 1000 + [java] Saving Blance: xs:double: 20000 + [java] Stock Value: xs:integer: 0 + [java] Total Value [1]: xs:double: 21000 + [java] Total Value=USD 21000.0 + [java] EUR: 14428.050000000001 + +BUILD SUCCESSFUL +Total time: 7 seconds + diff --git a/tags/java/sca/1.5.1-RC4/demos/xml-bigbank/build.xml b/tags/java/sca/1.5.1-RC4/demos/xml-bigbank/build.xml new file mode 100644 index 0000000000..0ba1b069aa --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/demos/xml-bigbank/build.xml @@ -0,0 +1,63 @@ + + +]> + + + &buildDependency; + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/demos/xml-bigbank/pom.xml b/tags/java/sca/1.5.1-RC4/demos/xml-bigbank/pom.xml new file mode 100644 index 0000000000..14bc849498 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/demos/xml-bigbank/pom.xml @@ -0,0 +1,115 @@ + + + + 4.0.0 + + org.apache.tuscany.sca + tuscany-demos + 1.5.1 + ../pom.xml + + demo-xml-bigbank + jar + Apache Tuscany SCA Demo XML BigBank + Apache Tuscany SCA XML BigBank Demo + + + + org.apache.tuscany.sca + tuscany-host-embedded + 1.5.1 + + + + org.apache.tuscany.sca + tuscany-implementation-java-runtime + 1.5.1 + runtime + + + + org.apache.tuscany.sca + tuscany-binding-ws-axis2 + 1.5.1 + compile + + + + org.apache.tuscany.sca + tuscany-binding-rss-rome + 1.5.1 + compile + + + + org.apache.tuscany.sca + tuscany-databinding-saxon + 1.5.1 + runtime + + + + + org.apache.tuscany.sca + tuscany-implementation-xquery + 1.5.1 + runtime + + + + org.apache.tuscany.sca + tuscany-host-jetty + 1.5.1 + runtime + + + + junit + junit + 4.5 + test + + + + + + ${artifactId} + + + org.apache.tuscany.sca + tuscany-maven-ant-generator + 1.5.1 + + + + bigbank.BigBankClient + true + + + generate + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/demos/xml-bigbank/src/main/java/bigbank/AccountData.java b/tags/java/sca/1.5.1-RC4/demos/xml-bigbank/src/main/java/bigbank/AccountData.java new file mode 100644 index 0000000000..c3ae8d0912 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/demos/xml-bigbank/src/main/java/bigbank/AccountData.java @@ -0,0 +1,36 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES 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; + +import java.io.IOException; + +import javax.xml.stream.XMLStreamReader; + +/** + * @version $Rev$ $Date$ + */ +public interface AccountData { + /** + * Get the StAX stream that represent the accounts data + * @return The StAX stream containign the accounts + * @throws IOException + */ + XMLStreamReader getAccounts() throws IOException; +} diff --git a/tags/java/sca/1.5.1-RC4/demos/xml-bigbank/src/main/java/bigbank/AccountDataImpl.java b/tags/java/sca/1.5.1-RC4/demos/xml-bigbank/src/main/java/bigbank/AccountDataImpl.java new file mode 100644 index 0000000000..1c0c612987 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/demos/xml-bigbank/src/main/java/bigbank/AccountDataImpl.java @@ -0,0 +1,48 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES 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; + +import java.io.IOException; +import java.net.URL; + +import javax.xml.stream.XMLInputFactory; +import javax.xml.stream.XMLStreamReader; + +import org.osoa.sca.annotations.Service; + +/** + * @version $Rev$ $Date$ + */ +@Service(AccountData.class) +public class AccountDataImpl implements AccountData { + private XMLInputFactory factory = XMLInputFactory.newInstance(); + + public XMLStreamReader getAccounts() throws IOException { + URL doc = getClass().getResource("/accounts.xml"); + XMLStreamReader reader = null; + try { + reader = factory.createXMLStreamReader(doc.openStream()); + } catch (Exception e) { + e.printStackTrace(); + } + return reader; + } + +} diff --git a/tags/java/sca/1.5.1-RC4/demos/xml-bigbank/src/main/java/bigbank/AccountService.java b/tags/java/sca/1.5.1-RC4/demos/xml-bigbank/src/main/java/bigbank/AccountService.java new file mode 100644 index 0000000000..4c72384e7b --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/demos/xml-bigbank/src/main/java/bigbank/AccountService.java @@ -0,0 +1,32 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES 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; + + +/** + * @version $Rev$ $Date$ + */ +public interface AccountService { + /** + * Get the total value of all accounts owned by the customer + * @return The total value + */ + double getTotalValue(); +} diff --git a/tags/java/sca/1.5.1-RC4/demos/xml-bigbank/src/main/java/bigbank/AccountServiceImpl.java b/tags/java/sca/1.5.1-RC4/demos/xml-bigbank/src/main/java/bigbank/AccountServiceImpl.java new file mode 100644 index 0000000000..00fce39462 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/demos/xml-bigbank/src/main/java/bigbank/AccountServiceImpl.java @@ -0,0 +1,84 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES 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; + +import java.io.StringReader; + +import javax.xml.stream.XMLInputFactory; +import javax.xml.stream.XMLStreamReader; + +import org.apache.axiom.om.OMElement; +import org.osoa.sca.ServiceRuntimeException; +import org.osoa.sca.annotations.Property; +import org.osoa.sca.annotations.Reference; +import org.osoa.sca.annotations.Service; + +/** + * @version $Rev$ $Date$ + */ +@Service(AccountService.class) +public class AccountServiceImpl implements AccountService { + private static final String STOCK_QUOTE_REQUEST = + "IBM"; + + private XMLInputFactory factory = XMLInputFactory.newInstance(); + + @Reference + protected ExchangeRate exchangeRate; + + @Reference + protected StockQuote stockQuote; + + @Reference + protected AccountData accountData; + + @Reference + protected StockValue stockValue; + + @Property + protected String currency; + + public double getTotalValue() { + try { + double rate = exchangeRate.getExchangeRate(currency); + + System.out.println("Loading account data..."); + XMLStreamReader accounts = accountData.getAccounts(); + + System.out.println("Getting stock quote..."); + XMLStreamReader request = factory.createXMLStreamReader(new StringReader(STOCK_QUOTE_REQUEST)); + + OMElement quotes = stockQuote.GetQuote(request); + + String xml = quotes.getText(); + System.out.println(xml); + XMLStreamReader qts = factory.createXMLStreamReader(new StringReader(xml)); + System.out.println("Calculating total value..."); + double value = stockValue.calculate(qts, accounts); + + System.out.println("Total Value=USD " + value); + + return value * rate; + } catch (Exception e) { + throw new ServiceRuntimeException(e); + } + } + +} diff --git a/tags/java/sca/1.5.1-RC4/demos/xml-bigbank/src/main/java/bigbank/BigBankClient.java b/tags/java/sca/1.5.1-RC4/demos/xml-bigbank/src/main/java/bigbank/BigBankClient.java new file mode 100644 index 0000000000..a7703787fb --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/demos/xml-bigbank/src/main/java/bigbank/BigBankClient.java @@ -0,0 +1,35 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES 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; + +import org.apache.tuscany.sca.host.embedded.SCADomain; + +/** + * This client program to invoke the Account service + */ +public class BigBankClient { + + public static void main(String[] args) throws Exception { + + SCADomain domain = SCADomain.newInstance("BigBank.composite"); + AccountService accountService = domain.getService(AccountService.class, "AccountService"); + + System.out.println("EUR: " + accountService.getTotalValue()); + } +} diff --git a/tags/java/sca/1.5.1-RC4/demos/xml-bigbank/src/main/java/bigbank/BigBankServer.java b/tags/java/sca/1.5.1-RC4/demos/xml-bigbank/src/main/java/bigbank/BigBankServer.java new file mode 100644 index 0000000000..f5f1ca90b6 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/demos/xml-bigbank/src/main/java/bigbank/BigBankServer.java @@ -0,0 +1,40 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES 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; + +import org.apache.tuscany.sca.host.embedded.SCADomain; + +/** + * @version $Rev$ $Date$ + */ +public class BigBankServer { + public static void main(String[] args) throws Exception { + + System.out.println("Starting the BigBank Service..."); + + SCADomain domain = SCADomain.newInstance("http://localhost", "/", "BigBank.composite"); + + System.out.println("Press Enter to Exit..."); + System.in.read(); + + domain.close(); + System.out.println("Bye"); + } +} diff --git a/tags/java/sca/1.5.1-RC4/demos/xml-bigbank/src/main/java/bigbank/CurrencyExchange.java b/tags/java/sca/1.5.1-RC4/demos/xml-bigbank/src/main/java/bigbank/CurrencyExchange.java new file mode 100644 index 0000000000..bb8ff85f45 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/demos/xml-bigbank/src/main/java/bigbank/CurrencyExchange.java @@ -0,0 +1,36 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES 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; + +import org.osoa.sca.annotations.Remotable; + +import com.sun.syndication.feed.synd.SyndFeed; + +/** + * @version $Rev$ $Date$ + */ +@Remotable +public interface CurrencyExchange { + /** + * Get the currency exchange rates as a RSS feed + * @return + */ + SyndFeed getRates(); +} diff --git a/tags/java/sca/1.5.1-RC4/demos/xml-bigbank/src/main/java/bigbank/ExchangeRate.java b/tags/java/sca/1.5.1-RC4/demos/xml-bigbank/src/main/java/bigbank/ExchangeRate.java new file mode 100644 index 0000000000..358e5e19a2 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/demos/xml-bigbank/src/main/java/bigbank/ExchangeRate.java @@ -0,0 +1,32 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES 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; + +/** + * @version $Rev$ $Date$ + */ +public interface ExchangeRate { + /** + * Look up the exchange rate of a currency against USD + * @param currency The currency + * @return The exchange rate + */ + double getExchangeRate(String currency); +} diff --git a/tags/java/sca/1.5.1-RC4/demos/xml-bigbank/src/main/java/bigbank/ExchangeRateImpl.java b/tags/java/sca/1.5.1-RC4/demos/xml-bigbank/src/main/java/bigbank/ExchangeRateImpl.java new file mode 100644 index 0000000000..fcb3707cfe --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/demos/xml-bigbank/src/main/java/bigbank/ExchangeRateImpl.java @@ -0,0 +1,84 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES 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; + +import java.io.ByteArrayInputStream; + +import javax.xml.parsers.DocumentBuilder; +import javax.xml.parsers.DocumentBuilderFactory; +import javax.xml.parsers.ParserConfigurationException; +import javax.xml.xpath.XPath; +import javax.xml.xpath.XPathConstants; +import javax.xml.xpath.XPathExpression; +import javax.xml.xpath.XPathFactory; + +import org.osoa.sca.ServiceRuntimeException; +import org.osoa.sca.annotations.Reference; +import org.osoa.sca.annotations.Service; +import org.w3c.dom.Document; +import org.w3c.dom.Node; + +import com.sun.syndication.feed.synd.SyndEntry; +import com.sun.syndication.feed.synd.SyndFeed; + +/** + * @version $Rev$ $Date$ + */ +@Service(ExchangeRate.class) +public class ExchangeRateImpl { + @Reference + protected CurrencyExchange exchangeRate; + + private final DocumentBuilder builder; + + public ExchangeRateImpl() { + try { + builder = DocumentBuilderFactory.newInstance().newDocumentBuilder(); + } catch (ParserConfigurationException e) { + throw new IllegalArgumentException(e); + } + } + + /** + * Retrieve the live currency exchange rate from a live feed and extract the data for a given + * currecy using XPath + * @param currency The currency + * @return The exchange rate + */ + public double getExchangeRate(String currency) { + try { + System.out.println("Retrieving exchange rate..."); + SyndFeed feed = exchangeRate.getRates(); + SyndEntry entry = (SyndEntry)feed.getEntries().get(0); + String rateTable = entry.getDescription().getValue(); + + Document doc = builder.parse(new ByteArrayInputStream(rateTable.getBytes())); + Node node = doc.getDocumentElement(); + XPath path = XPathFactory.newInstance().newXPath(); + XPathExpression exp = path.compile("/TABLE/TR[TD[1]='" + currency.toUpperCase() + "']/TD[2]"); + Node rateNode = (Node)exp.evaluate(node, XPathConstants.NODE); + double rate = Double.valueOf(rateNode.getTextContent().trim()); + System.out.println("Exchange rate: USD 1.0=" + currency + " " + rate); + return rate; + } catch (Exception e) { + throw new ServiceRuntimeException(e); + } + } +} diff --git a/tags/java/sca/1.5.1-RC4/demos/xml-bigbank/src/main/java/bigbank/StockQuote.java b/tags/java/sca/1.5.1-RC4/demos/xml-bigbank/src/main/java/bigbank/StockQuote.java new file mode 100644 index 0000000000..26753a9e9e --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/demos/xml-bigbank/src/main/java/bigbank/StockQuote.java @@ -0,0 +1,38 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES 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; + +import javax.xml.stream.XMLStreamReader; + +import org.apache.axiom.om.OMElement; +import org.osoa.sca.annotations.Remotable; + +/** + * @version $Rev$ $Date$ + */ +@Remotable +public interface StockQuote { + /** + * Invoke the stock quote web service to get the live quotes + * @param input The StAX stream of the request + * @return The StAX stream of the response + */ + public OMElement GetQuote(XMLStreamReader input); +} diff --git a/tags/java/sca/1.5.1-RC4/demos/xml-bigbank/src/main/java/bigbank/StockValue.java b/tags/java/sca/1.5.1-RC4/demos/xml-bigbank/src/main/java/bigbank/StockValue.java new file mode 100644 index 0000000000..c300103398 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/demos/xml-bigbank/src/main/java/bigbank/StockValue.java @@ -0,0 +1,38 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES 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; + +import javax.xml.stream.XMLStreamReader; + +import org.osoa.sca.annotations.Remotable; + +/** + * @version $Rev$ $Date$ + */ +@Remotable +public interface StockValue { + /** + * Join the quotes and accounts document to calculate the value + * @param quotes The quotes XML document + * @param accounts The accounts XML document + * @return The value + */ + double calculate(XMLStreamReader quotes, XMLStreamReader accounts); +} diff --git a/tags/java/sca/1.5.1-RC4/demos/xml-bigbank/src/main/resources/BigBank.composite b/tags/java/sca/1.5.1-RC4/demos/xml-bigbank/src/main/resources/BigBank.composite new file mode 100644 index 0000000000..8afde4bf80 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/demos/xml-bigbank/src/main/resources/BigBank.composite @@ -0,0 +1,51 @@ + + + + + + + + + + EUR + + + + + + + + + + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/demos/xml-bigbank/src/main/resources/accounts.xml b/tags/java/sca/1.5.1-RC4/demos/xml-bigbank/src/main/resources/accounts.xml new file mode 100644 index 0000000000..52ffd41fa7 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/demos/xml-bigbank/src/main/resources/accounts.xml @@ -0,0 +1,29 @@ + + + + John + Smith + + + + + + + \ No newline at end of file diff --git a/tags/java/sca/1.5.1-RC4/demos/xml-bigbank/src/main/resources/customer.xsd b/tags/java/sca/1.5.1-RC4/demos/xml-bigbank/src/main/resources/customer.xsd new file mode 100644 index 0000000000..b22efb74c4 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/demos/xml-bigbank/src/main/resources/customer.xsd @@ -0,0 +1,46 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/tags/java/sca/1.5.1-RC4/demos/xml-bigbank/src/main/resources/stock.xq b/tags/java/sca/1.5.1-RC4/demos/xml-bigbank/src/main/resources/stock.xq new file mode 100644 index 0000000000..03c19e457d --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/demos/xml-bigbank/src/main/resources/stock.xq @@ -0,0 +1,52 @@ +(: + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. +:) +declare namespace q="http://www.webserviceX.NET/"; +declare namespace c="http://example.com/customer"; +declare namespace stock="scaservice:java/bigbank.StockValue"; +(: declare namespace currency="scaproperty:java/java.lang.String"; :) + +declare function stock:calculate($quoteDoc, $accountDoc) as xs:double { + let $checking := + trace( + sum( + for $a in $accountDoc/c:customer/c:accounts/c:checking + return $a/@balance + ), "Checking Balance") + + let $saving := + trace( + sum( + for $a in $accountDoc/c:customer/c:accounts/c:saving + return $a/@balance + ), "Saving Blance") + + let $value := + trace( + sum( + for $quote in $quoteDoc/StockQuotes/Stock, + $account in $accountDoc/c:customer/c:accounts/c:stock + where string($quote/Symbol) = string($account/@symbol) + return + trace(number($quote/Last),"Stock Price") * trace(number($account/@quantity), "Quantity") + ), "Stock Value") + return trace($checking + $saving + $value, "Total Value") +}; + + + diff --git a/tags/java/sca/1.5.1-RC4/demos/xml-bigbank/src/main/resources/wsdl/StockQuotes.wsdl b/tags/java/sca/1.5.1-RC4/demos/xml-bigbank/src/main/resources/wsdl/StockQuotes.wsdl new file mode 100644 index 0000000000..8411e22ff7 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/demos/xml-bigbank/src/main/resources/wsdl/StockQuotes.wsdl @@ -0,0 +1,23 @@ + + + + + \ No newline at end of file diff --git a/tags/java/sca/1.5.1-RC4/demos/xml-bigbank/xml-bigbank.png b/tags/java/sca/1.5.1-RC4/demos/xml-bigbank/xml-bigbank.png new file mode 100644 index 0000000000..0743a413a3 Binary files /dev/null and b/tags/java/sca/1.5.1-RC4/demos/xml-bigbank/xml-bigbank.png differ diff --git a/tags/java/sca/1.5.1-RC4/demos/xml-bigbank/xml-bigbank.svg b/tags/java/sca/1.5.1-RC4/demos/xml-bigbank/xml-bigbank.svg new file mode 100644 index 0000000000..c7acc03324 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/demos/xml-bigbank/xml-bigbank.svg @@ -0,0 +1,447 @@ + + + + + + + + + + image/svg+xml + + + + + + + + BigBank + AccountData(Local file orDatabase) + + StockValue (XQuery) + + + + + + + + + + + + + + WS XML Feed(rss) + + 1 + + + + 2 + + + + 3 + + + + 4 + + + + AccountService (Java) + + + ExchangeRate (Java) + + StockQuote(Live WebService) CurrencyExchangeRate (Live RSS Feed) + + + + diff --git a/tags/java/sca/1.5.1-RC4/distribution/bundle/pom.xml b/tags/java/sca/1.5.1-RC4/distribution/bundle/pom.xml new file mode 100644 index 0000000000..b7ec8cbd36 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/distribution/bundle/pom.xml @@ -0,0 +1,790 @@ + + + + 4.0.0 + + + org.apache.tuscany.sca + tuscany-sca + 1.5.1 + ../../pom.xml + + + tuscany-bundle + Apache Tuscany SCA Bundle Jar + jar + + + true + ${pom.version} + + + + + ${pom.groupId} + tuscany-assembly + ${pom.version} + + + ${pom.groupId} + tuscany-assembly-xml + ${pom.version} + + + ${pom.groupId} + tuscany-binding-atom-js + ${pom.version} + + + + ${pom.groupId} + tuscany-binding-atom-abdera + ${pom.version} + + + ${pom.groupId} + tuscany-binding-corba + ${pom.version} + + + ${pom.groupId} + tuscany-binding-corba-runtime + ${pom.version} + + + ${pom.groupId} + tuscany-binding-gdata + ${pom.version} + + + ${pom.groupId} + tuscany-binding-gdata-runtime + ${pom.version} + + + ${pom.groupId} + tuscany-binding-dwr + ${pom.version} + + + ${pom.groupId} + tuscany-binding-ejb-runtime + ${pom.version} + + + ${pom.groupId} + tuscany-binding-http-jsonrpc-runtime + ${pom.version} + + + ${pom.groupId} + tuscany-binding-http-runtime + ${pom.version} + + + ${pom.groupId} + tuscany-binding-jms-runtime + ${pom.version} + + + ${pom.groupId} + tuscany-binding-jsonrpc-js + ${pom.version} + + + + ${pom.groupId} + tuscany-binding-jsonrpc-runtime + ${pom.version} + + + ${pom.groupId} + tuscany-binding-notification + ${pom.version} + + + ${pom.groupId} + tuscany-binding-rmi + ${pom.version} + + + ${pom.groupId} + tuscany-binding-rmi-runtime + ${pom.version} + + + ${pom.groupId} + tuscany-binding-rss + ${pom.version} + + + ${pom.groupId} + tuscany-binding-rss-rome + ${pom.version} + + + ${pom.groupId} + tuscany-binding-sca + ${pom.version} + + + ${pom.groupId} + tuscany-binding-sca-axis2 + ${pom.version} + + + ${pom.groupId} + tuscany-binding-sca-xml + ${pom.version} + + + ${pom.groupId} + tuscany-binding-ws + ${pom.version} + + + ${pom.groupId} + tuscany-binding-ws-axis2 + ${pom.version} + + + org.apache.ant + ant-nodeps + + + org.apache.axis2 + addressing + + + org.apache.axis2 + axis2-xmlbeans + + + org.apache.axis2 + axis2-adb-codegen + + + bouncycastle + bcprov-jdk15 + + + + + + ${pom.groupId} + tuscany-binding-ws-xml + ${pom.version} + + + ${pom.groupId} + tuscany-binding-ws-wsdlgen + ${pom.version} + + + ${pom.groupId} + tuscany-contribution + ${pom.version} + + + ${pom.groupId} + tuscany-contribution-groovy + ${pom.version} + + + ${pom.groupId} + tuscany-contribution-impl + ${pom.version} + + + ${pom.groupId} + tuscany-contribution-java + ${pom.version} + + + ${pom.groupId} + tuscany-contribution-osgi + ${pom.version} + + + ${pom.groupId} + tuscany-contribution-namespace + ${pom.version} + + + ${pom.groupId} + tuscany-contribution-resource + ${pom.version} + + + ${pom.groupId} + tuscany-contribution-groovy + ${pom.version} + + + ${pom.groupId} + tuscany-core + ${pom.version} + + + ${pom.groupId} + tuscany-core-databinding + ${pom.version} + + + ${pom.groupId} + tuscany-core-spi + ${pom.version} + + + ${pom.groupId} + tuscany-databinding + ${pom.version} + + + ${pom.groupId} + tuscany-databinding-axiom + ${pom.version} + + + ${pom.groupId} + tuscany-databinding-jaxb + ${pom.version} + + + ${pom.groupId} + tuscany-databinding-jaxb-axiom + ${pom.version} + + + ${pom.groupId} + tuscany-databinding-sdo + ${pom.version} + + + ${pom.groupId} + tuscany-databinding-sdo-axiom + ${pom.version} + + + ${pom.groupId} + tuscany-databinding-xmlbeans + ${pom.version} + + + ${pom.groupId} + tuscany-host-embedded + ${pom.version} + + + ${pom.groupId} + tuscany-host-http + ${pom.version} + + + ${pom.groupId} + tuscany-host-jms-asf + ${pom.version} + + + ${pom.groupId} + tuscany-host-rmi + ${pom.version} + + + ${pom.groupId} + tuscany-host-webapp + ${pom.version} + + + ${pom.groupId} + tuscany-host-jetty + ${pom.version} + + + + ${pom.groupId} + tuscany-interface + ${pom.version} + + + ${pom.groupId} + tuscany-interface-java + ${pom.version} + + + ${pom.groupId} + tuscany-interface-java-xml + ${pom.version} + + + ${pom.groupId} + tuscany-interface-wsdl + ${pom.version} + + + ${pom.groupId} + tuscany-interface-wsdl-xml + ${pom.version} + + + ${pom.groupId} + tuscany-implementation-bpel + ${pom.version} + + + ${pom.groupId} + tuscany-implementation-bpel-ode + ${pom.version} + + + ${pom.groupId} + tuscany-data-api + ${pom.version} + + + ${pom.groupId} + tuscany-implementation-ejb + ${pom.version} + + + ${pom.groupId} + tuscany-implementation-ejb + ${pom.version} + + + ${pom.groupId} + tuscany-implementation-java + ${pom.version} + + + ${pom.groupId} + tuscany-implementation-java-xml + ${pom.version} + + + ${pom.groupId} + tuscany-implementation-java-runtime + ${pom.version} + + + ${pom.groupId} + tuscany-implementation-jee + ${pom.version} + + + ${pom.groupId} + tuscany-implementation-node + ${pom.version} + + + ${pom.groupId} + tuscany-implementation-node-runtime + ${pom.version} + + + ${pom.groupId} + tuscany-host-tomcat + + + + + ${pom.groupId} + tuscany-implementation-osgi + ${pom.version} + + + ${pom.groupId} + tuscany-implementation-resource-runtime + ${pom.version} + + + ${pom.groupId} + tuscany-implementation-script + ${pom.version} + + + ${pom.groupId} + tuscany-implementation-spring + ${pom.version} + + + ${pom.groupId} + tuscany-implementation-spring-runtime + ${pom.version} + + + ${pom.groupId} + tuscany-implementation-xquery + ${pom.version} + + + ${pom.groupId} + tuscany-implementation-widget-runtime + ${pom.version} + + + ${pom.groupId} + tuscany-implementation-widget-runtime-tuscany + ${pom.version} + + + + ${pom.groupId} + tuscany-node-api + ${pom.version} + + + ${pom.groupId} + tuscany-node-impl + ${pom.version} + + + ${pom.groupId} + tuscany-node-launcher + ${pom.version} + + + ${pom.groupId} + tuscany-node-manager + ${pom.version} + + + ${pom.groupId} + tuscany-policy + ${pom.version} + + + ${pom.groupId} + tuscany-policy-logging + ${pom.version} + + + ${pom.groupId} + tuscany-policy-security + ${pom.version} + + + ${pom.groupId} + tuscany-policy-security-jsr250 + ${pom.version} + + + ${pom.groupId} + tuscany-policy-xml + ${pom.version} + + + ${pom.groupId} + tuscany-definitions + ${pom.version} + + + + ${pom.groupId} + tuscany-domain-manager + ${pom.version} + + + ${pom.groupId} + tuscany-host-tomcat + + + + + ${pom.groupId} + tuscany-web-javascript + ${pom.version} + + + + ${pom.groupId} + tuscany-workspace + ${pom.version} + + + ${pom.groupId} + tuscany-workspace-impl + ${pom.version} + + + ${pom.groupId} + tuscany-workspace-xml + ${pom.version} + + + ${pom.groupId} + tuscany-sca-api + ${pom.version} + + + ${pom.groupId} + tuscany-tracing-aspectj + ${pom.version} + + + ${pom.groupId} + tuscany-wsdl2java + ${pom.version} + + + org.apache.geronimo.specs + geronimo-activation_1.1_spec + + + + + org.apache.tuscany.sdo + tuscany-sdo-impl + 1.1.1 + + + + org.codehaus.woodstox + wstx-asl + + + + backport-util-concurrent + backport-util-concurrent + + + + + org.apache.tuscany.sdo + tuscany-sdo-tools + 1.1.1 + + + + + + + src/main/resources + + **/* + + + + + + + + org.codehaus.mojo + shade-maven-plugin + 1.0-alpha-7 + + + package + + shade + + + org.apache.tuscany + false + + + + org.apache.tuscany.sdo:tuscany-sdo-impl + + + + + + META-INF/services/org.apache.tuscany.sca.assembly.AssemblyFactory + + + META-INF/services/org.apache.tuscany.sca.assembly.SCABindingFactory + + + META-INF/services/org.apache.tuscany.sca.binding.feed.AtomBindingFactory + + + META-INF/services/org.apache.tuscany.sca.binding.feed.RSSBindingFactory + + + META-INF/services/org.apache.tuscany.sca.binding.atom.AtomBindingFactory + + + META-INF/services/org.apache.tuscany.sca.binding.rss.RSSBindingFactory + + + META-INF/services/org.apache.tuscany.sca.binding.http.HTTPResourceBindingFactory + + + META-INF/services/org.apache.tuscany.sca.contribution.ContributionFactory + + + META-INF/services/org.apache.tuscany.sca.contribution.java.JavaImportExportFactory + + + META-INF/services/org.apache.tuscany.sca.contribution.ModelFactoryExtensionPoint + + + META-INF/services/org.apache.tuscany.sca.contribution.namespace.NamespaceImportExportFactory + + + META-INF/services/org.apache.tuscany.sca.contribution.processor.ContributionPostProcessorExtensionPoint + + + META-INF/services/org.apache.tuscany.sca.contribution.processor.PackageProcessor + + + META-INF/services/org.apache.tuscany.sca.contribution.processor.PackageProcessorExtensionPoint + + + META-INF/services/org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessor + + + META-INF/services/org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessorExtensionPoint + + + META-INF/services/org.apache.tuscany.sca.contribution.processor.URLArtifactProcessor + + + META-INF/services/org.apache.tuscany.sca.contribution.processor.URLArtifactProcessorExtensionPoint + + + META-INF/services/org.apache.tuscany.sca.contribution.resolver.ModelResolver + + + META-INF/services/org.apache.tuscany.sca.contribution.resolver.ModelResolverExtensionPoint + + + META-INF/services/org.apache.tuscany.sca.contribution.service.ContributionListener + + + META-INF/services/org.apache.tuscany.sca.contribution.service.ContributionListenerExtensionPoint + + + META-INF/services/org.apache.tuscany.sca.core.ModuleActivator + + + META-INF/services/org.apache.tuscany.sca.databinding.DataBinding + + + META-INF/services/org.apache.tuscany.sca.databinding.DataBindingExtensionPoint + + + META-INF/services/org.apache.tuscany.sca.databinding.PullTransformer + + + META-INF/services/org.apache.tuscany.sca.databinding.PushTransformer + + + META-INF/services/org.apache.tuscany.sca.databinding.TransformerExtensionPoint + + + META-INF/services/org.apache.tuscany.sca.extension.helper.BindingActivator + + + META-INF/services/org.apache.tuscany.sca.extension.helper.ImplementationActivator + + + META-INF/services/org.apache.tuscany.sca.host.http.ServletHostExtensionPoint + + + META-INF/services/org.apache.tuscany.sca.host.rmi.RMIHostExtensionPoint + + + META-INF/services/org.apache.tuscany.sca.implementation.java.JavaImplementationFactory + + + META-INF/services/org.apache.tuscany.sca.implementation.resource.ResourceImplementationFactory + + + META-INF/services/org.apache.tuscany.sca.interfacedef.java.introspect.JavaInterfaceVisitor + + + META-INF/services/org.apache.tuscany.sca.interfacedef.java.JavaInterfaceFactory + + + META-INF/services/org.apache.tuscany.sca.interfacedef.wsdl.WSDLFactory + + + META-INF/services/org.apache.tuscany.sca.provider.BindingProviderFactory + + + META-INF/services/org.apache.tuscany.sca.provider.ImplementationProviderFactory + + + META-INF/services/org.apache.tuscany.sca.web.javascript.JavascriptProxyFactory + + + META-INF/services/org.apache.tuscany.sca.web.javascript.ComponentJavaScriptGeneratorExtensionPoint + + + META-INF/services/org.apache.tuscany.sca.web.javascript.JavascriptProxyFactoryExtensionPoint + + + META-INF/services/org.apache.tuscany.sca.provider.ProviderFactoryExtensionPoint + + + META-INF/services/org.apache.tuscany.sca.runtime.RuntimeWireProcessorExtensionPoint + + + META-INF/services/org.apache.tuscany.sca.spi.ImplementationActivator + + + META-INF/services/org.apache.tuscany.sca.work.WorkScheduler + + + META-INF/services/org.apache.tuscany.sca.policy.util.PolicyHandler + + + META-INF/services/org.apache.tuscany.sca.provider.PolicyProviderFactory + + + META-INF/services/org.apache.tuscany.sca.provider.SCADefinitionsProvider + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/distribution/manifest/pom.xml b/tags/java/sca/1.5.1-RC4/distribution/manifest/pom.xml new file mode 100644 index 0000000000..2012c82c9f --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/distribution/manifest/pom.xml @@ -0,0 +1,656 @@ + + + + 4.0.0 + + org.apache.tuscany.sca + tuscany-sca + 1.5.1 + ../../pom.xml + + + tuscany-sca-manifest + Apache Tuscany SCA Manifest Jar + + + true + ${pom.version} + + + + + ${pom.groupId} + tuscany-assembly + ${pom.version} + + + ${pom.groupId} + tuscany-assembly-xml + ${pom.version} + + + ${pom.groupId} + tuscany-binding-dwr + ${pom.version} + + + ${pom.groupId} + tuscany-binding-ejb-runtime + ${pom.version} + + + ${pom.groupId} + tuscany-binding-atom-js + ${pom.version} + + + + ${pom.groupId} + tuscany-binding-atom-abdera + ${pom.version} + + + ${pom.groupId} + tuscany-binding-rss + ${pom.version} + + + ${pom.groupId} + tuscany-binding-rss-rome + ${pom.version} + + + ${pom.groupId} + tuscany-binding-http-jsonrpc-runtime + ${pom.version} + + + ${pom.groupId} + tuscany-binding-http-runtime + ${pom.version} + + + ${pom.groupId} + tuscany-binding-jms-runtime + ${pom.version} + + + org.apache.activemq + activemq-all + 5.2.0 + + + commons-httpclient + commons-httpclient + + + commons-fileupload + commons-fileupload + + + commons-beanutils + commons-beanutils + + + org.apache.activemq + activemq-console + + + org.apache.activemq + activemq-core + + + org.apache.activemq + activemq-optional + + + org.apache.activemq + activemq-web + + + org.apache.activemq + activemq-web-demo + + + org.apache.activemq + activemq-jaas + + + org.apache.geronimo.specs + geronimo-j2ee-connector_1.5_spec + + + org.apache.geronimo.specs + geronimo-j2ee-jacc_1.0_spec + + + org.apache.geronimo.specs + geronimo-jms_1.1_spec + + + org.apache.geronimo.specs + geronimo-jsp_2.0_spec + + + org.apache.geronimo.specs + geronimo-j2ee-management_1.0_spec + + + org.mortbay.jetty + servlet-api-2.5 + + + org.mortbay.jetty + jetty + + + org.mortbay.jetty + jetty-util + + + xerces + xercesImpl + + + backport-util-concurrent + backport-util-concurrent + + + activesoap + jaxp-api + + + activemq + jmdns + + + jrms + jrms + + + xerces + xmlParserAPIs + + + xstream + xstream + + + xmlpull + xmlpull + + + mx4j + mx4j + + + mx4j + mx4j-remote + + + + + ${pom.groupId} + tuscany-binding-jsonrpc-js + ${pom.version} + + + + ${pom.groupId} + tuscany-binding-jsonrpc-runtime + ${pom.version} + + + ${pom.groupId} + tuscany-binding-notification + ${pom.version} + + + ${pom.groupId} + tuscany-binding-rmi + ${pom.version} + + + ${pom.groupId} + tuscany-binding-rmi-runtime + ${pom.version} + + + ${pom.groupId} + tuscany-binding-sca + ${pom.version} + + + ${pom.groupId} + tuscany-binding-sca-axis2 + ${pom.version} + + + ${pom.groupId} + tuscany-binding-sca-xml + ${pom.version} + + + ${pom.groupId} + tuscany-binding-ws + ${pom.version} + + + ${pom.groupId} + tuscany-binding-ws-axis2 + ${pom.version} + + + ${pom.groupId} + tuscany-binding-ws-xml + ${pom.version} + + + ${pom.groupId} + tuscany-binding-ws-wsdlgen + ${pom.version} + + + ${pom.groupId} + tuscany-contribution + ${pom.version} + + + ${pom.groupId} + tuscany-contribution-groovy + ${pom.version} + + + ${pom.groupId} + tuscany-contribution-impl + ${pom.version} + + + ${pom.groupId} + tuscany-contribution-java + ${pom.version} + + + ${pom.groupId} + tuscany-contribution-namespace + ${pom.version} + + + ${pom.groupId} + tuscany-contribution-resource + ${pom.version} + + + ${pom.groupId} + tuscany-core + ${pom.version} + + + ${pom.groupId} + tuscany-core-databinding + ${pom.version} + + + ${pom.groupId} + tuscany-core-spi + ${pom.version} + + + ${pom.groupId} + tuscany-databinding + ${pom.version} + + + ${pom.groupId} + tuscany-databinding-axiom + ${pom.version} + + + ${pom.groupId} + tuscany-databinding-jaxb + ${pom.version} + + + ${pom.groupId} + tuscany-databinding-sdo + ${pom.version} + + + ${pom.groupId} + tuscany-databinding-sdo-axiom + ${pom.version} + + + ${pom.groupId} + tuscany-host-embedded + ${pom.version} + + + ${pom.groupId} + tuscany-host-http + ${pom.version} + + + ${pom.groupId} + tuscany-host-jms-asf + ${pom.version} + + + ${pom.groupId} + tuscany-host-rmi + ${pom.version} + + + ${pom.groupId} + tuscany-host-webapp + ${pom.version} + + + ${pom.groupId} + tuscany-host-jetty + ${pom.version} + + + + ${pom.groupId} + tuscany-interface + ${pom.version} + + + ${pom.groupId} + tuscany-interface-java + ${pom.version} + + + ${pom.groupId} + tuscany-interface-java-xml + ${pom.version} + + + ${pom.groupId} + tuscany-interface-wsdl + ${pom.version} + + + ${pom.groupId} + tuscany-interface-wsdl-xml + ${pom.version} + + + ${pom.groupId} + tuscany-implementation-bpel + ${pom.version} + + + ${pom.groupId} + tuscany-implementation-bpel-ode + ${pom.version} + + + ant + ant + + + + + ${pom.groupId} + tuscany-implementation-ejb + ${pom.version} + + + ${pom.groupId} + tuscany-implementation-ejb + ${pom.version} + + + ${pom.groupId} + tuscany-implementation-java + ${pom.version} + + + ${pom.groupId} + tuscany-implementation-java-xml + ${pom.version} + + + ${pom.groupId} + tuscany-implementation-java-runtime + ${pom.version} + + + ${pom.groupId} + tuscany-implementation-node + ${pom.version} + + + ${pom.groupId} + tuscany-implementation-node-runtime + ${pom.version} + + + ${pom.groupId} + tuscany-host-tomcat + + + + + ${pom.groupId} + tuscany-implementation-osgi + ${pom.version} + + + ${pom.groupId} + tuscany-implementation-resource-runtime + ${pom.version} + + + ${pom.groupId} + tuscany-implementation-script + ${pom.version} + + + ${pom.groupId} + tuscany-implementation-spring + ${pom.version} + + + ${pom.groupId} + tuscany-implementation-spring-runtime + ${pom.version} + + + ${pom.groupId} + tuscany-implementation-xquery + ${pom.version} + + + ${pom.groupId} + tuscany-implementation-widget-runtime + ${pom.version} + + + ${pom.groupId} + tuscany-implementation-widget-runtime-tuscany + ${pom.version} + + + + ${pom.groupId} + tuscany-node-api + ${pom.version} + + + ${pom.groupId} + tuscany-node-impl + ${pom.version} + + + ${pom.groupId} + tuscany-node-launcher + ${pom.version} + + + ${pom.groupId} + tuscany-policy + ${pom.version} + + + ${pom.groupId} + tuscany-policy-logging + ${pom.version} + + + ${pom.groupId} + tuscany-policy-security + ${pom.version} + + + ${pom.groupId} + tuscany-policy-xml + ${pom.version} + + + ${pom.groupId} + tuscany-definitions + ${pom.version} + + + ${pom.groupId} + tuscany-domain-manager + ${pom.version} + + + ${pom.groupId} + tuscany-host-tomcat + + + + + ${pom.groupId} + tuscany-web-javascript + ${pom.version} + + + + ${pom.groupId} + tuscany-workspace + ${pom.version} + + + ${pom.groupId} + tuscany-workspace-impl + ${pom.version} + + + ${pom.groupId} + tuscany-workspace-xml + ${pom.version} + + + ${pom.groupId} + tuscany-java2wsdl + ${pom.version} + + + ${pom.groupId} + tuscany-wsdl2java + ${pom.version} + + + ${pom.groupId} + tuscany-sca-api + ${pom.version} + + + org.apache.tuscany.sdo + tuscany-sdo-impl + 1.1.1 + + + + org.codehaus.woodstox + wstx-asl + + + + backport-util-concurrent + backport-util-concurrent + + + + + org.apache.tuscany.sdo + tuscany-sdo-tools + 1.1.1 + + + + + + + + + src/main/java + + **/* + + + + + + org.apache.maven.plugins + maven-jar-plugin + + tuscany-sca-manifest + + + true + + + + tuscany-sca-all-${pom.version}.jar + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/distribution/pom.xml b/tags/java/sca/1.5.1-RC4/distribution/pom.xml new file mode 100644 index 0000000000..11dd6b13ed --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/distribution/pom.xml @@ -0,0 +1,334 @@ + + + + 4.0.0 + + org.apache.tuscany.sca + tuscany-sca + 1.5.1 + ../pom.xml + + + tuscany-distribution + Apache Tuscany SCA Distribution + pom + + + true + ${pom.version} + + + + bundle + manifest + + + + + ${pom.groupId} + tuscany-bundle + ${pom.version} + + + + + avalon-framework + avalon-framework + + + junit + junit + + + avalon-framework + avalon-framework + + + org.apache.ant + ant + + + org.apache.ant + ant-launcher + + + jline + jline + + + + stax + stax-api + + + javax.mail + mail + + + + org.apache.geronimo.specs + geronimo-activation_1.1_spec + + + org.apache.geronimo.specs + geronimo-activation_1.0.2_spec + + + + + org.apache.tuscany.sca + tuscany-host-webapp + 1.5.1 + + + + + + + org.apache.tuscany.sdo + tuscany-sdo-impl + 1.1.1 + + + + org.codehaus.woodstox + wstx-asl + + + + stax + stax-api + + + + org.apache.felix + org.apache.felix.main + + + + backport-util-concurrent + backport-util-concurrent + + + + + org.apache.activemq + activemq-all + 5.2.0 + + + + commons-httpclient + commons-httpclient + + + commons-fileupload + commons-fileupload + + + commons-beanutils + commons-beanutils + + + org.apache.activemq + activemq-console + + + org.apache.activemq + activemq-core + + + org.apache.activemq + activemq-optional + + + org.apache.activemq + activemq-web + + + org.apache.activemq + activemq-web-demo + + + org.apache.activemq + activemq-jaas + + + org.apache.geronimo.specs + geronimo-j2ee-connector_1.5_spec + + + org.apache.geronimo.specs + geronimo-j2ee-jacc_1.0_spec + + + org.apache.geronimo.specs + geronimo-jms_1.1_spec + + + org.apache.geronimo.specs + geronimo-jsp_2.0_spec + + + org.apache.geronimo.specs + geronimo-j2ee-management_1.0_spec + + + org.mortbay.jetty + servlet-api-2.5 + + + org.mortbay.jetty + jetty + + + org.mortbay.jetty + jetty-util + + + xerces + xercesImpl + + + backport-util-concurrent + backport-util-concurrent + + + activesoap + jaxp-api + + + activemq + jmdns + + + jrms + jrms + + + xerces + xmlParserAPIs + + + xstream + xstream + + + xmlpull + xmlpull + + + mx4j + mx4j + + + mx4j + mx4j-remote + + + + backport-util-concurrent + backport-util-concurrent + + + + + + + + + + src/main/java + + **/* + + + + + + + + + + org.apache.maven.plugins + maven-assembly-plugin + + + distribution-package + package + + single + + + + src/main/assembly/bin.xml + src/main/assembly/src.xml + + gnu + apache-tuscany-sca-${pom.version} + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/distribution/src/main/assembly/bin.xml b/tags/java/sca/1.5.1-RC4/distribution/src/main/assembly/bin.xml new file mode 100644 index 0000000000..9c4373379c --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/distribution/src/main/assembly/bin.xml @@ -0,0 +1,406 @@ + + + + + + false + + dir + tar.gz + zip + + + + + + src/main/release + tuscany-sca-${tuscany.version} + + CHANGES + README + RELEASE_NOTES + + + + src/main/release/bin + tuscany-sca-${tuscany.version} + + INSTALL + LICENSE + NOTICE + + + + + target/javadoc + tuscany-sca-${tuscany.version}/docs/javadoc + + **/* + + + + + ../samples + tuscany-sca-${tuscany.version}/samples + + **/* + + + + */.classpath + */.project + **/pom-transformed.xml + */.settings + */.settings/**/* + */.externalToolBuilders + */.externalToolBuilders/**/* + */work + */work/**/* + **/activemq-test.log + **/derby.log + **/target/war/** + */target/mvn-eclipse-cache.properties + */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/sdo-source + */target/sdo-source/**/* + */target/wsdl2java-source + */target/wsdl2java-source/**/* + */**/derby.log + */**/*.svg + + pom.xml + calculator-distributed/work + calculator-distributed/work/**/* + calculator-webapp/target/sample-calculator-webapp + calculator-webapp/target/sample-calculator-webapp/**/* + calculator-ws-webapp/target/sample-calculator-ws-webapp + calculator-ws-webapp/target/sample-calculator-ws-webapp/**/* + calculator-ws-secure-webapp + calculator-ws-secure-webapp/**/* + calculator-ws-secure-webapp/work + callback-ws-client/work + callback-ws-client/work/**/* + callback-ws-service/work + callback-ws-service/work/**/* + chat-webapp/target/sample-chat-webapp + chat-webapp/target/sample-chat-webapp/**/* + customer-dojo-webapp/src/main/webapp/dojo + customer-dojo-webapp/src/main/webapp/dojo/**/* + customer-dojo-webapp/target/ + customer-dojo-webapp/target/**/* + feed-aggregator-webapp/target/sample-feed-aggregator-webapp + feed-aggregator-webapp/target/sample-feed-aggregator-webapp/**/* + feed-aggregator-webapp/target/war + store-dojo + store-dojo/**/* + store-webapp/target + store-webapp/target/**/* + helloworld-dojo-webapp/src/main/webapp/dojo + helloworld-dojo-webapp/src/main/webapp/dojo/**/* + helloworld-dojo-webapp/target/sample-helloworld-dojo-webapp + helloworld-dojo-webapp/target/sample-helloworld-dojo-webapp/**/* + helloworld-dojo-webapp/target/war + helloworld-jsonrpc-webapp/target/sample-helloworld-jsonrpc-webapp + helloworld-jsonrpc-webapp/target/sample-helloworld-jsonrpc-webapp/**/* + helloworld-ws-reference/work + helloworld-ws-reference/work/**/* + helloworld-ws-reference-jms/activemq-data + helloworld-ws-reference-jms/activemq-data/**/* + helloworld-ws-reference-secure/work + helloworld-ws-reference-secure/work/**/* + helloworld-ws-service/work + helloworld-ws-service/secure/work/**/* + helloworld-ws-service/secure/work + helloworld-ws-service/work/**/* + helloworld-ws-service-jms/activemq-data + helloworld-ws-service-jms/activemq-data/**/* + helloworld-ws-service-secure/work + helloworld-ws-service-secure/work/**/* + helloworld-ws-service-webapp/target/sample-helloworld-ws-service-webapp + helloworld-ws-service-webapp/target/sample-helloworld-ws-service-webapp/**/* + helloworld-ws-sdo/work + helloworld-ws-sdo/work/**/* + helloworld-ws-sdo-webapp/target/sample-helloworld-ws-sdo-webapp + helloworld-ws-sdo-webapp/target/sample-helloworld-ws-sdo-webapp/**/* + osgi-supplychain/.felix + osgi-supplychain/.felix/**/* + osgi-supplychain/target/sample-osgi-supplychain + osgi-supplychain/target/sample-osgi-supplychain/**/* + simple-bigbank-spring/src/main/resources/web/dojo + simple-bigbank-spring/src/main/resources/web/dojo/**/* + simple-callback-ws/work + simple-callback-ws/work/**/* + zipcode-jaxws/target/endorsed + zipcode-jaxws/target/endorsed/**/* + + calculator-ws-secure-webapp/target/sample-calculator-ws-secure-webapp.war + calculator-ws-webapp/target/sample-calculator-ws-webapp.war + chat-webapp/target/sample-chat-webapp.war + domain-webapp/target/sample-domain-webapp.war + feed-aggregator-webapp/target/sample-feed-aggregator-webapp.war + helloworld-dojo-webapp/target/sample-helloworld-dojo-webapp.war + helloworld-jms-webapp/target/sample-helloworld-jms-webapp.war + helloworld-jsonrpc-webapp/target/sample-helloworld-jsonrpc-webapp.war + helloworld-ws-deep-webapp/target/sample-helloworld-ws-deep-webapp.war + helloworld-ws-sdo-webapp/target/sample-helloworld-ws-sdo-webapp.war + helloworld-ws-service-webapp/target/sample-helloworld-ws-service-webapp.war + store-webapp/target/sample-helloworld-ws-sdo-webapp.war + store-webapp/target/sample-helloworld-ws-service-webapp.war + + calculator2 + calculator2/**/* + calculator-corba-reference + calculator-corba-reference/**/* + calculator-corba-service + calculator-corba-service/**/* + calculator-lean + calculator-lean/**/* + calculator-osgi + calculator-osgi/**/* + calculator-rcp + calculator-rcp/**/* + chat2-webapp + chat2-webapp/**/* + customer-dojo + customer-dojo/**/* + customer-dojo-webapp + customer-dojo-webapp/**/* + helloworld-distributed + helloworld-distributed/**/* + helloworld-jsp + helloworld-jsp/**/* + helloworld-servlet + helloworld-servlet/**/* + helloworld-web + helloworld-web/**/* + helloworld-web-callback + helloworld-web-callback/**/* + loanapplication + loanapplication/**/* + helloworld-ws-reference-lean + helloworld-ws-reference-lean/**/* + spi-implementation-pojo + spi-implementation-pojo/**/* + helloworld-jms-webapp + helloworld-jms-webapp/**/* + helloworld-jms-webapp/work + domain-webapp + domain-webapp/**/* + calculator-ws-secure-webapp + calculator-ws-secure-webapp/**/* + calculator-ws-secure-webapp/work + helloworld-ws-deep-webapp + helloworld-ws-deep-webapp/**/* + helloworld-ws-deep-webapp/work + helloworld-ws-deep-webapp/work/**/* + helloworld-ws-service-webapp + helloworld-ws-service-webapp/**/* + + + + + ../demos + + tuscany-sca-${tuscany.version}/demos + + **/* + + + */.classpath + */.project + **/pom.transformed.xml + */.settings + */.settings/**/* + */work + */work/**/* + */target/classes + */target/classes/**/* + */target/test-classes + */target/test-classes/**/* + */target/surefire-reports + */target/surefire-reports/**/* + **/derby.log + */**/derby.log + */**/*.svg + */**/*.ruleset + alert-aggregator-webapp/bin + alert-aggregator-webapp/bin/**/* + alert-aggregator-webapp/src/main/webapp/dojo + alert-aggregator-webapp/src/main/webapp/dojo/**/* + alert-aggregator-webapp/target/demo-alert-aggregator + alert-aggregator-webapp/target/demo-alert-aggregator/**/* + alert-aggregator-webapp/target/sdo-source + alert-aggregator-webapp/target/sdo-source/**/* + alert-aggregator-webapp/target + alert-aggregator-webapp/target/**/* + bigbank/src/main/resources/web/dojo + bigbank/src/main/resources/web/dojo/**/* + bigbank-account/src/main/resources/web/dojo + bigbank-account/src/main/resources/web/dojo/**/* + helloworld-ws-sdo/work + helloworld-ws-sdo/work/**/* + mortgage-creditcheck/target/demo-mortgage-creditcheck + mortgage-creditcheck/target/demo-mortgage-creditcheck/**/* + mortgage-creditcheck/target + mortgage-creditcheck/target/**/* + mortgage-loanapproval/target + mortgage-loanapproval/target/**/* + secure-bigbank/secure-bigbank-account/src/main/resources/web/dojo + secure-bigbank/secure-bigbank-account/src/main/resources/web/dojo/**/* + secure-bigbank/secure-bigbank-account/target + secure-bigbank/secure-bigbank-account/target/**/* + secure-bigbank/secure-bigbank-calculator/target + secure-bigbank/secure-bigbank-calculator/target/**/* + secure-bigbank/secure-bigbank-stockquote/target + secure-bigbank/secure-bigbank-stockquote/target/**/* + xml-bigbank/target + xml-bigbank/target/**/* + target + target/**/* + + load-balancing-webapp + load-balancing-webapp/**/* + workpool-distributed + workpool-distributed/**/* + + + + + ../tutorials + + tuscany-sca-${tuscany.version}/tutorials + + **/* + + + */.classpath + */.project + **/pom.transformed.xml + */.settings + */.settings/**/* + */work + */work/**/* + */target/classes + */target/classes/**/* + */target/test-classes + */target/test-classes/**/* + */target/surefire-reports + */target/surefire-reports/**/* + */target/war + */target/war/**/* + **/derby.log + */**/derby.log + */**/*.svg + */**/*.ruleset + target + target/**/* + store/*/target/classes + store/*/target/classes/**/* + store/*/target/test-classes + store/*/target/test-classes/**/* + store/*/target/surefire-reports + store/*/target/surefire-reports/**/* + store/*/target/maven-archiver + store/*/target/maven-archiver/**/* + store/catalog-webapp/target + store/catalog-webapp/target/**/* + store/store-db/target/cart-db/ + store/store-db/target/cart-db/**/* + store/store-eu/target/cart-eu-db/ + store/store-eu/target/cart-eu-db/**/* + store/store-supplier/target/cart-db/ + store/store-supplier/target/cart-db/**/* + + + + + manifest/target + tuscany-sca-${tuscany.version}/lib + + tuscany-sca-manifest.jar + + + + + ../modules/node2-launcher-webapp/target + tuscany-sca-${tuscany.version}/modules + + *.war + + + + + + + + + + + tuscany-sca-${tuscany.version}/modules + false + + org.apache.tuscany.sca:* + + + + org.apache.tuscany.sca:tuscany-bundle + + runtime + + + + tuscany-sca-${tuscany.version}/lib + false + + org.apache.tuscany.sca:* + + runtime + + + + tuscany-sca-${tuscany.version}/lib + false + + org.apache.tuscany.sca:tuscany-bundle + + runtime + tuscany-sca-all-${version}.jar + + + + + diff --git a/tags/java/sca/1.5.1-RC4/distribution/src/main/assembly/src.xml b/tags/java/sca/1.5.1-RC4/distribution/src/main/assembly/src.xml new file mode 100644 index 0000000000..933af5652e --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/distribution/src/main/assembly/src.xml @@ -0,0 +1,219 @@ + + + + + src + false + + tar.gz + zip + + + + + src/main/release + tuscany-sca-${tuscany.version}-src + + CHANGES + README + RELEASE_NOTES + + + + src/main/release/src + tuscany-sca-${tuscany.version}-src + + BUILDING + LICENSE + NOTICE + + + + target/maven-shared-archive-resources/META-INF + tuscany-sca-${tuscany.version}-src + + NOTICE + + + + .. + tuscany-sca-${tuscany.version}-src + + **/* + + + contrib + contrib/**/* + doc + doc/**/* + **/target + **/target/**/* + **/build + **/build/**/* + **/.settings + **/.settings/**/* + **/.classpath + **/.project + **/.wtpmodules + **/surefire* + **/cobertura.ser + **/log/*.dat + **/orbtrc.*.txt + bin + bin/* + **/var/journal + **/build.out* + velocity.log + derby.log + distribution/target-last-successful + distribution/target-last-successful/**/* + itest/velocity.log + itest/atom/work + itest/atom/work/**/* + itest/bpel/helloworld-ws/work + itest/bpel/helloworld-ws/work/**/* + itest/callablereferences/work + itest/callablereferences/work/**/* + itest/callablereferences-ws/work + itest/callablereferences-ws/work/**/* + itest/contribution-import-export/import-composite/work + itest/contribution-import-export/import-composite/work/**/* + itest/contribution-import-export/import-resource/work + itest/contribution-import-export/import-resource/work/**/* + itest/contribution-import-export/import-wsdl/work + itest/contribution-import-export/import-wsdl/work/**/* + itest/conversations-ws/work + itest/conversations-ws/work/**/* + itest/databindings/jaxbgen/velocity.log + itest/domain/work + itest/domain/work/**/* + itest/exceptions-simple-ws/work + itest/exceptions-simple-ws/work/**/* + itest/late-reference-resolution/work + itest/late-reference-resolution/work/**/* + itest/policy/work + itest/policy/work/**/* + itest/policy-security-basicauth/work + itest/policy-security-basicauth/work/**/* + itest/spring/work + itest/spring/work/**/* + itest/transaction/derbydb + itest/transaction/derbydb/**/* + itest/ws-void-args-return/work + itest/ws-void-args-return/work/**/* + vtest/assembly/component/work + vtest/assembly/component/work/**/* + vtest/wsbinding/nowsdl/defaultbinding/work + vtest/wsbinding/nowsdl/defaultbinding/work/**/* + vtest/wsbinding/nowsdl/multisoapbindings/work + vtest/wsbinding/nowsdl/multisoapbindings/work/**/* + vtest/wsbinding/nowsdl/promoted/work + vtest/wsbinding/nowsdl/promoted/work/**/* + vtest/wsbinding/nowsdl/soapversion/work + vtest/wsbinding/nowsdl/soapversion/work/**/* + vtest/wsbinding/wsdlelement/binding/work + vtest/wsbinding/wsdlelement/binding/work/**/* + vtest/wsbinding/wsdlelement/port/work + vtest/wsbinding/wsdlelement/port/work/**/* + vtest/wsbinding/wsdlelement/service/work + vtest/wsbinding/wsdlelement/service/work/**/* + vtest/wsbinding/service/work + vtest/wsbinding/service/work/**/* + modules/domain-impl/work + modules/domain-impl/work/**/* + modules/host-tomcat/work + modules/host-tomcat/work/**/* + modules/node-impl/work + modules/node-impl/work/**/* + modules/implementation-bpel-ode/derby.log + modules/implementation-das + modules/implementation-das/**/* + modules/implementation-data + modules/implementation-data/**/* + modules/implementation-osgi/.felix + modules/implementation-osgi/.felix/**/* + modules/osgi-runtime/.felix + modules/osgi-runtime/.felix/**/* + modules/web-javascript-dojo/src/main/resources/dojo + modules/web-javascript-dojo/src/main/resources/dojo/**/* + samples/old + samples/old/**/* + samples/calculator-distributed/work + samples/calculator-distributed/work/**/* + samples/callback-ws-client/work + samples/callback-ws-client/work/**/* + samples/callback-ws-service/work + samples/callback-ws-service/work/**/* + samples/domain-webapp + samples/domain-webapp/**/* + samples/helloworld-jsonrpc-webapp/src/main/webapp/dojo + samples/helloworld-jsonrpc-webapp/src/main/webapp/dojo/**/* + samples/helloworld-dojo-webapp/src/main/webapp/dojo + samples/helloworld-dojo-webapp/src/main/webapp/dojo/**/* + samples/customer-dojo-webapp/src/main/webapp/dojo + samples/customer-dojo-webapp/src/main/webapp/dojo/**/* + samples/helloworld-ws-deep-webapp + samples/helloworld-ws-deep-webapp/**/* + samples/helloworld-ws-deep-webapp/work + samples/helloworld-ws-deep-webapp/work/**/* + samples/helloworld-ws-reference/work + samples/helloworld-ws-reference/work/**/* + samples/helloworld-ws-reference-jms/activemq-data + samples/helloworld-ws-reference-jms/activemq-data/**/* + samples/helloworld-ws-reference-secure/work + samples/helloworld-ws-reference-secure/work/**/* + samples/helloworld-ws-sdo/work + samples/helloworld-ws-sdo/work/**/* + samples/helloworld-ws-service/work + samples/helloworld-ws-service/work/**/* + samples/helloworld-ws-service-jms/activemq-data + samples/helloworld-ws-service-jms/activemq-data/**/* + samples/helloworld-ws-service-secure/work + samples/helloworld-ws-service-secure/work/**/* + samples/helloworld-ws-service-webapp + samples/helloworld-ws-service-webapp/**/* + samples/osgi-supplychain/.felix + samples/osgi-supplychain/.felix/**/* + samples/spi-implementation-pojo + samples/spi-implementation-pojo/**/* + samples/simple-callback-ws/work + samples/simple-callback-ws/work/**/* + samples/simple-bigbank-spring/src/main/resources/web/dojo + samples/simple-bigbank-spring/src/main/resources/web/dojo/**/* + demos/alert-aggregator-webapp/bin + demos/alert-aggregator-webapp/bin/**/* + demos/alert-aggregator-webapp/src/main/webapp/dojo + demos/alert-aggregator-webapp/src/main/webapp/dojo/**/* + demos/bigbank/src/main/resources/web/dojo + demos/bigbank/src/main/resources/web/dojo/**/* + demos/bigbank-account/src/main/resources/web/dojo + demos/bigbank-account/src/main/resources/web/dojo/**/* + demos/secure-bigbank/secure-bigbank-account/src/main/resources/web/dojo + demos/secure-bigbank/secure-bigbank-account/src/main/resources/web/dojo/**/* + */**/derby.log + */**/*.svg + */**/*.ruleset + */**/*.pmd + */**/*.checkstyle + */**/_/SESSIONS.ser + + + + diff --git a/tags/java/sca/1.5.1-RC4/distribution/src/main/release/CHANGES b/tags/java/sca/1.5.1-RC4/distribution/src/main/release/CHANGES new file mode 100644 index 0000000000..e86ea351a2 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/distribution/src/main/release/CHANGES @@ -0,0 +1,1196 @@ +Changes With Apache Tuscany SCA 1.5.1 October 2009 +================================================== + +Fix the following JIRA issues (http://issues.apache.org/jira/browse/TUSCANY): + +TUSCANY-2640 - Should use package(s) when possible in creating JAXBContext, not set of Classes +TUSCANY-2878 - Moving to Dojo dependencies to Dojo 1.3.0 official release +TUSCANY-2906 - Resolve wsdl:import and xsd:import using namespace +TUSCANY-2967 - back out the trial change to bytes format messages so that all wire formats consistently return faults as JMS Object messages. +TUSCANY-2978 - Add more JEE tests to help show that the nested composites are resolved/built correctly. +TUSCANY-2984 - Adding prioritization while starting module activators to allow module activators dependencies to start first +TUSCANY-3018 - EarContributionProcessor's URL.setURLStreamHandlerFactory() fails with factory already defined error +TUSCANY-3052 - Update JEE processing to resolve the JEEImplementation composite. +TUSCANY-3058 - Correct use of JMSCorrelationID to use an uppercase trailing 'D' +TUSCANY-3059 - correct perationProperties JMSDeliveryMode set in headers JMSDeliveryMode +TUSCANY-3062 - another work round to get resolution doing something in the domain manager +TUSCANY-3063 - Adding new tests to ensure JSON-RPC binding can handle special characters when generating SMD +TUSCANY-3065 - fix double use exposure in JAXBDataSource +TUSCANY-3068 - Improve validation in JMS processors. +TUSCANY-3069 - Implementation.spring cannot resolve the location or bean classes if the contribution is not on the TCCL +TUSCANY-3070 - Work round to treat the symptom of activators being discovered twice on the classpath. +TUSCANY-3075 - don't write out the services and references generated to handle callbacks. +TUSCANY-3076 - The DefaultWorkScheduler only has 10 threads in the pool and it causes deadlock. +TUSCANY-3077 - Allow the thread pool for conversation manager to be shutdown +TUSCANY-3086 - Making DefaultContributionFactory implement contribution factory interface to avoid issues with model extention point +TUSCANY-3080 - NPE thrown while checking for Spring Version +TUSCANY-3096 - Switch off SCA Annotation support for Implementation.Spring +TUSCANY-3097 - Add test to see if the application composites of modules inside anEAR are processed (they shouldn't be) +TUSCANY-3098 - don't throw an NPE is a property doesn't have a name +TUSCANY-3099 - log an error if an invalid header priority is entered +TUSCANY-3104 - Using "FileSystemXmlApplicationContext" to load multiple application context files has problems with relative path identification +TUSCANY-3109 - Added unit test for using Atom binding on a Java component implementation class that does not have a get() method +TUSCANY-3110 - Updated the atom binding so that the description can be set using the description attribute. +TUSCANY-3111 - Fixed NPE when using the RSS binding +TUSCANY-3112 - Make sure that the feed entry has the links set on it otherwise the title of the item in the RSS feed will not be converted to a URL +TUSCANY-3113 - Added get() method to the rss.Collections interface +TUSCANY-3114 - Added a basic get test for the RSS feed +TUSCANY-3116 - add support for the operationPropertyName attribute to the JMS binding model +TUSCANY-3120 - improve write processing so that it writes out what has been entered and ignores defaults where possible. +TUSCANY-3121 - binding.atom should leverage introspection when setting up call to mediator +TUSCANY-3124 - Check for wireFormat/operationSelector before other operations +TUSCANY-3125 - enable policy processing in binding.http +TUSCANY-3128 - force the bean factory classloader to be the contribution classloader as it's reset by the application context on refresh. +TUSCANY-3140 - Test for difference between loadtime and runtime classloaders +TUSCANY-3141 - Generated WSDL for void unwrapped operations has a return part for the response message +TUSCANY-3148 - remove version dependency from zip based JEE itests +TUSCANY-3149 - Generally be more careful about removing object references in host-webapp. +TUSCANY-3153 - imported XSDefinition should be set with XmlSchema as well +TUSCANY-3155 - Support for spring implementation location as folder without manifest scenario +TUSCANY-3162 - problem building JAXBContext when package has mixed JAXBs, non-JAXBs +TUSCANY-3163 - Fixing non-ascii characters that were producing build failure when using IBM JDK 1.6 +TUSCANY-3166 - Making the test case works using the generated java interface +TUSCANY-3167 - Look to cache JAXBPropertyDescriptor in XMLRootElementUtil +TUSCANY-3169 - invalid characters in generated reference binding names +TUSCANY-3170 - add callback URI configuration support to domain manager +TUSCANY-3171 - domain manager does not load definitions.xml files +TUSCANY-3172 - domain manager doesn't report errors cleanly to the nodes +TUSCANY-3174 - Add workspace manager updates to workspace +TUSCANY-3177 - create the extension point registry earlier so that any programmatic changes to it are reflected in the runtime configuration +TUSCANY-3178 - read the validation schema extension point from the extension point registry rather than creating a local copy +TUSCANY-3185 - Warning message of duplicates during multiple spring application context processing +TUSCANY-3193 - fully support binding.sca in the domain manager +TUSCANY-3195 - merge fix from 1.x to 1.5.1 for Inherently-provided intents do not work at operation level +TUSCANY-3198 - keep generated EJB component implementations distinct. +TUSCANY-3199 - WebImplementationProcessor should prefix web.componentType URI with WEB-INF +TUSCANY-3200 - Add the dojo copyright to the NOTICE file to be consistent with the top level binary NOTICE file +TUSCANY-3202 - Spring bean name as service names for implicit services +TUSCANY-3213 - ProblemImpl resides in assembly and means that other module have to access an impl packed to create a problem +TUSCANY-3235 - Java2 security problem +TUSCANY-3237 - Remove auto indexing logic for constructors +TUSCANY-3238 - Use of WS binding results in exception when returning data +TUSCANY-3240 - Closing reader after processing spring application-context.xml +TUSCANY-3247 - Making interfaces and instantiatng widget factory via extension point mechanism +TUSCANY-3248 - Removing quoted tokens to avoid issues on linux/mac os environment +TUSCANY-3249 - providing on/off feature for multiple application context support +TUSCANY-3251 - Fix interface compatibility checking for callback operations +TUSCANY-3254 - null returned by RequestContext.getCallbackReference() +TUSCANY-3255 - Consolidate JMS session management in JMSResourceFactory +TUSCANY-3264 - Tyiding up how we write the schema prefix as per StAX spec +TUSCANY-3267 - ensure wrapper elements have nillable=false +TUSCANY-3272 - create class to run holder tests when run from the distribution +TUSCANY-3292 - fixing how spring context path is calculated + +Changes With Apache Tuscany SCA 1.5 May 2009 +============================================ + +- Add dependency on jaxws (as the code now uses the Holder class) so it compiles on pre-JDK6 +- Merge branch 'tuscany-2663' +- Remove unneeded deploy.xml and .componentType files +- Reverting changes from revision #734356 and there was some merge conflicts that were not supposed to get to svn. +- TUSCANY-2463 - Properly register default attribute processor to handle extended attributes +- Exclude xsd module from base +- Fixes for TUSCANY-2772 +- Renaming test cases to follow same naming pattern +- Updating testcase to JUnit 4 +- TUSCANY-2463 - Storing extended attributes in a second list, wrapped into a extension class that stores the attribute QName, it's value +- Removing obsolet test composite +- TUSCANY-2663 - UPdating test scenarios to split valid extended element from invalid scenario where require attribute has empty value +- TUSCANY-2463 - Last adjustments to test processors to support the extension attribute wrapper +- TUSCANY-2463 - Fixing model object definition for extended attribute processor +- copy stest framework from 2.x to consider potentially reusing in 1.x +- Tuscany 2768 - sample showing web services Holder support (input/output parameters) +- Start adding resources for a test of folder and zip contributions which contain application jars +- TUSCANY-2783 - Adding schema for GData binding +- TUSCANY-2783 - Integrating GData schema to tuscany schema +- TUSCANY-2781 - Adding schema for Corba binding +- TUSCANY-2781 - Integrating Corba schema to tuscany schema +- TUSCANY-2781 - Fixing Corba schema with right binding name +- TUSCANY-2784 - Adding schema for Java EE implementation +- TUSCANY-2784 - Integrating Java EE schema to sca schema +- Move to a seperate itest as that makes the itest simpler +- Add an itest for folder contributions and zip contributions containing jars +- Demonstrate how the non-JAXWS base class can be used. Add some ignores. +- Start looking at seperating out the JMS service side listener functions into a pluggable module so different runtime environments can plug in their own runtime specific code. This should help the geronimo plugin support JMS using the Geronimo JMS provider and JCA, and any others who are using Tuscany deeply embedded in a container. Not in the build yet or used by the current JMS binding till it gets a bit further +- and related to r737718 a module for the current JMS binding listener code that uses the 'asf' approach of a JMS listener spawning unmanaged threads to process messages +- TUSCANY-2794 - JMS callback property variable ends with space - not a valid Javaidentifier +- Removing holder-ws-service from pom as it seems the sample is not available +- Process services in component pre-processing. +- Start to add some JMS host interfaces +- Start to add some JMS host default implementations +- Fixes for TUSCANY-2771 +- Make jms host an extension point +- Make the default jms host use the jms host extension point +- Remove unused code +- Add method to get the service destination to the jms host as you need that to get callbacks working +- Implement the getDestination method in the default jms host +- Intial cut at changing the jms binding to use the jms host for the service listener +- Update the pom.xml to include a jms host +- Update the pom.xml to include a jms host +- update the jms itests to include a jms host +- TUSCANY-2663 - Workaround for 'java.lang.IllegalStateException: The current state is not START_DOCUMENT' when in WebSphere env +- Refactoring common code to simplify processing extended attributes +- Adding support for extended attributes to webservices binding +- Fixing test failures by ignoring tuscany NS when processing extended attributes +- Adding support for extended attributes to EJB binding +- Adding support for writing extended attributes to EJB binding +- Adding support for extended attributes to java implementation +- Removing System.out from WS Policy processor +- Adding support for extended attributes to java interface +- Adding support for extended attributes to wsdl interface +- Remove some targetNamespace attributes +- Remove some targetNamespace attributes +- TUSCANY-2291, Separate the mixed callback error validation test from the other callback tests so that the error doesn't affect the rest of the tests +- Removing obsolete dependency +- Fixing sca.tld copy by adding rtexprvalue attribute +- TUSCANY-2798: Add an itest for a service sending the response to the response destination defined on the jms binding element if the request message doesn't have a replyTo set +- TUSCANY-2798: Fix the jms binding to use the destination in the binding response element when the request message has no replyto +- TUSCANY-2776 The JMSBindingProcessor does not perform validation of binding properties +- TUSCANY-2803 - Improvement to component matching in NodeImpl +- TUSCANY-2463 - New test case that exercises extended attributes in bindings +- Removing system.out from AnyAttribute test case +- Removing unused imports +- TUSCANY-2701 NPE when verifying conformance item ASM60006 in OASIS sepc +- TUSCANY-2799 - don't return responses inside arrays. Generally reorg the code so that the message processors only worry about getting data in and out of JMS message while the interceptors worry about whether the data should be wrapped as an array. In this way the forward path can do array wrapping in order to keep databinding happy while the response path can omit array wrapping +- Commit update to jms sca binding left off the change to the JMS binding to use the JMS Host +- TUSCANY-2799 Fix NPE in JMS Object wire format when a null object is returned. Add a test also. +- Remove target namespace from contribution.xml of distributed calculator +- Add jms host modules to the build +- TUSCANY-2820: start adding support for the varrious property elements on the jms binding +- Fixes for TUSCANY-2451 +- Update validation tests for jms binidng updates +- Correct dependency with backlevel version +- TUSCANY-2823 Callback problem with COMPOSITE scoped implementation +- Add support for operation property properties to binding.jms +- Add support for resourceAdapter and its properties +- Add support for resourceAdapter and its properties +- TUSCANY-2821 Added JMS Binding APIs public Set<String> getOperationNames() and public Object getOperationProperty(String opName, String propName ). +- TUSCANY-2463 - Fixing Web Service binding processor to propertly get a reference to Extended Attribute processor +- Fixes for MTOM TestCase +- TUSCANY-2824 - Turn the binding.ws policy handlers back on. The ws policy handlers are now present but commented out as they are causing problems in the Axis 1.4.1 stack. Update the keys for the binding.ws tests cases so they remain valid for a long time. +- TUSCANY-2835 JMS Binding does not save operation names unless there are properties. +- Merge branch 'bpel-resolver' +- Removing system.out used for debug +- Fix the TLD to use jsp taglib 2.1 xsd +- TUSCANY-2463 - Enabling extended attribute support for default sca binding +- Apply the TLD fix to use jsp taglib 2.1 xsd in the other copy sca.tld +- Simplify so you can use createNode() instead of createNode(null, null) +- Add jms itest using a response ConnectionFactory +- Move jms responsecf itest to its own module to make it eaisier to debug +- Remove erronious warning about response connection factory not being processed +- TUSCANY-2841: start to add support for using a seperate response connection factory +- Update for resource factory changes +- Update noreply itest for change to not return Object arrays +- Add jms noreply itest to itest build +- Update jms response connectionFactory itest to correctly setup jndi resources +- TUSCANY-2839: Start at supporting services invoked by oneway requests not needing a response connection factory +- TUSCANY-2824 - turn WSSecurity based policy back on. Two not so great fixes here. Firstly WSSecurityPolicyHandler pushes a property into the Axis configuration context to force Rampart to recognize the policy. I haven't discovered what part of our configuration is required to do this properly. Secondly I fixed the helloworld-ws-service-secure test case to reference the wsdl on binding.ws. Without this you get a NPE in axis/rampart as it fails to map binding operations to port type operation using QNames (don't know why it thinks these are QNames). Our generated WSDL has the generated binding in a different namespace to the port type. Associating the wsdl binding with binding.ws means that the binding is not generated at the made up QNames match. I also updated a few key stores as the runtime was complaining about X509 certificate version numbers. +- Add a jms oneway itest with a nondefault connection factory +- Set svn ignores +- Make sure resource factory gets set before use to avoid any NPEs +- TUSCANY-2825 JMSBindingProcessor missing 'write' method implementation +- TUSCANY-2847 - Updating composite used to verify any element processing +- TUSCANY-2836 remove DEFAULT_DESTINATION_NAME and DEFAULT_RESPONSE_DESTINATION_NAME and use null instead as these are just strings to indicated that there is no destination rather than being a default destination +- Fix for TUSCANY-2846 +- Reenable a commented out test as the jira has been fixed +- Add a JMS test for exceptions using a non-SCA JMS client. Doesn't actually test the responses yet but the framework is there to send and receive the messages to the sca service +- UPdate jms exceptions testcase so the object format tests work +- Add the jms nonsca excpetions test to build +- Fixes for TUSCANY-2840 +- Change XMLTextMessageProcessor to override the createFaultMessage to handle FaultExceptions +- Activate text and object tests in the jms nonsca client exxceptions test +- Activate the unchecked exception test, still need to establish what the response should really look like +- Correct test name +- Partial fix for exceptions for sca clients using text xml wireformat +- Update JAXWSFaultExceptionMapper to handle extra contsructor +- Comment out failing assertions for the time being +- Update with JIRA about the problem +- Fix for TUSCANY-2779. Thanks zhulei for the patch. +- Remove old test thats nolonger applicable +- TUSCANY-2839: Add checks to bypass response processing for oneway operations +- TUSCANY-2845: Change JMS binding so unchecked exceptions are returned as RuntimeExceptions +- Use Logger instead e.printStackTrace +- Fix for TUSCANY-2854: remove the use of "tempuri.org" +- TUSCANY 2855 - Adding Holder WS Sample +- TUSCANY-2855 Holder sample not appearing (part 2, missed a few files) +- Fix the JAXBException if package-info annotated with @XmlSchema is present without ObjectFactory +- Fix for TUSCANY-2702 +- Fix for TUSCANY-2860 +- Fixes for TUSCANY-2840-Part2 +- Fixes for TUSCANY-2840-Part3 +- Add a method that returns an unchecked exception +- Add ignores +- Commit some code to write out composite model during processing. Uncomment to use. +- TUSCANY-2859: Add a closeResponseConnection method to the JMSResourceFactory +- TUSCANY-2849 Unable to define operation-level intents on binding.jms +- TUSCANY-2861: Add an itest for sending/receiving null +- Add jms-nulls itest to build +- TUSCANY-2861: Fix Object wireformat to deal with receiveing a null message correctly +- Fix already closed bug when the responseConnection is the same as the request connection +- Fix already closed bug with oneway requests +- Add BPEL document resolver to defer to namespace imports if document is not found in current contribution +- Make property ids optional +- Fix for TUSCANY-2550 +- Fix for TUSCANY-2550 +- TUSCANY-2867 - Pass checked exceptions as InvocationTargetExceptions. Don't rely on boolean fault flag for messages of object type. Thanks for the patch Kaushik +- TUSCANY-2857 Correct handling of JMSDeliveryMode and JMSPriority +- Improve some assembly component tests to be more specific +- TUSCANY-2856 'property' validation conflicts with osoa spec +- Correct the type of message that CompositeProcessor reports for a CompositeReadException and correct a few tests to take account of this and another couple of exception funnies. +- Fix the push/pop out of sequence issue +- Adding new store-secure sample to exercise security policy in web 2.0 extensions +- Adding support to enable SSL when using binding-http using Confidentiality policy intent +- Minor cleanup on the policy properties +- Refactoring confidentiality policy support for http bindings to it's own module +- Updating NodeWebAppServletHost to provide new version of addServletMapping +- Updating WebAppServletHost to provide new version of addServletMapping +- Adding support for enabling and configuring authentication for embedded http server using policy +- Removing empty folder +- TUSCANY-2868 - Add more assembly/component test cases. Thanks for the patch Jun Guo +- TUSCANY-2864 - Fix end of test comment. Thanks for the patch emily +- TUSCANY-2874 - Add ASM_6030_TestCase - thanks for the patch Susan +- Fix for TUSCANY-2875 +- Fix for TUSCANY-2875 +- TUSCANY-2897 JMSBinding model should be QNames not Strings +- TUSCANY-2871 ClassCastException using atom-abdera binding +- Only create a transport description for the JMS transport if JMS is configured to be in use. +- Fixes for TUSCANY-2642, 2909, 2910 +- Fixes for TUSCANY-2642 +- Remove SpringSCAPropertyElement.java.orig +- Removing empty folder +- TUSCANY-2905 Implement third rule which is supposed to look for an operation name in the root element of the XML payload +- TUSCANY-2907 Stest code +- Adding code to use full binding uri when provided, otherwise using relative path - note that code is commented out for now +- TUSCANY-2884 - more composite vtests. Thanks for the patch Susan. +- Updating-DWR-dependency-level-to-2.0.3 +- Placing gif jpg files used for testing in test resource folder +- Moving to use DOJO 1.3.0b3 +- Update scn urls required by continuuns builds +- Updating project name to help identify (1.x) versus (2.x) builds in continuuns environment +- Fix the J2W generation issue which misses the target namespace +- Make the artifactURI "" resolve to the sourceURL. +- Added an EAR packaging type. Updated WAR to use PackageType.WAR. +- o JavaEE processors to introspect WAR, JAR and EAR files and create model objects +- Missing and wrongly placed license headers. +- Updated the methods to throw ContributionReadException. +- Java EE Introspection code using OpenEJB. +- URI "" corresponds to the archive as an artifact. +- Fix a regression caused by r755474 +- Use the JavaEE optional extension to compute SCA references and SCA properties from Remote EJB3 references and EnvEntries. +- Use the JavaEE extensions to compute SCA services, SCA references and SCA properties from EJB3 business interfaces, Remote EJB3 references and EnvEntries. +- Only introspect the fault type if the JAXWS interface processor hasn't figured out the databinding +- Produce xsi:type for local elements +- Add contribution-jee to the build to avoid break +- Removing obsolete schema file for binding-gdata +- Removing @author per Apache best practices +- Adding support for Jaas authentication policy to component services +- Removing system.out debug message +- Wrapping the invocation with a message, in order to pass extra information during invocation +- Removing @author per Apache best practices +- Properly handling business/runtime exception with new invocation method +- Small method name change +- Removing unused imports +- Adding support for LDAP Realm authentication policy +- Adding support for LDAP Realm authentication policy +- Fixes for TUSCANY-2914 +- Fixes for TUSCANY-2922 +- Fixes for TUSCANY-2922 +- TUSCANY-2923 Stest code ASM_0024 - ASM_0043 +- TUSCANY-2926 Stest code invalid ignore tag +- Use the JavaEE extensions to compute SCA services, SCA references and SCA properties from EJB3 business interfaces, Remote EJB3 references and EnvEntries. +- TUSCANY-2932 Throw org.apache.tuscany.sca.data.collection.NotFoundException on 404 errors if AtomReferenceBindingProvider.supportsFeedEntries() is false +- TUSCANY-2931 - Start of test for different in request and response wire formats. Infrastructure not working properly just yet. +- Do not throw exception if the jar is not an EJB jar. +- TUSCANY-2932 Correctly handle NotFoundException as a 404 in AtomBindingListenerServlet +- Adding module to the build. +- TUSCANY-2935 Integration tests for Java EE contribution processing +- TUSCANY-2933 - Runtime changes to properly define widget functions in it's own namespace +- TUSCANY-2933 - Updating photo-gallery sample to use widget Java Script fuctions in the new tuscany.sca namespace +- TUSCANY-2933 - Updating store sample to use widget Java Script fuctions in the new tuscany.sca namespace +- TUSCANY-2933 - Updating store samples to use widget Java Script fuctions in the new tuscany.sca namespace +- TUSCANY-2933 - Updating domain manager ui to use widget Java Script fuctions in the new tuscany.sca namespace +- TUSCANY-2933 - Updating store tutorial to use widget Java Script fuctions in the new tuscany.sca namespace +- TUSCANY-2933 - Updating widget test html to use widget Java Script fuctions in the new tuscany.sca namespace +- Store scenario using widget packaged as a webapp +- Adding store-webapp to build +- TUSCANY-2838 - Updating implementation widget to properly register component java script in a webapp environment +- TUSCANY-2838 - Missing files required by implementation widget to properly register component java script in a webapp environment +- Update scadomain to support passing in the default port in the domain uri +- TUSCANY-2936 Extension point API for Java EE +- Commenting out since an issue in openejb is resulting in problems with WAR processing. +- Set some svn ignores +- TUSCANY-2936 Extension point API for Java EE +- Minor formatting +- Adding provided binding URI to avoid issues when service is deployed in a webapp environment +- Minor formatting and removing unused imports +- Adding test case to test atom feed reference using generic collection interface +- Move JAAS service policy provider from binding wire to the operation wire +- add some ignores +- add some ignores +- Set svn ignores +- TUSCANY-2918, Update jms support so that the service listener can be pluggable via host-jms +- Move fault type introspection to the the fault mapper +- Fixes for TUSCANY-2906 +- Fixes for TUSCANY-2941 +- Don't fall over if there is no introspector, e.g. if contribution-jee-impl is not loaded +- TUSCANY-2931 - allow separate request and response wire formats in binding.jms. The tuscany binding.jms XSD has been extended to allow a response wireFormat element to be specified. The knock on effect of all this is that the Operation interface has been changed to allow input and output wrapper info to be held separately. Also Interface has some new operations. There are changes across the code base to take account of this interface change. +- Add a namespace to the missing component type composite +- Remove these files as they are no longer required. Replaced by RRB... versions. +- Example of how we could describe what exceptions are expected in stests +- Take testcase out of build as its now broken, see TUSCANY-2942 +- Add jira number +- Take testcase out of build as its broken, see TUSCANY-2943 +- Take store-test out of build as its broken, see TUSCANY-2944 +- Remove old "getWireFormatInterfaceContract" operation +- Take fialing tests out of build, see TUSCANY-2945 +- TUSCANY-2934 - wire up the wire format writers +- TUSCANY-2937 - Renaming FeedAggregatorTestCase and adding @Ignore on failing tests as described in jira +- TUSCANY-2837 - Adding Javascript extension points to be used by implementtion.widget and any web related extensions that have Javascript proxy dependencies +- TUSCANY-2837 - Updates to start using Javascript extension points to generate js client proxies +- TUSCANY-2837 - Atom Binding Javascript extension point implementation +- TUSCANY-2837 - JSONRPC Binding Javascript extension point implementation +- TUSCANY-2837 - Updating sample app dependencies to add javascript dependencies for atom and jsonrpc bindings +- TUSCANY-2837 - Adding new modules to build +- TUSCANY-2837 - Adding javadoc comments to JavascriptProxyFactory +- TUSCANY-2837 - Extending Javascript extension to provide the js proxy client file +- Removing duplicated file that is already available in main/resources +- TUSCANY-2837 - Adding new js dependencies +- TUSCANY-2837 - Adding new js dependencies +- TUSCANY-2946, take failing test out of build +- TUSCANY-2947, take itest out of build as its failing +- TUSCANY-2948, take jms-format test out of build for now +- TUSCANY-2944 don't raise NPE if the component type model cannot be determined +- TUSCANY-2950 enclose etags in speech marks +- TUSCANY-2937 uncomment ignored tests as underlying etag issue is fixed under TUSCANY-2950. +- Workaround the jaxws-api maven issue (merged from 2.x) +- TUSCANY-2944 - Enable tests as recent changes from slaws in revision #759149 fixes the problems we were seeing. +- TUSCANY-2931 - update operation matching to be based on operation name. Add a complex type based interface back into to the test case. +- Process SCA Property and Reference annotations. +- TUSCANY-2935 Integration tests for Java EE contribution processing +- Reversing the changes committed accidentally in the last commit. +- Put back the TUSCANY-2946 failing test into the build to see if anyone else gets it +- Fixes for TUSCANY-2945, 2947, 2948 +- Fixes for TUSCANY-2945, 2947, 2948 +- Fixes for TUSCANY-2945, 2947, 2948 +- Added the missing JSP spec dependency. +- Set svn:ignore +- Set svn:ignore +- Make sure SCA domain is closed +- Move the componentType files into the resource folder so that maven copy them into the target/classes +- Removing obsolet place holder module +- Removing eclipse/maven generated files +- TUSCANY-2878 - New extensions to generate javascript proxies when using dojo +- TUSCANY-2878 - Module responsible to add register dojo toolkit in web environment under '/dojo'. This is usefull in embedded environment +- TUSCANY-2878 - JavaScript Generator extension point. Used by implementation.widget to allow multiple implementations of js generator (e.g. tuscany specific and dojo based) +- TUSCANY-2878 - Changes to support new JavaScript Generator extension point and new generators for tuscany specific scripts and dojo toolkit +- TUSCANY-2878 - New store sample app using dojo version of implementation widget +- TUSCANY-2878 - Adding new modules and sample apps to build +- TUSCANY-2878 - Removing obsolete file +- TUSCANY-2878 - Adjusting modules to add implementation-widget-runtime-tuscany as dependency +- TUSCANY-2878 - Adjusting modules to add implementation-widget-runtime-tuscany as dependency +- TUSCANY-2878 - Moving tests to implementation-widget-runtime-tuscany and minor pom adjusts +- TUSCANY-2955 SCA annotation processing for impl.web, impl.ejb, impl.jee +- Moving Erlang binding to 1.x branch +- TUSCANY-2935 Integration tests for Java EE contribution processing +- TUSCANY-2878 - Missed module activator files from last committs +- TUSCANY-2878 - Renaming resource bundle used by monitor to match name expected in code +- svn propset svn:ignore +- svn propset svn:ignore +- svn propset svn:ignore +- TUSCANY-2878 - Missed dojo javascript generator from last commit +- TUSCANY-2878 - Missed dojo javascript extension poing to atom binding +- TUSCANY-2878 - Missed dojo javascript extension poing to jsonrpc binding +- TUSCANY-2956 Java EE Archive introspection +- TUSCANY-2878 - Removing unnecessary .Service from generated dojo jsonrpc javascript proxy +- TUSCANY-2878 - Moving dojo.requires to before store.js and fixing invocation of services to follow dojo pattern +- TUSCANY-2878 - Moving dojo resources to it's own folder to avoid issues with clean target that was removing other non-dojo resources. +- TUSCANY-2956 Java EE Archive introspection +- TUSCANY-2935 Integration tests for Java EE contribution processing +- TUSCANY-2935 Integration tests for Java EE contribution processing +- Added configurable thread pools, fixed problem with ReferenceServiceTestCase.testMultipleMethod() test case, added writing to binding processor - problems with testing +- TUSCANY-2935 Integration tests for Java EE contribution processing +- Minor typo on method declaration +- Renaming core-web-xxx modules to web-javascript-xxx modules +- Refactoring javascript extension points packages to follow the same naming pattern used by it's modules. +- Fix minor copy error in input vs. output var name +- Set svn:ignore and update the module names +- Make the openejb version consistent and fix the NPE & UnsupportedModuleType +- Comment out the test case due to TUSCANY-2957 +- Make sure the outputWrapperStyle is set +- TUSCANY-2952, fix jms listener to work in weblogic 10.x +- Copy zip/folder nested jar support change from 2.x to 1.x +- Added a configuration to work around http://jira.codehaus.org/browse/MECLIPSE-544 +- TUSCANY-2862 - Fixing issues when calculating contribution location and provided composite had spaces +- TUSCANY-2862 - Fixing URI issues when processing jar contributions that had artifacts with space on it's name +- TUSCANY-2862 - Further changes to handled folder contributions that have artifacts with space in the name +- Fix TUSCANY-2957 +- Add remotable check to avoid perf penality from Holder processing for local calls +- TUSCANY-2938 - Fixing how we calculate request path based on contextPath and ServletPath to make operations working in both embedded and webapp hosted environment +- TUSCANY-2871 - Providing better exception when feed entry is not supported +- Refacroting testcase to use same package pattern for the module +- Removing empty directory +- Removing empty directory +- TUSCANY-2958 JEEImplementationImpl, WebImplementationImpl and EJBImplementationImpl need to implement PolicySetAttachPoint +- General improvements for messaging, fixed some issues regarding communication with real Erlang nodes +- Change to use port 8085 as 8081 has a conflict on the continuum server +- Change JMS server port to try to avoid conflict on continuum server +- Add a println of the problem to see what it says when running on the continuum machine as the test is assing for me +- Exclude the module that has conflicting classes with the JDK +- Separate the contribution JEE sample scenarios from the contribution JEE itests so we can see the source for the samples and more easily mix and match to construct the various combinations required. Add a new test relating to a single sample scenario to explore the problem with classloading where the JEE archive classloader is not available during contribution resolution. +- Set a bunch of svn ignores +- Messaging improvements +- TUSCANY-2851, start of an itest for exceptions in Java component initilization +- Add more complete test for the various lifecycle exceptions +- TUSCANY-2851, fix exceptions during init processing of java components to call destroy +- Use explicit version to fix continuum build +- Use explicit verison to fix continuum build +- Change to port 8085 to avoid conflict on continuum build +- Change some jms ports to try to fix continuum build conflicts +- Change some jms ports to try to fix continuum build conflicts +- Comment out tests which don't work on continuum build machine +- TUSCANY-2972 - Sample code for fixing up classloaders for JEE archives. No where near done yet but allows us to experiment and explore the problems. +- Added support for Erlang Atoms +- Try another port for the continuum machine build +- Comment out the http service as its not used by the test an seems to ause a problem in continuum +- Bump up 1.x trunk version to 1.6-SNAPSHOT +- General improvements +- TUSCANY-2976: Apply patch from Greg Dritschler to Remove default 'ConnectionFactory' in JMSBinding model +- TUSCANY-2972 instigate contribution type specific class loading to allow the JEE classloader to be used independently of jar, zip, dir classloading schemes +- Start adding some more JEE samples. No guarantee that these actually work yet as I haven't run them in a JEE runtime but a place to start. +- Start of a testcase which show implemntation.jee pointing at an ear is processed correctly +- Add test dependency +- It should be EAR instead of EJB. +- Type should be WAR instead of EAR. +- Set the EJB classloader in EJBModuleInfo. +- Move testcase to an itest +- New itest for jee external ear's +- Set svn ignores +- Update to introspect external ear archives +- Rename testcase as it works now (as long as you've the NPE fixed openejb jar) +- Add exclusion to avoid the conflicting jdk classes from felix +- Add "Extensible" support for the ContributionMetaData/Contribution/Import/Export models (TUSCANY-2983) +- TUSCANY-2968 - Creating a new http binding based on current tuscany one +- Removing unecessary @Ignore +- TUSCANY-2968 - Adding new binding processor and making necessary adjustment to move to spec namespace +- Adding gdata dependencies to LICENSE file (copied from 1.4 release) +- Updating pom version to reflect changes made in trunk in preparation for release +- TUSCANY-2968 - Adding module to handle json-rpc wireformat and initial support for it +- Add an external ear modelresolver approach to the jee itest +- Improve the handling of INOUT and OUT parameters using JAX-WS Holder +- Remove bundle module from the pom.xml as it's now moved +- Put back distribution/bundle that was inadvertently removed in r766999 +- Put back distribution\bundle into the build +- TUSCANY-2930 main part of separating wireFormat.jmsdefault out from wireFormat.jmsTextXML. I've spotted a few more things that need fixing but this basic functionality passes all of our current JMS tests and now better matched what the specification says about default format. +- TUSCANY-2930 extend default format test for the chase where default is specified on reference but not on the service +- Move the JAX-WS holder testing logic to interface-java-jaxws +- TUSCANY-2986 - move the callback processing into a separate interceptor to allow other operation selectors to use it. Don't have any others just yet but about to add another one. +- TUSCANY-2987 code to make nativeOperation based operation selection work and add new operation selector (jmsUser) that allows you to specify what JMS message property holds the operation name. No test cases yet. +- TUSCANY-2977 determine implementation.jee component type from application composite if one is available +- o Updated artifactId to the correct (long) one. +- TUSCANY-2987, TUSCANY-2964. Rename operation selector that allows the user to specify which message property holds the operation name. Add tests cases for this and the default selector. Rename default selector to be all lowers case (it's still in the Tuscany namespace though) +- TUSCANY-2965 - add a jmsBytesXML wireFormat analogous to jmsTextXML +- TUSCANY-2966 - reset bytes message after read in operation selector so that following wire format can re-read bytes if required. +- Update the tuscany part of the JMS binding schema to take account of recent wireFormat and opertionSelector changes. These schema type are not wired into the binding.jms schema at the moment (we rely on anys) but it's useful to keep track of the shape of these elements. +- Add some ignores +- TUSCANY-2626 - add EndpointReference back into the binding.ws schema. This is not the wsa:EnpointReference though. To get this to work I have had EndpointReference goes in the target namespace. The code to read EndpointReference still reads wsa:EndpointReference so this shouldn't break anyone already using that but at least it gives the reader an idea about what can validly go in the schema. +- Fix the ArrayOutofBoundException that causes the hang of itest/helloworld-bpel +- set svn:ignore +- Make sure the default mode is set to INOUT if the type is Holder.class +- TUSCANY-2626 add file missed in previous commit for this JIRA +- The war file generated by the jee sample project has a long name. Updating the url accordingly. +- Code update to support external EAR has broken this test. Ignoring the test for now. +- TUSCANY-2953 Fix sca.tld in branches-1.x +- Uncommenting contribution-jee itest. +- TUSCANY-2997 - Removing unecessary load of dojo base component +- TUSCANY-2998 - Fixing sample usage of dojo based JavaScript proxies to avoid issues when invoking shopingCart service (e.g loading shoopingCart contents) +- TUSCANY-2999 - Fixing property initialization in implementation widget +- TUSCANY-2968 - Adding model and processors for JSONRPC Operation Selector +- TUSCANY-2968 - Starting to bring up JSON RPC runtime pieces as wire format for binding.http +- Add an itest for setting the JMS Time-To-Live header +- Remove unused xsds +- Add exclusion to avoid the conflicting jdk classes from felix +- Make sure the checked exception is tested against the target operation +- MOving data-engine-helper to contrib +- Removing data-engine-helper from pom as it was moved to contrib +- Fix for TUSCANY-3000 +- Add a apace for the error message +- Fix the clone() +- TUSCANY-2996 - Add support for wrapSingle attribute that, when set true, ensures that single parameters are wrapped in an array on the wire. When set false single parameters will not be wrapped on the wire. Multiple parameters will always be wrapped. +- Add ignore +- TUSCANY-2965 - add fault handling code for wireFormat.bytesXML +- TUSCANY-2993 Fix global variable handling that was causing store-dojo to fail with internet explorer +- Move the Holder logic into JAXWS interface processor +- Start to add contribution level SDO type registration +- Set svn:ignore +- Add annotation dependency as the provided scope is not transitive +- Update to cargo plugin 1.0 +- Refactor the data transformation and copy logic into Mediator utility +- Add jee contribution samples to the build as the contribution-jee itest depends on it +- TUSCANY-3002: fix writeStartElement calls in JMSBindingProcessor do not pass namespace +- Clean up imports +- TUSCANY-3006 - Disabling failing test cases +- TUSCANY-2968 - Updating binding-http schema and moving wireFormat and operationSelector to tuscany-sca-core.xsd to be sharable +- TUSCANY-2968 - Changing binding to tuscany namespace and other small updates +- TUSCANY-2968 - Renaming new binding.http module to avoid confusion with the oasis draft, as we are not really implementing the whole spec but just following the wireFormat and operationSelector options implemented in binding.jms +- Double the time the test waits for the time to live to be set into the initial context as it's failing on my machine with the existing timeout. +- TUSCANY-2978 - Add some more sample archives based on the scenarios here http://cwiki.apache.org/confluence/display/TUSCANYWIKI/Java+EE+Integration +- TUSCANY-2978 - Add test code to exercise new JEE sample archives including code to show how to process an archive that appears outside of the contribution that references it. See TestExternalEarModelResolver.java. Some jee processing changes were required to make this work. +- TUSCANY-3008 disable reference test in testContributeEAR_Enhanced16 until this problem is fixed +- Remove the unused mediator lookup +- TUSCANY-2968 - JSONRPC operation selector +- TUSCANY-2968 - Moving unit tests to iTest to avoid circular references +- TUSCANY-2968 - Further changes trying to add the json-rpc wireformat and operation selector interceptors to the invocation chain +- TUSCANY-2968 - Minor update to make serice providers follow the same implementation pattern +- Set context for mediateFault as well. +- Fixing NPE when no operation provided when creating invoker +- TUSCANY-2968 - Discovering and adding wire format and operation selector interceptors via extension point, but inside binding provider +- TUSCANY-2968 - JSONRPC invocation using operation selector and wire formats working end to end +- TUSCANY-2968 - Enabling test that invoke remote jsonrpc services using the new operation selector/wire format implementation +- TUSCANY-2968 - Adding databinding dependencies to integration tests +- TUSCANY-2968 - Setting JSON dataBinding on service interface contract +- TUSCANY-2968 - Enabling more tests that are currently passing +- Add host-jetty dependency as binging-http needs are servlet host. For some reason this test works OK in Eclipse but doesn't work in Maven. So eclipse is picking up the jetty dependency from somewhere else. Ass some ignores also. +- Tidy comment +- TUSCANY-3005 - Take account of the case where there are either no input parameters or a void return type (or both). Thanks for the patch Kaushik. +- TUSCANY-2968 - Fixing data binding related issues to properly transform to/from json format as needed +- USCANY-2968 - Enabling more tests that are currently passing +- TUSCANY-2968 - Fixing exception handling issues to properly report exceptions as json error responses +- USCANY-2968 - Enabling more tests that are currently passing +- Small clean up and formatting on tests +- TUSCANY-2968 - Fixing NPE with pure http binding +- Removing unwanted files, got in accidentaly +- Renaming Spring modules as old +- Refactoring Spring module +- moving spring-runtime to spring-sca +- Refactoring Spring Module +- Changing Spring Dependencies +- Refactoring Spring Module +- Refactoring Spring Module +- TUSCANY-2959 - Store-android patch from Sanni Lookman +- Adding missing Apache headers to store-android +- Restoring catalog activity as backup/reference +- TUSCANY-2900 - Add code to generate JMS binding and service/port to generated wsdl. Add itest to explore the different ways of configuring generated WSDL. +- TUSCANY-3011 correct JMS binding XSD to make OperationalProperties/Headers optional as per the OSOA spec +- Performance enhancement to avoid processing the deployable composite twice when starting a node +- Add a new soap/jms transport module copied from the Apache WS Commons transports but with the code backported to work with Axis2 1.4.1 +- Merging changes from binding-http-new that introduces support to wire format and operation selector to the main binding-http. +- Fix for TUSCANY-2962 +- Leverage optimization from the Axiom 1.2.7 +- Remove unused classes +- Merging HTTPBindingProcessor from binding-http-new that introduces support to wire format and operation selector to the main binding-http. +- Renaming binding-http-new-jsonrpc* to binding-http-jsonrpc* +- Adjusting pom with recent module name refactoring/changes +- Removing obsolete modules that have been merged or renamed. +- Fix for TUSCANY-3017 +- Abandon trying to use the new Axis2 JMS transport for now as its proving too messy tryingto backport it to the 1.4.1 release. Now trying a new approach which modifies the JMS transport from Axis2 1.4.1 +- Start bringing up Tuscany version of JMS transport so the setMessageListener not allowed in a JEE container can be fixed +- Add support for using Tuscany threads instead on setMessageListener in a JEE container environment +- Fix NPE bug in TUSCANY-2962 fix +- TUSCANY-2967 Fix up just jmsBytes wire format to return exceptions as bytes to see if this is what we want +- TUSCANY-3031 Ensure that JMS wire formats that don't required a data transformation work when interface.wsdl is used. Use the component type interface rather than the service +- A tool to save to disc the WSDL for each service, with binding.ws, within all of the deployable composites in a specified contribution +- Exclude work session.ser from build +- Add missing license headers +- Add missing license headers +- Rename tests and add license header +- Add missing license header +- Add missing license header +- Exclude cruft from bin distro +- Excelude multiple sca bindings from bundle build +- Exclude bouncycastle +- Update legal files +- Remove provided csope from spring dependencies +- Add spring runtime module +- Mereg bouncy castle excludes from 1.5 to 1.x +- Exclude dojo files +- TUSCANY-3030 if the fault exception mapper is null try getting it from the registry before returning the fault unmapped. This takes care of the case there the mapper is null just because the JavaRuntimeModuleActivator is started before the DatabindingModuleActivator +- TUSCANY-3032 - fix binding.ejb schema so that ejb-link-name is a string not an NCName +- Correct typo in exclude +- TUSCANY-3025 - Appying Sanni Lookman patch plus small fixes to make it run successfully +- TUSCANY-2967 - to aid investigation of possible exception processing refactoring enhance format tests to test checked and unchecked exceptions. Also add a wf.jmsText test. +- Do BytesMessage.reset() on BytesMP, DefaultMP to be consistent across wire formats. +- Apply patch for TUSCANY-3033 from Pradeep. Thanks. +- Removing obsolete FIXME tags, as exceptions are handled ok on wireFormat interceptor already +- Reporting fault message with exception in json representation, when jsonrpc operation selector interceptor can't parse json request +- Updating java doc for HTTP JSON-RPC wireformat/operation selector extensions +- Properly handle SMD requests in JSON-RPC wire format/operation selector +- Reverting changes as this would make sample stop working due to TUSCANY-3042 +- Add jms host to bundle to fix running jms samples + +Changes With Apache Tuscany SCA 1.4 December 2008 +================================================== + +- Features and/or Enhancements + +Core + * Enhancements to Spring integration + o Support for Spring version 2.5.5 + o Spring Schema location changed to http://www.osoa.org/xmlns/sca/1.0/spring-sca.xsd + o Support for Implementation Policies to Spring Components + o Support for basic SCA annotations with Spring beans + o Improved user guide documentation + * Axis2 Runtime + o Support for Axis2 version 1.4.1 + o Support for MTOM message optimization + * JMS + o Support for SCA callbacks with JMS binding + o Support for new subscription Header element from latest WD3 spec draft + o Support for @requestConnection / @responseConnection + o Improved user guide documentation + * Tracing + o Support for Aspect Oriented Tracing + +Web 2.0 Extensions + * ATOM Binding + o Support for eTags, last-modified headers, complete support for location header + o Support for streaming postMedia and putMedia + o Support for negotiated content types + * HTTP Binding + o Support for eTags + +Other Extensions + * Corba Binding (GSoC) + * GData Binding (GSoC) + +Tools + * Tuscany Eclipse Plugins enhancements to be compatible with new Eclipse Ganymede release + +Samples/Tutorial/Demos + * Improved simple-bigbank-spring samples to demonstrate various SCA bindings with Spring + +Fix the following JIRA issues (http://issues.apache.org/jira/browse/TUSCANY): + * TUSCANY-2585 Support for tag in Spring Application Context + * TUSCANY-2623 Atom binding JavaScript client needs model to XML serialization + * TUSCANY-2634 Implementation Policies for implementation.spring + * TUSCANY-2654 Support for SCA Annotations in Spring Implementation + * TUSCANY-2655 Create itest for SCA annotations with Spring Implementation + * TUSCANY-2656 More improvement to the spring itest + * TUSCANY-2665 Issue noticed in itest-contribution while starting the CalculatorClient + * TUSCANY-2666 Improvement in Spring BigBank Sample test + * TUSCANY-2672 Compilation Error Building SCA CORBA Binding Runtime + * TUSCANY-2455 Exception not thrown on duplicate component names within a composite + * TUSCANY-2550 Ensure Spring Implementation works with binding.sca/jsonrpc/rss/atom + * TUSCANY-2549 Documentation on Spring Implementation for SCA Java User Guide + * TUSCANY-2613 Upgrade Implementation Spring version from 2.0.8 to 2.5.5 + * TUSCANY-2641 Enhancements to Tuscany Logging and tracing + * TUSCANY-2567 Support for streaming postMedia and putMedia in Atom binding + * TUSCANY-2537 Demonstrate Atom Binding end to end caching (ETag, Last-modified use) in + * TUSCANY-2504 Atom binding support for negotiated content types + * TUSCANY-2516 HTTP binding should support etag and if-modified headers + * TUSCANY-2597 Generation of AtomPub workspace/service document + * TUSCANY-2477 Atom binding support for eTags, last-modified header + * TUSCANY-2487 Test Cases for different data type supported by JSONRPC binding + * TUSCANY-2517, TUSCANY-2520, TUSCANY-2521, TUSCANY-2522 Improvements in spring big bank sample + +Changes With Apache Tuscany SCA 1.3.3 Xxxxxxx 2008 +================================================== + +Fix the following JIRA issues (http://issues.apache.org/jira/browse/TUSCANY): + * TUSCANY-2635 Pool stateless-scoped Java impl instances + + +Changes With Apache Tuscany SCA 1.3.2 October 2008 +================================================== + +Fix the following JIRA issues (http://issues.apache.org/jira/browse/TUSCANY): + * TUSCANY-2628 Fix some other file license headers that should refer to the OSOA license + * TUSCANY-2620 Fix license header for sca.tld + * TUSCANY-2618 Add required attribute elements to sca.tld + * TUSCANY-2615 Fix NPE in databinding and a nested exception test in vtests + * TUSCANY-2614 Fix missing headers reported by RAT during release + * TUSCANY-2598 Patch to support zip protocol type + * TUSCANY-2592 Reduce size of demo/mortgage-loanapproval doc + * TUSCANY-2591 Invalid JMS Message Property in binding.jms + * TUSCANY-2590 Pool JAXB marshaller/unmarshallers for a given JAXBContext + * TUSCANY-2587 Inconsistent service naming in promoted service scenarios + * TUSCANY-2561 Soap intents are lower case while the policy framework says that they should be upper case + * TUSCANY-2538 Tuscany object model does not handle unknown content in composite files + * TUSCANY-2531 Problems with generated wsdl when using non service package + * TUSCANY-2513 Java intfs with @WebService should be treated like @Remotable intfs wrt calculation of services implemented by a Java implementation + * TUSCANY-2501 InterfaceContract is not established on reference when it's not calculated by introspection + * TUSCANY-2463 Provide capability for handling attribute extensions to standard SCA elements in composite file + * TUSCANY-2398 Problem with using interface.java on reference when using interface.wsdl in service with a doc/lit/bare wsdl + +Changes With Apache Tuscany SCA 1.3.1 August 2008 +================================================= + +Fix the following JIRA issues (http://issues.apache.org/jira/browse/TUSCANY): + * TUSCANY-2539 File handle on composite affecting behaviour of tuscany deployments in websphere. + * TUSCANY-2535 Tuscany dosn't run if install on a WebSphere server that has itself been installed in a directory with a space in the name + * TUSCANY-2534 WebSphere issue java.lang.ClassCastException + * TUSCANY-2531 Problems with generated wsdl when using non service package + * TUSCANY-2519 "throws Exception" causes failure in JAXB type generation + * TUSCANY-2514 tuscany-host-{tomcat,jetty} and jsr181-api should be optional dependencies for binding.ws clients + * TUSCANY-2505 Problem in case: start with DLW wsdl, generate Java w/ wsimport, throw away WSDL and use , when wrapper elem used named type (not anonymous) + * TUSCANY-2389 null elements in Object array not getting passed over binding.ws + + +Changes With Apache Tuscany SCA 1.3 August 2008 +=============================================== + +- Features and/or Enhancements + + We have graduated as a top level Apache project. The incubating disclaimer has been removed + and the artifact names and version no longer containg the "-incubating" string. + + * Core + - More improvements to the Distributed Domain story + - Old domain and node code has been removed + - Improved runtime Java2WSDL processing + - No longer relies on Axis code + - Support for core validation monitoring + - A pluggable monitor can be used to trap and process validation messages + - Performance improvements + - Java 2 security enablement across the code base + * Extensions + - Validation monitoring added to extension processors + - Databinding improvements + - JSR250 annotation support + - OSGi support improvements + - Better BPEL support + * Tools + - No significant changes + * Samples/Tutorial/Demos + - No significant changes + * Testing + - more spec verifaction tests + - validation itests + +Changes With Apache Tuscany SCA 1.2.1 (incubating) June 2008 +============================================================ + +Fix the following JIRA issues (http://issues.apache.org/jira/browse/TUSCANY): + * TUSCANY-2304 SCA client Hang Forver after getting exceptions from remote web service + + +Changes With Apache Tuscany SCA 1.2 (incubating) April 2008 +=========================================================== + +- Fix the following JIRA issues (http://issues.apache.org/jira/browse/TUSCANY): + * TUSCANY-2027 + * TUSCANY-1999 + * TUSCANY-2037 + * TUSCANY-2034 + * TUSCANY-2038 + * TUSCANY-2043 + * TUSCANY-2046 + * TUSCANY-2047 + * TUSCANY-2028 + * TUSCANY-1873 + * TUSCANY-2049 + * TUSCANY-2035 + * TUSCANY-1206 + * TUSCANY-2036 + * TUSCANY-1771 + * TUSCANY-2013 + * TUSCANY-1926 + * TUSCANY-1917 + * TUSCANY-1949 + * TUSCANY-1941 + * TUSCANY-2045 + * TUSCANY-2057 + * TUSCANY-2055 + * TUSCANY-2056 + * TUSCANY-2072 + * TUSCANY-2047 + * TUSCANY-2073 + * TUSCANY-1977 + * TUSCANY-2075 + * TUSCANY-1894 + * TUSCANY-2079 + * TUSCANY-2078 + * TUSCANY-2080 + * TUSCANY-2068 + * TUSCANY-1950 + * TUSCANY-2077 + * TUSCANY-2056 + * TUSCANY-2088 + * TUSCANY-2086 + * TUSCANY-2094 + * TUSCANY-2106 + + Features and/or Enhancements + + * Core + - Interceptor Enhancements + - Phase-based interceptor ordering to allow contribution of new interceptors and also define the order in witch they should be invoked + - Pass-by-reference SPI to allow interceptors to indicate if they support pass-by-reference + - PolicyProvider SPIs to allow extensions to plugin policy interceptors + - Support for JAXWS annotations and mapping of faults to Java exceptions according to JAXWS specification + - Improvement of contribution service to allow it to be used outside of the runtime environment + - Support for Contribution Import/Export resource + - Enhanced Distributed Domain story using Workspace + - Implementation of a SCA domain allowing a system administrator to manage contributions, composites and sca nodes that run these composites + - Set of core services providing management capabilities + - Administration web interface + - This is a work in progress and you can see it in action in samples/calculator-distributed. Other samples that use distributed operation are yet to move over to the workspace. + - Enhanced support for SCA Policy spec + - Ability to apply external policy definitions to a SCA composition + - Ability to spread policy definitions to multiple definitions.xml files available across the sca domain + - Bug fixes + - Improvements of http binding to support servlet components + - Enable Tuscany to run inside an OSGi runtime + + * Web 2.0 Extensions + - Enhancements to implementation.widget (support for properties) + - New atom binding based on Apache Abdera + - Refactoring of rss-rome binding + * Other Extensions + - Binding JMS + - greatly simplified the use of the JMS binding, support locating JMS resources from JNDI, and better compliance with the SCA JMS binding spec + - see the doc page for more details: http://incubator.apache.org/tuscany/sca-java-bindingjms.html + - Enhancements to Binding RMI + - Support shared RMI registry and use 999x as the ports in test case to avoid 1099 conflict + - Enhancements to Groovy extension + - Support for 'native' groovy classes + - Enhancements to OSGi bundle contributions + - Support Bundle URLs to be added as contributions + + * Tools + - Eclipse plugin providing a Tuscany runtime Library and Tuscany launcher in Eclipse environment + - An updatesite is also available to facilitate the plugin installation using the Eclipse update manager + + * Samples/Tutorial/Demos + - calculator-distributed migrated to use new Tuscany Distributed Workspace + - sample-calculator-ws-secure-webapp + - sample-helloworld-jms-webapp + - new jms samples + - improve bigbank demo to include support for policies + - tutorial store changes + - use of import/export + - development of contribution without requiring dependencies on the Tuscany runtime + - usage of new sca domain infrastructure + + * Testing + - Web Container Testing Framework integrated with (Tomcat, Jetty, Geronimo and Websphere) + + +Changes With Apache Tuscany SCA 1.1 (incubating) January 2008 +=============================================================== + +- Fix the following JIRA issues (http://issues.apache.org/jira/browse/TUSCANY): + * TUSCANY-1939 + * TUSCANY-1914 + * TUSCANY-1854 + * TUSCANY-1931 + * TUSCANY-1547 + * TUSCANY-1909 + * TUSCANY-1919 + * TUSCANY-1930 + * TUSCANY-1806 + * TUSCANY-1804 + * TUSCANY-1916 + * TUSCANY-1913 + * TUSCANY-1834 + * TUSCANY-1857 + * TUSCANY-1687 + * TUSCANY-1801 + * TUSCANY-1742 + * TUSCANY-1762 + * TUSCANY-1945 + * TUSCANY-1595 + * TUSCANY-1594 + * TUSCANY-1849 + * TUSCANY-1836 + * TUSCANY-1934 + * TUSCANY-1902 + * TUSCANY-1608 + * TUSCANY-1943 + * TUSCANY-1896 + * TUSCANY-1626 + * TUSCANY-1797 + * TUSCANY-1601 + * TUSCANY-1415 + +- Better JMS support + * binding.jms supporting point to point text based messaging only + * New SOAP/JMS sample (helloworld-ws-reference/service-jms) + +- Improvements in PolicyFramework Support + * Support for policy specifications on operation elements in a composite definition + * Separate sample (calculator-implementation-policies) to demonstrate use of Implementation Policies + (uses logging and JAAS Authentication) + +- Modeling of client side java script components + * See implementation.widget + +- Evolving support for doman API suggested by assembly spec including a standalone node and nodes running + connected together in a domain. This is still experimental. + +- Class loading and OSGI improvements + * Enable Tuscany to be run in a multi-classloader environment including inside OSGi. By default, + Tuscany continues to run using a single CLASSPATH-based classloader. + * Contributions no longer need to be in the CLASSPATH. All import/export dependencies across contributions should be + explicitly specified (as described in the spec). + +- JAXB based POJO transformations + +Changes With Apache Tuscany SCA 1.0.1 (incubating) November 2007 +================================================================ + +The Tuscany SCA Java 1.0.1 is mainly a bug-fix release. It also comes with some improvements as listed below. + +- Fix the following JIRA issues (http://issues.apache.org/jira/browse/TUSCANY): + * TUSCANY-1848 + * TUSCANY-1857 + * TUSCANY-1859 + * TUSCANY-1801 + * TUSCANY-1823 + * TUSCANY-1839 + * TUSCANY-1814 + * TUSCANY-1818 + * TUSCANY-1834 + * TUSCANY-1637 + * TUSCANY-1826 + * TUSCANY-1823 + * TUSCANY-1819 + * TUSCANY-1821 + * TUSCANY-1822 + * TUSCANY-1806 + * TUSCANY-1808 + * TUSCANY-1756 + * TUSCANY-1757 + +- Fix build issues with Maven 2.0.7 and JDK 6 + +- Reduce memory consumption for WSDLs that import large XSDs + +- Add more logging statements for better servicibility + +- Add an extension point to allow extensions to plug-in extension schemas. + +- Add a demo application to showcase XML integration story + +- Improve in databinding framework + * Add support for JSON Databindings and other refactoring + * Set databinding for introspected data type and enhance the checking of wrapper style + * Improve the tree-based XMLStreamReader and convert Bean & DOM to use this approach + * Add a tree-iterator based XMLStreamReader base impl + * Add default element info to java interface + * Rename Interface.setDefaultDataBinding to resetDataBinding + +- Limit the method injection to setters and allow the setter annotation to override field annotation + +- Evolving support in Intent and Policy handling + * Add support for policies in implementation + * Fix the algorithm for macthing policySets defined on bindings for the wire + * Add policy intent for implementation.java + * Extend java implementation type to recognize and apply policies, adding util support for this in Policy module + * Add policy module for logging + +- Evolving development in the SCA Domain/Node + +- Update NOTICE files with missing dependencies + + +Changes With Apache Tuscany SCA 1.0 (incubating) September 2007 +=============================================================== + +- Tuscany Java SCA now implements V1.0 of the core SCA + specifications + SCA Assembly Model V1.0 + SCA Java Common Annotations and APIs V1.0 + SCA Java Component Implementation V1.0 + SCA Web Services Binding V1.0 + Including callbacks, conversations and callable references + + +- Support for ws-security configurable in the web services binding + thro Tuscany SCA policy intents and policysets using the policy framework + introduced in the last release. + + Note : This release supports specifications of policies around axis2 + config params - see helloworld-ws-service-secure sample. The policy + intents that have been tested are authentication, integrity and + confidentiality. + There is no sample or test that exercises confidentiality since there + are some unresolved licensing issue around bouncycastle libraries. + However, users who are not encumbered by the bouncycastle license + restrictions can try the 'confidentiality' intent. See FAQ - + http://incubator.apache.org/tuscany/tuscany-sca-java-faq.html + + This release does not include support for WS-Policy + attachments in Tuscany Policysets for ws-security. + + +- An XQuery component implementation type + implementation-xquery + + +- A Databinding for converting data to and from nodes for XQuery + processing + databinding-saxon + + +- OSGI support has been extended to allow Tuscany contributions + packaged as OSGI bundles hence taking advantage of OSGI's bundle + loading an dependency management capabilities + + +- A BPEL component implementation type experimental implementation +based on SCA BPEL Client and Implementation V1.0. At the moment only +supports BPEL process as services. + implementation-bpel + + +- The distributed runtime implementation has been separated out + into + *) domain + *) node + It is now wrapped by a SCADomain interface as is the standalone + runtime. + + Note: This release does not include support for WebApp host deployment + for a distributed SCA Domain + + + +- The web service binding will now generate WSDL automatically + based on the service interface if no WSDL is provided + + +- A new "store" sample and associated document show how a + simple store front application can be constructed + samples/store + +- The following features of this release are still experimental: + - BPEL implementation type, integrating with Apache ODE + - OSGI implementation type, integrating with Apache Felix + - XQuery implementation type + + + +Changes With Apache Tuscany SCA 0.99 (incubating) August 2007 +============================================================= + +The following are the significant additions to release 0.99 +over and above all of what was offered in release 0.91. + +- A version of the default sca binding that works between + components runing in separate Java virtual machines + binding-sca-axis + +- A simple node implementation and a service discovery + function for running sca applications distributed + across more than one node + distributed + distributed-impl + +- integration with OSGi runtimes is now supported with + a new implementation-osgi component type + +- PUB/SUB interactions are now supported by using new + notification binding and implementation types, and + samples demonstrating the feature. + +- The Tuscany runtime now has a policy framework supporting + the SCA policy specification + +- the endpoint URIs used by SCA bindings has been rationalized + and now follows the SCA Assembly specification + +- binding-ajax has been renamed to binding-dwr + +Changes With Apache Tuscany SCA 0.91 (incubating) July 2007 +=========================================================== + +The following are the significant additions to release 0.91 +over and above all of what was offered in release 0.90. + + +- Enhancements to support multiple contributions to the SCA Domain + +- The inclusion of a alternative simplified extensions-helper +SPI layer to faciliate rapid development of extensions + +- More Implementation Extenstions + Spring + WebResource + +- More Binding Extensions + AJAX + EJB + RSS/ATOM Feeds + +- Demos that demonstrate the use of a mix of extensions + alert-aggregator-webapp + bigbank-account + bigbank-calculator + bigbank-stockquote + + +- Samples + Samples to demostrate use of Spring, Resource, AJAX extensions + +Changes With Apache Tuscany SCA 0.90 (incubating) June 2007 +=========================================================== + +- Implementations for all of the Java Annotations and API Specification V1.0 found at + (http://www.osoa.org/display/Main/Service+Component+Architecture+Specifications) + apart from the following. + @ComponentName + Conversation + RequestContext + +- New assembly model implementation taking into account SCA 1.0 artifacts + Data duplication between assembly model and runtime removed + +- Simple single process domain support + Contribution support to scope items being deployed into the runtime + +- Improved Package/Class naming consistency across modules + +- Extensions now loaded via Java service mechanism + Refactored extensions to use new SPIs (see below) + +- Maven and Ant based sample builds in the binary distribution + +- Implementation Extensions + Java + Script supporting (Ruby, Python, Groovy, JavaScript) + +- Binding Extensions + Axis2 + RMI + JSONRPC + +-Databinding Extensions + Axiom + JAXB + SDO + +- Host environments + Embedded + Tomcat + Jetty + RMI + +- A clear set of SPIs intended to be stable over future releases + SCA assembly model + org.apache.tuscany.sca.assembly + org.apache.tuscany.sca.interfacedef + org.apache.tuscany.sca.interfacedef.java + org.apache.tuscany.sca.interfacedef.wsdl + org.apache.tuscany.sca.policy + + SCA contribution model + org.apache.tuscany.sca.contribution + + Runtime extensions + org.apache.tuscany.sca.core + org.apache.tuscany.sca.invocation + org.apache.tuscany.sca.provider + org.apache.tuscany.sca.runtime + org.apache.tuscany.sca.work + + Data binding support + org.apache.tuscany.sca.databinding + + Embedding Tuscany + org.apache.tuscany.sca.host.embedded + + Servlet container integration + org.apache.tuscany.sca.http + +- For this point release a partial set of JavaDoc is provided to + be filled out as we close on release 1.0 diff --git a/tags/java/sca/1.5.1-RC4/distribution/src/main/release/README b/tags/java/sca/1.5.1-RC4/distribution/src/main/release/README new file mode 100644 index 0000000000..056b4fac50 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/distribution/src/main/release/README @@ -0,0 +1,19 @@ +Apache Tuscany SCA 1.5.1 October 2009 README +============================================= + +Welcome to the Tuscany SCA 1.5.1 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/tags/java/sca/1.5.1-RC4/distribution/src/main/release/RELEASE_NOTES b/tags/java/sca/1.5.1-RC4/distribution/src/main/release/RELEASE_NOTES new file mode 100644 index 0000000000..1e8ee12be7 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/distribution/src/main/release/RELEASE_NOTES @@ -0,0 +1,83 @@ +Apache Tuscany SCA 1.5.1 October 2009 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 1.5.1 release includes implementations of the + main SCA specifications including: + + SCA Assembly Model V1.0 + SCA Policy Framework V1.0 + SCA Java Common Annotations and APIs V1.0 + SCA Java Component Implementation V1.0 + SCA Spring Component Implementation V1.0 + SCA BPEL Client and Implementation V1.0 + SCA Web Services Binding V1.0 + SCA EJB Session Bean Binding V1.0 + + It also includes implementations of many features not yet defined + by SCA specifications, including: + + - SCA bindings for Direct Web Remoting, RSS and ATOM Feeds, + HTTP resources, JSON-RPC, PUB/SUB Notifications, and RMI. + - SCA implementation types for OSGI, XQuery, BPEL, Widget and various + dynamic languages including Groovy, Javascript, Python and Ruby + - Databindings for Service Data Objects (SDO), JAXB, XmlBeans, + Axis2's AXIOM, JSON, SAXON, DOM, SAX and StAX + + 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 with distributed nodes across multiple JVMs + - running with embedded Jetty or Tomcat + - running as part of a standard web application + + The Wepapp samples included in this release have been tried and tested on + - Tomcat 5.5.20 and Tomcat 6.0.14 + - Jetty 6.1.3 + - Geronimo 2.0.2 Tomcat6 jee5 + - WebSphere 6.1 fix pack 9 + +See the CHANGES file for a detailed list of the features in this release. + +Support +------- + +For more information on Apache Tuscany visit the website at: + + http://tuscany.apache.org/ + +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/ws-tuscany-user/ + http://mail-archives.apache.org/mod_mbox/ws-tuscany-dev/ + + Jira: + + http://issues.apache.org/jira/browse/TUSCANY + +To join the project's mailing lists follow the instructions at: + + http://tuscany.apache.org/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/tags/java/sca/1.5.1-RC4/distribution/src/main/release/bin/INSTALL b/tags/java/sca/1.5.1-RC4/distribution/src/main/release/bin/INSTALL new file mode 100644 index 0000000000..488a7079c2 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/distribution/src/main/release/bin/INSTALL @@ -0,0 +1,26 @@ +Installing the Apache Tuscany SCA 1.5.1 October 2009 Release binary distribution +================================================================================== + +Unzip Tuscany binary distribution archive and you get the following: + +tuscany-sca-1.5.1 + 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 + CHANGES - A note of the major changes in this release + + /demos - Demo applications showcasing the use of Apache Tuscany + + /lib - The tuscany-sca-all and tuscany-sca-manifest jars and all their dependencies + + /modules - all of the individual Tuscany jars + + /samples - all the Tuscany samples, see the README in that directory + + /tutorial - The store tutorial, see the README in that directory + + + + diff --git a/tags/java/sca/1.5.1-RC4/distribution/src/main/release/bin/LICENSE b/tags/java/sca/1.5.1-RC4/distribution/src/main/release/bin/LICENSE new file mode 100644 index 0000000000..ac151f8f86 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/distribution/src/main/release/bin/LICENSE @@ -0,0 +1,2601 @@ + + 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 1.1 + + commons-discovery-0.2.jar + commons-primitives-1.0.jar + +The following components come under Apache Software License 2.0 + + abdera-client-0.4.0-incubating.jar + abdera-core-0.4.0-incubating.jar + abdera-extensions-html-0.4.0-incubating.jar + abdera-extensions-json-0.4.0-incubating.jar + abdera-extensions-main-0.4.0-incubating.jar + abdera-i18n-0.4.0-incubating.jar + abdera-parser-0.4.0-incubating.jar + abdera-server-0.4.0-incubating.jar + activeio-2.0-r118.jar + activemq-all-5.2.0.jar + addressing-1.3.mar + annogen-0.1.0.jar + aopalliance-1.0.jar + axiom-api-1.2.7.jar + axiom-dom-1.2.7.jar + axiom-impl-1.2.7.jar + axis2-adb-1.4.1.jar + axis-ant-1.4.jar + axis2-codegen-1.4.1.jar + axis2-java2wsdl-1.4.1.jar + axis2-kernel-1.4.1.jar + axis2-mtompolicy-1.4.1.jar + bsf-all-3.0-beta2.jar + cglib-nodep-2.2.jar + commons-collections-3.1.jar + commons-codec-1.3.jar + commons-fileupload-1.2.jar + commons-httpclient-3.1.jar + commons-io-1.4.jar + commons-jexl-1.1.jar + commons-lang-2.1.jar + commons-logging-1.1.1.jar + derby-10.3.1.4.jar + gdata-client-1.0.jar + gdata-client-meta-1.0.jar + gdata-core-1.0.jar + gdata-media-1.0.jar + geronimo-common-1.2-beta.jar + geronimo-connector-1.2-beta.jar + geronimo-core-1.2-beta.jar + geronimo-deployment-1.2-beta.jar + geronimo-ejb_3.0_spec-1.0.jar + geronimo-interceptor-1.2-beta.jar + geronimo-j2ee-1.2-beta.jar + geronimo-j2ee-connector_1.5_spec-1.1.jar + geronimo-j2ee-jacc_1.0_spec-1.1.jar + geronimo-j2ee-management_1.0_spec-1.1.jar + geronimo-javamail_1.4_spec-1.2.jar + geronimo-jms_1.1_spec-1.1.jar + geronimo-jpa_3.0_spec-1.0.jar + geronimo-jta_1.0.1B_spec-1.0.jar + geronimo-kernel-1.2-beta.jar + geronimo-management-1.2-beta.jar + geronimo-naming-1.2-beta.jar + geronimo-security-1.2-beta.jar + geronimo-spec-j2ee-connector-1.5-rc4.jar + geronimo-spec-jta-1.0.1B-rc4.jar + geronimo-stax-api_1.0_spec-1.0.1.jar + geronimo-system-1.2-beta.jar + geronimo-transaction-1.2-beta.jar + geronimo-util-1.2-beta.jar + httpcore-4.0-beta1.jar + httpcore-nio-4.0-beta1.jar + jettison-1.0.1.jar + jetty-6.1.7.jar + jetty-util-6.1.7.jar + json-rpc-1.0.jar + log4j-1.2.13.jar + mex-1.41-impl.jar + neethi-2.0.4.jar + ode-bpel-api-1.1.1.jar + ode-bpel-compiler-1.1.1.jar + ode-bpel-dao-1.1.1.jar + ode-bpel-epr-1.1.1.jar + ode-bpel-obj-1.1.1.jar + ode-bpel-runtime-1.1.1.jar + ode-bpel-schemas-1.1.1.jar + ode-bpel-store-1.1.1.jar + ode-dao-jpa-1.1.1.jar + ode-dao-jpa-ojpa-derby-1.1.1.zip + ode-jacob-1.1.1.jar + ode-jacob-ap-1.1.1.jar + ode-scheduler-simple-1.1.1.jar + ode-utils-1.1.1.jar + openjpa-all-0.9.7-incubating.jar + openjpa-persistence-0.9.7-incubating.jar + opensaml-1.1.jar + org.apache.felix.bundlerepository-1.0.3.jar + org.apache.felix.framework-1.0.4.jar + org.apache.felix.main-1.0.4.jar + org.apache.felix.shell-1.0.1.jar + org.apache.felix.shell.tui-1.0.1.jar + rampart-core-1.4.jar + rampart-policy-1.4.jar + rampart-trust-1.4.jar + regexp-1.3.jar + spring-beans-2.5.5.jar + spring-context-2.5.5.jar + spring-core-2.5.5.jar + tranql-connector-1.1.jar + tuscany-sca-all-1.5.1.jar + tuscany-sca-manifest.jar + tuscany-sdo-api-r2.1-1.1.1.jar + tuscany-sdo-impl-1.1.1.jar + tuscany-sdo-lib-1.1.1.jar + tuscany-sdo-tools-1.1.1.jar + woden-api-1.0M8.jar + woden-impl-dom-1.0M8.jar + wss4j-1.5.4.jar + wstx-asl-3.2.4.jar + xalan-2.7.0.jar + xbean-naming-2.7.jar + xercesImpl-2.8.1.jar + xml-apis-1.3.03.jar + xmlbeans-2.3.0.jar + xmlParserAPIs-2.6.0.jar + xml-resolver-1.1.jar + xmlsec-1.4.2.jar + XmlSchema-1.4.2.jar + +=============================================================================== +axion-1.0-M3-dev.jar + +Copyright (c) 2002-2003 Axion Development Team. 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. The names "Tigris", "Axion", nor the names of its contributors may + not be used to endorse or promote products derived from this + software without specific prior written permission. + +4. Products derived from this software may not be called "Axion", nor + may "Tigris" or "Axion" appear in their names 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 "Axion Development Team" is defined to be: + + * Chuck Burdick + * James Burke + * Morgan Delagrange + * Geir Magnusson Jr. + * Martin Poeschl + * Steve Polyak + * Daniel Rall + * Ahimanikya Satapathy + * Doug Sale + * James Strachan + * Rodney Waldhoff + * Jason van Zyl + +License changes are to be determined by a simple majority vote of the +Axion Development Team. + +=============================================================================== +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 EMF jars; + codegen-2.2.3.jar + codegen-ecore-2.2.3.jar + common-2.2.3.jar + ecore-2.2.3.jar + ecore-change-2.2.3.jar + ecore-xmi-2.2.3.jar + xsd-2.2.3.jar +And AspectJ jars: + aspectjlib-1.6.2.jar + aspectjrt-1.6.2.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. + +=============================================================================== +For Saxon including + saxon-8.7.jar + saxon-dom-8.7.jar + saxon-xpath-8.7.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): ______________________________________.'' + +=============================================================================== + +For the Rhino JavaScript engine js-1.6R7.jar: + + 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.] + + +=============================================================================== +Groovy (groovy-all-minimal-1.5.4.jar): + +/* + $Id: LICENSE.txt 156 2003-09-26 17:36:37Z jstrachan $ + + Copyright 2003 (C) James Strachan and Bob Mcwhirter. 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 "groovy" must not be used to endorse or promote + products derived from this Software without prior written + permission of The Codehaus. For written permission, + please contact info@codehaus.org. + + 4. Products derived from this Software may not be called "groovy" + nor may "groovy" appear in their names without prior written + permission of The Codehaus. "groovy" is a registered + trademark of The Codehaus. + + 5. Due credit should be given to The Codehaus - + http://groovy.codehaus.org/ + + THIS SOFTWARE IS PROVIDED BY THE CODEHAUS 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 + THE CODEHAUS 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. + + */ + +=============================================================================== + +Jython (jython-2.2.jar): + +A. HISTORY OF THE SOFTWARE +======================= + +JPython was created in late 1997 by Jim Hugunin. Jim was also the +primary developer while he was at CNRI. In February 1999 Barry Warsaw +took over as primary developer and released JPython version 1.1. + +In October 2000 Barry helped move the software to SourceForge +where it was renamed to Jython. Jython 2.0 and on are licensed under +the Jython specific license below. + +The standard library is covered by the Python Software Foundation +license. See the LICENSE_CPython.txt file for details. + +The zxJDBC package was written by Brian Zimmer and originally licensed +under the GNU Public License. The package is now covered by the Jython +Software License. + +The command line interpreter is covered by the Apache Software +License. See the LICENSE_Apache.txt file for details. + +B. TERMS AND CONDITIONS FOR ACCESSING OR OTHERWISE USING JYTHON +================================ + +Copyright (c) 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007 Jython Developers +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 Jython Developers 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. + + + + +JPython 1.1.x Software License. +========================= + +______________________________________________________________________ + +IMPORTANT: PLEASE READ THE FOLLOWING AGREEMENT CAREFULLY. + +BY CLICKING ON THE "ACCEPT" BUTTON WHERE INDICATED, OR BY INSTALLING, +COPYING OR OTHERWISE USING THE SOFTWARE, YOU ARE DEEMED TO HAVE AGREED TO +THE TERMS AND CONDITIONS OF THIS AGREEMENT. + +______________________________________________________________________ + +JPython version 1.1.x + + 1. This LICENSE AGREEMENT is between the Corporation for National Research + Initiatives, having an office at 1895 Preston White Drive, Reston, VA + 20191 ("CNRI"), and the Individual or Organization ("Licensee") + accessing and using JPython version 1.1.x in source or binary form and + its associated documentation as provided herein ("Software"). + + 2. Subject to the terms and conditions of this License Agreement, CNRI + hereby grants Licensee a non-exclusive, non-transferable, royalty-free, + world-wide license to reproduce, analyze, test, perform and/or display + publicly, prepare derivative works, distribute, and otherwise use the + Software alone or in any derivative version, provided, however, that + CNRI's License Agreement and CNRI's notice of copyright, i.e., + "Copyright ©1996-1999 Corporation for National Research Initiatives; + All Rights Reserved" are both retained in the Software, alone or in any + derivative version prepared by Licensee. + + Alternatively, in lieu of CNRI's License Agreement, Licensee may + substitute the following text (omitting the quotes), provided, however, + that such text is displayed prominently in the Software alone or in any + derivative version prepared by Licensee: "JPython (Version 1.1.x) is + made available subject to the terms and conditions in CNRI's License + Agreement. This Agreement may be located on the Internet using the + following unique, persistent identifier (known as a handle): + 1895.22/1006. The License may also be obtained from a proxy server on + the Web using the following URL: http://hdl.handle.net/1895.22/1006." + + 3. In the event Licensee prepares a derivative work that is based on or + incorporates the Software or any part thereof, and wants to make the + derivative work available to the public as provided herein, then + Licensee hereby agrees to indicate in any such work, in a prominently + visible way, the nature of the modifications made to CNRI's Software. + + 4. Licensee may not use CNRI trademarks or trade name, including JPython + or CNRI, in a trademark sense to endorse or promote products or + services of Licensee, or any third party. Licensee may use the mark + JPython in connection with Licensee's derivative versions that are + based on or incorporate the Software, but only in the form + "JPython-based ___________________," or equivalent. + + 5. CNRI is making the Software available to Licensee on an "AS IS" basis. + CNRI MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED. BY WAY + OF EXAMPLE, BUT NOT LIMITATION, CNRI MAKES NO AND DISCLAIMS ANY + REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR FITNESS FOR ANY + PARTICULAR PURPOSE OR THAT THE USE OF THE SOFTWARE WILL NOT INFRINGE + ANY THIRD PARTY RIGHTS. + + 6. CNRI SHALL NOT BE LIABLE TO LICENSEE OR OTHER USERS OF THE SOFTWARE FOR + ANY INCIDENTAL, SPECIAL OR CONSEQUENTIAL DAMAGES OR LOSS AS A RESULT OF + USING, MODIFYING OR DISTRIBUTING THE SOFTWARE, OR ANY DERIVATIVE + THEREOF, EVEN IF ADVISED OF THE POSSIBILITY THEREOF. SOME STATES DO NOT + ALLOW THE LIMITATION OR EXCLUSION OF LIABILITY SO THE ABOVE DISCLAIMER + MAY NOT APPLY TO LICENSEE. + + 7. This License Agreement may be terminated by CNRI (i) immediately upon + written notice from CNRI of any material breach by the Licensee, if the + nature of the breach is such that it cannot be promptly remedied; or + (ii) sixty (60) days following notice from CNRI to Licensee of a + material remediable breach, if Licensee has not remedied such breach + within that sixty-day period. + + 8. This License Agreement shall be governed by and interpreted in all + respects by the law of the State of Virginia, excluding conflict of law + provisions. Nothing in this Agreement shall be deemed to create any + relationship of agency, partnership, or joint venture between CNRI and + Licensee. + + 9. By clicking on the "ACCEPT" button where indicated, or by installing, + copying or otherwise using the Software, Licensee agrees to be bound by + the terms and conditions of this License Agreement. + + +=============================================================================== + +The jars; +activation-1.1.jar, +jaxb-api-2.1.jar, +jaxb-impl-2.1.7.jar, +jaxb-xjc-2.1.7.jar, +jsr181-api-1.0-MR1.jar, +jsr250-api-1.0.jar, +jaxws-api-2.1.jar, +servlet-api-2.5.jar, +stax-api-1.0-2.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. + +=============================================================================== + +JRuby (jruby-complete-1.1.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. + +=============================================================================== + +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." + +=============================================================================== +rome-0.9.jar + +Copyright 2004 Sun Microsystems, Inc. + +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. + +=============================================================================== +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 . + +======================================================================== + +dwr-2.0.3.jar : + +/* +* Copyright 2005 Joe Walker +* +* 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. +*/ + +========================================================================== + +dojotoolkit V1.3.0: + +The "New" BSD License: +********************** + +Copyright (c) 2005, The Dojo Foundation +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 Dojo Foundation 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 module tuscany-implementation-script-1.5.1.jar temporarily includes +one file under the below BSD license with the following copyright: + + Copyright (c) 2006, Sun Microsystems, Inc. + 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. + +================================================================================ + +The serp-1.12.0.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. + +================================================================================ +The javacc-3.2.jar, and howl-1.0.1-1.jar are 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 tuscany-assembly-xsd 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 + +================================================================================ +License for the Service Data Objects JavaDoc and Interface Definition files. (tuscany-sdo-api-r2.1-1.1.1.jar) + +These files being ... +commonj/sdo/ChangeSummary$Setting.class +commonj/sdo/ChangeSummary.class +commonj/sdo/DataGraph.class +commonj/sdo/DataObject.class +commonj/sdo/helper/CopyHelper.class +commonj/sdo/helper/DataFactory.class +commonj/sdo/helper/DataHelper.class +commonj/sdo/helper/EqualityHelper.class +commonj/sdo/helper/HelperContext.class +commonj/sdo/helper/TypeHelper.class +commonj/sdo/helper/XMLDocument.class +commonj/sdo/helper/XMLHelper.class +commonj/sdo/helper/XSDHelper.class +commonj/sdo/impl/ExternalizableDelegator$Resolvable.class +commonj/sdo/impl/ExternalizableDelegator.class +commonj/sdo/Property.class +commonj/sdo/Sequence.class +commonj/sdo/Type.class +xml/datagraph.xsd +xml/sdoJava.xml +xml/sdoJava.xsd +xml/sdoModel.xml +xml/sdoModel.xsd +xml/sdoXML.xml +xml/sdoXML.xsd + + +License for the Service Data Objects JavaDoc and Interface Definition files. + +The Service Data Objects Specification is 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 and distribute the Service Data Objects Specification and/or portions thereof, without +modification, in any medium without fee or royalty is hereby granted, provided that you include the +following on ALL copies of the Service Data Objects Specification, or portions thereof, that you make: + +1. A link or URL to the Service Data Objects Specification 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 Service Data Objects Specification. + +BEA, IBM, Oracle, Primeton Technologies, Rogue Wave Software, SAP, Software AG, Sun Microsystems, Xcalia, +Zend Technologies (collectively, the “Authors”) agree to grant you a royalty-free license, under reasonable, +non-discriminatory terms and conditions to patents that they deem necessary to implement the Service Data +Objects Specification. + +THE Service Data Objects SPECIFICATION IS PROVIDED "AS IS," AND THE AUTHORS MAKE NO REPRESENTATIONS OR +WARRANTIES, EXPRESS OR IMPLIED, REGARDING THIS SPECIFICATION AND THE IMPLEMENTATION OF ITS 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 SERVICE DATA OBJECTS +SPECIFICATION. + +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. +================================================================================ + +The asm-all-3.1.jar: + +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 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 tuscany-host-webapp and tuscany-sca-api jars include files under the following license: + +Permission to copy, display and distribute the Service Component Architecture Specification and/or +portions thereof, without modification, in any medium without fee or royalty is hereby granted, provided +that you include the following on ALL copies of the Service Component Architecture Specification, or +portions thereof, that you make: + +1. A link or URL to the Service Component Architecture Specification at this location: +· http://www.osoa.org/display/Main/Service+Component+Architecture+Specifications + +2. The full text of the copyright notice as shown in the Service Component Architecture Specification. + +BEA, Cape Clear, IBM, Interface21, IONA, Oracle, Primeton, Progress Software, Red Hat, Rogue Wave, +SAP, Siemens, Software AG., Sun, Sybase, TIBCO (collectively, the "Authors") agree to grant you a +royalty-free license, under reasonable, non-discriminatory terms and conditions to patents that they deem +necessary to implement the Service Component Architecture Specification. +THE Service Component Architecture SPECIFICATION IS PROVIDED "AS IS," AND THE +AUTHORS MAKE NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED, +REGARDING THIS SPECIFICATION AND THE IMPLEMENTATION OF ITS 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 Service Components Architecture SPECIFICATION. +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, + +================================================================================ + +The tuscany-assembly-xsd jar includes files under the following license: + +W3C® 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. + +========================================================================================== + +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. + +========================================================================================== + diff --git a/tags/java/sca/1.5.1-RC4/distribution/src/main/release/bin/NOTICE b/tags/java/sca/1.5.1-RC4/distribution/src/main/release/bin/NOTICE new file mode 100644 index 0000000000..eb42e047f0 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/distribution/src/main/release/bin/NOTICE @@ -0,0 +1,136 @@ +Apache Tuscany +Copyright (c) 2005 - 2009 The Apache Software Foundation + +This product includes software developed at +The Apache Software Foundation (http://www.apache.org/). + +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 ode-bpel-api-1.1 developed at +The Apache Software Foundation (http://ode.apache.org) + - Copyright 1999-2006 Intalio - This product includes software developed by Intalio (http://www.intalio.com) + - Copyright 2006 Sybase - This product includes software developed by Sybase.(http://www.sybase.com) + +"This product includes software developed by the Spring Framework + Project (http://www.springframework.org)." + +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 the Groovy Script Engine (http://groovy.codehaus.org/), +Copyright 2003 (C) James Strachan and Bob Mcwhirter. All Rights Reserved. + +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 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 JSON-RPC-Java (http://oss.metaparadigm.com/jsonrpc/) + +This product includes/uses JSON-RPC JavaScript client (jsonrpc.js) + Copyright (c) 2003-2004 Jan-Klaas Kollhof + Copyright (c) 2005 Michael Clark, Metaparadigm Pte Ltd + +This product includes software from the GlassFish project (https://glassfish.dev.java.net/) + Copyright (c) 2006, Sun Microsystems, Inc. + +This product includes software from the Rome project (https://rome.dev.java.net/) + Copyright (c) 2006, Sun Microsystems, Inc. + +This product includes/uses the Eclipse Modeling Framework project (http://www.eclipse.org/emf/) + +This product includes/uses the Mozilla Rhino project (http://www.mozilla.org/rhino/) + +This product includes/uses the Sourceforge wsdl4j project (http://sourceforge.net/projects/wsdl4j/)i + +This product includes/uses the Codehaus JRuby project (http://jruby.codehaus.org/) + +This product includes/uses JDOM (http://www.jdom.org/) + Copyright (C) 2000-2004 Jason Hunter & Brett McLaughlin. All rights reserved. + +This product includes/uses DWR (http://getahead.org/dwr) + Copyright 2005 Joe Walker. All rights reserved. + +This product includes/uses dojotoolkit (http://dojotoolkit.org/) + Copyright (c) 2005, The Dojo Foundation. All rights reserved. + +This product includes/uses Howl (http://howl.objectweb.org/) + Copyright (c) 2004, Bull S.A. + +This product includes/uses axion (http://axion.tigris.org/) + Copyright (c) 2002-2003 Axion Development Team. + +This product includes/uses javacc (https://javacc.dev.java.net/) + Copyright (c) 2003 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 software under the BSD license +with the following copyright: + Copyright (c) 2006, Sun Microsystems, Inc. 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/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 also includes software under the Service Component Architecture specification license +(see the LICENSE file contained in this distribution) with the following copyright + +(C) Copyright BEA Systems, Inc., Cape Clear Software, International Business Machines Corp, Interface21, IONA Technologies, +37 Oracle, Primeton Technologies, Progress Software, Red Hat, Rogue Wave Software, SAP AG., Siemens AG., Software AG., Sybase +38 Inc., TIBCO Software Inc., 2005, 2007. All rights reserved. + +This product also includes software under the Service Component Architecture specification license +(see the LICENSE file contained in this distribution) with the following copyright + +(C) Copyright BEA Systems, Inc., Cape Clear Software, International Business Machines Corp, Interface21, IONA +Technologies, Oracle, Primeton Technologies, Progress Software, Red Hat, Rogue Wave Software, SAP AG., Siemens +AG., Software AG., Sun Microsystems, Inc., Sybase Inc., TIBCO Software Inc., 2005, 2008. All rights reserved. + +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 includes/uses htmlparser (http://about.validator.nu/htmlparser/) + * 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. + * Copyright (c) 2001-2003 Thai Open Source Software Center Ltd + * All rights reserved. + * Copyright (c) 2000, 2006, 2008 Ian Hickson and various contributors diff --git a/tags/java/sca/1.5.1-RC4/distribution/src/main/release/src/BUILDING b/tags/java/sca/1.5.1-RC4/distribution/src/main/release/src/BUILDING new file mode 100644 index 0000000000..d8c4161334 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/distribution/src/main/release/src/BUILDING @@ -0,0 +1,55 @@ +Building the Apache Tuscany SCA 1.5.1 October 2009 Release source distribution +================================================================================ + +Initial Setup +------------- + +1) Install J2SE 5.0 SDK, which can be downloaded from + http://java.sun.com/j2se/1.5.0/download.jsp. Use version of 1.5.0_06 JDK or higher. + +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, 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'. + + +Building the distributions +-------------------------- + +1) Change to the distribution folder +2) Run + + $> mvn + + This will build the binary and source distribution with .zip and .gz + formats in the distribution/target directory. + diff --git a/tags/java/sca/1.5.1-RC4/distribution/src/main/release/src/LICENSE b/tags/java/sca/1.5.1-RC4/distribution/src/main/release/src/LICENSE new file mode 100644 index 0000000000..3200103252 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/distribution/src/main/release/src/LICENSE @@ -0,0 +1,434 @@ + + 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 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 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 module + +tuscany-assembly-xsd + +Includes file wsdli.xsd + +From http://www.w3.org/2004/08/wsdl-instance + +The ipo.xsd and wsdli.xsd files are 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. + +================================================================================================================= + +The modules host-webapp and sca-api include files under the following license: + +Permission to copy, display and distribute the Service Component Architecture Specification and/or +portions thereof, without modification, in any medium without fee or royalty is hereby granted, provided +that you include the following on ALL copies of the Service Component Architecture Specification, or +portions thereof, that you make: + +1. A link or URL to the Service Component Architecture Specification at this location: +· http://www.osoa.org/display/Main/Service+Component+Architecture+Specifications + +2. The full text of the copyright notice as shown in the Service Component Architecture Specification. + +BEA, Cape Clear, IBM, Interface21, IONA, Oracle, Primeton, Progress Software, Red Hat, Rogue Wave, +SAP, Siemens, Software AG., Sun, Sybase, TIBCO (collectively, the "Authors") agree to grant you a +royalty-free license, under reasonable, non-discriminatory terms and conditions to patents that they deem +necessary to implement the Service Component Architecture Specification. +THE Service Component Architecture SPECIFICATION IS PROVIDED "AS IS," AND THE +AUTHORS MAKE NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED, +REGARDING THIS SPECIFICATION AND THE IMPLEMENTATION OF ITS 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 Service Components Architecture SPECIFICATION. +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, diff --git a/tags/java/sca/1.5.1-RC4/distribution/src/main/release/src/NOTICE b/tags/java/sca/1.5.1-RC4/distribution/src/main/release/src/NOTICE new file mode 100644 index 0000000000..2faebfe6c2 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/distribution/src/main/release/src/NOTICE @@ -0,0 +1,52 @@ +Apache Tuscany +Copyright (c) 2005 - 2009 The Apache Software Foundation + +This product includes software developed at +The Apache Software Foundation (http://www.apache.org/). + +This product includes/uses JSON-RPC JavaScript client (jsonrpc.js) + Copyright (c) 2003-2004 Jan-Klaas Kollhof + Copyright (c) 2005 Michael Clark, Metaparadigm Pte Ltd + +This product also includes software under the BSD license +(see the LICENSE file contained in this distribution), with +the following copyright: + Copyright (c) 2006, Sun Microsystems, Inc. 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 W3C(c) Software License +with the following copyright: + +Copyright (c) 2008 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(c) 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 Service Component Architecture specification license +(see the LICENSE file contained in this distribution) with the following copyright + +(C) Copyright BEA Systems, Inc., Cape Clear Software, International Business Machines Corp, Interface21, IONA Technologies, +37 Oracle, Primeton Technologies, Progress Software, Red Hat, Rogue Wave Software, SAP AG., Siemens AG., Software AG., Sybase +38 Inc., TIBCO Software Inc., 2005, 2007. All rights reserved. + +This product also includes software under the Service Component Architecture specification license +(see the LICENSE file contained in this distribution) with the following copyright + +(C) Copyright BEA Systems, Inc., Cape Clear Software, International Business Machines Corp, Interface21, IONA +Technologies, Oracle, Primeton Technologies, Progress Software, Red Hat, Rogue Wave Software, SAP AG., Siemens +AG., Software AG., Sun Microsystems, Inc., Sybase Inc., TIBCO Software Inc., 2005, 2008. All rights reserved. + diff --git a/tags/java/sca/1.5.1-RC4/distribution/src/main/xsl/srcbuild_paths.xsl b/tags/java/sca/1.5.1-RC4/distribution/src/main/xsl/srcbuild_paths.xsl new file mode 100644 index 0000000000..ab7a40b94a --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/distribution/src/main/xsl/srcbuild_paths.xsl @@ -0,0 +1,56 @@ + + + + + + + + + + + + + + + + + + ${user.home}/.m2/maven.properties + + + ${user.home}/.m2/repository + + + + + + + ${user.home}/.m2/repository + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/atom/pom.xml b/tags/java/sca/1.5.1-RC4/itest/atom/pom.xml new file mode 100644 index 0000000000..0b65205d77 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/atom/pom.xml @@ -0,0 +1,193 @@ + + + + 4.0.0 + + org.apache.tuscany.sca + tuscany-itest + 1.5.1 + ../pom.xml + + itest-atom + Apache Tuscany SCA iTest Atom Binding + + + + apache.incubator + http://people.apache.org/repo/m2-incubating-repository + + + + + + org.apache.tuscany.sca + tuscany-host-embedded + 1.5.1 + + + + org.apache.tuscany.sca + tuscany-interface-wsdl-xml + 1.5.1 + runtime + + + + org.apache.tuscany.sca + tuscany-implementation-java-runtime + 1.5.1 + runtime + + + + org.apache.tuscany.sca + tuscany-binding-atom-abdera + 1.5.1 + runtime + + + + + org.apache.tuscany.sca + tuscany-host-tomcat + 1.5.1 + runtime + + + + org.apache.tuscany.sdo + tuscany-sdo-impl + 1.1.1 + + + + junit + junit + 4.5 + test + + + + + ${artifactId} + + + + 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-sources + + wsimport + + + test.abdera + ${basedir}/src/test/resources/news + + news.wsdl + + ${project.build.directory}/jaxws-source + false + true + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/atom/src/main/java/test/abdera/impl/NewsServiceImpl.java b/tags/java/sca/1.5.1-RC4/itest/atom/src/main/java/test/abdera/impl/NewsServiceImpl.java new file mode 100644 index 0000000000..09789b4bb5 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/atom/src/main/java/test/abdera/impl/NewsServiceImpl.java @@ -0,0 +1,63 @@ +package test.abdera.impl; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +import org.osoa.sca.annotations.Init; + +import test.abdera.Entry; +import test.abdera.Item; +import test.abdera.NewsService; +import test.abdera.NotFoundException_Exception; + +public class NewsServiceImpl implements NewsService { + private static Map collection = new HashMap(); + + @Init + public void init() { + Item item = new Item(); + item.setName("Item Name 01"); + item.setTitle("Item title 01"); + + Entry entry = new Entry(); + entry.setKey("1"); + entry.setData(item); + + collection.put((String)entry.getKey(), entry); + } + + public List getAll() { + List entries = new ArrayList(); + for(Entry entry : collection.values()) { + entries.add(entry); + } + return entries; + } + + public Item get(String arg0) throws NotFoundException_Exception { + return (Item) collection.get(arg0).getData(); + } + + public String post(String arg0, Item arg1) { + // TODO Auto-generated method stub + return null; + } + + public void put(String arg0, Item arg1) throws NotFoundException_Exception { + // TODO Auto-generated method stub + + } + + public void delete(String arg0) throws NotFoundException_Exception { + // TODO Auto-generated method stub + + } + + public List query(String arg0) { + // TODO Auto-generated method stub + return null; + } + +} diff --git a/tags/java/sca/1.5.1-RC4/itest/atom/src/test/java/test/abdera/NewsServiceTestCase.java b/tags/java/sca/1.5.1-RC4/itest/atom/src/test/java/test/abdera/NewsServiceTestCase.java new file mode 100644 index 0000000000..b9f2b4e2fc --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/atom/src/test/java/test/abdera/NewsServiceTestCase.java @@ -0,0 +1,61 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES 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.abdera; + +import java.net.Socket; + +import org.apache.tuscany.sca.host.embedded.SCADomain; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.BeforeClass; +import org.junit.Test; + +public class NewsServiceTestCase { + private static SCADomain domain; + private static NewsService newsService; + + @BeforeClass + public static void init() throws Exception { + domain = SCADomain.newInstance("news/news.composite"); + Assert.assertNotNull(domain); + newsService = domain.getService(NewsService.class, "NewsServiceComponent"); + Assert.assertNotNull(newsService); + } + + @AfterClass + public static void destroy() throws Exception { + if(domain != null) { + domain.close(); + } + } + + @Test + public void testPing() throws Exception { + new Socket("127.0.0.1", 8085); + //System.in.read(); + } + + @Test + public void testNewsServicesGet() throws Exception { + Item item = newsService.get("1"); + + Assert.assertNotNull(item); + System.out.println(">>> Entry - " + item.getTitle()); + } +} diff --git a/tags/java/sca/1.5.1-RC4/itest/atom/src/test/resources/news/news.composite b/tags/java/sca/1.5.1-RC4/itest/atom/src/test/resources/news/news.composite new file mode 100644 index 0000000000..f3a3b165cc --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/atom/src/test/resources/news/news.composite @@ -0,0 +1,34 @@ + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/atom/src/test/resources/news/news.wsdl b/tags/java/sca/1.5.1-RC4/itest/atom/src/test/resources/news/news.wsdl new file mode 100644 index 0000000000..62d46e66c9 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/atom/src/test/resources/news/news.wsdl @@ -0,0 +1,167 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/tags/java/sca/1.5.1-RC4/itest/atom/src/test/resources/news/news.xsd b/tags/java/sca/1.5.1-RC4/itest/atom/src/test/resources/news/news.xsd new file mode 100644 index 0000000000..0a59f9311e --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/atom/src/test/resources/news/news.xsd @@ -0,0 +1,137 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/binding-sca-jms/client/pom.xml b/tags/java/sca/1.5.1-RC4/itest/binding-sca-jms/client/pom.xml new file mode 100644 index 0000000000..41aca24eb0 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/binding-sca-jms/client/pom.xml @@ -0,0 +1,63 @@ + + + + 4.0.0 + + org.apache.tuscany.sca + itest-binidng-sca-jms + 1.5.1 + ../../pom.xml + + itest-binding-sca-jms-client + + + + org.apache.tuscany.sca + tuscany-node-impl + 1.5.1 + + + + org.apache.tuscany.sca + tuscany-implementation-java-runtime + 1.5.1 + runtime + + + + org.apache.tuscany.sca + tuscany-binding-sca-jms + 1.5.1 + runtime + + + + junit + junit + 4.2 + test + + + + + ${artifactId} + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/binding-sca-jms/client/src/main/java/itest/MyClientImpl.java b/tags/java/sca/1.5.1-RC4/itest/binding-sca-jms/client/src/main/java/itest/MyClientImpl.java new file mode 100644 index 0000000000..d1b4ecbd15 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/binding-sca-jms/client/src/main/java/itest/MyClientImpl.java @@ -0,0 +1,32 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES 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.osoa.sca.annotations.Reference; + +public class MyClientImpl implements MyService { + + @Reference public MyService delegate; + + public String sayHello(String s) { + return "Hi " + delegate.sayHello(s); + } + +} diff --git a/tags/java/sca/1.5.1-RC4/itest/binding-sca-jms/client/src/main/java/itest/MyService.java b/tags/java/sca/1.5.1-RC4/itest/binding-sca-jms/client/src/main/java/itest/MyService.java new file mode 100644 index 0000000000..e5123f087c --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/binding-sca-jms/client/src/main/java/itest/MyService.java @@ -0,0 +1,28 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES 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.osoa.sca.annotations.Remotable; + +@Remotable +public interface MyService { + + String sayHello(String s); +} diff --git a/tags/java/sca/1.5.1-RC4/itest/binding-sca-jms/client/src/main/resources/META-INF/sca-contribution.xml b/tags/java/sca/1.5.1-RC4/itest/binding-sca-jms/client/src/main/resources/META-INF/sca-contribution.xml new file mode 100644 index 0000000000..8c311553c3 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/binding-sca-jms/client/src/main/resources/META-INF/sca-contribution.xml @@ -0,0 +1,24 @@ + + + + + \ No newline at end of file diff --git a/tags/java/sca/1.5.1-RC4/itest/binding-sca-jms/client/src/main/resources/MyClient.composite b/tags/java/sca/1.5.1-RC4/itest/binding-sca-jms/client/src/main/resources/MyClient.composite new file mode 100644 index 0000000000..81aa3ed98d --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/binding-sca-jms/client/src/main/resources/MyClient.composite @@ -0,0 +1,29 @@ + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/binding-sca-jms/client/src/test/java/itest/MyClientTestCase.java b/tags/java/sca/1.5.1-RC4/itest/binding-sca-jms/client/src/test/java/itest/MyClientTestCase.java new file mode 100644 index 0000000000..d28d4a51b5 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/binding-sca-jms/client/src/test/java/itest/MyClientTestCase.java @@ -0,0 +1,57 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES 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 junit.framework.Assert; + +import org.apache.tuscany.sca.node.SCAClient; +import org.apache.tuscany.sca.node.SCAContribution; +import org.apache.tuscany.sca.node.SCANode; +import org.apache.tuscany.sca.node.SCANodeFactory; +import org.junit.Test; + +/** + * Runs a distributed domain in a single VM by using and in memory + * implementation of the distributed domain + */ +public class MyClientTestCase { + + @Test + public void testCalculator() throws Exception { + + SCANode serviceNode = SCANodeFactory.newInstance().createSCANode("MyService.composite", new SCAContribution("bla2", "../service/target/itest-binding-sca-jms-service.jar")); + + SCANode clientNode = SCANodeFactory.newInstance().createSCANodeFromClassLoader("MyClient.composite", null); + try { + + serviceNode.start(); + clientNode.start(); + + MyService service = ((SCAClient)clientNode).getService(MyService.class, "MyClientComponent"); + + Assert.assertEquals("Hi Hello petra", service.sayHello("petra")); + + } finally { + clientNode.stop(); + serviceNode.stop(); + } + } +} diff --git a/tags/java/sca/1.5.1-RC4/itest/binding-sca-jms/pom.xml b/tags/java/sca/1.5.1-RC4/itest/binding-sca-jms/pom.xml new file mode 100644 index 0000000000..4bac4fd856 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/binding-sca-jms/pom.xml @@ -0,0 +1,36 @@ + + + + 4.0.0 + + org.apache.tuscany.sca + tuscany-itest + 1.5.1 + ../pom.xml + + itest-binidng-sca-jms + pom + Apache Tuscany SCA JMS SCA Binding Integration Tests + + + service + client + + diff --git a/tags/java/sca/1.5.1-RC4/itest/binding-sca-jms/service/pom.xml b/tags/java/sca/1.5.1-RC4/itest/binding-sca-jms/service/pom.xml new file mode 100644 index 0000000000..5c5e5b8db5 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/binding-sca-jms/service/pom.xml @@ -0,0 +1,63 @@ + + + + 4.0.0 + + org.apache.tuscany.sca + itest-binidng-sca-jms + 1.5.1 + ../../pom.xml + + itest-binding-sca-jms-service + + + + org.apache.tuscany.sca + tuscany-node-impl + 1.5.1 + + + + org.apache.tuscany.sca + tuscany-implementation-java-runtime + 1.5.1 + runtime + + + + org.apache.tuscany.sca + tuscany-binding-sca-jms + 1.5.1 + runtime + + + + junit + junit + 4.2 + test + + + + + ${artifactId} + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/binding-sca-jms/service/src/main/java/itest/MyService.java b/tags/java/sca/1.5.1-RC4/itest/binding-sca-jms/service/src/main/java/itest/MyService.java new file mode 100644 index 0000000000..e5123f087c --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/binding-sca-jms/service/src/main/java/itest/MyService.java @@ -0,0 +1,28 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES 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.osoa.sca.annotations.Remotable; + +@Remotable +public interface MyService { + + String sayHello(String s); +} diff --git a/tags/java/sca/1.5.1-RC4/itest/binding-sca-jms/service/src/main/java/itest/MyServiceImpl.java b/tags/java/sca/1.5.1-RC4/itest/binding-sca-jms/service/src/main/java/itest/MyServiceImpl.java new file mode 100644 index 0000000000..d0f8dcc393 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/binding-sca-jms/service/src/main/java/itest/MyServiceImpl.java @@ -0,0 +1,28 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES 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 class MyServiceImpl implements MyService { + + public String sayHello(String s) { + return "Hello " + s; + } + +} diff --git a/tags/java/sca/1.5.1-RC4/itest/binding-sca-jms/service/src/main/resources/META-INF/sca-contribution.xml b/tags/java/sca/1.5.1-RC4/itest/binding-sca-jms/service/src/main/resources/META-INF/sca-contribution.xml new file mode 100644 index 0000000000..8c311553c3 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/binding-sca-jms/service/src/main/resources/META-INF/sca-contribution.xml @@ -0,0 +1,24 @@ + + + + + \ No newline at end of file diff --git a/tags/java/sca/1.5.1-RC4/itest/binding-sca-jms/service/src/main/resources/MyService.composite b/tags/java/sca/1.5.1-RC4/itest/binding-sca-jms/service/src/main/resources/MyService.composite new file mode 100644 index 0000000000..03ac786809 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/binding-sca-jms/service/src/main/resources/MyService.composite @@ -0,0 +1,28 @@ + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/binding-sca-jms/service/src/test/java/itest/MyServiceTestCase.java b/tags/java/sca/1.5.1-RC4/itest/binding-sca-jms/service/src/test/java/itest/MyServiceTestCase.java new file mode 100644 index 0000000000..3ec979065d --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/binding-sca-jms/service/src/test/java/itest/MyServiceTestCase.java @@ -0,0 +1,52 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES 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 junit.framework.Assert; + +import org.apache.tuscany.sca.node.SCAClient; +import org.apache.tuscany.sca.node.SCANode; +import org.apache.tuscany.sca.node.SCANodeFactory; +import org.junit.Test; + +/** + * Runs a distributed domain in a single VM by using and in memory + * implementation of the distributed domain + */ +public class MyServiceTestCase { + + @Test + public void testCalculator() throws Exception { + + SCANode node = SCANodeFactory.newInstance().createSCANodeFromClassLoader("MyService.composite", null); + try { + + node.start(); + + MyService service = ((SCAClient)node).getService(MyService.class, "MyServiceComponent"); + + Assert.assertEquals("Hello petra", service.sayHello("petra")); + + } finally { + node.stop(); + } + } +} diff --git a/tags/java/sca/1.5.1-RC4/itest/bpel/helloworld-reference/pom.xml b/tags/java/sca/1.5.1-RC4/itest/bpel/helloworld-reference/pom.xml new file mode 100644 index 0000000000..1b41897611 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/bpel/helloworld-reference/pom.xml @@ -0,0 +1,210 @@ + + + + 4.0.0 + + org.apache.tuscany.sca + itest-bpel + 1.5.1 + ../../pom.xml + + itest-bpel-helloworld-reference + Apache Tuscany SCA iTest HelloWorld Reference BPEL + + + + apache.incubator + http://people.apache.org/repo/m2-incubating-repository + + + + + + org.apache.tuscany.sca + tuscany-host-embedded + 1.5.1 + + + + org.apache.tuscany.sca + tuscany-implementation-java-runtime + 1.5.1 + runtime + + + + org.apache.tuscany.sca + tuscany-binding-ws-axis2 + 1.5.1 + runtime + + + + org.apache.tuscany.sca + tuscany-host-tomcat + 1.5.1 + runtime + + + + org.apache.tuscany.sca + tuscany-implementation-bpel-ode + 1.5.1 + runtime + + + + org.apache.ode + ode-dao-jpa-ojpa-derby + 1.1 + zip + + + + org.apache.tuscany.sdo + tuscany-sdo-impl + 1.1.1 + + + + xerces + xercesImpl + 2.8.0 + + + + junit + junit + 4.5 + test + + + + + ${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/ + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/bpel/helloworld-reference/src/test/java/greetings/GreetingsService.java b/tags/java/sca/1.5.1-RC4/itest/bpel/helloworld-reference/src/test/java/greetings/GreetingsService.java new file mode 100644 index 0000000000..532b84bd22 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/bpel/helloworld-reference/src/test/java/greetings/GreetingsService.java @@ -0,0 +1,31 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES 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.osoa.sca.annotations.Remotable; + +/** + * This is the business interface of the HelloWorld greetings service. + */ +@Remotable +public interface GreetingsService { + + public String getGreetings(String name); +} + diff --git a/tags/java/sca/1.5.1-RC4/itest/bpel/helloworld-reference/src/test/java/greetings/GreetingsServiceImpl.java b/tags/java/sca/1.5.1-RC4/itest/bpel/helloworld-reference/src/test/java/greetings/GreetingsServiceImpl.java new file mode 100644 index 0000000000..86d7f245e8 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/bpel/helloworld-reference/src/test/java/greetings/GreetingsServiceImpl.java @@ -0,0 +1,33 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES 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.osoa.sca.annotations.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/tags/java/sca/1.5.1-RC4/itest/bpel/helloworld-reference/src/test/java/greetings/GreetingsTestCase.java b/tags/java/sca/1.5.1-RC4/itest/bpel/helloworld-reference/src/test/java/greetings/GreetingsTestCase.java new file mode 100644 index 0000000000..8dea2715bf --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/bpel/helloworld-reference/src/test/java/greetings/GreetingsTestCase.java @@ -0,0 +1,60 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES 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 java.io.IOException; +import java.net.Socket; + +import junit.framework.TestCase; + +import org.apache.tuscany.sca.host.embedded.SCADomain; + +/** + * Tests the Greetings service + * + * @version $Rev$ $Date$ + */ +public class GreetingsTestCase extends TestCase { + + private SCADomain scaDomain; + GreetingsService greetingsService = null; + + /** + * @throws java.lang.Exception + */ + @Override + protected void setUp() throws Exception { + scaDomain = SCADomain.newInstance("greetings/greetings.composite"); + greetingsService = scaDomain.getService(GreetingsService.class, "GreetingsServiceComponent"); + } + + /** + * @throws java.lang.Exception + */ + @Override + protected void tearDown() throws Exception { + scaDomain.close(); + } + + public void testInvoke() { + String response = greetingsService.getGreetings("Luciano"); + assertEquals("Hello Luciano", response); + } +} diff --git a/tags/java/sca/1.5.1-RC4/itest/bpel/helloworld-reference/src/test/java/helloworld/HelloWorldService.java b/tags/java/sca/1.5.1-RC4/itest/bpel/helloworld-reference/src/test/java/helloworld/HelloWorldService.java new file mode 100644 index 0000000000..672dbdc0b5 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/bpel/helloworld-reference/src/test/java/helloworld/HelloWorldService.java @@ -0,0 +1,29 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES 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; + +/** + * The interface for the helloworld service + */ +@Remotable +public interface HelloWorldService { + public String hello(String name); +} diff --git a/tags/java/sca/1.5.1-RC4/itest/bpel/helloworld-reference/src/test/java/helloworld/HelloWorldServiceImpl.java b/tags/java/sca/1.5.1-RC4/itest/bpel/helloworld-reference/src/test/java/helloworld/HelloWorldServiceImpl.java new file mode 100644 index 0000000000..d7ebd5cbb8 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/bpel/helloworld-reference/src/test/java/helloworld/HelloWorldServiceImpl.java @@ -0,0 +1,47 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES 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.osoa.sca.annotations.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/tags/java/sca/1.5.1-RC4/itest/bpel/helloworld-reference/src/test/java/helloworld/HelloWorldTestCase.java b/tags/java/sca/1.5.1-RC4/itest/bpel/helloworld-reference/src/test/java/helloworld/HelloWorldTestCase.java new file mode 100644 index 0000000000..bdfedee2f8 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/bpel/helloworld-reference/src/test/java/helloworld/HelloWorldTestCase.java @@ -0,0 +1,55 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES 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.TestCase; + +import org.apache.tuscany.sca.host.embedded.SCADomain; + +/** + * Tests the BPEL Helloworld Service + * + * @version $Rev$ $Date$ + */ +public class HelloWorldTestCase extends TestCase { + private SCADomain scaDomain; + + /** + * @throws java.lang.Exception + */ + @Override + protected void setUp() throws Exception { + scaDomain = SCADomain.newInstance("helloworld/helloworld.composite"); + } + + /** + * @throws java.lang.Exception + */ + @Override + protected void tearDown() throws Exception { + scaDomain.close(); + } + + public void testServiceInvocation() { + HelloWorldService bpelService = scaDomain.getService(HelloWorldService.class, "HelloWorldService"); + String response = bpelService.hello("Luciano"); + assertEquals("Hello Luciano", response); + } +} diff --git a/tags/java/sca/1.5.1-RC4/itest/bpel/helloworld-reference/src/test/resources/greetings/greetings.composite b/tags/java/sca/1.5.1-RC4/itest/bpel/helloworld-reference/src/test/resources/greetings/greetings.composite new file mode 100644 index 0000000000..dfec43e8e1 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/bpel/helloworld-reference/src/test/resources/greetings/greetings.composite @@ -0,0 +1,32 @@ + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/bpel/helloworld-reference/src/test/resources/greetings/greetings.wsdl b/tags/java/sca/1.5.1-RC4/itest/bpel/helloworld-reference/src/test/resources/greetings/greetings.wsdl new file mode 100644 index 0000000000..e768707ccd --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/bpel/helloworld-reference/src/test/resources/greetings/greetings.wsdl @@ -0,0 +1,87 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/bpel/helloworld-reference/src/test/resources/helloworld/helloworld.bpel b/tags/java/sca/1.5.1-RC4/itest/bpel/helloworld-reference/src/test/resources/helloworld/helloworld.bpel new file mode 100644 index 0000000000..5ec2cc9f2e --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/bpel/helloworld-reference/src/test/resources/helloworld/helloworld.bpel @@ -0,0 +1,84 @@ + + + + + + + + + + + + + + + + + + + + + + + + + $helloMessage.TestPart + $greetingsRequest.parameters + + + + + + + + $greetingsResponse.parameters/greetings:getGreetingsReturn + $helloResponse.TestPart + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/bpel/helloworld-reference/src/test/resources/helloworld/helloworld.composite b/tags/java/sca/1.5.1-RC4/itest/bpel/helloworld-reference/src/test/resources/helloworld/helloworld.composite new file mode 100644 index 0000000000..504e2ccc5d --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/bpel/helloworld-reference/src/test/resources/helloworld/helloworld.composite @@ -0,0 +1,36 @@ + + + + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/bpel/helloworld-reference/src/test/resources/helloworld/helloworld.wsdl b/tags/java/sca/1.5.1-RC4/itest/bpel/helloworld-reference/src/test/resources/helloworld/helloworld.wsdl new file mode 100644 index 0000000000..0f51b96b27 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/bpel/helloworld-reference/src/test/resources/helloworld/helloworld.wsdl @@ -0,0 +1,82 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/tags/java/sca/1.5.1-RC4/itest/bpel/helloworld-reference/src/test/resources/log4j.properties b/tags/java/sca/1.5.1-RC4/itest/bpel/helloworld-reference/src/test/resources/log4j.properties new file mode 100644 index 0000000000..4e13380e0b --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/bpel/helloworld-reference/src/test/resources/log4j.properties @@ -0,0 +1,36 @@ +# +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT 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/tags/java/sca/1.5.1-RC4/itest/bpel/helloworld-ws/pom.xml b/tags/java/sca/1.5.1-RC4/itest/bpel/helloworld-ws/pom.xml new file mode 100644 index 0000000000..480b90fac4 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/bpel/helloworld-ws/pom.xml @@ -0,0 +1,176 @@ + + + + 4.0.0 + + org.apache.tuscany.sca + itest-bpel + 1.5.1 + ../../pom.xml + + itest-bpel-helloworld-ws + Apache Tuscany SCA iTest HelloWorld BPEL Over Web Services + + + + apache.incubator + http://people.apache.org/repo/m2-incubating-repository + + + + + + org.apache.tuscany.sca + tuscany-host-embedded + 1.5.1 + + + + org.apache.tuscany.sca + tuscany-implementation-java-runtime + 1.5.1 + runtime + + + + org.apache.tuscany.sca + tuscany-implementation-bpel-ode + 1.5.1 + runtime + + + + org.apache.tuscany.sca + tuscany-binding-ws-axis2 + 1.5.1 + runtime + + + + org.apache.tuscany.sdo + tuscany-sdo-impl + 1.1.1 + + + + xerces + xercesImpl + 2.8.1 + + + + org.apache.tuscany.sca + tuscany-host-tomcat + 1.5.1 + runtime + + + + junit + junit + 4.5 + test + + + + + ${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.5.1 + + + + + + ${basedir}/src/test/resources/helloworld/helloworld.wsdl + + + + + generate + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/bpel/helloworld-ws/src/test/java/helloworld/HelloWorld.java b/tags/java/sca/1.5.1-RC4/itest/bpel/helloworld-ws/src/test/java/helloworld/HelloWorld.java new file mode 100644 index 0000000000..ffdbc50a22 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/bpel/helloworld-ws/src/test/java/helloworld/HelloWorld.java @@ -0,0 +1,45 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES 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.osoa.sca.annotations.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/tags/java/sca/1.5.1-RC4/itest/bpel/helloworld-ws/src/test/java/helloworld/HelloWorldTestCase.java b/tags/java/sca/1.5.1-RC4/itest/bpel/helloworld-ws/src/test/java/helloworld/HelloWorldTestCase.java new file mode 100644 index 0000000000..6971151a77 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/bpel/helloworld-ws/src/test/java/helloworld/HelloWorldTestCase.java @@ -0,0 +1,64 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES 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.TestCase; + +import org.apache.tuscany.implementation.bpel.example.helloworld.HelloPortType; +import org.apache.tuscany.sca.host.embedded.SCADomain; + +/** + * Tests the BPEL Helloworld Service + * + * @version $Rev$ $Date$ + */ +public class HelloWorldTestCase extends TestCase { + + private SCADomain scaDomain; + + /** + * @throws java.lang.Exception + */ + @Override + protected void setUp() throws Exception { + scaDomain = SCADomain.newInstance("helloworld/helloworld.composite"); + } + + /** + * @throws java.lang.Exception + */ + @Override + protected void tearDown() throws Exception { + scaDomain.close(); + } + + public void testPing() throws IOException { + new Socket("127.0.0.1", 8085); + } + + public void testServiceInvocation() throws Exception { + HelloPortType bpelService = scaDomain.getService(HelloPortType.class, "BPELHelloWorldServiceComponent"); + String response = bpelService.hello("Hello"); + assertEquals("Hello World", response); + } +} diff --git a/tags/java/sca/1.5.1-RC4/itest/bpel/helloworld-ws/src/test/resources/helloworld/helloworld.bpel b/tags/java/sca/1.5.1-RC4/itest/bpel/helloworld-ws/src/test/resources/helloworld/helloworld.bpel new file mode 100644 index 0000000000..8cf91adc2c --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/bpel/helloworld-ws/src/test/resources/helloworld/helloworld.bpel @@ -0,0 +1,66 @@ + + + + + + + + + + + + + + + + + + + + + + + + concat($tmpVar,' World') + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/bpel/helloworld-ws/src/test/resources/helloworld/helloworld.composite b/tags/java/sca/1.5.1-RC4/itest/bpel/helloworld-ws/src/test/resources/helloworld/helloworld.composite new file mode 100644 index 0000000000..f864f45613 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/bpel/helloworld-ws/src/test/resources/helloworld/helloworld.composite @@ -0,0 +1,32 @@ + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/bpel/helloworld-ws/src/test/resources/helloworld/helloworld.wsdl b/tags/java/sca/1.5.1-RC4/itest/bpel/helloworld-ws/src/test/resources/helloworld/helloworld.wsdl new file mode 100644 index 0000000000..610bda3cc4 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/bpel/helloworld-ws/src/test/resources/helloworld/helloworld.wsdl @@ -0,0 +1,82 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/tags/java/sca/1.5.1-RC4/itest/bpel/helloworld-ws/src/test/resources/log4j.properties b/tags/java/sca/1.5.1-RC4/itest/bpel/helloworld-ws/src/test/resources/log4j.properties new file mode 100644 index 0000000000..37f66e4189 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/bpel/helloworld-ws/src/test/resources/log4j.properties @@ -0,0 +1,36 @@ +# +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT 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/tags/java/sca/1.5.1-RC4/itest/bpel/helloworld/pom.xml b/tags/java/sca/1.5.1-RC4/itest/bpel/helloworld/pom.xml new file mode 100644 index 0000000000..3c080a44b5 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/bpel/helloworld/pom.xml @@ -0,0 +1,162 @@ + + + + 4.0.0 + + org.apache.tuscany.sca + itest-bpel + 1.5.1 + ../../pom.xml + + itest-bpel-helloworld + Apache Tuscany SCA iTest HelloWorld BPEL + + + + apache.incubator + http://people.apache.org/repo/m2-incubating-repository + + + + + + org.apache.tuscany.sca + tuscany-host-embedded + 1.5.1 + + + + org.apache.tuscany.sca + tuscany-implementation-java-runtime + 1.5.1 + runtime + + + + org.apache.tuscany.sca + tuscany-implementation-bpel-ode + 1.5.1 + runtime + + + + org.apache.tuscany.sdo + tuscany-sdo-impl + 1.1.1 + + + + xerces + xercesImpl + 2.8.1 + + + + junit + junit + 4.5 + test + + + + + ${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.5.1 + + + + + + ${basedir}/src/test/resources/helloworld/helloworld.wsdl + + + + + generate + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/bpel/helloworld/src/test/java/helloworld/HelloWorld.java b/tags/java/sca/1.5.1-RC4/itest/bpel/helloworld/src/test/java/helloworld/HelloWorld.java new file mode 100644 index 0000000000..ffdbc50a22 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/bpel/helloworld/src/test/java/helloworld/HelloWorld.java @@ -0,0 +1,45 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES 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.osoa.sca.annotations.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/tags/java/sca/1.5.1-RC4/itest/bpel/helloworld/src/test/java/helloworld/HelloWorldTestCase.java b/tags/java/sca/1.5.1-RC4/itest/bpel/helloworld/src/test/java/helloworld/HelloWorldTestCase.java new file mode 100644 index 0000000000..76fcd35c2d --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/bpel/helloworld/src/test/java/helloworld/HelloWorldTestCase.java @@ -0,0 +1,63 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES 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.TestCase; + +import org.apache.tuscany.implementation.bpel.example.helloworld.HelloPortType; +import org.apache.tuscany.sca.host.embedded.SCADomain; + +/** + * Tests the BPEL Helloworld Service + * + * @version $Rev$ $Date$ + */ +public class HelloWorldTestCase extends TestCase { + + private SCADomain scaDomain; + + /** + * @throws java.lang.Exception + */ + @Override + protected void setUp() throws Exception { + scaDomain = SCADomain.newInstance("helloworld/helloworld.composite"); + } + + /** + * @throws java.lang.Exception + */ + @Override + protected void tearDown() throws Exception { + scaDomain.close(); + } + + public void testServiceInvocation() throws Exception { + HelloPortType bpelService = scaDomain.getService(HelloPortType.class, "BPELHelloWorldService"); + String response = bpelService.hello("Hello"); + assertEquals("Hello World", response); + } + + public void testReferenceInvocation() throws Exception { + HelloWorld bpelService = scaDomain.getService(HelloWorld.class, "BPELHelloWorld"); + String response = bpelService.hello("Hello"); + assertEquals("Hello World", response); + } +} diff --git a/tags/java/sca/1.5.1-RC4/itest/bpel/helloworld/src/test/resources/helloworld/helloworld.bpel b/tags/java/sca/1.5.1-RC4/itest/bpel/helloworld/src/test/resources/helloworld/helloworld.bpel new file mode 100644 index 0000000000..8cf91adc2c --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/bpel/helloworld/src/test/resources/helloworld/helloworld.bpel @@ -0,0 +1,66 @@ + + + + + + + + + + + + + + + + + + + + + + + + concat($tmpVar,' World') + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/bpel/helloworld/src/test/resources/helloworld/helloworld.composite b/tags/java/sca/1.5.1-RC4/itest/bpel/helloworld/src/test/resources/helloworld/helloworld.composite new file mode 100644 index 0000000000..f6b12fb14b --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/bpel/helloworld/src/test/resources/helloworld/helloworld.composite @@ -0,0 +1,36 @@ + + + + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/bpel/helloworld/src/test/resources/helloworld/helloworld.wsdl b/tags/java/sca/1.5.1-RC4/itest/bpel/helloworld/src/test/resources/helloworld/helloworld.wsdl new file mode 100644 index 0000000000..610bda3cc4 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/bpel/helloworld/src/test/resources/helloworld/helloworld.wsdl @@ -0,0 +1,82 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/tags/java/sca/1.5.1-RC4/itest/bpel/helloworld/src/test/resources/log4j.properties b/tags/java/sca/1.5.1-RC4/itest/bpel/helloworld/src/test/resources/log4j.properties new file mode 100644 index 0000000000..37f66e4189 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/bpel/helloworld/src/test/resources/log4j.properties @@ -0,0 +1,36 @@ +# +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT 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/tags/java/sca/1.5.1-RC4/itest/bpel/pom.xml b/tags/java/sca/1.5.1-RC4/itest/bpel/pom.xml new file mode 100644 index 0000000000..65750b6860 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/bpel/pom.xml @@ -0,0 +1,37 @@ + + + + 4.0.0 + + org.apache.tuscany.sca + tuscany-itest + 1.5.1 + ../pom.xml + + itest-bpel + pom + Apache Tuscany SCA BPEL Integration Tests + + + helloworld + helloworld-ws + helloworld-reference + + diff --git a/tags/java/sca/1.5.1-RC4/itest/build-was-integration.xml b/tags/java/sca/1.5.1-RC4/itest/build-was-integration.xml new file mode 100644 index 0000000000..03de4c050f --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/build-was-integration.xml @@ -0,0 +1,68 @@ + + + + + + + + + + + + + + + + + + + + + + Installing war ${application.war} on ${application.server} using name ${application.name} and context root ${application.contextRoot} + + + + + Starting application ${application.name} on ${application.server} + + + + + + + Uninstalling ${application.name} + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/builder/pom.xml b/tags/java/sca/1.5.1-RC4/itest/builder/pom.xml new file mode 100644 index 0000000000..bdcdf844f5 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/builder/pom.xml @@ -0,0 +1,106 @@ + + + + 4.0.0 + + org.apache.tuscany.sca + tuscany-itest + 1.5.1 + ../pom.xml + + itest-builder + Apache Tuscany SCA iTest Builder + + + + org.apache.tuscany.sca + tuscany-sca-api + 1.5.1 + + + + org.apache.tuscany.sca + tuscany-implementation-java-runtime + 1.5.1 + runtime + + + + org.apache.tuscany.sca + tuscany-monitor + 1.5.1 + test + + + + org.apache.tuscany.sca + tuscany-workspace-impl + 1.5.1 + test + + + + org.apache.tuscany.sca + tuscany-binding-ws-xml + 1.5.1 + test + + + + org.apache.tuscany.sca + tuscany-binding-sca-xml + 1.5.1 + test + + + + org.apache.tuscany.sca + tuscany-assembly + 1.5.1 + test + + + + org.apache.tuscany.sca + tuscany-core-databinding + 1.5.1 + test + + + + xerces + xercesImpl + 2.8.1 + test + + + + junit + junit + 4.5 + test + + + + + + ${artifactId} + + diff --git a/tags/java/sca/1.5.1-RC4/itest/builder/src/main/java/org/apache/tuscany/sca/itest/builder/ComponentDImpl.java b/tags/java/sca/1.5.1-RC4/itest/builder/src/main/java/org/apache/tuscany/sca/itest/builder/ComponentDImpl.java new file mode 100644 index 0000000000..932ae3987a --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/builder/src/main/java/org/apache/tuscany/sca/itest/builder/ComponentDImpl.java @@ -0,0 +1,45 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.osoa.sca.annotations.Reference; +import org.osoa.sca.annotations.Service; + +/** + * Implementation class for ComponentD. + * + * @version $Rev$ $Date$ + */ +@Service(interfaces={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/tags/java/sca/1.5.1-RC4/itest/builder/src/main/java/org/apache/tuscany/sca/itest/builder/ComponentDReferenceMultiplicityImpl.java b/tags/java/sca/1.5.1-RC4/itest/builder/src/main/java/org/apache/tuscany/sca/itest/builder/ComponentDReferenceMultiplicityImpl.java new file mode 100644 index 0000000000..f9ef0a1b4f --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/builder/src/main/java/org/apache/tuscany/sca/itest/builder/ComponentDReferenceMultiplicityImpl.java @@ -0,0 +1,48 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.osoa.sca.annotations.Reference; +import org.osoa.sca.annotations.Service; + +/** + * Implementation class for ComponentD. + * + * @version $Rev: 678875 $ $Date: 2008-07-22 21:01:07 +0100 (Tue, 22 Jul 2008) $ + */ +@Service(interfaces={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/tags/java/sca/1.5.1-RC4/itest/builder/src/main/java/org/apache/tuscany/sca/itest/builder/ComponentEImpl.java b/tags/java/sca/1.5.1-RC4/itest/builder/src/main/java/org/apache/tuscany/sca/itest/builder/ComponentEImpl.java new file mode 100644 index 0000000000..c041a76b47 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/builder/src/main/java/org/apache/tuscany/sca/itest/builder/ComponentEImpl.java @@ -0,0 +1,36 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.osoa.sca.annotations.Reference; +import org.osoa.sca.annotations.Service; + +/** + * Implementation class for ComponentD. + * + * @version $Rev: 678875 $ $Date: 2008-07-22 21:01:07 +0100 (Tue, 22 Jul 2008) $ + */ +@Service(interfaces={Service3.class}) +public class ComponentEImpl implements Service3 { + + + public String getGreetings(String name) { + return "Hello, " + name + " from ComponentE"; + } +} diff --git a/tags/java/sca/1.5.1-RC4/itest/builder/src/main/java/org/apache/tuscany/sca/itest/builder/ComponentFImpl.java b/tags/java/sca/1.5.1-RC4/itest/builder/src/main/java/org/apache/tuscany/sca/itest/builder/ComponentFImpl.java new file mode 100644 index 0000000000..ccfeff0997 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/builder/src/main/java/org/apache/tuscany/sca/itest/builder/ComponentFImpl.java @@ -0,0 +1,36 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.osoa.sca.annotations.Reference; +import org.osoa.sca.annotations.Service; + +/** + * Implementation class for ComponentD. + * + * @version $Rev: 678875 $ $Date: 2008-07-22 21:01:07 +0100 (Tue, 22 Jul 2008) $ + */ +@Service(interfaces={Service3.class}) +public class ComponentFImpl implements Service3 { + + + public String getGreetings(String name) { + return "Hello, " + name + " from ComponentF"; + } +} diff --git a/tags/java/sca/1.5.1-RC4/itest/builder/src/main/java/org/apache/tuscany/sca/itest/builder/Service3.java b/tags/java/sca/1.5.1-RC4/itest/builder/src/main/java/org/apache/tuscany/sca/itest/builder/Service3.java new file mode 100644 index 0000000000..9a775feec9 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/builder/src/main/java/org/apache/tuscany/sca/itest/builder/Service3.java @@ -0,0 +1,33 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.osoa.sca.annotations.Remotable; + +/** + * Interface for Service3 in ComponentD. + * + * @version $Rev$ $Date$ + */ +@Remotable +public interface Service3 { + + String getGreetings(String name); + +} diff --git a/tags/java/sca/1.5.1-RC4/itest/builder/src/main/java/org/apache/tuscany/sca/itest/builder/Service3a.java b/tags/java/sca/1.5.1-RC4/itest/builder/src/main/java/org/apache/tuscany/sca/itest/builder/Service3a.java new file mode 100644 index 0000000000..98a1741fb6 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/builder/src/main/java/org/apache/tuscany/sca/itest/builder/Service3a.java @@ -0,0 +1,33 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.osoa.sca.annotations.Remotable; + +/** + * Interface for Service3a in ComponentD. + * + * @version $Rev$ $Date$ + */ +@Remotable +public interface Service3a { + + String getGreetings2(String name); + +} diff --git a/tags/java/sca/1.5.1-RC4/itest/builder/src/main/resources/scenario1/META-INF/sca-contribution.xml b/tags/java/sca/1.5.1-RC4/itest/builder/src/main/resources/scenario1/META-INF/sca-contribution.xml new file mode 100644 index 0000000000..256d01be58 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/builder/src/main/resources/scenario1/META-INF/sca-contribution.xml @@ -0,0 +1,24 @@ + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/builder/src/main/resources/scenario1/scenario1.composite b/tags/java/sca/1.5.1-RC4/itest/builder/src/main/resources/scenario1/scenario1.composite new file mode 100644 index 0000000000..5c2a98ab40 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/builder/src/main/resources/scenario1/scenario1.composite @@ -0,0 +1,45 @@ + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/builder/src/main/resources/scenario1/scenario1a.composite b/tags/java/sca/1.5.1-RC4/itest/builder/src/main/resources/scenario1/scenario1a.composite new file mode 100644 index 0000000000..21b5897aa1 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/builder/src/main/resources/scenario1/scenario1a.composite @@ -0,0 +1,47 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/builder/src/main/resources/scenario10/META-INF/sca-contribution.xml b/tags/java/sca/1.5.1-RC4/itest/builder/src/main/resources/scenario10/META-INF/sca-contribution.xml new file mode 100644 index 0000000000..083079ba42 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/builder/src/main/resources/scenario10/META-INF/sca-contribution.xml @@ -0,0 +1,24 @@ + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/builder/src/main/resources/scenario10/scenario10.composite b/tags/java/sca/1.5.1-RC4/itest/builder/src/main/resources/scenario10/scenario10.composite new file mode 100644 index 0000000000..c24b7f0046 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/builder/src/main/resources/scenario10/scenario10.composite @@ -0,0 +1,62 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/builder/src/main/resources/scenario10/scenario10a.composite b/tags/java/sca/1.5.1-RC4/itest/builder/src/main/resources/scenario10/scenario10a.composite new file mode 100644 index 0000000000..27a73d5c41 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/builder/src/main/resources/scenario10/scenario10a.composite @@ -0,0 +1,61 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/builder/src/main/resources/scenario10/service3.wsdl b/tags/java/sca/1.5.1-RC4/itest/builder/src/main/resources/scenario10/service3.wsdl new file mode 100644 index 0000000000..14edcc00e6 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/builder/src/main/resources/scenario10/service3.wsdl @@ -0,0 +1,63 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/builder/src/main/resources/scenario11/META-INF/sca-contribution.xml b/tags/java/sca/1.5.1-RC4/itest/builder/src/main/resources/scenario11/META-INF/sca-contribution.xml new file mode 100644 index 0000000000..a6e4b65970 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/builder/src/main/resources/scenario11/META-INF/sca-contribution.xml @@ -0,0 +1,24 @@ + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/builder/src/main/resources/scenario11/scenario11.composite b/tags/java/sca/1.5.1-RC4/itest/builder/src/main/resources/scenario11/scenario11.composite new file mode 100644 index 0000000000..3a94152e6a --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/builder/src/main/resources/scenario11/scenario11.composite @@ -0,0 +1,59 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/builder/src/main/resources/scenario11/scenario11a.composite b/tags/java/sca/1.5.1-RC4/itest/builder/src/main/resources/scenario11/scenario11a.composite new file mode 100644 index 0000000000..6130c68651 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/builder/src/main/resources/scenario11/scenario11a.composite @@ -0,0 +1,64 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/builder/src/main/resources/scenario11/service3.wsdl b/tags/java/sca/1.5.1-RC4/itest/builder/src/main/resources/scenario11/service3.wsdl new file mode 100644 index 0000000000..14edcc00e6 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/builder/src/main/resources/scenario11/service3.wsdl @@ -0,0 +1,63 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/builder/src/main/resources/scenario12/META-INF/sca-contribution.xml b/tags/java/sca/1.5.1-RC4/itest/builder/src/main/resources/scenario12/META-INF/sca-contribution.xml new file mode 100644 index 0000000000..125bdc5e53 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/builder/src/main/resources/scenario12/META-INF/sca-contribution.xml @@ -0,0 +1,24 @@ + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/builder/src/main/resources/scenario12/scenario12.composite b/tags/java/sca/1.5.1-RC4/itest/builder/src/main/resources/scenario12/scenario12.composite new file mode 100644 index 0000000000..aabd445e23 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/builder/src/main/resources/scenario12/scenario12.composite @@ -0,0 +1,58 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/builder/src/main/resources/scenario12/scenario12a.composite b/tags/java/sca/1.5.1-RC4/itest/builder/src/main/resources/scenario12/scenario12a.composite new file mode 100644 index 0000000000..a2ccc47c28 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/builder/src/main/resources/scenario12/scenario12a.composite @@ -0,0 +1,64 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/builder/src/main/resources/scenario13/META-INF/sca-contribution.xml b/tags/java/sca/1.5.1-RC4/itest/builder/src/main/resources/scenario13/META-INF/sca-contribution.xml new file mode 100644 index 0000000000..c906c6c5b0 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/builder/src/main/resources/scenario13/META-INF/sca-contribution.xml @@ -0,0 +1,24 @@ + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/builder/src/main/resources/scenario13/scenario13.composite b/tags/java/sca/1.5.1-RC4/itest/builder/src/main/resources/scenario13/scenario13.composite new file mode 100644 index 0000000000..ed59cd2adf --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/builder/src/main/resources/scenario13/scenario13.composite @@ -0,0 +1,58 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/builder/src/main/resources/scenario13/scenario13a.composite b/tags/java/sca/1.5.1-RC4/itest/builder/src/main/resources/scenario13/scenario13a.composite new file mode 100644 index 0000000000..41150f78fd --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/builder/src/main/resources/scenario13/scenario13a.composite @@ -0,0 +1,64 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/builder/src/main/resources/scenario2/META-INF/sca-contribution.xml b/tags/java/sca/1.5.1-RC4/itest/builder/src/main/resources/scenario2/META-INF/sca-contribution.xml new file mode 100644 index 0000000000..6fa901c4df --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/builder/src/main/resources/scenario2/META-INF/sca-contribution.xml @@ -0,0 +1,24 @@ + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/builder/src/main/resources/scenario2/scenario2.composite b/tags/java/sca/1.5.1-RC4/itest/builder/src/main/resources/scenario2/scenario2.composite new file mode 100644 index 0000000000..66f88294ff --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/builder/src/main/resources/scenario2/scenario2.composite @@ -0,0 +1,45 @@ + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/builder/src/main/resources/scenario2/scenario2a.composite b/tags/java/sca/1.5.1-RC4/itest/builder/src/main/resources/scenario2/scenario2a.composite new file mode 100644 index 0000000000..db1af4743f --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/builder/src/main/resources/scenario2/scenario2a.composite @@ -0,0 +1,47 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/builder/src/main/resources/scenario3/META-INF/sca-contribution.xml b/tags/java/sca/1.5.1-RC4/itest/builder/src/main/resources/scenario3/META-INF/sca-contribution.xml new file mode 100644 index 0000000000..f5899ab1f0 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/builder/src/main/resources/scenario3/META-INF/sca-contribution.xml @@ -0,0 +1,24 @@ + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/builder/src/main/resources/scenario3/scenario3.composite b/tags/java/sca/1.5.1-RC4/itest/builder/src/main/resources/scenario3/scenario3.composite new file mode 100644 index 0000000000..4b37c19e4e --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/builder/src/main/resources/scenario3/scenario3.composite @@ -0,0 +1,44 @@ + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/builder/src/main/resources/scenario3/scenario3a.composite b/tags/java/sca/1.5.1-RC4/itest/builder/src/main/resources/scenario3/scenario3a.composite new file mode 100644 index 0000000000..fedd79ff3d --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/builder/src/main/resources/scenario3/scenario3a.composite @@ -0,0 +1,48 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/builder/src/main/resources/scenario4/META-INF/sca-contribution.xml b/tags/java/sca/1.5.1-RC4/itest/builder/src/main/resources/scenario4/META-INF/sca-contribution.xml new file mode 100644 index 0000000000..642245ea7e --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/builder/src/main/resources/scenario4/META-INF/sca-contribution.xml @@ -0,0 +1,24 @@ + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/builder/src/main/resources/scenario4/scenario4.composite b/tags/java/sca/1.5.1-RC4/itest/builder/src/main/resources/scenario4/scenario4.composite new file mode 100644 index 0000000000..1bb876b33d --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/builder/src/main/resources/scenario4/scenario4.composite @@ -0,0 +1,44 @@ + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/builder/src/main/resources/scenario4/scenario4a.composite b/tags/java/sca/1.5.1-RC4/itest/builder/src/main/resources/scenario4/scenario4a.composite new file mode 100644 index 0000000000..55e13700a6 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/builder/src/main/resources/scenario4/scenario4a.composite @@ -0,0 +1,48 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/builder/src/main/resources/scenario5/META-INF/sca-contribution.xml b/tags/java/sca/1.5.1-RC4/itest/builder/src/main/resources/scenario5/META-INF/sca-contribution.xml new file mode 100644 index 0000000000..92da17179f --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/builder/src/main/resources/scenario5/META-INF/sca-contribution.xml @@ -0,0 +1,24 @@ + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/builder/src/main/resources/scenario5/scenario5.composite b/tags/java/sca/1.5.1-RC4/itest/builder/src/main/resources/scenario5/scenario5.composite new file mode 100644 index 0000000000..403e19b087 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/builder/src/main/resources/scenario5/scenario5.composite @@ -0,0 +1,46 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/builder/src/main/resources/scenario5/scenario5a.composite b/tags/java/sca/1.5.1-RC4/itest/builder/src/main/resources/scenario5/scenario5a.composite new file mode 100644 index 0000000000..0e37ded0e4 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/builder/src/main/resources/scenario5/scenario5a.composite @@ -0,0 +1,47 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/builder/src/main/resources/scenario5/scenarios.wsdl b/tags/java/sca/1.5.1-RC4/itest/builder/src/main/resources/scenario5/scenarios.wsdl new file mode 100644 index 0000000000..7480419231 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/builder/src/main/resources/scenario5/scenarios.wsdl @@ -0,0 +1,63 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/builder/src/main/resources/scenario6/META-INF/sca-contribution.xml b/tags/java/sca/1.5.1-RC4/itest/builder/src/main/resources/scenario6/META-INF/sca-contribution.xml new file mode 100644 index 0000000000..42d45b0b98 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/builder/src/main/resources/scenario6/META-INF/sca-contribution.xml @@ -0,0 +1,24 @@ + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/builder/src/main/resources/scenario6/scenario6.composite b/tags/java/sca/1.5.1-RC4/itest/builder/src/main/resources/scenario6/scenario6.composite new file mode 100644 index 0000000000..1c89139905 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/builder/src/main/resources/scenario6/scenario6.composite @@ -0,0 +1,47 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/builder/src/main/resources/scenario6/scenario6a.composite b/tags/java/sca/1.5.1-RC4/itest/builder/src/main/resources/scenario6/scenario6a.composite new file mode 100644 index 0000000000..853703a353 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/builder/src/main/resources/scenario6/scenario6a.composite @@ -0,0 +1,47 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/builder/src/main/resources/scenario6/scenarios.wsdl b/tags/java/sca/1.5.1-RC4/itest/builder/src/main/resources/scenario6/scenarios.wsdl new file mode 100644 index 0000000000..7480419231 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/builder/src/main/resources/scenario6/scenarios.wsdl @@ -0,0 +1,63 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/builder/src/main/resources/scenario7/META-INF/sca-contribution.xml b/tags/java/sca/1.5.1-RC4/itest/builder/src/main/resources/scenario7/META-INF/sca-contribution.xml new file mode 100644 index 0000000000..44c471cc65 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/builder/src/main/resources/scenario7/META-INF/sca-contribution.xml @@ -0,0 +1,24 @@ + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/builder/src/main/resources/scenario7/scenario7.composite b/tags/java/sca/1.5.1-RC4/itest/builder/src/main/resources/scenario7/scenario7.composite new file mode 100644 index 0000000000..6b1ac24cec --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/builder/src/main/resources/scenario7/scenario7.composite @@ -0,0 +1,45 @@ + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/builder/src/main/resources/scenario7/scenario7a.composite b/tags/java/sca/1.5.1-RC4/itest/builder/src/main/resources/scenario7/scenario7a.composite new file mode 100644 index 0000000000..8e0cebbdd5 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/builder/src/main/resources/scenario7/scenario7a.composite @@ -0,0 +1,49 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/builder/src/main/resources/scenario7/scenarios.wsdl b/tags/java/sca/1.5.1-RC4/itest/builder/src/main/resources/scenario7/scenarios.wsdl new file mode 100644 index 0000000000..7480419231 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/builder/src/main/resources/scenario7/scenarios.wsdl @@ -0,0 +1,63 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/builder/src/main/resources/scenario8/META-INF/sca-contribution.xml b/tags/java/sca/1.5.1-RC4/itest/builder/src/main/resources/scenario8/META-INF/sca-contribution.xml new file mode 100644 index 0000000000..7cb09d0a74 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/builder/src/main/resources/scenario8/META-INF/sca-contribution.xml @@ -0,0 +1,24 @@ + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/builder/src/main/resources/scenario8/scenario8.composite b/tags/java/sca/1.5.1-RC4/itest/builder/src/main/resources/scenario8/scenario8.composite new file mode 100644 index 0000000000..26e5ee33fa --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/builder/src/main/resources/scenario8/scenario8.composite @@ -0,0 +1,44 @@ + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/builder/src/main/resources/scenario8/scenario8a.composite b/tags/java/sca/1.5.1-RC4/itest/builder/src/main/resources/scenario8/scenario8a.composite new file mode 100644 index 0000000000..4fa0712199 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/builder/src/main/resources/scenario8/scenario8a.composite @@ -0,0 +1,50 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/builder/src/main/resources/scenario8/scenarios.wsdl b/tags/java/sca/1.5.1-RC4/itest/builder/src/main/resources/scenario8/scenarios.wsdl new file mode 100644 index 0000000000..7480419231 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/builder/src/main/resources/scenario8/scenarios.wsdl @@ -0,0 +1,63 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/builder/src/main/resources/scenario9/META-INF/sca-contribution.xml b/tags/java/sca/1.5.1-RC4/itest/builder/src/main/resources/scenario9/META-INF/sca-contribution.xml new file mode 100644 index 0000000000..6e0908702b --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/builder/src/main/resources/scenario9/META-INF/sca-contribution.xml @@ -0,0 +1,24 @@ + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/builder/src/main/resources/scenario9/scenario9.composite b/tags/java/sca/1.5.1-RC4/itest/builder/src/main/resources/scenario9/scenario9.composite new file mode 100644 index 0000000000..3fce35470e --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/builder/src/main/resources/scenario9/scenario9.composite @@ -0,0 +1,60 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/builder/src/main/resources/scenario9/scenario9a.composite b/tags/java/sca/1.5.1-RC4/itest/builder/src/main/resources/scenario9/scenario9a.composite new file mode 100644 index 0000000000..6e86c547b3 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/builder/src/main/resources/scenario9/scenario9a.composite @@ -0,0 +1,61 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/builder/src/test/java/org/apache/tuscany/sca/itest/builder/BuilderTestCase.java b/tags/java/sca/1.5.1-RC4/itest/builder/src/test/java/org/apache/tuscany/sca/itest/builder/BuilderTestCase.java new file mode 100644 index 0000000000..1f45cb4a66 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/builder/src/test/java/org/apache/tuscany/sca/itest/builder/BuilderTestCase.java @@ -0,0 +1,805 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.TestCase; +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.Reference; +import org.apache.tuscany.sca.assembly.SCABinding; +import org.apache.tuscany.sca.assembly.Service; +import org.apache.tuscany.sca.binding.ws.WebServiceBinding; +import org.apache.tuscany.sca.interfacedef.java.JavaInterfaceContract; +import org.apache.tuscany.sca.interfacedef.wsdl.WSDLInterfaceContract; + +/** + * Load and build some composites and inspect the results. + * + * @version $Rev$ $Date$ + */ +public class BuilderTestCase extends TestCase { + private CustomCompositeBuilder customBuilder; + + @Override + protected void setUp() throws Exception { + } + + @Override + protected void tearDown() throws Exception { + } + + + // Scenario 1: on outer composite service CompositeA/Service1 + 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); + } + + 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; + } + } + + // Scenario 2: on outer component service ComponentB/Service2 + 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(); + + // 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(); + javax.wsdl.Service svc = def.getService(new QName("http://builder.itest.sca.tuscany.apache.org/", "Service3Service")); + Port port = svc.getPort("Service3Port"); + assert "/ComponentB/Service2".equals(TestUtils.getPortAddress(port)); + + Component componentD = TestUtils.getComponent(domainComposite, "ComponentD"); + 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 $promoted$Service1 + // and $promoted$ComponentB$slash$Service2 + for (ComponentService service : componentD.getServices()) { + if (!"$promoted$Service1".equals(service.getName()) && + !"$promoted$ComponentB$slash$Service2".equals(service.getName())) { + assert service.getBinding(WebServiceBinding.class) == null; + } + } + + // No services on CompositeC should have , except for Service2 in Scenario 3 + Composite compositeC = TestUtils.getComposite(domainComposite, new QName(namespace, "CompositeC")); + for (Service service : compositeC.getServices()) { + if ("http://scenario3".equals(namespace) && "Service2".equals(service.getName())) { + assert service.getBinding(WebServiceBinding.class) != null; + } else { + assert service.getBinding(WebServiceBinding.class) == null; + } + } + } + + // 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 + 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); + } + + 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; + } + } + + // Scenario 6: and on outer component reference ComponentB/reference2 + 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); + } + + 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; + } + + // 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/tags/java/sca/1.5.1-RC4/itest/builder/src/test/java/org/apache/tuscany/sca/itest/builder/CompositeBuilderNonWiringImpl.java b/tags/java/sca/1.5.1-RC4/itest/builder/src/test/java/org/apache/tuscany/sca/itest/builder/CompositeBuilderNonWiringImpl.java new file mode 100644 index 0000000000..cad09920e8 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/builder/src/test/java/org/apache/tuscany/sca/itest/builder/CompositeBuilderNonWiringImpl.java @@ -0,0 +1,176 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.logging.Logger; + +import org.apache.tuscany.sca.assembly.AssemblyFactory; +import org.apache.tuscany.sca.assembly.Composite; +import org.apache.tuscany.sca.assembly.DefaultEndpointFactory; +import org.apache.tuscany.sca.assembly.EndpointFactory; +import org.apache.tuscany.sca.assembly.SCABindingFactory; +import org.apache.tuscany.sca.assembly.builder.CompositeBuilder; +import org.apache.tuscany.sca.assembly.builder.CompositeBuilderException; +import org.apache.tuscany.sca.core.ExtensionPointRegistry; +import org.apache.tuscany.sca.definitions.SCADefinitions; +import org.apache.tuscany.sca.interfacedef.InterfaceContractMapper; +import org.apache.tuscany.sca.monitor.Monitor; +import org.apache.tuscany.sca.policy.IntentAttachPointTypeFactory; + +/** + * Test version of org.apache.tuscany.sca.assembly.builder.impl.builder.CompositeBuilderImpl + * + * This class should be identical to CompositeBuilderImpl except for omitting the + * following builders: + * componentWireBuilder + * compositeReferenceWireBuilder + * compositePromotedServiceBuilder + * It omits the component wiring step and the special processing that's performed + * for composite service and reference promotion. + * + * @version $Rev$ $Date$ + */ +public class CompositeBuilderNonWiringImpl implements CompositeBuilder { + private static final Logger logger = Logger.getLogger(CompositeBuilderNonWiringImpl.class.getName()); + private CompositeBuilder compositeIncludeBuilder; + //private CompositeBuilder componentReferenceWireBuilder; + //private CompositeBuilder componentReferencePromotionWireBuilder; + //private CompositeBuilder compositeReferenceWireBuilder; + private CompositeBuilder compositeCloneBuilder; + private CompositeBuilder componentConfigurationBuilder; + private CompositeBuilder compositeServiceConfigurationBuilder; + private CompositeBuilder compositeReferenceConfigurationBuilder; + private CompositeBuilder compositeBindingURIBuilder; + private CompositeBuilder componentServicePromotionBuilder; + //private CompositeBuilder compositeServicePromotionBuilder; + private CompositeBuilder compositePromotionBuilder; + private CompositeBuilder compositePolicyBuilder; + private CompositeBuilder componentServiceBindingBuilder; + private CompositeBuilder componentReferenceBindingBuilder; + + /** + * Constructs a new composite builder. + * + * @param assemblyFactory + * @param scaBindingFactory + * @param intentAttachPointTypeFactory + * @param interfaceContractMapper + * @param monitor + */ + public CompositeBuilderNonWiringImpl(AssemblyFactory assemblyFactory, + SCABindingFactory scaBindingFactory, + IntentAttachPointTypeFactory intentAttachPointTypeFactory, + InterfaceContractMapper interfaceContractMapper, + Monitor monitor) { + this(assemblyFactory, null, scaBindingFactory, intentAttachPointTypeFactory, interfaceContractMapper, null, monitor); + } + + /** + * Constructs a new composite builder. + * + * @param assemblyFactory + * @param scaBindingFactory + * @param endpointFactory + * @param intentAttachPointTypeFactory + * @param interfaceContractMapper + * @param policyDefinitions + * @param monitor + */ + public CompositeBuilderNonWiringImpl(AssemblyFactory assemblyFactory, + EndpointFactory endpointFactory, + SCABindingFactory scaBindingFactory, + IntentAttachPointTypeFactory intentAttachPointTypeFactory, + InterfaceContractMapper interfaceContractMapper, + SCADefinitions policyDefinitions, + Monitor monitor) { + + if (endpointFactory == null){ + endpointFactory = new DefaultEndpointFactory(); + } + + compositeIncludeBuilder = new org.apache.tuscany.sca.assembly.builder.impl.CompositeIncludeBuilderImpl(monitor); + //componentReferenceWireBuilder = new org.apache.tuscany.sca.assembly.builder.impl.ComponentReferenceWireBuilderImpl(assemblyFactory, endpointFactory, interfaceContractMapper, monitor); + //componentReferencePromotionWireBuilder = new org.apache.tuscany.sca.assembly.builder.impl.ComponentReferencePromotionWireBuilderImpl(assemblyFactory, endpointFactory, monitor); + //compositeReferenceWireBuilder = new org.apache.tuscany.sca.assembly.builder.impl.CompositeReferenceWireBuilderImpl(assemblyFactory, endpointFactory, monitor); + compositeCloneBuilder = new org.apache.tuscany.sca.assembly.builder.impl.CompositeCloneBuilderImpl(monitor); + componentConfigurationBuilder = new org.apache.tuscany.sca.assembly.builder.impl.ComponentConfigurationBuilderImpl(assemblyFactory, scaBindingFactory, interfaceContractMapper, policyDefinitions, monitor); + compositeServiceConfigurationBuilder = new org.apache.tuscany.sca.assembly.builder.impl.CompositeServiceConfigurationBuilderImpl(assemblyFactory); + compositeReferenceConfigurationBuilder = new org.apache.tuscany.sca.assembly.builder.impl.CompositeReferenceConfigurationBuilderImpl(assemblyFactory); + compositeBindingURIBuilder = new org.apache.tuscany.sca.assembly.builder.impl.CompositeBindingURIBuilderImpl(assemblyFactory, scaBindingFactory, interfaceContractMapper, policyDefinitions, monitor); + //componentServicePromotionBuilder = new org.apache.tuscany.sca.assembly.builder.impl.ComponentServicePromotionBuilderImpl(assemblyFactory); + //compositeServicePromotionBuilder = new org.apache.tuscany.sca.assembly.builder.impl.CompositeServicePromotionBuilderImpl(assemblyFactory); + compositePromotionBuilder = new org.apache.tuscany.sca.assembly.builder.impl.CompositePromotionBuilderImpl(assemblyFactory, endpointFactory, interfaceContractMapper, monitor); + compositePolicyBuilder = new org.apache.tuscany.sca.assembly.builder.impl.CompositePolicyBuilderImpl(assemblyFactory, endpointFactory, interfaceContractMapper, monitor); + componentServiceBindingBuilder = new org.apache.tuscany.sca.assembly.builder.impl.ComponentServiceBindingBuilderImpl(monitor); + componentReferenceBindingBuilder = new org.apache.tuscany.sca.assembly.builder.impl.ComponentReferenceBindingBuilderImpl(monitor); + } + + public void build(Composite composite) throws CompositeBuilderException { + + // Collect and fuse includes + compositeIncludeBuilder.build(composite); + + // Expand nested composites + compositeCloneBuilder.build(composite); + + // Configure all components + componentConfigurationBuilder.build(composite); + + // Connect composite services/references to promoted services/references + compositePromotionBuilder.build(composite); + + // Compute the policies across the model hierarchy + compositePolicyBuilder.build(composite); + + // Configure composite services + compositeServiceConfigurationBuilder.build(composite); + + // Configure composite references + compositeReferenceConfigurationBuilder.build(composite); + + // Configure binding URIs + compositeBindingURIBuilder.build(composite); + + // Create promoted component services +// componentServicePromotionBuilder.build(composite); + + // Create promoted composite services +// compositeServicePromotionBuilder.build(composite); + + // Build component service binding-related information + componentServiceBindingBuilder.build(composite); + + // Wire the components +// componentReferenceWireBuilder.build(composite); + + // Wire the promoted component references +// componentReferencePromotionWireBuilder.build(composite); + + // Wire the composite references +// compositeReferenceWireBuilder.build(composite); + + // Build component reference binding-related information + componentReferenceBindingBuilder.build(composite); + + // Fuse nested composites + //FIXME do this later + //cloneBuilder.fuseCompositeImplementations(composite); + } + +} diff --git a/tags/java/sca/1.5.1-RC4/itest/builder/src/test/java/org/apache/tuscany/sca/itest/builder/CustomCompositeBuilder.java b/tags/java/sca/1.5.1-RC4/itest/builder/src/test/java/org/apache/tuscany/sca/itest/builder/CustomCompositeBuilder.java new file mode 100644 index 0000000000..d4996c7418 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/builder/src/test/java/org/apache/tuscany/sca/itest/builder/CustomCompositeBuilder.java @@ -0,0 +1,210 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.File; +import java.net.URI; +import java.net.URL; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import javax.xml.namespace.QName; +import javax.xml.stream.XMLInputFactory; +import javax.xml.stream.XMLOutputFactory; + +import org.apache.tuscany.sca.assembly.AssemblyFactory; +import org.apache.tuscany.sca.assembly.Composite; +import org.apache.tuscany.sca.assembly.SCABindingFactory; +import org.apache.tuscany.sca.assembly.builder.CompositeBuilder; +import org.apache.tuscany.sca.assembly.builder.impl.CompositeBuilderImpl; +import org.apache.tuscany.sca.assembly.xml.Constants; +import org.apache.tuscany.sca.contribution.Contribution; +import org.apache.tuscany.sca.contribution.ModelFactoryExtensionPoint; +import org.apache.tuscany.sca.contribution.processor.ExtensibleStAXArtifactProcessor; +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.ExtensibleModelResolver; +import org.apache.tuscany.sca.contribution.resolver.ModelResolverExtensionPoint; +import org.apache.tuscany.sca.core.DefaultExtensionPointRegistry; +import org.apache.tuscany.sca.core.ExtensionPointRegistry; +import org.apache.tuscany.sca.core.ModuleActivator; +import org.apache.tuscany.sca.core.ModuleActivatorExtensionPoint; +import org.apache.tuscany.sca.core.UtilityExtensionPoint; +import org.apache.tuscany.sca.definitions.SCADefinitions; +import org.apache.tuscany.sca.interfacedef.InterfaceContractMapper; +import org.apache.tuscany.sca.monitor.Monitor; +import org.apache.tuscany.sca.monitor.MonitorFactory; +import org.apache.tuscany.sca.policy.IntentAttachPointTypeFactory; +import org.apache.tuscany.sca.workspace.Workspace; +import org.apache.tuscany.sca.workspace.WorkspaceFactory; +import org.apache.tuscany.sca.workspace.builder.ContributionDependencyBuilder; +import org.apache.tuscany.sca.workspace.builder.impl.ContributionDependencyBuilderImpl; + +public class CustomCompositeBuilder { + private ExtensionPointRegistry extensionPoints; + private URLArtifactProcessor contributionProcessor; + private ModelResolverExtensionPoint modelResolvers; + private ModelFactoryExtensionPoint modelFactories; + private WorkspaceFactory workspaceFactory; + private AssemblyFactory assemblyFactory; + private XMLOutputFactory outputFactory; + private StAXArtifactProcessor xmlProcessor; + private ContributionDependencyBuilder contributionDependencyBuilder; + private CompositeBuilder domainCompositeBuilder; + private static Workspace workspace; + private List policyDefinitions; + private Monitor monitor; + private Composite domainComposite; + private boolean nonWiring; + + public CustomCompositeBuilder(boolean nonWiring) { + this.nonWiring = nonWiring; + } + + private void init() { + + // Create extension point registry + extensionPoints = new DefaultExtensionPointRegistry(); + + // Create a monitor + UtilityExtensionPoint utilities = extensionPoints.getExtensionPoint(UtilityExtensionPoint.class); + MonitorFactory monitorFactory = utilities.getUtility(MonitorFactory.class); + monitor = monitorFactory.createMonitor(); + + // Initialize the Tuscany module activators + ModuleActivatorExtensionPoint moduleActivators = extensionPoints.getExtensionPoint(ModuleActivatorExtensionPoint.class); + for (ModuleActivator activator : moduleActivators.getModuleActivators()) { + activator.start(extensionPoints); + } + + // Get XML input/output factories + modelFactories = extensionPoints.getExtensionPoint(ModelFactoryExtensionPoint.class); + XMLInputFactory inputFactory = modelFactories.getFactory(XMLInputFactory.class); + outputFactory = modelFactories.getFactory(XMLOutputFactory.class); + + // Get contribution workspace and assembly model factories + workspaceFactory = modelFactories.getFactory(WorkspaceFactory.class); + assemblyFactory = modelFactories.getFactory(AssemblyFactory.class); + + // Create XML artifact processors + StAXArtifactProcessorExtensionPoint xmlProcessorExtensions = extensionPoints.getExtensionPoint(StAXArtifactProcessorExtensionPoint.class); + xmlProcessor = new ExtensibleStAXArtifactProcessor(xmlProcessorExtensions, inputFactory, outputFactory, monitor); + + // Create contribution content processor + URLArtifactProcessorExtensionPoint docProcessorExtensions = extensionPoints.getExtensionPoint(URLArtifactProcessorExtensionPoint.class); + contributionProcessor = docProcessorExtensions.getProcessor(Contribution.class); + + // Get the model resolvers + modelResolvers = extensionPoints.getExtensionPoint(ModelResolverExtensionPoint.class); + + // Create a contribution dependency builder + contributionDependencyBuilder = new ContributionDependencyBuilderImpl(monitor); + + // Create a composite builder + SCABindingFactory scaBindingFactory = modelFactories.getFactory(SCABindingFactory.class); + IntentAttachPointTypeFactory attachPointTypeFactory = modelFactories.getFactory(IntentAttachPointTypeFactory.class); + InterfaceContractMapper contractMapper = utilities.getUtility(InterfaceContractMapper.class); + if (nonWiring) { + domainCompositeBuilder = new CompositeBuilderNonWiringImpl(assemblyFactory, scaBindingFactory, attachPointTypeFactory, contractMapper, monitor); + } else { + domainCompositeBuilder = new CompositeBuilderImpl(assemblyFactory, scaBindingFactory, attachPointTypeFactory, contractMapper, monitor); + } + } + + public void loadContribution(String compositeURL, String sourceURI, String sourceURL) throws Exception { + init(); + + // Create workspace model + workspace = workspaceFactory.createWorkspace(); + workspace.setModelResolver(new ExtensibleModelResolver(workspace, extensionPoints)); + + // Read the test contribution + URI artifactURI = URI.create(sourceURI); + URL artifactURL = new File(sourceURL).toURI().toURL(); + URL contributionURL = new File(compositeURL).toURI().toURL(); + Contribution testContribution = contributionProcessor.read(contributionURL, artifactURI, artifactURL); + workspace.getContributions().add(testContribution); + + // Build the contribution dependencies + Map> contributionDependencies = new HashMap>(); + Set resolved = new HashSet(); + for (Contribution contribution: workspace.getContributions()) { + List dependencies = contributionDependencyBuilder.buildContributionDependencies(contribution, workspace); + + // Resolve contributions + for (Contribution dependency: dependencies) { + if (!resolved.contains(dependency)) { + resolved.add(dependency); + contributionProcessor.resolve(dependency, workspace.getModelResolver()); + } + } + + contributionDependencies.put(contribution, dependencies); + } + + // Create a composite model for the domain + domainComposite = assemblyFactory.createComposite(); + domainComposite.setName(new QName(Constants.SCA10_NS, "domain")); + + // Add all deployables to it, normally the domain administrator would select + // the deployables to include + domainComposite.getIncludes().addAll(workspace.getDeployables()); + + // Build the domain composite and wire the components included in it + domainCompositeBuilder.build(domainComposite); + } + + /** + * Returns the delegating model processor. + * @return the delegating model processor + */ + public StAXArtifactProcessor getModelProcessor() { + return xmlProcessor; + } + + /** + * Returns the XML output factory. + * @return the XML output factory + */ + public XMLOutputFactory getOutputFactory() { + return outputFactory; + } + + /** + * Returns the domain composite. + * @return the domain composite model object + */ + public Composite getDomainComposite() { + return domainComposite; + } + + /** + * Returns the monitor. + * @return the monitor instance + */ + public Monitor getMonitor() { + return monitor; + } + +} diff --git a/tags/java/sca/1.5.1-RC4/itest/builder/src/test/java/org/apache/tuscany/sca/itest/builder/TestUtils.java b/tags/java/sca/1.5.1-RC4/itest/builder/src/test/java/org/apache/tuscany/sca/itest/builder/TestUtils.java new file mode 100644 index 0000000000..9bff4d394e --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/builder/src/test/java/org/apache/tuscany/sca/itest/builder/TestUtils.java @@ -0,0 +1,203 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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 junit.framework.TestCase; +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.ComponentReference; +import org.apache.tuscany.sca.assembly.Composite; +import org.apache.tuscany.sca.assembly.Contract; +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.binding.ws.WebServiceBinding; +import org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessor; +import org.apache.tuscany.sca.monitor.Monitor; +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(); + } + problems = true; + } + assert !problems; + } + + protected static String getPortAddress(Port port) { + Object ext = port.getExtensibilityElements().get(0); + if (ext instanceof SOAPAddress) { + return ((SOAPAddress)ext).getLocationURI(); + } + if (ext instanceof SOAP12Address) { + return ((SOAP12Address)ext).getLocationURI(); + } + return null; + } + + 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); + + // 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 + } + } + } + +} diff --git a/tags/java/sca/1.5.1-RC4/itest/callablereferences-ws/pom.xml b/tags/java/sca/1.5.1-RC4/itest/callablereferences-ws/pom.xml new file mode 100644 index 0000000000..cff55122fc --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/callablereferences-ws/pom.xml @@ -0,0 +1,59 @@ + + + + 4.0.0 + + org.apache.tuscany.sca + tuscany-itest + 1.5.1 + ../pom.xml + + itest-callablereferences-ws + Apache Tuscany SCA iTest Callable References over Web Services + + + + org.apache.tuscany.sca + tuscany-host-embedded + 1.5.1 + + + + org.apache.tuscany.sca + tuscany-implementation-java-runtime + 1.5.1 + runtime + + + + org.apache.tuscany.sca + tuscany-binding-ws-axis2 + 1.5.1 + runtime + + + + org.apache.tuscany.sca + tuscany-host-tomcat + 1.5.1 + runtime + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/callablereferences-ws/src/main/java/com/example/ExampleClient.java b/tags/java/sca/1.5.1-RC4/itest/callablereferences-ws/src/main/java/com/example/ExampleClient.java new file mode 100644 index 0000000000..ecf1ac27e1 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/callablereferences-ws/src/main/java/com/example/ExampleClient.java @@ -0,0 +1,26 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package com.example; + +public interface ExampleClient { + + void runTest(); + + void sayHello(String name); +} diff --git a/tags/java/sca/1.5.1-RC4/itest/callablereferences-ws/src/main/java/com/example/ExampleClientImpl.java b/tags/java/sca/1.5.1-RC4/itest/callablereferences-ws/src/main/java/com/example/ExampleClientImpl.java new file mode 100644 index 0000000000..c46087d865 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/callablereferences-ws/src/main/java/com/example/ExampleClientImpl.java @@ -0,0 +1,59 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package com.example; + +import org.osoa.sca.CallableReference; +import org.osoa.sca.ComponentContext; +import org.osoa.sca.ServiceReference; +import org.osoa.sca.annotations.Context; +import org.osoa.sca.annotations.Reference; +import org.osoa.sca.annotations.Scope; +import org.osoa.sca.annotations.Service; + +@Service(ExampleClient.class) +@Scope("COMPOSITE") +public class ExampleClientImpl implements ExampleClient { + + private ExampleService myService; + + @Context + protected ComponentContext context; + + @Reference + public void setMyService(ExampleService myService) { + this.myService = myService; + } + + public void runTest() { + ServiceReference ref = context.createSelfReference(ExampleClient.class); + ref.getService().sayHello("Jack"); + CallableReference result = myService.hello("Jill", ref); + if (result != null) { + ((CallableReference)result).getService().sayHello("John"); + } + result = myService.hello("Jane", null); + if (result != null) { + ((CallableReference)result).getService().sayHello("Jim"); + } + } + + public void sayHello(String name) { + System.out.println("Hello, client " + name + "!"); + } +} diff --git a/tags/java/sca/1.5.1-RC4/itest/callablereferences-ws/src/main/java/com/example/ExampleService.java b/tags/java/sca/1.5.1-RC4/itest/callablereferences-ws/src/main/java/com/example/ExampleService.java new file mode 100644 index 0000000000..670c145cc3 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/callablereferences-ws/src/main/java/com/example/ExampleService.java @@ -0,0 +1,30 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package com.example; + +import org.osoa.sca.CallableReference; +import org.osoa.sca.ServiceReference; +import org.osoa.sca.annotations.Remotable; + +@Remotable +public interface ExampleService { + + CallableReference hello(String name, ServiceReference ref); + +} diff --git a/tags/java/sca/1.5.1-RC4/itest/callablereferences-ws/src/main/java/com/example/ExampleServiceImpl.java b/tags/java/sca/1.5.1-RC4/itest/callablereferences-ws/src/main/java/com/example/ExampleServiceImpl.java new file mode 100644 index 0000000000..eb4d647a22 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/callablereferences-ws/src/main/java/com/example/ExampleServiceImpl.java @@ -0,0 +1,33 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package com.example; + +import org.osoa.sca.CallableReference; +import org.osoa.sca.ServiceReference; + +public class ExampleServiceImpl implements ExampleService { + + public CallableReference hello(String name, ServiceReference ref) { + if (ref != null) { + ((ServiceReference)ref).getService().sayHello(name); + } + return (CallableReference)ref; + } + +} diff --git a/tags/java/sca/1.5.1-RC4/itest/callablereferences-ws/src/main/java/org/apache/tuscany/sca/itest/callablerefwsreturn/Alpha.java b/tags/java/sca/1.5.1-RC4/itest/callablereferences-ws/src/main/java/org/apache/tuscany/sca/itest/callablerefwsreturn/Alpha.java new file mode 100644 index 0000000000..bb5e57397d --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/callablereferences-ws/src/main/java/org/apache/tuscany/sca/itest/callablerefwsreturn/Alpha.java @@ -0,0 +1,26 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.callablerefwsreturn; + +import org.osoa.sca.annotations.Remotable; + +@Remotable +public interface Alpha { + boolean run(); +} diff --git a/tags/java/sca/1.5.1-RC4/itest/callablereferences-ws/src/main/java/org/apache/tuscany/sca/itest/callablerefwsreturn/AlphaImpl.java b/tags/java/sca/1.5.1-RC4/itest/callablereferences-ws/src/main/java/org/apache/tuscany/sca/itest/callablerefwsreturn/AlphaImpl.java new file mode 100644 index 0000000000..6e5f1cedf9 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/callablereferences-ws/src/main/java/org/apache/tuscany/sca/itest/callablerefwsreturn/AlphaImpl.java @@ -0,0 +1,96 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.callablerefwsreturn; + +import org.osoa.sca.CallableReference; +import org.osoa.sca.ComponentContext; +import org.osoa.sca.Conversation; +import org.osoa.sca.annotations.Context; +import org.osoa.sca.annotations.Reference; +import org.osoa.sca.annotations.Scope; +import org.osoa.sca.annotations.Service; + +@Service(Alpha.class) +@Scope("COMPOSITE") +public class AlphaImpl implements Alpha { + @Reference + public Beta beta; + + @Context + protected ComponentContext componentContext; + + Object conversationId0 = null; + + public boolean run() { + CallableReference gammaRef = null; + try { + Object conversationId1 = null; + Object conversationId2 = null; + + // it is expected that this call returns a reference to Gamma that + // reuses the established Conversation + gammaRef = beta.getRef(); + + // no Conversation exists + Conversation con = gammaRef.getConversation(); + if (con == null) { + System.out.println("Alpha1: Conversation to gamma is null"); + } else { + System.out + .println("Alpha1: Conversation to gamma exists. conversationId=" + + con.getConversationID()); + conversationId1 = con.getConversationID(); + } + + // this call should reuse a Conversation, but as none exists it + // creates a new conversation + gammaRef.getService().doSomething(); + gammaRef.getService().doSomething(); + gammaRef.getService().doSomething(); + + con = gammaRef.getConversation(); + if (con == null) { + System.out.println("Alpha2: Conversation to gamma is null"); + } else { + System.out + .println("Alpha2: Conversation to gamma exists. conversationId=" + + con.getConversationID()); + conversationId2 = con.getConversationID(); + } + + boolean testPassed = conversationId1.equals(conversationId2); + + if (conversationId0 == null){ + conversationId0 = conversationId1; + return testPassed; + } else { + return testPassed && (!conversationId0.equals(conversationId1)); + } + + } catch (Exception e) { + e.printStackTrace(); + return false; + } finally { + if (gammaRef != null) { + gammaRef.getService().stop(); + } + } + } + +} diff --git a/tags/java/sca/1.5.1-RC4/itest/callablereferences-ws/src/main/java/org/apache/tuscany/sca/itest/callablerefwsreturn/Beta.java b/tags/java/sca/1.5.1-RC4/itest/callablereferences-ws/src/main/java/org/apache/tuscany/sca/itest/callablerefwsreturn/Beta.java new file mode 100644 index 0000000000..995e4fcf39 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/callablereferences-ws/src/main/java/org/apache/tuscany/sca/itest/callablerefwsreturn/Beta.java @@ -0,0 +1,27 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.callablerefwsreturn; + +import org.osoa.sca.CallableReference; +import org.osoa.sca.annotations.Remotable; + +@Remotable +public interface Beta { + CallableReference getRef(); +} diff --git a/tags/java/sca/1.5.1-RC4/itest/callablereferences-ws/src/main/java/org/apache/tuscany/sca/itest/callablerefwsreturn/BetaImpl.java b/tags/java/sca/1.5.1-RC4/itest/callablereferences-ws/src/main/java/org/apache/tuscany/sca/itest/callablerefwsreturn/BetaImpl.java new file mode 100644 index 0000000000..be72fd779e --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/callablereferences-ws/src/main/java/org/apache/tuscany/sca/itest/callablerefwsreturn/BetaImpl.java @@ -0,0 +1,46 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.callablerefwsreturn; + +import org.osoa.sca.CallableReference; +import org.osoa.sca.ComponentContext; +import org.osoa.sca.ServiceReference; +import org.osoa.sca.annotations.Context; +import org.osoa.sca.annotations.Reference; +import org.osoa.sca.annotations.Scope; +import org.osoa.sca.annotations.Service; + +@Service(Beta.class) +@Scope("COMPOSITE") +public class BetaImpl implements Beta { + @Context + protected ComponentContext componentContext; + + @Reference + public Gamma gamma; + + public CallableReference getRef() { + ServiceReference gammaRef = componentContext + .getServiceReference(Gamma.class, "gamma"); + Gamma g = gammaRef.getService(); + g.start(); + return gammaRef; + } + +} diff --git a/tags/java/sca/1.5.1-RC4/itest/callablereferences-ws/src/main/java/org/apache/tuscany/sca/itest/callablerefwsreturn/Gamma.java b/tags/java/sca/1.5.1-RC4/itest/callablereferences-ws/src/main/java/org/apache/tuscany/sca/itest/callablerefwsreturn/Gamma.java new file mode 100644 index 0000000000..b73f26b573 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/callablereferences-ws/src/main/java/org/apache/tuscany/sca/itest/callablerefwsreturn/Gamma.java @@ -0,0 +1,34 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.callablerefwsreturn; + +import org.osoa.sca.annotations.Conversational; +import org.osoa.sca.annotations.EndsConversation; +import org.osoa.sca.annotations.Remotable; + +@Remotable +@Conversational +public interface Gamma { + int start(); + + void doSomething(); + + @EndsConversation + void stop(); +} diff --git a/tags/java/sca/1.5.1-RC4/itest/callablereferences-ws/src/main/java/org/apache/tuscany/sca/itest/callablerefwsreturn/GammaImpl.java b/tags/java/sca/1.5.1-RC4/itest/callablereferences-ws/src/main/java/org/apache/tuscany/sca/itest/callablerefwsreturn/GammaImpl.java new file mode 100644 index 0000000000..c3abc4c65d --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/callablereferences-ws/src/main/java/org/apache/tuscany/sca/itest/callablerefwsreturn/GammaImpl.java @@ -0,0 +1,49 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.callablerefwsreturn; + +import org.osoa.sca.annotations.ConversationID; +import org.osoa.sca.annotations.Scope; +import org.osoa.sca.annotations.Service; + +@Service(Gamma.class) +@Scope("CONVERSATION") +public class GammaImpl implements Gamma { + @ConversationID + protected String conversationId; + + public GammaImpl() { + System.out.println("GammaImpl:GammaImpl(), conversationId=" + + conversationId); + } + + public int start() { + System.out.println("Gamma:start(), conversationId=" + conversationId); + return 1; + } + + public void doSomething() { + System.out.println("Gamma:doSomething(), conversationId=" + + conversationId); + } + + public void stop() { + System.out.println("Gamma:stop(), conversationId=" + conversationId); + } +} diff --git a/tags/java/sca/1.5.1-RC4/itest/callablereferences-ws/src/main/resources/CallableReferenceWsReturnTest.composite b/tags/java/sca/1.5.1-RC4/itest/callablereferences-ws/src/main/resources/CallableReferenceWsReturnTest.composite new file mode 100644 index 0000000000..3d782a0b84 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/callablereferences-ws/src/main/resources/CallableReferenceWsReturnTest.composite @@ -0,0 +1,54 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/callablereferences-ws/src/main/resources/example.composite b/tags/java/sca/1.5.1-RC4/itest/callablereferences-ws/src/main/resources/example.composite new file mode 100644 index 0000000000..ea0819a32e --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/callablereferences-ws/src/main/resources/example.composite @@ -0,0 +1,40 @@ + + + + + + + + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/callablereferences-ws/src/test/java/com/example/ExampleTestCase.java b/tags/java/sca/1.5.1-RC4/itest/callablereferences-ws/src/test/java/com/example/ExampleTestCase.java new file mode 100644 index 0000000000..310e31fb02 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/callablereferences-ws/src/test/java/com/example/ExampleTestCase.java @@ -0,0 +1,44 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package com.example; + +import junit.framework.TestCase; + +import org.apache.tuscany.sca.host.embedded.SCADomain; + +public class ExampleTestCase extends TestCase { + + private SCADomain scaDomain; + private ExampleClient client; + + @Override + protected void setUp() throws Exception { + scaDomain = SCADomain.newInstance("example.composite"); + client = scaDomain.getService(ExampleClient.class, "ExampleClientComponent"); + } + + @Override + protected void tearDown() throws Exception { + scaDomain.close(); + } + + public void test() throws Exception { + client.runTest(); + } +} diff --git a/tags/java/sca/1.5.1-RC4/itest/callablereferences-ws/src/test/java/org/apache/tuscany/sca/itest/callablerefws/CallableReferenceReturnTestCase.java b/tags/java/sca/1.5.1-RC4/itest/callablereferences-ws/src/test/java/org/apache/tuscany/sca/itest/callablerefws/CallableReferenceReturnTestCase.java new file mode 100644 index 0000000000..66fb2ef96c --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/callablereferences-ws/src/test/java/org/apache/tuscany/sca/itest/callablerefws/CallableReferenceReturnTestCase.java @@ -0,0 +1,49 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.callablerefws; + +import org.apache.tuscany.sca.host.embedded.SCADomain; +import org.apache.tuscany.sca.itest.callablerefwsreturn.Alpha; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.BeforeClass; +import org.junit.Test; + +public class CallableReferenceReturnTestCase { + private static SCADomain domain; + private static Alpha alpha; + + @BeforeClass + public static void init() throws Exception { + domain = SCADomain.newInstance("CallableReferenceWsReturnTest.composite"); + alpha = domain.getService(Alpha.class, "Alpha"); + } + + @AfterClass + public static void destroy() throws Exception { + domain.close(); + } + + @Test + public void testCallableReferenceReturn() { + Assert.assertTrue(alpha.run()); + Assert.assertTrue(alpha.run()); + } + +} diff --git a/tags/java/sca/1.5.1-RC4/itest/callablereferences/pom.xml b/tags/java/sca/1.5.1-RC4/itest/callablereferences/pom.xml new file mode 100644 index 0000000000..a2fc1ec826 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/callablereferences/pom.xml @@ -0,0 +1,81 @@ + + + + 4.0.0 + + org.apache.tuscany.sca + tuscany-itest + 1.5.1 + ../pom.xml + + itest-callablereferences + Apache Tuscany SCA iTest Callable References + + + + org.apache.tuscany.sca + tuscany-host-embedded + 1.5.1 + + + + org.apache.tuscany.sca + tuscany-node-impl + 1.5.1 + + + + org.apache.tuscany.sca + tuscany-implementation-java-runtime + 1.5.1 + runtime + + + + + org.apache.tuscany.sca + tuscany-host-tomcat + 1.5.1 + test + + + + + org.apache.tuscany.sca + tuscany-binding-ws-axis2 + 1.5.1 + test + + + + org.apache.tuscany.sca + tuscany-binding-sca-axis2 + 1.5.1 + test + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/callablereferences/src/main/java/org/apache/tuscany/sca/itest/callableref/AComponent.java b/tags/java/sca/1.5.1-RC4/itest/callablereferences/src/main/java/org/apache/tuscany/sca/itest/callableref/AComponent.java new file mode 100644 index 0000000000..5934f16851 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/callablereferences/src/main/java/org/apache/tuscany/sca/itest/callableref/AComponent.java @@ -0,0 +1,39 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.callableref; + +import org.osoa.sca.annotations.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/tags/java/sca/1.5.1-RC4/itest/callablereferences/src/main/java/org/apache/tuscany/sca/itest/callableref/AComponentImpl.java b/tags/java/sca/1.5.1-RC4/itest/callablereferences/src/main/java/org/apache/tuscany/sca/itest/callableref/AComponentImpl.java new file mode 100644 index 0000000000..7c2fd092dc --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/callablereferences/src/main/java/org/apache/tuscany/sca/itest/callableref/AComponentImpl.java @@ -0,0 +1,114 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.callableref; + +import java.io.ByteArrayOutputStream; +import java.io.ObjectOutputStream; + +import org.apache.tuscany.sca.databinding.impl.XSDDataTypeConverter.Base64Binary; +import org.osoa.sca.CallableReference; +import org.osoa.sca.ComponentContext; +import org.osoa.sca.ServiceReference; +import org.osoa.sca.annotations.Context; +import org.osoa.sca.annotations.Reference; +import org.osoa.sca.annotations.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() { + CallableReference bRef = componentContext.cast(b); + return bRef.getService().foo(); + } + + public String fooC() { + return cReference.foo(); + } + + public String fooC1() { + return cServiceReference.getService().foo(); + } + + public String fooBC() { + CallableReference cReference = componentContext.getServiceReference(CComponent.class, "cReference"); + return b.fooC(cReference); + } + + public String fooD() { + CallableReference 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() { + CallableReference 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/tags/java/sca/1.5.1-RC4/itest/callablereferences/src/main/java/org/apache/tuscany/sca/itest/callableref/BComponent.java b/tags/java/sca/1.5.1-RC4/itest/callablereferences/src/main/java/org/apache/tuscany/sca/itest/callableref/BComponent.java new file mode 100644 index 0000000000..ade672b0ab --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/callablereferences/src/main/java/org/apache/tuscany/sca/itest/callableref/BComponent.java @@ -0,0 +1,30 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.callableref; + +import org.osoa.sca.CallableReference; +import org.osoa.sca.annotations.Remotable; + +@Remotable +public interface BComponent { + + String foo(); + + String fooC(CallableReference cComponent); +} diff --git a/tags/java/sca/1.5.1-RC4/itest/callablereferences/src/main/java/org/apache/tuscany/sca/itest/callableref/BComponentImpl.java b/tags/java/sca/1.5.1-RC4/itest/callablereferences/src/main/java/org/apache/tuscany/sca/itest/callableref/BComponentImpl.java new file mode 100644 index 0000000000..518e77d3a8 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/callablereferences/src/main/java/org/apache/tuscany/sca/itest/callableref/BComponentImpl.java @@ -0,0 +1,38 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.callableref; + +import org.osoa.sca.CallableReference; +import org.osoa.sca.annotations.Service; + +@Service(BComponent.class) +public class BComponentImpl implements BComponent { + + public BComponentImpl() { + } + + public String foo() { + return "BComponent"; + } + + public String fooC(CallableReference cReference) { + return "B" + cReference.getService().foo(); + } + +} diff --git a/tags/java/sca/1.5.1-RC4/itest/callablereferences/src/main/java/org/apache/tuscany/sca/itest/callableref/CComponent.java b/tags/java/sca/1.5.1-RC4/itest/callablereferences/src/main/java/org/apache/tuscany/sca/itest/callableref/CComponent.java new file mode 100644 index 0000000000..fdf80cc1c8 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/callablereferences/src/main/java/org/apache/tuscany/sca/itest/callableref/CComponent.java @@ -0,0 +1,27 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.callableref; + +import org.osoa.sca.annotations.Remotable; + +@Remotable +public interface CComponent { + + String foo(); +} diff --git a/tags/java/sca/1.5.1-RC4/itest/callablereferences/src/main/java/org/apache/tuscany/sca/itest/callableref/CComponentImpl.java b/tags/java/sca/1.5.1-RC4/itest/callablereferences/src/main/java/org/apache/tuscany/sca/itest/callableref/CComponentImpl.java new file mode 100644 index 0000000000..cc8ec8f000 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/callablereferences/src/main/java/org/apache/tuscany/sca/itest/callableref/CComponentImpl.java @@ -0,0 +1,30 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.callableref; + +import org.osoa.sca.annotations.Service; + +@Service(CComponent.class) +public class CComponentImpl implements CComponent { + + public String foo() { + return "CComponent"; + } + +} diff --git a/tags/java/sca/1.5.1-RC4/itest/callablereferences/src/main/java/org/apache/tuscany/sca/itest/callableref/DComponent.java b/tags/java/sca/1.5.1-RC4/itest/callablereferences/src/main/java/org/apache/tuscany/sca/itest/callableref/DComponent.java new file mode 100644 index 0000000000..48b697df31 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/callablereferences/src/main/java/org/apache/tuscany/sca/itest/callableref/DComponent.java @@ -0,0 +1,30 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.callableref; + +import org.osoa.sca.CallableReference; +import org.osoa.sca.annotations.Remotable; + +@Remotable +public interface DComponent { + + String foo(CallableReference aReference); + + String fooString(String aReferenceString); +} diff --git a/tags/java/sca/1.5.1-RC4/itest/callablereferences/src/main/java/org/apache/tuscany/sca/itest/callableref/DComponentImpl.java b/tags/java/sca/1.5.1-RC4/itest/callablereferences/src/main/java/org/apache/tuscany/sca/itest/callableref/DComponentImpl.java new file mode 100644 index 0000000000..27ad48b9fe --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/callablereferences/src/main/java/org/apache/tuscany/sca/itest/callableref/DComponentImpl.java @@ -0,0 +1,65 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.callableref; + +import java.io.ByteArrayInputStream; +import java.io.ByteArrayOutputStream; +import java.io.ObjectInputStream; +import java.io.ObjectOutputStream; + +import org.apache.tuscany.sca.databinding.impl.XSDDataTypeConverter.Base64Binary; +import org.osoa.sca.CallableReference; +import org.osoa.sca.RequestContext; +import org.osoa.sca.annotations.Context; +import org.osoa.sca.annotations.Service; + +@Service(DComponent.class) +public class DComponentImpl implements DComponent { + + @Context + protected RequestContext requestContext; + + public String foo(CallableReference 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 = (CallableReference) obj; + } catch (Exception e) { + e.printStackTrace(); + } + System.out.println("Invoking service: " + requestContext.getServiceName()); + return "D" + aReference.getService().foo(); + } + + public String fooString(String aReferenceString) { + CallableReference aReference = null; + try { + ObjectInputStream ois = new ObjectInputStream(new ByteArrayInputStream(Base64Binary.decode(aReferenceString))); + Object obj = ois.readObject(); + aReference = (CallableReference) obj; + } catch (Exception e) { + e.printStackTrace(); + } + System.out.println("Invoking service: " + requestContext.getServiceName()); + return "D" + aReference.getService().foo(); + } +} diff --git a/tags/java/sca/1.5.1-RC4/itest/callablereferences/src/main/java/org/apache/tuscany/sca/itest/callablerefconversational/ConversationalService.java b/tags/java/sca/1.5.1-RC4/itest/callablereferences/src/main/java/org/apache/tuscany/sca/itest/callablerefconversational/ConversationalService.java new file mode 100644 index 0000000000..abcedfa6e1 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/callablereferences/src/main/java/org/apache/tuscany/sca/itest/callablerefconversational/ConversationalService.java @@ -0,0 +1,68 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.callablerefconversational; + +import org.osoa.sca.ServiceReference; +import org.osoa.sca.annotations.Conversational; + +/** + * Simple conversational Service that is used to testing the method + * ComponentContext.createSelfReference() + * + * @version $Date$ $Revision$ + */ +@Conversational +public interface ConversationalService { + /** + * Default value for the user data + */ + String DEFAULT_USER_DATA = "NOT SET"; + + /** + * Retrieves the conversation ID for this Service + * + * @return The conversation ID for this Service + */ + Object getConversationID(); + + /** + * Creates a self reference to this Service + * + * @return A self reference to this Service + */ + ServiceReference createSelfRef(); + + /** + * Sets some user data on the instance + * + * @param a_Data Some data + * + * @See {@link #getUserData()} + */ + void setUserData(String a_Data); + + /** + * Gets some user data on the instance + * + * @return Some data + * + * @See {@link #setUserData(String)} + */ + String getUserData(); +} diff --git a/tags/java/sca/1.5.1-RC4/itest/callablereferences/src/main/java/org/apache/tuscany/sca/itest/callablerefconversational/ConversationalServiceImpl.java b/tags/java/sca/1.5.1-RC4/itest/callablereferences/src/main/java/org/apache/tuscany/sca/itest/callablerefconversational/ConversationalServiceImpl.java new file mode 100644 index 0000000000..f2e0ce7582 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/callablereferences/src/main/java/org/apache/tuscany/sca/itest/callablerefconversational/ConversationalServiceImpl.java @@ -0,0 +1,111 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.callablerefconversational; + +import org.osoa.sca.ComponentContext; +import org.osoa.sca.ServiceReference; +import org.osoa.sca.annotations.Context; +import org.osoa.sca.annotations.ConversationID; +import org.osoa.sca.annotations.Scope; +import org.osoa.sca.annotations.Service; + +/** + * Simple conversational Service that is used to testing the method + * ComponentContext.createSelfReference() + * + * @version $Date$ $Revision$ + */ +@Service(ConversationalService.class) +@Scope("CONVERSATION") +public class ConversationalServiceImpl implements ConversationalService { + + /** + * The Conversation ID + */ + private Object m_ConversationID; + + /** + * Reference to the ComponentContext. + */ + @Context + protected ComponentContext m_Ctx; + + /** + * Some user data + */ + private String m_UserData = DEFAULT_USER_DATA; + + /** + * Constructor + */ + public ConversationalServiceImpl() { + System.out.println("New instance of " + this + " created"); + } + + /** + * Used to inject the Conversation ID + * + * @param a_ConversationID the Conversation ID + */ + @ConversationID + public void setConversationID(Object a_ConversationID) { + m_ConversationID = a_ConversationID; + System.out.println("Converstation ID set on " + this + " to " + a_ConversationID); + } + + /** + * Retrieves the conversation ID for this Service + * + * @return The conversation ID for this Service + */ + public Object getConversationID() { + return m_ConversationID; + } + + /** + * Creates a self reference to this Service + * + * @return A self reference to this Service + */ + public ServiceReference createSelfRef() { + return m_Ctx.createSelfReference(ConversationalService.class); + } + + /** + * Sets some user data on the instance + * + * @param a_Data Some data + * + * @See {@link #getUserData()} + */ + public void setUserData(String a_Data) { + m_UserData = a_Data; + } + + /** + * Gets some user data on the instance + * + * @return Some data + * + * @See {@link #setUserData(String)} + */ + public String getUserData() { + return m_UserData; + } +} diff --git a/tags/java/sca/1.5.1-RC4/itest/callablereferences/src/main/java/org/apache/tuscany/sca/itest/callablerefreturn/Alpha.java b/tags/java/sca/1.5.1-RC4/itest/callablereferences/src/main/java/org/apache/tuscany/sca/itest/callablerefreturn/Alpha.java new file mode 100644 index 0000000000..ab21421c4d --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/callablereferences/src/main/java/org/apache/tuscany/sca/itest/callablerefreturn/Alpha.java @@ -0,0 +1,27 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.callablerefreturn; + +import org.osoa.sca.annotations.Remotable; + +@Remotable +public interface Alpha +{ + boolean run(); +} diff --git a/tags/java/sca/1.5.1-RC4/itest/callablereferences/src/main/java/org/apache/tuscany/sca/itest/callablerefreturn/AlphaImpl.java b/tags/java/sca/1.5.1-RC4/itest/callablereferences/src/main/java/org/apache/tuscany/sca/itest/callablerefreturn/AlphaImpl.java new file mode 100644 index 0000000000..5b5984b164 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/callablereferences/src/main/java/org/apache/tuscany/sca/itest/callablerefreturn/AlphaImpl.java @@ -0,0 +1,86 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.callablerefreturn; + +import org.osoa.sca.CallableReference; +import org.osoa.sca.ComponentContext; +import org.osoa.sca.Conversation; +import org.osoa.sca.annotations.Context; +import org.osoa.sca.annotations.Reference; +import org.osoa.sca.annotations.Scope; + +@Scope("COMPOSITE") +public class AlphaImpl implements Alpha { + @Reference + public Beta beta; + + @Context + protected ComponentContext componentContext; + + public boolean run() { + CallableReference gammaRef = null; + try { + Object conversationId1 = null; + Object conversationId2 = null; + + // it is expected that this call returns a reference to Gamma that + // reuses the established Conversation + gammaRef = beta.getRef(); + + // no Conversation exists + Conversation con = gammaRef.getConversation(); + if (con == null) { + System.out.println("Alpha: Conversation to gamma is null"); + } else { + System.out + .println("Alpha: Conversation to gamma exists. conversationId=" + + con.getConversationID()); + conversationId1 = con.getConversationID(); + } + + // this call should reuse a Conversation, but as none exists it + // creates a new conversation + gammaRef.getService().doSomething(); + con = gammaRef.getConversation(); + if (con == null) { + System.out.println("Alpha: Conversation to gamma is null"); + } else { + System.out + .println("Alpha: Conversation to gamma exists. conversationId=" + + con.getConversationID()); + conversationId2 = con.getConversationID(); + } + + if ((conversationId1 == null) || (conversationId2 == null)) { + return false; + } + + boolean testPassed = conversationId1.equals(conversationId2); + return testPassed; + } catch (Exception e) { + e.printStackTrace(); + return false; + } finally { + if (gammaRef != null) { + gammaRef.getService().stop(); + } + } + } + +} diff --git a/tags/java/sca/1.5.1-RC4/itest/callablereferences/src/main/java/org/apache/tuscany/sca/itest/callablerefreturn/Beta.java b/tags/java/sca/1.5.1-RC4/itest/callablereferences/src/main/java/org/apache/tuscany/sca/itest/callablerefreturn/Beta.java new file mode 100644 index 0000000000..223c467f47 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/callablereferences/src/main/java/org/apache/tuscany/sca/itest/callablerefreturn/Beta.java @@ -0,0 +1,28 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.callablerefreturn; + +import org.osoa.sca.CallableReference; +import org.osoa.sca.annotations.Remotable; + +@Remotable +public interface Beta +{ + CallableReference getRef(); +} diff --git a/tags/java/sca/1.5.1-RC4/itest/callablereferences/src/main/java/org/apache/tuscany/sca/itest/callablerefreturn/BetaImpl.java b/tags/java/sca/1.5.1-RC4/itest/callablereferences/src/main/java/org/apache/tuscany/sca/itest/callablerefreturn/BetaImpl.java new file mode 100644 index 0000000000..ed4e66bec3 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/callablereferences/src/main/java/org/apache/tuscany/sca/itest/callablerefreturn/BetaImpl.java @@ -0,0 +1,44 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.callablerefreturn; + +import org.osoa.sca.CallableReference; +import org.osoa.sca.ComponentContext; +import org.osoa.sca.ServiceReference; +import org.osoa.sca.annotations.Context; +import org.osoa.sca.annotations.Reference; +import org.osoa.sca.annotations.Scope; + +@Scope("COMPOSITE") +public class BetaImpl implements Beta +{ + @Context + protected ComponentContext componentContext; + + @Reference + public Gamma gamma; + + public CallableReference getRef() + { + ServiceReference gammaRef = componentContext.getServiceReference(Gamma.class, "gamma"); + gammaRef.getService().start(); + return gammaRef; + } + +} diff --git a/tags/java/sca/1.5.1-RC4/itest/callablereferences/src/main/java/org/apache/tuscany/sca/itest/callablerefreturn/Gamma.java b/tags/java/sca/1.5.1-RC4/itest/callablereferences/src/main/java/org/apache/tuscany/sca/itest/callablerefreturn/Gamma.java new file mode 100644 index 0000000000..e32051373f --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/callablereferences/src/main/java/org/apache/tuscany/sca/itest/callablerefreturn/Gamma.java @@ -0,0 +1,35 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.callablerefreturn; + +import org.osoa.sca.annotations.Conversational; +import org.osoa.sca.annotations.EndsConversation; +import org.osoa.sca.annotations.Remotable; + +@Remotable +@Conversational +public interface Gamma +{ + void start(); + + void doSomething(); + + @EndsConversation + void stop(); +} diff --git a/tags/java/sca/1.5.1-RC4/itest/callablereferences/src/main/java/org/apache/tuscany/sca/itest/callablerefreturn/GammaImpl.java b/tags/java/sca/1.5.1-RC4/itest/callablereferences/src/main/java/org/apache/tuscany/sca/itest/callablerefreturn/GammaImpl.java new file mode 100644 index 0000000000..adf5a1c1ce --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/callablereferences/src/main/java/org/apache/tuscany/sca/itest/callablerefreturn/GammaImpl.java @@ -0,0 +1,47 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.callablerefreturn; + +import org.osoa.sca.annotations.ConversationID; +import org.osoa.sca.annotations.Scope; + +@Scope("CONVERSATION") +public class GammaImpl implements Gamma +{ + @ConversationID + protected String conversationId; + + + public void start() + { + System.out.println("Gamma:start(), conversationId=" + conversationId); + } + + + public void doSomething() + { + System.out.println("Gamma:doSomething(), conversationId=" + conversationId); + } + + + public void stop() + { + System.out.println("Gamma:stop(), conversationId=" + conversationId); + } +} diff --git a/tags/java/sca/1.5.1-RC4/itest/callablereferences/src/main/resources/CallableReferenceConversationalTest.composite b/tags/java/sca/1.5.1-RC4/itest/callablereferences/src/main/resources/CallableReferenceConversationalTest.composite new file mode 100644 index 0000000000..0bf8f7ef1e --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/callablereferences/src/main/resources/CallableReferenceConversationalTest.composite @@ -0,0 +1,29 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/tags/java/sca/1.5.1-RC4/itest/callablereferences/src/main/resources/CallableReferenceReturnTest.composite b/tags/java/sca/1.5.1-RC4/itest/callablereferences/src/main/resources/CallableReferenceReturnTest.composite new file mode 100644 index 0000000000..5b3add1e61 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/callablereferences/src/main/resources/CallableReferenceReturnTest.composite @@ -0,0 +1,39 @@ + + + + + + + + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/callablereferences/src/main/resources/CallableReferenceTest.composite b/tags/java/sca/1.5.1-RC4/itest/callablereferences/src/main/resources/CallableReferenceTest.composite new file mode 100644 index 0000000000..49b75f56e4 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/callablereferences/src/main/resources/CallableReferenceTest.composite @@ -0,0 +1,45 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/tags/java/sca/1.5.1-RC4/itest/callablereferences/src/main/resources/nodeA/CompositeA.composite b/tags/java/sca/1.5.1-RC4/itest/callablereferences/src/main/resources/nodeA/CompositeA.composite new file mode 100644 index 0000000000..9216f44191 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/callablereferences/src/main/resources/nodeA/CompositeA.composite @@ -0,0 +1,46 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/tags/java/sca/1.5.1-RC4/itest/callablereferences/src/main/resources/nodeA/META-INF/sca-contribution.xml b/tags/java/sca/1.5.1-RC4/itest/callablereferences/src/main/resources/nodeA/META-INF/sca-contribution.xml new file mode 100644 index 0000000000..95021f72a4 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/callablereferences/src/main/resources/nodeA/META-INF/sca-contribution.xml @@ -0,0 +1,22 @@ + + + + + \ No newline at end of file diff --git a/tags/java/sca/1.5.1-RC4/itest/callablereferences/src/main/resources/nodeB/CompositeB.composite b/tags/java/sca/1.5.1-RC4/itest/callablereferences/src/main/resources/nodeB/CompositeB.composite new file mode 100644 index 0000000000..42d739564c --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/callablereferences/src/main/resources/nodeB/CompositeB.composite @@ -0,0 +1,43 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/tags/java/sca/1.5.1-RC4/itest/callablereferences/src/main/resources/nodeB/META-INF/sca-contribution.xml b/tags/java/sca/1.5.1-RC4/itest/callablereferences/src/main/resources/nodeB/META-INF/sca-contribution.xml new file mode 100644 index 0000000000..2edda61601 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/callablereferences/src/main/resources/nodeB/META-INF/sca-contribution.xml @@ -0,0 +1,22 @@ + + + + + \ No newline at end of file diff --git a/tags/java/sca/1.5.1-RC4/itest/callablereferences/src/test/java/org/apache/tuscany/sca/itest/callableref/CallableReferenceConversationalTestCase.java b/tags/java/sca/1.5.1-RC4/itest/callablereferences/src/test/java/org/apache/tuscany/sca/itest/callableref/CallableReferenceConversationalTestCase.java new file mode 100644 index 0000000000..a9cbb5d0a1 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/callablereferences/src/test/java/org/apache/tuscany/sca/itest/callableref/CallableReferenceConversationalTestCase.java @@ -0,0 +1,109 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.callableref; + +import junit.framework.Assert; + +import org.apache.tuscany.sca.host.embedded.SCADomain; +import org.apache.tuscany.sca.itest.callablerefconversational.ConversationalService; +import org.junit.AfterClass; +import org.junit.BeforeClass; +import org.junit.Test; +import org.osoa.sca.ServiceReference; + +/** + * Simple test case that creates a ServiceReference to a Conversational Component + * using ComponentContext.createSelfReference() + *

+ * This test case is for TUSCANY-2208 + * + * @version $Date$ $Revision$ + */ +public class CallableReferenceConversationalTestCase { + private static SCADomain domain; + private static ConversationalService acomponent; + + @BeforeClass + public static void init() throws Exception { + domain = SCADomain.newInstance("CallableReferenceConversationalTest.composite"); + Assert.assertNotNull(domain); + acomponent = domain.getService(ConversationalService.class, "ConversationalComponent"); + } + + @AfterClass + public static void destroy() throws Exception { + if (domain != null) { + domain.close(); + } + } + + /** + * This is a dummy test so that this Unit Test has a test so it will build. + * Once TUSCANY-2208 is fixed, this dummy test method can be removed + */ + @Test + public void dummyTestRemoveWhenTuscany2208IsFixed() { + } + + /** + * Tests creating Self References and validate them with Conversation IDs + */ + // Disabled until TUSCANY-2208 is fixed + // @Test + public void testCreateSelfRefUsingConvID() { + Assert.assertNotNull(acomponent); + + final Object origConvID = acomponent.getConversationID(); + Assert.assertNotNull(origConvID); + final ServiceReference ref = acomponent.createSelfRef(); + Assert.assertNotNull(ref); + + final ConversationalService resolvedRef = ref.getService(); + Assert.assertNotNull(resolvedRef); + final Object newConvID = resolvedRef.getConversationID(); + Assert.assertNotNull(newConvID); + + Assert.assertEquals(origConvID, newConvID); + } + + /** + * Tests creating Self References and validate them with user specified data + */ + // Disabled until TUSCANY-2208 is fixed + // @Test + public void testCreateSelfRefUsingUserData() { + Assert.assertNotNull(acomponent); + + final String origUserData = acomponent.getUserData(); + Assert.assertEquals(ConversationalService.DEFAULT_USER_DATA, origUserData); + + final String userData = "Some new user data set at " + System.currentTimeMillis(); + acomponent.setUserData(userData); + + final ServiceReference ref = acomponent.createSelfRef(); + Assert.assertNotNull(ref); + + final ConversationalService resolvedRef = ref.getService(); + Assert.assertNotNull(resolvedRef); + final String newUserData = resolvedRef.getUserData(); + Assert.assertNotNull(newUserData); + + Assert.assertEquals(userData, newUserData); + } +} diff --git a/tags/java/sca/1.5.1-RC4/itest/callablereferences/src/test/java/org/apache/tuscany/sca/itest/callableref/CallableReferenceRemoteTestCase.java b/tags/java/sca/1.5.1-RC4/itest/callablereferences/src/test/java/org/apache/tuscany/sca/itest/callableref/CallableReferenceRemoteTestCase.java new file mode 100644 index 0000000000..ba9020811c --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/callablereferences/src/test/java/org/apache/tuscany/sca/itest/callableref/CallableReferenceRemoteTestCase.java @@ -0,0 +1,145 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.callableref; + + +import static junit.framework.Assert.assertEquals; + +import java.io.File; + +import junit.framework.Assert; + +import org.apache.tuscany.sca.node.SCAClient; +import org.apache.tuscany.sca.node.SCAContribution; +import org.apache.tuscany.sca.node.SCANode; +import org.apache.tuscany.sca.node.SCANodeFactory; +import org.junit.AfterClass; +import org.junit.BeforeClass; +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 SCANode nodeA; + private static SCANode nodeB; + + private static AComponent acomponent; + + @BeforeClass + public static void init() throws Exception { + + try { + + System.out.println("Setting up nodes"); + + SCANodeFactory nodeFactory = SCANodeFactory.newInstance(); + nodeA = nodeFactory.createSCANode(new File("src/main/resources/nodeA/CompositeA.composite").toURL().toString(), + new SCAContribution("TestContribution", + new File("src/main/resources/nodeA").toURL().toString())); + + + nodeB = nodeFactory.createSCANode(new File("src/main/resources/nodeB/CompositeB.composite").toURL().toString(), + new SCAContribution("TestContribution", + new File("src/main/resources/nodeB").toURL().toString())); + + + nodeA.start(); + nodeB.start(); + + acomponent = ((SCAClient)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 + 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/tags/java/sca/1.5.1-RC4/itest/callablereferences/src/test/java/org/apache/tuscany/sca/itest/callableref/CallableReferenceReturnTestCase.java b/tags/java/sca/1.5.1-RC4/itest/callablereferences/src/test/java/org/apache/tuscany/sca/itest/callableref/CallableReferenceReturnTestCase.java new file mode 100644 index 0000000000..f2d8fe5d64 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/callablereferences/src/test/java/org/apache/tuscany/sca/itest/callableref/CallableReferenceReturnTestCase.java @@ -0,0 +1,48 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.callableref; + +import org.apache.tuscany.sca.host.embedded.SCADomain; +import org.apache.tuscany.sca.itest.callablerefreturn.Alpha; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.BeforeClass; +import org.junit.Test; + +public class CallableReferenceReturnTestCase { + private static SCADomain domain; + private static Alpha alpha; + + @BeforeClass + public static void init() throws Exception { + domain = SCADomain.newInstance("CallableReferenceReturnTest.composite"); + alpha = domain.getService(Alpha.class, "Alpha"); + } + + @AfterClass + public static void destroy() throws Exception { + domain.close(); + } + + @Test + public void testCallableReferenceReturn() { + Assert.assertTrue(alpha.run()); + } + +} diff --git a/tags/java/sca/1.5.1-RC4/itest/callablereferences/src/test/java/org/apache/tuscany/sca/itest/callableref/CallableReferenceTestCase.java b/tags/java/sca/1.5.1-RC4/itest/callablereferences/src/test/java/org/apache/tuscany/sca/itest/callableref/CallableReferenceTestCase.java new file mode 100644 index 0000000000..d785a6a397 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/callablereferences/src/test/java/org/apache/tuscany/sca/itest/callableref/CallableReferenceTestCase.java @@ -0,0 +1,83 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.callableref; + +import static junit.framework.Assert.assertEquals; +import junit.framework.Assert; + +import org.apache.tuscany.sca.host.embedded.SCADomain; +import org.junit.AfterClass; +import org.junit.BeforeClass; +import org.junit.Test; + +public class CallableReferenceTestCase { + private static SCADomain domain; + private static AComponent acomponent; + + @BeforeClass + public static void init() throws Exception { + domain = SCADomain.newInstance("CallableReferenceTest.composite"); + acomponent = domain.getService(AComponent.class, "AComponent"); + } + + @AfterClass + public static void destroy() throws Exception { + domain.close(); + } + + @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/tags/java/sca/1.5.1-RC4/itest/callback-api/pom.xml b/tags/java/sca/1.5.1-RC4/itest/callback-api/pom.xml new file mode 100644 index 0000000000..d351f7a813 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/callback-api/pom.xml @@ -0,0 +1,50 @@ + + + + 4.0.0 + + org.apache.tuscany.sca + tuscany-itest + 1.5.1 + ../pom.xml + + itest-callback-api + Apache Tuscany SCA iTest Callback API + + + + org.apache.tuscany.sca + tuscany-host-embedded + 1.5.1 + + + + org.apache.tuscany.sca + tuscany-implementation-java-runtime + 1.5.1 + runtime + + + + + ${basedir}/../build-was-integration.xml + ${basedir}/../wasAdmin.py + + diff --git a/tags/java/sca/1.5.1-RC4/itest/callback-api/src/main/java/org/apache/tuscany/sca/test/CallBackApiCallBack.java b/tags/java/sca/1.5.1-RC4/itest/callback-api/src/main/java/org/apache/tuscany/sca/test/CallBackApiCallBack.java new file mode 100644 index 0000000000..de17ba2f0d --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/callback-api/src/main/java/org/apache/tuscany/sca/test/CallBackApiCallBack.java @@ -0,0 +1,38 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.osoa.sca.annotations.Remotable; + +@Remotable +/** + * + */ +public interface CallBackApiCallBack { + /** + * This function is defined in CallBackApiClientImpl + */ + public void callBackMessage(String aString); + + /** + * This function is defined in CallBackApiClientImpl + */ + public void callBackIncrement(String aString); + +} diff --git a/tags/java/sca/1.5.1-RC4/itest/callback-api/src/main/java/org/apache/tuscany/sca/test/CallBackApiClient.java b/tags/java/sca/1.5.1-RC4/itest/callback-api/src/main/java/org/apache/tuscany/sca/test/CallBackApiClient.java new file mode 100644 index 0000000000..5fd4a71466 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/callback-api/src/main/java/org/apache/tuscany/sca/test/CallBackApiClient.java @@ -0,0 +1,30 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.osoa.sca.annotations.Remotable; + +@Remotable +public interface CallBackApiClient { + /** + * This function is defined in CallBackApiClientImpl + */ + public void run(); + +} diff --git a/tags/java/sca/1.5.1-RC4/itest/callback-api/src/main/java/org/apache/tuscany/sca/test/CallBackApiClientImpl.java b/tags/java/sca/1.5.1-RC4/itest/callback-api/src/main/java/org/apache/tuscany/sca/test/CallBackApiClientImpl.java new file mode 100644 index 0000000000..274984abb3 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/callback-api/src/main/java/org/apache/tuscany/sca/test/CallBackApiClientImpl.java @@ -0,0 +1,206 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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 junit.framework.Assert; + +import org.osoa.sca.annotations.Reference; +import org.osoa.sca.annotations.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(); + + return; + } + + /** + * 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); + return; + } + + /** + * 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()); + return; + } + + /** + * 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/tags/java/sca/1.5.1-RC4/itest/callback-api/src/main/java/org/apache/tuscany/sca/test/CallBackApiService.java b/tags/java/sca/1.5.1-RC4/itest/callback-api/src/main/java/org/apache/tuscany/sca/test/CallBackApiService.java new file mode 100644 index 0000000000..33de1e7739 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/callback-api/src/main/java/org/apache/tuscany/sca/test/CallBackApiService.java @@ -0,0 +1,50 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.osoa.sca.annotations.Callback; +import org.osoa.sca.annotations.Remotable; + +@Remotable +@Callback(CallBackApiCallBack.class) +/** + * + */ +public interface CallBackApiService { + /** + * This function is defined in CallBackApiServiceImpl + */ + public void knockKnock(String aString); + + /** + * This function is defined in CallBackApiServiceImpl + */ + public void knockKnockByRef(String aString); + + /** + * This function is defined in CallBackApiServiceImpl + */ + public void noCallBack(String aString); + + /** + * This function is defined in CallBackApiServiceImpl + */ + public void multiCallBack(String aString); + +} diff --git a/tags/java/sca/1.5.1-RC4/itest/callback-api/src/main/java/org/apache/tuscany/sca/test/CallBackApiServiceImpl.java b/tags/java/sca/1.5.1-RC4/itest/callback-api/src/main/java/org/apache/tuscany/sca/test/CallBackApiServiceImpl.java new file mode 100644 index 0000000000..61e2c7ee8f --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/callback-api/src/main/java/org/apache/tuscany/sca/test/CallBackApiServiceImpl.java @@ -0,0 +1,123 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.osoa.sca.CallableReference; +import org.osoa.sca.ComponentContext; +import org.osoa.sca.RequestContext; +import org.osoa.sca.annotations.Callback; +import org.osoa.sca.annotations.Context; +import org.osoa.sca.annotations.Service; + +@Service(CallBackApiService.class) +public class CallBackApiServiceImpl implements CallBackApiService { + + @Context + protected ComponentContext componentContext; + /** + * Object of CallBackApiCallBack class + */ + private CallBackApiCallBack callback; + + @Callback + protected CallableReference 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"); + return; + + } + + /** + * 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"); + return; + + } + + /** + * 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"); + return; + + } + + /** + * 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); + + return; + + } + + /** + * 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/tags/java/sca/1.5.1-RC4/itest/callback-api/src/main/resources/CallBackApiTest.composite b/tags/java/sca/1.5.1-RC4/itest/callback-api/src/main/resources/CallBackApiTest.composite new file mode 100644 index 0000000000..946c4862ee --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/callback-api/src/main/resources/CallBackApiTest.composite @@ -0,0 +1,33 @@ + + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/callback-api/src/main/resources/META-INF/sca-contribution.xml b/tags/java/sca/1.5.1-RC4/itest/callback-api/src/main/resources/META-INF/sca-contribution.xml new file mode 100644 index 0000000000..19eb25631e --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/callback-api/src/main/resources/META-INF/sca-contribution.xml @@ -0,0 +1,23 @@ + + + + + \ No newline at end of file diff --git a/tags/java/sca/1.5.1-RC4/itest/callback-api/src/test/java/org/apache/tuscany/sca/test/CallBackApiTestCase.java b/tags/java/sca/1.5.1-RC4/itest/callback-api/src/test/java/org/apache/tuscany/sca/test/CallBackApiTestCase.java new file mode 100644 index 0000000000..9471049c74 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/callback-api/src/test/java/org/apache/tuscany/sca/test/CallBackApiTestCase.java @@ -0,0 +1,62 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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 junit.framework.TestCase; + +import org.apache.tuscany.sca.host.embedded.SCADomain; + +public class CallBackApiTestCase extends TestCase { + + private static SCADomain domain; + 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. + */ + public void testCallBackBasic() { + aCallBackClient.run(); + } + + /** + * This function creates the SCADomain instance and gets an Instance of CallBackApiClient.class + */ + @Override + protected void setUp() throws Exception { + if (domain == null) { + domain = SCADomain.newInstance("CallBackApiTest.composite"); + } + + aCallBackClient = domain.getService(CallBackApiClient.class, "CallBackApiClient"); + } + + /** + * This function destroys the SCADomain instance that was created in setUp() + */ + @Override + protected void tearDown() throws Exception { + domain.close(); + } + +} diff --git a/tags/java/sca/1.5.1-RC4/itest/callback-basic/pom.xml b/tags/java/sca/1.5.1-RC4/itest/callback-basic/pom.xml new file mode 100644 index 0000000000..13a2c16e5c --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/callback-basic/pom.xml @@ -0,0 +1,50 @@ + + + + 4.0.0 + + org.apache.tuscany.sca + tuscany-itest + 1.5.1 + ../pom.xml + + itest-callback-basic + Apache Tuscany SCA iTest Callback Basic + + + + org.apache.tuscany.sca + tuscany-host-embedded + 1.5.1 + + + + org.apache.tuscany.sca + tuscany-implementation-java-runtime + 1.5.1 + runtime + + + + + ${basedir}/../build-was-integration.xml + ${basedir}/../wasAdmin.py + + diff --git a/tags/java/sca/1.5.1-RC4/itest/callback-basic/src/main/java/org/apache/tuscany/sca/test/CallBackBasicCallBack.java b/tags/java/sca/1.5.1-RC4/itest/callback-basic/src/main/java/org/apache/tuscany/sca/test/CallBackBasicCallBack.java new file mode 100644 index 0000000000..5e9d3d6821 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/callback-basic/src/main/java/org/apache/tuscany/sca/test/CallBackBasicCallBack.java @@ -0,0 +1,33 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.osoa.sca.annotations.Remotable; + +@Remotable +/** + * + */ +public interface CallBackBasicCallBack { + + public void callBackMessage(String aString); + + public void callBackIncrement(String aString); + +} diff --git a/tags/java/sca/1.5.1-RC4/itest/callback-basic/src/main/java/org/apache/tuscany/sca/test/CallBackBasicClient.java b/tags/java/sca/1.5.1-RC4/itest/callback-basic/src/main/java/org/apache/tuscany/sca/test/CallBackBasicClient.java new file mode 100644 index 0000000000..9f4019f28c --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/callback-basic/src/main/java/org/apache/tuscany/sca/test/CallBackBasicClient.java @@ -0,0 +1,28 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.osoa.sca.annotations.Remotable; + +@Remotable +public interface CallBackBasicClient { + + public void run(); + +} diff --git a/tags/java/sca/1.5.1-RC4/itest/callback-basic/src/main/java/org/apache/tuscany/sca/test/CallBackBasicClientImpl.java b/tags/java/sca/1.5.1-RC4/itest/callback-basic/src/main/java/org/apache/tuscany/sca/test/CallBackBasicClientImpl.java new file mode 100644 index 0000000000..e0e6d7eb8c --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/callback-basic/src/main/java/org/apache/tuscany/sca/test/CallBackBasicClientImpl.java @@ -0,0 +1,135 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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 junit.framework.Assert; + +import org.osoa.sca.annotations.Reference; +import org.osoa.sca.annotations.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(); + + return; + } + + 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); + + return; + } + + 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()); + return; + } + + 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/tags/java/sca/1.5.1-RC4/itest/callback-basic/src/main/java/org/apache/tuscany/sca/test/CallBackBasicService.java b/tags/java/sca/1.5.1-RC4/itest/callback-basic/src/main/java/org/apache/tuscany/sca/test/CallBackBasicService.java new file mode 100644 index 0000000000..bd41fa7037 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/callback-basic/src/main/java/org/apache/tuscany/sca/test/CallBackBasicService.java @@ -0,0 +1,37 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.osoa.sca.annotations.Callback; +import org.osoa.sca.annotations.Remotable; + +@Remotable +@Callback(CallBackBasicCallBack.class) +/** + * + */ +public interface CallBackBasicService { + + public void knockKnock(String aString); + + public void noCallBack(String aString); + + public void multiCallBack(String aString); + +} diff --git a/tags/java/sca/1.5.1-RC4/itest/callback-basic/src/main/java/org/apache/tuscany/sca/test/CallBackBasicServiceImpl.java b/tags/java/sca/1.5.1-RC4/itest/callback-basic/src/main/java/org/apache/tuscany/sca/test/CallBackBasicServiceImpl.java new file mode 100644 index 0000000000..4ca2dc9af9 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/callback-basic/src/main/java/org/apache/tuscany/sca/test/CallBackBasicServiceImpl.java @@ -0,0 +1,59 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.osoa.sca.annotations.Callback; +import org.osoa.sca.annotations.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"); + return; + + } + + 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"); + return; + + } + + public void noCallBack(String aString) { + + System.out.println("CallBackBasicServiceImpl message received: " + aString); + // System.out.println("CallBackBasicServiceImpl No response desired"); + return; + + } +} diff --git a/tags/java/sca/1.5.1-RC4/itest/callback-basic/src/main/resources/CallBackBasicTest.composite b/tags/java/sca/1.5.1-RC4/itest/callback-basic/src/main/resources/CallBackBasicTest.composite new file mode 100644 index 0000000000..c506956088 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/callback-basic/src/main/resources/CallBackBasicTest.composite @@ -0,0 +1,33 @@ + + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/callback-basic/src/main/resources/META-INF/sca-contribution.xml b/tags/java/sca/1.5.1-RC4/itest/callback-basic/src/main/resources/META-INF/sca-contribution.xml new file mode 100644 index 0000000000..adf28214f6 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/callback-basic/src/main/resources/META-INF/sca-contribution.xml @@ -0,0 +1,23 @@ + + + + + \ No newline at end of file diff --git a/tags/java/sca/1.5.1-RC4/itest/callback-basic/src/test/java/org/apache/tuscany/sca/test/CallBackBasicTestCase.java b/tags/java/sca/1.5.1-RC4/itest/callback-basic/src/test/java/org/apache/tuscany/sca/test/CallBackBasicTestCase.java new file mode 100644 index 0000000000..32c26a348a --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/callback-basic/src/test/java/org/apache/tuscany/sca/test/CallBackBasicTestCase.java @@ -0,0 +1,50 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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 junit.framework.TestCase; + +import org.apache.tuscany.sca.host.embedded.SCADomain; + +public class CallBackBasicTestCase extends TestCase { + + private static SCADomain domain; + private CallBackBasicClient aCallBackClient; + + public void testCallBackBasic() { + aCallBackClient.run(); + } + + @Override + protected void setUp() throws Exception { + if( domain==null ) { + domain = SCADomain.newInstance("CallBackBasicTest.composite"); + } + + aCallBackClient = domain.getService(CallBackBasicClient.class, "CallBackBasicClient"); + } + + @Override + protected void tearDown() throws Exception { + domain.close(); + } + + +} diff --git a/tags/java/sca/1.5.1-RC4/itest/callback-complex-type/pom.xml b/tags/java/sca/1.5.1-RC4/itest/callback-complex-type/pom.xml new file mode 100644 index 0000000000..90ab9d74a9 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/callback-complex-type/pom.xml @@ -0,0 +1,45 @@ + + + + 4.0.0 + + org.apache.tuscany.sca + tuscany-itest + 1.5.1 + ../pom.xml + + itest-callback-complex-type + Apache Tuscany SCA iTest Callback Complex Type + + + + org.apache.tuscany.sca + tuscany-host-embedded + 1.5.1 + + + + org.apache.tuscany.sca + tuscany-implementation-java-runtime + 1.5.1 + runtime + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/callback-complex-type/src/main/java/org/apache/tuscany/sca/test/CallBackCTypeCallBack.java b/tags/java/sca/1.5.1-RC4/itest/callback-complex-type/src/main/java/org/apache/tuscany/sca/test/CallBackCTypeCallBack.java new file mode 100644 index 0000000000..9fddb850ba --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/callback-complex-type/src/main/java/org/apache/tuscany/sca/test/CallBackCTypeCallBack.java @@ -0,0 +1,33 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.osoa.sca.annotations.Remotable; + +@Remotable +/** + * + */ +public interface CallBackCTypeCallBack { + + public void callBackMessage(String aString); + + public void callBackIncrement(String aString); + +} diff --git a/tags/java/sca/1.5.1-RC4/itest/callback-complex-type/src/main/java/org/apache/tuscany/sca/test/CallBackCTypeClient.java b/tags/java/sca/1.5.1-RC4/itest/callback-complex-type/src/main/java/org/apache/tuscany/sca/test/CallBackCTypeClient.java new file mode 100644 index 0000000000..739983c277 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/callback-complex-type/src/main/java/org/apache/tuscany/sca/test/CallBackCTypeClient.java @@ -0,0 +1,28 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.osoa.sca.annotations.Remotable; + +@Remotable +public interface CallBackCTypeClient { + + public void run(); + +} diff --git a/tags/java/sca/1.5.1-RC4/itest/callback-complex-type/src/main/java/org/apache/tuscany/sca/test/CallBackCTypeClientImpl.java b/tags/java/sca/1.5.1-RC4/itest/callback-complex-type/src/main/java/org/apache/tuscany/sca/test/CallBackCTypeClientImpl.java new file mode 100644 index 0000000000..d2b03fcde7 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/callback-complex-type/src/main/java/org/apache/tuscany/sca/test/CallBackCTypeClientImpl.java @@ -0,0 +1,142 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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 junit.framework.Assert; + +import org.osoa.sca.annotations.Reference; +import org.osoa.sca.annotations.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(); + + return; + } + + 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); + return; + } + + 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()); + return; + } + + 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/tags/java/sca/1.5.1-RC4/itest/callback-complex-type/src/main/java/org/apache/tuscany/sca/test/CallBackCTypeService.java b/tags/java/sca/1.5.1-RC4/itest/callback-complex-type/src/main/java/org/apache/tuscany/sca/test/CallBackCTypeService.java new file mode 100644 index 0000000000..ffbf4f35fa --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/callback-complex-type/src/main/java/org/apache/tuscany/sca/test/CallBackCTypeService.java @@ -0,0 +1,36 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.osoa.sca.annotations.Remotable; + +@Remotable +// @Callback(CallBackCTypeCallBack.class) +/** + * + */ +public interface CallBackCTypeService { + + public void knockKnock(String aString); + + public void noCallBack(String aString); + + public void multiCallBack(String aString); + +} diff --git a/tags/java/sca/1.5.1-RC4/itest/callback-complex-type/src/main/java/org/apache/tuscany/sca/test/CallBackCTypeServiceImpl.java b/tags/java/sca/1.5.1-RC4/itest/callback-complex-type/src/main/java/org/apache/tuscany/sca/test/CallBackCTypeServiceImpl.java new file mode 100644 index 0000000000..dc31ed156b --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/callback-complex-type/src/main/java/org/apache/tuscany/sca/test/CallBackCTypeServiceImpl.java @@ -0,0 +1,62 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.osoa.sca.annotations.Callback; +import org.osoa.sca.annotations.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"); + return; + + } + + 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"); + return; + + } + + public void noCallBack(String aString) { + + System.out.println("CallBackCTypeServiceImpl message received: " + aString); + System.out.println("CallBackCTypeServiceImpl No response desired"); + return; + + } +} diff --git a/tags/java/sca/1.5.1-RC4/itest/callback-complex-type/src/main/resources/CallBackCTypeClient.composite b/tags/java/sca/1.5.1-RC4/itest/callback-complex-type/src/main/resources/CallBackCTypeClient.composite new file mode 100644 index 0000000000..3f48f16389 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/callback-complex-type/src/main/resources/CallBackCTypeClient.composite @@ -0,0 +1,33 @@ + + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/callback-complex-type/src/main/resources/org/apache/tuscany/sca/test/CallBackCTypeServiceImpl.componentType b/tags/java/sca/1.5.1-RC4/itest/callback-complex-type/src/main/resources/org/apache/tuscany/sca/test/CallBackCTypeServiceImpl.componentType new file mode 100644 index 0000000000..ff38134df5 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/callback-complex-type/src/main/resources/org/apache/tuscany/sca/test/CallBackCTypeServiceImpl.componentType @@ -0,0 +1,28 @@ + + + + + + + + + + \ No newline at end of file diff --git a/tags/java/sca/1.5.1-RC4/itest/callback-complex-type/src/test/java/org/apache/tuscany/sca/test/CallBackCTypeTestCaseFIXME.java b/tags/java/sca/1.5.1-RC4/itest/callback-complex-type/src/test/java/org/apache/tuscany/sca/test/CallBackCTypeTestCaseFIXME.java new file mode 100644 index 0000000000..33d1afaecd --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/callback-complex-type/src/test/java/org/apache/tuscany/sca/test/CallBackCTypeTestCaseFIXME.java @@ -0,0 +1,48 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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 junit.framework.TestCase; + +import org.apache.tuscany.sca.host.embedded.SCADomain; + +//FIXME Fix this test case +public class CallBackCTypeTestCaseFIXME extends TestCase { + + private SCADomain domain; + private CallBackCTypeClient aCallBackClient; + + public void testCallBackBasic() { + aCallBackClient.run(); + } + + @Override + protected void setUp() throws Exception { + domain = SCADomain.newInstance("CallBackCTypeClient.composite"); + + aCallBackClient = + domain.getService(CallBackCTypeClient.class, "CallBackCTypeClient"); + } + + @Override + protected void tearDown() throws Exception { + domain.close(); + } + +} diff --git a/tags/java/sca/1.5.1-RC4/itest/callback-composite-scope/pom.xml b/tags/java/sca/1.5.1-RC4/itest/callback-composite-scope/pom.xml new file mode 100644 index 0000000000..bef06de1ab --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/callback-composite-scope/pom.xml @@ -0,0 +1,53 @@ + + + + + + + 4.0.0 + + org.apache.tuscany.sca + tuscany-itest + 1.5.1 + ../pom.xml + + itest-callback-composite-scope + Apache Tuscany SCA iTest Callback COMPOSITE Scope + + + + org.apache.tuscany.sca + tuscany-host-embedded + 1.5.1 + + + + org.apache.tuscany.sca + tuscany-implementation-java-runtime + 1.5.1 + runtime + + + + + ${basedir}/../build-was-integration.xml + ${basedir}/../wasAdmin.py + + diff --git a/tags/java/sca/1.5.1-RC4/itest/callback-composite-scope/src/main/java/org/apache/tuscany/sca/test/Helloworld.java b/tags/java/sca/1.5.1-RC4/itest/callback-composite-scope/src/main/java/org/apache/tuscany/sca/test/Helloworld.java new file mode 100644 index 0000000000..a5320a6492 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/callback-composite-scope/src/main/java/org/apache/tuscany/sca/test/Helloworld.java @@ -0,0 +1,34 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.osoa.sca.annotations.Callback; +import org.osoa.sca.annotations.Remotable; + +/** + * @version $Rev$ $Date$ + */ +@Remotable +@Callback(HelloworldCallback.class) +public interface Helloworld { + + String sayHello(String name); + +} diff --git a/tags/java/sca/1.5.1-RC4/itest/callback-composite-scope/src/main/java/org/apache/tuscany/sca/test/HelloworldCallback.java b/tags/java/sca/1.5.1-RC4/itest/callback-composite-scope/src/main/java/org/apache/tuscany/sca/test/HelloworldCallback.java new file mode 100644 index 0000000000..c37c2f57a2 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/callback-composite-scope/src/main/java/org/apache/tuscany/sca/test/HelloworldCallback.java @@ -0,0 +1,32 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.osoa.sca.annotations.Remotable; + +/** + * @version $Rev$ $Date$ + */ +@Remotable +public interface HelloworldCallback { + + String whoIs(String name); + +} diff --git a/tags/java/sca/1.5.1-RC4/itest/callback-composite-scope/src/main/java/org/apache/tuscany/sca/test/HelloworldDelegate.java b/tags/java/sca/1.5.1-RC4/itest/callback-composite-scope/src/main/java/org/apache/tuscany/sca/test/HelloworldDelegate.java new file mode 100644 index 0000000000..0d56e440cd --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/callback-composite-scope/src/main/java/org/apache/tuscany/sca/test/HelloworldDelegate.java @@ -0,0 +1,32 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.osoa.sca.annotations.Remotable; + +/** + * @version $Rev$ $Date$ + */ +@Remotable +public interface HelloworldDelegate { + + String sayHello(String name); + +} diff --git a/tags/java/sca/1.5.1-RC4/itest/callback-composite-scope/src/main/java/org/apache/tuscany/sca/test/HelloworldDelegateImpl.java b/tags/java/sca/1.5.1-RC4/itest/callback-composite-scope/src/main/java/org/apache/tuscany/sca/test/HelloworldDelegateImpl.java new file mode 100644 index 0000000000..aa7217eb2a --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/callback-composite-scope/src/main/java/org/apache/tuscany/sca/test/HelloworldDelegateImpl.java @@ -0,0 +1,60 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.osoa.sca.annotations.ComponentName; +import org.osoa.sca.annotations.Property; +import org.osoa.sca.annotations.Reference; +import org.osoa.sca.annotations.Scope; +import org.osoa.sca.annotations.Service; + +/** + * A HelloworldDelegate implementation. The service method invocation is delegated to a Helloworld service + * reference injected into this component. + * + * @version $Rev$ $Date$ + */ +@Scope("COMPOSITE") +@Service(interfaces = {HelloworldDelegate.class, HelloworldCallback.class}) +public class HelloworldDelegateImpl implements HelloworldDelegate, HelloworldCallback { + + @ComponentName + protected String componentName; + + @Reference + public Helloworld helloworld; + + @Property + public String salutation; + + public String sayHello(String name) { + System.out.println(componentName+": HelloworldDelegateImpl("+this+").sayHello: " + name); + return helloworld.sayHello(name); + } + + public String whoIs(String name) { + System.out.println(componentName+": HelloworldDelegateImpl("+this+").whoIs: " + name); + if(!"world".equalsIgnoreCase(name)) { + return salutation; + } else { + return ""; + } + } +} diff --git a/tags/java/sca/1.5.1-RC4/itest/callback-composite-scope/src/main/java/org/apache/tuscany/sca/test/HelloworldImpl.java b/tags/java/sca/1.5.1-RC4/itest/callback-composite-scope/src/main/java/org/apache/tuscany/sca/test/HelloworldImpl.java new file mode 100644 index 0000000000..8107bcf42b --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/callback-composite-scope/src/main/java/org/apache/tuscany/sca/test/HelloworldImpl.java @@ -0,0 +1,46 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.osoa.sca.annotations.Callback; +import org.osoa.sca.annotations.ComponentName; +import org.osoa.sca.annotations.Scope; +import org.osoa.sca.annotations.Service; + +/** + * @version $Rev$ $Date$ + */ +@Service(Helloworld.class) +@Scope("COMPOSITE") +public class HelloworldImpl implements Helloworld { + + @ComponentName + protected String componentName; + + @Callback + public HelloworldCallback helloworldCallback; + + public String sayHello(String name) { + System.out.println(componentName+": HelloworldImpl("+this+").sayHello: " + name); + String msg = "Hello " + helloworldCallback.whoIs(name) + " " + name; + System.out.println("Msg: "+msg); + return msg; + } +} diff --git a/tags/java/sca/1.5.1-RC4/itest/callback-composite-scope/src/main/resources/HelloworldDelegate.composite b/tags/java/sca/1.5.1-RC4/itest/callback-composite-scope/src/main/resources/HelloworldDelegate.composite new file mode 100644 index 0000000000..1593c1dc23 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/callback-composite-scope/src/main/resources/HelloworldDelegate.composite @@ -0,0 +1,42 @@ + + + + + + + + + + + + + + + Monsieur + + + + + + Mr. + + diff --git a/tags/java/sca/1.5.1-RC4/itest/callback-composite-scope/src/main/resources/META-INF/sca-contribution.xml b/tags/java/sca/1.5.1-RC4/itest/callback-composite-scope/src/main/resources/META-INF/sca-contribution.xml new file mode 100644 index 0000000000..65b9ca501f --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/callback-composite-scope/src/main/resources/META-INF/sca-contribution.xml @@ -0,0 +1,26 @@ + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/callback-composite-scope/src/test/java/org/apache/tuscany/sca/test/CallbackTestCase.java b/tags/java/sca/1.5.1-RC4/itest/callback-composite-scope/src/test/java/org/apache/tuscany/sca/test/CallbackTestCase.java new file mode 100644 index 0000000000..bd967099dc --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/callback-composite-scope/src/test/java/org/apache/tuscany/sca/test/CallbackTestCase.java @@ -0,0 +1,66 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.host.embedded.SCADomain; +import org.junit.After; +import org.junit.Assert; +import org.junit.Before; +import org.junit.Ignore; +import org.junit.Test; + +/** + * @version $Rev$ $Date$ + */ +public class CallbackTestCase { + + private static SCADomain domain; + private HelloworldDelegate client; + private HelloworldDelegate client2; + private HelloworldCallback callback; + private HelloworldCallback callback2; + + @Test + @Ignore("TUSCANY-2823") + public void testCallbacks() { + String name = "John"; + Assert.assertEquals("Hello "+callback.whoIs(name) + " " + name, client.sayHello(name)); + Assert.assertEquals("Hello "+callback2.whoIs(name) + " " + name, client2.sayHello(name)); + } + + @Before + public void setUp() throws Exception { + if( domain == null ) { + domain = SCADomain.newInstance("HelloworldDelegate.composite"); + } + + client = domain.getService(HelloworldDelegate.class, "HelloworldDelegateComponent/HelloworldDelegate"); + callback = domain.getService(HelloworldCallback.class, "HelloworldDelegateComponent/HelloworldCallback"); + client2 = domain.getService(HelloworldDelegate.class, "HelloworldDelegateComponent2/HelloworldDelegate"); + callback2 = domain.getService(HelloworldCallback.class, "HelloworldDelegateComponent2/HelloworldCallback"); + } + + @After + public void tearDown() throws Exception { + domain.close(); + } + + +} diff --git a/tags/java/sca/1.5.1-RC4/itest/callback-id/pom.xml b/tags/java/sca/1.5.1-RC4/itest/callback-id/pom.xml new file mode 100644 index 0000000000..050bf35f84 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/callback-id/pom.xml @@ -0,0 +1,45 @@ + + + + 4.0.0 + + org.apache.tuscany.sca + tuscany-itest + 1.5.1 + ../pom.xml + + itest-callback-id + Apache Tuscany SCA iTest Callback ID + + + + org.apache.tuscany.sca + tuscany-host-embedded + 1.5.1 + + + + org.apache.tuscany.sca + tuscany-implementation-java-runtime + 1.5.1 + runtime + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/callback-id/src/main/java/org/apache/tuscany/sca/test/CallBackIdCallBack.java b/tags/java/sca/1.5.1-RC4/itest/callback-id/src/main/java/org/apache/tuscany/sca/test/CallBackIdCallBack.java new file mode 100644 index 0000000000..b14560a8c3 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/callback-id/src/main/java/org/apache/tuscany/sca/test/CallBackIdCallBack.java @@ -0,0 +1,31 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.osoa.sca.annotations.Remotable; + +@Remotable +/** + * + */ +public interface CallBackIdCallBack { + + public void callBackMessage(String aString); + +} diff --git a/tags/java/sca/1.5.1-RC4/itest/callback-id/src/main/java/org/apache/tuscany/sca/test/CallBackIdClient.java b/tags/java/sca/1.5.1-RC4/itest/callback-id/src/main/java/org/apache/tuscany/sca/test/CallBackIdClient.java new file mode 100644 index 0000000000..a9e551f8b4 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/callback-id/src/main/java/org/apache/tuscany/sca/test/CallBackIdClient.java @@ -0,0 +1,28 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.osoa.sca.annotations.Remotable; + +@Remotable +public interface CallBackIdClient { + + public void run(); + +} diff --git a/tags/java/sca/1.5.1-RC4/itest/callback-id/src/main/java/org/apache/tuscany/sca/test/CallBackIdClientImpl.java b/tags/java/sca/1.5.1-RC4/itest/callback-id/src/main/java/org/apache/tuscany/sca/test/CallBackIdClientImpl.java new file mode 100644 index 0000000000..59c9c3d069 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/callback-id/src/main/java/org/apache/tuscany/sca/test/CallBackIdClientImpl.java @@ -0,0 +1,147 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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 junit.framework.Assert; + +import org.osoa.sca.ComponentContext; +import org.osoa.sca.RequestContext; +import org.osoa.sca.ServiceReference; +import org.osoa.sca.annotations.Context; +import org.osoa.sca.annotations.Reference; +import org.osoa.sca.annotations.Service; + +@Service(CallBackIdClient.class) +public class CallBackIdClientImpl implements CallBackIdClient, CallBackIdCallBack { + + @Context + protected ComponentContext componentContext; + + @Reference + protected ServiceReference aCallBackService; + + private static String returnMessage = null; + private static Object monitor = new Object(); + private static Object callBackId; + + public void run() { + + // This tests the use of the set/get callbackId API both SCA generated + // and client specified. + + // Test1 uses a SCA generated callback ID and compare that with the + // callbackID returned during callback. + test11a(); + + // Test2 uses a Client specified callback ID and compare that with the + // callbackID returned during callback. + test11b(); + + return; + } + + private void test11a() { + + // Retrieve this services callback ID and save it. Once the callback is + // received the callback ID will be compared with the one + // returned. Equal is good. + + Object origCallBackId = aCallBackService.getCallbackID(); + aCallBackService.getService().knockKnock("Knock Knock - Test1"); + int count = 0; + + // + // If we cannot 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("CallBackIdITest - test11a - SCA Generated Id", origCallBackId, this.getCallBackId()); + + } + + private void test11b() { + + // Set the services callback ID and save it. Once the callback is + // received the callback ID will be compared with the one + // returned. Equal is good. + + String origCallBackId = "CallBackId1"; + aCallBackService.setCallbackID(origCallBackId); + + aCallBackService.getService().knockKnock("Knock Knock - Test2"); + 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("CallBackIdITest - 11b - Client Specified Id", origCallBackId, (String)this.getCallBackId()); + + } + + public String getReturnMessage() { + return returnMessage; + } + + public void setReturnMessage(String aReturnMessage) { + returnMessage = aReturnMessage; + } + + public void callBackMessage(String aString) { + + System.out.println("Entering callback callBackMessage: " + aString); + RequestContext rc = componentContext.getRequestContext(); + Object callBackId = rc.getServiceReference().getCallbackID(); + + synchronized (monitor) { + this.setReturnMessage(aString); + this.setCallBackId(callBackId); + monitor.notify(); + } + } + + protected Object getCallBackId() { + return callBackId; + } + + protected void setCallBackId(Object aCallBackId) { + callBackId = aCallBackId; + } + +} diff --git a/tags/java/sca/1.5.1-RC4/itest/callback-id/src/main/java/org/apache/tuscany/sca/test/CallBackIdService.java b/tags/java/sca/1.5.1-RC4/itest/callback-id/src/main/java/org/apache/tuscany/sca/test/CallBackIdService.java new file mode 100644 index 0000000000..18c592a1c1 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/callback-id/src/main/java/org/apache/tuscany/sca/test/CallBackIdService.java @@ -0,0 +1,33 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.osoa.sca.annotations.Callback; +import org.osoa.sca.annotations.Remotable; + +@Remotable +@Callback(CallBackIdCallBack.class) +/** + * + */ +public interface CallBackIdService { + + public void knockKnock(String aString); + +} diff --git a/tags/java/sca/1.5.1-RC4/itest/callback-id/src/main/java/org/apache/tuscany/sca/test/CallBackIdServiceImpl.java b/tags/java/sca/1.5.1-RC4/itest/callback-id/src/main/java/org/apache/tuscany/sca/test/CallBackIdServiceImpl.java new file mode 100644 index 0000000000..8b0a4b69cf --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/callback-id/src/main/java/org/apache/tuscany/sca/test/CallBackIdServiceImpl.java @@ -0,0 +1,48 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.osoa.sca.ComponentContext; +import org.osoa.sca.RequestContext; +import org.osoa.sca.annotations.Callback; +import org.osoa.sca.annotations.Context; +import org.osoa.sca.annotations.Service; + +@Service(CallBackIdService.class) +public class CallBackIdServiceImpl implements CallBackIdService { + + @Callback + protected CallBackIdCallBack callback; + @Context + protected ComponentContext compositeContext; + + public void knockKnock(String aString) { + + System.out.println("CallBackIdServiceImpl message received: " + aString); + RequestContext rc = compositeContext.getRequestContext(); + Object callBackId = rc.getServiceReference().getCallbackID(); + System.out.println("CallBackIdServiceImpl callbackID: " + callBackId); + + callback.callBackMessage("Who's There"); + System.out.println("CallBackIdServiceImpl response sent"); + return; + + } + +} diff --git a/tags/java/sca/1.5.1-RC4/itest/callback-id/src/main/resources/CallBackIdClient.composite b/tags/java/sca/1.5.1-RC4/itest/callback-id/src/main/resources/CallBackIdClient.composite new file mode 100644 index 0000000000..c9a6ba6258 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/callback-id/src/main/resources/CallBackIdClient.composite @@ -0,0 +1,33 @@ + + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/callback-id/src/test/java/org/apache/tuscany/sca/test/CallBackIdTestCase.java b/tags/java/sca/1.5.1-RC4/itest/callback-id/src/test/java/org/apache/tuscany/sca/test/CallBackIdTestCase.java new file mode 100644 index 0000000000..771fbb8ff7 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/callback-id/src/test/java/org/apache/tuscany/sca/test/CallBackIdTestCase.java @@ -0,0 +1,45 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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 junit.framework.TestCase; + +import org.apache.tuscany.sca.host.embedded.SCADomain; + +public class CallBackIdTestCase extends TestCase { + + private SCADomain domain; + private CallBackIdClient aCallBackClient; + + public void testCallBackBasic() { + aCallBackClient.run(); + } + + @Override + protected void setUp() throws Exception { + domain = SCADomain.newInstance("CallBackIdClient.composite"); + + aCallBackClient = domain.getService(CallBackIdClient.class, "CallBackIdClient"); + } + + @Override + protected void tearDown() throws Exception { + domain.close(); + } +} diff --git a/tags/java/sca/1.5.1-RC4/itest/callback-multiple-wires/pom.xml b/tags/java/sca/1.5.1-RC4/itest/callback-multiple-wires/pom.xml new file mode 100644 index 0000000000..b2ad4a3c39 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/callback-multiple-wires/pom.xml @@ -0,0 +1,45 @@ + + + + 4.0.0 + + org.apache.tuscany.sca + tuscany-itest + 1.5.1 + ../pom.xml + + itest-callback-multiple-wires + Apache Tuscany SCA iTest Callback With Mutiple Wires + + + + org.apache.tuscany.sca + tuscany-host-embedded + 1.5.1 + + + + org.apache.tuscany.sca + tuscany-implementation-java-runtime + 1.5.1 + runtime + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/callback-multiple-wires/src/main/java/org/apache/tuscany/sca/test/callback/MyClient.java b/tags/java/sca/1.5.1-RC4/itest/callback-multiple-wires/src/main/java/org/apache/tuscany/sca/test/callback/MyClient.java new file mode 100644 index 0000000000..7c80d222fc --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/callback-multiple-wires/src/main/java/org/apache/tuscany/sca/test/callback/MyClient.java @@ -0,0 +1,27 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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/tags/java/sca/1.5.1-RC4/itest/callback-multiple-wires/src/main/java/org/apache/tuscany/sca/test/callback/MyClientImpl1.java b/tags/java/sca/1.5.1-RC4/itest/callback-multiple-wires/src/main/java/org/apache/tuscany/sca/test/callback/MyClientImpl1.java new file mode 100644 index 0000000000..df91f3d268 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/callback-multiple-wires/src/main/java/org/apache/tuscany/sca/test/callback/MyClientImpl1.java @@ -0,0 +1,49 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.osoa.sca.annotations.Reference; +import org.osoa.sca.annotations.Scope; +import org.osoa.sca.annotations.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: " + result); + MyClientImpl1.result = result; + } +} diff --git a/tags/java/sca/1.5.1-RC4/itest/callback-multiple-wires/src/main/java/org/apache/tuscany/sca/test/callback/MyClientImpl2.java b/tags/java/sca/1.5.1-RC4/itest/callback-multiple-wires/src/main/java/org/apache/tuscany/sca/test/callback/MyClientImpl2.java new file mode 100644 index 0000000000..a0a9564002 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/callback-multiple-wires/src/main/java/org/apache/tuscany/sca/test/callback/MyClientImpl2.java @@ -0,0 +1,49 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.osoa.sca.annotations.Reference; +import org.osoa.sca.annotations.Scope; +import org.osoa.sca.annotations.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: " + result); + MyClientImpl2.result = result; + } +} diff --git a/tags/java/sca/1.5.1-RC4/itest/callback-multiple-wires/src/main/java/org/apache/tuscany/sca/test/callback/MyService.java b/tags/java/sca/1.5.1-RC4/itest/callback-multiple-wires/src/main/java/org/apache/tuscany/sca/test/callback/MyService.java new file mode 100644 index 0000000000..cfd601f546 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/callback-multiple-wires/src/main/java/org/apache/tuscany/sca/test/callback/MyService.java @@ -0,0 +1,32 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.osoa.sca.annotations.Callback; +import org.osoa.sca.annotations.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/tags/java/sca/1.5.1-RC4/itest/callback-multiple-wires/src/main/java/org/apache/tuscany/sca/test/callback/MyServiceCallback.java b/tags/java/sca/1.5.1-RC4/itest/callback-multiple-wires/src/main/java/org/apache/tuscany/sca/test/callback/MyServiceCallback.java new file mode 100644 index 0000000000..f198efae51 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/callback-multiple-wires/src/main/java/org/apache/tuscany/sca/test/callback/MyServiceCallback.java @@ -0,0 +1,27 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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/tags/java/sca/1.5.1-RC4/itest/callback-multiple-wires/src/main/java/org/apache/tuscany/sca/test/callback/MyServiceImpl.java b/tags/java/sca/1.5.1-RC4/itest/callback-multiple-wires/src/main/java/org/apache/tuscany/sca/test/callback/MyServiceImpl.java new file mode 100644 index 0000000000..d19b3fe355 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/callback-multiple-wires/src/main/java/org/apache/tuscany/sca/test/callback/MyServiceImpl.java @@ -0,0 +1,45 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.osoa.sca.RequestContext; +import org.osoa.sca.annotations.Context; +import org.osoa.sca.annotations.Scope; +import org.osoa.sca.annotations.Service; + +/** + * This class implements MyService and uses a callback. + */ +@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/tags/java/sca/1.5.1-RC4/itest/callback-multiple-wires/src/main/resources/CallbackMultiWireTest.composite b/tags/java/sca/1.5.1-RC4/itest/callback-multiple-wires/src/main/resources/CallbackMultiWireTest.composite new file mode 100644 index 0000000000..3dae3ca3a8 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/callback-multiple-wires/src/main/resources/CallbackMultiWireTest.composite @@ -0,0 +1,38 @@ + + + + + + + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/callback-multiple-wires/src/test/java/org/apache/tuscany/sca/test/callback/CallbackMultiWireTestCase.java b/tags/java/sca/1.5.1-RC4/itest/callback-multiple-wires/src/test/java/org/apache/tuscany/sca/test/callback/CallbackMultiWireTestCase.java new file mode 100644 index 0000000000..3c83e4bedd --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/callback-multiple-wires/src/test/java/org/apache/tuscany/sca/test/callback/CallbackMultiWireTestCase.java @@ -0,0 +1,55 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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 junit.framework.TestCase; + +import org.apache.tuscany.sca.host.embedded.SCADomain; + +/** + * A TestCase that demonstrates resolving the client service and initiating the callback sequence + */ +public class CallbackMultiWireTestCase extends TestCase { + + private SCADomain scaDomain; + private MyClient myClient1; + private MyClient myClient2; + + @Override + protected void setUp() throws Exception { + scaDomain = SCADomain.newInstance("CallbackMultiWireTest.composite"); + myClient1 = scaDomain.getService(MyClient.class, "MyClientComponent1"); + myClient2 = scaDomain.getService(MyClient.class, "MyClientComponent2"); + } + + @Override + protected void tearDown() throws Exception { + scaDomain.close(); + } + + 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/tags/java/sca/1.5.1-RC4/itest/callback-separatethread/pom.xml b/tags/java/sca/1.5.1-RC4/itest/callback-separatethread/pom.xml new file mode 100644 index 0000000000..9635fe1dd4 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/callback-separatethread/pom.xml @@ -0,0 +1,45 @@ + + + + 4.0.0 + + org.apache.tuscany.sca + tuscany-itest + 1.5.1 + ../pom.xml + + itest-callback-separatethread + Apache Tuscany SCA iTest Callback Using Separate Thread + + + + org.apache.tuscany.sca + tuscany-host-embedded + 1.5.1 + + + + org.apache.tuscany.sca + tuscany-implementation-java-runtime + 1.5.1 + runtime + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/callback-separatethread/src/main/java/org/apache/tuscany/sca/itest/CallBackSeparateThreadClient.java b/tags/java/sca/1.5.1-RC4/itest/callback-separatethread/src/main/java/org/apache/tuscany/sca/itest/CallBackSeparateThreadClient.java new file mode 100644 index 0000000000..f812a39058 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/callback-separatethread/src/main/java/org/apache/tuscany/sca/itest/CallBackSeparateThreadClient.java @@ -0,0 +1,34 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.osoa.sca.annotations.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/tags/java/sca/1.5.1-RC4/itest/callback-separatethread/src/main/java/org/apache/tuscany/sca/itest/CallBackSeparateThreadClientImpl.java b/tags/java/sca/1.5.1-RC4/itest/callback-separatethread/src/main/java/org/apache/tuscany/sca/itest/CallBackSeparateThreadClientImpl.java new file mode 100644 index 0000000000..e861f8a3d1 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/callback-separatethread/src/main/java/org/apache/tuscany/sca/itest/CallBackSeparateThreadClientImpl.java @@ -0,0 +1,172 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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 junit.framework.Assert; + +import org.osoa.sca.annotations.Reference; +import org.osoa.sca.annotations.Service; + +/** + * This is the client implementation for the call backs in a separate thread tests + */ +@Service(CallBackSeparateThreadClient.class) +public class CallBackSeparateThreadClientImpl implements CallBackSeparateThreadClient, EventProcessorCallBack { + /** + * Used to sleep for 60 seconds. + */ + private static final int SIXTY_SECONDS = 60 * 1000; + + /** + * Counts the number of one second call backs + */ + private static final AtomicInteger oneSecondCallbackCount = new AtomicInteger(); + + /** + * Counts the number of five second call backs + */ + private static final AtomicInteger fiveSecondCallbackCount = 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() { + // Register for 1 second call back + registerFor1SecondCallback(); + + // Wait for a few 1 second call backs + System.out.println("Waiting for some 1 second calls"); + waitForSome1SecondCallbacks(); + + // Register for 5 second call back + registerFor5SecondCallback(); + + // Wait for a few 1 second call backs + System.out.println("Waiting for some 1 second calls"); + waitForSome1SecondCallbacks(); + + // Wait for a few 5 second call backs + System.out.println("Waiting for some 5 second calls"); + waitForSome5SecondCallbacks(); + + System.out.println("Done"); + } + + /** + * Waits for some one second call backs to be fired + */ + private void waitForSome1SecondCallbacks() { + // Reset the one second call back count + oneSecondCallbackCount.set(0); + + // Wait until we have 10 1 second call backs or 60 seconds has passed + final long start = System.currentTimeMillis(); + do { + if (oneSecondCallbackCount.get() >= 10) { + System.out.println("Received enough 1 second notifications"); + return; + } + + try { + Thread.sleep(500); + } catch (InterruptedException e) { + Assert.fail("Unexpeceted exception " + e); + } + } + while (System.currentTimeMillis() - start < SIXTY_SECONDS); + + // If we get to here then we did not receive enough events + Assert.fail("Did not receive enough 1 second events"); + } + + /** + * Waits for some five second call backs to be fired + */ + private void waitForSome5SecondCallbacks() { + // Reset the five second call back count + fiveSecondCallbackCount.set(0); + + // Wait until we have 4 5 second call backs or 60 seconds has passed + final long start = System.currentTimeMillis(); + do + { + if (fiveSecondCallbackCount.get() >= 4) { + System.out.println("Received enough 5 second notifications"); + return; + } + + try + { + Thread.sleep(500); + } + catch (InterruptedException e) + { + Assert.fail("Unexpeceted exception " + e); + } + } + while (System.currentTimeMillis() - start < SIXTY_SECONDS); + + // If we get to here then we did not receive enough events + Assert.fail("Did not receive enough 5 second events"); + } + + /** + * Register to receive one second call backs + */ + private void registerFor1SecondCallback() { + aCallBackService.registerForEvent("ONE"); + return; + } + + /** + * Register to receive five second call backs + */ + private void registerFor5SecondCallback() { + aCallBackService.registerForEvent("FIVE"); + } + + /** + * 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("ONE")) { + final int newValue = oneSecondCallbackCount.incrementAndGet(); + //System.out.println("Received total of " + newValue + " 1 second call backs"); + } else if (aEventName.equals("FIVE")) { + final int newValue = fiveSecondCallbackCount.incrementAndGet(); + //System.out.println("Received total of " + newValue + " 5 second call backs"); + } + else + System.out.println("Unknown event type of " + aEventName); + } +} diff --git a/tags/java/sca/1.5.1-RC4/itest/callback-separatethread/src/main/java/org/apache/tuscany/sca/itest/EventProcessorCallBack.java b/tags/java/sca/1.5.1-RC4/itest/callback-separatethread/src/main/java/org/apache/tuscany/sca/itest/EventProcessorCallBack.java new file mode 100644 index 0000000000..ae41f596fc --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/callback-separatethread/src/main/java/org/apache/tuscany/sca/itest/EventProcessorCallBack.java @@ -0,0 +1,38 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.osoa.sca.annotations.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/tags/java/sca/1.5.1-RC4/itest/callback-separatethread/src/main/java/org/apache/tuscany/sca/itest/EventProcessorService.java b/tags/java/sca/1.5.1-RC4/itest/callback-separatethread/src/main/java/org/apache/tuscany/sca/itest/EventProcessorService.java new file mode 100644 index 0000000000..c22b8cceec --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/callback-separatethread/src/main/java/org/apache/tuscany/sca/itest/EventProcessorService.java @@ -0,0 +1,48 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.osoa.sca.annotations.Callback; +import org.osoa.sca.annotations.Conversational; +import org.osoa.sca.annotations.Remotable; + + +/** + * Sample Event Processor Service + */ +@Conversational +@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/tags/java/sca/1.5.1-RC4/itest/callback-separatethread/src/main/java/org/apache/tuscany/sca/itest/EventProcessorServiceImpl.java b/tags/java/sca/1.5.1-RC4/itest/callback-separatethread/src/main/java/org/apache/tuscany/sca/itest/EventProcessorServiceImpl.java new file mode 100644 index 0000000000..4d672b3a8b --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/callback-separatethread/src/main/java/org/apache/tuscany/sca/itest/EventProcessorServiceImpl.java @@ -0,0 +1,197 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.osoa.sca.CallableReference; +import org.osoa.sca.annotations.Callback; +import org.osoa.sca.annotations.Destroy; +import org.osoa.sca.annotations.Scope; +import org.osoa.sca.annotations.Service; + +/** + * Sample Event Processor Service Implementation + */ +@Service(EventProcessorService.class) +@Scope("CONVERSATION") +public class EventProcessorServiceImpl implements EventProcessorService { + + /** + * Reference to the call back + */ + @Callback + protected CallableReference 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("ONE", 1); // Generate the SECOND event every second + allEventGenerators[1] = new EventGenerator("FIVE", 5); // Generate the FIVE event every 5 seconds + } + + /** + * 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 CallableReference 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 class EventGenerator + { + /** + * The Timer we are using to generate the events + */ + private final Timer timer = new Timer(); + + /** + * Constructor + * + * @param aEventName The name of the Event to generate + * @param frequencyInSeconds How frequently we should generate the Events + */ + private EventGenerator(String aEventName, int frequencyInSeconds) + { + timer.schedule(new EventGeneratorTimerTask(aEventName), + frequencyInSeconds * 1000, frequencyInSeconds * 1000); + } + + /** + * Stop this Event Generator + */ + private void stop() + { + timer.cancel(); + } + + /** + * The TimerTask that is invoked by the Timer for the EventGenerator + */ + private 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 + */ + @Override + public void run() + { + // System.out.println("Generating new event " + eventName); + receiveEvent(eventName, "Separate Thread Notification: " + UUID.randomUUID().toString()); + } + } + } +} diff --git a/tags/java/sca/1.5.1-RC4/itest/callback-separatethread/src/main/resources/CallBackSeparateThreadTest.composite b/tags/java/sca/1.5.1-RC4/itest/callback-separatethread/src/main/resources/CallBackSeparateThreadTest.composite new file mode 100644 index 0000000000..e111e5074c --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/callback-separatethread/src/main/resources/CallBackSeparateThreadTest.composite @@ -0,0 +1,31 @@ + + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/callback-separatethread/src/test/java/org/apache/tuscany/sca/itest/CallBackSeparateThreadTestCase.java b/tags/java/sca/1.5.1-RC4/itest/callback-separatethread/src/test/java/org/apache/tuscany/sca/itest/CallBackSeparateThreadTestCase.java new file mode 100644 index 0000000000..f7e7be2133 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/callback-separatethread/src/test/java/org/apache/tuscany/sca/itest/CallBackSeparateThreadTestCase.java @@ -0,0 +1,64 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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 junit.framework.TestCase; + +import org.apache.tuscany.sca.host.embedded.SCADomain; + +/** + * This test case will attempt to trigger a call back using a separate thread + */ +public class CallBackSeparateThreadTestCase extends TestCase { + + /** + * The SCADomain we are using + */ + private SCADomain domain; + + /** + * The client the tests should use + */ + private CallBackSeparateThreadClient aCallBackClient; + + /** + * Run the call back in separate thread tests + */ + public void testCallBackSeparateThread() { + aCallBackClient.runTests(); + } + + /** + * Load the Call back in separate thread composite and look up the client. + */ + @Override + protected void setUp() throws Exception { + domain = SCADomain.newInstance("CallBackSeparateThreadTest.composite"); + aCallBackClient = domain.getService(CallBackSeparateThreadClient.class, "CallBackSeparateThreadClient"); + } + + /** + * Shutdown the SCA domain + */ + @Override + protected void tearDown() throws Exception { + domain.close(); + } +} diff --git a/tags/java/sca/1.5.1-RC4/itest/callback-set-callback/pom.xml b/tags/java/sca/1.5.1-RC4/itest/callback-set-callback/pom.xml new file mode 100644 index 0000000000..ca7b5f2ca7 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/callback-set-callback/pom.xml @@ -0,0 +1,45 @@ + + + + 4.0.0 + + org.apache.tuscany.sca + tuscany-itest + 1.5.1 + ../pom.xml + + itest-callback-set-callback + Apache Tuscany SCA iTest Set Callback + + + + org.apache.tuscany.sca + tuscany-host-embedded + 1.5.1 + + + + org.apache.tuscany.sca + tuscany-implementation-java-runtime + 1.5.1 + runtime + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/callback-set-callback/src/main/java/org/apache/tuscany/sca/test/CallBackSetCalbackService.java b/tags/java/sca/1.5.1-RC4/itest/callback-set-callback/src/main/java/org/apache/tuscany/sca/test/CallBackSetCalbackService.java new file mode 100644 index 0000000000..3b9599f53f --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/callback-set-callback/src/main/java/org/apache/tuscany/sca/test/CallBackSetCalbackService.java @@ -0,0 +1,34 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.osoa.sca.annotations.Callback; + +// @Remotable +@Callback(CallBackSetCallbackCallback.class) +/** + * + */ +public interface CallBackSetCalbackService { + + public void knockKnock(String aString); + + public boolean setCallbackIllegally(String aString); + +} diff --git a/tags/java/sca/1.5.1-RC4/itest/callback-set-callback/src/main/java/org/apache/tuscany/sca/test/CallBackSetCallbackBadCallback.java b/tags/java/sca/1.5.1-RC4/itest/callback-set-callback/src/main/java/org/apache/tuscany/sca/test/CallBackSetCallbackBadCallback.java new file mode 100644 index 0000000000..48752f2ea1 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/callback-set-callback/src/main/java/org/apache/tuscany/sca/test/CallBackSetCallbackBadCallback.java @@ -0,0 +1,38 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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 junit.framework.Assert; + +public class CallBackSetCallbackBadCallback { + + public CallBackSetCallbackBadCallback() { + super(); + } + + public void callback(String aString) { + // + // This callback method should never be called. + // + System.out.println("CallBackSetCallbackBadCallback: callback called"); + Assert.fail("CallBackSetCallbackBadCallback: callback called"); + return; + } + +} diff --git a/tags/java/sca/1.5.1-RC4/itest/callback-set-callback/src/main/java/org/apache/tuscany/sca/test/CallBackSetCallbackCallback.java b/tags/java/sca/1.5.1-RC4/itest/callback-set-callback/src/main/java/org/apache/tuscany/sca/test/CallBackSetCallbackCallback.java new file mode 100644 index 0000000000..ad0e0603a3 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/callback-set-callback/src/main/java/org/apache/tuscany/sca/test/CallBackSetCallbackCallback.java @@ -0,0 +1,31 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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; + +// @Remotable +/** + * + */ +public interface CallBackSetCallbackCallback { + + public void callBackMessage(String aString); + + public void callBackIncrement(String aString); + +} diff --git a/tags/java/sca/1.5.1-RC4/itest/callback-set-callback/src/main/java/org/apache/tuscany/sca/test/CallBackSetCallbackCallbackImpl.java b/tags/java/sca/1.5.1-RC4/itest/callback-set-callback/src/main/java/org/apache/tuscany/sca/test/CallBackSetCallbackCallbackImpl.java new file mode 100644 index 0000000000..0a22b0e01f --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/callback-set-callback/src/main/java/org/apache/tuscany/sca/test/CallBackSetCallbackCallbackImpl.java @@ -0,0 +1,66 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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 java.io.File; + +import org.osoa.sca.annotations.Service; + +@Service(CallBackSetCallbackCallback.class) +public class CallBackSetCallbackCallbackImpl implements CallBackSetCallbackCallback { + + private static String returnMessage = null; + private static int callBackCount = 0; + + 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 CallBackSetCallbackCallbackImpl callBackMessage: " + aString); + + File aFile = new File("target/test4_marker"); + try { + aFile.createNewFile(); + } catch (Exception ex) { + System.out.println("Error Creating target/test4_marker marker file"); + ex.printStackTrace(); + } + + } + + public void callBackIncrement(String aString) { + System.out.println("Entering callback increment: " + aString); + this.incrementCallBackCount(); + } + +} diff --git a/tags/java/sca/1.5.1-RC4/itest/callback-set-callback/src/main/java/org/apache/tuscany/sca/test/CallBackSetCallbackClient.java b/tags/java/sca/1.5.1-RC4/itest/callback-set-callback/src/main/java/org/apache/tuscany/sca/test/CallBackSetCallbackClient.java new file mode 100644 index 0000000000..94cb6aa73b --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/callback-set-callback/src/main/java/org/apache/tuscany/sca/test/CallBackSetCallbackClient.java @@ -0,0 +1,28 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.osoa.sca.annotations.Remotable; + +@Remotable +public interface CallBackSetCallbackClient { + + public void run(); + +} diff --git a/tags/java/sca/1.5.1-RC4/itest/callback-set-callback/src/main/java/org/apache/tuscany/sca/test/CallBackSetCallbackClientImpl.java b/tags/java/sca/1.5.1-RC4/itest/callback-set-callback/src/main/java/org/apache/tuscany/sca/test/CallBackSetCallbackClientImpl.java new file mode 100644 index 0000000000..66e4d3fc05 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/callback-set-callback/src/main/java/org/apache/tuscany/sca/test/CallBackSetCallbackClientImpl.java @@ -0,0 +1,190 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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 java.io.File; + +import junit.framework.Assert; + +import org.osoa.sca.NoRegisteredCallbackException; +import org.osoa.sca.ServiceReference; +import org.osoa.sca.annotations.Reference; +import org.osoa.sca.annotations.Service; + +@Service(CallBackSetCallbackClient.class) +public class CallBackSetCallbackClientImpl implements CallBackSetCallbackClient { + + @Reference + protected ServiceReference aCallBackService; + @Reference + protected ServiceReference callBack; + + public void run() { + + // This test various aspects of the setCallback() API in a stateless + // scope. + + /* + * test4 Client does not implement the callback interface but calls + * setCallback with a service reference before invoking the target, + * Verify successful execution. + */ + + test4(); + + /* + * test5 The client does not implement the callback interface and does + * not call setCallback() before invoking the target. Verify a + * NoRegisteredCallbackException is thrown. + */ + + test5(); + + /* + * test6() The client calls setCallback() with an object that is not a + * service reference and the callback interface is stateless. Verify + * that an appropriate exception is thrown. When calling setCallback + * with an object the interface must be stateful. Stateless interfaces + * require a service Reference. + */ + + test6(); + + /* + * test10 The target calls setCallback() on its own service reference, + * e.g. getRequestContext().getServiceReference().getCallback(). Verify + * an appropriate exception occurs. + */ + + test10(); + + return; + } + + private void test4() { + + // + // Since callbacks do not synchronously return and this test results in + // a callback to a component other + // than this client I am using a marker file to determine the outcome. + // The presence of the marker + // file will be used for the Assertion test. If it exists then the + // callback occurred and all is good. + // + + // Make sure the marker file is not present before starting the test. + File aFile = new File("target/test4_marker"); + if (aFile.exists()) + aFile.delete(); + + aCallBackService.setCallback(callBack); + + aCallBackService.getService().knockKnock("Knock Knock"); + + // Lets give the callback a little time to complete.... + + int count = 0; + long timeout = 1000; + + while (count++ < 30 && (aFile.exists() == false)) { + try { + Thread.sleep(timeout); + } catch (InterruptedException ie) { + } + } + + Assert.assertEquals("CallBackSetCallback - Test4", true, aFile.exists()); + + aCallBackService.setCallback(null); // leave this in the default state for next test + + } + + private void test5() { + + boolean correctException = false; + + // + // The backend service is expecting a callback reference to be set. This + // test will not + // set one so an exception is expected. According to the spec if a + // client calls a method on + // a service reference prior to calling setCallback() then a + // NoRegisteredCallbackException + // will be thrown on the client. + // + + try { + aCallBackService.getService().knockKnock("Knock Knock"); + } catch (NoRegisteredCallbackException NotRegEx) { + correctException = true; + } catch (Exception ex) { + ex.printStackTrace(); + } + + Assert.assertEquals("CallBackSetCallback - Test5", true, correctException); + + } + + private void test6() { + + boolean correctException = false; + + // + // This test is to specify an Object that is not a service reference + // that does implement + // the callback interface. However because this callback service is + // stateless the expected + // result is an appropriate exception. + // + + try { + aCallBackService.setCallback(new CallBackSetCallbackObjectCallback()); + aCallBackService.getService().knockKnock("Knock Knock"); + } + // + // This should catch an appropriate exception. + // + catch (IllegalArgumentException goodEx) { + correctException = true; + } catch (Exception ex) { + ex.printStackTrace(); + } + + Assert.assertEquals("CallBackSetCallback - Test6", true, correctException); + + } + + private void test10() { + + // + // The appropriate exception should be thrown and caught on the service side. + // If this happens, the setCallbackIllegally() method will return true. + // If not, this method will return false. + // + + aCallBackService.setCallback(callBack); // ensure no client-side exception + + boolean result = aCallBackService.getService().setCallbackIllegally + ("Try to set callback on your own service reference"); + + Assert.assertEquals("CallBackSetCallback - Test10", true, result); + + } + +} diff --git a/tags/java/sca/1.5.1-RC4/itest/callback-set-callback/src/main/java/org/apache/tuscany/sca/test/CallBackSetCallbackObjectCallback.java b/tags/java/sca/1.5.1-RC4/itest/callback-set-callback/src/main/java/org/apache/tuscany/sca/test/CallBackSetCallbackObjectCallback.java new file mode 100644 index 0000000000..afedcdf7f1 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/callback-set-callback/src/main/java/org/apache/tuscany/sca/test/CallBackSetCallbackObjectCallback.java @@ -0,0 +1,44 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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; + +public class CallBackSetCallbackObjectCallback implements CallBackSetCallbackCallback { + + private int callBackCount = 0; + + public CallBackSetCallbackObjectCallback() { + super(); + } + + public void incrementCallBackCount() { + callBackCount++; + } + + public void callBackMessage(String aString) { + + System.out.println("Entering CallBackSetCallbackObjectCallback callBackMessage: " + aString); + + } + + public void callBackIncrement(String aString) { + System.out.println("Entering callback increment: " + aString); + this.incrementCallBackCount(); + } + +} diff --git a/tags/java/sca/1.5.1-RC4/itest/callback-set-callback/src/main/java/org/apache/tuscany/sca/test/CallBackSetCallbackServiceImpl.java b/tags/java/sca/1.5.1-RC4/itest/callback-set-callback/src/main/java/org/apache/tuscany/sca/test/CallBackSetCallbackServiceImpl.java new file mode 100644 index 0000000000..4a6c9dbaa6 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/callback-set-callback/src/main/java/org/apache/tuscany/sca/test/CallBackSetCallbackServiceImpl.java @@ -0,0 +1,73 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.osoa.sca.ComponentContext; +import org.osoa.sca.RequestContext; +import org.osoa.sca.ServiceReference; +import org.osoa.sca.annotations.Callback; +import org.osoa.sca.annotations.Context; +import org.osoa.sca.annotations.Service; + +@Service(CallBackSetCalbackService.class) +public class CallBackSetCallbackServiceImpl implements CallBackSetCalbackService { + + @Callback + protected CallBackSetCallbackCallback callback; + @Context + protected ComponentContext context; + + public void knockKnock(String aString) { + + try { + System.out.println("CallBackBasicServiceImpl message received: " + aString); + callback.callBackMessage("Who's There"); + System.out.println("CallBackBasicServiceImpl response sent"); + return; + } catch (Exception ex) { + ex.printStackTrace(); + } + + } + + public boolean setCallbackIllegally(String aString) { + + System.out.println("CallBackBasicServiceImpl.setCallbackIllegally() message received: " + aString); + + boolean exceptionProduced = false; + RequestContext requestContext = null; + ServiceReference serviceRef = null; + + try { + requestContext = context.getRequestContext(); + serviceRef = (ServiceReference) requestContext.getServiceReference(); + serviceRef.setCallback(serviceRef); + } catch (ClassCastException goodEx) { + exceptionProduced = true; + System.out.println("Test10 appropriate exception caught during setCallback to own service reference"); + } catch (Exception badEx) { + System.out.println("CallBackBasicServiceImpl.setCallbackIllegally() " + badEx.toString()); + badEx.printStackTrace(); + } + + // Return a flag indicating whether we got the exception we are looking for + return exceptionProduced; + + } +} diff --git a/tags/java/sca/1.5.1-RC4/itest/callback-set-callback/src/main/resources/CallBackSetCallbackTest.composite b/tags/java/sca/1.5.1-RC4/itest/callback-set-callback/src/main/resources/CallBackSetCallbackTest.composite new file mode 100644 index 0000000000..3552ddecab --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/callback-set-callback/src/main/resources/CallBackSetCallbackTest.composite @@ -0,0 +1,37 @@ + + + + + + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/callback-set-callback/src/test/java/org/apache/tuscany/sca/test/CallBackSetCallbackTestCase.java b/tags/java/sca/1.5.1-RC4/itest/callback-set-callback/src/test/java/org/apache/tuscany/sca/test/CallBackSetCallbackTestCase.java new file mode 100644 index 0000000000..496ae0b1a5 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/callback-set-callback/src/test/java/org/apache/tuscany/sca/test/CallBackSetCallbackTestCase.java @@ -0,0 +1,49 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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 junit.framework.TestCase; + +import org.apache.tuscany.sca.host.embedded.SCADomain; + +//FIXME Fix this test case +public class CallBackSetCallbackTestCase extends TestCase { + + private SCADomain domain; + private CallBackSetCallbackClient aCallBackClient; + + public void testCallBackSetCallback() { + aCallBackClient.run(); + } + + @Override + protected void setUp() throws Exception { + domain = SCADomain.newInstance("CallBackSetCallbackTest.composite"); + + aCallBackClient = + domain.getService(CallBackSetCallbackClient.class, + "CallBackSetCallbackClient"); + } + + @Override + protected void tearDown() throws Exception { + domain.close(); + } + +} diff --git a/tags/java/sca/1.5.1-RC4/itest/callback-set-conversation/pom.xml b/tags/java/sca/1.5.1-RC4/itest/callback-set-conversation/pom.xml new file mode 100644 index 0000000000..335cd6feab --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/callback-set-conversation/pom.xml @@ -0,0 +1,45 @@ + + + + 4.0.0 + + org.apache.tuscany.sca + tuscany-itest + 1.5.1 + ../pom.xml + + itest-callback-set-conversation + Apache Tuscany SCA iTest Callback Set Conversation + + + + org.apache.tuscany.sca + tuscany-host-embedded + 1.5.1 + + + + org.apache.tuscany.sca + tuscany-implementation-java-runtime + 1.5.1 + runtime + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/callback-set-conversation/src/main/java/org/apache/tuscany/sca/test/CallBackSetCallbackConvBadCallback.java b/tags/java/sca/1.5.1-RC4/itest/callback-set-conversation/src/main/java/org/apache/tuscany/sca/test/CallBackSetCallbackConvBadCallback.java new file mode 100644 index 0000000000..d97c69eaed --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/callback-set-conversation/src/main/java/org/apache/tuscany/sca/test/CallBackSetCallbackConvBadCallback.java @@ -0,0 +1,39 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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 java.io.Serializable; + +import junit.framework.Assert; + +public class CallBackSetCallbackConvBadCallback implements Serializable { + + public CallBackSetCallbackConvBadCallback() { + super(); + } + + public void callback(String aString) { + // + // This callback method should never be called. + // + System.out.println("CallBackSetCallbackBadCallback: callback called"); + Assert.fail("CallBackSetCallbackConvBadCallback: callback called"); + } + +} diff --git a/tags/java/sca/1.5.1-RC4/itest/callback-set-conversation/src/main/java/org/apache/tuscany/sca/test/CallBackSetCallbackConvCallback.java b/tags/java/sca/1.5.1-RC4/itest/callback-set-conversation/src/main/java/org/apache/tuscany/sca/test/CallBackSetCallbackConvCallback.java new file mode 100644 index 0000000000..a704fd0ece --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/callback-set-conversation/src/main/java/org/apache/tuscany/sca/test/CallBackSetCallbackConvCallback.java @@ -0,0 +1,34 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.osoa.sca.annotations.Conversational; + +// @Remotable +@Conversational +/** + * + */ +public interface CallBackSetCallbackConvCallback { + + public void callBackMessage(String aString); + + public void callBackIncrement(String aString); + +} diff --git a/tags/java/sca/1.5.1-RC4/itest/callback-set-conversation/src/main/java/org/apache/tuscany/sca/test/CallBackSetCallbackConvClient.java b/tags/java/sca/1.5.1-RC4/itest/callback-set-conversation/src/main/java/org/apache/tuscany/sca/test/CallBackSetCallbackConvClient.java new file mode 100644 index 0000000000..013424bf5e --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/callback-set-conversation/src/main/java/org/apache/tuscany/sca/test/CallBackSetCallbackConvClient.java @@ -0,0 +1,28 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.osoa.sca.annotations.Remotable; + +@Remotable +public interface CallBackSetCallbackConvClient { + + public void run(); + +} diff --git a/tags/java/sca/1.5.1-RC4/itest/callback-set-conversation/src/main/java/org/apache/tuscany/sca/test/CallBackSetCallbackConvClientImpl.java b/tags/java/sca/1.5.1-RC4/itest/callback-set-conversation/src/main/java/org/apache/tuscany/sca/test/CallBackSetCallbackConvClientImpl.java new file mode 100644 index 0000000000..5d692e7728 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/callback-set-conversation/src/main/java/org/apache/tuscany/sca/test/CallBackSetCallbackConvClientImpl.java @@ -0,0 +1,163 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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 junit.framework.Assert; + +import org.osoa.sca.ComponentContext; +import org.osoa.sca.ServiceReference; +import org.osoa.sca.annotations.Context; +import org.osoa.sca.annotations.Reference; +import org.osoa.sca.annotations.Scope; +import org.osoa.sca.annotations.Service; + +@Service(CallBackSetCallbackConvClient.class) +@Scope("CONVERSATION") +public class CallBackSetCallbackConvClientImpl implements CallBackSetCallbackConvClient { + + @Context + protected ComponentContext componentContext; + + @Reference + protected CallBackSetCallbackConvService aCallBackService; + + private CallBackSetCallbackConvObjectCallback aCallbackObject = null; + + public void run() { + + // This tests aspects of the setCallback() API within a conversational + // scope. + + /* + * test7 The client calls setCallback() with an object that is not a + * service reference and the callback interface is stateful. Verify + * successful execution. + */ + test7(); + + /* + * test8() The client calls setCallback() with an object that does not + * implement the callback interface. Verify an appropriate exception is + * thrown. This requires a STATEFUL interface. + */ + test8(); + + /* + * test9 The client calls setCallback() with an object that is not + * Serializable. Verify an appropriate exception is thrown. This + * requires a STATEFUL callback interface. Move from the stateless test + * case. + */ + test9(); + + return; + } + + private void test7() { + + // + // This test is to specify an Object that is not a service reference + // that does implement + // the callback interface and is Serializable. Verify successful + // execution. + // + + aCallbackObject = new CallBackSetCallbackConvObjectCallback(); + aCallbackObject.incrementCallBackCount(); + + ServiceReference aCallBackServiceRef + = componentContext.cast(aCallBackService); + aCallBackServiceRef.setCallback(aCallbackObject); + aCallBackService.knockKnock("Knock Knock 7"); + + Assert.assertEquals("CallBackSetCallbackConv - Test7", 2, aCallbackObject.getCount()); + + } + + private void test8() { + + boolean correctException = false; + + // + // This test is to specify an Object that is not a service reference + // that does not implement + // the callback interface. The expected result is an appropriate + // exception. + // + + try { + ServiceReference aCallBackServiceRef + = componentContext.cast(aCallBackService); + aCallBackServiceRef.setCallback(new CallBackSetCallbackConvBadCallback()); + aCallBackService.knockKnock("Knock Knock 8"); + } + + // + // This should catch an appropriate exception. + // + + catch (IllegalArgumentException goodEx) + { + System.out.println("correct exception " + goodEx); + correctException = true; + } + + catch (Exception ex) { + // This means an inappropriate exception occurred + ex.printStackTrace(); + } + + Assert.assertEquals("CallBackSetCallbackConv - Test8", true, correctException); + + } + + private void test9() { + + boolean correctException = false; + + // + // This test is to specify an Object that is not a service reference + // that does implement + // the callback interface but does not implement Serializable. Verify + // an appropriate exception + // is thrown. + // + + try { + ServiceReference aCallBackServiceRef + = componentContext.cast(aCallBackService); + aCallBackServiceRef.setCallback(new CallBackSetCallbackConvNonSerCallback()); + aCallBackService.knockKnock("Knock Knock 9"); + } + // + // This should catch an appropriate exception. + // + catch (IllegalArgumentException goodEx) + { + System.out.println("correct exception " + goodEx); + correctException = true; + } catch (Exception ex) { + ex.printStackTrace(); + } + + Assert.assertEquals("CallBackSetCallbackConv - Test9", true, correctException); + + } + +} diff --git a/tags/java/sca/1.5.1-RC4/itest/callback-set-conversation/src/main/java/org/apache/tuscany/sca/test/CallBackSetCallbackConvNonSerCallback.java b/tags/java/sca/1.5.1-RC4/itest/callback-set-conversation/src/main/java/org/apache/tuscany/sca/test/CallBackSetCallbackConvNonSerCallback.java new file mode 100644 index 0000000000..75a4a3a6a0 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/callback-set-conversation/src/main/java/org/apache/tuscany/sca/test/CallBackSetCallbackConvNonSerCallback.java @@ -0,0 +1,56 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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 junit.framework.Assert; + +public class CallBackSetCallbackConvNonSerCallback implements CallBackSetCallbackConvCallback { + + private int callBackCount = 0; + + public CallBackSetCallbackConvNonSerCallback() { + super(); + } + + public synchronized void incrementCallBackCount() { + callBackCount++; + } + + public synchronized int getCount() { + return callBackCount; + } + + public void callBackMessage(String aString) { + // + // This callback method should never be called. + // + System.out.println("Entering CallBackSetCallbackConvNonSerCallback callBackMessage: " + aString); + Assert.fail("CallBackSetCallbackConvNonSerCallback: callbackMessage called"); + } + + public void callBackIncrement(String aString) { + // + // This callback method should never be called. + // + System.out.println("Entering callbackIncrement: " + aString); + this.incrementCallBackCount(); + Assert.fail("CallBackSetCallbackConvNonSerCallback: callbackIncrement called"); + } + +} diff --git a/tags/java/sca/1.5.1-RC4/itest/callback-set-conversation/src/main/java/org/apache/tuscany/sca/test/CallBackSetCallbackConvObjectCallback.java b/tags/java/sca/1.5.1-RC4/itest/callback-set-conversation/src/main/java/org/apache/tuscany/sca/test/CallBackSetCallbackConvObjectCallback.java new file mode 100644 index 0000000000..e7a3b144f6 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/callback-set-conversation/src/main/java/org/apache/tuscany/sca/test/CallBackSetCallbackConvObjectCallback.java @@ -0,0 +1,52 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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 java.io.Serializable; + +public class CallBackSetCallbackConvObjectCallback implements CallBackSetCallbackConvCallback, Serializable +{ + private int callBackCount = 0; + + public CallBackSetCallbackConvObjectCallback() { + super(); + } + + public synchronized void incrementCallBackCount() { + callBackCount++; + } + + public synchronized int getCount() { + return callBackCount; + } + + public void callBackMessage(String aString) { + + System.out.println("Entering CallBackSetCallbackObjectCallback callBackMessage: " + aString); + + } + + public void callBackIncrement(String aString) { + + System.out.println("Entering callback increment: " + aString); + + this.incrementCallBackCount(); + } + +} diff --git a/tags/java/sca/1.5.1-RC4/itest/callback-set-conversation/src/main/java/org/apache/tuscany/sca/test/CallBackSetCallbackConvService.java b/tags/java/sca/1.5.1-RC4/itest/callback-set-conversation/src/main/java/org/apache/tuscany/sca/test/CallBackSetCallbackConvService.java new file mode 100644 index 0000000000..692b6dfc35 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/callback-set-conversation/src/main/java/org/apache/tuscany/sca/test/CallBackSetCallbackConvService.java @@ -0,0 +1,36 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.osoa.sca.annotations.Callback; +import org.osoa.sca.annotations.Conversational; + +// @Remotable +@Conversational +@Callback(CallBackSetCallbackConvCallback.class) +/** + * + */ +public interface CallBackSetCallbackConvService { + + public void knockKnock(String aString); + + public void setCallbackIllegally(String aString); + +} diff --git a/tags/java/sca/1.5.1-RC4/itest/callback-set-conversation/src/main/java/org/apache/tuscany/sca/test/CallBackSetCallbackConvServiceImpl.java b/tags/java/sca/1.5.1-RC4/itest/callback-set-conversation/src/main/java/org/apache/tuscany/sca/test/CallBackSetCallbackConvServiceImpl.java new file mode 100644 index 0000000000..bca94ce407 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/callback-set-conversation/src/main/java/org/apache/tuscany/sca/test/CallBackSetCallbackConvServiceImpl.java @@ -0,0 +1,98 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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 java.io.File; + +import org.osoa.sca.ComponentContext; +import org.osoa.sca.RequestContext; +import org.osoa.sca.ServiceReference; +import org.osoa.sca.annotations.Callback; +import org.osoa.sca.annotations.Context; +import org.osoa.sca.annotations.Scope; +import org.osoa.sca.annotations.Service; + +@Service(CallBackSetCallbackConvService.class) +@Scope("CONVERSATION") +public class CallBackSetCallbackConvServiceImpl implements CallBackSetCallbackConvService { + + @Callback + protected CallBackSetCallbackConvCallback callback; + @Context + protected ComponentContext context; + + public void knockKnock(String aString) { + + System.out.println("CallBackSetCallbackConvServiceImpl message received: " + aString); + callback.callBackMessage("Who's There"); + callback.callBackIncrement("This should do it"); + System.out.println("CallBackSetCallbackConvServiceImpl response sent"); + + } + + public void setCallbackIllegally(String aString) { + + System.out.println("CallBackBasicServiceImpl.setCallbackIllegally() message received: " + aString); + + boolean exceptionProduced = false; + RequestContext requestContext = null; + ServiceReference serviceRef = null; + + // Context is not working properly so we can't trust that this is + // working..... + try { + requestContext = context.getRequestContext(); + serviceRef = (ServiceReference) requestContext.getServiceReference(); + } catch (Exception ex) { + System.out.println("CallBackBasicServiceImpl.setCallbackIllegally() " + ex.toString()); + ex.printStackTrace(); + return; + } + + // Ok, call setCallback with my own service reference. + try { + serviceRef.setCallback(serviceRef); + } catch (NullPointerException npe) { + // This is not an appropriate exception. + System.out.println("Test10 NPE exception during setCallback to own service reference"); + npe.printStackTrace(); + return; + } + // This needs to catch the appropriate exception, once we figure out + // what is needs to be! + catch (Exception ex) { + exceptionProduced = true; + System.out.println("Test10 appropriate exception caught during setCallback to own service reference"); + } + ; + + // If we get the exception we are looking for then create the marker + // file. + if (exceptionProduced == true) { + File aFile = new File("target/test10_marker"); + try { + aFile.createNewFile(); + } catch (Exception ex) { + System.out.println("Error Creating target/test10_marker marker file"); + ex.printStackTrace(); + } + } + + } +} diff --git a/tags/java/sca/1.5.1-RC4/itest/callback-set-conversation/src/main/resources/CallBackSetCallbackConvTest.composite b/tags/java/sca/1.5.1-RC4/itest/callback-set-conversation/src/main/resources/CallBackSetCallbackConvTest.composite new file mode 100644 index 0000000000..ce73417f94 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/callback-set-conversation/src/main/resources/CallBackSetCallbackConvTest.composite @@ -0,0 +1,33 @@ + + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/callback-set-conversation/src/test/java/org/apache/tuscany/sca/test/CallBackSetCallbackConvTestCase.java b/tags/java/sca/1.5.1-RC4/itest/callback-set-conversation/src/test/java/org/apache/tuscany/sca/test/CallBackSetCallbackConvTestCase.java new file mode 100644 index 0000000000..45bdaea9ab --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/callback-set-conversation/src/test/java/org/apache/tuscany/sca/test/CallBackSetCallbackConvTestCase.java @@ -0,0 +1,48 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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 junit.framework.TestCase; + +import org.apache.tuscany.sca.host.embedded.SCADomain; + +public class CallBackSetCallbackConvTestCase extends TestCase { + + private SCADomain domain; + private CallBackSetCallbackConvClient aCallBackClient; + + public void testCallBackSetCallback() { + aCallBackClient.run(); + } + + @Override + protected void setUp() throws Exception { + domain = SCADomain.newInstance("CallBackSetCallbackConvTest.composite"); + + aCallBackClient = + domain.getService(CallBackSetCallbackConvClient.class, + "CallBackSetCallbackConvClient"); + } + + @Override + protected void tearDown() throws Exception { + domain.close(); + } + +} diff --git a/tags/java/sca/1.5.1-RC4/itest/component-type/pom.xml b/tags/java/sca/1.5.1-RC4/itest/component-type/pom.xml new file mode 100644 index 0000000000..572f248894 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/component-type/pom.xml @@ -0,0 +1,47 @@ + + + + 4.0.0 + + org.apache.tuscany.sca + tuscany-itest + 1.5.1 + ../pom.xml + + itest-component-type + Apache Tuscany SCA iTest Component Type + + + + org.apache.tuscany.sca + tuscany-host-embedded + 1.5.1 + + + + org.apache.tuscany.sca + tuscany-implementation-java-runtime + 1.5.1 + runtime + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/component-type/src/main/java/calculator/AddService.java b/tags/java/sca/1.5.1-RC4/itest/component-type/src/main/java/calculator/AddService.java new file mode 100644 index 0000000000..188451ebac --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/component-type/src/main/java/calculator/AddService.java @@ -0,0 +1,28 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES 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/tags/java/sca/1.5.1-RC4/itest/component-type/src/main/java/calculator/AddServiceImpl.java b/tags/java/sca/1.5.1-RC4/itest/component-type/src/main/java/calculator/AddServiceImpl.java new file mode 100644 index 0000000000..8b6fe066a6 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/component-type/src/main/java/calculator/AddServiceImpl.java @@ -0,0 +1,30 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES 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/tags/java/sca/1.5.1-RC4/itest/component-type/src/main/java/calculator/CalculatorClient.java b/tags/java/sca/1.5.1-RC4/itest/component-type/src/main/java/calculator/CalculatorClient.java new file mode 100644 index 0000000000..08afd922b3 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/component-type/src/main/java/calculator/CalculatorClient.java @@ -0,0 +1,45 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES 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.host.embedded.SCADomain; + +/** + * This client program shows how to create an SCA runtime, start it, + * and locate and invoke a SCA component + */ +public class CalculatorClient { + public static void main(String[] args) throws Exception { + + SCADomain scaDomain = SCADomain.newInstance("Calculator.composite"); + + CalculatorService calculatorService = + scaDomain.getService(CalculatorService.class, "CalculatorServiceComponent/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)); + + scaDomain.close(); + } + +} diff --git a/tags/java/sca/1.5.1-RC4/itest/component-type/src/main/java/calculator/CalculatorService.java b/tags/java/sca/1.5.1-RC4/itest/component-type/src/main/java/calculator/CalculatorService.java new file mode 100644 index 0000000000..031fa8b912 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/component-type/src/main/java/calculator/CalculatorService.java @@ -0,0 +1,35 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES 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/tags/java/sca/1.5.1-RC4/itest/component-type/src/main/java/calculator/CalculatorServiceImpl.java b/tags/java/sca/1.5.1-RC4/itest/component-type/src/main/java/calculator/CalculatorServiceImpl.java new file mode 100644 index 0000000000..1209ac128a --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/component-type/src/main/java/calculator/CalculatorServiceImpl.java @@ -0,0 +1,63 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES 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/tags/java/sca/1.5.1-RC4/itest/component-type/src/main/java/calculator/DivideService.java b/tags/java/sca/1.5.1-RC4/itest/component-type/src/main/java/calculator/DivideService.java new file mode 100644 index 0000000000..30d248208b --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/component-type/src/main/java/calculator/DivideService.java @@ -0,0 +1,28 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES 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/tags/java/sca/1.5.1-RC4/itest/component-type/src/main/java/calculator/DivideServiceImpl.java b/tags/java/sca/1.5.1-RC4/itest/component-type/src/main/java/calculator/DivideServiceImpl.java new file mode 100644 index 0000000000..f7ac0b7287 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/component-type/src/main/java/calculator/DivideServiceImpl.java @@ -0,0 +1,30 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES 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/tags/java/sca/1.5.1-RC4/itest/component-type/src/main/java/calculator/MultiplyService.java b/tags/java/sca/1.5.1-RC4/itest/component-type/src/main/java/calculator/MultiplyService.java new file mode 100644 index 0000000000..5290605938 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/component-type/src/main/java/calculator/MultiplyService.java @@ -0,0 +1,28 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES 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/tags/java/sca/1.5.1-RC4/itest/component-type/src/main/java/calculator/MultiplyServiceImpl.java b/tags/java/sca/1.5.1-RC4/itest/component-type/src/main/java/calculator/MultiplyServiceImpl.java new file mode 100644 index 0000000000..b7dca792b2 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/component-type/src/main/java/calculator/MultiplyServiceImpl.java @@ -0,0 +1,30 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES 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/tags/java/sca/1.5.1-RC4/itest/component-type/src/main/java/calculator/SubtractService.java b/tags/java/sca/1.5.1-RC4/itest/component-type/src/main/java/calculator/SubtractService.java new file mode 100644 index 0000000000..bf0d1882b6 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/component-type/src/main/java/calculator/SubtractService.java @@ -0,0 +1,28 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES 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/tags/java/sca/1.5.1-RC4/itest/component-type/src/main/java/calculator/SubtractServiceImpl.java b/tags/java/sca/1.5.1-RC4/itest/component-type/src/main/java/calculator/SubtractServiceImpl.java new file mode 100644 index 0000000000..77b128ab8d --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/component-type/src/main/java/calculator/SubtractServiceImpl.java @@ -0,0 +1,30 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES 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/tags/java/sca/1.5.1-RC4/itest/component-type/src/main/resources/Calculator.composite b/tags/java/sca/1.5.1-RC4/itest/component-type/src/main/resources/Calculator.composite new file mode 100644 index 0000000000..b229787657 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/component-type/src/main/resources/Calculator.composite @@ -0,0 +1,49 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/component-type/src/main/resources/calculator/AddServiceImpl.componentType b/tags/java/sca/1.5.1-RC4/itest/component-type/src/main/resources/calculator/AddServiceImpl.componentType new file mode 100644 index 0000000000..00c48e5a35 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/component-type/src/main/resources/calculator/AddServiceImpl.componentType @@ -0,0 +1,27 @@ + + + + + + + + + + \ No newline at end of file diff --git a/tags/java/sca/1.5.1-RC4/itest/component-type/src/main/resources/calculator/CalculatorServiceImpl.componentType b/tags/java/sca/1.5.1-RC4/itest/component-type/src/main/resources/calculator/CalculatorServiceImpl.componentType new file mode 100644 index 0000000000..74bedc0a98 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/component-type/src/main/resources/calculator/CalculatorServiceImpl.componentType @@ -0,0 +1,43 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/tags/java/sca/1.5.1-RC4/itest/component-type/src/main/resources/calculator/DivideServiceImpl.componentType b/tags/java/sca/1.5.1-RC4/itest/component-type/src/main/resources/calculator/DivideServiceImpl.componentType new file mode 100644 index 0000000000..289fcc3e11 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/component-type/src/main/resources/calculator/DivideServiceImpl.componentType @@ -0,0 +1,27 @@ + + + + + + + + + + \ No newline at end of file diff --git a/tags/java/sca/1.5.1-RC4/itest/component-type/src/main/resources/calculator/MultiplyServiceImpl.componentType b/tags/java/sca/1.5.1-RC4/itest/component-type/src/main/resources/calculator/MultiplyServiceImpl.componentType new file mode 100644 index 0000000000..2d8a879cda --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/component-type/src/main/resources/calculator/MultiplyServiceImpl.componentType @@ -0,0 +1,27 @@ + + + + + + + + + + \ No newline at end of file diff --git a/tags/java/sca/1.5.1-RC4/itest/component-type/src/main/resources/calculator/SubtractServiceImpl.componentType b/tags/java/sca/1.5.1-RC4/itest/component-type/src/main/resources/calculator/SubtractServiceImpl.componentType new file mode 100644 index 0000000000..6214955141 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/component-type/src/main/resources/calculator/SubtractServiceImpl.componentType @@ -0,0 +1,27 @@ + + + + + + + + + + \ No newline at end of file diff --git a/tags/java/sca/1.5.1-RC4/itest/component-type/src/test/java/calculator/CalculatorTestCase.java b/tags/java/sca/1.5.1-RC4/itest/component-type/src/test/java/calculator/CalculatorTestCase.java new file mode 100644 index 0000000000..08fc8e33bf --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/component-type/src/test/java/calculator/CalculatorTestCase.java @@ -0,0 +1,52 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES 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 junit.framework.TestCase; + +import org.apache.tuscany.sca.host.embedded.SCADomain; + +/** + * This shows how to test the Calculator service component. + */ +public class CalculatorTestCase extends TestCase { + + private CalculatorService calculatorService; + private SCADomain scaDomain; + + @Override + protected void setUp() throws Exception { + scaDomain = SCADomain.newInstance("Calculator.composite"); + calculatorService = scaDomain.getService(CalculatorService.class, "CalculatorServiceComponent/CalculatorService"); + } + + @Override + protected void tearDown() throws Exception { + scaDomain.close(); + } + + public void testCalculator() throws Exception { + // Calculate + assertEquals(calculatorService.add(3, 2), 5.0); + assertEquals(calculatorService.subtract(3, 2), 1.0); + assertEquals(calculatorService.multiply(3, 2), 6.0); + assertEquals(calculatorService.divide(3, 2), 1.5); + + } +} diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution-classloader/contribution-classes/build-jar.xml b/tags/java/sca/1.5.1-RC4/itest/contribution-classloader/contribution-classes/build-jar.xml new file mode 100644 index 0000000000..299ce6864f --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-classloader/contribution-classes/build-jar.xml @@ -0,0 +1,39 @@ + + + + + + + + + + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution-classloader/contribution-classes/pom.xml b/tags/java/sca/1.5.1-RC4/itest/contribution-classloader/contribution-classes/pom.xml new file mode 100644 index 0000000000..ca54eca210 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-classloader/contribution-classes/pom.xml @@ -0,0 +1,203 @@ + + + + 4.0.0 + + org.apache.tuscany.sca + tuscany-itest + 1.5.1 + ../pom.xml + + itest-contribution-classloader-classes + Apache Tuscany Contribution ClassLoader Test : Contribution Classes + + + + org.apache.tuscany.sca + tuscany-host-embedded + 1.5.1 + + + + org.apache.tuscany.sca + tuscany-implementation-java-runtime + 1.5.1 + runtime + + + + junit + junit + 4.5 + test + + + + + + itest-contribution-classloader-classes + + + org.apache.maven.plugins + maven-antrun-plugin + 1.1 + + + + ant + ant-trax + 1.6.5 + + + + + + create-jar + generate-test-sources + + run + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution-classloader/contribution-classes/src/main/java/supplychain/customer/Customer.java b/tags/java/sca/1.5.1-RC4/itest/contribution-classloader/contribution-classes/src/main/java/supplychain/customer/Customer.java new file mode 100644 index 0000000000..814c38777a --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-classloader/contribution-classes/src/main/java/supplychain/customer/Customer.java @@ -0,0 +1,35 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package supplychain.customer; + +import org.osoa.sca.annotations.OneWay; + +/** + * This is the business interface of the Customer service component. + */ +public interface Customer { + + public void purchaseGoods(); + + @OneWay + public void notifyShipment(String order); + + public int outstandingOrderCount(); + +} diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution-classloader/contribution-classes/src/main/java/supplychain/customer/JavaCustomerComponentImpl.java b/tags/java/sca/1.5.1-RC4/itest/contribution-classloader/contribution-classes/src/main/java/supplychain/customer/JavaCustomerComponentImpl.java new file mode 100644 index 0000000000..e4daf0ec02 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-classloader/contribution-classes/src/main/java/supplychain/customer/JavaCustomerComponentImpl.java @@ -0,0 +1,63 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package supplychain.customer; + +import org.osoa.sca.annotations.Reference; +import org.osoa.sca.annotations.Scope; +import org.osoa.sca.annotations.Service; + +import supplychain.retailer.Retailer; + +/** + * This class implements the Customer service component (POJO implementation). + */ +@Service(Customer.class) +@Scope("COMPOSITE") +public class JavaCustomerComponentImpl implements Customer { + + private static int outstandingOrderCount; + + private Retailer retailer; + + public JavaCustomerComponentImpl() { + System.out.println("Created " + this.getClass().getName() + + " using: " + this.getClass().getClassLoader()); + } + + @Reference + public void setRetailer(Retailer retailer) { + this.retailer = retailer; + } + + public void purchaseGoods() { + outstandingOrderCount++; + retailer.submitOrder("Order"); + } + + public void notifyShipment(String order) { + outstandingOrderCount--; + System.out.print("Work thread " + Thread.currentThread() + " - "); + System.out.println(order); + } + + public int outstandingOrderCount() { + return outstandingOrderCount; + } + +} diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution-classloader/contribution-classes/src/main/java/supplychain/illegal/JavaCustomerComponentImpl.java b/tags/java/sca/1.5.1-RC4/itest/contribution-classloader/contribution-classes/src/main/java/supplychain/illegal/JavaCustomerComponentImpl.java new file mode 100644 index 0000000000..e4b3bc7048 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-classloader/contribution-classes/src/main/java/supplychain/illegal/JavaCustomerComponentImpl.java @@ -0,0 +1,74 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package supplychain.illegal; + +import org.osoa.sca.annotations.Reference; +import org.osoa.sca.annotations.Scope; +import org.osoa.sca.annotations.Service; + +import supplychain.customer.Customer; +import supplychain.retailer.JavaRetailerComponentImpl; +import supplychain.retailer.Retailer; +import supplychain.warehouse.JavaWarehouseComponentImpl; +import supplychain.warehouse.Warehouse; + +/** + * This class implements the Customer service component (POJO implementation). + */ +@Service(Customer.class) +@Scope("COMPOSITE") +public class JavaCustomerComponentImpl implements Customer { + + private static int outstandingOrderCount; + + private Retailer retailer; + + public JavaCustomerComponentImpl() { + System.out.println("Created " + this.getClass().getName() + + " using: " + this.getClass().getClassLoader()); + } + + @Reference + public void setRetailer(Retailer retailer) { + this.retailer = retailer; + } + + public void purchaseGoods() { + + Retailer retailerImpl = new JavaRetailerComponentImpl(); + System.out.println("Created a retailer from Customer " + retailerImpl); + + Warehouse warehouseImpl = new JavaWarehouseComponentImpl(); + System.out.println("Created a warehouse from Customer " + warehouseImpl); + + outstandingOrderCount++; + retailer.submitOrder("Order"); + } + + public void notifyShipment(String order) { + outstandingOrderCount--; + System.out.print("Work thread " + Thread.currentThread() + " - "); + System.out.println(order); + } + + public int outstandingOrderCount() { + return outstandingOrderCount; + } + +} diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution-classloader/contribution-classes/src/main/java/supplychain/retailer/JavaRetailerComponentImpl.java b/tags/java/sca/1.5.1-RC4/itest/contribution-classloader/contribution-classes/src/main/java/supplychain/retailer/JavaRetailerComponentImpl.java new file mode 100644 index 0000000000..698aa2aa5d --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-classloader/contribution-classes/src/main/java/supplychain/retailer/JavaRetailerComponentImpl.java @@ -0,0 +1,61 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package supplychain.retailer; + + +import org.osoa.sca.annotations.Reference; +import org.osoa.sca.annotations.Scope; +import org.osoa.sca.annotations.Service; + +import supplychain.warehouse.Warehouse; + +/** + * This class implements the Retailer service component (POJO implementation). + */ +@Service(Retailer.class) +@Scope("STATELESS") +public class JavaRetailerComponentImpl implements Retailer { + + private Warehouse warehouse; + + public JavaRetailerComponentImpl() { + System.out.println("Created " + this.getClass().getName() + + " using: " + this.getClass().getClassLoader()); + } + + @Reference + public void setWarehouse(Warehouse warehouse) { + this.warehouse = warehouse; + } + + + public Warehouse getWarehouse() { + return warehouse; + } + + public void submitOrder(String order) { + + warehouse.fulfillOrder(order + ", submitted"); + + } + + + + +} diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution-classloader/contribution-classes/src/main/java/supplychain/retailer/Retailer.java b/tags/java/sca/1.5.1-RC4/itest/contribution-classloader/contribution-classes/src/main/java/supplychain/retailer/Retailer.java new file mode 100644 index 0000000000..1e87d59af1 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-classloader/contribution-classes/src/main/java/supplychain/retailer/Retailer.java @@ -0,0 +1,28 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package supplychain.retailer; + +/** + * This is the business interface of the Retailer service component. + */ +public interface Retailer { + + public void submitOrder(String order); + +} diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution-classloader/contribution-classes/src/main/java/supplychain/shipper/JavaShipperComponentImpl.java b/tags/java/sca/1.5.1-RC4/itest/contribution-classloader/contribution-classes/src/main/java/supplychain/shipper/JavaShipperComponentImpl.java new file mode 100644 index 0000000000..9e01f00a79 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-classloader/contribution-classes/src/main/java/supplychain/shipper/JavaShipperComponentImpl.java @@ -0,0 +1,52 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package supplychain.shipper; + + +import org.osoa.sca.annotations.Reference; +import org.osoa.sca.annotations.Scope; +import org.osoa.sca.annotations.Service; + +import supplychain.customer.Customer; + +/** + * This class implements the Shipper service component (POJO implementation). + */ +@Service(Shipper.class) +@Scope("COMPOSITE") +public class JavaShipperComponentImpl implements Shipper { + + private Customer customer; + + public JavaShipperComponentImpl() { + System.out.println("Created " + this.getClass().getCanonicalName() + + " using: " + this.getClass().getClassLoader()); + } + + @Reference + public void setCustomer(Customer customer) { + this.customer = customer; + } + + public void processShipment(String order) { + customer.notifyShipment(order + ", shipped"); + } + + +} diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution-classloader/contribution-classes/src/main/java/supplychain/shipper/Shipper.java b/tags/java/sca/1.5.1-RC4/itest/contribution-classloader/contribution-classes/src/main/java/supplychain/shipper/Shipper.java new file mode 100644 index 0000000000..2514928c10 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-classloader/contribution-classes/src/main/java/supplychain/shipper/Shipper.java @@ -0,0 +1,28 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package supplychain.shipper; + +/** + * This is the business interface of the Shipper service component. + */ +public interface Shipper { + + public void processShipment(String order); + +} diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution-classloader/contribution-classes/src/main/java/supplychain/warehouse/JavaWarehouseComponentImpl.java b/tags/java/sca/1.5.1-RC4/itest/contribution-classloader/contribution-classes/src/main/java/supplychain/warehouse/JavaWarehouseComponentImpl.java new file mode 100644 index 0000000000..cdd12d589d --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-classloader/contribution-classes/src/main/java/supplychain/warehouse/JavaWarehouseComponentImpl.java @@ -0,0 +1,47 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package supplychain.warehouse; + +import org.osoa.sca.annotations.Scope; + +import supplychain.shipper.Shipper; + +/** + * This class implements the Warehouse service component (POJO implementation). + */ +@Scope("STATELESS") +public class JavaWarehouseComponentImpl implements Warehouse { + + private Shipper shipper; + + public JavaWarehouseComponentImpl() { + System.out.println("Created " + this.getClass().getCanonicalName() + + " using: " + this.getClass().getClassLoader()); + } + + public void setShipper(Shipper shipper) { + this.shipper = shipper; + } + + public void fulfillOrder(String order) { + shipper.processShipment(order + ", fulfilled"); + } + + +} diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution-classloader/contribution-classes/src/main/java/supplychain/warehouse/Warehouse.java b/tags/java/sca/1.5.1-RC4/itest/contribution-classloader/contribution-classes/src/main/java/supplychain/warehouse/Warehouse.java new file mode 100644 index 0000000000..6f1f6b8730 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-classloader/contribution-classes/src/main/java/supplychain/warehouse/Warehouse.java @@ -0,0 +1,28 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package supplychain.warehouse; + +/** + * This is the business interface of the Warehouse service component. + */ +public interface Warehouse { + + public void fulfillOrder(String order); + +} diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution-classloader/contribution-classes/src/main/resources/META-INF/complete-supplychain-sca-contribution.xml b/tags/java/sca/1.5.1-RC4/itest/contribution-classloader/contribution-classes/src/main/resources/META-INF/complete-supplychain-sca-contribution.xml new file mode 100644 index 0000000000..714d1826e1 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-classloader/contribution-classes/src/main/resources/META-INF/complete-supplychain-sca-contribution.xml @@ -0,0 +1,26 @@ + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution-classloader/contribution-classes/src/main/resources/META-INF/customer-impl-sca-contribution.xml b/tags/java/sca/1.5.1-RC4/itest/contribution-classloader/contribution-classes/src/main/resources/META-INF/customer-impl-sca-contribution.xml new file mode 100644 index 0000000000..7f7dc969e2 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-classloader/contribution-classes/src/main/resources/META-INF/customer-impl-sca-contribution.xml @@ -0,0 +1,26 @@ + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution-classloader/contribution-classes/src/main/resources/META-INF/customer-interface-sca-contribution.xml b/tags/java/sca/1.5.1-RC4/itest/contribution-classloader/contribution-classes/src/main/resources/META-INF/customer-interface-sca-contribution.xml new file mode 100644 index 0000000000..7f7dc969e2 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-classloader/contribution-classes/src/main/resources/META-INF/customer-interface-sca-contribution.xml @@ -0,0 +1,26 @@ + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution-classloader/contribution-classes/src/main/resources/META-INF/customer-sca-contribution.xml b/tags/java/sca/1.5.1-RC4/itest/contribution-classloader/contribution-classes/src/main/resources/META-INF/customer-sca-contribution.xml new file mode 100644 index 0000000000..8a2bec308f --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-classloader/contribution-classes/src/main/resources/META-INF/customer-sca-contribution.xml @@ -0,0 +1,25 @@ + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution-classloader/contribution-classes/src/main/resources/META-INF/illegal-customer-sca-contribution.xml b/tags/java/sca/1.5.1-RC4/itest/contribution-classloader/contribution-classes/src/main/resources/META-INF/illegal-customer-sca-contribution.xml new file mode 100644 index 0000000000..c77c4c1c7e --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-classloader/contribution-classes/src/main/resources/META-INF/illegal-customer-sca-contribution.xml @@ -0,0 +1,26 @@ + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution-classloader/contribution-classes/src/main/resources/META-INF/illegal1-supplychain-sca-contribution.xml b/tags/java/sca/1.5.1-RC4/itest/contribution-classloader/contribution-classes/src/main/resources/META-INF/illegal1-supplychain-sca-contribution.xml new file mode 100644 index 0000000000..210a68011f --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-classloader/contribution-classes/src/main/resources/META-INF/illegal1-supplychain-sca-contribution.xml @@ -0,0 +1,24 @@ + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution-classloader/contribution-classes/src/main/resources/META-INF/illegal2-supplychain-sca-contribution.xml b/tags/java/sca/1.5.1-RC4/itest/contribution-classloader/contribution-classes/src/main/resources/META-INF/illegal2-supplychain-sca-contribution.xml new file mode 100644 index 0000000000..d118cceef9 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-classloader/contribution-classes/src/main/resources/META-INF/illegal2-supplychain-sca-contribution.xml @@ -0,0 +1,31 @@ + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution-classloader/contribution-classes/src/main/resources/META-INF/retailer-sca-contribution.xml b/tags/java/sca/1.5.1-RC4/itest/contribution-classloader/contribution-classes/src/main/resources/META-INF/retailer-sca-contribution.xml new file mode 100644 index 0000000000..d37b6659da --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-classloader/contribution-classes/src/main/resources/META-INF/retailer-sca-contribution.xml @@ -0,0 +1,25 @@ + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution-classloader/contribution-classes/src/main/resources/META-INF/shipper-sca-contribution.xml b/tags/java/sca/1.5.1-RC4/itest/contribution-classloader/contribution-classes/src/main/resources/META-INF/shipper-sca-contribution.xml new file mode 100644 index 0000000000..77b28d9023 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-classloader/contribution-classes/src/main/resources/META-INF/shipper-sca-contribution.xml @@ -0,0 +1,25 @@ + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution-classloader/contribution-classes/src/main/resources/META-INF/supplychain-sca-contribution.xml b/tags/java/sca/1.5.1-RC4/itest/contribution-classloader/contribution-classes/src/main/resources/META-INF/supplychain-sca-contribution.xml new file mode 100644 index 0000000000..8ec290a831 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-classloader/contribution-classes/src/main/resources/META-INF/supplychain-sca-contribution.xml @@ -0,0 +1,30 @@ + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution-classloader/contribution-classes/src/main/resources/META-INF/warehouse-sca-contribution.xml b/tags/java/sca/1.5.1-RC4/itest/contribution-classloader/contribution-classes/src/main/resources/META-INF/warehouse-sca-contribution.xml new file mode 100644 index 0000000000..1398416978 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-classloader/contribution-classes/src/main/resources/META-INF/warehouse-sca-contribution.xml @@ -0,0 +1,25 @@ + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution-classloader/contribution-classes/src/main/resources/supplychain/illegalsupplychain.composite b/tags/java/sca/1.5.1-RC4/itest/contribution-classloader/contribution-classes/src/main/resources/supplychain/illegalsupplychain.composite new file mode 100644 index 0000000000..db1f0d34e7 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-classloader/contribution-classes/src/main/resources/supplychain/illegalsupplychain.composite @@ -0,0 +1,48 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution-classloader/contribution-classes/src/main/resources/supplychain/supplychain.composite b/tags/java/sca/1.5.1-RC4/itest/contribution-classloader/contribution-classes/src/main/resources/supplychain/supplychain.composite new file mode 100644 index 0000000000..5be79b741a --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-classloader/contribution-classes/src/main/resources/supplychain/supplychain.composite @@ -0,0 +1,48 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution-classloader/contribution-classes/src/main/resources/supplychain/warehouse/JavaWarehouseComponentImpl.componentType b/tags/java/sca/1.5.1-RC4/itest/contribution-classloader/contribution-classes/src/main/resources/supplychain/warehouse/JavaWarehouseComponentImpl.componentType new file mode 100644 index 0000000000..a76fae8090 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-classloader/contribution-classes/src/main/resources/supplychain/warehouse/JavaWarehouseComponentImpl.componentType @@ -0,0 +1,28 @@ + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution-classloader/contribution-test/pom.xml b/tags/java/sca/1.5.1-RC4/itest/contribution-classloader/contribution-test/pom.xml new file mode 100644 index 0000000000..b96b2a2482 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-classloader/contribution-test/pom.xml @@ -0,0 +1,60 @@ + + + + 4.0.0 + + org.apache.tuscany.sca + tuscany-itest + 1.5.1 + ../pom.xml + + itest-contribution-classloader-test + Apache Tuscany Contribution Classloader tests + + + + org.apache.tuscany.sca + tuscany-host-embedded + 1.5.1 + + + + org.apache.tuscany.sca + tuscany-implementation-java-runtime + 1.5.1 + runtime + + + + org.apache.tuscany.sca + tuscany-monitor + 1.5.1 + runtime + + + + junit + junit + 4.5 + test + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution-classloader/contribution-test/src/test/java/org/apache/tuscany/sca/test/contribution/ContributionTestCase.java b/tags/java/sca/1.5.1-RC4/itest/contribution-classloader/contribution-test/src/test/java/org/apache/tuscany/sca/test/contribution/ContributionTestCase.java new file mode 100644 index 0000000000..692f16f6f6 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-classloader/contribution-test/src/test/java/org/apache/tuscany/sca/test/contribution/ContributionTestCase.java @@ -0,0 +1,373 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.lang.reflect.InvocationTargetException; +import java.lang.reflect.Method; +import java.net.URLClassLoader; + +import org.apache.tuscany.sca.contribution.Contribution; +import org.apache.tuscany.sca.contribution.resolver.ClassReference; +import org.apache.tuscany.sca.contribution.service.ContributionResolveException; +import org.junit.After; +import org.junit.Assert; +import org.junit.Before; +import org.junit.Test; + +/* + * + * Contribution ClassLoading integration tests + */ + +public class ContributionTestCase { + + private SupplyChain supplyChain; + + + @Before + public void setUp() throws Exception { + supplyChain = new SupplyChain(); + } + + + @After + public void tearDown() throws Exception { + + supplyChain.tearDown(); + + } + + + /** + * Test static ClassLoading for classes that are visible from contribution + * + * @throws Exception + */ + public void staticClassLoadingTestForVisibleClasses() throws Exception { + + Contribution customerContribution = supplyChain.getContribution("Customer"); + ClassReference customerClassRef = new ClassReference("supplychain.customer.Customer"); + customerClassRef = customerContribution.getModelResolver().resolveModel(ClassReference.class, customerClassRef); + Class customerClass = customerClassRef.getJavaClass(); + + Class customerClassFromContribution = customerContribution.getClassLoader().loadClass("supplychain.customer.Customer"); + Assert.assertEquals(customerClass, customerClassFromContribution); + + Object customer = supplyChain.getCustomer(customerClass); + + Method m = customerClass.getMethod("purchaseGoods"); + m.invoke(customer); + + + m = customerClass.getMethod("outstandingOrderCount"); + + int retries = 10; + int outstandingCount = 1; + while (retries-- > 0) { + + outstandingCount = (int)(Integer)m.invoke(customer); + if (outstandingCount == 0) + break; + else + Thread.sleep(100); + } + Assert.assertEquals(0, outstandingCount); + + + } + + + /** + * Test dynamic ClassLoading for classes that are visible from contribution + * + * @throws Exception + */ + public void dynamicClassLoadingTestForVisibleClasses() throws Exception { + + Contribution customerContribution = supplyChain.getContribution("Customer"); + Contribution retailerContribution = supplyChain.getContribution("Retailer"); + Contribution warehouseContribution = supplyChain.getContribution("Warehouse"); + Contribution shipperContribution = supplyChain.getContribution("Shipper"); + Contribution supplyChainContribution = supplyChain.getContribution("SupplyChain"); + + ClassReference customerClassRef = new ClassReference("supplychain.customer.Customer"); + customerClassRef = customerContribution.getModelResolver().resolveModel(ClassReference.class, customerClassRef); + Class customerClass = customerClassRef.getJavaClass(); + + Class customerClassFromContribution = customerContribution.getClassLoader().loadClass("supplychain.customer.Customer"); + Assert.assertEquals(customerClass, customerClassFromContribution); + + Object customer = supplyChain.getCustomer(customerClass); + Assert.assertTrue(customerClass.isInstance(customer)); + + ClassReference retailerClassRef = new ClassReference("supplychain.retailer.Retailer"); + retailerClassRef = retailerContribution.getModelResolver().resolveModel(ClassReference.class, retailerClassRef); + Class retailerClass = retailerClassRef.getJavaClass(); + + Class retailerClassFromContribution = retailerContribution.getClassLoader().loadClass("supplychain.retailer.Retailer"); + Assert.assertEquals(retailerClass, retailerClassFromContribution); + + Class retailerClassFromCustomer = customerContribution.getClassLoader().loadClass("supplychain.retailer.Retailer"); + Assert.assertEquals(retailerClass, retailerClassFromCustomer); + + ClassReference warehouseClassRef = new ClassReference("supplychain.warehouse.Warehouse"); + warehouseClassRef = warehouseContribution.getModelResolver().resolveModel(ClassReference.class, warehouseClassRef); + Class warehouseClass = warehouseClassRef.getJavaClass(); + + Class warehouseClassFromContribution = warehouseContribution.getClassLoader().loadClass("supplychain.warehouse.Warehouse"); + Assert.assertEquals(warehouseClass, warehouseClassFromContribution); + + Class warehouseClassFromRetailer = retailerContribution.getClassLoader().loadClass("supplychain.warehouse.Warehouse"); + Assert.assertEquals(warehouseClass, warehouseClassFromRetailer); + + ClassReference shipperClassRef = new ClassReference("supplychain.shipper.Shipper"); + shipperClassRef = shipperContribution.getModelResolver().resolveModel(ClassReference.class, shipperClassRef); + Class shipperClass = shipperClassRef.getJavaClass(); + + Class shipperClassFromContribution = shipperContribution.getClassLoader().loadClass("supplychain.shipper.Shipper"); + Assert.assertEquals(shipperClass, shipperClassFromContribution); + + Class shipperClassFromWarehouse = shipperContribution.getClassLoader().loadClass("supplychain.shipper.Shipper"); + Assert.assertEquals(shipperClass, shipperClassFromWarehouse); + + Class customerClassFromShipper = shipperContribution.getClassLoader().loadClass("supplychain.customer.Customer"); + Assert.assertEquals(customerClass, customerClassFromShipper); + + Class customerClassFromSupplyChain = supplyChainContribution.getClassLoader().loadClass("supplychain.customer.Customer"); + Assert.assertEquals(customerClass, customerClassFromSupplyChain); + Class retailerClassFromSupplyChain = supplyChainContribution.getClassLoader().loadClass("supplychain.retailer.Retailer"); + Assert.assertEquals(retailerClass, retailerClassFromSupplyChain); + Class warehouseClassFromSupplyChain = supplyChainContribution.getClassLoader().loadClass("supplychain.warehouse.Warehouse"); + Assert.assertEquals(warehouseClass, warehouseClassFromSupplyChain); + Class shipperClassFromSupplyChain = supplyChainContribution.getClassLoader().loadClass("supplychain.shipper.Shipper"); + Assert.assertEquals(shipperClass, shipperClassFromSupplyChain); + + } + + /** + * Test dynamic ClassLoading for classes that are visible from contribution + * + * @throws Exception + */ + public void dynamicClassLoadingTestForNonImportedClasses() throws Exception { + + Contribution customerContribution = supplyChain.getContribution("Customer"); + Contribution shipperContribution = supplyChain.getContribution("Shipper"); + + Class customerClass = customerContribution.getClassLoader().loadClass("supplychain.customer.Customer"); + Class shipperClass = shipperContribution.getClassLoader().loadClass("supplychain.shipper.Shipper"); + + try { + customerClass.getClassLoader().loadClass("supplychain.warehouse.Warehouse"); + Assert.fail("Non-imported class loaded incorrectly"); + } catch (ClassNotFoundException e) { + } + try { + customerClass.getClassLoader().loadClass("supplychain.shipper.JavaShipperComponentImpl"); + Assert.fail("Non-imported class loaded incorrectly"); + } catch (ClassNotFoundException e) { + } + + try { + Class.forName("supplychain.warehouse.Warehouse", true, customerClass.getClassLoader()); + Assert.fail("Non-imported class loaded incorrectly"); + } catch (ClassNotFoundException e) { + } + try { + Class.forName("supplychain.shipper.JavaShipperComponentImpl", true, customerClass.getClassLoader()); + Assert.fail("Non-imported class loaded incorrectly"); + } catch (ClassNotFoundException e) { + } + + try { + shipperClass.getClassLoader().loadClass("supplychain.warehouse.JavaWarehouseComponentImpl"); + Assert.fail("Non-imported class loaded incorrectly"); + } catch (ClassNotFoundException e) { + } + try { + shipperClass.getClassLoader().loadClass("supplychain.retailer.Retailer"); + Assert.fail("Non-imported class loaded incorrectly"); + } catch (ClassNotFoundException e) { + } + + try { + Class.forName("supplychain.warehouse.JavaWarehouseComponentImpl", true, shipperClass.getClassLoader()); + Assert.fail("Non-imported class loaded incorrectly"); + } catch (ClassNotFoundException e) { + } + try { + Class.forName("supplychain.retailer.Retailer", true, shipperClass.getClassLoader()); + Assert.fail("Non-imported class loaded incorrectly"); + } catch (ClassNotFoundException e) { + } + + + } + + + /** + * This test ensures that classes from imported packages can be statically loaded + * from other contributions even though the classes are not on CLASSPATH or on the + * parent ClassLoader, or the thread context ClassLoader. + * + * @throws Exception + */ + @Test + public void testValidStaticClassLoading() throws Exception { + + supplyChain.setUp(this.getClass().getClassLoader()); + + staticClassLoadingTestForVisibleClasses(); + } + + /** + * This test ensures that all imported classes are loaded from the exporting contributions + * rather than the parent classLoader. If any of the interface classes were incorrectly loaded + * through the parent ClassLoader, LinkageError should result. + * + * @throws Exception + */ + @Test + public void testValidStaticClassLoadingWithContributionsInParentClassLoader() throws Exception { + + + URLClassLoader parentClassLoader = new URLClassLoader( + supplyChain.getContributionURLs(), + this.getClass().getClassLoader()); + + supplyChain.setUp(parentClassLoader); + + staticClassLoadingTestForVisibleClasses(); + } + + + /** + * This test ensures that classes from imported packages can be dynamically loaded from + * other contributions even though the classes are not on CLASSPATH or on the + * parent ClassLoader, or the thread context ClassLoader. + * + * @throws Exception + */ + @Test + public void testValidDynamicClassLoading() throws Exception { + + supplyChain.setUp(this.getClass().getClassLoader()); + + dynamicClassLoadingTestForVisibleClasses(); + } + + /** + * This test ensures that all imported classes are dynamically loaded from the exporting + * contributions rather than the parent classLoader. If any of the interface classes were + * incorrectly loaded through the parent, NoClassDefFoundError or LinkageError should result. + * + * @throws Exception + */ + @Test + public void testValidDynamicClassLoadingWithContributionsInParentClassLoader() throws Exception { + + + URLClassLoader parentClassLoader = new URLClassLoader( + supplyChain.getContributionURLs(), + this.getClass().getClassLoader()); + + supplyChain.setUp(parentClassLoader); + + dynamicClassLoadingTestForVisibleClasses(); + } + + @Test + public void testIllegalStaticClassLoading1() throws Exception { + // FIXME we have commented this code as we are not throwing exceptions anymore + // need to deal with monitor logs to catch the errors. + + /*try { + supplyChain.setUp(this.getClass().getClassLoader(), SupplyChain.SUPPLYCHAIN_ILLEGAL_1); + + Assert.fail("Composite containing unresolved references resolved incorrectly"); + } catch (ContributionResolveException e) { + }*/ + } + + @Test + public void testIllegalStaticClassLoading2() throws Exception { + + supplyChain.setUp(this.getClass().getClassLoader(), SupplyChain.SUPPLYCHAIN_ILLEGAL_2); + + Contribution customerContribution = supplyChain.getContribution("Customer"); + ClassReference customerClassRef = new ClassReference("supplychain.customer.Customer"); + customerClassRef = customerContribution.getModelResolver().resolveModel(ClassReference.class, customerClassRef); + Class customerClass = customerClassRef.getJavaClass(); + + Object customer = supplyChain.getCustomer(customerClass); + + try { + Method m = customerClass.getMethod("purchaseGoods"); + m.invoke(customer); + + Assert.fail("Classloading exception not thrown as expected"); + } catch (InvocationTargetException e) { + + Throwable cause = e.getCause(); + Assert.assertTrue(cause instanceof NoClassDefFoundError); + Assert.assertTrue(cause.getMessage().indexOf("JavaWarehouseComponentImpl") > -1); } + + } + + /** + * This test ensures that classes from imported packages can be dynamically loaded from + * other contributions even though the classes are not on CLASSPATH or on the + * parent ClassLoader, or the thread context ClassLoader. + * + * @throws Exception + */ + @Test + public void testIllegalDynamicClassLoading() throws Exception { + + supplyChain.setUp(this.getClass().getClassLoader()); + + dynamicClassLoadingTestForNonImportedClasses(); + } + + + /** + * Self-contained contribution containing composites, componentType files and implementations + * should not require import/export statements for these files to find each other or for Tuscany + * to load these files. + * @throws Exception + */ + @Test + public void testSelfContainedContribution() throws Exception { + + supplyChain.setUp(this.getClass().getClassLoader(), SupplyChain.SUPPLYCHAIN_SELFCONTAINED); + + staticClassLoadingTestForVisibleClasses(); + } + + @Test + public void testContributionsWithSplitPackage() throws Exception { + + supplyChain.setUp(this.getClass().getClassLoader(), SupplyChain.SUPPLYCHAIN_SPLITPACKAGE); + + staticClassLoadingTestForVisibleClasses(); + + dynamicClassLoadingTestForNonImportedClasses(); + } +} diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution-classloader/contribution-test/src/test/java/org/apache/tuscany/sca/test/contribution/SupplyChain.java b/tags/java/sca/1.5.1-RC4/itest/contribution-classloader/contribution-test/src/test/java/org/apache/tuscany/sca/test/contribution/SupplyChain.java new file mode 100644 index 0000000000..1ec7aaaa3a --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-classloader/contribution-test/src/test/java/org/apache/tuscany/sca/test/contribution/SupplyChain.java @@ -0,0 +1,231 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.File; +import java.net.URL; +import java.util.Hashtable; + +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; +import org.junit.Assert; + +/* + * + * Contribution ClassLoading integration tests + */ + +public class SupplyChain { + + public static final int SUPPLYCHAIN = 0; + public static final int SUPPLYCHAIN_ILLEGAL_1 = 1; + public static final int SUPPLYCHAIN_ILLEGAL_2 = 2; + public static final int SUPPLYCHAIN_SELFCONTAINED = 3; + public static final int SUPPLYCHAIN_SPLITPACKAGE = 4; + + private String folderName = "../contribution-classes/target/classes"; + + private String customerJarName = "Customer"; + private String retailerJarName = "Retailer"; + private String warehouseJarName = "Warehouse"; + private String shipperJarName = "Shipper"; + private String supplychainJarName = "SupplyChain"; + private String illegalSupplyChain1JarName = "IllegalSupplyChain1"; + private String illegalSupplyChain2JarName = "IllegalSupplyChain2"; + private String illegalCustomerJarName = "IllegalCustomer"; + private String completeSupplychainJarName = "CompleteSupplyChain"; + private String customerInterfaceJarName = "CustomerInterface"; + private String customerImplJarName = "CustomerImpl"; + + + private EmbeddedSCADomain domain; + private ContributionService contributionService; + private int supplyChainVersion; + + private Hashtable contributions = new Hashtable(); + + private URL customerContribURL; + private URL retailerContribURL; + private URL warehouseContribURL; + private URL shipperContribURL; + private URL supplyChainContribURL; + private URL illegalSupplyChain1ContribURL; + private URL illegalSupplyChain2ContribURL; + private URL illegalCustomerContribURL; + private URL completeSupplyChainContribURL; + private URL customerInterfaceContribURL; + private URL customerImplContribURL; + + public SupplyChain() throws Exception { + + customerContribURL = new File(folderName + "/" + customerJarName + ".jar").toURI().toURL(); + retailerContribURL = new File(folderName + "/" + retailerJarName + ".jar").toURI().toURL(); + warehouseContribURL = new File(folderName + "/" + warehouseJarName + ".jar").toURI().toURL(); + shipperContribURL = new File(folderName + "/" + shipperJarName + ".jar").toURI().toURL(); + supplyChainContribURL = new File(folderName + "/" + supplychainJarName + ".jar").toURI().toURL(); + illegalSupplyChain1ContribURL = new File(folderName + "/" + illegalSupplyChain1JarName + ".jar").toURI().toURL(); + illegalSupplyChain2ContribURL = new File(folderName + "/" + illegalSupplyChain2JarName + ".jar").toURI().toURL(); + illegalCustomerContribURL = new File(folderName + "/" + illegalCustomerJarName + ".jar").toURI().toURL(); + completeSupplyChainContribURL = new File(folderName + "/" + completeSupplychainJarName + ".jar").toURI().toURL(); + customerInterfaceContribURL = new File(folderName + "/" + customerInterfaceJarName + ".jar").toURI().toURL(); + customerImplContribURL = new File(folderName + "/" + customerImplJarName + ".jar").toURI().toURL(); + } + + public void setUp(ClassLoader parentClassLoader) throws Exception { + this.setUp(parentClassLoader, SUPPLYCHAIN); + } + + public void setUp(ClassLoader parentClassLoader, int supplyChainVersion) throws Exception { + + this.supplyChainVersion = supplyChainVersion; + + Thread.currentThread().setContextClassLoader(parentClassLoader); + + //Create an embedded SCA domain + domain = new EmbeddedSCADomain(parentClassLoader, "http://localhost"); + + //Start the domain + domain.start(); + + this.contributionService = domain.getContributionService(); + + addContributions(supplyChainVersion); + } + + protected void addContributions(int supplyChainVersion) throws Exception { + + Contribution contribution; + + if (supplyChainVersion != SUPPLYCHAIN_SELFCONTAINED) { + contribution = contributionService.contribute("Shipper", shipperContribURL, true); + contributions.put("Shipper", contribution); + contribution = contributionService.contribute("Warehouse", warehouseContribURL, true); + contributions.put("Warehouse", contribution); + contribution = contributionService.contribute("Retailer", retailerContribURL, true); + contributions.put("Retailer", contribution); + } + + switch (supplyChainVersion) { + case SUPPLYCHAIN: + contribution = contributionService.contribute("Customer", customerContribURL, true); + contributions.put("Customer", contribution); + + contribution = contributionService.contribute("SupplyChain", supplyChainContribURL, true); + contributions.put("SupplyChain", contribution); + break; + case SUPPLYCHAIN_ILLEGAL_1: + contribution = contributionService.contribute("Customer", customerContribURL, true); + contributions.put("Customer", contribution); + + contribution = contributionService.contribute("SupplyChain", illegalSupplyChain1ContribURL, true); + contributions.put("SupplyChain", contribution); + break; + case SUPPLYCHAIN_ILLEGAL_2: + contribution = contributionService.contribute("Customer", illegalCustomerContribURL, true); + contributions.put("Customer", contribution); + + contribution = contributionService.contribute("SupplyChain", illegalSupplyChain2ContribURL, true); + contributions.put("SupplyChain", contribution); + break; + case SUPPLYCHAIN_SELFCONTAINED: + contribution = contributionService.contribute("SupplyChain", completeSupplyChainContribURL, true); + contributions.put("SupplyChain", contribution); + break; + case SUPPLYCHAIN_SPLITPACKAGE: + contribution = contributionService.contribute("Customer", customerInterfaceContribURL, true); + contributions.put("Customer", contribution); + + contribution = contributionService.contribute("CustomerImpl", customerImplContribURL, true); + contributions.put("CustomerImpl", contribution); + + contribution = contributionService.contribute("SupplyChain", supplyChainContribURL, true); + contributions.put("SupplyChain", contribution); + break; + } + + // SUPPLYCHAIN_ILLEGAL_1 should throw an exception when the composite is resolved, and hence + // should not get this far. + Assert.assertTrue(supplyChainVersion != SUPPLYCHAIN_ILLEGAL_1); + + + for (Contribution c : contributions.values()) { + + for (Composite deployable : c.getDeployables()) { + domain.getDomainComposite().getIncludes().add(deployable); + domain.buildComposite(deployable); + } + + } + + // Start Components from my composite + for (Composite deployable : contributions.get("SupplyChain").getDeployables() ) { + domain.getCompositeActivator().activate(deployable); + domain.getCompositeActivator().start(deployable); + } + } + + public void tearDown() throws Exception { + + if (domain == null) + return; + + for (String contributionURI : contributions.keySet()) { + contributionService.remove(contributionURI); + } + + + if (contributions.get("SupplyChain") != null) { + // Stop Components from my composite + for (Composite deployable : contributions.get("SupplyChain").getDeployables() ) { + domain.getCompositeActivator().stop(deployable); + domain.getCompositeActivator().deactivate(deployable); + } + } + + domain.stop(); + + domain.close(); + } + + public Contribution getContribution(String uri) { + if (supplyChainVersion == SUPPLYCHAIN_SELFCONTAINED) + return contributions.get("SupplyChain"); + else + return contributions.get(uri); + } + + public Object getCustomer(Class customerClass) { + return domain.getService(customerClass, "CustomerComponent"); + } + + public URL[] getContributionURLs() { + return new URL[] { + customerContribURL, + retailerContribURL, + warehouseContribURL, + shipperContribURL, + supplyChainContribURL + }; + } + + +} diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution-classloader/contribution-test/src/test/java/org/apache/tuscany/sca/test/contribution/TuscanyClassloadingTestCaseFIXME.java b/tags/java/sca/1.5.1-RC4/itest/contribution-classloader/contribution-test/src/test/java/org/apache/tuscany/sca/test/contribution/TuscanyClassloadingTestCaseFIXME.java new file mode 100644 index 0000000000..b123951ef6 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-classloader/contribution-test/src/test/java/org/apache/tuscany/sca/test/contribution/TuscanyClassloadingTestCaseFIXME.java @@ -0,0 +1,381 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.File; +import java.io.FileNotFoundException; +import java.io.IOException; +import java.lang.reflect.Constructor; +import java.lang.reflect.Method; +import java.net.URL; +import java.net.URLClassLoader; +import java.util.ArrayList; +import java.util.HashSet; +import java.util.List; + +import org.apache.tuscany.sca.assembly.Composite; +import org.apache.tuscany.sca.extensibility.ServiceDiscovery; +import org.apache.tuscany.sca.host.embedded.impl.EmbeddedSCADomain; +import org.junit.After; +import org.junit.Assert; +import org.junit.Before; +import org.junit.Test; +import org.osoa.sca.ServiceReference; + +/* + * + * Contribution ClassLoading integration tests + */ + +//FIXME This test case needs some serious rework! +// First it is very dependent on the names of the Tuscany runtime JARs +// and this is going to be difficult to maintain +// Second its usage of reflection requires the Tuscany implementation classes +// to be made public and this breaks isolation between modules. +public class TuscanyClassloadingTestCaseFIXME { + + // private static final int SCA_API = 1; + // private static final int TUSCANY_CORE_SPI = 2; + // private static final int TUSCANY_RUNTIME = 3; + // private static final int TUSCANY_EXTENSIONS = 4; + // private static final int TUSCANY_DEPENDENCIES = 0; + + private static final String[] scaApiJars = {"sca-api"}; + private static final String[] tuscanyCoreSpiJars = + {"core-spi", "interface", "interface-java", "interface-wsdl", "assembly", "policy", "databinding", + "contribution", "definitions"}; + private static final String[] tuscanyRuntimeJars = + { + + "binding-sca-xml", "binding-sca", "assembly-java-dsl", "assembly-xml", "assembly-xsd", "contribution-impl", + "contribution-java", "contribution-namespace", "core-databinding", "core-spring", "core", "definitions-xml", + "domain-api", "domain-impl", "domain", "extension-helper", "host-embedded", "interface-java-xml", + "interface-wsdl-xml", "java2wsdl", "node-api", "node-impl", "node", "osgi-runtime", "policy-logging", + "policy-security", "policy-transaction", "policy-xml", "wsdl2java"}; + private static final String[] tuscanyExtensionJars = + {"binding-dwr", "binding-ejb", "binding-feed", "binding-http", "binding-jms", "binding-jsonrpc", + "binding-notification", "binding-rmi", "binding-sca-axis2", "binding-ws-axis2", "binding-ws-xml", + "binding-ws", "databinding-axiom", "databinding-fastinfoset", "databinding-jaxb", "databinding-json", + "databinding-saxon", "databinding-sdo-axiom", "databinding-sdo", "databinding-xmlbeans", "host-http", + "host-jetty", "host-rmi", "host-tomcat", "host-webapp", "implementation-das.jar", "implementation-data.jar", + "implementation-java-runtime", "implementation-java-xml", "implementation-java", + "implementation-node-runtime", "implementation-node-xml", "implementation-node", + "implementation-notification", "implementation-osgi", "implementation-resource", "implementation-script", + "implementation-spring", "implementation-xquery", "contribution-osgi"}; + + private Class embeddedDomainClass; + Object domain; + + @Before + public void setUp() throws Exception { + + embeddedDomainClass = getEmbeddedDomainClass(); + + Constructor c = embeddedDomainClass.getConstructor(ClassLoader.class, String.class); + // Create an embedded domain + domain = c.newInstance(embeddedDomainClass.getClassLoader(), "http://localhost"); + + // Start the domain + invokeNoArgsMethod(domain, "start"); + + } + + @After + public void tearDown() throws Exception { + + // Stop the domain + invokeNoArgsMethod(domain, "stop"); + + } + + /** + * Create a ClassLoader hierarchy for Tuscany runtime + * Dependencies <- SCA-API <- Core-SPI+ Runtime <- Extensions + * Load the embedded SCA domain class using the runtime ClassLoader + * + * @return embedded SCA domain class + * @throws Exception + */ + private Class getEmbeddedDomainClass() throws Exception { + + URL[] scaApiUrls; + URL[] runtimeUrls; + URL[] extensionUrls; + URL[] dependencyUrls; + + // When the test is run under Eclipse, the ClassLoader for the test is + // sun.misc.Launcher$AppClassLoader. The first code path is taken. + // When the test is run under Maven, the ClassLoader for the test is + // org.apache.maven.surefire.booter.IsolatedClassLoader, which is a subclass + // of URLClassLoader. The second code path is taken. + if (!(this.getClass().getClassLoader() instanceof URLClassLoader)) { + String classPath = System.getProperty("java.class.path"); + String[] classPathEntries = classPath.split(System.getProperty("path.separator")); + HashSet dependentJars = new HashSet(); + for (int i = 0; i < classPathEntries.length; i++) { + dependentJars.add(classPathEntries[i]); + } + + scaApiUrls = getTuscanyClassLoaderURLs(classPathEntries, dependentJars, scaApiJars); + runtimeUrls = + getTuscanyClassLoaderURLs(classPathEntries, dependentJars, tuscanyCoreSpiJars, tuscanyRuntimeJars); + extensionUrls = getTuscanyClassLoaderURLs(classPathEntries, dependentJars, tuscanyExtensionJars); + dependencyUrls = getTuscanyClassLoaderURLs(classPathEntries, dependentJars); + } else { + HashSet dependentJars = new HashSet(); + URL[] classPathEntries = ((URLClassLoader)this.getClass().getClassLoader()).getURLs(); + for (int i = 0; i < classPathEntries.length; i++) { + dependentJars.add(classPathEntries[i]); + } + scaApiUrls = getTuscanyClassLoaderURLs(classPathEntries, dependentJars, scaApiJars); + runtimeUrls = + getTuscanyClassLoaderURLs(classPathEntries, dependentJars, tuscanyCoreSpiJars, tuscanyRuntimeJars); + extensionUrls = getTuscanyClassLoaderURLs(classPathEntries, dependentJars, tuscanyExtensionJars); + dependencyUrls = getTuscanyClassLoaderURLs(classPathEntries, dependentJars); + + } + + boolean useSingleClassLoader = + (scaApiUrls == null || scaApiUrls.length == 0) || (runtimeUrls == null || runtimeUrls.length == 0) + || (extensionUrls == null || extensionUrls.length == 0) + || (dependencyUrls == null || dependencyUrls.length == 0); + + if (useSingleClassLoader) { + return EmbeddedSCADomain.class; + } else { + + ClassLoader dependencyLoader = new URLClassLoader(dependencyUrls, null); + ClassLoader scaApiLoader = new URLClassLoader(scaApiUrls, dependencyLoader); + ClassLoader runtimeClassLoader = new URLClassLoader(runtimeUrls, scaApiLoader); + ClassLoader extensionClassLoader = new URLClassLoader(extensionUrls, runtimeClassLoader); + + Class serviceDiscoveryClass = runtimeClassLoader.loadClass(ServiceDiscovery.class.getName()); + Method getInstanceMethod = serviceDiscoveryClass.getMethod("getInstance"); + Object serviceDiscoveryObj = getInstanceMethod.invoke(null); + Method registerClassLoaderMethod = + serviceDiscoveryClass.getMethod("registerClassLoader", ClassLoader.class); + registerClassLoaderMethod.invoke(serviceDiscoveryObj, extensionClassLoader); + + Thread.currentThread().setContextClassLoader(extensionClassLoader); + + return runtimeClassLoader.loadClass(EmbeddedSCADomain.class.getName()); + + } + + } + + /** + * From the list of entries in the test ClassLoader, match + * Tuscany jars corresponding to a ClassLoader, and return the list + * of matching entries as URLs. + * This method is used when the test is run under eclipse, using CLASSPATH + * based application ClassLoader. + * + * @param classPathEntries List of entries on CLASSPATH + * @param dependentJars Complete set of jars, remove jars corresponding to this + * ClassLoader from the set. + * @param jars List of Tuscany jars corresponding to this ClassLoader + * @return Matching URLs for the ClassLoader + * @throws IOException + */ + private URL[] getTuscanyClassLoaderURLs(String[] classPathEntries, HashSet dependentJars, String[]... jars) + throws IOException { + + String pathSeparator = System.getProperty("file.separator"); + HashSet classPathEntrySet; + + if (jars.length == 0) + classPathEntrySet = dependentJars; + else { + classPathEntrySet = new HashSet(); + + for (int i = 0; i < classPathEntries.length; i++) { + + String classPathEntry = classPathEntries[i]; + for (int j = 0; j < jars.length; j++) { + String[] jarList = jars[j]; + if (jarList != null) { + for (int k = 0; k < jarList.length; k++) { + String jarName = "tuscany-" + jarList[k]; + String alternateJarName = "modules" + pathSeparator + jarList[k]; + if (classPathEntry.indexOf(jarName) >= 0 || classPathEntry.indexOf(alternateJarName) >= 0) { + classPathEntrySet.add(classPathEntry); + dependentJars.remove(classPathEntry); + } + } + } + } + } + + } + ArrayList urls = new ArrayList(); + + for (String fileName : classPathEntrySet) { + File file = new File((String)fileName); + if (!file.exists()) { + throw new FileNotFoundException(fileName); + + } else { + urls.add(file.toURL()); + + } + } + + return (URL[])urls.toArray(new URL[urls.size()]); + } + + /** + * From the list of URLs of the test ClassLoader, match + * Tuscany jars corresponding to a ClassLoader, and return the matching URLs + * This method is used when the test is run under Maven. The test ClassLoader is + * org.apache.maven.surefire.booter.IsolatedClassLoader, which is a subclass + * of URLClassLoader + * + * @param classPathEntries List of URLs from the test ClassLoader + * @param dependentJars Complete set of jars, remove jars corresponding to this + * ClassLoader from the set. + * @param jars List of Tuscany jars corresponding to this ClassLoader + * @return Matching URLs for the ClassLoader + * @throws IOException + */ + private URL[] getTuscanyClassLoaderURLs(URL[] classPathEntries, HashSet dependentJars, String[]... jars) + throws IOException { + + String pathSeparator = System.getProperty("file.separator"); + HashSet classPathEntrySet; + + if (jars.length == 0) + classPathEntrySet = dependentJars; + else { + classPathEntrySet = new HashSet(); + + for (int i = 0; i < classPathEntries.length; i++) { + + URL classPathEntry = classPathEntries[i]; + String classPathEntryStr = classPathEntry.getPath(); + for (int j = 0; j < jars.length; j++) { + String[] jarList = jars[j]; + if (jarList != null) { + for (int k = 0; k < jarList.length; k++) { + String jarName = "tuscany-" + jarList[k]; + String alternateJarName = "modules" + pathSeparator + jarList[k]; + if (classPathEntryStr.indexOf(jarName) >= 0 || classPathEntryStr.indexOf(alternateJarName) >= 0) { + classPathEntrySet.add(classPathEntry); + dependentJars.remove(classPathEntry); + } + } + } + } + } + + } + return (URL[])classPathEntrySet.toArray(new URL[classPathEntrySet.size()]); + } + + private Object invokeNoArgsMethod(Object obj, String methodName) throws Exception { + + return obj.getClass().getMethod(methodName).invoke(obj); + } + + private Object invokeOneArgMethod(Object obj, String methodName, Class argType, Object arg) throws Exception { + + return obj.getClass().getMethod(methodName, argType).invoke(obj, arg); + } + + /** + * + * Load Tuscany runtime using multiple ClassLoaders, and run supplychain + * test. + * + * @throws Exception + */ + @SuppressWarnings("unchecked") + @Test + public void test() throws Exception { + + ClassLoader runtimeClassloader = embeddedDomainClass.getClassLoader(); + + if (runtimeClassloader == this.getClass().getClassLoader()) { + System.out.println("Runtime and test loaded using the same classloader " + runtimeClassloader); + } else { + System.out + .println("Running test using separate Tuscany classloaders, runtime classloader=" + runtimeClassloader); + ClassLoader apiClassLoader = + runtimeClassloader.loadClass(ServiceReference.class.getName()).getClassLoader(); + Assert.assertTrue(apiClassLoader != runtimeClassloader); + + try { + runtimeClassloader.loadClass("org.apache.tuscany.sca.implementation.java.JavaImplementation"); + Assert.fail("Loaded extension class incorrectly from runtimeClassLoader"); + } catch (ClassNotFoundException e) { + } + + } + + // Contribute supplychain (as single contribution) + Object contributionService = invokeNoArgsMethod(domain, "getContributionService"); + Method contributeMethod = + contributionService.getClass().getMethod("contribute", String.class, URL.class, boolean.class); + + String folderName = "../contribution-classes/target/classes"; + String supplychainJarName = "CompleteSupplyChain"; + URL supplyChainContribURL = new File(folderName + "/" + supplychainJarName + ".jar").toURL(); + Object contribution = contributeMethod.invoke(contributionService, "SupplyChain", supplyChainContribURL, true); + + Object composite = ((List)invokeNoArgsMethod(contribution, "getDeployables")).get(0); + Object domainComposite = invokeNoArgsMethod(domain, "getDomainComposite"); + List includes = (List)invokeNoArgsMethod(domainComposite, "getIncludes"); + includes.add(composite); + //Object compositeBuilder = invokeNoArgsMethod(domain, "getCompositeBuilder"); + Object compositeActivator = invokeNoArgsMethod(domain, "getCompositeActivator"); + + Class compositeClass = embeddedDomainClass.getClassLoader().loadClass(Composite.class.getName()); + invokeOneArgMethod(domain, "buildComposite", compositeClass, composite); + invokeOneArgMethod(compositeActivator, "activate", compositeClass, composite); + invokeOneArgMethod(compositeActivator, "start", compositeClass, composite); + + // Get customer service + Method getClassLoaderMethod = contribution.getClass().getMethod("getClassLoader"); + ClassLoader classLoader = (ClassLoader)getClassLoaderMethod.invoke(contribution); + + Class customerClass = classLoader.loadClass("supplychain.customer.Customer"); + Method getServiceMethod = embeddedDomainClass.getMethod("getService", Class.class, String.class); + Object customer = getServiceMethod.invoke(domain, customerClass, "CustomerComponent"); + + // Invoke purchaseGoods + Method m = customerClass.getMethod("purchaseGoods"); + m.invoke(customer); + + m = customerClass.getMethod("outstandingOrderCount"); + + int retries = 10; + int outstandingCount = 1; + while (retries-- > 0) { + + outstandingCount = (int)(Integer)m.invoke(customer); + if (outstandingCount == 0) + break; + else + Thread.sleep(100); + } + Assert.assertEquals(0, outstandingCount); + + } + +} diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution-classloader/pom.xml b/tags/java/sca/1.5.1-RC4/itest/contribution-classloader/pom.xml new file mode 100644 index 0000000000..928701e060 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-classloader/pom.xml @@ -0,0 +1,51 @@ + + + + 4.0.0 + + org.apache.tuscany.sca + tuscany-itest + 1.5.1 + ../pom.xml + + itest-contribution-classloader + pom + Apache Tuscany Contribution ClassLoader Integration Tests + + + contribution-classes + contribution-test + + + + + org.apache.tuscany.sca + tuscany-host-embedded + 1.5.1 + + + + org.apache.tuscany.sca + tuscany-contribution-impl + 1.5.1 + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution-folder/pom.xml b/tags/java/sca/1.5.1-RC4/itest/contribution-folder/pom.xml new file mode 100644 index 0000000000..74065fb4f5 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-folder/pom.xml @@ -0,0 +1,51 @@ + + + + 4.0.0 + + org.apache.tuscany.sca + tuscany-itest + 1.5.1 + ../pom.xml + + itest-contribution-folder + Apache Tuscany SCA iTest Folder and ZIP Contribution + + + + org.apache.tuscany.sca + tuscany-host-embedded + 1.5.1 + + + + org.apache.tuscany.sca + tuscany-contribution-impl + 1.5.1 + + + + org.apache.tuscany.sca + tuscany-implementation-java-runtime + 1.5.1 + runtime + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution-folder/src/test/java/ContributionFolderTestCase.java b/tags/java/sca/1.5.1-RC4/itest/contribution-folder/src/test/java/ContributionFolderTestCase.java new file mode 100644 index 0000000000..9f9c15c14d --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-folder/src/test/java/ContributionFolderTestCase.java @@ -0,0 +1,53 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT 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 junit.framework.TestCase; + +import org.apache.tuscany.sca.host.embedded.SCADomain; + +import calculator.CalculatorService; + + + +/** + * Test SCADomain.newInstance and invocation of a service. + * + * @version $Rev: 608205 $ $Date: 2008-01-02 20:29:05 +0000 (Wed, 02 Jan 2008) $ + */ +public class ContributionFolderTestCase extends TestCase { + + private SCADomain domain; + + @Override + protected void setUp() throws Exception { + domain = SCADomain.newInstance("myDomain", "src/test/resources/repository2/folderWithJars", null ); + } + + public void testInvoke() throws Exception { + CalculatorService service = domain.getService(CalculatorService.class, "CalculatorServiceComponent"); + assertEquals(3.0, service.add(1, 2)); + } + + @Override + protected void tearDown() throws Exception { + domain.close(); + } + +} diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution-folder/src/test/java/ContributionZIPTestCase.java b/tags/java/sca/1.5.1-RC4/itest/contribution-folder/src/test/java/ContributionZIPTestCase.java new file mode 100644 index 0000000000..98bbe3935a --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-folder/src/test/java/ContributionZIPTestCase.java @@ -0,0 +1,53 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT 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 junit.framework.TestCase; + +import org.apache.tuscany.sca.host.embedded.SCADomain; + +import calculator.CalculatorService; + + + +/** + * Test SCADomain.newInstance and invocation of a service. + * + * @version $Rev: 608205 $ $Date: 2008-01-02 20:29:05 +0000 (Wed, 02 Jan 2008) $ + */ +public class ContributionZIPTestCase extends TestCase { + + private SCADomain domain; + + @Override + protected void setUp() throws Exception { + domain = SCADomain.newInstance("myDomain", "src/test/resources/repository3/contribution.zip", null ); + } + + public void testInvoke() throws Exception { + CalculatorService service = domain.getService(CalculatorService.class, "CalculatorServiceComponent"); + assertEquals(3.0, service.add(1, 2)); + } + + @Override + protected void tearDown() throws Exception { + domain.close(); + } + +} diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution-folder/src/test/java/calculator/CalculatorService.java b/tags/java/sca/1.5.1-RC4/itest/contribution-folder/src/test/java/calculator/CalculatorService.java new file mode 100644 index 0000000000..a318cf50d9 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-folder/src/test/java/calculator/CalculatorService.java @@ -0,0 +1,31 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES 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/tags/java/sca/1.5.1-RC4/itest/contribution-folder/src/test/resources/repository2/folderWithJars/Calculator.composite b/tags/java/sca/1.5.1-RC4/itest/contribution-folder/src/test/resources/repository2/folderWithJars/Calculator.composite new file mode 100644 index 0000000000..ac88b2ac48 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-folder/src/test/resources/repository2/folderWithJars/Calculator.composite @@ -0,0 +1,49 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution-folder/src/test/resources/repository2/folderWithJars/META-INF/sca-contribution.xml b/tags/java/sca/1.5.1-RC4/itest/contribution-folder/src/test/resources/repository2/folderWithJars/META-INF/sca-contribution.xml new file mode 100644 index 0000000000..8b60ae590c --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-folder/src/test/resources/repository2/folderWithJars/META-INF/sca-contribution.xml @@ -0,0 +1,23 @@ + + + + + \ No newline at end of file diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution-folder/src/test/resources/repository2/folderWithJars/service.jar b/tags/java/sca/1.5.1-RC4/itest/contribution-folder/src/test/resources/repository2/folderWithJars/service.jar new file mode 100644 index 0000000000..7e4a7132a3 Binary files /dev/null and b/tags/java/sca/1.5.1-RC4/itest/contribution-folder/src/test/resources/repository2/folderWithJars/service.jar differ diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution-folder/src/test/resources/repository2/folderWithJars/serviceImpl.jar b/tags/java/sca/1.5.1-RC4/itest/contribution-folder/src/test/resources/repository2/folderWithJars/serviceImpl.jar new file mode 100644 index 0000000000..0e16e11b0b Binary files /dev/null and b/tags/java/sca/1.5.1-RC4/itest/contribution-folder/src/test/resources/repository2/folderWithJars/serviceImpl.jar differ diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution-folder/src/test/resources/repository3/contribution.zip b/tags/java/sca/1.5.1-RC4/itest/contribution-folder/src/test/resources/repository3/contribution.zip new file mode 100644 index 0000000000..b293aa4bcc Binary files /dev/null and b/tags/java/sca/1.5.1-RC4/itest/contribution-folder/src/test/resources/repository3/contribution.zip differ diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution-import-export/export-composite/pom.xml b/tags/java/sca/1.5.1-RC4/itest/contribution-import-export/export-composite/pom.xml new file mode 100644 index 0000000000..8d731c07d7 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-import-export/export-composite/pom.xml @@ -0,0 +1,67 @@ + + + + 4.0.0 + + org.apache.tuscany.sca + tuscany-itest + 1.5.1 + ../pom.xml + + itest-contribution-export-composite + Apache Tuscany SCA iTest Contribution Export + + + + org.apache.tuscany.sca + tuscany-host-embedded + 1.5.1 + + + + org.apache.tuscany.sca + tuscany-implementation-java-runtime + 1.5.1 + runtime + + + + org.apache.tuscany.sca + tuscany-binding-ws-axis2 + 1.5.1 + runtime + + + + org.apache.tuscany.sca + tuscany-host-tomcat + 1.5.1 + runtime + + + + junit + junit + 4.5 + test + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution-import-export/export-composite/src/main/java/hello/Hello.java b/tags/java/sca/1.5.1-RC4/itest/contribution-import-export/export-composite/src/main/java/hello/Hello.java new file mode 100644 index 0000000000..e65422136f --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-import-export/export-composite/src/main/java/hello/Hello.java @@ -0,0 +1,30 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES 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/tags/java/sca/1.5.1-RC4/itest/contribution-import-export/export-composite/src/main/java/hello/HelloImpl.java b/tags/java/sca/1.5.1-RC4/itest/contribution-import-export/export-composite/src/main/java/hello/HelloImpl.java new file mode 100644 index 0000000000..5369c18497 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-import-export/export-composite/src/main/java/hello/HelloImpl.java @@ -0,0 +1,33 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES 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/tags/java/sca/1.5.1-RC4/itest/contribution-import-export/export-composite/src/main/resources/META-INF/sca-contribution.xml b/tags/java/sca/1.5.1-RC4/itest/contribution-import-export/export-composite/src/main/resources/META-INF/sca-contribution.xml new file mode 100644 index 0000000000..3c14560a56 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-import-export/export-composite/src/main/resources/META-INF/sca-contribution.xml @@ -0,0 +1,25 @@ + + + + + + \ No newline at end of file diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution-import-export/export-composite/src/main/resources/hello.composite b/tags/java/sca/1.5.1-RC4/itest/contribution-import-export/export-composite/src/main/resources/hello.composite new file mode 100644 index 0000000000..636b7111d9 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-import-export/export-composite/src/main/resources/hello.composite @@ -0,0 +1,31 @@ + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution-import-export/export-composite/src/test/java/org/apache/tuscany/sca/test/contribution/HelloTestCase.java b/tags/java/sca/1.5.1-RC4/itest/contribution-import-export/export-composite/src/test/java/org/apache/tuscany/sca/test/contribution/HelloTestCase.java new file mode 100644 index 0000000000..72b77564d2 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-import-export/export-composite/src/test/java/org/apache/tuscany/sca/test/contribution/HelloTestCase.java @@ -0,0 +1,91 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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/tags/java/sca/1.5.1-RC4/itest/contribution-import-export/export-java/pom.xml b/tags/java/sca/1.5.1-RC4/itest/contribution-import-export/export-java/pom.xml new file mode 100644 index 0000000000..85c50da029 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-import-export/export-java/pom.xml @@ -0,0 +1,67 @@ + + + + 4.0.0 + + org.apache.tuscany.sca + tuscany-itest + 1.5.1 + ../pom.xml + + itest-contribution-export-java + Apache Tuscany SCA iTest Contribution Java Export + + + + org.apache.tuscany.sca + tuscany-host-embedded + 1.5.1 + + + + org.apache.tuscany.sca + tuscany-implementation-java-runtime + 1.5.1 + runtime + + + + org.apache.tuscany.sca + tuscany-binding-ws-axis2 + 1.5.1 + runtime + + + + org.apache.tuscany.sca + tuscany-host-tomcat + 1.5.1 + runtime + + + + junit + junit + 4.5 + test + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution-import-export/export-java/src/main/java/helloworld/HelloWorldService.java b/tags/java/sca/1.5.1-RC4/itest/contribution-import-export/export-java/src/main/java/helloworld/HelloWorldService.java new file mode 100644 index 0000000000..74d22ed830 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-import-export/export-java/src/main/java/helloworld/HelloWorldService.java @@ -0,0 +1,30 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES 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/tags/java/sca/1.5.1-RC4/itest/contribution-import-export/export-java/src/main/resources/META-INF/sca-contribution.xml b/tags/java/sca/1.5.1-RC4/itest/contribution-import-export/export-java/src/main/resources/META-INF/sca-contribution.xml new file mode 100644 index 0000000000..dc33dfa560 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-import-export/export-java/src/main/resources/META-INF/sca-contribution.xml @@ -0,0 +1,24 @@ + + + + + \ No newline at end of file diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution-import-export/export-java/src/main/resources/helloworld/HelloWorldImpl.componentType b/tags/java/sca/1.5.1-RC4/itest/contribution-import-export/export-java/src/main/resources/helloworld/HelloWorldImpl.componentType new file mode 100644 index 0000000000..5a14b41650 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-import-export/export-java/src/main/resources/helloworld/HelloWorldImpl.componentType @@ -0,0 +1,30 @@ + + + + + + + + + + \ No newline at end of file diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution-import-export/export-resource/pom.xml b/tags/java/sca/1.5.1-RC4/itest/contribution-import-export/export-resource/pom.xml new file mode 100644 index 0000000000..8d5eb73174 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-import-export/export-resource/pom.xml @@ -0,0 +1,31 @@ + + + + 4.0.0 + + org.apache.tuscany.sca + tuscany-itest + 1.5.1 + ../pom.xml + + itest-contribution-export-resource + Apache Tuscany SCA iTest Contribution Resource Export + + diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution-import-export/export-resource/src/main/resources/META-INF/sca-contribution.xml b/tags/java/sca/1.5.1-RC4/itest/contribution-import-export/export-resource/src/main/resources/META-INF/sca-contribution.xml new file mode 100644 index 0000000000..f11eacb416 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-import-export/export-resource/src/main/resources/META-INF/sca-contribution.xml @@ -0,0 +1,24 @@ + + + + + \ No newline at end of file diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution-import-export/export-resource/src/main/resources/ufservices/store.html b/tags/java/sca/1.5.1-RC4/itest/contribution-import-export/export-resource/src/main/resources/ufservices/store.html new file mode 100644 index 0000000000..1ff281373a --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-import-export/export-resource/src/main/resources/ufservices/store.html @@ -0,0 +1,27 @@ + + + +Store + + + +

Sample Store Page

+ + diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution-import-export/export-wsdl/pom.xml b/tags/java/sca/1.5.1-RC4/itest/contribution-import-export/export-wsdl/pom.xml new file mode 100644 index 0000000000..1793d8e70a --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-import-export/export-wsdl/pom.xml @@ -0,0 +1,31 @@ + + + + 4.0.0 + + org.apache.tuscany.sca + tuscany-itest + 1.5.1 + ../pom.xml + + itest-contribution-export-wsdl + Apache Tuscany SCA iTest Contribution WSDL Export + + diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution-import-export/export-wsdl/src/main/resources/META-INF/sca-contribution.xml b/tags/java/sca/1.5.1-RC4/itest/contribution-import-export/export-wsdl/src/main/resources/META-INF/sca-contribution.xml new file mode 100644 index 0000000000..b7394ec14b --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-import-export/export-wsdl/src/main/resources/META-INF/sca-contribution.xml @@ -0,0 +1,24 @@ + + + + + \ No newline at end of file diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution-import-export/export-wsdl/src/main/resources/helloworld.wsdl b/tags/java/sca/1.5.1-RC4/itest/contribution-import-export/export-wsdl/src/main/resources/helloworld.wsdl new file mode 100644 index 0000000000..9b31363e1a --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-import-export/export-wsdl/src/main/resources/helloworld.wsdl @@ -0,0 +1,76 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution-import-export/export-wsdl/src/main/resources/helloworld.xsd b/tags/java/sca/1.5.1-RC4/itest/contribution-import-export/export-wsdl/src/main/resources/helloworld.xsd new file mode 100644 index 0000000000..d3c83b08c6 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-import-export/export-wsdl/src/main/resources/helloworld.xsd @@ -0,0 +1,35 @@ + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution-import-export/import-composite/pom.xml b/tags/java/sca/1.5.1-RC4/itest/contribution-import-export/import-composite/pom.xml new file mode 100644 index 0000000000..35c0314f65 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-import-export/import-composite/pom.xml @@ -0,0 +1,73 @@ + + + + 4.0.0 + + org.apache.tuscany.sca + tuscany-itest + 1.5.1 + ../pom.xml + + itest-contribution-import-composite + Apache Tuscany SCA iTest Contribution Import + + + + org.apache.tuscany.sca + itest-contribution-export-composite + 1.5.1 + + + + org.apache.tuscany.sca + tuscany-host-embedded + 1.5.1 + + + + org.apache.tuscany.sca + tuscany-implementation-java-runtime + 1.5.1 + runtime + + + + org.apache.tuscany.sca + tuscany-binding-ws-axis2 + 1.5.1 + runtime + + + + org.apache.tuscany.sca + tuscany-host-tomcat + 1.5.1 + runtime + + + + junit + junit + 4.5 + test + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution-import-export/import-composite/src/main/java/helloworld/HelloWorldImpl.java b/tags/java/sca/1.5.1-RC4/itest/contribution-import-export/import-composite/src/main/java/helloworld/HelloWorldImpl.java new file mode 100644 index 0000000000..966f56d7d5 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-import-export/import-composite/src/main/java/helloworld/HelloWorldImpl.java @@ -0,0 +1,38 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES 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/tags/java/sca/1.5.1-RC4/itest/contribution-import-export/import-composite/src/main/java/helloworld/HelloWorldServer.java b/tags/java/sca/1.5.1-RC4/itest/contribution-import-export/import-composite/src/main/java/helloworld/HelloWorldServer.java new file mode 100644 index 0000000000..3d43290380 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-import-export/import-composite/src/main/java/helloworld/HelloWorldServer.java @@ -0,0 +1,46 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES 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/tags/java/sca/1.5.1-RC4/itest/contribution-import-export/import-composite/src/main/java/helloworld/HelloWorldService.java b/tags/java/sca/1.5.1-RC4/itest/contribution-import-export/import-composite/src/main/java/helloworld/HelloWorldService.java new file mode 100644 index 0000000000..74d22ed830 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-import-export/import-composite/src/main/java/helloworld/HelloWorldService.java @@ -0,0 +1,30 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES 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/tags/java/sca/1.5.1-RC4/itest/contribution-import-export/import-composite/src/main/resources/META-INF/sca-contribution.xml b/tags/java/sca/1.5.1-RC4/itest/contribution-import-export/import-composite/src/main/resources/META-INF/sca-contribution.xml new file mode 100644 index 0000000000..9f3f5be452 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-import-export/import-composite/src/main/resources/META-INF/sca-contribution.xml @@ -0,0 +1,27 @@ + + + + + + + \ No newline at end of file diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution-import-export/import-composite/src/main/resources/helloworld.wsdl b/tags/java/sca/1.5.1-RC4/itest/contribution-import-export/import-composite/src/main/resources/helloworld.wsdl new file mode 100644 index 0000000000..9b31363e1a --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-import-export/import-composite/src/main/resources/helloworld.wsdl @@ -0,0 +1,76 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution-import-export/import-composite/src/main/resources/helloworld.xsd b/tags/java/sca/1.5.1-RC4/itest/contribution-import-export/import-composite/src/main/resources/helloworld.xsd new file mode 100644 index 0000000000..d3c83b08c6 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-import-export/import-composite/src/main/resources/helloworld.xsd @@ -0,0 +1,35 @@ + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution-import-export/import-composite/src/main/resources/helloworldws.composite b/tags/java/sca/1.5.1-RC4/itest/contribution-import-export/import-composite/src/main/resources/helloworldws.composite new file mode 100644 index 0000000000..e2f852ff7e --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-import-export/import-composite/src/main/resources/helloworldws.composite @@ -0,0 +1,39 @@ + + + + + + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution-import-export/import-composite/src/test/java/org/apache/tuscany/test/contribution/HelloWorldServerTestCase.java b/tags/java/sca/1.5.1-RC4/itest/contribution-import-export/import-composite/src/test/java/org/apache/tuscany/test/contribution/HelloWorldServerTestCase.java new file mode 100644 index 0000000000..1176a89143 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-import-export/import-composite/src/test/java/org/apache/tuscany/test/contribution/HelloWorldServerTestCase.java @@ -0,0 +1,126 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF 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/tags/java/sca/1.5.1-RC4/itest/contribution-import-export/import-java/pom.xml b/tags/java/sca/1.5.1-RC4/itest/contribution-import-export/import-java/pom.xml new file mode 100644 index 0000000000..32befa7498 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-import-export/import-java/pom.xml @@ -0,0 +1,73 @@ + + + + 4.0.0 + + org.apache.tuscany.sca + tuscany-itest + 1.5.1 + ../pom.xml + + itest-contribution-import-java + Apache Tuscany SCA iTest Contribution Java Import + + + + org.apache.tuscany.sca + itest-contribution-export-java + 1.5.1 + + + + org.apache.tuscany.sca + tuscany-host-embedded + 1.5.1 + + + + org.apache.tuscany.sca + tuscany-implementation-java-runtime + 1.5.1 + runtime + + + + org.apache.tuscany.sca + tuscany-binding-ws-axis2 + 1.5.1 + runtime + + + + org.apache.tuscany.sca + tuscany-host-tomcat + 1.5.1 + runtime + + + + junit + junit + 4.5 + test + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution-import-export/import-java/src/main/java/helloworld/HelloWorldImpl.java b/tags/java/sca/1.5.1-RC4/itest/contribution-import-export/import-java/src/main/java/helloworld/HelloWorldImpl.java new file mode 100644 index 0000000000..4cdcc1fd0b --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-import-export/import-java/src/main/java/helloworld/HelloWorldImpl.java @@ -0,0 +1,33 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES 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/tags/java/sca/1.5.1-RC4/itest/contribution-import-export/import-java/src/main/resources/META-INF/sca-contribution.xml b/tags/java/sca/1.5.1-RC4/itest/contribution-import-export/import-java/src/main/resources/META-INF/sca-contribution.xml new file mode 100644 index 0000000000..224e2c4d79 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-import-export/import-java/src/main/resources/META-INF/sca-contribution.xml @@ -0,0 +1,25 @@ + + + + + + \ No newline at end of file diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution-import-export/import-java/src/main/resources/helloworldws.composite b/tags/java/sca/1.5.1-RC4/itest/contribution-import-export/import-java/src/main/resources/helloworldws.composite new file mode 100644 index 0000000000..9b650e4acc --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-import-export/import-java/src/main/resources/helloworldws.composite @@ -0,0 +1,29 @@ + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution-import-export/import-java/src/test/java/org/apache/tuscany/sca/test/contribution/HelloWorldServerTestCase.java b/tags/java/sca/1.5.1-RC4/itest/contribution-import-export/import-java/src/test/java/org/apache/tuscany/sca/test/contribution/HelloWorldServerTestCase.java new file mode 100644 index 0000000000..431988cc04 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-import-export/import-java/src/test/java/org/apache/tuscany/sca/test/contribution/HelloWorldServerTestCase.java @@ -0,0 +1,127 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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/tags/java/sca/1.5.1-RC4/itest/contribution-import-export/import-resource/pom.xml b/tags/java/sca/1.5.1-RC4/itest/contribution-import-export/import-resource/pom.xml new file mode 100644 index 0000000000..214231ba18 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-import-export/import-resource/pom.xml @@ -0,0 +1,102 @@ + + + + 4.0.0 + + org.apache.tuscany.sca + tuscany-itest + 1.5.1 + ../pom.xml + + itest-contribution-import-resource + Apache Tuscany SCA iTest Contribution Resource Import + + + + + org.apache.tuscany.sca + itest-contribution-export-resource + 1.5.1 + + + + org.apache.tuscany.sca + tuscany-host-embedded + 1.5.1 + runtime + + + + org.apache.tuscany.sca + tuscany-implementation-java-runtime + 1.5.1 + runtime + + + + org.apache.tuscany.sca + tuscany-host-http + 1.5.1 + + + + org.apache.tuscany.sca + tuscany-binding-http-runtime + 1.5.1 + runtime + + + + org.apache.tuscany.sca + tuscany-implementation-resource-runtime + 1.5.1 + test + + + + org.apache.tuscany.sca + tuscany-contribution-resource + 1.5.1 + test + + + + javax.servlet + servlet-api + 2.5 + provided + + + + org.apache.tuscany.sca + tuscany-host-tomcat + 1.5.1 + runtime + + + + junit + junit + 4.5 + test + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution-import-export/import-resource/src/main/resources/META-INF/sca-contribution.xml b/tags/java/sca/1.5.1-RC4/itest/contribution-import-export/import-resource/src/main/resources/META-INF/sca-contribution.xml new file mode 100644 index 0000000000..ac6d7becb3 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-import-export/import-resource/src/main/resources/META-INF/sca-contribution.xml @@ -0,0 +1,25 @@ + + + + + + \ No newline at end of file diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution-import-export/import-resource/src/main/resources/store.composite b/tags/java/sca/1.5.1-RC4/itest/contribution-import-export/import-resource/src/main/resources/store.composite new file mode 100644 index 0000000000..bb5a7b764f --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-import-export/import-resource/src/main/resources/store.composite @@ -0,0 +1,33 @@ + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution-import-export/import-resource/src/test/java/org/apache/tuscany/sca/test/contribution/StoreTestCase.java b/tags/java/sca/1.5.1-RC4/itest/contribution-import-export/import-resource/src/test/java/org/apache/tuscany/sca/test/contribution/StoreTestCase.java new file mode 100644 index 0000000000..1b7542b7d9 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-import-export/import-resource/src/test/java/org/apache/tuscany/sca/test/contribution/StoreTestCase.java @@ -0,0 +1,129 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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/tags/java/sca/1.5.1-RC4/itest/contribution-import-export/import-wsdl/pom.xml b/tags/java/sca/1.5.1-RC4/itest/contribution-import-export/import-wsdl/pom.xml new file mode 100644 index 0000000000..9b60834e53 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-import-export/import-wsdl/pom.xml @@ -0,0 +1,73 @@ + + + + 4.0.0 + + org.apache.tuscany.sca + tuscany-itest + 1.5.1 + ../pom.xml + + itest-contribution-import-wsdl + Apache Tuscany SCA iTest Contribution WSDL Import + + + + org.apache.tuscany.sca + itest-contribution-export-wsdl + 1.5.1 + + + + org.apache.tuscany.sca + tuscany-host-embedded + 1.5.1 + + + + org.apache.tuscany.sca + tuscany-implementation-java-runtime + 1.5.1 + runtime + + + + org.apache.tuscany.sca + tuscany-binding-ws-axis2 + 1.5.1 + runtime + + + + org.apache.tuscany.sca + tuscany-host-tomcat + 1.5.1 + runtime + + + + junit + junit + 4.5 + test + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution-import-export/import-wsdl/src/main/java/helloworld/HelloWorldImpl.java b/tags/java/sca/1.5.1-RC4/itest/contribution-import-export/import-wsdl/src/main/java/helloworld/HelloWorldImpl.java new file mode 100644 index 0000000000..4cdcc1fd0b --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-import-export/import-wsdl/src/main/java/helloworld/HelloWorldImpl.java @@ -0,0 +1,33 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES 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/tags/java/sca/1.5.1-RC4/itest/contribution-import-export/import-wsdl/src/main/java/helloworld/HelloWorldServer.java b/tags/java/sca/1.5.1-RC4/itest/contribution-import-export/import-wsdl/src/main/java/helloworld/HelloWorldServer.java new file mode 100644 index 0000000000..3d43290380 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-import-export/import-wsdl/src/main/java/helloworld/HelloWorldServer.java @@ -0,0 +1,46 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES 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/tags/java/sca/1.5.1-RC4/itest/contribution-import-export/import-wsdl/src/main/java/helloworld/HelloWorldService.java b/tags/java/sca/1.5.1-RC4/itest/contribution-import-export/import-wsdl/src/main/java/helloworld/HelloWorldService.java new file mode 100644 index 0000000000..74d22ed830 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-import-export/import-wsdl/src/main/java/helloworld/HelloWorldService.java @@ -0,0 +1,30 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES 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/tags/java/sca/1.5.1-RC4/itest/contribution-import-export/import-wsdl/src/main/resources/META-INF/sca-contribution.xml b/tags/java/sca/1.5.1-RC4/itest/contribution-import-export/import-wsdl/src/main/resources/META-INF/sca-contribution.xml new file mode 100644 index 0000000000..d46fe0b57c --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-import-export/import-wsdl/src/main/resources/META-INF/sca-contribution.xml @@ -0,0 +1,25 @@ + + + + + + \ No newline at end of file diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution-import-export/import-wsdl/src/main/resources/helloworldws.composite b/tags/java/sca/1.5.1-RC4/itest/contribution-import-export/import-wsdl/src/main/resources/helloworldws.composite new file mode 100644 index 0000000000..5008a2ea5b --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-import-export/import-wsdl/src/main/resources/helloworldws.composite @@ -0,0 +1,33 @@ + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution-import-export/import-wsdl/src/test/java/org/apache/tuscany/sca/test/contribution/HelloWorldServerTestCase.java b/tags/java/sca/1.5.1-RC4/itest/contribution-import-export/import-wsdl/src/test/java/org/apache/tuscany/sca/test/contribution/HelloWorldServerTestCase.java new file mode 100644 index 0000000000..5c40606e50 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-import-export/import-wsdl/src/test/java/org/apache/tuscany/sca/test/contribution/HelloWorldServerTestCase.java @@ -0,0 +1,137 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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/tags/java/sca/1.5.1-RC4/itest/contribution-import-export/pom.xml b/tags/java/sca/1.5.1-RC4/itest/contribution-import-export/pom.xml new file mode 100644 index 0000000000..76fedfafc0 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-import-export/pom.xml @@ -0,0 +1,56 @@ + + + + 4.0.0 + + org.apache.tuscany.sca + tuscany-itest + 1.5.1 + ../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 + 1.5.1 + + + + org.apache.tuscany.sca + tuscany-contribution-impl + 1.5.1 + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/ear-appcomp-contrib-implicit-war-appcomp/pom.xml b/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/ear-appcomp-contrib-implicit-war-appcomp/pom.xml new file mode 100644 index 0000000000..123c776499 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/ear-appcomp-contrib-implicit-war-appcomp/pom.xml @@ -0,0 +1,103 @@ + + + + + 4.0.0 + + org.apache.tuscany.sca + itest-contribution-jee-samples + 1.5.1 + ../pom.xml + + + itest-contribution-jee-samples-30-ear-appcomp-contrib-implicit-war-appcomp + Apache Tuscany SCA iTest Contribution Java EE Samples 30 + ear + + + + org.apache.tuscany.sca + tuscany-sca-api + 1.5.1 + provided + + + + org.apache.geronimo.specs + geronimo-ejb_3.0_spec + 1.0 + provided + + + + org.apache.tuscany.sca + itest-contribution-jee-samples-00-jar-shared + 1.5.1 + provided + + + + org.apache.tuscany.sca + itest-contribution-jee-samples-12-ejb-appcomp-contrib-implicit + 1.5.1 + ejb + provided + + + + org.apache.tuscany.sca + itest-contribution-jee-samples-06-war-appcomp-contrib-implicit + 1.5.1 + war + provided + + + + + + + + org.apache.maven.plugins + maven-ear-plugin + + + + org.apache.tuscany.sca + itest-contribution-jee-samples-00-jar-shared + true + / + + + org.apache.tuscany.sca + itest-contribution-jee-samples-12-ejb-appcomp-contrib-implicit + / + + + org.apache.tuscany.sca + itest-contribution-jee-samples-06-war-appcomp-contrib-implicit + / + + + + + + ${artifactId} + + diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/ear-appcomp-contrib-implicit-war-appcomp/src/main/application/META-INF/application.composite b/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/ear-appcomp-contrib-implicit-war-appcomp/src/main/application/META-INF/application.composite new file mode 100644 index 0000000000..3b1555f567 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/ear-appcomp-contrib-implicit-war-appcomp/src/main/application/META-INF/application.composite @@ -0,0 +1,48 @@ + + + + + + + + + + + + EJB + + + + + + + + + Java + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/ear-appcomp-contrib-implicit/pom.xml b/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/ear-appcomp-contrib-implicit/pom.xml new file mode 100644 index 0000000000..fe71740c9c --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/ear-appcomp-contrib-implicit/pom.xml @@ -0,0 +1,103 @@ + + + + + 4.0.0 + + org.apache.tuscany.sca + itest-contribution-jee-samples + 1.5.1 + ../pom.xml + + + itest-contribution-jee-samples-29-ear-appcomp-contrib-implicit + Apache Tuscany SCA iTest Contribution Java EE Samples 29 + ear + + + + org.apache.tuscany.sca + tuscany-sca-api + 1.5.1 + provided + + + + org.apache.geronimo.specs + geronimo-ejb_3.0_spec + 1.0 + provided + + + + org.apache.tuscany.sca + itest-contribution-jee-samples-00-jar-shared + 1.5.1 + provided + + + + org.apache.tuscany.sca + itest-contribution-jee-samples-08-ejb-enhanced + 1.5.1 + ejb + provided + + + + org.apache.tuscany.sca + itest-contribution-jee-samples-01-war-nonenhanced + 1.5.1 + war + provided + + + + + + + + org.apache.maven.plugins + maven-ear-plugin + + + + org.apache.tuscany.sca + itest-contribution-jee-samples-00-jar-shared + true + / + + + org.apache.tuscany.sca + itest-contribution-jee-samples-08-ejb-enhanced + / + + + org.apache.tuscany.sca + itest-contribution-jee-samples-01-war-nonenhanced + / + + + + + + ${artifactId} + + diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/ear-appcomp-contrib-implicit/src/main/application/META-INF/application.composite b/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/ear-appcomp-contrib-implicit/src/main/application/META-INF/application.composite new file mode 100644 index 0000000000..b131d375b0 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/ear-appcomp-contrib-implicit/src/main/application/META-INF/application.composite @@ -0,0 +1,62 @@ + + + + + + + + + + + + EJB + + + + + + + + + + EJB + + + + + + + + + + + + + Java + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/ear-appcomp-contrib-implicit/src/main/resources/isthisignored.composite b/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/ear-appcomp-contrib-implicit/src/main/resources/isthisignored.composite new file mode 100644 index 0000000000..90872041b0 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/ear-appcomp-contrib-implicit/src/main/resources/isthisignored.composite @@ -0,0 +1,49 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/ear-nonenhanced/pom.xml b/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/ear-nonenhanced/pom.xml new file mode 100644 index 0000000000..94795ab129 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/ear-nonenhanced/pom.xml @@ -0,0 +1,90 @@ + + + + + 4.0.0 + + org.apache.tuscany.sca + itest-contribution-jee-samples + 1.5.1 + ../pom.xml + + + itest-contribution-jee-samples-13-ear-nonenhanced + Apache Tuscany SCA iTest Contribution Java EE Samples 13 + ear + + + + org.apache.tuscany.sca + tuscany-sca-api + 1.5.1 + provided + + + + org.apache.geronimo.specs + geronimo-ejb_3.0_spec + 1.0 + provided + + + + org.apache.tuscany.sca + itest-contribution-jee-samples-07-ejb-nonenhanced + 1.5.1 + ejb + provided + + + + org.apache.tuscany.sca + itest-contribution-jee-samples-01-war-nonenhanced + 1.5.1 + war + provided + + + + + + + + org.apache.maven.plugins + maven-ear-plugin + + + + org.apache.tuscany.sca + itest-contribution-jee-samples-07-ejb-nonenhanced + / + + + org.apache.tuscany.sca + itest-contribution-jee-samples-01-war-nonenhanced + / + + + + + + ${artifactId} + + diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/ejb-appcomp-contrib-implicit/pom.xml b/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/ejb-appcomp-contrib-implicit/pom.xml new file mode 100644 index 0000000000..e7f7422a7d --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/ejb-appcomp-contrib-implicit/pom.xml @@ -0,0 +1,68 @@ + + + + + 4.0.0 + + org.apache.tuscany.sca + itest-contribution-jee-samples + 1.5.1 + ../pom.xml + + + itest-contribution-jee-samples-12-ejb-appcomp-contrib-implicit + Apache Tuscany SCA iTest Contribution Java EE Samples 12 + ejb + + + + org.apache.tuscany.sca + tuscany-sca-api + 1.5.1 + provided + + + + org.apache.geronimo.specs + geronimo-ejb_3.0_spec + 1.0 + provided + + + org.apache.geronimo.specs + geronimo-annotation_1.0_spec + 1.1.1 + provided + + + + + ${artifactId} + + + org.apache.maven.plugins + maven-ejb-plugin + + 3.0 + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/ejb-appcomp-contrib-implicit/src/main/java/sample/ejb3/HelloworldService.java b/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/ejb-appcomp-contrib-implicit/src/main/java/sample/ejb3/HelloworldService.java new file mode 100644 index 0000000000..0194d1870c --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/ejb-appcomp-contrib-implicit/src/main/java/sample/ejb3/HelloworldService.java @@ -0,0 +1,33 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package sample.ejb3; + +import javax.ejb.Remote; + +/** + * HelloworldService EJB interface. + * + * @version $Rev$ $Date$ + */ + +@Remote +public interface HelloworldService { + String getGreetings(String name); +} diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/ejb-appcomp-contrib-implicit/src/main/java/sample/ejb3/HelloworldServiceBean.java b/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/ejb-appcomp-contrib-implicit/src/main/java/sample/ejb3/HelloworldServiceBean.java new file mode 100644 index 0000000000..ad9003dc67 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/ejb-appcomp-contrib-implicit/src/main/java/sample/ejb3/HelloworldServiceBean.java @@ -0,0 +1,40 @@ +/** + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package sample.ejb3; + +import javax.ejb.Stateless; + +import org.osoa.sca.annotations.Reference; + +/** + * HelloworldService EJB implementation with no SCA enhancement + + */ +@Stateless +public class HelloworldServiceBean implements HelloworldService { + + @Reference + protected HelloworldService nextService; + + public String getGreetings(String name) { + String greeting = "Hello " + name; + System.out.println(greeting); + return greeting; + } + +} diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/ejb-appcomp-contrib-implicit/src/main/resources/META-INF/ejb-jar.composite b/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/ejb-appcomp-contrib-implicit/src/main/resources/META-INF/ejb-jar.composite new file mode 100644 index 0000000000..bcaa154913 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/ejb-appcomp-contrib-implicit/src/main/resources/META-INF/ejb-jar.composite @@ -0,0 +1,35 @@ + + + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/ejb-appcomp-contrib-implicit/src/main/resources/META-INF/openejb-jar.xml b/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/ejb-appcomp-contrib-implicit/src/main/resources/META-INF/openejb-jar.xml new file mode 100644 index 0000000000..9a97cbd535 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/ejb-appcomp-contrib-implicit/src/main/resources/META-INF/openejb-jar.xml @@ -0,0 +1,32 @@ + + + + + + test + itest-contribution-jee-samples-12-ejb-appcomp-contrib-implicit + 1.0 + jar + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/ejb-enhanced/pom.xml b/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/ejb-enhanced/pom.xml new file mode 100644 index 0000000000..10aa2d8127 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/ejb-enhanced/pom.xml @@ -0,0 +1,68 @@ + + + + + 4.0.0 + + org.apache.tuscany.sca + itest-contribution-jee-samples + 1.5.1 + ../pom.xml + + + itest-contribution-jee-samples-08-ejb-enhanced + Apache Tuscany SCA iTest Contribution Java EE Samples 08 + ejb + + + + org.apache.tuscany.sca + tuscany-sca-api + 1.5.1 + provided + + + + org.apache.geronimo.specs + geronimo-ejb_3.0_spec + 1.0 + provided + + + org.apache.geronimo.specs + geronimo-annotation_1.0_spec + 1.1.1 + provided + + + + + ${artifactId} + + + org.apache.maven.plugins + maven-ejb-plugin + + 3.0 + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/ejb-enhanced/src/main/java/sample/ejb3/HelloworldLocal8.java b/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/ejb-enhanced/src/main/java/sample/ejb3/HelloworldLocal8.java new file mode 100644 index 0000000000..b5224a2319 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/ejb-enhanced/src/main/java/sample/ejb3/HelloworldLocal8.java @@ -0,0 +1,33 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package sample.ejb3; + +import javax.ejb.Local; + +/** + * HelloworldService EJB interface. + * + * @version $Rev$ $Date$ + */ + +@Local +public interface HelloworldLocal8 { + String getGreetingsLocal(String name); +} diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/ejb-enhanced/src/main/java/sample/ejb3/HelloworldService8.java b/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/ejb-enhanced/src/main/java/sample/ejb3/HelloworldService8.java new file mode 100644 index 0000000000..e5e9fe6a82 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/ejb-enhanced/src/main/java/sample/ejb3/HelloworldService8.java @@ -0,0 +1,33 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package sample.ejb3; + +import javax.ejb.Remote; + +/** + * HelloworldService EJB interface. + * + * @version $Rev$ $Date$ + */ + +@Remote +public interface HelloworldService8 { + String getGreetings(String name); +} diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/ejb-enhanced/src/main/java/sample/ejb3/HelloworldService8Bean.java b/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/ejb-enhanced/src/main/java/sample/ejb3/HelloworldService8Bean.java new file mode 100644 index 0000000000..a6d7f2dd04 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/ejb-enhanced/src/main/java/sample/ejb3/HelloworldService8Bean.java @@ -0,0 +1,50 @@ +/** + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package sample.ejb3; + +import javax.ejb.Stateless; + +import org.osoa.sca.annotations.Property; +import org.osoa.sca.annotations.Reference; + +/** + * HelloworldService EJB implementation SCA enhancement + + */ +@Stateless +public class HelloworldService8Bean implements HelloworldService8, HelloworldLocal8 { + + @Reference + protected HelloworldService8 hwReference; + + @Property + protected String hwProperty; + + public String getGreetings(String name) { + String greeting = "Hello remote " + name; + System.out.println(greeting); + return greeting; + } + + public String getGreetingsLocal(String name) { + String greeting = "Hello local " + name; + System.out.println(greeting); + return greeting; + } + +} diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/ejb-enhanced/src/main/resources/META-INF/openejb-jar.xml b/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/ejb-enhanced/src/main/resources/META-INF/openejb-jar.xml new file mode 100644 index 0000000000..db36c4b140 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/ejb-enhanced/src/main/resources/META-INF/openejb-jar.xml @@ -0,0 +1,32 @@ + + + + + + test + itest-contribution-jee-samples-08-ejb-enhanced + 1.0 + jar + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/ejb-enhanced/src/main/resources/isthisignored.composite b/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/ejb-enhanced/src/main/resources/isthisignored.composite new file mode 100644 index 0000000000..90872041b0 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/ejb-enhanced/src/main/resources/isthisignored.composite @@ -0,0 +1,49 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/ejb-nonenhanced/pom.xml b/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/ejb-nonenhanced/pom.xml new file mode 100644 index 0000000000..506652388d --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/ejb-nonenhanced/pom.xml @@ -0,0 +1,68 @@ + + + + + 4.0.0 + + org.apache.tuscany.sca + itest-contribution-jee-samples + 1.5.1 + ../pom.xml + + + itest-contribution-jee-samples-07-ejb-nonenhanced + Apache Tuscany SCA iTest Contribution Java EE Samples 07 + ejb + + + + org.apache.tuscany.sca + tuscany-sca-api + 1.5.1 + provided + + + + org.apache.geronimo.specs + geronimo-ejb_3.0_spec + 1.0 + provided + + + org.apache.geronimo.specs + geronimo-annotation_1.0_spec + 1.1.1 + provided + + + + + ${artifactId} + + + org.apache.maven.plugins + maven-ejb-plugin + + 3.0 + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/ejb-nonenhanced/src/main/java/sample/ejb3/HelloworldLocal7.java b/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/ejb-nonenhanced/src/main/java/sample/ejb3/HelloworldLocal7.java new file mode 100644 index 0000000000..4df5cd37de --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/ejb-nonenhanced/src/main/java/sample/ejb3/HelloworldLocal7.java @@ -0,0 +1,33 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package sample.ejb3; + +import javax.ejb.Local; + +/** + * HelloworldService EJB interface. + * + * @version $Rev$ $Date$ + */ + +@Local +public interface HelloworldLocal7 { + String getGreetingsLocal(String name); +} diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/ejb-nonenhanced/src/main/java/sample/ejb3/HelloworldService7.java b/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/ejb-nonenhanced/src/main/java/sample/ejb3/HelloworldService7.java new file mode 100644 index 0000000000..41ecddb62e --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/ejb-nonenhanced/src/main/java/sample/ejb3/HelloworldService7.java @@ -0,0 +1,33 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package sample.ejb3; + +import javax.ejb.Remote; + +/** + * HelloworldService EJB interface. + * + * @version $Rev$ $Date$ + */ + +@Remote +public interface HelloworldService7 { + String getGreetings(String name); +} diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/ejb-nonenhanced/src/main/java/sample/ejb3/HelloworldService7Bean.java b/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/ejb-nonenhanced/src/main/java/sample/ejb3/HelloworldService7Bean.java new file mode 100644 index 0000000000..403ead623c --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/ejb-nonenhanced/src/main/java/sample/ejb3/HelloworldService7Bean.java @@ -0,0 +1,41 @@ +/** + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package sample.ejb3; + +import javax.ejb.Stateless; + +/** + * HelloworldService EJB implementation with no SCA enhancement + + */ +@Stateless +public class HelloworldService7Bean implements HelloworldService7, HelloworldLocal7 { + + public String getGreetings(String name) { + String greeting = "Hello remote " + name; + System.out.println(greeting); + return greeting; + } + + public String getGreetingsLocal(String name) { + String greeting = "Hello local " + name; + System.out.println(greeting); + return greeting; + } + +} diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/ejb-nonenhanced/src/main/java/sample/ejb3/HelloworldService7aBean.java b/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/ejb-nonenhanced/src/main/java/sample/ejb3/HelloworldService7aBean.java new file mode 100644 index 0000000000..97242bff96 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/ejb-nonenhanced/src/main/java/sample/ejb3/HelloworldService7aBean.java @@ -0,0 +1,41 @@ +/** + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package sample.ejb3; + +import javax.ejb.Stateless; + +/** + * Another HelloworldService EJB implementation with no SCA enhancement + * A test for TUSCANY-3198 + */ +@Stateless +public class HelloworldService7aBean implements HelloworldService7, HelloworldLocal7 { + + public String getGreetings(String name) { + String greeting = "Hello remote " + name; + System.out.println(greeting); + return greeting; + } + + public String getGreetingsLocal(String name) { + String greeting = "Hello local " + name; + System.out.println(greeting); + return greeting; + } + +} diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/ejb-nonenhanced/src/main/resources/META-INF/openejb-jar.xml b/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/ejb-nonenhanced/src/main/resources/META-INF/openejb-jar.xml new file mode 100644 index 0000000000..7428735903 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/ejb-nonenhanced/src/main/resources/META-INF/openejb-jar.xml @@ -0,0 +1,32 @@ + + + + + + test + itest-contribution-jee-samples-7-ejb-nonenhanced + 1.0 + jar + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/jar-shared/pom.xml b/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/jar-shared/pom.xml new file mode 100644 index 0000000000..0e7836ceb1 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/jar-shared/pom.xml @@ -0,0 +1,72 @@ + + + + + 4.0.0 + + org.apache.tuscany.sca + itest-contribution-jee-samples + 1.5.1 + ../pom.xml + + + itest-contribution-jee-samples-00-jar-shared + Apache Tuscany SCA iTest Contribution Java EE Samples 00 + + + + org.apache.tuscany.sca + tuscany-sca-api + 1.5.1 + provided + + + + org.apache.geronimo.specs + geronimo-ejb_3.0_spec + 1.0 + provided + + + org.apache.geronimo.specs + geronimo-annotation_1.0_spec + 1.1.1 + provided + + + + + ${artifactId} + + + org.apache.maven.plugins + maven-jar-plugin + 2.2 + + + + sample.java.JarMain + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/jar-shared/src/main/java/sample/java/HelloworldServiceJava.java b/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/jar-shared/src/main/java/sample/java/HelloworldServiceJava.java new file mode 100644 index 0000000000..5a08769550 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/jar-shared/src/main/java/sample/java/HelloworldServiceJava.java @@ -0,0 +1,33 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package sample.java; + +import org.osoa.sca.annotations.Remotable; + +/** + * HelloworldService EJB interface. + * + * @version $Rev$ $Date$ + */ + +@Remotable +public interface HelloworldServiceJava { + String getGreetings(String name); +} diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/jar-shared/src/main/java/sample/java/HelloworldServiceJavaImpl.java b/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/jar-shared/src/main/java/sample/java/HelloworldServiceJavaImpl.java new file mode 100644 index 0000000000..265af5b3a0 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/jar-shared/src/main/java/sample/java/HelloworldServiceJavaImpl.java @@ -0,0 +1,36 @@ +/** + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package sample.java; + +import org.osoa.sca.annotations.Property; +import org.osoa.sca.annotations.Reference; + +public class HelloworldServiceJavaImpl implements HelloworldServiceJava { + + @Reference + protected HelloworldServiceJava hwReference; + + @Property + protected String hwProperty; + + public String getGreetings(String name) { + String greeting = hwReference.getGreetings(name) + " " + hwProperty; + System.out.println(greeting); + return greeting; + } +} diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/jar-shared/src/main/java/sample/java/JarMain.java b/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/jar-shared/src/main/java/sample/java/JarMain.java new file mode 100644 index 0000000000..81793e47e6 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/jar-shared/src/main/java/sample/java/JarMain.java @@ -0,0 +1,24 @@ +/** + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package sample.java; + +public class JarMain { + + public static void main(String[] args) { + System.out.println("JarMain called"); + } +} diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/pom.xml b/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/pom.xml new file mode 100644 index 0000000000..6ab28e497d --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/pom.xml @@ -0,0 +1,59 @@ + + + + 4.0.0 + + + org.apache.tuscany.sca + tuscany-itest + 1.5.1 + ../pom.xml + + + itest-contribution-jee-samples + Apache Tuscany SCA iTest Contribution Java EE Samples + + pom + + + + default + + true + + + jar-shared + war-nonenhanced + war-appcomp-contrib-implicit + ejb-nonenhanced + ejb-enhanced + ejb-appcomp-contrib-implicit + ear-nonenhanced + ear-appcomp-contrib-implicit + ear-appcomp-contrib-implicit-war-appcomp + scajar-ear-nonenhanced + scajar-ear-appcomp + scajar-ear-appcomp-war-appcomp + scazip-ejb-appcomp + scazip-war-appcomp + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/scajar-ear-appcomp-war-appcomp/pom.xml b/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/scajar-ear-appcomp-war-appcomp/pom.xml new file mode 100644 index 0000000000..302a758784 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/scajar-ear-appcomp-war-appcomp/pom.xml @@ -0,0 +1,72 @@ + + + + 4.0.0 + + org.apache.tuscany.sca + tuscany-sca + 1.5.1 + ../../pom.xml + + itest-contribution-jee-samples-43-scajar-ear-appcomp-war-appcomp + Apache Tuscany SCA iTest Contribution Java EE Samples 43 + + + + apache.incubator + http://people.apache.org/repo/m2-incubating-repository + + + + + + org.apache.tuscany.sca + tuscany-sca-api + 1.5.1 + provided + + + + org.apache.tuscany.sca + tuscany-implementation-java-runtime + 1.5.1 + runtime + + + + org.apache.geronimo.specs + geronimo-ejb_3.0_spec + 1.0 + provided + + + + junit + junit + 4.5 + test + + + + + + ${artifactId} + + diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/scajar-ear-appcomp-war-appcomp/src/main/java/sample/ejb3/HelloworldService.java b/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/scajar-ear-appcomp-war-appcomp/src/main/java/sample/ejb3/HelloworldService.java new file mode 100644 index 0000000000..0194d1870c --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/scajar-ear-appcomp-war-appcomp/src/main/java/sample/ejb3/HelloworldService.java @@ -0,0 +1,33 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package sample.ejb3; + +import javax.ejb.Remote; + +/** + * HelloworldService EJB interface. + * + * @version $Rev$ $Date$ + */ + +@Remote +public interface HelloworldService { + String getGreetings(String name); +} diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/scajar-ear-appcomp-war-appcomp/src/main/java/sample/java/HelloworldServiceJava.java b/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/scajar-ear-appcomp-war-appcomp/src/main/java/sample/java/HelloworldServiceJava.java new file mode 100644 index 0000000000..1fad282a75 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/scajar-ear-appcomp-war-appcomp/src/main/java/sample/java/HelloworldServiceJava.java @@ -0,0 +1,28 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package sample.java; + +import org.osoa.sca.annotations.Remotable; + + +@Remotable +public interface HelloworldServiceJava { + String getGreetings(String name); +} diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/scajar-ear-appcomp-war-appcomp/src/main/java/sample/pojo/HelloworldClient2.java b/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/scajar-ear-appcomp-war-appcomp/src/main/java/sample/pojo/HelloworldClient2.java new file mode 100644 index 0000000000..8adb6a5995 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/scajar-ear-appcomp-war-appcomp/src/main/java/sample/pojo/HelloworldClient2.java @@ -0,0 +1,25 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package sample.pojo; + +public interface HelloworldClient2 { + + String getGreetings(String name); + +} diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/scajar-ear-appcomp-war-appcomp/src/main/java/sample/pojo/HelloworldClient2Impl.java b/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/scajar-ear-appcomp-war-appcomp/src/main/java/sample/pojo/HelloworldClient2Impl.java new file mode 100644 index 0000000000..ae16263505 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/scajar-ear-appcomp-war-appcomp/src/main/java/sample/pojo/HelloworldClient2Impl.java @@ -0,0 +1,39 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package sample.pojo; + +import org.osoa.sca.annotations.Reference; + +import sample.ejb3.HelloworldService; +import sample.java.HelloworldServiceJava; + +public class HelloworldClient2Impl implements HelloworldClient2 { + + @Reference + protected HelloworldService hwService; + + @Reference + protected HelloworldServiceJava hwJavaService; + + public String getGreetings(String name){ + //return hwService.getGreetings(name) + hwJavaService.getGreetings(name); + return hwJavaService.getGreetings(name); + } + +} diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/scajar-ear-appcomp-war-appcomp/src/main/java/sample/pojo/HelloworldTargetImpl.java b/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/scajar-ear-appcomp-war-appcomp/src/main/java/sample/pojo/HelloworldTargetImpl.java new file mode 100644 index 0000000000..05885cead7 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/scajar-ear-appcomp-war-appcomp/src/main/java/sample/pojo/HelloworldTargetImpl.java @@ -0,0 +1,29 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package sample.pojo; + +import sample.java.HelloworldServiceJava; + +public class HelloworldTargetImpl implements HelloworldServiceJava { + + public String getGreetings(String name){ + return "Hello " + name; + } + +} diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/scajar-ear-appcomp-war-appcomp/src/main/resources/helloworld.composite b/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/scajar-ear-appcomp-war-appcomp/src/main/resources/helloworld.composite new file mode 100644 index 0000000000..e9346fb2bb --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/scajar-ear-appcomp-war-appcomp/src/main/resources/helloworld.composite @@ -0,0 +1,40 @@ + + + + + + + + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/scajar-ear-appcomp/pom.xml b/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/scajar-ear-appcomp/pom.xml new file mode 100644 index 0000000000..718a745068 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/scajar-ear-appcomp/pom.xml @@ -0,0 +1,72 @@ + + + + 4.0.0 + + org.apache.tuscany.sca + tuscany-sca + 1.5.1 + ../../pom.xml + + itest-contribution-jee-samples-41-scajar-ear-appcomp + Apache Tuscany SCA iTest Contribution Java EE Samples 41 + + + + apache.incubator + http://people.apache.org/repo/m2-incubating-repository + + + + + + org.apache.tuscany.sca + tuscany-sca-api + 1.5.1 + provided + + + + org.apache.tuscany.sca + tuscany-implementation-java-runtime + 1.5.1 + runtime + + + + org.apache.geronimo.specs + geronimo-ejb_3.0_spec + 1.0 + provided + + + + junit + junit + 4.5 + test + + + + + + ${artifactId} + + diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/scajar-ear-appcomp/src/main/java/sample/ejb3/HelloworldService.java b/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/scajar-ear-appcomp/src/main/java/sample/ejb3/HelloworldService.java new file mode 100644 index 0000000000..0194d1870c --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/scajar-ear-appcomp/src/main/java/sample/ejb3/HelloworldService.java @@ -0,0 +1,33 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package sample.ejb3; + +import javax.ejb.Remote; + +/** + * HelloworldService EJB interface. + * + * @version $Rev$ $Date$ + */ + +@Remote +public interface HelloworldService { + String getGreetings(String name); +} diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/scajar-ear-appcomp/src/main/java/sample/java/HelloworldServiceJava.java b/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/scajar-ear-appcomp/src/main/java/sample/java/HelloworldServiceJava.java new file mode 100644 index 0000000000..1fad282a75 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/scajar-ear-appcomp/src/main/java/sample/java/HelloworldServiceJava.java @@ -0,0 +1,28 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package sample.java; + +import org.osoa.sca.annotations.Remotable; + + +@Remotable +public interface HelloworldServiceJava { + String getGreetings(String name); +} diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/scajar-ear-appcomp/src/main/java/sample/pojo/HelloworldClient2.java b/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/scajar-ear-appcomp/src/main/java/sample/pojo/HelloworldClient2.java new file mode 100644 index 0000000000..8adb6a5995 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/scajar-ear-appcomp/src/main/java/sample/pojo/HelloworldClient2.java @@ -0,0 +1,25 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package sample.pojo; + +public interface HelloworldClient2 { + + String getGreetings(String name); + +} diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/scajar-ear-appcomp/src/main/java/sample/pojo/HelloworldClient2Impl.java b/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/scajar-ear-appcomp/src/main/java/sample/pojo/HelloworldClient2Impl.java new file mode 100644 index 0000000000..ae16263505 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/scajar-ear-appcomp/src/main/java/sample/pojo/HelloworldClient2Impl.java @@ -0,0 +1,39 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package sample.pojo; + +import org.osoa.sca.annotations.Reference; + +import sample.ejb3.HelloworldService; +import sample.java.HelloworldServiceJava; + +public class HelloworldClient2Impl implements HelloworldClient2 { + + @Reference + protected HelloworldService hwService; + + @Reference + protected HelloworldServiceJava hwJavaService; + + public String getGreetings(String name){ + //return hwService.getGreetings(name) + hwJavaService.getGreetings(name); + return hwJavaService.getGreetings(name); + } + +} diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/scajar-ear-appcomp/src/main/java/sample/pojo/HelloworldTargetImpl.java b/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/scajar-ear-appcomp/src/main/java/sample/pojo/HelloworldTargetImpl.java new file mode 100644 index 0000000000..05885cead7 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/scajar-ear-appcomp/src/main/java/sample/pojo/HelloworldTargetImpl.java @@ -0,0 +1,29 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package sample.pojo; + +import sample.java.HelloworldServiceJava; + +public class HelloworldTargetImpl implements HelloworldServiceJava { + + public String getGreetings(String name){ + return "Hello " + name; + } + +} diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/scajar-ear-appcomp/src/main/resources/helloworld.composite b/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/scajar-ear-appcomp/src/main/resources/helloworld.composite new file mode 100644 index 0000000000..ebd8377725 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/scajar-ear-appcomp/src/main/resources/helloworld.composite @@ -0,0 +1,40 @@ + + + + + + + + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/scajar-ear-nonenhanced/pom.xml b/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/scajar-ear-nonenhanced/pom.xml new file mode 100644 index 0000000000..c29d0c58ce --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/scajar-ear-nonenhanced/pom.xml @@ -0,0 +1,72 @@ + + + + 4.0.0 + + org.apache.tuscany.sca + tuscany-sca + 1.5.1 + ../../pom.xml + + itest-contribution-jee-samples-35-scajar-ear-nonenhanced + Apache Tuscany SCA iTest Contribution Java EE Samples 35 + + + + apache.incubator + http://people.apache.org/repo/m2-incubating-repository + + + + + + org.apache.tuscany.sca + tuscany-sca-api + 1.5.1 + provided + + + + org.apache.tuscany.sca + tuscany-implementation-java-runtime + 1.5.1 + runtime + + + + org.apache.geronimo.specs + geronimo-ejb_3.0_spec + 1.0 + provided + + + + junit + junit + 4.5 + test + + + + + + ${artifactId} + + diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/scajar-ear-nonenhanced/src/main/java/sample/ejb3/HelloworldService.java b/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/scajar-ear-nonenhanced/src/main/java/sample/ejb3/HelloworldService.java new file mode 100644 index 0000000000..0194d1870c --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/scajar-ear-nonenhanced/src/main/java/sample/ejb3/HelloworldService.java @@ -0,0 +1,33 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package sample.ejb3; + +import javax.ejb.Remote; + +/** + * HelloworldService EJB interface. + * + * @version $Rev$ $Date$ + */ + +@Remote +public interface HelloworldService { + String getGreetings(String name); +} diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/scajar-ear-nonenhanced/src/main/java/sample/pojo/HelloworldClient.java b/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/scajar-ear-nonenhanced/src/main/java/sample/pojo/HelloworldClient.java new file mode 100644 index 0000000000..6f37c9b272 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/scajar-ear-nonenhanced/src/main/java/sample/pojo/HelloworldClient.java @@ -0,0 +1,25 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package sample.pojo; + +public interface HelloworldClient { + + String getGreetings(String name); + +} diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/scajar-ear-nonenhanced/src/main/java/sample/pojo/HelloworldClientImpl.java b/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/scajar-ear-nonenhanced/src/main/java/sample/pojo/HelloworldClientImpl.java new file mode 100644 index 0000000000..a38c4a773f --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/scajar-ear-nonenhanced/src/main/java/sample/pojo/HelloworldClientImpl.java @@ -0,0 +1,34 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package sample.pojo; + +import org.osoa.sca.annotations.Reference; + +import sample.ejb3.HelloworldService; + +public class HelloworldClientImpl implements HelloworldClient { + + @Reference + protected HelloworldService hwService; + + public String getGreetings(String name){ + return hwService.getGreetings(name); + } + +} diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/scajar-ear-nonenhanced/src/main/resources/helloworld.composite b/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/scajar-ear-nonenhanced/src/main/resources/helloworld.composite new file mode 100644 index 0000000000..79c9dd3243 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/scajar-ear-nonenhanced/src/main/resources/helloworld.composite @@ -0,0 +1,34 @@ + + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/scazip-ejb-appcomp/build.xml b/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/scazip-ejb-appcomp/build.xml new file mode 100644 index 0000000000..bdbe79a46d --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/scazip-ejb-appcomp/build.xml @@ -0,0 +1,24 @@ + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/scazip-ejb-appcomp/pom.xml b/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/scazip-ejb-appcomp/pom.xml new file mode 100644 index 0000000000..67241cc12e --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/scazip-ejb-appcomp/pom.xml @@ -0,0 +1,135 @@ + + + + 4.0.0 + + org.apache.tuscany.sca + tuscany-sca + 1.5.1 + ../../pom.xml + + itest-contribution-jee-samples-10-scazip-ejb-appcomp + Apache Tuscany SCA iTest Contribution Java EE Samples 10 + + + + apache.incubator + http://people.apache.org/repo/m2-incubating-repository + + + + + + org.apache.tuscany.sca + tuscany-sca-api + 1.5.1 + provided + + + + org.apache.tuscany.sca + tuscany-implementation-java-runtime + 1.5.1 + runtime + + + + org.apache.geronimo.specs + geronimo-ejb_3.0_spec + 1.0 + provided + + + + org.apache.tuscany.sca + itest-contribution-jee-samples-12-ejb-appcomp-contrib-implicit + 1.5.1 + ejb + + + + junit + junit + 4.5 + test + + + + + + ${artifactId} + + + org.apache.maven.plugins + maven-dependency-plugin + + + generate-sources + + copy + + + + + org.apache.tuscany.sca + itest-contribution-jee-samples-12-ejb-appcomp-contrib-implicit + ${project.version} + true + ${project.build.directory}/classes + + + true + + + + + + org.apache.maven.plugins + maven-antrun-plugin + 1.3 + + + + ant + ant-trax + 1.6.5 + + + + + + copy-jar-to-zip + verify + + run + + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/scazip-ejb-appcomp/src/main/java/sample/ejb3/HelloworldService.java b/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/scazip-ejb-appcomp/src/main/java/sample/ejb3/HelloworldService.java new file mode 100644 index 0000000000..0194d1870c --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/scazip-ejb-appcomp/src/main/java/sample/ejb3/HelloworldService.java @@ -0,0 +1,33 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package sample.ejb3; + +import javax.ejb.Remote; + +/** + * HelloworldService EJB interface. + * + * @version $Rev$ $Date$ + */ + +@Remote +public interface HelloworldService { + String getGreetings(String name); +} diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/scazip-ejb-appcomp/src/main/java/sample/pojo/HelloworldClient.java b/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/scazip-ejb-appcomp/src/main/java/sample/pojo/HelloworldClient.java new file mode 100644 index 0000000000..6f37c9b272 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/scazip-ejb-appcomp/src/main/java/sample/pojo/HelloworldClient.java @@ -0,0 +1,25 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package sample.pojo; + +public interface HelloworldClient { + + String getGreetings(String name); + +} diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/scazip-ejb-appcomp/src/main/java/sample/pojo/HelloworldClientImpl.java b/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/scazip-ejb-appcomp/src/main/java/sample/pojo/HelloworldClientImpl.java new file mode 100644 index 0000000000..a38c4a773f --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/scazip-ejb-appcomp/src/main/java/sample/pojo/HelloworldClientImpl.java @@ -0,0 +1,34 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package sample.pojo; + +import org.osoa.sca.annotations.Reference; + +import sample.ejb3.HelloworldService; + +public class HelloworldClientImpl implements HelloworldClient { + + @Reference + protected HelloworldService hwService; + + public String getGreetings(String name){ + return hwService.getGreetings(name); + } + +} diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/scazip-ejb-appcomp/src/main/resources/helloworld.composite b/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/scazip-ejb-appcomp/src/main/resources/helloworld.composite new file mode 100644 index 0000000000..909b8a1484 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/scazip-ejb-appcomp/src/main/resources/helloworld.composite @@ -0,0 +1,34 @@ + + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/scazip-war-appcomp/build.xml b/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/scazip-war-appcomp/build.xml new file mode 100644 index 0000000000..bdbe79a46d --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/scazip-war-appcomp/build.xml @@ -0,0 +1,24 @@ + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/scazip-war-appcomp/pom.xml b/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/scazip-war-appcomp/pom.xml new file mode 100644 index 0000000000..f88d68876d --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/scazip-war-appcomp/pom.xml @@ -0,0 +1,136 @@ + + + + 4.0.0 + + org.apache.tuscany.sca + tuscany-sca + 1.5.1 + ../../pom.xml + + itest-contribution-jee-samples-04-scazip-war-appcomp + Apache Tuscany SCA iTest Contribution Java EE Samples 04 + + + + apache.incubator + http://people.apache.org/repo/m2-incubating-repository + + + + + + org.apache.tuscany.sca + tuscany-sca-api + 1.5.1 + provided + + + + org.apache.tuscany.sca + tuscany-implementation-java-runtime + 1.5.1 + runtime + + + + org.apache.geronimo.specs + geronimo-ejb_3.0_spec + 1.0 + provided + + + + org.apache.tuscany.sca + itest-contribution-jee-samples-06-war-appcomp-contrib-implicit + 1.5.1 + war + + + + junit + junit + 4.5 + test + + + + + + ${artifactId} + + + org.apache.maven.plugins + maven-dependency-plugin + + + generate-sources + + copy + + + + + org.apache.tuscany.sca + itest-contribution-jee-samples-06-war-appcomp-contrib-implicit + ${project.version} + war + true + ${project.build.directory}/classes + + + true + + + + + + org.apache.maven.plugins + maven-antrun-plugin + 1.3 + + + + ant + ant-trax + 1.6.5 + + + + + + copy-jar-to-zip + verify + + run + + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/scazip-war-appcomp/src/main/java/sample/ejb3/HelloworldService.java b/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/scazip-war-appcomp/src/main/java/sample/ejb3/HelloworldService.java new file mode 100644 index 0000000000..0194d1870c --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/scazip-war-appcomp/src/main/java/sample/ejb3/HelloworldService.java @@ -0,0 +1,33 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package sample.ejb3; + +import javax.ejb.Remote; + +/** + * HelloworldService EJB interface. + * + * @version $Rev$ $Date$ + */ + +@Remote +public interface HelloworldService { + String getGreetings(String name); +} diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/scazip-war-appcomp/src/main/java/sample/pojo/HelloworldClient.java b/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/scazip-war-appcomp/src/main/java/sample/pojo/HelloworldClient.java new file mode 100644 index 0000000000..6f37c9b272 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/scazip-war-appcomp/src/main/java/sample/pojo/HelloworldClient.java @@ -0,0 +1,25 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package sample.pojo; + +public interface HelloworldClient { + + String getGreetings(String name); + +} diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/scazip-war-appcomp/src/main/java/sample/pojo/HelloworldClientImpl.java b/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/scazip-war-appcomp/src/main/java/sample/pojo/HelloworldClientImpl.java new file mode 100644 index 0000000000..a38c4a773f --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/scazip-war-appcomp/src/main/java/sample/pojo/HelloworldClientImpl.java @@ -0,0 +1,34 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package sample.pojo; + +import org.osoa.sca.annotations.Reference; + +import sample.ejb3.HelloworldService; + +public class HelloworldClientImpl implements HelloworldClient { + + @Reference + protected HelloworldService hwService; + + public String getGreetings(String name){ + return hwService.getGreetings(name); + } + +} diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/scazip-war-appcomp/src/main/resources/helloworld.composite b/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/scazip-war-appcomp/src/main/resources/helloworld.composite new file mode 100644 index 0000000000..eaa567595e --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/scazip-war-appcomp/src/main/resources/helloworld.composite @@ -0,0 +1,29 @@ + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/war-appcomp-contrib-implicit/pom.xml b/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/war-appcomp-contrib-implicit/pom.xml new file mode 100644 index 0000000000..f5295b7388 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/war-appcomp-contrib-implicit/pom.xml @@ -0,0 +1,66 @@ + + + + + 4.0.0 + + org.apache.tuscany.sca + itest-contribution-jee-samples + 1.5.1 + ../pom.xml + + + itest-contribution-jee-samples-06-war-appcomp-contrib-implicit + Apache Tuscany SCA iTest Contribution Java EE Samples 06 + war + + + + org.apache.tuscany.sca + tuscany-sca-api + 1.5.1 + provided + + + + javax.servlet + servlet-api + 2.5 + provided + + + + org.apache.geronimo.specs + geronimo-ejb_3.0_spec + 1.0 + provided + + + + + + + org.apache.maven.plugins + maven-war-plugin + + + ${artifactId} + + diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/war-appcomp-contrib-implicit/src/main/java/sample/HelloworldEjbServlet.java b/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/war-appcomp-contrib-implicit/src/main/java/sample/HelloworldEjbServlet.java new file mode 100644 index 0000000000..ae8613f8db --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/war-appcomp-contrib-implicit/src/main/java/sample/HelloworldEjbServlet.java @@ -0,0 +1,66 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package sample; + +import java.io.IOException; +import java.io.Writer; + +import javax.ejb.EJB; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; + +import org.osoa.sca.annotations.Reference; + +import sample.ejb3.HelloworldService; + +/** + * A servlet that invokes HelloworldService which is an SCA enhanced stateless EJB. + * + * @version $Rev$ $Date$ + */ +public class HelloworldEjbServlet extends HttpServlet { + private static final long serialVersionUID = -4448818871934180718L; + + @EJB + private HelloworldService service; + + @Reference + protected HelloworldService helloworldSca; + + @Override + protected void service(HttpServletRequest request, HttpServletResponse response) throws IOException { + String name = request.getParameter("name"); + String greeting = service.getGreetings(name); + String greeting2 = helloworldSca.getGreetings(name.toUpperCase()); + + Writer out = response.getWriter(); + out.write("Apache Tuscany Helloworld Web Sample"); + out.write("

Apache Tuscany Helloworld Web Sample

"); + out.write("This page displays the response got from HelloworldServiceBean, which is a Stateless EJB."); + out.write("
Parameter sent to HelloworldService.getGreeting: "+name); + out.write(greeting); + out.write("The following is got by invoking the HelloworldService SCA service provided by the HelloworldServiceBean"); + out.write("
Parameter sent to HelloworldService.getGreeting: "+name.toUpperCase()); + out.write(greeting2); + out.write(""); + out.flush(); + out.close(); + } +} diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/war-appcomp-contrib-implicit/src/main/java/sample/ejb3/HelloworldService.java b/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/war-appcomp-contrib-implicit/src/main/java/sample/ejb3/HelloworldService.java new file mode 100644 index 0000000000..0194d1870c --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/war-appcomp-contrib-implicit/src/main/java/sample/ejb3/HelloworldService.java @@ -0,0 +1,33 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package sample.ejb3; + +import javax.ejb.Remote; + +/** + * HelloworldService EJB interface. + * + * @version $Rev$ $Date$ + */ + +@Remote +public interface HelloworldService { + String getGreetings(String name); +} diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/war-appcomp-contrib-implicit/src/main/webapp/WEB-INF/geronimo-web.xml b/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/war-appcomp-contrib-implicit/src/main/webapp/WEB-INF/geronimo-web.xml new file mode 100644 index 0000000000..2563c8b7c8 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/war-appcomp-contrib-implicit/src/main/webapp/WEB-INF/geronimo-web.xml @@ -0,0 +1,49 @@ + + + + + + test + helloworld-web + 1.0 + car + + + + test + helloworld-ejb + 1.0 + jar + + + + + + helloworld-web + + ejb/HelloworldServiceBean + + test + helloworld-ejb + 1.0 + HelloworldServiceBean + + + \ No newline at end of file diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/war-appcomp-contrib-implicit/src/main/webapp/WEB-INF/web.composite b/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/war-appcomp-contrib-implicit/src/main/webapp/WEB-INF/web.composite new file mode 100644 index 0000000000..823085e81f --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/war-appcomp-contrib-implicit/src/main/webapp/WEB-INF/web.composite @@ -0,0 +1,36 @@ + + + + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/war-appcomp-contrib-implicit/src/main/webapp/WEB-INF/web.xml b/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/war-appcomp-contrib-implicit/src/main/webapp/WEB-INF/web.xml new file mode 100644 index 0000000000..628588a974 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/war-appcomp-contrib-implicit/src/main/webapp/WEB-INF/web.xml @@ -0,0 +1,41 @@ + + + + + + + Helloworld Web Sample + + + HelloworldEjbServlet + sample.HelloworldEjbServlet + + + + HelloworldEjbServlet + /HelloworldEjbServlet + + + + hello.html + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/war-appcomp-contrib-implicit/src/main/webapp/hello.html b/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/war-appcomp-contrib-implicit/src/main/webapp/hello.html new file mode 100644 index 0000000000..69473543c9 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/war-appcomp-contrib-implicit/src/main/webapp/hello.html @@ -0,0 +1,50 @@ + + + + +Apache Tuscany Helloworld Web Sample + + + + +

Apache Tuscany Helloworld Web Sample

+ +This web page posts the data to HelloworldEjbServlet. The servlet invokes HelloworldServiceBean, which is a Stateless EJB. +The EJB in turn invokes Helloworld SCA service through proxies injected into EJB fields. + +

+ +
+ + + + + + + + +
Enter your name: + +
+ +
+
+ + diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/war-nonenhanced/pom.xml b/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/war-nonenhanced/pom.xml new file mode 100644 index 0000000000..aa14813a14 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/war-nonenhanced/pom.xml @@ -0,0 +1,66 @@ + + + + + 4.0.0 + + org.apache.tuscany.sca + itest-contribution-jee-samples + 1.5.1 + ../pom.xml + + + itest-contribution-jee-samples-01-war-nonenhanced + Apache Tuscany SCA iTest Contribution Java EE Samples 01 + war + + + + org.apache.tuscany.sca + tuscany-sca-api + 1.5.1 + provided + + + + javax.servlet + servlet-api + 2.5 + provided + + + + org.apache.geronimo.specs + geronimo-ejb_3.0_spec + 1.0 + provided + + + + + + + org.apache.maven.plugins + maven-war-plugin + + + ${artifactId} + + diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/war-nonenhanced/src/main/java/sample/HelloworldEjbServlet.java b/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/war-nonenhanced/src/main/java/sample/HelloworldEjbServlet.java new file mode 100644 index 0000000000..71055bbdfe --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/war-nonenhanced/src/main/java/sample/HelloworldEjbServlet.java @@ -0,0 +1,63 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package sample; + +import java.io.IOException; +import java.io.Writer; + +import javax.ejb.EJB; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; + +import org.osoa.sca.annotations.Reference; + +import sample.ejb3.HelloworldService; + +/** + * A servlet that invokes HelloworldService which is an SCA enhanced stateless EJB. + * + * @version $Rev$ $Date$ + */ +public class HelloworldEjbServlet extends HttpServlet { + private static final long serialVersionUID = -4448818871934180718L; + + @EJB + private HelloworldService service; + + @Override + protected void service(HttpServletRequest request, HttpServletResponse response) throws IOException { + String name = request.getParameter("name"); + String greeting = service.getGreetings(name); + //String greeting2 = helloworldSca.getGreetings(name.toUpperCase()); + + Writer out = response.getWriter(); + out.write("Apache Tuscany Helloworld Web Sample"); + out.write("

Apache Tuscany Helloworld Web Sample

"); + out.write("This page displays the response got from HelloworldServiceBean, which is a Stateless EJB."); + out.write("
Parameter sent to HelloworldService.getGreeting: "+name); + out.write(greeting); + out.write("The following is got by invoking the HelloworldService SCA service provided by the HelloworldServiceBean"); + out.write("
Parameter sent to HelloworldService.getGreeting: "+name.toUpperCase()); + //out.write(greeting2); + out.write(""); + out.flush(); + out.close(); + } +} diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/war-nonenhanced/src/main/java/sample/ejb3/HelloworldService.java b/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/war-nonenhanced/src/main/java/sample/ejb3/HelloworldService.java new file mode 100644 index 0000000000..0194d1870c --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/war-nonenhanced/src/main/java/sample/ejb3/HelloworldService.java @@ -0,0 +1,33 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package sample.ejb3; + +import javax.ejb.Remote; + +/** + * HelloworldService EJB interface. + * + * @version $Rev$ $Date$ + */ + +@Remote +public interface HelloworldService { + String getGreetings(String name); +} diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/war-nonenhanced/src/main/webapp/WEB-INF/geronimo-web.xml b/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/war-nonenhanced/src/main/webapp/WEB-INF/geronimo-web.xml new file mode 100644 index 0000000000..2563c8b7c8 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/war-nonenhanced/src/main/webapp/WEB-INF/geronimo-web.xml @@ -0,0 +1,49 @@ + + + + + + test + helloworld-web + 1.0 + car + + + + test + helloworld-ejb + 1.0 + jar + + + + + + helloworld-web + + ejb/HelloworldServiceBean + + test + helloworld-ejb + 1.0 + HelloworldServiceBean + + + \ No newline at end of file diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/war-nonenhanced/src/main/webapp/WEB-INF/web.xml b/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/war-nonenhanced/src/main/webapp/WEB-INF/web.xml new file mode 100644 index 0000000000..628588a974 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/war-nonenhanced/src/main/webapp/WEB-INF/web.xml @@ -0,0 +1,41 @@ + + + + + + + Helloworld Web Sample + + + HelloworldEjbServlet + sample.HelloworldEjbServlet + + + + HelloworldEjbServlet + /HelloworldEjbServlet + + + + hello.html + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/war-nonenhanced/src/main/webapp/hello.html b/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/war-nonenhanced/src/main/webapp/hello.html new file mode 100644 index 0000000000..69473543c9 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-jee-samples/war-nonenhanced/src/main/webapp/hello.html @@ -0,0 +1,50 @@ + + + + +Apache Tuscany Helloworld Web Sample + + + + +

Apache Tuscany Helloworld Web Sample

+ +This web page posts the data to HelloworldEjbServlet. The servlet invokes HelloworldServiceBean, which is a Stateless EJB. +The EJB in turn invokes Helloworld SCA service through proxies injected into EJB fields. + +

+ +
+ + + + + + + + +
Enter your name: + +
+ +
+
+ + diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution-jee/pom.xml b/tags/java/sca/1.5.1-RC4/itest/contribution-jee/pom.xml new file mode 100644 index 0000000000..7f245e2da5 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-jee/pom.xml @@ -0,0 +1,183 @@ + + + + 4.0.0 + + org.apache.tuscany.sca + tuscany-itest + 1.5.1 + ../pom.xml + + itest-contribution-jee + Apache Tuscany SCA iTest Contribution Java EE + + + + org.apache.tuscany.sca + tuscany-host-embedded + 1.5.1 + + + + org.apache.tuscany.sca + tuscany-implementation-java-runtime + 1.5.1 + runtime + + + + org.apache.tuscany.sca + tuscany-contribution + 1.5.1 + + + + org.apache.tuscany.sca + tuscany-contribution-impl + 1.5.1 + + + + org.apache.tuscany.sca + tuscany-contribution-jee-impl + 1.5.1 + + + + org.apache.tuscany.sca + tuscany-host-webapp + 1.5.1 + + + + org.apache.tuscany.sca + tuscany-implementation-ejb + 1.5.1 + + + + org.apache.tuscany.sca + tuscany-implementation-jee + 1.5.1 + + + + org.apache.tuscany.sca + tuscany-implementation-web-runtime + 1.5.1 + + + + org.apache.tuscany.sca + tuscany-binding-ws-axis2 + 1.5.1 + + + + org.apache.myfaces.core + myfaces-api + 1.2.3 + + + + org.apache.myfaces.core + myfaces-impl + 1.2.3 + + + + 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 + itest-contribution-jee-samples-01-war-nonenhanced + 1.5.1 + war + + + + org.apache.tuscany.sca + itest-contribution-jee-samples-06-war-appcomp-contrib-implicit + 1.5.1 + war + + + + org.apache.tuscany.sca + itest-contribution-jee-samples-07-ejb-nonenhanced + 1.5.1 + ejb + + + + org.apache.tuscany.sca + itest-contribution-jee-samples-08-ejb-enhanced + 1.5.1 + ejb + + + + org.apache.tuscany.sca + itest-contribution-jee-samples-12-ejb-appcomp-contrib-implicit + 1.5.1 + ejb + + + + org.apache.tuscany.sca + itest-contribution-jee-samples-13-ear-nonenhanced + 1.5.1 + ear + + + + org.apache.tuscany.sca + itest-contribution-jee-samples-29-ear-appcomp-contrib-implicit + 1.5.1 + ear + + + + org.apache.tuscany.sca + itest-contribution-jee-samples-35-scajar-ear-nonenhanced + 1.5.1 + jar + + + + org.apache.tuscany.sca + itest-contribution-jee-samples-41-scajar-ear-appcomp + 1.5.1 + jar + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution-jee/src/main/java/org/apache/tuscany/sca/test/contribution/jee/TestEJBImplementationProvider.java b/tags/java/sca/1.5.1-RC4/itest/contribution-jee/src/main/java/org/apache/tuscany/sca/test/contribution/jee/TestEJBImplementationProvider.java new file mode 100644 index 0000000000..e7e1d90797 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-jee/src/main/java/org/apache/tuscany/sca/test/contribution/jee/TestEJBImplementationProvider.java @@ -0,0 +1,48 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.jee; + +import org.apache.tuscany.sca.implementation.ejb.EJBImplementation; +import org.apache.tuscany.sca.interfacedef.Operation; +import org.apache.tuscany.sca.invocation.Invoker; +import org.apache.tuscany.sca.provider.ImplementationProvider; +import org.apache.tuscany.sca.runtime.RuntimeComponent; +import org.apache.tuscany.sca.runtime.RuntimeComponentService; + + +class TestEJBImplementationProvider implements ImplementationProvider { + + TestEJBImplementationProvider(RuntimeComponent component, EJBImplementation ejbImplementation) { + } + + public Invoker createInvoker(RuntimeComponentService service, Operation operation) { + return null; + } + + public boolean supportsOneWayInvocation() { + return false; + } + + public void start() { + } + + public void stop() { + } + +} diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution-jee/src/main/java/org/apache/tuscany/sca/test/contribution/jee/TestEJBImplementationProviderFactory.java b/tags/java/sca/1.5.1-RC4/itest/contribution-jee/src/main/java/org/apache/tuscany/sca/test/contribution/jee/TestEJBImplementationProviderFactory.java new file mode 100644 index 0000000000..4660fee7fd --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-jee/src/main/java/org/apache/tuscany/sca/test/contribution/jee/TestEJBImplementationProviderFactory.java @@ -0,0 +1,47 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.jee; + +import org.apache.tuscany.sca.core.ExtensionPointRegistry; +import org.apache.tuscany.sca.implementation.ejb.EJBImplementation; +import org.apache.tuscany.sca.provider.ImplementationProvider; +import org.apache.tuscany.sca.provider.ImplementationProviderFactory; +import org.apache.tuscany.sca.runtime.RuntimeComponent; + +/** + * A factory for resource implementation providers. + * + * @version $Rev$ $Date$ + */ +public class TestEJBImplementationProviderFactory implements ImplementationProviderFactory { + + /** + * Constructs a resource implementation. + */ + public TestEJBImplementationProviderFactory(ExtensionPointRegistry extensionPoints) { + } + + public ImplementationProvider createImplementationProvider(RuntimeComponent component, EJBImplementation implementation) { + return new TestEJBImplementationProvider(component, implementation); + } + + public Class getModelType() { + return EJBImplementation.class; + } +} diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution-jee/src/main/java/org/apache/tuscany/sca/test/contribution/jee/TestExternalEarModelResolver.java b/tags/java/sca/1.5.1-RC4/itest/contribution-jee/src/main/java/org/apache/tuscany/sca/test/contribution/jee/TestExternalEarModelResolver.java new file mode 100644 index 0000000000..34bf3702d3 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-jee/src/main/java/org/apache/tuscany/sca/test/contribution/jee/TestExternalEarModelResolver.java @@ -0,0 +1,141 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.jee; + +import java.io.File; +import java.net.URI; +import java.net.URL; +import java.util.HashMap; +import java.util.Map; + +import org.apache.tuscany.sca.assembly.Composite; +import org.apache.tuscany.sca.contribution.Artifact; +import org.apache.tuscany.sca.contribution.Contribution; +import org.apache.tuscany.sca.contribution.jee.ExternalEarInfo; +import org.apache.tuscany.sca.contribution.jee.JavaEEApplicationInfo; +import org.apache.tuscany.sca.contribution.jee.JavaEEIntrospector; +import org.apache.tuscany.sca.contribution.resolver.ModelResolver; +import org.apache.tuscany.sca.contribution.service.ContributionService; +import org.apache.tuscany.sca.core.ExtensionPointRegistry; +import org.apache.tuscany.sca.core.UtilityExtensionPoint; +import org.apache.tuscany.sca.host.embedded.SCADomain; +import org.apache.tuscany.sca.host.embedded.impl.EmbeddedSCADomain; + +public class TestExternalEarModelResolver implements ModelResolver { + + private Map map = new HashMap(); + private JavaEEIntrospector jeeIntrospector; + private ContributionService contributionService; + + + public TestExternalEarModelResolver(Contribution contribution, ExtensionPointRegistry extensionPoints) { + jeeIntrospector = extensionPoints.getExtensionPoint(JavaEEIntrospector.class); + UtilityExtensionPoint utilities = extensionPoints.getExtensionPoint(UtilityExtensionPoint.class); + contributionService = utilities.getUtility(ContributionService.class); + + } + + public void addModel(Object resolved) { + ExternalEarInfo jeeApp = (ExternalEarInfo)resolved; + map.put(jeeApp.getAppInfo().getUri(), jeeApp); + } + + public Object removeModel(Object resolved) { + return map.remove(((ExternalEarInfo)resolved).getAppInfo().getUri()); + } + + public T resolveModel(final Class modelClass, T unresolved) { + URI uri = ((ExternalEarInfo)unresolved).getAppInfo().getUri(); + if (uri != null) { + ExternalEarInfo resolved = (ExternalEarInfo) map.get(uri); + if (resolved != null) { + return modelClass.cast(resolved); + } else { + // if you don't care about application composites you can + // simply read the EAR directly + /* + try { + File f = new File(uri.toString()); + final JavaEEApplicationInfo o = jeeIntrospector.introspectJeeArchive(f.toURI().toURL()); + return (T)new ExternalEarInfo() { + public JavaEEApplicationInfo getAppInfo() { + return (JavaEEApplicationInfo)o; + } + }; + } catch (Exception e) { + throw new RuntimeException(e); + } + */ + + // if you do care about the application composite you + // need to process the ear as a contribution + try{ + // find the location of the ear using a very specific algorithm + URL earLocation = null; + if ( uri.toString().equals("itest-contribution-jee-samples-13-ear-nonenhanced.ear")){ + earLocation = new File("../contribution-jee-samples/ear-nonenhanced/target/itest-contribution-jee-samples-13-ear-nonenhanced.ear").toURL(); + } else if ( uri.toString().equals("itest-contribution-jee-samples-29-ear-appcomp-contrib-implicit.ear")){ + earLocation = new File("../contribution-jee-samples/ear-appcomp-contrib-implicit/target/itest-contribution-jee-samples-29-ear-appcomp-contrib-implicit.ear").toURL(); + } else if ( uri.toString().equals("itest-contribution-jee-samples-30-ear-appcomp-contrib-implicit-war-appcomp.ear")){ + earLocation = new File("../contribution-jee-samples/ear-appcomp-contrib-implicit-war-appcomp/target/itest-contribution-jee-samples-30-ear-appcomp-contrib-implicit-war-appcomp.ear").toURL(); + } else { + return unresolved; + } + + // if you do care about application composites we have + // to process the EAR as a contribution + Contribution contribution = contributionService.contribute(uri.toString(), earLocation, false); + + JavaEEApplicationInfo appInfo = null; + Composite appComposite = null; + + // get the ear info + for (Artifact artifact : contribution.getArtifacts()){ + if (artifact.getModel() instanceof JavaEEApplicationInfo){ + appInfo = (JavaEEApplicationInfo)artifact.getModel(); + } + + if (artifact.getURI().equals("META-INF/application.composite")){ + appComposite = (Composite)artifact.getModel(); + } + } + + + final JavaEEApplicationInfo returnAppInfo = appInfo; + final Composite returnAppComposite = appComposite; + + return (T)new ExternalEarInfo() { + public JavaEEApplicationInfo getAppInfo() { + return returnAppInfo; + } + public Composite getAppComposite() { + return returnAppComposite; + } + }; + } catch (Exception e) { + throw new RuntimeException(e); + } + } + } + + return unresolved; + } + +} diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution-jee/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.resolver.ModelResolver b/tags/java/sca/1.5.1-RC4/itest/contribution-jee/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.resolver.ModelResolver new file mode 100644 index 0000000000..a39171507c --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-jee/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.resolver.ModelResolver @@ -0,0 +1,18 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT 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.contribution.jee.TestExternalEarModelResolver;model=org.apache.tuscany.sca.contribution.jee.ExternalEarInfo diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution-jee/src/main/resources/META-INF/services/org.apache.tuscany.sca.provider.ImplementationProviderFactory b/tags/java/sca/1.5.1-RC4/itest/contribution-jee/src/main/resources/META-INF/services/org.apache.tuscany.sca.provider.ImplementationProviderFactory new file mode 100644 index 0000000000..adc93d9015 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-jee/src/main/resources/META-INF/services/org.apache.tuscany.sca.provider.ImplementationProviderFactory @@ -0,0 +1,19 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT 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 implementation extension +org.apache.tuscany.sca.test.contribution.jee.TestEJBImplementationProviderFactory;model=org.apache.tuscany.sca.implementation.ejb.EJBImplementation diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution-jee/src/test/java/org/apache/tuscany/sca/test/contribution/jee/ContributionServiceTestCase.java b/tags/java/sca/1.5.1-RC4/itest/contribution-jee/src/test/java/org/apache/tuscany/sca/test/contribution/jee/ContributionServiceTestCase.java new file mode 100644 index 0000000000..b81f67c287 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-jee/src/test/java/org/apache/tuscany/sca/test/contribution/jee/ContributionServiceTestCase.java @@ -0,0 +1,329 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.jee; + +import java.net.URL; +import java.util.ArrayList; +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.Reference; +import org.apache.tuscany.sca.assembly.Service; +import org.apache.tuscany.sca.contribution.Artifact; +import org.apache.tuscany.sca.contribution.Contribution; +import org.apache.tuscany.sca.contribution.service.ContributionService; +import org.apache.tuscany.sca.host.embedded.impl.EmbeddedSCADomain; +import org.apache.tuscany.sca.implementation.ejb.EJBImplementation; +import org.apache.tuscany.sca.implementation.jee.JEEImplementation; +import org.apache.tuscany.sca.implementation.web.WebImplementation; +import org.junit.Before; +import org.junit.Ignore; +import org.junit.Test; + +/** + * This is an integration test for Java EE contribution processing. * + * + * @version $Rev$ $Date$ + */ + +public class ContributionServiceTestCase { + private static final String CONTRIBUTION_001_ID = "contribution001/"; + private static final String CONTRIBUTION_002_ID = "contribution002/"; + private static final String JAR_CONTRIBUTION = "/repository/helloworld-service.jar"; + private static final String EJB_JAR_CONTRIBUTION = "/repository/helloworld-ejb.jar"; + private static final String EJB_JAR_W_DEPLOYABLE_CONTRIBUTION = "/repository/helloworld-ejb-w-dep.jar"; + private static final String WAR_CONTRIBUTION = "/repository/helloworld-web.war"; + private static final String WAR_W_DEPLOYABLE_CONTRIBUTION = "/repository/helloworld-web-w-dep.war"; + private static final String EAR_CONTRIBUTION = "/repository/helloworld-ejb.ear"; + private static final String EAR_NONENHANCED_CONTRIBUTION = "/repository/simple-app-ear.jar"; + private static final String EAR_ENHANCED_16_CONTRIBUTION = "/repository/simple-app.ear"; + private static final String EAR_ENHANCED_19_CONTRIBUTION = "/repository/enhanced-app.ear"; + + + private ClassLoader cl; + private EmbeddedSCADomain domain; + private ContributionService contributionService; + + /** + * 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 Domain, to start the SCA Domain and + * to get a reference to the contribution service + */ + + @Before + public void setUp() throws Exception { + //Create a test embedded SCA domain + cl = getClass().getClassLoader(); + domain = new EmbeddedSCADomain(cl, "http://localhost"); + + //Start the domain + domain.start(); + + //get a reference to the contribution service + contributionService = domain.getContributionService(); + } + + /** + * This method tests a non Java EE contribution. + */ + @Test + public void testContributeJAR() throws Exception { + URL contributionLocation = getClass().getResource(JAR_CONTRIBUTION); + String contributionId = CONTRIBUTION_001_ID; + contributionService.contribute(contributionId, contributionLocation, false); + Assert.assertNotNull(contributionService.getContribution(contributionId)); + } + + /** + * This method tests an EJB jar as a contribution. + */ + @Test + public void testContributeEJBJAR() throws Exception { + URL contributionLocation = getClass().getResource(EJB_JAR_CONTRIBUTION); + String contributionId = CONTRIBUTION_001_ID; + contributionService.contribute(contributionId, contributionLocation, false); + Assert.assertNotNull(contributionService.getContribution(contributionId)); + + Contribution contribution = contributionService.getContribution(contributionId); + List artifacts = contribution.getArtifacts(); + for(Artifact artifact : artifacts) { + if(artifact.getURI().toString().equals("META-INF/ejb-jar.composite")) { + Composite composite = (Composite)artifact.getModel(); + Assert.assertEquals("Number of components", 1, composite.getComponents().size()); + Component component = composite.getComponents().get(0); + Assert.assertTrue("Component with implementation.ejb", component.getImplementation() instanceof EJBImplementation); + EJBImplementation ejbImpl = (EJBImplementation) component.getImplementation(); + Assert.assertEquals("Number of services", 1, ejbImpl.getServices().size()); + Service service = ejbImpl.getServices().get(0); + Assert.assertEquals("Service name", "HelloworldService", service.getName()); + } + } + } + + /** + * This method tests an EJB jar with sca-contribution.xml as a contribution. + */ + @Test + public void testContributeEJBJARwDeployable() throws Exception { + URL contributionLocation = getClass().getResource(EJB_JAR_W_DEPLOYABLE_CONTRIBUTION); + String contributionId = CONTRIBUTION_001_ID; + contributionService.contribute(contributionId, contributionLocation, false); + Assert.assertNotNull(contributionService.getContribution(contributionId)); + + Contribution contribution = contributionService.getContribution(contributionId); + List artifacts = contribution.getArtifacts(); + for(Artifact artifact : artifacts) { + if(artifact.getURI().toString().equals("META-INF/ejb-jar.composite")) { + Composite composite = (Composite)artifact.getModel(); + Assert.assertEquals("Number of components", 1, composite.getComponents().size()); + Component component = composite.getComponents().get(0); + Assert.assertTrue("Component with implementation.ejb", component.getImplementation() instanceof EJBImplementation); + EJBImplementation ejbImpl = (EJBImplementation) component.getImplementation(); + Assert.assertEquals("Number of services", 1, ejbImpl.getServices().size()); + Service service = ejbImpl.getServices().get(0); + Assert.assertEquals("Service name", "HelloworldService", service.getName()); + } + } + + List deployables = contribution.getDeployables(); + Assert.assertEquals("Deployable composites", 1, deployables.size()); + Composite composite = deployables.get(0); + Assert.assertEquals("Number of components", 1, composite.getComponents().size()); + Component component = composite.getComponents().get(0); + Assert.assertTrue("Component with implementation.ejb", component.getImplementation() instanceof EJBImplementation); + EJBImplementation ejbImpl = (EJBImplementation) component.getImplementation(); + Assert.assertEquals("Number of services", 1, ejbImpl.getServices().size()); + Service service = ejbImpl.getServices().get(0); + Assert.assertEquals("Service name", "HelloworldService", service.getName()); + } + + /** + * This method tests WAR as a contribution. + */ + @Test + public void testContributeWAR() throws Exception { + URL contributionLocation = getClass().getResource(WAR_CONTRIBUTION); + String contributionId = CONTRIBUTION_001_ID; + contributionService.contribute(contributionId, contributionLocation, false); + Assert.assertNotNull(contributionService.getContribution(contributionId)); + + Contribution contribution = contributionService.getContribution(contributionId); + List artifacts = contribution.getArtifacts(); + for(Artifact artifact : artifacts) { + if(artifact.getURI().toString().equals("WEB-INF/web.composite")) { + Composite composite = (Composite)artifact.getModel(); + Assert.assertEquals("Number of components", 1, composite.getComponents().size()); + Component component = composite.getComponents().get(0); + Assert.assertTrue("Component with implementation.web", component.getImplementation() instanceof WebImplementation); + WebImplementation webImpl = (WebImplementation) component.getImplementation(); + Assert.assertEquals("Number of reference", 2, webImpl.getReferences().size()); + List referenceNames = new ArrayList(); + referenceNames.add("name1"); + referenceNames.add("sample.HelloworldEjbServlet_service"); + for(Reference ref : webImpl.getReferences()) { + Assert.assertTrue(referenceNames.contains(ref.getName())); + } + } + } + } + + /** + * This method tests WAR with sca-contribution.xml as a contribution. + */ + @Test + public void testContributeWARwDeployable() throws Exception { + URL contributionLocation = getClass().getResource(WAR_W_DEPLOYABLE_CONTRIBUTION); + String contributionId = CONTRIBUTION_001_ID; + contributionService.contribute(contributionId, contributionLocation, false); + Assert.assertNotNull(contributionService.getContribution(contributionId)); + + Contribution contribution = contributionService.getContribution(contributionId); + List artifacts = contribution.getArtifacts(); + for(Artifact artifact : artifacts) { + if(artifact.getURI().toString().equals("WEB-INF/web.composite")) { + Composite composite = (Composite)artifact.getModel(); + Assert.assertEquals("Number of components", 1, composite.getComponents().size()); + Component component = composite.getComponents().get(0); + Assert.assertTrue("Component with implementation.web", component.getImplementation() instanceof WebImplementation); + WebImplementation webImpl = (WebImplementation) component.getImplementation(); + Assert.assertEquals("Number of reference", 2, webImpl.getReferences().size()); + List referenceNames = new ArrayList(); + referenceNames.add("name1"); + referenceNames.add("sample.HelloworldEjbServlet_service"); + for(Reference ref : webImpl.getReferences()) { + Assert.assertTrue(referenceNames.contains(ref.getName())); + } + } + } + + List deployables = contribution.getDeployables(); + Assert.assertEquals("Deployable composites", 1, deployables.size()); + Composite composite = deployables.get(0); + Assert.assertEquals("Number of components", 1, composite.getComponents().size()); + Component component = composite.getComponents().get(0); + Assert.assertTrue("Component with implementation.web", component.getImplementation() instanceof WebImplementation); + WebImplementation webImpl = (WebImplementation) component.getImplementation(); + Assert.assertEquals("Number of reference", 2, webImpl.getReferences().size()); + List referenceNames = new ArrayList(); + referenceNames.add("name1"); + referenceNames.add("sample.HelloworldEjbServlet_service"); + for(Reference ref : webImpl.getReferences()) { + Assert.assertTrue(referenceNames.contains(ref.getName())); + } + } + + /** + * This method test EAR as a contribution. + */ + @Test + public void testContributeEAR() throws Exception { + URL contributionLocation = getClass().getResource(EAR_CONTRIBUTION); + String contributionId = CONTRIBUTION_001_ID; + contributionService.contribute(contributionId, contributionLocation, false); + Assert.assertNotNull(contributionService.getContribution(contributionId)); + } + + /** + * This method tests a JAR containing an EAR as a contribution. + * non-enhanced EAR containing non-enhanced WAR, non-enhanced EJB JAR. + */ + @Ignore + @Test + public void testContributeEAR_NonEnhanced() throws Exception { + URL contributionLocation = getClass().getResource(EAR_NONENHANCED_CONTRIBUTION); + String contributionId = CONTRIBUTION_001_ID; + contributionService.contribute(contributionId, contributionLocation, false); + Contribution contribution = contributionService.getContribution(contributionId); + Assert.assertNotNull(contribution); + List deployables = contribution.getDeployables(); + Assert.assertEquals("Deployable composites", 1, deployables.size()); + Composite composite = deployables.get(0); + Assert.assertEquals("Number of components", 1, composite.getComponents().size()); + Component component = composite.getComponents().get(0); + Assert.assertTrue("Component with implementation.jee", component.getImplementation() instanceof JEEImplementation); + JEEImplementation jeeImpl = (JEEImplementation)component.getImplementation(); + Assert.assertEquals("Number of services", 2, jeeImpl.getServices().size()); + Assert.assertEquals("Number of references", 1, jeeImpl.getReferences().size()); + } + + /** + * This method tests an EAR as a contribution. + * Enhanced EAR containing non-enhanced WAR, non-enhanced EJB JAR. + */ + @Test + public void testContributeEAR_Enhanced16() throws Exception { + URL contributionLocation = getClass().getResource(EAR_ENHANCED_16_CONTRIBUTION); + String contributionId = CONTRIBUTION_001_ID; + contributionService.contribute(contributionId, contributionLocation, false); + Contribution contribution = contributionService.getContribution(contributionId); + Assert.assertNotNull(contribution); + List deployables = contribution.getDeployables(); + Assert.assertEquals("Deployable composites", 1, deployables.size()); + Composite composite = deployables.get(0); + Assert.assertEquals("Number of components", 1, composite.getComponents().size()); + Component component = composite.getComponents().get(0); + Assert.assertTrue("Component with implementation.jee", component.getImplementation() instanceof JEEImplementation); + JEEImplementation jeeImpl = (JEEImplementation)component.getImplementation(); + Assert.assertEquals("Number of services", 2, jeeImpl.getServices().size()); + // TODO - TUSCANY-3008 + // Assert.assertEquals("Number of references", 1, jeeImpl.getReferences().size()); + } + + /** + * This method tests an EAR as a contribution. + * Enhanced EAR w application composite containing non-enhanced WAR, non-enhanced EJB JAR. + */ + @Test + public void testContributeEAR_Enhanced19() throws Exception { + URL contributionLocation = getClass().getResource(EAR_ENHANCED_19_CONTRIBUTION); + String contributionId = CONTRIBUTION_001_ID; + contributionService.contribute(contributionId, contributionLocation, false); + Contribution contribution = contributionService.getContribution(contributionId); + Assert.assertNotNull(contribution); + + List artifacts = contribution.getArtifacts(); + for(Artifact artifact : artifacts) { + if(artifact.getURI().toString().equals("META-INF/application.composite")) { + Composite composite = (Composite)artifact.getModel(); + Assert.assertEquals("Number of components", 3, composite.getComponents().size()); + for(Component component : composite.getComponents()) { + if(component.getName().equals("webComponent")) { + Assert.assertTrue(component.getImplementation() instanceof WebImplementation); + WebImplementation webImpl = (WebImplementation)component.getImplementation(); + Assert.assertEquals("Number of references", 1, webImpl.getReferences().size()); + } else if(component.getName().equals("ejbComponent1")) { + Assert.assertTrue(component.getImplementation() instanceof EJBImplementation); + EJBImplementation ejbImpl = (EJBImplementation)component.getImplementation(); + Assert.assertEquals("Number of services", 1, ejbImpl.getServices().size()); + Assert.assertEquals("Number of references", 0, ejbImpl.getReferences().size()); + } else if(component.getName().equals("ejbComponent2")) { + Assert.assertTrue(component.getImplementation() instanceof EJBImplementation); + EJBImplementation ejbImpl = (EJBImplementation)component.getImplementation(); + Assert.assertEquals("Number of services", 1, ejbImpl.getServices().size()); + Assert.assertEquals("Number of references", 1, ejbImpl.getReferences().size()); + } + } + } + } + } +} diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution-jee/src/test/java/org/apache/tuscany/sca/test/contribution/jee/EjbAppcompTestCase.java b/tags/java/sca/1.5.1-RC4/itest/contribution-jee/src/test/java/org/apache/tuscany/sca/test/contribution/jee/EjbAppcompTestCase.java new file mode 100644 index 0000000000..4241b7928f --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-jee/src/test/java/org/apache/tuscany/sca/test/contribution/jee/EjbAppcompTestCase.java @@ -0,0 +1,110 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.jee; + +import java.io.File; +import java.net.URL; +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.assembly.Component; +import org.apache.tuscany.sca.assembly.Composite; +import org.apache.tuscany.sca.assembly.Reference; +import org.apache.tuscany.sca.assembly.Service; +import org.apache.tuscany.sca.assembly.builder.CompositeBuilder; +import org.apache.tuscany.sca.contribution.Artifact; +import org.apache.tuscany.sca.contribution.Contribution; +import org.apache.tuscany.sca.contribution.jee.ExternalEarInfo; +import org.apache.tuscany.sca.contribution.jee.JavaEEApplicationInfo; +import org.apache.tuscany.sca.contribution.jee.JavaEEIntrospector; +import org.apache.tuscany.sca.contribution.jee.impl.JavaEEApplicationInfoImpl; +import org.apache.tuscany.sca.contribution.resolver.ExtensibleModelResolver; +import org.apache.tuscany.sca.contribution.resolver.ModelResolver; +import org.apache.tuscany.sca.contribution.resolver.ModelResolverExtensionPoint; +import org.apache.tuscany.sca.contribution.service.ContributionService; +import org.apache.tuscany.sca.core.ExtensionPointRegistry; +import org.apache.tuscany.sca.host.embedded.impl.EmbeddedSCADomain; +import org.apache.tuscany.sca.implementation.ejb.EJBImplementation; +import org.apache.tuscany.sca.implementation.jee.JEEImplementation; +import org.apache.tuscany.sca.implementation.web.WebImplementation; +import org.junit.Before; +import org.junit.Ignore; +import org.junit.Test; + + +public class EjbAppcompTestCase { + + private static final String CONTRIBUTION_001_ID = "contribution001/"; + + private ClassLoader cl; + private EmbeddedSCADomain domain; + private ContributionService contributionService; + + @Before + public void setUp() throws Exception { + //Create a test embedded SCA domain + cl = getClass().getClassLoader(); + domain = new EmbeddedSCADomain(cl, "http://localhost"); + + //Start the domain + domain.start(); + + //get a reference to the contribution service + contributionService = domain.getContributionService(); + } + + /** + * EJB - It's an JEE EAR file that is a contribution + * appcomp - It has an application composite in it + * + */ + @Test + public void testEjbAppcom() throws Exception { + + URL contributionLocation = new File("../contribution-jee-samples/ejb-appcomp-contrib-implicit/target/itest-contribution-jee-samples-12-ejb-appcomp-contrib-implicit.jar").toURL(); + Contribution contribution = contributionService.contribute(CONTRIBUTION_001_ID, contributionLocation, false); + + Assert.assertNotNull(contribution); + + Composite composite = null; + for (Artifact artifact : contribution.getArtifacts()){ + if (artifact.getModel() instanceof Composite){ + composite = (Composite) artifact.getModel(); + } + } + + Assert.assertNotNull(composite); + + Assert.assertEquals(1, composite.getComponents().size()); + Assert.assertEquals(1, composite.getComponents().get(0).getImplementation().getServices().size()); + Assert.assertEquals("HelloworldService", composite.getComponents().get(0).getImplementation().getServices().get(0).getName()); + + domain.buildComposite(composite); + + // assert that the build process has worked + Assert.assertNotNull(composite); + + } + +} diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution-jee/src/test/java/org/apache/tuscany/sca/test/contribution/jee/SCAJarEarAppcompTestCase.java b/tags/java/sca/1.5.1-RC4/itest/contribution-jee/src/test/java/org/apache/tuscany/sca/test/contribution/jee/SCAJarEarAppcompTestCase.java new file mode 100644 index 0000000000..64c31b4393 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-jee/src/test/java/org/apache/tuscany/sca/test/contribution/jee/SCAJarEarAppcompTestCase.java @@ -0,0 +1,124 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.jee; + +import java.io.File; +import java.net.URL; +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.assembly.Component; +import org.apache.tuscany.sca.assembly.Composite; +import org.apache.tuscany.sca.assembly.Reference; +import org.apache.tuscany.sca.assembly.Service; +import org.apache.tuscany.sca.assembly.builder.CompositeBuilder; +import org.apache.tuscany.sca.contribution.Artifact; +import org.apache.tuscany.sca.contribution.Contribution; +import org.apache.tuscany.sca.contribution.jee.ExternalEarInfo; +import org.apache.tuscany.sca.contribution.jee.JavaEEApplicationInfo; +import org.apache.tuscany.sca.contribution.jee.JavaEEIntrospector; +import org.apache.tuscany.sca.contribution.jee.impl.JavaEEApplicationInfoImpl; +import org.apache.tuscany.sca.contribution.resolver.ExtensibleModelResolver; +import org.apache.tuscany.sca.contribution.resolver.ModelResolver; +import org.apache.tuscany.sca.contribution.resolver.ModelResolverExtensionPoint; +import org.apache.tuscany.sca.contribution.service.ContributionService; +import org.apache.tuscany.sca.core.ExtensionPointRegistry; +import org.apache.tuscany.sca.host.embedded.impl.EmbeddedSCADomain; +import org.apache.tuscany.sca.implementation.ejb.EJBImplementation; +import org.apache.tuscany.sca.implementation.jee.JEEImplementation; +import org.apache.tuscany.sca.implementation.web.WebImplementation; +import org.junit.Before; +import org.junit.Ignore; +import org.junit.Test; + +import sample.pojo.HelloworldClient2; + + +public class SCAJarEarAppcompTestCase { + + private static final String CONTRIBUTION_001_ID = "contribution001/"; + + private ClassLoader cl; + private EmbeddedSCADomain domain; + private ContributionService contributionService; + + @Before + public void setUp() throws Exception { + //Create a test embedded SCA domain + cl = getClass().getClassLoader(); + domain = new EmbeddedSCADomain(cl, "http://localhost"); + + //Start the domain + domain.start(); + + //get a reference to the contribution service + contributionService = domain.getContributionService(); + } + + /** + * SCAJAR - It's an SCA contribution in a JAR with no nested archives + * but which references a... + * EAR - It's an JEE EAR file + * appcomp - It has an application composite in it + * + */ + @Test + public void testSCAJarEarAppcomp() throws Exception { + + URL contributionLocation = new File("../contribution-jee-samples/scajar-ear-appcomp/target/itest-contribution-jee-samples-41-scajar-ear-appcomp.jar").toURL(); + Contribution contribution = contributionService.contribute(CONTRIBUTION_001_ID, contributionLocation, false); + + Assert.assertNotNull(contribution); + + Composite composite = null; + for (Artifact artifact : contribution.getArtifacts()){ + if (artifact.getModel() instanceof Composite){ + composite = (Composite) artifact.getModel(); + } + } + + Assert.assertNotNull(composite); + + domain.getDomainComposite().getIncludes().add(composite); + + Assert.assertEquals(3, composite.getComponents().size()); + Assert.assertEquals(3, composite.getComponents().get(1).getImplementation().getServices().size()); + Assert.assertEquals("TheService", composite.getComponents().get(1).getImplementation().getServices().get(0).getName()); + + domain.buildComposite(composite); + + // assert that the build process has worked + Assert.assertNotNull(composite); + + domain.getCompositeActivator().activate(composite); + domain.getCompositeActivator().start(composite); + + HelloworldClient2 client = domain.getService(HelloworldClient2.class, "HelloworldClientComponent"); + Assert.assertEquals("Hello Fred Java", client.getGreetings("Fred")); + + domain.stop(); + + } + +} diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution-jee/src/test/java/org/apache/tuscany/sca/test/contribution/jee/SCAJarEarAppcompWarAppcompTestCase.java b/tags/java/sca/1.5.1-RC4/itest/contribution-jee/src/test/java/org/apache/tuscany/sca/test/contribution/jee/SCAJarEarAppcompWarAppcompTestCase.java new file mode 100644 index 0000000000..9f50ea573c --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-jee/src/test/java/org/apache/tuscany/sca/test/contribution/jee/SCAJarEarAppcompWarAppcompTestCase.java @@ -0,0 +1,125 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.jee; + +import java.io.File; +import java.net.URL; +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.assembly.Component; +import org.apache.tuscany.sca.assembly.Composite; +import org.apache.tuscany.sca.assembly.Reference; +import org.apache.tuscany.sca.assembly.Service; +import org.apache.tuscany.sca.assembly.builder.CompositeBuilder; +import org.apache.tuscany.sca.contribution.Artifact; +import org.apache.tuscany.sca.contribution.Contribution; +import org.apache.tuscany.sca.contribution.jee.ExternalEarInfo; +import org.apache.tuscany.sca.contribution.jee.JavaEEApplicationInfo; +import org.apache.tuscany.sca.contribution.jee.JavaEEIntrospector; +import org.apache.tuscany.sca.contribution.jee.impl.JavaEEApplicationInfoImpl; +import org.apache.tuscany.sca.contribution.resolver.ExtensibleModelResolver; +import org.apache.tuscany.sca.contribution.resolver.ModelResolver; +import org.apache.tuscany.sca.contribution.resolver.ModelResolverExtensionPoint; +import org.apache.tuscany.sca.contribution.service.ContributionService; +import org.apache.tuscany.sca.core.ExtensionPointRegistry; +import org.apache.tuscany.sca.host.embedded.impl.EmbeddedSCADomain; +import org.apache.tuscany.sca.implementation.ejb.EJBImplementation; +import org.apache.tuscany.sca.implementation.jee.JEEImplementation; +import org.apache.tuscany.sca.implementation.web.WebImplementation; +import org.junit.Before; +import org.junit.Ignore; +import org.junit.Test; + +import sample.pojo.HelloworldClient2; + + +public class SCAJarEarAppcompWarAppcompTestCase { + + private static final String CONTRIBUTION_001_ID = "contribution001/"; + + private ClassLoader cl; + private EmbeddedSCADomain domain; + private ContributionService contributionService; + + @Before + public void setUp() throws Exception { + //Create a test embedded SCA domain + cl = getClass().getClassLoader(); + domain = new EmbeddedSCADomain(cl, "http://localhost"); + + //Start the domain + domain.start(); + + //get a reference to the contribution service + contributionService = domain.getContributionService(); + } + + /** + * SCAJAR - It's an SCA contribution in a JAR with no nested archives + * but which references a... + * EAR - It's an JEE EAR file + * appcomp - It has an application composite in it + * WAR - It has a WAR (and and EAR) in it + * appcomp - It has an application composite in it which should be ignored + */ + @Test + public void testSCAJarEarAppcomp() throws Exception { + + URL contributionLocation = new File("../contribution-jee-samples/scajar-ear-appcomp-war-appcomp/target/itest-contribution-jee-samples-43-scajar-ear-appcomp-war-appcomp.jar").toURL(); + Contribution contribution = contributionService.contribute(CONTRIBUTION_001_ID, contributionLocation, false); + + Assert.assertNotNull(contribution); + + Composite composite = null; + for (Artifact artifact : contribution.getArtifacts()){ + if (artifact.getModel() instanceof Composite){ + composite = (Composite) artifact.getModel(); + } + } + + Assert.assertNotNull(composite); + + domain.getDomainComposite().getIncludes().add(composite); + + Assert.assertEquals(3, composite.getComponents().size()); + Assert.assertEquals(2, composite.getComponents().get(1).getImplementation().getServices().size()); + Assert.assertEquals("TheService", composite.getComponents().get(1).getImplementation().getServices().get(0).getName()); + + domain.buildComposite(composite); + + // assert that the build process has worked + Assert.assertNotNull(composite); + + domain.getCompositeActivator().activate(composite); + domain.getCompositeActivator().start(composite); + + HelloworldClient2 client = domain.getService(HelloworldClient2.class, "HelloworldClientComponent"); + Assert.assertEquals("Hello Fred Java", client.getGreetings("Fred")); + + domain.stop(); + + } + +} diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution-jee/src/test/java/org/apache/tuscany/sca/test/contribution/jee/SCAJarEarNonenhancedTestCase.java b/tags/java/sca/1.5.1-RC4/itest/contribution-jee/src/test/java/org/apache/tuscany/sca/test/contribution/jee/SCAJarEarNonenhancedTestCase.java new file mode 100644 index 0000000000..97e23d1bf7 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-jee/src/test/java/org/apache/tuscany/sca/test/contribution/jee/SCAJarEarNonenhancedTestCase.java @@ -0,0 +1,139 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.jee; + +import java.io.File; +import java.net.URL; +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.assembly.Component; +import org.apache.tuscany.sca.assembly.Composite; +import org.apache.tuscany.sca.assembly.Reference; +import org.apache.tuscany.sca.assembly.Service; +import org.apache.tuscany.sca.contribution.Artifact; +import org.apache.tuscany.sca.contribution.Contribution; +import org.apache.tuscany.sca.contribution.jee.ExternalEarInfo; +import org.apache.tuscany.sca.contribution.jee.JavaEEApplicationInfo; +import org.apache.tuscany.sca.contribution.jee.JavaEEIntrospector; +import org.apache.tuscany.sca.contribution.jee.impl.JavaEEApplicationInfoImpl; +import org.apache.tuscany.sca.contribution.resolver.ExtensibleModelResolver; +import org.apache.tuscany.sca.contribution.resolver.ModelResolver; +import org.apache.tuscany.sca.contribution.resolver.ModelResolverExtensionPoint; +import org.apache.tuscany.sca.contribution.service.ContributionService; +import org.apache.tuscany.sca.core.ExtensionPointRegistry; +import org.apache.tuscany.sca.host.embedded.impl.EmbeddedSCADomain; +import org.apache.tuscany.sca.implementation.ejb.EJBImplementation; +import org.apache.tuscany.sca.implementation.jee.JEEImplementation; +import org.apache.tuscany.sca.implementation.web.WebImplementation; +import org.junit.Before; +import org.junit.Ignore; +import org.junit.Test; + + +public class SCAJarEarNonenhancedTestCase { + + private static final String CONTRIBUTION_001_ID = "contribution001/"; + private static final String CONTRIBUTION_002_ID = "contribution002/"; + + private ClassLoader cl; + private EmbeddedSCADomain domain; + private ContributionService contributionService; + + /** + * 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 Domain, to start the SCA Domain and + * to get a reference to the contribution service + */ + + @Before + public void setUp() throws Exception { + //Create a test embedded SCA domain + cl = getClass().getClassLoader(); + domain = new EmbeddedSCADomain(cl, "http://localhost"); + + //Start the domain + domain.start(); + + //get a reference to the contribution service + contributionService = domain.getContributionService(); + } + + /** + * SCAJAR - It's an SCA contribution in a JAR with no nested archives + * but which references a... + * EAR - It's an JEE EAR file + * nonenhanced - It has no SCA enhancements. Just a normal EAR + * + */ + @Test + public void testSCAJarEarNonenhanced() throws Exception{ + /* some thoughts about how to preprocess the ear + * as an alternative to relying on the model resolver + * to do contribution processing. + + // Get some things from the extension registry that help us create the + // link between the contribution and the ear that it references + ExtensionPointRegistry registry = domain.getExtensionPointRegistry(); + ModelResolverExtensionPoint modelResolvers = registry.getExtensionPoint(ModelResolverExtensionPoint.class); + Class externalEarModelResolver = modelResolvers.getResolver(ExternalEarInfo.class); + + // locate the ear + URL earLocation = new File("../contribution-jee-samples/ear-nonenhanced/target/itest-contribution-jee-samples-13-ear-nonenhanced.ear").toURL(); + contributionService.contribute(CONTRIBUTION_001_ID, earLocation, false); + + // find the app info + for (Artifact artifact : contributionService.getContribution(CONTRIBUTION_001_ID).getArtifacts()){ + if (artifact.getModel() instanceof JavaEEApplicationInfo){ + // need to make this model available to the external ear model + // resolver. But how? + } + } + */ + + URL contributionLocation = new File("../contribution-jee-samples/scajar-ear-nonenhanced/target/itest-contribution-jee-samples-35-scajar-ear-nonenhanced.jar").toURL(); + Contribution contribution = contributionService.contribute(CONTRIBUTION_002_ID, contributionLocation, false); + + Assert.assertNotNull(contribution); + + Composite composite = null; + for (Artifact artifact : contribution.getArtifacts()){ + if (artifact.getModel() instanceof Composite){ + composite = (Composite) artifact.getModel(); + } + } + + Assert.assertNotNull(composite); + + Assert.assertEquals(2, composite.getComponents().size()); + Assert.assertEquals(4, composite.getComponents().get(1).getImplementation().getServices().size()); + Assert.assertEquals("HelloworldService7Bean_HelloworldService7", composite.getComponents().get(1).getImplementation().getServices().get(0).getName()); + + domain.buildComposite(composite); + + // assert that the build process has worked + Assert.assertNotNull(composite); + } + +} diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution-jee/src/test/java/org/apache/tuscany/sca/test/contribution/jee/SCAZipEjbAppcompTestCase.java b/tags/java/sca/1.5.1-RC4/itest/contribution-jee/src/test/java/org/apache/tuscany/sca/test/contribution/jee/SCAZipEjbAppcompTestCase.java new file mode 100644 index 0000000000..db4d9e5bf6 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-jee/src/test/java/org/apache/tuscany/sca/test/contribution/jee/SCAZipEjbAppcompTestCase.java @@ -0,0 +1,112 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.jee; + +import java.io.File; +import java.net.URL; +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.assembly.Component; +import org.apache.tuscany.sca.assembly.Composite; +import org.apache.tuscany.sca.assembly.Reference; +import org.apache.tuscany.sca.assembly.Service; +import org.apache.tuscany.sca.assembly.builder.CompositeBuilder; +import org.apache.tuscany.sca.contribution.Artifact; +import org.apache.tuscany.sca.contribution.Contribution; +import org.apache.tuscany.sca.contribution.jee.ExternalEarInfo; +import org.apache.tuscany.sca.contribution.jee.JavaEEApplicationInfo; +import org.apache.tuscany.sca.contribution.jee.JavaEEIntrospector; +import org.apache.tuscany.sca.contribution.jee.impl.JavaEEApplicationInfoImpl; +import org.apache.tuscany.sca.contribution.resolver.ExtensibleModelResolver; +import org.apache.tuscany.sca.contribution.resolver.ModelResolver; +import org.apache.tuscany.sca.contribution.resolver.ModelResolverExtensionPoint; +import org.apache.tuscany.sca.contribution.service.ContributionService; +import org.apache.tuscany.sca.core.ExtensionPointRegistry; +import org.apache.tuscany.sca.host.embedded.impl.EmbeddedSCADomain; +import org.apache.tuscany.sca.implementation.ejb.EJBImplementation; +import org.apache.tuscany.sca.implementation.jee.JEEImplementation; +import org.apache.tuscany.sca.implementation.web.WebImplementation; +import org.junit.Before; +import org.junit.Ignore; +import org.junit.Test; + + +public class SCAZipEjbAppcompTestCase { + + private static final String CONTRIBUTION_001_ID = "contribution001/"; + + private ClassLoader cl; + private EmbeddedSCADomain domain; + private ContributionService contributionService; + + @Before + public void setUp() throws Exception { + //Create a test embedded SCA domain + cl = getClass().getClassLoader(); + domain = new EmbeddedSCADomain(cl, "http://localhost"); + + //Start the domain + domain.start(); + + //get a reference to the contribution service + contributionService = domain.getContributionService(); + } + + /** + * SCAZIP - It's an SCA contribution in a ZIP with no nested archive + * but with a reference to an EJB Jar + * JAR + * appcomp - It has an application composite in it + * + */ + @Test + public void testSCAZipEjbAppcomp() throws Exception { + + URL contributionLocation = new File("../contribution-jee-samples/scazip-ejb-appcomp/target/itest-contribution-jee-samples-10-scazip-ejb-appcomp.zip").toURL(); + Contribution contribution = contributionService.contribute(CONTRIBUTION_001_ID, contributionLocation, false); + + Assert.assertNotNull(contribution); + + Composite composite = null; + for (Artifact artifact : contribution.getArtifacts()){ + if (artifact.getModel() instanceof Composite){ + composite = (Composite) artifact.getModel(); + } + } + + Assert.assertNotNull(composite); + + Assert.assertEquals(2, composite.getComponents().size()); + Assert.assertEquals(1, composite.getComponents().get(1).getImplementation().getServices().size()); + Assert.assertEquals("HelloworldServiceBean_HelloworldService", composite.getComponents().get(1).getImplementation().getServices().get(0).getName()); + + domain.buildComposite(composite); + + // assert that the build process has worked + Assert.assertNotNull(composite); + + } + +} diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution-jee/src/test/java/org/apache/tuscany/sca/test/contribution/jee/SCAZipWarAppcompTestCase.java b/tags/java/sca/1.5.1-RC4/itest/contribution-jee/src/test/java/org/apache/tuscany/sca/test/contribution/jee/SCAZipWarAppcompTestCase.java new file mode 100644 index 0000000000..211f51c9bd --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-jee/src/test/java/org/apache/tuscany/sca/test/contribution/jee/SCAZipWarAppcompTestCase.java @@ -0,0 +1,114 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.jee; + +import java.io.File; +import java.net.URL; +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.assembly.Component; +import org.apache.tuscany.sca.assembly.Composite; +import org.apache.tuscany.sca.assembly.Reference; +import org.apache.tuscany.sca.assembly.Service; +import org.apache.tuscany.sca.assembly.builder.CompositeBuilder; +import org.apache.tuscany.sca.contribution.Artifact; +import org.apache.tuscany.sca.contribution.Contribution; +import org.apache.tuscany.sca.contribution.jee.ExternalEarInfo; +import org.apache.tuscany.sca.contribution.jee.JavaEEApplicationInfo; +import org.apache.tuscany.sca.contribution.jee.JavaEEIntrospector; +import org.apache.tuscany.sca.contribution.jee.impl.JavaEEApplicationInfoImpl; +import org.apache.tuscany.sca.contribution.resolver.ExtensibleModelResolver; +import org.apache.tuscany.sca.contribution.resolver.ModelResolver; +import org.apache.tuscany.sca.contribution.resolver.ModelResolverExtensionPoint; +import org.apache.tuscany.sca.contribution.service.ContributionService; +import org.apache.tuscany.sca.core.ExtensionPointRegistry; +import org.apache.tuscany.sca.host.embedded.impl.EmbeddedSCADomain; +import org.apache.tuscany.sca.implementation.ejb.EJBImplementation; +import org.apache.tuscany.sca.implementation.jee.JEEImplementation; +import org.apache.tuscany.sca.implementation.web.WebImplementation; +import org.junit.Before; +import org.junit.Ignore; +import org.junit.Test; + + +public class SCAZipWarAppcompTestCase { + + private static final String CONTRIBUTION_001_ID = "contribution001/"; + + private ClassLoader cl; + private EmbeddedSCADomain domain; + private ContributionService contributionService; + + @Before + public void setUp() throws Exception { + //Create a test embedded SCA domain + cl = getClass().getClassLoader(); + domain = new EmbeddedSCADomain(cl, "http://localhost"); + + //Start the domain + domain.start(); + + //get a reference to the contribution service + contributionService = domain.getContributionService(); + } + + /** + * SCAJAR - It's an SCA contribution in a JAR with no nested archives + * but which references a... + * EAR - It's an JEE EAR file + * appcomp - It has an application composite in it + * + */ + // not picking up references correctly + @Ignore + @Test + public void testSCAJarEarNonenhanced() throws Exception { + + URL contributionLocation = new File("../contribution-jee-samples/scazip-war-appcomp/target/itest-contribution-jee-samples-04-scazip-war-appcomp.zip").toURL(); + Contribution contribution = contributionService.contribute(CONTRIBUTION_001_ID, contributionLocation, false); + + Assert.assertNotNull(contribution); + + Composite composite = null; + for (Artifact artifact : contribution.getArtifacts()){ + if (artifact.getModel() instanceof Composite){ + composite = (Composite) artifact.getModel(); + } + } + + Assert.assertNotNull(composite); + + Assert.assertEquals(1, composite.getComponents().size()); + Assert.assertEquals(1, composite.getComponents().get(0).getImplementation().getReferences().size()); + Assert.assertEquals("????", composite.getComponents().get(0).getImplementation().getReferences().get(0).getName()); + + domain.buildComposite(composite); + + // assert that the build process has worked + Assert.assertNotNull(composite); + + } + +} diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution-jee/src/test/java/org/apache/tuscany/sca/test/contribution/jee/WARAppcompContribImplicitTestCase.java b/tags/java/sca/1.5.1-RC4/itest/contribution-jee/src/test/java/org/apache/tuscany/sca/test/contribution/jee/WARAppcompContribImplicitTestCase.java new file mode 100644 index 0000000000..7696b64f9c --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-jee/src/test/java/org/apache/tuscany/sca/test/contribution/jee/WARAppcompContribImplicitTestCase.java @@ -0,0 +1,86 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.jee; + +import java.io.File; +import java.net.URL; +import java.util.ArrayList; +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.Reference; +import org.apache.tuscany.sca.assembly.Service; +import org.apache.tuscany.sca.contribution.Artifact; +import org.apache.tuscany.sca.contribution.Contribution; +import org.apache.tuscany.sca.contribution.service.ContributionService; +import org.apache.tuscany.sca.host.embedded.impl.EmbeddedSCADomain; +import org.apache.tuscany.sca.implementation.ejb.EJBImplementation; +import org.apache.tuscany.sca.implementation.jee.JEEImplementation; +import org.apache.tuscany.sca.implementation.web.WebImplementation; +import org.junit.Before; +import org.junit.Ignore; +import org.junit.Test; + + +public class WARAppcompContribImplicitTestCase { + + private static final String CONTRIBUTION_001_ID = "contribution001/"; + + private ClassLoader cl; + private EmbeddedSCADomain domain; + private ContributionService contributionService; + + /** + * 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 Domain, to start the SCA Domain and + * to get a reference to the contribution service + */ + + @Before + public void setUp() throws Exception { + //Create a test embedded SCA domain + cl = getClass().getClassLoader(); + domain = new EmbeddedSCADomain(cl, "http://localhost"); + + //Start the domain + domain.start(); + + //get a reference to the contribution service + contributionService = domain.getContributionService(); + } + + /** + * WAR - It's a WAR + * Appcomp - It has an application composite + * Contrib - It's a contribution in it's own right + * Implicit - Composite deployment is implicit + * + */ + @Test + public void testWARAppcompContribImplicit() throws Exception { + URL contributionLocation = new File("../contribution-jee-samples/war-appcomp-contrib-implicit/target/itest-contribution-jee-samples-06-war-appcomp-contrib-implicit.war").toURL(); + contributionService.contribute(CONTRIBUTION_001_ID, contributionLocation, false); + Assert.assertNotNull(contributionService.getContribution(CONTRIBUTION_001_ID)); + } + +} diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution-jee/src/test/java/org/apache/tuscany/sca/test/contribution/jee/WarAppcompTestCase.java b/tags/java/sca/1.5.1-RC4/itest/contribution-jee/src/test/java/org/apache/tuscany/sca/test/contribution/jee/WarAppcompTestCase.java new file mode 100644 index 0000000000..f54a4f98df --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-jee/src/test/java/org/apache/tuscany/sca/test/contribution/jee/WarAppcompTestCase.java @@ -0,0 +1,110 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.jee; + +import java.io.File; +import java.net.URL; +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.assembly.Component; +import org.apache.tuscany.sca.assembly.Composite; +import org.apache.tuscany.sca.assembly.Reference; +import org.apache.tuscany.sca.assembly.Service; +import org.apache.tuscany.sca.assembly.builder.CompositeBuilder; +import org.apache.tuscany.sca.contribution.Artifact; +import org.apache.tuscany.sca.contribution.Contribution; +import org.apache.tuscany.sca.contribution.jee.ExternalEarInfo; +import org.apache.tuscany.sca.contribution.jee.JavaEEApplicationInfo; +import org.apache.tuscany.sca.contribution.jee.JavaEEIntrospector; +import org.apache.tuscany.sca.contribution.jee.impl.JavaEEApplicationInfoImpl; +import org.apache.tuscany.sca.contribution.resolver.ExtensibleModelResolver; +import org.apache.tuscany.sca.contribution.resolver.ModelResolver; +import org.apache.tuscany.sca.contribution.resolver.ModelResolverExtensionPoint; +import org.apache.tuscany.sca.contribution.service.ContributionService; +import org.apache.tuscany.sca.core.ExtensionPointRegistry; +import org.apache.tuscany.sca.host.embedded.impl.EmbeddedSCADomain; +import org.apache.tuscany.sca.implementation.ejb.EJBImplementation; +import org.apache.tuscany.sca.implementation.jee.JEEImplementation; +import org.apache.tuscany.sca.implementation.web.WebImplementation; +import org.junit.Before; +import org.junit.Ignore; +import org.junit.Test; + + +public class WarAppcompTestCase { + + private static final String CONTRIBUTION_001_ID = "contribution001/"; + + private ClassLoader cl; + private EmbeddedSCADomain domain; + private ContributionService contributionService; + + @Before + public void setUp() throws Exception { + //Create a test embedded SCA domain + cl = getClass().getClassLoader(); + domain = new EmbeddedSCADomain(cl, "http://localhost"); + + //Start the domain + domain.start(); + + //get a reference to the contribution service + contributionService = domain.getContributionService(); + } + + /** + * EJB - It's an JEE EAR file that is a contribution + * appcomp - It has an application composite in it + * + */ + @Test + public void testEjbAppcom() throws Exception { + + URL contributionLocation = new File("../contribution-jee-samples/war-appcomp-contrib-implicit/target/itest-contribution-jee-samples-06-war-appcomp-contrib-implicit.war").toURL(); + Contribution contribution = contributionService.contribute(CONTRIBUTION_001_ID, contributionLocation, false); + + Assert.assertNotNull(contribution); + + Composite composite = null; + for (Artifact artifact : contribution.getArtifacts()){ + if (artifact.getModel() instanceof Composite){ + composite = (Composite) artifact.getModel(); + } + } + + Assert.assertNotNull(composite); + + Assert.assertEquals(1, composite.getComponents().size()); + Assert.assertEquals(1, composite.getComponents().get(0).getImplementation().getReferences().size()); + Assert.assertEquals("helloworldSca", composite.getComponents().get(0).getImplementation().getReferences().get(0).getName()); + + domain.buildComposite(composite); + + // assert that the build process has worked + Assert.assertNotNull(composite); + + } + +} diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution-jee/src/test/resources/repository/enhanced-app.ear b/tags/java/sca/1.5.1-RC4/itest/contribution-jee/src/test/resources/repository/enhanced-app.ear new file mode 100644 index 0000000000..11d2a029ec Binary files /dev/null and b/tags/java/sca/1.5.1-RC4/itest/contribution-jee/src/test/resources/repository/enhanced-app.ear differ diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution-jee/src/test/resources/repository/helloworld-ejb-w-dep.jar b/tags/java/sca/1.5.1-RC4/itest/contribution-jee/src/test/resources/repository/helloworld-ejb-w-dep.jar new file mode 100644 index 0000000000..a5b160c875 Binary files /dev/null and b/tags/java/sca/1.5.1-RC4/itest/contribution-jee/src/test/resources/repository/helloworld-ejb-w-dep.jar differ diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution-jee/src/test/resources/repository/helloworld-ejb.ear b/tags/java/sca/1.5.1-RC4/itest/contribution-jee/src/test/resources/repository/helloworld-ejb.ear new file mode 100644 index 0000000000..9fb1ed9d14 Binary files /dev/null and b/tags/java/sca/1.5.1-RC4/itest/contribution-jee/src/test/resources/repository/helloworld-ejb.ear differ diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution-jee/src/test/resources/repository/helloworld-ejb.jar b/tags/java/sca/1.5.1-RC4/itest/contribution-jee/src/test/resources/repository/helloworld-ejb.jar new file mode 100644 index 0000000000..3a704137ed Binary files /dev/null and b/tags/java/sca/1.5.1-RC4/itest/contribution-jee/src/test/resources/repository/helloworld-ejb.jar differ diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution-jee/src/test/resources/repository/helloworld-service.jar b/tags/java/sca/1.5.1-RC4/itest/contribution-jee/src/test/resources/repository/helloworld-service.jar new file mode 100644 index 0000000000..228f4d27d7 Binary files /dev/null and b/tags/java/sca/1.5.1-RC4/itest/contribution-jee/src/test/resources/repository/helloworld-service.jar differ diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution-jee/src/test/resources/repository/helloworld-web-w-dep.war b/tags/java/sca/1.5.1-RC4/itest/contribution-jee/src/test/resources/repository/helloworld-web-w-dep.war new file mode 100644 index 0000000000..0b75db2745 Binary files /dev/null and b/tags/java/sca/1.5.1-RC4/itest/contribution-jee/src/test/resources/repository/helloworld-web-w-dep.war differ diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution-jee/src/test/resources/repository/helloworld-web.war b/tags/java/sca/1.5.1-RC4/itest/contribution-jee/src/test/resources/repository/helloworld-web.war new file mode 100644 index 0000000000..938ea75941 Binary files /dev/null and b/tags/java/sca/1.5.1-RC4/itest/contribution-jee/src/test/resources/repository/helloworld-web.war differ diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution-jee/src/test/resources/repository/simple-app-ear.jar b/tags/java/sca/1.5.1-RC4/itest/contribution-jee/src/test/resources/repository/simple-app-ear.jar new file mode 100644 index 0000000000..24f55a5f63 Binary files /dev/null and b/tags/java/sca/1.5.1-RC4/itest/contribution-jee/src/test/resources/repository/simple-app-ear.jar differ diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution-jee/src/test/resources/repository/simple-app.ear b/tags/java/sca/1.5.1-RC4/itest/contribution-jee/src/test/resources/repository/simple-app.ear new file mode 100644 index 0000000000..c912e64237 Binary files /dev/null and b/tags/java/sca/1.5.1-RC4/itest/contribution-jee/src/test/resources/repository/simple-app.ear differ diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution-multiple/pom.xml b/tags/java/sca/1.5.1-RC4/itest/contribution-multiple/pom.xml new file mode 100644 index 0000000000..2dd332dcc2 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-multiple/pom.xml @@ -0,0 +1,51 @@ + + + + 4.0.0 + + org.apache.tuscany.sca + tuscany-itest + 1.5.1 + ../pom.xml + + itest-contribution-multiple + Apache Tuscany SCA iTest Multiple Contribution + + + + org.apache.tuscany.sca + tuscany-host-embedded + 1.5.1 + + + + org.apache.tuscany.sca + tuscany-contribution-impl + 1.5.1 + + + + org.apache.tuscany.sca + tuscany-implementation-java-runtime + 1.5.1 + runtime + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution-multiple/src/test/java/hello/Hello.java b/tags/java/sca/1.5.1-RC4/itest/contribution-multiple/src/test/java/hello/Hello.java new file mode 100644 index 0000000000..7e574a7db3 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-multiple/src/test/java/hello/Hello.java @@ -0,0 +1,27 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES 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; + +/** + * This is the business interface of the Hello service. + */ +public interface Hello { + + public String getGreetings(String name); +} diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution-multiple/src/test/java/hello/HelloImpl.java b/tags/java/sca/1.5.1-RC4/itest/contribution-multiple/src/test/java/hello/HelloImpl.java new file mode 100644 index 0000000000..ff9f6e75f3 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-multiple/src/test/java/hello/HelloImpl.java @@ -0,0 +1,33 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES 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/tags/java/sca/1.5.1-RC4/itest/contribution-multiple/src/test/java/helloworld/HelloWorldImpl.java b/tags/java/sca/1.5.1-RC4/itest/contribution-multiple/src/test/java/helloworld/HelloWorldImpl.java new file mode 100644 index 0000000000..c062afaed0 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-multiple/src/test/java/helloworld/HelloWorldImpl.java @@ -0,0 +1,38 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES 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/tags/java/sca/1.5.1-RC4/itest/contribution-multiple/src/test/java/helloworld/HelloWorldService.java b/tags/java/sca/1.5.1-RC4/itest/contribution-multiple/src/test/java/helloworld/HelloWorldService.java new file mode 100644 index 0000000000..5251fc0a45 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-multiple/src/test/java/helloworld/HelloWorldService.java @@ -0,0 +1,28 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES 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; + + +/** + * This is the business interface of the HelloWorld greetings service. + */ +public interface HelloWorldService { + + public String getGreetings(String name); +} diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution-multiple/src/test/java/test/ContributionCycleTestCaseFIXME.java b/tags/java/sca/1.5.1-RC4/itest/contribution-multiple/src/test/java/test/ContributionCycleTestCaseFIXME.java new file mode 100644 index 0000000000..ec5123eb2d --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-multiple/src/test/java/test/ContributionCycleTestCaseFIXME.java @@ -0,0 +1,121 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES 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 helloworld.HelloWorldService; + +import java.io.IOException; +import java.net.URL; + +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; + +import junit.framework.TestCase; + +/** + * Test multiple contributions scenario + * + * FIXME This test case causes a StackOverflowException instead of + * reporting an error when a composite is not found, as there's a + * dependency cycle in the test contributions and the model resolvers + * do not handle import cycles properly. + * + */ +public class ContributionCycleTestCaseFIXME extends TestCase { + + private String helloContribution_dir = "target/test-classes/contribution-cycle-export"; + private String helloWorldContribution_one_dir = "target/test-classes/contribution-cycle-import"; + + private ClassLoader cl; + private EmbeddedSCADomain domain; + private Contribution helloContribution; + private Contribution helloWorldContribution_one; + + protected void setUp() throws Exception { + URL helloContribution_URL = new java.io.File(helloContribution_dir).toURI().toURL(); + URL helloWorldContribution_one_URL = new java.io.File(helloWorldContribution_one_dir).toURI().toURL(); + + // 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(); + + helloContribution = + contributionService.contribute("http://contribution-multiple/helloworld", helloContribution_URL, false); + + for (Composite deployable : helloContribution.getDeployables()) { + domain.getDomainComposite().getIncludes().add(deployable); + domain.buildComposite(deployable); + } + for (Composite deployable : helloContribution.getDeployables()) { + domain.getCompositeActivator().activate(deployable); + domain.getCompositeActivator().start(deployable); + } + + helloWorldContribution_one = + contributionService.contribute("http://contribution-multiple/helloworld_one", helloWorldContribution_one_URL, false); + for (Composite deployable : helloWorldContribution_one.getDeployables()) { + domain.getDomainComposite().getIncludes().add(deployable); + domain.buildComposite(deployable); + } + + for (Composite deployable : helloWorldContribution_one.getDeployables()) { + domain.getCompositeActivator().activate(deployable); + domain.getCompositeActivator().start(deployable); + } + + } + + public void testServiceCall() throws IOException { + HelloWorldService helloWorldService_one = + domain.getService(HelloWorldService.class, "HelloWorldServiceComponent_one/HelloWorldService"); + assertNotNull(helloWorldService_one); + + assertEquals("Hello Smith", helloWorldService_one.getGreetings("Smith")); + + } + + public void tearDown() throws Exception { + ContributionService contributionService = domain.getContributionService(); + + // Remove the contribution from the in-memory repository + contributionService.remove("http://contribution-multiple/helloworld"); + contributionService.remove("http://contribution-multiple/helloworld_one"); + + // Stop Components from my composite + for (Composite deployable : helloWorldContribution_one.getDeployables()) { + domain.getCompositeActivator().stop(deployable); + domain.getCompositeActivator().deactivate(deployable); + } + for (Composite deployable : helloContribution.getDeployables()) { + domain.getCompositeActivator().stop(deployable); + domain.getCompositeActivator().deactivate(deployable); + } + // domain.stop(); + domain.close(); + } + +} diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution-multiple/src/test/java/test/ContributionMultipleTestCaseFIXME.java b/tags/java/sca/1.5.1-RC4/itest/contribution-multiple/src/test/java/test/ContributionMultipleTestCaseFIXME.java new file mode 100644 index 0000000000..133c98f357 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-multiple/src/test/java/test/ContributionMultipleTestCaseFIXME.java @@ -0,0 +1,131 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES 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 helloworld.HelloWorldService; + +import java.io.IOException; +import java.net.URL; + +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; + +import junit.framework.TestCase; + +/** + * Test multiple contribution scenario + * Contributed by TUSCANY-1718 + */ +public class ContributionMultipleTestCaseFIXME extends TestCase { + + private String helloContribution_dir = "target/test-classes/contribution-export"; + private String helloWorldContribution_one_dir = "target/test-classes/contribution-import-one"; + private String helloWorldContribution_two_dir = "target/test-classes/contribution-import-two"; + + private ClassLoader cl; + private EmbeddedSCADomain domain; + private Contribution helloContribution; + private Contribution helloWorldContribution_one; + private Contribution helloWorldContribution_two; + + protected void setUp() throws Exception { + URL helloContribution_URL = new java.io.File(helloContribution_dir).toURI().toURL(); + URL helloWorldContribution_one_URL = new java.io.File(helloWorldContribution_one_dir).toURI().toURL(); + URL helloWorldContribution_two_URL = new java.io.File(helloWorldContribution_two_dir).toURI().toURL(); + + // 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(); + + helloContribution = + contributionService.contribute("http://contribution-multiple/helloworld", helloContribution_URL, false); + + helloWorldContribution_one = + contributionService.contribute("http://contribution-multiple/helloworld_one", helloWorldContribution_one_URL, false); + + helloWorldContribution_two = + contributionService.contribute("http://contribution-multiple/helloworld_two", helloWorldContribution_two_URL, false); + + for (Composite deployable : helloContribution.getDeployables()) { + domain.getDomainComposite().getIncludes().add(deployable); + } + + for (Composite deployable : helloWorldContribution_one.getDeployables()) { + domain.getDomainComposite().getIncludes().add(deployable); + } + + for (Composite deployable : helloWorldContribution_two.getDeployables()) { + domain.getDomainComposite().getIncludes().add(deployable); + } + + domain.buildComposite(domain.getDomainComposite()); + domain.getCompositeActivator().activate(domain.getDomainComposite()); + domain.getCompositeActivator().start(domain.getDomainComposite()); + + } + + public void testServiceCall() throws IOException { + HelloWorldService helloWorldService_one = + domain.getService(HelloWorldService.class, "HelloWorldServiceComponent_one/HelloWorldService"); + assertNotNull(helloWorldService_one); + + assertEquals("Hello Smith", helloWorldService_one.getGreetings("Smith")); + + HelloWorldService helloWorldService_two = + domain.getService(HelloWorldService.class, "HelloWorldServiceComponent_two/HelloWorldService"); + assertNotNull(helloWorldService_two); + + assertEquals("Hello Smith", helloWorldService_two.getGreetings("Smith")); + + } + + public void tearDown() throws Exception { + ContributionService contributionService = domain.getContributionService(); + + // Remove the contribution from the in-memory repository + contributionService.remove("http://contribution-multiple/helloworld"); + contributionService.remove("http://contribution-multiple/helloworld_one"); + contributionService.remove("http://contribution-multiple/helloworld_two"); + + // Stop Components from my composite + for (Composite deployable : helloWorldContribution_two.getDeployables()) { + domain.getCompositeActivator().stop(deployable); + domain.getCompositeActivator().deactivate(deployable); + } + for (Composite deployable : helloWorldContribution_one.getDeployables()) { + domain.getCompositeActivator().stop(deployable); + domain.getCompositeActivator().deactivate(deployable); + } + for (Composite deployable : helloContribution.getDeployables()) { + domain.getCompositeActivator().stop(deployable); + domain.getCompositeActivator().deactivate(deployable); + } + // domain.stop(); + domain.close(); + } + +} diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution-multiple/src/test/java/test/ContributionTestCase.java b/tags/java/sca/1.5.1-RC4/itest/contribution-multiple/src/test/java/test/ContributionTestCase.java new file mode 100644 index 0000000000..790b6fed98 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-multiple/src/test/java/test/ContributionTestCase.java @@ -0,0 +1,145 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES 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 helloworld.HelloWorldService; + +import java.io.IOException; +import java.net.URL; + +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; + +import junit.framework.TestCase; + +/** + * Test multiple contribution scenario + * Contributed by TUSCANY-1756 + */ +public class ContributionTestCase extends TestCase { + + private String helloContribution_dir = "target/test-classes/contribution-export"; + //private String helloWorldContribution_one_dir = "target/test-classes/contribution-import-one"; + private String helloWorldContribution_two_dir = "target/test-classes/contribution-import-two"; + + private ClassLoader cl; + private EmbeddedSCADomain domain; + private Contribution helloContribution; + //private Contribution helloWorldContribution_one; + private Contribution helloWorldContribution_two; + + protected void setUp() throws Exception { + URL helloContribution_URL = new java.io.File(helloContribution_dir).toURI().toURL(); + //URL helloWorldContribution_one_URL = new java.io.File(helloWorldContribution_one_dir).toURI().toURL(); + URL helloWorldContribution_two_URL = new java.io.File(helloWorldContribution_two_dir).toURI().toURL(); + + // 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(); + + helloContribution = + contributionService.contribute("http://contribution-multiple/helloworld", helloContribution_URL, false); + + //helloWorldContribution_one = + // contributionService.contribute("http://contribution-multiple/helloworld_one", helloWorldContribution_one_URL, false); + + helloWorldContribution_two = + contributionService.contribute("http://contribution-multiple/helloworld_two", helloWorldContribution_two_URL, false); + + for (Composite deployable : helloContribution.getDeployables()) { + domain.getDomainComposite().getIncludes().add(deployable); + domain.buildComposite(deployable); + } + + //for (Composite deployable : helloWorldContribution_one.getDeployables()) { + // domain.getDomainComposite().getIncludes().add(deployable); + // domain.buildComposite(deployable); + //} + + for (Composite deployable : helloWorldContribution_two.getDeployables()) { + domain.getDomainComposite().getIncludes().add(deployable); + domain.buildComposite(deployable); + } + + for (Composite deployable : helloContribution.getDeployables()) { + domain.getCompositeActivator().activate(deployable); + domain.getCompositeActivator().start(deployable); + } + + //for (Composite deployable : helloWorldContribution_one.getDeployables()) { + // domain.getCompositeActivator().activate(deployable); + // domain.getCompositeActivator().start(deployable); + //} + + for (Composite deployable : helloWorldContribution_two.getDeployables()) { + domain.getCompositeActivator().activate(deployable); + domain.getCompositeActivator().start(deployable); + } + + } + + public void testServiceCall() throws IOException { + //HelloWorldService helloWorldService_one = + //domain.getService(HelloWorldService.class, "HelloWorldServiceComponent_one/HelloWorldService"); + //assertNotNull(helloWorldService_one); + + //assertEquals("Hello Smith", helloWorldService_one.getGreetings("Smith")); + + HelloWorldService helloWorldService_two = + domain.getService(HelloWorldService.class, "HelloWorldServiceComponent_two/HelloWorldService"); + assertNotNull(helloWorldService_two); + + assertEquals("Hello Smith", helloWorldService_two.getGreetings("Smith")); + + } + + public void tearDown() throws Exception { + ContributionService contributionService = domain.getContributionService(); + + // Remove the contribution from the in-memory repository + contributionService.remove("http://contribution-multiple/helloworld"); + //contributionService.remove("http://contribution-multiple/helloworld_one"); + contributionService.remove("http://contribution-multiple/helloworld_two"); + + // Stop Components from my composite + for (Composite deployable : helloWorldContribution_two.getDeployables()) { + domain.getCompositeActivator().stop(deployable); + domain.getCompositeActivator().deactivate(deployable); + } + //for (Composite deployable : helloWorldContribution_one.getDeployables()) { + // domain.getCompositeActivator().stop(deployable); + // domain.getCompositeActivator().deactivate(deployable); + //} + for (Composite deployable : helloContribution.getDeployables()) { + domain.getCompositeActivator().stop(deployable); + domain.getCompositeActivator().deactivate(deployable); + } + // domain.stop(); + domain.close(); + } + +} diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution-multiple/src/test/resources/contribution-cycle-export/META-INF/sca-contribution.xml b/tags/java/sca/1.5.1-RC4/itest/contribution-multiple/src/test/resources/contribution-cycle-export/META-INF/sca-contribution.xml new file mode 100644 index 0000000000..8b76783c3d --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-multiple/src/test/resources/contribution-cycle-export/META-INF/sca-contribution.xml @@ -0,0 +1,26 @@ + + + + + + + \ No newline at end of file diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution-multiple/src/test/resources/contribution-cycle-export/hello.composite b/tags/java/sca/1.5.1-RC4/itest/contribution-multiple/src/test/resources/contribution-cycle-export/hello.composite new file mode 100644 index 0000000000..aeeab337fa --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-multiple/src/test/resources/contribution-cycle-export/hello.composite @@ -0,0 +1,31 @@ + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution-multiple/src/test/resources/contribution-cycle-import/META-INF/sca-contribution.xml b/tags/java/sca/1.5.1-RC4/itest/contribution-multiple/src/test/resources/contribution-cycle-import/META-INF/sca-contribution.xml new file mode 100644 index 0000000000..bfbf74373a --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-multiple/src/test/resources/contribution-cycle-import/META-INF/sca-contribution.xml @@ -0,0 +1,26 @@ + + + + + + \ No newline at end of file diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution-multiple/src/test/resources/contribution-cycle-import/helloworld_one.composite b/tags/java/sca/1.5.1-RC4/itest/contribution-multiple/src/test/resources/contribution-cycle-import/helloworld_one.composite new file mode 100644 index 0000000000..7a8003577e --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-multiple/src/test/resources/contribution-cycle-import/helloworld_one.composite @@ -0,0 +1,35 @@ + + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution-multiple/src/test/resources/contribution-export/META-INF/sca-contribution.xml b/tags/java/sca/1.5.1-RC4/itest/contribution-multiple/src/test/resources/contribution-export/META-INF/sca-contribution.xml new file mode 100644 index 0000000000..bea6f39932 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-multiple/src/test/resources/contribution-export/META-INF/sca-contribution.xml @@ -0,0 +1,25 @@ + + + + + + \ No newline at end of file diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution-multiple/src/test/resources/contribution-export/hello.composite b/tags/java/sca/1.5.1-RC4/itest/contribution-multiple/src/test/resources/contribution-export/hello.composite new file mode 100644 index 0000000000..aeeab337fa --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-multiple/src/test/resources/contribution-export/hello.composite @@ -0,0 +1,31 @@ + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution-multiple/src/test/resources/contribution-import-one/META-INF/sca-contribution.xml b/tags/java/sca/1.5.1-RC4/itest/contribution-multiple/src/test/resources/contribution-import-one/META-INF/sca-contribution.xml new file mode 100644 index 0000000000..bfbf74373a --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-multiple/src/test/resources/contribution-import-one/META-INF/sca-contribution.xml @@ -0,0 +1,26 @@ + + + + + + \ No newline at end of file diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution-multiple/src/test/resources/contribution-import-one/helloworld_one.composite b/tags/java/sca/1.5.1-RC4/itest/contribution-multiple/src/test/resources/contribution-import-one/helloworld_one.composite new file mode 100644 index 0000000000..45cb504ea4 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-multiple/src/test/resources/contribution-import-one/helloworld_one.composite @@ -0,0 +1,35 @@ + + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution-multiple/src/test/resources/contribution-import-two/META-INF/sca-contribution.xml b/tags/java/sca/1.5.1-RC4/itest/contribution-multiple/src/test/resources/contribution-import-two/META-INF/sca-contribution.xml new file mode 100644 index 0000000000..cbabdcd4fc --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-multiple/src/test/resources/contribution-import-two/META-INF/sca-contribution.xml @@ -0,0 +1,26 @@ + + + + + + \ No newline at end of file diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution-multiple/src/test/resources/contribution-import-two/helloworld_two.composite b/tags/java/sca/1.5.1-RC4/itest/contribution-multiple/src/test/resources/contribution-import-two/helloworld_two.composite new file mode 100644 index 0000000000..4c9225de34 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution-multiple/src/test/resources/contribution-import-two/helloworld_two.composite @@ -0,0 +1,35 @@ + + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution/pom.xml b/tags/java/sca/1.5.1-RC4/itest/contribution/pom.xml new file mode 100644 index 0000000000..e41db401dc --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution/pom.xml @@ -0,0 +1,52 @@ + + + + 4.0.0 + + org.apache.tuscany.sca + tuscany-itest + 1.5.1 + ../pom.xml + + itest-contribution + Apache Tuscany SCA iTest Contribution + + + + org.apache.tuscany.sca + tuscany-host-embedded + 1.5.1 + + + + org.apache.tuscany.sca + tuscany-implementation-java-runtime + 1.5.1 + runtime + + + + org.apache.tuscany.sca + tuscany-contribution-impl + 1.5.1 + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution/src/main/java/calculator/AddService.java b/tags/java/sca/1.5.1-RC4/itest/contribution/src/main/java/calculator/AddService.java new file mode 100644 index 0000000000..4e72f92fda --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution/src/main/java/calculator/AddService.java @@ -0,0 +1,32 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES 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; + +/** + * 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 AddServiceImpl Class + */ +public interface AddService { + + /** + * This is an add method which takes 2 parameters of double type and returns the sum of two parameters + */ + double add(double n1, double n2); + +} diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution/src/main/java/calculator/AddServiceImpl.java b/tags/java/sca/1.5.1-RC4/itest/contribution/src/main/java/calculator/AddServiceImpl.java new file mode 100644 index 0000000000..e9c635e3c8 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution/src/main/java/calculator/AddServiceImpl.java @@ -0,0 +1,30 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES 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/tags/java/sca/1.5.1-RC4/itest/contribution/src/main/java/calculator/CalculatorClient.java b/tags/java/sca/1.5.1-RC4/itest/contribution/src/main/java/calculator/CalculatorClient.java new file mode 100644 index 0000000000..719ad69eef --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution/src/main/java/calculator/CalculatorClient.java @@ -0,0 +1,46 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES 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.host.embedded.SCADomain; + +/** + * This client program shows how to create an SCA runtime, start it, + * and locate and invoke a SCA component + */ +public class CalculatorClient { + public static void main(String[] args) throws Exception { + + SCADomain domain = SCADomain.newInstance("calculator/Calculator.composite"); + + CalculatorService calculatorService = domain.getService(CalculatorService.class, + "CalculatorServiceComponent"); + + // Calculate + System.out.println("3 + 2=" + calculatorService.add(3, 2)); + System.out.println("3 - 2=" + calculatorService.subtract(3, 2)); + System.out.println("3 * 2=" + calculatorService.multiply(3, 2)); + System.out.println("3 / 2=" + calculatorService.divide(3, 2)); + + domain.close(); + + } + +} \ No newline at end of file diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution/src/main/java/calculator/CalculatorService.java b/tags/java/sca/1.5.1-RC4/itest/contribution/src/main/java/calculator/CalculatorService.java new file mode 100644 index 0000000000..f288af0174 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution/src/main/java/calculator/CalculatorService.java @@ -0,0 +1,35 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES 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; + +/** + * This is a Calculator service interface. All the methods which are to be accessed as a service are declared in this + * interface but not the implementation of those methods. + */ +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/tags/java/sca/1.5.1-RC4/itest/contribution/src/main/java/calculator/CalculatorServiceImpl.java b/tags/java/sca/1.5.1-RC4/itest/contribution/src/main/java/calculator/CalculatorServiceImpl.java new file mode 100644 index 0000000000..ae4ed12b7b --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution/src/main/java/calculator/CalculatorServiceImpl.java @@ -0,0 +1,70 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package calculator; + +import org.osoa.sca.annotations.Reference; + + +/** + * An implementation of the Calculator service. + */ +public class CalculatorServiceImpl implements CalculatorService { + + private AddService addService; + private SubtractService subtractService; + private MultiplyService multiplyService; + private DivideService divideService; + + @Reference + public void setAddService(AddService addService) { + this.addService = addService; + } + + @Reference + public void setSubtractService(SubtractService subtractService) { + this.subtractService = subtractService; + } + + @Reference + public void setDivideService(DivideService divideService) { + this.divideService = divideService; + } + + @Reference + public void setMultiplyService(MultiplyService multiplyService) { + this.multiplyService = multiplyService; + } + + public double add(double n1, double n2) { + return addService.add(n1, n2); + } + + public double subtract(double n1, double n2) { + return subtractService.subtract(n1, n2); + } + + public double multiply(double n1, double n2) { + return multiplyService.multiply(n1, n2); + } + + public double divide(double n1, double n2) { + return divideService.divide(n1, n2); + } + +} diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution/src/main/java/calculator/DivideService.java b/tags/java/sca/1.5.1-RC4/itest/contribution/src/main/java/calculator/DivideService.java new file mode 100644 index 0000000000..ad99418f5b --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution/src/main/java/calculator/DivideService.java @@ -0,0 +1,32 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES 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; + +/** + * This is an interface for Divide Service which has divide method declared which is implemented in DivideServiceImpl + * class + */ +public interface DivideService { + + /** + * This is a divide method which takes 2 parameters of double type and returns the result of division + */ + double divide(double n1, double n2); + +} diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution/src/main/java/calculator/DivideServiceImpl.java b/tags/java/sca/1.5.1-RC4/itest/contribution/src/main/java/calculator/DivideServiceImpl.java new file mode 100644 index 0000000000..8c33862f6d --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution/src/main/java/calculator/DivideServiceImpl.java @@ -0,0 +1,30 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES 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/tags/java/sca/1.5.1-RC4/itest/contribution/src/main/java/calculator/MultiplyService.java b/tags/java/sca/1.5.1-RC4/itest/contribution/src/main/java/calculator/MultiplyService.java new file mode 100644 index 0000000000..3987b0a54f --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution/src/main/java/calculator/MultiplyService.java @@ -0,0 +1,33 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES 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; + +/** + * This is an interface for Multiply Service which has multiply method declared which is implemented in + * MultiplyServiceImpl class + */ +public interface MultiplyService { + + /** + * This is a multiply method which takes 2 parameters of double type and returns the result of multiplication of the + * two parameters + */ + double multiply(double n1, double n2); + +} diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution/src/main/java/calculator/MultiplyServiceImpl.java b/tags/java/sca/1.5.1-RC4/itest/contribution/src/main/java/calculator/MultiplyServiceImpl.java new file mode 100644 index 0000000000..c7fbc73c00 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution/src/main/java/calculator/MultiplyServiceImpl.java @@ -0,0 +1,30 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES 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/tags/java/sca/1.5.1-RC4/itest/contribution/src/main/java/calculator/SubtractService.java b/tags/java/sca/1.5.1-RC4/itest/contribution/src/main/java/calculator/SubtractService.java new file mode 100644 index 0000000000..25e0ed6ca7 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution/src/main/java/calculator/SubtractService.java @@ -0,0 +1,33 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES 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; + +/** + * This is an interface for Subtract Service which has subtract method declared which is implemented in + * SubtractServiceImpl class + */ + +public interface SubtractService { + + /** + * This is a subtract method which takes 2 parameters of double type and returns the result of subtraction. + */ + double subtract(double n1, double n2); + +} diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution/src/main/java/calculator/SubtractServiceImpl.java b/tags/java/sca/1.5.1-RC4/itest/contribution/src/main/java/calculator/SubtractServiceImpl.java new file mode 100644 index 0000000000..1a7f145ad8 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution/src/main/java/calculator/SubtractServiceImpl.java @@ -0,0 +1,30 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES 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/tags/java/sca/1.5.1-RC4/itest/contribution/src/main/resources/ContributionTest.composite b/tags/java/sca/1.5.1-RC4/itest/contribution/src/main/resources/ContributionTest.composite new file mode 100644 index 0000000000..d814e439e2 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution/src/main/resources/ContributionTest.composite @@ -0,0 +1,24 @@ + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution/src/main/resources/calculator/Calculator.composite b/tags/java/sca/1.5.1-RC4/itest/contribution/src/main/resources/calculator/Calculator.composite new file mode 100644 index 0000000000..657a2f95d8 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution/src/main/resources/calculator/Calculator.composite @@ -0,0 +1,51 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution/src/main/resources/calculator/sca-contribution.xml b/tags/java/sca/1.5.1-RC4/itest/contribution/src/main/resources/calculator/sca-contribution.xml new file mode 100644 index 0000000000..e95796d83a --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution/src/main/resources/calculator/sca-contribution.xml @@ -0,0 +1,24 @@ + + + + + \ No newline at end of file diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution/src/test/java/org/apache/tuscany/sca/test/contribution/ContributionServiceTestCase.java b/tags/java/sca/1.5.1-RC4/itest/contribution/src/test/java/org/apache/tuscany/sca/test/contribution/ContributionServiceTestCase.java new file mode 100644 index 0000000000..97b2e5d6ed --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/contribution/src/test/java/org/apache/tuscany/sca/test/contribution/ContributionServiceTestCase.java @@ -0,0 +1,218 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.File; +import java.io.IOException; +import java.io.InputStream; +import java.net.URL; +import java.security.AccessController; +import java.security.PrivilegedAction; +import java.security.PrivilegedActionException; +import java.security.PrivilegedExceptionAction; +import java.util.List; + +import javax.xml.namespace.QName; + +import junit.framework.TestCase; + +import org.apache.tuscany.sca.assembly.Composite; +import org.apache.tuscany.sca.assembly.DefaultAssemblyFactory; +import org.apache.tuscany.sca.contribution.Artifact; +import org.apache.tuscany.sca.contribution.Contribution; +import org.apache.tuscany.sca.contribution.service.ContributionService; +import org.apache.tuscany.sca.contribution.service.util.FileHelper; +import org.apache.tuscany.sca.contribution.service.util.IOHelper; +import org.apache.tuscany.sca.host.embedded.impl.EmbeddedSCADomain; + +/** + * This is more intended to be a integration test then a unit test. * + */ +public class ContributionServiceTestCase extends TestCase { + private static final String CONTRIBUTION_001_ID = "contribution001/"; + private static final String CONTRIBUTION_002_ID = "contribution002/"; + private static final String JAR_CONTRIBUTION = "/repository/sample-calculator.jar"; + private static final String FOLDER_CONTRIBUTION = "target/classes/"; + + private ClassLoader cl; + private EmbeddedSCADomain domain; + private ContributionService contributionService; + + /** + * 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 Domain, to start the SCA Domain and + * to get a reference to the contribution service + */ + + @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(); + + //get a reference to the contribution service + contributionService = domain.getContributionService(); + } + + /** + * Method prefixed with 'test' is a test method where testing logic is written using various assert methods. This + * test verifies the string assigned to contrututionId with the value retrieved from the SCA runtime. + */ + public void testContributeJAR() throws Exception { + URL contributionLocation = getClass().getResource(JAR_CONTRIBUTION); + //URL contributionLocation = new URL("file:/D:/dev/Opensource/Apache/Tuscany/source/java/sca/samples/calculator/target/sample-calculator.jar"); + String contributionId = CONTRIBUTION_001_ID; + contributionService.contribute(contributionId, contributionLocation, false); + assertNotNull(contributionService.getContribution(contributionId)); + } + + /** + * Method prefixed with 'test' is a test method where testing logic is written using various assert methods. This + * test verifies the string assigned to contrututionId with the value retrieved from the SCA runtime using + * contributionService. + */ + public void testStoreContributionPackageInRepository() throws Exception { + URL contributionLocation = getClass().getResource(JAR_CONTRIBUTION); + String contributionId = CONTRIBUTION_001_ID; + contributionService.contribute(contributionId, contributionLocation, true); + + assertTrue(FileHelper.toFile(new URL(contributionService.getContribution(contributionId).getLocation())) + .exists()); + + assertNotNull(contributionId); + + Contribution contributionModel = contributionService.getContribution(contributionId); + + File contributionFile = FileHelper.toFile(new URL(contributionModel.getLocation())); + assertTrue(contributionFile.exists()); + } + + /** + * Method prefixed with 'test' is a test method where testing logic is written using various assert methods. This + * test verifies the string assigned to contrututionId with the value retrieved from the SCA runtime using + * contributionService. + */ + public void testStoreContributionStreamInRepository() throws Exception { + URL contributionLocation = getClass().getResource(JAR_CONTRIBUTION); + String contributionId = CONTRIBUTION_001_ID; + + InputStream contributionStream = contributionLocation.openStream(); + try { + contributionService.contribute(contributionId, contributionLocation, contributionStream); + } finally { + IOHelper.closeQuietly(contributionStream); + } + + assertTrue(FileHelper.toFile(new URL(contributionService.getContribution(contributionId).getLocation())) + .exists()); + + assertNotNull(contributionId); + + Contribution contributionModel = contributionService.getContribution(contributionId); + + File contributionFile = FileHelper.toFile(new URL(contributionModel.getLocation())); + assertTrue(contributionFile.exists()); + } + + /** + * Method prefixed with 'test' is a test method where testing logic is written using various assert methods. This + * test verifies the string assigned to contributionId1,contributionId2 with the value retrieved from the SCA + * runtime using contributionService. + */ + public void testStoreDuplicatedContributionInRepository() throws Exception { + URL contributionLocation = getClass().getResource(JAR_CONTRIBUTION); + String contributionId1 = CONTRIBUTION_001_ID; + contributionService.contribute(contributionId1, contributionLocation, true); + assertNotNull(contributionService.getContribution(contributionId1)); + String contributionId2 = CONTRIBUTION_002_ID; + contributionService.contribute(contributionId2, contributionLocation, true); + assertNotNull(contributionService.getContribution(contributionId2)); + } + + /** + * Method prefixed with 'test' is a test method where testing logic is written using various assert methods. This + * test verifies the string assigned to contributionId with the value retrieved from the SCA runtime using + * contributionService. + */ + public void testContributeFolder() throws Exception { + final File rootContributionFolder = new File(FOLDER_CONTRIBUTION); + String contributionId = CONTRIBUTION_001_ID; + //first rename the sca-contribution metadata file + //File calculatorMetadataFile = new File("target/classes/calculator/sca-contribution.xml"); + //File metadataDirectory = new File("target/classes/META-INF/"); + //if (!metadataDirectory.exists()) { + // FileHelper.forceMkdir(metadataDirectory); + //} + //FileHelper.copyFileToDirectory(calculatorMetadataFile, metadataDirectory); + + // Requires permission to read user.dir property. Requires PropertyPermision in security policy. + URL contributionFolderURL; + try { + contributionFolderURL = AccessController.doPrivileged(new PrivilegedExceptionAction() { + public URL run() throws IOException { + return rootContributionFolder.toURL(); + } + }); + } catch (PrivilegedActionException e) { + throw (IOException)e.getException(); + } + contributionService.contribute(contributionId, contributionFolderURL, false); + assertNotNull(contributionService.getContribution(contributionId)); + } + + /** + * Method prefixed with 'test' is a test method where testing logic is written using various assert methods. This + * test verifies the string assigned to contributionId, artifactId with the value retrieved from the SCA runtime + * using contributionService. + */ + public void testAddDeploymentComposites() throws Exception { + URL contributionLocation = getClass().getResource(JAR_CONTRIBUTION); + String contributionId = CONTRIBUTION_001_ID; + Contribution contribution = contributionService.contribute(contributionId, contributionLocation, false); + assertNotNull(contributionService.getContribution(contributionId)); + + String artifactId = "contributionComposite.composite"; + Composite composite = (new DefaultAssemblyFactory()).createComposite(); + composite.setName(new QName(null, "contributionComposite")); + composite.setURI("contributionComposite.composite"); + + contributionService.addDeploymentComposite(contribution, composite); + + List deployables = contributionService.getContribution(contributionId).getDeployables(); + Composite composite1 = (Composite)deployables.get(deployables.size() - 1); + assertEquals("contributionComposite", composite1.getName().toString()); + + Artifact artifact = null; + contribution = contributionService.getContribution(contributionId); + String id = artifactId.toString(); + for (Artifact a : contribution.getArtifacts()) { + if (id.equals(a.getURI())) { + artifact = a; + break; + } + } + Composite composite2 = (Composite)artifact.getModel(); + assertEquals("contributionComposite", composite2.getName().toString()); + } + +} diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution/src/test/resources/deployables/sample-calculator.jar b/tags/java/sca/1.5.1-RC4/itest/contribution/src/test/resources/deployables/sample-calculator.jar new file mode 100644 index 0000000000..0ca3a1b781 Binary files /dev/null and b/tags/java/sca/1.5.1-RC4/itest/contribution/src/test/resources/deployables/sample-calculator.jar differ diff --git a/tags/java/sca/1.5.1-RC4/itest/contribution/src/test/resources/repository/sample-calculator.jar b/tags/java/sca/1.5.1-RC4/itest/contribution/src/test/resources/repository/sample-calculator.jar new file mode 100644 index 0000000000..0ca3a1b781 Binary files /dev/null and b/tags/java/sca/1.5.1-RC4/itest/contribution/src/test/resources/repository/sample-calculator.jar differ diff --git a/tags/java/sca/1.5.1-RC4/itest/conversations-ws/pom.xml b/tags/java/sca/1.5.1-RC4/itest/conversations-ws/pom.xml new file mode 100644 index 0000000000..3e79902b89 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/conversations-ws/pom.xml @@ -0,0 +1,60 @@ + + + + 4.0.0 + + org.apache.tuscany.sca + tuscany-itest + 1.5.1 + ../pom.xml + + itest-conversations-ws + Apache Tuscany SCA iTest Conversations Over Web Services Binding + + + + + + org.apache.tuscany.sca + tuscany-node-impl + 1.5.1 + + + + org.apache.tuscany.sca + tuscany-binding-ws-axis2 + 1.5.1 + + + + org.apache.tuscany.sca + tuscany-host-tomcat + 1.5.1 + runtime + + + + org.apache.tuscany.sca + tuscany-implementation-java-runtime + 1.5.1 + runtime + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/conversations-ws/src/main/java/org/apache/tuscany/sca/itest/conversational/BusinessException.java b/tags/java/sca/1.5.1-RC4/itest/conversations-ws/src/main/java/org/apache/tuscany/sca/itest/conversational/BusinessException.java new file mode 100644 index 0000000000..9cd88620e3 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/conversations-ws/src/main/java/org/apache/tuscany/sca/itest/conversational/BusinessException.java @@ -0,0 +1,41 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.conversational; + +public class BusinessException extends Exception { + + private String message; + + public BusinessException() { + super(); + } + + public BusinessException(String message) { + super(message); + setMessage(message); + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } +} diff --git a/tags/java/sca/1.5.1-RC4/itest/conversations-ws/src/main/java/org/apache/tuscany/sca/itest/conversational/ConversationIdService.java b/tags/java/sca/1.5.1-RC4/itest/conversations-ws/src/main/java/org/apache/tuscany/sca/itest/conversational/ConversationIdService.java new file mode 100644 index 0000000000..53dadc3dc7 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/conversations-ws/src/main/java/org/apache/tuscany/sca/itest/conversational/ConversationIdService.java @@ -0,0 +1,29 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.conversational; + +import org.osoa.sca.annotations.Conversational; + +@Conversational +public interface ConversationIdService { + + String getCIDField(); + String getCIDSetter(); +} diff --git a/tags/java/sca/1.5.1-RC4/itest/conversations-ws/src/main/java/org/apache/tuscany/sca/itest/conversational/ConversationalCallback.java b/tags/java/sca/1.5.1-RC4/itest/conversations-ws/src/main/java/org/apache/tuscany/sca/itest/conversational/ConversationalCallback.java new file mode 100644 index 0000000000..cb7a032e85 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/conversations-ws/src/main/java/org/apache/tuscany/sca/itest/conversational/ConversationalCallback.java @@ -0,0 +1,50 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.conversational; + +import org.osoa.sca.annotations.Conversational; +import org.osoa.sca.annotations.EndsConversation; +import org.osoa.sca.annotations.Remotable; + + +/** + * The callback interface used when testing conversational callbacks + * + * @version $Rev: 537240 $ $Date: 2007-05-11 18:35:03 +0100 (Fri, 11 May 2007) $ + */ +@Remotable +@Conversational +public interface ConversationalCallback { + + // public void init(); + + // public void destroy(); + + public void initializeCount(int count); + + public void incrementCount(); + + public int retrieveCount(); + + public void businessException() throws BusinessException; + + @EndsConversation + public String endConversation(); + +} diff --git a/tags/java/sca/1.5.1-RC4/itest/conversations-ws/src/main/java/org/apache/tuscany/sca/itest/conversational/ConversationalClient.java b/tags/java/sca/1.5.1-RC4/itest/conversations-ws/src/main/java/org/apache/tuscany/sca/itest/conversational/ConversationalClient.java new file mode 100644 index 0000000000..2532346349 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/conversations-ws/src/main/java/org/apache/tuscany/sca/itest/conversational/ConversationalClient.java @@ -0,0 +1,50 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.conversational; + +import org.osoa.sca.annotations.Remotable; + +/** + * The client for the conversational itest. Is implemented by clients + * offering both stateless and stateful callbacks + * + * @version $Rev: 537240 $ $Date: 2007-05-11 18:35:03 +0100 (Fri, 11 May 2007) $ + */ + +@Remotable +public interface ConversationalClient { + + public int runConversationFromInjectedReference(); + public int runConversationFromInjectedReference2(); + public int runConversationFromServiceReference(); + public int runConversationWithUserDefinedConversationId(); + public String runConversationCheckUserDefinedConversationId(); + public int runConversationCheckingScope(); + public int runConversationWithCallback(); + public int runConversationHavingPassedReference(); + public String runConversationBusinessException(); + public String runConversationBusinessExceptionCallback(); + public int runConversationCallingEndedConversation(); + public int runConversationCallingEndedConversationCallback(); + public String runConversationCallingEndedConversationCheckConversationId(); + public String runConversationCallingEndedConversationCallbackCheckConversationId(); + public int runConversationAgeTimeout(); + public int runConversationIdleTimeout(); + public int runConversationPrincipleError(); +} diff --git a/tags/java/sca/1.5.1-RC4/itest/conversations-ws/src/main/java/org/apache/tuscany/sca/itest/conversational/ConversationalReferenceClient.java b/tags/java/sca/1.5.1-RC4/itest/conversations-ws/src/main/java/org/apache/tuscany/sca/itest/conversational/ConversationalReferenceClient.java new file mode 100644 index 0000000000..8f008fa711 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/conversations-ws/src/main/java/org/apache/tuscany/sca/itest/conversational/ConversationalReferenceClient.java @@ -0,0 +1,36 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.conversational; + +import org.osoa.sca.CallableReference; +import org.osoa.sca.annotations.Remotable; + +/** + * The client that calls into an existing conversation by accepting + * a reference to that conversation + * + * @version $Rev: 537240 $ $Date: 2007-05-11 18:35:03 +0100 (Fri, 11 May 2007) $ + */ + +@Remotable +public interface ConversationalReferenceClient { + + public void incrementCount(CallableReference conversationalService); + +} diff --git a/tags/java/sca/1.5.1-RC4/itest/conversations-ws/src/main/java/org/apache/tuscany/sca/itest/conversational/ConversationalService.java b/tags/java/sca/1.5.1-RC4/itest/conversations-ws/src/main/java/org/apache/tuscany/sca/itest/conversational/ConversationalService.java new file mode 100644 index 0000000000..1e36ce6917 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/conversations-ws/src/main/java/org/apache/tuscany/sca/itest/conversational/ConversationalService.java @@ -0,0 +1,58 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.conversational; + +import org.osoa.sca.annotations.Callback; +import org.osoa.sca.annotations.Conversational; +import org.osoa.sca.annotations.EndsConversation; +import org.osoa.sca.annotations.Remotable; + + +/** + * The service interface used when testing conversations + * + * @version $Rev: 537240 $ $Date: 2007-05-11 18:35:03 +0100 (Fri, 11 May 2007) $ + */ +@Remotable +@Conversational +@Callback(ConversationalCallback.class) +public interface ConversationalService { + + public void initializeCount(int count); + + public void incrementCount(); + + public int retrieveCount(); + + //public void businessException() throws BusinessException; + + public void initializeCountCallback(int count); + + public void incrementCountCallback(); + + public int retrieveCountCallback(); + + //public void businessExceptionCallback() throws BusinessException; + + @EndsConversation + public String endConversation(); + + public String endConversationCallback(); + +} diff --git a/tags/java/sca/1.5.1-RC4/itest/conversations-ws/src/main/java/org/apache/tuscany/sca/itest/conversational/ConversationalServiceNonConversationalCallback.java b/tags/java/sca/1.5.1-RC4/itest/conversations-ws/src/main/java/org/apache/tuscany/sca/itest/conversational/ConversationalServiceNonConversationalCallback.java new file mode 100644 index 0000000000..b4d3fe3d71 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/conversations-ws/src/main/java/org/apache/tuscany/sca/itest/conversational/ConversationalServiceNonConversationalCallback.java @@ -0,0 +1,59 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.conversational; + +import org.osoa.sca.annotations.Callback; +import org.osoa.sca.annotations.Conversational; +import org.osoa.sca.annotations.EndsConversation; +import org.osoa.sca.annotations.Remotable; + + +/** + * The service interface used when testing conversations + * + * @version $Rev: 537240 $ $Date: 2007-05-11 18:35:03 +0100 (Fri, 11 May 2007) $ + */ +@Remotable +@Conversational +@Callback(NonConversationalCallback.class) +public interface ConversationalServiceNonConversationalCallback { + + + public void initializeCount(int count); + + public void incrementCount(); + + public int retrieveCount(); + + public void businessException() throws BusinessException; + + public void initializeCountCallback(int count); + + public void incrementCountCallback(); + + public int retrieveCountCallback(); + + public void businessExceptionCallback() throws BusinessException; + + @EndsConversation + public String endConversation(); + + public String endConversationCallback(); + +} diff --git a/tags/java/sca/1.5.1-RC4/itest/conversations-ws/src/main/java/org/apache/tuscany/sca/itest/conversational/NonConversationalCallback.java b/tags/java/sca/1.5.1-RC4/itest/conversations-ws/src/main/java/org/apache/tuscany/sca/itest/conversational/NonConversationalCallback.java new file mode 100644 index 0000000000..ed3a01c10b --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/conversations-ws/src/main/java/org/apache/tuscany/sca/itest/conversational/NonConversationalCallback.java @@ -0,0 +1,42 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.conversational; + +import org.osoa.sca.annotations.Remotable; + + +/** + * The callback interface used when testing conversational callbacks + * + * @version $Rev: 537240 $ $Date: 2007-05-11 18:35:03 +0100 (Fri, 11 May 2007) $ + */ +@Remotable +public interface NonConversationalCallback { + + public void initializeCount(int count); + + public void incrementCount(); + + public int retrieveCount(); + + public void businessException() throws BusinessException; + + public String endConversation(); + +} diff --git a/tags/java/sca/1.5.1-RC4/itest/conversations-ws/src/main/java/org/apache/tuscany/sca/itest/conversational/impl/ConversationAgeComponentImpl.java b/tags/java/sca/1.5.1-RC4/itest/conversations-ws/src/main/java/org/apache/tuscany/sca/itest/conversational/impl/ConversationAgeComponentImpl.java new file mode 100644 index 0000000000..1603916cca --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/conversations-ws/src/main/java/org/apache/tuscany/sca/itest/conversational/impl/ConversationAgeComponentImpl.java @@ -0,0 +1,76 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.conversational.impl; + +import org.apache.tuscany.sca.itest.conversational.BusinessException; +import org.apache.tuscany.sca.itest.conversational.ConversationalService; +import org.osoa.sca.annotations.ConversationAttributes; +import org.osoa.sca.annotations.Scope; +import org.osoa.sca.annotations.Service; + +@Service(ConversationalService.class) +@Scope("CONVERSATION") +@ConversationAttributes(maxAge="1 seconds") +public class ConversationAgeComponentImpl implements ConversationalService { + + private int count; + + public void businessException() throws BusinessException { + } + + public void businessExceptionCallback() throws BusinessException { + } + + public void destroy() { + } + + public String endConversation() { + return null; + } + + public String endConversationCallback() { + return null; + } + + public void incrementCount() { + } + + public void incrementCountCallback() { + } + + public void init() { + } + + public void initializeCount(int count) { + this.count = count; + } + + public void initializeCountCallback(int count) { + } + + public int retrieveCount() { + return count; + } + + public int retrieveCountCallback() { + return 0; + } + +} diff --git a/tags/java/sca/1.5.1-RC4/itest/conversations-ws/src/main/java/org/apache/tuscany/sca/itest/conversational/impl/ConversationIdComponentImpl.java b/tags/java/sca/1.5.1-RC4/itest/conversations-ws/src/main/java/org/apache/tuscany/sca/itest/conversational/impl/ConversationIdComponentImpl.java new file mode 100644 index 0000000000..accc1eee27 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/conversations-ws/src/main/java/org/apache/tuscany/sca/itest/conversational/impl/ConversationIdComponentImpl.java @@ -0,0 +1,48 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.conversational.impl; + +import org.apache.tuscany.sca.itest.conversational.ConversationIdService; +import org.osoa.sca.annotations.ConversationID; +import org.osoa.sca.annotations.Scope; +import org.osoa.sca.annotations.Service; + +@Service(ConversationIdService.class) +@Scope("CONVERSATION") +public class ConversationIdComponentImpl implements ConversationIdService { + + @ConversationID + public String cid; + + private String setterCid; + + public String getCIDField() { + return cid; + } + public String getCIDSetter() { + return setterCid; + } + + + @ConversationID + public void setCID(String cid) { + this.setterCid = cid; + } +} diff --git a/tags/java/sca/1.5.1-RC4/itest/conversations-ws/src/main/java/org/apache/tuscany/sca/itest/conversational/impl/ConversationMaxIdleComponentImpl.java b/tags/java/sca/1.5.1-RC4/itest/conversations-ws/src/main/java/org/apache/tuscany/sca/itest/conversational/impl/ConversationMaxIdleComponentImpl.java new file mode 100644 index 0000000000..90f6de86ac --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/conversations-ws/src/main/java/org/apache/tuscany/sca/itest/conversational/impl/ConversationMaxIdleComponentImpl.java @@ -0,0 +1,76 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.conversational.impl; + +import org.apache.tuscany.sca.itest.conversational.BusinessException; +import org.apache.tuscany.sca.itest.conversational.ConversationalService; +import org.osoa.sca.annotations.ConversationAttributes; +import org.osoa.sca.annotations.Scope; +import org.osoa.sca.annotations.Service; + +@Service(ConversationalService.class) +@Scope("CONVERSATION") +@ConversationAttributes(maxIdleTime="1 seconds") +public class ConversationMaxIdleComponentImpl implements ConversationalService { + + private int count; + + public void businessException() throws BusinessException { + } + + public void businessExceptionCallback() throws BusinessException { + } + + public void destroy() { + } + + public String endConversation() { + return null; + } + + public String endConversationCallback() { + return null; + } + + public void incrementCount() { + } + + public void incrementCountCallback() { + } + + public void init() { + } + + public void initializeCount(int count) { + this.count = count; + } + + public void initializeCountCallback(int count) { + } + + public int retrieveCount() { + return count; + } + + public int retrieveCountCallback() { + return 0; + } + +} diff --git a/tags/java/sca/1.5.1-RC4/itest/conversations-ws/src/main/java/org/apache/tuscany/sca/itest/conversational/impl/ConversationalClientStatefulImpl.java b/tags/java/sca/1.5.1-RC4/itest/conversations-ws/src/main/java/org/apache/tuscany/sca/itest/conversational/impl/ConversationalClientStatefulImpl.java new file mode 100644 index 0000000000..3f7a90b3dc --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/conversations-ws/src/main/java/org/apache/tuscany/sca/itest/conversational/impl/ConversationalClientStatefulImpl.java @@ -0,0 +1,322 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.conversational.impl; + +import org.apache.tuscany.sca.itest.conversational.BusinessException; +import org.apache.tuscany.sca.itest.conversational.ConversationalCallback; +import org.apache.tuscany.sca.itest.conversational.ConversationalClient; +import org.apache.tuscany.sca.itest.conversational.ConversationalReferenceClient; +import org.apache.tuscany.sca.itest.conversational.ConversationalService; +import org.osoa.sca.ComponentContext; +import org.osoa.sca.ServiceReference; +import org.osoa.sca.annotations.Context; +import org.osoa.sca.annotations.ConversationAttributes; +import org.osoa.sca.annotations.Destroy; +import org.osoa.sca.annotations.Init; +import org.osoa.sca.annotations.Reference; +import org.osoa.sca.annotations.Scope; +import org.osoa.sca.annotations.Service; + +/** + * The client for the conversational itest which presents a stateful + * callback interface + * + * @version $Rev: 537240 $ $Date: 2007-05-11 18:35:03 +0100 (Fri, 11 May 2007) $ + */ + +@Service(interfaces={ConversationalClient.class}) +@Scope("CONVERSATION") +@ConversationAttributes(maxAge="10 minutes", + maxIdleTime="5 minutes", + singlePrincipal=false) +public class ConversationalClientStatefulImpl implements ConversationalClient, ConversationalCallback { + + @Context + protected ComponentContext componentContext; + + @Reference + protected ConversationalService conversationalService; + + @Reference + protected ConversationalService conversationalService2; + + @Reference + protected ConversationalReferenceClient conversationalReferenceClient; + + private int clientCount = 0; + private int callbackCount = 0; + + + // a static member variable that records the number of times this service is called + public static StringBuffer calls = new StringBuffer(); + + // From ConversationalClient + public int runConversationFromInjectedReference(){ + calls.append("runConversationFromInjectedReference,"); + conversationalService.initializeCount(1); + conversationalService.incrementCount(); + clientCount = conversationalService.retrieveCount(); + conversationalService.endConversation(); + + return clientCount; + } + public int runConversationFromInjectedReference2(){ + calls.append("runConversationFromInjectedReference2,"); + + conversationalService2.initializeCount(1); + conversationalService2.incrementCount(); + + // stick in a call to the first reference to + // make sure the two references don't clash + conversationalService.initializeCount(1); + + clientCount = conversationalService2.retrieveCount(); + conversationalService2.endConversation(); + + // end the conversation through the first reference + conversationalService.endConversation(); + + return clientCount; + } + public int runConversationFromServiceReference(){ + calls.append("runConversationFromServiceReference,"); + ServiceReference serviceReference = componentContext.getServiceReference(ConversationalService.class, + "conversationalService"); + ConversationalService callableReference = serviceReference.getService(); + + callableReference.initializeCount(1); + callableReference.incrementCount(); + clientCount = callableReference.retrieveCount(); + callableReference.endConversation(); + + // serviceReference.getConversation().end(); + + return clientCount; + } + public int runConversationWithUserDefinedConversationId(){ + calls.append("runConversationWithUserDefinedConversationId,"); + ServiceReference serviceReference = componentContext.getServiceReference(ConversationalService.class, + "conversationalService"); + serviceReference.setConversationID("MyConversation1"); + + ConversationalService callableReference = serviceReference.getService(); + + callableReference.initializeCount(1); + callableReference.incrementCount(); + clientCount = callableReference.retrieveCount(); + callableReference.endConversation(); + + // serviceReference.getConversation().end(); + + return clientCount; + } + public String runConversationCheckUserDefinedConversationId(){ + calls.append("runConversationCheckUserDefinedConversationId,"); + ServiceReference serviceReference = componentContext.getServiceReference(ConversationalService.class, + "conversationalService"); + serviceReference.setConversationID("MyConversation2"); + + ConversationalService callableReference = serviceReference.getService(); + + callableReference.initializeCount(1); + callableReference.incrementCount(); + clientCount = callableReference.retrieveCount(); + + String clientConversationId = serviceReference.getConversationID().toString(); + String serverConversationId = callableReference.endConversation(); + + if (clientConversationId.equals("MyConversation2") && + serverConversationId.equals("MyConversation2") ) { + return clientConversationId; + } else { + return "client = " + clientConversationId + + "server = " + serverConversationId; + } + + } + public int runConversationCheckingScope(){ + calls.append("runConversationCheckingScope,"); + // run a conversation + return runConversationFromInjectedReference(); + + // test will then use a static method to find out how many times + // init/destroy were called + } + public int runConversationWithCallback(){ + calls.append("runConversationWithCallback,"); + callbackCount = 2; + conversationalService.initializeCountCallback(1); + conversationalService.incrementCountCallback(); + clientCount = conversationalService.retrieveCountCallback(); + conversationalService.endConversationCallback(); + + return clientCount; + } + public int runConversationHavingPassedReference(){ + calls.append("runConversationHavingPassedReference,"); + ServiceReference serviceReference = componentContext.getServiceReference(ConversationalService.class, + "conversationalService"); + ConversationalService callableReference = serviceReference.getService(); + + callableReference.initializeCount(1); + callableReference.incrementCount(); + conversationalReferenceClient.incrementCount(serviceReference); + clientCount = callableReference.retrieveCount(); + callableReference.endConversation(); + + serviceReference.getConversation().end(); + + return clientCount; + } + public String runConversationBusinessException(){ + calls.append("runConversationbusinessException,"); + try { + conversationalService.initializeCount(1); +// conversationalService.businessException(); + clientCount = conversationalService.retrieveCount(); + conversationalService.endConversation(); + } catch(Exception ex) { + return ex.getMessage(); + } + + return "No Exception Returned"; + } + + public String runConversationBusinessExceptionCallback(){ + calls.append("runConversationbusinessExceptionCallback,"); + try { + conversationalService.initializeCountCallback(1); +// conversationalService.businessExceptionCallback(); + clientCount = conversationalService.retrieveCountCallback(); + conversationalService.endConversationCallback(); + } catch(Exception ex) { + return ex.getMessage(); + } + + return "No Exception Returned"; + } + + public int runConversationCallingEndedConversation(){ + calls.append("runConversationCallingEndedConversation,"); + conversationalService.initializeCount(1); + conversationalService.endConversation(); + return conversationalService.retrieveCount(); + } + + public int runConversationCallingEndedConversationCallback(){ + calls.append("runConversationCallingEndedConversationCallback,"); + conversationalService.initializeCountCallback(1); + conversationalService.endConversationCallback(); + return conversationalService.retrieveCountCallback(); + } + + public String runConversationCallingEndedConversationCheckConversationId(){ + calls.append("runConversationCallingEndedConversationCheckConversationId,"); + ServiceReference serviceReference = componentContext.getServiceReference(ConversationalService.class, + "conversationalService"); + serviceReference.setConversationID("MyConversation3"); + + ConversationalService callableReference = serviceReference.getService(); + + callableReference.initializeCount(1); + callableReference.incrementCount(); + clientCount = callableReference.retrieveCount(); + callableReference.endConversation(); + + if (serviceReference.getConversation() ==null ) { + return null; + } else { + return serviceReference.getConversation().getConversationID().toString(); + } + } + + public String runConversationCallingEndedConversationCallbackCheckConversationId(){ + calls.append("runConversationCallingEndedConversationCallbackCheckConversationId,"); + ServiceReference serviceReference = componentContext.getServiceReference(ConversationalService.class, + "conversationalService"); + serviceReference.setConversationID("MyConversation3"); + + ConversationalService callableReference = serviceReference.getService(); + + callableReference.initializeCount(1); + callableReference.incrementCount(); + clientCount = callableReference.retrieveCount(); + callableReference.endConversationCallback(); + + if (serviceReference.getConversation() ==null ) { + return null; + } else { + return serviceReference.getConversation().getConversationID().toString(); + } + } + + public int runConversationAgeTimeout(){ + calls.append("runConversationAgeTimeout,"); + // done in other testing + return clientCount; + } + public int runConversationIdleTimeout(){ + calls.append("runConversationIdleTimeout,"); + // done in other testing + return clientCount; + } + public int runConversationPrincipleError(){ + calls.append("runConversationPrincipleError,"); + // TODO - when policy framework is done + return clientCount; + } + + + // From ConversationalCallback + @Init + public void init(){ + calls.append("init,"); + } + + @Destroy + public void destroy(){ + calls.append("destroy,"); + } + + public void initializeCount(int count){ + calls.append("initializeCount,"); + callbackCount += count; + } + + public void incrementCount(){ + calls.append("incrementCount,"); + callbackCount++; + } + + public int retrieveCount(){ + calls.append("retrieveCount,"); + return callbackCount; + } + + public void businessException() throws BusinessException { + throw new BusinessException("Business Exception"); + } + + public String endConversation(){ + calls.append("endConversation,"); + callbackCount = 0; + return null; + } + +} diff --git a/tags/java/sca/1.5.1-RC4/itest/conversations-ws/src/main/java/org/apache/tuscany/sca/itest/conversational/impl/ConversationalClientStatefulNonConversationalCallbackImpl.java b/tags/java/sca/1.5.1-RC4/itest/conversations-ws/src/main/java/org/apache/tuscany/sca/itest/conversational/impl/ConversationalClientStatefulNonConversationalCallbackImpl.java new file mode 100644 index 0000000000..ab91498132 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/conversations-ws/src/main/java/org/apache/tuscany/sca/itest/conversational/impl/ConversationalClientStatefulNonConversationalCallbackImpl.java @@ -0,0 +1,311 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.conversational.impl; + +import org.apache.tuscany.sca.itest.conversational.BusinessException; +import org.apache.tuscany.sca.itest.conversational.ConversationalClient; +import org.apache.tuscany.sca.itest.conversational.ConversationalReferenceClient; +import org.apache.tuscany.sca.itest.conversational.ConversationalService; +import org.apache.tuscany.sca.itest.conversational.NonConversationalCallback; +import org.osoa.sca.ComponentContext; +import org.osoa.sca.ServiceReference; +import org.osoa.sca.annotations.Context; +import org.osoa.sca.annotations.ConversationAttributes; +import org.osoa.sca.annotations.Destroy; +import org.osoa.sca.annotations.Init; +import org.osoa.sca.annotations.Reference; +import org.osoa.sca.annotations.Scope; +import org.osoa.sca.annotations.Service; + +/** + * The client for the conversational itest which presents a stateful + * callback interface + * + * @version $Rev: 537240 $ $Date: 2007-05-11 18:35:03 +0100 (Fri, 11 May 2007) $ + */ + +@Service(interfaces={ConversationalClient.class}) +@Scope("CONVERSATION") +@ConversationAttributes(maxAge="10 minutes", + maxIdleTime="5 minutes", + singlePrincipal=false) +public class ConversationalClientStatefulNonConversationalCallbackImpl implements ConversationalClient, NonConversationalCallback { + + @Context + protected ComponentContext componentContext; + + @Reference + protected ConversationalService conversationalService; + + @Reference + protected ConversationalService conversationalService2; + + @Reference + protected ConversationalReferenceClient conversationalReferenceClient; + + private int clientCount = 0; + private int callbackCount = 0; + + + // a static member variable that records the number of times this service is called + public static StringBuffer calls = new StringBuffer(); + + // From ConversationalClient + public int runConversationFromInjectedReference(){ + calls.append("runConversationFromInjectedReference,"); + conversationalService.initializeCount(1); + conversationalService.incrementCount(); + clientCount = conversationalService.retrieveCount(); + conversationalService.endConversation(); + + return clientCount; + } + public int runConversationFromInjectedReference2(){ + calls.append("runConversationFromInjectedReference2,"); + + conversationalService2.initializeCount(1); + conversationalService2.incrementCount(); + + // stick in a call to the first reference to + // make sure the two references don't clash + conversationalService.initializeCount(1); + + clientCount = conversationalService2.retrieveCount(); + conversationalService2.endConversation(); + + // end the conversation through the first reference + conversationalService.endConversation(); + + return clientCount; + } + public int runConversationFromServiceReference(){ + calls.append("runConversationFromServiceReference,"); + ServiceReference serviceReference = componentContext.getServiceReference(ConversationalService.class, + "conversationalService"); + ConversationalService callableReference = serviceReference.getService(); + + callableReference.initializeCount(1); + callableReference.incrementCount(); + clientCount = callableReference.retrieveCount(); + callableReference.endConversation(); + + // serviceReference.getConversation().end(); + + return clientCount; + } + public int runConversationWithUserDefinedConversationId(){ + calls.append("runConversationWithUserDefinedConversationId,"); + ServiceReference serviceReference = componentContext.getServiceReference(ConversationalService.class, + "conversationalService"); + serviceReference.setConversationID("MyConversation1"); + + ConversationalService callableReference = serviceReference.getService(); + + callableReference.initializeCount(1); + callableReference.incrementCount(); + clientCount = callableReference.retrieveCount(); + callableReference.endConversation(); + + // serviceReference.getConversation().end(); + + return clientCount; + } + public String runConversationCheckUserDefinedConversationId(){ + calls.append("runConversationCheckUserDefinedConversationId,"); + ServiceReference serviceReference = componentContext.getServiceReference(ConversationalService.class, + "conversationalService"); + serviceReference.setConversationID("MyConversation2"); + + ConversationalService callableReference = serviceReference.getService(); + + callableReference.initializeCount(1); + callableReference.incrementCount(); + clientCount = callableReference.retrieveCount(); + return callableReference.endConversation(); + + } + public int runConversationCheckingScope(){ + calls.append("runConversationCheckingScope,"); + // run a conversation + return runConversationFromInjectedReference(); + + // test will then use a static method to find out how many times + // init/destroy were called + } + public int runConversationWithCallback(){ + calls.append("runConversationWithCallback,"); + callbackCount = 2; + conversationalService.initializeCountCallback(1); + conversationalService.incrementCountCallback(); + clientCount = conversationalService.retrieveCountCallback(); + conversationalService.endConversationCallback(); + + return clientCount; + } + public int runConversationHavingPassedReference(){ + calls.append("runConversationHavingPassedReference,"); + ServiceReference serviceReference = componentContext.getServiceReference(ConversationalService.class, + "conversationalService"); + ConversationalService callableReference = serviceReference.getService(); + + callableReference.initializeCount(1); + callableReference.incrementCount(); + conversationalReferenceClient.incrementCount(serviceReference); + clientCount = callableReference.retrieveCount(); + callableReference.endConversation(); + + // serviceReference.getConversation().end(); + + return clientCount; + } + public String runConversationBusinessException(){ + calls.append("runConversationbusinessException,"); + try { + conversationalService.initializeCount(1); +// conversationalService.businessException(); + clientCount = conversationalService.retrieveCount(); + conversationalService.endConversation(); + } catch(Exception ex) { + return ex.getMessage(); + } + + return "No Exception Returned"; + } + + public String runConversationBusinessExceptionCallback(){ + calls.append("runConversationbusinessExceptionCallback,"); + try { + conversationalService.initializeCountCallback(1); +// conversationalService.businessExceptionCallback(); + clientCount = conversationalService.retrieveCountCallback(); + conversationalService.endConversationCallback(); + } catch(Exception ex) { + return ex.getMessage(); + } + + return "No Exception Returned"; + } + + public String runConversationCallingEndedConversationCheckConversationId(){ + calls.append("runConversationCallingEndedConversationCheckConversationId,"); + ServiceReference serviceReference = componentContext.getServiceReference(ConversationalService.class, + "conversationalService"); + serviceReference.setConversationID("MyConversation3"); + + ConversationalService callableReference = serviceReference.getService(); + + callableReference.initializeCount(1); + callableReference.incrementCount(); + clientCount = callableReference.retrieveCount(); + callableReference.endConversation(); + + if (serviceReference.getConversation() ==null ) { + return null; + } else { + return serviceReference.getConversation().getConversationID().toString(); + } + } + + public String runConversationCallingEndedConversationCallbackCheckConversationId(){ + calls.append("runConversationCallingEndedConversationCallbackCheckConversationId,"); + ServiceReference serviceReference = componentContext.getServiceReference(ConversationalService.class, + "conversationalService"); + serviceReference.setConversationID("MyConversation3"); + + ConversationalService callableReference = serviceReference.getService(); + + callableReference.initializeCount(1); + callableReference.incrementCount(); + clientCount = callableReference.retrieveCount(); + callableReference.endConversationCallback(); + + if (serviceReference.getConversation() ==null ) { + return null; + } else { + return serviceReference.getConversation().getConversationID().toString(); + } + } + + public int runConversationCallingEndedConversation(){ + calls.append("runConversationCallingEndedConversation,"); + conversationalService.initializeCount(1); + conversationalService.endConversation(); + return conversationalService.retrieveCount(); + } + + public int runConversationCallingEndedConversationCallback(){ + calls.append("runConversationCallingEndedConversationCallback,"); + conversationalService.initializeCountCallback(1); + conversationalService.endConversationCallback(); + return conversationalService.retrieveCountCallback(); + } + + public int runConversationAgeTimeout(){ + calls.append("runConversationAgeTimeout,"); + // done in other testing + return clientCount; + } + public int runConversationIdleTimeout(){ + calls.append("runConversationIdleTimeout,"); + // done in other testing + return clientCount; + } + public int runConversationPrincipleError(){ + calls.append("runConversationPrincipleError,"); + // TODO - when policy framework is done + return clientCount; + } + + + // From ConversationalCallback + @Init + public void init(){ + calls.append("init,"); + } + + @Destroy + public void destroy(){ + calls.append("destroy,"); + } + + public void initializeCount(int count){ + calls.append("initializeCount,"); + callbackCount += count; + } + + public void incrementCount(){ + calls.append("incrementCount,"); + callbackCount++; + } + + public int retrieveCount(){ + calls.append("retrieveCount,"); + return callbackCount; + } + + public void businessException() throws BusinessException { + throw new BusinessException("Business Exception"); + } + + public String endConversation(){ + calls.append("endConversation,"); + return null; + } + +} diff --git a/tags/java/sca/1.5.1-RC4/itest/conversations-ws/src/main/java/org/apache/tuscany/sca/itest/conversational/impl/ConversationalClientStatelessImpl.java b/tags/java/sca/1.5.1-RC4/itest/conversations-ws/src/main/java/org/apache/tuscany/sca/itest/conversational/impl/ConversationalClientStatelessImpl.java new file mode 100644 index 0000000000..e4f83656de --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/conversations-ws/src/main/java/org/apache/tuscany/sca/itest/conversational/impl/ConversationalClientStatelessImpl.java @@ -0,0 +1,318 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.conversational.impl; + +import org.apache.tuscany.sca.itest.conversational.BusinessException; +import org.apache.tuscany.sca.itest.conversational.ConversationalCallback; +import org.apache.tuscany.sca.itest.conversational.ConversationalClient; +import org.apache.tuscany.sca.itest.conversational.ConversationalReferenceClient; +import org.apache.tuscany.sca.itest.conversational.ConversationalService; +import org.osoa.sca.ComponentContext; +import org.osoa.sca.ServiceReference; +import org.osoa.sca.annotations.Context; +import org.osoa.sca.annotations.Destroy; +import org.osoa.sca.annotations.Init; +import org.osoa.sca.annotations.Reference; +import org.osoa.sca.annotations.Service; + +/** + * The client for the conversational itest which presents a stateful + * callback interface + * + * @version $Rev: 537240 $ $Date: 2007-05-11 18:35:03 +0100 (Fri, 11 May 2007) $ + */ + +@Service(interfaces={ConversationalClient.class}) +public class ConversationalClientStatelessImpl implements ConversationalClient, ConversationalCallback { + + @Context + protected ComponentContext componentContext; + + @Reference + protected ConversationalService conversationalService; + + @Reference + protected ConversationalService conversationalService2; + + @Reference + protected ConversationalReferenceClient conversationalReferenceClient; + + private int clientCount = 0; + private int callbackCount = 0; + + // a static member variable that records the number of times this service is called + public static StringBuffer calls = new StringBuffer(); + + // From ConversationalClient + public int runConversationFromInjectedReference(){ + calls.append("runConversationFromInjectedReference,"); + conversationalService.initializeCount(1); + conversationalService.incrementCount(); + clientCount = conversationalService.retrieveCount(); + conversationalService.endConversation(); + + return clientCount; + } + public int runConversationFromInjectedReference2(){ + calls.append("runConversationFromInjectedReference2,"); + + // now test the second reference + conversationalService2.initializeCount(1); + conversationalService2.incrementCount(); + + // stick in a call to the first reference to + // make sure the two references don't clash + conversationalService.initializeCount(1); + + clientCount = conversationalService2.retrieveCount(); + conversationalService2.endConversation(); + + // end the conversation through the first reference + conversationalService.endConversation(); + + return clientCount; + } + public int runConversationFromServiceReference(){ + calls.append("runConversationFromServiceReference,"); + ServiceReference serviceReference = componentContext.getServiceReference(ConversationalService.class, + "conversationalService"); + ConversationalService callableReference = serviceReference.getService(); + + callableReference.initializeCount(1); + callableReference.incrementCount(); + clientCount = callableReference.retrieveCount(); + callableReference.endConversation(); + + // serviceReference.getConversation().end(); + + return clientCount; + } + public int runConversationWithUserDefinedConversationId(){ + calls.append("runConversationWithUserDefinedConversationId,"); + ServiceReference serviceReference = componentContext.getServiceReference(ConversationalService.class, + "conversationalService"); + serviceReference.setConversationID("MyConversation1"); + + ConversationalService callableReference = serviceReference.getService(); + + callableReference.initializeCount(1); + callableReference.incrementCount(); + clientCount = callableReference.retrieveCount(); + callableReference.endConversation(); + + // serviceReference.getConversation().end(); + + return clientCount; + } + public String runConversationCheckUserDefinedConversationId(){ + calls.append("runConversationCheckUserDefinedConversationId,"); + ServiceReference serviceReference = componentContext.getServiceReference(ConversationalService.class, + "conversationalService"); + serviceReference.setConversationID("MyConversation2"); + + ConversationalService callableReference = serviceReference.getService(); + + callableReference.initializeCount(1); + callableReference.incrementCount(); + clientCount = callableReference.retrieveCount(); + + String clientConversationId = serviceReference.getConversationID().toString(); + String serverConfersationId = callableReference.endConversation(); + + if (clientConversationId.equals("MyConversation2") && + serverConfersationId.equals("MyConversation2") ) { + return clientConversationId; + } else { + return "client = " + clientConversationId + + "server = " + serverConfersationId; + } + } + public int runConversationCheckingScope(){ + calls.append("runConversationCheckingScope,"); + // run a conversation + return runConversationFromInjectedReference(); + + // test will then use a static method to find out how many times + // init/destroy were called + } + public int runConversationWithCallback(){ + calls.append("runConversationWithCallback,"); + conversationalService.initializeCountCallback(1); + conversationalService.incrementCountCallback(); + clientCount = conversationalService.retrieveCountCallback(); + conversationalService.endConversationCallback(); + + return clientCount; + } + + public int runConversationHavingPassedReference(){ + calls.append("runConversationHavingPassedReference,"); + ServiceReference serviceReference = componentContext.getServiceReference(ConversationalService.class, + "conversationalService"); + ConversationalService callableReference = serviceReference.getService(); + + callableReference.initializeCount(1); + callableReference.incrementCount(); + conversationalReferenceClient.incrementCount(serviceReference); + clientCount = callableReference.retrieveCount(); + callableReference.endConversation(); + + serviceReference.getConversation().end(); + + return clientCount; + } + + public String runConversationBusinessException(){ + calls.append("runConversationbusinessException,"); + try { + conversationalService.initializeCount(1); +// conversationalService.businessException(); + clientCount = conversationalService.retrieveCount(); + conversationalService.endConversation(); + } catch(Exception ex) { + return ex.getMessage(); + } + + return "No Exception Returned"; + } + + public String runConversationBusinessExceptionCallback(){ + calls.append("runConversationbusinessExceptionCallback,"); + try { + conversationalService.initializeCountCallback(1); +// conversationalService.businessExceptionCallback(); + clientCount = conversationalService.retrieveCountCallback(); + conversationalService.endConversationCallback(); + } catch(Exception ex) { + return ex.getMessage(); + } + + return "No Exception Returned"; + } + + public int runConversationCallingEndedConversation(){ + calls.append("runConversationCallingEndedConversation,"); + conversationalService.initializeCount(1); + conversationalService.endConversation(); + return conversationalService.retrieveCount(); + } + + public int runConversationCallingEndedConversationCallback(){ + calls.append("runConversationCallingEndedConversationCallback,"); + conversationalService.initializeCountCallback(1); + conversationalService.endConversationCallback(); + return conversationalService.retrieveCountCallback(); + } + + public String runConversationCallingEndedConversationCheckConversationId(){ + calls.append("runConversationCallingEndedConversationCheckConversationId,"); + ServiceReference serviceReference = componentContext.getServiceReference(ConversationalService.class, + "conversationalService"); + serviceReference.setConversationID("MyConversation3"); + + ConversationalService callableReference = serviceReference.getService(); + + callableReference.initializeCount(1); + callableReference.incrementCount(); + clientCount = callableReference.retrieveCount(); + callableReference.endConversation(); + + if (serviceReference.getConversation() ==null ) { + return null; + } else { + return serviceReference.getConversation().getConversationID().toString(); + } + } + + public String runConversationCallingEndedConversationCallbackCheckConversationId(){ + calls.append("runConversationCallingEndedConversationCallbackCheckConversationId,"); + ServiceReference serviceReference = componentContext.getServiceReference(ConversationalService.class, + "conversationalService"); + serviceReference.setConversationID("MyConversation3"); + + ConversationalService callableReference = serviceReference.getService(); + + callableReference.initializeCount(1); + callableReference.incrementCount(); + clientCount = callableReference.retrieveCount(); + callableReference.endConversationCallback(); + + if (serviceReference.getConversation() ==null ) { + return null; + } else { + return serviceReference.getConversation().getConversationID().toString(); + } + } + + public int runConversationAgeTimeout(){ + calls.append("runConversationAgeTimeout,"); + // done in other testing + return clientCount; + } + public int runConversationIdleTimeout(){ + calls.append("runConversationIdleTimeout,"); + // done in other testing + return clientCount; + } + public int runConversationPrincipleError(){ + calls.append("runConversationPrincipleError,"); + // TODO - when policy framework is done + return clientCount; + } + + + // From ConversationalCallback + @Init + public void init(){ + calls.append("init,"); + + } + + @Destroy + public void destroy(){ + calls.append("destroy,"); + + } + + public void initializeCount(int count){ + calls.append("initializeCount,"); + callbackCount = 0; + } + + public void incrementCount(){ + calls.append("incrementCount,"); + callbackCount++; + } + + public int retrieveCount(){ + calls.append("retrieveCount,"); + return callbackCount; + } + + public void businessException() throws BusinessException { + throw new BusinessException("Business Exception"); + } + + public String endConversation(){ + calls.append("endConversation,"); + callbackCount = 0; + return null; + } + +} diff --git a/tags/java/sca/1.5.1-RC4/itest/conversations-ws/src/main/java/org/apache/tuscany/sca/itest/conversational/impl/ConversationalReferenceClientImpl.java b/tags/java/sca/1.5.1-RC4/itest/conversations-ws/src/main/java/org/apache/tuscany/sca/itest/conversational/impl/ConversationalReferenceClientImpl.java new file mode 100644 index 0000000000..8fe7c5b6ba --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/conversations-ws/src/main/java/org/apache/tuscany/sca/itest/conversational/impl/ConversationalReferenceClientImpl.java @@ -0,0 +1,43 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.conversational.impl; + +import org.apache.tuscany.sca.itest.conversational.ConversationalReferenceClient; +import org.apache.tuscany.sca.itest.conversational.ConversationalService; +import org.osoa.sca.CallableReference; +import org.osoa.sca.annotations.Service; + +/** + * A client component that accepts a reference to an ongoing conversation + * and takes part in that conversation + * + * @version $Rev: 537240 $ $Date: 2007-05-11 18:35:03 +0100 (Fri, 11 May 2007) $ + */ + +@Service(interfaces={ConversationalReferenceClient.class}) +public class ConversationalReferenceClientImpl implements ConversationalReferenceClient{ + + public void incrementCount(CallableReference conversationalService){ + ConversationalService callableReference = conversationalService.getService(); + + callableReference.incrementCount(); + } + + +} diff --git a/tags/java/sca/1.5.1-RC4/itest/conversations-ws/src/main/java/org/apache/tuscany/sca/itest/conversational/impl/ConversationalServiceRequestImpl.java b/tags/java/sca/1.5.1-RC4/itest/conversations-ws/src/main/java/org/apache/tuscany/sca/itest/conversational/impl/ConversationalServiceRequestImpl.java new file mode 100644 index 0000000000..9f4857f703 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/conversations-ws/src/main/java/org/apache/tuscany/sca/itest/conversational/impl/ConversationalServiceRequestImpl.java @@ -0,0 +1,124 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.conversational.impl; + +import java.util.HashMap; + +import org.apache.tuscany.sca.itest.conversational.BusinessException; +import org.apache.tuscany.sca.itest.conversational.ConversationalCallback; +import org.apache.tuscany.sca.itest.conversational.ConversationalService; +import org.osoa.sca.annotations.Callback; +import org.osoa.sca.annotations.ConversationID; +import org.osoa.sca.annotations.Destroy; +import org.osoa.sca.annotations.Init; +import org.osoa.sca.annotations.Scope; +import org.osoa.sca.annotations.Service; + + +/** + * The service used when testing stateful conversations + * + * @version $Rev: 537240 $ $Date: 2007-05-11 18:35:03 +0100 (Fri, 11 May 2007) $ + */ +@Service(ConversationalService.class) +@Scope("REQUEST") +public class ConversationalServiceRequestImpl implements ConversationalService { + + @ConversationID + protected String conversationId; + + @Callback + protected ConversationalCallback conversationalCallback; + + // static area in which to hold conversational data + private static HashMap conversationalState = new HashMap(); + + // a static member variable that records the number of times this service is called + public static StringBuffer calls = new StringBuffer(); + + @Init + public void init(){ + calls.append("init,"); + } + + @Destroy + public void destroy(){ + calls.append("destroy,"); + } + + public void initializeCount(int count){ + calls.append("initializeCount,"); + Integer conversationalCount = new Integer(count); + conversationalState.put(conversationId, conversationalCount); + } + + public void incrementCount(){ + calls.append("incrementCount,"); + Integer conversationalCount = conversationalState.get(conversationId); + conversationalCount++; + conversationalState.put(conversationId, conversationalCount); + } + + public int retrieveCount(){ + calls.append("retrieveCount,"); + Integer count = conversationalState.get(conversationId); + if (count != null){ + return count.intValue(); + } else { + return -999; + } + } + + public void businessException() throws BusinessException { + throw new BusinessException("Business Exception"); + } + + public void initializeCountCallback(int count){ + calls.append("initializeCountCallback,"); + initializeCount(count); + conversationalCallback.initializeCount(count); + } + + public void incrementCountCallback(){ + calls.append("incrementCountCallback,"); + incrementCount(); + conversationalCallback.incrementCount(); + } + + public int retrieveCountCallback(){ + calls.append("retrieveCountCallback,"); + return conversationalCallback.retrieveCount(); + } + + public void businessExceptionCallback() throws BusinessException { + calls.append("businessExceptionCallback,"); + conversationalCallback.businessException(); + } + + public String endConversation(){ + calls.append("endConversation,"); + conversationalState.remove(conversationId); + return conversationId; + } + + public String endConversationCallback(){ + calls.append("endConversationCallback,"); + return conversationalCallback.endConversation(); + } +} diff --git a/tags/java/sca/1.5.1-RC4/itest/conversations-ws/src/main/java/org/apache/tuscany/sca/itest/conversational/impl/ConversationalServiceStatefulImpl.java b/tags/java/sca/1.5.1-RC4/itest/conversations-ws/src/main/java/org/apache/tuscany/sca/itest/conversational/impl/ConversationalServiceStatefulImpl.java new file mode 100644 index 0000000000..4b06251414 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/conversations-ws/src/main/java/org/apache/tuscany/sca/itest/conversational/impl/ConversationalServiceStatefulImpl.java @@ -0,0 +1,119 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.conversational.impl; + +import org.apache.tuscany.sca.itest.conversational.BusinessException; +import org.apache.tuscany.sca.itest.conversational.ConversationalCallback; +import org.apache.tuscany.sca.itest.conversational.ConversationalService; +import org.osoa.sca.annotations.Callback; +import org.osoa.sca.annotations.ConversationAttributes; +import org.osoa.sca.annotations.ConversationID; +import org.osoa.sca.annotations.Destroy; +import org.osoa.sca.annotations.Init; +import org.osoa.sca.annotations.Scope; +import org.osoa.sca.annotations.Service; + + +/** + * The service used when testing stateful conversations + * + * @version $Rev: 537240 $ $Date: 2007-05-11 18:35:03 +0100 (Fri, 11 May 2007) $ + */ +@Service(ConversationalService.class) +@Scope("CONVERSATION") +@ConversationAttributes(maxAge="10 minutes", + maxIdleTime="5 minutes", + singlePrincipal=false) +public class ConversationalServiceStatefulImpl implements ConversationalService { + + @ConversationID + protected String conversationId; + + @Callback + protected ConversationalCallback conversationalCallback; + + // local count - accumulates during the conversation + private int count = 0; + + // a static member variable that records the number of times this service is called + public static StringBuffer calls = new StringBuffer(); + + @Init + public void init(){ + calls.append("init,"); + } + + @Destroy + public void destroy(){ + calls.append("destroy,"); + } + + public void initializeCount(int count){ + calls.append("initializeCount,"); + this.count = count; + } + + public void incrementCount(){ + calls.append("incrementCount,"); + count++; + } + + public int retrieveCount(){ + calls.append("retrieveCount,"); + return count; + } + + public void businessException() throws BusinessException { + calls.append("businessException,"); + throw new BusinessException("Business Exception"); + } + + public void initializeCountCallback(int count){ + calls.append("initializeCountCallback,"); + this.count = count; + conversationalCallback.initializeCount(count); + } + + public void incrementCountCallback(){ + calls.append("incrementCountCallback,"); + count++; + conversationalCallback.incrementCount(); + } + + public int retrieveCountCallback(){ + calls.append("retrieveCountCallback,"); + return conversationalCallback.retrieveCount(); + } + + public void businessExceptionCallback() throws BusinessException { + calls.append("businessExceptionCallback,"); + conversationalCallback.businessException(); + } + + public String endConversation(){ + calls.append("endConversation,"); + count = 0; + return conversationId; + } + + public String endConversationCallback(){ + calls.append("endConversationCallback,"); + return conversationalCallback.endConversation(); + } +} diff --git a/tags/java/sca/1.5.1-RC4/itest/conversations-ws/src/main/java/org/apache/tuscany/sca/itest/conversational/impl/ConversationalServiceStatefulNonConversationalCallbackImpl.java b/tags/java/sca/1.5.1-RC4/itest/conversations-ws/src/main/java/org/apache/tuscany/sca/itest/conversational/impl/ConversationalServiceStatefulNonConversationalCallbackImpl.java new file mode 100644 index 0000000000..be039748fc --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/conversations-ws/src/main/java/org/apache/tuscany/sca/itest/conversational/impl/ConversationalServiceStatefulNonConversationalCallbackImpl.java @@ -0,0 +1,118 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.conversational.impl; + +import org.apache.tuscany.sca.itest.conversational.BusinessException; +import org.apache.tuscany.sca.itest.conversational.ConversationalServiceNonConversationalCallback; +import org.apache.tuscany.sca.itest.conversational.NonConversationalCallback; +import org.osoa.sca.annotations.Callback; +import org.osoa.sca.annotations.ConversationAttributes; +import org.osoa.sca.annotations.ConversationID; +import org.osoa.sca.annotations.Destroy; +import org.osoa.sca.annotations.Init; +import org.osoa.sca.annotations.Scope; +import org.osoa.sca.annotations.Service; + + +/** + * The service used when testing stateful conversations + * + * @version $Rev: 537240 $ $Date: 2007-05-11 18:35:03 +0100 (Fri, 11 May 2007) $ + */ +@Service(ConversationalServiceNonConversationalCallback.class) +@Scope("CONVERSATION") +@ConversationAttributes(maxAge="10 minutes", + maxIdleTime="5 minutes", + singlePrincipal=false) +public class ConversationalServiceStatefulNonConversationalCallbackImpl implements ConversationalServiceNonConversationalCallback { + + @ConversationID + protected String conversationId; + + @Callback + protected NonConversationalCallback nonConversationalCallback; + + // local count - accumulates during the conversation + private int count = 0; + + // a static member variable that records the number of times this service is called + public static StringBuffer calls = new StringBuffer(); + + @Init + public void init(){ + calls.append("init,"); + } + + @Destroy + public void destroy(){ + calls.append("destroy,"); + } + + public void initializeCount(int count){ + calls.append("initializeCount,"); + this.count = count; + } + + public void incrementCount(){ + calls.append("incrementCount,"); + count++; + } + + public int retrieveCount(){ + calls.append("retrieveCount,"); + return count; + } + + public void businessException() throws BusinessException { + throw new BusinessException("Business Exception"); + } + + public void initializeCountCallback(int count){ + calls.append("initializeCountCallback,"); + this.count = count; + nonConversationalCallback.initializeCount(count); + } + + public void incrementCountCallback(){ + calls.append("incrementCountCallback,"); + count++; + nonConversationalCallback.incrementCount(); + } + + public int retrieveCountCallback(){ + calls.append("retrieveCountCallback,"); + return nonConversationalCallback.retrieveCount(); + } + + public void businessExceptionCallback() throws BusinessException { + calls.append("businessExceptionCallback,"); + nonConversationalCallback.businessException(); + } + + public String endConversation(){ + calls.append("endConversation,"); + count = 0; + return conversationId; + } + + public String endConversationCallback(){ + calls.append("endConversationCallback,"); + return nonConversationalCallback.endConversation(); + } +} diff --git a/tags/java/sca/1.5.1-RC4/itest/conversations-ws/src/main/java/org/apache/tuscany/sca/itest/conversational/impl/ConversationalServiceStatelessImpl.java b/tags/java/sca/1.5.1-RC4/itest/conversations-ws/src/main/java/org/apache/tuscany/sca/itest/conversational/impl/ConversationalServiceStatelessImpl.java new file mode 100644 index 0000000000..42f2f1a603 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/conversations-ws/src/main/java/org/apache/tuscany/sca/itest/conversational/impl/ConversationalServiceStatelessImpl.java @@ -0,0 +1,122 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.conversational.impl; + +import java.util.HashMap; + +import org.apache.tuscany.sca.itest.conversational.BusinessException; +import org.apache.tuscany.sca.itest.conversational.ConversationalCallback; +import org.apache.tuscany.sca.itest.conversational.ConversationalService; +import org.osoa.sca.annotations.Callback; +import org.osoa.sca.annotations.ConversationID; +import org.osoa.sca.annotations.Destroy; +import org.osoa.sca.annotations.Init; +import org.osoa.sca.annotations.Service; + + +/** + * The service used when testing stateful conversations + * + * @version $Rev: 537240 $ $Date: 2007-05-11 18:35:03 +0100 (Fri, 11 May 2007) $ + */ +@Service(ConversationalService.class) +public class ConversationalServiceStatelessImpl implements ConversationalService { + + @ConversationID + protected String conversationId; + + @Callback + protected ConversationalCallback conversationalCallback; + + // static area in which to hold conversational data + private static HashMap conversationalState = new HashMap(); + + // a static member variable that records the number of times this service is called + public static StringBuffer calls = new StringBuffer(); + + @Init + public void init(){ + calls.append("init,"); + } + + @Destroy + public void destroy(){ + calls.append("destroy,"); + } + + public void initializeCount(int count){ + calls.append("initializeCount,"); + Integer conversationalCount = new Integer(count); + conversationalState.put(conversationId, conversationalCount); + } + + public void incrementCount(){ + calls.append("incrementCount,"); + Integer conversationalCount = conversationalState.get(conversationId); + conversationalCount++; + conversationalState.put(conversationId, conversationalCount); + } + + public int retrieveCount(){ + calls.append("retrieveCount,"); + Integer count = conversationalState.get(conversationId); + if (count != null){ + return count.intValue(); + } else { + return -999; + } + } + + public void businessException() throws BusinessException { + throw new BusinessException("Business Exception"); + } + + public void initializeCountCallback(int count){ + calls.append("initializeCountCallback,"); + initializeCount(count); + conversationalCallback.initializeCount(count); + } + + public void incrementCountCallback(){ + calls.append("incrementCountCallback,"); + incrementCount(); + conversationalCallback.incrementCount(); + } + + public int retrieveCountCallback(){ + calls.append("retrieveCountCallback,"); + return conversationalCallback.retrieveCount(); + } + + public void businessExceptionCallback() throws BusinessException { + calls.append("businessExceptionCallback,"); + conversationalCallback.businessException(); + } + + public String endConversation(){ + calls.append("endConversation,"); + conversationalState.remove(conversationId); + return conversationId; + } + + public String endConversationCallback(){ + calls.append("endConversationCallback,"); + return conversationalCallback.endConversation(); + } +} diff --git a/tags/java/sca/1.5.1-RC4/itest/conversations-ws/src/main/java/org/apache/tuscany/sca/itest/conversational/impl/ConversationalServiceStatelessScopeImpl.java b/tags/java/sca/1.5.1-RC4/itest/conversations-ws/src/main/java/org/apache/tuscany/sca/itest/conversational/impl/ConversationalServiceStatelessScopeImpl.java new file mode 100644 index 0000000000..a852aeda56 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/conversations-ws/src/main/java/org/apache/tuscany/sca/itest/conversational/impl/ConversationalServiceStatelessScopeImpl.java @@ -0,0 +1,94 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.conversational.impl; + +import java.util.HashMap; +import java.util.Map; + +import org.apache.tuscany.sca.itest.conversational.BusinessException; +import org.apache.tuscany.sca.itest.conversational.ConversationalService; +import org.osoa.sca.annotations.ConversationID; +import org.osoa.sca.annotations.Service; + +@Service(ConversationalService.class) +public class ConversationalServiceStatelessScopeImpl implements ConversationalService { + + @ConversationID + protected String cid; + + static Map state = new HashMap(); + + public void destroy() { + // TODO Auto-generated method stub + + } + + public String endConversation() { + state.remove(cid); + return cid; + } + + public String endConversationCallback() { + // TODO Auto-generated method stub + return null; + + } + + public void incrementCount() { + state.put(cid, Integer.valueOf(state.get(cid)+1)); + } + + public void businessException() throws BusinessException { + throw new BusinessException("Business Exception"); + } + + public void incrementCountCallback() { + // TODO Auto-generated method stub + + } + + public void init() { + // TODO Auto-generated method stub + + } + + public void initializeCount(int count) { + state.put(cid, Integer.valueOf(count)); + } + + public void initializeCountCallback(int count) { + // TODO Auto-generated method stub + + } + + public void businessExceptionCallback() throws BusinessException { + throw new BusinessException("Business Exception"); + } + + public int retrieveCount() { + return state.get(cid); + } + + public int retrieveCountCallback() { + // TODO Auto-generated method stub + return 0; + } + +} diff --git a/tags/java/sca/1.5.1-RC4/itest/conversations-ws/src/main/resources/Conversational/META-INF/sca-contribution.xml b/tags/java/sca/1.5.1-RC4/itest/conversations-ws/src/main/resources/Conversational/META-INF/sca-contribution.xml new file mode 100644 index 0000000000..d5a1ff7410 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/conversations-ws/src/main/resources/Conversational/META-INF/sca-contribution.xml @@ -0,0 +1,22 @@ + + + + + \ No newline at end of file diff --git a/tags/java/sca/1.5.1-RC4/itest/conversations-ws/src/main/resources/Conversational/conversational.composite b/tags/java/sca/1.5.1-RC4/itest/conversations-ws/src/main/resources/Conversational/conversational.composite new file mode 100644 index 0000000000..c4da99145d --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/conversations-ws/src/main/resources/Conversational/conversational.composite @@ -0,0 +1,169 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/conversations-ws/src/main/resources/ConversationalWSDL/ConversationalServiceStateful.wsdl b/tags/java/sca/1.5.1-RC4/itest/conversations-ws/src/main/resources/ConversationalWSDL/ConversationalServiceStateful.wsdl new file mode 100644 index 0000000000..20a92c9dc7 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/conversations-ws/src/main/resources/ConversationalWSDL/ConversationalServiceStateful.wsdl @@ -0,0 +1,383 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/conversations-ws/src/main/resources/ConversationalWSDL/META-INF/sca-contribution.xml b/tags/java/sca/1.5.1-RC4/itest/conversations-ws/src/main/resources/ConversationalWSDL/META-INF/sca-contribution.xml new file mode 100644 index 0000000000..73d078674c --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/conversations-ws/src/main/resources/ConversationalWSDL/META-INF/sca-contribution.xml @@ -0,0 +1,22 @@ + + + + + \ No newline at end of file diff --git a/tags/java/sca/1.5.1-RC4/itest/conversations-ws/src/main/resources/ConversationalWSDL/conversationalWSDL.composite b/tags/java/sca/1.5.1-RC4/itest/conversations-ws/src/main/resources/ConversationalWSDL/conversationalWSDL.composite new file mode 100644 index 0000000000..9c6b0a2b34 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/conversations-ws/src/main/resources/ConversationalWSDL/conversationalWSDL.composite @@ -0,0 +1,46 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/conversations-ws/src/test/java/org/apache/tuscany/sca/itest/conversational/ConversationWSDLTestCase.java b/tags/java/sca/1.5.1-RC4/itest/conversations-ws/src/test/java/org/apache/tuscany/sca/itest/conversational/ConversationWSDLTestCase.java new file mode 100644 index 0000000000..9df966ebc2 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/conversations-ws/src/test/java/org/apache/tuscany/sca/itest/conversational/ConversationWSDLTestCase.java @@ -0,0 +1,75 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.conversational; + + +import java.io.File; + + +import org.apache.tuscany.sca.itest.conversational.impl.ConversationalClientStatelessImpl; +import org.apache.tuscany.sca.node.SCAClient; +import org.apache.tuscany.sca.node.SCAContribution; +import org.apache.tuscany.sca.node.SCANode; +import org.apache.tuscany.sca.node.SCANodeFactory; +import org.junit.After; +import org.junit.Assert; +import org.junit.Before; +import org.junit.Test; + +public class ConversationWSDLTestCase { + + private SCANode node; + private ConversationalClient conversationalStatelessClientStatefulService; + + @Before + public void setUp() throws Exception { + SCANodeFactory nodeFactory = SCANodeFactory.newInstance(); + node = nodeFactory.createSCANode(new File("src/main/resources/ConversationalWSDL/conversationalWSDL.composite").toURL().toString(), + new SCAContribution("TestContribution", + new File("src/main/resources/ConversationalWSDL").toURL().toString())); + + + node.start(); + + conversationalStatelessClientStatefulService = ((SCAClient)node).getService(ConversationalClient.class, "ConversationalStatelessClientStatefulService"); + + + ConversationalClientStatelessImpl.calls = new StringBuffer(); + } + + @After + public void tearDown() throws Exception { + node.stop(); + conversationalStatelessClientStatefulService = null; + } + + @Test + public void testStatelessStatefulConversationFromInjectedReference() { + int count = conversationalStatelessClientStatefulService.runConversationFromInjectedReference(); + Assert.assertEquals(2, count); + } + + //@Test + public void testKeepServerRunning() throws Exception { + System.out.println("press enter to continue"); + System.in.read(); + } + +} diff --git a/tags/java/sca/1.5.1-RC4/itest/conversations-ws/src/test/java/org/apache/tuscany/sca/itest/conversational/NonConversationalCallbackTestCase.java b/tags/java/sca/1.5.1-RC4/itest/conversations-ws/src/test/java/org/apache/tuscany/sca/itest/conversational/NonConversationalCallbackTestCase.java new file mode 100644 index 0000000000..ebd1e55dac --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/conversations-ws/src/test/java/org/apache/tuscany/sca/itest/conversational/NonConversationalCallbackTestCase.java @@ -0,0 +1,198 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.conversational; + +import java.io.File; + +import junit.framework.Assert; + +import org.apache.tuscany.sca.itest.conversational.impl.ConversationalClientStatefulImpl; +import org.apache.tuscany.sca.itest.conversational.impl.ConversationalClientStatefulNonConversationalCallbackImpl; +import org.apache.tuscany.sca.itest.conversational.impl.ConversationalClientStatelessImpl; +import org.apache.tuscany.sca.itest.conversational.impl.ConversationalServiceStatefulImpl; +import org.apache.tuscany.sca.itest.conversational.impl.ConversationalServiceStatefulNonConversationalCallbackImpl; +import org.apache.tuscany.sca.itest.conversational.impl.ConversationalServiceStatelessImpl; +import org.apache.tuscany.sca.node.SCAClient; +import org.apache.tuscany.sca.node.SCAContribution; +import org.apache.tuscany.sca.node.SCANode; +import org.apache.tuscany.sca.node.SCANodeFactory; +import org.junit.AfterClass; +import org.junit.BeforeClass; +import org.junit.Test; + +public class NonConversationalCallbackTestCase { + + private static SCANode node; + private static ConversationalClient conversationalStatelessClientStatelessService; + private static ConversationalClient conversationalStatelessClientStatefulService; + private static ConversationalClient conversationalStatefulClientStatelessService; + private static ConversationalClient conversationalStatefulClientStatefulService; + private static ConversationalClient conversationalStatelessClientRequestService; + private static ConversationalClient conversationalStatefulClientNonConversationalCallbackStatelessService; + + @BeforeClass + public static void setUp() throws Exception { + try { + SCANodeFactory nodeFactory = SCANodeFactory.newInstance(); + node = nodeFactory.createSCANode(new File("src/main/resources/Conversational/conversational.composite").toURL().toString(), + new SCAContribution("TestContribution", + new File("src/main/resources/Conversational").toURL().toString())); + + + node.start(); + + conversationalStatelessClientStatelessService = ((SCAClient)node).getService(ConversationalClient.class, + "ConversationalStatelessClientStatelessService"); + + conversationalStatelessClientStatefulService = ((SCAClient)node).getService(ConversationalClient.class, + "ConversationalStatelessClientStatefulService"); + + conversationalStatefulClientStatelessService = ((SCAClient)node).getService(ConversationalClient.class, + "ConversationalStatefulClientStatelessService"); + + conversationalStatefulClientStatefulService = ((SCAClient)node).getService(ConversationalClient.class, + "ConversationalStatefulClientStatefulService"); + conversationalStatelessClientRequestService = ((SCAClient)node).getService(ConversationalClient.class, + "ConversationalStatelessClientRequestService"); + conversationalStatefulClientNonConversationalCallbackStatelessService = ((SCAClient)node).getService(ConversationalClient.class, + "ConversationalStatefulClientNonConversationalCallbackStatefulService"); + + // reset the place where we record the sequence of calls passing + // through each component instance + ConversationalServiceStatelessImpl.calls = new StringBuffer(); + ConversationalServiceStatefulImpl.calls = new StringBuffer(); + ConversationalClientStatelessImpl.calls = new StringBuffer(); + ConversationalClientStatefulImpl.calls = new StringBuffer(); + + } catch(Exception ex) { + System.err.println(ex.toString()); + } + + } + + @AfterClass + public static void tearDown() throws Exception { + node.stop(); + conversationalStatelessClientStatelessService = null; + conversationalStatelessClientStatefulService = null; + conversationalStatefulClientStatelessService = null; + conversationalStatefulClientStatefulService = null; + conversationalStatelessClientRequestService = null; + conversationalStatefulClientNonConversationalCallbackStatelessService = null; + } + + private static void resetCallStack() { + + // reset the place where we record the sequence of calls passing + // through each component instance + ConversationalServiceStatelessImpl.calls = new StringBuffer(); + ConversationalServiceStatefulImpl.calls = new StringBuffer(); + ConversationalClientStatelessImpl.calls = new StringBuffer(); + ConversationalClientStatefulImpl.calls = new StringBuffer(); + ConversationalClientStatefulNonConversationalCallbackImpl.calls = new StringBuffer(); + + } + + // stateful client non conversational callback stateful service tests + // ================================================================== + + @Test + public void testStatefulNonConversationalCallbackStatefulConversationFromInjectedReference() { + int count = conversationalStatefulClientNonConversationalCallbackStatelessService.runConversationFromInjectedReference(); + Assert.assertEquals(2, count); + } + + @Test + public void testStatefulNonConversationalCallbackStatefulConversationFromInjectedReference2() { + int count = conversationalStatefulClientNonConversationalCallbackStatelessService.runConversationFromInjectedReference2(); + Assert.assertEquals(2, count); + } + + @Test + public void testStatefulNonConversationalCallbackStatefulConversationFromServiceReference() { + int count = conversationalStatefulClientNonConversationalCallbackStatelessService.runConversationFromServiceReference(); + Assert.assertEquals(2, count); + } + + @Test + public void testStatefulNonConversationalCallbackStatefulConversationWithUserDefinedConversationId() { + int count = conversationalStatefulClientNonConversationalCallbackStatelessService.runConversationWithUserDefinedConversationId(); + Assert.assertEquals(2, count); + } + + @Test + public void testStatefulNonConversationalCallbackStatefulConversationCheckUserDefinedConversationId() { + String conversationId = conversationalStatefulClientNonConversationalCallbackStatelessService.runConversationCheckUserDefinedConversationId(); + Assert.assertEquals("MyConversation2", conversationId); + } + + @Test + public void testStatefulNonConversationalCallbackStatefulConversationCheckingScope() { + resetCallStack(); + ConversationalServiceStatefulNonConversationalCallbackImpl.calls = new StringBuffer(); + conversationalStatefulClientNonConversationalCallbackStatelessService.runConversationCheckingScope(); + Assert.assertEquals("init,initializeCount,incrementCount,retrieveCount,endConversation,destroy,", + ConversationalServiceStatefulNonConversationalCallbackImpl.calls.toString()); + } + + //@Test + public void testStatefulNonConversationalCallbackStatefulConversationWithCallback() { + resetCallStack(); + ConversationalClientStatefulNonConversationalCallbackImpl.calls = new StringBuffer(); + int count = conversationalStatefulClientNonConversationalCallbackStatelessService.runConversationWithCallback(); + Assert.assertEquals(0, count); + + Assert.assertEquals("init,runConversationWithCallback,init,initializeCount,destroy,init,incrementCount,destroy,init,retrieveCount,destroy,init,endConversation,destroy,", + ConversationalClientStatefulNonConversationalCallbackImpl.calls.toString()); + } + + //@Test + public void testStatefulNonConversationalCallbackStatefulConversationHavingPassedReference() { + int count = conversationalStatefulClientNonConversationalCallbackStatelessService.runConversationHavingPassedReference(); + Assert.assertEquals(0, count); + } + + @Test + public void testStatefulNonConversationalCallbackStatefulConversationCallingEndedConversation() { + int count = conversationalStatefulClientNonConversationalCallbackStatelessService.runConversationCallingEndedConversation(); + Assert.assertEquals(0, count); + } + + //@Test + public void testStatefulNonConversationalCallbackStatefulConversationCallingEndedConversationCallback() { + int count = conversationalStatefulClientNonConversationalCallbackStatelessService.runConversationCallingEndedConversationCallback(); + Assert.assertEquals(0, count); + } + + @Test + public void testStatefulNonConversationalCallbackStatefulConversationCallingEndedConversationCheckConversationId() { + String id = conversationalStatefulClientNonConversationalCallbackStatelessService.runConversationCallingEndedConversationCheckConversationId(); + Assert.assertEquals(null, id); + } + + //@Test + public void testStatefulNonConversationalCallbackStatefulConversationCallingEndedConversationCallbackCheckConversationId() { + String id = conversationalStatefulClientNonConversationalCallbackStatelessService.runConversationCallingEndedConversationCallbackCheckConversationId(); + Assert.assertEquals("MyConversation3", id); + } + + + +} diff --git a/tags/java/sca/1.5.1-RC4/itest/conversations-ws/src/test/java/org/apache/tuscany/sca/itest/conversational/RequestScopeTestCase.java b/tags/java/sca/1.5.1-RC4/itest/conversations-ws/src/test/java/org/apache/tuscany/sca/itest/conversational/RequestScopeTestCase.java new file mode 100644 index 0000000000..2c16145f54 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/conversations-ws/src/test/java/org/apache/tuscany/sca/itest/conversational/RequestScopeTestCase.java @@ -0,0 +1,209 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.conversational; + +import java.io.File; + + +import junit.framework.Assert; + +import org.apache.tuscany.sca.itest.conversational.impl.ConversationalClientStatefulImpl; +import org.apache.tuscany.sca.itest.conversational.impl.ConversationalClientStatefulNonConversationalCallbackImpl; +import org.apache.tuscany.sca.itest.conversational.impl.ConversationalClientStatelessImpl; +import org.apache.tuscany.sca.itest.conversational.impl.ConversationalServiceRequestImpl; +import org.apache.tuscany.sca.itest.conversational.impl.ConversationalServiceStatefulImpl; +import org.apache.tuscany.sca.itest.conversational.impl.ConversationalServiceStatelessImpl; +import org.apache.tuscany.sca.node.SCAClient; +import org.apache.tuscany.sca.node.SCAContribution; +import org.apache.tuscany.sca.node.SCANode; +import org.apache.tuscany.sca.node.SCANodeFactory; +import org.junit.AfterClass; +import org.junit.BeforeClass; +import org.junit.Test; + +public class RequestScopeTestCase { + + private static SCANode node; + private static ConversationalClient conversationalStatelessClientStatelessService; + private static ConversationalClient conversationalStatelessClientStatefulService; + private static ConversationalClient conversationalStatefulClientStatelessService; + private static ConversationalClient conversationalStatefulClientStatefulService; + private static ConversationalClient conversationalStatelessClientRequestService; + private static ConversationalClient conversationalStatefulClientNonConversationalCallbackStatelessService; + + @BeforeClass + public static void setUp() throws Exception { + try { + SCANodeFactory nodeFactory = SCANodeFactory.newInstance(); + node = nodeFactory.createSCANode(new File("src/main/resources/Conversational/conversational.composite").toURL().toString(), + new SCAContribution("TestContribution", + new File("src/main/resources/Conversational").toURL().toString())); + + + node.start(); + + conversationalStatelessClientStatelessService = ((SCAClient)node).getService(ConversationalClient.class, + "ConversationalStatelessClientStatelessService"); + + conversationalStatelessClientStatefulService = ((SCAClient)node).getService(ConversationalClient.class, + "ConversationalStatelessClientStatefulService"); + + conversationalStatefulClientStatelessService = ((SCAClient)node).getService(ConversationalClient.class, + "ConversationalStatefulClientStatelessService"); + + conversationalStatefulClientStatefulService = ((SCAClient)node).getService(ConversationalClient.class, + "ConversationalStatefulClientStatefulService"); + conversationalStatelessClientRequestService = ((SCAClient)node).getService(ConversationalClient.class, + "ConversationalStatelessClientRequestService"); + conversationalStatefulClientNonConversationalCallbackStatelessService = ((SCAClient)node).getService(ConversationalClient.class, + "ConversationalStatefulClientNonConversationalCallbackStatefulService"); + + // reset the place where we record the sequence of calls passing + // through each component instance + ConversationalServiceStatelessImpl.calls = new StringBuffer(); + ConversationalServiceStatefulImpl.calls = new StringBuffer(); + ConversationalClientStatelessImpl.calls = new StringBuffer(); + ConversationalClientStatefulImpl.calls = new StringBuffer(); + + } catch(Exception ex) { + System.err.println(ex.toString()); + } + + } + + @AfterClass + public static void tearDown() throws Exception { + node.stop(); + conversationalStatelessClientStatelessService = null; + conversationalStatelessClientStatefulService = null; + conversationalStatefulClientStatelessService = null; + conversationalStatefulClientStatefulService = null; + conversationalStatelessClientRequestService = null; + conversationalStatefulClientNonConversationalCallbackStatelessService = null; + } + + private static void resetCallStack() { + + // reset the place where we record the sequence of calls passing + // through each component instance + ConversationalServiceStatelessImpl.calls = new StringBuffer(); + ConversationalServiceStatefulImpl.calls = new StringBuffer(); + ConversationalClientStatelessImpl.calls = new StringBuffer(); + ConversationalClientStatefulImpl.calls = new StringBuffer(); + ConversationalClientStatefulNonConversationalCallbackImpl.calls = new StringBuffer(); + + } + + // stateless client request scope service tests + // ============================================ + @Test + public void testStatelessRequestConversationFromInjectedReference() { + int count = conversationalStatelessClientRequestService.runConversationFromInjectedReference(); + Assert.assertEquals(2, count); + } + + //@Test + public void testStatelessRequestConversationFromInjectedReference2() { + int count = conversationalStatelessClientRequestService.runConversationFromInjectedReference2(); + Assert.assertEquals(1, count); + } + + @Test + public void testStatelessRequestConversationFromServiceReference() { + int count = conversationalStatelessClientRequestService.runConversationFromServiceReference(); + Assert.assertEquals(2, count); + } + + @Test + public void testStatelessRequestConversationWithUserDefinedConversationId() { + int count = conversationalStatelessClientRequestService.runConversationWithUserDefinedConversationId(); + Assert.assertEquals(2, count); + } + + //@Test + public void testStatelessRequestConversationCheckUserDefinedConversationId() { + String conversationId = conversationalStatelessClientRequestService.runConversationCheckUserDefinedConversationId(); + Assert.assertEquals("MyConversation2", conversationId); + } + + //@Test + public void testStatelessRequestConversationCheckingScope() { + resetCallStack(); + ConversationalServiceRequestImpl.calls = new StringBuffer(); + conversationalStatelessClientRequestService.runConversationCheckingScope(); + Assert.assertEquals("init,initializeCount,incrementCount,retrieveCount,endConversation,", + ConversationalServiceRequestImpl.calls.toString()); + //init,initializeCount,init,incrementCount,init,retrieveCount,init,endConversation, + } + + @Test + public void testStatelessRequestConversationWithCallback() { + resetCallStack(); + ConversationalClientStatelessImpl.calls = new StringBuffer(); + int count = conversationalStatelessClientRequestService.runConversationWithCallback(); + Assert.assertEquals(0, count); + + Assert.assertEquals("init,runConversationWithCallback,init,initializeCount,destroy,init,incrementCount,destroy,init,retrieveCount,destroy,init,endConversation,destroy,destroy,", + ConversationalClientStatelessImpl.calls.toString()); + } + + //@Test + public void testStatelessRequestConversationHavingPassedReference() { + int count = conversationalStatelessClientRequestService.runConversationHavingPassedReference(); + Assert.assertEquals(3, count); + } + + //@Test + public void testStatelessRequestConversationBusinessException() { + String message = conversationalStatelessClientRequestService.runConversationBusinessException(); + Assert.assertEquals("Business Exception", message); + } + + //@Test + public void testStatelessRequestConversationBusinessExceptionCallback() { + String message = conversationalStatelessClientRequestService.runConversationBusinessExceptionCallback(); + Assert.assertEquals("Business Exception", message); + } + + @Test + public void testStatelessRequestConversationCallingEndedConversation() { + int count = conversationalStatelessClientRequestService.runConversationCallingEndedConversation(); + Assert.assertEquals(-999, count); + } + + @Test + public void testStatelessRequestConversationCallingEndedConversationCallback() { + int count = conversationalStatelessClientRequestService.runConversationCallingEndedConversationCallback(); + Assert.assertEquals(0, count); + } + + @Test + public void testStatelessRequestConversationCallingEndedConversationCheckConversationId() { + String id = conversationalStatelessClientRequestService.runConversationCallingEndedConversationCheckConversationId(); + Assert.assertEquals(null, id); + } + + //@Test + public void testStatelessRequestConversationCallingEndedConversationCallbackCheckConversationId() { + String id = conversationalStatelessClientRequestService.runConversationCallingEndedConversationCallbackCheckConversationId(); + Assert.assertEquals(null, id); + } + +} diff --git a/tags/java/sca/1.5.1-RC4/itest/conversations-ws/src/test/java/org/apache/tuscany/sca/itest/conversational/StatefulStatefulTestCase.java b/tags/java/sca/1.5.1-RC4/itest/conversations-ws/src/test/java/org/apache/tuscany/sca/itest/conversational/StatefulStatefulTestCase.java new file mode 100644 index 0000000000..4166e6acdf --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/conversations-ws/src/test/java/org/apache/tuscany/sca/itest/conversational/StatefulStatefulTestCase.java @@ -0,0 +1,193 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.conversational; + +import java.io.File; + + +import junit.framework.Assert; + +import org.apache.tuscany.sca.itest.conversational.impl.ConversationalClientStatefulImpl; +import org.apache.tuscany.sca.itest.conversational.impl.ConversationalClientStatefulNonConversationalCallbackImpl; +import org.apache.tuscany.sca.itest.conversational.impl.ConversationalClientStatelessImpl; +import org.apache.tuscany.sca.itest.conversational.impl.ConversationalServiceStatefulImpl; +import org.apache.tuscany.sca.itest.conversational.impl.ConversationalServiceStatelessImpl; +import org.apache.tuscany.sca.node.SCAClient; +import org.apache.tuscany.sca.node.SCAContribution; +import org.apache.tuscany.sca.node.SCANode; +import org.apache.tuscany.sca.node.SCANodeFactory; +import org.junit.AfterClass; +import org.junit.BeforeClass; +import org.junit.Test; + +public class StatefulStatefulTestCase { + + private static SCANode node; + private static ConversationalClient conversationalStatelessClientStatelessService; + private static ConversationalClient conversationalStatelessClientStatefulService; + private static ConversationalClient conversationalStatefulClientStatelessService; + private static ConversationalClient conversationalStatefulClientStatefulService; + private static ConversationalClient conversationalStatelessClientRequestService; + private static ConversationalClient conversationalStatefulClientNonConversationalCallbackStatelessService; + + @BeforeClass + public static void setUp() throws Exception { + try { + SCANodeFactory nodeFactory = SCANodeFactory.newInstance(); + node = nodeFactory.createSCANode(new File("src/main/resources/Conversational/conversational.composite").toURL().toString(), + new SCAContribution("TestContribution", + new File("src/main/resources/Conversational").toURL().toString())); + + + node.start(); + + conversationalStatelessClientStatelessService = ((SCAClient)node).getService(ConversationalClient.class, + "ConversationalStatelessClientStatelessService"); + + conversationalStatelessClientStatefulService = ((SCAClient)node).getService(ConversationalClient.class, + "ConversationalStatelessClientStatefulService"); + + conversationalStatefulClientStatelessService = ((SCAClient)node).getService(ConversationalClient.class, + "ConversationalStatefulClientStatelessService"); + + conversationalStatefulClientStatefulService = ((SCAClient)node).getService(ConversationalClient.class, + "ConversationalStatefulClientStatefulService"); + conversationalStatelessClientRequestService = ((SCAClient)node).getService(ConversationalClient.class, + "ConversationalStatelessClientRequestService"); + conversationalStatefulClientNonConversationalCallbackStatelessService = ((SCAClient)node).getService(ConversationalClient.class, + "ConversationalStatefulClientNonConversationalCallbackStatefulService"); + + // reset the place where we record the sequence of calls passing + // through each component instance + ConversationalServiceStatelessImpl.calls = new StringBuffer(); + ConversationalServiceStatefulImpl.calls = new StringBuffer(); + ConversationalClientStatelessImpl.calls = new StringBuffer(); + ConversationalClientStatefulImpl.calls = new StringBuffer(); + + } catch(Exception ex) { + System.err.println(ex.toString()); + } + + } + + @AfterClass + public static void tearDown() throws Exception { + node.stop(); + conversationalStatelessClientStatelessService = null; + conversationalStatelessClientStatefulService = null; + conversationalStatefulClientStatelessService = null; + conversationalStatefulClientStatefulService = null; + conversationalStatelessClientRequestService = null; + conversationalStatefulClientNonConversationalCallbackStatelessService = null; + } + + private static void resetCallStack() { + + // reset the place where we record the sequence of calls passing + // through each component instance + ConversationalServiceStatelessImpl.calls = new StringBuffer(); + ConversationalServiceStatefulImpl.calls = new StringBuffer(); + ConversationalClientStatelessImpl.calls = new StringBuffer(); + ConversationalClientStatefulImpl.calls = new StringBuffer(); + ConversationalClientStatefulNonConversationalCallbackImpl.calls = new StringBuffer(); + + } + + // stateful client stateful service tests + // ====================================== + @Test + public void testStatefulStatefulConversationFromInjectedReference() { + int count = conversationalStatefulClientStatefulService.runConversationFromInjectedReference(); + Assert.assertEquals(2, count); + } + + @Test + public void testStatefulStatefulConversationFromInjectedReference2() { + int count = conversationalStatefulClientStatefulService.runConversationFromInjectedReference2(); + Assert.assertEquals(2, count); + } + + @Test + public void testStatefulStatefulConversationFromServiceReference() { + int count = conversationalStatefulClientStatefulService.runConversationFromServiceReference(); + Assert.assertEquals(2, count); + } + + @Test + public void testStatefulStatefulConversationWithUserDefinedConversationId() { + int count = conversationalStatefulClientStatefulService.runConversationWithUserDefinedConversationId(); + Assert.assertEquals(2, count); + } + + @Test + public void testStatefulStatefulConversationCheckUserDefinedConversationId() { + String conversationId = conversationalStatefulClientStatefulService.runConversationCheckUserDefinedConversationId(); + Assert.assertEquals("MyConversation2", conversationId); + } + + @Test + public void testStatefulStatefulConversationCheckingScope() { + resetCallStack(); + conversationalStatefulClientStatefulService.runConversationCheckingScope(); + Assert.assertEquals("init,initializeCount,incrementCount,retrieveCount,endConversation,destroy,", + ConversationalServiceStatefulImpl.calls.toString()); + } + + @Test + public void testStatefulStatefulConversationWithCallback() { + resetCallStack(); + int count = conversationalStatefulClientStatefulService.runConversationWithCallback(); + Assert.assertEquals(4, count); + + Assert.assertEquals("init,runConversationWithCallback,initializeCount,incrementCount,retrieveCount,endConversation,destroy,", + ConversationalClientStatefulImpl.calls.toString()); + } + + //@Test + public void testStatefulStatefulConversationHavingPassedReference() { + int count = conversationalStatefulClientStatefulService.runConversationHavingPassedReference(); + Assert.assertEquals(3, count); + } + + @Test + public void testStatefulStatefulConversationCallingEndedConversation() { + int count = conversationalStatefulClientStatefulService.runConversationCallingEndedConversation(); + Assert.assertEquals(0, count); + } + + @Test + public void testStatefulStatefulConversationCallingEndedConversationCallback() { + int count = conversationalStatefulClientStatefulService.runConversationCallingEndedConversationCallback(); + Assert.assertEquals(0, count); + } + + @Test + public void testStatefulStatefulConversationCallingEndedConversationCheckConversationId() { + String id = conversationalStatefulClientStatefulService.runConversationCallingEndedConversationCheckConversationId(); + Assert.assertEquals(null, id); + } + + @Test + public void testStatefulStatefulConversationCallingEndedConversationCallbackCheckConversationId() { + String id = conversationalStatefulClientStatefulService.runConversationCallingEndedConversationCallbackCheckConversationId(); + Assert.assertEquals(null, id); + } + +} diff --git a/tags/java/sca/1.5.1-RC4/itest/conversations-ws/src/test/java/org/apache/tuscany/sca/itest/conversational/StatefulStatelessTestCase.java b/tags/java/sca/1.5.1-RC4/itest/conversations-ws/src/test/java/org/apache/tuscany/sca/itest/conversational/StatefulStatelessTestCase.java new file mode 100644 index 0000000000..6023b7cd53 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/conversations-ws/src/test/java/org/apache/tuscany/sca/itest/conversational/StatefulStatelessTestCase.java @@ -0,0 +1,193 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.conversational; + +import java.io.File; + + +import junit.framework.Assert; + +import org.apache.tuscany.sca.itest.conversational.impl.ConversationalClientStatefulImpl; +import org.apache.tuscany.sca.itest.conversational.impl.ConversationalClientStatefulNonConversationalCallbackImpl; +import org.apache.tuscany.sca.itest.conversational.impl.ConversationalClientStatelessImpl; +import org.apache.tuscany.sca.itest.conversational.impl.ConversationalServiceStatefulImpl; +import org.apache.tuscany.sca.itest.conversational.impl.ConversationalServiceStatelessImpl; +import org.apache.tuscany.sca.node.SCAClient; +import org.apache.tuscany.sca.node.SCAContribution; +import org.apache.tuscany.sca.node.SCANode; +import org.apache.tuscany.sca.node.SCANodeFactory; +import org.junit.AfterClass; +import org.junit.BeforeClass; +import org.junit.Test; + +public class StatefulStatelessTestCase { + + private static SCANode node; + private static ConversationalClient conversationalStatelessClientStatelessService; + private static ConversationalClient conversationalStatelessClientStatefulService; + private static ConversationalClient conversationalStatefulClientStatelessService; + private static ConversationalClient conversationalStatefulClientStatefulService; + private static ConversationalClient conversationalStatelessClientRequestService; + private static ConversationalClient conversationalStatefulClientNonConversationalCallbackStatelessService; + + @BeforeClass + public static void setUp() throws Exception { + try { + SCANodeFactory nodeFactory = SCANodeFactory.newInstance(); + node = nodeFactory.createSCANode(new File("src/main/resources/Conversational/conversational.composite").toURL().toString(), + new SCAContribution("TestContribution", + new File("src/main/resources/Conversational").toURL().toString())); + + + node.start(); + + conversationalStatelessClientStatelessService = ((SCAClient)node).getService(ConversationalClient.class, + "ConversationalStatelessClientStatelessService"); + + conversationalStatelessClientStatefulService = ((SCAClient)node).getService(ConversationalClient.class, + "ConversationalStatelessClientStatefulService"); + + conversationalStatefulClientStatelessService = ((SCAClient)node).getService(ConversationalClient.class, + "ConversationalStatefulClientStatelessService"); + + conversationalStatefulClientStatefulService = ((SCAClient)node).getService(ConversationalClient.class, + "ConversationalStatefulClientStatefulService"); + conversationalStatelessClientRequestService = ((SCAClient)node).getService(ConversationalClient.class, + "ConversationalStatelessClientRequestService"); + conversationalStatefulClientNonConversationalCallbackStatelessService = ((SCAClient)node).getService(ConversationalClient.class, + "ConversationalStatefulClientNonConversationalCallbackStatefulService"); + + // reset the place where we record the sequence of calls passing + // through each component instance + ConversationalServiceStatelessImpl.calls = new StringBuffer(); + ConversationalServiceStatefulImpl.calls = new StringBuffer(); + ConversationalClientStatelessImpl.calls = new StringBuffer(); + ConversationalClientStatefulImpl.calls = new StringBuffer(); + + } catch(Exception ex) { + System.err.println(ex.toString()); + } + + } + + @AfterClass + public static void tearDown() throws Exception { + node.stop(); + conversationalStatelessClientStatelessService = null; + conversationalStatelessClientStatefulService = null; + conversationalStatefulClientStatelessService = null; + conversationalStatefulClientStatefulService = null; + conversationalStatelessClientRequestService = null; + conversationalStatefulClientNonConversationalCallbackStatelessService = null; + } + + private static void resetCallStack() { + + // reset the place where we record the sequence of calls passing + // through each component instance + ConversationalServiceStatelessImpl.calls = new StringBuffer(); + ConversationalServiceStatefulImpl.calls = new StringBuffer(); + ConversationalClientStatelessImpl.calls = new StringBuffer(); + ConversationalClientStatefulImpl.calls = new StringBuffer(); + ConversationalClientStatefulNonConversationalCallbackImpl.calls = new StringBuffer(); + + } + + // stateful client stateless service tests + // ======================================= + @Test + public void testStatefulStatelessConversationFromInjectedReference() { + int count = conversationalStatefulClientStatelessService.runConversationFromInjectedReference(); + Assert.assertEquals(2, count); + } + + @Test + public void testStatefulStatelessConversationFromInjectedReference2() { + int count = conversationalStatefulClientStatelessService.runConversationFromInjectedReference2(); + Assert.assertEquals(2, count); + } + + @Test + public void testStatefulStatelessConversationFromServiceReference() { + int count = conversationalStatefulClientStatelessService.runConversationFromServiceReference(); + Assert.assertEquals(2, count); + } + + @Test + public void testStatefulStatelessConversationWithUserDefinedConversationId() { + int count = conversationalStatefulClientStatelessService.runConversationWithUserDefinedConversationId(); + Assert.assertEquals(2, count); + } + + @Test + public void testStatefulStatelessConversationCheckUserDefinedConversationId() { + String conversationId = conversationalStatefulClientStatelessService.runConversationCheckUserDefinedConversationId(); + Assert.assertEquals("MyConversation2", conversationId); + } + + @Test + public void testStatefulStatelessConversationCheckingScope() { + resetCallStack(); + conversationalStatefulClientStatelessService.runConversationCheckingScope(); + Assert.assertEquals("init,initializeCount,destroy,init,incrementCount,destroy,init,retrieveCount,destroy,init,endConversation,destroy,", + ConversationalServiceStatelessImpl.calls.toString()); + } + + @Test + public void testStatefulStatelessConversationWithCallback() { + resetCallStack(); + int count = conversationalStatefulClientStatelessService.runConversationWithCallback(); + Assert.assertEquals(4, count); + + Assert.assertEquals("init,runConversationWithCallback,initializeCount,incrementCount,retrieveCount,endConversation,destroy,", + ConversationalClientStatefulImpl.calls.toString()); + } + + //@Test + public void testStatefulStatelessConversationHavingPassedReference() { + int count = conversationalStatefulClientStatelessService.runConversationHavingPassedReference(); + Assert.assertEquals(3, count); + } + + @Test + public void testStatefulStatelessConversationCallingEndedConversation() { + int count = conversationalStatefulClientStatelessService.runConversationCallingEndedConversation(); + Assert.assertEquals(-999, count); + } + + @Test + public void testStatefulStatelessConversationCallingEndedConversationCallback() { + int count = conversationalStatefulClientStatelessService.runConversationCallingEndedConversationCallback(); + Assert.assertEquals(0, count); + } + + @Test + public void testStatefulStatelessConversationCallingEndedConversationCheckConversationId() { + String id = conversationalStatefulClientStatelessService.runConversationCallingEndedConversationCheckConversationId(); + Assert.assertEquals(null, id); + } + + @Test + public void testStatefulStatelessConversationCallingEndedConversationCallbackCheckConversationId() { + String id = conversationalStatefulClientStatelessService.runConversationCallingEndedConversationCallbackCheckConversationId(); + Assert.assertEquals(null, id); + } + +} diff --git a/tags/java/sca/1.5.1-RC4/itest/conversations-ws/src/test/java/org/apache/tuscany/sca/itest/conversational/StatelessStatefulTestCase.java b/tags/java/sca/1.5.1-RC4/itest/conversations-ws/src/test/java/org/apache/tuscany/sca/itest/conversational/StatelessStatefulTestCase.java new file mode 100644 index 0000000000..fb3a3cec6f --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/conversations-ws/src/test/java/org/apache/tuscany/sca/itest/conversational/StatelessStatefulTestCase.java @@ -0,0 +1,205 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.conversational; + +import java.io.File; + +import junit.framework.Assert; + +import org.apache.tuscany.sca.itest.conversational.impl.ConversationalClientStatefulImpl; +import org.apache.tuscany.sca.itest.conversational.impl.ConversationalClientStatefulNonConversationalCallbackImpl; +import org.apache.tuscany.sca.itest.conversational.impl.ConversationalClientStatelessImpl; +import org.apache.tuscany.sca.itest.conversational.impl.ConversationalServiceStatefulImpl; +import org.apache.tuscany.sca.itest.conversational.impl.ConversationalServiceStatelessImpl; +import org.apache.tuscany.sca.node.SCAClient; +import org.apache.tuscany.sca.node.SCAContribution; +import org.apache.tuscany.sca.node.SCANode; +import org.apache.tuscany.sca.node.SCANodeFactory; +import org.junit.AfterClass; +import org.junit.BeforeClass; +import org.junit.Test; + +public class StatelessStatefulTestCase { + + private static SCANode node; + private static ConversationalClient conversationalStatelessClientStatelessService; + private static ConversationalClient conversationalStatelessClientStatefulService; + private static ConversationalClient conversationalStatefulClientStatelessService; + private static ConversationalClient conversationalStatefulClientStatefulService; + private static ConversationalClient conversationalStatelessClientRequestService; + private static ConversationalClient conversationalStatefulClientNonConversationalCallbackStatelessService; + + @BeforeClass + public static void setUp() throws Exception { + try { + SCANodeFactory nodeFactory = SCANodeFactory.newInstance(); + node = nodeFactory.createSCANode(new File("src/main/resources/Conversational/conversational.composite").toURL().toString(), + new SCAContribution("TestContribution", + new File("src/main/resources/Conversational").toURL().toString())); + + + node.start(); + + conversationalStatelessClientStatelessService = ((SCAClient)node).getService(ConversationalClient.class, + "ConversationalStatelessClientStatelessService"); + + conversationalStatelessClientStatefulService = ((SCAClient)node).getService(ConversationalClient.class, + "ConversationalStatelessClientStatefulService"); + + conversationalStatefulClientStatelessService = ((SCAClient)node).getService(ConversationalClient.class, + "ConversationalStatefulClientStatelessService"); + + conversationalStatefulClientStatefulService = ((SCAClient)node).getService(ConversationalClient.class, + "ConversationalStatefulClientStatefulService"); + conversationalStatelessClientRequestService = ((SCAClient)node).getService(ConversationalClient.class, + "ConversationalStatelessClientRequestService"); + conversationalStatefulClientNonConversationalCallbackStatelessService = ((SCAClient)node).getService(ConversationalClient.class, + "ConversationalStatefulClientNonConversationalCallbackStatefulService"); + + // reset the place where we record the sequence of calls passing + // through each component instance + ConversationalServiceStatelessImpl.calls = new StringBuffer(); + ConversationalServiceStatefulImpl.calls = new StringBuffer(); + ConversationalClientStatelessImpl.calls = new StringBuffer(); + ConversationalClientStatefulImpl.calls = new StringBuffer(); + + } catch(Exception ex) { + System.err.println(ex.toString()); + } + + } + + @AfterClass + public static void tearDown() throws Exception { + node.stop(); + conversationalStatelessClientStatelessService = null; + conversationalStatelessClientStatefulService = null; + conversationalStatefulClientStatelessService = null; + conversationalStatefulClientStatefulService = null; + conversationalStatelessClientRequestService = null; + conversationalStatefulClientNonConversationalCallbackStatelessService = null; + } + + private static void resetCallStack() { + + // reset the place where we record the sequence of calls passing + // through each component instance + ConversationalServiceStatelessImpl.calls = new StringBuffer(); + ConversationalServiceStatefulImpl.calls = new StringBuffer(); + ConversationalClientStatelessImpl.calls = new StringBuffer(); + ConversationalClientStatefulImpl.calls = new StringBuffer(); + ConversationalClientStatefulNonConversationalCallbackImpl.calls = new StringBuffer(); + + } + + // stateless client stateful service tests + // ======================================= + @Test + public void testStatelessStatefulConversationFromInjectedReference() { + int count = conversationalStatelessClientStatefulService.runConversationFromInjectedReference(); + Assert.assertEquals(2, count); + } + + @Test + public void testStatelessStatefulConversationFromInjectedReference2() { + int count = conversationalStatelessClientStatefulService.runConversationFromInjectedReference2(); + Assert.assertEquals(2, count); + } + + @Test + public void testStatelessStatefulConversationFromServiceReference() { + int count = conversationalStatelessClientStatefulService.runConversationFromServiceReference(); + Assert.assertEquals(2, count); + } + + @Test + public void testStatelessStatefulConversationWithUserDefinedConversationId() { + int count = conversationalStatelessClientStatefulService.runConversationWithUserDefinedConversationId(); + Assert.assertEquals(2, count); + } + + @Test + public void testStatelessStatefulConversationCheckUserDefinedConversationId() { + String conversationId = conversationalStatelessClientStatefulService.runConversationCheckUserDefinedConversationId(); + Assert.assertEquals("MyConversation2", conversationId); + } + + @Test + public void testStatelessStatefulConversationCheckingScope() { + resetCallStack(); + conversationalStatelessClientStatefulService.runConversationCheckingScope(); + Assert.assertEquals("init,initializeCount,incrementCount,retrieveCount,endConversation,destroy,", + ConversationalServiceStatefulImpl.calls.toString()); + } + + @Test + public void testStatelessStatefulConversationWithCallback() { + resetCallStack(); + int count = conversationalStatelessClientStatefulService.runConversationWithCallback(); + Assert.assertEquals(0, count); + + Assert.assertEquals("init,runConversationWithCallback,init,initializeCount,destroy,init,incrementCount,destroy,init,retrieveCount,destroy,init,endConversation,destroy,destroy,", + ConversationalClientStatelessImpl.calls.toString()); + } + + //@Test + public void testStatelessStatefulConversationHavingPassedReference() { + int count = conversationalStatelessClientStatefulService.runConversationHavingPassedReference(); + Assert.assertEquals(3, count); + } + + //@Test + public void testStatelessStatefulConversationBusinessException() { + String message = conversationalStatelessClientStatefulService.runConversationBusinessException(); + Assert.assertEquals("Business Exception", message); + } + + //@Test + public void testStatelessStatefulConversationBusinessExceptionCallback() { + String message = conversationalStatelessClientStatefulService.runConversationBusinessExceptionCallback(); + Assert.assertEquals("Business Exception", message); + } + + @Test + public void testStatelessStatefulConversationCallingEndedConversation() { + int count = conversationalStatelessClientStatefulService.runConversationCallingEndedConversation(); + Assert.assertEquals(0, count); + } + + @Test + public void testStatelessStatefulConversationCallingEndedConversationCallback() { + int count = conversationalStatelessClientStatefulService.runConversationCallingEndedConversationCallback(); + Assert.assertEquals(0, count); + } + + @Test + public void testStatelessStatefulConversationCallingEndedConversationCheckConversationId() { + String id = conversationalStatelessClientStatefulService.runConversationCallingEndedConversationCheckConversationId(); + Assert.assertEquals(null, id); + } + + //@Test + public void testStatelessStatefulConversationCallingEndedConversationCallbackCheckConversationId() { + String id = conversationalStatelessClientStatefulService.runConversationCallingEndedConversationCallbackCheckConversationId(); + Assert.assertEquals(null, id); + } + + +} diff --git a/tags/java/sca/1.5.1-RC4/itest/conversations-ws/src/test/java/org/apache/tuscany/sca/itest/conversational/StatelessStatelessTestCase.java b/tags/java/sca/1.5.1-RC4/itest/conversations-ws/src/test/java/org/apache/tuscany/sca/itest/conversational/StatelessStatelessTestCase.java new file mode 100644 index 0000000000..5fbe2c3f69 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/conversations-ws/src/test/java/org/apache/tuscany/sca/itest/conversational/StatelessStatelessTestCase.java @@ -0,0 +1,192 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.conversational; + +import java.io.File; + +import junit.framework.Assert; + +import org.apache.tuscany.sca.itest.conversational.impl.ConversationalClientStatefulImpl; +import org.apache.tuscany.sca.itest.conversational.impl.ConversationalClientStatefulNonConversationalCallbackImpl; +import org.apache.tuscany.sca.itest.conversational.impl.ConversationalClientStatelessImpl; +import org.apache.tuscany.sca.itest.conversational.impl.ConversationalServiceStatefulImpl; +import org.apache.tuscany.sca.itest.conversational.impl.ConversationalServiceStatelessImpl; +import org.apache.tuscany.sca.node.SCAClient; +import org.apache.tuscany.sca.node.SCAContribution; +import org.apache.tuscany.sca.node.SCANode; +import org.apache.tuscany.sca.node.SCANodeFactory; +import org.junit.AfterClass; +import org.junit.BeforeClass; +import org.junit.Test; + +public class StatelessStatelessTestCase { + + private static SCANode node; + private static ConversationalClient conversationalStatelessClientStatelessService; + private static ConversationalClient conversationalStatelessClientStatefulService; + private static ConversationalClient conversationalStatefulClientStatelessService; + private static ConversationalClient conversationalStatefulClientStatefulService; + private static ConversationalClient conversationalStatelessClientRequestService; + private static ConversationalClient conversationalStatefulClientNonConversationalCallbackStatelessService; + + @BeforeClass + public static void setUp() throws Exception { + try { + SCANodeFactory nodeFactory = SCANodeFactory.newInstance(); + node = nodeFactory.createSCANode(new File("src/main/resources/Conversational/conversational.composite").toURL().toString(), + new SCAContribution("TestContribution", + new File("src/main/resources/Conversational").toURL().toString())); + + + node.start(); + + conversationalStatelessClientStatelessService = ((SCAClient)node).getService(ConversationalClient.class, + "ConversationalStatelessClientStatelessService"); + + conversationalStatelessClientStatefulService = ((SCAClient)node).getService(ConversationalClient.class, + "ConversationalStatelessClientStatefulService"); + + conversationalStatefulClientStatelessService = ((SCAClient)node).getService(ConversationalClient.class, + "ConversationalStatefulClientStatelessService"); + + conversationalStatefulClientStatefulService = ((SCAClient)node).getService(ConversationalClient.class, + "ConversationalStatefulClientStatefulService"); + conversationalStatelessClientRequestService = ((SCAClient)node).getService(ConversationalClient.class, + "ConversationalStatelessClientRequestService"); + conversationalStatefulClientNonConversationalCallbackStatelessService = ((SCAClient)node).getService(ConversationalClient.class, + "ConversationalStatefulClientNonConversationalCallbackStatefulService"); + + // reset the place where we record the sequence of calls passing + // through each component instance + ConversationalServiceStatelessImpl.calls = new StringBuffer(); + ConversationalServiceStatefulImpl.calls = new StringBuffer(); + ConversationalClientStatelessImpl.calls = new StringBuffer(); + ConversationalClientStatefulImpl.calls = new StringBuffer(); + + } catch(Exception ex) { + System.err.println(ex.toString()); + } + + } + + @AfterClass + public static void tearDown() throws Exception { + node.stop(); + conversationalStatelessClientStatelessService = null; + conversationalStatelessClientStatefulService = null; + conversationalStatefulClientStatelessService = null; + conversationalStatefulClientStatefulService = null; + conversationalStatelessClientRequestService = null; + conversationalStatefulClientNonConversationalCallbackStatelessService = null; + } + + private static void resetCallStack() { + + // reset the place where we record the sequence of calls passing + // through each component instance + ConversationalServiceStatelessImpl.calls = new StringBuffer(); + ConversationalServiceStatefulImpl.calls = new StringBuffer(); + ConversationalClientStatelessImpl.calls = new StringBuffer(); + ConversationalClientStatefulImpl.calls = new StringBuffer(); + ConversationalClientStatefulNonConversationalCallbackImpl.calls = new StringBuffer(); + + } + + + // stateless client stateless service tests + // ======================================== + + @Test + public void testStatelessStatelessConversationFromInjectedReference() { + int count = conversationalStatelessClientStatelessService.runConversationFromInjectedReference(); + Assert.assertEquals(2, count); + } + + @Test + public void testStatelessStatelessConversationFromInjectedReference2() { + int count = conversationalStatelessClientStatelessService.runConversationFromInjectedReference2(); + Assert.assertEquals(2, count); + } + + @Test + public void testStatelessStatelessConversationFromServiceReference() { + int count = conversationalStatelessClientStatelessService.runConversationFromServiceReference(); + Assert.assertEquals(2, count); + } + + @Test + public void testStatelessStatelessConversationWithUserDefinedConversationId() { + int count = conversationalStatelessClientStatelessService.runConversationWithUserDefinedConversationId(); + Assert.assertEquals(2, count); + } + @Test + public void testStatelessStatelessConversationCheckUserDefinedConversationId() { + String conversationId = conversationalStatelessClientStatelessService.runConversationCheckUserDefinedConversationId(); + Assert.assertEquals("MyConversation2", conversationId); + } + + @Test + public void testStatelessStatelessConversationCheckingScope() { + resetCallStack(); + conversationalStatelessClientStatelessService.runConversationCheckingScope(); + Assert.assertEquals("init,initializeCount,destroy,init,incrementCount,destroy,init,retrieveCount,destroy,init,endConversation,destroy,", + ConversationalServiceStatelessImpl.calls.toString()); + } + + @Test + public void testStatelessStatelessConversationWithCallback() { + resetCallStack(); + int count = conversationalStatelessClientStatelessService.runConversationWithCallback(); + Assert.assertEquals(0, count); + + Assert.assertEquals("init,runConversationWithCallback,init,initializeCount,destroy,init,incrementCount,destroy,init,retrieveCount,destroy,init,endConversation,destroy,destroy,", + ConversationalClientStatelessImpl.calls.toString()); + } + //@Test + public void testStatelessStatelessConversationHavingPassedReference() { + int count = conversationalStatelessClientStatelessService.runConversationHavingPassedReference(); + Assert.assertEquals(3, count); + } + + @Test + public void testStatelessStatelessConversationCallingEndedConversation() { + int count = conversationalStatelessClientStatelessService.runConversationCallingEndedConversation(); + Assert.assertEquals(-999, count); + } + + @Test + public void testStatelessStatelessConversationCallingEndedConversationCallback() { + int count = conversationalStatelessClientStatelessService.runConversationCallingEndedConversationCallback(); + Assert.assertEquals(0, count); + } + + @Test + public void testStatelessStatelessConversationCallingEndedConversationCheckConversationId() { + String id = conversationalStatelessClientStatelessService.runConversationCallingEndedConversationCheckConversationId(); + Assert.assertEquals(null, id); + } + + //@Test + public void testStatelessStatelessConversationCallingEndedConversationCallbackCheckConversationId() { + String id = conversationalStatelessClientStatelessService.runConversationCallingEndedConversationCallbackCheckConversationId(); + Assert.assertEquals(null, id); + } + +} diff --git a/tags/java/sca/1.5.1-RC4/itest/conversations/pom.xml b/tags/java/sca/1.5.1-RC4/itest/conversations/pom.xml new file mode 100644 index 0000000000..f5c80f240a --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/conversations/pom.xml @@ -0,0 +1,45 @@ + + + + 4.0.0 + + org.apache.tuscany.sca + tuscany-itest + 1.5.1 + ../pom.xml + + itest-conversations + Apache Tuscany SCA iTest Conversations + + + + org.apache.tuscany.sca + tuscany-host-embedded + 1.5.1 + + + + org.apache.tuscany.sca + tuscany-implementation-java-runtime + 1.5.1 + runtime + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/conversations/src/main/java/org/apache/tuscany/sca/itest/Record.java b/tags/java/sca/1.5.1-RC4/itest/conversations/src/main/java/org/apache/tuscany/sca/itest/Record.java new file mode 100644 index 0000000000..a3b83dfc14 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/conversations/src/main/java/org/apache/tuscany/sca/itest/Record.java @@ -0,0 +1,29 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.io.Serializable; + +/** + * @version $Rev$ $Date$ + */ +public class Record implements Serializable { + public String id; + public String conversationId; +} diff --git a/tags/java/sca/1.5.1-RC4/itest/conversations/src/main/java/org/apache/tuscany/sca/itest/TestResult.java b/tags/java/sca/1.5.1-RC4/itest/conversations/src/main/java/org/apache/tuscany/sca/itest/TestResult.java new file mode 100644 index 0000000000..8e98b9cbd4 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/conversations/src/main/java/org/apache/tuscany/sca/itest/TestResult.java @@ -0,0 +1,36 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.Hashtable; + +/** + * @version $Rev$ $Date$ + */ +public class TestResult { + public static Hashtable results = new Hashtable(); + private static int completed = 0; + public static synchronized void updateCompleted() { + ++completed; + } + + public static synchronized int getCompleted() { + return completed; + } +} diff --git a/tags/java/sca/1.5.1-RC4/itest/conversations/src/main/java/org/apache/tuscany/sca/itest/conversational/AService.java b/tags/java/sca/1.5.1-RC4/itest/conversations/src/main/java/org/apache/tuscany/sca/itest/conversational/AService.java new file mode 100644 index 0000000000..e7583c339a --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/conversations/src/main/java/org/apache/tuscany/sca/itest/conversational/AService.java @@ -0,0 +1,56 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.conversational; + +import org.osoa.sca.annotations.Conversational; + +/** + * Simple conversational Service that uses another Conversational Service + */ +@Conversational +public interface AService { + + /** + * Returns the state for this service. + * + * @return The state for this service + */ + String getState(); + + /** + * Returns the state for the other service that this service is using + * + * @return The state for the other service that this service is using + */ + String getStateOnB(); + + /** + * Sets the state for this service. + * + * @param aState The state for this service + */ + void setState(String aState); + + /** + * Sets the state for the other service that this service is using + * + * @param aState The state for the other service that this service is using + */ + void setStateOnB(String aState); +} diff --git a/tags/java/sca/1.5.1-RC4/itest/conversations/src/main/java/org/apache/tuscany/sca/itest/conversational/Alpha.java b/tags/java/sca/1.5.1-RC4/itest/conversations/src/main/java/org/apache/tuscany/sca/itest/conversational/Alpha.java new file mode 100644 index 0000000000..bc4a5fc571 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/conversations/src/main/java/org/apache/tuscany/sca/itest/conversational/Alpha.java @@ -0,0 +1,32 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.conversational; + +import org.osoa.sca.annotations.OneWay; +import org.osoa.sca.annotations.Remotable; + +/** + * @version $Rev$ $Date$ + */ + +@Remotable +public interface Alpha { + @OneWay + void run(int param); +} diff --git a/tags/java/sca/1.5.1-RC4/itest/conversations/src/main/java/org/apache/tuscany/sca/itest/conversational/BService.java b/tags/java/sca/1.5.1-RC4/itest/conversations/src/main/java/org/apache/tuscany/sca/itest/conversational/BService.java new file mode 100644 index 0000000000..77d7f4c007 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/conversations/src/main/java/org/apache/tuscany/sca/itest/conversational/BService.java @@ -0,0 +1,42 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.conversational; + +import org.osoa.sca.annotations.Conversational; + +/** + * Simple conversational Service + */ +@Conversational +public interface BService { + + /** + * Returns the state for this service. + * + * @return The state for this service + */ + String getState(); + + /** + * Sets the state for this service. + * + * @param aState The state for this service + */ + void setState(String aState); +} diff --git a/tags/java/sca/1.5.1-RC4/itest/conversations/src/main/java/org/apache/tuscany/sca/itest/conversational/Beta.java b/tags/java/sca/1.5.1-RC4/itest/conversations/src/main/java/org/apache/tuscany/sca/itest/conversational/Beta.java new file mode 100644 index 0000000000..e422938b27 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/conversations/src/main/java/org/apache/tuscany/sca/itest/conversational/Beta.java @@ -0,0 +1,31 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.conversational; + +import org.osoa.sca.CallableReference; +import org.osoa.sca.annotations.Remotable; + +/** + * @version $Rev$ $Date$ + */ + +@Remotable +public interface Beta { + CallableReference getRef(int param); +} diff --git a/tags/java/sca/1.5.1-RC4/itest/conversations/src/main/java/org/apache/tuscany/sca/itest/conversational/CService.java b/tags/java/sca/1.5.1-RC4/itest/conversations/src/main/java/org/apache/tuscany/sca/itest/conversational/CService.java new file mode 100644 index 0000000000..a6dbf56797 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/conversations/src/main/java/org/apache/tuscany/sca/itest/conversational/CService.java @@ -0,0 +1,42 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.conversational; + +import org.osoa.sca.annotations.Conversational; + +/** + * Simple conversational Service that uses another Conversational Service + */ +@Conversational +public interface CService { + + String getState(); + + void setState(String aState); + + Object getConversationID(); + + Object getConversationObjectConversationId(); + + void setConversationID(String theID); + + void endConversation(); + + void endConversationViaAnnotatedMethod(); +} diff --git a/tags/java/sca/1.5.1-RC4/itest/conversations/src/main/java/org/apache/tuscany/sca/itest/conversational/Constants.java b/tags/java/sca/1.5.1-RC4/itest/conversations/src/main/java/org/apache/tuscany/sca/itest/conversational/Constants.java new file mode 100644 index 0000000000..3f04e9f09e --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/conversations/src/main/java/org/apache/tuscany/sca/itest/conversational/Constants.java @@ -0,0 +1,25 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.conversational; + +public interface Constants { + + String A_INITIAL_VALUE = "Initial Value of A"; + String B_INITIAL_VALUE = "Initial Value of B"; +} diff --git a/tags/java/sca/1.5.1-RC4/itest/conversations/src/main/java/org/apache/tuscany/sca/itest/conversational/ConversationIdService.java b/tags/java/sca/1.5.1-RC4/itest/conversations/src/main/java/org/apache/tuscany/sca/itest/conversational/ConversationIdService.java new file mode 100644 index 0000000000..53dadc3dc7 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/conversations/src/main/java/org/apache/tuscany/sca/itest/conversational/ConversationIdService.java @@ -0,0 +1,29 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.conversational; + +import org.osoa.sca.annotations.Conversational; + +@Conversational +public interface ConversationIdService { + + String getCIDField(); + String getCIDSetter(); +} diff --git a/tags/java/sca/1.5.1-RC4/itest/conversations/src/main/java/org/apache/tuscany/sca/itest/conversational/ConversationalCallback.java b/tags/java/sca/1.5.1-RC4/itest/conversations/src/main/java/org/apache/tuscany/sca/itest/conversational/ConversationalCallback.java new file mode 100644 index 0000000000..8cad88d2f4 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/conversations/src/main/java/org/apache/tuscany/sca/itest/conversational/ConversationalCallback.java @@ -0,0 +1,50 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.conversational; + +import org.osoa.sca.annotations.Conversational; +import org.osoa.sca.annotations.EndsConversation; +import org.osoa.sca.annotations.Remotable; + + +/** + * The callback interface used when testing conversational callbacks + * + * @version $Rev: 537240 $ $Date: 2007-05-11 18:35:03 +0100 (Fri, 11 May 2007) $ + */ +@Remotable +@Conversational +public interface ConversationalCallback { + + public void init(); + + public void destroy(); + + public void initializeCount(int count); + + public void incrementCount(); + + public int retrieveCount(); + + public void businessException() throws Exception; + + @EndsConversation + public String endConversation(); + +} diff --git a/tags/java/sca/1.5.1-RC4/itest/conversations/src/main/java/org/apache/tuscany/sca/itest/conversational/ConversationalClient.java b/tags/java/sca/1.5.1-RC4/itest/conversations/src/main/java/org/apache/tuscany/sca/itest/conversational/ConversationalClient.java new file mode 100644 index 0000000000..2532346349 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/conversations/src/main/java/org/apache/tuscany/sca/itest/conversational/ConversationalClient.java @@ -0,0 +1,50 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.conversational; + +import org.osoa.sca.annotations.Remotable; + +/** + * The client for the conversational itest. Is implemented by clients + * offering both stateless and stateful callbacks + * + * @version $Rev: 537240 $ $Date: 2007-05-11 18:35:03 +0100 (Fri, 11 May 2007) $ + */ + +@Remotable +public interface ConversationalClient { + + public int runConversationFromInjectedReference(); + public int runConversationFromInjectedReference2(); + public int runConversationFromServiceReference(); + public int runConversationWithUserDefinedConversationId(); + public String runConversationCheckUserDefinedConversationId(); + public int runConversationCheckingScope(); + public int runConversationWithCallback(); + public int runConversationHavingPassedReference(); + public String runConversationBusinessException(); + public String runConversationBusinessExceptionCallback(); + public int runConversationCallingEndedConversation(); + public int runConversationCallingEndedConversationCallback(); + public String runConversationCallingEndedConversationCheckConversationId(); + public String runConversationCallingEndedConversationCallbackCheckConversationId(); + public int runConversationAgeTimeout(); + public int runConversationIdleTimeout(); + public int runConversationPrincipleError(); +} diff --git a/tags/java/sca/1.5.1-RC4/itest/conversations/src/main/java/org/apache/tuscany/sca/itest/conversational/ConversationalReferenceClient.java b/tags/java/sca/1.5.1-RC4/itest/conversations/src/main/java/org/apache/tuscany/sca/itest/conversational/ConversationalReferenceClient.java new file mode 100644 index 0000000000..8f008fa711 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/conversations/src/main/java/org/apache/tuscany/sca/itest/conversational/ConversationalReferenceClient.java @@ -0,0 +1,36 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.conversational; + +import org.osoa.sca.CallableReference; +import org.osoa.sca.annotations.Remotable; + +/** + * The client that calls into an existing conversation by accepting + * a reference to that conversation + * + * @version $Rev: 537240 $ $Date: 2007-05-11 18:35:03 +0100 (Fri, 11 May 2007) $ + */ + +@Remotable +public interface ConversationalReferenceClient { + + public void incrementCount(CallableReference conversationalService); + +} diff --git a/tags/java/sca/1.5.1-RC4/itest/conversations/src/main/java/org/apache/tuscany/sca/itest/conversational/ConversationalService.java b/tags/java/sca/1.5.1-RC4/itest/conversations/src/main/java/org/apache/tuscany/sca/itest/conversational/ConversationalService.java new file mode 100644 index 0000000000..546382cfd1 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/conversations/src/main/java/org/apache/tuscany/sca/itest/conversational/ConversationalService.java @@ -0,0 +1,62 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.conversational; + +import org.osoa.sca.annotations.Callback; +import org.osoa.sca.annotations.Conversational; +import org.osoa.sca.annotations.EndsConversation; +import org.osoa.sca.annotations.Remotable; + + +/** + * The service interface used when testing conversations + * + * @version $Rev: 537240 $ $Date: 2007-05-11 18:35:03 +0100 (Fri, 11 May 2007) $ + */ +@Remotable +@Conversational +@Callback(ConversationalCallback.class) +public interface ConversationalService { + + public void init(); + + public void destroy(); + + public void initializeCount(int count); + + public void incrementCount(); + + public int retrieveCount(); + + public void businessException() throws Exception; + + public void initializeCountCallback(int count); + + public void incrementCountCallback(); + + public int retrieveCountCallback(); + + public void businessExceptionCallback() throws Exception; + + @EndsConversation + public String endConversation(); + + public String endConversationCallback(); + +} diff --git a/tags/java/sca/1.5.1-RC4/itest/conversations/src/main/java/org/apache/tuscany/sca/itest/conversational/ConversationalServiceNonConversationalCallback.java b/tags/java/sca/1.5.1-RC4/itest/conversations/src/main/java/org/apache/tuscany/sca/itest/conversational/ConversationalServiceNonConversationalCallback.java new file mode 100644 index 0000000000..f1a21cc18f --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/conversations/src/main/java/org/apache/tuscany/sca/itest/conversational/ConversationalServiceNonConversationalCallback.java @@ -0,0 +1,62 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.conversational; + +import org.osoa.sca.annotations.Callback; +import org.osoa.sca.annotations.Conversational; +import org.osoa.sca.annotations.EndsConversation; +import org.osoa.sca.annotations.Remotable; + + +/** + * The service interface used when testing conversations + * + * @version $Rev: 537240 $ $Date: 2007-05-11 18:35:03 +0100 (Fri, 11 May 2007) $ + */ +@Remotable +@Conversational +@Callback(NonConversationalCallback.class) +public interface ConversationalServiceNonConversationalCallback { + + public void init(); + + public void destroy(); + + public void initializeCount(int count); + + public void incrementCount(); + + public int retrieveCount(); + + public void businessException() throws Exception; + + public void initializeCountCallback(int count); + + public void incrementCountCallback(); + + public int retrieveCountCallback(); + + public void businessExceptionCallback() throws Exception; + + @EndsConversation + public String endConversation(); + + public String endConversationCallback(); + +} diff --git a/tags/java/sca/1.5.1-RC4/itest/conversations/src/main/java/org/apache/tuscany/sca/itest/conversational/DService.java b/tags/java/sca/1.5.1-RC4/itest/conversations/src/main/java/org/apache/tuscany/sca/itest/conversational/DService.java new file mode 100644 index 0000000000..74afbfb763 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/conversations/src/main/java/org/apache/tuscany/sca/itest/conversational/DService.java @@ -0,0 +1,46 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.conversational; + +import org.osoa.sca.annotations.Conversational; +import org.osoa.sca.annotations.EndsConversation; + +/** + * Simple conversational Service + */ +@Conversational +public interface DService { + + /** + * Returns the state for this service. + * + * @return The state for this service + */ + String getState(); + + /** + * Sets the state for this service. + * + * @param aState The state for this service + */ + void setState(String aState); + + @EndsConversation + void endConversationViaAnnotatedMethod(); +} diff --git a/tags/java/sca/1.5.1-RC4/itest/conversations/src/main/java/org/apache/tuscany/sca/itest/conversational/Gamma.java b/tags/java/sca/1.5.1-RC4/itest/conversations/src/main/java/org/apache/tuscany/sca/itest/conversational/Gamma.java new file mode 100644 index 0000000000..5f97b16088 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/conversations/src/main/java/org/apache/tuscany/sca/itest/conversational/Gamma.java @@ -0,0 +1,41 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.conversational; + +import org.apache.tuscany.sca.itest.Record; +import org.osoa.sca.annotations.Conversational; +import org.osoa.sca.annotations.EndsConversation; +import org.osoa.sca.annotations.Remotable; + +/** + * @version $Rev$ $Date$ + */ + +@Remotable +@Conversational +public interface Gamma { + void start(int param); + + boolean hasNext(); + + Record next(); + + @EndsConversation + void stop(); +} diff --git a/tags/java/sca/1.5.1-RC4/itest/conversations/src/main/java/org/apache/tuscany/sca/itest/conversational/NonConversationalCallback.java b/tags/java/sca/1.5.1-RC4/itest/conversations/src/main/java/org/apache/tuscany/sca/itest/conversational/NonConversationalCallback.java new file mode 100644 index 0000000000..3ce3e3ada7 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/conversations/src/main/java/org/apache/tuscany/sca/itest/conversational/NonConversationalCallback.java @@ -0,0 +1,46 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.conversational; + +import org.osoa.sca.annotations.Remotable; + + +/** + * The callback interface used when testing conversational callbacks + * + * @version $Rev: 537240 $ $Date: 2007-05-11 18:35:03 +0100 (Fri, 11 May 2007) $ + */ +@Remotable +public interface NonConversationalCallback { + + public void init(); + + public void destroy(); + + public void initializeCount(int count); + + public void incrementCount(); + + public int retrieveCount(); + + public void businessException() throws Exception; + + public String endConversation(); + +} diff --git a/tags/java/sca/1.5.1-RC4/itest/conversations/src/main/java/org/apache/tuscany/sca/itest/conversational/impl/AServiceImpl.java b/tags/java/sca/1.5.1-RC4/itest/conversations/src/main/java/org/apache/tuscany/sca/itest/conversational/impl/AServiceImpl.java new file mode 100644 index 0000000000..95c9c7ae6e --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/conversations/src/main/java/org/apache/tuscany/sca/itest/conversational/impl/AServiceImpl.java @@ -0,0 +1,111 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.conversational.impl; + +import java.lang.reflect.Proxy; +import org.apache.tuscany.sca.core.invocation.JDKInvocationHandler; + +import org.apache.tuscany.sca.itest.conversational.AService; +import org.apache.tuscany.sca.itest.conversational.BService; +import org.apache.tuscany.sca.itest.conversational.Constants; +import org.osoa.sca.annotations.ConversationID; +import org.osoa.sca.annotations.Reference; +import org.osoa.sca.annotations.Scope; +import org.osoa.sca.annotations.Service; + +/** + * Simple conversational Service that uses another Conversational Service + */ +@Service(AService.class) +@Scope("CONVERSATION") +public class AServiceImpl implements AService { + + /** + * The state + */ + private String state = Constants.A_INITIAL_VALUE; + + /** + * The reference to the other service + */ + private BService b; + + /** + * Constructor + * + */ + public AServiceImpl() { + System.out.println("---> AServiceImpl constructor for " + this); + } + + /** + * Inject the reference to the other service + * @param aB The other service. + */ + @Reference(name="b") + public void setB(BService aB) { + System.out.println("---> Setting reference to B on " + this + " to " + aB); + this.b = aB; + } + + /** + * Returns the state for this service. + * + * @return The state for this service + */ + public String getState() { + return state; + } + + /** + * Returns the state for the other service that this service is using + * + * @return The state for the other service that this service is using + */ + public String getStateOnB() { + return b.getState(); + } + + /** + * Sets the state for this service. + * + * @param aState The state for this service + */ + public void setState(String aState) { + this.state = aState; + } + + /** + * Sets the state for the other service that this service is using + * + * @param aState The state for the other service that this service is using + */ + public void setStateOnB(String aState) { + b.setState(aState); + } + + /** + * Sets the conversation ID for this service + * @param id The Conversation ID + */ + @ConversationID + public void setConversationID(String id) { + System.out.println("Conversation ID for " + this + " is set to " + id); + } +} diff --git a/tags/java/sca/1.5.1-RC4/itest/conversations/src/main/java/org/apache/tuscany/sca/itest/conversational/impl/AlphaImpl.java b/tags/java/sca/1.5.1-RC4/itest/conversations/src/main/java/org/apache/tuscany/sca/itest/conversational/impl/AlphaImpl.java new file mode 100644 index 0000000000..a5f37f7a52 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/conversations/src/main/java/org/apache/tuscany/sca/itest/conversational/impl/AlphaImpl.java @@ -0,0 +1,70 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.conversational.impl; + +import org.apache.tuscany.sca.itest.Record; +import org.apache.tuscany.sca.itest.TestResult; +import org.apache.tuscany.sca.itest.conversational.Alpha; +import org.apache.tuscany.sca.itest.conversational.Beta; +import org.apache.tuscany.sca.itest.conversational.Gamma; +import org.osoa.sca.CallableReference; +import org.osoa.sca.ComponentContext; +import org.osoa.sca.annotations.Context; +import org.osoa.sca.annotations.Reference; +import org.osoa.sca.annotations.Scope; +import org.osoa.sca.annotations.Service; + +/** + * @version $Rev$ $Date$ + */ + +@Service(Alpha.class) +@Scope("COMPOSITE") +public class AlphaImpl implements Alpha { + @Reference + public Beta beta; + + @Context + protected ComponentContext componentContext; + + public void run(int param) { + CallableReference gammaRef = null; + boolean testPassed = true; + try { + gammaRef = beta.getRef(param); + while (gammaRef.getService().hasNext()) { + Record record = gammaRef.getService().next(); + if (!record.conversationId.equals(gammaRef.getConversation().getConversationID())) { + // Record returned is not from this conversation. + testPassed = false; + } + } + } catch (Exception ex) { + testPassed = false; + ex.printStackTrace(); + } finally { + TestResult.updateCompleted(); + if (gammaRef != null) { + TestResult.results.put(gammaRef.getConversation() + .getConversationID(), testPassed); + gammaRef.getService().stop(); + } + } + } +} diff --git a/tags/java/sca/1.5.1-RC4/itest/conversations/src/main/java/org/apache/tuscany/sca/itest/conversational/impl/BServiceImpl.java b/tags/java/sca/1.5.1-RC4/itest/conversations/src/main/java/org/apache/tuscany/sca/itest/conversational/impl/BServiceImpl.java new file mode 100644 index 0000000000..c1e27641ef --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/conversations/src/main/java/org/apache/tuscany/sca/itest/conversational/impl/BServiceImpl.java @@ -0,0 +1,73 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.conversational.impl; + + +import org.apache.tuscany.sca.itest.conversational.BService; +import org.apache.tuscany.sca.itest.conversational.Constants; +import org.osoa.sca.annotations.ConversationID; +import org.osoa.sca.annotations.Scope; +import org.osoa.sca.annotations.Service; + +/** + * Simple conversational Service + */ +@Service(BService.class) +@Scope("CONVERSATION") +public class BServiceImpl implements BService { + + /** + * The state for this service + */ + private String state = Constants.B_INITIAL_VALUE; + + /** + * Constructor + */ + public BServiceImpl() { + System.out.println("---> BServiceImpl constructor for " + this); + } + + /** + * Returns the state for this service. + * + * @return The state for this service + */ + public String getState() { + return state; + } + + /** + * Sets the state for this service. + * + * @param aState The state for this service + */ + public void setState(String aState) { + this.state = aState; + } + + /** + * Sets the conversation ID for this service + * @param id The Conversation ID + */ + @ConversationID + public void setConversationID(String id) { + System.out.println("Conversation ID for " + this + " is set to " + id); + } +} diff --git a/tags/java/sca/1.5.1-RC4/itest/conversations/src/main/java/org/apache/tuscany/sca/itest/conversational/impl/BetaImpl.java b/tags/java/sca/1.5.1-RC4/itest/conversations/src/main/java/org/apache/tuscany/sca/itest/conversational/impl/BetaImpl.java new file mode 100644 index 0000000000..900b8f743f --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/conversations/src/main/java/org/apache/tuscany/sca/itest/conversational/impl/BetaImpl.java @@ -0,0 +1,51 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.conversational.impl; + +import org.apache.tuscany.sca.itest.conversational.Beta; +import org.apache.tuscany.sca.itest.conversational.Gamma; +import org.osoa.sca.CallableReference; +import org.osoa.sca.ComponentContext; +import org.osoa.sca.ServiceReference; +import org.osoa.sca.annotations.Context; +import org.osoa.sca.annotations.Reference; +import org.osoa.sca.annotations.Scope; +import org.osoa.sca.annotations.Service; + +/** + * @version $Rev$ $Date$ + */ + +@Service(Beta.class) +@Scope("COMPOSITE") +public class BetaImpl implements Beta { + @Context + protected ComponentContext componentContext; + + @Reference + public Gamma gamma; + + public CallableReference getRef(int param) { + ServiceReference gammaRef = componentContext + .getServiceReference(Gamma.class, "gamma"); + Gamma g = gammaRef.getService(); + g.start(param); + return gammaRef; + } +} diff --git a/tags/java/sca/1.5.1-RC4/itest/conversations/src/main/java/org/apache/tuscany/sca/itest/conversational/impl/CServiceImpl.java b/tags/java/sca/1.5.1-RC4/itest/conversations/src/main/java/org/apache/tuscany/sca/itest/conversational/impl/CServiceImpl.java new file mode 100644 index 0000000000..b21f956bd9 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/conversations/src/main/java/org/apache/tuscany/sca/itest/conversational/impl/CServiceImpl.java @@ -0,0 +1,85 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.conversational.impl; + +import org.apache.tuscany.sca.itest.conversational.CService; +import org.apache.tuscany.sca.itest.conversational.DService; +import org.osoa.sca.ServiceReference; +import org.osoa.sca.annotations.Reference; +import org.osoa.sca.annotations.Scope; +import org.osoa.sca.annotations.Service; + +/** + * Simple conversational Service that uses another Conversational Service + */ +@Service(CService.class) +@Scope("CONVERSATION") +public class CServiceImpl implements CService { + + private ServiceReference dServiceRef; + + @Reference(name = "d") + public void setD(ServiceReference servRef) { + this.dServiceRef = servRef; + } + + public String getState() { + return dServiceRef.getService().getState(); + } + + public void setState(String aState) { + dServiceRef.getService().setState(aState); + } + + + /* + * When the coversationId is set manually the client may access the + * conversation id that will be used by the reference using + * ServiceReference.getConversationId() + */ + public Object getConversationID() { + return dServiceRef.getConversationID(); + } + + /* + * Whether the conversation ID is chosen by the client or is generated by + * the system, the client may access the conversation ID by calling + * Conversation.getConversationID(). + */ + public Object getConversationObjectConversationId() { + // TODO Auto-generated method stub + if (dServiceRef.getConversation() != null){ + return dServiceRef.getConversation().getConversationID(); + } else { + return null; + } + } + + public void endConversation() { + dServiceRef.getConversation().end(); + } + + public void endConversationViaAnnotatedMethod() { + dServiceRef.getService().endConversationViaAnnotatedMethod(); + } + + public void setConversationID(String theID) { + dServiceRef.setConversationID(theID); + } +} diff --git a/tags/java/sca/1.5.1-RC4/itest/conversations/src/main/java/org/apache/tuscany/sca/itest/conversational/impl/ConversationAgeComponentImpl.java b/tags/java/sca/1.5.1-RC4/itest/conversations/src/main/java/org/apache/tuscany/sca/itest/conversational/impl/ConversationAgeComponentImpl.java new file mode 100644 index 0000000000..9deef312ac --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/conversations/src/main/java/org/apache/tuscany/sca/itest/conversational/impl/ConversationAgeComponentImpl.java @@ -0,0 +1,75 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.conversational.impl; + +import org.apache.tuscany.sca.itest.conversational.ConversationalService; +import org.osoa.sca.annotations.ConversationAttributes; +import org.osoa.sca.annotations.Scope; +import org.osoa.sca.annotations.Service; + +@Service(ConversationalService.class) +@Scope("CONVERSATION") +@ConversationAttributes(maxAge="1 seconds") +public class ConversationAgeComponentImpl implements ConversationalService { + + private int count; + + public void businessException() throws Exception { + } + + public void businessExceptionCallback() throws Exception { + } + + public void destroy() { + } + + public String endConversation() { + return null; + } + + public String endConversationCallback() { + return null; + } + + public void incrementCount() { + } + + public void incrementCountCallback() { + } + + public void init() { + } + + public void initializeCount(int count) { + this.count = count; + } + + public void initializeCountCallback(int count) { + } + + public int retrieveCount() { + return count; + } + + public int retrieveCountCallback() { + return 0; + } + +} diff --git a/tags/java/sca/1.5.1-RC4/itest/conversations/src/main/java/org/apache/tuscany/sca/itest/conversational/impl/ConversationIdComponentImpl.java b/tags/java/sca/1.5.1-RC4/itest/conversations/src/main/java/org/apache/tuscany/sca/itest/conversational/impl/ConversationIdComponentImpl.java new file mode 100644 index 0000000000..cffa76186a --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/conversations/src/main/java/org/apache/tuscany/sca/itest/conversational/impl/ConversationIdComponentImpl.java @@ -0,0 +1,48 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.conversational.impl; + +import org.apache.tuscany.sca.itest.conversational.ConversationIdService; +import org.osoa.sca.annotations.ConversationID; +import org.osoa.sca.annotations.Scope; +import org.osoa.sca.annotations.Service; + +@Service(ConversationIdService.class) +@Scope("CONVERSATION") +public class ConversationIdComponentImpl implements ConversationIdService { + + @ConversationID + public String cid; + + private String setterCid; + + public String getCIDField() { + return cid; + } + public String getCIDSetter() { + return setterCid; + } + + + @ConversationID + public void setCID(String cid) { + this.setterCid = cid; + } +} diff --git a/tags/java/sca/1.5.1-RC4/itest/conversations/src/main/java/org/apache/tuscany/sca/itest/conversational/impl/ConversationMaxIdleComponentImpl.java b/tags/java/sca/1.5.1-RC4/itest/conversations/src/main/java/org/apache/tuscany/sca/itest/conversational/impl/ConversationMaxIdleComponentImpl.java new file mode 100644 index 0000000000..1272c7ab7f --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/conversations/src/main/java/org/apache/tuscany/sca/itest/conversational/impl/ConversationMaxIdleComponentImpl.java @@ -0,0 +1,75 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.conversational.impl; + +import org.apache.tuscany.sca.itest.conversational.ConversationalService; +import org.osoa.sca.annotations.ConversationAttributes; +import org.osoa.sca.annotations.Scope; +import org.osoa.sca.annotations.Service; + +@Service(ConversationalService.class) +@Scope("CONVERSATION") +@ConversationAttributes(maxIdleTime="1 seconds") +public class ConversationMaxIdleComponentImpl implements ConversationalService { + + private int count; + + public void businessException() throws Exception { + } + + public void businessExceptionCallback() throws Exception { + } + + public void destroy() { + } + + public String endConversation() { + return null; + } + + public String endConversationCallback() { + return null; + } + + public void incrementCount() { + } + + public void incrementCountCallback() { + } + + public void init() { + } + + public void initializeCount(int count) { + this.count = count; + } + + public void initializeCountCallback(int count) { + } + + public int retrieveCount() { + return count; + } + + public int retrieveCountCallback() { + return 0; + } + +} diff --git a/tags/java/sca/1.5.1-RC4/itest/conversations/src/main/java/org/apache/tuscany/sca/itest/conversational/impl/ConversationalClientStatefulImpl.java b/tags/java/sca/1.5.1-RC4/itest/conversations/src/main/java/org/apache/tuscany/sca/itest/conversational/impl/ConversationalClientStatefulImpl.java new file mode 100644 index 0000000000..847b038881 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/conversations/src/main/java/org/apache/tuscany/sca/itest/conversational/impl/ConversationalClientStatefulImpl.java @@ -0,0 +1,321 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.conversational.impl; + +import org.apache.tuscany.sca.itest.conversational.ConversationalCallback; +import org.apache.tuscany.sca.itest.conversational.ConversationalClient; +import org.apache.tuscany.sca.itest.conversational.ConversationalReferenceClient; +import org.apache.tuscany.sca.itest.conversational.ConversationalService; +import org.osoa.sca.ComponentContext; +import org.osoa.sca.ServiceReference; +import org.osoa.sca.annotations.Context; +import org.osoa.sca.annotations.ConversationAttributes; +import org.osoa.sca.annotations.Destroy; +import org.osoa.sca.annotations.Init; +import org.osoa.sca.annotations.Reference; +import org.osoa.sca.annotations.Scope; +import org.osoa.sca.annotations.Service; + +/** + * The client for the conversational itest which presents a stateful + * callback interface + * + * @version $Rev: 537240 $ $Date: 2007-05-11 18:35:03 +0100 (Fri, 11 May 2007) $ + */ + +@Service(interfaces={ConversationalClient.class}) +@Scope("CONVERSATION") +@ConversationAttributes(maxAge="10 minutes", + maxIdleTime="5 minutes", + singlePrincipal=false) +public class ConversationalClientStatefulImpl implements ConversationalClient, ConversationalCallback { + + @Context + protected ComponentContext componentContext; + + @Reference + protected ConversationalService conversationalService; + + @Reference + protected ConversationalService conversationalService2; + + @Reference + protected ConversationalReferenceClient conversationalReferenceClient; + + private int clientCount = 0; + private int callbackCount = 0; + + + // a static member variable that records the number of times this service is called + public static StringBuffer calls = new StringBuffer(); + + // From ConversationalClient + public int runConversationFromInjectedReference(){ + calls.append("runConversationFromInjectedReference,"); + conversationalService.initializeCount(1); + conversationalService.incrementCount(); + clientCount = conversationalService.retrieveCount(); + conversationalService.endConversation(); + + return clientCount; + } + public int runConversationFromInjectedReference2(){ + calls.append("runConversationFromInjectedReference2,"); + + conversationalService2.initializeCount(1); + conversationalService2.incrementCount(); + + // stick in a call to the first reference to + // make sure the two references don't clash + conversationalService.initializeCount(1); + + clientCount = conversationalService2.retrieveCount(); + conversationalService2.endConversation(); + + // end the conversation through the first reference + conversationalService.endConversation(); + + return clientCount; + } + public int runConversationFromServiceReference(){ + calls.append("runConversationFromServiceReference,"); + ServiceReference serviceReference = componentContext.getServiceReference(ConversationalService.class, + "conversationalService"); + ConversationalService callableReference = serviceReference.getService(); + + callableReference.initializeCount(1); + callableReference.incrementCount(); + clientCount = callableReference.retrieveCount(); + callableReference.endConversation(); + + // serviceReference.getConversation().end(); + + return clientCount; + } + public int runConversationWithUserDefinedConversationId(){ + calls.append("runConversationWithUserDefinedConversationId,"); + ServiceReference serviceReference = componentContext.getServiceReference(ConversationalService.class, + "conversationalService"); + serviceReference.setConversationID("MyConversation1"); + + ConversationalService callableReference = serviceReference.getService(); + + callableReference.initializeCount(1); + callableReference.incrementCount(); + clientCount = callableReference.retrieveCount(); + callableReference.endConversation(); + + // serviceReference.getConversation().end(); + + return clientCount; + } + public String runConversationCheckUserDefinedConversationId(){ + calls.append("runConversationCheckUserDefinedConversationId,"); + ServiceReference serviceReference = componentContext.getServiceReference(ConversationalService.class, + "conversationalService"); + serviceReference.setConversationID("MyConversation2"); + + ConversationalService callableReference = serviceReference.getService(); + + callableReference.initializeCount(1); + callableReference.incrementCount(); + clientCount = callableReference.retrieveCount(); + + String clientConversationId = serviceReference.getConversationID().toString(); + String serverConversationId = callableReference.endConversation(); + + if (clientConversationId.equals("MyConversation2") && + serverConversationId.equals("MyConversation2") ) { + return clientConversationId; + } else { + return "client = " + clientConversationId + + "server = " + serverConversationId; + } + + } + public int runConversationCheckingScope(){ + calls.append("runConversationCheckingScope,"); + // run a conversation + return runConversationFromInjectedReference(); + + // test will then use a static method to find out how many times + // init/destroy were called + } + public int runConversationWithCallback(){ + calls.append("runConversationWithCallback,"); + callbackCount = 2; + conversationalService.initializeCountCallback(1); + conversationalService.incrementCountCallback(); + clientCount = conversationalService.retrieveCountCallback(); + conversationalService.endConversationCallback(); + + return clientCount; + } + public int runConversationHavingPassedReference(){ + calls.append("runConversationHavingPassedReference,"); + ServiceReference serviceReference = componentContext.getServiceReference(ConversationalService.class, + "conversationalService"); + ConversationalService callableReference = serviceReference.getService(); + + callableReference.initializeCount(1); + callableReference.incrementCount(); + conversationalReferenceClient.incrementCount(serviceReference); + clientCount = callableReference.retrieveCount(); + callableReference.endConversation(); + + serviceReference.getConversation().end(); + + return clientCount; + } + public String runConversationBusinessException(){ + calls.append("runConversationbusinessException,"); + try { + conversationalService.initializeCount(1); + conversationalService.businessException(); + clientCount = conversationalService.retrieveCount(); + conversationalService.endConversation(); + } catch(Exception ex) { + return ex.getMessage(); + } + + return "No Exception Returned"; + } + + public String runConversationBusinessExceptionCallback(){ + calls.append("runConversationbusinessExceptionCallback,"); + try { + conversationalService.initializeCountCallback(1); + conversationalService.businessExceptionCallback(); + clientCount = conversationalService.retrieveCountCallback(); + conversationalService.endConversationCallback(); + } catch(Exception ex) { + return ex.getMessage(); + } + + return "No Exception Returned"; + } + + public int runConversationCallingEndedConversation(){ + calls.append("runConversationCallingEndedConversation,"); + conversationalService.initializeCount(1); + conversationalService.endConversation(); + return conversationalService.retrieveCount(); + } + + public int runConversationCallingEndedConversationCallback(){ + calls.append("runConversationCallingEndedConversationCallback,"); + conversationalService.initializeCountCallback(1); + conversationalService.endConversationCallback(); + return conversationalService.retrieveCountCallback(); + } + + public String runConversationCallingEndedConversationCheckConversationId(){ + calls.append("runConversationCallingEndedConversationCheckConversationId,"); + ServiceReference serviceReference = componentContext.getServiceReference(ConversationalService.class, + "conversationalService"); + serviceReference.setConversationID("MyConversation3"); + + ConversationalService callableReference = serviceReference.getService(); + + callableReference.initializeCount(1); + callableReference.incrementCount(); + clientCount = callableReference.retrieveCount(); + callableReference.endConversation(); + + if (serviceReference.getConversation() ==null ) { + return null; + } else { + return serviceReference.getConversation().getConversationID().toString(); + } + } + + public String runConversationCallingEndedConversationCallbackCheckConversationId(){ + calls.append("runConversationCallingEndedConversationCallbackCheckConversationId,"); + ServiceReference serviceReference = componentContext.getServiceReference(ConversationalService.class, + "conversationalService"); + serviceReference.setConversationID("MyConversation3"); + + ConversationalService callableReference = serviceReference.getService(); + + callableReference.initializeCount(1); + callableReference.incrementCount(); + clientCount = callableReference.retrieveCount(); + callableReference.endConversationCallback(); + + if (serviceReference.getConversation() ==null ) { + return null; + } else { + return serviceReference.getConversation().getConversationID().toString(); + } + } + + public int runConversationAgeTimeout(){ + calls.append("runConversationAgeTimeout,"); + // done in other testing + return clientCount; + } + public int runConversationIdleTimeout(){ + calls.append("runConversationIdleTimeout,"); + // done in other testing + return clientCount; + } + public int runConversationPrincipleError(){ + calls.append("runConversationPrincipleError,"); + // TODO - when policy framework is done + return clientCount; + } + + + // From ConversationalCallback + @Init + public void init(){ + calls.append("init,"); + } + + @Destroy + public void destroy(){ + calls.append("destroy,"); + } + + public void initializeCount(int count){ + calls.append("initializeCount,"); + callbackCount += count; + } + + public void incrementCount(){ + calls.append("incrementCount,"); + callbackCount++; + } + + public int retrieveCount(){ + calls.append("retrieveCount,"); + return callbackCount; + } + + public void businessException() throws Exception { + throw new Exception("Business Exception"); + } + + public String endConversation(){ + calls.append("endConversation,"); + callbackCount = 0; + return null; + } + +} diff --git a/tags/java/sca/1.5.1-RC4/itest/conversations/src/main/java/org/apache/tuscany/sca/itest/conversational/impl/ConversationalClientStatefulNonConversationalCallbackImpl.java b/tags/java/sca/1.5.1-RC4/itest/conversations/src/main/java/org/apache/tuscany/sca/itest/conversational/impl/ConversationalClientStatefulNonConversationalCallbackImpl.java new file mode 100644 index 0000000000..b77e4c0194 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/conversations/src/main/java/org/apache/tuscany/sca/itest/conversational/impl/ConversationalClientStatefulNonConversationalCallbackImpl.java @@ -0,0 +1,310 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.conversational.impl; + +import org.apache.tuscany.sca.itest.conversational.ConversationalClient; +import org.apache.tuscany.sca.itest.conversational.ConversationalReferenceClient; +import org.apache.tuscany.sca.itest.conversational.ConversationalService; +import org.apache.tuscany.sca.itest.conversational.NonConversationalCallback; +import org.osoa.sca.ComponentContext; +import org.osoa.sca.ServiceReference; +import org.osoa.sca.annotations.Context; +import org.osoa.sca.annotations.ConversationAttributes; +import org.osoa.sca.annotations.Destroy; +import org.osoa.sca.annotations.Init; +import org.osoa.sca.annotations.Reference; +import org.osoa.sca.annotations.Scope; +import org.osoa.sca.annotations.Service; + +/** + * The client for the conversational itest which presents a stateful + * callback interface + * + * @version $Rev: 537240 $ $Date: 2007-05-11 18:35:03 +0100 (Fri, 11 May 2007) $ + */ + +@Service(interfaces={ConversationalClient.class}) +@Scope("CONVERSATION") +@ConversationAttributes(maxAge="10 minutes", + maxIdleTime="5 minutes", + singlePrincipal=false) +public class ConversationalClientStatefulNonConversationalCallbackImpl implements ConversationalClient, NonConversationalCallback { + + @Context + protected ComponentContext componentContext; + + @Reference + protected ConversationalService conversationalService; + + @Reference + protected ConversationalService conversationalService2; + + @Reference + protected ConversationalReferenceClient conversationalReferenceClient; + + private int clientCount = 0; + private int callbackCount = 0; + + + // a static member variable that records the number of times this service is called + public static StringBuffer calls = new StringBuffer(); + + // From ConversationalClient + public int runConversationFromInjectedReference(){ + calls.append("runConversationFromInjectedReference,"); + conversationalService.initializeCount(1); + conversationalService.incrementCount(); + clientCount = conversationalService.retrieveCount(); + conversationalService.endConversation(); + + return clientCount; + } + public int runConversationFromInjectedReference2(){ + calls.append("runConversationFromInjectedReference2,"); + + conversationalService2.initializeCount(1); + conversationalService2.incrementCount(); + + // stick in a call to the first reference to + // make sure the two references don't clash + conversationalService.initializeCount(1); + + clientCount = conversationalService2.retrieveCount(); + conversationalService2.endConversation(); + + // end the conversation through the first reference + conversationalService.endConversation(); + + return clientCount; + } + public int runConversationFromServiceReference(){ + calls.append("runConversationFromServiceReference,"); + ServiceReference serviceReference = componentContext.getServiceReference(ConversationalService.class, + "conversationalService"); + ConversationalService callableReference = serviceReference.getService(); + + callableReference.initializeCount(1); + callableReference.incrementCount(); + clientCount = callableReference.retrieveCount(); + callableReference.endConversation(); + + // serviceReference.getConversation().end(); + + return clientCount; + } + public int runConversationWithUserDefinedConversationId(){ + calls.append("runConversationWithUserDefinedConversationId,"); + ServiceReference serviceReference = componentContext.getServiceReference(ConversationalService.class, + "conversationalService"); + serviceReference.setConversationID("MyConversation1"); + + ConversationalService callableReference = serviceReference.getService(); + + callableReference.initializeCount(1); + callableReference.incrementCount(); + clientCount = callableReference.retrieveCount(); + callableReference.endConversation(); + + // serviceReference.getConversation().end(); + + return clientCount; + } + public String runConversationCheckUserDefinedConversationId(){ + calls.append("runConversationCheckUserDefinedConversationId,"); + ServiceReference serviceReference = componentContext.getServiceReference(ConversationalService.class, + "conversationalService"); + serviceReference.setConversationID("MyConversation2"); + + ConversationalService callableReference = serviceReference.getService(); + + callableReference.initializeCount(1); + callableReference.incrementCount(); + clientCount = callableReference.retrieveCount(); + return callableReference.endConversation(); + + } + public int runConversationCheckingScope(){ + calls.append("runConversationCheckingScope,"); + // run a conversation + return runConversationFromInjectedReference(); + + // test will then use a static method to find out how many times + // init/destroy were called + } + public int runConversationWithCallback(){ + calls.append("runConversationWithCallback,"); + callbackCount = 2; + conversationalService.initializeCountCallback(1); + conversationalService.incrementCountCallback(); + clientCount = conversationalService.retrieveCountCallback(); + conversationalService.endConversationCallback(); + + return clientCount; + } + public int runConversationHavingPassedReference(){ + calls.append("runConversationHavingPassedReference,"); + ServiceReference serviceReference = componentContext.getServiceReference(ConversationalService.class, + "conversationalService"); + ConversationalService callableReference = serviceReference.getService(); + + callableReference.initializeCount(1); + callableReference.incrementCount(); + conversationalReferenceClient.incrementCount(serviceReference); + clientCount = callableReference.retrieveCount(); + callableReference.endConversation(); + + // serviceReference.getConversation().end(); + + return clientCount; + } + public String runConversationBusinessException(){ + calls.append("runConversationbusinessException,"); + try { + conversationalService.initializeCount(1); + conversationalService.businessException(); + clientCount = conversationalService.retrieveCount(); + conversationalService.endConversation(); + } catch(Exception ex) { + return ex.getMessage(); + } + + return "No Exception Returned"; + } + + public String runConversationBusinessExceptionCallback(){ + calls.append("runConversationbusinessExceptionCallback,"); + try { + conversationalService.initializeCountCallback(1); + conversationalService.businessExceptionCallback(); + clientCount = conversationalService.retrieveCountCallback(); + conversationalService.endConversationCallback(); + } catch(Exception ex) { + return ex.getMessage(); + } + + return "No Exception Returned"; + } + + public String runConversationCallingEndedConversationCheckConversationId(){ + calls.append("runConversationCallingEndedConversationCheckConversationId,"); + ServiceReference serviceReference = componentContext.getServiceReference(ConversationalService.class, + "conversationalService"); + serviceReference.setConversationID("MyConversation3"); + + ConversationalService callableReference = serviceReference.getService(); + + callableReference.initializeCount(1); + callableReference.incrementCount(); + clientCount = callableReference.retrieveCount(); + callableReference.endConversation(); + + if (serviceReference.getConversation() ==null ) { + return null; + } else { + return serviceReference.getConversation().getConversationID().toString(); + } + } + + public String runConversationCallingEndedConversationCallbackCheckConversationId(){ + calls.append("runConversationCallingEndedConversationCallbackCheckConversationId,"); + ServiceReference serviceReference = componentContext.getServiceReference(ConversationalService.class, + "conversationalService"); + serviceReference.setConversationID("MyConversation3"); + + ConversationalService callableReference = serviceReference.getService(); + + callableReference.initializeCount(1); + callableReference.incrementCount(); + clientCount = callableReference.retrieveCount(); + callableReference.endConversationCallback(); + + if (serviceReference.getConversation() ==null ) { + return null; + } else { + return serviceReference.getConversation().getConversationID().toString(); + } + } + + public int runConversationCallingEndedConversation(){ + calls.append("runConversationCallingEndedConversation,"); + conversationalService.initializeCount(1); + conversationalService.endConversation(); + return conversationalService.retrieveCount(); + } + + public int runConversationCallingEndedConversationCallback(){ + calls.append("runConversationCallingEndedConversationCallback,"); + conversationalService.initializeCountCallback(1); + conversationalService.endConversationCallback(); + return conversationalService.retrieveCountCallback(); + } + + public int runConversationAgeTimeout(){ + calls.append("runConversationAgeTimeout,"); + // done in other testing + return clientCount; + } + public int runConversationIdleTimeout(){ + calls.append("runConversationIdleTimeout,"); + // done in other testing + return clientCount; + } + public int runConversationPrincipleError(){ + calls.append("runConversationPrincipleError,"); + // TODO - when policy framework is done + return clientCount; + } + + + // From ConversationalCallback + @Init + public void init(){ + calls.append("init,"); + } + + @Destroy + public void destroy(){ + calls.append("destroy,"); + } + + public void initializeCount(int count){ + calls.append("initializeCount,"); + callbackCount += count; + } + + public void incrementCount(){ + calls.append("incrementCount,"); + callbackCount++; + } + + public int retrieveCount(){ + calls.append("retrieveCount,"); + return callbackCount; + } + + public void businessException() throws Exception { + throw new Exception("Business Exception"); + } + + public String endConversation(){ + calls.append("endConversation,"); + return null; + } + +} diff --git a/tags/java/sca/1.5.1-RC4/itest/conversations/src/main/java/org/apache/tuscany/sca/itest/conversational/impl/ConversationalClientStatelessImpl.java b/tags/java/sca/1.5.1-RC4/itest/conversations/src/main/java/org/apache/tuscany/sca/itest/conversational/impl/ConversationalClientStatelessImpl.java new file mode 100644 index 0000000000..5b3906fc2c --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/conversations/src/main/java/org/apache/tuscany/sca/itest/conversational/impl/ConversationalClientStatelessImpl.java @@ -0,0 +1,317 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.conversational.impl; + +import org.apache.tuscany.sca.itest.conversational.ConversationalCallback; +import org.apache.tuscany.sca.itest.conversational.ConversationalClient; +import org.apache.tuscany.sca.itest.conversational.ConversationalReferenceClient; +import org.apache.tuscany.sca.itest.conversational.ConversationalService; +import org.osoa.sca.ComponentContext; +import org.osoa.sca.ServiceReference; +import org.osoa.sca.annotations.Context; +import org.osoa.sca.annotations.Destroy; +import org.osoa.sca.annotations.Init; +import org.osoa.sca.annotations.Reference; +import org.osoa.sca.annotations.Service; + +/** + * The client for the conversational itest which presents a stateful + * callback interface + * + * @version $Rev: 537240 $ $Date: 2007-05-11 18:35:03 +0100 (Fri, 11 May 2007) $ + */ + +@Service(interfaces={ConversationalClient.class}) +public class ConversationalClientStatelessImpl implements ConversationalClient, ConversationalCallback { + + @Context + protected ComponentContext componentContext; + + @Reference + protected ConversationalService conversationalService; + + @Reference + protected ConversationalService conversationalService2; + + @Reference + protected ConversationalReferenceClient conversationalReferenceClient; + + private int clientCount = 0; + private int callbackCount = 0; + + // a static member variable that records the number of times this service is called + public static StringBuffer calls = new StringBuffer(); + + // From ConversationalClient + public int runConversationFromInjectedReference(){ + calls.append("runConversationFromInjectedReference,"); + conversationalService.initializeCount(1); + conversationalService.incrementCount(); + clientCount = conversationalService.retrieveCount(); + conversationalService.endConversation(); + + return clientCount; + } + public int runConversationFromInjectedReference2(){ + calls.append("runConversationFromInjectedReference2,"); + + // now test the second reference + conversationalService2.initializeCount(1); + conversationalService2.incrementCount(); + + // stick in a call to the first reference to + // make sure the two references don't clash + conversationalService.initializeCount(1); + + clientCount = conversationalService2.retrieveCount(); + conversationalService2.endConversation(); + + // end the conversation through the first reference + conversationalService.endConversation(); + + return clientCount; + } + public int runConversationFromServiceReference(){ + calls.append("runConversationFromServiceReference,"); + ServiceReference serviceReference = componentContext.getServiceReference(ConversationalService.class, + "conversationalService"); + ConversationalService callableReference = serviceReference.getService(); + + callableReference.initializeCount(1); + callableReference.incrementCount(); + clientCount = callableReference.retrieveCount(); + callableReference.endConversation(); + + // serviceReference.getConversation().end(); + + return clientCount; + } + public int runConversationWithUserDefinedConversationId(){ + calls.append("runConversationWithUserDefinedConversationId,"); + ServiceReference serviceReference = componentContext.getServiceReference(ConversationalService.class, + "conversationalService"); + serviceReference.setConversationID("MyConversation1"); + + ConversationalService callableReference = serviceReference.getService(); + + callableReference.initializeCount(1); + callableReference.incrementCount(); + clientCount = callableReference.retrieveCount(); + callableReference.endConversation(); + + // serviceReference.getConversation().end(); + + return clientCount; + } + public String runConversationCheckUserDefinedConversationId(){ + calls.append("runConversationCheckUserDefinedConversationId,"); + ServiceReference serviceReference = componentContext.getServiceReference(ConversationalService.class, + "conversationalService"); + serviceReference.setConversationID("MyConversation2"); + + ConversationalService callableReference = serviceReference.getService(); + + callableReference.initializeCount(1); + callableReference.incrementCount(); + clientCount = callableReference.retrieveCount(); + + String clientConversationId = serviceReference.getConversationID().toString(); + String serverConfersationId = callableReference.endConversation(); + + if (clientConversationId.equals("MyConversation2") && + serverConfersationId.equals("MyConversation2") ) { + return clientConversationId; + } else { + return "client = " + clientConversationId + + "server = " + serverConfersationId; + } + } + public int runConversationCheckingScope(){ + calls.append("runConversationCheckingScope,"); + // run a conversation + return runConversationFromInjectedReference(); + + // test will then use a static method to find out how many times + // init/destroy were called + } + public int runConversationWithCallback(){ + calls.append("runConversationWithCallback,"); + conversationalService.initializeCountCallback(1); + conversationalService.incrementCountCallback(); + clientCount = conversationalService.retrieveCountCallback(); + conversationalService.endConversationCallback(); + + return clientCount; + } + + public int runConversationHavingPassedReference(){ + calls.append("runConversationHavingPassedReference,"); + ServiceReference serviceReference = componentContext.getServiceReference(ConversationalService.class, + "conversationalService"); + ConversationalService callableReference = serviceReference.getService(); + + callableReference.initializeCount(1); + callableReference.incrementCount(); + conversationalReferenceClient.incrementCount(serviceReference); + clientCount = callableReference.retrieveCount(); + callableReference.endConversation(); + + serviceReference.getConversation().end(); + + return clientCount; + } + + public String runConversationBusinessException(){ + calls.append("runConversationbusinessException,"); + try { + conversationalService.initializeCount(1); + conversationalService.businessException(); + clientCount = conversationalService.retrieveCount(); + conversationalService.endConversation(); + } catch(Exception ex) { + return ex.getMessage(); + } + + return "No Exception Returned"; + } + + public String runConversationBusinessExceptionCallback(){ + calls.append("runConversationbusinessExceptionCallback,"); + try { + conversationalService.initializeCountCallback(1); + conversationalService.businessExceptionCallback(); + clientCount = conversationalService.retrieveCountCallback(); + conversationalService.endConversationCallback(); + } catch(Exception ex) { + return ex.getMessage(); + } + + return "No Exception Returned"; + } + + public int runConversationCallingEndedConversation(){ + calls.append("runConversationCallingEndedConversation,"); + conversationalService.initializeCount(1); + conversationalService.endConversation(); + return conversationalService.retrieveCount(); + } + + public int runConversationCallingEndedConversationCallback(){ + calls.append("runConversationCallingEndedConversationCallback,"); + conversationalService.initializeCountCallback(1); + conversationalService.endConversationCallback(); + return conversationalService.retrieveCountCallback(); + } + + public String runConversationCallingEndedConversationCheckConversationId(){ + calls.append("runConversationCallingEndedConversationCheckConversationId,"); + ServiceReference serviceReference = componentContext.getServiceReference(ConversationalService.class, + "conversationalService"); + serviceReference.setConversationID("MyConversation3"); + + ConversationalService callableReference = serviceReference.getService(); + + callableReference.initializeCount(1); + callableReference.incrementCount(); + clientCount = callableReference.retrieveCount(); + callableReference.endConversation(); + + if (serviceReference.getConversation() ==null ) { + return null; + } else { + return serviceReference.getConversation().getConversationID().toString(); + } + } + + public String runConversationCallingEndedConversationCallbackCheckConversationId(){ + calls.append("runConversationCallingEndedConversationCallbackCheckConversationId,"); + ServiceReference serviceReference = componentContext.getServiceReference(ConversationalService.class, + "conversationalService"); + serviceReference.setConversationID("MyConversation3"); + + ConversationalService callableReference = serviceReference.getService(); + + callableReference.initializeCount(1); + callableReference.incrementCount(); + clientCount = callableReference.retrieveCount(); + callableReference.endConversationCallback(); + + if (serviceReference.getConversation() ==null ) { + return null; + } else { + return serviceReference.getConversation().getConversationID().toString(); + } + } + + public int runConversationAgeTimeout(){ + calls.append("runConversationAgeTimeout,"); + // done in other testing + return clientCount; + } + public int runConversationIdleTimeout(){ + calls.append("runConversationIdleTimeout,"); + // done in other testing + return clientCount; + } + public int runConversationPrincipleError(){ + calls.append("runConversationPrincipleError,"); + // TODO - when policy framework is done + return clientCount; + } + + + // From ConversationalCallback + @Init + public void init(){ + calls.append("init,"); + + } + + @Destroy + public void destroy(){ + calls.append("destroy,"); + + } + + public void initializeCount(int count){ + calls.append("initializeCount,"); + callbackCount = 0; + } + + public void incrementCount(){ + calls.append("incrementCount,"); + callbackCount++; + } + + public int retrieveCount(){ + calls.append("retrieveCount,"); + return callbackCount; + } + + public void businessException() throws Exception { + throw new Exception("Business Exception"); + } + + public String endConversation(){ + calls.append("endConversation,"); + callbackCount = 0; + return null; + } + +} diff --git a/tags/java/sca/1.5.1-RC4/itest/conversations/src/main/java/org/apache/tuscany/sca/itest/conversational/impl/ConversationalReferenceClientImpl.java b/tags/java/sca/1.5.1-RC4/itest/conversations/src/main/java/org/apache/tuscany/sca/itest/conversational/impl/ConversationalReferenceClientImpl.java new file mode 100644 index 0000000000..8fe7c5b6ba --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/conversations/src/main/java/org/apache/tuscany/sca/itest/conversational/impl/ConversationalReferenceClientImpl.java @@ -0,0 +1,43 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.conversational.impl; + +import org.apache.tuscany.sca.itest.conversational.ConversationalReferenceClient; +import org.apache.tuscany.sca.itest.conversational.ConversationalService; +import org.osoa.sca.CallableReference; +import org.osoa.sca.annotations.Service; + +/** + * A client component that accepts a reference to an ongoing conversation + * and takes part in that conversation + * + * @version $Rev: 537240 $ $Date: 2007-05-11 18:35:03 +0100 (Fri, 11 May 2007) $ + */ + +@Service(interfaces={ConversationalReferenceClient.class}) +public class ConversationalReferenceClientImpl implements ConversationalReferenceClient{ + + public void incrementCount(CallableReference conversationalService){ + ConversationalService callableReference = conversationalService.getService(); + + callableReference.incrementCount(); + } + + +} diff --git a/tags/java/sca/1.5.1-RC4/itest/conversations/src/main/java/org/apache/tuscany/sca/itest/conversational/impl/ConversationalServiceRequestImpl.java b/tags/java/sca/1.5.1-RC4/itest/conversations/src/main/java/org/apache/tuscany/sca/itest/conversational/impl/ConversationalServiceRequestImpl.java new file mode 100644 index 0000000000..9a25f0f59a --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/conversations/src/main/java/org/apache/tuscany/sca/itest/conversational/impl/ConversationalServiceRequestImpl.java @@ -0,0 +1,123 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.conversational.impl; + +import java.util.HashMap; + +import org.apache.tuscany.sca.itest.conversational.ConversationalCallback; +import org.apache.tuscany.sca.itest.conversational.ConversationalService; +import org.osoa.sca.annotations.Callback; +import org.osoa.sca.annotations.ConversationID; +import org.osoa.sca.annotations.Destroy; +import org.osoa.sca.annotations.Init; +import org.osoa.sca.annotations.Scope; +import org.osoa.sca.annotations.Service; + + +/** + * The service used when testing stateful conversations + * + * @version $Rev: 537240 $ $Date: 2007-05-11 18:35:03 +0100 (Fri, 11 May 2007) $ + */ +@Service(ConversationalService.class) +@Scope("REQUEST") +public class ConversationalServiceRequestImpl implements ConversationalService { + + @ConversationID + protected String conversationId; + + @Callback + protected ConversationalCallback conversationalCallback; + + // static area in which to hold conversational data + private static HashMap conversationalState = new HashMap(); + + // a static member variable that records the number of times this service is called + public static StringBuffer calls = new StringBuffer(); + + @Init + public void init(){ + calls.append("init,"); + } + + @Destroy + public void destroy(){ + calls.append("destroy,"); + } + + public void initializeCount(int count){ + calls.append("initializeCount,"); + Integer conversationalCount = new Integer(count); + conversationalState.put(conversationId, conversationalCount); + } + + public void incrementCount(){ + calls.append("incrementCount,"); + Integer conversationalCount = conversationalState.get(conversationId); + conversationalCount++; + conversationalState.put(conversationId, conversationalCount); + } + + public int retrieveCount(){ + calls.append("retrieveCount,"); + Integer count = conversationalState.get(conversationId); + if (count != null){ + return count.intValue(); + } else { + return -999; + } + } + + public void businessException() throws Exception { + throw new Exception("Business Exception"); + } + + public void initializeCountCallback(int count){ + calls.append("initializeCountCallback,"); + initializeCount(count); + conversationalCallback.initializeCount(count); + } + + public void incrementCountCallback(){ + calls.append("incrementCountCallback,"); + incrementCount(); + conversationalCallback.incrementCount(); + } + + public int retrieveCountCallback(){ + calls.append("retrieveCountCallback,"); + return conversationalCallback.retrieveCount(); + } + + public void businessExceptionCallback() throws Exception { + calls.append("businessExceptionCallback,"); + conversationalCallback.businessException(); + } + + public String endConversation(){ + calls.append("endConversation,"); + conversationalState.remove(conversationId); + return conversationId; + } + + public String endConversationCallback(){ + calls.append("endConversationCallback,"); + return conversationalCallback.endConversation(); + } +} diff --git a/tags/java/sca/1.5.1-RC4/itest/conversations/src/main/java/org/apache/tuscany/sca/itest/conversational/impl/ConversationalServiceStatefulImpl.java b/tags/java/sca/1.5.1-RC4/itest/conversations/src/main/java/org/apache/tuscany/sca/itest/conversational/impl/ConversationalServiceStatefulImpl.java new file mode 100644 index 0000000000..efcbdff06f --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/conversations/src/main/java/org/apache/tuscany/sca/itest/conversational/impl/ConversationalServiceStatefulImpl.java @@ -0,0 +1,117 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.conversational.impl; + +import org.apache.tuscany.sca.itest.conversational.ConversationalCallback; +import org.apache.tuscany.sca.itest.conversational.ConversationalService; +import org.osoa.sca.annotations.Callback; +import org.osoa.sca.annotations.ConversationAttributes; +import org.osoa.sca.annotations.ConversationID; +import org.osoa.sca.annotations.Destroy; +import org.osoa.sca.annotations.Init; +import org.osoa.sca.annotations.Scope; +import org.osoa.sca.annotations.Service; + + +/** + * The service used when testing stateful conversations + * + * @version $Rev: 537240 $ $Date: 2007-05-11 18:35:03 +0100 (Fri, 11 May 2007) $ + */ +@Service(ConversationalService.class) +@Scope("CONVERSATION") +@ConversationAttributes(maxAge="10 minutes", + maxIdleTime="5 minutes", + singlePrincipal=false) +public class ConversationalServiceStatefulImpl implements ConversationalService { + + @ConversationID + protected String conversationId; + + @Callback + protected ConversationalCallback conversationalCallback; + + // local count - accumulates during the conversation + private int count = 0; + + // a static member variable that records the number of times this service is called + public static StringBuffer calls = new StringBuffer(); + + @Init + public void init(){ + calls.append("init,"); + } + + @Destroy + public void destroy(){ + calls.append("destroy,"); + } + + public void initializeCount(int count){ + calls.append("initializeCount,"); + this.count = count; + } + + public void incrementCount(){ + calls.append("incrementCount,"); + count++; + } + + public int retrieveCount(){ + calls.append("retrieveCount,"); + return count; + } + + public void businessException() throws Exception { + throw new Exception("Business Exception"); + } + + public void initializeCountCallback(int count){ + calls.append("initializeCountCallback,"); + this.count = count; + conversationalCallback.initializeCount(count); + } + + public void incrementCountCallback(){ + calls.append("incrementCountCallback,"); + count++; + conversationalCallback.incrementCount(); + } + + public int retrieveCountCallback(){ + calls.append("retrieveCountCallback,"); + return conversationalCallback.retrieveCount(); + } + + public void businessExceptionCallback() throws Exception { + calls.append("businessExceptionCallback,"); + conversationalCallback.businessException(); + } + + public String endConversation(){ + calls.append("endConversation,"); + count = 0; + return conversationId; + } + + public String endConversationCallback(){ + calls.append("endConversationCallback,"); + return conversationalCallback.endConversation(); + } +} diff --git a/tags/java/sca/1.5.1-RC4/itest/conversations/src/main/java/org/apache/tuscany/sca/itest/conversational/impl/ConversationalServiceStatefulNonConversationalCallbackImpl.java b/tags/java/sca/1.5.1-RC4/itest/conversations/src/main/java/org/apache/tuscany/sca/itest/conversational/impl/ConversationalServiceStatefulNonConversationalCallbackImpl.java new file mode 100644 index 0000000000..8454b3846b --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/conversations/src/main/java/org/apache/tuscany/sca/itest/conversational/impl/ConversationalServiceStatefulNonConversationalCallbackImpl.java @@ -0,0 +1,117 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.conversational.impl; + +import org.apache.tuscany.sca.itest.conversational.ConversationalServiceNonConversationalCallback; +import org.apache.tuscany.sca.itest.conversational.NonConversationalCallback; +import org.osoa.sca.annotations.Callback; +import org.osoa.sca.annotations.ConversationAttributes; +import org.osoa.sca.annotations.ConversationID; +import org.osoa.sca.annotations.Destroy; +import org.osoa.sca.annotations.Init; +import org.osoa.sca.annotations.Scope; +import org.osoa.sca.annotations.Service; + + +/** + * The service used when testing stateful conversations + * + * @version $Rev: 537240 $ $Date: 2007-05-11 18:35:03 +0100 (Fri, 11 May 2007) $ + */ +@Service(ConversationalServiceNonConversationalCallback.class) +@Scope("CONVERSATION") +@ConversationAttributes(maxAge="10 minutes", + maxIdleTime="5 minutes", + singlePrincipal=false) +public class ConversationalServiceStatefulNonConversationalCallbackImpl implements ConversationalServiceNonConversationalCallback { + + @ConversationID + protected String conversationId; + + @Callback + protected NonConversationalCallback nonConversationalCallback; + + // local count - accumulates during the conversation + private int count = 0; + + // a static member variable that records the number of times this service is called + public static StringBuffer calls = new StringBuffer(); + + @Init + public void init(){ + calls.append("init,"); + } + + @Destroy + public void destroy(){ + calls.append("destroy,"); + } + + public void initializeCount(int count){ + calls.append("initializeCount,"); + this.count = count; + } + + public void incrementCount(){ + calls.append("incrementCount,"); + count++; + } + + public int retrieveCount(){ + calls.append("retrieveCount,"); + return count; + } + + public void businessException() throws Exception { + throw new Exception("Business Exception"); + } + + public void initializeCountCallback(int count){ + calls.append("initializeCountCallback,"); + this.count = count; + nonConversationalCallback.initializeCount(count); + } + + public void incrementCountCallback(){ + calls.append("incrementCountCallback,"); + count++; + nonConversationalCallback.incrementCount(); + } + + public int retrieveCountCallback(){ + calls.append("retrieveCountCallback,"); + return nonConversationalCallback.retrieveCount(); + } + + public void businessExceptionCallback() throws Exception { + calls.append("businessExceptionCallback,"); + nonConversationalCallback.businessException(); + } + + public String endConversation(){ + calls.append("endConversation,"); + count = 0; + return conversationId; + } + + public String endConversationCallback(){ + calls.append("endConversationCallback,"); + return nonConversationalCallback.endConversation(); + } +} diff --git a/tags/java/sca/1.5.1-RC4/itest/conversations/src/main/java/org/apache/tuscany/sca/itest/conversational/impl/ConversationalServiceStatelessImpl.java b/tags/java/sca/1.5.1-RC4/itest/conversations/src/main/java/org/apache/tuscany/sca/itest/conversational/impl/ConversationalServiceStatelessImpl.java new file mode 100644 index 0000000000..07186c91e1 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/conversations/src/main/java/org/apache/tuscany/sca/itest/conversational/impl/ConversationalServiceStatelessImpl.java @@ -0,0 +1,123 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.conversational.impl; + +import java.util.HashMap; + +import org.apache.tuscany.sca.itest.conversational.ConversationalCallback; +import org.apache.tuscany.sca.itest.conversational.ConversationalService; +import org.osoa.sca.annotations.Callback; +import org.osoa.sca.annotations.ConversationID; +import org.osoa.sca.annotations.Destroy; +import org.osoa.sca.annotations.Init; +import org.osoa.sca.annotations.Scope; +import org.osoa.sca.annotations.Service; + + +/** + * The service used when testing stateful conversations + * + * @version $Rev: 537240 $ $Date: 2007-05-11 18:35:03 +0100 (Fri, 11 May 2007) $ + */ +@Service(ConversationalService.class) +@Scope("STATELESS") +public class ConversationalServiceStatelessImpl implements ConversationalService { + + @ConversationID + protected String conversationId; + + @Callback + protected ConversationalCallback conversationalCallback; + + // static area in which to hold conversational data + private static HashMap conversationalState = new HashMap(); + + // a static member variable that records the number of times this service is called + public static StringBuffer calls = new StringBuffer(); + + @Init + public void init(){ + calls.append("init,"); + } + + @Destroy + public void destroy(){ + calls.append("destroy,"); + } + + public void initializeCount(int count){ + calls.append("initializeCount,"); + Integer conversationalCount = new Integer(count); + conversationalState.put(conversationId, conversationalCount); + } + + public void incrementCount(){ + calls.append("incrementCount,"); + Integer conversationalCount = conversationalState.get(conversationId); + conversationalCount++; + conversationalState.put(conversationId, conversationalCount); + } + + public int retrieveCount(){ + calls.append("retrieveCount,"); + Integer count = conversationalState.get(conversationId); + if (count != null){ + return count.intValue(); + } else { + return -999; + } + } + + public void businessException() throws Exception { + throw new Exception("Business Exception"); + } + + public void initializeCountCallback(int count){ + calls.append("initializeCountCallback,"); + initializeCount(count); + conversationalCallback.initializeCount(count); + } + + public void incrementCountCallback(){ + calls.append("incrementCountCallback,"); + incrementCount(); + conversationalCallback.incrementCount(); + } + + public int retrieveCountCallback(){ + calls.append("retrieveCountCallback,"); + return conversationalCallback.retrieveCount(); + } + + public void businessExceptionCallback() throws Exception { + calls.append("businessExceptionCallback,"); + conversationalCallback.businessException(); + } + + public String endConversation(){ + calls.append("endConversation,"); + conversationalState.remove(conversationId); + return conversationId; + } + + public String endConversationCallback(){ + calls.append("endConversationCallback,"); + return conversationalCallback.endConversation(); + } +} diff --git a/tags/java/sca/1.5.1-RC4/itest/conversations/src/main/java/org/apache/tuscany/sca/itest/conversational/impl/ConversationalServiceStatelessScopeImpl.java b/tags/java/sca/1.5.1-RC4/itest/conversations/src/main/java/org/apache/tuscany/sca/itest/conversational/impl/ConversationalServiceStatelessScopeImpl.java new file mode 100644 index 0000000000..344aa99dff --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/conversations/src/main/java/org/apache/tuscany/sca/itest/conversational/impl/ConversationalServiceStatelessScopeImpl.java @@ -0,0 +1,93 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.conversational.impl; + +import java.util.HashMap; +import java.util.Map; + +import org.apache.tuscany.sca.itest.conversational.ConversationalService; +import org.osoa.sca.annotations.ConversationID; +import org.osoa.sca.annotations.Service; + +@Service(ConversationalService.class) +public class ConversationalServiceStatelessScopeImpl implements ConversationalService { + + @ConversationID + protected String cid; + + static Map state = new HashMap(); + + public void destroy() { + // TODO Auto-generated method stub + + } + + public String endConversation() { + state.remove(cid); + return cid; + } + + public String endConversationCallback() { + // TODO Auto-generated method stub + return null; + + } + + public void incrementCount() { + state.put(cid, Integer.valueOf(state.get(cid)+1)); + } + + public void businessException() throws Exception { + throw new Exception("Business Exception"); + } + + public void incrementCountCallback() { + // TODO Auto-generated method stub + + } + + public void init() { + // TODO Auto-generated method stub + + } + + public void initializeCount(int count) { + state.put(cid, Integer.valueOf(count)); + } + + public void initializeCountCallback(int count) { + // TODO Auto-generated method stub + + } + + public void businessExceptionCallback() throws Exception { + throw new Exception("Business Exception"); + } + + public int retrieveCount() { + return state.get(cid); + } + + public int retrieveCountCallback() { + // TODO Auto-generated method stub + return 0; + } + +} diff --git a/tags/java/sca/1.5.1-RC4/itest/conversations/src/main/java/org/apache/tuscany/sca/itest/conversational/impl/DServiceImpl.java b/tags/java/sca/1.5.1-RC4/itest/conversations/src/main/java/org/apache/tuscany/sca/itest/conversational/impl/DServiceImpl.java new file mode 100644 index 0000000000..8d79bb75e8 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/conversations/src/main/java/org/apache/tuscany/sca/itest/conversational/impl/DServiceImpl.java @@ -0,0 +1,71 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.conversational.impl; + + +import org.apache.tuscany.sca.itest.conversational.Constants; +import org.apache.tuscany.sca.itest.conversational.DService; +import org.osoa.sca.annotations.ConversationID; +import org.osoa.sca.annotations.EndsConversation; +import org.osoa.sca.annotations.Scope; +import org.osoa.sca.annotations.Service; + +/** + * Simple conversational Service + */ +@Service(DService.class) +@Scope("CONVERSATION") +public class DServiceImpl implements DService { + + /** + * The state for this service + */ + private String state = "Initial state value"; + + /** + * Returns the state for this service. + * + * @return The state for this service + */ + public String getState() { + return state; + } + + /** + * Sets the state for this service. + * + * @param aState The state for this service + */ + public void setState(String aState) { + this.state = aState; + } + + /** + * Sets the conversation ID for this service + * @param id The Conversation ID + */ + @ConversationID + public void setConversationID(String id) { + System.out.println ("Setting conversation ID at service = " + id ); + } + + public void endConversationViaAnnotatedMethod() { + System.out.println ("Annotated Ends Conversation"); + } +} diff --git a/tags/java/sca/1.5.1-RC4/itest/conversations/src/main/java/org/apache/tuscany/sca/itest/conversational/impl/GammaImpl.java b/tags/java/sca/1.5.1-RC4/itest/conversations/src/main/java/org/apache/tuscany/sca/itest/conversational/impl/GammaImpl.java new file mode 100644 index 0000000000..d1b769216b --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/conversations/src/main/java/org/apache/tuscany/sca/itest/conversational/impl/GammaImpl.java @@ -0,0 +1,66 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.conversational.impl; + +import java.util.ArrayList; + +import org.apache.tuscany.sca.itest.Record; +import org.apache.tuscany.sca.itest.conversational.Gamma; +import org.osoa.sca.annotations.ConversationID; +import org.osoa.sca.annotations.Scope; +import org.osoa.sca.annotations.Service; + +/** + * @version $Rev$ $Date$ + */ + +@Service(Gamma.class) +@Scope("CONVERSATION") +public class GammaImpl implements Gamma { + @ConversationID + public String conversationId; + + private ArrayList list; + + public void start(int param) { + list = new ArrayList(); + fillList(param, conversationId); + } + + public boolean hasNext() { + return !list.isEmpty(); + } + + public Record next() { + return list.remove(0); + } + + public void stop() { + list = null; + } + + private void fillList(int param, String cid) { + for (int i = 0; i < param; i++) { + Record record = new Record(); + record.id = "id_" + i; + record.conversationId = cid; + list.add(record); + } + } +} diff --git a/tags/java/sca/1.5.1-RC4/itest/conversations/src/main/resources/ConversationAge.composite b/tags/java/sca/1.5.1-RC4/itest/conversations/src/main/resources/ConversationAge.composite new file mode 100644 index 0000000000..abd1c35ced --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/conversations/src/main/resources/ConversationAge.composite @@ -0,0 +1,31 @@ + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/conversations/src/main/resources/ConversationUniqueId.composite b/tags/java/sca/1.5.1-RC4/itest/conversations/src/main/resources/ConversationUniqueId.composite new file mode 100644 index 0000000000..831449a079 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/conversations/src/main/resources/ConversationUniqueId.composite @@ -0,0 +1,53 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/conversations/src/main/resources/conversationId.composite b/tags/java/sca/1.5.1-RC4/itest/conversations/src/main/resources/conversationId.composite new file mode 100644 index 0000000000..e61eb08194 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/conversations/src/main/resources/conversationId.composite @@ -0,0 +1,27 @@ + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/conversations/src/main/resources/conversationLifetime.composite b/tags/java/sca/1.5.1-RC4/itest/conversations/src/main/resources/conversationLifetime.composite new file mode 100644 index 0000000000..3b79dc43d9 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/conversations/src/main/resources/conversationLifetime.composite @@ -0,0 +1,33 @@ + + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/conversations/src/main/resources/conversational.composite b/tags/java/sca/1.5.1-RC4/itest/conversations/src/main/resources/conversational.composite new file mode 100644 index 0000000000..4da3ce74d5 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/conversations/src/main/resources/conversational.composite @@ -0,0 +1,99 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/conversations/src/test/java/org/apache/tuscany/sca/itest/conversational/ConversationIdTestCase.java b/tags/java/sca/1.5.1-RC4/itest/conversations/src/test/java/org/apache/tuscany/sca/itest/conversational/ConversationIdTestCase.java new file mode 100644 index 0000000000..3e750bdd1e --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/conversations/src/test/java/org/apache/tuscany/sca/itest/conversational/ConversationIdTestCase.java @@ -0,0 +1,54 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.conversational; + + +import org.apache.tuscany.sca.host.embedded.SCADomain; +import org.junit.After; +import org.junit.Assert; +import org.junit.Before; +import org.junit.Test; + +public class ConversationIdTestCase { + + private SCADomain domain; + + @Before + public void setUp() throws Exception { + domain = SCADomain.newInstance("conversationId.composite"); + + } + + @After + public void tearDown() throws Exception { + if (domain != null) { + domain.close(); + } + } + + @Test + public void testConversationId() { + ConversationIdService service = + domain.getService(ConversationIdService.class, "ConversationIdComponent"); + Assert.assertNotNull(service.getCIDField()); + Assert.assertNotNull(service.getCIDSetter()); + } + +} diff --git a/tags/java/sca/1.5.1-RC4/itest/conversations/src/test/java/org/apache/tuscany/sca/itest/conversational/ConversationLifetimeTestCase.java b/tags/java/sca/1.5.1-RC4/itest/conversations/src/test/java/org/apache/tuscany/sca/itest/conversational/ConversationLifetimeTestCase.java new file mode 100644 index 0000000000..326a833a42 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/conversations/src/test/java/org/apache/tuscany/sca/itest/conversational/ConversationLifetimeTestCase.java @@ -0,0 +1,203 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.conversational; + +import org.apache.tuscany.sca.host.embedded.SCADomain; +import org.junit.After; +import org.junit.Assert; +import org.junit.Before; +import org.junit.Test; + +public class ConversationLifetimeTestCase { + + private SCADomain domain; + + @Before + public void setUp() throws Exception { + domain = SCADomain.newInstance("conversationLifetime.composite"); + } + + @After + public void tearDown() throws Exception { + if (domain != null) { + domain.close(); + } + } + + /** + * Following a clarification re. the wording of the Java Common Annotations and APIs 1.00 Specification + * (see TUSCANY-2055) the following is accepted to be the intended operation + * + * Whether the conversation ID is chosen by the user or is generated by the system, the client + * may access the conversation ID by calling getConversationID() on the current conversation object. + * + * ServiceReference.getConversationID() - Returns the id supplied by the user that will be associated with + * future conversations initiated through this reference, or null if no ID has been set by the user. + * + * ServiceReference.setConversationID(Object conversationId) - Set an ID, supplied by the user, to associate with any future conversation + * started through this reference. If the value supplied is null then the id will be generated + * by the implementation. Throws an IllegalStateException if a conversation is currently + * associated with this reference. + * + */ + + /** + * Verify that ServiceReference.getConversationID() returns null before a conversation + * ID has been set manually. + */ + @Test + public void getConversationID() { + CService service = domain.getService(CService.class, "ConversationalCComponent"); + service.getState(); + Assert.assertNull(service.getConversationID()); + } + + /** + * Verify that ServiceReference.getConversationID() returns any value previous set through the + * setConversationID() API. + */ + @Test + public void getConversationID2() { + String userProvidedID = "A conversation ID"; + CService service = domain.getService(CService.class, "ConversationalCComponent"); + service.setConversationID(userProvidedID); + service.getState(); + Assert.assertEquals(service.getConversationID(), userProvidedID); + } + + /** + * Whether the conversation ID is chosen by the user or is generated by the system, the client + * may access the conversation ID by calling getConversationID() on the current conversation object. + * Here test the manually set conversationID + */ + @Test + public void getConversationID3() { + String userProvidedID = "A conversation ID"; + CService service = domain.getService(CService.class, "ConversationalCComponent"); + service.setConversationID(userProvidedID); + service.getState(); + Assert.assertEquals(service.getConversationObjectConversationId(), userProvidedID); + } + + /** + * Whether the conversation ID is chosen by the user or is generated by the system, the client + * may access the conversation ID by calling getConversationID() on the current conversation object. + * Here test the auto generated conversationId + */ + @Test + public void getConversationID4() { + CService service = domain.getService(CService.class, "ConversationalCComponent"); + service.getState(); + Assert.assertNotNull(service.getConversationObjectConversationId()); + } + + /** + * Java Common Annotations and APIs 1.00 Specification line 494-495 Verify: + * If a method is invoked on a service reference after an + * "@EndsConversation" method has been called then a new conversation will + * automatically be started. + */ + @Test + public void implicitStartNewConversationAfterEnd() { + CService service = domain.getService(CService.class, "ConversationalCComponent"); + service.getState(); + Object firstID = service.getConversationObjectConversationId(); + service.endConversationViaAnnotatedMethod(); + service.getState(); + Assert.assertNotSame(firstID, service.getConversationObjectConversationId()); + } + + /** + * Java Common Annotations and APIs 1.00 Specification line 495-495 Verify: If a + * method is invoked on a service reference after an "@EndsConversation" + * method has been called then a new conversation will automatically be + * started. Note: Uses Conversation.end() rather than "@EndsConversation" + */ + @Test + public void implicitStartNewConversationAfterEnd2() { + CService service = domain.getService(CService.class, "ConversationalCComponent"); + service.getState(); + Object firstID = service.getConversationObjectConversationId(); + service.endConversation(); + service.getState(); + Assert.assertNotSame(firstID, service.getConversationObjectConversationId()); + } + + /** + * Java Common Annotations and APIs 1.00 Specification line 495-497 Verify: + * If ServiceReference.getConversationID() is called after the + * "@EndsConversation" method is called, but before the next conversation + * has been started, it will return null. + */ + @Test + public void nullConversationIDAfterEndConversation() { + CService service = domain.getService(CService.class, "ConversationalCComponent"); + service.getState(); + service.endConversationViaAnnotatedMethod(); + Assert.assertNull(service.getConversationObjectConversationId()); + } + + /** + * Java Common Annotations and APIs 1.00 Specification line 495-497 Verify: + * If ServiceReference.getConversationID() is called after the + * "@EndsConversation" method is called, but before the next conversation + * has been started, it will return null. Note: Uses explicit set of Conversation ID + */ + @Test + public void nullConversationIDAfterEndConversation1a() { + CService service = domain.getService(CService.class, "ConversationalCComponent"); + service.setConversationID("User provided ID"); + service.getState(); + service.endConversationViaAnnotatedMethod(); + Assert.assertNull(service.getConversationObjectConversationId()); + } + + /** + * Java Common Annotations and APIs 1.00 Specification line 495-497 Verify: If + * ServiceReference.getConversationID() is called after the + * "@EndsConversationmethod" is called, but before the next conversation has + * been started, it will return null. Note: Uses Conversation.end() rather + * than "@EndsConversation" + */ + @Test + public void nullConversationIDAfterEndConversation2() { + CService service = domain.getService(CService.class, "ConversationalCComponent"); + service.getState(); + service.endConversation(); + Assert.assertNull(service.getConversationObjectConversationId()); + } + + /** + * Java Common Annotations and APIs 1.00 Specification line 495-497 Verify: If + * ServiceReference.getConversationID() is called after the + * "@EndsConversationmethod" is called, but before the next conversation has + * been started, it will return null. Note: Uses Conversation.end() rather + * than "@EndsConversation". Note 2: Uses explicit set of Conversation ID + */ + @Test + public void nullConversationIDAfterEndConversation2a() { + CService service = domain.getService(CService.class, "ConversationalCComponent"); + service.setConversationID("User provided ID"); + service.getState(); + service.endConversation(); + Assert.assertNull(service.getConversationObjectConversationId()); + } + +} diff --git a/tags/java/sca/1.5.1-RC4/itest/conversations/src/test/java/org/apache/tuscany/sca/itest/conversational/ConversationUniqueIdTestCase.java b/tags/java/sca/1.5.1-RC4/itest/conversations/src/test/java/org/apache/tuscany/sca/itest/conversational/ConversationUniqueIdTestCase.java new file mode 100644 index 0000000000..431962221a --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/conversations/src/test/java/org/apache/tuscany/sca/itest/conversational/ConversationUniqueIdTestCase.java @@ -0,0 +1,71 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.conversational; + +import org.apache.tuscany.sca.host.embedded.SCADomain; +import org.apache.tuscany.sca.itest.TestResult; +import org.junit.After; +import org.junit.Assert; +import org.junit.Before; +import org.junit.Test; + +/** + * @version $Rev$ $Date$ + */ +public class ConversationUniqueIdTestCase { + + private SCADomain domain; + + @Before + public void setUp() throws Exception { + domain = SCADomain.newInstance("ConversationUniqueId.composite"); + } + + @After + public void tearDown() throws Exception { + if (domain != null) { + domain.close(); + } + } + + @Test + public void testConversationUniqueId() { + Alpha alpha = domain.getService(Alpha.class, "Alpha"); + int numConversations = 3; + + for(int i = 0; i < numConversations; ++i) { + alpha.run(5); + } + + // Wait for the conversations to complete + while (TestResult.getCompleted() < numConversations) { + try { + Thread.sleep(1000); + } catch (InterruptedException e) { + } + } + + Assert.assertEquals(TestResult.results.size(), numConversations); + for(Boolean value : TestResult.results.values()) { + Assert.assertTrue(value); + } + } + +} diff --git a/tags/java/sca/1.5.1-RC4/itest/conversations/src/test/java/org/apache/tuscany/sca/itest/conversational/ConversationalAgeTestCase.java b/tags/java/sca/1.5.1-RC4/itest/conversations/src/test/java/org/apache/tuscany/sca/itest/conversational/ConversationalAgeTestCase.java new file mode 100644 index 0000000000..cc31c77873 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/conversations/src/test/java/org/apache/tuscany/sca/itest/conversational/ConversationalAgeTestCase.java @@ -0,0 +1,103 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.conversational; + +import org.apache.tuscany.sca.host.embedded.SCADomain; +import org.junit.After; +import org.junit.Assert; +import org.junit.Before; +import org.junit.Test; +import org.osoa.sca.ConversationEndedException; + +public class ConversationalAgeTestCase { + + private SCADomain domain; + + @Before + public void setUp() throws Exception { + System.setProperty("org.apache.tuscany.sca.core.scope.ConversationalScopeContainer.ReaperInterval", "2"); + domain = SCADomain.newInstance("ConversationAge.composite"); + + } + + @After + public void tearDown() throws Exception { + System.clearProperty("org.apache.tuscany.sca.core.scope.ConversationalScopeContainer.ReaperInterval"); + if (domain != null) { + domain.close(); + } + } + + @Test + public void testMaxAge() throws InterruptedException { + + ConversationalService conversationalService = + domain.getService(ConversationalService.class, "ConversationAgeComponent"); + + Assert.assertEquals(0, conversationalService.retrieveCount()); + conversationalService.initializeCount(42); + Assert.assertEquals(42, conversationalService.retrieveCount()); + Assert.assertEquals(42, conversationalService.retrieveCount()); + Thread.sleep(500); + try { + Assert.assertEquals(42, conversationalService.retrieveCount()); + } catch (ConversationEndedException e) { + Assert.fail(); + } + } + + @Test + public void testAgeExpired() throws InterruptedException { + + ConversationalService conversationalService = + domain.getService(ConversationalService.class, "ConversationAgeComponent"); + + Assert.assertEquals(0, conversationalService.retrieveCount()); + conversationalService.initializeCount(42); + Assert.assertEquals(42, conversationalService.retrieveCount()); + Assert.assertEquals(42, conversationalService.retrieveCount()); + Thread.sleep(1100); + try { + Assert.assertEquals(0, conversationalService.retrieveCount()); + Assert.fail(); + } catch (ConversationEndedException e) { + // expected + } + } + + @Test + public void testMaxIdle() throws InterruptedException { + + ConversationalService conversationalService = + domain.getService(ConversationalService.class, "ConversationIdleComponent"); + + Assert.assertEquals(0, conversationalService.retrieveCount()); + conversationalService.initializeCount(42); + Assert.assertEquals(42, conversationalService.retrieveCount()); + Assert.assertEquals(42, conversationalService.retrieveCount()); + Thread.sleep(1100); + try { + Assert.assertEquals(0, conversationalService.retrieveCount()); + } catch (ConversationEndedException e) { + // expected + } + } + +} diff --git a/tags/java/sca/1.5.1-RC4/itest/conversations/src/test/java/org/apache/tuscany/sca/itest/conversational/ConversationalJ2SETestCase.java b/tags/java/sca/1.5.1-RC4/itest/conversations/src/test/java/org/apache/tuscany/sca/itest/conversational/ConversationalJ2SETestCase.java new file mode 100644 index 0000000000..8480e04028 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/conversations/src/test/java/org/apache/tuscany/sca/itest/conversational/ConversationalJ2SETestCase.java @@ -0,0 +1,84 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.conversational; + +import org.apache.tuscany.sca.host.embedded.SCADomain; +import org.junit.After; +import org.junit.Assert; +import org.junit.Before; +import org.junit.Test; + +public class ConversationalJ2SETestCase { + + private SCADomain domain; + + @Before + public void setUp() throws Exception { + domain = SCADomain.newInstance("conversational.composite"); + + } + + @After + public void tearDown() throws Exception { + if (domain != null) { + domain.close(); + } + } + + @Test + public void testStatefulConversation() { + ConversationalService conversationalService = + domain.getService(ConversationalService.class, "ConversationalServiceStateful"); + + conversationalService.initializeCount(1); + Assert.assertEquals(1, conversationalService.retrieveCount()); + conversationalService.incrementCount(); + Assert.assertEquals(2, conversationalService.retrieveCount()); + conversationalService.endConversation(); + + Assert.assertEquals(0, conversationalService.retrieveCount()); + + conversationalService.initializeCount(4); + Assert.assertEquals(4, conversationalService.retrieveCount()); + conversationalService.incrementCount(); + Assert.assertEquals(5, conversationalService.retrieveCount()); + conversationalService.endConversation(); + + } + + @Test + public void testStatelessConversation() { + ConversationalService conversationalService = + domain.getService(ConversationalService.class, "ConversationalServiceStateless"); + + conversationalService.initializeCount(1); + Assert.assertEquals(1, conversationalService.retrieveCount()); + conversationalService.incrementCount(); + Assert.assertEquals(2, conversationalService.retrieveCount()); + conversationalService.endConversation(); + + conversationalService.initializeCount(4); + Assert.assertEquals(4, conversationalService.retrieveCount()); + conversationalService.incrementCount(); + Assert.assertEquals(5, conversationalService.retrieveCount()); + conversationalService.endConversation(); + + } +} diff --git a/tags/java/sca/1.5.1-RC4/itest/conversations/src/test/java/org/apache/tuscany/sca/itest/conversational/ConversationalTestCase.java b/tags/java/sca/1.5.1-RC4/itest/conversations/src/test/java/org/apache/tuscany/sca/itest/conversational/ConversationalTestCase.java new file mode 100644 index 0000000000..da359bc296 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/conversations/src/test/java/org/apache/tuscany/sca/itest/conversational/ConversationalTestCase.java @@ -0,0 +1,649 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.conversational; + +import junit.framework.Assert; + +import org.apache.tuscany.sca.host.embedded.SCADomain; +import org.apache.tuscany.sca.itest.conversational.impl.ConversationalClientStatefulImpl; +import org.apache.tuscany.sca.itest.conversational.impl.ConversationalClientStatefulNonConversationalCallbackImpl; +import org.apache.tuscany.sca.itest.conversational.impl.ConversationalClientStatelessImpl; +import org.apache.tuscany.sca.itest.conversational.impl.ConversationalServiceRequestImpl; +import org.apache.tuscany.sca.itest.conversational.impl.ConversationalServiceStatefulImpl; +import org.apache.tuscany.sca.itest.conversational.impl.ConversationalServiceStatefulNonConversationalCallbackImpl; +import org.apache.tuscany.sca.itest.conversational.impl.ConversationalServiceStatelessImpl; +import org.junit.AfterClass; +import org.junit.BeforeClass; +import org.junit.Test; + +public class ConversationalTestCase { + + private static SCADomain domain; + private static ConversationalClient conversationalStatelessClientStatelessService; + private static ConversationalClient conversationalStatelessClientStatefulService; + private static ConversationalClient conversationalStatefulClientStatelessService; + private static ConversationalClient conversationalStatefulClientStatefulService; + private static ConversationalClient conversationalStatelessClientRequestService; + private static ConversationalClient conversationalStatefulClientNonConversationalCallbackStatelessService; + + @BeforeClass + public static void setUp() throws Exception { + try { + domain = SCADomain.newInstance("conversational.composite"); + + conversationalStatelessClientStatelessService = domain.getService(ConversationalClient.class, + "ConversationalStatelessClientStatelessService"); + + conversationalStatelessClientStatefulService = domain.getService(ConversationalClient.class, + "ConversationalStatelessClientStatefulService"); + + conversationalStatefulClientStatelessService = domain.getService(ConversationalClient.class, + "ConversationalStatefulClientStatelessService"); + + conversationalStatefulClientStatefulService = domain.getService(ConversationalClient.class, + "ConversationalStatefulClientStatefulService"); + conversationalStatelessClientRequestService = domain.getService(ConversationalClient.class, + "ConversationalStatelessClientRequestService"); + conversationalStatefulClientNonConversationalCallbackStatelessService = domain.getService(ConversationalClient.class, + "ConversationalStatefulClientNonConversationalCallbackStatefulService"); + + } catch(Exception ex) { + System.err.println(ex.toString()); + } + + } + + @AfterClass + public static void tearDown() throws Exception { + domain.close(); + } + + private void resetCallStack() { + + // reset the place where we record the sequence of calls passing + // through each component instance + ConversationalServiceStatelessImpl.calls = new StringBuffer(); + ConversationalServiceStatefulImpl.calls = new StringBuffer(); + ConversationalClientStatelessImpl.calls = new StringBuffer(); + ConversationalClientStatefulImpl.calls = new StringBuffer(); + ConversationalClientStatefulNonConversationalCallbackImpl.calls = new StringBuffer(); + ConversationalServiceStatefulNonConversationalCallbackImpl.calls = new StringBuffer(); + + } + + // stateless client stateful service tests + // ======================================= + @Test + public void testStatelessStatefulConversationFromInjectedReference() { + int count = conversationalStatelessClientStatefulService.runConversationFromInjectedReference(); + Assert.assertEquals(2, count); + } + + @Test + public void testStatelessStatefulConversationFromInjectedReference2() { + int count = conversationalStatelessClientStatefulService.runConversationFromInjectedReference2(); + Assert.assertEquals(2, count); + } + + @Test + public void testStatelessStatefulConversationFromServiceReference() { + int count = conversationalStatelessClientStatefulService.runConversationFromServiceReference(); + Assert.assertEquals(2, count); + } + + @Test + public void testStatelessStatefulConversationWithUserDefinedConversationId() { + int count = conversationalStatelessClientStatefulService.runConversationWithUserDefinedConversationId(); + Assert.assertEquals(2, count); + } + + @Test + public void testStatelessStatefulConversationCheckUserDefinedConversationId() { + String conversationId = conversationalStatelessClientStatefulService.runConversationCheckUserDefinedConversationId(); + Assert.assertEquals("MyConversation2", conversationId); + } + + @Test + public void testStatelessStatefulConversationCheckingScope() { + resetCallStack(); + conversationalStatelessClientStatefulService.runConversationCheckingScope(); + Assert.assertEquals("init,initializeCount,incrementCount,retrieveCount,endConversation,destroy,", + ConversationalServiceStatefulImpl.calls.toString()); + } + + @Test + public void testStatelessStatefulConversationWithCallback() { + resetCallStack(); + int count = conversationalStatelessClientStatefulService.runConversationWithCallback(); + Assert.assertEquals(0, count); + + Assert.assertEquals("init,runConversationWithCallback,init,initializeCount,destroy,init,incrementCount,destroy,init,retrieveCount,destroy,init,endConversation,destroy,destroy,", + ConversationalClientStatelessImpl.calls.toString()); + } + + //@Test + public void testStatelessStatefulConversationHavingPassedReference() { + int count = conversationalStatelessClientStatefulService.runConversationHavingPassedReference(); + Assert.assertEquals(3, count); + } + + @Test + public void testStatelessStatefulConversationBusinessException() { + String message = conversationalStatelessClientStatefulService.runConversationBusinessException(); + Assert.assertEquals("Business Exception", message); + } + + @Test + public void testStatelessStatefulConversationBusinessExceptionCallback() { + String message = conversationalStatelessClientStatefulService.runConversationBusinessExceptionCallback(); + Assert.assertEquals("Business Exception", message); + } + + @Test + public void testStatelessStatefulConversationCallingEndedConversation() { + int count = conversationalStatelessClientStatefulService.runConversationCallingEndedConversation(); + Assert.assertEquals(0, count); + } + + @Test + public void testStatelessStatefulConversationCallingEndedConversationCallback() { + int count = conversationalStatelessClientStatefulService.runConversationCallingEndedConversationCallback(); + Assert.assertEquals(0, count); + } + + @Test + public void testStatelessStatefulConversationCallingEndedConversationCheckConversationId() { + String id = conversationalStatelessClientStatefulService.runConversationCallingEndedConversationCheckConversationId(); + Assert.assertEquals(null, id); + } + + //@Test + public void testStatelessStatefulConversationCallingEndedConversationCallbackCheckConversationId() { + String id = conversationalStatelessClientStatefulService.runConversationCallingEndedConversationCallbackCheckConversationId(); + Assert.assertEquals(null, id); + } + + // stateless client stateless service tests + // ======================================== + @Test + public void testStatelessStatelessConversationFromInjectedReference() { + int count = conversationalStatelessClientStatelessService.runConversationFromInjectedReference(); + Assert.assertEquals(2, count); + } + + @Test + public void testStatelessStatelessConversationFromInjectedReference2() { + int count = conversationalStatelessClientStatelessService.runConversationFromInjectedReference2(); + Assert.assertEquals(2, count); + } + + @Test + public void testStatelessStatelessConversationFromServiceReference() { + int count = conversationalStatelessClientStatelessService.runConversationFromServiceReference(); + Assert.assertEquals(2, count); + } + + @Test + public void testStatelessStatelessConversationWithUserDefinedConversationId() { + int count = conversationalStatelessClientStatelessService.runConversationWithUserDefinedConversationId(); + Assert.assertEquals(2, count); + } + @Test + public void testStatelessStatelessConversationCheckUserDefinedConversationId() { + String conversationId = conversationalStatelessClientStatelessService.runConversationCheckUserDefinedConversationId(); + Assert.assertEquals("MyConversation2", conversationId); + } + + @Test + public void testStatelessStatelessConversationCheckingScope() { + resetCallStack(); + conversationalStatelessClientStatelessService.runConversationCheckingScope(); + Assert.assertEquals("init,initializeCount,destroy,init,incrementCount,destroy,init,retrieveCount,destroy,init,endConversation,destroy,", + ConversationalServiceStatelessImpl.calls.toString()); + } + + @Test + public void testStatelessStatelessConversationWithCallback() { + resetCallStack(); + int count = conversationalStatelessClientStatelessService.runConversationWithCallback(); + Assert.assertEquals(0, count); + + Assert.assertEquals("init,runConversationWithCallback,init,initializeCount,destroy,init,incrementCount,destroy,init,retrieveCount,destroy,init,endConversation,destroy,destroy,", + ConversationalClientStatelessImpl.calls.toString()); + } + //@Test + public void testStatelessStatelessConversationHavingPassedReference() { + int count = conversationalStatelessClientStatelessService.runConversationHavingPassedReference(); + Assert.assertEquals(3, count); + } + + @Test + public void testStatelessStatelessConversationCallingEndedConversation() { + int count = conversationalStatelessClientStatelessService.runConversationCallingEndedConversation(); + Assert.assertEquals(-999, count); + } + + @Test + public void testStatelessStatelessConversationCallingEndedConversationCallback() { + int count = conversationalStatelessClientStatelessService.runConversationCallingEndedConversationCallback(); + Assert.assertEquals(0, count); + } + + @Test + public void testStatelessStatelessConversationCallingEndedConversationCheckConversationId() { + String id = conversationalStatelessClientStatelessService.runConversationCallingEndedConversationCheckConversationId(); + Assert.assertEquals(null, id); + } + + //@Test + public void testStatelessStatelessConversationCallingEndedConversationCallbackCheckConversationId() { + String id = conversationalStatelessClientStatelessService.runConversationCallingEndedConversationCallbackCheckConversationId(); + Assert.assertEquals(null, id); + } + + // stateful client stateful service tests + // ====================================== + @Test + public void testStatefulStatefulConversationFromInjectedReference() { + int count = conversationalStatefulClientStatefulService.runConversationFromInjectedReference(); + Assert.assertEquals(2, count); + } + + @Test + public void testStatefulStatefulConversationFromInjectedReference2() { + int count = conversationalStatefulClientStatefulService.runConversationFromInjectedReference2(); + Assert.assertEquals(2, count); + } + + @Test + public void testStatefulStatefulConversationFromServiceReference() { + int count = conversationalStatefulClientStatefulService.runConversationFromServiceReference(); + Assert.assertEquals(2, count); + } + + @Test + public void testStatefulStatefulConversationWithUserDefinedConversationId() { + int count = conversationalStatefulClientStatefulService.runConversationWithUserDefinedConversationId(); + Assert.assertEquals(2, count); + } + + @Test + public void testStatefulStatefulConversationCheckUserDefinedConversationId() { + String conversationId = conversationalStatefulClientStatefulService.runConversationCheckUserDefinedConversationId(); + Assert.assertEquals("MyConversation2", conversationId); + } + + @Test + public void testStatefulStatefulConversationCheckingScope() { + resetCallStack(); + conversationalStatefulClientStatefulService.runConversationCheckingScope(); + Assert.assertEquals("init,initializeCount,incrementCount,retrieveCount,endConversation,destroy,", + ConversationalServiceStatefulImpl.calls.toString()); + } + + @Test + public void testStatefulStatefulConversationWithCallback() { + resetCallStack(); + int count = conversationalStatefulClientStatefulService.runConversationWithCallback(); + Assert.assertEquals(4, count); + + Assert.assertEquals("init,runConversationWithCallback,initializeCount,incrementCount,retrieveCount,endConversation,destroy,", + ConversationalClientStatefulImpl.calls.toString()); + } + + //@Test + public void testStatefulStatefulConversationHavingPassedReference() { + int count = conversationalStatefulClientStatefulService.runConversationHavingPassedReference(); + Assert.assertEquals(3, count); + } + + @Test + public void testStatefulStatefulConversationCallingEndedConversation() { + int count = conversationalStatefulClientStatefulService.runConversationCallingEndedConversation(); + Assert.assertEquals(0, count); + } + + @Test + public void testStatefulStatefulConversationCallingEndedConversationCallback() { + int count = conversationalStatefulClientStatefulService.runConversationCallingEndedConversationCallback(); + Assert.assertEquals(0, count); + } + + @Test + public void testStatefulStatefulConversationCallingEndedConversationCheckConversationId() { + String id = conversationalStatefulClientStatefulService.runConversationCallingEndedConversationCheckConversationId(); + Assert.assertEquals(null, id); + } + + @Test + public void testStatefulStatefulConversationCallingEndedConversationCallbackCheckConversationId() { + String id = conversationalStatefulClientStatefulService.runConversationCallingEndedConversationCallbackCheckConversationId(); + Assert.assertEquals(null, id); + } + + // stateful client stateless service tests + // ======================================= + @Test + public void testStatefulStatelessConversationFromInjectedReference() { + int count = conversationalStatefulClientStatelessService.runConversationFromInjectedReference(); + Assert.assertEquals(2, count); + } + + @Test + public void testStatefulStatelessConversationFromInjectedReference2() { + int count = conversationalStatefulClientStatelessService.runConversationFromInjectedReference2(); + Assert.assertEquals(2, count); + } + + @Test + public void testStatefulStatelessConversationFromServiceReference() { + int count = conversationalStatefulClientStatelessService.runConversationFromServiceReference(); + Assert.assertEquals(2, count); + } + + @Test + public void testStatefulStatelessConversationWithUserDefinedConversationId() { + int count = conversationalStatefulClientStatelessService.runConversationWithUserDefinedConversationId(); + Assert.assertEquals(2, count); + } + + @Test + public void testStatefulStatelessConversationCheckUserDefinedConversationId() { + String conversationId = conversationalStatefulClientStatelessService.runConversationCheckUserDefinedConversationId(); + Assert.assertEquals("MyConversation2", conversationId); + } + + @Test + public void testStatefulStatelessConversationCheckingScope() { + resetCallStack(); + conversationalStatefulClientStatelessService.runConversationCheckingScope(); + Assert.assertEquals("init,initializeCount,destroy,init,incrementCount,destroy,init,retrieveCount,destroy,init,endConversation,destroy,", + ConversationalServiceStatelessImpl.calls.toString()); + } + + @Test + public void testStatefulStatelessConversationWithCallback() { + resetCallStack(); + int count = conversationalStatefulClientStatelessService.runConversationWithCallback(); + Assert.assertEquals(4, count); + + Assert.assertEquals("init,runConversationWithCallback,initializeCount,incrementCount,retrieveCount,endConversation,destroy,", + ConversationalClientStatefulImpl.calls.toString()); + } + + //@Test + public void testStatefulStatelessConversationHavingPassedReference() { + int count = conversationalStatefulClientStatelessService.runConversationHavingPassedReference(); + Assert.assertEquals(3, count); + } + + @Test + public void testStatefulStatelessConversationCallingEndedConversation() { + int count = conversationalStatefulClientStatelessService.runConversationCallingEndedConversation(); + Assert.assertEquals(-999, count); + } + + @Test + public void testStatefulStatelessConversationCallingEndedConversationCallback() { + int count = conversationalStatefulClientStatelessService.runConversationCallingEndedConversationCallback(); + Assert.assertEquals(0, count); + } + + @Test + public void testStatefulStatelessConversationCallingEndedConversationCheckConversationId() { + String id = conversationalStatefulClientStatelessService.runConversationCallingEndedConversationCheckConversationId(); + Assert.assertEquals(null, id); + } + + @Test + public void testStatefulStatelessConversationCallingEndedConversationCallbackCheckConversationId() { + String id = conversationalStatefulClientStatelessService.runConversationCallingEndedConversationCallbackCheckConversationId(); + Assert.assertEquals(null, id); + } + + // stateless client request scope service tests + // ============================================ + @Test + public void testStatelessRequestConversationFromInjectedReference() { + int count = conversationalStatelessClientRequestService.runConversationFromInjectedReference(); + Assert.assertEquals(2, count); + } + + @Test + public void testStatelessRequestConversationFromInjectedReference2() { + int count = conversationalStatelessClientRequestService.runConversationFromInjectedReference2(); + Assert.assertEquals(1, count); + } + + @Test + public void testStatelessRequestConversationFromServiceReference() { + int count = conversationalStatelessClientRequestService.runConversationFromServiceReference(); + Assert.assertEquals(2, count); + } + + @Test + public void testStatelessRequestConversationWithUserDefinedConversationId() { + int count = conversationalStatelessClientRequestService.runConversationWithUserDefinedConversationId(); + Assert.assertEquals(2, count); + } + + //@Test + public void testStatelessRequestConversationCheckUserDefinedConversationId() { + String conversationId = conversationalStatelessClientRequestService.runConversationCheckUserDefinedConversationId(); + Assert.assertEquals("MyConversation2", conversationId); + } + + @Test + public void testStatelessRequestConversationCheckingScope() { + resetCallStack(); + ConversationalServiceRequestImpl.calls = new StringBuffer(); + conversationalStatelessClientRequestService.runConversationCheckingScope(); + Assert.assertEquals("initializeCount,incrementCount,retrieveCount,endConversation,", + ConversationalServiceRequestImpl.calls.toString()); + } + + @Test + public void testStatelessRequestConversationWithCallback() { + resetCallStack(); + ConversationalClientStatelessImpl.calls = new StringBuffer(); + int count = conversationalStatelessClientRequestService.runConversationWithCallback(); + Assert.assertEquals(0, count); + + Assert.assertEquals("init,runConversationWithCallback,init,initializeCount,destroy,init,incrementCount,destroy,init,retrieveCount,destroy,init,endConversation,destroy,destroy,", + ConversationalClientStatelessImpl.calls.toString()); + } + + //@Test + public void testStatelessRequestConversationHavingPassedReference() { + int count = conversationalStatelessClientRequestService.runConversationHavingPassedReference(); + Assert.assertEquals(3, count); + } + + @Test + public void testStatelessRequestConversationBusinessException() { + String message = conversationalStatelessClientRequestService.runConversationBusinessException(); + Assert.assertEquals("Business Exception", message); + } + + @Test + public void testStatelessRequestConversationBusinessExceptionCallback() { + String message = conversationalStatelessClientRequestService.runConversationBusinessExceptionCallback(); + Assert.assertEquals("Business Exception", message); + } + + @Test + public void testStatelessRequestConversationCallingEndedConversation() { + int count = conversationalStatelessClientRequestService.runConversationCallingEndedConversation(); + Assert.assertEquals(-999, count); + } + + @Test + public void testStatelessRequestConversationCallingEndedConversationCallback() { + int count = conversationalStatelessClientRequestService.runConversationCallingEndedConversationCallback(); + Assert.assertEquals(0, count); + } + + @Test + public void testStatelessRequestConversationCallingEndedConversationCheckConversationId() { + String id = conversationalStatelessClientRequestService.runConversationCallingEndedConversationCheckConversationId(); + Assert.assertEquals(null, id); + } + + //@Test + public void testStatelessRequestConversationCallingEndedConversationCallbackCheckConversationId() { + String id = conversationalStatelessClientRequestService.runConversationCallingEndedConversationCallbackCheckConversationId(); + Assert.assertEquals(null, id); + } + + // stateful client non conversational callback stateful service tests + // ================================================================== + + @Test + public void testStatefulNonConversationalCallbackStatefulConversationFromInjectedReference() { + int count = conversationalStatefulClientNonConversationalCallbackStatelessService.runConversationFromInjectedReference(); + Assert.assertEquals(2, count); + } + + @Test + public void testStatefulNonConversationalCallbackStatefulConversationFromInjectedReference2() { + int count = conversationalStatefulClientNonConversationalCallbackStatelessService.runConversationFromInjectedReference2(); + Assert.assertEquals(2, count); + } + + @Test + public void testStatefulNonConversationalCallbackStatefulConversationFromServiceReference() { + int count = conversationalStatefulClientNonConversationalCallbackStatelessService.runConversationFromServiceReference(); + Assert.assertEquals(2, count); + } + + @Test + public void testStatefulNonConversationalCallbackStatefulConversationWithUserDefinedConversationId() { + int count = conversationalStatefulClientNonConversationalCallbackStatelessService.runConversationWithUserDefinedConversationId(); + Assert.assertEquals(2, count); + } + + @Test + public void testStatefulNonConversationalCallbackStatefulConversationCheckUserDefinedConversationId() { + String conversationId = conversationalStatefulClientNonConversationalCallbackStatelessService.runConversationCheckUserDefinedConversationId(); + Assert.assertEquals("MyConversation2", conversationId); + } + + @Test + public void testStatefulNonConversationalCallbackStatefulConversationCheckingScope() { + resetCallStack(); + conversationalStatefulClientNonConversationalCallbackStatelessService.runConversationCheckingScope(); + Assert.assertEquals("init,initializeCount,incrementCount,retrieveCount,endConversation,destroy,", + ConversationalServiceStatefulNonConversationalCallbackImpl.calls.toString()); + } + + @Test + public void testStatefulNonConversationalCallbackStatefulConversationWithCallback() { + resetCallStack(); + int count = conversationalStatefulClientNonConversationalCallbackStatelessService.runConversationWithCallback(); + Assert.assertEquals(0, count); + + Assert.assertEquals("init,runConversationWithCallback,init,initializeCount,destroy,init,incrementCount,destroy,init,retrieveCount,destroy,init,endConversation,destroy,", + ConversationalClientStatefulNonConversationalCallbackImpl.calls.toString()); + } + + //@Test + public void testStatefulNonConversationalCallbackStatefulConversationHavingPassedReference() { + int count = conversationalStatefulClientNonConversationalCallbackStatelessService.runConversationHavingPassedReference(); + Assert.assertEquals(0, count); + } + + @Test + public void testStatefulNonConversationalCallbackStatefulConversationCallingEndedConversation() { + int count = conversationalStatefulClientNonConversationalCallbackStatelessService.runConversationCallingEndedConversation(); + Assert.assertEquals(0, count); + } + + @Test + public void testStatefulNonConversationalCallbackStatefulConversationCallingEndedConversationCallback() { + int count = conversationalStatefulClientNonConversationalCallbackStatelessService.runConversationCallingEndedConversationCallback(); + Assert.assertEquals(0, count); + } + + @Test + public void testStatefulNonConversationalCallbackStatefulConversationCallingEndedConversationCheckConversationId() { + String id = conversationalStatefulClientNonConversationalCallbackStatelessService.runConversationCallingEndedConversationCheckConversationId(); + Assert.assertEquals(null, id); + } + + @Test + public void testStatefulNonConversationalCallbackStatefulConversationCallingEndedConversationCallbackCheckConversationId() { + String id = conversationalStatefulClientNonConversationalCallbackStatelessService.runConversationCallingEndedConversationCallbackCheckConversationId(); + Assert.assertEquals("MyConversation3", id); + } + + private static final String NEW_A_VALUE = "First Instance - TestCode Set state on A"; + private static final String NEW_B_VALUE = "First Instance - TestCode Set state on B"; + private static final String SECOND_NEW_A_VALUE = "Second Instance - TestCode Set state on A"; + private static final String SECOND_NEW_B_VALUE = "Second Instance - TestCode Set state on B"; + + @Test + public void testMultipleConversations() { + ////////// + // Tests on first instance + ////////// + System.out.println("========= First instance tests ========="); + AService aService = domain.getService(AService.class, "ConversationalAComponent"); + + // Make sure initial values are correct + Assert.assertEquals(Constants.A_INITIAL_VALUE, aService.getState()); + Assert.assertEquals(Constants.B_INITIAL_VALUE, aService.getStateOnB()); + + // Set some new values + aService.setState(NEW_A_VALUE); + aService.setStateOnB(NEW_B_VALUE); + + // Verify the set worked + Assert.assertEquals(NEW_A_VALUE, aService.getState()); + Assert.assertEquals(NEW_B_VALUE, aService.getStateOnB()); + + + ////////// + // Tests on second instance + ////////// + System.out.println("========= Second instance tests ========="); + + // Do another look up + AService aService2 = domain.getService(AService.class, "ConversationalAComponent"); + + // Make sure initial values are correct on the second instance + Assert.assertEquals(Constants.A_INITIAL_VALUE, aService2.getState()); + Assert.assertEquals(Constants.B_INITIAL_VALUE, aService2.getStateOnB()); + + // Set some new values on the second instance + aService2.setState(SECOND_NEW_A_VALUE); + aService2.setStateOnB(SECOND_NEW_B_VALUE); + + // Verify the set worked on the second instance + Assert.assertEquals(SECOND_NEW_A_VALUE, aService2.getState()); + Assert.assertEquals(SECOND_NEW_B_VALUE, aService2.getStateOnB()); + + // Verify the values have not been changed on the first instance + Assert.assertEquals(NEW_A_VALUE, aService.getState()); + Assert.assertEquals(NEW_B_VALUE, aService.getStateOnB()); + + System.out.println("========= Done instance tests ========="); + } + +} diff --git a/tags/java/sca/1.5.1-RC4/itest/corba/pom.xml b/tags/java/sca/1.5.1-RC4/itest/corba/pom.xml new file mode 100644 index 0000000000..ac07e651b2 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/corba/pom.xml @@ -0,0 +1,168 @@ + + + + 4.0.0 + + org.apache.tuscany.sca + tuscany-itest + 1.5.1 + ../pom.xml + + itest-corba-binding + Apache Tuscany SCA iTest CORBA Binding + + + + org.apache.tuscany.sca + tuscany-host-embedded + 1.5.1 + + + + org.apache.tuscany.sca + tuscany-implementation-java-runtime + 1.5.1 + runtime + + + + org.apache.tuscany.sca + tuscany-binding-corba-runtime + 1.5.1 + runtime + + + + org.apache.tuscany.sca + tuscany-host-corba-jse + 1.5.1 + test + + + + org.apache.tuscany.sca + tuscany-host-corba-jse-tns + 1.5.1 + test + + + + org.apache.tuscany.sca + tuscany-binding-sca + 1.5.1 + runtime + + + + org.apache.tuscany.sca + tuscany-binding-sca-corba + 1.5.1 + runtime + + + + + + org.apache.tuscany.sca + tuscany-databinding-axiom + 1.5.1 + runtime + + + + org.apache.tuscany.sca + tuscany-databinding-sdo + 1.5.1 + + + + junit + junit + 4.5 + test + + + + + + + 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/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/ScenarioFiveTestCase.java b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/ScenarioFiveTestCase.java new file mode 100644 index 0000000000..46e214eac3 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/ScenarioFiveTestCase.java @@ -0,0 +1,51 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.host.embedded.SCADomain; +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 + SCADomain domain = SCADomain.newInstance("ScenarioFive.composite"); + ScenarioFive scenarioFive = + domain.getService(ScenarioFiveComponent.class, "ScenarioFive").getScenarioFive(); + scenarioFive.doNothing(); + } catch (Exception e) { + e.printStackTrace(); + fail(); + } + } + +} diff --git a/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/ScenarioFourTestCase.java b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/ScenarioFourTestCase.java new file mode 100644 index 0000000000..cba8c823e8 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/ScenarioFourTestCase.java @@ -0,0 +1,149 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.host.embedded.SCADomain; +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 SCADomain domain; + 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() { + 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 domain + domain = SCADomain.newInstance("ScenarioFour.composite"); + scenarioFourComponent = domain.getService(ScenarioFourComponent.class, "ScenarioFour"); + scenarioFour = scenarioFourComponent.getScenarioFour(); + } catch (Exception e) { + e.printStackTrace(); + } + } + + /** + * Test cleanup + */ + @AfterClass + public static void tearDown() { + server.stop(); + } + + /** + * 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 = + domain.getService(ScenarioFourComponent.class, "ScenarioFourReuse").getScenarioFour(); + ScenarioFourStruct struct = new ScenarioFourStruct(); + scenarioFour.setStruct(struct); + } catch (Exception e) { + e.printStackTrace(); + fail(); + } + } +} diff --git a/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/ScenarioOneTestCase.java b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/ScenarioOneTestCase.java new file mode 100644 index 0000000000..0135c04495 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/ScenarioOneTestCase.java @@ -0,0 +1,371 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.host.embedded.SCADomain; +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 SCADomain domain; + + 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 domain + domain = SCADomain.newInstance("ScenarioOne.composite"); + } catch (Exception e) { + e.printStackTrace(); + } + } + + /** + * Kills previously spawned name service. + */ + @AfterClass + public static void tearDown() { + server.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 = domain.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 = domain.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/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/ScenarioSixTestCase.java b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/ScenarioSixTestCase.java new file mode 100644 index 0000000000..b7309d68a0 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/ScenarioSixTestCase.java @@ -0,0 +1,228 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.host.embedded.SCADomain; +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 SCADomain domain; + + 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 domain + domain = SCADomain.newInstance("ScenarioSix.composite"); + } catch (Exception e) { + e.printStackTrace(); + } + } + + /** + * Kills previously spawned name service. + */ + @AfterClass + public static void tearDown() { + server.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 = domain.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 = domain.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 = domain.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/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/ScenarioThreeTestCase.java b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/ScenarioThreeTestCase.java new file mode 100644 index 0000000000..a738c6f211 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/ScenarioThreeTestCase.java @@ -0,0 +1,130 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.host.embedded.SCADomain; +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 SCADomain domain; + 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 domain + domain = SCADomain.newInstance("ScenarioThree.composite"); + } catch (Exception e) { + e.printStackTrace(); + } + } + + /** + * Kills previously spawned name service. + */ + @AfterClass + public static void tearDown() { + server.stop(); + } + + /** + * Tests mapping for getters and setters + */ + @Test + public void test_getterSetter() { + try { + TScenarioThree ref = + domain.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 = + domain.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 = + domain.getService(TScenarioThreeComponent.class, "ScenarioThreeReference").getScenarioThree(); + ref.overloadedName(); + ref.overloadedName(""); + ref.overloadedName("", 0); + } catch (Exception e) { + e.printStackTrace(); + fail(); + } + } + +} diff --git a/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/ScenarioTwoTestCase.java b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/ScenarioTwoTestCase.java new file mode 100644 index 0000000000..008212bdbe --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/ScenarioTwoTestCase.java @@ -0,0 +1,139 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.host.embedded.SCADomain; +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 SCADomain domain; + + 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 domain + domain = SCADomain.newInstance("ScenarioTwo.composite"); + } catch (Exception e) { + e.printStackTrace(); + } + } + + /** + * Kills previously spawned name service. + */ + @AfterClass + public static void tearDown() { + server.stop(); + } + + /** + * Tests using objects attribute (which is server in traditional way) by + * Tuscany CORBA binding + */ + @Test + public void test_tuscanyGetSetAttribute() { + try { + TScenarioTwo ref = domain.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/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/TestCorbaHost.java b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/TestCorbaHost.java new file mode 100644 index 0000000000..bd1ce8cb49 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/TestCorbaHost.java @@ -0,0 +1,56 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/TestCorbaHostModuleActivator.java b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/TestCorbaHostModuleActivator.java new file mode 100644 index 0000000000..c25372c837 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/TestCorbaHostModuleActivator.java @@ -0,0 +1,41 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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 { + + public void start(ExtensionPointRegistry extensionPointRegistry) { + CorbaHostExtensionPoint chep = extensionPointRegistry.getExtensionPoint(CorbaHostExtensionPoint.class); + chep.getCorbaHosts().add(0, new TestCorbaHost()); + } + + public void stop(ExtensionPointRegistry extensionPointRegistry) { + + } + +} diff --git a/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/AnnotatedStruct.java b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/AnnotatedStruct.java new file mode 100644 index 0000000000..82b327f11c --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/AnnotatedStruct.java @@ -0,0 +1,43 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/AnnotatedStructHelper.java b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/AnnotatedStructHelper.java new file mode 100644 index 0000000000..010dea1e1a --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/AnnotatedStructHelper.java @@ -0,0 +1,97 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/AnnotatedStructHolder.java b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/AnnotatedStructHolder.java new file mode 100644 index 0000000000..67acde6682 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/AnnotatedStructHolder.java @@ -0,0 +1,57 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/Color.java b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/Color.java new file mode 100644 index 0000000000..1a2c30ee62 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/Color.java @@ -0,0 +1,61 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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 +* pitek, 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/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/ColorHelper.java b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/ColorHelper.java new file mode 100644 index 0000000000..7f358936fa --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/ColorHelper.java @@ -0,0 +1,72 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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 +* pitek, 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/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/ColorHolder.java b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/ColorHolder.java new file mode 100644 index 0000000000..b07e193995 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/ColorHolder.java @@ -0,0 +1,57 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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 +* pitek, 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/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/InnerStruct.java b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/InnerStruct.java new file mode 100644 index 0000000000..1c1cd31dc1 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/InnerStruct.java @@ -0,0 +1,47 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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 +* pitek, 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/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/InnerStructHelper.java b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/InnerStructHelper.java new file mode 100644 index 0000000000..565557db2d --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/InnerStructHelper.java @@ -0,0 +1,112 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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 +* pitek, 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/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/InnerStructHolder.java b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/InnerStructHolder.java new file mode 100644 index 0000000000..6e581e5215 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/InnerStructHolder.java @@ -0,0 +1,57 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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 +* pitek, 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/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/InnerUnion.java b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/InnerUnion.java new file mode 100644 index 0000000000..9c088b8bb9 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/InnerUnion.java @@ -0,0 +1,130 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/InnerUnionHelper.java b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/InnerUnionHelper.java new file mode 100644 index 0000000000..50069d7ac8 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/InnerUnionHelper.java @@ -0,0 +1,124 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/InnerUnionHolder.java b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/InnerUnionHolder.java new file mode 100644 index 0000000000..e63120a083 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/InnerUnionHolder.java @@ -0,0 +1,56 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/LongSequenceHelper.java b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/LongSequenceHelper.java new file mode 100644 index 0000000000..b8e3e16a31 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/LongSequenceHelper.java @@ -0,0 +1,79 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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 +* pitek, 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/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/LongSequenceHolder.java b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/LongSequenceHolder.java new file mode 100644 index 0000000000..292c3af11b --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/LongSequenceHolder.java @@ -0,0 +1,58 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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 +* pitek, 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/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/RichStruct.java b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/RichStruct.java new file mode 100644 index 0000000000..8a6047c92e --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/RichStruct.java @@ -0,0 +1,47 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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 +* pitek, 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/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/RichStructHelper.java b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/RichStructHelper.java new file mode 100644 index 0000000000..d9fcc63371 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/RichStructHelper.java @@ -0,0 +1,110 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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 +* pitek, 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/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/RichStructHolder.java b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/RichStructHolder.java new file mode 100644 index 0000000000..a3f2c8314e --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/RichStructHolder.java @@ -0,0 +1,57 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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 +* pitek, 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/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/RichUnion.java b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/RichUnion.java new file mode 100644 index 0000000000..2c49fac39f --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/RichUnion.java @@ -0,0 +1,195 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/RichUnionHelper.java b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/RichUnionHelper.java new file mode 100644 index 0000000000..5b1b710919 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/RichUnionHelper.java @@ -0,0 +1,175 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/RichUnionHolder.java b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/RichUnionHolder.java new file mode 100644 index 0000000000..3bf646a485 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/RichUnionHolder.java @@ -0,0 +1,56 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/ScenarioOne.java b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/ScenarioOne.java new file mode 100644 index 0000000000..08ca7c699a --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/ScenarioOne.java @@ -0,0 +1,32 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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 +* pitek, 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/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/ScenarioOneHelper.java b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/ScenarioOneHelper.java new file mode 100644 index 0000000000..6d189ddc2a --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/ScenarioOneHelper.java @@ -0,0 +1,104 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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 +* pitek, 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/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/ScenarioOneHolder.java b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/ScenarioOneHolder.java new file mode 100644 index 0000000000..6bb5fe9044 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/ScenarioOneHolder.java @@ -0,0 +1,57 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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 +* pitek, 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/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/ScenarioOneOperations.java b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/ScenarioOneOperations.java new file mode 100644 index 0000000000..43aca562ad --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/ScenarioOneOperations.java @@ -0,0 +1,33 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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 +* pitek, 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/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/ScenarioSix.java b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/ScenarioSix.java new file mode 100644 index 0000000000..73c96c260d --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/ScenarioSix.java @@ -0,0 +1,32 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/ScenarioSixHelper.java b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/ScenarioSixHelper.java new file mode 100644 index 0000000000..6fd029ec6f --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/ScenarioSixHelper.java @@ -0,0 +1,104 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/ScenarioSixHolder.java b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/ScenarioSixHolder.java new file mode 100644 index 0000000000..103db27cd2 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/ScenarioSixHolder.java @@ -0,0 +1,57 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/ScenarioSixOperations.java b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/ScenarioSixOperations.java new file mode 100644 index 0000000000..c47565e63e --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/ScenarioSixOperations.java @@ -0,0 +1,35 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/ScenarioTwo.java b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/ScenarioTwo.java new file mode 100644 index 0000000000..b57e098a56 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/ScenarioTwo.java @@ -0,0 +1,34 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/ScenarioTwoHelper.java b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/ScenarioTwoHelper.java new file mode 100644 index 0000000000..8ddfa10575 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/ScenarioTwoHelper.java @@ -0,0 +1,106 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/ScenarioTwoHolder.java b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/ScenarioTwoHolder.java new file mode 100644 index 0000000000..9717629711 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/ScenarioTwoHolder.java @@ -0,0 +1,59 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/ScenarioTwoOperations.java b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/ScenarioTwoOperations.java new file mode 100644 index 0000000000..1247b4618d --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/ScenarioTwoOperations.java @@ -0,0 +1,36 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/StringArrayHelper.java b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/StringArrayHelper.java new file mode 100644 index 0000000000..9f1cb6bc6b --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/StringArrayHelper.java @@ -0,0 +1,95 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/StringArrayHolder.java b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/StringArrayHolder.java new file mode 100644 index 0000000000..b2906bb13c --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/StringArrayHolder.java @@ -0,0 +1,58 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/StringSequenceHelper.java b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/StringSequenceHelper.java new file mode 100644 index 0000000000..adf72c5c35 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/StringSequenceHelper.java @@ -0,0 +1,81 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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 +* pitek, 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/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/StringSequenceHolder.java b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/StringSequenceHolder.java new file mode 100644 index 0000000000..ddaec3549e --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/StringSequenceHolder.java @@ -0,0 +1,58 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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 +* pitek, 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/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/TwoDimLongSequenceHelper.java b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/TwoDimLongSequenceHelper.java new file mode 100644 index 0000000000..993dc155d6 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/TwoDimLongSequenceHelper.java @@ -0,0 +1,83 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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 +* pitek, 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/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/TwoDimLongSequenceHolder.java b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/TwoDimLongSequenceHolder.java new file mode 100644 index 0000000000..6e3deb2251 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/TwoDimLongSequenceHolder.java @@ -0,0 +1,58 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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 +* pitek, 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/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/UnexpectedException.java b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/UnexpectedException.java new file mode 100644 index 0000000000..86787ee968 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/UnexpectedException.java @@ -0,0 +1,52 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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 +* pitek, 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/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/UnexpectedExceptionHelper.java b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/UnexpectedExceptionHelper.java new file mode 100644 index 0000000000..6a5646c73d --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/UnexpectedExceptionHelper.java @@ -0,0 +1,98 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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 +* pitek, 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/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/UnexpectedExceptionHolder.java b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/UnexpectedExceptionHolder.java new file mode 100644 index 0000000000..0f62442652 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/UnexpectedExceptionHolder.java @@ -0,0 +1,57 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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 +* pitek, 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/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/WrongColor.java b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/WrongColor.java new file mode 100644 index 0000000000..1167c7de21 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/WrongColor.java @@ -0,0 +1,55 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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 +* pitek, 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/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/WrongColorHelper.java b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/WrongColorHelper.java new file mode 100644 index 0000000000..fc32fd1db6 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/WrongColorHelper.java @@ -0,0 +1,105 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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 +* pitek, 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/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/WrongColorHolder.java b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/WrongColorHolder.java new file mode 100644 index 0000000000..9648e29d6d --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/WrongColorHolder.java @@ -0,0 +1,57 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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 +* pitek, 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/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/_ScenarioOneImplBase.java b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/_ScenarioOneImplBase.java new file mode 100644 index 0000000000..93d9fe164d --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/_ScenarioOneImplBase.java @@ -0,0 +1,91 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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 +* pitek, 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/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/_ScenarioOneStub.java b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/_ScenarioOneStub.java new file mode 100644 index 0000000000..622adaf46b --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/_ScenarioOneStub.java @@ -0,0 +1,84 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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 +* pitek, 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/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/_ScenarioSixImplBase.java b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/_ScenarioSixImplBase.java new file mode 100644 index 0000000000..117d1d6382 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/_ScenarioSixImplBase.java @@ -0,0 +1,105 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/_ScenarioSixStub.java b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/_ScenarioSixStub.java new file mode 100644 index 0000000000..eba1b61fa3 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/_ScenarioSixStub.java @@ -0,0 +1,119 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/_ScenarioTwoImplBase.java b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/_ScenarioTwoImplBase.java new file mode 100644 index 0000000000..750006cec6 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/_ScenarioTwoImplBase.java @@ -0,0 +1,93 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/_ScenarioTwoStub.java b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/_ScenarioTwoStub.java new file mode 100644 index 0000000000..ef9f561d1b --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/generated/_ScenarioTwoStub.java @@ -0,0 +1,99 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/ScenarioFive.java b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/ScenarioFive.java new file mode 100644 index 0000000000..4f6eacc9ff --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/ScenarioFive.java @@ -0,0 +1,33 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.osoa.sca.annotations.Remotable; + +/** + * @version $Rev$ $Date$ + * Operations for scenario five + */ +@Remotable +public interface ScenarioFive { + + void doNothing(); + +} diff --git a/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/ScenarioFiveComponent.java b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/ScenarioFiveComponent.java new file mode 100644 index 0000000000..a3be6daa23 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/ScenarioFiveComponent.java @@ -0,0 +1,41 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.osoa.sca.annotations.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/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/ScenarioFiveImpl.java b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/ScenarioFiveImpl.java new file mode 100644 index 0000000000..dc752a2aea --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/ScenarioFiveImpl.java @@ -0,0 +1,32 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/ScenarioFour.java b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/ScenarioFour.java new file mode 100644 index 0000000000..aec0f7b1bf --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/ScenarioFour.java @@ -0,0 +1,38 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.osoa.sca.annotations.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/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/ScenarioFourComponent.java b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/ScenarioFourComponent.java new file mode 100644 index 0000000000..04aef326af --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/ScenarioFourComponent.java @@ -0,0 +1,41 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.osoa.sca.annotations.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/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/ScenarioFourException.java b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/ScenarioFourException.java new file mode 100644 index 0000000000..bc76373633 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/ScenarioFourException.java @@ -0,0 +1,41 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/ScenarioFourImpl.java b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/ScenarioFourImpl.java new file mode 100644 index 0000000000..2f10177bd0 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/ScenarioFourImpl.java @@ -0,0 +1,44 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/ScenarioFourStruct.java b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/ScenarioFourStruct.java new file mode 100644 index 0000000000..de8624455f --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/ScenarioFourStruct.java @@ -0,0 +1,40 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/ScenarioOneComponent.java b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/ScenarioOneComponent.java new file mode 100644 index 0000000000..30e4e2994a --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/ScenarioOneComponent.java @@ -0,0 +1,46 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.osoa.sca.annotations.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/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/ScenarioOneServant.java b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/ScenarioOneServant.java new file mode 100644 index 0000000000..9b49adbfbb --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/ScenarioOneServant.java @@ -0,0 +1,45 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/ScenarioSixServant.java b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/ScenarioSixServant.java new file mode 100644 index 0000000000..7889a80bf1 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/ScenarioSixServant.java @@ -0,0 +1,46 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/ScenarioTwoServant.java b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/ScenarioTwoServant.java new file mode 100644 index 0000000000..cdd49904d3 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/ScenarioTwoServant.java @@ -0,0 +1,42 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/TAnnotatedStruct.java b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/TAnnotatedStruct.java new file mode 100644 index 0000000000..adb48aa159 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/TAnnotatedStruct.java @@ -0,0 +1,40 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.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/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/TColor.java b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/TColor.java new file mode 100644 index 0000000000..71003d008f --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/TColor.java @@ -0,0 +1,62 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/TInnerStruct.java b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/TInnerStruct.java new file mode 100644 index 0000000000..271f1e669b --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/TInnerStruct.java @@ -0,0 +1,42 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/TInnerUnion.java b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/TInnerUnion.java new file mode 100644 index 0000000000..d7734c48a3 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/TInnerUnion.java @@ -0,0 +1,59 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.meta.CorbaUnionElement; +import org.apache.tuscany.sca.binding.corba.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/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/TRichStruct.java b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/TRichStruct.java new file mode 100644 index 0000000000..1b44da9752 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/TRichStruct.java @@ -0,0 +1,42 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/TRichUnion.java b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/TRichUnion.java new file mode 100644 index 0000000000..eb76c94643 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/TRichUnion.java @@ -0,0 +1,95 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.meta.CorbaUnionElement; +import org.apache.tuscany.sca.binding.corba.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/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/TScenarioOne.java b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/TScenarioOne.java new file mode 100644 index 0000000000..922759cd8d --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/TScenarioOne.java @@ -0,0 +1,33 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/TScenarioOneComponent.java b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/TScenarioOneComponent.java new file mode 100644 index 0000000000..a4f15488cd --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/TScenarioOneComponent.java @@ -0,0 +1,43 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.osoa.sca.annotations.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/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/TScenarioOneServant.java b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/TScenarioOneServant.java new file mode 100644 index 0000000000..47f0775c16 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/TScenarioOneServant.java @@ -0,0 +1,44 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/TScenarioSix.java b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/TScenarioSix.java new file mode 100644 index 0000000000..3b4943a43d --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/TScenarioSix.java @@ -0,0 +1,37 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.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/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/TScenarioSixComponent.java b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/TScenarioSixComponent.java new file mode 100644 index 0000000000..7d43badb23 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/TScenarioSixComponent.java @@ -0,0 +1,41 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.osoa.sca.annotations.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/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/TScenarioSixServant.java b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/TScenarioSixServant.java new file mode 100644 index 0000000000..8e76958e31 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/TScenarioSixServant.java @@ -0,0 +1,42 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/TScenarioThree.java b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/TScenarioThree.java new file mode 100644 index 0000000000..1e4264256b --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/TScenarioThree.java @@ -0,0 +1,42 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/TScenarioThreeComponent.java b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/TScenarioThreeComponent.java new file mode 100644 index 0000000000..917cceedf5 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/TScenarioThreeComponent.java @@ -0,0 +1,41 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.osoa.sca.annotations.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/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/TScenarioThreeServant.java b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/TScenarioThreeServant.java new file mode 100644 index 0000000000..b679214c6c --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/TScenarioThreeServant.java @@ -0,0 +1,52 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/TScenarioTwo.java b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/TScenarioTwo.java new file mode 100644 index 0000000000..415634c80f --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/TScenarioTwo.java @@ -0,0 +1,32 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/TScenarioTwoComponent.java b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/TScenarioTwoComponent.java new file mode 100644 index 0000000000..d7c72b40da --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/TScenarioTwoComponent.java @@ -0,0 +1,41 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.osoa.sca.annotations.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/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/TScenarioTwoServant.java b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/TScenarioTwoServant.java new file mode 100644 index 0000000000..cb868d18a0 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/java/org/apache/tuscany/sca/test/corba/types/TScenarioTwoServant.java @@ -0,0 +1,38 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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/tags/java/sca/1.5.1-RC4/itest/corba/src/test/resources/META-INF/services/org.apache.tuscany.sca.core.ModuleActivator b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/resources/META-INF/services/org.apache.tuscany.sca.core.ModuleActivator new file mode 100644 index 0000000000..3e77527d73 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/resources/META-INF/services/org.apache.tuscany.sca.core.ModuleActivator @@ -0,0 +1,18 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT 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/tags/java/sca/1.5.1-RC4/itest/corba/src/test/resources/ScenarioFive.composite b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/resources/ScenarioFive.composite new file mode 100644 index 0000000000..3c73e238a5 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/resources/ScenarioFive.composite @@ -0,0 +1,41 @@ + + + + + + + + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/corba/src/test/resources/ScenarioFour.composite b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/resources/ScenarioFour.composite new file mode 100644 index 0000000000..01d7e2314a --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/resources/ScenarioFour.composite @@ -0,0 +1,56 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/corba/src/test/resources/ScenarioOne.composite b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/resources/ScenarioOne.composite new file mode 100644 index 0000000000..c10b383661 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/resources/ScenarioOne.composite @@ -0,0 +1,111 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/corba/src/test/resources/ScenarioSix.composite b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/resources/ScenarioSix.composite new file mode 100644 index 0000000000..88238478c1 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/resources/ScenarioSix.composite @@ -0,0 +1,41 @@ + + + + + + + + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/corba/src/test/resources/ScenarioThree.composite b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/resources/ScenarioThree.composite new file mode 100644 index 0000000000..f43e4a3f7a --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/resources/ScenarioThree.composite @@ -0,0 +1,43 @@ + + + + + + + + + + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/corba/src/test/resources/ScenarioTwo.composite b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/resources/ScenarioTwo.composite new file mode 100644 index 0000000000..dc5ddc50d3 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/resources/ScenarioTwo.composite @@ -0,0 +1,43 @@ + + + + + + + + + + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/corba/src/test/resources/itest_scenario.idl b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/resources/itest_scenario.idl new file mode 100644 index 0000000000..41489a4565 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/resources/itest_scenario.idl @@ -0,0 +1,110 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT 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/tags/java/sca/1.5.1-RC4/itest/corba/src/test/resources/scenariofour.xsd b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/resources/scenariofour.xsd new file mode 100644 index 0000000000..2669b54be3 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/corba/src/test/resources/scenariofour.xsd @@ -0,0 +1,31 @@ + + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/pom.xml b/tags/java/sca/1.5.1-RC4/itest/databindings/common/pom.xml new file mode 100644 index 0000000000..da93a73f53 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/pom.xml @@ -0,0 +1,126 @@ + + + + + org.apache.tuscany.sca + itest-databindings + 1.5.1 + + + 4.0.0 + + itest-databindings-common + 1.5.1 + jar + Apache Tuscany SCA iTest Databinding Common + + + + + true + + java.net + java.net Maven 1.x Repository + http://download.java.net/maven/1 + legacy + + + + + + + true + + java.net + java.net Maven 1.x Repository + http://download.java.net/maven/1 + legacy + + + + + + org.apache.tuscany.sca + tuscany-databinding-sdo + ${pom.version} + compile + + + org.apache.tuscany.sdo + tuscany-sdo-tools + 1.1.1 + compile + + + velocity + velocity + 1.4 + compile + + + + + + + org.codehaus.mojo + build-helper-maven-plugin + 1.0 + + + add-test-source + generate-sources + + add-test-source + + + + target/sdo-source + + + + + + + org.apache.tuscany.sdo + tuscany-sdo-plugin + 1.1.1 + + + generate-sdo + generate-sources + + + + ${basedir}/src/main/resources/generate/generate.xsd + + + true + true + true + + + generate + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/java/org/apache/tuscany/sca/itest/generate/Generate.java b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/java/org/apache/tuscany/sca/itest/generate/Generate.java new file mode 100644 index 0000000000..adb546a1ea --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/java/org/apache/tuscany/sca/itest/generate/Generate.java @@ -0,0 +1,181 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.generate; + +import java.io.File; +import java.io.FileInputStream; +import java.io.FileWriter; +import java.util.List; +import java.util.Properties; + +import org.apache.tuscany.generate.GenerateFactory; +import org.apache.tuscany.generate.GenerateType; +import org.apache.tuscany.generate.InputFileType; +import org.apache.tuscany.generate.TemplateType; +import org.apache.tuscany.sdo.generate.XSD2JavaGenerator; +import org.apache.tuscany.sdo.util.SDOUtil; +import org.apache.velocity.VelocityContext; +import org.apache.velocity.app.Velocity; + +import commonj.sdo.helper.HelperContext; +import commonj.sdo.helper.XMLDocument; + +/** + * Generates test files based on the information in a configuration files (generate.xml) + * and a set of velocity templates. The process is + * + * for each template + * for each xsd file + * generate SDOs + * include the factory into the composite + * for each type + * add client iface method + * add client impl method + * add service iface method + * add service impl method + * add test method + * add wsdl type and method + * + * @version $Rev$ $Date$ + */ +public class Generate { + + /** + * Does all the hard work of running the velocity templates against the + * the list of types to test. Both the list of templates and the list of + * XSD files is held in the configuration file (generate.xsd) which lives in the + * resources/generate directory of the project being generated. + * + * @param projectBuildDir the path to the target dir of the project being generated. + */ + public static void generate(String projectBuildDir) { + System.out.println(">> Building project from dir: " + projectBuildDir); + FileInputStream fis = null; + + try { + // Load the config file into a stream + fis = new FileInputStream(projectBuildDir + "/classes/generate/generate.xml"); + + // Load the stream into SDO + // We are just using SDO as a convenient way to parse the XML config file + HelperContext scope = SDOUtil.createHelperContext(); + GenerateFactory.INSTANCE.register(scope); + XMLDocument xmlDoc = scope.getXMLHelper().load(fis); + GenerateType generateType = (GenerateType)xmlDoc.getRootObject(); + + // Get the file list. This is the list of XSD that is passed into the + // the velocity templates. Each configured file holds a list of types + // that the velocity templates expand into appropriate methods and method calls + List fileList = generateType.getInputFile(); + + //Initialise velocity ready to generate the various files + Properties p = new Properties(); + p.setProperty("file.resource.loader.path", projectBuildDir + "/classes/generate"); + Velocity.init(p); + VelocityContext context = new VelocityContext(); + context.put("fileList", fileList); + + List templateList = generateType.getTemplate(); + + // For each velocity template in the template list pass in the XSD file list + for ( Object item: templateList){ + TemplateType template = (TemplateType)item; + context.put("template", template); + String tmp = template.getTemplateName(); + String filename = projectBuildDir + "/" + template.getTemplateTargetDir() + "/" + tmp.substring(0,tmp.length() - 3); + File f = new File(filename); + // Create folders since the package doesn't exist before the code-gen for the 1st time + f.getParentFile().mkdirs(); + FileWriter fw = new FileWriter(f); + System.out.println(">> Processing " + template.getTemplateName() + " to " + filename); + Velocity.mergeTemplate(template.getTemplateName(), context, fw ); + fw.flush(); + fw.close(); + } + + + } catch (Exception e) { + System.out.println("Exception : " + e.toString()); + e.printStackTrace(); + return; + } + } + + /** + * The SDO generator tool does all of the hard work + * + * @param projectBuildDir the path to the target dir of the project being generated. + */ + public static void generateSDO(String projectBuildDir) { + System.out.println(">> Building SDOs from dir: " + projectBuildDir); + FileInputStream fis = null; + + try { + // Load the config file into a stream + fis = new FileInputStream(projectBuildDir + "/classes/generate/generate.xml"); + + // Load the stream into SDO + // We are just using SDO as a convenient way to parse the XML config file + HelperContext scope = SDOUtil.createHelperContext(); + GenerateFactory.INSTANCE.register(scope); + XMLDocument xmlDoc = scope.getXMLHelper().load(fis); + GenerateType generateType = (GenerateType)xmlDoc.getRootObject(); + + // Get the file list. This is the list of XSD that is passed into the + // the velocity templates. Each configured file holds a list of types + // that the velocity templates expand into appropriate methods and method calls + List fileList = generateType.getInputFile(); + + // for each XSD in the XSD file list generate an SDO. + XSD2JavaGenerator generator = new XSD2JavaGenerator(); + + for ( Object item : fileList){ + InputFileType file = (InputFileType)item; + + XSD2JavaGenerator.generateFromXMLSchema(projectBuildDir + "/classes/xsd/" + file.getFileName(), + file.getNamespace(), + projectBuildDir + "/sdo-source", + file.getJavaPackage(), + null, //file.getPrefix(), + XSD2JavaGenerator.OPTION_NO_CONTAINMENT | XSD2JavaGenerator.OPTION_NO_NOTIFICATION | XSD2JavaGenerator.OPTION_NO_UNSETTABLE); + + } + + } catch (Exception e) { + System.out.println("Exception : " + e.toString()); + e.printStackTrace(); + return; + } + } + + /** + * The mainline + * + * @param args the target directory where project in which files are being generated + */ + public static void main(String[] args) { + + Generate.generate(args[0]); + + if (args.length > 1){ + Generate.generateSDO(args[0]); + } + } + +} diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/generate/DatabindingTestCase.java.vm b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/generate/DatabindingTestCase.java.vm new file mode 100644 index 0000000000..b2346aa973 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/generate/DatabindingTestCase.java.vm @@ -0,0 +1,112 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package $template.getJavaPackage(); + +import junit.framework.TestCase; + +import org.apache.tuscany.sca.host.embedded.SCADomain; +import org.osoa.sca.ComponentContext; +import org.osoa.sca.ServiceReference; + +import ${template.getJavaPackage()}.GreeterService; + +// Data types +#foreach($file in $fileList) +#set($typeList = $file.getType_()) +#foreach($typeInstance in $typeList) +import $file.getJavaPackage().$typeInstance.getTypeName(); +import $file.getJavaPackage().$file.getFactory(); +#end +#end + +/** + * Automatically generated test case. Calls the greeter client for a number of + * bindings and a number of data types. + * + * @version $Rev: 511417 $ $Date: 2007-02-25 03:06:42 +0000 (Sun, 25 Feb 2007) $ + */ +public class DatabindingTestCase extends TestCase { + + private SCADomain domain; + private GreeterService greeterClient; + + /** + * Runs before each test method + */ + protected void setUp() throws Exception { + domain = SCADomain.newInstance("greeter.composite"); + super.setUp(); + } + + /** + * Runs after each test method + */ + protected void tearDown() { + domain.close(); + } + + /** + * Finds the SCA component that relates to the protocol being tested. This test + * always connects locally to the client component but the client component will + * connect to the back end component using the appropriate protocol + * + * @param ext the protcol required + */ + private void setUpClient(String ext) throws Exception { + greeterClient = domain.getService(GreeterService.class, ext + "GreeterServiceClient"); + } + + /** + * Invokes the SDO Greet service using web service bindings with SDO payload + */ + public void testWSGreet() throws Exception { + setUpClient("WS"); + greet(); + } + + /** + * Invokes the SDO Greet service using default bindings with SDO payload + */ + public void testDefaultGreet() throws Exception { + setUpClient("Default"); + greet(); + } + + /** + * A generic method which, regarless of which client is connected, sends out a + * series of requrests passing different data types. + */ + public void greet() { +#foreach($file in $fileList) +#set($typeList = $file.getType_()) +#foreach($typeInstance in $typeList) + + // test $typeInstance.getTypeName() + { + $typeInstance.getTypeName() param = null; + $typeInstance.getCreateTypeCode() + $typeInstance.getTypeName() result = greeterClient.greet$typeInstance.getTypeName()(param); + $typeInstance.getResultComparison() + } +#end +#end + } + +} diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/generate/Greeter.wsdl.vm b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/generate/Greeter.wsdl.vm new file mode 100644 index 0000000000..88616cc997 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/generate/Greeter.wsdl.vm @@ -0,0 +1,103 @@ + + + + + + + +#foreach($file in $fileList) + +#end + +#foreach($file in $fileList) +#set($typeList = $file.getType_()) +#foreach($typeInstance in $typeList) + + + + + + + +#end +#end + + +#foreach($file in $fileList) +#set($typeList = $file.getType_()) +#foreach($typeInstance in $typeList) + + + + + + + +#end +#end + + +#foreach($file in $fileList) +#set($typeList = $file.getType_()) +#foreach($typeInstance in $typeList) + + + + +#end +#end + + + + +#foreach($file in $fileList) +#set($typeList = $file.getType_()) +#foreach($typeInstance in $typeList) + + + + + + + + + +#end +#end + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/generate/GreeterService.java.vm b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/generate/GreeterService.java.vm new file mode 100644 index 0000000000..77a12e92ec --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/generate/GreeterService.java.vm @@ -0,0 +1,53 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package $template.getJavaPackage(); + +#foreach($file in $fileList) +#set($typeList = $file.getType_()) +#foreach($typeInstance in $typeList) +import $file.getJavaPackage().$typeInstance.getTypeName(); +#end +#end + +import org.osoa.sca.annotations.Remotable; + +/** + * The automatically generated interface to the service that reflects data objects + * that are sent to it + * + * @version $Rev: 511417 $ $Date: 2007-02-25 03:06:42 +0000 (Sun, 25 Feb 2007) $ + */ +@Remotable +public interface GreeterService { + +#foreach($file in $fileList) +#set($typeList = $file.getType_()) +#foreach($typeInstance in $typeList) + /** + * Take the provided data object, change it slightly and return it + * + * @param param the data object to be changed and returned + * @return the change data object + */ + $typeInstance.getTypeName() greet$typeInstance.getTypeName()($typeInstance.getTypeName() param); +#end +#end + +} diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/generate/GreeterServiceClient.java.vm b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/generate/GreeterServiceClient.java.vm new file mode 100644 index 0000000000..ee73db6152 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/generate/GreeterServiceClient.java.vm @@ -0,0 +1,42 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package $template.getJavaPackage(); + +#foreach($file in $fileList) +#set($typeList = $file.getType_()) +#foreach($typeInstance in $typeList) +import $file.getJavaPackage().$typeInstance.getTypeName(); +#end +#end + +import org.osoa.sca.annotations.AllowsPassByReference; + +/** + * GreeterServiceClient + */ +@AllowsPassByReference +public interface GreeterServiceClient { +#foreach($file in $fileList) +#set($typeList = $file.getType_()) +#foreach($typeInstance in $typeList) + $typeInstance.getTypeName() greet$typeInstance.getTypeName()($typeInstance.getTypeName() param); +#end +#end +} diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/generate/GreeterServiceClientImpl.java.vm b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/generate/GreeterServiceClientImpl.java.vm new file mode 100644 index 0000000000..aab564dc1e --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/generate/GreeterServiceClientImpl.java.vm @@ -0,0 +1,65 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package $template.getJavaPackage(); + +import org.osoa.sca.annotations.Reference; +import org.osoa.sca.annotations.Service; + +#foreach($file in $fileList) +#set($typeList = $file.getType_()) +#foreach($typeInstance in $typeList) +import $file.getJavaPackage().$typeInstance.getTypeName(); +#end +#end + +/** + * The automatically generated service that simply forwards data objects on to + * the GreeterService and passes back the responses + * + * @version $Rev: 508831 $ $Date: 2007-02-18 00:12:31 +0000 (Sun, 18 Feb 2007) $ + */ +@Service(GreeterService.class) +public class GreeterServiceClientImpl implements GreeterService { + + /** + * the reference the the GreeterService that will + * change each data object slightly and return it + */ + private GreeterService service; + + @Reference + public void setGreeterService(GreeterService service) { + this.service = service; + } +#foreach($file in $fileList) +#set($typeList = $file.getType_()) +#foreach($typeInstance in $typeList) + + /* + * (non-Javadoc) + * + * @see org.apache.tuscany.sca.itest.sdodatabinding.GreeterService#greet$typeInstance.getTypeName()($typeInstance.getTypeName() param) + */ + public $typeInstance.getTypeName() greet$typeInstance.getTypeName()($typeInstance.getTypeName() param) { + return service.greet$typeInstance.getTypeName()(param); + } +#end +#end +} diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/generate/GreeterServiceImpl.java.vm b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/generate/GreeterServiceImpl.java.vm new file mode 100644 index 0000000000..5507a0b747 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/generate/GreeterServiceImpl.java.vm @@ -0,0 +1,55 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package $template.getJavaPackage(); + +#foreach($file in $fileList) +#set($typeList = $file.getType_()) +#foreach($typeInstance in $typeList) +import $file.getJavaPackage().$typeInstance.getTypeName(); +#end +#end + +import org.osoa.sca.annotations.Service; + +/** + * The automatically generated service implementation that reflects data objects + * that are sent to it + * + * @version $Rev: 511417 $ $Date: 2007-02-25 03:06:42 +0000 (Sun, 25 Feb 2007) $ + */ +@Service(GreeterService.class) +public class GreeterServiceImpl implements GreeterService { +#foreach($file in $fileList) +#set($typeList = $file.getType_()) +#foreach($typeInstance in $typeList) + + /** + * Take the provided data object, change it slightly and return it + * + * @param param the data object to be changed and returned + * @return the change data object + */ + public $typeInstance.getTypeName() greet$typeInstance.getTypeName()($typeInstance.getTypeName() param) { + $typeInstance.getModifyTypeCode() + return param; + } +#end +#end +} diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/generate/generate.xsd b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/generate/generate.xsd new file mode 100644 index 0000000000..1fabedf55f --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/generate/generate.xsd @@ -0,0 +1,61 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/wsdl/Dummy.txt b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/wsdl/Dummy.txt new file mode 100644 index 0000000000..8927d725b6 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/wsdl/Dummy.txt @@ -0,0 +1,4 @@ +A dummy file that causes the target/classes/wsdl dir to be created in the generated test project. This is +required because the test generator must run in the process-resource phase, after generate.xml has been copied +into target. The generator needs to write out target/classes/wsdl and will fail the directory isn't there. So +this file just gets unpacked and forces the directory to be created. diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/Annotation.xml b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/Annotation.xml new file mode 100644 index 0000000000..f1f4346e58 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/Annotation.xml @@ -0,0 +1,24 @@ + + + + SimpleTypeWithName + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/Annotation.xsd b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/Annotation.xsd new file mode 100644 index 0000000000..1fae43eb09 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/Annotation.xsd @@ -0,0 +1,38 @@ + + + + + + SDO 2.0.1 + + A schema that tests the presence of annotations in schema read by SDO + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/Attribute.xml b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/Attribute.xml new file mode 100644 index 0000000000..c20c80b658 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/Attribute.xml @@ -0,0 +1,24 @@ + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/Attribute.xsd b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/Attribute.xsd new file mode 100644 index 0000000000..bd3db2e030 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/Attribute.xsd @@ -0,0 +1,39 @@ + + + + + + + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/AttributeReference.xml b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/AttributeReference.xml new file mode 100644 index 0000000000..30e4979dca --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/AttributeReference.xml @@ -0,0 +1,24 @@ + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/AttributeReference.xsd b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/AttributeReference.xsd new file mode 100644 index 0000000000..e7738dcff7 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/AttributeReference.xsd @@ -0,0 +1,40 @@ + + + + + + + + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/AttributeWithDefaultValue.xml b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/AttributeWithDefaultValue.xml new file mode 100644 index 0000000000..9552421e2d --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/AttributeWithDefaultValue.xml @@ -0,0 +1,24 @@ + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/AttributeWithDefaultValue.xsd b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/AttributeWithDefaultValue.xsd new file mode 100644 index 0000000000..c7b9655749 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/AttributeWithDefaultValue.xsd @@ -0,0 +1,38 @@ + + + + + + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/AttributeWithFixedValue.xml b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/AttributeWithFixedValue.xml new file mode 100644 index 0000000000..5e5e7fbd55 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/AttributeWithFixedValue.xml @@ -0,0 +1,24 @@ + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/AttributeWithFixedValue.xsd b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/AttributeWithFixedValue.xsd new file mode 100644 index 0000000000..5c455c2ab5 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/AttributeWithFixedValue.xsd @@ -0,0 +1,38 @@ + + + + + + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/AttributeWithSDOAliasName.xml b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/AttributeWithSDOAliasName.xml new file mode 100644 index 0000000000..635e851632 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/AttributeWithSDOAliasName.xml @@ -0,0 +1,24 @@ + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/AttributeWithSDOAliasName.xsd b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/AttributeWithSDOAliasName.xsd new file mode 100644 index 0000000000..004dab4fbb --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/AttributeWithSDOAliasName.xsd @@ -0,0 +1,38 @@ + + + + + + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/AttributeWithSDODataType.xml b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/AttributeWithSDODataType.xml new file mode 100644 index 0000000000..136092951b --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/AttributeWithSDODataType.xml @@ -0,0 +1,24 @@ + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/AttributeWithSDODataType.xsd b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/AttributeWithSDODataType.xsd new file mode 100644 index 0000000000..796f08e1cf --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/AttributeWithSDODataType.xsd @@ -0,0 +1,38 @@ + + + + + + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/AttributeWithSDOName.xml b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/AttributeWithSDOName.xml new file mode 100644 index 0000000000..927b94885c --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/AttributeWithSDOName.xml @@ -0,0 +1,24 @@ + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/AttributeWithSDOName.xsd b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/AttributeWithSDOName.xsd new file mode 100644 index 0000000000..93f83cd0a1 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/AttributeWithSDOName.xsd @@ -0,0 +1,38 @@ + + + + + + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/AttributeWithSDOPropertySDOOppositePropertyType.xml b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/AttributeWithSDOPropertySDOOppositePropertyType.xml new file mode 100644 index 0000000000..ea7db70595 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/AttributeWithSDOPropertySDOOppositePropertyType.xml @@ -0,0 +1,24 @@ + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/AttributeWithSDOPropertySDOOppositePropertyType.xsd b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/AttributeWithSDOPropertySDOOppositePropertyType.xsd new file mode 100644 index 0000000000..c64323e7e1 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/AttributeWithSDOPropertySDOOppositePropertyType.xsd @@ -0,0 +1,38 @@ + + + + + + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/AttributeWithSDOPropertyType.xml b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/AttributeWithSDOPropertyType.xml new file mode 100644 index 0000000000..85c7d85fd4 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/AttributeWithSDOPropertyType.xml @@ -0,0 +1,24 @@ + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/AttributeWithSDOPropertyType.xsd b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/AttributeWithSDOPropertyType.xsd new file mode 100644 index 0000000000..543f276c50 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/AttributeWithSDOPropertyType.xsd @@ -0,0 +1,38 @@ + + + + + + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/AttributeWithSDOString.xml b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/AttributeWithSDOString.xml new file mode 100644 index 0000000000..fcd281539b --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/AttributeWithSDOString.xml @@ -0,0 +1,24 @@ + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/AttributeWithSDOString.xsd b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/AttributeWithSDOString.xsd new file mode 100644 index 0000000000..1610c2b861 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/AttributeWithSDOString.xsd @@ -0,0 +1,38 @@ + + + + + + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInAnySimpleType.xml b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInAnySimpleType.xml new file mode 100644 index 0000000000..36a0760a61 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInAnySimpleType.xml @@ -0,0 +1,24 @@ + + + + anySimpleType + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInAnySimpleType.xsd b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInAnySimpleType.xsd new file mode 100644 index 0000000000..999b72bb35 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInAnySimpleType.xsd @@ -0,0 +1,31 @@ + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInAnyType.xml b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInAnyType.xml new file mode 100644 index 0000000000..5849165fe0 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInAnyType.xml @@ -0,0 +1,24 @@ + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInAnyType.xsd b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInAnyType.xsd new file mode 100644 index 0000000000..71dad561ca --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInAnyType.xsd @@ -0,0 +1,31 @@ + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInAnyURI.xml b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInAnyURI.xml new file mode 100644 index 0000000000..8acf9376d7 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInAnyURI.xml @@ -0,0 +1,24 @@ + + + + http://tempuri.org + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInAnyURI.xsd b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInAnyURI.xsd new file mode 100644 index 0000000000..a49987c352 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInAnyURI.xsd @@ -0,0 +1,31 @@ + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInBase64Binary.xml b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInBase64Binary.xml new file mode 100644 index 0000000000..a35b6e174a --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInBase64Binary.xml @@ -0,0 +1,24 @@ + + + + ABCDEF + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInBase64Binary.xsd b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInBase64Binary.xsd new file mode 100644 index 0000000000..e1995890f9 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInBase64Binary.xsd @@ -0,0 +1,31 @@ + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInBoolean.xml b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInBoolean.xml new file mode 100644 index 0000000000..91cfce51b8 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInBoolean.xml @@ -0,0 +1,27 @@ + + + + true + false + 1 + 0 + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInBoolean.xsd b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInBoolean.xsd new file mode 100644 index 0000000000..a2f86ba8c5 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInBoolean.xsd @@ -0,0 +1,31 @@ + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInByte.xml b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInByte.xml new file mode 100644 index 0000000000..907474cd1b --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInByte.xml @@ -0,0 +1,25 @@ + + + + 127 + -127 + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInByte.xsd b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInByte.xsd new file mode 100644 index 0000000000..a2f6bcfa77 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInByte.xsd @@ -0,0 +1,31 @@ + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInDate.xml b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInDate.xml new file mode 100644 index 0000000000..c5820e1a2e --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInDate.xml @@ -0,0 +1,24 @@ + + + + 2001-01-01 + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInDate.xsd b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInDate.xsd new file mode 100644 index 0000000000..f4d596bfe3 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInDate.xsd @@ -0,0 +1,31 @@ + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInDateTime.xml b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInDateTime.xml new file mode 100644 index 0000000000..0debe2fec5 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInDateTime.xml @@ -0,0 +1,24 @@ + + + + 2001-12-31T12:00:00 + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInDateTime.xsd b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInDateTime.xsd new file mode 100644 index 0000000000..b5bcfdcfd4 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInDateTime.xsd @@ -0,0 +1,31 @@ + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInDecimal.xml b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInDecimal.xml new file mode 100644 index 0000000000..7f001254cc --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInDecimal.xml @@ -0,0 +1,23 @@ + + + + -1.23456789 + 1.23456789 + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInDecimal.xsd b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInDecimal.xsd new file mode 100644 index 0000000000..8d4d106f59 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInDecimal.xsd @@ -0,0 +1,31 @@ + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInDouble.xml b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInDouble.xml new file mode 100644 index 0000000000..f875b9f94d --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInDouble.xml @@ -0,0 +1,25 @@ + + + + 0.0 + 12.3E-4 + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInDouble.xsd b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInDouble.xsd new file mode 100644 index 0000000000..4c8a39b06c --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInDouble.xsd @@ -0,0 +1,31 @@ + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInDuration.xml b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInDuration.xml new file mode 100644 index 0000000000..7d343d6dda --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInDuration.xml @@ -0,0 +1,24 @@ + + + + P1D + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInDuration.xsd b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInDuration.xsd new file mode 100644 index 0000000000..bb12bc04a9 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInDuration.xsd @@ -0,0 +1,31 @@ + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInFloat.xml b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInFloat.xml new file mode 100644 index 0000000000..7a81f3b0dd --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInFloat.xml @@ -0,0 +1,24 @@ + + + + 0.0 + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInFloat.xsd b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInFloat.xsd new file mode 100644 index 0000000000..f0e1c21233 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInFloat.xsd @@ -0,0 +1,31 @@ + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInGDay.xml b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInGDay.xml new file mode 100644 index 0000000000..d35568b3c9 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInGDay.xml @@ -0,0 +1,24 @@ + + + + ---01 + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInGDay.xsd b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInGDay.xsd new file mode 100644 index 0000000000..92bd9a4b66 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInGDay.xsd @@ -0,0 +1,31 @@ + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInGMonth.xml b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInGMonth.xml new file mode 100644 index 0000000000..52cdfa8c4e --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInGMonth.xml @@ -0,0 +1,24 @@ + + + + --01-- + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInGMonth.xsd b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInGMonth.xsd new file mode 100644 index 0000000000..78d001a585 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInGMonth.xsd @@ -0,0 +1,31 @@ + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInGMonthDay.xml b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInGMonthDay.xml new file mode 100644 index 0000000000..2609a858f7 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInGMonthDay.xml @@ -0,0 +1,24 @@ + + + + --01-01 + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInGMonthDay.xsd b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInGMonthDay.xsd new file mode 100644 index 0000000000..38f6c55059 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInGMonthDay.xsd @@ -0,0 +1,31 @@ + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInGYear.xml b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInGYear.xml new file mode 100644 index 0000000000..7868a47ca3 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInGYear.xml @@ -0,0 +1,24 @@ + + + + 2001 + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInGYear.xsd b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInGYear.xsd new file mode 100644 index 0000000000..0d65b124ff --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInGYear.xsd @@ -0,0 +1,31 @@ + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInGYearMonth.xml b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInGYearMonth.xml new file mode 100644 index 0000000000..3f5080d49f --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInGYearMonth.xml @@ -0,0 +1,24 @@ + + + + 2001-01 + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInGYearMonth.xsd b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInGYearMonth.xsd new file mode 100644 index 0000000000..340555dc5f --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInGYearMonth.xsd @@ -0,0 +1,31 @@ + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInHexBinary.xml b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInHexBinary.xml new file mode 100644 index 0000000000..0deb7af980 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInHexBinary.xml @@ -0,0 +1,24 @@ + + + + 0F00 + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInHexBinary.xsd b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInHexBinary.xsd new file mode 100644 index 0000000000..8059fe6da0 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInHexBinary.xsd @@ -0,0 +1,31 @@ + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInID.xml b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInID.xml new file mode 100644 index 0000000000..06c92ce19b --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInID.xml @@ -0,0 +1,24 @@ + + + + idvalue0 + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInID.xsd b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInID.xsd new file mode 100644 index 0000000000..7b1f02d1d4 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInID.xsd @@ -0,0 +1,31 @@ + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInIDREF.xml b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInIDREF.xml new file mode 100644 index 0000000000..9bc0cefd0f --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInIDREF.xml @@ -0,0 +1,24 @@ + + + + idvalue0 + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInIDREF.xsd b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInIDREF.xsd new file mode 100644 index 0000000000..0c207983bc --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInIDREF.xsd @@ -0,0 +1,31 @@ + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInIDREFS.xml b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInIDREFS.xml new file mode 100644 index 0000000000..f91b602f99 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInIDREFS.xml @@ -0,0 +1,24 @@ + + + + idvalue0 + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInIDREFS.xsd b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInIDREFS.xsd new file mode 100644 index 0000000000..b99bf01b73 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInIDREFS.xsd @@ -0,0 +1,31 @@ + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInInt.xml b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInInt.xml new file mode 100644 index 0000000000..c99698e175 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInInt.xml @@ -0,0 +1,25 @@ + + + + -2147483648 + 2147483647 + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInInt.xsd b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInInt.xsd new file mode 100644 index 0000000000..b5b9b0d1eb --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInInt.xsd @@ -0,0 +1,31 @@ + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInInteger.xml b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInInteger.xml new file mode 100644 index 0000000000..80d22ce057 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInInteger.xml @@ -0,0 +1,25 @@ + + + + -2147483648 + 2147483647 + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInInteger.xsd b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInInteger.xsd new file mode 100644 index 0000000000..4902935db5 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInInteger.xsd @@ -0,0 +1,31 @@ + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInLanguage.xml b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInLanguage.xml new file mode 100644 index 0000000000..664bf824b4 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInLanguage.xml @@ -0,0 +1,24 @@ + + + + EN + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInLanguage.xsd b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInLanguage.xsd new file mode 100644 index 0000000000..5d3658d224 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInLanguage.xsd @@ -0,0 +1,31 @@ + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInLong.xml b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInLong.xml new file mode 100644 index 0000000000..c5861fa92a --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInLong.xml @@ -0,0 +1,25 @@ + + + + -9223372036854775808 + 9223372036854775807 + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInLong.xsd b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInLong.xsd new file mode 100644 index 0000000000..0aa4710057 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInLong.xsd @@ -0,0 +1,33 @@ + + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInNCName.xml b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInNCName.xml new file mode 100644 index 0000000000..1f95950394 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInNCName.xml @@ -0,0 +1,24 @@ + + + + NCName + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInNCName.xsd b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInNCName.xsd new file mode 100644 index 0000000000..6ee9c435db --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInNCName.xsd @@ -0,0 +1,31 @@ + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInNMTOKEN.xml b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInNMTOKEN.xml new file mode 100644 index 0000000000..0297f1aeb4 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInNMTOKEN.xml @@ -0,0 +1,24 @@ + + + + NMTOKEN + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInNMTOKEN.xsd b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInNMTOKEN.xsd new file mode 100644 index 0000000000..56d027bdbb --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInNMTOKEN.xsd @@ -0,0 +1,31 @@ + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInNMTOKENS.xml b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInNMTOKENS.xml new file mode 100644 index 0000000000..81ba1069bd --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInNMTOKENS.xml @@ -0,0 +1,24 @@ + + + + NMTOKENS + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInNMTOKENS.xsd b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInNMTOKENS.xsd new file mode 100644 index 0000000000..866ab73024 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInNMTOKENS.xsd @@ -0,0 +1,31 @@ + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInNOTATION.xml b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInNOTATION.xml new file mode 100644 index 0000000000..8bb3a08b94 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInNOTATION.xml @@ -0,0 +1,24 @@ + + + + tns:BuiltInNotationNotation + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInNOTATION.xsd b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInNOTATION.xsd new file mode 100644 index 0000000000..c7c62f812b --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInNOTATION.xsd @@ -0,0 +1,39 @@ + + + + + + + + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInName.xml b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInName.xml new file mode 100644 index 0000000000..8235718c5e --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInName.xml @@ -0,0 +1,24 @@ + + + + Name + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInName.xsd b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInName.xsd new file mode 100644 index 0000000000..36caba2f16 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInName.xsd @@ -0,0 +1,31 @@ + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInNegativeInteger.xml b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInNegativeInteger.xml new file mode 100644 index 0000000000..599c428a44 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInNegativeInteger.xml @@ -0,0 +1,24 @@ + + + + -1 + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInNegativeInteger.xsd b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInNegativeInteger.xsd new file mode 100644 index 0000000000..389d5a99f0 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInNegativeInteger.xsd @@ -0,0 +1,31 @@ + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInNonNegativeInteger.xml b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInNonNegativeInteger.xml new file mode 100644 index 0000000000..919c4a20ee --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInNonNegativeInteger.xml @@ -0,0 +1,24 @@ + + + + 0 + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInNonNegativeInteger.xsd b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInNonNegativeInteger.xsd new file mode 100644 index 0000000000..59887078b5 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInNonNegativeInteger.xsd @@ -0,0 +1,31 @@ + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInNonPositiveInteger.xml b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInNonPositiveInteger.xml new file mode 100644 index 0000000000..79011f26ab --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInNonPositiveInteger.xml @@ -0,0 +1,24 @@ + + + + -1 + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInNonPositiveInteger.xsd b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInNonPositiveInteger.xsd new file mode 100644 index 0000000000..5de7d64d7b --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInNonPositiveInteger.xsd @@ -0,0 +1,31 @@ + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInNormalizedString.xml b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInNormalizedString.xml new file mode 100644 index 0000000000..c40be9e18b --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInNormalizedString.xml @@ -0,0 +1,24 @@ + + + + normalizedString + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInNormalizedString.xsd b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInNormalizedString.xsd new file mode 100644 index 0000000000..d4a78787b8 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInNormalizedString.xsd @@ -0,0 +1,31 @@ + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInPositiveInteger.xml b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInPositiveInteger.xml new file mode 100644 index 0000000000..c30434de66 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInPositiveInteger.xml @@ -0,0 +1,24 @@ + + + + 1 + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInPositiveInteger.xsd b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInPositiveInteger.xsd new file mode 100644 index 0000000000..5381590cd1 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInPositiveInteger.xsd @@ -0,0 +1,31 @@ + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInQName.xml b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInQName.xml new file mode 100644 index 0000000000..4cd6ea7e72 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInQName.xml @@ -0,0 +1,24 @@ + + + + QName + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInQName.xsd b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInQName.xsd new file mode 100644 index 0000000000..e8faf6225b --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInQName.xsd @@ -0,0 +1,31 @@ + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInShort.xml b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInShort.xml new file mode 100644 index 0000000000..b4375467c4 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInShort.xml @@ -0,0 +1,25 @@ + + + + -32768 + 32767 + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInShort.xsd b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInShort.xsd new file mode 100644 index 0000000000..a4f564d9b7 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInShort.xsd @@ -0,0 +1,31 @@ + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInString.xml b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInString.xml new file mode 100644 index 0000000000..d30ab85530 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInString.xml @@ -0,0 +1,24 @@ + + + + string + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInString.xsd b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInString.xsd new file mode 100644 index 0000000000..8abb34b5a5 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInString.xsd @@ -0,0 +1,31 @@ + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInTime.xml b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInTime.xml new file mode 100644 index 0000000000..7fd9a061ae --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInTime.xml @@ -0,0 +1,24 @@ + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInTime.xsd b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInTime.xsd new file mode 100644 index 0000000000..1615976813 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInTime.xsd @@ -0,0 +1,31 @@ + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInToken.xml b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInToken.xml new file mode 100644 index 0000000000..cd567ba528 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInToken.xml @@ -0,0 +1,24 @@ + + + + token + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInToken.xsd b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInToken.xsd new file mode 100644 index 0000000000..0beaac571f --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInToken.xsd @@ -0,0 +1,31 @@ + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInUnsignedByte.xml b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInUnsignedByte.xml new file mode 100644 index 0000000000..025362defb --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInUnsignedByte.xml @@ -0,0 +1,25 @@ + + + + 0 + 255 + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInUnsignedByte.xsd b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInUnsignedByte.xsd new file mode 100644 index 0000000000..d6d951fe5d --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInUnsignedByte.xsd @@ -0,0 +1,31 @@ + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInUnsignedInt.xml b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInUnsignedInt.xml new file mode 100644 index 0000000000..5736a8c121 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInUnsignedInt.xml @@ -0,0 +1,25 @@ + + + + 0 + 4294967295 + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInUnsignedInt.xsd b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInUnsignedInt.xsd new file mode 100644 index 0000000000..242be1d53b --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInUnsignedInt.xsd @@ -0,0 +1,31 @@ + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInUnsignedLong.xml b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInUnsignedLong.xml new file mode 100644 index 0000000000..d728115a77 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInUnsignedLong.xml @@ -0,0 +1,25 @@ + + + + 0 + 18446744073709551615 + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInUnsignedLong.xsd b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInUnsignedLong.xsd new file mode 100644 index 0000000000..108e3a8619 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInUnsignedLong.xsd @@ -0,0 +1,31 @@ + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInUnsignedShort.xml b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInUnsignedShort.xml new file mode 100644 index 0000000000..d4ffae5e17 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInUnsignedShort.xml @@ -0,0 +1,25 @@ + + + + 0 + 65535 + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInUnsignedShort.xsd b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInUnsignedShort.xsd new file mode 100644 index 0000000000..5ee5e0229e --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/BuiltInUnsignedShort.xsd @@ -0,0 +1,31 @@ + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ComplexTypeComplexContentRestrictingComplexType.xml b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ComplexTypeComplexContentRestrictingComplexType.xml new file mode 100644 index 0000000000..3d5aed5aa8 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ComplexTypeComplexContentRestrictingComplexType.xml @@ -0,0 +1,26 @@ + + + + + SimpleTypeWithName + + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ComplexTypeComplexContentRestrictingComplexType.xsd b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ComplexTypeComplexContentRestrictingComplexType.xsd new file mode 100644 index 0000000000..e7b80ab11c --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ComplexTypeComplexContentRestrictingComplexType.xsd @@ -0,0 +1,44 @@ + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ComplexTypeExtendingComplexType.xml b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ComplexTypeExtendingComplexType.xml new file mode 100644 index 0000000000..2b4fe5594e --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ComplexTypeExtendingComplexType.xml @@ -0,0 +1,27 @@ + + + + + SimpleTypeWithName + SimpleTypeWithNameExtended + + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ComplexTypeExtendingComplexType.xsd b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ComplexTypeExtendingComplexType.xsd new file mode 100644 index 0000000000..fc4deb63c2 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ComplexTypeExtendingComplexType.xsd @@ -0,0 +1,43 @@ + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ComplexTypeExtendingSimpleType.xml b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ComplexTypeExtendingSimpleType.xml new file mode 100644 index 0000000000..03570f41d9 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ComplexTypeExtendingSimpleType.xml @@ -0,0 +1,24 @@ + + + + ComplexTypeExtendingSimpeTypeElement + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ComplexTypeExtendingSimpleType.xsd b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ComplexTypeExtendingSimpleType.xsd new file mode 100644 index 0000000000..c754502645 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ComplexTypeExtendingSimpleType.xsd @@ -0,0 +1,41 @@ + + + + + + + + + + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ComplexTypeSimpleContentRestrictingComplexType.xml b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ComplexTypeSimpleContentRestrictingComplexType.xml new file mode 100644 index 0000000000..4603793bfc --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ComplexTypeSimpleContentRestrictingComplexType.xml @@ -0,0 +1,24 @@ + + + + ComplexTypeSimpleContentRestrictingComplexTypeElement + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ComplexTypeSimpleContentRestrictingComplexType.xsd b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ComplexTypeSimpleContentRestrictingComplexType.xsd new file mode 100644 index 0000000000..4bcd2f8c46 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ComplexTypeSimpleContentRestrictingComplexType.xsd @@ -0,0 +1,41 @@ + + + + + + + + + + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ComplexTypeWithAbstract.xml b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ComplexTypeWithAbstract.xml new file mode 100644 index 0000000000..a6861f803a --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ComplexTypeWithAbstract.xml @@ -0,0 +1,27 @@ + + + + + BaseElement + ExtensionElement + + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ComplexTypeWithAbstract.xsd b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ComplexTypeWithAbstract.xsd new file mode 100644 index 0000000000..8bb251cab2 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ComplexTypeWithAbstract.xsd @@ -0,0 +1,47 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ComplexTypeWithCDATA.xml b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ComplexTypeWithCDATA.xml new file mode 100644 index 0000000000..467ec007ed --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ComplexTypeWithCDATA.xml @@ -0,0 +1,30 @@ + + + + + Some + ]]> + Mixed + SimpleType]]>WithName + Content + + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ComplexTypeWithCDATA.xsd b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ComplexTypeWithCDATA.xsd new file mode 100644 index 0000000000..8d00646678 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ComplexTypeWithCDATA.xsd @@ -0,0 +1,39 @@ + + + + + + + + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ComplexTypeWithContent.xml b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ComplexTypeWithContent.xml new file mode 100644 index 0000000000..7deafd798a --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ComplexTypeWithContent.xml @@ -0,0 +1,26 @@ + + + + + SimpleTypeWithName + + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ComplexTypeWithContent.xsd b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ComplexTypeWithContent.xsd new file mode 100644 index 0000000000..72ac75fee0 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ComplexTypeWithContent.xsd @@ -0,0 +1,37 @@ + + + + + + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ComplexTypeWithMixed.xml b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ComplexTypeWithMixed.xml new file mode 100644 index 0000000000..f6208f81b3 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ComplexTypeWithMixed.xml @@ -0,0 +1,29 @@ + + + + + Some + Mixed + SimpleTypeWithName + Content + + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ComplexTypeWithMixed.xsd b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ComplexTypeWithMixed.xsd new file mode 100644 index 0000000000..1f26e13673 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ComplexTypeWithMixed.xsd @@ -0,0 +1,39 @@ + + + + + + + + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ComplexTypeWithOpenAttributes.xml b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ComplexTypeWithOpenAttributes.xml new file mode 100644 index 0000000000..97de7b98eb --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ComplexTypeWithOpenAttributes.xml @@ -0,0 +1,24 @@ + + + + + SimpleTypeWithName + + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ComplexTypeWithOpenAttributes.xsd b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ComplexTypeWithOpenAttributes.xsd new file mode 100644 index 0000000000..67716553d8 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ComplexTypeWithOpenAttributes.xsd @@ -0,0 +1,42 @@ + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ComplexTypeWithOpenContent.xml b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ComplexTypeWithOpenContent.xml new file mode 100644 index 0000000000..5941348921 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ComplexTypeWithOpenContent.xml @@ -0,0 +1,31 @@ + + + + + + + Some + Mixed + SimpleTypeWithName + Content + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ComplexTypeWithOpenContent.xsd b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ComplexTypeWithOpenContent.xsd new file mode 100644 index 0000000000..24d5d09054 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ComplexTypeWithOpenContent.xsd @@ -0,0 +1,39 @@ + + + + + + + + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ComplexTypeWithOppositeProperty.xml b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ComplexTypeWithOppositeProperty.xml new file mode 100644 index 0000000000..f684d06a4d --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ComplexTypeWithOppositeProperty.xml @@ -0,0 +1,30 @@ + + + + + SomeData + + + idvalue2 + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ComplexTypeWithOppositeProperty.xsd b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ComplexTypeWithOppositeProperty.xsd new file mode 100644 index 0000000000..de4a8a666d --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ComplexTypeWithOppositeProperty.xsd @@ -0,0 +1,59 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ComplexTypeWithSDOAliasName.xml b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ComplexTypeWithSDOAliasName.xml new file mode 100644 index 0000000000..242908bd27 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ComplexTypeWithSDOAliasName.xml @@ -0,0 +1,26 @@ + + + + + SimpleTypeWithName + + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ComplexTypeWithSDOAliasName.xsd b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ComplexTypeWithSDOAliasName.xsd new file mode 100644 index 0000000000..4c00fbe295 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ComplexTypeWithSDOAliasName.xsd @@ -0,0 +1,38 @@ + + + + + + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ComplexTypeWithSDOName.xml b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ComplexTypeWithSDOName.xml new file mode 100644 index 0000000000..925e8625d5 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ComplexTypeWithSDOName.xml @@ -0,0 +1,26 @@ + + + + + SimpleTypeWithName + + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ComplexTypeWithSDOName.xsd b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ComplexTypeWithSDOName.xsd new file mode 100644 index 0000000000..b12bec040b --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ComplexTypeWithSDOName.xsd @@ -0,0 +1,38 @@ + + + + + + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ComplexTypeWithSDOSequence.xml b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ComplexTypeWithSDOSequence.xml new file mode 100644 index 0000000000..c73708ce46 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ComplexTypeWithSDOSequence.xml @@ -0,0 +1,26 @@ + + + + + SimpleTypeWithName + + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ComplexTypeWithSDOSequence.xsd b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ComplexTypeWithSDOSequence.xsd new file mode 100644 index 0000000000..795c3ea7d9 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ComplexTypeWithSDOSequence.xsd @@ -0,0 +1,40 @@ + + + + + + + + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ComplexTypeWithoutContent.xml b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ComplexTypeWithoutContent.xml new file mode 100644 index 0000000000..3ebdc89ae0 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ComplexTypeWithoutContent.xml @@ -0,0 +1,24 @@ + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ComplexTypeWithoutContent.xsd b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ComplexTypeWithoutContent.xsd new file mode 100644 index 0000000000..21546d0f67 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ComplexTypeWithoutContent.xsd @@ -0,0 +1,33 @@ + + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ComplexTypeWithoutName.xml b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ComplexTypeWithoutName.xml new file mode 100644 index 0000000000..89657e42ca --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ComplexTypeWithoutName.xml @@ -0,0 +1,26 @@ + + + + + SimpleTypeWithName + + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ComplexTypeWithoutName.xsd b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ComplexTypeWithoutName.xsd new file mode 100644 index 0000000000..d01b4172e4 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ComplexTypeWithoutName.xsd @@ -0,0 +1,39 @@ + + + + + + + + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/DefaultNamespace.xml b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/DefaultNamespace.xml new file mode 100644 index 0000000000..82fd1eedaf --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/DefaultNamespace.xml @@ -0,0 +1,23 @@ + + + + SimpleTypeWithName + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/DefaultNamespace.xsd b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/DefaultNamespace.xsd new file mode 100644 index 0000000000..e1dcf06194 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/DefaultNamespace.xsd @@ -0,0 +1,32 @@ + + + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ElementInAll.xml b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ElementInAll.xml new file mode 100644 index 0000000000..ebf03c9d5d --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ElementInAll.xml @@ -0,0 +1,27 @@ + + + + + ElementInAllOne + ElementInAllTwo + + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ElementInAll.xsd b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ElementInAll.xsd new file mode 100644 index 0000000000..8b9ba5b4b8 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ElementInAll.xsd @@ -0,0 +1,40 @@ + + + + + + + + + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ElementInChoice.xml b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ElementInChoice.xml new file mode 100644 index 0000000000..26466b1b39 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ElementInChoice.xml @@ -0,0 +1,25 @@ + + + + Element1InChoice + Element2InChoice + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ElementInChoice.xsd b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ElementInChoice.xsd new file mode 100644 index 0000000000..ff418c56ab --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ElementInChoice.xsd @@ -0,0 +1,48 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ElementOfSDOChangeSummaryType.xml b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ElementOfSDOChangeSummaryType.xml new file mode 100644 index 0000000000..27bb1ce9cc --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ElementOfSDOChangeSummaryType.xml @@ -0,0 +1,29 @@ + + + + + + ChangeSummaryText + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ElementOfSDOChangeSummaryType.xsd b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ElementOfSDOChangeSummaryType.xsd new file mode 100644 index 0000000000..2bf1df8c99 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ElementOfSDOChangeSummaryType.xsd @@ -0,0 +1,34 @@ + + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ElementOfSimpleTypeWithDefault.xml b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ElementOfSimpleTypeWithDefault.xml new file mode 100644 index 0000000000..9b5561ed43 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ElementOfSimpleTypeWithDefault.xml @@ -0,0 +1,24 @@ + + + + ElementOfSimpleTypeWithDefaultDefault + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ElementOfSimpleTypeWithDefault.xsd b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ElementOfSimpleTypeWithDefault.xsd new file mode 100644 index 0000000000..0b4e7bdf45 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ElementOfSimpleTypeWithDefault.xsd @@ -0,0 +1,31 @@ + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ElementOfSimpleTypeWithFixed.xml b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ElementOfSimpleTypeWithFixed.xml new file mode 100644 index 0000000000..f1b7cd264c --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ElementOfSimpleTypeWithFixed.xml @@ -0,0 +1,24 @@ + + + + ElementOfSimpleTypeWithFixedFixed + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ElementOfSimpleTypeWithFixed.xsd b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ElementOfSimpleTypeWithFixed.xsd new file mode 100644 index 0000000000..a2c8456257 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ElementOfSimpleTypeWithFixed.xsd @@ -0,0 +1,31 @@ + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ElementOfSimpleTypeWithSDODataType.xml b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ElementOfSimpleTypeWithSDODataType.xml new file mode 100644 index 0000000000..1f60b0423f --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ElementOfSimpleTypeWithSDODataType.xml @@ -0,0 +1,24 @@ + + + + ElementOfSimpleTypeWithSDODataTypeElement + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ElementOfSimpleTypeWithSDODataType.xsd b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ElementOfSimpleTypeWithSDODataType.xsd new file mode 100644 index 0000000000..21e55ab8c1 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ElementOfSimpleTypeWithSDODataType.xsd @@ -0,0 +1,33 @@ + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ElementOfSimpleTypeWithSDOOppositePropertyType.xml b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ElementOfSimpleTypeWithSDOOppositePropertyType.xml new file mode 100644 index 0000000000..30762f4912 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ElementOfSimpleTypeWithSDOOppositePropertyType.xml @@ -0,0 +1,24 @@ + + + + idvalue0 + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ElementOfSimpleTypeWithSDOOppositePropertyType.xsd b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ElementOfSimpleTypeWithSDOOppositePropertyType.xsd new file mode 100644 index 0000000000..5bf35d0d70 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ElementOfSimpleTypeWithSDOOppositePropertyType.xsd @@ -0,0 +1,33 @@ + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ElementOfSimpleTypeWithSDOPropertyType.xml b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ElementOfSimpleTypeWithSDOPropertyType.xml new file mode 100644 index 0000000000..2dd01e4090 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ElementOfSimpleTypeWithSDOPropertyType.xml @@ -0,0 +1,24 @@ + + + + idvalue0 + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ElementOfSimpleTypeWithSDOPropertyType.xsd b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ElementOfSimpleTypeWithSDOPropertyType.xsd new file mode 100644 index 0000000000..6920cd8dd0 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ElementOfSimpleTypeWithSDOPropertyType.xsd @@ -0,0 +1,32 @@ + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ElementOfSimpleTypeWithSDOString.xml b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ElementOfSimpleTypeWithSDOString.xml new file mode 100644 index 0000000000..6a526bdc47 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ElementOfSimpleTypeWithSDOString.xml @@ -0,0 +1,24 @@ + + + + ElementOfSimpleTypeWithSDOStringElement + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ElementOfSimpleTypeWithSDOString.xsd b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ElementOfSimpleTypeWithSDOString.xsd new file mode 100644 index 0000000000..1117a95eb8 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ElementOfSimpleTypeWithSDOString.xsd @@ -0,0 +1,32 @@ + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ElementSubstitutionGroupBase.xml b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ElementSubstitutionGroupBase.xml new file mode 100644 index 0000000000..ab91458bff --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ElementSubstitutionGroupBase.xml @@ -0,0 +1,40 @@ + + + + + + ElementInSubstitutionGroupBase + + + + Some Data + + + + ElementInSubstitutionGroupBase + + + ElementInSubstitutionGroupExtends + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ElementSubstitutionGroupBase.xsd b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ElementSubstitutionGroupBase.xsd new file mode 100644 index 0000000000..3e015843b5 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ElementSubstitutionGroupBase.xsd @@ -0,0 +1,52 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ElementWithMaxOccurs.xml b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ElementWithMaxOccurs.xml new file mode 100644 index 0000000000..b6d68fd08a --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ElementWithMaxOccurs.xml @@ -0,0 +1,25 @@ + + + + ElementWithMaxOccursElement1 + ElementWithMaxOccursElement2 + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ElementWithMaxOccurs.xsd b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ElementWithMaxOccurs.xsd new file mode 100644 index 0000000000..d4453a4477 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ElementWithMaxOccurs.xsd @@ -0,0 +1,31 @@ + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ElementWithNillable.xml b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ElementWithNillable.xml new file mode 100644 index 0000000000..6de3adc937 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ElementWithNillable.xml @@ -0,0 +1,24 @@ + + + + ElementWithNillableElement + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ElementWithNillable.xsd b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ElementWithNillable.xsd new file mode 100644 index 0000000000..786ab226da --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ElementWithNillable.xsd @@ -0,0 +1,31 @@ + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ElementWithSDOAliasName.xml b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ElementWithSDOAliasName.xml new file mode 100644 index 0000000000..64093aa803 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ElementWithSDOAliasName.xml @@ -0,0 +1,24 @@ + + + + ElementWithSDOAliasName + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ElementWithSDOAliasName.xsd b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ElementWithSDOAliasName.xsd new file mode 100644 index 0000000000..01f4c2b1ef --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ElementWithSDOAliasName.xsd @@ -0,0 +1,32 @@ + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ElementWithSDOName.xml b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ElementWithSDOName.xml new file mode 100644 index 0000000000..774646f682 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ElementWithSDOName.xml @@ -0,0 +1,24 @@ + + + + ElementWithSDONameElement + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ElementWithSDOName.xsd b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ElementWithSDOName.xsd new file mode 100644 index 0000000000..34da37564c --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ElementWithSDOName.xsd @@ -0,0 +1,32 @@ + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/GlobalElementComplexType.xml b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/GlobalElementComplexType.xml new file mode 100644 index 0000000000..a1fb3aa803 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/GlobalElementComplexType.xml @@ -0,0 +1,24 @@ + + + + SimpleTypeWithName + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/GlobalElementComplexType.xsd b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/GlobalElementComplexType.xsd new file mode 100644 index 0000000000..8eb7a4fce4 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/GlobalElementComplexType.xsd @@ -0,0 +1,31 @@ + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/GlobalElementSimpleType.xml b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/GlobalElementSimpleType.xml new file mode 100644 index 0000000000..f68eb1939d --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/GlobalElementSimpleType.xml @@ -0,0 +1,24 @@ + + + + GlobalElementSimpleType + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/GlobalElementSimpleType.xsd b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/GlobalElementSimpleType.xsd new file mode 100644 index 0000000000..b9f77e6658 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/GlobalElementSimpleType.xsd @@ -0,0 +1,26 @@ + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/Import.xml b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/Import.xml new file mode 100644 index 0000000000..fd28850050 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/Import.xml @@ -0,0 +1,30 @@ + + + + + SimpleTypeWithName + + SomeString + SomeString + + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/Import.xsd b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/Import.xsd new file mode 100644 index 0000000000..eae93fd44a --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/Import.xsd @@ -0,0 +1,40 @@ + + + + + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ImportedSchema.xsd b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ImportedSchema.xsd new file mode 100644 index 0000000000..a7e568decf --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/ImportedSchema.xsd @@ -0,0 +1,33 @@ + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/Include.xml b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/Include.xml new file mode 100644 index 0000000000..d4b9e24fa6 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/Include.xml @@ -0,0 +1,24 @@ + + + + SimpleTypeWithName + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/Include.xsd b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/Include.xsd new file mode 100644 index 0000000000..34ff314a19 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/Include.xsd @@ -0,0 +1,36 @@ + + + + + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/Interop.xsd b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/Interop.xsd new file mode 100644 index 0000000000..ae22ab2c44 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/Interop.xsd @@ -0,0 +1,138 @@ + + + + + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/Notation.xml b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/Notation.xml new file mode 100644 index 0000000000..b75ac6500a --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/Notation.xml @@ -0,0 +1,24 @@ + + + +tns:Tuscany + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/Notation.xsd b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/Notation.xsd new file mode 100644 index 0000000000..6ad019cb81 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/Notation.xsd @@ -0,0 +1,35 @@ + + + + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/Person.xsd b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/Person.xsd new file mode 100644 index 0000000000..5f5021b15e --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/Person.xsd @@ -0,0 +1,30 @@ + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/SDOJavaPackage.xml b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/SDOJavaPackage.xml new file mode 100644 index 0000000000..6c5ad88ff4 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/SDOJavaPackage.xml @@ -0,0 +1,25 @@ + + + + SimpleTypeWithName + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/SDOJavaPackage.xsd b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/SDOJavaPackage.xsd new file mode 100644 index 0000000000..6b7e39b334 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/SDOJavaPackage.xsd @@ -0,0 +1,39 @@ + + + + + + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/SimpleTypeWithAbstract.xml b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/SimpleTypeWithAbstract.xml new file mode 100644 index 0000000000..f9d4a24a49 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/SimpleTypeWithAbstract.xml @@ -0,0 +1,24 @@ + + + + SimpleTypeWithAbstractExtensionElement + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/SimpleTypeWithAbstract.xsd b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/SimpleTypeWithAbstract.xsd new file mode 100644 index 0000000000..f649e2ba83 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/SimpleTypeWithAbstract.xsd @@ -0,0 +1,40 @@ + + + + + + + + + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/SimpleTypeWithExtendedInstanceClass.xml b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/SimpleTypeWithExtendedInstanceClass.xml new file mode 100644 index 0000000000..410df4b7e4 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/SimpleTypeWithExtendedInstanceClass.xml @@ -0,0 +1,24 @@ + + + + SimpleTypeWithExtendedInstanceClassElement + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/SimpleTypeWithExtendedInstanceClass.xsd b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/SimpleTypeWithExtendedInstanceClass.xsd new file mode 100644 index 0000000000..5d27ef5ce1 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/SimpleTypeWithExtendedInstanceClass.xsd @@ -0,0 +1,36 @@ + + + + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/SimpleTypeWithInstanceClass.xml b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/SimpleTypeWithInstanceClass.xml new file mode 100644 index 0000000000..7b74867c03 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/SimpleTypeWithInstanceClass.xml @@ -0,0 +1,24 @@ + + + + SimpleTypeWithInstanceClassElement + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/SimpleTypeWithInstanceClass.xsd b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/SimpleTypeWithInstanceClass.xsd new file mode 100644 index 0000000000..ec16a678a3 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/SimpleTypeWithInstanceClass.xsd @@ -0,0 +1,37 @@ + + + + + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/SimpleTypeWithList.xml b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/SimpleTypeWithList.xml new file mode 100644 index 0000000000..708d526f44 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/SimpleTypeWithList.xml @@ -0,0 +1,24 @@ + + + + listmember1 listmember2 + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/SimpleTypeWithList.xsd b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/SimpleTypeWithList.xsd new file mode 100644 index 0000000000..ed681009f9 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/SimpleTypeWithList.xsd @@ -0,0 +1,37 @@ + + + + + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/SimpleTypeWithName.xml b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/SimpleTypeWithName.xml new file mode 100644 index 0000000000..e404ac86b7 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/SimpleTypeWithName.xml @@ -0,0 +1,24 @@ + + + + SimpleTypeWithNameElement + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/SimpleTypeWithName.xsd b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/SimpleTypeWithName.xsd new file mode 100644 index 0000000000..af0431f048 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/SimpleTypeWithName.xsd @@ -0,0 +1,36 @@ + + + + + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/SimpleTypeWithSDOName.xml b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/SimpleTypeWithSDOName.xml new file mode 100644 index 0000000000..c86a0f6bcb --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/SimpleTypeWithSDOName.xml @@ -0,0 +1,24 @@ + + + + SimpleTypeWithSDONameElement + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/SimpleTypeWithSDOName.xsd b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/SimpleTypeWithSDOName.xsd new file mode 100644 index 0000000000..89b00a36cc --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/SimpleTypeWithSDOName.xsd @@ -0,0 +1,37 @@ + + + + + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/SimpleTypeWithUnion.xml b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/SimpleTypeWithUnion.xml new file mode 100644 index 0000000000..399b0d8175 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/SimpleTypeWithUnion.xml @@ -0,0 +1,25 @@ + + + + EN + 01:02:03 + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/SimpleTypeWithUnion.xsd b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/SimpleTypeWithUnion.xsd new file mode 100644 index 0000000000..ea35bec61a --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/SimpleTypeWithUnion.xsd @@ -0,0 +1,46 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/SimpleTypeWithoutName.xml b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/SimpleTypeWithoutName.xml new file mode 100644 index 0000000000..bc8cf35368 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/SimpleTypeWithoutName.xml @@ -0,0 +1,26 @@ + + + + + SimpleTypeWithoutName + + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/SimpleTypeWithoutName.xsd b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/SimpleTypeWithoutName.xsd new file mode 100644 index 0000000000..57981e3666 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/SimpleTypeWithoutName.xsd @@ -0,0 +1,38 @@ + + + + + + + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/TargetNamespace.xml b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/TargetNamespace.xml new file mode 100644 index 0000000000..da2929776e --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/TargetNamespace.xml @@ -0,0 +1,24 @@ + + + + SimpleTypeWithName + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/TargetNamespace.xsd b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/TargetNamespace.xsd new file mode 100644 index 0000000000..ace5427786 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/TargetNamespace.xsd @@ -0,0 +1,34 @@ + + + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/datagraph.xsd b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/datagraph.xsd new file mode 100644 index 0000000000..e6b9697a8d --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/datagraph.xsd @@ -0,0 +1,88 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Expected type is emof:Package. + + + + + + + + + + + Expected type is xsd:schema. + + + + + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/sdoJava.xsd b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/sdoJava.xsd new file mode 100644 index 0000000000..7387568942 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/sdoJava.xsd @@ -0,0 +1,88 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/sdoModel.xsd b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/sdoModel.xsd new file mode 100644 index 0000000000..c5aabc9cc8 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/main/resources/xsd/sdoModel.xsd @@ -0,0 +1,221 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/test/java/org/apache/tuscany/sca/itest/generate/GenerateTestCase.java b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/test/java/org/apache/tuscany/sca/itest/generate/GenerateTestCase.java new file mode 100644 index 0000000000..fa3f310d4d --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/common/src/test/java/org/apache/tuscany/sca/itest/generate/GenerateTestCase.java @@ -0,0 +1,49 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.generate; + +import junit.framework.TestCase; + + +/** + * + */ +public class GenerateTestCase extends TestCase { + + //private Generate generator = null; + + @Override + protected void setUp() throws Exception { + //generator = new Generate(); + } + + @Override + protected void tearDown() { + } + + /** + * Invokes the Generate class to generate databinding test classes and resources. + * + * @throws Exception + */ + public void testGenerate() throws Exception { + //generator.generate(); + } +} diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/config.png b/tags/java/sca/1.5.1-RC4/itest/databindings/config.png new file mode 100644 index 0000000000..7912019e9d Binary files /dev/null and b/tags/java/sca/1.5.1-RC4/itest/databindings/config.png differ diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/config.svg b/tags/java/sca/1.5.1-RC4/itest/databindings/config.svg new file mode 100644 index 0000000000..aaf027e2df --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/config.svg @@ -0,0 +1,117 @@ + + + + + + + + + + + image/svg+xml + + + + + + <tns:Generate ...> <Template> <TemplateName>greeter.composite.vm</TemplateName> <TemplateTargetDir>classes</TemplateTargetDir> </Template> ... <InputFile> <FileName>Person.xsd</FileName> <FilePath>xsd</FilePath> <JavaPackage>org.apache.tuscany.sca.itest.databinding.types</JavaPackage> <Factory>TypesFactory</Factory> <Namespace>http://apache.org/tuscany/sca/itest/databinding/types</Namespace> <Prefix>p</Prefix> <Type> <TypeName>PersonType</TypeName> <CreateTypeCode> TypesFactory factory = TypesFactory.INSTANCE; param = factory.createPersonType(); param.setFirstName("George"); param.setLastName("Doors"); </CreateTypeCode> <ModifyTypeCode> param.setGreeting("Hello"); </ModifyTypeCode> <ResultComparison> assertNotSame("greetedPerson.getGreeting() not set", "", result.getGreeting()); </ResultComparison> </Type> </InputFile> ...</tns:Generate> + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/databinding.png b/tags/java/sca/1.5.1-RC4/itest/databindings/databinding.png new file mode 100644 index 0000000000..76a9c71b7d Binary files /dev/null and b/tags/java/sca/1.5.1-RC4/itest/databindings/databinding.png differ diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/databinding.svg b/tags/java/sca/1.5.1-RC4/itest/databindings/databinding.svg new file mode 100644 index 0000000000..d6850ccf7d --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/databinding.svg @@ -0,0 +1,242 @@ + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + GreeterService + + DefaultGreeterServiceClient + + + GreeterServiceComponent + + WSGreeterServiceClient + + + + + WSReference WSService + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/interop.png b/tags/java/sca/1.5.1-RC4/itest/databindings/interop.png new file mode 100644 index 0000000000..005e0f24ea Binary files /dev/null and b/tags/java/sca/1.5.1-RC4/itest/databindings/interop.png differ diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/interop.svg b/tags/java/sca/1.5.1-RC4/itest/databindings/interop.svg new file mode 100644 index 0000000000..03897c6d09 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/interop.svg @@ -0,0 +1,352 @@ + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + InteropGreeterService + + SDODefaultGreeterServiceClient + + + SDOGreeterServiceComponent + + SDOWSGreeterServiceClient + + + + WSReference WSService + JAXBDefaultGreeterServiceClient + + + JAXBWSGreeterServiceClient + + + + WSReference WSService + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/interop/pom.xml b/tags/java/sca/1.5.1-RC4/itest/databindings/interop/pom.xml new file mode 100644 index 0000000000..fd4bc7c0a5 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/interop/pom.xml @@ -0,0 +1,223 @@ + + + + + org.apache.tuscany.sca + itest-databindings + 1.5.1 + + + 4.0.0 + + itest-databindings-interop + 1.5.1 + jar + Apache Tuscany SCA iTest DataBinding Interop + + + + + 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 + + + + + + + true + + java.net + java.net Maven 1.x Repository + http://download.java.net/maven/1 + legacy + + + + + + org.apache.tuscany.sca + tuscany-binding-ws-axis2 + ${pom.version} + compile + + + org.apache.tuscany.sca + tuscany-databinding-jaxb + ${pom.version} + compile + + + org.apache.tuscany.sca + tuscany-databinding-sdo + ${pom.version} + compile + + + org.apache.tuscany.sca + tuscany-databinding-axiom + ${pom.version} + compile + + + javax.xml.bind + jaxb-api + 2.1 + compile + + + + com.sun.xml.ws + jaxws-rt + 2.1.3 + + + org.apache.tuscany.sca + itest-databindings-common + ${pom.version} + compile + + + org.apache.tuscany.sca + itest-databindings-sdo + ${pom.version} + compile + + + org.apache.tuscany.sca + itest-databindings-jaxb + ${pom.version} + compile + + + org.apache.tuscany.sca + tuscany-host-embedded + ${pom.version} + compile + + + org.apache.tuscany.sca + tuscany-implementation-java-runtime + ${pom.version} + compile + + + org.apache.tuscany.sca + tuscany-interface-java-xml + ${pom.version} + compile + + + org.apache.tuscany.sca + tuscany-host-jetty + 1.5.1 + test + + + + + + + org.apache.maven.plugins + maven-surefire-plugin + + -Djava.endorsed.dirs=target/endorsed + + + + org.apache.maven.plugins + maven-dependency-plugin + + + generate-sources + + unpack + + + + + org.apache.tuscany.sca + itest-databindings-common + ${project.version} + true + ${project.build.directory}/classes + + + + + + 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 + exec-maven-plugin + + + generate-test-source + process-resources + + java + + + + + org.apache.tuscany.sca.itest.generate.Generate + + ${project.build.directory} + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/interop/src/main/resources/generate/InteropDatabindingTestCase.java.vm b/tags/java/sca/1.5.1-RC4/itest/databindings/interop/src/main/resources/generate/InteropDatabindingTestCase.java.vm new file mode 100644 index 0000000000..7bdfc57924 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/interop/src/main/resources/generate/InteropDatabindingTestCase.java.vm @@ -0,0 +1,113 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package $template.getJavaPackage(); + +import junit.framework.TestCase; + +import org.apache.tuscany.sca.host.embedded.SCADomain; +import ${template.getJavaPackage()}.GreeterService; + +// Data types +#foreach($file in $fileList) +#set($typeList = $file.getType_()) +#foreach($typeInstance in $typeList) +import $file.getJavaPackage().$typeInstance.getTypeName(); +import $file.getJavaPackage().$file.getFactory(); +#end +#end + +/** + * Automatically generated test case. Calls the greeter client for a number of + * bindings and a number of data types. + * + * @version $Rev: 511417 $ $Date: 2007-02-25 03:06:42 +0000 (Sun, 25 Feb 2007) $ + */ +public class InteropDatabindingTestCase extends TestCase { + + private static boolean initalised = false; + private GreeterService greeterClient; + private static SCADomain domain; + + /** + * Runs before each test method + */ + protected void setUp() throws Exception { + if (!initalised) { + domain = SCADomain.newInstance("interopgreeter.composite"); + super.setUp(); + initalised = true; + } + } + + /** + * Runs after each test method + */ + protected void tearDown() { + + } + + /** + * Finds the SCA component that relates to the protocol being tested. This test + * always connects locally to the client component but the client component will + * connect to the back end component using the appropriate protocol + * + * @param ext the protcol required + */ + private void setUpClient(String ext) throws Exception { + greeterClient = domain.getService(GreeterService.class, "SDO" + ext + "GreeterServiceClient"); + } + + /** + * Invokes the SDO Greet service using web service bindings with SDO payload + */ + public void testWSGreet() throws Exception { + setUpClient("WS"); + greet(); + } + + /** + * Invokes the SDO Greet service using default bindings with SDO payload + */ + public void testDefaultGreet() throws Exception { + setUpClient("Default"); + greet(); + } + + /** + * A generic method which, regarless of which client is connected, sends out a + * series of requrests passing different data types. + */ + public void greet() { +#foreach($file in $fileList) +#set($typeList = $file.getType_()) +#foreach($typeInstance in $typeList) + + // test $typeInstance.getTypeName() + { + $typeInstance.getTypeName() param = null; + $typeInstance.getCreateTypeCode() + $typeInstance.getTypeName() result = greeterClient.greet$typeInstance.getTypeName()(param); + $typeInstance.getResultComparison() + } +#end +#end + } + +} diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/interop/src/main/resources/generate/JAXBGreeter.wsdl.vm b/tags/java/sca/1.5.1-RC4/itest/databindings/interop/src/main/resources/generate/JAXBGreeter.wsdl.vm new file mode 100644 index 0000000000..38bfccce0c --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/interop/src/main/resources/generate/JAXBGreeter.wsdl.vm @@ -0,0 +1,103 @@ + + + + + + + +#foreach($file in $fileList) + +#end + +#foreach($file in $fileList) +#set($typeList = $file.getType_()) +#foreach($typeInstance in $typeList) + + + + + + + +#end +#end + + +#foreach($file in $fileList) +#set($typeList = $file.getType_()) +#foreach($typeInstance in $typeList) + + + + + + + +#end +#end + + +#foreach($file in $fileList) +#set($typeList = $file.getType_()) +#foreach($typeInstance in $typeList) + + + + +#end +#end + + + + +#foreach($file in $fileList) +#set($typeList = $file.getType_()) +#foreach($typeInstance in $typeList) + + + + + + + + + +#end +#end + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/interop/src/main/resources/generate/SDOGreeter.wsdl.vm b/tags/java/sca/1.5.1-RC4/itest/databindings/interop/src/main/resources/generate/SDOGreeter.wsdl.vm new file mode 100644 index 0000000000..6f02af4c9d --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/interop/src/main/resources/generate/SDOGreeter.wsdl.vm @@ -0,0 +1,103 @@ + + + + + + + +#foreach($file in $fileList) + +#end + +#foreach($file in $fileList) +#set($typeList = $file.getType_()) +#foreach($typeInstance in $typeList) + + + + + + + +#end +#end + + +#foreach($file in $fileList) +#set($typeList = $file.getType_()) +#foreach($typeInstance in $typeList) + + + + + + + +#end +#end + + +#foreach($file in $fileList) +#set($typeList = $file.getType_()) +#foreach($typeInstance in $typeList) + + + + +#end +#end + + + + +#foreach($file in $fileList) +#set($typeList = $file.getType_()) +#foreach($typeInstance in $typeList) + + + + + + + + + +#end +#end + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/interop/src/main/resources/generate/generate.xml b/tags/java/sca/1.5.1-RC4/itest/databindings/interop/src/main/resources/generate/generate.xml new file mode 100644 index 0000000000..8453dd56b4 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/interop/src/main/resources/generate/generate.xml @@ -0,0 +1,159 @@ + + + + + + + + + + Person.xsd + xsd + org.apache.tuscany.sca.itest.databinding.types + TypesFactory + http://apache.org/tuscany/sca/itest/databinding/types + p + + PersonType + + TypesFactory factory = TypesFactory.INSTANCE; + param = factory.createPersonType(); + param.setFirstName("George"); + param.setLastName("Doors"); + + + param.setGreeting("Hello"); + + + assertNotSame("greetedPerson.getGreeting() not set", "", result.getGreeting()); + + + + + Interop.xsd + xsd + org.apache.tuscany.interop + InteropFactory + http://www.apache.org/tuscany/interop + i + + + AttributeComplexType + + InteropFactory factory = InteropFactory.INSTANCE; + org.apache.tuscany.interop.AttributeType attrib = factory.createAttributeType(); + attrib.setAttribute("SomeText"); + param = factory.createAttributeComplexType(); + param.setAttributeElement(attrib); + + + param.getAttributeElement().setAttribute("SomeChangedText");; + + + assertEquals("data not changed corretly", "SomeChangedText", result.getAttributeElement().getAttribute()); + + + + AttributeReferenceComplexType + + InteropFactory factory = InteropFactory.INSTANCE; + param = factory.createAttributeReferenceComplexType(); + + param.setReferencedAttribute("SomeText"); + + + param.setReferencedAttribute("SomeChangedText");; + + + assertEquals("data not changed corretly", "SomeChangedText", result.getReferencedAttribute()); + + + + SimpleTypeWithAbstractComplexType + + InteropFactory factory = InteropFactory.INSTANCE; + param = factory.createSimpleTypeWithAbstractComplexType(); + param.setSimpleTypeWithAbstractExtensionElement("SomeText"); + + + param.setSimpleTypeWithAbstractExtensionElement("SomeChangedText");; + + + assertEquals("data not changed corretly", "SomeChangedText", result.getSimpleTypeWithAbstractExtensionElement()); + + + + SimpleTypeWithNameComplexType + + InteropFactory factory = InteropFactory.INSTANCE; + param = factory.createSimpleTypeWithNameComplexType(); + param.setSimpleTypeWithNameElement("SomeText"); + + + param.setSimpleTypeWithNameElement("SomeChangedText");; + + + assertEquals("data not changed corretly", "SomeChangedText", result.getSimpleTypeWithNameElement()); + + + + ComplexTypeWithContentType + + InteropFactory factory = InteropFactory.INSTANCE; + param = factory.createComplexTypeWithContentType(); + param.setSimpleTypeWithName("SomeText"); + + + param.setSimpleTypeWithName("SomeChangedText");; + + + assertEquals("data not changed corretly", "SomeChangedText", result.getSimpleTypeWithName()); + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/interop/src/main/resources/generate/interopgreeter.composite.vm b/tags/java/sca/1.5.1-RC4/itest/databindings/interop/src/main/resources/generate/interopgreeter.composite.vm new file mode 100644 index 0000000000..36797fde57 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/interop/src/main/resources/generate/interopgreeter.composite.vm @@ -0,0 +1,78 @@ + + + + + + #foreach( $file in $fileList ) + + #end + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/pom.xml b/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/pom.xml new file mode 100644 index 0000000000..c4e60ddc5b --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/pom.xml @@ -0,0 +1,239 @@ + + + + + org.apache.tuscany.sca + itest-databindings + 1.5.1 + + + 4.0.0 + + itest-databindings-jaxb-bottom-up + 1.5.1 + jar + 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-binding-ws-axis2 + ${pom.version} + runtime + + + org.apache.tuscany.sca + tuscany-databinding-jaxb + ${pom.version} + runtime + + + org.apache.tuscany.sca + tuscany-databinding-sdo + ${pom.version} + compile + + + org.apache.tuscany.sca + tuscany-databinding-axiom + ${pom.version} + compile + + + org.apache.tuscany.sca + itest-databindings-common + ${pom.version} + compile + + + org.apache.tuscany.sca + tuscany-host-embedded + ${pom.version} + compile + + + org.apache.tuscany.sca + tuscany-implementation-java-runtime + ${pom.version} + compile + + + org.apache.tuscany.sca + tuscany-interface-java-xml + ${pom.version} + compile + + + org.apache.tuscany.sca + tuscany-host-jetty + 1.5.1 + 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/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/AClientService.java b/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/AClientService.java new file mode 100644 index 0000000000..7f9b62f9b4 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/AClientService.java @@ -0,0 +1,29 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.osoa.sca.annotations.Remotable; + +/** + * The interface for AClientService. + */ +@Remotable +public interface AClientService { + public String getGreetingsForward(String name); +} diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/AService.java b/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/AService.java new file mode 100644 index 0000000000..1762812c1f --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/AService.java @@ -0,0 +1,32 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.osoa.sca.annotations.Remotable; + +/** + * The interface for AService. + */ +@Remotable +@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE) +public interface AService { + public String getGreetings(String name); +} diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/Bean1.java b/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/Bean1.java new file mode 100644 index 0000000000..7529c2b841 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/Bean1.java @@ -0,0 +1,63 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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 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/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/Bean10.java b/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/Bean10.java new file mode 100644 index 0000000000..4a4419a42b --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/Bean10.java @@ -0,0 +1,25 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/Bean11.java b/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/Bean11.java new file mode 100644 index 0000000000..65f019ec48 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/Bean11.java @@ -0,0 +1,25 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/Bean2.java b/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/Bean2.java new file mode 100644 index 0000000000..844e28863a --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/Bean2.java @@ -0,0 +1,56 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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 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/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/Bean3.java b/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/Bean3.java new file mode 100644 index 0000000000..4e0bd38b2b --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/Bean3.java @@ -0,0 +1,56 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/Bean31.java b/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/Bean31.java new file mode 100644 index 0000000000..40aff31297 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/Bean31.java @@ -0,0 +1,56 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/GenericsLocalService.java b/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/GenericsLocalService.java new file mode 100644 index 0000000000..ca012b967d --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/GenericsLocalService.java @@ -0,0 +1,42 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/GenericsService.java b/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/GenericsService.java new file mode 100644 index 0000000000..12ed7d0ec7 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/GenericsService.java @@ -0,0 +1,30 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.osoa.sca.annotations.Remotable; + +/** + * The interface for GenericsService. + * + * @version $Rev$ $Date$ + */ +@Remotable +public interface GenericsService extends GenericsLocalService{ +} diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/GenericsServiceClient.java b/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/GenericsServiceClient.java new file mode 100644 index 0000000000..3bae554dc7 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/GenericsServiceClient.java @@ -0,0 +1,43 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/HelloLocalServiceSimple.java b/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/HelloLocalServiceSimple.java new file mode 100644 index 0000000000..a31cc3d45a --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/HelloLocalServiceSimple.java @@ -0,0 +1,37 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/HelloServiceSimple.java b/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/HelloServiceSimple.java new file mode 100644 index 0000000000..34ac9024f6 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/HelloServiceSimple.java @@ -0,0 +1,29 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.osoa.sca.annotations.Remotable; + +/** + * The interface for HelloServiceSimple. + */ +@Remotable +public interface HelloServiceSimple extends HelloLocalServiceSimple { + // Add any methods to the local interface. +} diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/HelloServiceSimpleClient.java b/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/HelloServiceSimpleClient.java new file mode 100644 index 0000000000..23ed57dec9 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/HelloServiceSimpleClient.java @@ -0,0 +1,38 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.List; +import java.util.HashMap; +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/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/PrimitivesLocalService.java b/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/PrimitivesLocalService.java new file mode 100644 index 0000000000..6239c0f5f1 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/PrimitivesLocalService.java @@ -0,0 +1,47 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/PrimitivesService.java b/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/PrimitivesService.java new file mode 100644 index 0000000000..c5553688e2 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/PrimitivesService.java @@ -0,0 +1,29 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.osoa.sca.annotations.Remotable; + +/** + * The interface for PrimitivesService. + */ +@Remotable +public interface PrimitivesService extends PrimitivesLocalService { + // Add any methods to the local interface. +} diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/PrimitivesServiceClient.java b/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/PrimitivesServiceClient.java new file mode 100644 index 0000000000..3bdf886dfa --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/PrimitivesServiceClient.java @@ -0,0 +1,48 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/StandardTypesLocalService.java b/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/StandardTypesLocalService.java new file mode 100644 index 0000000000..0fdf69459f --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/StandardTypesLocalService.java @@ -0,0 +1,78 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/StandardTypesService.java b/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/StandardTypesService.java new file mode 100644 index 0000000000..2842205085 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/StandardTypesService.java @@ -0,0 +1,30 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.osoa.sca.annotations.Remotable; + + + +/** + * The interface for StandardTypesService. + */ +@Remotable +public interface StandardTypesService extends StandardTypesLocalService{ +} diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/StandardTypesServiceClient.java b/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/StandardTypesServiceClient.java new file mode 100644 index 0000000000..351d9df0cb --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/StandardTypesServiceClient.java @@ -0,0 +1,79 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/AClientServiceImpl.java b/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/AClientServiceImpl.java new file mode 100644 index 0000000000..8b484e93f0 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/AClientServiceImpl.java @@ -0,0 +1,38 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.osoa.sca.annotations.Reference; +import org.osoa.sca.annotations.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/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/AServiceImpl.java b/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/AServiceImpl.java new file mode 100644 index 0000000000..4a35d41c04 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/AServiceImpl.java @@ -0,0 +1,33 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.osoa.sca.annotations.Service; + +/** + * This class implements AService. + */ +@Service(AService.class) +public class AServiceImpl implements AService { + + public String getGreetings(String name) { + return "Hello " + name; + } +} diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/GenericsLocalServiceClientImpl.java b/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/GenericsLocalServiceClientImpl.java new file mode 100644 index 0000000000..9e042ffe6a --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/GenericsLocalServiceClientImpl.java @@ -0,0 +1,77 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.osoa.sca.annotations.Reference; +import org.osoa.sca.annotations.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/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/GenericsServiceClientImpl.java b/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/GenericsServiceClientImpl.java new file mode 100644 index 0000000000..ec929ddece --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/GenericsServiceClientImpl.java @@ -0,0 +1,40 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.osoa.sca.annotations.Reference; +import org.osoa.sca.annotations.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/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/GenericsServiceImpl.java b/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/GenericsServiceImpl.java new file mode 100644 index 0000000000..58808eec4f --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/GenericsServiceImpl.java @@ -0,0 +1,69 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.osoa.sca.annotations.Service; + +/** + * An implementation of GenericsService. + * This implementation provides both a local and a remotable service. + * + * @version $Rev$ $Date$ + */ +@Service(interfaces={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/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/GenericsTransformer.java b/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/GenericsTransformer.java new file mode 100644 index 0000000000..858b8da59a --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/GenericsTransformer.java @@ -0,0 +1,125 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/HelloLocalServiceSimpleClientImpl.java b/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/HelloLocalServiceSimpleClientImpl.java new file mode 100644 index 0000000000..51e48edbc9 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/HelloLocalServiceSimpleClientImpl.java @@ -0,0 +1,73 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.List; +import java.util.HashMap; +import java.util.Map; + +import org.apache.tuscany.sca.itest.databindings.jaxb.HelloLocalServiceSimple; +import org.apache.tuscany.sca.itest.databindings.jaxb.HelloServiceSimpleClient; +import org.osoa.sca.annotations.Reference; +import org.osoa.sca.annotations.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/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/HelloServiceSimpleClientImpl.java b/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/HelloServiceSimpleClientImpl.java new file mode 100644 index 0000000000..de52cdfac3 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/HelloServiceSimpleClientImpl.java @@ -0,0 +1,38 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.osoa.sca.annotations.Reference; +import org.osoa.sca.annotations.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/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/HelloServiceSimpleImpl.java b/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/HelloServiceSimpleImpl.java new file mode 100644 index 0000000000..199335c38c --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/HelloServiceSimpleImpl.java @@ -0,0 +1,86 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.osoa.sca.annotations.Service; + +/** + * An implementation of HelloServiceSimple. + * The implementation provides both a local and a remotable service. + */ +@Service(interfaces = {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/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/PrimitivesLocalServiceClientImpl.java b/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/PrimitivesLocalServiceClientImpl.java new file mode 100644 index 0000000000..fe9121be9d --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/PrimitivesLocalServiceClientImpl.java @@ -0,0 +1,138 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.osoa.sca.annotations.Reference; +import org.osoa.sca.annotations.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/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/PrimitivesServiceClientImpl.java b/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/PrimitivesServiceClientImpl.java new file mode 100644 index 0000000000..28ace6aab7 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/PrimitivesServiceClientImpl.java @@ -0,0 +1,38 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.osoa.sca.annotations.Reference; +import org.osoa.sca.annotations.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/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/PrimitivesServiceImpl.java b/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/PrimitivesServiceImpl.java new file mode 100644 index 0000000000..ab1a3b4ab8 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/PrimitivesServiceImpl.java @@ -0,0 +1,151 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.osoa.sca.annotations.Service; + +/** + * An implementation of PrimitivesService. + * This implementation provides both a local and a remotable service. + */ +@Service(interfaces={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/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/StandardTypesLocalServiceClientImpl.java b/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/StandardTypesLocalServiceClientImpl.java new file mode 100644 index 0000000000..0a8f6772b5 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/StandardTypesLocalServiceClientImpl.java @@ -0,0 +1,157 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.osoa.sca.annotations.Reference; +import org.osoa.sca.annotations.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/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/StandardTypesServiceClientImpl.java b/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/StandardTypesServiceClientImpl.java new file mode 100644 index 0000000000..626b0e9844 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/StandardTypesServiceClientImpl.java @@ -0,0 +1,38 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.osoa.sca.annotations.Reference; +import org.osoa.sca.annotations.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/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/StandardTypesServiceImpl.java b/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/StandardTypesServiceImpl.java new file mode 100644 index 0000000000..19a6cae01b --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/StandardTypesServiceImpl.java @@ -0,0 +1,208 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.osoa.sca.annotations.Service; + +/** + * An implementation of StandardTypesService. + * This implementation provides both a local and a remotable service. + */ +@Service(interfaces={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/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/StandardTypesTransformer.java b/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/StandardTypesTransformer.java new file mode 100644 index 0000000000..68510b4b03 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/StandardTypesTransformer.java @@ -0,0 +1,144 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/main/resources/aservice.wsdl b/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/main/resources/aservice.wsdl new file mode 100644 index 0000000000..10a242be4d --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/main/resources/aservice.wsdl @@ -0,0 +1,127 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/main/resources/doclitbarewsdl.composite b/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/main/resources/doclitbarewsdl.composite new file mode 100644 index 0000000000..b0d3fe7aeb --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/main/resources/doclitbarewsdl.composite @@ -0,0 +1,37 @@ + + + + + + + + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/main/resources/generics-service.composite b/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/main/resources/generics-service.composite new file mode 100644 index 0000000000..910091cf53 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/main/resources/generics-service.composite @@ -0,0 +1,69 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/main/resources/helloservice.composite b/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/main/resources/helloservice.composite new file mode 100644 index 0000000000..2dfcb1327b --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/main/resources/helloservice.composite @@ -0,0 +1,65 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/main/resources/primitivesservice.composite b/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/main/resources/primitivesservice.composite new file mode 100644 index 0000000000..20529e7273 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/main/resources/primitivesservice.composite @@ -0,0 +1,66 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/main/resources/standard-types-service.composite b/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/main/resources/standard-types-service.composite new file mode 100644 index 0000000000..61c8a70a9a --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/main/resources/standard-types-service.composite @@ -0,0 +1,66 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/test/java/org/apache/tuscany/sca/itest/databindings/jaxb/DatabindingTestCase.java b/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/test/java/org/apache/tuscany/sca/itest/databindings/jaxb/DatabindingTestCase.java new file mode 100644 index 0000000000..4967b896a5 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/test/java/org/apache/tuscany/sca/itest/databindings/jaxb/DatabindingTestCase.java @@ -0,0 +1,339 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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 junit.framework.Assert; + +import org.apache.tuscany.sca.host.embedded.SCADomain; +import org.junit.AfterClass; +import org.junit.BeforeClass; +import org.junit.Test; + +/** + * @version $Rev$ $Date$ + */ +public class DatabindingTestCase { + + private static SCADomain domain; + + /** + * Runs once before running the tests + */ + @BeforeClass + public static void setUp() throws Exception { + try { + domain = SCADomain.newInstance("helloservice.composite"); + } catch(Throwable e) { + e.printStackTrace(); + } + } + + /** + * Runs once after running the tests + */ + @AfterClass + public static void tearDown() { + domain.close(); + } + + /** + * Invokes the HelloServiceSimple service using SCA binding. + * Service method invoked is getGreetings. + */ + @Test + public void testSCA() throws Exception { + HelloServiceSimpleClient helloServiceSimpleClient = domain.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 = domain.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 = domain.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 = domain.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 = domain.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 = domain.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 = domain.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 = domain.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 = domain.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 = domain.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 = domain.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 = domain.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 = domain.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 = domain.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 = domain.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 = domain.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 = domain.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 = domain.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 = domain.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 = domain.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 = domain.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/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/test/java/org/apache/tuscany/sca/itest/databindings/jaxb/DocLitBareWsdlTestCase.java b/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/test/java/org/apache/tuscany/sca/itest/databindings/jaxb/DocLitBareWsdlTestCase.java new file mode 100644 index 0000000000..744bf20494 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/test/java/org/apache/tuscany/sca/itest/databindings/jaxb/DocLitBareWsdlTestCase.java @@ -0,0 +1,67 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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 junit.framework.Assert; + +import org.apache.tuscany.sca.host.embedded.SCADomain; +import org.junit.AfterClass; +import org.junit.BeforeClass; +import org.junit.Test; + +/** + * @version $Rev$ $Date$ + */ +public class DocLitBareWsdlTestCase { + + private static SCADomain domain; + + /** + * Runs once before running the tests + */ + @BeforeClass + public static void setUp() throws Exception { + try { + domain = SCADomain.newInstance("doclitbarewsdl.composite"); + } catch (Throwable e) { + // @Ignore("TUSCANY-2398") + e.printStackTrace(); + } + } + + /** + * Runs once after running the tests + */ + @AfterClass + public static void tearDown() { + if (domain != null) { + domain.close(); + } + } + + // @Ignore("TUSCANY-2398") + @Test + public void testDocLitBareWsdl() throws Exception { + AClientService client = domain.getService(AClientService.class, "AClientComponent"); + String name = "Pandu"; + String resp = client.getGreetingsForward(name); + Assert.assertEquals("Hello " + name, resp); + } +} diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/test/java/org/apache/tuscany/sca/itest/databindings/jaxb/GenericsDatabindingTestCase.java b/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/test/java/org/apache/tuscany/sca/itest/databindings/jaxb/GenericsDatabindingTestCase.java new file mode 100644 index 0000000000..c22d00140e --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/test/java/org/apache/tuscany/sca/itest/databindings/jaxb/GenericsDatabindingTestCase.java @@ -0,0 +1,484 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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 junit.framework.Assert; + +import org.apache.tuscany.sca.host.embedded.SCADomain; +import org.apache.tuscany.sca.itest.databindings.jaxb.impl.GenericsTransformer; +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 SCADomain domain; + + /** + * Runs before each test method + */ + @BeforeClass + public static void setUp() throws Exception { + try { + domain = SCADomain.newInstance("generics-service.composite"); + } catch(Throwable e) { + e.printStackTrace(); + } + } + + /** + * Runs after each test method + */ + @AfterClass + public static void tearDown() { + domain.close(); + } + + /** + * Invokes the GenericsService service using SCA binding. + * Service method invoked is getTypeExplicit. + */ + @Test + public void testSCATypeExplicit() throws Exception { + GenericsServiceClient serviceClient = domain.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 = domain.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 = domain.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 = domain.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 = domain.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 = domain.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 = domain.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 = domain.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 = domain.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 = domain.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 = domain.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 = domain.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 = domain.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 = domain.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 = domain.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 = domain.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 = domain.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 = domain.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 = domain.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 = domain.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 = domain.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 = domain.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 = domain.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 = domain.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/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/test/java/org/apache/tuscany/sca/itest/databindings/jaxb/PrimitivesDatabindingTestCase.java b/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/test/java/org/apache/tuscany/sca/itest/databindings/jaxb/PrimitivesDatabindingTestCase.java new file mode 100644 index 0000000000..f8aaad3dac --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/test/java/org/apache/tuscany/sca/itest/databindings/jaxb/PrimitivesDatabindingTestCase.java @@ -0,0 +1,776 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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 junit.framework.Assert; + +import org.apache.tuscany.sca.host.embedded.SCADomain; +import org.junit.AfterClass; +import org.junit.BeforeClass; +import org.junit.Test; + +/** + * @version $Rev$ $Date$ + */ +public class PrimitivesDatabindingTestCase { + + private static SCADomain domain; + + /** + * Runs before each test method + */ + @BeforeClass + public static void setUp() throws Exception { + try { + domain = SCADomain.newInstance("primitivesservice.composite"); + } catch(Throwable e) { + e.printStackTrace(); + Assert.fail(); + } + } + + /** + * Runs after each test method + */ + @AfterClass + public static void tearDown() { + domain.close(); + } + + /** + * Invokes the PrimitivesService service using SCA binding. + * Service method invoked is negateBoolean. + */ + @Test + public void testSCANegateBoolean() throws Exception { + PrimitivesServiceClient primitivesServiceClient = domain.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 = domain.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 = domain.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 = domain.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 = domain.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 = domain.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 = domain.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 = domain.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 = domain.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 = domain.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 = domain.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 = domain.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 = domain.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 = domain.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 = domain.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 = domain.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 = domain.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 = domain.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 = domain.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 = domain.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 = domain.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 = domain.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 = domain.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 = domain.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 = domain.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 = domain.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 = domain.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 = domain.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 = domain.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 = domain.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 = domain.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 = domain.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 = domain.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 = domain.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 = domain.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 = domain.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 = domain.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 = domain.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 = domain.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 = domain.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 = domain.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 = domain.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 = domain.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 = domain.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 = domain.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 = domain.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 = domain.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 = domain.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 = domain.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 = domain.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 = domain.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 = domain.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 = domain.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 = domain.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 = domain.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 = domain.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/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/test/java/org/apache/tuscany/sca/itest/databindings/jaxb/StandardTypesDatabindingTestCase.java b/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/test/java/org/apache/tuscany/sca/itest/databindings/jaxb/StandardTypesDatabindingTestCase.java new file mode 100644 index 0000000000..079e1cdfff --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-bottom-up/src/test/java/org/apache/tuscany/sca/itest/databindings/jaxb/StandardTypesDatabindingTestCase.java @@ -0,0 +1,1439 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.IOException; +import java.io.InputStream; +import java.io.StringReader; +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.dom.DOMSource; +import javax.xml.transform.sax.SAXSource; +import javax.xml.transform.stream.StreamResult; +import javax.xml.transform.stream.StreamSource; + +import junit.framework.Assert; + +import org.apache.axiom.attachments.ByteArrayDataSource; +import org.apache.tuscany.sca.databinding.xml.String2Node; +import org.apache.tuscany.sca.host.embedded.SCADomain; +import org.apache.tuscany.sca.itest.databindings.jaxb.impl.StandardTypesTransformer; +import org.junit.AfterClass; +import org.junit.BeforeClass; +import org.junit.Ignore; +import org.junit.Test; +import org.xml.sax.InputSource; + +/** + * @version $Rev$ $Date$ + */ +public class StandardTypesDatabindingTestCase { + + private static SCADomain domain; + + /** + * Runs before each test method + */ + @BeforeClass + public static void setUp() throws Exception { + try { + domain = SCADomain.newInstance("standard-types-service.composite"); + } catch (Throwable e) { + e.printStackTrace(); + } + } + + /** + * Runs after each test method + */ + @AfterClass + public static void tearDown() { + domain.close(); + } + + /** + * Invokes the StandardTypesService service using SCA binding. + * Service method invoked is getNewBigInteger. + */ + @Test + public void testSCANewBigInteger() throws Exception { + StandardTypesServiceClient serviceClient = + domain.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 = + domain.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 = + domain.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 = + domain.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 = + domain.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 = + domain.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 = + domain.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 = + domain.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 = + domain.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 = + domain.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 = + domain.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 = + domain.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 = + domain.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 = + domain.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 = + domain.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 = + domain.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 = + domain.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 = + domain.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 = + domain.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 = + domain.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 = + domain.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 = + domain.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 = + domain.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 = + domain.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 = + domain.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 = + domain.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 = + domain.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 = + domain.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 = + domain.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 = + domain.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 = + domain.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 = + domain.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 = + domain.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 = + domain.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 = + domain.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 = + domain.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 = + domain.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 = + domain.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 = + domain.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 = + domain.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 = + domain.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 = + domain.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 = + domain.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 = + domain.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 = + domain.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 = + domain.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 = + domain.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 = + domain.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 = + domain.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 = + domain.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 = + domain.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 = + domain.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 = + domain.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 = + domain.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 = + domain.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 = + domain.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 = + domain.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 = + domain.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 = + domain.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 = + domain.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 = + domain.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 = + domain.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 = + domain.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 = + domain.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 = + domain.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 = + domain.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 = + domain.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 = + domain.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 = + domain.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 = + domain.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 = + domain.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 = + domain.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 = + domain.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 = + domain.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 = + domain.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 = + domain.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 = + domain.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 = + domain.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().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().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/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-top-down/pom.xml b/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-top-down/pom.xml new file mode 100644 index 0000000000..784de8da24 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-top-down/pom.xml @@ -0,0 +1,194 @@ + + + + + + + + org.apache.tuscany.sca + itest-databindings + 1.5.1 + + + 4.0.0 + + itest-databindings-jaxb-top-down + 1.5.1 + jar + 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-impl + 1.5.1 + + + org.apache.tuscany.sca + tuscany-binding-ws-axis2 + 1.5.1 + runtime + + + org.apache.tuscany.sca + tuscany-databinding-jaxb + 1.5.1 + runtime + + + org.apache.tuscany.sca + tuscany-databinding-sdo + 1.5.1 + compile + + + org.apache.tuscany.sca + tuscany-databinding-axiom + 1.5.1 + compile + + + org.apache.tuscany.sca + itest-databindings-common + 1.5.1 + compile + + + + org.apache.tuscany.sca + tuscany-implementation-java-runtime + 1.5.1 + runtime + + + org.apache.tuscany.sca + tuscany-interface-java-xml + 1.5.1 + compile + + + org.apache.tuscany.sca + tuscany-host-jetty + 1.5.1 + 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/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-top-down/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/HelloService.java b/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-top-down/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/HelloService.java new file mode 100644 index 0000000000..352f805c7d --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-top-down/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/HelloService.java @@ -0,0 +1,42 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.osoa.sca.annotations.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/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-top-down/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/HelloServiceClient.java b/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-top-down/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/HelloServiceClient.java new file mode 100644 index 0000000000..7bd95cec95 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-top-down/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/HelloServiceClient.java @@ -0,0 +1,41 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-top-down/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/PrimitivesService.java b/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-top-down/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/PrimitivesService.java new file mode 100644 index 0000000000..8c0fb24da9 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-top-down/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/PrimitivesService.java @@ -0,0 +1,51 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.osoa.sca.annotations.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/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-top-down/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/PrimitivesServiceClient.java b/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-top-down/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/PrimitivesServiceClient.java new file mode 100644 index 0000000000..3a5a81bae4 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-top-down/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/PrimitivesServiceClient.java @@ -0,0 +1,50 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-top-down/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/StandardTypesService.java b/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-top-down/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/StandardTypesService.java new file mode 100644 index 0000000000..4be057fe68 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-top-down/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/StandardTypesService.java @@ -0,0 +1,84 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.osoa.sca.annotations.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/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-top-down/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/StandardTypesServiceClient.java b/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-top-down/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/StandardTypesServiceClient.java new file mode 100644 index 0000000000..0c073cd054 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-top-down/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/StandardTypesServiceClient.java @@ -0,0 +1,81 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-top-down/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/HelloServiceClientImpl.java b/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-top-down/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/HelloServiceClientImpl.java new file mode 100644 index 0000000000..c4026fdb9a --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-top-down/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/HelloServiceClientImpl.java @@ -0,0 +1,73 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.osoa.sca.annotations.Reference; +import org.osoa.sca.annotations.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/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-top-down/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/HelloServiceImpl.java b/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-top-down/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/HelloServiceImpl.java new file mode 100644 index 0000000000..fc2dc64b7d --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-top-down/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/HelloServiceImpl.java @@ -0,0 +1,86 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.osoa.sca.annotations.Service; + +/** + * An implementation of HelloService. + * + * @version $Rev$ $Date$ + */ +@Service(interfaces = {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/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-top-down/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/PrimitivesServiceClientImpl.java b/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-top-down/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/PrimitivesServiceClientImpl.java new file mode 100644 index 0000000000..ef1a907b29 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-top-down/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/PrimitivesServiceClientImpl.java @@ -0,0 +1,139 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.osoa.sca.annotations.Reference; +import org.osoa.sca.annotations.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/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-top-down/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/PrimitivesServiceImpl.java b/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-top-down/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/PrimitivesServiceImpl.java new file mode 100644 index 0000000000..e60ae41767 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-top-down/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/PrimitivesServiceImpl.java @@ -0,0 +1,151 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.osoa.sca.annotations.Service; + +/** + * An implementation of PrimitivesService. + * + * @version $Rev$ $Date$ + */ +@Service(interfaces={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/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-top-down/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/StandardTypesServiceClientImpl.java b/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-top-down/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/StandardTypesServiceClientImpl.java new file mode 100644 index 0000000000..8803eb262a --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-top-down/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/StandardTypesServiceClientImpl.java @@ -0,0 +1,159 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.osoa.sca.annotations.Reference; +import org.osoa.sca.annotations.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/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-top-down/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/StandardTypesServiceImpl.java b/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-top-down/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/StandardTypesServiceImpl.java new file mode 100644 index 0000000000..46569311ff --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-top-down/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/StandardTypesServiceImpl.java @@ -0,0 +1,207 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.osoa.sca.annotations.Service; + +/** + * An implementation of StandardTypesService. + * + * @version $Rev$ $Date$ + */ +@Service(interfaces={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/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-top-down/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/StandardTypesTransformer.java b/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-top-down/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/StandardTypesTransformer.java new file mode 100644 index 0000000000..9d851455da --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-top-down/src/main/java/org/apache/tuscany/sca/itest/databindings/jaxb/impl/StandardTypesTransformer.java @@ -0,0 +1,142 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-top-down/src/main/resources/wsdl/wrapped/hello-service.wsdl b/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-top-down/src/main/resources/wsdl/wrapped/hello-service.wsdl new file mode 100644 index 0000000000..926e4154aa --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-top-down/src/main/resources/wsdl/wrapped/hello-service.wsdl @@ -0,0 +1,371 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-top-down/src/main/resources/wsdl/wrapped/helloservice.composite b/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-top-down/src/main/resources/wsdl/wrapped/helloservice.composite new file mode 100644 index 0000000000..afde4b7de9 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-top-down/src/main/resources/wsdl/wrapped/helloservice.composite @@ -0,0 +1,80 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-top-down/src/main/resources/wsdl/wrapped/primitives-service.wsdl b/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-top-down/src/main/resources/wsdl/wrapped/primitives-service.wsdl new file mode 100644 index 0000000000..f366783e5e --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-top-down/src/main/resources/wsdl/wrapped/primitives-service.wsdl @@ -0,0 +1,927 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-top-down/src/main/resources/wsdl/wrapped/primitivesservice.composite b/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-top-down/src/main/resources/wsdl/wrapped/primitivesservice.composite new file mode 100644 index 0000000000..f218419f45 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-top-down/src/main/resources/wsdl/wrapped/primitivesservice.composite @@ -0,0 +1,80 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-top-down/src/main/resources/wsdl/wrapped/standard-types-service.composite b/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-top-down/src/main/resources/wsdl/wrapped/standard-types-service.composite new file mode 100644 index 0000000000..59e30dc801 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-top-down/src/main/resources/wsdl/wrapped/standard-types-service.composite @@ -0,0 +1,80 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-top-down/src/main/resources/wsdl/wrapped/standard-types-service.wsdl b/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-top-down/src/main/resources/wsdl/wrapped/standard-types-service.wsdl new file mode 100644 index 0000000000..5bfd1ea277 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-top-down/src/main/resources/wsdl/wrapped/standard-types-service.wsdl @@ -0,0 +1,1155 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-top-down/src/test/java/org/apache/tuscany/sca/itest/databindings/jaxb/topdown/DatabindingTestCase.java b/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-top-down/src/test/java/org/apache/tuscany/sca/itest/databindings/jaxb/topdown/DatabindingTestCase.java new file mode 100644 index 0000000000..7bb63fff1e --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-top-down/src/test/java/org/apache/tuscany/sca/itest/databindings/jaxb/topdown/DatabindingTestCase.java @@ -0,0 +1,347 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.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.SCAClient; +import org.apache.tuscany.sca.node.SCANode; +import org.apache.tuscany.sca.node.SCANodeFactory; +import org.junit.AfterClass; +import org.junit.BeforeClass; +import org.junit.Test; +import org.junit.Ignore; + +/** + * @version $Rev$ $Date$ + */ +public class DatabindingTestCase { + + private static SCAClient client; + private static SCANode node; + + /** + * Runs once before running the tests + */ + @BeforeClass + public static void setUp() throws Exception { + try { + SCANodeFactory nodeFactory = SCANodeFactory.newInstance(); + node = nodeFactory.createSCANodeFromClassLoader("wsdl/wrapped/helloservice.composite", null); + node.start(); + client = (SCAClient)node; + }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 = client.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 = client.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 = client.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 = client.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 = client.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 = client.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 = client.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 = client.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 = client.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 = client.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 = client.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 = client.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 = client.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 = client.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 = client.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 = client.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 = client.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 = client.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 = client.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 = client.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 = client.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/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-top-down/src/test/java/org/apache/tuscany/sca/itest/databindings/jaxb/topdown/PrimitivesDatabindingTestCase.java b/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-top-down/src/test/java/org/apache/tuscany/sca/itest/databindings/jaxb/topdown/PrimitivesDatabindingTestCase.java new file mode 100644 index 0000000000..eaf54b0f1b --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-top-down/src/test/java/org/apache/tuscany/sca/itest/databindings/jaxb/topdown/PrimitivesDatabindingTestCase.java @@ -0,0 +1,849 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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 junit.framework.Assert; + +import org.apache.tuscany.sca.itest.databindings.jaxb.PrimitivesServiceClient; +import org.apache.tuscany.sca.node.SCAClient; +import org.apache.tuscany.sca.node.SCANode; +import org.apache.tuscany.sca.node.SCANodeFactory; +import org.junit.AfterClass; +import org.junit.BeforeClass; +import org.junit.Test; +import org.junit.Ignore; + +/** + * @version $Rev$ $Date$ + */ +public class PrimitivesDatabindingTestCase { + + private static SCAClient domain; + private static SCANode node; + + /** + * Runs before each test method + */ + @BeforeClass + public static void setUp() throws Exception { + SCANodeFactory nodeFactory = SCANodeFactory.newInstance(); + node = nodeFactory.createSCANodeFromClassLoader("wsdl/wrapped/primitivesservice.composite", null); + node.start(); + domain = (SCAClient)node; + } + + /** + * 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 = domain.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 = domain.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 = domain.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 = domain.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 = domain.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 = domain.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 = domain.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 = domain.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 = domain.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 = domain.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 = domain.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 = domain.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 = domain.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 = domain.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 = domain.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 = domain.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 = domain.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 = domain.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 = domain.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 = domain.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 = domain.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 = domain.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 = domain.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 = domain.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 = domain.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 = domain.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 = domain.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 = domain.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 = domain.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 = domain.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 = domain.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 = domain.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 = domain.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 = domain.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 = domain.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 = domain.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 = domain.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 = domain.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 = domain.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 = domain.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 = domain.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 = domain.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 = domain.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 = domain.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 = domain.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 = domain.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 = domain.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 = domain.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 = domain.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 = domain.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 = domain.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 = domain.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 = domain.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 = domain.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 = domain.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 = domain.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 = domain.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 = domain.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 = domain.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 = domain.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 = domain.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 = domain.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 = domain.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/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-top-down/src/test/java/org/apache/tuscany/sca/itest/databindings/jaxb/topdown/StandardTypesDatabindingTestCase.java b/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-top-down/src/test/java/org/apache/tuscany/sca/itest/databindings/jaxb/topdown/StandardTypesDatabindingTestCase.java new file mode 100644 index 0000000000..4713179267 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/jaxb-top-down/src/test/java/org/apache/tuscany/sca/itest/databindings/jaxb/topdown/StandardTypesDatabindingTestCase.java @@ -0,0 +1,1446 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * 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.IOException; +import java.io.InputStream; +import java.io.StringReader; +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.dom.DOMSource; +import javax.xml.transform.sax.SAXSource; +import javax.xml.transform.stream.StreamResult; +import javax.xml.transform.stream.StreamSource; + +import junit.framework.Assert; + +import org.apache.axiom.attachments.ByteArrayDataSource; +import org.apache.tuscany.sca.databinding.xml.String2Node; +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.SCAClient; +import org.apache.tuscany.sca.node.SCANode; +import org.apache.tuscany.sca.node.SCANodeFactory; +import org.junit.AfterClass; +import org.junit.BeforeClass; +import org.junit.Ignore; +import org.junit.Test; +import org.xml.sax.InputSource; +import org.junit.Ignore; + +/** + * @version $Rev$ $Date$ + */ +public class StandardTypesDatabindingTestCase { + + private static SCAClient domain; + private static SCANode node; + + /** + * Runs once before the tests + */ + @BeforeClass + public static void setUp() throws Exception { + SCANodeFactory nodeFactory = SCANodeFactory.newInstance(); + node = nodeFactory.createSCANodeFromClassLoader("wsdl/wrapped/standard-types-service.composite", null); + node.start(); + domain = (SCAClient)node; + } + + /** + * 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 = + domain.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 = + domain.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 = + domain.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 = + domain.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 = + domain.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 = + domain.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 = + domain.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 = + domain.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 = + domain.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 = + domain.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 = + domain.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 = + domain.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 = + domain.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 = + domain.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 = + domain.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 = + domain.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 = + domain.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 = + domain.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 = + domain.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 = + domain.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 = + domain.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 = + domain.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 = + domain.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 = + domain.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 = + domain.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 = + domain.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 = + domain.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 = + domain.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 = + domain.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 = + domain.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 = + domain.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 = + domain.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 = + domain.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 = + domain.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 = + domain.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 = + domain.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 = + domain.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 = + domain.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 = + domain.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 = + domain.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 = + domain.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 = + domain.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 = + domain.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 = + domain.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 = + domain.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 = + domain.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 = + domain.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 = + domain.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 = + domain.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 = + domain.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 = + domain.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 = + domain.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 = + domain.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 = + domain.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 = + domain.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 = + domain.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 = + domain.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 = + domain.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 = + domain.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 = + domain.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 = + domain.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 = + domain.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 = + domain.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 = + domain.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 = + domain.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 = + domain.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 = + domain.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 = + domain.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 = + domain.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 = + domain.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 = + domain.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 = + domain.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 = + domain.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 = + domain.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 = + domain.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 = + domain.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 = + domain.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 = + domain.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().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().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/tags/java/sca/1.5.1-RC4/itest/databindings/jaxbgen/pom.xml b/tags/java/sca/1.5.1-RC4/itest/databindings/jaxbgen/pom.xml new file mode 100644 index 0000000000..b1f71c57fa --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/jaxbgen/pom.xml @@ -0,0 +1,262 @@ + + + + + org.apache.tuscany.sca + itest-databindings + 1.5.1 + + + 4.0.0 + + itest-databindings-jaxb + 1.5.1 + jar + Apache Tuscany SCA iTest JAXB Databinding + + + + + 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-binding-ws-axis2 + ${pom.version} + runtime + + + org.apache.tuscany.sca + tuscany-databinding-jaxb + ${pom.version} + runtime + + + org.apache.tuscany.sca + tuscany-databinding-sdo + ${pom.version} + compile + + + org.apache.tuscany.sca + tuscany-databinding-axiom + ${pom.version} + compile + + + org.apache.tuscany.sca + itest-databindings-common + ${pom.version} + compile + + + org.apache.tuscany.sca + tuscany-host-embedded + ${pom.version} + compile + + + org.apache.tuscany.sca + tuscany-implementation-java-runtime + ${pom.version} + compile + + + org.apache.tuscany.sca + tuscany-interface-java-xml + ${pom.version} + compile + + + org.apache.tuscany.sca + tuscany-host-jetty + 1.5.1 + 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 + + + generate-sources + + unpack + + + + + org.apache.tuscany.sca + itest-databindings-common + ${project.version} + true + ${project.build.directory}/classes + + + + + + 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 + exec-maven-plugin + + + generate-test-source + process-resources + + java + + + + + org.apache.tuscany.sca.itest.generate.Generate + + ${project.build.directory} + + + + + org.codehaus.mojo + jaxws-maven-plugin + 1.9 + + + process-resources + + wsimport + + + + + org.apache.tuscany.sca.itest.jaxbdatabinding.generated + ${project.build.directory}/classes/wsdl + + Greeter.wsdl + + ${project.build.directory}/jaxws-source + false + true + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/jaxbgen/src/main/resources/generate/generate.xml b/tags/java/sca/1.5.1-RC4/itest/databindings/jaxbgen/src/main/resources/generate/generate.xml new file mode 100644 index 0000000000..8381a164ea --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/jaxbgen/src/main/resources/generate/generate.xml @@ -0,0 +1,172 @@ + + + + + + + + + + + + + Person.xsd + xsd + org.apache.tuscany.sca.itest.jaxbdatabinding.generated + ObjectFactory + http://apache.org/tuscany/sca/itest/databinding/types + p + + PersonType + + ObjectFactory factory = new ObjectFactory(); + param = factory.createPersonType(); + param.setFirstName("George"); + param.setLastName("Doors"); + + + param.setGreeting("Hello"); + + + assertNotSame("greetedPerson.getGreeting() not set", "", result.getGreeting()); + + + + + Interop.xsd + xsd + org.apache.tuscany.sca.itest.jaxbdatabinding.generated + ObjectFactory + http://www.apache.org/tuscany/interop + i + + + AttributeComplexType + + ObjectFactory factory = new ObjectFactory(); + org.apache.tuscany.sca.itest.jaxbdatabinding.generated.AttributeType attrib = factory.createAttributeType(); + attrib.setAttribute("SomeText"); + param = factory.createAttributeComplexType(); + param.setAttributeElement(attrib); + + + param.getAttributeElement().setAttribute("SomeChangedText");; + + + assertEquals("data not changed corretly", "SomeChangedText", result.getAttributeElement().getAttribute()); + + + + AttributeReferenceComplexType + + ObjectFactory factory = new ObjectFactory(); + param = factory.createAttributeReferenceComplexType(); + + param.setReferencedAttribute("SomeText"); + + + param.setReferencedAttribute("SomeChangedText");; + + + assertEquals("data not changed corretly", "SomeChangedText", result.getReferencedAttribute()); + + + + SimpleTypeWithAbstractComplexType + + ObjectFactory factory = new ObjectFactory(); + param = factory.createSimpleTypeWithAbstractComplexType(); + param.setSimpleTypeWithAbstractExtensionElement("SomeText"); + + + param.setSimpleTypeWithAbstractExtensionElement("SomeChangedText");; + + + assertEquals("data not changed corretly", "SomeChangedText", result.getSimpleTypeWithAbstractExtensionElement()); + + + + SimpleTypeWithNameComplexType + + ObjectFactory factory = new ObjectFactory(); + param = factory.createSimpleTypeWithNameComplexType(); + param.setSimpleTypeWithNameElement("SomeText"); + + + param.setSimpleTypeWithNameElement("SomeChangedText");; + + + assertEquals("data not changed corretly", "SomeChangedText", result.getSimpleTypeWithNameElement()); + + + + ComplexTypeWithContentType + + ObjectFactory factory = new ObjectFactory(); + param = factory.createComplexTypeWithContentType(); + param.setSimpleTypeWithName("SomeText"); + + + param.setSimpleTypeWithName("SomeChangedText");; + + + assertEquals("data not changed corretly", "SomeChangedText", result.getSimpleTypeWithName()); + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/jaxbgen/src/main/resources/greeter.composite b/tags/java/sca/1.5.1-RC4/itest/databindings/jaxbgen/src/main/resources/greeter.composite new file mode 100644 index 0000000000..ae0740e6fe --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/jaxbgen/src/main/resources/greeter.composite @@ -0,0 +1,49 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/pom.xml b/tags/java/sca/1.5.1-RC4/itest/databindings/pom.xml new file mode 100644 index 0000000000..54c1623e32 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/pom.xml @@ -0,0 +1,47 @@ + + + + + org.apache.tuscany.sca + tuscany-itest + 1.5.1 + ../pom.xml + + 4.0.0 + + org.apache.tuscany.sca + itest-databindings + Apache Tuscany SCA Databindings Integration Tests + 1.5.1 + + + pom + + install + + + common + sdogen + jaxbgen + jaxb-bottom-up + jaxb-top-down + interop + + diff --git a/tags/java/sca/1.5.1-RC4/itest/databindings/readme.html b/tags/java/sca/1.5.1-RC4/itest/databindings/readme.html new file mode 100644 index 0000000000..24a44e4ed7 --- /dev/null +++ b/tags/java/sca/1.5.1-RC4/itest/databindings/readme.html @@ -0,0 +1,157 @@ + + + + + + + + + Tuscany SCA Integration Test Databindings + + + + + +

Tuscany SCA Integation Test Databindings

+ +

Overview

+ +

+This integration test tests the Tuscany SCA databinding implementation by passing various data structures +across various bindings using the supported databindings. There are tests for the individual databindings +which exercise various bindings with the same databinding at client and server ends of each binding. There +is also an integration test which exercises the transformer chains by specifying different databindings at +client and server ends of the binding. +

+

+In doing this testing it is apparent that there is a lot of repetition in creating client, services, idl and +type for each of the data types for each of the bindings for each of the databindings. To reduce the amount +of effort required to maintain the tests as new types, bindings and databindings are added the test cases +themselves are generated from configuration files. +

+ +

Test Structure

+ +Databindings/Common - hold files common across all tests
+Databindings/Interop - test the transformer chains with combinations of databindings
+Databindings/sdogen and jaxbgen - test each databindings independently
+ +

Test Generation

+

+To reduce the amount of manual effort involved in building and maintaining tests cases the test cases +themselves are generated at run time using a set of velocity templates. Each test module has a generate.xml +file in the resources/generate directory which tells the generator what to do. The file looks like this. +

+ +

+Each