Class AbstractPropertiesFactory

  • Direct Known Subclasses:
    PropertiesFactorySax, PropertiesFactoryStax

    public abstract class AbstractPropertiesFactory
    extends java.lang.Object
    This class loads properties according to the file location, substitution and override rules described in the docs.
    Author:
    Richard A. Begg (richard.begg@arjuna.com), Gytis Trikleris
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Properties getDefaultProperties()
      Returns the systems default properties, as read from the configuration file.
      java.util.Properties getPropertiesFromFile​(java.lang.String propertyFileName, java.lang.ClassLoader classLoader)
      Returns the config properties read from a specified location.
      protected abstract java.util.Properties loadFromXML​(java.util.Properties p, java.io.InputStream is)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AbstractPropertiesFactory

        public AbstractPropertiesFactory()
    • Method Detail

      • getDefaultProperties

        public java.util.Properties getDefaultProperties()
        Returns the systems default properties, as read from the configuration file.
        Returns:
        the configuration Properties
      • getPropertiesFromFile

        public java.util.Properties getPropertiesFromFile​(java.lang.String propertyFileName,
                                                          java.lang.ClassLoader classLoader)
        Returns the config properties read from a specified location.
        Parameters:
        propertyFileName - the file name. If relative, this is located using the FileLocator algorithm.
        Returns:
        the Properties loaded from the specified source.
      • loadFromXML

        protected abstract java.util.Properties loadFromXML​(java.util.Properties p,
                                                            java.io.InputStream is)
                                                     throws java.io.IOException
        Throws:
        java.io.IOException