1 19 20 26 package org.netbeans.modules.xml.wsdl.ui.fastmodel; 27 import java.io.File ; 28 import java.io.InputStream ; 29 import java.io.Reader ; 30 import org.openide.util.NbBundle; 31 32 33 34 40 public abstract class FastWSDLDefinitionsFactory { 41 42 private static FastWSDLDefinitionsFactory factory; 43 44 public FastWSDLDefinitionsFactory() { 45 46 } 47 48 53 public static synchronized FastWSDLDefinitionsFactory getInstance() throws Exception { 54 if (null == factory) { 55 String wsdlFac = System.getProperty(FastWSDLDefinitionsFactory.class.getName(), 56 "org.netbeans.modules.xml.wsdl.ui.fastmodel.impl.FastWSDLDefinitionsFactoryImpl"); try { 58 factory = (FastWSDLDefinitionsFactory) Class.forName(wsdlFac).newInstance(); 59 } catch (Exception e) { 60 throw new Exception ( 61 NbBundle.getMessage(FastWSDLDefinitionsFactory.class, "ERR_MSG_WSDL_CLASS_NOT_FOUND", wsdlFac), e); 62 } 63 } 64 return factory; 65 } 66 67 public abstract FastWSDLDefinitions newFastWSDLDefinitions(Reader in, boolean parseImports); 68 69 public abstract FastWSDLDefinitions newFastWSDLDefinitions(InputStream in, boolean parseImports); 70 71 public abstract FastWSDLDefinitions newFastWSDLDefinitions(String defFileUrl); 72 73 public abstract FastWSDLDefinitions newFastWSDLDefinitions(String defFileUrl, 74 boolean parseImports); 75 public abstract FastWSDLDefinitions newFastWSDLDefinitions(File file); 76 77 public abstract FastWSDLDefinitions newFastWSDLDefinitions(File file, 78 boolean parseImports); 79 80 } 81 | Popular Tags |