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

isConvertViaObjectSourceType() — spring-boot Function Reference

Architecture documentation for the isConvertViaObjectSourceType() function in ApplicationConversionService.java from the spring-boot codebase.

Function java GradlePlugin AotProcessing calls 2 called by 1

Entity Profile

Dependency Diagram

graph TD
  59dce06c_1a6c_fade_d4dc_4793d935f6a2["isConvertViaObjectSourceType()"]
  f7903da2_034f_d78c_f918_09f31c4d9c46["isStringConversionBetter()"]
  f7903da2_034f_d78c_f918_09f31c4d9c46 -->|calls| 59dce06c_1a6c_fade_d4dc_4793d935f6a2
  bea96967_af78_0c15_1822_12593227e1ee["getConverter()"]
  59dce06c_1a6c_fade_d4dc_4793d935f6a2 -->|calls| bea96967_af78_0c15_1822_12593227e1ee
  b94d25d0_6fc7_4838_8e11_de3abbe512cb["getConvertibleTypes()"]
  59dce06c_1a6c_fade_d4dc_4793d935f6a2 -->|calls| b94d25d0_6fc7_4838_8e11_de3abbe512cb
  style 59dce06c_1a6c_fade_d4dc_4793d935f6a2 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

core/spring-boot/src/main/java/org/springframework/boot/convert/ApplicationConversionService.java lines 179–190

	public boolean isConvertViaObjectSourceType(TypeDescriptor sourceType, TypeDescriptor targetType) {
		GenericConverter converter = getConverter(sourceType, targetType);
		Set<ConvertiblePair> pairs = (converter != null) ? converter.getConvertibleTypes() : null;
		if (pairs != null) {
			for (ConvertiblePair pair : pairs) {
				if (Object.class.equals(pair.getSourceType())) {
					return true;
				}
			}
		}
		return false;
	}

Domain

Subdomains

Called By

  • isStringConversionBetter()

Frequently Asked Questions

What does isConvertViaObjectSourceType() do?
isConvertViaObjectSourceType() is a function in the spring-boot codebase.
What does isConvertViaObjectSourceType() call?
isConvertViaObjectSourceType() calls 2 function(s): getConverter, getConvertibleTypes.
What calls isConvertViaObjectSourceType()?
isConvertViaObjectSourceType() is called by 1 function(s): isStringConversionBetter.

Analyze Your Own Codebase

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

Try Supermodel Free