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

parent() — spring-boot Function Reference

Architecture documentation for the parent() function in SpringApplicationBuilder.java from the spring-boot codebase.

Entity Profile

Dependency Diagram

graph TD
  8a118e49_42e8_8550_9795_9fdf8ea8c31e["parent()"]
  67bae297_b590_f5e5_2666_5d557e3b57b1["SpringApplicationBuilder()"]
  8a118e49_42e8_8550_9795_9fdf8ea8c31e -->|calls| 67bae297_b590_f5e5_2666_5d557e3b57b1
  96180309_d35f_64e9_f339_53aa62a53500["web()"]
  8a118e49_42e8_8550_9795_9fdf8ea8c31e -->|calls| 96180309_d35f_64e9_f339_53aa62a53500
  94e71749_900c_a3ee_880d_8d0e95c538e4["properties()"]
  8a118e49_42e8_8550_9795_9fdf8ea8c31e -->|calls| 94e71749_900c_a3ee_880d_8d0e95c538e4
  ae274a0a_4be3_3db9_53e9_5b0b050b3801["environment()"]
  8a118e49_42e8_8550_9795_9fdf8ea8c31e -->|calls| ae274a0a_4be3_3db9_53e9_5b0b050b3801
  51fff311_cd5f_0d1a_785f_e21bb701b042["sources()"]
  8a118e49_42e8_8550_9795_9fdf8ea8c31e -->|calls| 51fff311_cd5f_0d1a_785f_e21bb701b042
  style 8a118e49_42e8_8550_9795_9fdf8ea8c31e fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

core/spring-boot/src/main/java/org/springframework/boot/builder/SpringApplicationBuilder.java lines 227–237

	public SpringApplicationBuilder parent(Class<?>... sources) {
		if (this.parent == null) {
			this.parent = new SpringApplicationBuilder(sources).web(WebApplicationType.NONE)
				.properties(this.defaultProperties)
				.environment(this.environment);
		}
		else {
			this.parent.sources(sources);
		}
		return this.parent;
	}

Domain

Subdomains

Frequently Asked Questions

What does parent() do?
parent() is a function in the spring-boot codebase.
What does parent() call?
parent() calls 5 function(s): SpringApplicationBuilder, environment, properties, sources, web.

Analyze Your Own Codebase

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

Try Supermodel Free