クラス LifecycleObjectSupport
java.lang.ObjectSE
org.springframework.statemachine.support.LifecycleObjectSupport
- 実装されたすべてのインターフェース:
org.springframework.beans.factory.Aware
、org.springframework.beans.factory.BeanFactoryAware
、org.springframework.beans.factory.DisposableBean
、org.springframework.beans.factory.InitializingBean
、org.springframework.context.Lifecycle
、org.springframework.context.Phased
、org.springframework.context.SmartLifecycle
、StateMachineReactiveLifecycle
- 既知の直属サブクラス
AbstractPersistStateMachineHandler
、AbstractState
、AbstractStateMachineFactory
、DistributedStateMachine
、ReactiveStateMachineExecutor
、StateMachineEnsembleObjectSupport
、StateMachineObjectSupport
、TimerTrigger
public abstract class LifecycleObjectSupport
extends ObjectSE
implements org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBean, org.springframework.context.SmartLifecycle, org.springframework.beans.factory.BeanFactoryAware, StateMachineReactiveLifecycle
Spring タスクスケジューラ、タスクエグゼキュータ、およびライフサイクル処理を必要とするオブジェクトの便利な基本クラス。
- 作成者:
- Janne Valkealahti
フィールドのサマリー
インターフェース org.springframework.context.SmartLifecycle から継承されたフィールド
DEFAULT_PHASE
コンストラクターの概要
コンストラクターメソッドのサマリー
修飾子と型メソッド説明final void
final void
destroy()
protected void
サブクラスは、破棄ロジックのためにこれを実装できます。protected reactor.core.publisher.Mono<VoidSE>
サブクラスは、開始後のロジック用にこれを実装できます。protected reactor.core.publisher.Mono<VoidSE>
サブクラスは、停止後のロジックのためにこれを実装できます。protected reactor.core.publisher.Mono<VoidSE>
サブクラスは、開始前のロジック用にこれを実装できます。protected reactor.core.publisher.Mono<VoidSE>
サブクラスは、停止前ロジックのためにこれを実装できます。protected final org.springframework.beans.factory.BeanFactory
このインスタンスのBeanFactory
を取得します。final int
getPhase()
final boolean
boolean
protected void
onInit()
サブクラスは、初期化ロジック用にこれを実装できます。void
setAutoStartup
(boolean autoStartup) 自動起動を設定します。void
setBeanFactory
(org.springframework.beans.factory.BeanFactory beanFactory) void
setPhase
(int phase) フェーズを設定します。void
start()
reactor.core.publisher.Mono<VoidSE>
コンポーネントをリアクティブに開始します。void
stop()
reactor.core.publisher.Mono<VoidSE>
コンポーネントをリアクティブに停止します。クラス java.lang.ObjectSE から継承されたメソッド
clone, equalsSE, finalize, getClass, hashCode, notify, notifyAll, toString, wait, waitSE, waitSE
インターフェース org.springframework.context.SmartLifecycle から継承されたメソッド
stop
コンストラクターの詳細
LifecycleObjectSupport
public LifecycleObjectSupport()
メソッドの詳細
afterPropertiesSet
public final void afterPropertiesSet()- 次で指定:
- インターフェース
org.springframework.beans.factory.InitializingBean
のafterPropertiesSet
destroy
- 次で指定:
- インターフェース
org.springframework.beans.factory.DisposableBean
のdestroy
- 例外:
ExceptionSE
setBeanFactory
public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) throws org.springframework.beans.BeansException - 次で指定:
- インターフェース
org.springframework.beans.factory.BeanFactoryAware
のsetBeanFactory
- 例外:
org.springframework.beans.BeansException
isAutoStartup
public final boolean isAutoStartup()- 次で指定:
- インターフェース
org.springframework.context.SmartLifecycle
のisAutoStartup
getPhase
public final int getPhase()- 次で指定:
- インターフェース
org.springframework.context.Phased
のgetPhase
- 次で指定:
- インターフェース
org.springframework.context.SmartLifecycle
のgetPhase
start
public void start()- 次で指定:
- インターフェース
org.springframework.context.Lifecycle
のstart
stop
public void stop()- 次で指定:
- インターフェース
org.springframework.context.Lifecycle
のstop
startReactively
インターフェースからコピーされた説明:StateMachineReactiveLifecycle
コンポーネントをリアクティブに開始します。- 次で指定:
- インターフェース
StateMachineReactiveLifecycle
のstartReactively
- 戻り値:
- mono で完成
stopReactively
インターフェースからコピーされた説明:StateMachineReactiveLifecycle
コンポーネントをリアクティブに停止します。- 次で指定:
- インターフェース
StateMachineReactiveLifecycle
のstopReactively
- 戻り値:
- mono で完成
isRunning
public boolean isRunning()- 次で指定:
- インターフェース
org.springframework.context.Lifecycle
のisRunning
setAutoStartup
public void setAutoStartup(boolean autoStartup) 自動起動を設定します。- パラメーター:
autoStartup
- 新しい自動起動- 関連事項:
SmartLifecycle
setPhase
public void setPhase(int phase) フェーズを設定します。- パラメーター:
phase
- 新しいフェーズ- 関連事項:
SmartLifecycle
getBeanFactory
protected final org.springframework.beans.factory.BeanFactory getBeanFactory()このインスタンスのBeanFactory
を取得します。- 戻り値:
- Bean ファクトリ。
onInit
サブクラスは、初期化ロジックのためにこれを実装できます。InitializingBean
フェーズ中に呼び出されます。- 例外:
ExceptionSE
- 例外
doDestroy
protected void doDestroy()サブクラスは、破棄ロジックのためにこれを実装できます。doPreStartReactively
サブクラスは、開始前のロジック用にこれを実装できます。- 戻り値:
- mono で完成
doPreStopReactively
サブクラスは、停止前ロジックのためにこれを実装できます。- 戻り値:
- mono で完成
doPostStartReactively
サブクラスは、開始後のロジック用にこれを実装できます。- 戻り値:
- mono で完成
doPostStopReactively
サブクラスは、停止後のロジックのためにこれを実装できます。- 戻り値:
- mono で完成