LoadImageUpdateListener Class — spring-boot Architecture
Architecture documentation for the LoadImageUpdateListener class in DockerApi.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/DockerApi.java lines 592–619
private static final class LoadImageUpdateListener implements UpdateListener<LoadImageUpdateEvent> {
private final ImageArchive archive;
private @Nullable String stream;
private LoadImageUpdateListener(ImageArchive archive) {
this.archive = archive;
}
@Override
public void onUpdate(LoadImageUpdateEvent event) {
Assert.state(event.getErrorDetail() == null,
() -> "Error response received when loading image" + image() + ": " + event.getErrorDetail());
this.stream = event.getStream();
}
private String image() {
ImageReference tag = this.archive.getTag();
return (tag != null) ? " \"" + tag + "\"" : "";
}
private void assertValidResponseReceived() {
Assert.state(StringUtils.hasText(this.stream),
() -> "Invalid response received when loading image" + image());
}
}
Domain
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free