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

getReturnType() — spring-boot Function Reference

Architecture documentation for the getReturnType() function in OnBeanCondition.java from the spring-boot codebase.

Function java GradlePlugin DslExtensions calls 3 called by 1

Entity Profile

Dependency Diagram

graph TD
  c9d2b7fb_c9e5_ae4d_58d1_bf1c8c5bf433["getReturnType()"]
  a56619a6_e6ca_8df9_9c13_7ac3caccccb6["deducedBeanTypeForBeanMethod()"]
  a56619a6_e6ca_8df9_9c13_7ac3caccccb6 -->|calls| c9d2b7fb_c9e5_ae4d_58d1_bf1c8c5bf433
  b4dae815_869d_2d71_0346_809f7f82921a["getMethodReturnType()"]
  c9d2b7fb_c9e5_ae4d_58d1_bf1c8c5bf433 -->|calls| b4dae815_869d_2d71_0346_809f7f82921a
  d8dc818a_117a_9858_1752_1516f30a16a5["isParameterizedContainer()"]
  c9d2b7fb_c9e5_ae4d_58d1_bf1c8c5bf433 -->|calls| d8dc818a_117a_9858_1752_1516f30a16a5
  343c5071_b124_9233_e382_ad11feb5b46d["toString()"]
  c9d2b7fb_c9e5_ae4d_58d1_bf1c8c5bf433 -->|calls| 343c5071_b124_9233_e382_ad11feb5b46d
  style c9d2b7fb_c9e5_ae4d_58d1_bf1c8c5bf433 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

core/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/condition/OnBeanCondition.java lines 690–699

		private BeanType getReturnType(ConditionContext context, MethodMetadata metadata)
				throws ClassNotFoundException, LinkageError {
			// Safe to load at this point since we are in the REGISTER_BEAN phase
			ClassLoader classLoader = context.getClassLoader();
			ResolvableType returnType = getMethodReturnType(metadata, classLoader);
			if (isParameterizedContainer(returnType.resolve())) {
				returnType = returnType.getGeneric();
			}
			return new BeanType(returnType.toString(), returnType);
		}

Domain

Subdomains

Calls

  • getMethodReturnType()
  • isParameterizedContainer()
  • toString()

Frequently Asked Questions

What does getReturnType() do?
getReturnType() is a function in the spring-boot codebase.
What does getReturnType() call?
getReturnType() calls 3 function(s): getMethodReturnType, isParameterizedContainer, toString.
What calls getReturnType()?
getReturnType() is called by 1 function(s): deducedBeanTypeForBeanMethod.

Analyze Your Own Codebase

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

Try Supermodel Free