Package org.springframework.boot.reactor
Class DebugAgentEnvironmentPostProcessor
java.lang.Object
org.springframework.boot.reactor.DebugAgentEnvironmentPostProcessor
- All Implemented Interfaces:
EnvironmentPostProcessor
,Ordered
public class DebugAgentEnvironmentPostProcessor
extends Object
implements EnvironmentPostProcessor, 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
- Author:
- Brian Clozel
-
Field Summary
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
getOrder()
void
postProcessEnvironment
(ConfigurableEnvironment environment, SpringApplication application) Post-process the givenenvironment
.
-
Constructor Details
-
DebugAgentEnvironmentPostProcessor
public DebugAgentEnvironmentPostProcessor()
-
-
Method Details
-
postProcessEnvironment
public void postProcessEnvironment(ConfigurableEnvironment environment, SpringApplication application) Description copied from interface:EnvironmentPostProcessor
Post-process the givenenvironment
.- Specified by:
postProcessEnvironment
in interfaceEnvironmentPostProcessor
- Parameters:
environment
- the environment to post-processapplication
- the application to which the environment belongs
-
getOrder
public int getOrder()
-