Class PropertySourceProcessor
java.lang.Object
org.springframework.core.io.support.PropertySourceProcessor
Contribute
property sources to the Environment.
This class is stateful and merges descriptors with the same name in a
single PropertySource rather than creating dedicated ones.
- Since:
- 6.0
- Author:
- Stephane Nicoll, Sam Brannen, Juergen Hoeller
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionPropertySourceProcessor(ConfigurableEnvironment environment, ResourceLoader resourceLoader) -
Method Summary
Modifier and TypeMethodDescriptionvoidprocessPropertySource(PropertySourceDescriptor descriptor) Process the specifiedPropertySourceDescriptoragainst the environment managed by this instance.
-
Constructor Details
-
PropertySourceProcessor
-
-
Method Details
-
processPropertySource
Process the specifiedPropertySourceDescriptoragainst the environment managed by this instance.- Parameters:
descriptor- the descriptor to process- Throws:
IOException- if loading the properties failed
-