Home / Class/ ManifestList Class — spring-boot Architecture

ManifestList Class — spring-boot Architecture

Architecture documentation for the ManifestList class in ManifestList.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/type/ManifestList.java lines 40–87

public class ManifestList extends MappedObject {

	private final Integer schemaVersion;

	private final @Nullable String mediaType;

	private final List<BlobReference> manifests;

	protected ManifestList(JsonNode node) {
		super(node, MethodHandles.lookup());
		this.schemaVersion = extractSchemaVersion();
		this.mediaType = valueAt("/mediaType", String.class);
		this.manifests = childrenAt("/manifests", BlobReference::new);
	}

	private Integer extractSchemaVersion() {
		Integer result = valueAt("/schemaVersion", Integer.class);
		Assert.state(result != null, "'result' must not be null");
		return result;
	}

	public Integer getSchemaVersion() {
		return this.schemaVersion;
	}

	public @Nullable String getMediaType() {
		return this.mediaType;
	}

	public Stream<BlobReference> streamManifests() {
		return getManifests().stream();
	}

	public List<BlobReference> getManifests() {
		return this.manifests;
	}

	/**
	 * Create an {@link ManifestList} from the provided JSON input stream.
	 * @param content the JSON input stream
	 * @return a new {@link ManifestList} instance
	 * @throws IOException on IO error
	 */
	public static ManifestList of(InputStream content) throws IOException {
		return of(content, ManifestList::new);
	}

}

Analyze Your Own Codebase

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

Try Supermodel Free