Skip to content
This repository was archived by the owner on Feb 12, 2019. It is now read-only.

Commit bcc3448

Browse files
committed
adds properties and envr at the Setting
1 parent f0a7792 commit bcc3448

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

artemis-configuration/src/main/java/org/jnosql/artemis/configuration/DefaultConfigurationReader.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,8 @@ public <T> ConfigurationSettingsUnit read(ConfigurationUnit annotation, Class<T>
7171
String name = configuration.getName();
7272
String description = configuration.getDescription();
7373
Map<String, Object> settings = new HashMap<>(ofNullable(configuration.getSettings()).orElse(emptyMap()));
74+
settings.putAll(System.getenv());
75+
System.getProperties().forEach((k,v) -> settings.put(k.toString(), v));
7476
Class<?> provider = getProvider(configurationClass, configuration);
7577

7678
return new DefaultConfigurationSettingsUnit(name, description, provider, Settings.of(settings));

0 commit comments

Comments
 (0)