Beispiel #1
0
 public void loadFromFile(String fileName, boolean force) {
   if (!isLoaded || force) {
     xmlFile = new KXmlFile();
     try {
       xmlFile.loadFromFile(fileName);
       initContollers();
       isLoaded = true;
     } catch (Exception e) {
       Ko.klogger()
           .log(Level.WARNING, "Impossible de lire le fichier de validation : " + fileName, e);
       isLoaded = false;
     }
   }
 }
Beispiel #2
0
 public void loadFromFile(String fileName, boolean force) {
   if (!isLoaded || force) {
     xmlFile = new KXmlFile();
     try {
       xmlFile.loadFromFile(fileName);
       initMappings();
       isLoaded = true;
     } catch (Exception e) {
       Ko.klogger()
           .log(
               Level.SEVERE,
               "Impossible de terminer la lecture du fichier de configuration " + fileName,
               e);
       isLoaded = false;
     }
   }
 }
Beispiel #3
0
 private void addActionsFilter() {
   String actName = Ko.kactionsName();
   KFilter actionFilter = new KFilterForAction(actName);
   filters.add(actionFilter);
 }