addBootstrapRegistryInitializer() — spring-boot Function Reference
Architecture documentation for the addBootstrapRegistryInitializer() function in SpringApplicationTests.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD 8870f075_4e6a_05b7_4a8d_edaa3cf62be9["addBootstrapRegistryInitializer()"] a19a410e_ff31_eb14_7886_265ea3d9f4f4["addBootstrapRegistryInitializerCanRegisterBeans()"] a19a410e_ff31_eb14_7886_265ea3d9f4f4 -->|calls| 8870f075_4e6a_05b7_4a8d_edaa3cf62be9 0c6afc73_0a88_88a3_d3c9_92829e3c927c["addBootstrapRegistryInitializer()"] 8870f075_4e6a_05b7_4a8d_edaa3cf62be9 -->|calls| 0c6afc73_0a88_88a3_d3c9_92829e3c927c 33382d9b_aad3_20a2_45c5_f96685e8bf36["getEvent()"] 8870f075_4e6a_05b7_4a8d_edaa3cf62be9 -->|calls| 33382d9b_aad3_20a2_45c5_f96685e8bf36 d864f877_86bb_ed36_1f8e_bead3d2673be["getBootstrapContext()"] 8870f075_4e6a_05b7_4a8d_edaa3cf62be9 -->|calls| d864f877_86bb_ed36_1f8e_bead3d2673be 3613e214_49bf_015b_c43f_7f8a1274fb0b["run()"] 8870f075_4e6a_05b7_4a8d_edaa3cf62be9 -->|calls| 3613e214_49bf_015b_c43f_7f8a1274fb0b style 8870f075_4e6a_05b7_4a8d_edaa3cf62be9 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
core/spring-boot/src/test/java/org/springframework/boot/SpringApplicationTests.java lines 1255–1269
@Test
void addBootstrapRegistryInitializer() {
SpringApplication application = new SpringApplication(ExampleConfig.class);
application.setWebApplicationType(WebApplicationType.NONE);
application.addBootstrapRegistryInitializer(
(bootstrapContext) -> bootstrapContext.register(String.class, InstanceSupplier.of("boot")));
TestApplicationListener listener = new TestApplicationListener();
application.addListeners(listener);
application.run();
ApplicationStartingEvent startingEvent = listener.getEvent(ApplicationStartingEvent.class);
assertThat(startingEvent.getBootstrapContext().get(String.class)).isEqualTo("boot");
ApplicationEnvironmentPreparedEvent environmentPreparedEvent = listener
.getEvent(ApplicationEnvironmentPreparedEvent.class);
assertThat(environmentPreparedEvent.getBootstrapContext().get(String.class)).isEqualTo("boot");
}
Domain
Subdomains
Calls
- addBootstrapRegistryInitializer()
- getBootstrapContext()
- getEvent()
- run()
Source
Frequently Asked Questions
What does addBootstrapRegistryInitializer() do?
addBootstrapRegistryInitializer() is a function in the spring-boot codebase.
What does addBootstrapRegistryInitializer() call?
addBootstrapRegistryInitializer() calls 4 function(s): addBootstrapRegistryInitializer, getBootstrapContext, getEvent, run.
What calls addBootstrapRegistryInitializer()?
addBootstrapRegistryInitializer() is called by 1 function(s): addBootstrapRegistryInitializerCanRegisterBeans.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free