クラス ApplicationFailedEvent
java.lang.ObjectSE
java.util.EventObjectSE
org.springframework.context.ApplicationEvent
org.springframework.boot.context.event.SpringApplicationEvent
org.springframework.boot.context.event.ApplicationFailedEvent
- 実装されたすべてのインターフェース:
SerializableSE
開始に失敗したときに
SpringApplication
によって発行されるイベント。- 導入:
- 1.0.0
- 作成者:
- Dave Syer
- 関連事項:
フィールドサマリー
クラス java.util.EventObjectSE から継承されたフィールド
sourceSE
コンストラクターのサマリー
コンストラクターコンストラクター説明ApplicationFailedEvent
(SpringApplication application, StringSE[] args, ConfigurableApplicationContext context, ThrowableSE exception) 新しいApplicationFailedEvent
インスタンスを作成します。方法の概要
修飾子と型メソッド説明アプリケーションコンテキストを返します。失敗の原因となった例外を返します。クラス org.springframework.boot.context.event.SpringApplicationEvent から継承されたメソッド
getArgs, getSpringApplication
クラス org.springframework.context.ApplicationEvent から継承されたメソッド
getTimestamp
クラス java.util.EventObjectSE から継承されたメソッド
getSource, toString
コンストラクターの詳細
ApplicationFailedEvent
public ApplicationFailedEvent(SpringApplication application, StringSE[] args, ConfigurableApplicationContext context, ThrowableSE exception) 新しいApplicationFailedEvent
インスタンスを作成します。- パラメーター:
application
- 現在のアプリケーションargs
- アプリケーションが実行されていた引数context
- 作成されていたコンテキスト (多分 null)exception
- エラーの原因となった例外
メソッドの詳細
getApplicationContext
アプリケーションコンテキストを返します。- 戻り値:
- コンテキスト
getException
失敗の原因となった例外を返します。- 戻り値:
- 例外