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

getCandidateConfigurations() — spring-boot Function Reference

Architecture documentation for the getCandidateConfigurations() function in AutoConfigurationImportSelector.java from the spring-boot codebase.

Function java GradlePlugin RunTasks calls 3 called by 1

Entity Profile

Dependency Diagram

graph TD
  176366f6_e811_b56e_b512_92d1f8ff5965["getCandidateConfigurations()"]
  2b819520_cb0d_6d14_607c_2d5f769419bd["getAutoConfigurationEntry()"]
  2b819520_cb0d_6d14_607c_2d5f769419bd -->|calls| 176366f6_e811_b56e_b512_92d1f8ff5965
  311363a9_06d4_a9f9_c1e6_cb14edeb1cfd["load()"]
  176366f6_e811_b56e_b512_92d1f8ff5965 -->|calls| 311363a9_06d4_a9f9_c1e6_cb14edeb1cfd
  9dbad690_8d27_ee4c_aed8_e1413789413b["getBeanClassLoader()"]
  176366f6_e811_b56e_b512_92d1f8ff5965 -->|calls| 9dbad690_8d27_ee4c_aed8_e1413789413b
  ffb23b70_9e03_424c_e02a_3ae6ddefb86e["getCandidates()"]
  176366f6_e811_b56e_b512_92d1f8ff5965 -->|calls| ffb23b70_9e03_424c_e02a_3ae6ddefb86e
  style 176366f6_e811_b56e_b512_92d1f8ff5965 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

core/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/AutoConfigurationImportSelector.java lines 200–210

	protected List<String> getCandidateConfigurations(AnnotationMetadata metadata,
			@Nullable AnnotationAttributes attributes) {
		ImportCandidates importCandidates = ImportCandidates.load(this.autoConfigurationAnnotation,
				getBeanClassLoader());
		List<String> configurations = importCandidates.getCandidates();
		Assert.state(!CollectionUtils.isEmpty(configurations),
				"No auto configuration classes found in " + "META-INF/spring/"
						+ this.autoConfigurationAnnotation.getName() + ".imports. If you "
						+ "are using a custom packaging, make sure that file is correct.");
		return configurations;
	}

Domain

Subdomains

Calls

Frequently Asked Questions

What does getCandidateConfigurations() do?
getCandidateConfigurations() is a function in the spring-boot codebase.
What does getCandidateConfigurations() call?
getCandidateConfigurations() calls 3 function(s): getBeanClassLoader, getCandidates, load.
What calls getCandidateConfigurations()?
getCandidateConfigurations() is called by 1 function(s): getAutoConfigurationEntry.

Analyze Your Own Codebase

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

Try Supermodel Free