com.evelopers.unimod.runtime.context
Class StateMachineContextImpl

java.lang.Object
  extended bycom.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

Nested Class Summary
static class StateMachineContextImpl.ContextImpl
           
 
Nested classes inherited from class com.evelopers.unimod.runtime.context.StateMachineContext
StateMachineContext.Context
 
Constructor Summary
StateMachineContextImpl(StateMachineContext.Context app, StateMachineContext.Context user, StateMachineContext.Context event)
           
 
Method Summary
static StateMachineContext create()
           
 StateMachineContext.Context getApplicationContext()
          Must return application context
 StateMachineContext.Context getEventContext()
          Must return event context
 StateMachineContext.Context getUserContext()
          Must return user context
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StateMachineContextImpl

public StateMachineContextImpl(StateMachineContext.Context app,
                               StateMachineContext.Context user,
                               StateMachineContext.Context event)
Method Detail

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