avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dona...@apache.org
Subject cvs commit: jakarta-avalon-excalibur/containerkit/src/java/org/apache/excalibur/containerkit/factory DefaultComponentFactory.java
Date Fri, 02 Aug 2002 09:11:09 GMT
donaldp     2002/08/02 02:11:09

  Modified:    containerkit/src/java/org/apache/excalibur/containerkit/factory
                        DefaultComponentFactory.java
  Log:
  Made cache a WeakHashMap
  
  Revision  Changes    Path
  1.3       +4 -3      jakarta-avalon-excalibur/containerkit/src/java/org/apache/excalibur/containerkit/factory/DefaultComponentFactory.java
  
  Index: DefaultComponentFactory.java
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-excalibur/containerkit/src/java/org/apache/excalibur/containerkit/factory/DefaultComponentFactory.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- DefaultComponentFactory.java	2 Aug 2002 09:10:03 -0000	1.2
  +++ DefaultComponentFactory.java	2 Aug 2002 09:11:09 -0000	1.3
  @@ -7,9 +7,10 @@
    */
   package org.apache.excalibur.containerkit.factory;
   
  +import java.util.Map;
  +import java.util.WeakHashMap;
   import org.apache.excalibur.containerkit.infobuilder.ComponentInfoBuilder;
   import org.apache.excalibur.containerkit.metainfo.ComponentInfo;
  -import java.util.HashMap;
   
   /**
    * The default implementation of {@link ComponentFactory}
  @@ -24,7 +25,7 @@
       /**
        * Cache of ComponentInfo objects.
        */
  -    private final HashMap m_infos = new HashMap();
  +    private final Map m_infos = new WeakHashMap();
   
       /**
        * The utility class that is used when building info
  
  
  

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


Mime
View raw message