jmcnally    2002/07/29 18:41:46

  Modified:    src/java/org/apache/torque/manager MethodResultCache.java
  Log:
  jcs no longer requires defining the group prior to use
  
  Revision  Changes    Path
  1.11      +2 -18     
jakarta-turbine-torque/src/java/org/apache/torque/manager/MethodResultCache.java
  
  Index: MethodResultCache.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-turbine-torque/src/java/org/apache/torque/manager/MethodResultCache.java,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- MethodResultCache.java    12 Jul 2002 21:40:13 -0000      1.10
  +++ MethodResultCache.java    30 Jul 2002 01:41:46 -0000      1.11
  @@ -87,7 +87,6 @@
       public MethodResultCache(GroupCacheAccess cache)
           throws TorqueException
       {
  -        // keys = new WeakHashMap();
           this.jcsCache = cache;
           groups = new HashMap();
           pool = new StackObjectPool(new MethodCacheKey.Factory(), 10000);
  @@ -134,7 +133,6 @@
           {
               log.debug("MethodResultCache saved expensive operation: " + key);
           }
  -
           return result;
       }
   
  @@ -146,21 +144,7 @@
           String group = key.getGroupKey();
           if (!groups.containsKey(group))
           {
  -            synchronized (jcsCache)
  -            {
  -                if (!groups.containsKey(group))
  -                {
  -                    try
  -                    {
  -                        jcsCache.defineGroup(group);
  -                    }
  -                    catch (CacheException ce)
  -                    {
  -                        throw new TorqueException(ce);
  -                    }
  -                    groups.put(group, null);
  -                }
  -            }
  +            groups.put(group, null);
           }
   
           Object old = null;
  
  
  

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to