Skip to content

Commit

Permalink
Apply javax-to-jakarta renames where still needed
Browse files Browse the repository at this point in the history
Signed-off-by: David Blevins <david.blevins@gmail.com>
  • Loading branch information
dblevins committed Aug 28, 2020
1 parent 8e6b121 commit d6cce13
Show file tree
Hide file tree
Showing 18 changed files with 27 additions and 27 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
* by a component using the <code>lookup</code> element of the
* <code>Resource</code> annotation.
*
* @see javax.annotation.Resource
* @see jakarta.annotation.Resource
* @version 1.7
* @since 1.7
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
* Once defined, a resource may be referenced by a component using the
* <code>lookup</code> element of the <code>Resource</code> annotation.
*
* @see javax.annotation.Resource
* @see jakarta.annotation.Resource
* @version 1.7
* @since 1.7
*/
Expand Down
2 changes: 1 addition & 1 deletion api/src/main/java/jakarta/resource/Referenceable.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
*
* <p>The implementation class for a connection factory interface is
* required to implement both java.io.Serializable and
* javax.resource.Referenceable interfaces to support JNDI registration.
* jakarta.resource.Referenceable interfaces to support JNDI registration.
*
* @version 0.9
* @author Rahul Sharma
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public interface ConnectionFactory
Connection getConnection() throws ResourceException;

