Exemple #1
0
 /**
  * Notify this object that it has been registered as a listener with a source with respect to the
  * supplied event name
  *
  * @param eventName
  * @param source the source with which this object has been registered as a listener
  */
 public synchronized void connectionNotification(String eventName, Object source) {
   if (connectionAllowed(eventName)) {
     m_listenees.put(eventName, source);
     if (m_Filter instanceof ConnectionNotificationConsumer) {
       ((ConnectionNotificationConsumer) m_Filter).connectionNotification(eventName, source);
     }
   }
 }
Exemple #2
0
 /**
  * Notify this object that it has been deregistered as a listener with a source with respect to
  * the supplied event name
  *
  * @param eventName the event
  * @param source the source with which this object has been registered as a listener
  */
 public synchronized void disconnectionNotification(String eventName, Object source) {
   if (m_Filter instanceof ConnectionNotificationConsumer) {
     ((ConnectionNotificationConsumer) m_Filter).disconnectionNotification(eventName, source);
   }
   m_listenees.remove(eventName);
 }