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

bindToBeanWithClonedArray() — spring-boot Function Reference

Architecture documentation for the bindToBeanWithClonedArray() function in CollectionBinderTests.java from the spring-boot codebase.

Entity Profile

Dependency Diagram

graph TD
  d98c4b4f_0961_c11a_7c90_161775d176db["bindToBeanWithClonedArray()"]
  dec6e978_683d_a8e4_7ae5_e3e729d3253e["MockConfigurationPropertySource()"]
  d98c4b4f_0961_c11a_7c90_161775d176db -->|calls| dec6e978_683d_a8e4_7ae5_e3e729d3253e
  725e97d2_341b_6665_84bc_9206c7185c54["put()"]
  d98c4b4f_0961_c11a_7c90_161775d176db -->|calls| 725e97d2_341b_6665_84bc_9206c7185c54
  f4b76c1c_abdc_fe17_d6c1_88412a0633e7["of()"]
  d98c4b4f_0961_c11a_7c90_161775d176db -->|calls| f4b76c1c_abdc_fe17_d6c1_88412a0633e7
  4489c3d2_f20d_a130_9bf4_5f16150aeec8["getBar()"]
  d98c4b4f_0961_c11a_7c90_161775d176db -->|calls| 4489c3d2_f20d_a130_9bf4_5f16150aeec8
  style d98c4b4f_0961_c11a_7c90_161775d176db fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

core/spring-boot/src/test/java/org/springframework/boot/context/properties/bind/CollectionBinderTests.java lines 452–460

	@Test
	void bindToBeanWithClonedArray() {
		MockConfigurationPropertySource source = new MockConfigurationPropertySource();
		source.put("foo.bar[0]", "hello");
		this.sources.add(source);
		Bindable<ClonedArrayBean> target = Bindable.of(ClonedArrayBean.class);
		ClonedArrayBean bean = this.binder.bind("foo", target).get();
		assertThat(bean.getBar()).containsExactly("hello");
	}

Domain

Subdomains

Frequently Asked Questions

What does bindToBeanWithClonedArray() do?
bindToBeanWithClonedArray() is a function in the spring-boot codebase.
What does bindToBeanWithClonedArray() call?
bindToBeanWithClonedArray() calls 4 function(s): MockConfigurationPropertySource, getBar, of, put.

Analyze Your Own Codebase

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

Try Supermodel Free