testRebindableConfigurationProperties() — spring-boot Function Reference
Architecture documentation for the testRebindableConfigurationProperties() function in ConfigurationPropertiesTests.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD be6340bd_6938_0eab_25ca_fe02a7915219["testRebindableConfigurationProperties()"] aa48760c_8d3a_369b_d535_ef53ded4e208["loadShouldSupportRebindableConfigurationPropertiesRegisteredAsBean()"] aa48760c_8d3a_369b_d535_ef53ded4e208 -->|calls| be6340bd_6938_0eab_25ca_fe02a7915219 6fa45040_6abf_99b7_0cfa_bd61cf1becd9["loadShouldSupportRebindableConfigurationPropertiesRegisteredUsingRegistrar()"] 6fa45040_6abf_99b7_0cfa_bd61cf1becd9 -->|calls| be6340bd_6938_0eab_25ca_fe02a7915219 7a4a5428_a780_c72f_503a_9ef35293b395["refresh()"] be6340bd_6938_0eab_25ca_fe02a7915219 -->|calls| 7a4a5428_a780_c72f_503a_9ef35293b395 0df7b061_011e_9168_7210_507cd83a1019["getOne()"] be6340bd_6938_0eab_25ca_fe02a7915219 -->|calls| 0df7b061_011e_9168_7210_507cd83a1019 c19839ce_f714_7dfb_4b51_028045c23e05["getTwo()"] be6340bd_6938_0eab_25ca_fe02a7915219 -->|calls| c19839ce_f714_7dfb_4b51_028045c23e05 style be6340bd_6938_0eab_25ca_fe02a7915219 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
core/spring-boot/src/test/java/org/springframework/boot/context/properties/ConfigurationPropertiesTests.java lines 625–639
void testRebindableConfigurationProperties(Class<?> configurationClass) {
MutablePropertySources sources = this.context.getEnvironment().getPropertySources();
Map<String, Object> source = new LinkedHashMap<>();
source.put("example.one", "foo");
sources.addFirst(new MapPropertySource("test-source", source));
this.context.register(configurationClass);
this.context.refresh();
PrototypeBean first = this.context.getBean(PrototypeBean.class);
assertThat(first.getOne()).isEqualTo("foo");
source.put("example.one", "bar");
sources.addFirst(new MapPropertySource("extra", Collections.singletonMap("example.two", "baz")));
PrototypeBean second = this.context.getBean(PrototypeBean.class);
assertThat(second.getOne()).isEqualTo("bar");
assertThat(second.getTwo()).isEqualTo("baz");
}
Domain
Subdomains
Called By
- loadShouldSupportRebindableConfigurationPropertiesRegisteredAsBean()
- loadShouldSupportRebindableConfigurationPropertiesRegisteredUsingRegistrar()
Source
Frequently Asked Questions
What does testRebindableConfigurationProperties() do?
testRebindableConfigurationProperties() is a function in the spring-boot codebase.
What does testRebindableConfigurationProperties() call?
testRebindableConfigurationProperties() calls 3 function(s): getOne, getTwo, refresh.
What calls testRebindableConfigurationProperties()?
testRebindableConfigurationProperties() is called by 2 function(s): loadShouldSupportRebindableConfigurationPropertiesRegisteredAsBean, loadShouldSupportRebindableConfigurationPropertiesRegisteredUsingRegistrar.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free