I use microbean-microprofile-config for the first time and I run into the following issue. I am not sure if this is a bug or if I had to solve it in another way.
ConfigProvider.getConfig(myClassLoader)
ConfigProviderResolver.instance().getConfig(cl)
ConfigBuild.build()
org.microbean.microprofile.config.Config.getDefaultConfigSources()
Collection<? extends ConfigSource> microprofileConfigPropertiesConfigSources = getMicroprofileConfigPropertiesSources((ClassLoader)null);
getMicroprofileConfigPropertiesSources(ClassLoader classLoader)
classLoader.getResources("META-INF/microprofile-config.properties");
The properties file will not be found because for loading properties file the default classloader is use at the following line you see that classloader is passed as null to "getMicroprofileConfigPropertiesSources"
In my opinion thats wrong. I think method "getDefaultConfigSources" should be overloaded with a parameter "classloader" and the call from ConfigBuild.build() should pass the classloader