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