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

loadOverride() — spring-boot Function Reference

Architecture documentation for the loadOverride() function in Log4J2LoggingSystem.java from the spring-boot codebase.

Function java GradlePlugin RunTasks calls 2 called by 1

Entity Profile

Dependency Diagram

graph TD
  5ba3f868_a29c_7e6a_f220_04c9036b258c["loadOverride()"]
  6c72df89_25e5_64d0_2ed8_884a54431f88["reconfigure()"]
  6c72df89_25e5_64d0_2ed8_884a54431f88 -->|calls| 5ba3f868_a29c_7e6a_f220_04c9036b258c
  1713cec4_0f07_a26a_cf7f_ab9b57549a5a["load()"]
  5ba3f868_a29c_7e6a_f220_04c9036b258c -->|calls| 1713cec4_0f07_a26a_cf7f_ab9b57549a5a
  5ea8357e_a689_1ed1_dd1d_d85bc3ac4c59["getResource()"]
  5ba3f868_a29c_7e6a_f220_04c9036b258c -->|calls| 5ea8357e_a689_1ed1_dd1d_d85bc3ac4c59
  style 5ba3f868_a29c_7e6a_f220_04c9036b258c fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

core/spring-boot/src/main/java/org/springframework/boot/logging/log4j2/Log4J2LoggingSystem.java lines 319–331

	private @Nullable Configuration loadOverride(ResourceLoader resourceLoader, String location) throws IOException {
		if (location.startsWith(OPTIONAL_PREFIX)) {
			String actualLocation = location.substring(OPTIONAL_PREFIX.length());
			Resource resource = resourceLoader.getResource(actualLocation);
			try {
				return (resource.exists()) ? load(resourceLoader, actualLocation) : null;
			}
			catch (FileNotFoundException ex) {
				return null;
			}
		}
		return load(resourceLoader, location);
	}

Domain

Subdomains

Called By

Frequently Asked Questions

What does loadOverride() do?
loadOverride() is a function in the spring-boot codebase.
What does loadOverride() call?
loadOverride() calls 2 function(s): getResource, load.
What calls loadOverride()?
loadOverride() is called by 1 function(s): reconfigure.

Analyze Your Own Codebase

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

Try Supermodel Free