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

doWaitForSpringApplication() — spring-boot Function Reference

Architecture documentation for the doWaitForSpringApplication() function in StartMojo.java from the spring-boot codebase.

Entity Profile

Dependency Diagram

graph TD
  6f4a8945_735a_1bc9_fbb2_db6e938c4785["doWaitForSpringApplication()"]
  280c4ffd_495b_5cb5_9790_6e4753a0a34f["waitForSpringApplication()"]
  280c4ffd_495b_5cb5_9790_6e4753a0a34f -->|calls| 6f4a8945_735a_1bc9_fbb2_db6e938c4785
  cfa553e2_cf47_c4fa_a10e_b7fd43198087["execute()"]
  6f4a8945_735a_1bc9_fbb2_db6e938c4785 -->|calls| cfa553e2_cf47_c4fa_a10e_b7fd43198087
  style 6f4a8945_735a_1bc9_fbb2_db6e938c4785 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

build-plugin/spring-boot-maven-plugin/src/main/java/org/springframework/boot/maven/StartMojo.java lines 159–172

	private void doWaitForSpringApplication(MBeanServerConnection connection)
			throws MojoExecutionException, MojoFailureException {
		final SpringApplicationAdminClient client = new SpringApplicationAdminClient(connection, this.jmxName);
		try {
			Callable<@Nullable Boolean> isReady = () -> (client.isReady() ? true : null);
			execute(this.wait, this.maxAttempts, isReady);
		}
		catch (ReflectionException ex) {
			throw new MojoExecutionException("Unable to retrieve 'ready' attribute", ex.getCause());
		}
		catch (Exception ex) {
			throw new MojoFailureException("Could not invoke shutdown operation", ex);
		}
	}

Domain

Subdomains

Calls

Frequently Asked Questions

What does doWaitForSpringApplication() do?
doWaitForSpringApplication() is a function in the spring-boot codebase.
What does doWaitForSpringApplication() call?
doWaitForSpringApplication() calls 1 function(s): execute.
What calls doWaitForSpringApplication()?
doWaitForSpringApplication() is called by 1 function(s): waitForSpringApplication.

Analyze Your Own Codebase

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

Try Supermodel Free