Пример #1
0
 // 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);
 }
Пример #2
0
  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);
  }