onApplicationEvent() — spring-boot Function Reference
Architecture documentation for the onApplicationEvent() function in DockerComposeServiceConnectionsApplicationListener.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD 8d9d9702_fef0_6242_5058_c26e585c41a1["onApplicationEvent()"] 91f02ee2_1215_5125_cce2_937f663ae9de["getSource()"] 8d9d9702_fef0_6242_5058_c26e585c41a1 -->|calls| 91f02ee2_1215_5125_cce2_937f663ae9de e1bfc382_bb80_b6a2_05b2_ec504776cd4c["registerConnectionDetails()"] 8d9d9702_fef0_6242_5058_c26e585c41a1 -->|calls| e1bfc382_bb80_b6a2_05b2_ec504776cd4c 654bdaf5_d507_fc3a_4520_97b8b097e469["getRunningServices()"] 8d9d9702_fef0_6242_5058_c26e585c41a1 -->|calls| 654bdaf5_d507_fc3a_4520_97b8b097e469 style 8d9d9702_fef0_6242_5058_c26e585c41a1 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
core/spring-boot-docker-compose/src/main/java/org/springframework/boot/docker/compose/service/connection/DockerComposeServiceConnectionsApplicationListener.java lines 59–66
@Override
public void onApplicationEvent(DockerComposeServicesReadyEvent event) {
ApplicationContext applicationContext = event.getSource();
if (applicationContext instanceof BeanDefinitionRegistry registry) {
Environment environment = applicationContext.getEnvironment();
registerConnectionDetails(registry, environment, event.getRunningServices());
}
}
Domain
Subdomains
Calls
- getRunningServices()
- getSource()
- registerConnectionDetails()
Source
Frequently Asked Questions
What does onApplicationEvent() do?
onApplicationEvent() is a function in the spring-boot codebase.
What does onApplicationEvent() call?
onApplicationEvent() calls 3 function(s): getRunningServices, getSource, registerConnectionDetails.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free