クラス ApplicationStartedEvent
java.lang.ObjectSE
java.util.EventObjectSE
org.springframework.context.ApplicationEvent
org.springframework.boot.context.event.SpringApplicationEvent
org.springframework.boot.context.event.ApplicationStartedEvent
- 実装されたすべてのインターフェース:
SerializableSE
アプリケーションコンテキストがリフレッシュされた後、
application
および command line
ランナーが呼び出される前に発行されたイベント。- 導入:
- 2.0.0
- 作成者:
- Andy Wilkinson
- 関連事項:
フィールドサマリー
クラス java.util.EventObjectSE から継承されたフィールド
sourceSE
コンストラクターのサマリー
コンストラクターコンストラクター説明ApplicationStartedEvent
(SpringApplication application, StringSE[] args, ConfigurableApplicationContext context, DurationSE timeTaken) 新しいApplicationStartedEvent
インスタンスを作成します。方法の概要
修飾子と型メソッド説明アプリケーションコンテキストを返します。アプリケーションの起動にかかった時間を返します。不明な場合はnull
を返します。クラス org.springframework.boot.context.event.SpringApplicationEvent から継承されたメソッド
getArgs, getSpringApplication
クラス org.springframework.context.ApplicationEvent から継承されたメソッド
getTimestamp
クラス java.util.EventObjectSE から継承されたメソッド
getSource, toString
コンストラクターの詳細
ApplicationStartedEvent
public ApplicationStartedEvent(SpringApplication application, StringSE[] args, ConfigurableApplicationContext context, DurationSE timeTaken) 新しいApplicationStartedEvent
インスタンスを作成します。- パラメーター:
application
- 現在のアプリケーションargs
- アプリケーションが実行されている引数context
- 作成されていたコンテキストtimeTaken
- アプリケーションの起動にかかる時間- 導入:
- 2.6.0
メソッドの詳細
getApplicationContext
アプリケーションコンテキストを返します。- 戻り値:
- コンテキスト
getTimeTaken
アプリケーションの起動にかかった時間を返します。不明な場合はnull
を返します。- 戻り値:
- 起動時間
- 導入:
- 2.6.0