All Downloads are FREE. Search and download functionalities are using the official Maven repository.

configuration.SymConfigLoader Maven / Gradle / Ivy

There is a newer version: 1.3.9
Show newest version
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