1 8 9 package mx4j.tools.remote.soap.axis.ser; 10 11 import javax.management.MBeanNotificationInfo ; 12 13 import org.xml.sax.SAXException ; 14 15 18 public class MBeanNotificationInfoDeser extends AxisDeserializer 19 { 20 private String name; 21 private String description; 22 private String [] notificationTypes; 23 24 public void onSetChildValue(Object value, Object hint) throws SAXException 25 { 26 if (MBeanNotificationInfoSer.NAME.equals(hint)) 27 name = (String )value; 28 else if (MBeanNotificationInfoSer.DESCRIPTION.equals(hint)) 29 description = (String )value; 30 else if (MBeanNotificationInfoSer.NOTIFICATION_TYPES.equals(hint)) notificationTypes = (String [])value; 31 } 32 33 protected Object createObject() throws SAXException 34 { 35 return new MBeanNotificationInfo (notificationTypes, name, description); 36 } 37 } 38 | Popular Tags |