Oracle

com.compoze.util
Class ResourceProperties

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
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.util.Map<java.lang.Object,java.lang.Object>
Direct Known Subclasses:
CompozeProperties

public class ResourceProperties
extends MutableProperties
implements java.io.Serializable

This class is a properties object where properties are read in from a resource in the system CLASSPATH.

See Also:
Serialized Form

Field Summary
protected static java.lang.String CONFIG_KEY
           
protected  java.lang.String m_sResourceName
           
 
Fields inherited from class java.util.Properties
defaults
 
Constructor Summary
ResourceProperties(java.lang.String sResourceName)
          Constructor.
ResourceProperties(java.lang.String sResourceName, java.util.Properties defaults)
          Constructor.
 
Method Summary
static void main(java.lang.String[] args)
          Exerciser.
 
Methods inherited from class com.compoze.util.MutableProperties
getProperty, getProperty, 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
 

Field Detail

CONFIG_KEY

protected static final java.lang.String CONFIG_KEY
See Also:
Constant Field Values

m_sResourceName

protected java.lang.String m_sResourceName
Constructor Detail

ResourceProperties

public ResourceProperties(java.lang.String sResourceName)
Constructor.

Parameters:
sResourceName - the name of the resource (must be in the CLASSPATH)

ResourceProperties

public ResourceProperties(java.lang.String sResourceName,
                          java.util.Properties defaults)
Constructor.

Parameters:
sResourceName - the name of the resource (must be in the CLASSPATH)
defaults - a list of defaults used when a Property is not found
Method Detail

main

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

Parameters:
args - the command line arguments

Oracle

Copyright ©1999-2008 Oracle All rights reserved.