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

getValidators() — spring-boot Function Reference

Architecture documentation for the getValidators() function in ConfigurationPropertiesBinder.java from the spring-boot codebase.

Function java GradlePlugin DslExtensions calls 5 called by 1

Entity Profile

Dependency Diagram

graph TD
  b29e4c8d_349d_569b_228d_d7bb880eb65b["getValidators()"]
  7049470b_f628_735d_a808_ac3f1e21b5b2["getBindHandler()"]
  7049470b_f628_735d_a808_ac3f1e21b5b2 -->|calls| b29e4c8d_349d_569b_228d_d7bb880eb65b
  7ed947bf_22a1_2781_a2ae_759aa1907445["add()"]
  b29e4c8d_349d_569b_228d_d7bb880eb65b -->|calls| 7ed947bf_22a1_2781_a2ae_759aa1907445
  ce02f572_c486_43df_ae0a_9908cf5bb011["getAnnotation()"]
  b29e4c8d_349d_569b_228d_d7bb880eb65b -->|calls| ce02f572_c486_43df_ae0a_9908cf5bb011
  3e5fdf3e_5083_ec93_ea8f_4d13dd58c233["getJsr303Validator()"]
  b29e4c8d_349d_569b_228d_d7bb880eb65b -->|calls| 3e5fdf3e_5083_ec93_ea8f_4d13dd58c233
  81c64a79_d283_a2fc_d63a_e59b235ec811["getSelfValidator()"]
  b29e4c8d_349d_569b_228d_d7bb880eb65b -->|calls| 81c64a79_d283_a2fc_d63a_e59b235ec811
  f7e9ddde_2634_c57e_57b9_2c188cc789b6["getType()"]
  b29e4c8d_349d_569b_228d_d7bb880eb65b -->|calls| f7e9ddde_2634_c57e_57b9_2c188cc789b6
  style b29e4c8d_349d_569b_228d_d7bb880eb65b fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

core/spring-boot/src/main/java/org/springframework/boot/context/properties/ConfigurationPropertiesBinder.java lines 152–167

	private List<Validator> getValidators(Bindable<?> target) {
		List<Validator> validators = new ArrayList<>(3);
		if (this.configurationPropertiesValidator != null) {
			validators.add(this.configurationPropertiesValidator);
		}
		if (this.jsr303Present && target.getAnnotation(Validated.class) != null) {
			Class<?> resolved = target.getType().resolve();
			Assert.state(resolved != null, "'resolved' must not be null");
			validators.add(getJsr303Validator(resolved));
		}
		Validator selfValidator = getSelfValidator(target);
		if (selfValidator != null) {
			validators.add(selfValidator);
		}
		return validators;
	}

Domain

Subdomains

Called By

Frequently Asked Questions

What does getValidators() do?
getValidators() is a function in the spring-boot codebase.
What does getValidators() call?
getValidators() calls 5 function(s): add, getAnnotation, getJsr303Validator, getSelfValidator, getType.
What calls getValidators()?
getValidators() is called by 1 function(s): getBindHandler.

Analyze Your Own Codebase

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

Try Supermodel Free