KickJava   Java API By Example, From Geeks To Geeks.

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


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.ObjectName;
12 import javax.management.MBeanServer;
13
14 /**
15  * @author <a HREF="mailto:juha@jboss.org">Juha Lindfors</a>.
16  * @version $Revision: 1.2 $
17  *
18  */

19 public class Test3 implements Test3MBean, MBeanRegistration
20 {
21
22    public ObjectName preRegister(MBeanServer server, ObjectName name) throws Exception
23    {
24       throw new MyScreamingException();
25    }
26    
27    public void postRegister(Boolean b)
28    {
29    }
30    
31    public void preDeregister() throws Exception
32    {
33    }
34    
35    public void postDeregister()
36    {
37       
38    }
39 }
40
41
42
43
44
Popular Tags