nl.knowledgeplaza.util
Class SystemAddon

java.lang.Object
  extended by nl.knowledgeplaza.util.SystemAddon

public class SystemAddon
extends 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 String SOURCECODE_VERSION
          Standard variable for determining version of a class file.
 
Constructor Summary
SystemAddon()
           
 
Method Summary
static 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 String getProperty(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(String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SOURCECODE_VERSION

public static final String SOURCECODE_VERSION
Standard variable for determining version of a class file.

See Also:
Constant Field Values
Constructor Detail

SystemAddon

public SystemAddon()
Method Detail

getProperties

public static 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 String getProperty(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(String[] args)


Copyright © 2012 KnowledgePlaza. All Rights Reserved.