Class CompositeStateMachineListener<S,E>
java.lang.Object
org.springframework.statemachine.listener.AbstractCompositeListener<StateMachineListener<S,E>>
org.springframework.statemachine.listener.CompositeStateMachineListener<S,E>
- Type Parameters:
S
- the type of stateE
- the type of event
- All Implemented Interfaces:
StateMachineListener<S,
E>
public class CompositeStateMachineListener<S,E>
extends AbstractCompositeListener<StateMachineListener<S,E>>
implements StateMachineListener<S,E>
Default
StateMachineListener
dispatcher.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
eventNotAccepted
(org.springframework.messaging.Message<E> event) Notified when event was not accepted.void
extendedStateChanged
(Object key, Object value) Notified when extended state variable is either added, modified or removed.void
Notified when state is changed.void
stateContext
(StateContext<S, E> stateContext) Notified on variousStateContext.Stage
s about aStateContext
.void
stateEntered
(State<S, E> state) Notified when state is entered.void
stateExited
(State<S, E> state) Notified when state is exited.void
stateMachineError
(StateMachine<S, E> stateMachine, Exception exception) Notified when statemachine enters error it can't recover from.void
stateMachineStarted
(StateMachine<S, E> stateMachine) Notified when statemachine startsvoid
stateMachineStopped
(StateMachine<S, E> stateMachine) Notified when statemachine stopsvoid
transition
(Transition<S, E> transition) Notified when transition happened.void
transitionEnded
(Transition<S, E> transition) Notified when transition ended.void
transitionStarted
(Transition<S, E> transition) Notified when transition started.Methods inherited from class org.springframework.statemachine.listener.AbstractCompositeListener
getListeners, register, setListeners, unregister
-
Constructor Details
-
CompositeStateMachineListener
public CompositeStateMachineListener()
-
-
Method Details
-
stateChanged
Description copied from interface:StateMachineListener
Notified when state is changed.- Specified by:
stateChanged
in interfaceStateMachineListener<S,
E> - Parameters:
from
- the source stateto
- the target state
-
stateEntered
Description copied from interface:StateMachineListener
Notified when state is entered.- Specified by:
stateEntered
in interfaceStateMachineListener<S,
E> - Parameters:
state
- the state
-
stateExited
Description copied from interface:StateMachineListener
Notified when state is exited.- Specified by:
stateExited
in interfaceStateMachineListener<S,
E> - Parameters:
state
- the state
-
eventNotAccepted
Description copied from interface:StateMachineListener
Notified when event was not accepted.- Specified by:
eventNotAccepted
in interfaceStateMachineListener<S,
E> - Parameters:
event
- the event
-
transition
Description copied from interface:StateMachineListener
Notified when transition happened.- Specified by:
transition
in interfaceStateMachineListener<S,
E> - Parameters:
transition
- the transition
-
transitionStarted
Description copied from interface:StateMachineListener
Notified when transition started.- Specified by:
transitionStarted
in interfaceStateMachineListener<S,
E> - Parameters:
transition
- the transition
-
transitionEnded
Description copied from interface:StateMachineListener
Notified when transition ended.- Specified by:
transitionEnded
in interfaceStateMachineListener<S,
E> - Parameters:
transition
- the transition
-
stateMachineStarted
Description copied from interface:StateMachineListener
Notified when statemachine starts- Specified by:
stateMachineStarted
in interfaceStateMachineListener<S,
E> - Parameters:
stateMachine
- the statemachine
-
stateMachineStopped
Description copied from interface:StateMachineListener
Notified when statemachine stops- Specified by:
stateMachineStopped
in interfaceStateMachineListener<S,
E> - Parameters:
stateMachine
- the statemachine
-
stateMachineError
Description copied from interface:StateMachineListener
Notified when statemachine enters error it can't recover from.- Specified by:
stateMachineError
in interfaceStateMachineListener<S,
E> - Parameters:
stateMachine
- the state machineexception
- the exception
-
extendedStateChanged
Description copied from interface:StateMachineListener
Notified when extended state variable is either added, modified or removed.- Specified by:
extendedStateChanged
in interfaceStateMachineListener<S,
E> - Parameters:
key
- the variable keyvalue
- the variable value
-
stateContext
Description copied from interface:StateMachineListener
Notified on variousStateContext.Stage
s about aStateContext
.- Specified by:
stateContext
in interfaceStateMachineListener<S,
E> - Parameters:
stateContext
- the state context
-