FileDocCategorySizeDatePackage
DeploymentEventManager.javaAPI DocGlassfish v2 API3348Fri May 04 22:34:30 BST 2007com.sun.enterprise.deployment.backend

DeploymentEventManager

public class DeploymentEventManager extends Object
The DeploymentEventManager delivers a DeploymentEvent event to each DeploymentEventListener that registered itself with this DeploymentEventManager.
author
Marina Vatkina

Fields Summary
private static Vector
listeners
Event listeners
Constructors Summary
Methods Summary
public static voidaddListener(DeploymentEventListener listener)
Adds this DeploymentEventListener to the list of listeners.

param
listener to be added.


                      
         
        listeners.add(listener);
    
public static voidnotifyDeploymentEvent(DeploymentEvent event)
Notifies all known DeploymentEventListener listeners about the event.

param
event the DeploymentEvent to send to all listeners.

        for (Iterator it = ((Vector)listeners.clone()).iterator(); it.hasNext();) {
            ((DeploymentEventListener)it.next()).notifyDeploymentEvent(event);
        }
    
    
public static voidremoveListener(DeploymentEventListener listener)
Removes this DeploymentEventListener from the list of listeners.

param
listener to be removed.

        listeners.remove(listener);