类 ApplicationStartingEvent
java.lang.Object
java.util.EventObject
org.springframework.context.ApplicationEvent
org.springframework.boot.context.event.SpringApplicationEvent
org.springframework.boot.context.event.ApplicationStartingEvent
- 所有已实现的接口:
Serializable
Event published as early as conceivably possible as soon as a
SpringApplication
has been started - before the Environment
or ApplicationContext
is
available, but after the ApplicationListener
s have been registered. The source
of the event is the SpringApplication
itself, but beware of using its internal
state too much at this early stage since it might be modified later in the lifecycle.- 从以下版本开始:
- 1.5.0
- 作者:
- Phillip Webb, Madhura Bhave
- 另请参阅:
-
字段概要
从类继承的字段 java.util.EventObject
source
-
构造器概要
构造器构造器说明ApplicationStartingEvent
(ConfigurableBootstrapContext bootstrapContext, SpringApplication application, String[] args) Create a newApplicationStartingEvent
instance. -
方法概要
从类继承的方法 org.springframework.boot.context.event.SpringApplicationEvent
getArgs, getSpringApplication
从类继承的方法 org.springframework.context.ApplicationEvent
getTimestamp
从类继承的方法 java.util.EventObject
getSource, toString
-
构造器详细资料
-
ApplicationStartingEvent
public ApplicationStartingEvent(ConfigurableBootstrapContext bootstrapContext, SpringApplication application, String[] args) Create a newApplicationStartingEvent
instance.- 参数:
bootstrapContext
- the bootstrap contextapplication
- the current applicationargs
- the arguments the application is running with
-
-
方法详细资料
-
getBootstrapContext
Return the bootstrap context.- 返回:
- the bootstrap context
- 从以下版本开始:
- 2.4.0
-