I’m not going to backport the DI system. It relies on Java 11 in all sorts of 
random places, first of all. I had to update numerous plugins and tests along 
the way, especially things that set up or manipulate static state, much of 
which has been cleaned up in main. It’s hard to describe all the little things 
that went into that.
—
Matt Sicker

> On Nov 7, 2023, at 05:31, Piotr P. Karwasz <piotr.karw...@gmail.com> wrote:
> 
> 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

Reply via email to