com.almende.eve.config.Config Maven / Gradle / Ivy
package com.almende.eve.config;
import java.io.FileNotFoundException;
import java.io.InputStream;
import java.util.ArrayList;
import java.util.Arrays;
import com.almende.eve.agent.AgentFactory;
public class Config extends YamlConfig {
public Config() {
super();
}
public Config(String filename) throws FileNotFoundException {
super(filename);
}
public Config(InputStream inputStream) {
super(inputStream);
}
public T get(String ... params) {
ArrayList envParams = new ArrayList(params.length+2);
envParams.add("environment");
envParams.add(AgentFactory.getEnvironment());
envParams.addAll(Arrays.asList(params));
T result = super.get(envParams.toArray(new String[0]));
if (result == null){
result = super.get(params);
}
return result;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy