01: /*
02: * Copyright (C) The MX4J Contributors.
03: * All rights reserved.
04: *
05: * This software is distributed under the terms of the MX4J License version 1.0.
06: * See the terms of the MX4J License in the documentation provided with this software.
07: */
08:
09: package javax.management;
10:
11: import java.io.Serializable;
12:
13: /**
14: * Implemented by a class that wants to filter {@link Notification}s sent to a
15: * {@link NotificationListener}.
16: *
17: * @version $Revision: 1.6 $
18: */
19: public interface NotificationFilter extends Serializable {
20: /**
21: * Invoked before sending the Notification to the listener.
22: *
23: * @return True if the Notification should be sent, false otherwise
24: */
25: public boolean isNotificationEnabled(Notification notification);
26: }
|