1 22 package org.jboss.test.jmx.compliance.server.support; 23 24 import javax.management.MBeanRegistration ; 25 import javax.management.MBeanRegistrationException ; 26 import javax.management.MBeanServer ; 27 import javax.management.ObjectName ; 28 29 37 public class LockedTest3 38 implements LockedTest3MBean, MBeanRegistration 39 { 40 41 public ObjectName preRegister(MBeanServer server, ObjectName name) throws Exception 42 { 43 return name; 44 } 45 46 public void postRegister(Boolean b) 47 { 48 49 } 50 51 public void preDeregister() throws Exception 52 { 53 throw new MBeanRegistrationException (new MyScreamingException(), "you can't unregister me!"); 54 } 55 56 public void postDeregister() 57 { 58 59 } 60 } 61 62 63 64 65 | Popular Tags |