collectBeanDefinitionsForAnnotation() — spring-boot Function Reference
Architecture documentation for the collectBeanDefinitionsForAnnotation() function in OnBeanCondition.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD 6f04ff5d_1576_1680_363c_f81d113ba610["collectBeanDefinitionsForAnnotation()"] d6518f55_992f_8127_3729_5388350a5405["getBeanDefinitionsForAnnotation()"] d6518f55_992f_8127_3729_5388350a5405 -->|calls| 6f04ff5d_1576_1680_363c_f81d113ba610 e7b24424_08f7_5843_9dea_fe09460299b9["putAll()"] 6f04ff5d_1576_1680_363c_f81d113ba610 -->|calls| e7b24424_08f7_5843_9dea_fe09460299b9 7a814d61_8cfa_20ef_1ab5_7200d2229a85["getBeanNamesForAnnotation()"] 6f04ff5d_1576_1680_363c_f81d113ba610 -->|calls| 7a814d61_8cfa_20ef_1ab5_7200d2229a85 style 6f04ff5d_1576_1680_363c_f81d113ba610 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 370–382
private @Nullable Map<String, @Nullable BeanDefinition> collectBeanDefinitionsForAnnotation(
ListableBeanFactory beanFactory, Class<? extends Annotation> annotationType, boolean considerHierarchy,
@Nullable Map<String, @Nullable BeanDefinition> result) {
result = putAll(result, getBeanNamesForAnnotation(beanFactory, annotationType), beanFactory);
if (considerHierarchy) {
BeanFactory parent = ((HierarchicalBeanFactory) beanFactory).getParentBeanFactory();
if (parent instanceof ListableBeanFactory listableBeanFactory) {
result = collectBeanDefinitionsForAnnotation(listableBeanFactory, annotationType, considerHierarchy,
result);
}
}
return result;
}
Domain
Subdomains
Calls
- getBeanNamesForAnnotation()
- putAll()
Called By
Source
Frequently Asked Questions
What does collectBeanDefinitionsForAnnotation() do?
collectBeanDefinitionsForAnnotation() is a function in the spring-boot codebase.
What does collectBeanDefinitionsForAnnotation() call?
collectBeanDefinitionsForAnnotation() calls 2 function(s): getBeanNamesForAnnotation, putAll.
What calls collectBeanDefinitionsForAnnotation()?
collectBeanDefinitionsForAnnotation() is called by 1 function(s): getBeanDefinitionsForAnnotation.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free