コード例 #1
0
 /**
  * Remove the modules (that were previously registered by start()) from the reload monitor thread.
  *
  * <p>This method is invoked be WebContainer.stop() only when dynamic reloading has been enabled
  * in server.xml.
  */
 public void stop() {
   ReloadMonitor reloadMonitor = ReloadMonitor.getInstance(1);
   for (int i = 0; i < _reloadables.size(); i++) {
     String id = (String) _reloadables.get(i);
     reloadMonitor.removeMonitoredEntry(id);
   }
   _reloadables.clear();
   _reloadables = null;
 }
コード例 #2
0
  /**
   * Enable dynamic reloading (via the .reload file) for all the standalone web-modules that are
   * marked as enabled
   *
   * <p>This method is invoked be WebContainer.start() only when dynamic reloading has been enabled
   * in server.xml.
   */
  public void start(long pollInterval) {

    reloadMonitor = ReloadMonitor.getInstance(pollInterval * 1000);
  }