public class DefaultStateMachineEventPublisher extends java.lang.Object implements StateMachineEventPublisher, org.springframework.context.ApplicationEventPublisherAware
StateMachineEventPublisher
.Constructor and Description |
---|
DefaultStateMachineEventPublisher()
Instantiates a new state machine event publisher.
|
DefaultStateMachineEventPublisher(org.springframework.context.ApplicationEventPublisher applicationEventPublisher)
Instantiates a new state machine event publisher.
|
Modifier and Type | Method and Description |
---|---|
void |
publishEventNotAccepted(java.lang.Object source,
org.springframework.messaging.Message<?> event)
Publish event not accepted event.
|
void |
publishExtendedStateChanged(java.lang.Object source,
java.lang.Object key,
java.lang.Object value)
Publish extended state changed.
|
void |
publishStateChanged(java.lang.Object source,
State<?,?> sourceState,
State<?,?> targetState)
Publish a state changed event.
|
void |
publishStateEntered(java.lang.Object source,
State<?,?> state)
Publish a state entered event.
|
void |
publishStateExited(java.lang.Object source,
State<?,?> state)
Publish a state exited event.
|
void |
publishStateMachineError(java.lang.Object source,
StateMachine<?,?> stateMachine,
java.lang.Exception exception)
Publish a state machine error.
|
void |
publishStateMachineStart(java.lang.Object source,
StateMachine<?,?> stateMachine)
Publish a statemachine start event.
|
void |
publishStateMachineStop(java.lang.Object source,
StateMachine<?,?> stateMachine)
Publish a statemachine stop event.
|
void |
publishTransition(java.lang.Object source,
Transition<?,?> transition)
Publish a transition event.
|
void |
publishTransitionEnd(java.lang.Object source,
Transition<?,?> transition)
Publish a transition end event.
|
void |
publishTransitionStart(java.lang.Object source,
Transition<?,?> transition)
Publish a transition start event.
|
void |
setApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher applicationEventPublisher) |
public DefaultStateMachineEventPublisher()
public DefaultStateMachineEventPublisher(org.springframework.context.ApplicationEventPublisher applicationEventPublisher)
applicationEventPublisher
- the application event publisherpublic void setApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher applicationEventPublisher)
setApplicationEventPublisher
in interface org.springframework.context.ApplicationEventPublisherAware
public void publishStateChanged(java.lang.Object source, State<?,?> sourceState, State<?,?> targetState)
StateMachineEventPublisher
publishStateChanged
in interface StateMachineEventPublisher
source
- the component generated this eventsourceState
- the source statetargetState
- the target statepublic void publishStateEntered(java.lang.Object source, State<?,?> state)
StateMachineEventPublisher
publishStateEntered
in interface StateMachineEventPublisher
source
- the sourcestate
- the statepublic void publishStateExited(java.lang.Object source, State<?,?> state)
StateMachineEventPublisher
publishStateExited
in interface StateMachineEventPublisher
source
- the sourcestate
- the statepublic void publishEventNotAccepted(java.lang.Object source, org.springframework.messaging.Message<?> event)
StateMachineEventPublisher
publishEventNotAccepted
in interface StateMachineEventPublisher
source
- the sourceevent
- the eventpublic void publishTransitionStart(java.lang.Object source, Transition<?,?> transition)
StateMachineEventPublisher
publishTransitionStart
in interface StateMachineEventPublisher
source
- the sourcetransition
- the transitionpublic void publishTransitionEnd(java.lang.Object source, Transition<?,?> transition)
StateMachineEventPublisher
publishTransitionEnd
in interface StateMachineEventPublisher
source
- the sourcetransition
- the transitionpublic void publishTransition(java.lang.Object source, Transition<?,?> transition)
StateMachineEventPublisher
publishTransition
in interface StateMachineEventPublisher
source
- the sourcetransition
- the transitionpublic void publishStateMachineStart(java.lang.Object source, StateMachine<?,?> stateMachine)
StateMachineEventPublisher
publishStateMachineStart
in interface StateMachineEventPublisher
source
- the sourcestateMachine
- the statemachinepublic void publishStateMachineStop(java.lang.Object source, StateMachine<?,?> stateMachine)
StateMachineEventPublisher
publishStateMachineStop
in interface StateMachineEventPublisher
source
- the sourcestateMachine
- the statemachinepublic void publishStateMachineError(java.lang.Object source, StateMachine<?,?> stateMachine, java.lang.Exception exception)
StateMachineEventPublisher
publishStateMachineError
in interface StateMachineEventPublisher
source
- the sourcestateMachine
- the state machineexception
- the exceptionpublic void publishExtendedStateChanged(java.lang.Object source, java.lang.Object key, java.lang.Object value)
StateMachineEventPublisher
publishExtendedStateChanged
in interface StateMachineEventPublisher
source
- the sourcekey
- the keyvalue
- the value