Interface Properties.Source

All Known Implementing Classes:
AssertionErrorPropertiesSource, PrefixSource, ProxyPropertiesSource
Enclosing class:
Properties

public static interface Properties.Source
  • Method Details

    • get

      String get(String key)
      Throws:
      RuntimeException - if key is null or empty. You may want to use Sources.checkKey(String) for implementations.
    • keySet

      Collection<String> keySet()
      Returns all keys, for which get(String) does not return null. This operation is optional - if this source does not support this operation, it returns null. The result is always unmodifiable.
    • reload

      default Properties.Source reload()
      Reloads the contents of this source from its origin, if this makes sense for the implementation. The reloaded contents are returned as a new source - this source is not modified.

      If the implementation does not support reloading, simply return this, which is also the default implementation.

    • getDescription

      String getDescription()