Home / Class/ ManifestLayerArchiveFactory Class — spring-boot Architecture

ManifestLayerArchiveFactory Class — spring-boot Architecture

Architecture documentation for the ManifestLayerArchiveFactory class in ExportedImageTar.java from the spring-boot codebase.

Entity Profile

Relationship Graph

Source Code

buildpack/spring-boot-buildpack-platform/src/main/java/org/springframework/boot/buildpack/platform/docker/ExportedImageTar.java lines 269–288

	private static class ManifestLayerArchiveFactory extends LayerArchiveFactory {

		private final Set<String> layers;

		ManifestLayerArchiveFactory(ImageArchiveManifest manifest) {
			this.layers = manifest.getEntries()
				.stream()
				.flatMap((entry) -> entry.getLayers().stream())
				.collect(Collectors.toUnmodifiableSet());
		}

		@Override
		@Nullable TarArchive getLayerArchive(TarArchiveInputStream tar, TarArchiveEntry entry) {
			if (!this.layers.contains(entry.getName())) {
				return null;
			}
			return TarArchive.fromInputStream(tar, Compression.NONE);
		}

	}

Analyze Your Own Codebase

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

Try Supermodel Free