Home / Function/ sortByAnnotation() — spring-boot Function Reference

sortByAnnotation() — spring-boot Function Reference

Architecture documentation for the sortByAnnotation() function in AutoConfigurationSorter.java from the spring-boot codebase.

Function java GradlePlugin DslExtensions calls 2 called by 1

Entity Profile

Dependency Diagram

graph TD
  cefc8180_70b8_c319_e0e6_daa286f852d0["sortByAnnotation()"]
  fb65f121_a16c_3774_1533_6a74dc497848["getInPriorityOrder()"]
  fb65f121_a16c_3774_1533_6a74dc497848 -->|calls| cefc8180_70b8_c319_e0e6_daa286f852d0
  4553b23c_edd8_56aa_1180_c8f844b34d5e["getAllNames()"]
  cefc8180_70b8_c319_e0e6_daa286f852d0 -->|calls| 4553b23c_edd8_56aa_1180_c8f844b34d5e
  c3aebe1c_7a2c_3042_6a93_0e62643c091d["doSortByAfterAnnotation()"]
  cefc8180_70b8_c319_e0e6_daa286f852d0 -->|calls| c3aebe1c_7a2c_3042_6a93_0e62643c091d
  style cefc8180_70b8_c319_e0e6_daa286f852d0 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

core/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/AutoConfigurationSorter.java lines 84–94

	private List<String> sortByAnnotation(AutoConfigurationClasses classes, List<String> classNames) {
		List<String> toSort = new ArrayList<>(classNames);
		toSort.addAll(classes.getAllNames());
		Set<String> sorted = new LinkedHashSet<>();
		Set<String> processing = new LinkedHashSet<>();
		while (!toSort.isEmpty()) {
			doSortByAfterAnnotation(classes, toSort, sorted, processing, null);
		}
		sorted.retainAll(classNames);
		return new ArrayList<>(sorted);
	}

Domain

Subdomains

Calls

Frequently Asked Questions

What does sortByAnnotation() do?
sortByAnnotation() is a function in the spring-boot codebase.
What does sortByAnnotation() call?
sortByAnnotation() calls 2 function(s): doSortByAfterAnnotation, getAllNames.
What calls sortByAnnotation()?
sortByAnnotation() is called by 1 function(s): getInPriorityOrder.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free