KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > javax > management > NotificationListener


1 /*
2  * @(#)NotificationListener.java 4.16 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 import java.util.EventListener JavaDoc;
12
13
14 /**
15  * Should be implemented by an object that wants to receive notifications.
16  *
17  * @since 1.5
18  */

19 public interface NotificationListener extends java.util.EventListener JavaDoc {
20
21     /**
22     * Invoked when a JMX notification occurs.
23     * The implementation of this method should return as soon as possible, to avoid
24     * blocking its notification broadcaster.
25     *
26     * @param notification The notification.
27     * @param handback An opaque object which helps the listener to associate information
28     * regarding the MBean emitter. This object is passed to the MBean during the
29     * addListener call and resent, without modification, to the listener. The MBean object
30     * should not use or modify the object.
31     *
32     */

33     public void handleNotification(Notification JavaDoc notification, Object JavaDoc handback) ;
34 }
35
36
Popular Tags