RFR: javax.xml.validation: Using ServiceLoader to load JAXP schema factories (7169894: JAXP Plugability Layer: using service loader)

Daniel Fuchs daniel.fuchs at oracle.com
Wed Jan 9 14:28:12 UTC 2013


Hi,

Here is a new webrev in the series that addresses using ServiceLoader in
JAXP for JDK 8.

7169894: JAXP Plugability Layer: using service loader

This changeset addresses modification in the javax.xml.validation
package.

It is a bit more complex than the changes required for the other
packages because the newInstance methods takes an additional
schemaLanguage parameter, and therefore we need to loop over
the providers in order to find one that supports the language.


<http://cr.openjdk.java.net/~dfuchs/JDK-7169894/javax.xml.validation/webrev.00/>

Also this particular package did not have any specific configuration
error to throw in case of misconfiguration (the xpath package in which
the logic is very similar had one for instance), so we're adding a new
SchemaFactoryConfigurationError for that purpose.


best regards,

-- daniel

previous webrevs in the series:

[1] javax.xml.parsers:
<http://cr.openjdk.java.net/~dfuchs/JDK-7169894/javax.xml.parsers/webrev.06/>

[2] javax.xml.datatype:
<http://cr.openjdk.java.net/~dfuchs/JDK-7169894/javax.xml.datatype/webrev.02/>

[3] javax.xml.stream
<http://cr.openjdk.java.net/~dfuchs/JDK-7169894/javax.xml.stream/webrev.03/> 


[4] javax.xml.transform
<http://cr.openjdk.java.net/~dfuchs/JDK-7169894/javax.xml.transform/webrev.01/>



More information about the core-libs-dev mailing list