- TimerTask task = new FileWatcher(new File(policyAuthFileName)) {
- @Override
- protected void onChange(File file) {
- // here we implement the onChange
- applicationLogger.debug("File " + file.getName() + " has been changed!");
- try {
- AAIMicroServiceAuthCore.reloadUsers();
- } catch (AAIAuthException e) {
- applicationLogger.error(ApplicationMsgs.PROCESS_REQUEST_ERROR, e);
- }
- applicationLogger.debug("File " + file.getName() + " has been reloaded!");
- }
- };