bindCreatesImportedContributor() — spring-boot Function Reference
Architecture documentation for the bindCreatesImportedContributor() function in ConfigDataEnvironmentContributorTests.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD 0e551aeb_dcb4_f128_7cc3_815a096c5f5c["bindCreatesImportedContributor()"] d42a2b1e_13eb_6793_637c_9ed7b7139a08["TestResource()"] 0e551aeb_dcb4_f128_7cc3_815a096c5f5c -->|calls| d42a2b1e_13eb_6793_637c_9ed7b7139a08 882915e3_c8e7_394f_7651_c0ab8564a66b["createBoundContributor()"] 0e551aeb_dcb4_f128_7cc3_815a096c5f5c -->|calls| 882915e3_c8e7_394f_7651_c0ab8564a66b 723faf45_147b_9b0f_f957_9de88f8cbb17["isEmpty()"] 0e551aeb_dcb4_f128_7cc3_815a096c5f5c -->|calls| 723faf45_147b_9b0f_f957_9de88f8cbb17 style 0e551aeb_dcb4_f128_7cc3_815a096c5f5c fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
core/spring-boot/src/test/java/org/springframework/boot/context/config/ConfigDataEnvironmentContributorTests.java lines 339–353
@Test
void bindCreatesImportedContributor() {
TestResource resource = new TestResource("test");
MockPropertySource propertySource = new MockPropertySource();
propertySource.setProperty("spring.config.import", "test");
ConfigData configData = new ConfigData(Collections.singleton(propertySource));
ConfigDataEnvironmentContributor contributor = createBoundContributor(resource, configData, 0);
assertThat(contributor.getKind()).isEqualTo(Kind.BOUND_IMPORT);
assertThat(contributor.getResource()).isSameAs(resource);
assertThat(contributor.getImports()).containsExactly(TEST_LOCATION);
assertThat(contributor.isActive(this.activationContext)).isTrue();
assertThat(contributor.getPropertySource()).isEqualTo(propertySource);
assertThat(contributor.getConfigurationPropertySource()).isNotNull();
assertThat(contributor.getChildren(ImportPhase.BEFORE_PROFILE_ACTIVATION)).isEmpty();
}
Domain
Subdomains
Source
Frequently Asked Questions
What does bindCreatesImportedContributor() do?
bindCreatesImportedContributor() is a function in the spring-boot codebase.
What does bindCreatesImportedContributor() call?
bindCreatesImportedContributor() calls 3 function(s): TestResource, createBoundContributor, isEmpty.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free