ContainerImageMetadata Class — spring-boot Architecture
Architecture documentation for the ContainerImageMetadata class in ContainerImageMetadata.java from the spring-boot codebase.
Entity Profile
Relationship Graph
Source Code
core/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/container/ContainerImageMetadata.java lines 34–68
public record ContainerImageMetadata(@Nullable String imageName) {
static final String NAME = ContainerImageMetadata.class.getName();
/**
* Add this container image metadata to the given attributes.
* @param attributes the attributes to add the metadata to
*/
public void addTo(@Nullable AttributeAccessor attributes) {
if (attributes != null) {
attributes.setAttribute(NAME, this);
}
}
/**
* Return {@code true} if {@link ContainerImageMetadata} has been added to the given
* attributes.
* @param attributes the attributes to check
* @return if metadata is present
*/
public static boolean isPresent(@Nullable AttributeAccessor attributes) {
return getFrom(attributes) != null;
}
/**
* Return {@link ContainerImageMetadata} from the given attributes or {@code null} if
* no metadata has been added.
* @param attributes the attributes
* @return the metadata or {@code null}
*/
public static @Nullable ContainerImageMetadata getFrom(@Nullable AttributeAccessor attributes) {
return (attributes != null) ? (ContainerImageMetadata) attributes.getAttribute(NAME) : null;
}
}
Domain
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free