org.jboss.util.property
Class DefaultPropertyReader

java.lang.Object
  extended byorg.jboss.util.property.FilePropertyReader (src) 
      extended byorg.jboss.util.property.DefaultPropertyReader
All Implemented Interfaces:
PropertyReader (src)

public final class DefaultPropertyReader
extends FilePropertyReader (src)

Reads properties from files specified via a system property.

Unless otherwise specified, propertie filenames will be read from the org.jboss.properties singleton or array property.


Field Summary
static java.lang.String DEFAULT_PROPERTY_NAME
          Default property name to read filenames from
 
Fields inherited from class org.jboss.util.property.FilePropertyReader (src)
filenames
 
Constructor Summary
DefaultPropertyReader()
          Construct a DefaultPropertyReader.
DefaultPropertyReader(java.lang.String propertyName)
          Construct a DefaultPropertyReader with a specified property name.
 
Method Summary
static java.lang.String[] getFilenames(java.lang.String propertyName)
          Get an array of filenames to load.
 
Methods inherited from class org.jboss.util.property.FilePropertyReader (src)
getInputStream, loadProperties, readProperties
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_PROPERTY_NAME

public static final java.lang.String DEFAULT_PROPERTY_NAME
Default property name to read filenames from

See Also:
Constant Field Values (src)
Constructor Detail

DefaultPropertyReader

public DefaultPropertyReader(java.lang.String propertyName)
Construct a DefaultPropertyReader with a specified property name.


DefaultPropertyReader

public DefaultPropertyReader()
Construct a DefaultPropertyReader.

Method Detail

getFilenames

public static java.lang.String[] getFilenames(java.lang.String propertyName)
                                       throws PropertyException (src) 
Get an array of filenames to load.

Parameters:
propertyName - Property to read filenames from.
Returns:
Array of filenames.
Throws:
PropertyException (src)