Interface PropertySource
- All Known Subinterfaces:
FunctionalPropertySource,PropertyStore,SensitivePropertySource
- All Known Implementing Classes:
ArgsPropertySource,CachingPropertySource,ConfigPropertySource,DotenvPropertySource,FunctionalPropertyStore,ManifestFilePropertySource,MapStore,RelaxedPropertySource,SecretStorePropertySource,SpringEnvironmentPropertySource,SystemEnvPropertySource,SystemPropertyPropertySource
public interface PropertySource
Interface for pluggable property sources used by
Settings.
A property source provides a way to retrieve property values. Sources are checked in reverse order (last added is checked first) when looking up properties.
For writable sources that support modifying property values, see PropertyStore.
-
Method Summary
Modifier and TypeMethodDescriptionReturns a property in this property source.
-
Method Details
-
get
Returns a property in this property source.- Parameters:
name- The property name.- Returns:
- The property lookup result:
PropertyLookupResult.missing()if this source does not define the key.PropertyLookupResult.present(Optional)withOptional.empty()if the key exists with a null value.PropertyLookupResult.present(Optional)with a value if the key exists with a non-null value.
-