Re: RFR: 8346946: Allow class loaders to bind to layers for service loading

2025-02-05 Thread David M . Lloyd
On Thu, 2 Jan 2025 17:13:17 GMT, David M. Lloyd wrote: > When loading services by class loader > (`ServiceLoader.load(Class,ClassLoader)`), the module layers bound to the > given class loader are searched for services, along with the layers bound to > class loader's parent, and so on. For non-

Re: RFR: 8346946: Allow class loaders to bind to layers for service loading

2025-01-02 Thread Alan Bateman
On Thu, 2 Jan 2025 17:13:17 GMT, David M. Lloyd wrote: > When loading services by class loader > (`ServiceLoader.load(Class,ClassLoader)`), the module layers bound to the > given class loader are searched for services, along with the layers bound to > class loader's parent, and so on. For non-

RFR: 8346946: Allow class loaders to bind to layers for service loading

2025-01-02 Thread David M . Lloyd
When loading services by class loader (`ServiceLoader.load(Class,ClassLoader)`), the module layers bound to the given class loader are searched for services, along with the layers bound to class loader's parent, and so on. For non-hierarchical class loader arrangements, this breaks down because