tuscany-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jboy...@apache.org
Subject svn commit: r399480 - in /incubator/tuscany/sandbox/jboynes/sca: core/src/main/java/org/apache/tuscany/core/loader/ core/src/main/java/org/apache/tuscany/core/loader/assembly/ core/src/main/java/org/apache/tuscany/core/loader/impl/ core/src/main/resour...
Date Wed, 03 May 2006 22:58:49 GMT
Author: jboynes
Date: Wed May  3 15:58:46 2006
New Revision: 399480

URL: http://svn.apache.org/viewcvs?rev=399480&view=rev
Log:
refactor interface.wsdl loader and wsdl registry

Added:
    incubator/tuscany/sandbox/jboynes/sca/core2/src/main/java/org/apache/tuscany/core/loader/InterfaceWSDLLoader.java
  (contents, props changed)
      - copied, changed from r399348, incubator/tuscany/sandbox/jboynes/sca/core/src/main/java/org/apache/tuscany/core/loader/assembly/InterfaceWSDLLoader.java
    incubator/tuscany/sandbox/jboynes/sca/core2/src/main/java/org/apache/tuscany/core/services/
    incubator/tuscany/sandbox/jboynes/sca/core2/src/main/java/org/apache/tuscany/core/services/wsdl/
    incubator/tuscany/sandbox/jboynes/sca/core2/src/main/java/org/apache/tuscany/core/services/wsdl/WSDLDefinitionRegistry.java
  (contents, props changed)
      - copied, changed from r399282, incubator/tuscany/sandbox/jboynes/sca/core/src/main/java/org/apache/tuscany/core/loader/WSDLDefinitionRegistry.java
    incubator/tuscany/sandbox/jboynes/sca/core2/src/main/java/org/apache/tuscany/core/services/wsdl/WSDLDefinitionRegistryImpl.java
  (contents, props changed)
      - copied, changed from r399348, incubator/tuscany/sandbox/jboynes/sca/core/src/main/java/org/apache/tuscany/core/loader/impl/WSDLDefinitionRegistryImpl.java
    incubator/tuscany/sandbox/jboynes/sca/core2/src/test/java/org/apache/tuscany/core/services/
    incubator/tuscany/sandbox/jboynes/sca/core2/src/test/java/org/apache/tuscany/core/services/wsdl/
    incubator/tuscany/sandbox/jboynes/sca/core2/src/test/java/org/apache/tuscany/core/services/wsdl/WSDLDefinitionRegistryTestCase.java
  (contents, props changed)
      - copied, changed from r399282, incubator/tuscany/sandbox/jboynes/sca/core/src/test/java/org/apache/tuscany/core/loader/assembly/WSDLDefinitionRegistryTestCase.java
    incubator/tuscany/sandbox/jboynes/sca/core2/src/test/resources/
    incubator/tuscany/sandbox/jboynes/sca/core2/src/test/resources/org/
    incubator/tuscany/sandbox/jboynes/sca/core2/src/test/resources/org/apache/
    incubator/tuscany/sandbox/jboynes/sca/core2/src/test/resources/org/apache/tuscany/
    incubator/tuscany/sandbox/jboynes/sca/core2/src/test/resources/org/apache/tuscany/core/
    incubator/tuscany/sandbox/jboynes/sca/core2/src/test/resources/org/apache/tuscany/core/services/
    incubator/tuscany/sandbox/jboynes/sca/core2/src/test/resources/org/apache/tuscany/core/services/wsdl/
    incubator/tuscany/sandbox/jboynes/sca/core2/src/test/resources/org/apache/tuscany/core/services/wsdl/example.wsdl
      - copied, changed from r399282, incubator/tuscany/sandbox/jboynes/sca/core/src/test/resources/org/apache/tuscany/core/loader/assembly/example.wsdl
Removed:
    incubator/tuscany/sandbox/jboynes/sca/core/src/main/java/org/apache/tuscany/core/loader/WSDLDefinitionRegistry.java
    incubator/tuscany/sandbox/jboynes/sca/core/src/main/java/org/apache/tuscany/core/loader/assembly/InterfaceWSDLLoader.java
    incubator/tuscany/sandbox/jboynes/sca/core/src/main/java/org/apache/tuscany/core/loader/impl/WSDLDefinitionRegistryImpl.java
    incubator/tuscany/sandbox/jboynes/sca/core/src/test/java/org/apache/tuscany/core/loader/assembly/WSDLDefinitionRegistryTestCase.java
    incubator/tuscany/sandbox/jboynes/sca/core/src/test/resources/org/apache/tuscany/core/loader/assembly/example.wsdl
