portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kimp...@apache.org
Subject cvs commit: jakarta-jetspeed/src/java/org/apache/jetspeed/services/registry CastorRegistryService.java
Date Wed, 16 Jan 2002 13:37:21 GMT
kimptoc     02/01/16 05:37:21

  Modified:    src/java/org/apache/jetspeed/services/registry
                        CastorRegistryService.java
  Log:
  bug # 5091  CastorRegistryService.addEntry method fails
  
  Revision  Changes    Path
  1.12      +5 -4      jakarta-jetspeed/src/java/org/apache/jetspeed/services/registry/CastorRegistryService.java
  
  Index: CastorRegistryService.java
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed/src/java/org/apache/jetspeed/services/registry/CastorRegistryService.java,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- CastorRegistryService.java	26 Nov 2001 19:10:05 -0000	1.11
  +++ CastorRegistryService.java	16 Jan 2002 13:37:21 -0000	1.12
  @@ -101,7 +101,7 @@
    * </p>
    *
    * @author <a href="mailto:raphael@apache.org">RaphaŽl Luta</a>
  - * @version $Id: CastorRegistryService.java,v 1.11 2001/11/26 19:10:05 kimptoc Exp $
  + * @version $Id: CastorRegistryService.java,v 1.12 2002/01/16 13:37:21 kimptoc Exp $
    */
   public class CastorRegistryService
       extends TurbineBaseService
  @@ -214,7 +214,7 @@
               
               synchronized (entryIndex)
               {
  -                if (registry.getEntry(entry.getName())!=null)
  +                if (this.getEntry(regName, entry.getName())!=null)
                   {
                       fragment.setEntry(regName,entry);
                       registry.setEntry(entry);
  @@ -225,7 +225,7 @@
                       registry.addEntry(entry);
                   }
                   
  -                entryIndex.put(entry,fragmentName);
  +                entryIndex.put(entry.getName(),fragmentName);
               }
           }
       }
  @@ -651,7 +651,8 @@
                           {
                               registry.addEntry(entry);
                           }
  -
  +                        // Initialize the entry index
  +                        this.entryIndex.put(entry.getName(), location);
                           ++count;
                       }
                       catch (RegistryException e)
  
  
  

--
To unsubscribe, e-mail:   <mailto:jetspeed-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:jetspeed-dev-help@jakarta.apache.org>


Mime
View raw message