Codebase list jaxb-api / 885e5506-5c08-4c25-b61c-44326e7cab90/upstream
Import upstream version 2.4.0 Debian Janitor 2 years ago
6 changed file(s) with 9 addition(s) and 20 deletion(s). Raw diff Collapse all Expand all
0 /target/
1 /jaxb-api/target/
0 /target/
4545 <parent>
4646 <artifactId>jaxb-api-parent</artifactId>
4747 <groupId>javax.xml.bind</groupId>
48 <version>2.3.1</version>
48 <version>2.4.0</version>
4949 </parent>
5050 <modelVersion>4.0.0</modelVersion>
5151
170170 <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
171171 </archive>
172172 <instructions>
173 <Require-Capability>osgi.ee;filter:="(&amp;(osgi.ee=JavaSE)(version>=1.8))"</Require-Capability>
174173 <Bundle-Version>${project.version}</Bundle-Version> <!-- 2.2.99.bnull -->
175174 <Extension-Name>${extension.name}</Extension-Name>
176175 <Implementation-Version>${spec.version}.${impl.version}</Implementation-Version>
6969 class ContextFinder {
7070
7171 /**
72 * When JAXB is in J2SE, rt.jar has to have a JAXB implementation.
73 * However, rt.jar cannot have META-INF/services/javax.xml.bind.JAXBContext
74 * because if it has, it will take precedence over any file that applications have
75 * in their jar files.
76 *
77 * <p>
78 * When the user bundles his own JAXB implementation, we'd like to use it, and we
79 * want the platform default to be used only when there's no other JAXB provider.
80 *
81 * <p>
82 * For this reason, we have to hard-code the class name into the API.
83 */
84 private static final String PLATFORM_DEFAULT_FACTORY_CLASS = "com.sun.xml.internal.bind.v2.ContextFactory";
72 * Previously used to point into JavaSE provider now defaults to RI context factory class.
73 * This will be used as the last resort if none of other resolution mechanism is successful.
74 */
75 private static final String PLATFORM_DEFAULT_FACTORY_CLASS = "com.sun.xml.bind.v2.ContextFactory";
8576
8677 // previous value of JAXBContext.JAXB_CONTEXT_FACTORY, using also this to ensure backwards compatibility
8778 private static final String JAXB_CONTEXT_FACTORY_DEPRECATED = "javax.xml.bind.context.factory";
4545 <parent>
4646 <artifactId>jaxb-api-parent</artifactId>
4747 <groupId>javax.xml.bind</groupId>
48 <version>2.3.1</version>
48 <version>2.4.0</version>
4949 </parent>
5050 <modelVersion>4.0.0</modelVersion>
5151
8181 private static final String FACTORY_ID = "javax.xml.bind.JAXBContextFactory";
8282 private static final String PACKAGE_LEGACY = "jaxb.factory.legacy."; // TODO: ???
8383 private static final String PACKAGE_SPI = "jaxb.factory.spi."; // TODO: ???
84 private static final Object DEFAULT = "com.sun.xml.internal.bind.v2.runtime.JAXBContextImpl";
84 private static final Object DEFAULT = "com.sun.xml.bind.v2.runtime.JAXBContextImpl";
8585
8686
8787 static {
4545 <modelVersion>4.0.0</modelVersion>
4646 <groupId>javax.xml.bind</groupId>
4747 <artifactId>jaxb-api-parent</artifactId>
48 <version>2.3.1</version>
48 <version>2.4.0</version>
4949
5050 <parent>
5151 <groupId>net.java</groupId>