// singleton pattern private JobService() { super(); XMLLoader xmlLoader = new XMLLoader(); URL url = EGovConfig.class.getClassLoader().getResource("config/resource/Jobs.xml"); // if(LOGGER.isDebugEnabled()) LOGGER.debug("url in JobService=================="+url); xmlLoader.load(url.toString(), this); }
public static void main(String[] args) { shortOS = shortOS(); setDownloadLocation(); getXml(); HashMap information = null; try { information = XMLLoader.loadInformation(); } catch (Exception ex) { System.exit(1); } versions = (HashMap) information.get("versions"); defaults = (HashMap) information.get("defaults"); UI.main(null); }