
hu.meza.tools.config.SystemPropertiesConfiguration Maven / Gradle / Ivy
package hu.meza.tools.config;
import java.util.Map;
import java.util.Properties;
public class SystemPropertiesConfiguration implements Configuration {
private Properties properties;
@Override
public boolean load() {
properties = System.getProperties();
Map env = System.getenv();
for (Map.Entry var : env.entrySet()) {
if (properties.contains(var.getKey())) {
continue;
}
properties.put(var.getKey(), var.getValue());
}
return true;
}
@Override
public Properties properties() {
return properties;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy