类 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)
  • 构造器详细资料

    • 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