Ejemplo n.º 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;
     }
   }
 }
Ejemplo n.º 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;
     }
   }
 }