Class SilverProperties

    • Method Detail

      • load

        public static SilverProperties load​(Class<?> fromClass,
                                            String... propertyFilePaths)
        Loads properties of given property file path from a class.
        Property file has to exist into resources of the project.
        Parameters:
        fromClass - the class from which the properties are requested.
        propertyFilePaths - the paths of files that contains the aimed properties.
        Returns:
        an instance of SilverProperties that contains requested properties.
      • load

        public SilverProperties load​(String... propertyFilePaths)
        Loads properties of given property file path from a class and add them to the currents.
        Property file has to exist into resources of the project.
        Parameters:
        propertyFilePaths - the paths of files that contains the aimed properties.
        Returns:
        an instance of SilverProperties that contains requested properties.