Unverified Commit 09a4e905 authored by Thibault Vallin's avatar Thibault Vallin Committed by GitHub
Browse files

Rename package from javax to jakarta (#125)


* Rename package from javax to jakarta
Signed-off-by: default avatartvallin <thibault.vallin@oracle.com>
parent 53e61ae7
/*
* Copyright (c) 2003, 2018 Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2003, 2020 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Distribution License v. 1.0, which is available at
......@@ -8,7 +8,7 @@
* SPDX-License-Identifier: BSD-3-Clause
*/
package javax.xml.bind;
package jakarta.xml.bind;
/**
* This is an element marker interface.
......
/*
* Copyright (c) 2006, 2018 Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2006, 2020 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Distribution License v. 1.0, which is available at
......@@ -8,7 +8,7 @@
* SPDX-License-Identifier: BSD-3-Clause
*/
package javax.xml.bind;
package jakarta.xml.bind;
import java.security.PrivilegedAction;
......
/*
* Copyright (c) 2006, 2018 Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2006, 2020 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Distribution License v. 1.0, which is available at
......@@ -8,9 +8,9 @@
* SPDX-License-Identifier: BSD-3-Clause
*/
package javax.xml.bind;
package jakarta.xml.bind;
import javax.xml.bind.annotation.XmlRootElement;
import jakarta.xml.bind.annotation.XmlRootElement;
import javax.xml.namespace.QName;
import javax.xml.transform.Result;
import javax.xml.transform.Source;
......
......@@ -8,7 +8,7 @@
* SPDX-License-Identifier: BSD-3-Clause
*/
package javax.xml.bind;
package jakarta.xml.bind;
import org.w3c.dom.Node;
......@@ -48,13 +48,13 @@ import java.util.Properties;
* java interface/implementation binding. It does not apply to JAXB annotated
* classes. JAXB Providers must generate a {@code jaxb.properties} file in
* each package containing schema derived classes. The property file must
* contain a property named {@code javax.xml.bind.context.factory} whose
* contain a property named {@code jakarta.xml.bind.context.factory} whose
* value is the name of the class that implements the {@code createContext}
* APIs.</i>
*
* <p><i>
* The class supplied by the provider does not have to be assignable to
* {@code javax.xml.bind.JAXBContext}, it simply has to provide a class that
* {@code jakarta.xml.bind.JAXBContext}, it simply has to provide a class that
* implements the {@code createContext} APIs.</i>
*
* <p><i>
......@@ -205,7 +205,7 @@ import java.util.Properties;
* <p>
* If such a resource is discovered, it is {@link Properties#load(InputStream) loaded} as a property file, and
* the value of the {@link #JAXB_CONTEXT_FACTORY} key will be assumed to be the provider factory class. If no value
* found, {@code "javax.xml.bind.context.factory"} is used as a key for backwards compatibility reasons. This class is
* found, {@code "jakarta.xml.bind.context.factory"} is used as a key for backwards compatibility reasons. This class is
* then loaded by the associated class loader discussed above.
*
* <p>
......@@ -217,12 +217,12 @@ import java.util.Properties;
*
* <li>
* If the system property {@link #JAXB_CONTEXT_FACTORY} exists, then its value is assumed to be the provider
* factory class. If no such property exists, properties {@code "javax.xml.bind.context.factory"} and
* {@code "javax.xml.bind.JAXBContext"} are checked too (in this order), for backwards compatibility reasons. This phase
* factory class. If no such property exists, properties {@code "jakarta.xml.bind.context.factory"} and
* {@code "jakarta.xml.bind.JAXBContext"} are checked too (in this order), for backwards compatibility reasons. This phase
* of the look up enables per-JVM override of the JAXB implementation.
*
* <li>
* Provider of {@link javax.xml.bind.JAXBContextFactory} is loaded using the service-provider loading
* Provider of {@link jakarta.xml.bind.JAXBContextFactory} is loaded using the service-provider loading
* facilities, defined by the {@link java.util.ServiceLoader} class, to attempt
* to locate and load an implementation of the service using the {@linkplain
* java.util.ServiceLoader#load(java.lang.Class) default loading mechanism}: the service-provider loading facility
......@@ -231,10 +231,10 @@ import java.util.Properties;
* {@linkplain ClassLoader#getSystemClassLoader() system class loader} will be used.
* <br>
* In case of {@link java.util.ServiceConfigurationError service
* configuration error} a {@link javax.xml.bind.JAXBException} will be thrown.
* configuration error} a {@link jakarta.xml.bind.JAXBException} will be thrown.
*
* <li>
* Look for resource {@code /META-INF/services/javax.xml.bind.JAXBContext} using provided class loader.
* Look for resource {@code /META-INF/services/jakarta.xml.bind.JAXBContext} using provided class loader.
* Methods without class loader parameter use {@code Thread.currentThread().getContextClassLoader()}.
* If such a resource exists, its content is assumed to be the provider factory class.
*
......@@ -252,7 +252,7 @@ import java.util.Properties;
*
* For backward compatibility reasons, there are two ways how to implement provider factory class:
* <ol>
* <li>the class is implementation of {@link javax.xml.bind.JAXBContextFactory}. It must also implement no-arg
* <li>the class is implementation of {@link jakarta.xml.bind.JAXBContextFactory}. It must also implement no-arg
* constructor. If discovered in other step then 3, new instance using no-arg constructor is created first.
* After that, appropriate instance method is invoked on this instance.
* <li>the class is not implementation of interface above and then it is mandated to implement the following
......@@ -276,14 +276,14 @@ import java.util.Properties;
* 1 (JAXBContextFactory) or 2 (no interface, static methods).
*
* @apiNote
* Service discovery method using resource {@code /META-INF/services/javax.xml.bind.JAXBContext} (described in step 4)
* Service discovery method using resource {@code /META-INF/services/jakarta.xml.bind.JAXBContext} (described in step 4)
* is supported only to allow backwards compatibility, it is strongly recommended to migrate to standard
* {@link java.util.ServiceLoader} mechanism (described in step 3). The difference here is the resource name, which
* doesn't match service's type name.
* <p>
* Also using providers implementing interface {@link JAXBContextFactory} is preferred over using ones defining
* static methods, same as {@link JAXBContext#JAXB_CONTEXT_FACTORY} property is preferred over property
* {@code "javax.xml.bind.context.factory"}
* {@code "jakarta.xml.bind.context.factory"}
*
* @implNote
* Within the last step, if Glassfish AS environment detected, its specific service loader is used to find factory class.
......@@ -305,7 +305,7 @@ public abstract class JAXBContext {
* The name of the property that contains the name of the class capable
* of creating new {@code JAXBContext} objects.
*/
public static final String JAXB_CONTEXT_FACTORY = "javax.xml.bind.JAXBContextFactory";
public static final String JAXB_CONTEXT_FACTORY = "jakarta.xml.bind.JAXBContextFactory";
protected JAXBContext() {
}
......@@ -392,7 +392,7 @@ public abstract class JAXBContext {
* {@code <jaxb:globalBindings valueClass="false">},
* the JAXB provider will ensure that each package on the context path
* has a {@code jaxb.properties} file which contains a value for the
* {@code javax.xml.bind.context.factory} property and that all values
* {@code jakarta.xml.bind.context.factory} property and that all values
* resolve to the same provider. This requirement does not apply to
* JAXB annotated classes.
*
......
......@@ -8,7 +8,7 @@
* SPDX-License-Identifier: BSD-3-Clause
*/
package javax.xml.bind;
package jakarta.xml.bind;
import java.util.Map;
......@@ -26,7 +26,7 @@ public interface JAXBContextFactory {
* Create a new instance of a {@code JAXBContext} class.
*
* <p>
* For semantics see {@link javax.xml.bind.JAXBContext#newInstance(Class[], java.util.Map)}
* For semantics see {@link jakarta.xml.bind.JAXBContext#newInstance(Class[], java.util.Map)}
*
* @param classesToBeBound
* List of java classes to be recognized by the new {@link JAXBContext}.
......@@ -67,7 +67,7 @@ public interface JAXBContextFactory {
* Create a new instance of a {@code JAXBContext} class.
*
* <p>
* For semantics see {@link javax.xml.bind.JAXBContext#newInstance(String, ClassLoader, java.util.Map)}
* For semantics see {@link jakarta.xml.bind.JAXBContext#newInstance(String, ClassLoader, java.util.Map)}
*
* <p>
* The interpretation of properties is up to implementations. Implementations must
......
/*
* Copyright (c) 2004, 2018 Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2004, 2020 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Distribution License v. 1.0, which is available at
......@@ -8,7 +8,7 @@
* SPDX-License-Identifier: BSD-3-Clause
*/
package javax.xml.bind;
package jakarta.xml.bind;
import javax.xml.namespace.QName;
import java.io.Serializable;
......
/*
* Copyright (c) 2003, 2018 Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2003, 2020 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Distribution License v. 1.0, which is available at
......@@ -8,7 +8,7 @@
* SPDX-License-Identifier: BSD-3-Clause
*/
package javax.xml.bind;
package jakarta.xml.bind;
import java.io.PrintWriter;
......
/*
* Copyright (c) 2004, 2018 Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2004, 2020 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Distribution License v. 1.0, which is available at
......@@ -8,7 +8,8 @@
* SPDX-License-Identifier: BSD-3-Clause
*/
package javax.xml.bind;
package jakarta.xml.bind;
import javax.xml.namespace.QName;
/**
......@@ -34,7 +35,7 @@ public abstract class JAXBIntrospector {
* <p>Return true if <code>object</code> represents a JAXB element.</p>
* <p>Parameter <code>object</code> is a JAXB element for following cases:
* <ol>
* <li>It is an instance of <code>javax.xml.bind.JAXBElement</code>.</li>
* <li>It is an instance of <code>jakarta.xml.bind.JAXBElement</code>.</li>
* <li>The class of <code>object</code> is annotated with
* <code>&#64;XmlRootElement</code>.
* </li>
......@@ -58,7 +59,7 @@ public abstract class JAXBIntrospector {
* <p>Get the element value of a JAXB element.</p>
*
* <p>Convenience method to abstract whether working with either
* a javax.xml.bind.JAXBElement instance or an instance of
* a jakarta.xml.bind.JAXBElement instance or an instance of
* {@code @XmlRootElement} annotated Java class.</p>
*
* @param jaxbElement object that #isElement(Object) returns true.
......
/*
* Copyright (c) 2007, 2018 Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Distribution License v. 1.0, which is available at
......@@ -8,7 +8,7 @@
* SPDX-License-Identifier: BSD-3-Clause
*/
package javax.xml.bind;
package jakarta.xml.bind;
import java.security.BasicPermission;
......
/*
* Copyright (c) 2003, 2018 Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2003, 2020 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Distribution License v. 1.0, which is available at
......@@ -8,7 +8,7 @@
* SPDX-License-Identifier: BSD-3-Clause
*/
package javax.xml.bind;
package jakarta.xml.bind;
/**
* This exception indicates that an error has occurred while performing
......
/*
* Copyright (c) 2003, 2019 Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2003, 2020 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Distribution License v. 1.0, which is available at
......@@ -8,11 +8,11 @@
* SPDX-License-Identifier: BSD-3-Clause
*/
package javax.xml.bind;
package jakarta.xml.bind;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.adapters.XmlAdapter;
import javax.xml.bind.attachment.AttachmentMarshaller;
import jakarta.xml.bind.annotation.XmlRootElement;
import jakarta.xml.bind.annotation.adapters.XmlAdapter;
import jakarta.xml.bind.attachment.AttachmentMarshaller;
import javax.xml.validation.Schema;
import java.io.File;
......@@ -185,7 +185,7 @@ import java.io.File;
* prior to invoking one of the marshal API's, then events will be delivered to
* a default event handler which will terminate the marshal operation after
* encountering the first error or fatal error. Note that for JAXB 2.0 and
* later versions, {@link javax.xml.bind.helpers.DefaultValidationEventHandler} is
* later versions, {@link jakarta.xml.bind.helpers.DefaultValidationEventHandler} is
* no longer used.
*
* </blockquote>
......@@ -651,7 +651,7 @@ public interface Marshaller {
* Every marshaller internally maintains a
* {@link java.util.Map}&lt;{@link Class},{@link XmlAdapter}&gt;,
* which it uses for marshalling classes whose fields/methods are annotated
* with {@link javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter}.
* with {@link jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter}.
*
* <p>
* This method allows applications to use a configured instance of {@link XmlAdapter}.
......@@ -660,7 +660,7 @@ public interface Marshaller {
*
* @param type
* The type of the adapter. The specified instance will be used when
* {@link javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter#value()}
* {@link jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter#value()}
* refers to this type.
* @param adapter
* The instance of the adapter to be used. If null, it will un-register
......
/*
* Copyright (c) 2003, 2018 Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2003, 2020 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Distribution License v. 1.0, which is available at
......@@ -8,7 +8,7 @@
* SPDX-License-Identifier: BSD-3-Clause
*/
package javax.xml.bind;
package jakarta.xml.bind;
import java.text.MessageFormat;
import java.util.ResourceBundle;
......
/*
* Copyright (c) 2017, 2019 Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2017, 2020 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Distribution License v. 1.0, which is available at
......@@ -8,7 +8,7 @@
* SPDX-License-Identifier: BSD-3-Clause
*/
package javax.xml.bind;
package jakarta.xml.bind;
import java.io.IOException;
......@@ -22,7 +22,7 @@ class ModuleUtil {
/**
* When JAXB is in J2SE, rt.jar has to have a JAXB implementation.
* However, rt.jar cannot have META-INF/services/javax.xml.bind.JAXBContext
* However, rt.jar cannot have META-INF/services/jakarta.xml.bind.JAXBContext
* because if it has, it will take precedence over any file that applications have
* in their jar files.
*
......
/*
* Copyright (c) 2003, 2018 Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2003, 2020 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Distribution License v. 1.0, which is available at
......@@ -8,7 +8,7 @@
* SPDX-License-Identifier: BSD-3-Clause
*/
package javax.xml.bind;
package jakarta.xml.bind;
/**
* This event indicates that a problem was encountered resolving an ID/IDREF.
......
/*
* Copyright (c) 2004, 2018 Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2004, 2020 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Distribution License v. 1.0, which is available at
......@@ -8,7 +8,7 @@
* SPDX-License-Identifier: BSD-3-Clause
*/
package javax.xml.bind;
package jakarta.xml.bind;
/**
* This event indicates that a problem was encountered while converting a
......
/*
* Copyright (c) 2004, 2018 Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2004, 2020 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Distribution License v. 1.0, which is available at
......@@ -8,7 +8,7 @@
* SPDX-License-Identifier: BSD-3-Clause
*/
package javax.xml.bind;
package jakarta.xml.bind;
/**
* This event indicates that a problem was encountered while converting data
......
/*
* Copyright (c) 2004, 2018 Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2004, 2020 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Distribution License v. 1.0, which is available at
......@@ -8,7 +8,7 @@
* SPDX-License-Identifier: BSD-3-Clause
*/
package javax.xml.bind;
package jakarta.xml.bind;
......
/*
* Copyright (c) 2005, 2018 Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2005, 2020 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Distribution License v. 1.0, which is available at
......@@ -8,7 +8,7 @@
* SPDX-License-Identifier: BSD-3-Clause
*/
package javax.xml.bind;
package jakarta.xml.bind;
import javax.xml.transform.Result;
import java.io.IOException;
......
/*
* Copyright (c) 2015, 2019 Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2015, 2020 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Distribution License v. 1.0, which is available at
......@@ -8,7 +8,7 @@
* SPDX-License-Identifier: BSD-3-Clause
*/
package javax.xml.bind;
package jakarta.xml.bind;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
......
/*
* Copyright (c) 2003, 2018 Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2003, 2020 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Distribution License v. 1.0, which is available at
......@@ -8,7 +8,7 @@
* SPDX-License-Identifier: BSD-3-Clause
*/
package javax.xml.bind;
package jakarta.xml.bind;
/**
* This exception indicates that a violation of a dynamically checked type
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment