@FunctionalInterface
public static interface ConfigData.PropertySourceOptions
ConfigData.Options
for a given
PropertySource
.Modifier and Type | Method and Description |
---|---|
static ConfigData.PropertySourceOptions |
always(ConfigData.Option... options)
Create a new
ConfigData.PropertySourceOptions instance that always returns the
same options regardless of the property source. |
static ConfigData.PropertySourceOptions |
always(ConfigData.Options options)
Create a new
ConfigData.PropertySourceOptions instance that always returns the
same options regardless of the property source. |
ConfigData.Options |
get(org.springframework.core.env.PropertySource<?> propertySource)
Return the options that should apply for the given property source.
|
ConfigData.Options get(org.springframework.core.env.PropertySource<?> propertySource)
propertySource
- the property sourcestatic ConfigData.PropertySourceOptions always(ConfigData.Option... options)
ConfigData.PropertySourceOptions
instance that always returns the
same options regardless of the property source.options
- the options to returnConfigData.PropertySourceOptions
instancestatic ConfigData.PropertySourceOptions always(ConfigData.Options options)
ConfigData.PropertySourceOptions
instance that always returns the
same options regardless of the property source.options
- the options to returnConfigData.PropertySourceOptions
instance