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

bindToBeanWithEnumSetCollection() — spring-boot Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  0b044e76_8081_9638_13d2_1c4ac8350947["bindToBeanWithEnumSetCollection()"]
  dec6e978_683d_a8e4_7ae5_e3e729d3253e["MockConfigurationPropertySource()"]
  0b044e76_8081_9638_13d2_1c4ac8350947 -->|calls| dec6e978_683d_a8e4_7ae5_e3e729d3253e
  725e97d2_341b_6665_84bc_9206c7185c54["put()"]
  0b044e76_8081_9638_13d2_1c4ac8350947 -->|calls| 725e97d2_341b_6665_84bc_9206c7185c54
  f4b76c1c_abdc_fe17_d6c1_88412a0633e7["of()"]
  0b044e76_8081_9638_13d2_1c4ac8350947 -->|calls| f4b76c1c_abdc_fe17_d6c1_88412a0633e7
  d3f98550_e539_9cdc_2b30_ba7dac7718ee["getValues()"]
  0b044e76_8081_9638_13d2_1c4ac8350947 -->|calls| d3f98550_e539_9cdc_2b30_ba7dac7718ee
  style 0b044e76_8081_9638_13d2_1c4ac8350947 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 471–480

	@Test
	void bindToBeanWithEnumSetCollection() {
		MockConfigurationPropertySource source = new MockConfigurationPropertySource();
		source.put("foo.values[0]", "foo-bar,bar-baz");
		this.sources.add(source);
		BeanWithEnumSetCollection result = this.binder.bind("foo", Bindable.of(BeanWithEnumSetCollection.class)).get();
		List<EnumSet<ExampleEnum>> values = result.getValues();
		assertThat(values).isNotNull();
		assertThat(values.get(0)).containsExactly(ExampleEnum.FOO_BAR, ExampleEnum.BAR_BAZ);
	}

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free