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

findBeanMethods() — spring-boot Function Reference

Architecture documentation for the findBeanMethods() function in NoSuchBeanDefinitionFailureAnalyzer.java from the spring-boot codebase.

Function java GradlePlugin DslExtensions calls 3 called by 1

Entity Profile

Dependency Diagram

graph TD
  5e6ab4c3_eea4_02f0_7c7c_a8bb2c83804a["findBeanMethods()"]
  3ad1e26a_ef06_0be0_42fb_1d1e1d315c31["BeanMethods()"]
  3ad1e26a_ef06_0be0_42fb_1d1e1d315c31 -->|calls| 5e6ab4c3_eea4_02f0_7c7c_a8bb2c83804a
  366a9390_1acb_e699_bcfb_f8d97dadc2d5["getClassName()"]
  5e6ab4c3_eea4_02f0_7c7c_a8bb2c83804a -->|calls| 366a9390_1acb_e699_bcfb_f8d97dadc2d5
  588432ea_1cad_4f96_5f64_ea6658e568c2["isMatch()"]
  5e6ab4c3_eea4_02f0_7c7c_a8bb2c83804a -->|calls| 588432ea_1cad_4f96_5f64_ea6658e568c2
  2f899a14_8285_228a_1809_f8834d27dcf6["add()"]
  5e6ab4c3_eea4_02f0_7c7c_a8bb2c83804a -->|calls| 2f899a14_8285_228a_1809_f8834d27dcf6
  style 5e6ab4c3_eea4_02f0_7c7c_a8bb2c83804a fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

core/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/diagnostics/analyzer/NoSuchBeanDefinitionFailureAnalyzer.java lines 230–247

		private List<MethodMetadata> findBeanMethods(Source source, NoSuchBeanDefinitionException cause) {
			try {
				MetadataReader classMetadata = NoSuchBeanDefinitionFailureAnalyzer.this.metadataReaderFactory
					.getMetadataReader(source.getClassName());
				Set<MethodMetadata> candidates = classMetadata.getAnnotationMetadata()
					.getAnnotatedMethods(Bean.class.getName());
				List<MethodMetadata> result = new ArrayList<>();
				for (MethodMetadata candidate : candidates) {
					if (isMatch(candidate, source, cause)) {
						result.add(candidate);
					}
				}
				return Collections.unmodifiableList(result);
			}
			catch (Exception ex) {
				return Collections.emptyList();
			}
		}

Domain

Subdomains

Calls

Called By

Frequently Asked Questions

What does findBeanMethods() do?
findBeanMethods() is a function in the spring-boot codebase.
What does findBeanMethods() call?
findBeanMethods() calls 3 function(s): add, getClassName, isMatch.
What calls findBeanMethods()?
findBeanMethods() is called by 1 function(s): BeanMethods.

Analyze Your Own Codebase

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

Try Supermodel Free