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

ofCreatesRootContributor() — spring-boot Function Reference

Architecture documentation for the ofCreatesRootContributor() function in ConfigDataEnvironmentContributorTests.java from the spring-boot codebase.

Entity Profile

Dependency Diagram

graph TD
  dcf05228_aced_8c5f_0a22_bd25df52041f["ofCreatesRootContributor()"]
  882915e3_c8e7_394f_7651_c0ab8564a66b["createBoundContributor()"]
  dcf05228_aced_8c5f_0a22_bd25df52041f -->|calls| 882915e3_c8e7_394f_7651_c0ab8564a66b
  723faf45_147b_9b0f_f957_9de88f8cbb17["isEmpty()"]
  dcf05228_aced_8c5f_0a22_bd25df52041f -->|calls| 723faf45_147b_9b0f_f957_9de88f8cbb17
  76576a77_87f7_3680_8561_2923813db3c1["of()"]
  dcf05228_aced_8c5f_0a22_bd25df52041f -->|calls| 76576a77_87f7_3680_8561_2923813db3c1
  style dcf05228_aced_8c5f_0a22_bd25df52041f fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

core/spring-boot/src/test/java/org/springframework/boot/context/config/ConfigDataEnvironmentContributorTests.java lines 278–291

	@Test
	void ofCreatesRootContributor() {
		ConfigDataEnvironmentContributor one = createBoundContributor("one");
		ConfigDataEnvironmentContributor two = createBoundContributor("two");
		ConfigDataEnvironmentContributor contributor = ConfigDataEnvironmentContributor.of(Arrays.asList(one, two),
				this.conversionService);
		assertThat(contributor.getKind()).isEqualTo(Kind.ROOT);
		assertThat(contributor.getResource()).isNull();
		assertThat(contributor.getImports()).isEmpty();
		assertThat(contributor.isActive(this.activationContext)).isTrue();
		assertThat(contributor.getPropertySource()).isNull();
		assertThat(contributor.getConfigurationPropertySource()).isNull();
		assertThat(contributor.getChildren(ImportPhase.BEFORE_PROFILE_ACTIVATION)).containsExactly(one, two);
	}

Domain

Subdomains

Frequently Asked Questions

What does ofCreatesRootContributor() do?
ofCreatesRootContributor() is a function in the spring-boot codebase.
What does ofCreatesRootContributor() call?
ofCreatesRootContributor() calls 3 function(s): createBoundContributor, isEmpty, of.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free