クラス ApplicationReadyEvent
java.lang.ObjectSE
java.util.EventObjectSE
org.springframework.context.ApplicationEvent
org.springframework.boot.context.event.SpringApplicationEvent
org.springframework.boot.context.event.ApplicationReadyEvent
- 実装されているすべてのインターフェース:
SerializableSE
アプリケーションがリクエストを処理する準備ができていることを示すために、可能な限り遅く発行されたイベント。イベントのソースは
SpringApplication 自体ですが、それまでにすべての初期化手順が完了しているため、内部状態の変更に注意してください。- 導入:
- 1.3.0
- 作成者:
- Stephane Nicoll, Chris Bono
- 関連事項:
フィールドのサマリー
クラス java.util.EventObjectSE から継承されたフィールド
sourceSEコンストラクターの概要
コンストラクターコンストラクター説明ApplicationReadyEvent(SpringApplication application, StringSE[] args, ConfigurableApplicationContext context, DurationSE timeTaken) 新しいApplicationReadyEventインスタンスを作成します。メソッドのサマリー
修飾子と型メソッド説明アプリケーションコンテキストを返します。アプリケーションがリクエストを処理する準備ができるまでにかかった時間を返します。不明な場合はnullを返します。クラス org.springframework.boot.context.event.SpringApplicationEvent から継承されたメソッド
getArgs, getSpringApplicationクラス org.springframework.context.ApplicationEvent から継承されたメソッド
getTimestampクラス java.util.EventObjectSE から継承されたメソッド
getSource, toString
コンストラクターの詳細
ApplicationReadyEvent
public ApplicationReadyEvent(SpringApplication application, StringSE[] args, ConfigurableApplicationContext context, DurationSE timeTaken) 新しいApplicationReadyEventインスタンスを作成します。- パラメーター:
application- 現在のアプリケーションargs- アプリケーションが実行されている引数context- 作成されていたコンテキストtimeTaken- アプリケーションがリクエストを処理できるようになるまでにかかる時間- 導入:
- 2.6.0
メソッドの詳細
getApplicationContext
アプリケーションコンテキストを返します。- 戻り値:
- コンテキスト
getTimeTaken
アプリケーションがリクエストを処理する準備ができるまでにかかった時間を返します。不明な場合はnullを返します。- 戻り値:
- リクエストを処理する準備ができるまでにかかる時間
- 導入:
- 2.6.0