クラス ApplicationPreparedEvent
java.lang.ObjectSE
java.util.EventObjectSE
org.springframework.context.ApplicationEvent
org.springframework.boot.context.event.SpringApplicationEvent
org.springframework.boot.context.event.ApplicationPreparedEvent
- 実装されているすべてのインターフェース:
SerializableSE
SpringApplication が起動し、ApplicationContext が完全に準備されているがリフレッシュされていない場合に発行されるイベント。Bean 定義がロードされ、Environment がこの段階で使用できるようになります。- 導入:
- 1.0.0
- 作成者:
- Dave Syer
- 関連事項:
フィールドのサマリー
クラス java.util.EventObjectSE から継承されたフィールド
sourceSEコンストラクターの概要
コンストラクターコンストラクター説明ApplicationPreparedEvent(SpringApplication application, StringSE[] args, ConfigurableApplicationContext context) 新しいApplicationPreparedEventインスタンスを作成します。メソッドのサマリー
クラス org.springframework.boot.context.event.SpringApplicationEvent から継承されたメソッド
getArgs, getSpringApplicationクラス org.springframework.context.ApplicationEvent から継承されたメソッド
getTimestampクラス java.util.EventObjectSE から継承されたメソッド
getSource, toString
コンストラクターの詳細
ApplicationPreparedEvent
public ApplicationPreparedEvent(SpringApplication application, StringSE[] args, ConfigurableApplicationContext context) 新しいApplicationPreparedEventインスタンスを作成します。- パラメーター:
application- 現在のアプリケーションargs- アプリケーションが実行されている引数context- リフレッシュされる ApplicationContext
メソッドの詳細
getApplicationContext
アプリケーションコンテキストを返します。- 戻り値:
- コンテキスト