loadWhenHasConfigLocationAsFile() — spring-boot Function Reference
Architecture documentation for the loadWhenHasConfigLocationAsFile() function in ConfigDataEnvironmentPostProcessorIntegrationTests.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD 86b4313a_6d50_d2b0_69d0_45006afe7853["loadWhenHasConfigLocationAsFile()"] 3dd50c93_8725_3831_013e_a093cdbe449c["toString()"] 86b4313a_6d50_d2b0_69d0_45006afe7853 -->|calls| 3dd50c93_8725_3831_013e_a093cdbe449c 52ec1543_b170_4920_be7a_3986dd16a384["matchingPropertySource()"] 86b4313a_6d50_d2b0_69d0_45006afe7853 -->|calls| 52ec1543_b170_4920_be7a_3986dd16a384 f5ecfeee_2faa_bfff_05c7_ad8e17034d42["run()"] 86b4313a_6d50_d2b0_69d0_45006afe7853 -->|calls| f5ecfeee_2faa_bfff_05c7_ad8e17034d42 19a274bb_d9c7_a72c_7ab7_6a36d8c8fa78["of()"] 86b4313a_6d50_d2b0_69d0_45006afe7853 -->|calls| 19a274bb_d9c7_a72c_7ab7_6a36d8c8fa78 style 86b4313a_6d50_d2b0_69d0_45006afe7853 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
core/spring-boot/src/test/java/org/springframework/boot/context/config/ConfigDataEnvironmentPostProcessorIntegrationTests.java lines 698–707
@Test
void loadWhenHasConfigLocationAsFile() throws IOException {
File properties = new File(this.temp, "specificlocation.properties");
Files.write(properties.toPath(),
List.of("my.property=fromspecificlocation", "the.property=fromspecificlocation"));
String location = properties.toURI().toURL().toString();
ConfigurableApplicationContext context = this.application.run("--spring.config.location=" + location);
assertThat(context.getEnvironment())
.has(matchingPropertySource("Config resource 'file [" + properties + "]' via location '" + location + "'"));
}
Domain
Subdomains
Calls
- matchingPropertySource()
- of()
- run()
- toString()
Source
Frequently Asked Questions
What does loadWhenHasConfigLocationAsFile() do?
loadWhenHasConfigLocationAsFile() is a function in the spring-boot codebase.
What does loadWhenHasConfigLocationAsFile() call?
loadWhenHasConfigLocationAsFile() calls 4 function(s): matchingPropertySource, of, run, toString.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free