Home / Class/ OriginMapper Class — spring-boot Architecture

OriginMapper Class — spring-boot Architecture

Architecture documentation for the OriginMapper class in ConfigDataLocationBindHandler.java from the spring-boot codebase.

Entity Profile

Relationship Graph

Source Code

core/spring-boot/src/main/java/org/springframework/boot/context/config/ConfigDataLocationBindHandler.java lines 59–73

	private record OriginMapper(@Nullable ConfigurationProperty property) {

		@Nullable Object mapIfPossible(@Nullable Object object) {
			return (object instanceof ConfigDataLocation location) ? map(location) : object;
		}

		@Nullable ConfigDataLocation map(@Nullable ConfigDataLocation location) {
			if (location == null) {
				return null;
			}
			Origin origin = Origin.from(location);
			return (origin != null) ? location : location.withOrigin(Origin.from(property()));
		}

	}

Domain

Analyze Your Own Codebase

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

Try Supermodel Free