Class PropertiesReader


  • public class PropertiesReader
    extends java.lang.Object
    Reads properties files.

    • Constructor Summary

      Constructors 
      Constructor Description
      PropertiesReader​(java.lang.Class theClass, java.lang.String propertiesFileURL)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Properties get()
      Returns properties associated to indicated file.
      • Methods inherited from class java.lang.Object

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

      • PropertiesReader

        public PropertiesReader​(java.lang.Class theClass,
                                java.lang.String propertiesFileURL)
        Parameters:
        propertiesFileURL - Cannot be null
        theClass - Class from obtain the ClassLoader used to read the file. Cannot be nul
    • Method Detail

      • get

        public java.util.Properties get()
                                 throws java.io.IOException
        Returns properties associated to indicated file.

        Read all files in classpath with the property file name used in constructor. The result is a mix of all properties of this files.
        Only read the first time.

        Returns:
        Not null
        Throws:
        java.io.IOException