com.cinecolombia.interfases.control.web
Class ModelManager

java.lang.Object
  |
  +--com.cinecolombia.interfases.control.web.ModelUpdateNotifier
        |
        +--com.cinecolombia.interfases.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:
CincoSOFT
See Also:
Serialized Form
Created:
Mayo 2003

Field Summary
private  javax.servlet.ServletContext context
           
private  Debug debug
           
private  InterfasesControllerProxy scc
           
private  InterfasesController sccEjb
           
private  javax.servlet.http.HttpSession session
           
 
Fields inherited from class com.cinecolombia.interfases.control.web.ModelUpdateNotifier
 
Constructor Summary
ModelManager()
          constructor
 
Method Summary
 InterfasesController 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(InterfasesControllerProxy scc)
          sets to scc attribute the web proxy reference
 
Methods inherited from class com.cinecolombia.interfases.control.web.ModelUpdateNotifier
addListener, notifyListeners
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

context

private javax.servlet.ServletContext context

session

private javax.servlet.http.HttpSession session

sccEjb

private InterfasesController sccEjb

scc

private InterfasesControllerProxy 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(InterfasesControllerProxy scc)
sets to scc attribute the web proxy reference

Parameters:
scc - web proxy reference

getSCCEJB

public InterfasesController getSCCEJB()
sets to sccEjb attribute the controller ejb reference

Returns:
The sCCEJB value