cycleReferencedViaOtherBeans() — spring-boot Function Reference
Architecture documentation for the cycleReferencedViaOtherBeans() function in BeanCurrentlyInCreationFailureAnalyzerTests.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD 3d91b664_b3a6_ee92_ed46_3175e7b386aa["cycleReferencedViaOtherBeans()"] e3512328_d1bb_71b9_929e_ae0e03cc496c["performAnalysis()"] 3d91b664_b3a6_ee92_ed46_3175e7b386aa -->|calls| e3512328_d1bb_71b9_929e_ae0e03cc496c fa1cbc7c_dc65_7706_d08a_c9aadfe5feac["readDescriptionLines()"] 3d91b664_b3a6_ee92_ed46_3175e7b386aa -->|calls| fa1cbc7c_dc65_7706_d08a_c9aadfe5feac 605de42f_f10b_07d1_fb50_650ebdb8f058["refererOne()"] 3d91b664_b3a6_ee92_ed46_3175e7b386aa -->|calls| 605de42f_f10b_07d1_fb50_650ebdb8f058 77dcb252_fdac_8859_bf26_c91ca26bc0a6["refererTwo()"] 3d91b664_b3a6_ee92_ed46_3175e7b386aa -->|calls| 77dcb252_fdac_8859_bf26_c91ca26bc0a6 1a4e5320_a2e2_8aa5_7d05_1e805db190f1["getAction()"] 3d91b664_b3a6_ee92_ed46_3175e7b386aa -->|calls| 1a4e5320_a2e2_8aa5_7d05_1e805db190f1 style 3d91b664_b3a6_ee92_ed46_3175e7b386aa fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
core/spring-boot/src/test/java/org/springframework/boot/diagnostics/analyzer/BeanCurrentlyInCreationFailureAnalyzerTests.java lines 93–115
@Test
void cycleReferencedViaOtherBeans() throws IOException {
FailureAnalysis analysis = performAnalysis(CycleReferencedViaOtherBeansConfiguration.class);
List<String> lines = readDescriptionLines(analysis);
assertThat(lines).hasSize(12);
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)).contains("refererOne (field " + RefererTwo.class.getName());
assertThat(lines.get(3)).isEqualTo(" ↓");
assertThat(lines.get(4)).contains("refererTwo (field " + BeanOne.class.getName());
assertThat(lines.get(5)).isEqualTo("┌─────┐");
assertThat(lines.get(6))
.startsWith("| one defined in " + CycleReferencedViaOtherBeansConfiguration.class.getName());
assertThat(lines.get(7)).isEqualTo("↑ ↓");
assertThat(lines.get(8))
.startsWith("| two defined in " + CycleReferencedViaOtherBeansConfiguration.class.getName());
assertThat(lines.get(9)).isEqualTo("↑ ↓");
assertThat(lines.get(10))
.startsWith("| three defined in " + CycleReferencedViaOtherBeansConfiguration.class.getName());
assertThat(lines.get(11)).isEqualTo("└─────┘");
assertThat(analysis.getAction()).isNotNull();
}
Domain
Subdomains
Calls
- getAction()
- performAnalysis()
- readDescriptionLines()
- refererOne()
- refererTwo()
Source
Frequently Asked Questions
What does cycleReferencedViaOtherBeans() do?
cycleReferencedViaOtherBeans() is a function in the spring-boot codebase.
What does cycleReferencedViaOtherBeans() call?
cycleReferencedViaOtherBeans() calls 5 function(s): getAction, performAnalysis, readDescriptionLines, refererOne, refererTwo.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free