Skip to content

Commit

Permalink
gjør det mulig å liste alle property sources
Browse files Browse the repository at this point in the history
  • Loading branch information
janolaveide committed Jan 24, 2020
1 parent 7e89e24 commit efba817
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ public String namespace() {
return namespace.getNamespace();
}

public String getProperty(String key) {
return getProperty(key, (String) null);
public List<KonfigVerdiProvider> getPropertySources() {
return propertySources;
}

public String getRequiredProperty(String key) {
Expand Down Expand Up @@ -111,6 +111,10 @@ public <T> T getProperty(String key, Class<T> targetType, T defaultVerdi) {
.orElse(defaultVerdi);
}

public String getProperty(String key) {
return getProperty(key, (String) null);
}

private static <T> Converter<?> converterFor(Class<T> targetType) {
try {
if (targetType.equals(String.class)) {
Expand Down

0 comments on commit efba817

Please sign in to comment.