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

ofInstance() — spring-boot Function Reference

Architecture documentation for the ofInstance() function in Bindable.java from the spring-boot codebase.

Function java GradlePlugin AotProcessing calls 2 called by 1

Entity Profile

Dependency Diagram

graph TD
  642e21e4_62b4_b533_c56f_fac958c3f6a1["ofInstance()"]
  39ef021c_ae99_f6d7_d1c9_3905f466f9b5["bindToSpringApplication()"]
  39ef021c_ae99_f6d7_d1c9_3905f466f9b5 -->|calls| 642e21e4_62b4_b533_c56f_fac958c3f6a1
  9585934b_b9d5_0a5e_94c7_a4344f67965b["withExistingValue()"]
  642e21e4_62b4_b533_c56f_fac958c3f6a1 -->|calls| 9585934b_b9d5_0a5e_94c7_a4344f67965b
  19a274bb_d9c7_a72c_7ab7_6a36d8c8fa78["of()"]
  642e21e4_62b4_b533_c56f_fac958c3f6a1 -->|calls| 19a274bb_d9c7_a72c_7ab7_6a36d8c8fa78
  style 642e21e4_62b4_b533_c56f_fac958c3f6a1 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

core/spring-boot/src/main/java/org/springframework/boot/context/properties/bind/Bindable.java lines 256–261

	@SuppressWarnings("unchecked")
	public static <T> Bindable<T> ofInstance(T instance) {
		Assert.notNull(instance, "'instance' must not be null");
		Class<T> type = (Class<T>) instance.getClass();
		return of(type).withExistingValue(instance);
	}

Domain

Subdomains

Frequently Asked Questions

What does ofInstance() do?
ofInstance() is a function in the spring-boot codebase.
What does ofInstance() call?
ofInstance() calls 2 function(s): of, withExistingValue.
What calls ofInstance()?
ofInstance() is called by 1 function(s): bindToSpringApplication.

Analyze Your Own Codebase

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

Try Supermodel Free