Package ej.property

Interface PropertyRegistry

    • Method Detail

      • setProperty

        @Nullable
        java.lang.String setProperty​(java.lang.String key,
                                     java.lang.String value)
        Sets a property that maps a key to a value.
        Parameters:
        key - the key.
        value - the value.
        Returns:
        the previous 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 set the given property.
      • removeProperty

        @Nullable
        java.lang.String removeProperty​(java.lang.String key)
        Removes a property.
        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 remove the given property.