load() — spring-boot Function Reference
Architecture documentation for the load() function in AutoConfigurationReplacements.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD 1bdd61b7_908b_2b88_ae0b_333672a51e90["load()"] b9cbcdb2_a861_df30_679d_fe52c856ddce["readReplacements()"] b9cbcdb2_a861_df30_679d_fe52c856ddce -->|calls| 1bdd61b7_908b_2b88_ae0b_333672a51e90 311363a9_06d4_a9f9_c1e6_cb14edeb1cfd["load()"] 1bdd61b7_908b_2b88_ae0b_333672a51e90 -->|calls| 311363a9_06d4_a9f9_c1e6_cb14edeb1cfd ebebf4bb_fbce_5669_972f_0c6832ca776d["decideClassloader()"] 1bdd61b7_908b_2b88_ae0b_333672a51e90 -->|calls| ebebf4bb_fbce_5669_972f_0c6832ca776d cd9a4ff0_5636_068d_df26_76fc4aca866d["findUrlsInClasspath()"] 1bdd61b7_908b_2b88_ae0b_333672a51e90 -->|calls| cd9a4ff0_5636_068d_df26_76fc4aca866d b9cbcdb2_a861_df30_679d_fe52c856ddce["readReplacements()"] 1bdd61b7_908b_2b88_ae0b_333672a51e90 -->|calls| b9cbcdb2_a861_df30_679d_fe52c856ddce 2f37eeb7_24f4_cb9d_80a0_dde7efe81ac8["AutoConfigurationReplacements()"] 1bdd61b7_908b_2b88_ae0b_333672a51e90 -->|calls| 2f37eeb7_24f4_cb9d_80a0_dde7efe81ac8 style 1bdd61b7_908b_2b88_ae0b_333672a51e90 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
core/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/AutoConfigurationReplacements.java lines 93–104
static AutoConfigurationReplacements load(Class<?> annotation, @Nullable ClassLoader classLoader) {
Assert.notNull(annotation, "'annotation' must not be null");
ClassLoader classLoaderToUse = decideClassloader(classLoader);
String location = String.format(LOCATION, annotation.getName());
Enumeration<URL> urls = findUrlsInClasspath(classLoaderToUse, location);
Map<String, String> replacements = new HashMap<>();
while (urls.hasMoreElements()) {
URL url = urls.nextElement();
replacements.putAll(readReplacements(url));
}
return new AutoConfigurationReplacements(replacements);
}
Domain
Subdomains
Calls
- AutoConfigurationReplacements()
- decideClassloader()
- findUrlsInClasspath()
- load()
- readReplacements()
Called By
- readReplacements()
Source
Frequently Asked Questions
What does load() do?
load() is a function in the spring-boot codebase.
What does load() call?
load() calls 5 function(s): AutoConfigurationReplacements, decideClassloader, findUrlsInClasspath, load, readReplacements.
What calls load()?
load() is called by 1 function(s): readReplacements.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free