1 22 package org.jboss.test.jmx.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 static final String DESCRIPTION = "dynamic mbeaninfo"; 43 44 public Object getAttribute(String attribute) 45 throws AttributeNotFoundException , MBeanException , ReflectionException 46 { 47 return null; 48 } 49 50 public void setAttribute(Attribute attribute) 51 throws AttributeNotFoundException , InvalidAttributeValueException , 52 MBeanException , ReflectionException 53 { 54 } 55 56 public AttributeList getAttributes(String [] attributes) 57 { 58 return new AttributeList (); 59 } 60 61 public AttributeList setAttributes(AttributeList attributes) 62 { 63 return new AttributeList (); 64 } 65 66 public Object invoke(String actionName, 67 Object [] params, 68 String [] signature) 69 throws MBeanException , ReflectionException 70 { 71 return null; 72 } 73 74 public MBeanInfo getMBeanInfo() 75 { 76 return new MBeanInfo (this.getClass().getName(), DESCRIPTION, new MBeanAttributeInfo [0], 77 new MBeanConstructorInfo [0], new MBeanOperationInfo [0], new MBeanNotificationInfo [0]); 78 } 79 } 80 | Popular Tags |