Class EnvironmentPostProcessorApplicationListener

java.lang.Object
org.springframework.boot.env.EnvironmentPostProcessorApplicationListener
All Implemented Interfaces:
EventListener, org.springframework.context.ApplicationListener<org.springframework.context.ApplicationEvent>, org.springframework.context.event.SmartApplicationListener, org.springframework.core.Ordered

public class EnvironmentPostProcessorApplicationListener extends Object implements org.springframework.context.event.SmartApplicationListener, org.springframework.core.Ordered
SmartApplicationListener used to trigger EnvironmentPostProcessors registered in the spring.factories file.
Since:
2.4.0
  • Field Details

    • DEFAULT_ORDER

      public static final int DEFAULT_ORDER
      The default order for the processor.
      See Also:
  • Constructor Details

  • Method Details

    • with

      Parameters:
      postProcessorsFactory - the environment post processor factory
      Returns:
      an EnvironmentPostProcessorApplicationListener instance
    • supportsEventType

      public boolean supportsEventType(Class<? extends org.springframework.context.ApplicationEvent> eventType)
      Specified by:
      supportsEventType in interface org.springframework.context.event.SmartApplicationListener
    • onApplicationEvent

      public void onApplicationEvent(org.springframework.context.ApplicationEvent event)
      Specified by:
      onApplicationEvent in interface org.springframework.context.ApplicationListener<org.springframework.context.ApplicationEvent>
    • getOrder

      public int getOrder()
      Specified by:
      getOrder in interface org.springframework.core.Ordered
      Specified by:
      getOrder in interface org.springframework.context.event.SmartApplicationListener
    • setOrder

      public void setOrder(int order)