com.sun.j2ee.blueprints.petstore.control.ejb
Class StateMachine

java.lang.Object
  |
  +--com.sun.j2ee.blueprints.petstore.control.ejb.StateMachine

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

This class is a Universal front back end of an application which ties all EJB components together dynamically at runtime. This class should not be updated to handle various event types. This class will use ActionHandlers 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.

See Also:
Serialized Form

Constructor Summary
StateMachine(ShoppingClientControllerEJB sccejb)
           
 
Method Summary
 java.lang.Object getAttribute(java.lang.String key)
           
 ShoppingClientControllerEJB getShoppingClientControllerEJB()
           
 java.util.Collection handleEvent(EStoreEvent ese)
           
 void setAttribute(java.lang.String key, java.lang.Object value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StateMachine

public StateMachine(ShoppingClientControllerEJB sccejb)
Method Detail

handleEvent

public java.util.Collection handleEvent(EStoreEvent ese)
                                 throws java.rmi.RemoteException,
                                        EStoreEventException

setAttribute

public void setAttribute(java.lang.String key,
                         java.lang.Object value)

getAttribute

public java.lang.Object getAttribute(java.lang.String key)

getShoppingClientControllerEJB

public ShoppingClientControllerEJB getShoppingClientControllerEJB()


Copyright © 2000 Sun Microsystems Inc. All Rights Reserved.