类 StandaloneProfileApplicationListener
java.lang.Object
com.alibaba.nacos.core.code.StandaloneProfileApplicationListener
- 所有已实现的接口:
EventListener,org.springframework.context.ApplicationListener<org.springframework.boot.context.event.ApplicationEnvironmentPreparedEvent>,org.springframework.core.Ordered,org.springframework.core.PriorityOrdered
public class StandaloneProfileApplicationListener
extends Object
implements org.springframework.context.ApplicationListener<org.springframework.boot.context.event.ApplicationEnvironmentPreparedEvent>, org.springframework.core.PriorityOrdered
Standalone
Profile ApplicationListener for ApplicationEnvironmentPreparedEvent.- 从以下版本开始:
- 0.2.2
- 作者:
- Mercy
- 另请参阅:
ConfigurableEnvironment.addActiveProfile(String)
-
字段概要
从接口继承的字段 org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明intgetOrder()voidonApplicationEvent(org.springframework.boot.context.event.ApplicationEnvironmentPreparedEvent event)
-
构造器详细资料
-
StandaloneProfileApplicationListener
public StandaloneProfileApplicationListener()
-
-
方法详细资料
-
onApplicationEvent
public void onApplicationEvent(org.springframework.boot.context.event.ApplicationEnvironmentPreparedEvent event)- 指定者:
onApplicationEvent在接口中org.springframework.context.ApplicationListener<org.springframework.boot.context.event.ApplicationEnvironmentPreparedEvent>
-
getOrder
public int getOrder()- 指定者:
getOrder在接口中org.springframework.core.Ordered
-