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

deprecatedMethodConfigOnClass() — spring-boot Function Reference

Architecture documentation for the deprecatedMethodConfigOnClass() function in MethodBasedMetadataGenerationTests.java from the spring-boot codebase.

Entity Profile

Dependency Diagram

graph TD
  e626a874_6ce3_dde9_8769_6697e7dc3f23["deprecatedMethodConfigOnClass()"]
  83ee5c58_5d39_6a9f_3b4b_81ba336603a7["withGroup()"]
  e626a874_6ce3_dde9_8769_6697e7dc3f23 -->|calls| 83ee5c58_5d39_6a9f_3b4b_81ba336603a7
  a7060ba0_7028_1911_946e_7c3090117119["fromSource()"]
  e626a874_6ce3_dde9_8769_6697e7dc3f23 -->|calls| a7060ba0_7028_1911_946e_7c3090117119
  a4041ee3_920f_3ffa_6d69_6e3bcd2c6cdc["withProperty()"]
  e626a874_6ce3_dde9_8769_6697e7dc3f23 -->|calls| a4041ee3_920f_3ffa_6d69_6e3bcd2c6cdc
  24e98b01_1aa8_27ae_189f_3eec90e0a528["withDeprecation()"]
  e626a874_6ce3_dde9_8769_6697e7dc3f23 -->|calls| 24e98b01_1aa8_27ae_189f_3eec90e0a528
  3a84f306_c04e_ed63_ecc7_7013edbb2681["withDefaultValue()"]
  e626a874_6ce3_dde9_8769_6697e7dc3f23 -->|calls| 3a84f306_c04e_ed63_ecc7_7013edbb2681
  style e626a874_6ce3_dde9_8769_6697e7dc3f23 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

configuration-metadata/spring-boot-configuration-processor/src/test/java/org/springframework/boot/configurationprocessor/MethodBasedMetadataGenerationTests.java lines 124–137

	@Test
	@SuppressWarnings("deprecation")
	void deprecatedMethodConfigOnClass() {
		Class<?> type = org.springframework.boot.configurationsample.method.DeprecatedClassMethodConfig.class;
		ConfigurationMetadata metadata = compile(type);
		assertThat(metadata).has(Metadata.withGroup("foo").fromSource(type));
		assertThat(metadata).has(Metadata.withProperty("foo.name", String.class)
			.fromSource(org.springframework.boot.configurationsample.method.DeprecatedClassMethodConfig.Foo.class)
			.withDeprecation());
		assertThat(metadata).has(Metadata.withProperty("foo.flag", Boolean.class)
			.withDefaultValue(false)
			.fromSource(org.springframework.boot.configurationsample.method.DeprecatedClassMethodConfig.Foo.class)
			.withDeprecation());
	}

Domain

Subdomains

Frequently Asked Questions

What does deprecatedMethodConfigOnClass() do?
deprecatedMethodConfigOnClass() is a function in the spring-boot codebase.
What does deprecatedMethodConfigOnClass() call?
deprecatedMethodConfigOnClass() calls 5 function(s): fromSource, withDefaultValue, withDeprecation, withGroup, withProperty.

Analyze Your Own Codebase

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

Try Supermodel Free