Overview
Currently, the loadFactoryNames() and loadFactories() methods in SpringFactoriesLoader effectively use a different default ClassLoader.
This potentially results in two entries in the internal cache:
- one using the class loader for
SpringFactoriesLoader.classwhenloadFactories()is invoked with anullClassLoader. - one using the system class loader when
loadFactoryNames()is invoked with anullClassLoader.
Deliverales
- Consistently use the
ClassLoaderforSpringFactoriesLoader.classas the defaultClassLoader.