Re: ULRStreamHandlerFactory proposal

2022-02-17 Thread Raymond Augé
Lastly, I do agree that if fixed in Java that would be the best case scenario. However, I am not hopeful. On Thu, Feb 17, 2022 at 9:08 AM Raymond Augé wrote: > Another small point is that the issue is with cleanup more than with > registration. The Java 17 API has no way to remove factories. Thi

Re: ULRStreamHandlerFactory proposal

2022-02-17 Thread Raymond Augé
Another small point is that the issue is with cleanup more than with registration. The Java 17 API has no way to remove factories. This tied to the lack of a coordination model means that you risk classloader pinning. Sure tomcat has a work around. But there is no portable API anywhere to do it. Ea

Re: ULRStreamHandlerFactory proposal

2022-02-17 Thread Raymond Augé
I would like to clarify one small point which may have been missed in my description. The issue is that there is not only tomcat. There are other frameworks in the Java ecosystem having a desire to manage URLStreamHandlerFactories. The problem is coordination between them when they are peers, or w

Re: ULRStreamHandlerFactory proposal

2022-02-17 Thread Romain Manni-Bucau
Hi all It is a very valid point, since tomcat started to use this API it got worked around in all integrations (bypassed to disable war: url handling basically). I never fully got why tomcat integrated at that level since in standalone mode it owns the deployment so it does not need at all AFAIK s

Re: ULRStreamHandlerFactory proposal

2022-02-17 Thread Rémy Maucherat
On Thu, Feb 17, 2022 at 12:11 AM Raymond Augé wrote: > > Hello all, > > There has been a long standing limitation in the JDK w.r.t. the handling of > URLStreamHandlerFactory. Beyond Java 17 this API becomes even more locked > down making dynamic use cases or coordination among frameworks next to >