1 22 package org.jboss.mx.notification; 23 24 import javax.management.NotificationFilter ; 25 import javax.management.ObjectName ; 26 import javax.management.Notification ; 27 28 37 public class NotificationFilterProxy implements NotificationFilter 38 { 39 private static final long serialVersionUID = 1L; 40 private ObjectName source; 41 private NotificationFilter delegate; 42 43 public NotificationFilterProxy(ObjectName source, NotificationFilter delegate) 44 { 45 this.source = source; 46 this.delegate = delegate; 47 } 48 49 56 public boolean isNotificationEnabled(Notification notification) 57 { 58 notification.setSource(source); 60 return this.delegate.isNotificationEnabled(notification); 61 } 62 63 68 public ObjectName getSource () 69 { 70 return source; 71 } 72 77 public NotificationFilter getFilter () 78 { 79 return delegate; 80 } 81 } 82 | Popular Tags |