Loader Class — spring-boot Architecture
Architecture documentation for the Loader class in ConfigDataEnvironmentPostProcessorImportCombinedWithProfileSpecificIntegrationTests.java from the spring-boot codebase.
Entity Profile
Relationship Graph
Source Code
core/spring-boot/src/test/java/org/springframework/boot/context/config/ConfigDataEnvironmentPostProcessorImportCombinedWithProfileSpecificIntegrationTests.java lines 109–125
static class Loader implements ConfigDataLoader<Resource> {
@Override
public ConfigData load(ConfigDataLoaderContext context, Resource resource) throws IOException {
List<PropertySource<?>> propertySources = new ArrayList<>();
Map<PropertySource<?>, Options> propertySourceOptions = new HashMap<>();
propertySources.add(new MapPropertySource("icwps1", Collections.singletonMap("prop", "fromicwps1")));
if (resource.profiles.isAccepted("prod")) {
MapPropertySource profileSpecificPropertySource = new MapPropertySource("icwps2",
Collections.singletonMap("prop", "fromicwps2"));
propertySources.add(profileSpecificPropertySource);
propertySourceOptions.put(profileSpecificPropertySource, Options.of(Option.PROFILE_SPECIFIC));
}
return new ConfigData(propertySources, propertySourceOptions::get);
}
}
Domain
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free