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