writeLoaderEntriesIfNecessary() — spring-boot Function Reference
Architecture documentation for the writeLoaderEntriesIfNecessary() function in BootZipCopyAction.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD 731672ed_f844_8d96_2a01_ef4b28a7e783["writeLoaderEntriesIfNecessary()"] 430177d0_07bd_3253_4459_6b05ce663ff9["process()"] 430177d0_07bd_3253_4459_6b05ce663ff9 -->|calls| 731672ed_f844_8d96_2a01_ef4b28a7e783 40a2d94c_64cc_cc36_cff0_428f467bc9d9["finish()"] 40a2d94c_64cc_cc36_cff0_428f467bc9d9 -->|calls| 731672ed_f844_8d96_2a01_ef4b28a7e783 9372969e_a2e7_0e43_f361_252985e963f1["isInMetaInf()"] 731672ed_f844_8d96_2a01_ef4b28a7e783 -->|calls| 9372969e_a2e7_0e43_f361_252985e963f1 ef8b2304_a3b6_115f_05d1_0642b257a593["getTime()"] 731672ed_f844_8d96_2a01_ef4b28a7e783 -->|calls| ef8b2304_a3b6_115f_05d1_0642b257a593 9a14a6ea_c1e9_1a5b_f12c_06079d0f40e5["getDirMode()"] 731672ed_f844_8d96_2a01_ef4b28a7e783 -->|calls| 9a14a6ea_c1e9_1a5b_f12c_06079d0f40e5 5cbc150a_58ed_127f_bbe8_1013d97ec91b["getFileMode()"] 731672ed_f844_8d96_2a01_ef4b28a7e783 -->|calls| 5cbc150a_58ed_127f_bbe8_1013d97ec91b style 731672ed_f844_8d96_2a01_ef4b28a7e783 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 293–310
private void writeLoaderEntriesIfNecessary(@Nullable FileCopyDetails details) throws IOException {
if (!BootZipCopyAction.this.includeDefaultLoader || this.writtenLoaderEntries != null) {
return;
}
if (isInMetaInf(details)) {
// Always write loader entries after META-INF directory (see gh-16698)
return;
}
LoaderZipEntries loaderEntries = new LoaderZipEntries(getTime(), getDirMode(), getFileMode());
this.writtenLoaderEntries = loaderEntries.writeTo(this.out);
if (BootZipCopyAction.this.layerResolver != null) {
for (String name : this.writtenLoaderEntries.getFiles()) {
Layer layer = BootZipCopyAction.this.layerResolver.getLayer(name);
Assert.state(this.layerIndex != null, "'layerIndex' must not be null");
this.layerIndex.add(layer, name);
}
}
}
Domain
Subdomains
Calls
- getDirMode()
- getFileMode()
- getTime()
- isInMetaInf()
Source
Frequently Asked Questions
What does writeLoaderEntriesIfNecessary() do?
writeLoaderEntriesIfNecessary() is a function in the spring-boot codebase.
What does writeLoaderEntriesIfNecessary() call?
writeLoaderEntriesIfNecessary() calls 4 function(s): getDirMode, getFileMode, getTime, isInMetaInf.
What calls writeLoaderEntriesIfNecessary()?
writeLoaderEntriesIfNecessary() is called by 2 function(s): finish, process.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free