com.pentec.adapt
Class AProperties

java.lang.Object
  extended by com.pentec.adapt.AProperties
All Implemented Interfaces:
java.lang.Runnable

public class AProperties
extends java.lang.Object
implements java.lang.Runnable

Hold user preferences. Save to adapt.properties in config\properties.jar.

Author:
Pender Technology

Field Summary
protected  java.lang.String $PropertiesDirName
          Directory containing adapt's user level properties file.
protected  java.lang.String $PropertiesFileName
          Jar file containing adapt's user level properties file
protected  java.util.Properties defaultProperties
           
protected  java.util.Properties properties
           
 
Constructor Summary
AProperties()
           
 
Method Summary
 java.lang.String getDefaultProperty(java.lang.String $PropertyName)
           
 java.lang.String[] getKeys()
           
 java.lang.String getProperty(java.lang.String $PropertyName)
           
 void load()
          Load the default properties from adapt.jar.
 void run()
           
 void save()
          Save the properties to properties.jar.
 void setProperty(java.lang.String $PropertyName, java.lang.String $PropertyValue)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

$PropertiesDirName

protected final java.lang.String $PropertiesDirName
Directory containing adapt's user level properties file. Place in this subdirectory to prevent copy *.jar overwrites.

See Also:
Constant Field Values

$PropertiesFileName

protected final java.lang.String $PropertiesFileName
Jar file containing adapt's user level properties file

See Also:
Constant Field Values

defaultProperties

protected java.util.Properties defaultProperties

properties

protected java.util.Properties properties
Constructor Detail

AProperties

public AProperties()
Method Detail

getDefaultProperty

public java.lang.String getDefaultProperty(java.lang.String $PropertyName)

getKeys

public java.lang.String[] getKeys()

getProperty

public java.lang.String getProperty(java.lang.String $PropertyName)

load

public void load()
Load the default properties from adapt.jar. Then load the user level properties.


run

public void run()
Specified by:
run in interface java.lang.Runnable

save

public void save()
Save the properties to properties.jar.


setProperty

public void setProperty(java.lang.String $PropertyName,
                        java.lang.String $PropertyValue)