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

writeLayersIndexIfNecessary() — spring-boot Function Reference

Architecture documentation for the writeLayersIndexIfNecessary() function in BootZipCopyAction.java from the spring-boot codebase.

Function java Archiving LauncherConfig calls 1 called by 1

Entity Profile

Dependency Diagram

graph TD
  6fc19df5_416f_2b87_947a_a8840cf01f80["writeLayersIndexIfNecessary()"]
  40a2d94c_64cc_cc36_cff0_428f467bc9d9["finish()"]
  40a2d94c_64cc_cc36_cff0_428f467bc9d9 -->|calls| 6fc19df5_416f_2b87_947a_a8840cf01f80
  e16da5d1_b19e_4d45_229b_91569861926e["writeEntry()"]
  6fc19df5_416f_2b87_947a_a8840cf01f80 -->|calls| e16da5d1_b19e_4d45_229b_91569861926e
  style 6fc19df5_416f_2b87_947a_a8840cf01f80 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

build-plugin/spring-boot-gradle-plugin/src/main/java/org/springframework/boot/gradle/tasks/bundling/BootZipCopyAction.java lines 391–401

		private void writeLayersIndexIfNecessary() throws IOException {
			if (BootZipCopyAction.this.layerResolver != null) {
				Attributes manifestAttributes = BootZipCopyAction.this.manifest.getAttributes();
				String name = (String) manifestAttributes.get("Spring-Boot-Layers-Index");
				Assert.state(StringUtils.hasText(name), "Missing layer index manifest attribute");
				Layer layer = BootZipCopyAction.this.layerResolver.getLayer(name);
				Assert.state(this.layerIndex != null, "'layerIndex' must not be null");
				this.layerIndex.add(layer, name);
				writeEntry(name, this.layerIndex::writeTo, false);
			}
		}

Domain

Subdomains

Calls

Called By

Frequently Asked Questions

What does writeLayersIndexIfNecessary() do?
writeLayersIndexIfNecessary() is a function in the spring-boot codebase.
What does writeLayersIndexIfNecessary() call?
writeLayersIndexIfNecessary() calls 1 function(s): writeEntry.
What calls writeLayersIndexIfNecessary()?
writeLayersIndexIfNecessary() is called by 1 function(s): finish.

Analyze Your Own Codebase

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

Try Supermodel Free