Package com.sun.enterprise.util

Examples of com.sun.enterprise.util.NotificationEvent


  Log.print(this, localStrings.getLocalString(
                "enterprise.tools.deployment.main.clientcodeat",
                "client code at {0}", new Object[] {clientCode}));
  if (clientCode != null && clientCodeFile != null) {
      writeClientJarToFile(clientCode, clientCodeFile);
      deploymentSessionToUse.notification(new NotificationEvent(this, DeploymentSession.CLIENT_CODE_RETURNED, this));
      deploymentSessionToUse.setStatusMessage(localStrings.getLocalString(
                    "enterprise.tools.deployment.main.clientcodefordeployedapplicationsavedtofile",
                    "Client code for the deployed application {0} saved to {1}", new Object[] {applicationName, clientCodeFile}));
  }
    }
View Full Code Here


  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

    {
  Vector listenersClone = null;
  synchronized (listeners) {
      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

      ne.getObjectThatChanged());
    }

    /** Convenience method for notifying listeners.*/
    public void notify(String type, String name, Object value) {
  NotificationEvent ne = null;
  if (name == null) {
      ne = new NotificationEvent(this, type);
  } else {
      ne = new NotificationEvent(this, type, name, value);
  }   
  Vector listenersClone = null;
  synchronized (applicationListeners) {
      listenersClone = (Vector) applicationListeners.clone();
  }
View Full Code Here

    * Notify all my listeners that I have changed..
    *
    */
    public void changed() {
  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

       
    /**
     * Called when my data changes and causes notification.
     */
    public void changed() {
  NotificationEvent ne = new NotificationEvent(this, DESCRIPTOR_CHANGED, this);
  
  Vector listenersClone = null;
  synchronized (listeners) {
      listenersClone = (Vector) listeners.clone();
  }
View Full Code Here

TOP

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

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.