类 StandaloneProfileApplicationListener

  • 所有已实现的接口:
    java.util.EventListener, org.springframework.context.ApplicationListener<org.springframework.boot.context.event.ApplicationEnvironmentPreparedEvent>, org.springframework.core.Ordered, org.springframework.core.PriorityOrdered

    public class StandaloneProfileApplicationListener
    extends java.lang.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)
    • 字段概要

      字段 
      修饰符和类型 字段 说明
      private static org.slf4j.Logger LOGGER  
      • 从接口继承的字段 org.springframework.core.Ordered

        HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
    • 方法概要

      所有方法 实例方法 具体方法 
      修饰符和类型 方法 说明
      int getOrder()  
      void onApplicationEvent​(org.springframework.boot.context.event.ApplicationEnvironmentPreparedEvent event)  
      • 从类继承的方法 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 字段详细资料

      • LOGGER

        private static final org.slf4j.Logger LOGGER
    • 构造器详细资料

      • 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