Compoze Software, Inc.

com.compoze.util
Class ResourceProperties

java.lang.Object
  extended byjava.util.Dictionary
      extended byjava.util.Hashtable
          extended byjava.util.Properties
              extended bycom.compoze.util.ObjectProperties
                  extended bycom.compoze.util.MutableProperties
                      extended bycom.compoze.util.ResourceProperties
All Implemented Interfaces:
java.lang.Cloneable, java.util.Map, java.io.Serializable
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, 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, 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

Compoze Software, Inc.

Copyright ©1999-2003 Compoze Software, Inc. All rights reserved.