tuscany-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jboy...@apache.org
Subject svn commit: r400136 - in /incubator/tuscany/java/sca/core/src/main/java/org/apache/tuscany/core/loader: WSDLDefinitionRegistry.java impl/WSDLDefinitionRegistryImpl.java
Date Fri, 05 May 2006 18:39:01 GMT
Author: jboynes
Date: Fri May  5 11:38:59 2006
New Revision: 400136

URL: http://svn.apache.org/viewcvs?rev=400136&view=rev
Log:
apply patch from Dan Kulp for TUSCANY-239

Modified:
    incubator/tuscany/java/sca/core/src/main/java/org/apache/tuscany/core/loader/WSDLDefinitionRegistry.java
    incubator/tuscany/java/sca/core/src/main/java/org/apache/tuscany/core/loader/impl/WSDLDefinitionRegistryImpl.java

Modified: incubator/tuscany/java/sca/core/src/main/java/org/apache/tuscany/core/loader/WSDLDefinitionRegistry.java
URL: http://svn.apache.org/viewcvs/incubator/tuscany/java/sca/core/src/main/java/org/apache/tuscany/core/loader/WSDLDefinitionRegistry.java?rev=400136&r1=400135&r2=400136&view=diff
==============================================================================
--- incubator/tuscany/java/sca/core/src/main/java/org/apache/tuscany/core/loader/WSDLDefinitionRegistry.java
(original)
+++ incubator/tuscany/java/sca/core/src/main/java/org/apache/tuscany/core/loader/WSDLDefinitionRegistry.java
Fri May  5 11:38:59 2006
@@ -17,6 +17,7 @@
 package org.apache.tuscany.core.loader;
 
 import java.net.URL;
+import java.util.List;
 import java.io.IOException;
 import javax.wsdl.Definition;
 import javax.wsdl.PortType;
@@ -68,6 +69,16 @@
      * @return the Service for the supplied name, or null if none has been defined
      */
     Service getService(QName name);
+    
+    
+    /**
+     * Returns a list of definitions that have been loaded for the given namespace, or null
if
+     * no WSDL documents have been loaded for the given namespace
+     * 
+     * @param namespace the namespace to lookup
+     * @return The list of definitions that have been loaded for the given namespace, or
null
+     */
+    List<Definition> getDefinitionsForNamespace(String namespace);
 
 
     /**

Modified: incubator/tuscany/java/sca/core/src/main/java/org/apache/tuscany/core/loader/impl/WSDLDefinitionRegistryImpl.java
URL: http://svn.apache.org/viewcvs/incubator/tuscany/java/sca/core/src/main/java/org/apache/tuscany/core/loader/impl/WSDLDefinitionRegistryImpl.java?rev=400136&r1=400135&r2=400136&view=diff
==============================================================================
--- incubator/tuscany/java/sca/core/src/main/java/org/apache/tuscany/core/loader/impl/WSDLDefinitionRegistryImpl.java
(original)
+++ incubator/tuscany/java/sca/core/src/main/java/org/apache/tuscany/core/loader/impl/WSDLDefinitionRegistryImpl.java
Fri May  5 11:38:59 2006
@@ -118,7 +118,12 @@
 
         return definition;
     }
+    
+    public List<Definition> getDefinitionsForNamespace(String namespace) {
+        return definitionsByNamespace.get(namespace);
+    }
 
+    
     public PortType getPortType(QName name) {
         String namespace = name.getNamespaceURI();
         List<Definition> definitions = definitionsByNamespace.get(namespace);



Mime
View raw message