KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > javax > management > NotificationFilter


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
8 package javax.management;
9
10
11 /**
12  * To be implemented by a any class acting as a notification filter.
13  * It allows a registered notification listener to filter the notifications of interest.
14  *
15  * @since 1.5
16  */

17 public interface NotificationFilter extends java.io.Serializable JavaDoc {
18
19     /**
20      * Invoked before sending the specified notification to the listener.
21      *
22      * @param notification The notification to be sent.
23      * @return <CODE>true</CODE> if the notification has to be sent to the listener, <CODE>false</CODE> otherwise.
24      */

25     public boolean isNotificationEnabled(Notification JavaDoc notification);
26 }
27
Popular Tags