01: /* JFox, the OpenSource J2EE Application Server
02: *
03: * Copyright (C) 2002 huihoo.org
04: * Distributable under GNU LGPL license
05: * See the GNU Lesser General Public License for more details.
06: */
07:
08: package javax.management;
09:
10: import java.io.Serializable;
11:
12: /**
13: * To be implemented by a any class acting as a notification filter.
14: * It allows a registered notification listener to filter the notifications of interest.
15: *
16: * @author <a href="mailto:young_yy@hotmail.org">Young Yang</a>
17: */
18:
19: public interface NotificationFilter extends Serializable {
20:
21: /**
22: * Invoked before sending the specified notification to the listener.
23: *
24: * @param notification The notification to be sent.
25: * @return <CODE>true</CODE> if the notification has to be sent to the listener, <CODE>false</CODE> otherwise.
26: */
27: public boolean isNotificationEnabled(Notification notification);
28: }
|