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.ApplicationEventPublisherAwarepublic void publishStateChanged(java.lang.Object source,
State<?,?> sourceState,
State<?,?> targetState)
StateMachineEventPublisherpublishStateChanged in interface StateMachineEventPublishersource - the component generated this eventsourceState - the source statetargetState - the target statepublic void publishStateEntered(java.lang.Object source,
State<?,?> state)
StateMachineEventPublisherpublishStateEntered in interface StateMachineEventPublishersource - the sourcestate - the statepublic void publishStateExited(java.lang.Object source,
State<?,?> state)
StateMachineEventPublisherpublishStateExited in interface StateMachineEventPublishersource - the sourcestate - the statepublic void publishEventNotAccepted(java.lang.Object source,
org.springframework.messaging.Message<?> event)
StateMachineEventPublisherpublishEventNotAccepted in interface StateMachineEventPublishersource - the sourceevent - the eventpublic void publishTransitionStart(java.lang.Object source,
Transition<?,?> transition)
StateMachineEventPublisherpublishTransitionStart in interface StateMachineEventPublishersource - the sourcetransition - the transitionpublic void publishTransitionEnd(java.lang.Object source,
Transition<?,?> transition)
StateMachineEventPublisherpublishTransitionEnd in interface StateMachineEventPublishersource - the sourcetransition - the transitionpublic void publishTransition(java.lang.Object source,
Transition<?,?> transition)
StateMachineEventPublisherpublishTransition in interface StateMachineEventPublishersource - the sourcetransition - the transitionpublic void publishStateMachineStart(java.lang.Object source,
StateMachine<?,?> stateMachine)
StateMachineEventPublisherpublishStateMachineStart in interface StateMachineEventPublishersource - the sourcestateMachine - the statemachinepublic void publishStateMachineStop(java.lang.Object source,
StateMachine<?,?> stateMachine)
StateMachineEventPublisherpublishStateMachineStop in interface StateMachineEventPublishersource - the sourcestateMachine - the statemachinepublic void publishStateMachineError(java.lang.Object source,
StateMachine<?,?> stateMachine,
java.lang.Exception exception)
StateMachineEventPublisherpublishStateMachineError in interface StateMachineEventPublishersource - the sourcestateMachine - the state machineexception - the exceptionpublic void publishExtendedStateChanged(java.lang.Object source,
java.lang.Object key,
java.lang.Object value)
StateMachineEventPublisherpublishExtendedStateChanged in interface StateMachineEventPublishersource - the sourcekey - the keyvalue - the value