diff options
author | antelder <antelder@13f79535-47bb-0310-9956-ffa450edef68> | 2009-04-18 07:36:53 +0000 |
---|---|---|
committer | antelder <antelder@13f79535-47bb-0310-9956-ffa450edef68> | 2009-04-18 07:36:53 +0000 |
commit | 6c7ad7c110656f47273dc23228b41e46023492f3 (patch) | |
tree | 348f4838b71e73278bd01153e93db88e22e9c189 /branches/sca-java-1.5/tutorials/store/www-services/catalog-amazon/cart-amazon/src/main/java/shoppingstore/services/proxy/ShoppingStoreServiceImpl.java | |
parent | 5395b820e60118c68eab9c442af3c53e0e2d7f50 (diff) |
Create 1.5 branch
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@766260 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'branches/sca-java-1.5/tutorials/store/www-services/catalog-amazon/cart-amazon/src/main/java/shoppingstore/services/proxy/ShoppingStoreServiceImpl.java')
-rw-r--r-- | branches/sca-java-1.5/tutorials/store/www-services/catalog-amazon/cart-amazon/src/main/java/shoppingstore/services/proxy/ShoppingStoreServiceImpl.java | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/branches/sca-java-1.5/tutorials/store/www-services/catalog-amazon/cart-amazon/src/main/java/shoppingstore/services/proxy/ShoppingStoreServiceImpl.java b/branches/sca-java-1.5/tutorials/store/www-services/catalog-amazon/cart-amazon/src/main/java/shoppingstore/services/proxy/ShoppingStoreServiceImpl.java new file mode 100644 index 0000000000..8a73631cbb --- /dev/null +++ b/branches/sca-java-1.5/tutorials/store/www-services/catalog-amazon/cart-amazon/src/main/java/shoppingstore/services/proxy/ShoppingStoreServiceImpl.java @@ -0,0 +1,49 @@ +package shoppingstore.services.proxy; + +import org.osoa.sca.annotations.Reference; +import org.osoa.sca.annotations.Scope; + +import shoppingstore.services.cart.CartService; + +import com.amazon.webservices.awsecommerceservice._2007_05_14.CartAddResponse; +import com.amazon.webservices.awsecommerceservice._2007_05_14.CartClearResponse; +import com.amazon.webservices.awsecommerceservice._2007_05_14.CartCreateResponse; +import com.amazon.webservices.awsecommerceservice._2007_05_14.CartGetResponse; +import com.amazon.webservices.awsecommerceservice._2007_05_14.CartModifyResponse; + +@Scope("COMPOSITE") +public class ShoppingStoreServiceImpl implements ShoppingStoreService { + + private CartService cartService; + + @Reference + public void setCartService(CartService cartService) { + this.cartService = cartService; + } + + public CartAddResponse CartAdd( + com.amazon.webservices.awsecommerceservice._2007_05_14.CartAdd cartAdd) { + return cartService.CartAdd(cartAdd); + } + + public CartClearResponse CartClear( + com.amazon.webservices.awsecommerceservice._2007_05_14.CartClear cartClear) { + return cartService.CartClear(cartClear); + } + + public CartCreateResponse CartCreate( + com.amazon.webservices.awsecommerceservice._2007_05_14.CartCreate cartCreate) { + return cartService.CartCreate(cartCreate); + } + + public CartGetResponse CartGet( + com.amazon.webservices.awsecommerceservice._2007_05_14.CartGet cartGet) { + return cartService.CartGet(cartGet); + } + + public CartModifyResponse CartModify( + com.amazon.webservices.awsecommerceservice._2007_05_14.CartModify cartModify) { + return cartService.CartModify(cartModify); + } + +} |