nl.knowledgeplaza.util
Class SystemAddon
java.lang.Object
nl.knowledgeplaza.util.SystemAddon
public class SystemAddon
- extends java.lang.Object
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
- Version:
- $Revision: 1.3 $
- Author:
- $Author: toeukpap $
|
Field Summary |
static java.lang.String |
SOURCECODE_VERSION
Standard variable for determining version of a class file. |
|
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 void |
main(java.lang.String[] args)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SOURCECODE_VERSION
public static final java.lang.String SOURCECODE_VERSION
- Standard variable for determining version of a class file.
- See Also:
- Constant Field Values
SystemAddon
public SystemAddon()
getProperties
public 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.
getProperty
public 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.
main
public static void main(java.lang.String[] args)
Copyright © 2010 KnowledgePlaza. All Rights Reserved.