Home / Class/ InactiveSourceChecker Class — spring-boot Architecture

InactiveSourceChecker Class — spring-boot Architecture

Architecture documentation for the InactiveSourceChecker class in ConfigDataEnvironmentContributors.java from the spring-boot codebase.

Entity Profile

Relationship Graph

Source Code

core/spring-boot/src/main/java/org/springframework/boot/context/config/ConfigDataEnvironmentContributors.java lines 316–335

	private class InactiveSourceChecker implements BindHandler {

		private final @Nullable ConfigDataActivationContext activationContext;

		InactiveSourceChecker(@Nullable ConfigDataActivationContext activationContext) {
			this.activationContext = activationContext;
		}

		@Override
		public Object onSuccess(ConfigurationPropertyName name, Bindable<?> target, BindContext context,
				Object result) {
			for (ConfigDataEnvironmentContributor contributor : ConfigDataEnvironmentContributors.this) {
				if (!contributor.isActive(this.activationContext)) {
					InactiveConfigDataAccessException.throwIfPropertyFound(contributor, name);
				}
			}
			return result;
		}

	}

Domain

Analyze Your Own Codebase

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

Try Supermodel Free