/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package cz.cuni.amis.utils.flag.jmx;

import javax.management.AttributeChangeNotification;
import javax.management.Notification;

/**
 *
 * @author Ik
 */
public class FlagChangeNotification<T> extends Notification {

    protected static final String FLAG_CHANGE_EVENT_TYPE = "cz.cuni.amis.utils.flag.change";

    public FlagChangeNotification(JMXFlagDecorator d, T newValue) {
        super(FLAG_CHANGE_EVENT_TYPE, d.source, d.eventCounter++, newValue.toString());
        setUserData(newValue);
    }
 
}
