singleConstructorMethodConfig() — spring-boot Function Reference
Architecture documentation for the singleConstructorMethodConfig() function in MethodBasedMetadataGenerationTests.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD 420c1992_e0bd_a329_3341_ca013c78b3ce["singleConstructorMethodConfig()"] a4041ee3_920f_3ffa_6d69_6e3bcd2c6cdc["withProperty()"] 420c1992_e0bd_a329_3341_ca013c78b3ce -->|calls| a4041ee3_920f_3ffa_6d69_6e3bcd2c6cdc a7060ba0_7028_1911_946e_7c3090117119["fromSource()"] 420c1992_e0bd_a329_3341_ca013c78b3ce -->|calls| a7060ba0_7028_1911_946e_7c3090117119 3a84f306_c04e_ed63_ecc7_7013edbb2681["withDefaultValue()"] 420c1992_e0bd_a329_3341_ca013c78b3ce -->|calls| 3a84f306_c04e_ed63_ecc7_7013edbb2681 style 420c1992_e0bd_a329_3341_ca013c78b3ce 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 92–102
@Test
void singleConstructorMethodConfig() {
ConfigurationMetadata metadata = compile(SingleConstructorMethodConfig.class);
assertThat(metadata).doesNotHave(Metadata.withProperty("foo.my-service", Object.class)
.fromSource(SingleConstructorMethodConfig.Foo.class));
assertThat(metadata)
.has(Metadata.withProperty("foo.name", String.class).fromSource(SingleConstructorMethodConfig.Foo.class));
assertThat(metadata).has(Metadata.withProperty("foo.flag", Boolean.class)
.withDefaultValue(false)
.fromSource(SingleConstructorMethodConfig.Foo.class));
}
Domain
Subdomains
Source
Frequently Asked Questions
What does singleConstructorMethodConfig() do?
singleConstructorMethodConfig() is a function in the spring-boot codebase.
What does singleConstructorMethodConfig() call?
singleConstructorMethodConfig() 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