org.jboss.tutorial.injection.bean
Class ShoppingCartBean

java.lang.Object
  extended by org.jboss.tutorial.injection.bean.ShoppingCartBean
All Implemented Interfaces:
java.io.Serializable, ShoppingCart

public class ShoppingCartBean
extends java.lang.Object
implements ShoppingCart, java.io.Serializable

See Also:
Serialized Form

Constructor Summary
ShoppingCartBean()
           
 
Method Summary
 void buy(java.lang.String product, int quantity)
           
 void checkout()
           
 java.util.HashMap<java.lang.String,java.lang.Integer> getCartContents()
           
 void setCalculator(Calculator c)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ShoppingCartBean

public ShoppingCartBean()
Method Detail

setCalculator

public void setCalculator(Calculator c)

buy

public void buy(java.lang.String product,
                int quantity)
Specified by:
buy in interface ShoppingCart

getCartContents

public java.util.HashMap<java.lang.String,java.lang.Integer> getCartContents()
Specified by:
getCartContents in interface ShoppingCart

checkout

public void checkout()
Specified by:
checkout in interface ShoppingCart