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
FieldsModifier and TypeFieldDescriptionstatic final ConfigData.PropertySourceOptionsConfigData.PropertySourceOptionsinstance that always returnsConfigData.Options.NONE. -
Method Summary
Modifier and TypeMethodDescriptionalways(ConfigData.Option... options) Create a newConfigData.PropertySourceOptionsinstance that always returns the same options regardless of the property source.always(ConfigData.Options options) Create a newConfigData.PropertySourceOptionsinstance that always returns the same options regardless of the property source.get(PropertySource<?> propertySource) Return the options that should apply for the given property source.
-
Field Details
-
ALWAYS_NONE
ConfigData.PropertySourceOptionsinstance 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.PropertySourceOptionsinstance that always returns the same options regardless of the property source.- Parameters:
options- the options to return- Returns:
- a new
ConfigData.PropertySourceOptionsinstance
-
always
Create a newConfigData.PropertySourceOptionsinstance that always returns the same options regardless of the property source.- Parameters:
options- the options to return- Returns:
- a new
ConfigData.PropertySourceOptionsinstance
-