Example #1
0
  public void updateModule(FrontendModule module) {
    boolean isNotUpdating = false;

    if (isNotUpdating = !checkingSet.contains(module)) {
      checkingSet.add(module);
    }

    if (isNotUpdating) {
      if (module instanceof ProcFrontendModule) {
        recOut.getModuleStatusMessage(module.getHandle());
      } else if (module instanceof AnlzFrontendModule) {
        recOut.getAnalysisReport(module.getHandle());
      }
    }
  }
Example #2
0
  private FrontendModule newModuleInstantiation(ModuleHandle handle, boolean addPhantom) {
    try {
      int type = handle.getModuleType();
      FrontendModule module = instantiateModule(handle);

      switch (type) {
        case ModuleHandle.TYPE_PROC:
          {
            recOut.getModuleControlData(handle);
            recOut.getModuleListeningList(handle);
            break;
          }

        case ModuleHandle.TYPE_ANLZ:
          {
            recOut.getAnalysisParameters(handle);
            break;
          }
      }

      return module;
    } catch (InstantiationException ie) {
      ie.printStackTrace();
    } catch (IllegalAccessException iae) {
      iae.printStackTrace();
    } catch (InvocationTargetException ite) {
      ite.printStackTrace();
    } catch (ClassNotFoundException cnfe) {
      if (addPhantom) {
        logger.error("Loading module: JAR does not contain module " + handle.getModuleName());
        addPhantomModule(handle);
      }
    } catch (NoModuleJarException nmj) {
      logger.error(nmj.getMessage());
      addPhantomModule(handle);
    }

    return null;
  }
Example #3
0
 public void getFilter(ProcFrontendModule module, ModuleFilterEditor editor) {
   filterEditor = editor;
   recOut.getModuleFilterList(module.getHandle());
 }