public final class ConfigData
extends java.lang.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(java.util.Collection<? extends org.springframework.core.env.PropertySource<?>> propertySources,
ConfigData.Option... options)
Create a new
ConfigData instance with the same options applied to each
source. |
ConfigData(java.util.Collection<? extends org.springframework.core.env.PropertySource<?>> propertySources,
ConfigData.PropertySourceOptions propertySourceOptions)
Create a new
ConfigData instance with specific property source options. |
Modifier and Type | Method and Description |
---|---|
java.util.Set<ConfigData.Option> |
getOptions()
Deprecated.
since 2.4.5 in favor of
getOptions(PropertySource) |
ConfigData.Options |
getOptions(org.springframework.core.env.PropertySource<?> propertySource)
Return the
config data options that apply to the given source. |
java.util.List<org.springframework.core.env.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(java.util.Collection<? extends org.springframework.core.env.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(java.util.Collection<? extends org.springframework.core.env.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 java.util.List<org.springframework.core.env.PropertySource<?>> getPropertySources()
@Deprecated public java.util.Set<ConfigData.Option> getOptions()
getOptions(PropertySource)
config data options
for this source.public ConfigData.Options getOptions(org.springframework.core.env.PropertySource<?> propertySource)
config data options
that apply to the given source.propertySource
- the property source to check