Package com.sun.enterprise.util

Examples of com.sun.enterprise.util.NotificationListener


  Vector listenersClone = null;
  synchronized (listeners) {
      listenersClone = (Vector)listeners.clone();
  }
  for (Enumeration e = listenersClone.elements(); e.hasMoreElements();) {
      NotificationListener nl = (NotificationListener) e.nextElement();
      nl.notification(new NotificationEvent(this, NOTIFICATION_TYPE));
  }
    }
View Full Code Here


      listenersClone = (Vector)listeners.clone();
  }
  NotificationEvent event = new NotificationEvent(this, type,
            SERVER_PROPERTY, name);
  for (Enumeration e = listenersClone.elements(); e.hasMoreElements();) {
      NotificationListener nl = (NotificationListener) e.nextElement();
      nl.notification(event);
  }
 
    }
View Full Code Here

  Vector listenersClone = null;
  synchronized (applicationListeners) {
      listenersClone = (Vector) applicationListeners.clone();
  }
  for (Enumeration e = listenersClone.elements(); e.hasMoreElements();) {
      NotificationListener nl = (NotificationListener) e.nextElement();
      //System.out.println("notifying " + nl);
      nl.notification(ne);  
      //System.out.println("Done");
  }
  //System.out.println("Notify: " + (System.currentTimeMillis() - time));
    }
View Full Code Here

  String attribute = "";
  NotificationEvent ne = new NotificationEvent(this, DESCRIPTOR_CHANGED, this, attribute);
 
  List listenersClone = this.getNotificationListeners();
  for (Iterator e = listenersClone.iterator(); e.hasNext();) {
      NotificationListener nl = (NotificationListener)e.next();
      nl.notification(ne);  
  }
    }
View Full Code Here

  Vector listenersClone = null;
  synchronized (listeners) {
      listenersClone = (Vector) listeners.clone();
  }
  for (Enumeration e = listenersClone.elements(); e.hasMoreElements();) {
      NotificationListener nl = (NotificationListener) e.nextElement();
      nl.notification(ne);  
  }
    }
View Full Code Here

TOP

Related Classes of com.sun.enterprise.util.NotificationListener

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.