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

staticAccessor() — spring-boot Function Reference

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

Entity Profile

Dependency Diagram

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

	@Test
	void staticAccessor() {
		ConfigurationMetadata metadata = compile(StaticAccessor.class);
		assertThat(metadata).has(Metadata.withGroup("specific").fromSource(StaticAccessor.class));
		assertThat(metadata).has(Metadata.withProperty("specific.counter", Integer.class)
			.fromSource(StaticAccessor.class)
			.withDefaultValue(42));
		assertThat(metadata)
			.doesNotHave(Metadata.withProperty("specific.name", String.class).fromSource(StaticAccessor.class));
		assertThat(metadata.getItems()).hasSize(2);
	}

Domain

Subdomains

Frequently Asked Questions

What does staticAccessor() do?
staticAccessor() is a function in the spring-boot codebase.
What does staticAccessor() call?
staticAccessor() 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