KickJava   Java API By Example, From Geeks To Geeks.

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


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.MBeanRegistration;
11 import javax.management.MBeanServer;
12 import javax.management.ObjectName;
13
14 /**
15  * Simple MBean for builder tests
16  *
17  * @author <a HREF="mailto:Adrian.Brock@HappeningTimes.com">Adrian Brock</a>.
18  * @version $Revision: 1.3 $
19  *
20  */

21 public class BuilderTest
22    implements MBeanRegistration, BuilderTestMBean
23 {
24    public MBeanServer server = null;
25
26    public BuilderTest()
27    {
28    }
29
30    public ObjectName preRegister(MBeanServer server, ObjectName name)
31    {
32       this.server = server;
33       return name;
34    }
35
36    public void postRegister(Boolean registered)
37    {
38    }
39
40    public void preDeregister()
41    {
42    }
43
44    public void postDeregister()
45    {
46    }
47 }
48
Popular Tags