configuration.SymConfigLoader Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of symphony-api-client-java Show documentation
Show all versions of symphony-api-client-java Show documentation
Symphony API Client provided by Symphony Platform Solutions team
package configuration;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.io.File;
import java.io.IOException;
public class SymConfigLoader {
private final Logger logger = LoggerFactory.getLogger(SymConfigLoader.class);
public SymConfig loadFromFile(String path){
ObjectMapper mapper = new ObjectMapper();
SymConfig config = null;
try {
config = mapper.readValue(new File(path), SymConfig.class);
} catch (IOException e) {
e.printStackTrace();
}
return config;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy