CompositePropertySource constructor
CompositePropertySource(
- String name
A composite implementation of ListablePropertySource that aggregates multiple PropertySource instances.
This class allows you to group multiple property sources under a single logical name. When resolving properties, the sources are checked in the order they were added.
Example:
var composite = CompositePropertySource('applicationConfig');
composite.addPropertySource(MapPropertySource('map1', {'foo': 'bar'}));
composite.addPropertySource(SystemEnvironmentPropertySource('env'));
var value = composite.getProperty('foo'); // searches map1 first, then env
Implementation
CompositePropertySource(super.name) : super.named();