com.bankframe.fe.statemachine.base.apps
Class SimpleController
java.lang.Object
com.bankframe.fe.statemachine.base.apps.SimpleController
- All Implemented Interfaces:
- IController
- public class SimpleController
- extends java.lang.Object
- implements IController
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimpleController
public SimpleController()
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 © 2004 Siebel Systems, Inc. All rights reserved.