Home / Class/ LoaderHelper Class — spring-boot Architecture

LoaderHelper Class — spring-boot Architecture

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

Entity Profile

Relationship Graph

Source Code

core/spring-boot/src/test/java/org/springframework/boot/context/config/TestConfigDataBootstrap.java lines 112–140

	static class LoaderHelper implements ApplicationListener<BootstrapContextClosedEvent> {

		private final Resource location;

		private final Supplier<Binder> binder;

		LoaderHelper(Resource location, Supplier<Binder> binder) {
			this.location = location;
			this.binder = binder;
		}

		Resource getLocation() {
			return this.location;
		}

		@Nullable String getBound() {
			return this.binder.get().bind("myprop", String.class).orElse(null);
		}

		@Nullable String getProfileBound() {
			return this.binder.get().bind("myprofileprop", String.class).orElse(null);
		}

		@Override
		public void onApplicationEvent(BootstrapContextClosedEvent event) {
			event.getApplicationContext().getBeanFactory().registerSingleton("loaderHelper", this);
		}

	}

Domain

Analyze Your Own Codebase

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

Try Supermodel Free