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

methodAndClassConfig() — spring-boot Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  a1bd04af_1321_808f_6757_5c057a993197["methodAndClassConfig()"]
  a4041ee3_920f_3ffa_6d69_6e3bcd2c6cdc["withProperty()"]
  a1bd04af_1321_808f_6757_5c057a993197 -->|calls| a4041ee3_920f_3ffa_6d69_6e3bcd2c6cdc
  a7060ba0_7028_1911_946e_7c3090117119["fromSource()"]
  a1bd04af_1321_808f_6757_5c057a993197 -->|calls| a7060ba0_7028_1911_946e_7c3090117119
  3a84f306_c04e_ed63_ecc7_7013edbb2681["withDefaultValue()"]
  a1bd04af_1321_808f_6757_5c057a993197 -->|calls| 3a84f306_c04e_ed63_ecc7_7013edbb2681
  style a1bd04af_1321_808f_6757_5c057a993197 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 80–90

	@Test
	void methodAndClassConfig() {
		ConfigurationMetadata metadata = compile(MethodAndClassConfig.class);
		assertThat(metadata)
			.has(Metadata.withProperty("conflict.name", String.class).fromSource(MethodAndClassConfig.Foo.class));
		assertThat(metadata).has(Metadata.withProperty("conflict.flag", Boolean.class)
			.withDefaultValue(false)
			.fromSource(MethodAndClassConfig.Foo.class));
		assertThat(metadata)
			.has(Metadata.withProperty("conflict.value", String.class).fromSource(MethodAndClassConfig.class));
	}

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free