|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.evelopers.unimod.runtime.config.SharedStateConfigManager
ConfigManager that ignores state machine path. So if state machine is included in different states, it saves it's state during transition between states of parent state machine.
| Constructor Summary | |
SharedStateConfigManager()
|
|
| Method Summary | |
void |
dispose(StateMachinePath path,
StateMachineContext context,
StateMachineConfig finalConfig)
Disposes config store. |
void |
init(StateMachinePath path,
StateMachineContext context,
StateMachineConfig initialConfig)
Initializes config store. |
StateMachineConfig |
load(StateMachinePath path,
StateMachineContext context)
Loads config for given path from some store. |
void |
store(StateMachinePath path,
StateMachineContext context,
StateMachineConfig config)
Stores given config against given path. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SharedStateConfigManager()
| Method Detail |
public void init(StateMachinePath path,
StateMachineContext context,
StateMachineConfig initialConfig)
StateMachineConfigManager
init in interface StateMachineConfigManagerpath - path to state machine instanceinitialConfig - initial config of the state machine
public StateMachineConfig load(StateMachinePath path,
StateMachineContext context)
StateMachineConfigManagernull. It will
lead to StateMachineConfigManager.init(com.evelopers.unimod.runtime.StateMachinePath, com.evelopers.unimod.runtime.context.StateMachineContext, com.evelopers.unimod.runtime.StateMachineConfig) method invocation.
load in interface StateMachineConfigManagerpath - path to state machine config to loadcontext - state machine context that has come with event
public void store(StateMachinePath path,
StateMachineContext context,
StateMachineConfig config)
StateMachineConfigManager
store in interface StateMachineConfigManagerpath - path to state machine config to storecontext - state machine context that has come with eventconfig - state machine config to store
public void dispose(StateMachinePath path,
StateMachineContext context,
StateMachineConfig finalConfig)
StateMachineConfigManagerAbstractEventProcessor will call this method when state machine
comes to final state.
dispose in interface StateMachineConfigManagerpath - path to state machine instancefinalConfig - current final config of the state machine
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||