Reality Interface Classes

com.northgateis.reality.util
Class Properties

java.lang.Object
  |
  +--java.util.Dictionary
        |
        +--java.util.Hashtable
              |
              +--java.util.Properties
                    |
                    +--com.northgateis.reality.util.Properties

public class Properties
extends java.util.Properties

Handles reality specific properties.

See Also:
Serialized Form

Constructor Summary
Properties()
          Create a new properties class and load it from the reality properties file (reality.properties).
 
Method Summary
 java.lang.String getProperty(java.lang.String key)
          Get a property.
 java.lang.String getProperty(java.lang.String key, java.lang.String defaultValue)
          Get a property.
 
Methods inherited from class java.util.Properties
list, list, load, propertyNames, save, setProperty, store
 
Methods inherited from class java.util.Hashtable
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, put, putAll, remove, size, toString, values
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Properties

public Properties()
           throws java.io.IOException
Create a new properties class and load it from the reality properties file (reality.properties). This file may be located anywhere in the class path throws IOException reality.properties not found
Method Detail

getProperty

public java.lang.String getProperty(java.lang.String key)
Get a property.

Properties defined on the command line overide those set in the properties file.

Overrides:
getProperty in class java.util.Properties
Parameters:
key - key to property

getProperty

public java.lang.String getProperty(java.lang.String key,
                                    java.lang.String defaultValue)
Get a property.

Properties defined on the command line overide those set in the properties file.

Overrides:
getProperty in class java.util.Properties
Parameters:
key - key to property
defaultValue - value returned of key not found

Reality Interface Classes

Copyright (c) 2000 Northgate Information Solutions