Hi Ralph, On Tue, 7 Nov 2023 at 05:05, Ralph Goers <ralph.go...@dslextreme.com> wrote: > Next, there is a good chance that users really using JPMS won’t be able to > access any plugins outside of log4j-core. See > https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/ClassLoader.html#getResource(java.lang.String). > This is precisely why 3.x uses ServiceLoader to locate all plugins.
The `META-INF` directory is not encapsulated, so `getResource` should work fine. Nevertheless using `ServiceLoader` is a much cleaner solution and would allow us to greatly simplify our OSGi-specific code. Piotr