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.- Author:
- Janne Valkealahti
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoideventNotAccepted(org.springframework.messaging.Message<E> event) Notified when event was not accepted.voidextendedStateChanged(Object key, Object value) Notified when extended state variable is either added, modified or removed.voidNotified when state is changed.voidstateContext(StateContext<S, E> stateContext) Notified on variousStateContext.Stages about aStateContext.voidstateEntered(State<S, E> state) Notified when state is entered.voidstateExited(State<S, E> state) Notified when state is exited.voidstateMachineError(StateMachine<S, E> stateMachine, Exception exception) Notified when statemachine enters error it can't recover from.voidstateMachineStarted(StateMachine<S, E> stateMachine) Notified when statemachine startsvoidstateMachineStopped(StateMachine<S, E> stateMachine) Notified when statemachine stopsvoidtransition(Transition<S, E> transition) Notified when transition happened.voidtransitionEnded(Transition<S, E> transition) Notified when transition ended.voidtransitionStarted(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:StateMachineListenerNotified when state is changed.- Specified by:
stateChangedin interfaceStateMachineListener<S,E> - Parameters:
from- the source stateto- the target state
-
stateEntered
Description copied from interface:StateMachineListenerNotified when state is entered.- Specified by:
stateEnteredin interfaceStateMachineListener<S,E> - Parameters:
state- the state
-
stateExited
Description copied from interface:StateMachineListenerNotified when state is exited.- Specified by:
stateExitedin interfaceStateMachineListener<S,E> - Parameters:
state- the state
-
eventNotAccepted
Description copied from interface:StateMachineListenerNotified when event was not accepted.- Specified by:
eventNotAcceptedin interfaceStateMachineListener<S,E> - Parameters:
event- the event
-
transition
Description copied from interface:StateMachineListenerNotified when transition happened.- Specified by:
transitionin interfaceStateMachineListener<S,E> - Parameters:
transition- the transition
-
transitionStarted
Description copied from interface:StateMachineListenerNotified when transition started.- Specified by:
transitionStartedin interfaceStateMachineListener<S,E> - Parameters:
transition- the transition
-
transitionEnded
Description copied from interface:StateMachineListenerNotified when transition ended.- Specified by:
transitionEndedin interfaceStateMachineListener<S,E> - Parameters:
transition- the transition
-
stateMachineStarted
Description copied from interface:StateMachineListenerNotified when statemachine starts- Specified by:
stateMachineStartedin interfaceStateMachineListener<S,E> - Parameters:
stateMachine- the statemachine
-
stateMachineStopped
Description copied from interface:StateMachineListenerNotified when statemachine stops- Specified by:
stateMachineStoppedin interfaceStateMachineListener<S,E> - Parameters:
stateMachine- the statemachine
-
stateMachineError
Description copied from interface:StateMachineListenerNotified when statemachine enters error it can't recover from.- Specified by:
stateMachineErrorin interfaceStateMachineListener<S,E> - Parameters:
stateMachine- the state machineexception- the exception
-
extendedStateChanged
Description copied from interface:StateMachineListenerNotified when extended state variable is either added, modified or removed.- Specified by:
extendedStateChangedin interfaceStateMachineListener<S,E> - Parameters:
key- the variable keyvalue- the variable value
-
stateContext
Description copied from interface:StateMachineListenerNotified on variousStateContext.Stages about aStateContext.- Specified by:
stateContextin interfaceStateMachineListener<S,E> - Parameters:
stateContext- the state context
-