testPropertySourcesPlaceholderConfigurerShouldSupportRebindableConfigurationProperties() — spring-boot Function Reference
Architecture documentation for the testPropertySourcesPlaceholderConfigurerShouldSupportRebindableConfigurationProperties() function in ConfigurationPropertiesTests.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD 2f87d28d_ad71_cea6_ef96_5f2cebc53469["testPropertySourcesPlaceholderConfigurerShouldSupportRebindableConfigurationProperties()"] 3fc8bbb8_5163_e039_d4b5_b4d1549a637c["loadWhenHasPropertySourcesPlaceholderConfigurerShouldSupportRebindableConfigurationPropertiesRegisteredAsBean()"] 3fc8bbb8_5163_e039_d4b5_b4d1549a637c -->|calls| 2f87d28d_ad71_cea6_ef96_5f2cebc53469 cc547c6d_7520_e292_9934_12a811fc6b25["loadWhenHasPropertySourcesPlaceholderConfigurerShouldSupportRebindableConfigurationPropertiesRegisteredUsingRegistrar()"] cc547c6d_7520_e292_9934_12a811fc6b25 -->|calls| 2f87d28d_ad71_cea6_ef96_5f2cebc53469 7a4a5428_a780_c72f_503a_9ef35293b395["refresh()"] 2f87d28d_ad71_cea6_ef96_5f2cebc53469 -->|calls| 7a4a5428_a780_c72f_503a_9ef35293b395 0df7b061_011e_9168_7210_507cd83a1019["getOne()"] 2f87d28d_ad71_cea6_ef96_5f2cebc53469 -->|calls| 0df7b061_011e_9168_7210_507cd83a1019 c19839ce_f714_7dfb_4b51_028045c23e05["getTwo()"] 2f87d28d_ad71_cea6_ef96_5f2cebc53469 -->|calls| c19839ce_f714_7dfb_4b51_028045c23e05 style 2f87d28d_ad71_cea6_ef96_5f2cebc53469 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
core/spring-boot/src/test/java/org/springframework/boot/context/properties/ConfigurationPropertiesTests.java lines 653–669
void testPropertySourcesPlaceholderConfigurerShouldSupportRebindableConfigurationProperties(
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.register(PropertySourcesPlaceholderConfigurer.class);
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
- loadWhenHasPropertySourcesPlaceholderConfigurerShouldSupportRebindableConfigurationPropertiesRegisteredAsBean()
- loadWhenHasPropertySourcesPlaceholderConfigurerShouldSupportRebindableConfigurationPropertiesRegisteredUsingRegistrar()
Source
Frequently Asked Questions
What does testPropertySourcesPlaceholderConfigurerShouldSupportRebindableConfigurationProperties() do?
testPropertySourcesPlaceholderConfigurerShouldSupportRebindableConfigurationProperties() is a function in the spring-boot codebase.
What does testPropertySourcesPlaceholderConfigurerShouldSupportRebindableConfigurationProperties() call?
testPropertySourcesPlaceholderConfigurerShouldSupportRebindableConfigurationProperties() calls 3 function(s): getOne, getTwo, refresh.
What calls testPropertySourcesPlaceholderConfigurerShouldSupportRebindableConfigurationProperties()?
testPropertySourcesPlaceholderConfigurerShouldSupportRebindableConfigurationProperties() is called by 2 function(s): loadWhenHasPropertySourcesPlaceholderConfigurerShouldSupportRebindableConfigurationPropertiesRegisteredAsBean, loadWhenHasPropertySourcesPlaceholderConfigurerShouldSupportRebindableConfigurationPropertiesRegisteredUsingRegistrar.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free