/** * 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); }
/** clears the cache for class/classnames relation. */ public static void clearCache() { initCache(); m_Cache.clear(); }
/** * 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); }