public class SpringApplicationRunListener
extends java.lang.Object
implements org.springframework.boot.SpringApplicationRunListener, org.springframework.core.Ordered
| 限定符和类型 | 字段和说明 |
|---|---|
private org.springframework.boot.SpringApplication |
application |
private java.lang.String[] |
args |
(专用程序包) java.util.Collection<NacosApplicationListener> |
nacosApplicationListeners |
| 构造器和说明 |
|---|
SpringApplicationRunListener(org.springframework.boot.SpringApplication application,
java.lang.String[] args) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
contextLoaded(org.springframework.context.ConfigurableApplicationContext context) |
void |
contextPrepared(org.springframework.context.ConfigurableApplicationContext context) |
void |
environmentPrepared(org.springframework.boot.ConfigurableBootstrapContext bootstrapContext,
org.springframework.core.env.ConfigurableEnvironment environment) |
void |
failed(org.springframework.context.ConfigurableApplicationContext context,
java.lang.Throwable exception) |
int |
getOrder()
Before { EventPublishingRunListener}.
|
void |
running(org.springframework.context.ConfigurableApplicationContext context) |
void |
started(org.springframework.context.ConfigurableApplicationContext context) |
void |
starting(org.springframework.boot.ConfigurableBootstrapContext bootstrapContext) |
private final org.springframework.boot.SpringApplication application
private final java.lang.String[] args
java.util.Collection<NacosApplicationListener> nacosApplicationListeners
public SpringApplicationRunListener(org.springframework.boot.SpringApplication application,
java.lang.String[] args)
public void starting(org.springframework.boot.ConfigurableBootstrapContext bootstrapContext)
starting 在接口中 org.springframework.boot.SpringApplicationRunListenerpublic void environmentPrepared(org.springframework.boot.ConfigurableBootstrapContext bootstrapContext,
org.springframework.core.env.ConfigurableEnvironment environment)
environmentPrepared 在接口中 org.springframework.boot.SpringApplicationRunListenerpublic void contextPrepared(org.springframework.context.ConfigurableApplicationContext context)
contextPrepared 在接口中 org.springframework.boot.SpringApplicationRunListenerpublic void contextLoaded(org.springframework.context.ConfigurableApplicationContext context)
contextLoaded 在接口中 org.springframework.boot.SpringApplicationRunListenerpublic void started(org.springframework.context.ConfigurableApplicationContext context)
started 在接口中 org.springframework.boot.SpringApplicationRunListenerpublic void running(org.springframework.context.ConfigurableApplicationContext context)
running 在接口中 org.springframework.boot.SpringApplicationRunListenerpublic void failed(org.springframework.context.ConfigurableApplicationContext context,
java.lang.Throwable exception)
failed 在接口中 org.springframework.boot.SpringApplicationRunListenerpublic int getOrder()
getOrder 在接口中 org.springframework.core.OrderedCopyright © 2018–2022 Alibaba Group. All rights reserved.