Class TransitionEvent
java.lang.Object
java.util.EventObject
org.springframework.context.ApplicationEvent
org.springframework.statemachine.event.StateMachineEvent
org.springframework.statemachine.event.TransitionEvent
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
OnTransitionEndEvent
,OnTransitionEvent
,OnTransitionStartEvent
Generic base event representing something with a
Transition
.- Author:
- Janne Valkealahti
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorDescriptionTransitionEvent
(Object source, Transition<?, ?> transition) Instantiates a new transition event. -
Method Summary
Methods inherited from class org.springframework.context.ApplicationEvent
getTimestamp
Methods inherited from class java.util.EventObject
getSource
-
Constructor Details
-
TransitionEvent
Instantiates a new transition event.- Parameters:
source
- the sourcetransition
- the transition
-
-
Method Details
-
getTransition
Gets the transition.- Returns:
- the transition
-
toString
- Overrides:
toString
in classStateMachineEvent
-