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

load() — spring-boot Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  38fcd51b_94a7_2c31_802d_00debb8ea4a7["load()"]
  cc7b21fd_af18_99e3_4ae7_a4fad772838e["logWarningInDefaultPackage()"]
  cc7b21fd_af18_99e3_4ae7_a4fad772838e -->|calls| 38fcd51b_94a7_2c31_802d_00debb8ea4a7
  7ecbfd0a_607c_cb0a_4bf8_77bbbb301425["logWarningInDefaultPackageAndMetaAnnotation()"]
  7ecbfd0a_607c_cb0a_4bf8_77bbbb301425 -->|calls| 38fcd51b_94a7_2c31_802d_00debb8ea4a7
  5cfb0e18_d898_d90c_c839_484b37589ef3["noLogIfInRealPackage()"]
  5cfb0e18_d898_d90c_c839_484b37589ef3 -->|calls| 38fcd51b_94a7_2c31_802d_00debb8ea4a7
  d38870a6_9993_4eec_caa2_9bdedcf6668c["noLogWithoutComponentScanAnnotation()"]
  d38870a6_9993_4eec_caa2_9bdedcf6668c -->|calls| 38fcd51b_94a7_2c31_802d_00debb8ea4a7
  9c8df2ea_00c8_c111_be3d_bb90555a79bb["noLogIfHasValue()"]
  9c8df2ea_00c8_c111_be3d_bb90555a79bb -->|calls| 38fcd51b_94a7_2c31_802d_00debb8ea4a7
  afbb774e_f06e_ad9e_dd1f_711959b7b96c["noLogIfHasBasePackages()"]
  afbb774e_f06e_ad9e_dd1f_711959b7b96c -->|calls| 38fcd51b_94a7_2c31_802d_00debb8ea4a7
  c1f6b850_c816_04ec_3205_ef675180c8ce["noLogIfHasBasePackageClasses()"]
  c1f6b850_c816_04ec_3205_ef675180c8ce -->|calls| 38fcd51b_94a7_2c31_802d_00debb8ea4a7
  a0bebbde_3bc2_8cfb_f864_9e5bfbf69664["logWarningInOrgSpringPackage()"]
  a0bebbde_3bc2_8cfb_f864_9e5bfbf69664 -->|calls| 38fcd51b_94a7_2c31_802d_00debb8ea4a7
  8ea47247_b723_f826_71be_b59ecfd71dfa["logWarningIfScanningProblemPackages()"]
  8ea47247_b723_f826_71be_b59ecfd71dfa -->|calls| 38fcd51b_94a7_2c31_802d_00debb8ea4a7
  style 38fcd51b_94a7_2c31_802d_00debb8ea4a7 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

core/spring-boot/src/test/java/org/springframework/boot/context/ConfigurationWarningsApplicationContextInitializerTests.java lines 112–118

	private void load(Class<?> configClass) {
		try (AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext()) {
			new TestConfigurationWarningsApplicationContextInitializer().initialize(context);
			context.register(configClass);
			context.refresh();
		}
	}

Domain

Subdomains

Called By

  • logWarningIfScanningProblemPackages()
  • logWarningInDefaultPackage()
  • logWarningInDefaultPackageAndMetaAnnotation()
  • logWarningInOrgSpringPackage()
  • noLogIfHasBasePackageClasses()
  • noLogIfHasBasePackages()
  • noLogIfHasValue()
  • noLogIfInRealPackage()
  • noLogWithoutComponentScanAnnotation()

Frequently Asked Questions

What does load() do?
load() is a function in the spring-boot codebase.
What calls load()?
load() is called by 9 function(s): logWarningIfScanningProblemPackages, logWarningInDefaultPackage, logWarningInDefaultPackageAndMetaAnnotation, logWarningInOrgSpringPackage, noLogIfHasBasePackageClasses, noLogIfHasBasePackages, noLogIfHasValue, noLogIfInRealPackage, and 1 more.

Analyze Your Own Codebase

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

Try Supermodel Free