From a40e527938d76ba71f211da7e327adb50384ba69 Mon Sep 17 00:00:00 2001 From: lresende Date: Wed, 11 Nov 2009 23:26:33 +0000 Subject: Moving 1.x tags git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@835157 13f79535-47bb-0310-9956-ffa450edef68 --- .../store-client/META-INF/sca-contribution.xml | 23 ---- .../1.3/tutorial/store-client/client/Shopper.java | 29 ----- .../tutorial/store-client/client/ShopperImpl.java | 63 ----------- .../store-client/launch/LaunchStoreClientNode.java | 43 ------- tags/java/sca/1.3/tutorial/store-client/pom.xml | 123 --------------------- .../1.3/tutorial/store-client/services/Cart.java | 28 ----- .../tutorial/store-client/services/Catalog.java | 27 ----- .../1.3/tutorial/store-client/services/Item.java | 66 ----------- .../1.3/tutorial/store-client/services/Total.java | 29 ----- .../tutorial/store-client/store-client.composite | 38 ------- 10 files changed, 469 deletions(-) delete mode 100644 tags/java/sca/1.3/tutorial/store-client/META-INF/sca-contribution.xml delete mode 100644 tags/java/sca/1.3/tutorial/store-client/client/Shopper.java delete mode 100644 tags/java/sca/1.3/tutorial/store-client/client/ShopperImpl.java delete mode 100644 tags/java/sca/1.3/tutorial/store-client/launch/LaunchStoreClientNode.java delete mode 100644 tags/java/sca/1.3/tutorial/store-client/pom.xml delete mode 100644 tags/java/sca/1.3/tutorial/store-client/services/Cart.java delete mode 100644 tags/java/sca/1.3/tutorial/store-client/services/Catalog.java delete mode 100644 tags/java/sca/1.3/tutorial/store-client/services/Item.java delete mode 100644 tags/java/sca/1.3/tutorial/store-client/services/Total.java delete mode 100644 tags/java/sca/1.3/tutorial/store-client/store-client.composite (limited to 'tags/java/sca/1.3/tutorial/store-client') diff --git a/tags/java/sca/1.3/tutorial/store-client/META-INF/sca-contribution.xml b/tags/java/sca/1.3/tutorial/store-client/META-INF/sca-contribution.xml deleted file mode 100644 index 30ffa61ed2..0000000000 --- a/tags/java/sca/1.3/tutorial/store-client/META-INF/sca-contribution.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - \ No newline at end of file diff --git a/tags/java/sca/1.3/tutorial/store-client/client/Shopper.java b/tags/java/sca/1.3/tutorial/store-client/client/Shopper.java deleted file mode 100644 index f8643d4c52..0000000000 --- a/tags/java/sca/1.3/tutorial/store-client/client/Shopper.java +++ /dev/null @@ -1,29 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -package client; - -import org.osoa.sca.annotations.Remotable; - -@Remotable -public interface Shopper { - - String shop(String itemName, int quantity); - -} diff --git a/tags/java/sca/1.3/tutorial/store-client/client/ShopperImpl.java b/tags/java/sca/1.3/tutorial/store-client/client/ShopperImpl.java deleted file mode 100644 index c017548fb3..0000000000 --- a/tags/java/sca/1.3/tutorial/store-client/client/ShopperImpl.java +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -package client; - -import org.apache.tuscany.sca.data.collection.NotFoundException; -import org.osoa.sca.annotations.Reference; - -import services.Cart; -import services.Catalog; -import services.Item; -import services.Total; - -public class ShopperImpl implements Shopper { - - @Reference - public Catalog catalog; - - @Reference - public Cart shoppingCart; - - @Reference - public Total shoppingTotal; - - public String shop(String itemName, int quantity) { - - Item[] items = catalog.get(); - for (Item item: items) { - if (item.getName().startsWith(itemName)) { - - try { - shoppingCart.delete(""); - } catch (NotFoundException e) { - } - - for (int i = 0; i < quantity; i++) { - shoppingCart.post("item" + i, item); - } - - return shoppingTotal.getTotal(); - } - } - - return ""; - } - -} diff --git a/tags/java/sca/1.3/tutorial/store-client/launch/LaunchStoreClientNode.java b/tags/java/sca/1.3/tutorial/store-client/launch/LaunchStoreClientNode.java deleted file mode 100644 index 4709240db5..0000000000 --- a/tags/java/sca/1.3/tutorial/store-client/launch/LaunchStoreClientNode.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -package launch; - -import org.apache.tuscany.sca.node.SCAClient; -import org.apache.tuscany.sca.node.SCANode2; -import org.apache.tuscany.sca.node.launcher.NodeLauncher; - -import client.Shopper; - -public class LaunchStoreClientNode { - - public static void main(String[] args) throws Exception { - NodeLauncher nodeLauncher = NodeLauncher.newInstance(); - SCANode2 storeClientNode = nodeLauncher.createNode("http://localhost:9990/node-config/StoreClientNode"); - storeClientNode.start(); - SCAClient client = (SCAClient)storeClientNode; - - Shopper shopper = client.getService(Shopper.class, "StoreClient"); - - String total = shopper.shop("Orange", 5); - System.out.println("Total: " + total); - - storeClientNode.stop(); - } -} diff --git a/tags/java/sca/1.3/tutorial/store-client/pom.xml b/tags/java/sca/1.3/tutorial/store-client/pom.xml deleted file mode 100644 index 347350d8bf..0000000000 --- a/tags/java/sca/1.3/tutorial/store-client/pom.xml +++ /dev/null @@ -1,123 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-tutorial - 1.3 - ../pom.xml - - tutorial-store-client - Apache Tuscany SCA Tutorial Online Store Client - - - - apache.incubator - http://people.apache.org/repo/m2-incubating-repository - - - - - - org.apache.tuscany.sca - tuscany-sca-api - 1.3 - - - - org.apache.tuscany.sca - tuscany-data-api - 1.3 - - - - org.apache.tuscany.sca - tuscany-node2-launcher - 1.3 - - - - org.apache.tuscany.sca - tuscany-node2-api - 1.3 - - - - org.apache.tuscany.sca - tuscany-implementation-node-runtime - 1.3 - runtime - - - - org.apache.tuscany.sca - tuscany-implementation-java-runtime - 1.3 - runtime - - - - org.apache.tuscany.sca - tuscany-binding-atom-abdera - 1.3 - runtime - - - - org.apache.tuscany.sca - tuscany-binding-ws-axis2 - 1.3 - runtime - - - - - ${artifactId} - ${basedir} - - - ${basedir} - - **/*.java - **/.*/** - pom.xml - build.xml - target/** - - - - - - org.apache.tuscany.sca - tuscany-maven-ant-generator - 1.3 - - - - generate - - - - - - - - diff --git a/tags/java/sca/1.3/tutorial/store-client/services/Cart.java b/tags/java/sca/1.3/tutorial/store-client/services/Cart.java deleted file mode 100644 index 9e6226d963..0000000000 --- a/tags/java/sca/1.3/tutorial/store-client/services/Cart.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -package services; - -import org.apache.tuscany.sca.data.collection.Collection; -import org.osoa.sca.annotations.Remotable; - -@Remotable -public interface Cart extends Collection { - -} diff --git a/tags/java/sca/1.3/tutorial/store-client/services/Catalog.java b/tags/java/sca/1.3/tutorial/store-client/services/Catalog.java deleted file mode 100644 index 2c3b19f579..0000000000 --- a/tags/java/sca/1.3/tutorial/store-client/services/Catalog.java +++ /dev/null @@ -1,27 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -package services; - -import org.osoa.sca.annotations.Remotable; - -@Remotable -public interface Catalog { - Item[] get(); -} diff --git a/tags/java/sca/1.3/tutorial/store-client/services/Item.java b/tags/java/sca/1.3/tutorial/store-client/services/Item.java deleted file mode 100644 index 81cefcdbef..0000000000 --- a/tags/java/sca/1.3/tutorial/store-client/services/Item.java +++ /dev/null @@ -1,66 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -package services; - - -public class Item { - private String name; - private String price; - private String origin; - - public Item() { - } - - public Item(String name, String price, String origin) { - this.name = name; - this.price = price; - this.origin = origin; - } - - public Item(String name, String price) { - this.name = name; - this.price = price; - } - - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public String getPrice() { - return price; - } - - public void setPrice(String price) { - this.price = price; - } - - public String getOrigin() { - return origin; - } - - public void setOrigin(String origin) { - this.origin = origin; - } - -} diff --git a/tags/java/sca/1.3/tutorial/store-client/services/Total.java b/tags/java/sca/1.3/tutorial/store-client/services/Total.java deleted file mode 100644 index 8f464e526f..0000000000 --- a/tags/java/sca/1.3/tutorial/store-client/services/Total.java +++ /dev/null @@ -1,29 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -package services; - -import org.osoa.sca.annotations.Remotable; - -@Remotable -public interface Total { - - String getTotal(); - -} diff --git a/tags/java/sca/1.3/tutorial/store-client/store-client.composite b/tags/java/sca/1.3/tutorial/store-client/store-client.composite deleted file mode 100644 index 3c5f1637ef..0000000000 --- a/tags/java/sca/1.3/tutorial/store-client/store-client.composite +++ /dev/null @@ -1,38 +0,0 @@ - - - - - - - - - - - - - - - - - - -- cgit v1.2.3