01: /*
02: * JFox - The most lightweight Java EE Application Server!
03: * more details please visit http://www.huihoo.org/jfox or http://www.jfox.org.cn.
04: *
05: * JFox is licenced and re-distributable under GNU LGPL.
06: */
07: package jfox.test.ejb3.synchronization;
08:
09: import java.util.Map;
10: import javax.ejb.Remove;
11:
12: /**
13: * @author <a href="mailto:jfox.young@gmail.com">Young Yang</a>
14: */
15: public interface ShoppingCart {
16:
17: void buy(String product, int quantity);
18:
19: Map<String, Integer> getCartContents();
20:
21: @Remove
22: void checkout();
23: }
|