Modified:
    incubator/tuscany/sandbox/jboynes/sca/core/src/main/resources/system.module
    incubator/tuscany/sandbox/jboynes/sca/model/src/main/java/org/apache/tuscany/model/WSDLServiceContract.java

Modified: incubator/tuscany/sandbox/jboynes/sca/core/src/main/resources/system.module
URL: http://svn.apache.org/viewcvs/incubator/tuscany/sandbox/jboynes/sca/core/src/main/resources/system.module?rev=399480&r1=399479&r2=399480&view=diff
==============================================================================
--- incubator/tuscany/sandbox/jboynes/sca/core/src/main/resources/system.module (original)
+++ incubator/tuscany/sandbox/jboynes/sca/core/src/main/resources/system.module Wed May  3
15:58:46 2006
@@ -19,8 +19,8 @@
         xmlns:system="http://org.apache.tuscany/xmlns/system/0.9"
         name="org.apache.tuscany.core.system">
 
-    <component name="org.apache.tuscany.core.loader.WSDLDefinitionRegistry">
-        <system:implementation.system class="org.apache.tuscany.core.loader.impl.WSDLDefinitionRegistryImpl"/>
+    <component name="org.apache.tuscany.core.services.wsdl.WSDLDefinitionRegistry">
+        <system:implementation.system class="org.apache.tuscany.core.services.wsdl.WSDLDefinitionRegistryImpl"/>
     </component>
 
     <component name="org.apache.tuscany.core.loader.ComponentTypeLoader">
@@ -43,8 +43,8 @@
         <system:implementation.system class="org.apache.tuscany.core.loader.assembly.ImportWSDLLoader"/>
     </component>
 
-    <component name="org.apache.tuscany.core.loader.assembly.InterfaceWSDLLoader">
-        <system:implementation.system class="org.apache.tuscany.core.loader.assembly.InterfaceWSDLLoader"/>
+    <component name="org.apache.tuscany.core.loader.InterfaceWSDLLoader">
+        <system:implementation.system class="org.apache.tuscany.core.loader.InterfaceWSDLLoader"/>
     </component>
 
     <component name="org.apache.tuscany.core.loader.PropertyLoader">

Copied: incubator/tuscany/sandbox/jboynes/sca/core2/src/main/java/org/apache/tuscany/core/loader/InterfaceWSDLLoader.java
(from r399348, incubator/tuscany/sandbox/jboynes/sca/core/src/main/java/org/apache/tuscany/core/loader/assembly/InterfaceWSDLLoader.java)
URL: http://svn.apache.org/viewcvs/incubator/tuscany/sandbox/jboynes/sca/core2/src/main/java/org/apache/tuscany/core/loader/InterfaceWSDLLoader.java?p2=incubator/tuscany/sandbox/jboynes/sca/core2/src/main/java/org/apache/tuscany/core/loader/InterfaceWSDLLoader.java&p1=incubator/tuscany/sandbox/jboynes/sca/core/src/main/java/org/apache/tuscany/core/loader/assembly/InterfaceWSDLLoader.java&r1=399348&r2=399480&rev=399480&view=diff
==============================================================================
--- incubator/tuscany/sandbox/jboynes/sca/core/src/main/java/org/apache/tuscany/core/loader/assembly/InterfaceWSDLLoader.java
(original)
+++ incubator/tuscany/sandbox/jboynes/sca/core2/src/main/java/org/apache/tuscany/core/loader/InterfaceWSDLLoader.java
Wed May  3 15:58:46 2006
@@ -14,31 +14,25 @@
  *  See the License for the specific language governing permissions and
  *  limitations under the License.
  */
-package org.apache.tuscany.core.loader.assembly;
+package org.apache.tuscany.core.loader;
 
 import java.io.IOException;
-
-import org.apache.tuscany.core.config.ConfigurationLoadException;
-import org.apache.tuscany.core.config.MissingInterfaceException;
-import org.apache.tuscany.core.loader.WSDLDefinitionRegistry;
-import org.apache.tuscany.core.loader.StAXUtil;
-import org.apache.tuscany.core.loader.LoaderContext;
-import org.apache.tuscany.core.loader.AssemblyConstants;
-import org.apache.tuscany.spi.loader.LoaderSupport;
-import org.apache.tuscany.spi.annotation.Autowire;
-import org.apache.tuscany.model.assembly.Scope;
-import org.apache.tuscany.model.types.wsdl.WSDLServiceContract;
-
+import javax.wsdl.PortType;
+import javax.wsdl.WSDLException;
 import javax.xml.namespace.QName;
 import javax.xml.stream.XMLStreamException;
 import javax.xml.stream.XMLStreamReader;
