KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > test > compliance > standard > support > MBeanRunnable


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.standard.support;
9
10 import javax.management.StandardMBean;
11
12 public class MBeanRunnable
13    extends StandardMBean
14    implements Runnable
15 {
16    /**
17     * We provide the management interface
18     */

19    public MBeanRunnable()
20       throws Exception
21    {
22       super(Runnable.class);
23    }
24
25    public MBeanRunnable(boolean wrongInterface)
26       throws Exception
27    {
28       super(ArbitraryInterface.class);
29    }
30
31    public MBeanRunnable(int nullInterface)
32       throws Exception
33    {
34       super(null);
35    }
36
37    public void run()
38    {
39    }
40 }
41
Popular Tags