cyclicBeanMethods() — spring-boot Function Reference
Architecture documentation for the cyclicBeanMethods() function in BeanCurrentlyInCreationFailureAnalyzerTests.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD 36ef6ac9_e677_154a_5396_5873af7d28a9["cyclicBeanMethods()"] e3512328_d1bb_71b9_929e_ae0e03cc496c["performAnalysis()"] 36ef6ac9_e677_154a_5396_5873af7d28a9 -->|calls| e3512328_d1bb_71b9_929e_ae0e03cc496c fa1cbc7c_dc65_7706_d08a_c9aadfe5feac["readDescriptionLines()"] 36ef6ac9_e677_154a_5396_5873af7d28a9 -->|calls| fa1cbc7c_dc65_7706_d08a_c9aadfe5feac 1a4e5320_a2e2_8aa5_7d05_1e805db190f1["getAction()"] 36ef6ac9_e677_154a_5396_5873af7d28a9 -->|calls| 1a4e5320_a2e2_8aa5_7d05_1e805db190f1 style 36ef6ac9_e677_154a_5396_5873af7d28a9 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
core/spring-boot/src/test/java/org/springframework/boot/diagnostics/analyzer/BeanCurrentlyInCreationFailureAnalyzerTests.java lines 54–70
@Test
void cyclicBeanMethods() throws IOException {
FailureAnalysis analysis = performAnalysis(CyclicBeanMethodsConfiguration.class);
List<String> lines = readDescriptionLines(analysis);
assertThat(lines).hasSize(9);
assertThat(lines.get(0))
.isEqualTo("The dependencies of some of the beans in the application context form a cycle:");
assertThat(lines.get(1)).isEmpty();
assertThat(lines.get(2)).isEqualTo("┌─────┐");
assertThat(lines.get(3)).startsWith("| one defined in " + InnerInnerConfiguration.class.getName());
assertThat(lines.get(4)).isEqualTo("↑ ↓");
assertThat(lines.get(5)).startsWith("| two defined in " + InnerConfiguration.class.getName());
assertThat(lines.get(6)).isEqualTo("↑ ↓");
assertThat(lines.get(7)).startsWith("| three defined in " + CyclicBeanMethodsConfiguration.class.getName());
assertThat(lines.get(8)).isEqualTo("└─────┘");
assertThat(analysis.getAction()).isNotNull();
}
Domain
Subdomains
Source
Frequently Asked Questions
What does cyclicBeanMethods() do?
cyclicBeanMethods() is a function in the spring-boot codebase.
What does cyclicBeanMethods() call?
cyclicBeanMethods() calls 3 function(s): getAction, performAnalysis, readDescriptionLines.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free