1 7 8 package test.compliance.server.support; 9 10 import javax.management.MBeanRegistration; 11 import javax.management.MBeanRegistrationException; 12 import javax.management.MBeanServer; 13 import javax.management.ObjectName; 14 15 23 public class LockedTest3 24 implements LockedTest3MBean, MBeanRegistration 25 { 26 27 public ObjectName preRegister(MBeanServer server, ObjectName name) throws Exception 28 { 29 return name; 30 } 31 32 public void postRegister(Boolean b) 33 { 34 35 } 36 37 public void preDeregister() throws Exception 38 { 39 throw new MBeanRegistrationException(new MyScreamingException(), "you can't unregister me!"); 40 } 41 42 public void postDeregister() 43 { 44 45 } 46 } 47 48 49 50 51 | Popular Tags |