com.evelopers.unimod.runtime.context
Class StateMachineContextImpl
java.lang.Object
com.evelopers.unimod.runtime.context.StateMachineContextImpl
- All Implemented Interfaces:
- java.io.Serializable, StateMachineContext
- public class StateMachineContextImpl
- extends java.lang.Object
- implements StateMachineContext, java.io.Serializable
Simple state machine context implementation.
Stores Application and User contexts as global contexts,
creates new Event context for every call to create()
method.
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StateMachineContextImpl
public StateMachineContextImpl(StateMachineContext.Context app,
StateMachineContext.Context user,
StateMachineContext.Context event)
create
public static StateMachineContext create()
getApplicationContext
public StateMachineContext.Context getApplicationContext()
- Description copied from interface:
StateMachineContext
- Must return application context
- Specified by:
getApplicationContext
in interface StateMachineContext
- Returns:
- application context
getUserContext
public StateMachineContext.Context getUserContext()
- Description copied from interface:
StateMachineContext
- Must return user context
- Specified by:
getUserContext
in interface StateMachineContext
- Returns:
- user context
getEventContext
public StateMachineContext.Context getEventContext()
- Description copied from interface:
StateMachineContext
- Must return event context
- Specified by:
getEventContext
in interface StateMachineContext
- Returns:
- event context