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

getClassLoader() — spring-boot Function Reference

Architecture documentation for the getClassLoader() function in SpringApplication.java from the spring-boot codebase.

Entity Profile

Dependency Diagram

graph TD
  be22d695_81d3_ca24_90d4_9385a402a390["getClassLoader()"]
  be6f5284_4891_57c6_72a4_fd3fc0c8c35a["prepareEnvironment()"]
  be6f5284_4891_57c6_72a4_fd3fc0c8c35a -->|calls| be22d695_81d3_ca24_90d4_9385a402a390
  0119a9ba_0727_f255_b897_e77e52781c8e["addAotGeneratedInitializerIfNecessary()"]
  0119a9ba_0727_f255_b897_e77e52781c8e -->|calls| be22d695_81d3_ca24_90d4_9385a402a390
  cd9c8607_3f04_b36a_a46e_cbbbb3b5ed2a["getSpringFactoriesInstances()"]
  cd9c8607_3f04_b36a_a46e_cbbbb3b5ed2a -->|calls| be22d695_81d3_ca24_90d4_9385a402a390
  9dacb577_985f_f330_5af8_e845e130acd7["postProcessApplicationContext()"]
  9dacb577_985f_f330_5af8_e845e130acd7 -->|calls| be22d695_81d3_ca24_90d4_9385a402a390
  ed562ac1_4cc1_2b33_9c91_d96b789b8686["create()"]
  ed562ac1_4cc1_2b33_9c91_d96b789b8686 -->|calls| be22d695_81d3_ca24_90d4_9385a402a390
  03294e81_b264_aeb7_b8a2_6bcb8891af7a["onApplicationStartingEvent()"]
  03294e81_b264_aeb7_b8a2_6bcb8891af7a -->|calls| be22d695_81d3_ca24_90d4_9385a402a390
  a34e7b09_f065_7373_f4bc_df6d5d30ee39["onApplicationEnvironmentPreparedEvent()"]
  a34e7b09_f065_7373_f4bc_df6d5d30ee39 -->|calls| be22d695_81d3_ca24_90d4_9385a402a390
  9e5cfe99_fb0f_5eaa_86d0_87c68a59eab9["getEnvironmentPostProcessors()"]
  9e5cfe99_fb0f_5eaa_86d0_87c68a59eab9 -->|calls| be22d695_81d3_ca24_90d4_9385a402a390
  61b5eb2a_0b07_03e0_e756_9db25a4522b9["addAotGeneratedEnvironmentPostProcessorIfNecessary()"]
  61b5eb2a_0b07_03e0_e756_9db25a4522b9 -->|calls| be22d695_81d3_ca24_90d4_9385a402a390
  adaac1a4_7719_7f1c_4f18_0ce9d3d1d367["deregisterJdbcDrivers()"]
  adaac1a4_7719_7f1c_4f18_0ce9d3d1d367 -->|calls| be22d695_81d3_ca24_90d4_9385a402a390
  a41e73af_d5e1_9428_0bf9_f96a3c5d360c["shutDownSharedReactorSchedulers()"]
  a41e73af_d5e1_9428_0bf9_f96a3c5d360c -->|calls| be22d695_81d3_ca24_90d4_9385a402a390
  f4ec6e49_f7c4_00af_b617_396b4f475602["contextWithClassLoader()"]
  f4ec6e49_f7c4_00af_b617_396b4f475602 -->|calls| be22d695_81d3_ca24_90d4_9385a402a390
  0f4ca81c_9070_fd1b_248e_3ff5187b9805["parentContextWithClassLoader()"]
  0f4ca81c_9070_fd1b_248e_3ff5187b9805 -->|calls| be22d695_81d3_ca24_90d4_9385a402a390
  28ce2ea1_aa63_7f72_7c4d_6c9b285e928e["customApplicationWithResourceLoader()"]
  28ce2ea1_aa63_7f72_7c4d_6c9b285e928e -->|calls| be22d695_81d3_ca24_90d4_9385a402a390
  style be22d695_81d3_ca24_90d4_9385a402a390 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

core/spring-boot/src/main/java/org/springframework/boot/SpringApplication.java lines 715–724

	public ClassLoader getClassLoader() {
		if (this.resourceLoader != null) {
			ClassLoader classLoader = this.resourceLoader.getClassLoader();
			Assert.state(classLoader != null, "No classloader found");
			return classLoader;
		}
		ClassLoader classLoader = ClassUtils.getDefaultClassLoader();
		Assert.state(classLoader != null, "No classloader found");
		return classLoader;
	}

Domain

Subdomains

Frequently Asked Questions

What does getClassLoader() do?
getClassLoader() is a function in the spring-boot codebase.
What calls getClassLoader()?
getClassLoader() is called by 19 function(s): addAotGeneratedEnvironmentPostProcessorIfNecessary, addAotGeneratedInitializerIfNecessary, contextWithClassLoader, create, createWithClassNamesAndClassLoaderListCreatesFactory, createsSinglePostProcessorWithClassLoader, customApplicationWithResourceLoader, deregisterJdbcDrivers, and 11 more.

Analyze Your Own Codebase

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

Try Supermodel Free