类 ApplicationStartingEvent
- java.lang.Object
- java.util.EventObject
- org.springframework.context.ApplicationEvent
- org.springframework.boot.context.event.SpringApplicationEvent
- org.springframework.boot.context.event.ApplicationStartingEvent
- 所有已实现的接口:
Serializable
public class ApplicationStartingEvent extends SpringApplicationEvent
Event published as early as conceivably possible as soon as aSpringApplication
has been started - before theEnvironment
orApplicationContext
is available, but after theApplicationListener
s have been registered. The source of the event is theSpringApplication
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
- 另请参阅:
- 序列化表格
字段概要
从类继承的字段 java.util.EventObject
source
构造器概要
构造器 构造器 说明 ApplicationStartingEvent(SpringApplication application, String[] args)
Create a newApplicationStartingEvent
instance.
方法概要
从类继承的方法 org.springframework.boot.context.event.SpringApplicationEvent
getArgs, getSpringApplication
从类继承的方法 java.util.EventObject
getSource, toString
构造器详细资料
ApplicationStartingEvent
public ApplicationStartingEvent(SpringApplication application, String[] args)
Create a newApplicationStartingEvent
instance.- 参数:
application
- the current applicationargs
- the arguments the application is running with