Home / Class/ BeanSupplier Class — spring-boot Architecture

BeanSupplier Class — spring-boot Architecture

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

Entity Profile

Relationship Graph

Source Code

core/spring-boot/src/main/java/org/springframework/boot/context/properties/bind/JavaBeanBinder.java lines 335–353

	private static class BeanSupplier<T> implements Supplier<T> {

		private final Supplier<T> factory;

		private @Nullable T instance;

		BeanSupplier(Supplier<T> factory) {
			this.factory = factory;
		}

		@Override
		public T get() {
			if (this.instance == null) {
				this.instance = this.factory.get();
			}
			return this.instance;
		}

	}

Domain

Analyze Your Own Codebase

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

Try Supermodel Free