Class SystemEnvPropertySource
java.lang.Object
org.apache.juneau.commons.settings.SystemEnvPropertySource
- All Implemented Interfaces:
PropertySource
Property source backed by
System.getenv(String).-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns a property in this property source.
-
Constructor Details
-
SystemEnvPropertySource
public SystemEnvPropertySource()
-
-
Method Details
-
get
Description copied from interface:PropertySourceReturns a property in this property source.- Specified by:
getin interfacePropertySource- 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.
-