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
FieldsModifier and TypeFieldDescriptionstatic final intThe default order of this post-processor.Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetOrder()voidpostProcessEnvironment(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 newRandomValuePropertySourceEnvironmentPostProcessorinstance.- Parameters:
logFactory- the log factory to use- Since:
- 3.0.0
-
-
Method Details
-
getOrder
public int getOrder() -
postProcessEnvironment
public void postProcessEnvironment(ConfigurableEnvironment environment, SpringApplication application) Description copied from interface:EnvironmentPostProcessorPost-process the givenenvironment.- Specified by:
postProcessEnvironmentin interfaceEnvironmentPostProcessor- Parameters:
environment- the environment to post-processapplication- the application to which the environment belongs
-