public class EnvVarPropertyLookup extends Object implements PropertyLookup
PropertyLookup
for environment variables.SYSTEM_PROPERTY_SOURCE
Constructor and Description |
---|
EnvVarPropertyLookup(String prefix) |
Modifier and Type | Method and Description |
---|---|
String |
lookup(String propertyName)
Return the value of a property, or null if it doesn't exist.
|
Set<String> |
propertyNames()
Return all property names in this property lookup.
|
PropertySource |
sourceFor(String propertyName)
Return a source for the property.
|
public EnvVarPropertyLookup(String prefix)
public String lookup(String propertyName)
PropertyLookup
lookup
in interface PropertyLookup
propertyName
- The name of the property.public Set<String> propertyNames()
PropertyLookup
propertyNames
in interface PropertyLookup
public PropertySource sourceFor(String propertyName)
PropertyLookup
sourceFor
in interface PropertyLookup
propertyName
- The property name.