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

load() — spring-boot Function Reference

Architecture documentation for the load() function in ImportCandidates.java from the spring-boot codebase.

Function java GradlePlugin AotProcessing calls 4 called by 6

Entity Profile

Dependency Diagram

graph TD
  311363a9_06d4_a9f9_c1e6_cb14edeb1cfd["load()"]
  9fb6443a_65a0_02e6_e9f4_cc7628fb3a32["getAutoConfigurations()"]
  9fb6443a_65a0_02e6_e9f4_cc7628fb3a32 -->|calls| 311363a9_06d4_a9f9_c1e6_cb14edeb1cfd
  176366f6_e811_b56e_b512_92d1f8ff5965["getCandidateConfigurations()"]
  176366f6_e811_b56e_b512_92d1f8ff5965 -->|calls| 311363a9_06d4_a9f9_c1e6_cb14edeb1cfd
  a4198603_8163_f356_e075_a2fd8e1afe27["getAutoConfigurationReplacements()"]
  a4198603_8163_f356_e075_a2fd8e1afe27 -->|calls| 311363a9_06d4_a9f9_c1e6_cb14edeb1cfd
  1bdd61b7_908b_2b88_ae0b_333672a51e90["load()"]
  1bdd61b7_908b_2b88_ae0b_333672a51e90 -->|calls| 311363a9_06d4_a9f9_c1e6_cb14edeb1cfd
  c94764be_4db2_03c3_de29_34fcd2121fea["loadFactoryNames()"]
  c94764be_4db2_03c3_de29_34fcd2121fea -->|calls| 311363a9_06d4_a9f9_c1e6_cb14edeb1cfd
  fe6b6f5b_1914_289c_7ec3_e6fa89b9425c["getAutoConfigurationClassNames()"]
  fe6b6f5b_1914_289c_7ec3_e6fa89b9425c -->|calls| 311363a9_06d4_a9f9_c1e6_cb14edeb1cfd
  0999d043_4e2a_bf50_3c59_cba9108b5efb["decideClassloader()"]
  311363a9_06d4_a9f9_c1e6_cb14edeb1cfd -->|calls| 0999d043_4e2a_bf50_3c59_cba9108b5efb
  c7ab534f_0985_5ed9_9da1_bd362b2d08df["findUrlsInClasspath()"]
  311363a9_06d4_a9f9_c1e6_cb14edeb1cfd -->|calls| c7ab534f_0985_5ed9_9da1_bd362b2d08df
  a0a7a4d8_87c2_c9ad_4339_02a43374192c["readCandidateConfigurations()"]
  311363a9_06d4_a9f9_c1e6_cb14edeb1cfd -->|calls| a0a7a4d8_87c2_c9ad_4339_02a43374192c
  f2e2152a_278c_369e_267f_5d9594525bc4["ImportCandidates()"]
  311363a9_06d4_a9f9_c1e6_cb14edeb1cfd -->|calls| f2e2152a_278c_369e_267f_5d9594525bc4
  style 311363a9_06d4_a9f9_c1e6_cb14edeb1cfd fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

core/spring-boot/src/main/java/org/springframework/boot/context/annotation/ImportCandidates.java lines 81–92

	public static ImportCandidates load(Class<?> annotation, @Nullable ClassLoader classLoader) {
		Assert.notNull(annotation, "'annotation' must not be null");
		ClassLoader classLoaderToUse = decideClassloader(classLoader);
		String location = String.format(LOCATION, annotation.getName());
		Enumeration<URL> urls = findUrlsInClasspath(classLoaderToUse, location);
		List<String> importCandidates = new ArrayList<>();
		while (urls.hasMoreElements()) {
			URL url = urls.nextElement();
			importCandidates.addAll(readCandidateConfigurations(url));
		}
		return new ImportCandidates(importCandidates);
	}

Domain

Subdomains

Calls

Frequently Asked Questions

What does load() do?
load() is a function in the spring-boot codebase.
What does load() call?
load() calls 4 function(s): ImportCandidates, decideClassloader, findUrlsInClasspath, readCandidateConfigurations.
What calls load()?
load() is called by 6 function(s): getAutoConfigurationClassNames, getAutoConfigurationReplacements, getAutoConfigurations, getCandidateConfigurations, load, loadFactoryNames.

Analyze Your Own Codebase

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

Try Supermodel Free