RFR: javax.xml.validation: Using ServiceLoader to load JAXP schema factories (7169894: JAXP Plugability Layer: using service loader)
Alan.Bateman at oracle.com
Fri Jan 11 16:58:37 UTC 2013
On 09/01/2013 14:28, Daniel Fuchs wrote:
> 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.
I've taken an initial look at this and I'm wondering about
SchemeFactory.newInstance throwing SchemaFactoryConfigurationError.
Technically this is an incompatible change but in practical terms it may
not be concern as this provider interface may not be used very much.
Joe Wang - have you come across SchemaFactory implementations, I'm
trying to get a feel for how much this is used, if ever.
More information about the core-libs-dev