JCE providers as services

David M. Lloyd david.lloyd at redhat.com
Tue Jun 19 14:39:11 PDT 2012


On 06/19/2012 03:19 PM, 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.

This doesn't seem to be in the JCryptoA specification, or have I just 
missed it?

> 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().

Since these services are essentially global to a configuration, surely 
it's easy enough to specify, in that global configuration, what order to 
prefer services to load from in a general sense (i.e. not limited to 
Provider impls)?  If not... why not?

-- 
- DML



More information about the jigsaw-dev mailing list