示例#1
0
  private void doShutdown() {
    logger.info("Shutting down ...");

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

    System.exit(0);
  }
示例#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();
  }