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

validate() — spring-boot Function Reference

Architecture documentation for the validate() function in OnBeanCondition.java from the spring-boot codebase.

Function java GradlePlugin AotProcessing calls 6 called by 2

Entity Profile

Dependency Diagram

graph TD
  d54dda79_a803_1852_ac8f_9f548ff1ba14["validate()"]
  3eb26d1e_66b2_a5a1_2750_bf75d10661a3["validate()"]
  3eb26d1e_66b2_a5a1_2750_bf75d10661a3 -->|calls| d54dda79_a803_1852_ac8f_9f548ff1ba14
  14ef4e99_fc3b_79df_b329_a8d884951727["Spec()"]
  14ef4e99_fc3b_79df_b329_a8d884951727 -->|calls| d54dda79_a803_1852_ac8f_9f548ff1ba14
  3eb26d1e_66b2_a5a1_2750_bf75d10661a3["validate()"]
  d54dda79_a803_1852_ac8f_9f548ff1ba14 -->|calls| 3eb26d1e_66b2_a5a1_2750_bf75d10661a3
  46289b34_b141_5576_43c8_49bdf0bdbadf["hasAtLeastOneElement()"]
  d54dda79_a803_1852_ac8f_9f548ff1ba14 -->|calls| 46289b34_b141_5576_43c8_49bdf0bdbadf
  2ba0e534_4c88_5921_5926_322818e3ae20["getTypes()"]
  d54dda79_a803_1852_ac8f_9f548ff1ba14 -->|calls| 2ba0e534_4c88_5921_5926_322818e3ae20
  cf950564_0c1a_73f9_879c_1deb3befe3d1["getNames()"]
  d54dda79_a803_1852_ac8f_9f548ff1ba14 -->|calls| cf950564_0c1a_73f9_879c_1deb3befe3d1
  c5dd14dd_a95b_16d9_0aa1_85b3c1afc3cf["getAnnotations()"]
  d54dda79_a803_1852_ac8f_9f548ff1ba14 -->|calls| c5dd14dd_a95b_16d9_0aa1_85b3c1afc3cf
  732d44d5_cb26_4294_cabf_7a8290cd90a6["getAnnotationName()"]
  d54dda79_a803_1852_ac8f_9f548ff1ba14 -->|calls| 732d44d5_cb26_4294_cabf_7a8290cd90a6
  style d54dda79_a803_1852_ac8f_9f548ff1ba14 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

core/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/condition/OnBeanCondition.java lines 651–659

		protected void validate(@Nullable BeanTypeDeductionException ex) {
			if (!hasAtLeastOneElement(getTypes(), getNames(), getAnnotations())) {
				String message = getAnnotationName() + " did not specify a bean using type, name or annotation";
				if (ex == null) {
					throw new IllegalStateException(message);
				}
				throw new IllegalStateException(message + " and the attempt to deduce the bean's type failed", ex);
			}
		}

Domain

Subdomains

Calls

Called By

Frequently Asked Questions

What does validate() do?
validate() is a function in the spring-boot codebase.
What does validate() call?
validate() calls 6 function(s): getAnnotationName, getAnnotations, getNames, getTypes, hasAtLeastOneElement, validate.
What calls validate()?
validate() is called by 2 function(s): Spec, validate.

Analyze Your Own Codebase

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

Try Supermodel Free