1 19 20 package org.netbeans.modules.websvc.jaxws; 21 22 import java.io.IOException ; 23 import java.net.URL ; 24 import java.util.HashMap ; 25 import java.util.List ; 26 import java.util.Map ; 27 import org.netbeans.modules.websvc.jaxws.api.JAXWSSupport; 28 import org.netbeans.modules.websvc.jaxws.spi.JAXWSSupportFactory; 29 import org.netbeans.modules.websvc.jaxws.spi.JAXWSSupportImpl; 30 import org.netbeans.modules.websvc.jaxws.spi.JAXWSSupportProvider; 31 import org.netbeans.spi.project.support.ant.AntProjectHelper; 32 import org.openide.filesystems.FileObject; 33 34 38 public class CustomJAXWSSupportProvider implements JAXWSSupportProvider { 39 40 private Map <FileObject, JAXWSSupport> cache = new HashMap <FileObject, JAXWSSupport>(); 41 42 43 public CustomJAXWSSupportProvider() { 44 } 45 46 public JAXWSSupport findJAXWSSupport(FileObject file) { 47 if (file.getExt().equals ("ws")) { 48 JAXWSSupport em = cache.get(file.getParent()); 49 if (em == null) { 50 em = JAXWSSupportFactory.createJAXWSSupport(new CustomJAXWSSupport(file.getParent())); 51 cache.put(file.getParent(), em); 52 } 53 return em; 54 } 55 return null; 56 } 57 58 private static class CustomJAXWSSupport implements JAXWSSupportImpl { 59 60 private FileObject fo; 61 62 CustomJAXWSSupport(FileObject fo) { 63 this.fo = fo; 64 } 65 66 public void addService(String serviceName, String serviceImpl, 67 boolean isJsr109) { 68 throw new UnsupportedOperationException ("Not supported yet."); 69 } 70 71 public String addService(String name, String serviceImpl, String wsdlUrl, 72 String serviceName, String portName, 73 String packageName, boolean isJsr109) { 74 throw new UnsupportedOperationException ("Not supported yet."); 75 } 76 77 public List getServices() { 78 throw new UnsupportedOperationException ("Not supported yet."); 79 } 80 81 public void removeService(String serviceName) { 82 throw new UnsupportedOperationException ("Not supported yet."); 83 } 84 85 public void serviceFromJavaRemoved(String serviceName) { 86 throw new UnsupportedOperationException ("Not supported yet."); 87 } 88 89 public String getServiceImpl(String serviceName) { 90 throw new UnsupportedOperationException ("Not supported yet."); 91 } 92 93 public boolean isFromWSDL(String serviceName) { 94 throw new UnsupportedOperationException ("Not supported yet."); 95 } 96 97 public FileObject getWsdlFolder(boolean create) throws IOException { 98 throw new UnsupportedOperationException ("Not supported yet."); 99 } 100 101 public FileObject getLocalWsdlFolderForService(String serviceName, 102 boolean createFolder) { 103 throw new UnsupportedOperationException ("Not supported yet."); 104 } 105 106 public FileObject getBindingsFolderForService(String serviceName, 107 boolean createFolder) { 108 throw new UnsupportedOperationException ("Not supported yet."); 109 } 110 111 public AntProjectHelper getAntProjectHelper() { 112 throw new UnsupportedOperationException ("Not supported yet."); 113 } 114 115 public URL getCatalog() { 116 throw new UnsupportedOperationException ("Not supported yet."); 117 } 118 119 public String getWsdlLocation(String serviceName) { 120 throw new UnsupportedOperationException ("Not supported yet."); 121 } 122 123 public void removeNonJsr109Entries(String serviceName) throws IOException { 124 throw new UnsupportedOperationException ("Not supported yet."); 125 } 126 127 public FileObject getDeploymentDescriptorFolder() { 128 throw new UnsupportedOperationException ("Not supported yet."); 129 } 130 } 131 } 132 | Popular Tags |