UnboundElementsSourceFilter Class — spring-boot Architecture
Architecture documentation for the UnboundElementsSourceFilter class in UnboundElementsSourceFilter.java from the spring-boot codebase.
Entity Profile
Relationship Graph
Source Code
core/spring-boot/src/main/java/org/springframework/boot/context/properties/source/UnboundElementsSourceFilter.java lines 37–53
public class UnboundElementsSourceFilter implements Function<ConfigurationPropertySource, Boolean> {
private static final Set<String> BENIGN_PROPERTY_SOURCE_NAMES = Collections
.unmodifiableSet(new HashSet<>(Arrays.asList(StandardEnvironment.SYSTEM_ENVIRONMENT_PROPERTY_SOURCE_NAME,
StandardEnvironment.SYSTEM_PROPERTIES_PROPERTY_SOURCE_NAME)));
@Override
public Boolean apply(ConfigurationPropertySource configurationPropertySource) {
Object underlyingSource = configurationPropertySource.getUnderlyingSource();
if (underlyingSource instanceof PropertySource<?> propertySource) {
String name = propertySource.getName();
return !BENIGN_PROPERTY_SOURCE_NAMES.contains(name);
}
return true;
}
}
Domain
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free