public class SystemProfileValueSource extends java.lang.Object implements ProfileValueSource
ProfileValueSource which uses system properties as
the underlying source.| Modifier and Type | Field and Description |
|---|---|
private static SystemProfileValueSource |
INSTANCE |
| Modifier | Constructor and Description |
|---|---|
private |
SystemProfileValueSource()
Private constructor, enforcing the singleton pattern.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
get(java.lang.String key)
Get the profile value indicated by the specified key from the
system properties.
|
static SystemProfileValueSource |
getInstance()
Obtain the canonical instance of this ProfileValueSource.
|
private static final SystemProfileValueSource INSTANCE
private SystemProfileValueSource()
public static final SystemProfileValueSource getInstance()
public java.lang.String get(java.lang.String key)
get in interface ProfileValueSourcekey - the name of the profile valuenull
if there is no profile value with that keySystem.getProperty(String)