1 23 24 29 30 package com.sun.enterprise.deployment.backend; 31 32 import java.util.Iterator ; 33 import java.util.Vector ; 34 35 42 public class DeploymentEventManager 43 { 44 45 private static Vector listeners = new Vector (); 46 47 50 public static void addListener(DeploymentEventListener listener) { 51 listeners.add(listener); 52 } 53 54 57 public static void removeListener(DeploymentEventListener listener) { 58 listeners.remove(listener); 59 } 60 61 64 public static void notifyDeploymentEvent(DeploymentEvent event) { 65 for (Iterator it = ((Vector )listeners.clone()).iterator(); it.hasNext();) { 66 ((DeploymentEventListener)it.next()).notifyDeploymentEvent(event); 67 } 68 69 } 70 } 71 | Popular Tags |