axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chath...@apache.org
Subject svn commit: r168100 - in /webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis/wsdl/builder: WOMBuilder.java WSDL2ToWOMBuilder.java wsdl4j/WSDL1ToWOMBuilder.java
Date Wed, 04 May 2005 08:31:49 GMT
Author: chathura
Date: Wed May  4 01:31:47 2005
New Revision: 168100

URL: http://svn.apache.org/viewcvs?rev=168100&view=rev
Log:
Added functionality to the WSDl Builder to accept a WSDLComponent Factory.

Modified:
    webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis/wsdl/builder/WOMBuilder.java
    webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis/wsdl/builder/WSDL2ToWOMBuilder.java
    webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis/wsdl/builder/wsdl4j/WSDL1ToWOMBuilder.java

Modified: webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis/wsdl/builder/WOMBuilder.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis/wsdl/builder/WOMBuilder.java?rev=168100&r1=168099&r2=168100&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis/wsdl/builder/WOMBuilder.java
(original)
+++ webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis/wsdl/builder/WOMBuilder.java
Wed May  4 01:31:47 2005
@@ -27,4 +27,6 @@
 public interface WOMBuilder {
 
     public WSDLDescription build(InputStream in) throws WSDLException;
+    
+    public WSDLDescription build (InputStream in, WSDLComponentFactory wsdlComponentFactory)
throws WSDLException;
 }

Modified: webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis/wsdl/builder/WSDL2ToWOMBuilder.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis/wsdl/builder/WSDL2ToWOMBuilder.java?rev=168100&r1=168099&r2=168100&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis/wsdl/builder/WSDL2ToWOMBuilder.java
(original)
+++ webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis/wsdl/builder/WSDL2ToWOMBuilder.java
Wed May  4 01:31:47 2005
@@ -27,9 +27,10 @@
 public class WSDL2ToWOMBuilder implements WOMBuilder {
 
     public WSDLDescription build(InputStream in) throws WSDLException {
-
-        throw new UnsupportedOperationException("Fill the imps");
-
-
+        throw new UnsupportedOperationException("Not Implemented");
+    }
+    
+    public WSDLDescription build(InputStream in, WSDLComponentFactory wsdlComponenetFactory)throws
WSDLException{
+    	throw new UnsupportedOperationException("Not Implemented");
     }
 }

Modified: webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis/wsdl/builder/wsdl4j/WSDL1ToWOMBuilder.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis/wsdl/builder/wsdl4j/WSDL1ToWOMBuilder.java?rev=168100&r1=168099&r2=168100&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis/wsdl/builder/wsdl4j/WSDL1ToWOMBuilder.java
(original)
+++ webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis/wsdl/builder/wsdl4j/WSDL1ToWOMBuilder.java
Wed May  4 01:31:47 2005
@@ -25,6 +25,7 @@
 import javax.xml.parsers.ParserConfigurationException;
 
 import org.apache.axis.wsdl.builder.WOMBuilder;
+import org.apache.axis.wsdl.builder.WSDLComponentFactory;
 import org.apache.wsdl.WSDLDescription;
 import org.apache.wsdl.impl.WSDLDescriptionImpl;
 import org.apache.wsdl.util.Utils;
@@ -44,6 +45,16 @@
         pump.pump();
 
         return wsdlDefinitions;
+    }
+    
+    public WSDLDescription build (InputStream in, WSDLComponentFactory wsdlComponentFactory)
throws WSDLException{
+    	WSDLDescription wsdlDefinitions = new WSDLDescriptionImpl();
+
+        WSDLPump pump = new WSDLPump(wsdlDefinitions, this.readInTheWSDLFile(in), wsdlComponentFactory);
+        pump.pump();
+
+        return wsdlDefinitions;
+    	
     }
 
     private Definition readInTheWSDLFile(InputStream in) throws WSDLException {



Mime
View raw message