Author: ruwan
Date: Fri Oct 29 14:54:27 2010
New Revision: 1028787
URL: http://svn.apache.org/viewvc?rev=1028787&view=rev
Log:
Adding the class mediatort schema, and fixing the synapse-config root schema
Added:
synapse/trunk/java/repository/schema/mediators/extension/class.xsd
Modified:
synapse/trunk/java/repository/schema/mediators/mediators.xsd
synapse/trunk/java/repository/schema/synapse_config.xsd
Added: synapse/trunk/java/repository/schema/mediators/extension/class.xsd
URL:
http://svn.apache.org/viewvc/synapse/trunk/java/repository/schema/mediators/extension/class.xsd?rev=1028787&view=auto
==============================================================================
--- synapse/trunk/java/repository/schema/mediators/extension/class.xsd (added)
+++ synapse/trunk/java/repository/schema/mediators/extension/class.xsd Fri Oct
29 14:54:27 2010
@@ -0,0 +1,41 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!--
+ ~ Licensed to the Apache Software Foundation (ASF) under one
+ ~ or more contributor license agreements. See the NOTICE file
+ ~ distributed with this work for additional information
+ ~ regarding copyright ownership. The ASF licenses this file
+ ~ to you under the Apache License, Version 2.0 (the
+ ~ "License"); you may not use this file except in compliance
+ ~ with the License. You may obtain a copy of the License at
+ ~
+ ~ http://www.apache.org/licenses/LICENSE-2.0
+ ~
+ ~ Unless required by applicable law or agreed to in writing,
+ ~ software distributed under the License is distributed on an
+ ~ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ ~ KIND, either express or implied. See the License for the
+ ~ specific language governing permissions and limitations
+ ~ under the License.
+ -->
+
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified"
+ 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="class">
+ <xs:annotation>
+ <xs:documentation source="description">
+ Class mediator to process messages using the specified java
class
+ </xs:documentation>
+ </xs:annotation>
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element name="property" type="mediatorProperty"
minOccurs="0" maxOccurs="unbounded"/>
+ </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/mediators/mediators.xsd
URL:
http://svn.apache.org/viewvc/synapse/trunk/java/repository/schema/mediators/mediators.xsd?rev=1028787&r1=1028786&r2=1028787&view=diff
==============================================================================
--- synapse/trunk/java/repository/schema/mediators/mediators.xsd (original)
+++ synapse/trunk/java/repository/schema/mediators/mediators.xsd Fri Oct 29
14:54:27 2010
@@ -38,6 +38,7 @@
<xs:include schemaLocation="advanced/rm_sequence.xsd"/>
<xs:include schemaLocation="advanced/db_mediators.xsd"/>
<xs:include schemaLocation="extension/script.xsd"/>
+ <xs:include schemaLocation="extension/class.xsd"/>
<xs:group name="mediatorList">
<xs:annotation>
@@ -73,6 +74,7 @@
<xs:element ref="dblookup"/>
<xs:element ref="dbreport"/>
<xs:element ref="throttle"/>
+ <xs:element ref="class"/>
</xs:choice>
</xs:group>
Modified: synapse/trunk/java/repository/schema/synapse_config.xsd
URL:
http://svn.apache.org/viewvc/synapse/trunk/java/repository/schema/synapse_config.xsd?rev=1028787&r1=1028786&r2=1028787&view=diff
==============================================================================
--- synapse/trunk/java/repository/schema/synapse_config.xsd (original)
+++ synapse/trunk/java/repository/schema/synapse_config.xsd Fri Oct 29 14:54:27
2010
@@ -48,7 +48,7 @@
configuration
</xs:documentation>
</xs:annotation>
- <xs:sequence>
+ <xs:choice maxOccurs="unbounded" minOccurs="1">
<xs:element ref="registry" minOccurs="0" maxOccurs="1"/>
<xs:element ref="localEntry" minOccurs="0" maxOccurs="unbounded"/>
<xs:element ref="priorityExecutor" minOccurs="0"
maxOccurs="unbounded"/>
@@ -57,7 +57,7 @@
<xs:element ref="proxy" minOccurs="0" maxOccurs="unbounded"/>
<xs:element ref="eventSource" minOccurs="0" maxOccurs="unbounded"/>
<xs:element ref="task" minOccurs="0" maxOccurs="unbounded"/>
- </xs:sequence>
+ </xs:choice>
</xs:complexType>
</xs:schema>
\ No newline at end of file