Пример #1
0
 private static void checkFileModify() {
   Set<String> filenames = lastmodifies.keySet();
   for (String filename : filenames) {
     File file = new File(filename);
     if (lastmodifies.get(filename) != file.lastModified()) {
       LOG.info(filename + " changed, reload.");
       init(includeResources, excludeResources, reload);
     }
   }
 }
Пример #2
0
 @Override
 public boolean start() {
   ConfigKit.init(includeResources, excludeResources, reload);
   return true;
 }