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

getAnnotationValue() — spring-boot Function Reference

Architecture documentation for the getAnnotationValue() function in AutoConfigurationSorter.java from the spring-boot codebase.

Function java GradlePlugin DslExtensions calls 2 called by 1

Entity Profile

Dependency Diagram

graph TD
  a5cde2e1_2d58_ba9f_34e0_bbf313af21b9["getAnnotationValue()"]
  16919786_79c9_3a97_98a4_8b8b28ab8747["getClassNames()"]
  16919786_79c9_3a97_98a4_8b8b28ab8747 -->|calls| a5cde2e1_2d58_ba9f_34e0_bbf313af21b9
  187ff9c3_fe77_cb5c_256f_4f208466b98d["getAnnotationMetadata()"]
  a5cde2e1_2d58_ba9f_34e0_bbf313af21b9 -->|calls| 187ff9c3_fe77_cb5c_256f_4f208466b98d
  00f5187b_9f25_8e91_e542_b06dd07ee08d["get()"]
  a5cde2e1_2d58_ba9f_34e0_bbf313af21b9 -->|calls| 00f5187b_9f25_8e91_e542_b06dd07ee08d
  style a5cde2e1_2d58_ba9f_34e0_bbf313af21b9 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

core/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/AutoConfigurationSorter.java lines 264–278

		private Set<String> getAnnotationValue(Class<?> annotation) {
			Map<String, @Nullable Object> attributes = getAnnotationMetadata()
				.getAnnotationAttributes(annotation.getName(), true);
			if (attributes == null) {
				return Collections.emptySet();
			}
			Set<String> result = new LinkedHashSet<>();
			String[] value = (String[]) attributes.get("value");
			String[] name = (String[]) attributes.get("name");
			Assert.state(value != null, "'value' must not be null");
			Assert.state(name != null, "'name' must not be null");
			Collections.addAll(result, value);
			Collections.addAll(result, name);
			return result;
		}

Domain

Subdomains

Called By

Frequently Asked Questions

What does getAnnotationValue() do?
getAnnotationValue() is a function in the spring-boot codebase.
What does getAnnotationValue() call?
getAnnotationValue() calls 2 function(s): get, getAnnotationMetadata.
What calls getAnnotationValue()?
getAnnotationValue() is called by 1 function(s): getClassNames.

Analyze Your Own Codebase

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

Try Supermodel Free