public final class ConfigData extends Object
ConfigDataResource
and may
ultimately contribute property sources
to Spring's
Environment
.ConfigDataLocationResolver
,
ConfigDataLoader
Modifier and Type | Class and Description |
---|---|
static class |
ConfigData.Option
Option flags that can be applied.
|
static class |
ConfigData.Options
A set of
ConfigData.Option flags. |
static interface |
ConfigData.PropertySourceOptions
Strategy interface used to supply
ConfigData.Options for a given
PropertySource . |
Modifier and Type | Field and Description |
---|---|
static ConfigData |
EMPTY
A
ConfigData instance that contains no data. |
Constructor and Description |
---|
ConfigData(Collection<? extends PropertySource<?>> propertySources,
ConfigData.Option... options)
Create a new
ConfigData instance with the same options applied to each
source. |
ConfigData(Collection<? extends PropertySource<?>> propertySources,
ConfigData.PropertySourceOptions propertySourceOptions)
Create a new
ConfigData instance with specific property source options. |
Modifier and Type | Method and Description |
---|---|
Set<ConfigData.Option> |
getOptions()
Deprecated.
since 2.4.5 in favor of
getOptions(PropertySource) |
ConfigData.Options |
getOptions(PropertySource<?> propertySource)
Return the
config data options that apply to the given source. |
List<PropertySource<?>> |
getPropertySources()
Return the configuration data property sources in ascending priority order.
|
public static final ConfigData EMPTY
ConfigData
instance that contains no data.public ConfigData(Collection<? extends PropertySource<?>> propertySources, ConfigData.Option... options)
ConfigData
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 sourceConfigData(Collection, PropertySourceOptions)
public ConfigData(Collection<? extends PropertySource<?>> propertySources, ConfigData.PropertySourceOptions propertySourceOptions)
ConfigData
instance with specific property source options.propertySources
- the config data property sources in ascending priority
order.propertySourceOptions
- the property source optionspublic List<PropertySource<?>> getPropertySources()
@Deprecated public Set<ConfigData.Option> getOptions()
getOptions(PropertySource)
config data options
for this source.public ConfigData.Options getOptions(PropertySource<?> propertySource)
config data options
that apply to the given source.propertySource
- the property source to check