1 26 27 package org.objectweb.jonas.ws; 28 29 import java.util.Iterator ; 30 import java.util.Vector ; 31 32 import org.objectweb.jonas_ws.deployment.api.ServiceDesc; 33 34 import org.objectweb.jonas.ws.handler.WSDLHandler; 35 36 37 40 public class WSDLManager { 41 44 private Vector handlers; 45 46 49 public WSDLManager() { 50 handlers = new Vector (); 51 } 52 53 58 public void addHandler(WSDLHandler handler) { 59 handlers.add(handler); 60 } 61 62 69 public void publish(ServiceDesc sd) throws WSServiceException { 70 for (Iterator i = handlers.iterator(); i.hasNext();) { 71 WSDLHandler wsdlh = (WSDLHandler) i.next(); 72 wsdlh.publish(sd); 73 } 74 } 75 } 76 | Popular Tags |