Updating store sample webapp to the latest OASIS namespace/packages
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@881167 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
c40ade3c51
commit
8e4a90d2f4
8 changed files with 32 additions and 32 deletions
|
@ -22,7 +22,7 @@
|
|||
<parent>
|
||||
<groupId>org.apache.tuscany.sca</groupId>
|
||||
<artifactId>tuscany-sca</artifactId>
|
||||
<version>1.6-SNAPSHOT</version>
|
||||
<version>2.0-SNAPSHOT</version>
|
||||
<relativePath>../pom.xml</relativePath>
|
||||
</parent>
|
||||
<artifactId>sample-store-webapp</artifactId>
|
||||
|
@ -40,55 +40,55 @@
|
|||
<dependency>
|
||||
<groupId>org.apache.tuscany.sca</groupId>
|
||||
<artifactId>tuscany-host-webapp</artifactId>
|
||||
<version>1.6-SNAPSHOT</version>
|
||||
<version>2.0-SNAPSHOT</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.apache.tuscany.sca</groupId>
|
||||
<artifactId>tuscany-data-api</artifactId>
|
||||
<version>1.6-SNAPSHOT</version>
|
||||
<version>2.0-SNAPSHOT</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.apache.tuscany.sca</groupId>
|
||||
<artifactId>tuscany-implementation-java-runtime</artifactId>
|
||||
<version>1.6-SNAPSHOT</version>
|
||||
<version>2.0-SNAPSHOT</version>
|
||||
<scope>runtime</scope>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.apache.tuscany.sca</groupId>
|
||||
<artifactId>tuscany-implementation-widget-runtime-tuscany</artifactId>
|
||||
<version>1.6-SNAPSHOT</version>
|
||||
<artifactId>tuscany-implementation-widget-runtime-dojo</artifactId>
|
||||
<version>2.0-SNAPSHOT</version>
|
||||
<scope>runtime</scope>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.apache.tuscany.sca</groupId>
|
||||
<artifactId>tuscany-binding-atom-abdera</artifactId>
|
||||
<version>1.6-SNAPSHOT</version>
|
||||
<artifactId>tuscany-binding-atom-runtime</artifactId>
|
||||
<version>2.0-SNAPSHOT</version>
|
||||
<scope>runtime</scope>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.apache.tuscany.sca</groupId>
|
||||
<artifactId>tuscany-binding-atom-js</artifactId>
|
||||
<version>1.6-SNAPSHOT</version>
|
||||
<artifactId>tuscany-binding-atom-js-dojo</artifactId>
|
||||
<version>2.0-SNAPSHOT</version>
|
||||
<scope>runtime</scope>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.apache.tuscany.sca</groupId>
|
||||
<artifactId>tuscany-binding-jsonrpc-runtime</artifactId>
|
||||
<version>1.6-SNAPSHOT</version>
|
||||
<version>2.0-SNAPSHOT</version>
|
||||
<scope>runtime</scope>
|
||||
</dependency>
|
||||
|
||||
|
||||
<dependency>
|
||||
<groupId>org.apache.tuscany.sca</groupId>
|
||||
<artifactId>tuscany-binding-jsonrpc-js</artifactId>
|
||||
<version>1.6-SNAPSHOT</version>
|
||||
<artifactId>tuscany-binding-jsonrpc-js-dojo</artifactId>
|
||||
<version>2.0-SNAPSHOT</version>
|
||||
<scope>runtime</scope>
|
||||
</dependency>
|
||||
|
||||
|
@ -107,7 +107,7 @@
|
|||
<plugin>
|
||||
<groupId>org.apache.tuscany.sca</groupId>
|
||||
<artifactId>tuscany-maven-ant-generator</artifactId>
|
||||
<version>1.6-SNAPSHOT</version>
|
||||
<version>2.0-SNAPSHOT</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<configuration>
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
package services;
|
||||
|
||||
import org.apache.tuscany.sca.data.collection.Collection;
|
||||
import org.osoa.sca.annotations.Remotable;
|
||||
import org.oasisopen.sca.annotation.Remotable;
|
||||
|
||||
@Remotable
|
||||
public interface Cart extends Collection<String, Item> {
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
|
||||
package services;
|
||||
|
||||
import org.osoa.sca.annotations.Remotable;
|
||||
import org.oasisopen.sca.annotation.Remotable;
|
||||
|
||||
@Remotable
|
||||
public interface Catalog {
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
|
||||
package services;
|
||||
|
||||
import org.osoa.sca.annotations.Remotable;
|
||||
import org.oasisopen.sca.annotation.Remotable;
|
||||
|
||||
@Remotable
|
||||
public interface CurrencyConverter {
|
||||
|
|
|
@ -22,9 +22,9 @@ package services;
|
|||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import org.osoa.sca.annotations.Init;
|
||||
import org.osoa.sca.annotations.Property;
|
||||
import org.osoa.sca.annotations.Reference;
|
||||
import org.oasisopen.sca.annotation.Init;
|
||||
import org.oasisopen.sca.annotation.Property;
|
||||
import org.oasisopen.sca.annotation.Reference;
|
||||
|
||||
public class FruitsCatalogImpl implements Catalog {
|
||||
|
||||
|
|
|
@ -27,8 +27,8 @@ import java.util.UUID;
|
|||
|
||||
import org.apache.tuscany.sca.data.collection.Entry;
|
||||
import org.apache.tuscany.sca.data.collection.NotFoundException;
|
||||
import org.osoa.sca.annotations.Init;
|
||||
import org.osoa.sca.annotations.Scope;
|
||||
import org.oasisopen.sca.annotation.Init;
|
||||
import org.oasisopen.sca.annotation.Scope;
|
||||
|
||||
@Scope("COMPOSITE")
|
||||
public class ShoppingCartImpl implements Cart, Total {
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
|
||||
package services;
|
||||
|
||||
import org.osoa.sca.annotations.Remotable;
|
||||
import org.oasisopen.sca.annotation.Remotable;
|
||||
|
||||
@Remotable
|
||||
public interface Total {
|
||||
|
|
|
@ -17,21 +17,21 @@
|
|||
* 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"
|
||||
<composite xmlns="http://docs.oasis-open.org/ns/opencsa/sca/200903"
|
||||
xmlns:tuscany="http://tuscany.apache.org/xmlns/sca/1.1"
|
||||
targetNamespace="http://store"
|
||||
name="store">
|
||||
|
||||
<component name="Store">
|
||||
<t:implementation.widget location="store.html"/>
|
||||
<tuscany:implementation.widget location="store.html"/>
|
||||
<reference name="catalog" target="Catalog">
|
||||
<t:binding.jsonrpc uri="http://localhost:8080/sample-store-webapp/Catalog"/>
|
||||
<tuscany:binding.jsonrpc uri="http://localhost:8080/sample-store-webapp/Catalog"/>
|
||||
</reference>
|
||||
<reference name="shoppingCart" target="ShoppingCart/Cart">
|
||||
<t:binding.atom uri="http://localhost:8080/sample-store-webapp/ShoppingCart/Cart"/>
|
||||
<tuscany:binding.atom uri="http://localhost:8080/sample-store-webapp/ShoppingCart/Cart"/>
|
||||
</reference>
|
||||
<reference name="shoppingTotal" target="ShoppingCart/Total">
|
||||
<t:binding.jsonrpc uri="http://localhost:8080/sample-store-webapp/Total"/>
|
||||
<tuscany:binding.jsonrpc uri="http://localhost:8080/sample-store-webapp/Total"/>
|
||||
</reference>
|
||||
</component>
|
||||
|
||||
|
@ -39,7 +39,7 @@
|
|||
<implementation.java class="services.FruitsCatalogImpl"/>
|
||||
<property name="currencyCode">USD</property>
|
||||
<service name="Catalog">
|
||||
<t:binding.jsonrpc uri="http://localhost:8080/sample-store-webapp/Catalog"/>
|
||||
<tuscany:binding.jsonrpc uri="http://localhost:8080/sample-store-webapp/Catalog"/>
|
||||
</service>
|
||||
<reference name="currencyConverter" target="CurrencyConverter"/>
|
||||
</component>
|
||||
|
@ -47,10 +47,10 @@
|
|||
<component name="ShoppingCart">
|
||||
<implementation.java class="services.ShoppingCartImpl"/>
|
||||
<service name="Cart">
|
||||
<t:binding.atom uri="http://localhost:8080/sample-store-webapp/ShoppingCart/Cart"/>
|
||||
<tuscany:binding.atom uri="http://localhost:8080/sample-store-webapp/ShoppingCart/Cart"/>
|
||||
</service>
|
||||
<service name="Total">
|
||||
<t:binding.jsonrpc uri="http://localhost:8080/sample-store-webapp/Total"/>
|
||||
<tuscany:binding.jsonrpc uri="http://localhost:8080/sample-store-webapp/Total"/>
|
||||
</service>
|
||||
</component>
|
||||
|
||||
|
|
Loading…
Reference in a new issue