Example #1
0
 public static GSScraperUtil getInstanceWeb() {
   if (!isInitialized) {
     init();
   }
   GSScraperUtil instance = (GSScraperUtil) VeriniceContext.get(VeriniceContext.GS_SCRAPER_UTIL);
   instance.getModel().setLayoutConfig(new WebLayoutConfig());
   return instance;
 }
Example #2
0
 private static void init() {
   GSScraperUtil gsScraperUtil = GSScraperUtil.getInstance();
   // initialize grundschutz scraper:
   try {
     gsScraperUtil.getModel().loadBausteine(nullMonitor);
   } catch (Exception e) {
     log.error("Fehler beim Laden der Grundschutzkataloge: " + e.getMessage());
     if (log.isDebugEnabled()) {
       log.debug("stacktrace: " + e);
     }
   }
 }