Oracle

com.compoze.util
Class CompozeProperties

java.lang.Object
  extended by java.util.Dictionary<K,V>
      extended by java.util.Hashtable<java.lang.Object,java.lang.Object>
          extended by java.util.Properties
              extended by com.compoze.util.ObjectProperties
                  extended by com.compoze.util.MutableProperties
                      extended by com.compoze.util.ResourceProperties
                          extended by com.compoze.util.CompozeProperties
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.util.Map<java.lang.Object,java.lang.Object>

public class CompozeProperties
extends ResourceProperties
implements java.io.Serializable

This class is a singleton that provides access to the Compoze system properties. The search order for these properties is as follows:

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.compoze.util.ResourceProperties
CONFIG_KEY, m_sResourceName
 
Fields inherited from class java.util.Properties
defaults
 
Method Summary
 java.lang.String getProperty(java.lang.String sKey)
          Get a property.
 java.lang.String getProperty(java.lang.String sKey, java.lang.String sDefault)
          Get a property.
static CompozeProperties i()
          Get the singleton instance of this class.
static void main(java.lang.String[] args)
          Exerciser.
 
Methods inherited from class com.compoze.util.MutableProperties
propertyNames, setConfiguration
 
Methods inherited from class com.compoze.util.ObjectProperties
getBoolean, getBoolean, getByte, getByte, getDouble, getDouble, getFloat, getFloat, getInt, getInt, getLong, getLong, getShort, getShort, getString, getString, getStringArray, getStringArray, getStringArray, replaceSubstitutions
 
Methods inherited from class java.util.Properties
list, list, load, loadFromXML, save, setProperty, store, storeToXML, storeToXML
 
Methods inherited from class java.util.Hashtable
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, put, putAll, rehash, remove, size, toString, values
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

i

public static CompozeProperties i()
Get the singleton instance of this class.

Returns:
the singleton instance of this class

getProperty

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

Overrides:
getProperty in class MutableProperties
Parameters:
sKey - the key
Returns:
the value of the property, or null if it does not exist

getProperty

public java.lang.String getProperty(java.lang.String sKey,
                                    java.lang.String sDefault)
Get a property.

Overrides:
getProperty in class MutableProperties
Parameters:
sKey - the key
sDefault - the default value
Returns:
the value of the property, or null if it does not exist

main

public static void main(java.lang.String[] args)
Exerciser.

Parameters:
args - the command line arguments

Oracle

Copyright ©1999-2008 Oracle All rights reserved.