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


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

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.


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:

[2] javax.xml.datatype:

[3] javax.xml.stream

[4] javax.xml.transform

More information about the core-libs-dev mailing list