|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectch.qos.logback.core.android.SystemPropertiesProxy
public class SystemPropertiesProxy
A proxy to get Android's global system properties (as opposed to the default process-level system properties). Settings from `adb setprop` can be accessed from this class.
Method Summary | |
---|---|
String |
get(String key,
String def)
Get the value for the given key in the Android system properties |
Boolean |
getBoolean(String key,
boolean def)
Get the value for the given key in the Android system properties, returned as a boolean. |
static SystemPropertiesProxy |
getInstance()
Gets the singleton instance for this class |
void |
setClassLoader(ClassLoader cl)
Sets the classloader to lookup the class for android.os.SystemProperties |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static SystemPropertiesProxy getInstance()
public void setClassLoader(ClassLoader cl) throws ClassNotFoundException, SecurityException, NoSuchMethodException
cl
- desired classloader
ClassNotFoundException
SecurityException
NoSuchMethodException
public String get(String key, String def) throws IllegalArgumentException
key
- the key to lookupdef
- a default value to return
IllegalArgumentException
- if the key exceeds 32 characterspublic Boolean getBoolean(String key, boolean def) throws IllegalArgumentException
key
- the key to lookupdef
- a default value to return
IllegalArgumentException
- if the key exceeds 32 characters
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |