1. /*
  2. * @(#)NotificationFilter.java 4.17 03/12/19
  3. *
  4. * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
  5. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
  6. */
  7. package javax.management;
  8. /**
  9. * To be implemented by a any class acting as a notification filter.
  10. * It allows a registered notification listener to filter the notifications of interest.
  11. *
  12. * @since 1.5
  13. */
  14. public interface NotificationFilter extends java.io.Serializable {
  15. /**
  16. * Invoked before sending the specified notification to the listener.
  17. *
  18. * @param notification The notification to be sent.
  19. * @return <CODE>true</CODE> if the notification has to be sent to the listener, <CODE>false</CODE> otherwise.
  20. */
  21. public boolean isNotificationEnabled(Notification notification);
  22. }