getResourceLocation() — spring-boot Function Reference
Architecture documentation for the getResourceLocation() function in StandardConfigDataLocationResolver.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD 0e1789f8_582f_ee60_f6b5_92b72ca36255["getResourceLocation()"] d74908e0_5701_0efb_a7a4_37138f4d97dc["getReferences()"] d74908e0_5701_0efb_a7a4_37138f4d97dc -->|calls| 0e1789f8_582f_ee60_f6b5_92b72ca36255 b3c6c667_0087_d418_8712_c81742860443["getProfileSpecificReferences()"] b3c6c667_0087_d418_8712_c81742860443 -->|calls| 0e1789f8_582f_ee60_f6b5_92b72ca36255 a43f531a_0f66_5131_b565_e3171edbcc4e["resolveEmptyDirectories()"] a43f531a_0f66_5131_b565_e3171edbcc4e -->|calls| 0e1789f8_582f_ee60_f6b5_92b72ca36255 05d04b46_5ec5_aad4_5c12_46363dfd14d9["resolve()"] 05d04b46_5ec5_aad4_5c12_46363dfd14d9 -->|calls| 0e1789f8_582f_ee60_f6b5_92b72ca36255 da4c30e4_1dde_8232_db1e_2d68c42895f7["resolveNonPattern()"] da4c30e4_1dde_8232_db1e_2d68c42895f7 -->|calls| 0e1789f8_582f_ee60_f6b5_92b72ca36255 19d656bd_6301_6e0c_9a8a_c9727038f169["resolvePattern()"] 19d656bd_6301_6e0c_9a8a_c9727038f169 -->|calls| 0e1789f8_582f_ee60_f6b5_92b72ca36255 style 0e1789f8_582f_ee60_f6b5_92b72ca36255 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
core/spring-boot/src/main/java/org/springframework/boot/context/config/StandardConfigDataLocationResolver.java lines 165–179
private String getResourceLocation(ConfigDataLocationResolverContext context,
ConfigDataLocation configDataLocation) {
String resourceLocation = configDataLocation.getNonPrefixedValue(PREFIX);
boolean isFixedPath = resourceLocation.startsWith("/") || URL_PREFIX.matcher(resourceLocation).matches();
if (isFixedPath) {
return resourceLocation;
}
ConfigDataResource parent = context.getParent();
if (parent instanceof StandardConfigDataResource resource) {
String parentResourceLocation = resource.getReference().getResourceLocation();
String parentDirectory = parentResourceLocation.substring(0, parentResourceLocation.lastIndexOf("/") + 1);
return parentDirectory + resourceLocation;
}
return resourceLocation;
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does getResourceLocation() do?
getResourceLocation() is a function in the spring-boot codebase.
What calls getResourceLocation()?
getResourceLocation() is called by 6 function(s): getProfileSpecificReferences, getReferences, resolve, resolveEmptyDirectories, resolveNonPattern, resolvePattern.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free