Home / Type/ StartCommand Type — spring-boot Architecture

StartCommand Type — spring-boot Architecture

Architecture documentation for the StartCommand type/interface in StartCommand.java from the spring-boot codebase.

Entity Profile

Source Code

core/spring-boot-docker-compose/src/main/java/org/springframework/boot/docker/compose/lifecycle/StartCommand.java lines 32–61

public enum StartCommand {

	/**
	 * Start using {@code docker compose up}.
	 */
	UP(DockerCompose::up),

	/**
	 * Start using {@code docker compose start}.
	 */
	START(DockerCompose::start);

	private final Command command;

	StartCommand(Command command) {
		this.command = command;
	}

	void applyTo(DockerCompose dockerCompose, LogLevel logLevel, List<String> arguments) {
		this.command.applyTo(dockerCompose, logLevel, arguments);
	}

	@FunctionalInterface
	private interface Command {

		void applyTo(DockerCompose dockerCompose, LogLevel logLevel, List<String> arguments);

	}

}

Analyze Your Own Codebase

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

Try Supermodel Free