addListener() — spring-boot Function Reference
Architecture documentation for the addListener() function in SpringApplicationTests.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD 2617d46d_c367_35a8_17cf_64149ca9953a["addListener()"] eaff1601_c92f_1525_d1d9_2bad09cb1564["applicationRunningEventListener()"] eaff1601_c92f_1525_d1d9_2bad09cb1564 -->|calls| 2617d46d_c367_35a8_17cf_64149ca9953a 389aedf5_23cd_5dfe_aa12_fffeee5c2f2b["contextRefreshedEventListener()"] 389aedf5_23cd_5dfe_aa12_fffeee5c2f2b -->|calls| 2617d46d_c367_35a8_17cf_64149ca9953a 34de4ff5_5ef7_98a3_db12_df855dcac72c["applicationStartedEventHasStartedTime()"] 34de4ff5_5ef7_98a3_db12_df855dcac72c -->|calls| 2617d46d_c367_35a8_17cf_64149ca9953a a52da8f2_fc2f_daaa_5895_ecfe52339273["applicationReadyEventHasReadyTime()"] a52da8f2_fc2f_daaa_5895_ecfe52339273 -->|calls| 2617d46d_c367_35a8_17cf_64149ca9953a style 2617d46d_c367_35a8_17cf_64149ca9953a fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
core/spring-boot/src/test/java/org/springframework/boot/SpringApplicationTests.java lines 1499–1504
private <E extends ApplicationEvent> AtomicReference<E> addListener(SpringApplication application,
Class<E> eventType) {
AtomicReference<E> reference = new AtomicReference<>();
application.addListeners(new TestEventListener<>(eventType, reference));
return reference;
}
Domain
Subdomains
Called By
- applicationReadyEventHasReadyTime()
- applicationRunningEventListener()
- applicationStartedEventHasStartedTime()
- contextRefreshedEventListener()
Source
Frequently Asked Questions
What does addListener() do?
addListener() is a function in the spring-boot codebase.
What calls addListener()?
addListener() is called by 4 function(s): applicationReadyEventHasReadyTime, applicationRunningEventListener, applicationStartedEventHasStartedTime, contextRefreshedEventListener.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free