类 ApplicationContextInitializedEvent
java.lang.Object
java.util.EventObject
org.springframework.context.ApplicationEvent
org.springframework.boot.context.event.SpringApplicationEvent
org.springframework.boot.context.event.ApplicationContextInitializedEvent
- 所有已实现的接口:
Serializable
Event published when a
SpringApplication
is starting up and the
ApplicationContext
is prepared and ApplicationContextInitializers have been
called but before any bean definitions are loaded.- 从以下版本开始:
- 2.1.0
- 作者:
- Artsiom Yudovin
- 另请参阅:
-
字段概要
从类继承的字段 java.util.EventObject
source
-
构造器概要
构造器构造器说明ApplicationContextInitializedEvent
(SpringApplication application, String[] args, ConfigurableApplicationContext context) Create a newApplicationContextInitializedEvent
instance. -
方法概要
从类继承的方法 org.springframework.boot.context.event.SpringApplicationEvent
getArgs, getSpringApplication
从类继承的方法 org.springframework.context.ApplicationEvent
getTimestamp
从类继承的方法 java.util.EventObject
getSource, toString
-
构造器详细资料
-
ApplicationContextInitializedEvent
public ApplicationContextInitializedEvent(SpringApplication application, String[] args, ConfigurableApplicationContext context) Create a newApplicationContextInitializedEvent
instance.- 参数:
application
- the current applicationargs
- the arguments the application is running withcontext
- the context that has been initialized
-
-
方法详细资料
-
getApplicationContext
Return the application context.- 返回:
- the context
-