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

pathToResource() — spring-boot Function Reference

Architecture documentation for the pathToResource() function in ResolvedDockerHostTests.java from the spring-boot codebase.

Entity Profile

Dependency Diagram

graph TD
  7f019930_5b85_eec3_75fc_42e46a7916a2["pathToResource()"]
  857fdfb9_be4c_7007_95ea_fd000c0c8b1e["resolveWhenDockerHostIsNullReturnsLinuxDefault()"]
  857fdfb9_be4c_7007_95ea_fd000c0c8b1e -->|calls| 7f019930_5b85_eec3_75fc_42e46a7916a2
  b6ee5ba9_a6b3_b806_79a0_473e3f33e51f["resolveWhenDockerHostIsNullReturnsWindowsDefault()"]
  b6ee5ba9_a6b3_b806_79a0_473e3f33e51f -->|calls| 7f019930_5b85_eec3_75fc_42e46a7916a2
  4a942f0e_2a63_75e4_c33f_cc2b577ea811["resolveWithDockerHostContextReturnsAddress()"]
  4a942f0e_2a63_75e4_c33f_cc2b577ea811 -->|calls| 7f019930_5b85_eec3_75fc_42e46a7916a2
  771b3902_c1f0_4f79_4ccc_69aa0029110b["resolveWithDockerConfigMetadataContextReturnsAddress()"]
  771b3902_c1f0_4f79_4ccc_69aa0029110b -->|calls| 7f019930_5b85_eec3_75fc_42e46a7916a2
  d9fb2f94_3f99_5240_3b88_20368d04925b["resolveWhenEnvironmentHasAddressAndContextPrefersContext()"]
  d9fb2f94_3f99_5240_3b88_20368d04925b -->|calls| 7f019930_5b85_eec3_75fc_42e46a7916a2
  style 7f019930_5b85_eec3_75fc_42e46a7916a2 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/ResolvedDockerHostTests.java lines 213–218

	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

  • resolveWhenDockerHostIsNullReturnsLinuxDefault()
  • resolveWhenDockerHostIsNullReturnsWindowsDefault()
  • resolveWhenEnvironmentHasAddressAndContextPrefersContext()
  • resolveWithDockerConfigMetadataContextReturnsAddress()
  • resolveWithDockerHostContextReturnsAddress()

Frequently Asked Questions

What does pathToResource() do?
pathToResource() is a function in the spring-boot codebase.
What calls pathToResource()?
pathToResource() is called by 5 function(s): resolveWhenDockerHostIsNullReturnsLinuxDefault, resolveWhenDockerHostIsNullReturnsWindowsDefault, resolveWhenEnvironmentHasAddressAndContextPrefersContext, resolveWithDockerConfigMetadataContextReturnsAddress, resolveWithDockerHostContextReturnsAddress.

Analyze Your Own Codebase

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

Try Supermodel Free