public class DefaultTargetStateResolver extends java.lang.Object implements TargetStateResolver
Constructor and Description |
---|
DefaultTargetStateResolver(Expression targetStateIdExpression)
Creates a new target state resolver.
|
DefaultTargetStateResolver(java.lang.String targetStateId)
Creates a new target state resolver that always returns the same target state id.
|
Modifier and Type | Method and Description |
---|---|
State |
resolveTargetState(Transition transition,
State sourceState,
RequestContext context)
Resolve the target state of the transition from the source state in the current request context.
|
java.lang.String |
toString() |
public DefaultTargetStateResolver(java.lang.String targetStateId)
targetStateId
- a static target target statepublic DefaultTargetStateResolver(Expression targetStateIdExpression)
targetStateIdExpression
- the target state expressionpublic State resolveTargetState(Transition transition, State sourceState, RequestContext context)
TargetStateResolver
resolveTargetState
in interface TargetStateResolver
transition
- the transitionsourceState
- the source state of the transition, could be nullcontext
- the current request contextpublic java.lang.String toString()
toString
in class java.lang.Object