doReset();
}
@SuppressWarnings("unchecked")
public synchronized void updateLoadedClasses(NSNotification notification) {
Reloader reloader = ReloaderFactory.getInstance();
if (notification != null) {
WORequest request = (WORequest) notification.object();
String key = "/" + WOApplication.application().resourceRequestHandlerKey();
if (request.uri().indexOf(request.adaptorPrefix()) != 0 || request.uri().indexOf(key) >= 0) {
return;
}
}
NSDictionary classList = WOClassCacheAccessor.getClassCache();
String unknownClassName = "com.webobjects.foundation._NSUtilities$_NoClassUnderTheSun";
Class<?> unknownClass = WOClassCacheAccessor.classForName(unknownClassName);
Enumeration<String> en = classList.keyEnumerator();
while(en.hasMoreElements()) {
String className = en.nextElement();
if (className.equals(unknownClassName)) {
continue;
}
Class<?> clazz = WOClassCacheAccessor.classForName(className);
if (clazz != null && clazz.isPrimitive()) {
continue;
}
if (clazz == null || clazz.equals(unknownClass)) {
WOClassCacheAccessor.removeClassForName(className);
continue;
}
reloader.checkAndReload(clazz);
}
doReset();
}