com.bankframe.fe.statemachine.base.apps
Class AutoViewController
java.lang.Object
com.bankframe.fe.statemachine.base.apps.AutoViewController
- All Implemented Interfaces:
- IController
- public class AutoViewController
- extends java.lang.Object
- implements IController
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AutoViewController
public AutoViewController()
- Constructor for AutoViewController.
doSideEffects
public void doSideEffects(RequestContext requestContext,
IStateTransition transition)
throws StateMachineUserException
- Description copied from interface:
IController
- This method is called by the statemachine after it has determined that the transition to the new state can be made without any errors.
It is called before the view for the result state is built.
It gives you an opportunity to interact with the model before the transition is completed.
Note that this does not stop you sending messages to the model in the getResult method.
- Specified by:
doSideEffects
in interface IController
- Parameters:
requestContext
- the user request context.
- Throws:
StateMachineUserException
- can be thrown if an application exception occurs.- See Also:
IController.doSideEffects(RequestContext, IStateTransition)
getResult
public IStateTransition getResult(RequestContext requestContext,
IEvent event)
throws StateMachineUserException
- This method looks for a request parameter 'selectedTransition'.
If a transition exists from the given event whose name equals the value
of that parameter, that transition is returned.
Otherwise, some random transition is returned.
- 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.- See Also:
IController.getResult(RequestContext, IEvent)
setControllerProperties
public void setControllerProperties(java.util.Properties newControllerProperties)
- Specified by:
setControllerProperties
in interface IController
Copyright © 2005, 2007, Oracle. All rights reserved.