Exemple #1
0
    private void disableListener() {
      m_aLog.log(Protocol.TYPE_SCOPE_OPEN, "stop listening for AutoSave notifications ...");

      XDispatch xAutoSave = null;
      URL aRegURL = null;
      synchronized (this) {
        xAutoSave = m_xAutoSave;
        aRegURL = m_aRegistration;
      }

      try {
        if ((xAutoSave != null) && (aRegURL != null)) xAutoSave.removeStatusListener(this, aRegURL);
      } catch (Throwable ex) {
        m_aLog.log(ex);
      }

      m_aLog.log(Protocol.TYPE_SCOPE_CLOSE, "");
    }
 /**
  * Removes status listener.
  *
  * @param status listener to be removed
  * @param url url of the command
  * @author Andreas Bröker
  * @date 09.07.2006
  */
 public void removeStatusListener(XStatusListener statusListener, URL url) {
   if (xDispatch != null) xDispatch.removeStatusListener(statusListener, url);
 }