1 22 23 package hero.util; 24 25 import javax.management.Notification ; 26 import javax.management.NotificationFilter ; 27 28 public class TimerFilter implements NotificationFilter { 32 33 public TimerFilter() { 34 } 35 36 public boolean isNotificationEnabled(Notification n) { 37 38 if (((String )n.getUserData()).equals("bonita")) { 39 return true; 40 } 41 return false; 42 } 43 } 44 | Popular Tags |