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

withExistingValue() — spring-boot Function Reference

Architecture documentation for the withExistingValue() function in Bindable.java from the spring-boot codebase.

Function java GradlePlugin RunTasks calls 1 called by 9

Entity Profile

Dependency Diagram

graph TD
  9585934b_b9d5_0a5e_94c7_a4344f67965b["withExistingValue()"]
  5fe9e097_d243_2cad_d20c_db584a0f1a0a["get()"]
  5fe9e097_d243_2cad_d20c_db584a0f1a0a -->|calls| 9585934b_b9d5_0a5e_94c7_a4344f67965b
  642e21e4_62b4_b533_c56f_fac958c3f6a1["ofInstance()"]
  642e21e4_62b4_b533_c56f_fac958c3f6a1 -->|calls| 9585934b_b9d5_0a5e_94c7_a4344f67965b
  7a94de97_b4ea_af61_2597_867b7487b027["onStart()"]
  7a94de97_b4ea_af61_2597_867b7487b027 -->|calls| 9585934b_b9d5_0a5e_94c7_a4344f67965b
  5201addc_7302_9bd8_0c8f_f282f0fa0752["bindShouldFailIfExistingValueIsInvalid()"]
  5201addc_7302_9bd8_0c8f_f282f0fa0752 -->|calls| 9585934b_b9d5_0a5e_94c7_a4344f67965b
  ad0142e5_2e6d_d36f_a8f6_3c99298ba8c0["bindShouldValidateWithoutAnnotation()"]
  ad0142e5_2e6d_d36f_a8f6_3c99298ba8c0 -->|calls| 9585934b_b9d5_0a5e_94c7_a4344f67965b
  dc9a3c31_dbc6_3eeb_b95e_77d61ffcacc2["bindShouldNotValidateDepthGreaterThanZero()"]
  dc9a3c31_dbc6_3eeb_b95e_77d61ffcacc2 -->|calls| 9585934b_b9d5_0a5e_94c7_a4344f67965b
  71f3a73f_15bd_7298_a0b7_9f70f1979709["bindShouldNotValidateIfOtherHandlersInChainThrowError()"]
  71f3a73f_15bd_7298_a0b7_9f70f1979709 -->|calls| 9585934b_b9d5_0a5e_94c7_a4344f67965b
  e5ffed17_5923_3acb_9776_d02f1c590504["bindShouldValidateIfOtherHandlersInChainIgnoreError()"]
  e5ffed17_5923_3acb_9776_d02f1c590504 -->|calls| 9585934b_b9d5_0a5e_94c7_a4344f67965b
  3750078d_b3dd_62a1_abb5_c0cdb70bfe7d["bindShouldValidateIfOtherHandlersInChainReplaceErrorWithResult()"]
  3750078d_b3dd_62a1_abb5_c0cdb70bfe7d -->|calls| 9585934b_b9d5_0a5e_94c7_a4344f67965b
  a179c122_f523_61f0_6469_591a56cd54aa["boxedTypeIsInstanceOf()"]
  9585934b_b9d5_0a5e_94c7_a4344f67965b -->|calls| a179c122_f523_61f0_6469_591a56cd54aa
  style 9585934b_b9d5_0a5e_94c7_a4344f67965b fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

core/spring-boot/src/main/java/org/springframework/boot/context/properties/bind/Bindable.java lines 194–202

	public Bindable<T> withExistingValue(@Nullable T existingValue) {
		Assert.isTrue(existingValue == null || this.type.isArray() || boxedTypeIsInstanceOf(existingValue),
				() -> "'existingValue' must be an instance of " + this.type);
		Assert.state(this.bindMethod != BindMethod.VALUE_OBJECT,
				() -> "An existing value cannot be provided when binding as a value object");
		Supplier<T> value = (existingValue != null) ? () -> existingValue : null;
		return new Bindable<>(this.type, this.boxedType, value, this.annotations, this.bindRestrictions,
				BindMethod.JAVA_BEAN);
	}

Domain

Subdomains

Calls

  • boxedTypeIsInstanceOf()

Frequently Asked Questions

What does withExistingValue() do?
withExistingValue() is a function in the spring-boot codebase.
What does withExistingValue() call?
withExistingValue() calls 1 function(s): boxedTypeIsInstanceOf.
What calls withExistingValue()?
withExistingValue() is called by 9 function(s): bindShouldFailIfExistingValueIsInvalid, bindShouldNotValidateDepthGreaterThanZero, bindShouldNotValidateIfOtherHandlersInChainThrowError, bindShouldValidateIfOtherHandlersInChainIgnoreError, bindShouldValidateIfOtherHandlersInChainReplaceErrorWithResult, bindShouldValidateWithoutAnnotation, get, ofInstance, and 1 more.

Analyze Your Own Codebase

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

Try Supermodel Free