A B C E G I L P S T W
All Classes All Packages
All Classes All Packages
All Classes All Packages
A
- action(Action) - Method in class com.github.kabal163.statemachine.TransitionBuilderImpl
- action(Action) - Method in interface com.github.kabal163.statemachine.TransitionConfigurer
-
Defines a piece of work which must be performed in order to transit the stateful object to the target state.
- Action - Interface in com.github.kabal163.statemachine.api
-
The interface provides simple abstraction for a piece of work which should be performed to transit a stateful object to the target state according the event.
- AmbiguousTransitionException - Exception in com.github.kabal163.statemachine.exception
- AmbiguousTransitionException() - Constructor for exception com.github.kabal163.statemachine.exception.AmbiguousTransitionException
- AmbiguousTransitionException(String) - Constructor for exception com.github.kabal163.statemachine.exception.AmbiguousTransitionException
B
- buildTransitions() - Method in class com.github.kabal163.statemachine.TransitionBuilderImpl
C
- com.github.kabal163.statemachine - package com.github.kabal163.statemachine
- com.github.kabal163.statemachine.api - package com.github.kabal163.statemachine.api
- com.github.kabal163.statemachine.exception - package com.github.kabal163.statemachine.exception
- condition(Condition) - Method in class com.github.kabal163.statemachine.TransitionBuilderImpl
- condition(Condition) - Method in interface com.github.kabal163.statemachine.TransitionConfigurer
-
Defines a guard which prevents transition execution.
- Condition - Interface in com.github.kabal163.statemachine.api
-
The interface represents a guard which prevents any transition if some conditions don't match with requirements.
- configureTransitions(TransitionConfigurer) - Method in interface com.github.kabal163.statemachine.api.LifecycleConfiguration
-
Should describe the lifecycle of a stateful object.
E
- evaluate(StateContext) - Method in interface com.github.kabal163.statemachine.api.Condition
-
Defines if the current transition is allowed to be executed.
- event(String) - Method in class com.github.kabal163.statemachine.TransitionBuilderImpl
- event(String) - Method in interface com.github.kabal163.statemachine.TransitionConfigurer
-
Defines a trigger which along with the source state defines the transition which must be executed.
- execute(StateContext) - Method in interface com.github.kabal163.statemachine.api.Action
-
Performs a unit of work to execute transition from source to target.
- execute(StatefulObject, String) - Method in interface com.github.kabal163.statemachine.api.LifecycleManager
-
Executes a transition of the stateful object according the event.
- execute(StatefulObject, String) - Method in class com.github.kabal163.statemachine.LifecycleManagerImpl
- execute(StatefulObject, String, Map<String, Object>) - Method in interface com.github.kabal163.statemachine.api.LifecycleManager
-
Executes a transition of the stateful object according the event.
- execute(StatefulObject, String, Map<String, Object>) - Method in class com.github.kabal163.statemachine.LifecycleManagerImpl
G
- getEvent() - Method in class com.github.kabal163.statemachine.api.StateContext
- getId() - Method in interface com.github.kabal163.statemachine.api.StatefulObject
-
Returns the stateful object's id
- getState() - Method in interface com.github.kabal163.statemachine.api.StatefulObject
-
Returns the actual state of the stateful object
- getStatefulObject() - Method in class com.github.kabal163.statemachine.api.StateContext
- getVariable(String, Class<T>) - Method in class com.github.kabal163.statemachine.api.StateContext
I
- init() - Method in class com.github.kabal163.statemachine.LifecycleManagerImpl
L
- LifecycleConfiguration - Interface in com.github.kabal163.statemachine.api
-
The interface which must be implemented to configure a lifecycle of a stateful object.
- LifecycleManager - Interface in com.github.kabal163.statemachine.api
-
Provides lifecycle functionality for a project.
- LifecycleManagerImpl - Class in com.github.kabal163.statemachine
- LifecycleManagerImpl() - Constructor for class com.github.kabal163.statemachine.LifecycleManagerImpl
P
- putIfAbsentVariable(String, Object) - Method in class com.github.kabal163.statemachine.api.StateContext
- putVariable(String, Object) - Method in class com.github.kabal163.statemachine.api.StateContext
S
- setState(String) - Method in interface com.github.kabal163.statemachine.api.StatefulObject
-
Sets the state to the stateful object.
- sourceState(String) - Method in class com.github.kabal163.statemachine.TransitionBuilderImpl
- sourceState(String) - Method in interface com.github.kabal163.statemachine.TransitionConfigurer
-
Defines a state which must correspond to the stateful object's state at the moment of start a transition.
- StateContext - Class in com.github.kabal163.statemachine.api
-
Contains information about the transition.
- StateContext(StatefulObject, String, Map<String, Object>) - Constructor for class com.github.kabal163.statemachine.api.StateContext
- StatefulObject - Interface in com.github.kabal163.statemachine.api
-
Any entity which is needed to be managed by
LifecycleManager
lifecycle manager must implement this interface.
T
- targetState(String) - Method in class com.github.kabal163.statemachine.TransitionBuilderImpl
- targetState(String) - Method in interface com.github.kabal163.statemachine.TransitionConfigurer
-
Defines a desired state which should be on the stateful object after transition finish.
- TransitionBuilderImpl - Class in com.github.kabal163.statemachine
- TransitionBuilderImpl() - Constructor for class com.github.kabal163.statemachine.TransitionBuilderImpl
- TransitionConfigurer - Interface in com.github.kabal163.statemachine
-
Convenient component which helps to configure the lifecycle effortless.
- TransitionException - Exception in com.github.kabal163.statemachine.exception
- TransitionException() - Constructor for exception com.github.kabal163.statemachine.exception.TransitionException
- TransitionException(String) - Constructor for exception com.github.kabal163.statemachine.exception.TransitionException
- TransitionException(String, Throwable) - Constructor for exception com.github.kabal163.statemachine.exception.TransitionException
- TransitionException(String, Throwable, boolean, boolean) - Constructor for exception com.github.kabal163.statemachine.exception.TransitionException
- TransitionException(Throwable) - Constructor for exception com.github.kabal163.statemachine.exception.TransitionException
- TransitionNotFoundException - Exception in com.github.kabal163.statemachine.exception
- TransitionNotFoundException() - Constructor for exception com.github.kabal163.statemachine.exception.TransitionNotFoundException
- TransitionNotFoundException(String) - Constructor for exception com.github.kabal163.statemachine.exception.TransitionNotFoundException
- TransitionResult - Class in com.github.kabal163.statemachine.api
-
Contains the main information about executed transition.
- TransitionResult() - Constructor for class com.github.kabal163.statemachine.api.TransitionResult
W
- with() - Method in class com.github.kabal163.statemachine.TransitionBuilderImpl
- with() - Method in interface com.github.kabal163.statemachine.TransitionConfigurer
-
Used to define the new one described transition.
All Classes All Packages