TestConfigDataEnvironmentUpdateListener Class — spring-boot Architecture
Architecture documentation for the TestConfigDataEnvironmentUpdateListener class in TestConfigDataEnvironmentUpdateListener.java from the spring-boot codebase.
Entity Profile
Source Code
core/spring-boot/src/test/java/org/springframework/boot/context/config/TestConfigDataEnvironmentUpdateListener.java lines 27–81
class TestConfigDataEnvironmentUpdateListener implements ConfigDataEnvironmentUpdateListener {
private final List<AddedPropertySource> addedPropertySources = new ArrayList<>();
private @Nullable Profiles profiles;
@Override
public void onPropertySourceAdded(PropertySource<?> propertySource, @Nullable ConfigDataLocation location,
@Nullable ConfigDataResource resource) {
this.addedPropertySources.add(new AddedPropertySource(propertySource, location, resource));
}
@Override
public void onSetProfiles(Profiles profiles) {
this.profiles = profiles;
}
List<AddedPropertySource> getAddedPropertySources() {
return Collections.unmodifiableList(this.addedPropertySources);
}
@Nullable Profiles getProfiles() {
return this.profiles;
}
static class AddedPropertySource {
private final PropertySource<?> propertySource;
private final @Nullable ConfigDataLocation location;
private final @Nullable ConfigDataResource resource;
AddedPropertySource(PropertySource<?> propertySource, @Nullable ConfigDataLocation location,
@Nullable ConfigDataResource resource) {
this.propertySource = propertySource;
this.location = location;
this.resource = resource;
}
PropertySource<?> getPropertySource() {
return this.propertySource;
}
@Nullable ConfigDataLocation getLocation() {
return this.location;
}
@Nullable ConfigDataResource getResource() {
return this.resource;
}
}
}
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free