JCE providers as services

Alan Bateman Alan.Bateman at oracle.com
Tue Jun 19 14:11:59 PDT 2012


On 19/06/2012 21:19, Sean Mullan wrote:
> Thanks. Here are a couple of issues I have run into so far with 
> converting JCE Providers to modular services:
>
> 1. Some Providers take an optional String argument, i.e. they can 
> define a Provider(String) constructor. Not sure how to workaround that 
> one yet.
Is this the provider name or the description?  Maybe you can add a 
no-arg constructor that invokes super with the name.

>
> 2. The order of the returned providers is important and is based on 
> the java.security configuration file. This one I can probably 
> workaround by changing the internal provider lookup code to reorder 
> the Providers returned by ServiceLoader.iterator().
>
There isn't any way to order the providers at this time. It's come up a 
few times and one idea floated was to make this configurable. For now, 
and to get this working, then using the existing configuration file to 
re-order them would be a good start.

-Alan.




More information about the jigsaw-dev mailing list