接口 NacosApplicationListener
public interface NacosApplicationListener
Nacos Application Listener, execute init process.
- 从以下版本开始:
- 1.4.1
- 作者:
- horizonzy
-
方法概要
修饰符和类型方法说明voidcontextLoaded(org.springframework.context.ConfigurableApplicationContext context)voidcontextPrepared(org.springframework.context.ConfigurableApplicationContext context)voidenvironmentPrepared(org.springframework.core.env.ConfigurableEnvironment environment)voidvoidrunning(org.springframework.context.ConfigurableApplicationContext context)voidstarted(org.springframework.context.ConfigurableApplicationContext context)voidstarting()
-
方法详细资料
-
starting
void starting() -
environmentPrepared
void environmentPrepared(org.springframework.core.env.ConfigurableEnvironment environment)- 参数:
environment- environment
-
contextPrepared
void contextPrepared(org.springframework.context.ConfigurableApplicationContext context)- 参数:
context- context
-
contextLoaded
void contextLoaded(org.springframework.context.ConfigurableApplicationContext context)- 参数:
context- context
-
started
void started(org.springframework.context.ConfigurableApplicationContext context)- 参数:
context- context
-
running
void running(org.springframework.context.ConfigurableApplicationContext context)- 参数:
context- context
-
failed
void failed(org.springframework.context.ConfigurableApplicationContext context, Throwable exception)- 参数:
context- contextexception- exception
-