Modifier and Type | Method and Description |
---|---|
State<T> |
FSM.onEvent(T stateful,
String event,
Object... parms) |
protected State<T> |
FSM.transition(T stateful,
State<T> current,
String event,
Transition<T> t,
Object... args) |
Modifier and Type | Method and Description |
---|---|
protected State<T> |
FSM.transition(T stateful,
State<T> current,
String event,
Transition<T> t,
Object... args) |
Constructor and Description |
---|
TransitionImpl(State<T> from,
State<T> to,
String event,
Action<T> action,
boolean any,
boolean reload) |
TransitionImpl(State<T> from,
State<T> to,
String event,
Action<T> action,
boolean any,
boolean reload) |
Modifier and Type | Method and Description |
---|---|
State<T> |
Persister.getCurrent(T stateful)
Returns the current state.
|
State<T> |
FSM.getCurrentState(T obj) |
State<T> |
FSM.onEvent(T stateful,
String event,
Object... args)
Process event.
|
protected State<T> |
FSM.transition(T stateful,
State<T> current,
String event,
Transition<T> transition,
Object... args) |
Modifier and Type | Method and Description |
---|---|
FSM.FSMBuilder<T> |
FSM.FSMBuilder.addState(State<T> state)
Add a specified State
|
FSM.FSMBuilder<T> |
FSM.FSMBuilder.addState(State<T> state,
boolean isStartState)
Add a specified State and state whether or not it's the Start State for the FSM.
|
FSM.FSMBuilder.StateBuilder<T> |
FSM.FSMBuilder.StateBuilder.addTransition(String event,
State<T> toState)
Add a Transition with no Action.
|
FSM.FSMBuilder.StateBuilder<T> |
FSM.FSMBuilder.StateBuilder.addTransition(String event,
State<T> toState,
Action<T> action)
Add a Transition with an Action
|
protected Transition<T> |
FSM.getTransition(String event,
State<T> current) |
void |
Persister.setCurrent(T stateful,
State<T> current,
State<T> next)
Set the current state to the next state.
|
void |
Persister.setCurrent(T stateful,
State<T> current,
State<T> next)
Set the current state to the next state.
|
protected void |
FSM.setCurrent(T stateful,
State<T> current,
State<T> next) |
protected void |
FSM.setCurrent(T stateful,
State<T> current,
State<T> next) |
void |
Persister.setStartState(State<T> startState)
Set the Start State
|
FSM.FSMBuilder.StateBuilder.TransitionBuilder<T> |
FSM.FSMBuilder.StateBuilder.TransitionBuilder.setToState(State<T> toState)
Set the "To" State to the specified State.
|
protected State<T> |
FSM.transition(T stateful,
State<T> current,
String event,
Transition<T> transition,
Object... args) |
Modifier and Type | Method and Description |
---|---|
void |
Persister.setStates(Collection<State<T>> states)
Set the Collection of States to be managed by the Persister
|
Modifier and Type | Method and Description |
---|---|
State<T> |
StateActionPair.getState() |
Modifier and Type | Method and Description |
---|---|
void |
State.addTransition(String event,
State<T> next)
Add a deterministic Transition with no Action
|
void |
State.addTransition(String event,
State<T> next,
Action<T> action)
Add a deterministic Transition with an Action
|
Modifier and Type | Class and Description |
---|---|
class |
StateImpl<T> |
Modifier and Type | Method and Description |
---|---|
State<T> |
StateActionPairImpl.getState() |
Modifier and Type | Method and Description |
---|---|
void |
StateImpl.addTransition(String event,
State<T> next) |
void |
StateImpl.addTransition(String event,
State<T> next,
Action<T> action) |
void |
StateActionPairImpl.setState(State<T> state) |
Constructor and Description |
---|
DeterministicTransitionImpl(State<T> to) |
DeterministicTransitionImpl(State<T> to,
Action<T> action) |
DeterministicTransitionImpl(State<T> from,
State<T> to,
String event) |
DeterministicTransitionImpl(State<T> from,
State<T> to,
String event) |
DeterministicTransitionImpl(State<T> from,
State<T> to,
String event,
Action<T> action) |
DeterministicTransitionImpl(State<T> from,
State<T> to,
String event,
Action<T> action) |
StateActionPairImpl(State<T> state,
Action<T> action) |
Modifier and Type | Method and Description |
---|---|
State<T> |
AbstractPersister.getCurrent(T stateful) |
protected State<T> |
AbstractPersister.getStartState() |
Modifier and Type | Method and Description |
---|---|
abstract void |
AbstractPersister.setCurrent(T stateful,
State<T> current,
State<T> next)
Set the current State.
|
abstract void |
AbstractPersister.setCurrent(T stateful,
State<T> current,
State<T> next)
Set the current State.
|
void |
AbstractPersister.setStartState(State<T> startState) |
protected void |
AbstractPersister.throwStaleState(State<T> current,
State<T> next) |
protected void |
AbstractPersister.throwStaleState(State<T> current,
State<T> next) |
Modifier and Type | Method and Description |
---|---|
void |
AbstractPersister.setStates(Collection<State<T>> states) |
Constructor and Description |
---|
AbstractPersister(List<State<T>> states,
String stateFieldName,
State<T> startState,
Class<T> clazz) |
Constructor and Description |
---|
AbstractPersister(List<State<T>> states,
String stateFieldName,
State<T> startState,
Class<T> clazz) |
Modifier and Type | Method and Description |
---|---|
protected javax.persistence.Query |
JPAPerister.buildUpdate(Object id,
T stateful,
State<T> current,
State<T> next,
Field idField,
Field stateField) |
protected javax.persistence.Query |
JPAPerister.buildUpdate(Object id,
T stateful,
State<T> current,
State<T> next,
Field idField,
Field stateField) |
void |
JPAPerister.setCurrent(T stateful,
State<T> current,
State<T> next)
Set the current State.
|
void |
JPAPerister.setCurrent(T stateful,
State<T> current,
State<T> next)
Set the current State.
|
Constructor and Description |
---|
JPAPerister(List<State<T>> states,
State<T> startState,
Class<T> clazz,
org.springframework.orm.jpa.EntityManagerFactoryInfo entityManagerFactory,
org.springframework.transaction.PlatformTransactionManager transactionManager) |
JPAPerister(List<State<T>> states,
String stateFieldName,
State<T> startState,
Class<T> clazz,
javax.persistence.EntityManager entityManager,
org.springframework.transaction.PlatformTransactionManager transactionManager) |
Constructor and Description |
---|
JPAPerister(List<State<T>> states,
State<T> startState,
Class<T> clazz,
org.springframework.orm.jpa.EntityManagerFactoryInfo entityManagerFactory,
org.springframework.transaction.PlatformTransactionManager transactionManager) |
JPAPerister(List<State<T>> states,
String stateFieldName,
State<T> startState,
Class<T> clazz,
javax.persistence.EntityManager entityManager,
org.springframework.transaction.PlatformTransactionManager transactionManager) |
Modifier and Type | Method and Description |
---|---|
State<T> |
MemoryPersisterImpl.addState(State<T> state) |
State<T> |
MemoryPersisterImpl.getCurrent(T stateful) |
State<T> |
MemoryPersisterImpl.getStartState() |
State<T> |
MemoryPersisterImpl.removeState(State<T> state) |
State<T> |
MemoryPersisterImpl.removeState(String name) |
Modifier and Type | Method and Description |
---|---|
Collection<State<T>> |
MemoryPersisterImpl.getStates() |
Modifier and Type | Method and Description |
---|---|
State<T> |
MemoryPersisterImpl.addState(State<T> state) |
State<T> |
MemoryPersisterImpl.removeState(State<T> state) |
void |
MemoryPersisterImpl.setCurrent(T stateful,
State<T> current) |
void |
MemoryPersisterImpl.setCurrent(T stateful,
State<T> current,
State<T> next) |
void |
MemoryPersisterImpl.setCurrent(T stateful,
State<T> current,
State<T> next) |
void |
MemoryPersisterImpl.setStartState(State<T> startState) |
Modifier and Type | Method and Description |
---|---|
void |
MemoryPersisterImpl.setStates(Collection<State<T>> states) |
Constructor and Description |
---|
MemoryPersisterImpl(Collection<State<T>> states,
State<T> startState) |
MemoryPersisterImpl(List<State<T>> states,
State<T> startState,
String stateFieldName) |
MemoryPersisterImpl(T stateful,
List<State<T>> states,
State<T> startState) |
MemoryPersisterImpl(T stateful,
List<State<T>> states,
State<T> startState,
String stateFieldName) |
Constructor and Description |
---|
MemoryPersisterImpl(Collection<State<T>> states,
State<T> startState) |
MemoryPersisterImpl(List<State<T>> states,
State<T> startState,
String stateFieldName) |
MemoryPersisterImpl(T stateful,
List<State<T>> states,
State<T> startState) |
MemoryPersisterImpl(T stateful,
List<State<T>> states,
State<T> startState,
String stateFieldName) |
Modifier and Type | Method and Description |
---|---|
protected org.springframework.data.mongodb.core.query.Query |
MongoPersister.buildQuery(org.statefulj.persistence.mongo.StateDocumentImpl state,
State<T> current) |
protected org.springframework.data.mongodb.core.query.Update |
MongoPersister.buildUpdate(State<T> current,
State<T> next) |
protected org.springframework.data.mongodb.core.query.Update |
MongoPersister.buildUpdate(State<T> current,
State<T> next) |
void |
MongoPersister.setCurrent(T stateful,
State<T> current,
State<T> next)
Set the current State.
|
void |
MongoPersister.setCurrent(T stateful,
State<T> current,
State<T> next)
Set the current State.
|
Constructor and Description |
---|
MongoPersister(List<State<T>> states,
State<T> startState,
Class<T> clazz,
org.springframework.data.mongodb.core.MongoTemplate mongoTemplate)
Instantiate the MongoPersister with a specified template.
|
MongoPersister(List<State<T>> states,
State<T> startState,
Class<T> clazz,
String repoId)
Instantiate the MongoPersister with the id of the MongoRepository bean for
the Managed Entity.
|
MongoPersister(List<State<T>> states,
String stateFieldName,
State<T> startState,
Class<T> clazz,
org.springframework.data.mongodb.core.MongoTemplate mongoTemplate)
Instantiate the MongoPersister with a specified template.
|
MongoPersister(List<State<T>> states,
String stateFieldName,
State<T> startState,
Class<T> clazz,
String repoId)
Instantiate the MongoPersister with the id of the MongoRepository bean for
the Managed Entity.
|
Constructor and Description |
---|
MongoPersister(List<State<T>> states,
State<T> startState,
Class<T> clazz,
org.springframework.data.mongodb.core.MongoTemplate mongoTemplate)
Instantiate the MongoPersister with a specified template.
|
MongoPersister(List<State<T>> states,
State<T> startState,
Class<T> clazz,
String repoId)
Instantiate the MongoPersister with the id of the MongoRepository bean for
the Managed Entity.
|
MongoPersister(List<State<T>> states,
String stateFieldName,
State<T> startState,
Class<T> clazz,
org.springframework.data.mongodb.core.MongoTemplate mongoTemplate)
Instantiate the MongoPersister with a specified template.
|
MongoPersister(List<State<T>> states,
String stateFieldName,
State<T> startState,
Class<T> clazz,
String repoId)
Instantiate the MongoPersister with the id of the MongoRepository bean for
the Managed Entity.
|
Copyright © 2016. All rights reserved.