|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnl.knowledgeplaza.util.SystemAddon
public class SystemAddon
Some enhancements to the regular System class. It allows for additional system properties to be set: - in JAVA_HOME/system.properties - somewhere else on the classpath in system.properties Java 1.5 allowed the reading of the environment variables. This allowed for a more dynamic setting of the "system.name" property, it is set to the first that has a value: 1. system.properties (as described above) 2. under Windows, the environment variable COMPUTERNAME, if set 3. the environment variable HOSTNAME, if set 4. the environment variable KP_SYSTEMNAME, if set
| Field Summary | |
|---|---|
static java.lang.String |
SOURCECODE_VERSION
Standard variable for determining version of a class file. |
| Constructor Summary | |
|---|---|
SystemAddon()
|
|
| Method Summary | |
|---|---|
static java.util.Properties |
getProperties()
This method adds to the regular System properties the ones in a file called "system.properties" in the "java.home" directory or (if not found) any other system properties. |
static java.lang.String |
getProperty(java.lang.String name)
This method adds to the regular System properties the ones in a file called "system.properties" in the "java.home" directory or (if not found) any other system properties. |
static boolean |
isMac()
check if the current system is a macintosh |
static boolean |
isWindows()
check if the current system is windows |
static void |
main(java.lang.String[] args)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String SOURCECODE_VERSION
| Constructor Detail |
|---|
public SystemAddon()
| Method Detail |
|---|
public static java.util.Properties getProperties()
public static java.lang.String getProperty(java.lang.String name)
public static boolean isMac()
public static boolean isWindows()
public static void main(java.lang.String[] args)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||