/** Gets a connection to an EIS instance. A component should use
* the getConnection variant with javax.resource.cci.ConnectionSpec
* the getConnection variant with jakarta.resource.cci.ConnectionSpec
* parameter, if it needs to pass any resource adapter specific
* security information and connection parameters. In the component-
* managed sign-on case, an application component passes security
Expand Down
2 changes: 1 addition & 1 deletion api/src/main/java/jakarta/resource/cci/Interaction.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
import jakarta.resource.NotSupportedException;


/** The <code>javax.resource.cci.Interaction</code> enables a component to
/** The <code>jakarta.resource.cci.Interaction</code> enables a component to
* execute EIS functions. An Interaction instance supports the following ways
* of interacting with an EIS instance:
* <UL>
Expand Down
2 changes: 1 addition & 1 deletion api/src/main/java/jakarta/resource/cci/MappedRecord.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

package jakarta.resource.cci;

/** The interface <code>javax.resource.cci.MappedRecord</code> is
/** The interface <code>jakarta.resource.cci.MappedRecord</code> is
* used for key-value map based representation of record elements.
* The MappedRecord interface extends both <code>Record</code> and
* <code>java.util.Map</code>interfaces.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

package jakarta.resource.cci;

/** The interface <code>javax.resource.cci.ResourceAdapterMetaData</code>
/** The interface <code>jakarta.resource.cci.ResourceAdapterMetaData</code>
* provides information about capabilities of a resource adapter
* implementation. Note that this interface does not provide information
* about an EIS instance that is connected through the resource adapter.
Expand Down
2 changes: 1 addition & 1 deletion api/src/main/java/jakarta/resource/cci/package.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

</head>
<body>
The javax.resource.cci package contains API specification for the Common
The jakarta.resource.cci package contains API specification for the Common
Client Interface (CCI).
</body>
</html>
2 changes: 1 addition & 1 deletion api/src/main/java/jakarta/resource/package.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@

</head>
<body>
The javax.resource package is the top-level package for the Jakarta&trade; Connectors specification.
The jakarta.resource package is the top-level package for the Jakarta&trade; Connectors specification.
</body>
</html>
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
public enum CredentialInterface {
/**
* Corresponds to
* <code>javax.resource.spi.security.PasswordCredential</code>.
* <code>jakarta.resource.spi.security.PasswordCredential</code>.
* This is the default credential interface
*/
PasswordCredential,
Expand All @@ -59,7 +59,7 @@ public enum CredentialInterface {

/**
* Corresponds to
* <code>javax.resource.spi.security.GenericCredential</code>
* <code>jakarta.resource.spi.security.GenericCredential</code>
*/
GenericCredential
}
Expand All @@ -85,10 +85,10 @@ public enum CredentialInterface {
* supports for the representation of the credentials.
*
* Note that BasicPassword mechanism type should support the
* <code>javax.resource.spi.security.PasswordCredential</code> interface.
* <code>jakarta.resource.spi.security.PasswordCredential</code> interface.
* The Kerbv5 mechanism type should support the
* <code>org.ietf.jgss.GSSCredential</code> interface or the deprecated
* <code>javax.resource.spi.security.GenericCredential</code> interface.
* <code>jakarta.resource.spi.security.GenericCredential</code> interface.
*/
CredentialInterface credentialInterface()
default CredentialInterface.PasswordCredential;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@

/**
* Specifies the ConnectionFactory interface supported by the resource
* adapter. Example: javax.resource.cci.ConnectionFactory or
* adapter. Example: jakarta.resource.cci.ConnectionFactory or
* com.wombat.ConnectionFactory
*/
Class connectionFactory();
Expand All @@ -55,7 +55,7 @@

/**
* Specifies the Connection interface supported by the resource adapter.
* Example: javax.resource.cci.Connection or com.wombat.Connection
* Example: jakarta.resource.cci.Connection or com.wombat.Connection
*/
Class connection();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
* are managed internal to an EIS resource manager, and do not require
* an external transaction manager.
*
* <p>A resource adapter implements the javax.resource.spi.LocalTransaction
* <p>A resource adapter implements the jakarta.resource.spi.LocalTransaction
* interface to provide support for local transactions that are performed
* on the underlying resource manager.
*
Expand Down
6 changes: 3 additions & 3 deletions api/src/main/java/jakarta/resource/spi/ManagedConnection.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
*
* <p>A ManagedConnection instance provides access to a pair of
* interfaces: <code>javax.transaction.xa.XAResource</code> and
* <code>javax.resource.spi.LocalTransaction</code>.
* <code>jakarta.resource.spi.LocalTransaction</code>.
*
* <p><code> XAResource</code> interface is used by the transaction
* manager to associate and dissociate a transaction with the underlying
Expand Down Expand Up @@ -62,7 +62,7 @@ public interface ManagedConnection {
* @return generic Object instance representing the connection
* handle. For CCI, the connection handle created by a
* ManagedConnection instance is of the type
* javax.resource.cci.Connection.
* jakarta.resource.cci.Connection.
*
* @throws ResourceException generic exception if operation fails
* @throws ResourceAdapterInternalException
Expand Down Expand Up @@ -202,7 +202,7 @@ void removeConnectionEventListener(
public
XAResource getXAResource() throws ResourceException;

/** Returns an <code>javax.resource.spi.LocalTransaction</code> instance.
/** Returns an <code>jakarta.resource.spi.LocalTransaction</code> instance.
* The LocalTransaction interface is used by the container to manage
* local transactions for a RM instance.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public interface ManagedConnectionFactory extends java.io.Serializable {
* @param cxManager ConnectionManager to be associated with
* created EIS connection factory instance
* @return EIS-specific Connection Factory instance or
* javax.resource.cci.ConnectionFactory instance
* jakarta.resource.cci.ConnectionFactory instance
*
* @throws ResourceException Generic exception
* @throws ResourceAdapterInternalException
Expand All @@ -60,7 +60,7 @@ public Object createConnectionFactory(ConnectionManager cxManager)
* by the resource adapter.
*
* @return EIS-specific Connection Factory instance or
* javax.resource.cci.ConnectionFactory instance
* jakarta.resource.cci.ConnectionFactory instance
*
* @throws ResourceException Generic exception
* @throws ResourceAdapterInternalException
Expand Down
2 changes: 1 addition & 1 deletion api/src/main/java/jakarta/resource/spi/package.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

</head>
<body>
The javax.resource.spi package contains APIs for the system
The jakarta.resource.spi package contains APIs for the system
contracts defined in the Jakarta Connectors specification.
</body>
</html>
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

import jakarta.resource.spi.SecurityException;

/** The interface <code>javax.resource.spi.security.GenericCredential</code>
/** The interface <code>jakarta.resource.spi.security.GenericCredential</code>
* defines a security mechanism independent interface for accessing
* security credential of a resource principal.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

</head>
<body>
The javax.resource.spi.security package contains APIs for the security
The jakarta.resource.spi.security package contains APIs for the security
management contract.
</body>
</html>
6 changes: 3 additions & 3 deletions api/src/main/java/jakarta/resource/spi/work/HintsContext.java
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ public class HintsContext implements WorkContext {
*/
private static final long serialVersionUID = 7956353628297167255L;

public static final String NAME_HINT = "javax.resource.Name";
public static final String LONGRUNNING_HINT = "javax.resource.LongRunning";
public static final String NAME_HINT = "jakarta.resource.Name";
public static final String LONGRUNNING_HINT = "jakarta.resource.LongRunning";

protected String description = "Hints Context";
protected String name = "HintsContext";
Expand Down Expand Up @@ -82,7 +82,7 @@ public void setName(String name) {
/**
* Set a Hint and a related value. The hintName must be non-Null. Standard
* HintNames are defined in the Jakarta Connectors specification. Use of
* "javax.resource." prefixed hintNames are reserved for use by the
* "jakarta.resource." prefixed hintNames are reserved for use by the
* Jakarta Connectors specification.
*
*/
Expand Down

0 comments on commit d6cce13

Please sign in to comment.