Interface TargetStateResolver
- All Known Implementing Classes:
DefaultTargetStateResolver
public interface TargetStateResolver
A strategy for calculating the target state of a transition. This facilitates dynamic transition target state
resolution that takes into account runtime contextual information.
- Author:
- Keith Donald
-
Method Summary
Modifier and TypeMethodDescriptionresolveTargetState
(Transition transition, State sourceState, RequestContext context) Resolve the target state of the transition from the source state in the current request context.
-
Method Details
-
resolveTargetState
Resolve the target state of the transition from the source state in the current request context. Should never return null.- Parameters:
transition
- the transitionsourceState
- the source state of the transition, could be nullcontext
- the current request context- Returns:
- the transition's target state - may be null if no state change should occur
-