That's really fascinating, I had no idea. Looks like it's documented in Step 4: Create a Module Declaration for Your Provider <https://docs.oracle.com/javase/9/security/howtoimplaprovider.htm#JSSEC-GUID-83742677-6E39-4A8D-BF0F-BC743E3AE43C> with follow up in Step 8.1: Configure the Provider <https://docs.oracle.com/javase/9/security/howtoimplaprovider.htm#GUID-831AA25F-F702-442D-A2E4-8DA6DEA16F33> and Step 10: Run Your Test Programs <https://docs.oracle.com/javase/9/security/howtoimplaprovider.htm#JSSEC-GUID-3FD26072-6982-4DCE-932C-DE152C463992> .
On Mon, Jan 7, 2019 at 8:01 AM Alan Bateman <alan.bate...@oracle.com> wrote: > On 07/01/2019 15:52, Will Sargent wrote: > > I didn't know that a service provider mechanism was added in Java 9. > > The ServiceLoader pattern I'm using has been around since JDK 1.7 if > > that's what you mean: > > > > > https://www.oracle.com/technetwork/articles/javase/extensible-137159.html > > > > I don't use Java 9, nor do I know any companies or individuals who use > it. > > > Since JDK 9, you can deploy JCE providers on the class path or module > path as service providers. This means JCE is using ServiceLoader to > locate and load them. You may find this useful for what you are doing, > once you get to a newer release. > > -Alan >