Interface PropertyHandler

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean exists​(String filename)
      check to see whether a property file exists within the classpath or filesystem
      String getProperty​(String key)
      return the value of a given key from the properties list
      String getProperty​(String key, String defValue)
      return the value of a given key from the properties list, returning the defValue string should the key not be found
      boolean loadProps​(String filename)
      load properties for the given properties file
    • Method Detail

      • loadProps

        boolean loadProps​(String filename)
        load properties for the given properties file
        Parameters:
        filename -
        Returns:
        true if load was successful
      • exists

        boolean exists​(String filename)
        check to see whether a property file exists within the classpath or filesystem
        Parameters:
        filename -
        Returns:
        true if resource exists
      • getProperty

        String getProperty​(String key)
        return the value of a given key from the properties list
        Parameters:
        key -
        Returns:
        null if the key is not found
      • getProperty

        String getProperty​(String key,
                           String defValue)
        return the value of a given key from the properties list, returning the defValue string should the key not be found
        Parameters:
        key -
        defValue -
        Returns:
        a string representing either the value associated with the passed key or defValue should that key not be found