Class DefaultTargetStateResolver
java.lang.Object
org.springframework.webflow.engine.support.DefaultTargetStateResolver
- All Implemented Interfaces:
TargetStateResolver
A transition target state resolver that evaluates an expression to resolve the target state. The default
implementation.
- Author:
- Keith Donald
-
Constructor Summary
ConstructorDescriptionDefaultTargetStateResolver
(String targetStateId) Creates a new target state resolver that always returns the same target state id.DefaultTargetStateResolver
(Expression targetStateIdExpression) Creates a new target state resolver. -
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.toString()
-
Constructor Details
-
DefaultTargetStateResolver
Creates a new target state resolver that always returns the same target state id.- Parameters:
targetStateId
- a static target target state
-
DefaultTargetStateResolver
Creates a new target state resolver.- Parameters:
targetStateIdExpression
- the target state expression
-
-
Method Details
-
resolveTargetState
Description copied from interface:TargetStateResolver
Resolve the target state of the transition from the source state in the current request context. Should never return null.- Specified by:
resolveTargetState
in interfaceTargetStateResolver
- 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
-
toString
-