Class ConfigData
java.lang.Object
org.springframework.boot.context.config.ConfigData
Configuration data that has been loaded from a 
ConfigDataResource and may
 ultimately contribute property sources to Spring's
 Environment.- Since:
- 2.4.0
- See Also:
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic enumOption flags that can be applied.static final classA set ofConfigData.Optionflags.static interfaceStrategy interface used to supplyConfigData.Optionsfor a givenPropertySource.
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final ConfigDataAConfigDatainstance that contains no data.
- 
Constructor SummaryConstructorsConstructorDescriptionConfigData(Collection<? extends org.springframework.core.env.PropertySource<?>> propertySources, ConfigData.Option... options) Create a newConfigDatainstance with the same options applied to each source.ConfigData(Collection<? extends org.springframework.core.env.PropertySource<?>> propertySources, ConfigData.PropertySourceOptions propertySourceOptions) Create a newConfigDatainstance with specific property source options.
- 
Method SummaryModifier and TypeMethodDescriptiongetOptions(org.springframework.core.env.PropertySource<?> propertySource) Return theconfig data optionsthat apply to the given source.List<org.springframework.core.env.PropertySource<?>>Return the configuration data property sources in ascending priority order.
- 
Field Details- 
EMPTYAConfigDatainstance that contains no data.
 
- 
- 
Constructor Details- 
ConfigDatapublic ConfigData(Collection<? extends org.springframework.core.env.PropertySource<?>> propertySources, ConfigData.Option... options) Create a newConfigDatainstance with the same options applied to each source.- Parameters:
- propertySources- the config data property sources in ascending priority order.
- options- the config data options applied to each source
- See Also:
 
- 
ConfigDatapublic ConfigData(Collection<? extends org.springframework.core.env.PropertySource<?>> propertySources, ConfigData.PropertySourceOptions propertySourceOptions) Create a newConfigDatainstance with specific property source options.- Parameters:
- propertySources- the config data property sources in ascending priority order.
- propertySourceOptions- the property source options
- Since:
- 2.4.5
 
 
- 
- 
Method Details- 
getPropertySourcesReturn 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
 
- 
getOptionsReturn theconfig data optionsthat apply to the given source.- Parameters:
- propertySource- the property source to check
- Returns:
- the options that apply
- Since:
- 2.4.5
 
 
-