1 22 package org.jboss.test.system.controller.support; 23 24 import javax.management.Attribute ; 25 import javax.management.AttributeList ; 26 import javax.management.AttributeNotFoundException ; 27 import javax.management.DynamicMBean ; 28 import javax.management.InvalidAttributeValueException ; 29 import javax.management.MBeanException ; 30 import javax.management.MBeanInfo ; 31 import javax.management.ObjectName ; 32 import javax.management.ReflectionException ; 33 34 import org.jboss.mx.util.ObjectNameFactory; 35 import org.jboss.util.NotImplementedException; 36 37 43 public class BrokenDynamicMBean implements DynamicMBean 44 { 45 public static final ObjectName OBJECT_NAME = ObjectNameFactory.create("jboss.test:type=BrokenDynamicMBean"); 46 47 public MBeanInfo getMBeanInfo() 48 { 49 throw new Error ("BROKEN"); 50 } 51 52 public Object getAttribute(String attribute) throws AttributeNotFoundException , MBeanException , ReflectionException 53 { 54 throw new org.jboss.util.NotImplementedException("getAttribute"); 55 } 56 57 public AttributeList getAttributes(String [] attributes) 58 { 59 throw new NotImplementedException("getAttributes"); 60 } 61 62 public Object invoke(String actionName, Object [] params, String [] signature) throws MBeanException , ReflectionException 63 { 64 throw new NotImplementedException("invoke"); 65 } 66 67 public void setAttribute(Attribute attribute) throws AttributeNotFoundException , InvalidAttributeValueException , MBeanException , ReflectionException 68 { 69 throw new NotImplementedException("setAttribute"); 70 } 71 72 public AttributeList setAttributes(AttributeList attributes) 73 { 74 throw new NotImplementedException("setAttributes"); 75 } 76 } 77 | Popular Tags |