Home / Function/ addListeners() — spring-boot Function Reference

addListeners() — spring-boot Function Reference

Architecture documentation for the addListeners() function in SpringApplication.java from the spring-boot codebase.

Entity Profile

Dependency Diagram

graph TD
  0323724f_be4b_210b_5a14_3dfe10f6563b["addListeners()"]
  3b5ce68c_2b5f_b508_6e6a_e382ec1495f5["listeners()"]
  3b5ce68c_2b5f_b508_6e6a_e382ec1495f5 -->|calls| 0323724f_be4b_210b_5a14_3dfe10f6563b
  0b65421b_309c_7ee2_a809_ee2ea4c4c274["validateReadyFlag()"]
  0b65421b_309c_7ee2_a809_ee2ea4c4c274 -->|calls| 0323724f_be4b_210b_5a14_3dfe10f6563b
  0a0d8d00_2be1_d01a_442c_1649c0f94f8a["initialEventListenerCanAddAdditionalListenersToApplication()"]
  0a0d8d00_2be1_d01a_442c_1649c0f94f8a -->|calls| 0323724f_be4b_210b_5a14_3dfe10f6563b
  style 0323724f_be4b_210b_5a14_3dfe10f6563b fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

core/spring-boot/src/main/java/org/springframework/boot/SpringApplication.java lines 1283–1285

	public void addListeners(ApplicationListener<?>... listeners) {
		this.listeners.addAll(Arrays.asList(listeners));
	}

Domain

Subdomains

Frequently Asked Questions

What does addListeners() do?
addListeners() is a function in the spring-boot codebase.
What calls addListeners()?
addListeners() is called by 3 function(s): initialEventListenerCanAddAdditionalListenersToApplication, listeners, validateReadyFlag.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free