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 SummaryFieldsModifier and TypeFieldDescriptionstatic final ConfigData.PropertySourceOptionsConfigData.PropertySourceOptionsinstance that always returnsConfigData.Options.NONE.
- 
Method SummaryModifier 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(org.springframework.core.env.PropertySource<?> propertySource) Return the options that should apply for the given property source.
- 
Field Details- 
ALWAYS_NONEConfigData.PropertySourceOptionsinstance that always returnsConfigData.Options.NONE.- Since:
- 2.4.6
 
 
- 
- 
Method Details- 
getReturn the options that should apply for the given property source.- Parameters:
- propertySource- the property source
- Returns:
- the options to apply
 
- 
alwaysCreate 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
 
- 
alwaysCreate 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
 
 
-