Class OnStateChangedEvent
java.lang.Object
java.util.EventObject
org.springframework.context.ApplicationEvent
org.springframework.statemachine.event.StateMachineEvent
org.springframework.statemachine.event.OnStateChangedEvent
- All Implemented Interfaces:
Serializable
Generic event representing that state has been changed.
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorsConstructorDescriptionOnStateChangedEvent
(Object source, State<?, ?> sourceState, State<?, ?> targetState) Instantiates a new on state changed event. -
Method Summary
Methods inherited from class org.springframework.context.ApplicationEvent
getTimestamp
Methods inherited from class java.util.EventObject
getSource
-
Constructor Details
-
OnStateChangedEvent
Instantiates a new on state changed event.- Parameters:
source
- the component that published the event (nevernull
)sourceState
- the source statetargetState
- the target state
-
-
Method Details
-
getSourceState
Gets the source state for this event.- Returns:
- the source state
-
getTargetState
Gets the target state for this event.- Returns:
- the target state
-
toString
- Overrides:
toString
in classStateMachineEvent
-