jsystem.framework
Class JSystemProperties

java.lang.Object
  extended byjsystem.framework.JSystemProperties

public class JSystemProperties
extends Object

JSystemsProperties takes care for jsystem properties. JSystemProperties is implemented as singleton so to instance you get from JSystremProperties.getInstance()


Method Summary
static JSystemProperties getInstance()
          Return instance of JSystemProperties.
 String getPreference(String key)
           
protected  Properties getPreferences()
           
 void reloadPreferences()
          Reload preferences from file.
 void savePreferences()
          Store jsystem preferences to file
 void setPreference(String key, String value)
          Assign key to value and store it to jsystem preferences
 void setPreferences(Properties preferences)
          Set preferences to jsystem preferences.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static JSystemProperties getInstance()
Return instance of JSystemProperties.


reloadPreferences

public void reloadPreferences()
Reload preferences from file.


getPreference

public String getPreference(String key)
Returns:
value assigned to key

getPreferences

protected Properties getPreferences()

savePreferences

public void savePreferences()
                     throws IOException
Store jsystem preferences to file

Throws:
IOException

setPreference

public void setPreference(String key,
                          String value)
                   throws IOException
Assign key to value and store it to jsystem preferences

Throws:
IOException

setPreferences

public void setPreferences(Properties preferences)
                    throws IOException
Set preferences to jsystem preferences.

Throws:
IOException