getBinderWhenHasMultipleSourcesPicksFirst() — spring-boot Function Reference
Architecture documentation for the getBinderWhenHasMultipleSourcesPicksFirst() function in ConfigDataEnvironmentContributorsTests.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD f7de11b3_7192_841c_ae30_352ea186ecfe["getBinderWhenHasMultipleSourcesPicksFirst()"] bbaa3361_4374_8f1b_b1b8_7754bae606f4["createBoundImportContributor()"] f7de11b3_7192_841c_ae30_352ea186ecfe -->|calls| bbaa3361_4374_8f1b_b1b8_7754bae606f4 5f0c1c36_012f_880d_d499_3a02c8f8dab2["getBinder()"] f7de11b3_7192_841c_ae30_352ea186ecfe -->|calls| 5f0c1c36_012f_880d_d499_3a02c8f8dab2 8297d150_846a_4cc4_47ca_e6d5a70497f3["bind()"] f7de11b3_7192_841c_ae30_352ea186ecfe -->|calls| 8297d150_846a_4cc4_47ca_e6d5a70497f3 87f0b21f_3955_8dcc_cc55_9c6321893f96["get()"] f7de11b3_7192_841c_ae30_352ea186ecfe -->|calls| 87f0b21f_3955_8dcc_cc55_9c6321893f96 style f7de11b3_7192_841c_ae30_352ea186ecfe fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
core/spring-boot/src/test/java/org/springframework/boot/context/config/ConfigDataEnvironmentContributorsTests.java lines 297–311
@Test
void getBinderWhenHasMultipleSourcesPicksFirst() {
MockPropertySource firstPropertySource = new MockPropertySource();
firstPropertySource.setProperty("test", "one");
MockPropertySource secondPropertySource = new MockPropertySource();
secondPropertySource.setProperty("test", "two");
ConfigData configData = new ConfigData(Arrays.asList(firstPropertySource, secondPropertySource));
ConfigDataEnvironmentContributor firstContributor = createBoundImportContributor(configData, 0);
ConfigDataEnvironmentContributor secondContributor = createBoundImportContributor(configData, 1);
ConfigDataEnvironmentContributors contributors = new ConfigDataEnvironmentContributors(this.logFactory,
this.bootstrapContext, Arrays.asList(firstContributor, secondContributor), this.conversionService,
ConfigDataEnvironmentUpdateListener.NONE);
Binder binder = contributors.getBinder(this.activationContext);
assertThat(binder.bind("test", String.class).get()).isEqualTo("one");
}
Domain
Subdomains
Source
Frequently Asked Questions
What does getBinderWhenHasMultipleSourcesPicksFirst() do?
getBinderWhenHasMultipleSourcesPicksFirst() is a function in the spring-boot codebase.
What does getBinderWhenHasMultipleSourcesPicksFirst() call?
getBinderWhenHasMultipleSourcesPicksFirst() calls 4 function(s): bind, createBoundImportContributor, get, getBinder.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free