Fix federation provider example to load users file from it's own ClassLoader instead of Thread CL

This commit is contained in:
Stian Thorgersen 2015-01-28 13:23:00 +01:00
parent 1a913b21c1
commit 6400e9b978

View file

@ -20,7 +20,7 @@ public class ClasspathPropertiesFederationFactory extends BasePropertiesFederati
}
protected InputStream getPropertiesFileStream(String path) {
InputStream is = Thread.currentThread().getContextClassLoader().getResourceAsStream(path);
InputStream is = getClass().getClassLoader().getResourceAsStream(path);
if (is == null) {
throw new IllegalStateException("Path not found for properties file");