1 19 20 package org.netbeans.modules.websvc.api; 21 22 import java.io.IOException ; 23 import java.util.HashMap ; 24 import java.util.List ; 25 import java.util.Map ; 26 import org.netbeans.api.java.classpath.ClassPath; 27 import org.netbeans.api.project.Project; 28 import org.netbeans.modules.j2ee.dd.api.webservices.ServiceImplBean; 29 import org.netbeans.modules.websvc.api.webservices.WebServicesSupport; 30 import org.netbeans.modules.websvc.spi.webservices.WebServicesSupportFactory; 31 import org.netbeans.modules.websvc.spi.webservices.WebServicesSupportImpl; 32 import org.netbeans.modules.websvc.spi.webservices.WebServicesSupportProvider; 33 import org.netbeans.spi.project.support.ant.AntProjectHelper; 34 import org.netbeans.spi.project.support.ant.ReferenceHelper; 35 import org.openide.filesystems.FileObject; 36 37 41 public class CustomWebServicesSupportProvider implements WebServicesSupportProvider { 42 43 private Map <FileObject, WebServicesSupport> cache = new HashMap <FileObject, WebServicesSupport>(); 44 45 46 public CustomWebServicesSupportProvider() { 47 } 48 49 public WebServicesSupport findWebServicesSupport(FileObject file) { 50 if (file.getExt().equals("ws")) { 51 WebServicesSupport em = cache.get(file.getParent()); 52 if (em == null) { 53 em = WebServicesSupportFactory.createWebServicesSupport(new CustomWebServicesSupport(file)); 54 cache.put(file.getParent(), em); 55 } 56 return em; 57 } 58 return null; 59 } 60 61 private static final class CustomWebServicesSupport implements WebServicesSupportImpl { 62 private FileObject fo; 63 64 CustomWebServicesSupport(FileObject fo) { 65 this.fo = fo; 66 } 67 68 public void addServiceImpl(String serviceName, FileObject configFile, 69 boolean fromWSDL, String [] wscompileFeatures) { 70 throw new UnsupportedOperationException ("Not supported yet."); 71 } 72 73 public void addServiceImpl(String serviceName, FileObject configFile, 74 boolean fromWSDL) { 75 throw new UnsupportedOperationException ("Not supported yet."); 76 } 77 78 public void addServiceEntriesToDD(String serviceName, 79 String serviceEndpointInterface, 80 String serviceEndpoint) { 81 throw new UnsupportedOperationException ("Not supported yet."); 82 } 83 84 public FileObject getWebservicesDD() { 85 throw new UnsupportedOperationException ("Not supported yet."); 86 } 87 88 public FileObject getWsDDFolder() { 89 throw new UnsupportedOperationException ("Not supported yet."); 90 } 91 92 public String getArchiveDDFolderName() { 93 throw new UnsupportedOperationException ("Not supported yet."); 94 } 95 96 public String getImplementationBean(String linkName) { 97 throw new UnsupportedOperationException ("Not supported yet."); 98 } 99 100 public void removeServiceEntry(String linkName) { 101 throw new UnsupportedOperationException ("Not supported yet."); 102 } 103 104 public void removeProjectEntries(String serviceName) { 105 throw new UnsupportedOperationException ("Not supported yet."); 106 } 107 108 public AntProjectHelper getAntProjectHelper() { 109 throw new UnsupportedOperationException ("Not supported yet."); 110 } 111 112 public String generateImplementationBean(String wsName, FileObject pkg, 113 Project project, 114 String delegateData) throws IOException { 115 throw new UnsupportedOperationException ("Not supported yet."); 116 } 117 118 public void addServiceImplLinkEntry(ServiceImplBean serviceImplBean, 119 String wsName) { 120 throw new UnsupportedOperationException ("Not supported yet."); 121 } 122 123 public ReferenceHelper getReferenceHelper() { 124 throw new UnsupportedOperationException ("Not supported yet."); 125 } 126 127 public List getServices() { 128 throw new UnsupportedOperationException ("Not supported yet."); 129 } 130 131 public void addInfrastructure(String implBeanClass, FileObject pkg) { 132 throw new UnsupportedOperationException ("Not supported yet."); 133 } 134 135 public boolean isFromWSDL(String serviceName) { 136 throw new UnsupportedOperationException ("Not supported yet."); 137 } 138 139 public ClassPath getClassPath() { 140 throw new UnsupportedOperationException ("Not supported yet."); 141 } 142 } 143 144 } 145 | Popular Tags |