uk.co.mruoc.properties.ClasspathPropertyLoader Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of file-loader Show documentation
Show all versions of file-loader Show documentation
Code library to easily load files and file from the classpath or file system file
package uk.co.mruoc.properties;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.util.Properties;
public class ClasspathPropertyLoader extends DefaultPropertyLoader {
private static final Logger LOGGER = LoggerFactory.getLogger(ClasspathPropertyLoader.class);
public ClasspathPropertyLoader() {
super(new ClasspathInputStreamLoader());
}
@Override
public Properties load(String path) {
LOGGER.info("loading properties from classpath using path " + path);
return super.load(path);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy