Package com.exedio.cope.util
Interface Properties.Source
- All Known Implementing Classes:
AssertionErrorPropertiesSource,PrefixSource,ProxyPropertiesSource
- Enclosing class:
- Properties
public static interface Properties.Source
-
Method Summary
Modifier and TypeMethodDescriptionkeySet()Returns all keys, for whichget(String)does not return null.default Properties.Sourcereload()Reloads the contents of this source from its origin, if this makes sense for the implementation.
-
Method Details
-
get
- Throws:
RuntimeException- if key is null or empty. You may want to useSources.checkKey(String)for implementations.
-
keySet
Collection<String> keySet()Returns all keys, for whichget(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
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()
-