com.bankframe.fe.statemachine.base.apps
Class SimpleController

java.lang.Object
  extended bycom.bankframe.fe.statemachine.base.apps.SimpleController
All Implemented Interfaces:
IController

public class SimpleController
extends java.lang.Object
implements IController


Constructor Summary
SimpleController()
           
 
Method Summary
 void doSideEffects(RequestContext requestContext, IStateTransition transition)
          This is an empty method required by the IController interface.
 IStateTransition getResult(RequestContext requestContext, IEvent event)
          This method returns the first StateTransition available from the given Event.
 void setControllerProperties(java.util.Properties newControllerProperties)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleController

public SimpleController()
Method Detail

getResult

public IStateTransition getResult(RequestContext requestContext,
                                  IEvent event)
                           throws StateMachineUserException
This method returns the first StateTransition available from the given Event. It is assumed that there is only one StateTransition defined from the Event.

Specified by:
getResult in interface IController
Parameters:
requestContext - the user request context.
event - the event to process.
Returns:
the state transition to follow.
Throws:
StateMachineUserException - can be thrown if an application exception occurs.

doSideEffects

public void doSideEffects(RequestContext requestContext,
                          IStateTransition transition)
                   throws StateMachineUserException
This is an empty method required by the IController interface. It is assumed that no side effects are required. If you require side effects, then write a subclass of SimpleController or another implementor of IController.

Specified by:
doSideEffects in interface IController
Parameters:
requestContext - the user request context.
Throws:
StateMachineUserException - can be thrown if an application exception occurs.

setControllerProperties

public void setControllerProperties(java.util.Properties newControllerProperties)
Specified by:
setControllerProperties in interface IController


Copyright © 2005, 2007, Oracle. All rights reserved.