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

load() — spring-boot Function Reference

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

Function java GradlePlugin RunTasks calls 4 called by 38

Entity Profile

Dependency Diagram

graph TD
  60f23964_a964_410e_add0_9e7ca52f38f9["load()"]
  c41bd5a0_8afc_8a64_8a6f_ff0cd8f80c4d["allPropertiesAreDefined()"]
  c41bd5a0_8afc_8a64_8a6f_ff0cd8f80c4d -->|calls| 60f23964_a964_410e_add0_9e7ca52f38f9
  95d73fa6_bdc0_0199_27fa_196bce2fdcbd["notAllPropertiesAreDefined()"]
  95d73fa6_bdc0_0199_27fa_196bce2fdcbd -->|calls| 60f23964_a964_410e_add0_9e7ca52f38f9
  e95fdece_8e94_e2a8_fd4f_ca4dcf835632["propertyValueEqualsFalse()"]
  e95fdece_8e94_e2a8_fd4f_ca4dcf835632 -->|calls| 60f23964_a964_410e_add0_9e7ca52f38f9
  898cc052_080e_413c_fc1b_b617634b173e["propertyValueEqualsFALSE()"]
  898cc052_080e_413c_fc1b_b617634b173e -->|calls| 60f23964_a964_410e_add0_9e7ca52f38f9
  c6e6e49f_3412_1e63_8d35_d860445b0337["relaxedName()"]
  c6e6e49f_3412_1e63_8d35_d860445b0337 -->|calls| 60f23964_a964_410e_add0_9e7ca52f38f9
  e32725e6_9258_6d55_3611_f4b666ed0153["prefixWithoutPeriod()"]
  e32725e6_9258_6d55_3611_f4b666ed0153 -->|calls| 60f23964_a964_410e_add0_9e7ca52f38f9
  4c30baae_20d7_7882_8a53_897de3b84e4c["enabledIfNotConfiguredOtherwise()"]
  4c30baae_20d7_7882_8a53_897de3b84e4c -->|calls| 60f23964_a964_410e_add0_9e7ca52f38f9
  0aa830be_3911_9b1d_2638_c3c6ac3ad126["enabledIfNotConfiguredOtherwiseWithConfig()"]
  0aa830be_3911_9b1d_2638_c3c6ac3ad126 -->|calls| 60f23964_a964_410e_add0_9e7ca52f38f9
  fd7156d6_5541_a739_01af_f97293469c25["enabledIfNotConfiguredOtherwiseWithConfigDifferentCase()"]
  fd7156d6_5541_a739_01af_f97293469c25 -->|calls| 60f23964_a964_410e_add0_9e7ca52f38f9
  e4ee4aeb_8644_5684_05fc_822ecf82232a["disableIfNotConfiguredOtherwise()"]
  e4ee4aeb_8644_5684_05fc_822ecf82232a -->|calls| 60f23964_a964_410e_add0_9e7ca52f38f9
  59ea847b_2407_784c_6c10_f61d7b688b74["disableIfNotConfiguredOtherwiseWithConfig()"]
  59ea847b_2407_784c_6c10_f61d7b688b74 -->|calls| 60f23964_a964_410e_add0_9e7ca52f38f9
  f35dbd3e_c24e_2264_10ef_f2c366e5a694["disableIfNotConfiguredOtherwiseWithConfigDifferentCase()"]
  f35dbd3e_c24e_2264_10ef_f2c366e5a694 -->|calls| 60f23964_a964_410e_add0_9e7ca52f38f9
  d045a4a3_5875_6e54_e39a_73e59d639a29["simpleValueIsSet()"]
  d045a4a3_5875_6e54_e39a_73e59d639a29 -->|calls| 60f23964_a964_410e_add0_9e7ca52f38f9
  3059ea23_d98f_68bb_d56b_ee966ada61cb["caseInsensitive()"]
  3059ea23_d98f_68bb_d56b_ee966ada61cb -->|calls| 60f23964_a964_410e_add0_9e7ca52f38f9
  style 60f23964_a964_410e_add0_9e7ca52f38f9 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

core/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/condition/ConditionalOnPropertyTests.java lines 312–317

	private void load(Class<?> config, String... environment) {
		TestPropertyValues.of(environment).applyTo(this.environment);
		this.context = new SpringApplicationBuilder(config).environment(this.environment)
			.web(WebApplicationType.NONE)
			.run();
	}

Domain

Subdomains

Called By

  • allPropertiesAreDefined()
  • caseInsensitive()
  • defaultValueIsNotSet()
  • defaultValueIsSet()
  • defaultValueIsSetDifferentValue()
  • disableIfNotConfiguredOtherwise()
  • disableIfNotConfiguredOtherwiseWithConfig()
  • disableIfNotConfiguredOtherwiseWithConfigDifferentCase()
  • enabledIfNotConfiguredOtherwise()
  • enabledIfNotConfiguredOtherwiseWithConfig()
  • enabledIfNotConfiguredOtherwiseWithConfigDifferentCase()
  • metaAndDirectAnnotationConditionDoesNotMatchWhenNeitherPropertyIsSet()
  • metaAndDirectAnnotationConditionDoesNotMatchWhenOnlyDirectPropertyIsSet()
  • metaAndDirectAnnotationConditionDoesNotMatchWhenOnlyMetaPropertyIsSet()
  • metaAndDirectAnnotationConditionMatchesWhenBothPropertiesAreSet()
  • metaAndDirectAnnotationWithAliasConditionDoesNotMatchWhenOnlyDirectPropertyIsSet()
  • metaAndDirectAnnotationWithAliasConditionDoesNotMatchWhenOnlyMetaPropertyIsSet()
  • metaAndDirectAnnotationWithAliasConditionMatchesWhenBothPropertiesAreSet()
  • metaAnnotationConditionDoesNotMatchWhenPropertyIsNotSet()
  • metaAnnotationConditionMatchesWhenPropertyIsSet()
  • metaAnnotationWithAliasConditionMatchesWhenPropertyIsSet()
  • multiValuesAllSet()
  • multiValuesOnlyOneSet()
  • multiplePropertiesConditionReportWhenDoesNotMatch()
  • multiplePropertiesConditionReportWhenMatched()
  • nameAndValueMustNotBeSpecified()
  • nameOrValueMustBeSpecified()
  • notAllPropertiesAreDefined()
  • prefix()
  • prefixWithoutPeriod()
  • propertyValueEqualsFALSE()
  • propertyValueEqualsFalse()
  • relaxedEnabledByDefault()
  • relaxedName()
  • repeatablePropertiesConditionReportWhenDoesNotMatch()
  • repeatablePropertiesConditionReportWhenMatched()
  • simpleValueIsSet()
  • usingValueAttribute()

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): SpringApplicationBuilder, environment, run, web.
What calls load()?
load() is called by 38 function(s): allPropertiesAreDefined, caseInsensitive, defaultValueIsNotSet, defaultValueIsSet, defaultValueIsSetDifferentValue, disableIfNotConfiguredOtherwise, disableIfNotConfiguredOtherwiseWithConfig, disableIfNotConfiguredOtherwiseWithConfigDifferentCase, and 30 more.

Analyze Your Own Codebase

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

Try Supermodel Free