クラス StateMachineObjectSupport<S,E>

java.lang.ObjectSE
org.springframework.statemachine.support.LifecycleObjectSupport
org.springframework.statemachine.support.StateMachineObjectSupport<S,E>
型パラメーター:
S - 状態の型
E - イベントの型
実装されたすべてのインターフェース:
org.springframework.beans.factory.Awareorg.springframework.beans.factory.BeanFactoryAwareorg.springframework.beans.factory.BeanNameAwareorg.springframework.beans.factory.DisposableBeanorg.springframework.beans.factory.InitializingBeanorg.springframework.context.Lifecycleorg.springframework.context.Phasedorg.springframework.context.SmartLifecycleStateMachineReactiveLifecycle
既知の直属サブクラス
AbstractStateMachine

public abstract class StateMachineObjectSupport<S,E> extends LifecycleObjectSupport implements org.springframework.beans.factory.BeanNameAware
ベースステートマシン実装のサポートおよびヘルパークラス。
作成者:
Janne Valkealahti
  • コンストラクターの詳細

    • StateMachineObjectSupport

      public StateMachineObjectSupport()
  • メソッドの詳細

    • doStart

      protected void doStart()
    • setBeanName

      public void setBeanName(StringSE name)
      次で指定:
      インターフェース org.springframework.beans.factory.BeanNameAwaresetBeanName 
    • getBeanName

      protected StringSE getBeanName()
      BeanNameAware との契約ごとに、コンテキストで認識されている Bean 名を返します。
      戻り値:
      Bean 名
    • getStateMachineEventPublisher

      protected StateMachineEventPublisher getStateMachineEventPublisher()
      ステートマシンイベントパブリッシャーを取得します。
      戻り値:
      ステートマシンイベントパブリッシャー
    • setStateMachineEventPublisher

      public void setStateMachineEventPublisher(StateMachineEventPublisher stateMachineEventPublisher)
      ステートマシンイベントパブリッシャーを設定します。
      パラメーター:
      stateMachineEventPublisher - 新しいステートマシンイベントパブリッシャー
    • setContextEventsEnabled

      public void setContextEventsEnabled(boolean contextEventsEnabled)
      コンテキストアプリケーションイベントが有効かどうかを設定します。イベントはデフォルトで有効になっています。ステートマシンがアプリケーションコンテキストイベントを送信しないようにするには、これを false に設定します。
      パラメーター:
      contextEventsEnabled - 有効フラグ
    • getStateListener

      protected CompositeStateMachineListener<S,E> getStateListener()
    • getStateMachineMonitor

      protected CompositeStateMachineMonitor<S,E> getStateMachineMonitor()
    • notifyStateChanged

      protected void notifyStateChanged(StateContext<S,E> stateContext)
    • notifyStateEntered

      protected void notifyStateEntered(StateContext<S,E> stateContext)
    • notifyStateExited

      protected void notifyStateExited(StateContext<S,E> stateContext)
    • notifyEventNotAccepted

      protected void notifyEventNotAccepted(StateContext<S,E> stateContext)
    • notifyTransitionStart

      protected void notifyTransitionStart(StateContext<S,E> stateContext)
    • notifyTransition

      protected void notifyTransition(StateContext<S,E> stateContext)
    • notifyTransitionEnd

      protected void notifyTransitionEnd(StateContext<S,E> stateContext)
    • notifyStateMachineStarted

      protected void notifyStateMachineStarted(StateContext<S,E> stateContext)
    • notifyStateMachineStopped

      protected void notifyStateMachineStopped(StateContext<S,E> stateContext)
    • notifyStateMachineError

      protected void notifyStateMachineError(StateContext<S,E> stateContext)
    • notifyExtendedStateChanged

      protected void notifyExtendedStateChanged(ObjectSE key, ObjectSE value, StateContext<S,E> stateContext)
    • notifyTransitionMonitor

      protected void notifyTransitionMonitor(StateMachine<S,E> stateMachine, Transition<S,E> transition, long duration)
    • notifyActionMonitor

      protected void notifyActionMonitor(StateMachine<S,E> stateMachine, FunctionSE<StateContext<S,E>,reactor.core.publisher.Mono<VoidSE>> action, long duration)
    • getStateMachineInterceptors

      protected StateMachineInterceptorList<S,E> getStateMachineInterceptors()
    • setStateMachineInterceptors

      protected void setStateMachineInterceptors(ListSE<StateMachineInterceptor<S,E>> interceptors)