diff options
Diffstat (limited to 'sandbox/sca-cloud-tutorial/store-appengine-webapp/src/services/ShoppingCartImpl.java')
-rw-r--r-- | sandbox/sca-cloud-tutorial/store-appengine-webapp/src/services/ShoppingCartImpl.java | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/sandbox/sca-cloud-tutorial/store-appengine-webapp/src/services/ShoppingCartImpl.java b/sandbox/sca-cloud-tutorial/store-appengine-webapp/src/services/ShoppingCartImpl.java index d06ee5b61b..cfa9dd7435 100644 --- a/sandbox/sca-cloud-tutorial/store-appengine-webapp/src/services/ShoppingCartImpl.java +++ b/sandbox/sca-cloud-tutorial/store-appengine-webapp/src/services/ShoppingCartImpl.java @@ -27,18 +27,12 @@ import java.util.UUID; import org.apache.tuscany.sca.data.collection.Entry; import org.apache.tuscany.sca.data.collection.NotFoundException; -import org.oasisopen.sca.annotation.Init; import org.oasisopen.sca.annotation.Scope; @Scope("COMPOSITE") -public class ShoppingCartImpl implements Cart, Total { +public class ShoppingCartImpl implements ShoppingCart { - private Map<String, Item> cart; - - @Init - public void init() { - cart = new HashMap<String, Item>(); - } + private Map<String, Item> cart = new HashMap<String, Item>(); public Entry<String, Item>[] getAll() { Entry<String, Item>[] entries = new Entry[cart.size()]; |