1 22 package test.implementation.util.support; 23 24 import javax.management.modelmbean.ModelMBeanInfo ; 25 import javax.management.modelmbean.ModelMBeanInfoSupport ; 26 import javax.management.modelmbean.ModelMBeanAttributeInfo ; 27 import javax.management.modelmbean.ModelMBeanOperationInfo ; 28 29 33 public class ResourceIncorrectInfo 34 { 35 public ModelMBeanInfo getMBeanInfo() 36 { 37 ModelMBeanAttributeInfo [] attributes = new ModelMBeanAttributeInfo [] 38 { 39 new ModelMBeanAttributeInfo ( 40 "AttributeName", "java.lang.String", "description", 41 false, true, false 42 ) 43 }; 44 45 ModelMBeanOperationInfo [] operations = new ModelMBeanOperationInfo [] 46 { 47 new ModelMBeanOperationInfo ( 48 "doOperation", "description", null, "java.lang.Object", 1 49 ) 50 }; 51 52 ModelMBeanInfoSupport info = new ModelMBeanInfoSupport ( 53 "test.implementation.util.support.Resource", "description", 54 attributes, null, operations, null 55 ); 56 57 return info; 58 } 59 60 61 } 62 63 64 65 66 | Popular Tags |