|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectto.etc.util.DeveloperOptions
public class DeveloperOptions
This is a static-only class which should be used to access options that configure a system on a developer's station. This class accesses the file .developer.properties in the home directory of the user starting the program. Properties in that file can be accessed using calls within this module. The file is read only once; retrieved values are cached for speedy performance.
Method Summary | |
---|---|
static boolean |
getBool(java.lang.String name,
boolean def)
Returns the developer option specified by name as a boolean. |
static int |
getInt(java.lang.String name,
int def)
Returns the developer option specified by name as an integer. |
static java.lang.String |
getString(java.lang.String name)
Returns the developer option specified as a string. |
static java.lang.String |
getString(java.lang.String name,
java.lang.String def)
Returns the developer option specified by name as a string. |
static boolean |
isDeveloperWorkstation()
Returns T if this is a developer's workstation. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static boolean isDeveloperWorkstation()
public static java.lang.String getString(java.lang.String name)
public static java.lang.String getString(java.lang.String name, java.lang.String def)
name
- def
-
public static boolean getBool(java.lang.String name, boolean def)
name
- def
-
public static int getInt(java.lang.String name, int def)
name
- def
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |