configureAsChildIfNecessary() — spring-boot Function Reference
Architecture documentation for the configureAsChildIfNecessary() function in SpringApplicationBuilder.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD 50463d98_125e_452a_318f_13449cca84e4["configureAsChildIfNecessary()"] 3613e214_49bf_015b_c43f_7f8a1274fb0b["run()"] 3613e214_49bf_015b_c43f_7f8a1274fb0b -->|calls| 50463d98_125e_452a_318f_13449cca84e4 edd11151_c5ef_29d5_a008_d115661e23bd["build()"] edd11151_c5ef_29d5_a008_d115661e23bd -->|calls| 50463d98_125e_452a_318f_13449cca84e4 c6fe8492_cad0_2537_02cc_e77230bc0903["setRegisterShutdownHook()"] 50463d98_125e_452a_318f_13449cca84e4 -->|calls| c6fe8492_cad0_2537_02cc_e77230bc0903 9c963be5_6ca5_bdb2_a5cb_0da063b3eb42["initializers()"] 50463d98_125e_452a_318f_13449cca84e4 -->|calls| 9c963be5_6ca5_bdb2_a5cb_0da063b3eb42 3613e214_49bf_015b_c43f_7f8a1274fb0b["run()"] 50463d98_125e_452a_318f_13449cca84e4 -->|calls| 3613e214_49bf_015b_c43f_7f8a1274fb0b style 50463d98_125e_452a_318f_13449cca84e4 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
core/spring-boot/src/main/java/org/springframework/boot/builder/SpringApplicationBuilder.java lines 161–169
private void configureAsChildIfNecessary(String... args) {
if (this.parent != null && !this.configuredAsChild) {
this.configuredAsChild = true;
if (!this.registerShutdownHookApplied) {
this.application.setRegisterShutdownHook(false);
}
initializers(new ParentContextApplicationContextInitializer(this.parent.run(args)));
}
}
Domain
Subdomains
Source
Frequently Asked Questions
What does configureAsChildIfNecessary() do?
configureAsChildIfNecessary() is a function in the spring-boot codebase.
What does configureAsChildIfNecessary() call?
configureAsChildIfNecessary() calls 3 function(s): initializers, run, setRegisterShutdownHook.
What calls configureAsChildIfNecessary()?
configureAsChildIfNecessary() is called by 2 function(s): build, run.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free