doSortByAfterAnnotation() — spring-boot Function Reference
Architecture documentation for the doSortByAfterAnnotation() function in AutoConfigurationSorter.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD c3aebe1c_7a2c_3042_6a93_0e62643c091d["doSortByAfterAnnotation()"] cefc8180_70b8_c319_e0e6_daa286f852d0["sortByAnnotation()"] cefc8180_70b8_c319_e0e6_daa286f852d0 -->|calls| c3aebe1c_7a2c_3042_6a93_0e62643c091d 729ade08_2fbb_d2fb_237c_e9b4e0b3857d["getClassesRequestedAfter()"] c3aebe1c_7a2c_3042_6a93_0e62643c091d -->|calls| 729ade08_2fbb_d2fb_237c_e9b4e0b3857d 86a334d1_212b_b7bd_1e1b_684ba56b6395["checkForCycles()"] c3aebe1c_7a2c_3042_6a93_0e62643c091d -->|calls| 86a334d1_212b_b7bd_1e1b_684ba56b6395 style c3aebe1c_7a2c_3042_6a93_0e62643c091d fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
core/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/AutoConfigurationSorter.java lines 96–112
private void doSortByAfterAnnotation(AutoConfigurationClasses classes, List<String> toSort, Set<String> sorted,
Set<String> processing, @Nullable String current) {
if (current == null) {
current = toSort.remove(0);
}
processing.add(current);
Set<String> afters = new TreeSet<>(Comparator.comparing(toSort::indexOf));
afters.addAll(classes.getClassesRequestedAfter(current));
for (String after : afters) {
checkForCycles(processing, current, after);
if (!sorted.contains(after) && toSort.contains(after)) {
doSortByAfterAnnotation(classes, toSort, sorted, processing, after);
}
}
processing.remove(current);
sorted.add(current);
}
Domain
Subdomains
Calls
- checkForCycles()
- getClassesRequestedAfter()
Called By
Source
Frequently Asked Questions
What does doSortByAfterAnnotation() do?
doSortByAfterAnnotation() is a function in the spring-boot codebase.
What does doSortByAfterAnnotation() call?
doSortByAfterAnnotation() calls 2 function(s): checkForCycles, getClassesRequestedAfter.
What calls doSortByAfterAnnotation()?
doSortByAfterAnnotation() is called by 1 function(s): sortByAnnotation.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free