com.sun.j2ee.blueprints.petstore.control.web
Class ModelManager

java.lang.Object
  |
  +--com.sun.j2ee.blueprints.petstore.control.web.ModelUpdateNotifier
        |
        +--com.sun.j2ee.blueprints.petstore.control.web.ModelManager

public class ModelManager
extends ModelUpdateNotifier

This interface provides a convenient set of methods for the web tier components to access all the model objects. This class also insures that only one copy of the model objects are created for web tier access by placing a reference to the model objects in the session.


Constructor Summary
ModelManager()
           
 
Method Summary
 AccountModel getAccountModel()
           
 ShoppingCartModel getCartModel()
           
 CatalogWebImpl getCatalogModel()
           
 Customer getCustomerEJB()
           
 InventoryWebImpl getInventoryModel()
           
 ProfileMgr getProfileMgrEJB()
           
 ProfileMgrModel getProfileMgrModel()
           
 ShoppingClientController getSCCEJB()
           
 ShoppingCart getShoppingCartEJB()
           
 void init(javax.servlet.ServletContext context, javax.servlet.http.HttpSession session)
           
 void setSCC(ShoppingClientControllerWebImpl scc)
           
 
Methods inherited from class com.sun.j2ee.blueprints.petstore.control.web.ModelUpdateNotifier
addListener, notifyListeners
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ModelManager

public ModelManager()
Method Detail

init

public void init(javax.servlet.ServletContext context,
                 javax.servlet.http.HttpSession session)

setSCC

public void setSCC(ShoppingClientControllerWebImpl scc)

getInventoryModel

public InventoryWebImpl getInventoryModel()

getCatalogModel

public CatalogWebImpl getCatalogModel()

getAccountModel

public AccountModel getAccountModel()

getProfileMgrModel

public ProfileMgrModel getProfileMgrModel()

getCartModel

public ShoppingCartModel getCartModel()

getSCCEJB

public ShoppingClientController getSCCEJB()

getShoppingCartEJB

public ShoppingCart getShoppingCartEJB()

getCustomerEJB

public Customer getCustomerEJB()

getProfileMgrEJB

public ProfileMgr getProfileMgrEJB()


Copyright © 2000 Sun Microsystems Inc. All Rights Reserved.