cz.jalasoft.util.configuration.source.ConfigSource Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of JalasoftUtils Show documentation
Show all versions of JalasoftUtils Show documentation
A collection of utility classes that might be useful.
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();
}