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

get() — spring-boot Function Reference

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

Function java GradlePlugin AotProcessing calls 7 called by 3

Entity Profile

Dependency Diagram

graph TD
  5fe9e097_d243_2cad_d20c_db584a0f1a0a["get()"]
  724be4a1_5259_b857_2bb2_ea262acfd7c4["getAll()"]
  724be4a1_5259_b857_2bb2_ea262acfd7c4 -->|calls| 5fe9e097_d243_2cad_d20c_db584a0f1a0a
  b85523a6_c328_b2f4_7432_1dca6dc64723["findAnnotation()"]
  b85523a6_c328_b2f4_7432_1dca6dc64723 -->|calls| 5fe9e097_d243_2cad_d20c_db584a0f1a0a
  c209a51d_7b81_5cd0_10bf_6997040b38cd["findMergedAnnotation()"]
  c209a51d_7b81_5cd0_10bf_6997040b38cd -->|calls| 5fe9e097_d243_2cad_d20c_db584a0f1a0a
  c90d60de_6e4d_b157_5121_acbc78d427f0["get()"]
  5fe9e097_d243_2cad_d20c_db584a0f1a0a -->|calls| c90d60de_6e4d_b157_5121_acbc78d427f0
  18a621b9_e07b_c5c0_d8ee_68e740590562["findFactoryMethod()"]
  5fe9e097_d243_2cad_d20c_db584a0f1a0a -->|calls| 18a621b9_e07b_c5c0_d8ee_68e740590562
  50756854_6b8e_e333_adca_770ea18b2f28["createBindTarget()"]
  5fe9e097_d243_2cad_d20c_db584a0f1a0a -->|calls| 50756854_6b8e_e333_adca_770ea18b2f28
  a10e7a13_4c54_c535_501e_7f629229d11d["withBindMethod()"]
  5fe9e097_d243_2cad_d20c_db584a0f1a0a -->|calls| a10e7a13_4c54_c535_501e_7f629229d11d
  72ef994e_68af_b04d_cc4a_3a4530618274["getBindMethod()"]
  5fe9e097_d243_2cad_d20c_db584a0f1a0a -->|calls| 72ef994e_68af_b04d_cc4a_3a4530618274
  9585934b_b9d5_0a5e_94c7_a4344f67965b["withExistingValue()"]
  5fe9e097_d243_2cad_d20c_db584a0f1a0a -->|calls| 9585934b_b9d5_0a5e_94c7_a4344f67965b
  1763dac9_497f_c26d_0962_90de798a23b8["create()"]
  5fe9e097_d243_2cad_d20c_db584a0f1a0a -->|calls| 1763dac9_497f_c26d_0962_90de798a23b8
  style 5fe9e097_d243_2cad_d20c_db584a0f1a0a fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

core/spring-boot/src/main/java/org/springframework/boot/context/properties/ConfigurationPropertiesBean.java lines 203–218

	public static @Nullable ConfigurationPropertiesBean get(ApplicationContext applicationContext, Object bean,
			String beanName) {
		Method factoryMethod = findFactoryMethod(applicationContext, beanName);
		Bindable<Object> bindTarget = createBindTarget(bean, bean.getClass(), factoryMethod);
		if (bindTarget == null) {
			return null;
		}
		bindTarget = bindTarget.withBindMethod(BindMethodAttribute.get(applicationContext, beanName));
		if (bindTarget.getBindMethod() == null && factoryMethod != null) {
			bindTarget = bindTarget.withBindMethod(JAVA_BEAN_BIND_METHOD);
		}
		if (bindTarget.getBindMethod() != VALUE_OBJECT_BIND_METHOD) {
			bindTarget = bindTarget.withExistingValue(bean);
		}
		return create(beanName, bean, bindTarget);
	}

Domain

Subdomains

Frequently Asked Questions

What does get() do?
get() is a function in the spring-boot codebase.
What does get() call?
get() calls 7 function(s): create, createBindTarget, findFactoryMethod, get, getBindMethod, withBindMethod, withExistingValue.
What calls get()?
get() is called by 3 function(s): findAnnotation, findMergedAnnotation, getAll.

Analyze Your Own Codebase

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

Try Supermodel Free