IterableConfigurationPropertySource Type — spring-boot Architecture
Architecture documentation for the IterableConfigurationPropertySource type/interface in IterableConfigurationPropertySource.java from the spring-boot codebase.
Entity Profile
Source Code
core/spring-boot/src/main/java/org/springframework/boot/context/properties/source/IterableConfigurationPropertySource.java lines 44–84
public interface IterableConfigurationPropertySource
extends ConfigurationPropertySource, Iterable<ConfigurationPropertyName> {
/**
* Return an iterator for the {@link ConfigurationPropertyName names} managed by this
* source.
* @return an iterator (never {@code null})
*/
@Override
default Iterator<ConfigurationPropertyName> iterator() {
return stream().iterator();
}
/**
* Returns a sequential {@code Stream} for the {@link ConfigurationPropertyName names}
* managed by this source.
* @return a stream of names (never {@code null})
*/
Stream<ConfigurationPropertyName> stream();
@Override
default ConfigurationPropertyState containsDescendantOf(ConfigurationPropertyName name) {
return ConfigurationPropertyState.search(this, name::isAncestorOf);
}
@Override
default IterableConfigurationPropertySource filter(Predicate<ConfigurationPropertyName> filter) {
return new FilteredIterableConfigurationPropertiesSource(this, filter);
}
@Override
default IterableConfigurationPropertySource withAliases(ConfigurationPropertyNameAliases aliases) {
return new AliasedIterableConfigurationPropertySource(this, aliases);
}
@Override
default IterableConfigurationPropertySource withPrefix(@Nullable String prefix) {
return (StringUtils.hasText(prefix)) ? new PrefixedIterableConfigurationPropertySource(this, prefix) : this;
}
}
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free