jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ju...@apache.org
Subject svn commit: r573705 - in /jackrabbit/trunk: jackrabbit-api/src/main/java/org/apache/jackrabbit/api/ jackrabbit-core/src/main/java/org/apache/jackrabbit/core/ jackrabbit-core/src/test/java/org/apache/jackrabbit/core/
Date Fri, 07 Sep 2007 21:04:00 GMT
Author: jukka
Date: Fri Sep  7 14:03:56 2007
New Revision: 573705

URL: http://svn.apache.org/viewvc?rev=573705&view=rev
Log:
JCR-1097: Moved o.a.j.core.XASession to o.a.j.api.XASession

Added:
    jackrabbit/trunk/jackrabbit-api/src/main/java/org/apache/jackrabbit/api/XASession.java
      - copied, changed from r573689, jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/XASession.java
Modified:
    jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/XASession.java
    jackrabbit/trunk/jackrabbit-core/src/test/java/org/apache/jackrabbit/core/UserTransactionImpl.java
    jackrabbit/trunk/jackrabbit-core/src/test/java/org/apache/jackrabbit/core/XATest.java

Copied: jackrabbit/trunk/jackrabbit-api/src/main/java/org/apache/jackrabbit/api/XASession.java
(from r573689, jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/XASession.java)
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-api/src/main/java/org/apache/jackrabbit/api/XASession.java?p2=jackrabbit/trunk/jackrabbit-api/src/main/java/org/apache/jackrabbit/api/XASession.java&p1=jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/XASession.java&r1=573689&r2=573705&rev=573705&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/XASession.java
(original)
+++ jackrabbit/trunk/jackrabbit-api/src/main/java/org/apache/jackrabbit/api/XASession.java
Fri Sep  7 14:03:56 2007
@@ -14,31 +14,33 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-package org.apache.jackrabbit.core;
+package org.apache.jackrabbit.api;
 
 import javax.jcr.Session;
 import javax.transaction.xa.XAResource;
 
 /**
- * The <code>XASession</code> interface extends the capability of
- * <code>Session</code> by adding access to a JCR repository's support for
- * the Java Transaction API (JTA).
+ * The XASession interface extends the capability of {@link Session} by adding
+ * access to a JCR repository's support for the Java Transaction API (JTA).
  * <p>
- * This support takes the form of a <code>javax.transaction.xa.XAResource</code>
+ * This support takes the form of a {@link javax.transaction.xa.XAResource}
  * object. The functionality of this object closely resembles that defined by
  * the standard X/Open XA Resource interface.
  * <p>
  * This interface is used by the transaction manager; an application does not
  * use it directly.
+ *
+ * @since 1.4
  */
 public interface XASession extends Session {
 
     /**
-     * Retrieves an <code>XAResource</code> object that the transaction manager
-     * will use to manage this <code>XASession</code> object's participation
in
+     * Retrieves an {@link XAResource} object that the transaction manager
+     * will use to manage this XASession object's participation in
      * a distributed transaction.
      *
-     * @return the <code>XAResource</code> object.
+     * @return the {@link XAResource} object.
      */
     XAResource getXAResource();
+
 }

Modified: jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/XASession.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/XASession.java?rev=573705&r1=573704&r2=573705&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/XASession.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/XASession.java
Fri Sep  7 14:03:56 2007
@@ -16,29 +16,8 @@
  */
 package org.apache.jackrabbit.core;
 
-import javax.jcr.Session;
-import javax.transaction.xa.XAResource;
-
 /**
- * The <code>XASession</code> interface extends the capability of
- * <code>Session</code> by adding access to a JCR repository's support for
- * the Java Transaction API (JTA).
- * <p>
- * This support takes the form of a <code>javax.transaction.xa.XAResource</code>
- * object. The functionality of this object closely resembles that defined by
- * the standard X/Open XA Resource interface.
- * <p>
- * This interface is used by the transaction manager; an application does not
- * use it directly.
+ * @deprecated Use {@link org.apache.jackrabbit.api.XASession} instead
  */
-public interface XASession extends Session {
-
-    /**
-     * Retrieves an <code>XAResource</code> object that the transaction manager
-     * will use to manage this <code>XASession</code> object's participation
in
-     * a distributed transaction.
-     *
-     * @return the <code>XAResource</code> object.
-     */
-    XAResource getXAResource();
+public interface XASession extends org.apache.jackrabbit.api.XASession {
 }

Modified: jackrabbit/trunk/jackrabbit-core/src/test/java/org/apache/jackrabbit/core/UserTransactionImpl.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/test/java/org/apache/jackrabbit/core/UserTransactionImpl.java?rev=573705&r1=573704&r2=573705&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/test/java/org/apache/jackrabbit/core/UserTransactionImpl.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/test/java/org/apache/jackrabbit/core/UserTransactionImpl.java
Fri Sep  7 14:03:56 2007
@@ -28,6 +28,8 @@
 import javax.transaction.RollbackException;
 import javax.jcr.Session;
 
+import org.apache.jackrabbit.api.XASession;
+
 /**
  * Internal {@link javax.transaction.UserTransaction} implementation.
  */

Modified: jackrabbit/trunk/jackrabbit-core/src/test/java/org/apache/jackrabbit/core/XATest.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/test/java/org/apache/jackrabbit/core/XATest.java?rev=573705&r1=573704&r2=573705&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/test/java/org/apache/jackrabbit/core/XATest.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/test/java/org/apache/jackrabbit/core/XATest.java
Fri Sep  7 14:03:56 2007
@@ -33,7 +33,7 @@
 
 /**
  * <code>XATest</code> contains the test cases for the methods
- * inside {@link org.apache.jackrabbit.core.XASession}.
+ * inside {@link org.apache.jackrabbit.api.XASession}.
  */
 public class XATest extends AbstractJCRTest {
 



Mime
View raw message