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; } } }
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; } } }