JCE providers as services

Sean Mullan sean.mullan at oracle.com
Tue Jun 19 10:48:36 PDT 2012


I'm working on trying to convert the JCE providers to modular services.

In the JDK, more than one module will need to export/provide the same 
JCE service interface. Is this a problem?

For example:

1. jdk.crypto at 8-ea
    ...
      provides service java.security.Provider
        with com.sun.crypto.provider.SunJCE

2. jdk.xmldsig at 8-ea
    ...
      provides service java.security.Provider
        with org.jcp.xmldsig.internal.dom.XMLDSigRI

Will a service consumer be able to discover all of the installed JCE 
services just by adding a "requires service java.security.Provider"? In 
other words, I'm assuming it doesn't need to also add the modules 
exporting that service as a dependency.

--Sean




More information about the jigsaw-dev mailing list