Re: Classloader usage

2022-03-18 Thread Ralph Goers
This is exactly why we love getting new committers on board! When I wrote this code my thinking was that I have no idea what ClassLoader scheme the app is running in. Heck, JBoss had at least 3 of them in the time I worked with it years ago. So the idea here is to simply find implementations w

Re: Classloader usage

2022-03-18 Thread Piotr P. Karwasz
On Fri, 18 Mar 2022 at 10:50, Piotr P. Karwasz wrote: > I am trying to understand the way the context classloader and > `ServiceLoader` are used in Log4j 2.x[1]. Since I accidentally clicked "Send" on the previous email before finishing it, I should probably add some context to the questions abov

Re: Classloader usage

2022-03-18 Thread Matt Sicker
It sounds like we could use some cleanup around here. Number 3 is particularly interesting. As for number 4, that seems to be a form of uniqueness checking (no two providers of the same class). On Fri, Mar 18, 2022 at 4:50 AM Piotr P. Karwasz wrote: > > Hello, > > I am trying to understand the w

Classloader usage

2022-03-18 Thread Piotr P. Karwasz
Hello, I am trying to understand the way the context classloader and `ServiceLoader` are used in Log4j 2.x[1]. The `log4j-api` uses `LoaderUtil.getClassLoaders` in several places to lookup services from the context classloader and the `log4j-api` classloader. This procedure has IMHO some problem

[LOG4J] Log4j2 is not embeddable due to its system classloader usage

2018-01-10 Thread Gary Gregory
Hi All: Looking for additional community feedback for https://issues.apache.org/jira/browse/LOG4J2-2171 Gary