typesafehub/config — Issue #5: Use context class loader by default
Author: havocp
Created: 2012-02-28 17:36:15+00:00
State: open

Right now to load the reference config, etc. we use getClassLoader on a class from com.typesafe.config

But for example Play is trying to do this:

private val initialConfiguration = Threads.withContextClassLoader(classloader) {
Configuration.load(path, mode)
}

And because Play apps have their own class loader, the reference.conf for the app dependencies will not be found.

The config library should use the context class loader by default rather than ConfigImpl.class.getClassLoader.