feat: Property source can return the raw values for a key.
@@ -157,6 +157,12 @@ public class PropertyConfiguration {
return getRaw((String key) -> true);
}
+ @NotNull
+ public Optional<String> getRaw(@NotNull final String key) {
+ Assert.notNull(key, "Must supply a key to get a raw value");
+ return resolveFromCache(key).getResolutionInfo().map(PropertyResolutionInfo::getRaw);
+ }
+
@NotNull
public Map<String, String> getRaw(@NotNull final Set<String> keys) {
Assert.notNull(keys, "Must supply a set of keys to get raw keys");
