1 8 9 package mx4j.tools.remote.soap.axis.ser; 10 11 import javax.management.Notification ; 12 import javax.management.remote.TargetedNotification ; 13 14 import org.xml.sax.SAXException ; 15 16 19 public class TargetedNotificationDeser extends AxisDeserializer 20 { 21 private Notification notification; 22 private Integer listenerID; 23 24 public void onSetChildValue(Object value, Object hint) throws SAXException 25 { 26 if (TargetedNotificationSer.NOTIFICATION.equals(hint)) 27 notification = (Notification )value; 28 else if (TargetedNotificationSer.LISTENER_ID.equals(hint)) listenerID = (Integer )value; 29 } 30 31 protected Object createObject() throws SAXException 32 { 33 return new TargetedNotification (notification, listenerID); 34 } 35 } 36 | Popular Tags |