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

cz.jalasoft.util.configuration.source.ConfigSource Maven / Gradle / Ivy

The newest version!
package cz.jalasoft.util.configuration.source;

import java.io.IOException;
import java.io.Reader;
import java.nio.file.Path;

/**
 * @author Honza Lastovicka ([email protected])
 * @since 2016-07-27.
 */
public interface ConfigSource {

    static ConfigSource classpath(String name) {
        return new ClasspathConfigSource(name);
    }

    static ConfigSource file(Path file) {
        return new FileConfigSource(file);
    }

    static ConfigSource file(String path) {
        return new FileConfigSource(path);
    }

    Reader load() throws IOException;

    String name();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy