1 23 24 package com.sun.enterprise.admin.jmx.remote.notification; 25 26 import javax.management.Notification ; 27 import javax.management.ObjectName ; 28 29 34 public class NotificationWrapper implements java.io.Serializable { 35 public static final int WAIT = 1; 36 public static final int NOTIF= 2; 37 38 private Notification notif = null; 39 private ObjectName source = null; 40 private int type = NOTIF; 41 42 public NotificationWrapper(int type, ObjectName source, Notification notif) { 43 this.notif = notif; 44 this.source = source; 45 this.type = type; 46 } 47 48 public NotificationWrapper(ObjectName source, Notification notif) { 49 this.notif = notif; 50 this.source = source; 51 this.type = NOTIF; 52 } 53 54 public int getType() { 55 return type; 56 } 57 58 public ObjectName getSource() { 59 return source; 60 } 61 62 public Notification getNotification() { 63 return notif; 64 } 65 } 66 | Popular Tags |