-import javax.wsdl.PortType;
-import javax.wsdl.WSDLException;
+
+import org.apache.tuscany.core.services.wsdl.WSDLDefinitionRegistry;
+import org.apache.tuscany.model.WSDLServiceContract;
+import org.apache.tuscany.spi.annotation.Autowire;
+import org.apache.tuscany.spi.loader.LoaderContext;
+import org.apache.tuscany.spi.loader.LoaderException;
+import org.apache.tuscany.spi.loader.LoaderSupport;
 
 /**
  * @version $Rev$ $Date$
  */
-@org.osoa.sca.annotations.Scope("MODULE")
 public class InterfaceWSDLLoader extends LoaderSupport {
     private static final String WSDLI = "http://www.w3.org/2006/01/wsdl-instance";
     private static final String WSDLI_LOCATION = "wsdlLocation";
@@ -54,19 +48,23 @@
         return AssemblyConstants.INTERFACE_WSDL;
     }
 
-    public WSDLServiceContract load(XMLStreamReader reader, LoaderContext loaderContext)
throws XMLStreamException, ConfigurationLoadException {
+    public WSDLServiceContract load(XMLStreamReader reader, LoaderContext loaderContext)
throws XMLStreamException, LoaderException {
         assert AssemblyConstants.INTERFACE_WSDL.equals(reader.getName());
-        WSDLServiceContract serviceContract = factory.createWSDLServiceContract();
-        serviceContract.setScope(Scope.INSTANCE);
+        WSDLServiceContract serviceContract = new WSDLServiceContract();
+        serviceContract.setInteractionScope(StAXUtil.interactionScope(reader.getAttributeValue(null,
"scope")));
 
         String location = reader.getAttributeValue(WSDLI, WSDLI_LOCATION);
         if (location != null) {
             try {
-                wsdlRegistry.loadDefinition(location, loaderContext.getResourceLoader());
+                wsdlRegistry.loadDefinition(location, loaderContext.getClassLoader());
             } catch (IOException e) {
-                throw new MissingInterfaceException(e);
+                LoaderException le = new LoaderException(e);
+                le.setIdentifier(location);
+                throw le;
             } catch (WSDLException e) {
-                throw new MissingInterfaceException(e);
+                LoaderException le = new LoaderException(e);
+                le.setIdentifier(location);
+                throw le;
             }
         }
 
@@ -83,16 +81,12 @@
         return serviceContract;
     }
 
-    protected PortType getPortType(String uri) throws MissingInterfaceException {
+    protected PortType getPortType(String uri) {
         // fixme support WSDL 2.0 XPointer references and possible XML Schema QNames
         int index = uri.indexOf('#');
         String namespace = uri.substring(0, index);
         String name = uri.substring(index + 1);
         QName qname = new QName(namespace, name);
-        PortType portType = wsdlRegistry.getPortType(qname);
-        if (portType == null) {
-            throw new MissingInterfaceException(uri);
-        }
-        return portType;
+        return wsdlRegistry.getPortType(qname);
     }
 }

Propchange: incubator/tuscany/sandbox/jboynes/sca/core2/src/main/java/org/apache/tuscany/core/loader/InterfaceWSDLLoader.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/sandbox/jboynes/sca/core2/src/main/java/org/apache/tuscany/core/loader/InterfaceWSDLLoader.java
------------------------------------------------------------------------------
    svn:keywords = Rev,Date

Copied: incubator/tuscany/sandbox/jboynes/sca/core2/src/main/java/org/apache/tuscany/core/services/wsdl/WSDLDefinitionRegistry.java
(from r399282, incubator/tuscany/sandbox/jboynes/sca/core/src/main/java/org/apache/tuscany/core/loader/WSDLDefinitionRegistry.java)
URL: http://svn.apache.org/viewcvs/incubator/tuscany/sandbox/jboynes/sca/core2/src/main/java/org/apache/tuscany/core/services/wsdl/WSDLDefinitionRegistry.java?p2=incubator/tuscany/sandbox/jboynes/sca/core2/src/main/java/org/apache/tuscany/core/services/wsdl/WSDLDefinitionRegistry.java&p1=incubator/tuscany/sandbox/jboynes/sca/core/src/main/java/org/apache/tuscany/core/loader/WSDLDefinitionRegistry.java&r1=399282&r2=399480&rev=399480&view=diff
==============================================================================
--- incubator/tuscany/sandbox/jboynes/sca/core/src/main/java/org/apache/tuscany/core/loader/WSDLDefinitionRegistry.java
(original)
+++ incubator/tuscany/sandbox/jboynes/sca/core2/src/main/java/org/apache/tuscany/core/services/wsdl/WSDLDefinitionRegistry.java
Wed May  3 15:58:46 2006
@@ -14,7 +14,7 @@
  *  See the License for the specific language governing permissions and
  *  limitations under the License.
  */
-package org.apache.tuscany.core.loader;
+package org.apache.tuscany.core.services.wsdl;
 
 import java.net.URL;
 import java.io.IOException;
@@ -46,12 +46,12 @@
      * Load and register a WSDL definition as specified in a WSDL2.0 wsdlLocation attribute.
      *
      * @param wsdlLocation   the value of the wsdlLocation attribute
-     * @param resourceLoader application resource loader used to support relative locations
+     * @param classLoader application classloader used to support relative locations
      * @return the loaded Definition
      * @throws IOException   if there was a problem reading the document
      * @throws WSDLException if there was a problem parsing the definition
      */
-    Definition loadDefinition(String wsdlLocation, ResourceLoader resourceLoader) throws
IOException, WSDLException;
+    Definition loadDefinition(String wsdlLocation, ClassLoader classLoader) throws IOException,
WSDLException;
 
     /**
      * Returns the PortType with the supplied qualified name, or null if no such port has
been defined.

Propchange: incubator/tuscany/sandbox/jboynes/sca/core2/src/main/java/org/apache/tuscany/core/services/wsdl/WSDLDefinitionRegistry.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/sandbox/jboynes/sca/core2/src/main/java/org/apache/tuscany/core/services/wsdl/WSDLDefinitionRegistry.java
------------------------------------------------------------------------------
    svn:keywords = Rev,Date

Copied: incubator/tuscany/sandbox/jboynes/sca/core2/src/main/java/org/apache/tuscany/core/services/wsdl/WSDLDefinitionRegistryImpl.java
(from r399348, incubator/tuscany/sandbox/jboynes/sca/core/src/main/java/org/apache/tuscany/core/loader/impl/WSDLDefinitionRegistryImpl.java)
URL: http://svn.apache.org/viewcvs/incubator/tuscany/sandbox/jboynes/sca/core2/src/main/java/org/apache/tuscany/core/services/wsdl/WSDLDefinitionRegistryImpl.java?p2=incubator/tuscany/sandbox/jboynes/sca/core2/src/main/java/org/apache/tuscany/core/services/wsdl/WSDLDefinitionRegistryImpl.java&p1=incubator/tuscany/sandbox/jboynes/sca/core/src/main/java/org/apache/tuscany/core/loader/impl/WSDLDefinitionRegistryImpl.java&r1=399348&r2=399480&rev=399480&view=diff
==============================================================================
--- incubator/tuscany/sandbox/jboynes/sca/core/src/main/java/org/apache/tuscany/core/loader/impl/WSDLDefinitionRegistryImpl.java
(original)
+++ incubator/tuscany/sandbox/jboynes/sca/core2/src/main/java/org/apache/tuscany/core/services/wsdl/WSDLDefinitionRegistryImpl.java
Wed May  3 15:58:46 2006
@@ -14,12 +14,12 @@
  *  See the License for the specific language governing permissions and
  *  limitations under the License.
  */
-package org.apache.tuscany.core.loader.impl;
+package org.apache.tuscany.core.services.wsdl;
 
 import java.io.IOException;
-import java.net.URL;
 import java.net.URI;
 import java.net.URISyntaxException;
+import java.net.URL;
 import java.util.ArrayList;
 import java.util.HashMap;
 import java.util.List;
@@ -33,15 +33,9 @@
 import javax.wsdl.xml.WSDLReader;
 import javax.xml.namespace.QName;
 
-import org.apache.tuscany.common.resource.ResourceLoader;
-import org.apache.tuscany.core.loader.WSDLDefinitionRegistry;
-import org.osoa.sca.annotations.Scope;
-
 /**
  * @version $Rev$ $Date$
  */
-@org.osoa.sca.annotations.Service(interfaces = {WSDLDefinitionRegistry.class})
-@Scope("MODULE")
 public class WSDLDefinitionRegistryImpl implements WSDLDefinitionRegistry {
     private final WSDLFactory wsdlFactory;
     private final ExtensionRegistry registry;
@@ -65,7 +59,7 @@
         return registry;
     }
 
-    public Definition loadDefinition(String wsdlLocation, ResourceLoader resourceLoader)
throws IOException, WSDLException {
+    public Definition loadDefinition(String wsdlLocation, ClassLoader classLoader) throws
IOException, WSDLException {
         int index = wsdlLocation.indexOf(' ');
         if (index == -1) {
             throw new WSDLException(WSDLException.CONFIGURATION_ERROR, "Invalid wsdlLocation:
" + wsdlLocation);
@@ -81,7 +75,7 @@
         if (uri.isAbsolute()) {
             url = uri.toURL();
         } else {
-            url = resourceLoader.getResource(uri.toString());
+            url = classLoader.getResource(uri.toString());
             if (url == null) {
                 throw new WSDLException(WSDLException.CONFIGURATION_ERROR, "Resource not
found: " + uri);
             }
@@ -155,7 +149,7 @@
          * read WSDL for the supplied namespace from the supplied location.
          *
          * @param namespace the target namespace expected in the WSDL; may be null
-         * @param location the location where we will attempt to read the WSDL definition
from
+         * @param location  the location where we will attempt to read the WSDL definition
from
          */
         void readingWSDL(String namespace, URL location);
 
@@ -164,7 +158,7 @@
          * in the cache.
          *
          * @param namespace the target namespace for the WSDL
-         * @param location the location where the WSDL definition was read from
+         * @param location  the location where the WSDL definition was read from
          */
         void cachingDefinition(String namespace, URL location);
     }

Propchange: incubator/tuscany/sandbox/jboynes/sca/core2/src/main/java/org/apache/tuscany/core/services/wsdl/WSDLDefinitionRegistryImpl.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/sandbox/jboynes/sca/core2/src/main/java/org/apache/tuscany/core/services/wsdl/WSDLDefinitionRegistryImpl.java
------------------------------------------------------------------------------
    svn:keywords = Rev,Date

Copied: incubator/tuscany/sandbox/jboynes/sca/core2/src/test/java/org/apache/tuscany/core/services/wsdl/WSDLDefinitionRegistryTestCase.java
(from r399282, incubator/tuscany/sandbox/jboynes/sca/core/src/test/java/org/apache/tuscany/core/loader/assembly/WSDLDefinitionRegistryTestCase.java)
URL: http://svn.apache.org/viewcvs/incubator/tuscany/sandbox/jboynes/sca/core2/src/test/java/org/apache/tuscany/core/services/wsdl/WSDLDefinitionRegistryTestCase.java?p2=incubator/tuscany/sandbox/jboynes/sca/core2/src/test/java/org/apache/tuscany/core/services/wsdl/WSDLDefinitionRegistryTestCase.java&p1=incubator/tuscany/sandbox/jboynes/sca/core/src/test/java/org/apache/tuscany/core/loader/assembly/WSDLDefinitionRegistryTestCase.java&r1=399282&r2=399480&rev=399480&view=diff
==============================================================================
--- incubator/tuscany/sandbox/jboynes/sca/core/src/test/java/org/apache/tuscany/core/loader/assembly/WSDLDefinitionRegistryTestCase.java
(original)
+++ incubator/tuscany/sandbox/jboynes/sca/core2/src/test/java/org/apache/tuscany/core/services/wsdl/WSDLDefinitionRegistryTestCase.java
Wed May  3 15:58:46 2006
@@ -14,19 +14,15 @@
  *  See the License for the specific language governing permissions and
  *  limitations under the License.
  */
-package org.apache.tuscany.core.loader.assembly;
+package org.apache.tuscany.core.services.wsdl;
 
-import java.net.URL;
 import java.io.IOException;
-
+import java.net.URL;
 import javax.wsdl.Definition;
 import javax.wsdl.WSDLException;
 import javax.xml.namespace.QName;
 
 import junit.framework.TestCase;
-import org.apache.tuscany.core.loader.impl.WSDLDefinitionRegistryImpl;
-import org.apache.tuscany.common.resource.ResourceLoader;
-import org.apache.tuscany.common.resource.impl.ResourceLoaderImpl;
 
 /**
  * @version $Rev$ $Date$
@@ -34,12 +30,12 @@
 public class WSDLDefinitionRegistryTestCase extends TestCase {
     private static final String NS = "http://www.example.org";
     private WSDLDefinitionRegistryImpl wsdlRegistry;
-    private ResourceLoader rl;
+    private ClassLoader rl;
 
 
     public void testLoadFromAbsoluteWSDLLocation() {
         try {
-            Definition def = wsdlRegistry.loadDefinition(NS + ' ' + rl.getResource("org/apache/tuscany/core/loader/assembly/example.wsdl"),
rl);
+            Definition def = wsdlRegistry.loadDefinition(NS + ' ' + rl.getResource("org/apache/tuscany/core/services/wsdl/example.wsdl"),
rl);
             assertNotNull(def.getPortType(new QName(NS, "HelloWorld")));
         } catch (IOException e) {
             fail(e.getMessage());
@@ -50,7 +46,7 @@
 
     public void testLoadFromRelativeWSDLLocation() {
         try {
-            Definition def = wsdlRegistry.loadDefinition(NS + " org/apache/tuscany/core/loader/assembly/example.wsdl",
rl);
+            Definition def = wsdlRegistry.loadDefinition(NS + " org/apache/tuscany/core/services/wsdl/example.wsdl",
rl);
             assertNotNull(def.getPortType(new QName(NS, "HelloWorld")));
         } catch (IOException e) {
             fail(e.getMessage());
@@ -63,7 +59,7 @@
         super.setUp();
         wsdlRegistry = new WSDLDefinitionRegistryImpl();
         wsdlRegistry.setMonitor(NULL_MONITOR);
-        rl = new ResourceLoaderImpl(getClass().getClassLoader());
+        rl = getClass().getClassLoader();
     }
 
     private static final WSDLDefinitionRegistryImpl.Monitor NULL_MONITOR = new WSDLDefinitionRegistryImpl.Monitor()
{

Propchange: incubator/tuscany/sandbox/jboynes/sca/core2/src/test/java/org/apache/tuscany/core/services/wsdl/WSDLDefinitionRegistryTestCase.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/sandbox/jboynes/sca/core2/src/test/java/org/apache/tuscany/core/services/wsdl/WSDLDefinitionRegistryTestCase.java
------------------------------------------------------------------------------
    svn:keywords = Rev,Date

Copied: incubator/tuscany/sandbox/jboynes/sca/core2/src/test/resources/org/apache/tuscany/core/services/wsdl/example.wsdl
(from r399282, incubator/tuscany/sandbox/jboynes/sca/core/src/test/resources/org/apache/tuscany/core/loader/assembly/example.wsdl)
URL: http://svn.apache.org/viewcvs/incubator/tuscany/sandbox/jboynes/sca/core2/src/test/resources/org/apache/tuscany/core/services/wsdl/example.wsdl?p2=incubator/tuscany/sandbox/jboynes/sca/core2/src/test/resources/org/apache/tuscany/core/services/wsdl/example.wsdl&p1=incubator/tuscany/sandbox/jboynes/sca/core/src/test/resources/org/apache/tuscany/core/loader/assembly/example.wsdl&r1=399282&r2=399480&rev=399480&view=diff
==============================================================================
    (empty)

Modified: incubator/tuscany/sandbox/jboynes/sca/model/src/main/java/org/apache/tuscany/model/WSDLServiceContract.java
URL: http://svn.apache.org/viewcvs/incubator/tuscany/sandbox/jboynes/sca/model/src/main/java/org/apache/tuscany/model/WSDLServiceContract.java?rev=399480&r1=399479&r2=399480&view=diff
==============================================================================
--- incubator/tuscany/sandbox/jboynes/sca/model/src/main/java/org/apache/tuscany/model/WSDLServiceContract.java
(original)
+++ incubator/tuscany/sandbox/jboynes/sca/model/src/main/java/org/apache/tuscany/model/WSDLServiceContract.java
Wed May  3 15:58:46 2006
@@ -16,8 +16,28 @@
  */
 package org.apache.tuscany.model;
 
+import javax.wsdl.PortType;
+
 /**
  * @version $Rev$ $Date$
  */
 public class WSDLServiceContract extends ServiceContract {
+    private PortType portType;
+    private PortType callbackPortType;
+
+    public PortType getPortType() {
+        return portType;
+    }
+
+    public void setPortType(PortType portType) {
+        this.portType = portType;
+    }
+
+    public PortType getCallbackPortType() {
+        return callbackPortType;
+    }
+
+    public void setCallbackPortType(PortType callbackPortType) {
+        this.callbackPortType = callbackPortType;
+    }
 }



Mime
View raw message