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

addServiceLoaderCommands() — spring-boot Function Reference

Architecture documentation for the addServiceLoaderCommands() function in SpringCli.java from the spring-boot codebase.

Function java GradlePlugin AotProcessing calls 2 called by 1

Entity Profile

Dependency Diagram

graph TD
  dd854fc5_d5f8_50f8_ef09_7e9365493bb8["addServiceLoaderCommands()"]
  a2c16583_5a36_a7dd_517c_6810d69952d6["main()"]
  a2c16583_5a36_a7dd_517c_6810d69952d6 -->|calls| dd854fc5_d5f8_50f8_ef09_7e9365493bb8
  1975b440_a0fa_58cb_acf6_cbc63ca55613["addCommands()"]
  dd854fc5_d5f8_50f8_ef09_7e9365493bb8 -->|calls| 1975b440_a0fa_58cb_acf6_cbc63ca55613
  e45b2f65_2856_2e90_5444_2888f9198454["getCommands()"]
  dd854fc5_d5f8_50f8_ef09_7e9365493bb8 -->|calls| e45b2f65_2856_2e90_5444_2888f9198454
  style dd854fc5_d5f8_50f8_ef09_7e9365493bb8 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

cli/spring-boot-cli/src/main/java/org/springframework/boot/cli/SpringCli.java lines 72–77

	private static void addServiceLoaderCommands(CommandRunner runner) {
		ServiceLoader<CommandFactory> factories = ServiceLoader.load(CommandFactory.class);
		for (CommandFactory factory : factories) {
			runner.addCommands(factory.getCommands());
		}
	}

Domain

Subdomains

Called By

Frequently Asked Questions

What does addServiceLoaderCommands() do?
addServiceLoaderCommands() is a function in the spring-boot codebase.
What does addServiceLoaderCommands() call?
addServiceLoaderCommands() calls 2 function(s): addCommands, getCommands.
What calls addServiceLoaderCommands()?
addServiceLoaderCommands() is called by 1 function(s): main.

Analyze Your Own Codebase

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

Try Supermodel Free