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

getOrElseSupply() — spring-boot Function Reference

Architecture documentation for the getOrElseSupply() function in DefaultBootstrapContext.java from the spring-boot codebase.

Function java GradlePlugin DslExtensions calls 2 called by 1

Entity Profile

Dependency Diagram

graph TD
  805663b4_fb92_a78c_765e_bf1a36785cc4["getOrElseSupply()"]
  ec5c48d7_a913_8092_805a_4c824a8322de["getOrElse()"]
  ec5c48d7_a913_8092_805a_4c824a8322de -->|calls| 805663b4_fb92_a78c_765e_bf1a36785cc4
  87f0b21f_3955_8dcc_cc55_9c6321893f96["get()"]
  805663b4_fb92_a78c_765e_bf1a36785cc4 -->|calls| 87f0b21f_3955_8dcc_cc55_9c6321893f96
  e48b0014_eeea_f2a4_363f_d6101ab60325["getInstance()"]
  805663b4_fb92_a78c_765e_bf1a36785cc4 -->|calls| e48b0014_eeea_f2a4_363f_d6101ab60325
  style 805663b4_fb92_a78c_765e_bf1a36785cc4 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

core/spring-boot/src/main/java/org/springframework/boot/bootstrap/DefaultBootstrapContext.java lines 99–105

	@Override
	public <T> @Nullable T getOrElseSupply(Class<T> type, Supplier<@Nullable T> other) {
		synchronized (this.instanceSuppliers) {
			InstanceSupplier<?> instanceSupplier = this.instanceSuppliers.get(type);
			return (instanceSupplier != null) ? getInstance(type, instanceSupplier) : other.get();
		}
	}

Domain

Subdomains

Called By

  • getOrElse()

Frequently Asked Questions

What does getOrElseSupply() do?
getOrElseSupply() is a function in the spring-boot codebase.
What does getOrElseSupply() call?
getOrElseSupply() calls 2 function(s): get, getInstance.
What calls getOrElseSupply()?
getOrElseSupply() is called by 1 function(s): getOrElse.

Analyze Your Own Codebase

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

Try Supermodel Free