asmuts      02/05/14 10:55:36

  Modified:    src/java/org/apache/jcs/engine/control Cache.java
               src/java/org/apache/jcs/access CacheAccess.java
  Log:
  Deprecating destroy for removal
  
  Revision  Changes    Path
  1.11      +7 -1      
jakarta-turbine-jcs/src/java/org/apache/jcs/engine/control/Cache.java
  
  Index: Cache.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-turbine-jcs/src/java/org/apache/jcs/engine/control/Cache.java,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- Cache.java        14 May 2002 17:44:40 -0000      1.10
  +++ Cache.java        14 May 2002 17:55:35 -0000      1.11
  @@ -92,7 +92,7 @@
    *@author     <a href="mailto:[EMAIL PROTECTED]";>Aaron Smuts</a>
    *@author     <a href="mailto:[EMAIL PROTECTED]";>James Taylor</a>
    *@created    May 13, 2002
  - *@version    $Id: Cache.java,v 1.10 2002/05/14 17:44:40 jtaylor Exp $
  + *@version    $Id: Cache.java,v 1.11 2002/05/14 17:55:35 asmuts Exp $
    */
   public class Cache
        implements ICache, ICompositeCache, Serializable
  @@ -790,6 +790,12 @@
               }
               try
               {
  +
  +                if ( log.isDebugEnabled() )
  +                {
  +                  log.debug( "Removing " + key + " from cacheType" + cacheType );
  +                }
  +
                   boolean b = aux.remove( key );
   
                   // Don't take the remote removal into account.
  
  
  
  1.5       +5 -1      
jakarta-turbine-jcs/src/java/org/apache/jcs/access/CacheAccess.java
  
  Index: CacheAccess.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-turbine-jcs/src/java/org/apache/jcs/access/CacheAccess.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- CacheAccess.java  12 Apr 2002 13:03:12 -0000      1.4
  +++ CacheAccess.java  14 May 2002 17:55:36 -0000      1.5
  @@ -82,7 +82,7 @@
    *
    * @author <a href="mailto:[EMAIL PROTECTED]";>Aaron Smuts</a>
    * @created February 13, 2002
  - * @version $Id: CacheAccess.java,v 1.4 2002/04/12 13:03:12 jtaylor Exp $
  + * @version $Id: CacheAccess.java,v 1.5 2002/05/14 17:55:36 asmuts Exp $
    */
   public class CacheAccess implements ICacheAccess
   {
  @@ -313,6 +313,8 @@
        * the Cache object can no longer be used as it will be closed.
        *
        * @exception CacheException
  +     *
  +     * @deprecated
        */
       public void destroy()
           throws CacheException
  @@ -333,6 +335,8 @@
        *
        * @param name Key that specifies object to invalidate
        * @exception CacheException
  +     *
  +     * @deprecated  use remove
        */
       public void destroy( Object name )
           throws CacheException
  
  
  

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

Reply via email to