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

getRunListeners() — spring-boot Function Reference

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

Function java GradlePlugin RunTasks calls 4 called by 1

Entity Profile

Dependency Diagram

graph TD
  7ba1e3a6_0304_52ae_113d_c2ef804cb6b8["getRunListeners()"]
  89cfa04a_3922_680e_945d_5b4338252cc7["run()"]
  89cfa04a_3922_680e_945d_5b4338252cc7 -->|calls| 7ba1e3a6_0304_52ae_113d_c2ef804cb6b8
  19a274bb_d9c7_a72c_7ab7_6a36d8c8fa78["of()"]
  7ba1e3a6_0304_52ae_113d_c2ef804cb6b8 -->|calls| 19a274bb_d9c7_a72c_7ab7_6a36d8c8fa78
  cd9c8607_3f04_b36a_a46e_cbbbb3b5ed2a["getSpringFactoriesInstances()"]
  7ba1e3a6_0304_52ae_113d_c2ef804cb6b8 -->|calls| cd9c8607_3f04_b36a_a46e_cbbbb3b5ed2a
  022cf387_06ca_58e1_eb45_38c90ba7b36d["getRunListener()"]
  7ba1e3a6_0304_52ae_113d_c2ef804cb6b8 -->|calls| 022cf387_06ca_58e1_eb45_38c90ba7b36d
  87f0b21f_3955_8dcc_cc55_9c6321893f96["get()"]
  7ba1e3a6_0304_52ae_113d_c2ef804cb6b8 -->|calls| 87f0b21f_3955_8dcc_cc55_9c6321893f96
  style 7ba1e3a6_0304_52ae_113d_c2ef804cb6b8 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

core/spring-boot/src/main/java/org/springframework/boot/SpringApplication.java lines 453–465

	private SpringApplicationRunListeners getRunListeners(String[] args) {
		ArgumentResolver argumentResolver = ArgumentResolver.of(SpringApplication.class, this);
		argumentResolver = argumentResolver.and(String[].class, args);
		List<SpringApplicationRunListener> listeners = getSpringFactoriesInstances(SpringApplicationRunListener.class,
				argumentResolver);
		SpringApplicationHook hook = applicationHook.get();
		SpringApplicationRunListener hookListener = (hook != null) ? hook.getRunListener(this) : null;
		if (hookListener != null) {
			listeners = new ArrayList<>(listeners);
			listeners.add(hookListener);
		}
		return new SpringApplicationRunListeners(logger, listeners, this.applicationStartup);
	}

Domain

Subdomains

Called By

Frequently Asked Questions

What does getRunListeners() do?
getRunListeners() is a function in the spring-boot codebase.
What does getRunListeners() call?
getRunListeners() calls 4 function(s): get, getRunListener, getSpringFactoriesInstances, of.
What calls getRunListeners()?
getRunListeners() is called by 1 function(s): run.

Analyze Your Own Codebase

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

Try Supermodel Free