1 22 package org.jboss.test.jbossmx.compliance.notcompliant.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.MBeanAttributeInfo ; 30 import javax.management.MBeanConstructorInfo ; 31 import javax.management.MBeanException ; 32 import javax.management.MBeanInfo ; 33 import javax.management.MBeanNotificationInfo ; 34 import javax.management.MBeanOperationInfo ; 35 import javax.management.ReflectionException ; 36 37 40 public class DynamicAndStandard implements DynamicMBean , DynamicAndStandardMBean 41 { 42 public Object getAttribute(String attribute) 43 throws AttributeNotFoundException , MBeanException , ReflectionException 44 { 45 return null; 46 } 47 48 public void setAttribute(Attribute attribute) 49 throws AttributeNotFoundException , InvalidAttributeValueException , 50 MBeanException , ReflectionException 51 { 52 } 53 54 public AttributeList getAttributes(String [] attributes) 55 { 56 return new AttributeList (); 57 } 58 59 public AttributeList setAttributes(AttributeList attributes) 60 { 61 return new AttributeList (); 62 } 63 64 public Object invoke(String actionName, 65 Object [] params, 66 String [] signature) 67 throws MBeanException , ReflectionException 68 { 69 return null; 70 } 71 72 public MBeanInfo getMBeanInfo() 73 { 74 return new MBeanInfo (this.getClass().getName(), "tester", new MBeanAttributeInfo [0], 75 new MBeanConstructorInfo [0], new MBeanOperationInfo [0], new MBeanNotificationInfo [0]); 76 } 77 } 78 | Popular Tags |