Package com.sun.enterprise.util

Examples of com.sun.enterprise.util.NotificationListener.notification()


  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));
  }
    }
   
    protected void changed(String type, String name)
    {
View Full Code Here


  }
  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

      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

  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);  
  }
    }
   
    /**
    * Returns the largest substring of the given string that
View Full Code Here

  synchronized (listeners) {
      listenersClone = (Vector) listeners.clone();
  }
  for (Enumeration e = listenersClone.elements(); e.hasMoreElements();) {
      NotificationListener nl = (NotificationListener) e.nextElement();
      nl.notification(ne);  
  }
    }
   
    /**
    * A formatted String representing my state.
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.