KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > test > sample > simple > Sample


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

7 package test.sample.simple;
8
9 import javax.management.NotificationBroadcasterSupport JavaDoc;
10 import javax.management.Notification JavaDoc;
11
12 /**
13  * @author <a HREF="mailto:tom.elrod@jboss.com">Tom Elrod</a>
14  */

15 public class Sample extends NotificationBroadcasterSupport JavaDoc implements SampleMBean
16 {
17    private static int sequence = 0;
18
19    public String JavaDoc doSomething(String JavaDoc param)
20    {
21       sendNotification(new Notification JavaDoc("Sample notification", this, sequence++));
22       return param;
23    }
24
25 }
Popular Tags