com.instantbank.servicing.control.web
Class ModelManager

java.lang.Object
  |
  +--com.instantbank.servicing.control.web.ModelUpdateNotifier
        |
        +--com.instantbank.servicing.control.web.ModelManager
All Implemented Interfaces:
java.io.Serializable

public class ModelManager
extends ModelUpdateNotifier
implements java.io.Serializable

This class 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.

Author:
Instant-bank (Consuelo Franky)
See Also:
Serialized Form

Field Summary
private  javax.servlet.ServletContext context
           
private  Debug debug
           
private  ServicingControllerProxy scc
           
private  ServicingController sccEjb
           
private  javax.servlet.http.HttpSession session
           
 
Fields inherited from class com.instantbank.servicing.control.web.ModelUpdateNotifier
listenerMap
 
Constructor Summary
ModelManager()
          constructor
 
Method Summary
 ServicingController getSCCEJB()
          sets to sccEjb attribute the controller ejb reference
 void init(javax.servlet.ServletContext context, javax.servlet.http.HttpSession session)
          Here it should instances all the javabeans that are view of Model.
 void setSCC(ServicingControllerProxy scc)
          sets to scc attribute the web proxy reference
 
Methods inherited from class com.instantbank.servicing.control.web.ModelUpdateNotifier
addListener, notifyListeners
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

context

private javax.servlet.ServletContext context

session

private javax.servlet.http.HttpSession session

sccEjb

private ServicingController sccEjb

scc

private ServicingControllerProxy scc

debug

private Debug debug
Constructor Detail

ModelManager

public ModelManager()
constructor
Method Detail

init

public void init(javax.servlet.ServletContext context,
                 javax.servlet.http.HttpSession session)
Here it should instances all the javabeans that are view of Model. a) only one view copy in the user web session for each EJB in the user Service Layer session b) only one view copy in the web context for each EJB shared between all users
Parameters:
context - HTTP context
session - HTTP session

setSCC

public void setSCC(ServicingControllerProxy scc)
sets to scc attribute the web proxy reference
Parameters:
scc - web proxy reference

getSCCEJB

public ServicingController getSCCEJB()
sets to sccEjb attribute the controller ejb reference
Returns:
The sCCEJB value