KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > test > compliance > server > support > DelegateListener


1 /*
2  * JBoss, the OpenSource J2EE webOS
3  *
4  * Distributable under LGPL license.
5  * See terms of license at gnu.org.
6  */

7
8 package test.compliance.server.support;
9
10 import javax.management.Notification;
11 import javax.management.NotificationListener;
12
13 /**
14  * @author <a HREF="mailto:Adrian.Brock@HappeningTimes.com">Adrian Brock</a>.
15  * @version $Revision: 1.3 $
16  */

17 public class DelegateListener
18    implements NotificationListener
19 {
20    public Object userData;
21
22    public void handleNotification(Notification notification, Object handback)
23    {
24       this.userData = notification.getUserData();
25    }
26 }
27
Popular Tags