KickJava   Java API By Example, From Geeks To Geeks.

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


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.NotificationBroadcasterSupport;
12
13 /**
14  * Simple Broadcaster
15  *
16  * @author <a HREF="mailto:Adrian.Brock@HappeningTimes.com">Adrian Brock</a>.
17  * @version $Revision: 1.2 $
18  *
19  */

20 public class Broadcaster
21    extends NotificationBroadcasterSupport
22    implements BroadcasterMBean
23 {
24    long sequence = 0;
25    public void doSomething()
26    {
27       sendNotification(new Notification("test", this, ++sequence));
28    }
29 }
30
Popular Tags