Home / Function/ getBinderWhenHasInactiveIgnoresInactive() — spring-boot Function Reference

getBinderWhenHasInactiveIgnoresInactive() — spring-boot Function Reference

Architecture documentation for the getBinderWhenHasInactiveIgnoresInactive() function in ConfigDataEnvironmentContributorsTests.java from the spring-boot codebase.

Entity Profile

Dependency Diagram

graph TD
  f980bcb0_8cad_0e4f_bdca_e5bd58cac53e["getBinderWhenHasInactiveIgnoresInactive()"]
  bbaa3361_4374_8f1b_b1b8_7754bae606f4["createBoundImportContributor()"]
  f980bcb0_8cad_0e4f_bdca_e5bd58cac53e -->|calls| bbaa3361_4374_8f1b_b1b8_7754bae606f4
  5f0c1c36_012f_880d_d499_3a02c8f8dab2["getBinder()"]
  f980bcb0_8cad_0e4f_bdca_e5bd58cac53e -->|calls| 5f0c1c36_012f_880d_d499_3a02c8f8dab2
  8297d150_846a_4cc4_47ca_e6d5a70497f3["bind()"]
  f980bcb0_8cad_0e4f_bdca_e5bd58cac53e -->|calls| 8297d150_846a_4cc4_47ca_e6d5a70497f3
  87f0b21f_3955_8dcc_cc55_9c6321893f96["get()"]
  f980bcb0_8cad_0e4f_bdca_e5bd58cac53e -->|calls| 87f0b21f_3955_8dcc_cc55_9c6321893f96
  style f980bcb0_8cad_0e4f_bdca_e5bd58cac53e fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

core/spring-boot/src/test/java/org/springframework/boot/context/config/ConfigDataEnvironmentContributorsTests.java lines 313–328

	@Test
	void getBinderWhenHasInactiveIgnoresInactive() {
		MockPropertySource firstPropertySource = new MockPropertySource();
		firstPropertySource.setProperty("test", "one");
		firstPropertySource.setProperty("spring.config.activate.on-profile", "production");
		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("two");
	}

Domain

Subdomains

Frequently Asked Questions

What does getBinderWhenHasInactiveIgnoresInactive() do?
getBinderWhenHasInactiveIgnoresInactive() is a function in the spring-boot codebase.
What does getBinderWhenHasInactiveIgnoresInactive() call?
getBinderWhenHasInactiveIgnoresInactive() 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