Home / Class/ ValidatorPropertiesWithDefaultValues Class — spring-boot Architecture

ValidatorPropertiesWithDefaultValues Class — spring-boot Architecture

Architecture documentation for the ValidatorPropertiesWithDefaultValues class in ValidatorPropertiesWithDefaultValues.java from the spring-boot codebase.

Entity Profile

Source Code

core/spring-boot/src/test/java/org/springframework/boot/context/properties/ValidatorPropertiesWithDefaultValues.java lines 28–52

@EnableConfigurationProperties
@ConfigurationProperties
class ValidatorPropertiesWithDefaultValues implements Validator {

	private String bar = "a";

	@Override
	public boolean supports(Class<?> type) {
		return type == ValidatorPropertiesWithDefaultValues.class;
	}

	@Override
	public void validate(Object target, Errors errors) {
		ValidationUtils.rejectIfEmpty(errors, "bar", "foo.empty");
	}

	public String getBar() {
		return this.bar;
	}

	public void setBar(String bar) {
		this.bar = bar;
	}

}

Analyze Your Own Codebase

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

Try Supermodel Free