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

shouldIgnoreProperties() — spring-boot Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  3e355e3e_b853_8a42_ddbf_6dca06d87fef["shouldIgnoreProperties()"]
  4e7738f0_ea94_abd8_5384_e7be1344cace["compile()"]
  3e355e3e_b853_8a42_ddbf_6dca06d87fef -->|calls| 4e7738f0_ea94_abd8_5384_e7be1344cace
  a4041ee3_920f_3ffa_6d69_6e3bcd2c6cdc["withProperty()"]
  3e355e3e_b853_8a42_ddbf_6dca06d87fef -->|calls| a4041ee3_920f_3ffa_6d69_6e3bcd2c6cdc
  f105e48c_ad3a_c2df_782b_3ee367f4e4fa["getIgnored()"]
  3e355e3e_b853_8a42_ddbf_6dca06d87fef -->|calls| f105e48c_ad3a_c2df_782b_3ee367f4e4fa
  8c109f44_dab0_ccfc_de41_21de56a3f9bf["forProperty()"]
  3e355e3e_b853_8a42_ddbf_6dca06d87fef -->|calls| 8c109f44_dab0_ccfc_de41_21de56a3f9bf
  style 3e355e3e_b853_8a42_ddbf_6dca06d87fef 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 618–636

	@Test
	void shouldIgnoreProperties() {
		String additionalMetadata = """
				{
					"ignored": {
						"properties": [
							{
								"name": "ignored.prop3"
							}
						]
					}
				}
				""";
		ConfigurationMetadata metadata = compile(additionalMetadata, IgnoredProperties.class);
		assertThat(metadata).has(Metadata.withProperty("ignored.prop1", String.class));
		assertThat(metadata).has(Metadata.withProperty("ignored.prop2", String.class));
		assertThat(metadata).doesNotHave(Metadata.withProperty("ignored.prop3", String.class));
		assertThat(metadata.getIgnored()).containsExactly(ItemIgnore.forProperty("ignored.prop3"));
	}

Domain

Subdomains

Frequently Asked Questions

What does shouldIgnoreProperties() do?
shouldIgnoreProperties() is a function in the spring-boot codebase.
What does shouldIgnoreProperties() call?
shouldIgnoreProperties() calls 4 function(s): compile, forProperty, getIgnored, withProperty.

Analyze Your Own Codebase

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

Try Supermodel Free