recordPropertiesWithDefaultValues() — spring-boot Function Reference
Architecture documentation for the recordPropertiesWithDefaultValues() function in ConfigurationMetadataAnnotationProcessorTests.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD 75c4a13b_8df2_f908_30c8_c8a792af638f["recordPropertiesWithDefaultValues()"] 4e7738f0_ea94_abd8_5384_e7be1344cace["compile()"] 75c4a13b_8df2_f908_30c8_c8a792af638f -->|calls| 4e7738f0_ea94_abd8_5384_e7be1344cace a4041ee3_920f_3ffa_6d69_6e3bcd2c6cdc["withProperty()"] 75c4a13b_8df2_f908_30c8_c8a792af638f -->|calls| a4041ee3_920f_3ffa_6d69_6e3bcd2c6cdc 3a84f306_c04e_ed63_ecc7_7013edbb2681["withDefaultValue()"] 75c4a13b_8df2_f908_30c8_c8a792af638f -->|calls| 3a84f306_c04e_ed63_ecc7_7013edbb2681 style 75c4a13b_8df2_f908_30c8_c8a792af638f 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 536–550
@Test
void recordPropertiesWithDefaultValues() {
String source = """
@org.springframework.boot.configurationsample.TestConfigurationProperties("record.defaults")
public record ExampleRecord(
@org.springframework.boot.configurationsample.TestDefaultValue("An1s9n") String someString,
@org.springframework.boot.configurationsample.TestDefaultValue("594") Integer someInteger) {
}
""";
ConfigurationMetadata metadata = compile(source);
assertThat(metadata)
.has(Metadata.withProperty("record.defaults.some-string", String.class).withDefaultValue("An1s9n"));
assertThat(metadata)
.has(Metadata.withProperty("record.defaults.some-integer", Integer.class).withDefaultValue(594));
}
Domain
Subdomains
Source
Frequently Asked Questions
What does recordPropertiesWithDefaultValues() do?
recordPropertiesWithDefaultValues() is a function in the spring-boot codebase.
What does recordPropertiesWithDefaultValues() call?
recordPropertiesWithDefaultValues() calls 3 function(s): compile, withDefaultValue, withProperty.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free