Skip to content

Allow CompositePropertySource to be constructed from existing property sources #34862

Closed
@sbrannen

Description

@sbrannen

Overview

CompositePropertySource currently supports adding individual PropertySource instances via its addPropertySource(PropertySource<?>) and addFirstPropertySource(PropertySource<?>) methods; however, there is no way to construct a new CompositePropertySource from an existing collection of property sources, such as an instance of MutablePropertySources.

To support such use cases, we should introduce a CompositePropertySource(String, Iterable<PropertySource<?>>) constructor, where Iterable<PropertySource<?>> supports collections as well as PropertySources implementations.

Related Issues

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)status: declinedA suggestion or change that we don't feel we should currently applytype: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions