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

svn commit: r161063 - lenya/trunk/src/java/org/apache/lenya/cms/cocoon/components/modules/input/OperationModule.java

Author: andreas
Date: Tue Apr 12 08:10:05 2005
New Revision: 161063

URL: http://svn.apache.org/viewcvs?view=rev&rev=161063
Log:
[minor change] removed reference to UnitOfWork.ROLE

Modified:
    lenya/trunk/src/java/org/apache/lenya/cms/cocoon/components/modules/input/OperationModule.java

Modified: lenya/trunk/src/java/org/apache/lenya/cms/cocoon/components/modules/input/OperationModule.java
URL: http://svn.apache.org/viewcvs/lenya/trunk/src/java/org/apache/lenya/cms/cocoon/components/modules/input/OperationModule.java?view=diff&r1=161062&r2=161063
==============================================================================
--- lenya/trunk/src/java/org/apache/lenya/cms/cocoon/components/modules/input/OperationModule.java (original)
+++ lenya/trunk/src/java/org/apache/lenya/cms/cocoon/components/modules/input/OperationModule.java Tue Apr 12 08:10:05 2005
@@ -24,6 +24,7 @@
 import org.apache.lenya.cms.publication.DocumentIdentityMap;
 import org.apache.lenya.transaction.Operation;
 import org.apache.lenya.transaction.UnitOfWork;
+import org.apache.lenya.transaction.UnitOfWorkImpl;
 
 /**
  * Super class for operation-based input modules.
@@ -62,9 +63,9 @@
     public UnitOfWork getUnitOfWork() throws ServiceException {
         if (this.unitOfWork == null) {
            if (getLogger().isDebugEnabled())
-               getLogger().debug("OperationModule.getUnitOfWork() does not yet have instance, looking up role [" + UnitOfWork.ROLE + "]");
+               getLogger().debug("OperationModule.getUnitOfWork() does not yet have instance.");
 
-           this.unitOfWork = (UnitOfWork) this.manager.lookup(UnitOfWork.ROLE);
+           this.unitOfWork = new UnitOfWorkImpl();
            this.unitOfWork.setIdentityMap(getDocumentIdentityMap());
         }
 



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