1 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 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 |