Class DefaultStateMachineEventPublisher
java.lang.Object
org.springframework.statemachine.event.DefaultStateMachineEventPublisher
- All Implemented Interfaces:
- org.springframework.beans.factory.Aware,- org.springframework.context.ApplicationEventPublisherAware,- StateMachineEventPublisher
public class DefaultStateMachineEventPublisher
extends Object
implements StateMachineEventPublisher, org.springframework.context.ApplicationEventPublisherAware
Default implementation of 
StateMachineEventPublisher.- 
Constructor SummaryConstructorsConstructorDescriptionInstantiates a new state machine event publisher.DefaultStateMachineEventPublisher(org.springframework.context.ApplicationEventPublisher applicationEventPublisher) Instantiates a new state machine event publisher.
- 
Method SummaryModifier and TypeMethodDescriptionvoidpublishEventNotAccepted(Object source, org.springframework.messaging.Message<?> event) Publish event not accepted event.voidpublishExtendedStateChanged(Object source, Object key, Object value) Publish extended state changed.voidpublishStateChanged(Object source, State<?, ?> sourceState, State<?, ?> targetState) Publish a state changed event.voidpublishStateEntered(Object source, State<?, ?> state) Publish a state entered event.voidpublishStateExited(Object source, State<?, ?> state) Publish a state exited event.voidpublishStateMachineError(Object source, StateMachine<?, ?> stateMachine, Exception exception) Publish a state machine error.voidpublishStateMachineStart(Object source, StateMachine<?, ?> stateMachine) Publish a statemachine start event.voidpublishStateMachineStop(Object source, StateMachine<?, ?> stateMachine) Publish a statemachine stop event.voidpublishTransition(Object source, Transition<?, ?> transition) Publish a transition event.voidpublishTransitionEnd(Object source, Transition<?, ?> transition) Publish a transition end event.voidpublishTransitionStart(Object source, Transition<?, ?> transition) Publish a transition start event.voidsetApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher applicationEventPublisher) 
- 
Constructor Details- 
DefaultStateMachineEventPublisherpublic DefaultStateMachineEventPublisher()Instantiates a new state machine event publisher.
- 
DefaultStateMachineEventPublisherpublic DefaultStateMachineEventPublisher(org.springframework.context.ApplicationEventPublisher applicationEventPublisher) Instantiates a new state machine event publisher.- Parameters:
- applicationEventPublisher- the application event publisher
 
 
- 
- 
Method Details- 
setApplicationEventPublisherpublic void setApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher applicationEventPublisher) - Specified by:
- setApplicationEventPublisherin interface- org.springframework.context.ApplicationEventPublisherAware
 
- 
publishStateChangedDescription copied from interface:StateMachineEventPublisherPublish a state changed event.- Specified by:
- publishStateChangedin interface- StateMachineEventPublisher
- Parameters:
- source- the component generated this event
- sourceState- the source state
- targetState- the target state
 
- 
publishStateEnteredDescription copied from interface:StateMachineEventPublisherPublish a state entered event.- Specified by:
- publishStateEnteredin interface- StateMachineEventPublisher
- Parameters:
- source- the source
- state- the state
 
- 
publishStateExitedDescription copied from interface:StateMachineEventPublisherPublish a state exited event.- Specified by:
- publishStateExitedin interface- StateMachineEventPublisher
- Parameters:
- source- the source
- state- the state
 
- 
publishEventNotAcceptedDescription copied from interface:StateMachineEventPublisherPublish event not accepted event.- Specified by:
- publishEventNotAcceptedin interface- StateMachineEventPublisher
- Parameters:
- source- the source
- event- the event
 
- 
publishTransitionStartDescription copied from interface:StateMachineEventPublisherPublish a transition start event.- Specified by:
- publishTransitionStartin interface- StateMachineEventPublisher
- Parameters:
- source- the source
- transition- the transition
 
- 
publishTransitionEndDescription copied from interface:StateMachineEventPublisherPublish a transition end event.- Specified by:
- publishTransitionEndin interface- StateMachineEventPublisher
- Parameters:
- source- the source
- transition- the transition
 
- 
publishTransitionDescription copied from interface:StateMachineEventPublisherPublish a transition event.- Specified by:
- publishTransitionin interface- StateMachineEventPublisher
- Parameters:
- source- the source
- transition- the transition
 
- 
publishStateMachineStartDescription copied from interface:StateMachineEventPublisherPublish a statemachine start event.- Specified by:
- publishStateMachineStartin interface- StateMachineEventPublisher
- Parameters:
- source- the source
- stateMachine- the statemachine
 
- 
publishStateMachineStopDescription copied from interface:StateMachineEventPublisherPublish a statemachine stop event.- Specified by:
- publishStateMachineStopin interface- StateMachineEventPublisher
- Parameters:
- source- the source
- stateMachine- the statemachine
 
- 
publishStateMachineErrorpublic void publishStateMachineError(Object source, StateMachine<?, ?> stateMachine, Exception exception) Description copied from interface:StateMachineEventPublisherPublish a state machine error.- Specified by:
- publishStateMachineErrorin interface- StateMachineEventPublisher
- Parameters:
- source- the source
- stateMachine- the state machine
- exception- the exception
 
- 
publishExtendedStateChangedDescription copied from interface:StateMachineEventPublisherPublish extended state changed.- Specified by:
- publishExtendedStateChangedin interface- StateMachineEventPublisher
- Parameters:
- source- the source
- key- the key
- value- the value
 
 
-