Home / Class/ SingleUseAdditionalConfig Class — spring-boot Architecture

SingleUseAdditionalConfig Class — spring-boot Architecture

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

Entity Profile

Relationship Graph

Source Code

core/spring-boot/src/test/java/org/springframework/boot/SpringApplicationTests.java lines 2140–2151

	@Configuration
	static class SingleUseAdditionalConfig {

		private static AtomicBoolean used = new AtomicBoolean(false);

		SingleUseAdditionalConfig() {
			if (!used.compareAndSet(false, true)) {
				throw new IllegalStateException("Single-use configuration has already been used");
			}
		}

	}

Domain

Analyze Your Own Codebase

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

Try Supermodel Free