类 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
.- 从以下版本开始:
- 2.4.0
- 作者:
- Phillip Webb, Madhura Bhave
- 另请参阅:
-
嵌套类概要
嵌套类修饰符和类型类说明static enum
Option flags that can be applied.static final class
A set ofConfigData.Option
flags.static interface
Strategy interface used to supplyConfigData.Options
for a givenPropertySource
. -
字段概要
字段 -
构造器概要
构造器构造器说明ConfigData
(Collection<? extends PropertySource<?>> propertySources, ConfigData.Option... options) Create a newConfigData
instance with the same options applied to each source.ConfigData
(Collection<? extends PropertySource<?>> propertySources, ConfigData.PropertySourceOptions propertySourceOptions) Create a newConfigData
instance with specific property source options. -
方法概要
修饰符和类型方法说明getOptions
(PropertySource<?> propertySource) Return theconfig data options
that apply to the given source.List
<PropertySource<?>> Return the configuration data property sources in ascending priority order.
-
字段详细资料
-
EMPTY
AConfigData
instance that contains no data.
-
-
构造器详细资料
-
ConfigData
public ConfigData(Collection<? extends PropertySource<?>> propertySources, ConfigData.Option... options) Create a newConfigData
instance with the same options applied to each source.- 参数:
propertySources
- the config data property sources in ascending priority order.options
- the config data options applied to each source- 另请参阅:
-
ConfigData
public ConfigData(Collection<? extends PropertySource<?>> propertySources, ConfigData.PropertySourceOptions propertySourceOptions) Create a newConfigData
instance with specific property source options.- 参数:
propertySources
- the config data property sources in ascending priority order.propertySourceOptions
- the property source options- 从以下版本开始:
- 2.4.5
-
-
方法详细资料
-
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.- 返回:
- the config data property sources
-
getOptions
Return theconfig data options
that apply to the given source.- 参数:
propertySource
- the property source to check- 返回:
- the options that apply
- 从以下版本开始:
- 2.4.5
-