예제 #1
0
 /**
  * returns the list of classnames associated with this class and package, if available, otherwise
  * null.
  *
  * @param cls the class to get the classnames for
  * @param pkgname the package name for the classes
  * @return the classnames if found, otherwise null
  */
 protected static Vector getCache(Class cls, String pkgname) {
   initCache();
   return m_Cache.get(cls.getName() + "-" + pkgname);
 }
예제 #2
0
 /** clears the cache for class/classnames relation. */
 public static void clearCache() {
   initCache();
   m_Cache.clear();
 }
예제 #3
0
 /**
  * adds the list of classnames to the cache.
  *
  * @param cls the class to cache the classnames for
  * @param pkgname the package name the classes were found in
  * @param classnames the list of classnames to cache
  */
 protected static void addCache(Class cls, String pkgname, Vector classnames) {
   initCache();
   m_Cache.put(cls.getName() + "-" + pkgname, classnames);
 }