getResource() — spring-boot Function Reference
Architecture documentation for the getResource() function in ApplicationResourceLoaderTests.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD 95330da1_28ff_3510_63f7_4bf925e5a555["getResource()"] 071285fc_597f_02b0_556c_35d8d9a5fdac["getResource()"] 071285fc_597f_02b0_556c_35d8d9a5fdac -->|calls| 95330da1_28ff_3510_63f7_4bf925e5a555 83564f03_9132_2c74_6dba_47b2498c5b8b["getIncludesProtocolResolvers()"] 83564f03_9132_2c74_6dba_47b2498c5b8b -->|calls| 95330da1_28ff_3510_63f7_4bf925e5a555 efaa1ea2_6ce7_8ae4_6f5a_0ee716fe3e70["shouldLoadAbsolutePath()"] efaa1ea2_6ce7_8ae4_6f5a_0ee716fe3e70 -->|calls| 95330da1_28ff_3510_63f7_4bf925e5a555 dca0737f_a6c1_ce9d_7923_4f7d67bf1b01["shouldLoadAbsolutePathWithWorkingDirectory()"] dca0737f_a6c1_ce9d_7923_4f7d67bf1b01 -->|calls| 95330da1_28ff_3510_63f7_4bf925e5a555 404045a0_0244_f7be_db02_19c9ee837b6a["shouldLoadRelativeFilename()"] 404045a0_0244_f7be_db02_19c9ee837b6a -->|calls| 95330da1_28ff_3510_63f7_4bf925e5a555 23862b48_4f06_ad56_bff0_2e5499e33ca1["shouldLoadRelativeFilenameWithWorkingDirectory()"] 23862b48_4f06_ad56_bff0_2e5499e33ca1 -->|calls| 95330da1_28ff_3510_63f7_4bf925e5a555 b1733cba_6271_4d82_a8c2_4d51ce5a7a34["shouldLoadRelativePathWithWorkingDirectory()"] b1733cba_6271_4d82_a8c2_4d51ce5a7a34 -->|calls| 95330da1_28ff_3510_63f7_4bf925e5a555 a86b5407_de59_3481_0677_8347cec23441["shouldLoadClasspathLocations()"] a86b5407_de59_3481_0677_8347cec23441 -->|calls| 95330da1_28ff_3510_63f7_4bf925e5a555 dbe5a283_44f9_955c_097c_4e76541fd843["shouldLoadNonExistentClasspathLocations()"] dbe5a283_44f9_955c_097c_4e76541fd843 -->|calls| 95330da1_28ff_3510_63f7_4bf925e5a555 ed06ed5c_8ee4_18b4_d94f_ee2db5c1ca02["shouldLoadClasspathLocationsWithWorkingDirectory()"] ed06ed5c_8ee4_18b4_d94f_ee2db5c1ca02 -->|calls| 95330da1_28ff_3510_63f7_4bf925e5a555 f9f93198_e889_ac29_ce1d_1ed2a88756c2["shouldLoadNonExistentClasspathLocationsWithWorkingDirectory()"] f9f93198_e889_ac29_ce1d_1ed2a88756c2 -->|calls| 95330da1_28ff_3510_63f7_4bf925e5a555 6ed0c19e_ee84_1949_b6e1_a66c42bffa57["shouldLoadRelativeFileUris()"] 6ed0c19e_ee84_1949_b6e1_a66c42bffa57 -->|calls| 95330da1_28ff_3510_63f7_4bf925e5a555 68b6f92b_3b92_0200_8669_48598f2ebd53["shouldLoadAbsoluteFileUris()"] 68b6f92b_3b92_0200_8669_48598f2ebd53 -->|calls| 95330da1_28ff_3510_63f7_4bf925e5a555 63d38787_caef_3245_bdf0_543e84ce7e31["shouldLoadRelativeFileUrisWithWorkingDirectory()"] 63d38787_caef_3245_bdf0_543e84ce7e31 -->|calls| 95330da1_28ff_3510_63f7_4bf925e5a555 style 95330da1_28ff_3510_63f7_4bf925e5a555 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
core/spring-boot/src/test/java/org/springframework/boot/io/ApplicationResourceLoaderTests.java lines 357–361
@Override
public Resource getResource(String location) {
return (!"spring".equals(location)) ? super.getResource(location)
: new ByteArrayResource("boot".getBytes(StandardCharsets.UTF_8));
}
Domain
Subdomains
Calls
- getResource()
Called By
- getIncludesProtocolResolvers()
- getResource()
- getResourceWhenPathIsAbsolute()
- getResourceWhenPathIsNull()
- getResourceWhenPathIsRelative()
- getResourceWithPreferFileResolutionWhenExplicitClassPathPrefix()
- getResourceWithPreferFileResolutionWhenFullPathWithClassPathResource()
- getResourceWithPreferFileResolutionWhenRelativePathWithClassPathResource()
- getWithClassPathAndSpringFactoriesLoaderIncludesProtocolResolvers()
- getWithClassPathIncludesProtocolResolvers()
- getWithClassPathWhenClassPathIsNullIncludesProtocolResolvers()
- getWithResourceLoaderAndSpringFactoriesLoaderIncludesProtocolResolvers()
- getWithResourceLoaderDelegatesLoading()
- getWithResourceLoaderIncludesProtocolResolvers()
- shouldLoadAbsoluteFileUris()
- shouldLoadAbsoluteFileUrisWithWorkingDirectory()
- shouldLoadAbsolutePath()
- shouldLoadAbsolutePathWithWorkingDirectory()
- shouldLoadClasspathLocations()
- shouldLoadClasspathLocationsWithWorkingDirectory()
- shouldLoadNonExistentClasspathLocations()
- shouldLoadNonExistentClasspathLocationsWithWorkingDirectory()
- shouldLoadRelativeFileUris()
- shouldLoadRelativeFileUrisWithWorkingDirectory()
- shouldLoadRelativeFilename()
- shouldLoadRelativeFilenameWithWorkingDirectory()
- shouldLoadRelativePathWithWorkingDirectory()
Source
Frequently Asked Questions
What does getResource() do?
getResource() is a function in the spring-boot codebase.
What does getResource() call?
getResource() calls 1 function(s): getResource.
What calls getResource()?
getResource() is called by 27 function(s): getIncludesProtocolResolvers, getResource, getResourceWhenPathIsAbsolute, getResourceWhenPathIsNull, getResourceWhenPathIsRelative, getResourceWithPreferFileResolutionWhenExplicitClassPathPrefix, getResourceWithPreferFileResolutionWhenFullPathWithClassPathResource, getResourceWithPreferFileResolutionWhenRelativePathWithClassPathResource, and 19 more.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free