JCE providers as services
Sean Mullan
sean.mullan at oracle.com
Tue Jun 19 14:18:36 PDT 2012
On 06/19/2012 05:11 PM, Alan Bateman wrote:
> 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.
It's used internally to pass a configuration file to the SunPKCS11 and
Ucrypto providers. I suppose I could add an init method and pass it in
that way after it is instantiated and returned by the ServiceLoader.
--Sean
More information about the jigsaw-dev
mailing list