KickJava   Java API By Example, From Geeks To Geeks.

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


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

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