类 ApplicationStartedEvent
- java.lang.Object
- java.util.EventObject
- org.springframework.context.ApplicationEvent
- org.springframework.boot.context.event.SpringApplicationEvent
- org.springframework.boot.context.event.ApplicationStartingEvent
- org.springframework.boot.context.event.ApplicationStartedEvent
- 所有已实现的接口:
Serializable
@Deprecated public class ApplicationStartedEvent extends ApplicationStartingEvent
已过时。as of 1.5 in favor ofApplicationStartingEvent
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.- 另请参阅:
- 序列化表格
字段概要
从类继承的字段 java.util.EventObject
source
构造器概要
构造器 构造器 说明 ApplicationStartedEvent(SpringApplication application, String[] args)
已过时。Create a newApplicationStartedEvent
instance.
方法概要
从类继承的方法 org.springframework.boot.context.event.SpringApplicationEvent
getArgs, getSpringApplication
从类继承的方法 java.util.EventObject
getSource, toString
构造器详细资料
ApplicationStartedEvent
public ApplicationStartedEvent(SpringApplication application, String[] args)
已过时。Create a newApplicationStartedEvent
instance.- 参数:
application
- the current applicationargs
- the arguments the application is running with