public class ApplicationPreparedEvent extends SpringApplicationEvent
SpringApplication
が起動し、ApplicationContext
が完全に準備されているがリフレッシュされていない場合に発行されるイベント。Bean 定義がロードされ、Environment
がこの段階で使用できるようになります。sourceSE
コンストラクターと説明 |
---|
ApplicationPreparedEvent(SpringApplication application, StringSE[] args, ConfigurableApplicationContext context) 新しい ApplicationPreparedEvent インスタンスを作成します。 |
修飾子と型 | メソッドと説明 |
---|---|
ConfigurableApplicationContext | getApplicationContext() アプリケーションコンテキストを返します。 |
getArgs, getSpringApplication
getTimestamp
getSourceSE, toStringSE
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, waitSE, waitSE, waitSE
public ApplicationPreparedEvent(SpringApplication application, StringSE[] args, ConfigurableApplicationContext context)
ApplicationPreparedEvent
インスタンスを作成します。application
- 現在のアプリケーション args
- アプリケーションが実行されている引数 context
- リフレッシュされる ApplicationContextpublic ConfigurableApplicationContext getApplicationContext()
Copyright © 2020 Pivotal Software, Inc.. All rights reserved.