Package org.springframework.boot.env
Class RandomValuePropertySourceEnvironmentPostProcessor
java.lang.Object
org.springframework.boot.env.RandomValuePropertySourceEnvironmentPostProcessor
- All Implemented Interfaces:
EnvironmentPostProcessor
,org.springframework.core.Ordered
public class RandomValuePropertySourceEnvironmentPostProcessor
extends Object
implements EnvironmentPostProcessor, org.springframework.core.Ordered
EnvironmentPostProcessor
to add the RandomValuePropertySource
.- Since:
- 2.4.0
-
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
(org.springframework.core.env.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:
logFactory
- the log factory to use- Since:
- 3.0.0
-
-
Method Details
-
getOrder
public int getOrder()- Specified by:
getOrder
in interfaceorg.springframework.core.Ordered
-
postProcessEnvironment
public void postProcessEnvironment(org.springframework.core.env.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
-