クラス StateMachineObjectSupport<S,E>
java.lang.ObjectSE
org.springframework.statemachine.support.LifecycleObjectSupport
org.springframework.statemachine.support.StateMachineObjectSupport<S,E>
- 型パラメーター:
S
- 状態の型E
- イベントの型
- 実装されたすべてのインターフェース:
org.springframework.beans.factory.Aware
、org.springframework.beans.factory.BeanFactoryAware
、org.springframework.beans.factory.BeanNameAware
、org.springframework.beans.factory.DisposableBean
、org.springframework.beans.factory.InitializingBean
、org.springframework.context.Lifecycle
、org.springframework.context.Phased
、org.springframework.context.SmartLifecycle
、StateMachineReactiveLifecycle
- 既知の直属サブクラス
AbstractStateMachine
public abstract class StateMachineObjectSupport<S,E>
extends LifecycleObjectSupport
implements org.springframework.beans.factory.BeanNameAware
ベースステートマシン実装のサポートおよびヘルパークラス。
- 作成者:
- Janne Valkealahti
ネストされたクラスのサマリー
ネストされたクラス修飾子と型クラス説明protected class
このクラスは、独自のリスナーコンテキストとして機能するサブマシンからリスナーイベントを中継するために使用されます。フィールドのサマリー
インターフェース org.springframework.context.SmartLifecycle から継承されたフィールド
DEFAULT_PHASE
コンストラクターの概要
コンストラクターメソッドのサマリー
修飾子と型メソッド説明protected void
doStart()
protected StringSE
BeanNameAware
との契約ごとに、コンテキストで認識されている Bean 名を返します。protected CompositeStateMachineListener<S,
E> protected StateMachineEventPublisher
ステートマシンイベントパブリッシャーを取得します。protected StateMachineInterceptorList<S,
E> protected CompositeStateMachineMonitor<S,
E> protected void
notifyActionMonitor
(StateMachine<S, E> stateMachine, FunctionSE<StateContext<S, E>, reactor.core.publisher.Mono<VoidSE>> action, long duration) protected void
notifyEventNotAccepted
(StateContext<S, E> stateContext) protected void
notifyExtendedStateChanged
(ObjectSE key, ObjectSE value, StateContext<S, E> stateContext) protected void
notifyStateChanged
(StateContext<S, E> stateContext) protected void
notifyStateEntered
(StateContext<S, E> stateContext) protected void
notifyStateExited
(StateContext<S, E> stateContext) protected void
notifyStateMachineError
(StateContext<S, E> stateContext) protected void
notifyStateMachineStarted
(StateContext<S, E> stateContext) protected void
notifyStateMachineStopped
(StateContext<S, E> stateContext) protected void
notifyTransition
(StateContext<S, E> stateContext) protected void
notifyTransitionEnd
(StateContext<S, E> stateContext) protected void
notifyTransitionMonitor
(StateMachine<S, E> stateMachine, Transition<S, E> transition, long duration) protected void
notifyTransitionStart
(StateContext<S, E> stateContext) void
setBeanName
(StringSE name) void
setContextEventsEnabled
(boolean contextEventsEnabled) コンテキストアプリケーションイベントが有効かどうかを設定します。void
setStateMachineEventPublisher
(StateMachineEventPublisher stateMachineEventPublisher) ステートマシンイベントパブリッシャーを設定します。protected void
setStateMachineInterceptors
(ListSE<StateMachineInterceptor<S, E>> interceptors) クラス org.springframework.statemachine.support.LifecycleObjectSupport から継承されたメソッド
afterPropertiesSet, destroy, doDestroy, doPostStartReactively, doPostStopReactively, doPreStartReactively, doPreStopReactively, getBeanFactory, getPhase, isAutoStartup, isRunning, onInit, setAutoStartup, setBeanFactory, setPhase, start, startReactively, stop, stopReactively
クラス java.lang.ObjectSE から継承されたメソッド
clone, equalsSE, finalize, getClass, hashCode, notify, notifyAll, toString, wait, waitSE, waitSE
インターフェース org.springframework.context.SmartLifecycle から継承されたメソッド
stop
コンストラクターの詳細
StateMachineObjectSupport
public StateMachineObjectSupport()
メソッドの詳細
doStart
protected void doStart()setBeanName
- 次で指定:
- インターフェース
org.springframework.beans.factory.BeanNameAware
のsetBeanName
getBeanName
BeanNameAware
との契約ごとに、コンテキストで認識されている Bean 名を返します。- 戻り値:
- Bean 名
getStateMachineEventPublisher
ステートマシンイベントパブリッシャーを取得します。- 戻り値:
- ステートマシンイベントパブリッシャー
setStateMachineEventPublisher
ステートマシンイベントパブリッシャーを設定します。- パラメーター:
stateMachineEventPublisher
- 新しいステートマシンイベントパブリッシャー
setContextEventsEnabled
public void setContextEventsEnabled(boolean contextEventsEnabled) コンテキストアプリケーションイベントが有効かどうかを設定します。イベントはデフォルトで有効になっています。ステートマシンがアプリケーションコンテキストイベントを送信しないようにするには、これを false に設定します。- パラメーター:
contextEventsEnabled
- 有効フラグ
getStateListener
getStateMachineMonitor
notifyStateChanged
notifyStateEntered
notifyStateExited
notifyEventNotAccepted
notifyTransitionStart
notifyTransition
notifyTransitionEnd
notifyStateMachineStarted
notifyStateMachineStopped
notifyStateMachineError
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
setStateMachineInterceptors