genericTypes() — spring-boot Function Reference
Architecture documentation for the genericTypes() function in GenericsMetadataGenerationTests.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD 078d46b1_ab0e_cd5b_9a1a_6c318fb71a83["genericTypes()"] 83ee5c58_5d39_6a9f_3b4b_81ba336603a7["withGroup()"] 078d46b1_ab0e_cd5b_9a1a_6c318fb71a83 -->|calls| 83ee5c58_5d39_6a9f_3b4b_81ba336603a7 70751124_3e92_ed3e_7f93_61d2e98490d3["ofType()"] 078d46b1_ab0e_cd5b_9a1a_6c318fb71a83 -->|calls| 70751124_3e92_ed3e_7f93_61d2e98490d3 a4041ee3_920f_3ffa_6d69_6e3bcd2c6cdc["withProperty()"] 078d46b1_ab0e_cd5b_9a1a_6c318fb71a83 -->|calls| a4041ee3_920f_3ffa_6d69_6e3bcd2c6cdc a7060ba0_7028_1911_946e_7c3090117119["fromSource()"] 078d46b1_ab0e_cd5b_9a1a_6c318fb71a83 -->|calls| a7060ba0_7028_1911_946e_7c3090117119 c8c9e7f6_e856_4711_6fe7_b1c2aeb3d239["getItems()"] 078d46b1_ab0e_cd5b_9a1a_6c318fb71a83 -->|calls| c8c9e7f6_e856_4711_6fe7_b1c2aeb3d239 style 078d46b1_ab0e_cd5b_9a1a_6c318fb71a83 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
configuration-metadata/spring-boot-configuration-processor/src/test/java/org/springframework/boot/configurationprocessor/GenericsMetadataGenerationTests.java lines 86–112
@Test
void genericTypes() {
ConfigurationMetadata metadata = compile(GenericConfig.class);
assertThat(metadata).has(Metadata.withGroup("generic")
.ofType("org.springframework.boot.configurationsample.generic.GenericConfig"));
assertThat(metadata).has(Metadata.withGroup("generic.foo")
.ofType("org.springframework.boot.configurationsample.generic.GenericConfig$Foo"));
assertThat(metadata).has(Metadata.withGroup("generic.foo.bar")
.ofType("org.springframework.boot.configurationsample.generic.GenericConfig$Bar"));
assertThat(metadata).has(Metadata.withGroup("generic.foo.bar.biz")
.ofType("org.springframework.boot.configurationsample.generic.GenericConfig$Bar$Biz"));
assertThat(metadata)
.has(Metadata.withProperty("generic.foo.name").ofType(String.class).fromSource(GenericConfig.Foo.class));
assertThat(metadata).has(Metadata.withProperty("generic.foo.string-to-bar")
.ofType("java.util.Map<java.lang.String,org.springframework.boot.configurationsample.generic.GenericConfig$Bar<java.lang.Integer>>")
.fromSource(GenericConfig.Foo.class));
assertThat(metadata).has(Metadata.withProperty("generic.foo.string-to-integer")
.ofType("java.util.Map<java.lang.String,java.lang.Integer>")
.fromSource(GenericConfig.Foo.class));
assertThat(metadata).has(Metadata.withProperty("generic.foo.bar.name")
.ofType("java.lang.String")
.fromSource(GenericConfig.Bar.class));
assertThat(metadata).has(Metadata.withProperty("generic.foo.bar.biz.name")
.ofType("java.lang.String")
.fromSource(GenericConfig.Bar.Biz.class));
assertThat(metadata.getItems()).hasSize(9);
}
Domain
Subdomains
Source
Frequently Asked Questions
What does genericTypes() do?
genericTypes() is a function in the spring-boot codebase.
What does genericTypes() call?
genericTypes() calls 5 function(s): fromSource, getItems, ofType, withGroup, withProperty.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free