Home / Class/ SslSource Class — spring-boot Architecture

SslSource Class — spring-boot Architecture

Architecture documentation for the SslSource class in SslSource.java from the spring-boot codebase.

Entity Profile

Source Code

buildpack/spring-boot-buildpack-platform/src/test/java/org/springframework/boot/buildpack/platform/docker/ssl/SslSource.java lines 28–54

final class SslSource {

	private static final Path BUILDPACK_LOCATION = Path
		.of("src/main/java/org/springframework/boot/buildpack/platform/docker/ssl");

	private static final Path SPRINGBOOT_LOCATION = Path
		.of("../../core/spring-boot/src/main/java/org/springframework/boot/ssl/pem");

	private SslSource() {
	}

	static String loadBuildpackVersion(String name) throws IOException {
		return load(BUILDPACK_LOCATION.resolve(name));
	}

	static String loadSpringBootVersion(String name) throws IOException {
		return load(SPRINGBOOT_LOCATION.resolve(name));
	}

	private static String load(Path path) throws IOException {
		String code = Files.readString(path);
		int firstBrace = code.indexOf("{");
		int lastBrace = code.lastIndexOf("}");
		return code.substring(firstBrace, lastBrace + 1);
	}

}

Analyze Your Own Codebase

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

Try Supermodel Free