Home / Class/ AggregateSupplier Class — spring-boot Architecture

AggregateSupplier Class — spring-boot Architecture

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

Entity Profile

Relationship Graph

Source Code

core/spring-boot/src/main/java/org/springframework/boot/context/properties/bind/AggregateBinder.java lines 98–119

	protected static class AggregateSupplier<T> {

		private final Supplier<T> supplier;

		private @Nullable T supplied;

		public AggregateSupplier(Supplier<T> supplier) {
			this.supplier = supplier;
		}

		public T get() {
			if (this.supplied == null) {
				this.supplied = this.supplier.get();
			}
			return this.supplied;
		}

		public boolean wasSupplied() {
			return this.supplied != null;
		}

	}

Domain

Analyze Your Own Codebase

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

Try Supermodel Free