You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@synapse.apache.org by ru...@apache.org on 2010/05/16 06:37:31 UTC

svn commit: r944764 - in /synapse/trunk/java/repository/schema: misc/common.xsd proxy.xsd registry.xsd

Author: ruwan
Date: Sun May 16 04:37:31 2010
New Revision: 944764

URL: http://svn.apache.org/viewvc?rev=944764&view=rev
Log:
refactoring the parameter element into the common.xsd to be reused in the registry.xsd and partially completing the registry.xsd

Modified:
    synapse/trunk/java/repository/schema/misc/common.xsd
    synapse/trunk/java/repository/schema/proxy.xsd
    synapse/trunk/java/repository/schema/registry.xsd

Modified: synapse/trunk/java/repository/schema/misc/common.xsd
URL: http://svn.apache.org/viewvc/synapse/trunk/java/repository/schema/misc/common.xsd?rev=944764&r1=944763&r2=944764&view=diff
==============================================================================
--- synapse/trunk/java/repository/schema/misc/common.xsd (original)
+++ synapse/trunk/java/repository/schema/misc/common.xsd Sun May 16 04:37:31 2010
@@ -34,4 +34,19 @@
         </xs:complexType>
     </xs:element>
 
+    <xs:element name="parameter">
+        <xs:annotation>
+            <xs:documentation source="description">
+                These are the parameters for various elements in the Synapse Configuration,
+                for example, for proxy services, for registry nad so forth
+            </xs:documentation>
+        </xs:annotation>
+        <xs:complexType>
+            <xs:sequence>
+                <xs:any minOccurs="1" maxOccurs="1" processContents="skip"/>
+            </xs:sequence>
+            <xs:attribute name="name" type="xs:string" use="required"/>
+        </xs:complexType>
+    </xs:element>
+
 </xs:schema>
\ No newline at end of file

Modified: synapse/trunk/java/repository/schema/proxy.xsd
URL: http://svn.apache.org/viewvc/synapse/trunk/java/repository/schema/proxy.xsd?rev=944764&r1=944763&r2=944764&view=diff
==============================================================================
--- synapse/trunk/java/repository/schema/proxy.xsd (original)
+++ synapse/trunk/java/repository/schema/proxy.xsd Sun May 16 04:37:31 2010
@@ -61,16 +61,7 @@
                     <xs:attribute name="key" type="xs:string" use="optional"/>
                 </xs:complexType>
             </xs:element>
-            <xs:element name="parameter" minOccurs="0">
-                <xs:annotation>
-                    <xs:documentation source="description">
-                        These are the parameters of the proxy service
-                    </xs:documentation>
-                </xs:annotation>
-                <xs:complexType>
-                    <xs:attribute name="name" type="xs:string"/>
-                </xs:complexType>
-            </xs:element>
+            <xs:element ref="parameter" minOccurs="0"/>
         </xs:all>
         <xs:attribute name="name" use="required"/>
         <xs:attribute name="transports" use="optional"/>

Modified: synapse/trunk/java/repository/schema/registry.xsd
URL: http://svn.apache.org/viewvc/synapse/trunk/java/repository/schema/registry.xsd?rev=944764&r1=944763&r2=944764&view=diff
==============================================================================
--- synapse/trunk/java/repository/schema/registry.xsd (original)
+++ synapse/trunk/java/repository/schema/registry.xsd Sun May 16 04:37:31 2010
@@ -22,18 +22,28 @@
            targetNamespace="http://synapse.apache.org/ns/2010/04/configuration"
            xmlns="http://synapse.apache.org/ns/2010/04/configuration">
 
+    <xs:include schemaLocation="misc/common.xsd"/>
+
     <xs:element name="registry" type="Registry">
         <xs:annotation>
             <xs:documentation source="description">
-                Registry description
+                Registry declaration of the Synapse Configuration
             </xs:documentation>
         </xs:annotation>
     </xs:element>
 
     <xs:complexType name="Registry">
         <xs:annotation>
-
+            <xs:documentation source="description">
+                This denotes the type of the &lt;registry&gt; element
+                in the top of the Synapse Configuration
+            </xs:documentation>
         </xs:annotation>
+        <xs:sequence>
+            <xs:element ref="parameter" minOccurs="0" maxOccurs="unbounded"/>
+        </xs:sequence>
+        <xs:attribute name="provider" type="xs:string" use="required"
+                      default="org.apache.synapse.registry.url.SimpleURLRegistry"/>
     </xs:complexType>
 
 </xs:schema>
\ No newline at end of file