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

bindToEnum() — spring-boot Function Reference

Architecture documentation for the bindToEnum() function in ConfigurationPropertiesTests.java from the spring-boot codebase.

Function java GradlePlugin DslExtensions calls 3 called by 1

Entity Profile

Dependency Diagram

graph TD
  220934e9_97fd_3778_0072_be0fc30e88b0["bindToEnum()"]
  7c86d84b_6e20_da21_68ca_01d7f3a2ece1["loadWhenUsingRelaxedFormsShouldBindToEnum()"]
  7c86d84b_6e20_da21_68ca_01d7f3a2ece1 -->|calls| 220934e9_97fd_3778_0072_be0fc30e88b0
  392c6dad_f361_b454_5db1_e02eaffbc2bb["getTheValue()"]
  220934e9_97fd_3778_0072_be0fc30e88b0 -->|calls| 392c6dad_f361_b454_5db1_e02eaffbc2bb
  4fdbdd28_a367_b445_5d6f_fde7e86fd305["resetContext()"]
  220934e9_97fd_3778_0072_be0fc30e88b0 -->|calls| 4fdbdd28_a367_b445_5d6f_fde7e86fd305
  05d207ba_cdfc_1f3b_359f_89b70a0aec4e["load()"]
  220934e9_97fd_3778_0072_be0fc30e88b0 -->|calls| 05d207ba_cdfc_1f3b_359f_89b70a0aec4e
  style 220934e9_97fd_3778_0072_be0fc30e88b0 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

core/spring-boot/src/test/java/org/springframework/boot/context/properties/ConfigurationPropertiesTests.java lines 440–445

	private void bindToEnum(String... inlinedProperties) {
		load(WithEnumProperties.class, inlinedProperties);
		WithEnumProperties bean = this.context.getBean(WithEnumProperties.class);
		assertThat(bean.getTheValue()).isEqualTo(FooEnum.FOO);
		resetContext();
	}

Domain

Subdomains

Calls

Called By

  • loadWhenUsingRelaxedFormsShouldBindToEnum()

Frequently Asked Questions

What does bindToEnum() do?
bindToEnum() is a function in the spring-boot codebase.
What does bindToEnum() call?
bindToEnum() calls 3 function(s): getTheValue, load, resetContext.
What calls bindToEnum()?
bindToEnum() is called by 1 function(s): loadWhenUsingRelaxedFormsShouldBindToEnum.

Analyze Your Own Codebase

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

Try Supermodel Free