View Javadoc

1   package cz.cuni.amis.pogamut.base.utils.jmx.flag;
2   
3   import javax.management.AttributeChangeNotification;
4   import javax.management.Notification;
5   
6   /**
7    *
8    * @author Ik
9    */
10  public class FlagChangeNotification<T> extends Notification {
11      
12  	
13      public FlagChangeNotification(JMXFlagDecorator d, T newValue) {
14      	// TODO: what is exactly NOTIFICATION TYPE? It seems that the identifier or notification type is
15      	// used to distinguish between multiple types of notifications sent by a single emitter
16      	// The question is - does every flag have own emitter?
17          super("F", d.source, d.eventCounter++, newValue.toString());
18          setUserData(newValue);
19      }
20   
21  }