ECOM/ShoppingCartLocal

From air
Jump to navigation Jump to search
package ecom.ejb;

import javax.ejb.Local;
import java.util.List;

@Local
public interface ShoppingCartLocal /* extends ShoppingCart */ {
    void initialize();
    void addProduct(ProductBean product, int quantity);
    void removeProduct(ProductBean product, int quantity);

    List<ProductBean> getProducts();
    int getQuantity(ProductBean product);

    public void release();
}