ClassLoader.getResources vs Module.getResourceAsStream
Alan Bateman
Alan.Bateman at oracle.com
Sat Jul 14 15:53:08 UTC 2018
On 14/07/2018 16:38, Michał Zegan wrote:
> What is then a recommendation for searching for all resources with name
> x that i can access? Something like load all configuration including
> some kind of extensions. I cannot list resources easily.
>
Services is the cleaner way to do this kind of thing, esp. if you have
flexibility to change the code and move away from legacy ClassLoader
getResources.
-Alan
More information about the jigsaw-dev
mailing list