Package ej.property

Interface PropertyLoader

    • Method Detail

      • getProperty

        @Nullable
        String getProperty​(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:
        SecurityException - if a security manager exists and does not allow the caller to retrieve the given property.
      • getProperty

        String getProperty​(String key,
                           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:
        SecurityException - if a security manager exists and does not allow the caller to retrieve the given property.