MockResourceLoader Class — spring-boot Architecture
Architecture documentation for the MockResourceLoader class in SpringApplicationTests.java from the spring-boot codebase.
Entity Profile
Relationship Graph
Source Code
core/spring-boot/src/test/java/org/springframework/boot/SpringApplicationTests.java lines 2004–2023
static class MockResourceLoader implements ResourceLoader {
private final Map<String, Resource> resources = new HashMap<>();
void addResource(String source, String path) {
this.resources.put(source, new ClassPathResource(path, getClass()));
}
@Override
public Resource getResource(String path) {
Resource resource = this.resources.get(path);
return (resource != null) ? resource : new ClassPathResource("doesnotexist");
}
@Override
public ClassLoader getClassLoader() {
return getClass().getClassLoader();
}
}
Domain
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free