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

forValueObject() — spring-boot Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  3fa2e59a_bbf9_23ae_acb1_9383b54a3942["forValueObject()"]
  50756854_6b8e_e333_adca_770ea18b2f28["createBindTarget()"]
  3fa2e59a_bbf9_23ae_acb1_9383b54a3942 -->|calls| 50756854_6b8e_e333_adca_770ea18b2f28
  91bbef5b_5ec5_7983_4462_1e4a075d93dd["deduceBindMethod()"]
  3fa2e59a_bbf9_23ae_acb1_9383b54a3942 -->|calls| 91bbef5b_5ec5_7983_4462_1e4a075d93dd
  1763dac9_497f_c26d_0962_90de798a23b8["create()"]
  3fa2e59a_bbf9_23ae_acb1_9383b54a3942 -->|calls| 1763dac9_497f_c26d_0962_90de798a23b8
  a10e7a13_4c54_c535_501e_7f629229d11d["withBindMethod()"]
  3fa2e59a_bbf9_23ae_acb1_9383b54a3942 -->|calls| a10e7a13_4c54_c535_501e_7f629229d11d
  style 3fa2e59a_bbf9_23ae_acb1_9383b54a3942 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

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

	static ConfigurationPropertiesBean forValueObject(Class<?> beanType, String beanName) {
		Bindable<Object> bindTarget = createBindTarget(null, beanType, null);
		Assert.state(bindTarget != null && deduceBindMethod(bindTarget) == VALUE_OBJECT_BIND_METHOD,
				() -> "Bean '" + beanName + "' is not a @ConfigurationProperties value object");
		return create(beanName, null, bindTarget.withBindMethod(VALUE_OBJECT_BIND_METHOD));
	}

Domain

Subdomains

Frequently Asked Questions

What does forValueObject() do?
forValueObject() is a function in the spring-boot codebase.
What does forValueObject() call?
forValueObject() calls 4 function(s): create, createBindTarget, deduceBindMethod, withBindMethod.

Analyze Your Own Codebase

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

Try Supermodel Free