クラス 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