propertySourceOrderingWhenMultipleServletSpecificPropertySources() — spring-boot Function Reference
Architecture documentation for the propertySourceOrderingWhenMultipleServletSpecificPropertySources() function in SpringApplicationJsonEnvironmentPostProcessorTests.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD df1f257f_9040_91c6_c5dd_ddb7e02f2d5e["propertySourceOrderingWhenMultipleServletSpecificPropertySources()"] 0b3b55e5_de1f_4d92_a5ea_70e279ffc8f5["getPropertySource()"] df1f257f_9040_91c6_c5dd_ddb7e02f2d5e -->|calls| 0b3b55e5_de1f_4d92_a5ea_70e279ffc8f5 50642f05_3c82_223c_7bfc_55efafc1bfba["getApplication()"] df1f257f_9040_91c6_c5dd_ddb7e02f2d5e -->|calls| 50642f05_3c82_223c_7bfc_55efafc1bfba c08472d1_0523_dcc9_5df2_017ca9268c5a["get()"] df1f257f_9040_91c6_c5dd_ddb7e02f2d5e -->|calls| c08472d1_0523_dcc9_5df2_017ca9268c5a style df1f257f_9040_91c6_c5dd_ddb7e02f2d5e fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
core/spring-boot/src/test/java/org/springframework/boot/support/SpringApplicationJsonEnvironmentPostProcessorTests.java lines 160–175
@Test
void propertySourceOrderingWhenMultipleServletSpecificPropertySources() {
MapPropertySource jndi = getPropertySource(StandardServletEnvironment.JNDI_PROPERTY_SOURCE_NAME, "jndi");
this.environment.getPropertySources().addFirst(jndi);
MapPropertySource servlet = getPropertySource(StandardServletEnvironment.SERVLET_CONTEXT_PROPERTY_SOURCE_NAME,
"servlet");
this.environment.getPropertySources().addFirst(servlet);
MapPropertySource custom = getPropertySource("custom", "custom");
this.environment.getPropertySources().addFirst(custom);
TestPropertySourceUtils.addInlinedPropertiesToEnvironment(this.environment,
"SPRING_APPLICATION_JSON={\"foo\":\"bar\"}");
this.processor.postProcessEnvironment(this.environment, getApplication());
PropertySource<?> json = this.environment.getPropertySources().get("spring.application.json");
assertThat(this.environment.getProperty("foo")).isEqualTo("custom");
assertThat(this.environment.getPropertySources()).containsSequence(custom, json, servlet, jndi);
}
Domain
Subdomains
Source
Frequently Asked Questions
What does propertySourceOrderingWhenMultipleServletSpecificPropertySources() do?
propertySourceOrderingWhenMultipleServletSpecificPropertySources() is a function in the spring-boot codebase.
What does propertySourceOrderingWhenMultipleServletSpecificPropertySources() call?
propertySourceOrderingWhenMultipleServletSpecificPropertySources() calls 3 function(s): get, getApplication, getPropertySource.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free