RFR: 8332086: Remove the usage of ServiceLoader in j.u.r.RandomGeneratorFactory

Raffaello Giulietti rgiulietti at openjdk.org
Mon May 13 17:15:11 UTC 2024


On Mon, 13 May 2024 14:52:45 GMT, Daniel Fuchs <dfuchs at openjdk.org> wrote:

>> Fine with me.
>
> Not sure if that's an issue - but if you wanted/needed to delay the loading of those random generator classes that will not be used until something actually wants to use them, you could consider using a `Supplier<Class<? extends RandomGenerator>>` or a `Supplier<RandomGenEntry>` for the `FACTORY_MAP` values?

@dfuch You mean not loading the whole batch but only individual classes, as need arises?

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/19212#discussion_r1598796844


More information about the core-libs-dev mailing list