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

nonRootConfigurationPropertiesSources() — spring-boot Function Reference

Architecture documentation for the nonRootConfigurationPropertiesSources() function in ConfigurationMetadataAnnotationProcessorTests.java from the spring-boot codebase.

Entity Profile

Dependency Diagram

graph TD
  549ceb61_a444_a399_ba98_2a796c0284ad["nonRootConfigurationPropertiesSources()"]
  4e7738f0_ea94_abd8_5384_e7be1344cace["compile()"]
  549ceb61_a444_a399_ba98_2a796c0284ad -->|calls| 4e7738f0_ea94_abd8_5384_e7be1344cace
  6ba5298a_2b3e_c1e1_cfd1_cd60996092eb["withTestClasses()"]
  549ceb61_a444_a399_ba98_2a796c0284ad -->|calls| 6ba5298a_2b3e_c1e1_cfd1_cd60996092eb
  6db1d912_8683_85db_65be_1a11eb09f91e["getMetadata()"]
  549ceb61_a444_a399_ba98_2a796c0284ad -->|calls| 6db1d912_8683_85db_65be_1a11eb09f91e
  a1ee3ca0_f457_04de_111e_70671aafebc4["getSourceMetadataLocation()"]
  549ceb61_a444_a399_ba98_2a796c0284ad -->|calls| a1ee3ca0_f457_04de_111e_70671aafebc4
  a4041ee3_920f_3ffa_6d69_6e3bcd2c6cdc["withProperty()"]
  549ceb61_a444_a399_ba98_2a796c0284ad -->|calls| a4041ee3_920f_3ffa_6d69_6e3bcd2c6cdc
  70751124_3e92_ed3e_7f93_61d2e98490d3["ofType()"]
  549ceb61_a444_a399_ba98_2a796c0284ad -->|calls| 70751124_3e92_ed3e_7f93_61d2e98490d3
  facc73e3_5f28_4513_9b1f_79367931e644["withDescription()"]
  549ceb61_a444_a399_ba98_2a796c0284ad -->|calls| facc73e3_5f28_4513_9b1f_79367931e644
  c8c9e7f6_e856_4711_6fe7_b1c2aeb3d239["getItems()"]
  549ceb61_a444_a399_ba98_2a796c0284ad -->|calls| c8c9e7f6_e856_4711_6fe7_b1c2aeb3d239
  399daca2_1f8d_232a_1284_06a42c68c302["getHints()"]
  549ceb61_a444_a399_ba98_2a796c0284ad -->|calls| 399daca2_1f8d_232a_1284_06a42c68c302
  3a84f306_c04e_ed63_ecc7_7013edbb2681["withDefaultValue()"]
  549ceb61_a444_a399_ba98_2a796c0284ad -->|calls| 3a84f306_c04e_ed63_ecc7_7013edbb2681
  style 549ceb61_a444_a399_ba98_2a796c0284ad fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

configuration-metadata/spring-boot-configuration-processor/src/test/java/org/springframework/boot/configurationprocessor/ConfigurationMetadataAnnotationProcessorTests.java lines 959–984

		@Test
		void nonRootConfigurationPropertiesSources() {
			compile(withTestClasses(ConfigurationPropertySourcesContainer.class), (compiled) -> {
				assertThat(CompiledMetadataReader.getMetadata(compiled,
						getSourceMetadataLocation(ConfigurationPropertySourcesContainer.class)))
					.isNull();
				ConfigurationMetadata firstMetadata = CompiledMetadataReader.getMetadata(compiled,
						getSourceMetadataLocation(First.class));
				assertThat(firstMetadata).isNotNull()
					.has(Metadata.withProperty("name").ofType(String.class).withDescription("A name."));
				assertThat(firstMetadata.getItems()).hasSize(1);
				assertThat(firstMetadata.getHints()).isEmpty();
				ConfigurationMetadata secondMetadata = CompiledMetadataReader.getMetadata(compiled,
						getSourceMetadataLocation(Second.class));
				assertThat(secondMetadata).isNotNull()
					.has(Metadata.withProperty("visible")
						.ofType(Boolean.class)
						.withDefaultValue(true)
						.withDescription("Whether this is visible."));
				assertThat(secondMetadata.getItems()).hasSize(1);
				assertThat(secondMetadata.getHints()).isEmpty();
				assertThat(CompiledMetadataReader.getMetadata(compiled, getSourceMetadataLocation(Third.class)))
					.isNull();

			});
		}

Domain

Subdomains

Frequently Asked Questions

What does nonRootConfigurationPropertiesSources() do?
nonRootConfigurationPropertiesSources() is a function in the spring-boot codebase.
What does nonRootConfigurationPropertiesSources() call?
nonRootConfigurationPropertiesSources() calls 10 function(s): compile, getHints, getItems, getMetadata, getSourceMetadataLocation, ofType, withDefaultValue, withDescription, and 2 more.

Analyze Your Own Codebase

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

Try Supermodel Free