예제 #1
0
 public static ArrayList getViews() {
   File file = new File(Platform.getRoot() + "/groups/views.config");
   long l = file.lastModified();
   if (viewConfigLastModified != l) {
     viewConfigLastModified = l;
     viewCache = new ArrayList();
     refreshCache("views.config", file, viewCache);
   }
   return viewCache;
 }
예제 #2
0
 public static ArrayList getQueries() {
   File file = new File(Platform.getRoot() + "/groups/query.config");
   long l = file.lastModified();
   if (queryConfigLastModified != l) {
     queryConfigLastModified = l;
     queryCache = new ArrayList();
     refreshCache("query.config", file, queryCache);
   }
   return queryCache;
 }