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 --- .../warehouse-spring/META-INF/sca-contribution.xml | 24 ++++++ .../tutorials/store/warehouse-spring/build.xml | 75 +++++++++++++++++ .../1.5.1/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 +++++++++++ 7 files changed, 391 insertions(+) create mode 100644 sca-java-1.x/tags/1.5.1/tutorials/store/warehouse-spring/META-INF/sca-contribution.xml create mode 100644 sca-java-1.x/tags/1.5.1/tutorials/store/warehouse-spring/build.xml create mode 100644 sca-java-1.x/tags/1.5.1/tutorials/store/warehouse-spring/pom.xml create mode 100644 sca-java-1.x/tags/1.5.1/tutorials/store/warehouse-spring/services/WarehouseImpl.java create mode 100644 sca-java-1.x/tags/1.5.1/tutorials/store/warehouse-spring/uiservices/warehouse.html create mode 100644 sca-java-1.x/tags/1.5.1/tutorials/store/warehouse-spring/warehouse-context.xml create mode 100644 sca-java-1.x/tags/1.5.1/tutorials/store/warehouse-spring/warehouse-spring.composite (limited to 'sca-java-1.x/tags/1.5.1/tutorials/store/warehouse-spring') diff --git a/sca-java-1.x/tags/1.5.1/tutorials/store/warehouse-spring/META-INF/sca-contribution.xml b/sca-java-1.x/tags/1.5.1/tutorials/store/warehouse-spring/META-INF/sca-contribution.xml new file mode 100644 index 0000000000..99863d56cc --- /dev/null +++ b/sca-java-1.x/tags/1.5.1/tutorials/store/warehouse-spring/META-INF/sca-contribution.xml @@ -0,0 +1,24 @@ + + + + + + \ No newline at end of file diff --git a/sca-java-1.x/tags/1.5.1/tutorials/store/warehouse-spring/build.xml b/sca-java-1.x/tags/1.5.1/tutorials/store/warehouse-spring/build.xml new file mode 100644 index 0000000000..71d2a90a15 --- /dev/null +++ b/sca-java-1.x/tags/1.5.1/tutorials/store/warehouse-spring/build.xml @@ -0,0 +1,75 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/sca-java-1.x/tags/1.5.1/tutorials/store/warehouse-spring/pom.xml b/sca-java-1.x/tags/1.5.1/tutorials/store/warehouse-spring/pom.xml new file mode 100644 index 0000000000..7ffb1a2fca --- /dev/null +++ b/sca-java-1.x/tags/1.5.1/tutorials/store/warehouse-spring/pom.xml @@ -0,0 +1,98 @@ + + + + 4.0.0 + + org.apache.tuscany.sca + tuscany-tutorial-store + 1.5.1 + ../pom.xml + + tutorial-warehouse-spring + Apache Tuscany SCA Store Tutorial Warehouse Spring + + + + apache.incubator + http://people.apache.org/repo/m2-incubating-repository + + + + + + org.apache.tuscany.sca + tuscany-sca-api + 1.5.1 + + + + org.apache.tuscany.sca + tuscany-implementation-java + 1.5.1 + + + + org.apache.tuscany.sca + tuscany-binding-jms + 1.5.1 + + + + org.apache.tuscany.sca + tutorial-assets + 1.5.1 + + + + + ${artifactId} + ${basedir} + + + ${basedir} + + **/*.java + **/.*/** + pom.xml + build.xml + target/** + + + + + + org.apache.tuscany.sca + tuscany-maven-ant-generator + 1.5.1 + + + + ../../.. + + + generate + + + + + + + + diff --git a/sca-java-1.x/tags/1.5.1/tutorials/store/warehouse-spring/services/WarehouseImpl.java b/sca-java-1.x/tags/1.5.1/tutorials/store/warehouse-spring/services/WarehouseImpl.java new file mode 100644 index 0000000000..d14def1e8e --- /dev/null +++ b/sca-java-1.x/tags/1.5.1/tutorials/store/warehouse-spring/services/WarehouseImpl.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 services; + +import java.util.ArrayList; +import java.util.List; + +import org.osoa.sca.annotations.Scope; + +@Scope("COMPOSITE") +public class WarehouseImpl implements Warehouse { + + private List orders = new ArrayList(); + + public void addOrder(Order order) { + System.out.println("Received order: " + order.toString()); + orders.add(order); + } + + public Order[] getOrders() { + return orders.toArray(new Order[orders.size()]); + } +} diff --git a/sca-java-1.x/tags/1.5.1/tutorials/store/warehouse-spring/uiservices/warehouse.html b/sca-java-1.x/tags/1.5.1/tutorials/store/warehouse-spring/uiservices/warehouse.html new file mode 100644 index 0000000000..b215f9a3cd --- /dev/null +++ b/sca-java-1.x/tags/1.5.1/tutorials/store/warehouse-spring/uiservices/warehouse.html @@ -0,0 +1,76 @@ + + + +Warehouse + + + + + + + + +

Pending Orders

+
+
+
+
+ +
+
+ + diff --git a/sca-java-1.x/tags/1.5.1/tutorials/store/warehouse-spring/warehouse-context.xml b/sca-java-1.x/tags/1.5.1/tutorials/store/warehouse-spring/warehouse-context.xml new file mode 100644 index 0000000000..ed718d1403 --- /dev/null +++ b/sca-java-1.x/tags/1.5.1/tutorials/store/warehouse-spring/warehouse-context.xml @@ -0,0 +1,29 @@ + + + + + + + + diff --git a/sca-java-1.x/tags/1.5.1/tutorials/store/warehouse-spring/warehouse-spring.composite b/sca-java-1.x/tags/1.5.1/tutorials/store/warehouse-spring/warehouse-spring.composite new file mode 100644 index 0000000000..bfe789542d --- /dev/null +++ b/sca-java-1.x/tags/1.5.1/tutorials/store/warehouse-spring/warehouse-spring.composite @@ -0,0 +1,49 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + -- cgit v1.2.3