FileDocCategorySizeDatePackage
NotificationEvent.javaAPI DocGlassfish v2 API3508Fri May 04 22:32:08 BST 2007None

NotificationEvent

public class NotificationEvent extends EventObject
Generic event for notifications.
author
Danny Coward

Fields Summary
public static final String
OBJECT_THAT_CHANGED
public static final String
ATTRIBUTE_THAT_CHANGED
private String
type
protected Hashtable
properties
Constructors Summary
public NotificationEvent(Object source, String type)

    
         
	super(source);
	this.type = type;
    
public NotificationEvent(Object source, String type, String name, Object value)

	super(source);
	this.type = type;
	this.properties.put(name, value);
    
public NotificationEvent(Object source, String type, Object objectThatChanged)

	super(source);
	this.type = type;
	this.properties.put(OBJECT_THAT_CHANGED, objectThatChanged);
    
public NotificationEvent(Object source, String type, Object objectThatChanged, Object attribThatChanged)

	this(source, type, objectThatChanged);
	if (attribThatChanged != null) {
	    this.properties.put(ATTRIBUTE_THAT_CHANGED, attribThatChanged);
	}
    
Methods Summary
public java.lang.ObjectgetAttributeThatChanged()

	return this.properties.get(ATTRIBUTE_THAT_CHANGED);
    
public java.lang.ObjectgetObjectThatChanged()

	return this.properties.get(OBJECT_THAT_CHANGED);
    
public java.lang.StringgetType()

	return this.type;
    
public java.lang.ObjectgetValue(java.lang.String name)

	return this.properties.get(name);