getImportedConfigBeans() — spring-boot Function Reference
Architecture documentation for the getImportedConfigBeans() function in ImportAutoConfigurationTests.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD 1025833e_b302_4fb4_06dd_957b55611dbe["getImportedConfigBeans()"] 6d403fdd_8a8d_f84e_5050_161bb0eaa510["multipleAnnotationsShouldMergeCorrectly()"] 6d403fdd_8a8d_f84e_5050_161bb0eaa510 -->|calls| 1025833e_b302_4fb4_06dd_957b55611dbe 9ce2522d_26c2_6526_5bf7_525cb9839f3b["classesAsAnAlias()"] 9ce2522d_26c2_6526_5bf7_525cb9839f3b -->|calls| 1025833e_b302_4fb4_06dd_957b55611dbe b4afffae_b6a6_03d7_5059_ccd11a8f9a8b["excluding()"] b4afffae_b6a6_03d7_5059_ccd11a8f9a8b -->|calls| 1025833e_b302_4fb4_06dd_957b55611dbe cb6c00b6_916a_428d_df71_88ac1151adf5["excludeAppliedGlobally()"] cb6c00b6_916a_428d_df71_88ac1151adf5 -->|calls| 1025833e_b302_4fb4_06dd_957b55611dbe 60d53072_80a4_a586_28be_5825902cde94["excludeWithRedundancy()"] 60d53072_80a4_a586_28be_5825902cde94 -->|calls| 1025833e_b302_4fb4_06dd_957b55611dbe style 1025833e_b302_4fb4_06dd_957b55611dbe fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
core/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/ImportAutoConfigurationTests.java lines 67–80
private List<String> getImportedConfigBeans(Class<?>... config) {
AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(config);
String shortName = ClassUtils.getShortName(ImportAutoConfigurationTests.class);
int beginIndex = shortName.length() + 1;
List<String> orderedConfigBeans = new ArrayList<>();
for (String bean : context.getBeanDefinitionNames()) {
if (bean.contains("$Config")) {
String shortBeanName = ClassUtils.getShortName(bean);
orderedConfigBeans.add(shortBeanName.substring(beginIndex));
}
}
context.close();
return orderedConfigBeans;
}
Domain
Subdomains
Called By
- classesAsAnAlias()
- excludeAppliedGlobally()
- excludeWithRedundancy()
- excluding()
- multipleAnnotationsShouldMergeCorrectly()
Source
Frequently Asked Questions
What does getImportedConfigBeans() do?
getImportedConfigBeans() is a function in the spring-boot codebase.
What calls getImportedConfigBeans()?
getImportedConfigBeans() is called by 5 function(s): classesAsAnAlias, excludeAppliedGlobally, excludeWithRedundancy, excluding, multipleAnnotationsShouldMergeCorrectly.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free