1 7 8 package test.compliance.standard.support; 9 10 import javax.management.DynamicMBean; 11 import javax.management.AttributeNotFoundException; 12 import javax.management.MBeanException; 13 import javax.management.ReflectionException; 14 import javax.management.Attribute; 15 import javax.management.InvalidAttributeValueException; 16 import javax.management.AttributeList; 17 import javax.management.MBeanInfo; 18 import javax.management.MBeanAttributeInfo; 19 import javax.management.MBeanConstructorInfo; 20 import javax.management.MBeanOperationInfo; 21 import javax.management.MBeanNotificationInfo; 22 23 27 public class DynamicDerived1 extends StandardParent implements DynamicMBean 28 { 29 public Object getAttribute(String attribute) 30 throws AttributeNotFoundException, MBeanException, ReflectionException 31 { 32 return null; 33 } 34 35 public void setAttribute(Attribute attribute) 36 throws AttributeNotFoundException, InvalidAttributeValueException, 37 MBeanException, ReflectionException 38 { 39 } 40 41 public AttributeList getAttributes(String[] attributes) 42 { 43 return new AttributeList(); 44 } 45 46 public AttributeList setAttributes(AttributeList attributes) 47 { 48 return new AttributeList(); 49 } 50 51 public Object invoke(String actionName, 52 Object[] params, 53 String[] signature) 54 throws MBeanException, ReflectionException 55 { 56 return null; 57 } 58 59 public MBeanInfo getMBeanInfo() 60 { 61 return new MBeanInfo(this.getClass().getName(), "tester", new MBeanAttributeInfo[0], 62 new MBeanConstructorInfo[0], new MBeanOperationInfo[0], new MBeanNotificationInfo[0]); 63 } 64 } 65 | Popular Tags |