pathToResource() — spring-boot Function Reference
Architecture documentation for the pathToResource() function in DockerConfigurationMetadataTests.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD 388f2f24_399d_a1d4_03c9_8e8fd2b6d293["pathToResource()"] 68ca7eeb_abe9_5436_479b_98a70be7ae2d["configWithContextIsRead()"] 68ca7eeb_abe9_5436_479b_98a70be7ae2d -->|calls| 388f2f24_399d_a1d4_03c9_8e8fd2b6d293 de15c365_0174_f1e0_ceee_b3d7c0351c76["configWithoutContextIsRead()"] de15c365_0174_f1e0_ceee_b3d7c0351c76 -->|calls| 388f2f24_399d_a1d4_03c9_8e8fd2b6d293 f9596714_c500_1614_c51c_c992cb0f291a["configWithDefaultContextIsRead()"] f9596714_c500_1614_c51c_c992cb0f291a -->|calls| 388f2f24_399d_a1d4_03c9_8e8fd2b6d293 d31adc1c_77cb_8d9d_1a4d_f14088562172["configIsReadWithProvidedContext()"] d31adc1c_77cb_8d9d_1a4d_f14088562172 -->|calls| 388f2f24_399d_a1d4_03c9_8e8fd2b6d293 4b24210a_4165_dce2_b62a_1907f165f1d5["invalidContextThrowsException()"] 4b24210a_4165_dce2_b62a_1907f165f1d5 -->|calls| 388f2f24_399d_a1d4_03c9_8e8fd2b6d293 37aedf40_307b_f456_fd96_f4a69e28c468["configWithAuthIsRead()"] 37aedf40_307b_f456_fd96_f4a69e28c468 -->|calls| 388f2f24_399d_a1d4_03c9_8e8fd2b6d293 style 388f2f24_399d_a1d4_03c9_8e8fd2b6d293 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
buildpack/spring-boot-buildpack-platform/src/test/java/org/springframework/boot/buildpack/platform/docker/configuration/DockerConfigurationMetadataTests.java lines 142–147
private String pathToResource(String resource) throws URISyntaxException {
URL url = getClass().getResource(resource);
Path parent = Paths.get(url.toURI()).getParent();
assertThat(parent).isNotNull();
return parent.toAbsolutePath().toString();
}
Domain
Subdomains
Called By
- configIsReadWithProvidedContext()
- configWithAuthIsRead()
- configWithContextIsRead()
- configWithDefaultContextIsRead()
- configWithoutContextIsRead()
- invalidContextThrowsException()
Source
Frequently Asked Questions
What does pathToResource() do?
pathToResource() is a function in the spring-boot codebase.
What calls pathToResource()?
pathToResource() is called by 6 function(s): configIsReadWithProvidedContext, configWithAuthIsRead, configWithContextIsRead, configWithDefaultContextIsRead, configWithoutContextIsRead, invalidContextThrowsException.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free