log.debug("Caching disabled.  Registering for notification: " + ERXApplication.WORequestHandlerDidHandleRequestNotification); NSNotificationCenter.defaultCenter().addObserver(this, new NSSelector("checkIfFilesHaveChanged", ERXConstant.NotificationClassArray), ERXApplication.WORequestHandlerDidHandleRequestNotification, null);
log.debug("Caching disabled.  Registering for notification: " + WOApplication.ApplicationWillDispatchRequestNotification); NSNotificationCenter.defaultCenter().addObserver(this, new NSSelector("checkIfFilesHaveChanged", ERXConstant.NotificationClassArray), WOApplication.ApplicationWillDispatchRequestNotification, null);
    public ERXFileNotificationCenter() {        if (!WOApplication.application().isCachingEnabled()) {            ERXRetainer.retain(this);            log.debug("Caching disabled.  Registering for notification: " + ERXApplication.WORequestHandlerDidHandleRequestNotification);            NSNotificationCenter.defaultCenter().addObserver(this,                                                             new NSSelector("checkIfFilesHaveChanged",                                                                            ERXConstant.NotificationClassArray),                                                             ERXApplication.WORequestHandlerDidHandleRequestNotification,                                                             null);                        cachingEnabled = false;        }    }