RFR: javax.xml.datatype: Using ServiceLoader to load JAXP datatype factories (7169894: JAXP Plugability Layer: using service loader) (original) (raw)
Daniel Fuchs daniel.fuchs at oracle.com
Tue Dec 11 17:47:18 UTC 2012
- Previous message: hg: jdk8/tl/langtools: 8003967: detect and remove all mutable implicit static enum fields in langtools
- Next message: RFR: javax.xml.datatype: Using ServiceLoader to load JAXP datatype factories (7169894: JAXP Plugability Layer: using service loader)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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.datatype package. It is similar to changes proposed for the javax.xml.parsers package [1], with a few differences due to the specificities of javax.xml.datatype.
Namely:
The documentation that describes the loading mechanism is in the class header rather than in the method documentation - which leads to some wording changes.
The DatatypeFactory is specified to throw a DatatypeConfigurationException - which is a checked exception, instead of an Error - as was FactoryConfigurationError
DatatypeConfigurationException allows to wrap ServiceConfigurationError directly - so the additional layer of RuntimeException is not needed here.
<http://cr.openjdk.java.net/~dfuchs/JDK-7169894/javax.xml.datatype/webrev.00>
-- daniel
[1] javax.xml.parsers: <http://cr.openjdk.java.net/~dfuchs/JDK-7169894/javax.xml.parsers/webrev.04/>
- Previous message: hg: jdk8/tl/langtools: 8003967: detect and remove all mutable implicit static enum fields in langtools
- Next message: RFR: javax.xml.datatype: Using ServiceLoader to load JAXP datatype factories (7169894: JAXP Plugability Layer: using service loader)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]