|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.cinecolombia.interfases.control.ejb.StateMachine
This class is a Universal front back end of an application which ties all EJB components together dynamically at runtime. It is a javaBean which works for Controller EJB. This class should not be updated to handle various event types. This class will use StateHandler objects to handle events that require processing beyond the scope of this class. A second option to event handling is to do so in the XML descriptor itself. State may be stored in the attributeMap Configuration of this file is via an XML descriptor.
Field Summary | |
private java.util.HashMap |
attributeMap
|
private Debug |
debug
|
private java.util.HashMap |
handlerMap
|
private ModelUpdateManager |
mum
|
private javax.ejb.SessionContext |
sc
|
private InterfasesControllerEJB |
sccejb
|
Constructor Summary | |
StateMachine(InterfasesControllerEJB sccejb,
javax.ejb.SessionContext sc)
constructor: instances attributes |
Method Summary | |
java.lang.Object |
getAttribute(java.lang.String key)
get value of user session attribute |
private java.lang.String |
getHandlerName(java.lang.String eventName)
get in context the name of handler class for the event |
InterfasesControllerEJB |
getInterfasesControllerEJB()
get reference to controller ejb |
javax.ejb.SessionContext |
getSessionContext()
get SessionContext |
java.util.Collection |
handleEvent(InterfasesEvent ese)
process event corresponding to user request, through associated handler |
void |
setAttribute(java.lang.String key,
java.lang.Object value)
register an attribute of the user session |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private InterfasesControllerEJB sccejb
private ModelUpdateManager mum
private java.util.HashMap attributeMap
private java.util.HashMap handlerMap
private javax.ejb.SessionContext sc
private Debug debug
Constructor Detail |
public StateMachine(InterfasesControllerEJB sccejb, javax.ejb.SessionContext sc)
sccejb
- controller ejbsc
- contextMethod Detail |
public java.util.Collection handleEvent(InterfasesEvent ese) throws java.rmi.RemoteException, InterfasesEventException
ese
- event corresponding to user request
InterfasesEventException
java.rmi.RemoteException
- Description of the Exceptionprivate java.lang.String getHandlerName(java.lang.String eventName) throws InterfasesEventException
eventName
- name of event corresponding to user request
InterfasesEventException
public void setAttribute(java.lang.String key, java.lang.Object value)
key
- The new attribute keyvalue
- The new attribute valuepublic java.lang.Object getAttribute(java.lang.String key)
key
- attribute key
public InterfasesControllerEJB getInterfasesControllerEJB()
public javax.ejb.SessionContext getSessionContext()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |