Methods Summary |
---|
public static java.lang.String | getProperty(java.lang.String key)Gets the implementation property indicated by the specified key.
// If key is null, then a NullPointerException is thrown.
// If key is blank, then throw a specific IllegalArgumentException
if (key.length() == 0) {
throw new IllegalArgumentException("key can't be empty");
}
return getProperty0(key);
|
private static native java.lang.String | getProperty0(java.lang.String key)native interface to the configuration parameter storage.
|
public static java.lang.String | getPropertyDefault(java.lang.String key, java.lang.String def)Gets the implementation property indicated by the specified key or
returns the specifid default value.
String result = getProperty(key);
return (result != null ? result : def);
|