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

run() — spring-boot Function Reference

Architecture documentation for the run() function in CommandRunner.java from the spring-boot codebase.

Function java GradlePlugin RunTasks calls 3 called by 4

Entity Profile

Dependency Diagram

graph TD
  9d0a96cd_7225_a1a4_7d58_1b34cca7b97f["run()"]
  146781aa_36d9_10e6_eb21_8c24c5539805["runAndHandleErrors()"]
  146781aa_36d9_10e6_eb21_8c24c5539805 -->|calls| 9d0a96cd_7225_a1a4_7d58_1b34cca7b97f
  2c6b55d7_790d_f84a_3438_31a2ecf44d5d["run()"]
  2c6b55d7_790d_f84a_3438_31a2ecf44d5d -->|calls| 9d0a96cd_7225_a1a4_7d58_1b34cca7b97f
  459fe95a_0b67_ca20_ec86_da817d0b71b2["run()"]
  459fe95a_0b67_ca20_ec86_da817d0b71b2 -->|calls| 9d0a96cd_7225_a1a4_7d58_1b34cca7b97f
  f16938da_3006_63ee_97a5_d93dc922f67b["run()"]
  f16938da_3006_63ee_97a5_d93dc922f67b -->|calls| 9d0a96cd_7225_a1a4_7d58_1b34cca7b97f
  25efdbe0_704a_1f5d_2a3d_89793759e7ed["findCommand()"]
  9d0a96cd_7225_a1a4_7d58_1b34cca7b97f -->|calls| 25efdbe0_704a_1f5d_2a3d_89793759e7ed
  38f72e97_a533_6b3c_9970_98cf2dc3cdbd["beforeRun()"]
  9d0a96cd_7225_a1a4_7d58_1b34cca7b97f -->|calls| 38f72e97_a533_6b3c_9970_98cf2dc3cdbd
  65bddd82_2b24_52f6_13c2_b1006469daeb["afterRun()"]
  9d0a96cd_7225_a1a4_7d58_1b34cca7b97f -->|calls| 65bddd82_2b24_52f6_13c2_b1006469daeb
  style 9d0a96cd_7225_a1a4_7d58_1b34cca7b97f fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

cli/spring-boot-cli/src/main/java/org/springframework/boot/cli/command/CommandRunner.java lines 209–226

	protected ExitStatus run(String... args) throws Exception {
		if (args.length == 0) {
			throw new NoArgumentsException();
		}
		String commandName = args[0];
		String[] commandArguments = Arrays.copyOfRange(args, 1, args.length);
		Command command = findCommand(commandName);
		if (command == null) {
			throw new NoSuchCommandException(commandName);
		}
		beforeRun(command);
		try {
			return command.run(commandArguments);
		}
		finally {
			afterRun(command);
		}
	}

Domain

Subdomains

Frequently Asked Questions

What does run() do?
run() is a function in the spring-boot codebase.
What does run() call?
run() calls 3 function(s): afterRun, beforeRun, findCommand.
What calls run()?
run() is called by 4 function(s): run, run, run, runAndHandleErrors.

Analyze Your Own Codebase

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

Try Supermodel Free