Interface ConfigData.PropertySourceOptions
- Enclosing class:
- ConfigData
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Strategy interface used to supply
ConfigData.Options
for a given
PropertySource
.- Since:
- 2.4.5
-
Field Summary
Modifier and TypeFieldDescriptionstatic final ConfigData.PropertySourceOptions
ConfigData.PropertySourceOptions
instance that always returnsConfigData.Options.NONE
. -
Method Summary
Modifier and TypeMethodDescriptionalways
(ConfigData.Option... options) Create a newConfigData.PropertySourceOptions
instance that always returns the same options regardless of the property source.always
(ConfigData.Options options) Create a newConfigData.PropertySourceOptions
instance that always returns the same options regardless of the property source.get
(org.springframework.core.env.PropertySource<?> propertySource) Return the options that should apply for the given property source.
-
Field Details
-
ALWAYS_NONE
ConfigData.PropertySourceOptions
instance that always returnsConfigData.Options.NONE
.- Since:
- 2.4.6
-
-
Method Details
-
get
Return the options that should apply for the given property source.- Parameters:
propertySource
- the property source- Returns:
- the options to apply
-
always
Create a newConfigData.PropertySourceOptions
instance that always returns the same options regardless of the property source.- Parameters:
options
- the options to return- Returns:
- a new
ConfigData.PropertySourceOptions
instance
-
always
Create a newConfigData.PropertySourceOptions
instance that always returns the same options regardless of the property source.- Parameters:
options
- the options to return- Returns:
- a new
ConfigData.PropertySourceOptions
instance
-