Package org.jboss.util.property
Class DefaultPropertyReader
- java.lang.Object
-
- org.jboss.util.property.FilePropertyReader
-
- org.jboss.util.property.DefaultPropertyReader
-
- All Implemented Interfaces:
PropertyReader
public final class DefaultPropertyReader extends FilePropertyReader
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.
- Version:
- $Revision$
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
DEFAULT_PROPERTY_NAME
Default property name to read filenames from-
Fields inherited from class org.jboss.util.property.FilePropertyReader
filenames
-
-
Constructor Summary
Constructors Constructor Description DefaultPropertyReader()
Construct a DefaultPropertyReader.DefaultPropertyReader(java.lang.String propertyName)
Construct a DefaultPropertyReader with a specified property name.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description 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
getInputStream, loadProperties, readProperties
-
-
-
-
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
-
-
Method Detail
-
getFilenames
public static java.lang.String[] getFilenames(java.lang.String propertyName) throws PropertyException
Get an array of filenames to load.- Parameters:
propertyName
- Property to read filenames from.- Returns:
- Array of filenames.
- Throws:
PropertyException
-
-