Package org.springframework.boot.env
Class RandomValuePropertySourceEnvironmentPostProcessor
java.lang.Object
org.springframework.boot.env.RandomValuePropertySourceEnvironmentPostProcessor
- All Implemented Interfaces:
EnvironmentPostProcessor
,Ordered
public class RandomValuePropertySourceEnvironmentPostProcessor
extends Object
implements EnvironmentPostProcessor, Ordered
EnvironmentPostProcessor
to add the RandomValuePropertySource
.- Since:
- 2.4.0
- Author:
- Phillip Webb
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
The default order of this post-processor.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
.
-
Field Details
-
ORDER
public static final int ORDERThe default order of this post-processor.- See Also:
-
-
Constructor Details
-
RandomValuePropertySourceEnvironmentPostProcessor
Create a newRandomValuePropertySourceEnvironmentPostProcessor
instance.- Parameters:
logger
- the logger to use
-
-
Method Details
-
getOrder
public int getOrder() -
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
-