Home / Function/ of() — spring-boot Function Reference

of() — spring-boot Function Reference

Architecture documentation for the of() function in ImageName.java from the spring-boot codebase.

Entity Profile

Dependency Diagram

graph TD
  cf1ac3fd_e688_8452_d6a0_046a45830184["of()"]
  b8a0ae88_f49a_e969_70ba_01e8e52e746b["BootBuildImage()"]
  b8a0ae88_f49a_e969_70ba_01e8e52e746b -->|calls| cf1ac3fd_e688_8452_d6a0_046a45830184
  7de2f21b_cda5_5c0a_e87b_04fb3fce0cb1["createRequest()"]
  7de2f21b_cda5_5c0a_e87b_04fb3fce0cb1 -->|calls| cf1ac3fd_e688_8452_d6a0_046a45830184
  e61fca9c_f8e7_e8b4_84ab_78fb86e04606["customizeBuilder()"]
  e61fca9c_f8e7_e8b4_84ab_78fb86e04606 -->|calls| cf1ac3fd_e688_8452_d6a0_046a45830184
  4723ca4b_29c7_1ae2_4166_e60dee114d5c["customizeRunImage()"]
  4723ca4b_29c7_1ae2_4166_e60dee114d5c -->|calls| cf1ac3fd_e688_8452_d6a0_046a45830184
  1f5de288_4054_671a_09ef_4241b1ba9474["removeImages()"]
  1f5de288_4054_671a_09ef_4241b1ba9474 -->|calls| cf1ac3fd_e688_8452_d6a0_046a45830184
  1c432d58_16ca_1503_d046_4cba5114e02b["removeImage()"]
  1c432d58_16ca_1503_d046_4cba5114e02b -->|calls| cf1ac3fd_e688_8452_d6a0_046a45830184
  796bdd2a_3a15_ecc2_97ae_dd72ce1ed61b["deleteVolumes()"]
  796bdd2a_3a15_ecc2_97ae_dd72ce1ed61b -->|calls| cf1ac3fd_e688_8452_d6a0_046a45830184
  5a3f1b3c_0313_61d5_1836_ffac508fddd8["parseDomain()"]
  cf1ac3fd_e688_8452_d6a0_046a45830184 -->|calls| 5a3f1b3c_0313_61d5_1836_ffac508fddd8
  2005a9e6_c261_9d5b_8cfe_33943b6d522a["ImageName()"]
  cf1ac3fd_e688_8452_d6a0_046a45830184 -->|calls| 2005a9e6_c261_9d5b_8cfe_33943b6d522a
  style cf1ac3fd_e688_8452_d6a0_046a45830184 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

buildpack/spring-boot-buildpack-platform/src/main/java/org/springframework/boot/buildpack/platform/docker/type/ImageName.java lines 130–138

	public static ImageName of(String value) {
		Assert.hasText(value, "'value' must not be empty");
		String domain = parseDomain(value);
		String path = (domain != null) ? value.substring(domain.length() + 1) : value;
		Assert.isTrue(Regex.PATH.matcher(path).matches(),
				() -> "'value' [" + value + "] must be a parsable name in the form '[domainHost:port/][path/]name' ("
						+ "with 'path' and 'name' containing only [a-z0-9][.][_][-])");
		return new ImageName(domain, path);
	}

Subdomains

Calls

Frequently Asked Questions

What does of() do?
of() is a function in the spring-boot codebase.
What does of() call?
of() calls 2 function(s): ImageName, parseDomain.
What calls of()?
of() is called by 7 function(s): BootBuildImage, createRequest, customizeBuilder, customizeRunImage, deleteVolumes, removeImage, removeImages.

Analyze Your Own Codebase

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

Try Supermodel Free