public interface SystemPropertyResolver
| Modifier and Type | Interface and Description |
|---|---|
static class |
SystemPropertyResolver.Default
Default
SystemPropertyResolver implementation. |
| Modifier and Type | Method and Description |
|---|---|
static SystemPropertyResolver |
getInstance()
Return an instance of a
SystemPropertyResolver discovered by
the ServiceLoader, or a default instance if none are discovered. |
String |
getProperty(String sPropertyName)
Return the value of the specified system property.
|
default String |
getProperty(String sPropertyName,
String sDefaultValue)
Return the value of the specified system property, or the specified
default value if the property doesn't exist.
|
String getProperty(String sPropertyName)
sPropertyName - the name of the property to returndefault String getProperty(String sPropertyName, String sDefaultValue)
sPropertyName - the name of the property to returnsDefaultValue - the default value to return if the property
doesn't existstatic SystemPropertyResolver getInstance()
SystemPropertyResolver discovered by
the ServiceLoader, or a default instance if none are discovered.SystemPropertyResolver