org.springframework.boot.reactor

Class DebugAgentEnvironmentPostProcessor

  • java.lang.Object
    • org.springframework.boot.reactor.DebugAgentEnvironmentPostProcessor
  • All Implemented Interfaces:
    EnvironmentPostProcessor, org.springframework.core.Ordered


    public class DebugAgentEnvironmentPostProcessor
    extends java.lang.Object
    implements EnvironmentPostProcessor, org.springframework.core.Ordered
    EnvironmentPostProcessor to enable the Reactor Debug Agent if available.

    The debug agent is enabled by default, unless the "spring.reactor.debug-agent.enabled" configuration property is set to false. We are using here an EnvironmentPostProcessor instead of an auto-configuration class to enable the agent as soon as possible during the startup process.

    Since:
    2.2.0
    • Field Summary

      • Fields inherited from interface org.springframework.core.Ordered

        HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      int getOrder() 
      void postProcessEnvironment(org.springframework.core.env.ConfigurableEnvironment environment, SpringApplication application)
      Post-process the given environment.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DebugAgentEnvironmentPostProcessor

        public DebugAgentEnvironmentPostProcessor()
    • Method Detail

      • postProcessEnvironment

        public void postProcessEnvironment(org.springframework.core.env.ConfigurableEnvironment environment,
                                           SpringApplication application)
        Description copied from interface: EnvironmentPostProcessor
        Post-process the given environment.
        Specified by:
        postProcessEnvironment in interface EnvironmentPostProcessor
        Parameters:
        environment - the environment to post-process
        application - the application to which the environment belongs
      • getOrder

        public int getOrder()
        Specified by:
        getOrder in interface org.springframework.core.Ordered