1 8 9 package mx4j.tools.remote.soap.axis.ser; 10 11 import javax.management.MBeanAttributeInfo ; 12 import javax.management.MBeanConstructorInfo ; 13 import javax.management.MBeanInfo ; 14 import javax.management.MBeanNotificationInfo ; 15 import javax.management.MBeanOperationInfo ; 16 17 import org.xml.sax.SAXException ; 18 19 22 public class MBeanInfoDeser extends AxisDeserializer 23 { 24 private String className; 25 private String description; 26 private MBeanAttributeInfo [] attributes; 27 private MBeanConstructorInfo [] constructors; 28 private MBeanOperationInfo [] operations; 29 private MBeanNotificationInfo [] notifications; 30 31 public void onSetChildValue(Object value, Object hint) throws SAXException 32 { 33 if (MBeanInfoSer.CLASS_NAME.equals(hint)) 34 className = (String )value; 35 else if (MBeanInfoSer.DESCRIPTION.equals(hint)) 36 description = (String )value; 37 else if (MBeanInfoSer.ATTRIBUTES.equals(hint)) 38 attributes = (MBeanAttributeInfo [])value; 39 else if (MBeanInfoSer.CONSTRUCTORS.equals(hint)) 40 constructors = (MBeanConstructorInfo [])value; 41 else if (MBeanInfoSer.OPERATIONS.equals(hint)) 42 operations = (MBeanOperationInfo [])value; 43 else if (MBeanInfoSer.NOTIFICATIONS.equals(hint)) notifications = (MBeanNotificationInfo [])value; 44 } 45 46 protected Object createObject() throws SAXException 47 { 48 return new MBeanInfo (className, description, attributes, constructors, operations, notifications); 49 } 50 } 51 | Popular Tags |