com.instantbank.servicing.control.web
Class ServicingControllerProxy
java.lang.Object
|
+--com.instantbank.servicing.control.web.ServicingControllerProxy
- All Implemented Interfaces:
- java.io.Serializable
- public class ServicingControllerProxy
- 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 ServicingControllerEJB object.
All the methods that access the EJB are synchronized so that
concurrent requests do not happen to the stateful session bean.
- Author:
- Instant-bank (Consuelo Franky)
- See Also:
ServicingController
,
ServicingControllerEJB
,
ServicingEvent
, Serialized Form
Method Summary |
java.util.Collection |
handleEvent(ServicingEvent 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, registerNatives, toString, wait, wait, wait |
sccEjb
private ServicingController sccEjb
session
private javax.servlet.http.HttpSession session
debug
private Debug debug
ServicingControllerProxy
public ServicingControllerProxy()
- Constructor
ServicingControllerProxy
public ServicingControllerProxy(javax.servlet.http.HttpSession session)
- constructor for an HTTP client.
- Parameters:
session
- web session
handleEvent
public java.util.Collection handleEvent(ServicingEvent ese)
throws ServicingEventException
- 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:
ServicingEventException
-
remove
public void remove()
- frees up all the resources associated with this controller and destroys
itself.