ContainerContent Type — spring-boot Architecture
Architecture documentation for the ContainerContent type/interface in ContainerContent.java from the spring-boot codebase.
Entity Profile
Source Code
buildpack/spring-boot-buildpack-platform/src/main/java/org/springframework/boot/buildpack/platform/docker/type/ContainerContent.java lines 28–76
public interface ContainerContent {
/**
* Return the actual content to be added.
* @return the content
*/
TarArchive getArchive();
/**
* Return the destination path where the content should be added.
* @return the destination path
*/
String getDestinationPath();
/**
* Factory method to create a new {@link ContainerContent} instance written to the
* root of the container.
* @param archive the archive to add
* @return a new {@link ContainerContent} instance
*/
static ContainerContent of(TarArchive archive) {
return of(archive, "/");
}
/**
* Factory method to create a new {@link ContainerContent} instance.
* @param archive the archive to add
* @param destinationPath the destination path within the container
* @return a new {@link ContainerContent} instance
*/
static ContainerContent of(TarArchive archive, String destinationPath) {
Assert.notNull(archive, "'archive' must not be null");
Assert.hasText(destinationPath, "'destinationPath' must not be empty");
return new ContainerContent() {
@Override
public TarArchive getArchive() {
return archive;
}
@Override
public String getDestinationPath() {
return destinationPath;
}
};
}
}
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free