Esempio n. 1
0
  private void doShutdown() {
    logger.info("Shutting down ...");

    tray.destroy();
    indexer.stop();
    localWatcher.stop();
    periodic.stop();

    System.exit(0);
  }
Esempio n. 2
0
  private void initDependencies() {
    logger.info("Instantiating dependencies ...");

    config = Config.getInstance();
    desktop = Desktop.getInstance();
    indexer = Indexer.getInstance();
    localWatcher = LocalWatcher.getInstance();
    tray = Tray.getInstance();
    periodic = new PTreeSearch();
  }