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

simpleTypeProperties() — spring-boot Function Reference

Architecture documentation for the simpleTypeProperties() function in ConfigurationMetadataAnnotationProcessorTests.java from the spring-boot codebase.

Entity Profile

Dependency Diagram

graph TD
  a1d71b98_bb92_43d3_61f5_4de1d5a4ab79["simpleTypeProperties()"]
  4e7738f0_ea94_abd8_5384_e7be1344cace["compile()"]
  a1d71b98_bb92_43d3_61f5_4de1d5a4ab79 -->|calls| 4e7738f0_ea94_abd8_5384_e7be1344cace
  83ee5c58_5d39_6a9f_3b4b_81ba336603a7["withGroup()"]
  a1d71b98_bb92_43d3_61f5_4de1d5a4ab79 -->|calls| 83ee5c58_5d39_6a9f_3b4b_81ba336603a7
  a7060ba0_7028_1911_946e_7c3090117119["fromSource()"]
  a1d71b98_bb92_43d3_61f5_4de1d5a4ab79 -->|calls| a7060ba0_7028_1911_946e_7c3090117119
  a4041ee3_920f_3ffa_6d69_6e3bcd2c6cdc["withProperty()"]
  a1d71b98_bb92_43d3_61f5_4de1d5a4ab79 -->|calls| a4041ee3_920f_3ffa_6d69_6e3bcd2c6cdc
  3a84f306_c04e_ed63_ecc7_7013edbb2681["withDefaultValue()"]
  a1d71b98_bb92_43d3_61f5_4de1d5a4ab79 -->|calls| 3a84f306_c04e_ed63_ecc7_7013edbb2681
  c8c9e7f6_e856_4711_6fe7_b1c2aeb3d239["getItems()"]
  a1d71b98_bb92_43d3_61f5_4de1d5a4ab79 -->|calls| c8c9e7f6_e856_4711_6fe7_b1c2aeb3d239
  style a1d71b98_bb92_43d3_61f5_4de1d5a4ab79 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 172–199

	@Test
	void simpleTypeProperties() {
		ConfigurationMetadata metadata = compile(SimpleTypeProperties.class);
		assertThat(metadata).has(Metadata.withGroup("simple.type").fromSource(SimpleTypeProperties.class));
		assertThat(metadata).has(Metadata.withProperty("simple.type.my-string", String.class));
		assertThat(metadata).has(Metadata.withProperty("simple.type.my-byte", Byte.class));
		assertThat(metadata)
			.has(Metadata.withProperty("simple.type.my-primitive-byte", Byte.class).withDefaultValue(0));
		assertThat(metadata).has(Metadata.withProperty("simple.type.my-char", Character.class));
		assertThat(metadata).has(Metadata.withProperty("simple.type.my-primitive-char", Character.class));
		assertThat(metadata).has(Metadata.withProperty("simple.type.my-boolean", Boolean.class));
		assertThat(metadata)
			.has(Metadata.withProperty("simple.type.my-primitive-boolean", Boolean.class).withDefaultValue(false));
		assertThat(metadata).has(Metadata.withProperty("simple.type.my-short", Short.class));
		assertThat(metadata)
			.has(Metadata.withProperty("simple.type.my-primitive-short", Short.class).withDefaultValue(0));
		assertThat(metadata).has(Metadata.withProperty("simple.type.my-integer", Integer.class));
		assertThat(metadata)
			.has(Metadata.withProperty("simple.type.my-primitive-integer", Integer.class).withDefaultValue(0));
		assertThat(metadata).has(Metadata.withProperty("simple.type.my-long", Long.class));
		assertThat(metadata)
			.has(Metadata.withProperty("simple.type.my-primitive-long", Long.class).withDefaultValue(0));
		assertThat(metadata).has(Metadata.withProperty("simple.type.my-double", Double.class));
		assertThat(metadata).has(Metadata.withProperty("simple.type.my-primitive-double", Double.class));
		assertThat(metadata).has(Metadata.withProperty("simple.type.my-float", Float.class));
		assertThat(metadata).has(Metadata.withProperty("simple.type.my-primitive-float", Float.class));
		assertThat(metadata.getItems()).hasSize(18);
	}

Domain

Subdomains

Frequently Asked Questions

What does simpleTypeProperties() do?
simpleTypeProperties() is a function in the spring-boot codebase.
What does simpleTypeProperties() call?
simpleTypeProperties() calls 6 function(s): compile, fromSource, getItems, withDefaultValue, withGroup, withProperty.

Analyze Your Own Codebase

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

Try Supermodel Free