diff options
author | nash <nash@13f79535-47bb-0310-9956-ffa450edef68> | 2011-03-30 19:50:51 +0000 |
---|---|---|
committer | nash <nash@13f79535-47bb-0310-9956-ffa450edef68> | 2011-03-30 19:50:51 +0000 |
commit | 3a569a2f00bf172cddfd567149774ee808a2a242 (patch) | |
tree | 5b18450a44f7f33a4d3c56780393f15331150347 /sca-java-1.x/branches/sca-java-1.6.2/tutorials/store/store-market | |
parent | c1fc4bd1ac2a2133b870e4314424cfd050bef607 (diff) |
Create branch for 1.6.2
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1087059 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-1.x/branches/sca-java-1.6.2/tutorials/store/store-market')
3 files changed, 174 insertions, 0 deletions
diff --git a/sca-java-1.x/branches/sca-java-1.6.2/tutorials/store/store-market/META-INF/sca-contribution.xml b/sca-java-1.x/branches/sca-java-1.6.2/tutorials/store/store-market/META-INF/sca-contribution.xml new file mode 100644 index 0000000000..491230c952 --- /dev/null +++ b/sca-java-1.x/branches/sca-java-1.6.2/tutorials/store/store-market/META-INF/sca-contribution.xml @@ -0,0 +1,26 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. +--> +<contribution xmlns="http://www.osoa.org/xmlns/sca/1.0" + xmlns:s="http://store"> + <import.java package="services" /> + <import.java package="services.market" /> + <import.resource uri="uiservices/store.html"/> + <deployable composite="s:store-market" /> +</contribution>
\ No newline at end of file diff --git a/sca-java-1.x/branches/sca-java-1.6.2/tutorials/store/store-market/pom.xml b/sca-java-1.x/branches/sca-java-1.6.2/tutorials/store/store-market/pom.xml new file mode 100644 index 0000000000..962d9674b5 --- /dev/null +++ b/sca-java-1.x/branches/sca-java-1.6.2/tutorials/store/store-market/pom.xml @@ -0,0 +1,80 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. +--> +<project> + <modelVersion>4.0.0</modelVersion> + <parent> + <groupId>org.apache.tuscany.sca</groupId> + <artifactId>tuscany-tutorial-store</artifactId> + <version>1.6.1-SNAPSHOT</version> + <relativePath>../pom.xml</relativePath> + </parent> + <artifactId>tutorial-store-market</artifactId> + <name>Apache Tuscany SCA Store Tutorial Marketplace Online Store</name> + + <repositories> + <repository> + <id>apache.incubator</id> + <url>http://people.apache.org/repo/m2-incubating-repository</url> + </repository> + </repositories> + + <dependencies> + <dependency> + <groupId>org.apache.tuscany.sca</groupId> + <artifactId>tuscany-sca-api</artifactId> + <version>1.6.1-SNAPSHOT</version> + </dependency> + </dependencies> + + <build> + <finalName>${artifactId}</finalName> + <sourceDirectory>${basedir}</sourceDirectory> + <resources> + <resource> + <directory>${basedir}</directory> + <excludes> + <exclude>**/*.java</exclude> + <exclude>**/.*/**</exclude> + <exclude>pom.xml</exclude> + <exclude>build*.xml</exclude> + <exclude>target/**</exclude> + </excludes> + </resource> + </resources> + <plugins> + <plugin> + <groupId>org.apache.tuscany.sca</groupId> + <artifactId>tuscany-maven-ant-generator</artifactId> + <version>1.6.1-SNAPSHOT</version> + <executions> + <execution> + <configuration> + <pathToRootDir>../../..</pathToRootDir> + </configuration> + <goals> + <goal>generate</goal> + </goals> + </execution> + </executions> + </plugin> + </plugins> + </build> + +</project> diff --git a/sca-java-1.x/branches/sca-java-1.6.2/tutorials/store/store-market/store-market.composite b/sca-java-1.x/branches/sca-java-1.6.2/tutorials/store/store-market/store-market.composite new file mode 100644 index 0000000000..1c225e6c07 --- /dev/null +++ b/sca-java-1.x/branches/sca-java-1.6.2/tutorials/store/store-market/store-market.composite @@ -0,0 +1,68 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. +--> +<composite xmlns="http://www.osoa.org/xmlns/sca/1.0" + xmlns:t="http://tuscany.apache.org/xmlns/sca/1.0" + targetNamespace="http://store" + name="store-market"> + + <component name="StoreMarket"> + <t:implementation.widget location="uiservices/store.html"/> + <service name="Widget"> + <t:binding.http uri="/ui"/> + </service> + <reference name="catalog" target="StoreMarketCatalog"> + <t:binding.jsonrpc/> + </reference> + <reference name="shoppingCart" target="StoreMarketShoppingCart/Cart"> + <t:binding.atom/> + </reference> + <reference name="shoppingTotal" target="StoreMarketShoppingCart/Total"> + <t:binding.jsonrpc/> + </reference> + </component> + + <component name="StoreMarketCatalog"> + <implementation.java class="services.market.MarketCatalogImpl"/> + <property name="currencyCode">USD</property> + <service name="Catalog"> + <t:binding.jsonrpc/> + </service> + <reference name="goodsCatalog" multiplicity="0..n" target="VegetablesCatalogWebService FruitsCatalogWebService" > + <binding.ws /> + </reference> + <reference name="currencyConverter" target="StoreMarketCurrencyConverter"/> + + </component> + + <component name="StoreMarketShoppingCart"> + <implementation.java class="services.ShoppingCartImpl"/> + <service name="Cart"> + <t:binding.atom uri="/ShoppingCart/Cart"/> + </service> + <service name="Total"> + <t:binding.jsonrpc/> + </service> + </component> + + <component name="StoreMarketCurrencyConverter"> + <implementation.java class="services.CurrencyConverterImpl"/> + </component> + +</composite> |