Beispiel #1
0
  /** Stops the deploy. */
  @Override
  protected void stopImpl() {
    _alarm.dequeue();

    if (_deployService != null) _deployService.removeUpdateListener(this);

    super.stopImpl();
  }
Beispiel #2
0
  /** Creates the deploy. */
  public ExpandDeployGenerator(
      String id, DeployContainer<E> container, Path containerRootDirectory) {
    super(container);

    _id = id;

    _containerRootDirectory = containerRootDirectory;

    _alarm = new WeakAlarm(this);

    _checkInterval = Environment.getDependencyCheckInterval();

    _cronInterval = Environment.getDependencyCheckInterval();
    if (_cronInterval < MIN_CRON_INTERVAL) _cronInterval = MIN_CRON_INTERVAL;

    _loader = Thread.currentThread().getContextClassLoader();

    _deployService = DeployControllerService.getCurrent();
    _deployService.addUpdateListener(this);

    _repository = RepositorySystem.getCurrentRepository();
    _repository.addListener(id, this);
  }