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.MBeanException ; 30 import javax.management.MBeanInfo ; 31 import javax.management.ReflectionException ; 32 33 36 public class NullDynamic implements DynamicMBean 37 { 38 public Object getAttribute(String attribute) 39 throws AttributeNotFoundException , MBeanException , ReflectionException 40 { 41 return null; 42 } 43 44 public void setAttribute(Attribute attribute) 45 throws AttributeNotFoundException , InvalidAttributeValueException , 46 MBeanException , ReflectionException 47 { 48 } 49 50 public AttributeList getAttributes(String [] attributes) 51 { 52 return new AttributeList (); 53 } 54 55 public AttributeList setAttributes(AttributeList attributes) 56 { 57 return new AttributeList (); 58 } 59 60 public Object invoke(String actionName, 61 Object [] params, 62 String [] signature) 63 throws MBeanException , ReflectionException 64 { 65 return null; 66 } 67 68 public MBeanInfo getMBeanInfo() 69 { 70 return null; 71 } 72 } 73 | Popular Tags |