Home / Class/ WithSetterThatThrowsValidationExceptionProperties Class — spring-boot Architecture

WithSetterThatThrowsValidationExceptionProperties Class — spring-boot Architecture

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

Entity Profile

Relationship Graph

Source Code

core/spring-boot/src/test/java/org/springframework/boot/context/properties/ConfigurationPropertiesTests.java lines 2336–2353

	@EnableConfigurationProperties
	@ConfigurationProperties("test")
	static class WithSetterThatThrowsValidationExceptionProperties {

		private @Nullable String foo;

		@Nullable String getFoo() {
			return this.foo;
		}

		void setFoo(String foo) {
			this.foo = foo;
			if (!foo.equals("bar")) {
				throw new IllegalArgumentException("Wrong value for foo");
			}
		}

	}

Domain

Analyze Your Own Codebase

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

Try Supermodel Free