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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description String
get(String key)
String
getDescription()
Collection<String>
keySet()
Returns all keys, for whichget(String)
does not return null.default Properties.Source
reload()
Reloads the contents of this source from its origin, if this makes sense for the implementation.
-
-
-
Method Detail
-
get
String get(String key)
- 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
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()
-
-