tuscany-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lrese...@apache.org
Subject svn commit: r665983 - /incubator/tuscany/java/sca/modules/interface-wsdl-xml/src/main/java/org/apache/tuscany/sca/interfacedef/wsdl/xml/WSDLModelResolver.java
Date Tue, 10 Jun 2008 05:33:46 GMT
Author: lresende
Date: Mon Jun  9 22:33:46 2008
New Revision: 665983

URL: http://svn.apache.org/viewvc?rev=665983&view=rev
Log:
Registering additional SCA Policy extensions to handle "endsConversation" attribute

Modified:
    incubator/tuscany/java/sca/modules/interface-wsdl-xml/src/main/java/org/apache/tuscany/sca/interfacedef/wsdl/xml/WSDLModelResolver.java

Modified: incubator/tuscany/java/sca/modules/interface-wsdl-xml/src/main/java/org/apache/tuscany/sca/interfacedef/wsdl/xml/WSDLModelResolver.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/modules/interface-wsdl-xml/src/main/java/org/apache/tuscany/sca/interfacedef/wsdl/xml/WSDLModelResolver.java?rev=665983&r1=665982&r2=665983&view=diff
==============================================================================
--- incubator/tuscany/java/sca/modules/interface-wsdl-xml/src/main/java/org/apache/tuscany/sca/interfacedef/wsdl/xml/WSDLModelResolver.java
(original)
+++ incubator/tuscany/java/sca/modules/interface-wsdl-xml/src/main/java/org/apache/tuscany/sca/interfacedef/wsdl/xml/WSDLModelResolver.java
Mon Jun  9 22:33:46 2008
@@ -30,6 +30,7 @@
 import java.util.Map;
 
 import javax.wsdl.Definition;
+import javax.wsdl.Operation;
 import javax.wsdl.PortType;
 import javax.wsdl.Types;
 import javax.wsdl.WSDLException;
@@ -91,7 +92,8 @@
     
     // ---- Policy WSDL Attachments
     
-    public static final QName POLICY_EXTENSION = new QName("http://www.osoa.org/xmlns/sca/1.0",
"requires");
+    public static final QName Q_POLICY_ATTRIBUTE_EXTENSION = new QName("http://www.osoa.org/xmlns/sca/1.0",
"requires");
+    public static final QName Q_POLICY_END_CONVERSATION_ATTRIBUTE_EXTENSION = new QName("http://www.osoa.org/xmlns/sca/1.0",
"endsConversation");
     
     // ---- Stuff added for BPEL extension elements ---  Mike Edwards 01/05/2008
     public static final String ELEM_PLINKTYPE = "partnerLinkType";
@@ -126,7 +128,8 @@
             wsdlExtensionRegistry.registerDeserializer(Types.class, schema, deserializer);
         }
         // ---- Policy WSDL Extensions
-        wsdlExtensionRegistry.registerExtensionAttributeType(PortType.class, POLICY_EXTENSION,
AttributeExtensible.LIST_OF_QNAMES_TYPE);
+        wsdlExtensionRegistry.registerExtensionAttributeType(PortType.class, Q_POLICY_ATTRIBUTE_EXTENSION,
AttributeExtensible.LIST_OF_QNAMES_TYPE);
+        wsdlExtensionRegistry.registerExtensionAttributeType(Operation.class, Q_POLICY_END_CONVERSATION_ATTRIBUTE_EXTENSION,
AttributeExtensible.STRING_TYPE);
         
         // ---- BPEL additions
         serializer = new BPELExtensionHandler();



Mime
View raw message