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

load() — spring-boot Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  cdd25aba_3019_3aaf_fc56_a935513d2f02["load()"]
  04ff4f7a_262d_0070_d76c_39da2b37eafd["getBootstrapContext()"]
  cdd25aba_3019_3aaf_fc56_a935513d2f02 -->|calls| 04ff4f7a_262d_0070_d76c_39da2b37eafd
  5857cc95_b0b1_f97b_a2b7_e33296873fe3["LoaderHelper()"]
  cdd25aba_3019_3aaf_fc56_a935513d2f02 -->|calls| 5857cc95_b0b1_f97b_a2b7_e33296873fe3
  c90d60de_6e4d_b157_5121_acbc78d427f0["get()"]
  cdd25aba_3019_3aaf_fc56_a935513d2f02 -->|calls| c90d60de_6e4d_b157_5121_acbc78d427f0
  style cdd25aba_3019_3aaf_fc56_a935513d2f02 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

core/spring-boot/src/test/java/org/springframework/boot/context/config/TestConfigDataBootstrap.java lines 65–75

		@Override
		public ConfigData load(ConfigDataLoaderContext context, Resource location) throws IOException {
			context.getBootstrapContext()
				.registerIfAbsent(LoaderHelper.class,
						(bootstrapContext) -> new LoaderHelper(location, () -> bootstrapContext.get(Binder.class)));
			LoaderHelper helper = context.getBootstrapContext().get(LoaderHelper.class);
			assertThat(helper).isNotNull();
			context.getBootstrapContext().addCloseListener(helper);
			return new ConfigData(
					Collections.singleton(new MapPropertySource("loaded", Collections.singletonMap("test", "test"))));
		}

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 3 function(s): LoaderHelper, get, getBootstrapContext.

Analyze Your Own Codebase

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

Try Supermodel Free