Class ConfigData

java.lang.Object
org.springframework.boot.context.config.ConfigData

public final class ConfigData extends Object
Configuration data that has been loaded from a ConfigDataResource and may ultimately contribute property sources to Spring's Environment.
Since:
2.4.0
Author:
Phillip Webb, Madhura Bhave
See Also:
  • Field Details

  • Constructor Details

  • Method Details

    • getPropertySources

      public List<PropertySource<?>> getPropertySources()
      Return the configuration data property sources in ascending priority order. If the same key is contained in more than one of the sources, then the later source will win.
      Returns:
      the config data property sources
    • getOptions

      public ConfigData.Options getOptions(PropertySource<?> propertySource)
      Return the config data options that apply to the given source.
      Parameters:
      propertySource - the property source to check
      Returns:
      the options that apply
      Since:
      2.4.5