Class 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 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
    • Constructor Detail

      • DefaultPropertyReader

        public DefaultPropertyReader​(java.lang.String propertyName)
        Construct a DefaultPropertyReader with a specified property name.
        Parameters:
        propertyName - Property name.
      • DefaultPropertyReader

        public DefaultPropertyReader()
        Construct a DefaultPropertyReader.
    • 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