You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by jw...@apache.org on 2005/04/12 16:22:15 UTC

svn commit: r161057 - in lenya/trunk/src/java/org/apache/lenya/transaction: AbstractOperation.java UnitOfWork.java

Author: jwkaltz
Date: Tue Apr 12 07:22:13 2005
New Revision: 161057

URL: http://svn.apache.org/viewcvs?view=rev&rev=161057
Log:
[minor change] UnitOfWork is no longer a service -> do not release it through service manager

Modified:
    lenya/trunk/src/java/org/apache/lenya/transaction/AbstractOperation.java   (contents, props changed)
    lenya/trunk/src/java/org/apache/lenya/transaction/UnitOfWork.java   (contents, props changed)

Modified: lenya/trunk/src/java/org/apache/lenya/transaction/AbstractOperation.java
URL: http://svn.apache.org/viewcvs/lenya/trunk/src/java/org/apache/lenya/transaction/AbstractOperation.java?view=diff&r1=161056&r2=161057
==============================================================================
--- lenya/trunk/src/java/org/apache/lenya/transaction/AbstractOperation.java (original)
+++ lenya/trunk/src/java/org/apache/lenya/transaction/AbstractOperation.java Tue Apr 12 07:22:13 2005
@@ -1,5 +1,5 @@
 /*
- * Copyright  1999-2004 The Apache Software Foundation
+ * Copyright  1999-2005 The Apache Software Foundation
  *
  *  Licensed under the Apache License, Version 2.0 (the "License");
  *  you may not use this file except in compliance with the License.
@@ -32,7 +32,7 @@
 /**
  * Abstract operation implementation.
  * 
- * @version $Id: AbstractOperation.java 158088 2005-03-18 16:17:38Z jwkaltz $
+ * @version $Id$
  */
 public class AbstractOperation extends AbstractLogEnabled implements Operation, Serviceable,
         Initializable, Disposable, Contextualizable {
@@ -102,7 +102,8 @@
     public void dispose() {
         if (this.manager != null) {
             if (this.unitOfWork != null) {
-                this.manager.release(this.unitOfWork);
+                // FIXME: determine if unitOfWork needs some message
+                // that it should clean up itself
             }
         }
     }
@@ -116,4 +117,4 @@
         this.context = context;
     }
 
-}
\ No newline at end of file
+}

Propchange: lenya/trunk/src/java/org/apache/lenya/transaction/AbstractOperation.java
------------------------------------------------------------------------------
    svn:keywords = Id

Modified: lenya/trunk/src/java/org/apache/lenya/transaction/UnitOfWork.java
URL: http://svn.apache.org/viewcvs/lenya/trunk/src/java/org/apache/lenya/transaction/UnitOfWork.java?view=diff&r1=161056&r2=161057
==============================================================================
--- lenya/trunk/src/java/org/apache/lenya/transaction/UnitOfWork.java (original)
+++ lenya/trunk/src/java/org/apache/lenya/transaction/UnitOfWork.java Tue Apr 12 07:22:13 2005
@@ -1,5 +1,5 @@
 /*
- * Copyright  1999-2004 The Apache Software Foundation
+ * Copyright  1999-2005 The Apache Software Foundation
  *
  *  Licensed under the Apache License, Version 2.0 (the "License");
  *  you may not use this file except in compliance with the License.
@@ -28,14 +28,9 @@
  *
  * <p>This interface may be extended in the future to allow for access to further types of business objects.</p>
  * 
- * @version $Id: UnitOfWork.java 157924 2005-03-17 09:27:53Z jwkaltz $
+ * @version $Id$
  */
 public interface UnitOfWork {
-
-    /**
-     * The Avalon role.
-     */
-    String ROLE = UnitOfWork.class.getName();
 
     /**
      * Returns the identity map.

Propchange: lenya/trunk/src/java/org/apache/lenya/transaction/UnitOfWork.java
------------------------------------------------------------------------------
    svn:keywords = Id



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@lenya.apache.org
For additional commands, e-mail: commits-help@lenya.apache.org