[cvs] Expresso commit by mtraum: remove depreciated methods

JCorporate Ltd jcorp at jcorp2.servlets.net
Tue Oct 12 09:49:47 PDT 2004


Log Message:
-----------
remove depreciated methods

Modified Files:
--------------
    expresso/expresso-web/WEB-INF/src/com/jcorporate/expresso/core/cache:
        CacheManager.java

Revision Data
-------------
Index: CacheManager.java
===================================================================
RCS file: /home/javacorp/.cvs/expresso/expresso/expresso-web/WEB-INF/src/com/jcorporate/expresso/core/cache/CacheManager.java,v
retrieving revision 1.28
retrieving revision 1.29
diff -Lexpresso-web/WEB-INF/src/com/jcorporate/expresso/core/cache/CacheManager.java -Lexpresso-web/WEB-INF/src/com/jcorporate/expresso/core/cache/CacheManager.java -u -r1.28 -r1.29
--- expresso-web/WEB-INF/src/com/jcorporate/expresso/core/cache/CacheManager.java
+++ expresso-web/WEB-INF/src/com/jcorporate/expresso/core/cache/CacheManager.java
@@ -309,31 +309,6 @@
     } /* addListener(String, String) */
 
     /**
-     * <p>
-     * Checks to make sure that there is enough memory available to use for more
-     * caches.  If it there isn't enough free memory, then it attempts to clear
-     * out the least used cache.</p>
-     * <p>
-     * Creation date: (9/7/00 2:44:05 PM)</p>
-     * @deprecated... use checkMemory for each cache system
-     *
-     */
-    public static void checkMemory() {
-        return;
-    } /* checkMemory() */
-
-
-    /**
-     * Removed the least used Cache
-     * @return true if something was able to be removed false otherwise
-     * @deprecated The cache manager takes care of itself
-     */
-    public static boolean clearLowestCache() {
-
-        return true;
-    }
-
-    /**
      * Removes all cache items for a particular data context
      * @param dataContext The data context to clear all items for.
      * @throws CacheException CacheException if there's an error clearing the
@@ -505,49 +480,6 @@
         }
 //        return getCacheSystem(dataContext).existsCache(cacheName);
     } /* existsCache(String, String) */
-
-    /**
-     * @deprecated use getAllCacheNamesIterator instead
-     * @return java.util.Enumeration of all cache names stored
-     */
-    public static Enumeration getAllCacheNames() {
-        return getAllCacheNames("default");
-    } /* getAllCacheNames() */
-
-
-    /**
-     * Return an iterator over a list of Strings that contain all the names
-     * of the caches stored in the system [For dbContext default]
-     * @return java.util.Iterator
-     * @deprecated CacheNames doesn't belong in Configuration!!  Query CacheManager
-     * instead!
-     */
-    public static Iterator getAllCacheNamesIterator() {
-        return getAllCacheNamesIterator("default");
-    }
-
-    /**
-     * Get the names of all of the Caches being held for a particular context.
-     *
-     * @deprecated Use getAllCacheNamesIterator intstead
-     * @param dataContext The dbContext to get all the cache names for.
-     * @return java.util.Enumeration
-     */
-    public static Enumeration getAllCacheNames(String dataContext) {
-        CacheSystem cs = getCacheSystem(dataContext);
-        if (cs == null) {
-            return new Vector().elements();
-        } else {
-            java.util.Set s = getCacheSystem(dataContext).getAllCacheNames();
-            Vector v = null;
-            if (s != null) {
-                v = new Vector(s);
-            } else {
-                v = new Vector(0);
-            }
-            return v.elements();
-        }
-    } /* getAllCacheNames(String) */
 
     /**
      * Get the names of all of the Caches being held for a particular context


More information about the cvs mailing list