com.cinecolombia.interfases.control.web
Class InterfasesControllerProxy

java.lang.Object
  |
  +--com.cinecolombia.interfases.control.web.InterfasesControllerProxy
All Implemented Interfaces:
java.io.Serializable

public class InterfasesControllerProxy
extends java.lang.Object
implements java.io.Serializable

This class is essentially just a proxy object that calls methods on the EJB tier using the InterfasesControllerEJB object. All the methods that access the EJB are synchronized so that concurrent requests do not happen to the stateful session bean.

Author:
CincoSOFT
See Also:
Serialized Form
Created:
Mayo 2003

Field Summary
private  Debug debug
           
private  ModelManager mm
           
private  InterfasesController sccEjb
           
private  javax.servlet.http.HttpSession session
           
 
Constructor Summary
InterfasesControllerProxy()
          Constructor
InterfasesControllerProxy(javax.servlet.http.HttpSession session)
          constructor for an HTTP client.
 
Method Summary
 java.util.Collection handleEvent(InterfasesEvent ese)
          feeds the specified event to the state machine of the business logic: sends the event to the controller ejb and gets a list with names of Model objects who were updated
 void remove()
          frees up all the resources associated with this controller and destroys itself.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mm

private ModelManager mm

sccEjb

private InterfasesController sccEjb

session

private javax.servlet.http.HttpSession session

debug

private Debug debug
Constructor Detail

InterfasesControllerProxy

public InterfasesControllerProxy()
Constructor


InterfasesControllerProxy

public InterfasesControllerProxy(javax.servlet.http.HttpSession session)
constructor for an HTTP client.

Parameters:
session - web session
Method Detail

handleEvent

public java.util.Collection handleEvent(InterfasesEvent ese)
                                 throws InterfasesEventException
feeds the specified event to the state machine of the business logic: sends the event to the controller ejb and gets a list with names of Model objects who were updated

Parameters:
ese - is the current event
Returns:
a list of models that got updated because of the processing of this event. In addition, the first element of the list contains the service answer (or the "" string when this answer is not required)
Throws:
InterfasesEventException

remove

public void remove()
frees up all the resources associated with this controller and destroys itself.