Package ej.property

Interface PropertyLoader

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.lang.String getProperty​(java.lang.String key)
      Gets the value mapped with the specified key.
      java.lang.String getProperty​(java.lang.String key, java.lang.String defaultValue)
      Gets the value mapped with the specified key or a default value.
    • Method Detail

      • getProperty

        @Nullable
        java.lang.String getProperty​(java.lang.String key)
        Gets the value mapped with the specified key.
        Parameters:
        key - the key.
        Returns:
        the value of the property, or null if the property is not found.
        Throws:
        java.lang.SecurityException - if a security manager exists and does not allow the caller to retrieve the given property.
      • getProperty

        java.lang.String getProperty​(java.lang.String key,
                                     java.lang.String defaultValue)
        Gets the value mapped with the specified key or a default value.
        Parameters:
        key - the key.
        defaultValue - the default value.
        Returns:
        the value of the property, or the default value if the property is not found.
        Throws:
        java.lang.SecurityException - if a security manager exists and does not allow the caller to retrieve the given property.