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

getBeanDefinitionsForAnnotation() — spring-boot Function Reference

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

Function java GradlePlugin DslExtensions calls 2 called by 1

Entity Profile

Dependency Diagram

graph TD
  d6518f55_992f_8127_3729_5388350a5405["getBeanDefinitionsForAnnotation()"]
  e8d44fa6_45ad_6d14_6468_53ed18c907e0["getMatchingBeans()"]
  e8d44fa6_45ad_6d14_6468_53ed18c907e0 -->|calls| d6518f55_992f_8127_3729_5388350a5405
  6f04ff5d_1576_1680_363c_f81d113ba610["collectBeanDefinitionsForAnnotation()"]
  d6518f55_992f_8127_3729_5388350a5405 -->|calls| 6f04ff5d_1576_1680_363c_f81d113ba610
  102240e5_84d2_b7d7_c0f4_80621bff1d90["resolveAnnotationType()"]
  d6518f55_992f_8127_3729_5388350a5405 -->|calls| 102240e5_84d2_b7d7_c0f4_80621bff1d90
  style d6518f55_992f_8127_3729_5388350a5405 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 351–362

	private Map<String, @Nullable BeanDefinition> getBeanDefinitionsForAnnotation(@Nullable ClassLoader classLoader,
			ConfigurableListableBeanFactory beanFactory, String type, boolean considerHierarchy) throws LinkageError {
		Map<String, @Nullable BeanDefinition> result = null;
		try {
			result = collectBeanDefinitionsForAnnotation(beanFactory, resolveAnnotationType(classLoader, type),
					considerHierarchy, result);
		}
		catch (ClassNotFoundException ex) {
			// Continue
		}
		return (result != null) ? result : Collections.<String, @Nullable BeanDefinition>emptyMap();
	}

Domain

Subdomains

Calls

Called By

Frequently Asked Questions

What does getBeanDefinitionsForAnnotation() do?
getBeanDefinitionsForAnnotation() is a function in the spring-boot codebase.
What does getBeanDefinitionsForAnnotation() call?
getBeanDefinitionsForAnnotation() calls 2 function(s): collectBeanDefinitionsForAnnotation, resolveAnnotationType.
What calls getBeanDefinitionsForAnnotation()?
getBeanDefinitionsForAnnotation() is called by 1 function(s): getMatchingBeans.

Analyze Your Own Codebase

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

Try Supermodel Free