1 23 24 package com.sun.enterprise.admin.selfmanagement.event; 25 import javax.management.ObjectName ; 26 import javax.management.NotificationFilter ; 27 import com.sun.enterprise.util.i18n.StringManager; 28 29 30 public class NotificationEvent implements Event { 31 private static StringManager sm = StringManager.getManager(NotificationEvent.class); 32 NotificationEvent(ObjectName objName, String description) { 33 this.objName = objName; 34 if (description != null) 35 this.description = description; 36 else 37 this.description = defaultDescription; 38 } 39 public ObjectName getObjectName() { 40 return objName; 41 } 42 public String getType() { 43 return "notification"; 44 } 45 public NotificationFilter getNotificationFilter() { 46 return null; 47 } 48 49 public String getDescription() { 50 return description; 51 } 52 public void destroy() { 53 } 55 private ObjectName objName = null; 56 private String description = null; 57 private static String defaultDescription = sm.getString("selfmgmt_event.notification_event_description"); 58 } 59 | Popular Tags |