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

get() — spring-boot Function Reference

Architecture documentation for the get() function in JavaBeanBinder.java from the spring-boot codebase.

Function java GradlePlugin AotProcessing calls 5 called by 5

Entity Profile

Dependency Diagram

graph TD
  7c9243c3_087f_8f36_f31b_4fafbe79db95["get()"]
  6a72022e_f2f8_697c_c37b_c8e77e103247["get()"]
  6a72022e_f2f8_697c_c37b_c8e77e103247 -->|calls| 7c9243c3_087f_8f36_f31b_4fafbe79db95
  20338f0d_1278_4ee8_2318_7a2fbc33ae58["bind()"]
  20338f0d_1278_4ee8_2318_7a2fbc33ae58 -->|calls| 7c9243c3_087f_8f36_f31b_4fafbe79db95
  608396b1_2cc0_f216_6d4a_fe61b364e344["hasKnownBindableProperties()"]
  608396b1_2cc0_f216_6d4a_fe61b364e344 -->|calls| 7c9243c3_087f_8f36_f31b_4fafbe79db95
  ed1181ba_42a8_e400_bc90_2af1f176caff["getHasKnownBindablePropertiesCache()"]
  ed1181ba_42a8_e400_bc90_2af1f176caff -->|calls| 7c9243c3_087f_8f36_f31b_4fafbe79db95
  adba42ff_48cb_76c7_a8af_e3ce9ace5c7c["addField()"]
  adba42ff_48cb_76c7_a8af_e3ce9ace5c7c -->|calls| 7c9243c3_087f_8f36_f31b_4fafbe79db95
  6a72022e_f2f8_697c_c37b_c8e77e103247["get()"]
  7c9243c3_087f_8f36_f31b_4fafbe79db95 -->|calls| 6a72022e_f2f8_697c_c37b_c8e77e103247
  1634bb6c_7b0e_80f6_9ae3_1a59b11c2574["getValue()"]
  7c9243c3_087f_8f36_f31b_4fafbe79db95 -->|calls| 1634bb6c_7b0e_80f6_9ae3_1a59b11c2574
  d221a5d2_99d6_7d40_d3fb_87e614ba61e9["isInstantiable()"]
  7c9243c3_087f_8f36_f31b_4fafbe79db95 -->|calls| d221a5d2_99d6_7d40_d3fb_87e614ba61e9
  61c1904e_02b6_01dc_4527_c7e4556c5cc1["getCache()"]
  7c9243c3_087f_8f36_f31b_4fafbe79db95 -->|calls| 61c1904e_02b6_01dc_4527_c7e4556c5cc1
  87760d58_4d1f_1541_0711_8003e6141561["getType()"]
  7c9243c3_087f_8f36_f31b_4fafbe79db95 -->|calls| 87760d58_4d1f_1541_0711_8003e6141561
  style 7c9243c3_087f_8f36_f31b_4fafbe79db95 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

core/spring-boot/src/main/java/org/springframework/boot/context/properties/bind/JavaBeanBinder.java lines 283–304

		@SuppressWarnings("unchecked")
		static <T> @Nullable Bean<T> get(Bindable<T> bindable, Context context, boolean canCallGetValue) {
			ResolvableType type = bindable.getType();
			Class<?> resolvedType = type.resolve(Object.class);
			Supplier<T> value = bindable.getValue();
			T instance = null;
			if (canCallGetValue && value != null) {
				instance = value.get();
				resolvedType = (instance != null) ? instance.getClass() : resolvedType;
			}
			if (instance == null && !isInstantiable(resolvedType)) {
				return null;
			}
			Map<CacheKey, Bean<?>> cache = getCache(context);
			CacheKey cacheKey = new CacheKey(type, resolvedType);
			Bean<?> bean = cache.get(cacheKey);
			if (bean == null) {
				bean = new Bean<>(type, resolvedType);
				cache.put(cacheKey, bean);
			}
			return (Bean<T>) bean;
		}

Domain

Subdomains

Calls

Frequently Asked Questions

What does get() do?
get() is a function in the spring-boot codebase.
What does get() call?
get() calls 5 function(s): get, getCache, getType, getValue, isInstantiable.
What calls get()?
get() is called by 5 function(s): addField, bind, get, getHasKnownBindablePropertiesCache, hasKnownBindableProperties.

Analyze Your Own Codebase

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

Try Supermodel Free